Remove i386_elf_emit_arch_note
[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; \
700d40ca
ILT
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
8a0d8a5c
PB
485# Only build the C compiler for stage1, because that is the only one that
486# we can guarantee will build with the native compiler, and also it is the
487# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
488# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
489# overrideable (for a bootstrap build stage1 also builds gcc.info).
490
1b05fbbd 491STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
492STAGE1_CHECKING = @stage1_checking@
493STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
494# * We force-disable intermodule optimizations, even if
495# --enable-intermodule was passed, since the installed compiler
496# probably can't handle them. Luckily, autoconf always respects
497# the last argument when conflicting --enable arguments are passed.
498# * Likewise, we force-disable coverage flags, since the installed
499# compiler probably has never heard of them.
880b18d1 500# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 501STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 502 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
503 --disable-build-format-warnings
8a0d8a5c 504
1b05fbbd
AO
505STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
506STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 507
1b05fbbd
AO
508STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
509STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 510
8520c408
AO
511do-compare = @do_compare@
512do-compare3 = $(do-compare)
8520c408 513
50212802
NN
514# -----------------------------------------------
515# Programs producing files for the TARGET machine
516# -----------------------------------------------
0da52010 517
50212802 518AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 519AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 520CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 521
50212802
NN
522# If GCC_FOR_TARGET is not overriden on the command line, then this
523# variable is passed down to the gcc Makefile, where it is used to
524# build libgcc2.a. We define it here so that it can itself be
525# overridden on the command line.
1b05fbbd
AO
526GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
527CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
528RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
529GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
530GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 531GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 532DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 533LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 534
7e0f7140 535LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 536NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 537OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 538OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 539RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 540READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 541STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 542WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 543WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 544
be01d343
PB
545COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
546COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
547COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
548
7f6ef0c0
PB
549CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
550CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 551
be01d343
PB
552LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
553LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 554LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 555GOCFLAGS_FOR_TARGET = -O2 -g
50212802 556
1b05fbbd
AO
557FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
558SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
559DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
560
561XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
562
50212802
NN
563# ------------------------------------
564# Miscellaneous targets and flag lists
565# ------------------------------------
566
252b5132
RH
567# The first rule in the file had better be this one. Don't put any above it.
568# This lives here to allow makefile fragments to contain dependencies.
f70224b5 569all:
252b5132 570
252b5132 571#### host and target specific makefile fragments come in here.
a0da8069
NN
572@target_makefile_frag@
573@alphaieee_frag@
574@ospace_frag@
575@host_makefile_frag@
252b5132
RH
576###
577
e90269c8 578# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 579# so that programs built for the target machine work.
1b6c0831 580TARGET_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
581
582@if target-libstdc++-v3
18a8530e 583TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
584@endif target-libstdc++-v3
585
5286fdef
L
586@if target-libsanitizer
587TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
588@endif target-libsanitizer
589
1b6c0831
L
590@if target-libmpx
591TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
592@endif target-libmpx
593
95e43135
JBG
594@if target-libvtv
595TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
596@endif target-libvtv
597
e78e02e6 598@if target-libcilkrts
599TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
600@endif target-libcilkrts
601
1b6c0831
L
602@if target-liboffloadmic
603TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
604@endif target-liboffloadmic
605
064d0a7c
PB
606@if target-libssp
607TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
608@endif target-libssp
609
b3ded179
PB
610@if target-libgomp
611TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
612@endif target-libgomp
613
7ec59b9e
L
614@if target-libitm
615TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
616@endif target-libitm
617
618@if target-libatomic
619TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
620@endif target-libatomic
621
e90269c8
PB
622
623
624# This is the list of directories that may be needed in RPATH_ENVVAR
625# so that programs built for the host machine work.
1b6c0831 626HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
627
628# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
629@if gcc
3bbd2f8f 630HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
631@endif gcc
632
633
4b900473
PB
634@if gmp
635HOST_LIB_PATH_gmp = \
636 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
637@endif gmp
638
639@if mpfr
640HOST_LIB_PATH_mpfr = \
641 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
642@endif mpfr
643
e8a5fa9c
RW
644@if mpc
645HOST_LIB_PATH_mpc = \
646 $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
647@endif mpc
648
7ec59b9e
L
649@if isl
650HOST_LIB_PATH_isl = \
651 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
652@endif isl
e28c595f 653
1f53ca9a
AO
654@if libelf
655HOST_LIB_PATH_libelf = \
656 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
657@endif libelf
658
e90269c8 659
87cda2cf
AO
660CXX_FOR_TARGET_FLAG_TO_PASS = \
661 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
662@if target-libstdc++-v3
663# CXX_FOR_TARGET is tricky to get right for target libs that require a
664# functional C++ compiler. When we recurse, if we expand
665# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
666# libstdc++ include flags from the script. Instead, we get an
667# -funconfigured-* word, so that we'll get errors if this invalid C++
668# command line is used for anything, but also so that we can use the
669# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
670# don't pass it on, sub-make will use the default definition, that
671# re-expands it at the time of use, so we'll get it right when we need
672# it. One potential exception is the expansion of CXX_FOR_TARGET
673# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
674# really work, for C++ host programs can't depend on the current-stage
675# C++ target library.
676CXX_FOR_TARGET_FLAG_TO_PASS = \
677 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
678@endif target-libstdc++-v3
679
252b5132 680# Flags to pass down to all sub-makes.
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
252b5132 836# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
837# The double $ decreases the length of the command line; those variables
838# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
839# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
840# so we expand them here.
252b5132
RH
841EXTRA_TARGET_FLAGS = \
842 'AR=$$(AR_FOR_TARGET)' \
0aed8855 843 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
844 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
845 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
846 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
847 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
848 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 849 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 850 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd
AO
851 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
852 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 853 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 854 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 855 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 856 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
857 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
858 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 859 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 860 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 861 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 862 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 863 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 864 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
865 'WINDMC=$$(WINDMC_FOR_TARGET)' \
866 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
867 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
868 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 869 "TFLAGS=$$TFLAGS"
252b5132
RH
870
871TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
872
873# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
874# unfortunately needs the native compiler and the target ar and
875# ranlib.
876# If any variables are added here, they must be added to do-*, below.
2a4cbe27 877# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
878# cross-building scheme.
879EXTRA_GCC_FLAGS = \
252b5132 880 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 881 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 882 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 883
f0b24077 884GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 885
1b05fbbd 886@if gcc
96655cc4 887BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
888ifneq ($(BUILD_CONFIG),)
889include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
890endif
891@endif gcc
892
dd12c3a8 893.PHONY: configure-host
b813574b 894configure-host: \
dd12c3a8
NN
895 maybe-configure-bfd \
896 maybe-configure-opcodes \
897 maybe-configure-binutils \
898 maybe-configure-bison \
f9806fa5 899 maybe-configure-cgen \
dd12c3a8 900 maybe-configure-dejagnu \
dd12c3a8
NN
901 maybe-configure-etc \
902 maybe-configure-fastjar \
d3ed111c 903 maybe-configure-fixincludes \
dd12c3a8
NN
904 maybe-configure-flex \
905 maybe-configure-gas \
b813574b 906 maybe-configure-gcc \
4b900473
PB
907 maybe-configure-gmp \
908 maybe-configure-mpfr \
e8a5fa9c 909 maybe-configure-mpc \
7ec59b9e 910 maybe-configure-isl \
1f53ca9a 911 maybe-configure-libelf \
93f9b408 912 maybe-configure-gold \
dd12c3a8 913 maybe-configure-gprof \
dd12c3a8
NN
914 maybe-configure-intl \
915 maybe-configure-tcl \
916 maybe-configure-itcl \
917 maybe-configure-ld \
2bf680c4 918 maybe-configure-libbacktrace \
04cf1b77 919 maybe-configure-libcpp \
be01d343 920 maybe-configure-libdecnumber \
dd12c3a8
NN
921 maybe-configure-libgui \
922 maybe-configure-libiberty \
1b6c0831 923 maybe-configure-libiberty-linker-plugin \
dc448a7b 924 maybe-configure-libiconv \
dd12c3a8 925 maybe-configure-m4 \
dd12c3a8 926 maybe-configure-readline \
dd12c3a8
NN
927 maybe-configure-sid \
928 maybe-configure-sim \
dd12c3a8 929 maybe-configure-texinfo \
dd12c3a8
NN
930 maybe-configure-zlib \
931 maybe-configure-gdb \
932 maybe-configure-expect \
933 maybe-configure-guile \
934 maybe-configure-tk \
dd12c3a8 935 maybe-configure-libtermcap \
b00612cc 936 maybe-configure-utils \
700d40ca 937 maybe-configure-gnattools \
1b6c0831
L
938 maybe-configure-lto-plugin \
939 maybe-configure-libcc1 \
940 maybe-configure-gotools
dd12c3a8
NN
941.PHONY: configure-target
942configure-target: \
943 maybe-configure-target-libstdc++-v3 \
5286fdef 944 maybe-configure-target-libsanitizer \
1b6c0831 945 maybe-configure-target-libmpx \
95e43135 946 maybe-configure-target-libvtv \
e78e02e6 947 maybe-configure-target-libcilkrts \
1b6c0831 948 maybe-configure-target-liboffloadmic \
064d0a7c 949 maybe-configure-target-libssp \
dd12c3a8 950 maybe-configure-target-newlib \
6aa8ef82 951 maybe-configure-target-libgcc \
2bf680c4 952 maybe-configure-target-libbacktrace \
e552509b 953 maybe-configure-target-libquadmath \
4b1cb4fe 954 maybe-configure-target-libgfortran \
dd12c3a8 955 maybe-configure-target-libobjc \
e552509b 956 maybe-configure-target-libgo \
dd12c3a8
NN
957 maybe-configure-target-libtermcap \
958 maybe-configure-target-winsup \
959 maybe-configure-target-libgloss \
dd12c3a8
NN
960 maybe-configure-target-libffi \
961 maybe-configure-target-libjava \
962 maybe-configure-target-zlib \
963 maybe-configure-target-boehm-gc \
a2592b1b 964 maybe-configure-target-rda \
b3ded179 965 maybe-configure-target-libada \
7ec59b9e
L
966 maybe-configure-target-libgomp \
967 maybe-configure-target-libitm \
968 maybe-configure-target-libatomic
252b5132 969
319cab08
PB
970# The target built for a native non-bootstrap build.
971.PHONY: all
f70224b5
PB
972all:
973@if gcc-bootstrap
be01d343 974 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
975 @r=`${PWD_COMMAND}`; export r; \
976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 977 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 978@endif gcc-bootstrap
0aed8855 979 @: $(MAKE); $(unstage)
f70224b5
PB
980 @r=`${PWD_COMMAND}`; export r; \
981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 982@if gcc-bootstrap
b5233201 983 if [ -f stage_last ]; then \
07fc31c9 984 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 985 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 986 else \
1b05fbbd 987@endif gcc-bootstrap
b5233201
AO
988 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
989@if gcc-bootstrap
990 ; \
04ec0acb 991 fi \
b5233201 992@endif gcc-bootstrap
04ec0acb 993 && :
6a9cf61e
PB
994
995.PHONY: all-build
c52c6897
PB
996
997all-build: maybe-all-build-libiberty
998all-build: maybe-all-build-bison
c52c6897
PB
999all-build: maybe-all-build-flex
1000all-build: maybe-all-build-m4
1001all-build: maybe-all-build-texinfo
1002all-build: maybe-all-build-fixincludes
1b6c0831 1003all-build: maybe-all-build-libcpp
c52c6897 1004
dd12c3a8 1005.PHONY: all-host
c52c6897 1006
c52c6897
PB
1007@if bfd-no-bootstrap
1008all-host: maybe-all-bfd
1009@endif bfd-no-bootstrap
1010@if opcodes-no-bootstrap
1011all-host: maybe-all-opcodes
1012@endif opcodes-no-bootstrap
1013@if binutils-no-bootstrap
1014all-host: maybe-all-binutils
1015@endif binutils-no-bootstrap
1016all-host: maybe-all-bison
f9806fa5 1017all-host: maybe-all-cgen
c52c6897 1018all-host: maybe-all-dejagnu
c52c6897
PB
1019all-host: maybe-all-etc
1020all-host: maybe-all-fastjar
201f096f 1021@if fixincludes-no-bootstrap
c52c6897 1022all-host: maybe-all-fixincludes
201f096f 1023@endif fixincludes-no-bootstrap
c52c6897
PB
1024all-host: maybe-all-flex
1025@if gas-no-bootstrap
1026all-host: maybe-all-gas
1027@endif gas-no-bootstrap
1028@if gcc-no-bootstrap
1029all-host: maybe-all-gcc
1030@endif gcc-no-bootstrap
4b900473
PB
1031@if gmp-no-bootstrap
1032all-host: maybe-all-gmp
1033@endif gmp-no-bootstrap
1034@if mpfr-no-bootstrap
1035all-host: maybe-all-mpfr
1036@endif mpfr-no-bootstrap
e8a5fa9c
RW
1037@if mpc-no-bootstrap
1038all-host: maybe-all-mpc
1039@endif mpc-no-bootstrap
7ec59b9e
L
1040@if isl-no-bootstrap
1041all-host: maybe-all-isl
1042@endif isl-no-bootstrap
1f53ca9a
AO
1043@if libelf-no-bootstrap
1044all-host: maybe-all-libelf
1045@endif libelf-no-bootstrap
93f9b408
ILT
1046@if gold-no-bootstrap
1047all-host: maybe-all-gold
1048@endif gold-no-bootstrap
c52c6897 1049all-host: maybe-all-gprof
c52c6897
PB
1050@if intl-no-bootstrap
1051all-host: maybe-all-intl
1052@endif intl-no-bootstrap
1053all-host: maybe-all-tcl
1054all-host: maybe-all-itcl
1055@if ld-no-bootstrap
1056all-host: maybe-all-ld
1057@endif ld-no-bootstrap
2bf680c4
ILT
1058@if libbacktrace-no-bootstrap
1059all-host: maybe-all-libbacktrace
1060@endif libbacktrace-no-bootstrap
c52c6897
PB
1061@if libcpp-no-bootstrap
1062all-host: maybe-all-libcpp
1063@endif libcpp-no-bootstrap
1064@if libdecnumber-no-bootstrap
1065all-host: maybe-all-libdecnumber
1066@endif libdecnumber-no-bootstrap
1067all-host: maybe-all-libgui
1068@if libiberty-no-bootstrap
1069all-host: maybe-all-libiberty
1070@endif libiberty-no-bootstrap
1b6c0831
L
1071@if libiberty-linker-plugin-no-bootstrap
1072all-host: maybe-all-libiberty-linker-plugin
1073@endif libiberty-linker-plugin-no-bootstrap
dc448a7b 1074all-host: maybe-all-libiconv
c52c6897 1075all-host: maybe-all-m4
c52c6897 1076all-host: maybe-all-readline
c52c6897
PB
1077all-host: maybe-all-sid
1078all-host: maybe-all-sim
c52c6897 1079all-host: maybe-all-texinfo
c52c6897
PB
1080@if zlib-no-bootstrap
1081all-host: maybe-all-zlib
1082@endif zlib-no-bootstrap
1083all-host: maybe-all-gdb
1084all-host: maybe-all-expect
1085all-host: maybe-all-guile
1086all-host: maybe-all-tk
1087all-host: maybe-all-libtermcap
1088all-host: maybe-all-utils
1089all-host: maybe-all-gnattools
700d40ca
ILT
1090@if lto-plugin-no-bootstrap
1091all-host: maybe-all-lto-plugin
1092@endif lto-plugin-no-bootstrap
1b6c0831
L
1093all-host: maybe-all-libcc1
1094all-host: maybe-all-gotools
c52c6897 1095
dd12c3a8 1096.PHONY: all-target
c52c6897 1097
e8a5fa9c 1098@if target-libstdc++-v3-no-bootstrap
c52c6897 1099all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1100@endif target-libstdc++-v3-no-bootstrap
5eb08693 1101@if target-libsanitizer-no-bootstrap
5286fdef 1102all-target: maybe-all-target-libsanitizer
5eb08693 1103@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1104@if target-libmpx-no-bootstrap
1105all-target: maybe-all-target-libmpx
1106@endif target-libmpx-no-bootstrap
95e43135
JBG
1107@if target-libvtv-no-bootstrap
1108all-target: maybe-all-target-libvtv
1109@endif target-libvtv-no-bootstrap
e78e02e6 1110all-target: maybe-all-target-libcilkrts
1b6c0831 1111all-target: maybe-all-target-liboffloadmic
c52c6897 1112all-target: maybe-all-target-libssp
c52c6897 1113all-target: maybe-all-target-newlib
f86e35b8 1114@if target-libgcc-no-bootstrap
6aa8ef82 1115all-target: maybe-all-target-libgcc
f86e35b8 1116@endif target-libgcc-no-bootstrap
2bf680c4 1117all-target: maybe-all-target-libbacktrace
e552509b 1118all-target: maybe-all-target-libquadmath
c52c6897
PB
1119all-target: maybe-all-target-libgfortran
1120all-target: maybe-all-target-libobjc
e552509b 1121all-target: maybe-all-target-libgo
c52c6897
PB
1122all-target: maybe-all-target-libtermcap
1123all-target: maybe-all-target-winsup
1124all-target: maybe-all-target-libgloss
c52c6897
PB
1125all-target: maybe-all-target-libffi
1126all-target: maybe-all-target-libjava
1127all-target: maybe-all-target-zlib
1128all-target: maybe-all-target-boehm-gc
c52c6897
PB
1129all-target: maybe-all-target-rda
1130all-target: maybe-all-target-libada
911e63d0 1131@if target-libgomp-no-bootstrap
c52c6897 1132all-target: maybe-all-target-libgomp
911e63d0 1133@endif target-libgomp-no-bootstrap
7ec59b9e
L
1134all-target: maybe-all-target-libitm
1135all-target: maybe-all-target-libatomic
252b5132
RH
1136
1137# Do a target for all the subdirectories. A ``make do-X'' will do a
1138# ``make X'' in all subdirectories (because, in general, there is a
1139# dependency (below) of X upon do-X, a ``make X'' will also do this,
1140# but it may do additional work as well).
e393202e 1141
2a4cbe27 1142.PHONY: do-info
f70224b5 1143do-info:
0aed8855 1144 @: $(MAKE); $(unstage)
e360f423
PB
1145 @r=`${PWD_COMMAND}`; export r; \
1146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1147 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1148 info-target
f70224b5 1149
e393202e 1150
2a4cbe27 1151.PHONY: info-host
c52c6897 1152
c52c6897
PB
1153info-host: maybe-info-bfd
1154info-host: maybe-info-opcodes
1155info-host: maybe-info-binutils
1156info-host: maybe-info-bison
f9806fa5 1157info-host: maybe-info-cgen
c52c6897 1158info-host: maybe-info-dejagnu
c52c6897
PB
1159info-host: maybe-info-etc
1160info-host: maybe-info-fastjar
c52c6897
PB
1161info-host: maybe-info-fixincludes
1162info-host: maybe-info-flex
1163info-host: maybe-info-gas
1164info-host: maybe-info-gcc
4b900473
PB
1165info-host: maybe-info-gmp
1166info-host: maybe-info-mpfr
e8a5fa9c 1167info-host: maybe-info-mpc
7ec59b9e 1168info-host: maybe-info-isl
1f53ca9a 1169info-host: maybe-info-libelf
93f9b408 1170info-host: maybe-info-gold
c52c6897 1171info-host: maybe-info-gprof
c52c6897
PB
1172info-host: maybe-info-intl
1173info-host: maybe-info-tcl
1174info-host: maybe-info-itcl
1175info-host: maybe-info-ld
2bf680c4 1176info-host: maybe-info-libbacktrace
c52c6897
PB
1177info-host: maybe-info-libcpp
1178info-host: maybe-info-libdecnumber
1179info-host: maybe-info-libgui
1180info-host: maybe-info-libiberty
1b6c0831 1181info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1182info-host: maybe-info-libiconv
c52c6897 1183info-host: maybe-info-m4
c52c6897 1184info-host: maybe-info-readline
c52c6897
PB
1185info-host: maybe-info-sid
1186info-host: maybe-info-sim
c52c6897 1187info-host: maybe-info-texinfo
c52c6897
PB
1188info-host: maybe-info-zlib
1189info-host: maybe-info-gdb
1190info-host: maybe-info-expect
1191info-host: maybe-info-guile
1192info-host: maybe-info-tk
1193info-host: maybe-info-libtermcap
1194info-host: maybe-info-utils
1195info-host: maybe-info-gnattools
700d40ca 1196info-host: maybe-info-lto-plugin
1b6c0831
L
1197info-host: maybe-info-libcc1
1198info-host: maybe-info-gotools
252b5132 1199
2a4cbe27 1200.PHONY: info-target
c52c6897
PB
1201
1202info-target: maybe-info-target-libstdc++-v3
5286fdef 1203info-target: maybe-info-target-libsanitizer
1b6c0831 1204info-target: maybe-info-target-libmpx
95e43135 1205info-target: maybe-info-target-libvtv
e78e02e6 1206info-target: maybe-info-target-libcilkrts
1b6c0831 1207info-target: maybe-info-target-liboffloadmic
c52c6897 1208info-target: maybe-info-target-libssp
c52c6897 1209info-target: maybe-info-target-newlib
6aa8ef82 1210info-target: maybe-info-target-libgcc
2bf680c4 1211info-target: maybe-info-target-libbacktrace
e552509b 1212info-target: maybe-info-target-libquadmath
c52c6897
PB
1213info-target: maybe-info-target-libgfortran
1214info-target: maybe-info-target-libobjc
e552509b 1215info-target: maybe-info-target-libgo
c52c6897
PB
1216info-target: maybe-info-target-libtermcap
1217info-target: maybe-info-target-winsup
1218info-target: maybe-info-target-libgloss
c52c6897
PB
1219info-target: maybe-info-target-libffi
1220info-target: maybe-info-target-libjava
1221info-target: maybe-info-target-zlib
1222info-target: maybe-info-target-boehm-gc
c52c6897
PB
1223info-target: maybe-info-target-rda
1224info-target: maybe-info-target-libada
1225info-target: maybe-info-target-libgomp
7ec59b9e
L
1226info-target: maybe-info-target-libitm
1227info-target: maybe-info-target-libatomic
252b5132 1228
4fa63067 1229.PHONY: do-dvi
f70224b5 1230do-dvi:
0aed8855 1231 @: $(MAKE); $(unstage)
e360f423
PB
1232 @r=`${PWD_COMMAND}`; export r; \
1233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1234 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1235 dvi-target
f70224b5 1236
2a4cbe27 1237
4fa63067 1238.PHONY: dvi-host
c52c6897 1239
c52c6897
PB
1240dvi-host: maybe-dvi-bfd
1241dvi-host: maybe-dvi-opcodes
1242dvi-host: maybe-dvi-binutils
1243dvi-host: maybe-dvi-bison
f9806fa5 1244dvi-host: maybe-dvi-cgen
c52c6897 1245dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1246dvi-host: maybe-dvi-etc
1247dvi-host: maybe-dvi-fastjar
c52c6897
PB
1248dvi-host: maybe-dvi-fixincludes
1249dvi-host: maybe-dvi-flex
1250dvi-host: maybe-dvi-gas
1251dvi-host: maybe-dvi-gcc
4b900473
PB
1252dvi-host: maybe-dvi-gmp
1253dvi-host: maybe-dvi-mpfr
e8a5fa9c 1254dvi-host: maybe-dvi-mpc
7ec59b9e 1255dvi-host: maybe-dvi-isl
1f53ca9a 1256dvi-host: maybe-dvi-libelf
93f9b408 1257dvi-host: maybe-dvi-gold
c52c6897 1258dvi-host: maybe-dvi-gprof
c52c6897
PB
1259dvi-host: maybe-dvi-intl
1260dvi-host: maybe-dvi-tcl
1261dvi-host: maybe-dvi-itcl
1262dvi-host: maybe-dvi-ld
2bf680c4 1263dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1264dvi-host: maybe-dvi-libcpp
1265dvi-host: maybe-dvi-libdecnumber
1266dvi-host: maybe-dvi-libgui
1267dvi-host: maybe-dvi-libiberty
1b6c0831 1268dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1269dvi-host: maybe-dvi-libiconv
c52c6897 1270dvi-host: maybe-dvi-m4
c52c6897 1271dvi-host: maybe-dvi-readline
c52c6897
PB
1272dvi-host: maybe-dvi-sid
1273dvi-host: maybe-dvi-sim
c52c6897 1274dvi-host: maybe-dvi-texinfo
c52c6897
PB
1275dvi-host: maybe-dvi-zlib
1276dvi-host: maybe-dvi-gdb
1277dvi-host: maybe-dvi-expect
1278dvi-host: maybe-dvi-guile
1279dvi-host: maybe-dvi-tk
1280dvi-host: maybe-dvi-libtermcap
1281dvi-host: maybe-dvi-utils
1282dvi-host: maybe-dvi-gnattools
700d40ca 1283dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1284dvi-host: maybe-dvi-libcc1
1285dvi-host: maybe-dvi-gotools
2a4cbe27 1286
4fa63067 1287.PHONY: dvi-target
c52c6897
PB
1288
1289dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1290dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1291dvi-target: maybe-dvi-target-libmpx
95e43135 1292dvi-target: maybe-dvi-target-libvtv
e78e02e6 1293dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1294dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1295dvi-target: maybe-dvi-target-libssp
c52c6897 1296dvi-target: maybe-dvi-target-newlib
6aa8ef82 1297dvi-target: maybe-dvi-target-libgcc
2bf680c4 1298dvi-target: maybe-dvi-target-libbacktrace
e552509b 1299dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1300dvi-target: maybe-dvi-target-libgfortran
1301dvi-target: maybe-dvi-target-libobjc
e552509b 1302dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1303dvi-target: maybe-dvi-target-libtermcap
1304dvi-target: maybe-dvi-target-winsup
1305dvi-target: maybe-dvi-target-libgloss
c52c6897
PB
1306dvi-target: maybe-dvi-target-libffi
1307dvi-target: maybe-dvi-target-libjava
1308dvi-target: maybe-dvi-target-zlib
1309dvi-target: maybe-dvi-target-boehm-gc
c52c6897
PB
1310dvi-target: maybe-dvi-target-rda
1311dvi-target: maybe-dvi-target-libada
1312dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1313dvi-target: maybe-dvi-target-libitm
1314dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1315
56a8fe78
DD
1316.PHONY: do-pdf
1317do-pdf:
1318 @: $(MAKE); $(unstage)
1319 @r=`${PWD_COMMAND}`; export r; \
1320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1321 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1322 pdf-target
1323
1324
1325.PHONY: pdf-host
1326
56a8fe78
DD
1327pdf-host: maybe-pdf-bfd
1328pdf-host: maybe-pdf-opcodes
1329pdf-host: maybe-pdf-binutils
1330pdf-host: maybe-pdf-bison
f9806fa5 1331pdf-host: maybe-pdf-cgen
56a8fe78 1332pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1333pdf-host: maybe-pdf-etc
1334pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1335pdf-host: maybe-pdf-fixincludes
1336pdf-host: maybe-pdf-flex
1337pdf-host: maybe-pdf-gas
1338pdf-host: maybe-pdf-gcc
4b900473
PB
1339pdf-host: maybe-pdf-gmp
1340pdf-host: maybe-pdf-mpfr
e8a5fa9c 1341pdf-host: maybe-pdf-mpc
7ec59b9e 1342pdf-host: maybe-pdf-isl
1f53ca9a 1343pdf-host: maybe-pdf-libelf
93f9b408 1344pdf-host: maybe-pdf-gold
56a8fe78 1345pdf-host: maybe-pdf-gprof
56a8fe78
DD
1346pdf-host: maybe-pdf-intl
1347pdf-host: maybe-pdf-tcl
1348pdf-host: maybe-pdf-itcl
1349pdf-host: maybe-pdf-ld
2bf680c4 1350pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1351pdf-host: maybe-pdf-libcpp
1352pdf-host: maybe-pdf-libdecnumber
1353pdf-host: maybe-pdf-libgui
1354pdf-host: maybe-pdf-libiberty
1b6c0831 1355pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1356pdf-host: maybe-pdf-libiconv
56a8fe78 1357pdf-host: maybe-pdf-m4
56a8fe78 1358pdf-host: maybe-pdf-readline
56a8fe78
DD
1359pdf-host: maybe-pdf-sid
1360pdf-host: maybe-pdf-sim
56a8fe78 1361pdf-host: maybe-pdf-texinfo
56a8fe78
DD
1362pdf-host: maybe-pdf-zlib
1363pdf-host: maybe-pdf-gdb
1364pdf-host: maybe-pdf-expect
1365pdf-host: maybe-pdf-guile
1366pdf-host: maybe-pdf-tk
1367pdf-host: maybe-pdf-libtermcap
1368pdf-host: maybe-pdf-utils
1369pdf-host: maybe-pdf-gnattools
700d40ca 1370pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1371pdf-host: maybe-pdf-libcc1
1372pdf-host: maybe-pdf-gotools
56a8fe78
DD
1373
1374.PHONY: pdf-target
1375
1376pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1377pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1378pdf-target: maybe-pdf-target-libmpx
95e43135 1379pdf-target: maybe-pdf-target-libvtv
e78e02e6 1380pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1381pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1382pdf-target: maybe-pdf-target-libssp
1383pdf-target: maybe-pdf-target-newlib
6aa8ef82 1384pdf-target: maybe-pdf-target-libgcc
2bf680c4 1385pdf-target: maybe-pdf-target-libbacktrace
e552509b 1386pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1387pdf-target: maybe-pdf-target-libgfortran
1388pdf-target: maybe-pdf-target-libobjc
e552509b 1389pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1390pdf-target: maybe-pdf-target-libtermcap
1391pdf-target: maybe-pdf-target-winsup
1392pdf-target: maybe-pdf-target-libgloss
56a8fe78
DD
1393pdf-target: maybe-pdf-target-libffi
1394pdf-target: maybe-pdf-target-libjava
1395pdf-target: maybe-pdf-target-zlib
1396pdf-target: maybe-pdf-target-boehm-gc
56a8fe78
DD
1397pdf-target: maybe-pdf-target-rda
1398pdf-target: maybe-pdf-target-libada
1399pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1400pdf-target: maybe-pdf-target-libitm
1401pdf-target: maybe-pdf-target-libatomic
56a8fe78 1402
6d389afc 1403.PHONY: do-html
f70224b5 1404do-html:
0aed8855 1405 @: $(MAKE); $(unstage)
e360f423
PB
1406 @r=`${PWD_COMMAND}`; export r; \
1407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1408 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1409 html-target
f70224b5 1410
6d389afc
MS
1411
1412.PHONY: html-host
c52c6897 1413
c52c6897
PB
1414html-host: maybe-html-bfd
1415html-host: maybe-html-opcodes
1416html-host: maybe-html-binutils
1417html-host: maybe-html-bison
f9806fa5 1418html-host: maybe-html-cgen
c52c6897 1419html-host: maybe-html-dejagnu
c52c6897
PB
1420html-host: maybe-html-etc
1421html-host: maybe-html-fastjar
c52c6897
PB
1422html-host: maybe-html-fixincludes
1423html-host: maybe-html-flex
1424html-host: maybe-html-gas
1425html-host: maybe-html-gcc
4b900473
PB
1426html-host: maybe-html-gmp
1427html-host: maybe-html-mpfr
e8a5fa9c 1428html-host: maybe-html-mpc
7ec59b9e 1429html-host: maybe-html-isl
1f53ca9a 1430html-host: maybe-html-libelf
93f9b408 1431html-host: maybe-html-gold
c52c6897 1432html-host: maybe-html-gprof
c52c6897
PB
1433html-host: maybe-html-intl
1434html-host: maybe-html-tcl
1435html-host: maybe-html-itcl
1436html-host: maybe-html-ld
2bf680c4 1437html-host: maybe-html-libbacktrace
c52c6897
PB
1438html-host: maybe-html-libcpp
1439html-host: maybe-html-libdecnumber
1440html-host: maybe-html-libgui
1441html-host: maybe-html-libiberty
1b6c0831 1442html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1443html-host: maybe-html-libiconv
c52c6897 1444html-host: maybe-html-m4
c52c6897 1445html-host: maybe-html-readline
c52c6897
PB
1446html-host: maybe-html-sid
1447html-host: maybe-html-sim
c52c6897 1448html-host: maybe-html-texinfo
c52c6897
PB
1449html-host: maybe-html-zlib
1450html-host: maybe-html-gdb
1451html-host: maybe-html-expect
1452html-host: maybe-html-guile
1453html-host: maybe-html-tk
1454html-host: maybe-html-libtermcap
1455html-host: maybe-html-utils
1456html-host: maybe-html-gnattools
700d40ca 1457html-host: maybe-html-lto-plugin
1b6c0831
L
1458html-host: maybe-html-libcc1
1459html-host: maybe-html-gotools
6d389afc
MS
1460
1461.PHONY: html-target
c52c6897
PB
1462
1463html-target: maybe-html-target-libstdc++-v3
5286fdef 1464html-target: maybe-html-target-libsanitizer
1b6c0831 1465html-target: maybe-html-target-libmpx
95e43135 1466html-target: maybe-html-target-libvtv
e78e02e6 1467html-target: maybe-html-target-libcilkrts
1b6c0831 1468html-target: maybe-html-target-liboffloadmic
c52c6897 1469html-target: maybe-html-target-libssp
c52c6897 1470html-target: maybe-html-target-newlib
6aa8ef82 1471html-target: maybe-html-target-libgcc
2bf680c4 1472html-target: maybe-html-target-libbacktrace
e552509b 1473html-target: maybe-html-target-libquadmath
c52c6897
PB
1474html-target: maybe-html-target-libgfortran
1475html-target: maybe-html-target-libobjc
e552509b 1476html-target: maybe-html-target-libgo
c52c6897
PB
1477html-target: maybe-html-target-libtermcap
1478html-target: maybe-html-target-winsup
1479html-target: maybe-html-target-libgloss
c52c6897
PB
1480html-target: maybe-html-target-libffi
1481html-target: maybe-html-target-libjava
1482html-target: maybe-html-target-zlib
1483html-target: maybe-html-target-boehm-gc
c52c6897
PB
1484html-target: maybe-html-target-rda
1485html-target: maybe-html-target-libada
1486html-target: maybe-html-target-libgomp
7ec59b9e
L
1487html-target: maybe-html-target-libitm
1488html-target: maybe-html-target-libatomic
6d389afc 1489
4fa63067 1490.PHONY: do-TAGS
f70224b5 1491do-TAGS:
0aed8855 1492 @: $(MAKE); $(unstage)
e360f423
PB
1493 @r=`${PWD_COMMAND}`; export r; \
1494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1495 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1496 TAGS-target
f70224b5 1497
2a4cbe27 1498
4fa63067 1499.PHONY: TAGS-host
c52c6897 1500
c52c6897
PB
1501TAGS-host: maybe-TAGS-bfd
1502TAGS-host: maybe-TAGS-opcodes
1503TAGS-host: maybe-TAGS-binutils
1504TAGS-host: maybe-TAGS-bison
f9806fa5 1505TAGS-host: maybe-TAGS-cgen
c52c6897 1506TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1507TAGS-host: maybe-TAGS-etc
1508TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1509TAGS-host: maybe-TAGS-fixincludes
1510TAGS-host: maybe-TAGS-flex
1511TAGS-host: maybe-TAGS-gas
1512TAGS-host: maybe-TAGS-gcc
4b900473
PB
1513TAGS-host: maybe-TAGS-gmp
1514TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1515TAGS-host: maybe-TAGS-mpc
7ec59b9e 1516TAGS-host: maybe-TAGS-isl
1f53ca9a 1517TAGS-host: maybe-TAGS-libelf
93f9b408 1518TAGS-host: maybe-TAGS-gold
c52c6897 1519TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1520TAGS-host: maybe-TAGS-intl
1521TAGS-host: maybe-TAGS-tcl
1522TAGS-host: maybe-TAGS-itcl
1523TAGS-host: maybe-TAGS-ld
2bf680c4 1524TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1525TAGS-host: maybe-TAGS-libcpp
1526TAGS-host: maybe-TAGS-libdecnumber
1527TAGS-host: maybe-TAGS-libgui
1528TAGS-host: maybe-TAGS-libiberty
1b6c0831 1529TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1530TAGS-host: maybe-TAGS-libiconv
c52c6897 1531TAGS-host: maybe-TAGS-m4
c52c6897 1532TAGS-host: maybe-TAGS-readline
c52c6897
PB
1533TAGS-host: maybe-TAGS-sid
1534TAGS-host: maybe-TAGS-sim
c52c6897 1535TAGS-host: maybe-TAGS-texinfo
c52c6897
PB
1536TAGS-host: maybe-TAGS-zlib
1537TAGS-host: maybe-TAGS-gdb
1538TAGS-host: maybe-TAGS-expect
1539TAGS-host: maybe-TAGS-guile
1540TAGS-host: maybe-TAGS-tk
1541TAGS-host: maybe-TAGS-libtermcap
1542TAGS-host: maybe-TAGS-utils
1543TAGS-host: maybe-TAGS-gnattools
700d40ca 1544TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1545TAGS-host: maybe-TAGS-libcc1
1546TAGS-host: maybe-TAGS-gotools
2a4cbe27 1547
4fa63067 1548.PHONY: TAGS-target
c52c6897
PB
1549
1550TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1551TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1552TAGS-target: maybe-TAGS-target-libmpx
95e43135 1553TAGS-target: maybe-TAGS-target-libvtv
e78e02e6 1554TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1555TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1556TAGS-target: maybe-TAGS-target-libssp
c52c6897 1557TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1558TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1559TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1560TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1561TAGS-target: maybe-TAGS-target-libgfortran
1562TAGS-target: maybe-TAGS-target-libobjc
e552509b 1563TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1564TAGS-target: maybe-TAGS-target-libtermcap
1565TAGS-target: maybe-TAGS-target-winsup
1566TAGS-target: maybe-TAGS-target-libgloss
c52c6897
PB
1567TAGS-target: maybe-TAGS-target-libffi
1568TAGS-target: maybe-TAGS-target-libjava
1569TAGS-target: maybe-TAGS-target-zlib
1570TAGS-target: maybe-TAGS-target-boehm-gc
c52c6897
PB
1571TAGS-target: maybe-TAGS-target-rda
1572TAGS-target: maybe-TAGS-target-libada
1573TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1574TAGS-target: maybe-TAGS-target-libitm
1575TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1576
4fa63067 1577.PHONY: do-install-info
f70224b5 1578do-install-info:
0aed8855 1579 @: $(MAKE); $(unstage)
e360f423
PB
1580 @r=`${PWD_COMMAND}`; export r; \
1581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1582 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1583 install-info-target
f70224b5 1584
a2592b1b 1585
4fa63067 1586.PHONY: install-info-host
c52c6897 1587
c52c6897
PB
1588install-info-host: maybe-install-info-bfd
1589install-info-host: maybe-install-info-opcodes
1590install-info-host: maybe-install-info-binutils
1591install-info-host: maybe-install-info-bison
f9806fa5 1592install-info-host: maybe-install-info-cgen
c52c6897 1593install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1594install-info-host: maybe-install-info-etc
1595install-info-host: maybe-install-info-fastjar
c52c6897
PB
1596install-info-host: maybe-install-info-fixincludes
1597install-info-host: maybe-install-info-flex
1598install-info-host: maybe-install-info-gas
1599install-info-host: maybe-install-info-gcc
4b900473
PB
1600install-info-host: maybe-install-info-gmp
1601install-info-host: maybe-install-info-mpfr
e8a5fa9c 1602install-info-host: maybe-install-info-mpc
7ec59b9e 1603install-info-host: maybe-install-info-isl
1f53ca9a 1604install-info-host: maybe-install-info-libelf
93f9b408 1605install-info-host: maybe-install-info-gold
c52c6897 1606install-info-host: maybe-install-info-gprof
c52c6897
PB
1607install-info-host: maybe-install-info-intl
1608install-info-host: maybe-install-info-tcl
1609install-info-host: maybe-install-info-itcl
1610install-info-host: maybe-install-info-ld
2bf680c4 1611install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1612install-info-host: maybe-install-info-libcpp
1613install-info-host: maybe-install-info-libdecnumber
1614install-info-host: maybe-install-info-libgui
1615install-info-host: maybe-install-info-libiberty
1b6c0831 1616install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1617install-info-host: maybe-install-info-libiconv
c52c6897 1618install-info-host: maybe-install-info-m4
c52c6897 1619install-info-host: maybe-install-info-readline
c52c6897
PB
1620install-info-host: maybe-install-info-sid
1621install-info-host: maybe-install-info-sim
c52c6897 1622install-info-host: maybe-install-info-texinfo
c52c6897
PB
1623install-info-host: maybe-install-info-zlib
1624install-info-host: maybe-install-info-gdb
1625install-info-host: maybe-install-info-expect
1626install-info-host: maybe-install-info-guile
1627install-info-host: maybe-install-info-tk
1628install-info-host: maybe-install-info-libtermcap
1629install-info-host: maybe-install-info-utils
1630install-info-host: maybe-install-info-gnattools
700d40ca 1631install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1632install-info-host: maybe-install-info-libcc1
1633install-info-host: maybe-install-info-gotools
a2592b1b 1634
4fa63067 1635.PHONY: install-info-target
c52c6897
PB
1636
1637install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1638install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1639install-info-target: maybe-install-info-target-libmpx
95e43135 1640install-info-target: maybe-install-info-target-libvtv
e78e02e6 1641install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1642install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1643install-info-target: maybe-install-info-target-libssp
c52c6897 1644install-info-target: maybe-install-info-target-newlib
6aa8ef82 1645install-info-target: maybe-install-info-target-libgcc
2bf680c4 1646install-info-target: maybe-install-info-target-libbacktrace
e552509b 1647install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1648install-info-target: maybe-install-info-target-libgfortran
1649install-info-target: maybe-install-info-target-libobjc
e552509b 1650install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1651install-info-target: maybe-install-info-target-libtermcap
1652install-info-target: maybe-install-info-target-winsup
1653install-info-target: maybe-install-info-target-libgloss
c52c6897
PB
1654install-info-target: maybe-install-info-target-libffi
1655install-info-target: maybe-install-info-target-libjava
1656install-info-target: maybe-install-info-target-zlib
1657install-info-target: maybe-install-info-target-boehm-gc
c52c6897
PB
1658install-info-target: maybe-install-info-target-rda
1659install-info-target: maybe-install-info-target-libada
1660install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1661install-info-target: maybe-install-info-target-libitm
1662install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1663
a3ca38d2
DD
1664.PHONY: do-install-pdf
1665do-install-pdf:
1666 @: $(MAKE); $(unstage)
1667 @r=`${PWD_COMMAND}`; export r; \
1668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1669 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1670 install-pdf-target
1671
1672
1673.PHONY: install-pdf-host
1674
a3ca38d2
DD
1675install-pdf-host: maybe-install-pdf-bfd
1676install-pdf-host: maybe-install-pdf-opcodes
1677install-pdf-host: maybe-install-pdf-binutils
1678install-pdf-host: maybe-install-pdf-bison
f9806fa5 1679install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1680install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1681install-pdf-host: maybe-install-pdf-etc
1682install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1683install-pdf-host: maybe-install-pdf-fixincludes
1684install-pdf-host: maybe-install-pdf-flex
1685install-pdf-host: maybe-install-pdf-gas
1686install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1687install-pdf-host: maybe-install-pdf-gmp
1688install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1689install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1690install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1691install-pdf-host: maybe-install-pdf-libelf
93f9b408 1692install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1693install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1694install-pdf-host: maybe-install-pdf-intl
1695install-pdf-host: maybe-install-pdf-tcl
1696install-pdf-host: maybe-install-pdf-itcl
1697install-pdf-host: maybe-install-pdf-ld
2bf680c4 1698install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1699install-pdf-host: maybe-install-pdf-libcpp
1700install-pdf-host: maybe-install-pdf-libdecnumber
1701install-pdf-host: maybe-install-pdf-libgui
1702install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1703install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1704install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1705install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1706install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1707install-pdf-host: maybe-install-pdf-sid
1708install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1709install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2
DD
1710install-pdf-host: maybe-install-pdf-zlib
1711install-pdf-host: maybe-install-pdf-gdb
1712install-pdf-host: maybe-install-pdf-expect
1713install-pdf-host: maybe-install-pdf-guile
1714install-pdf-host: maybe-install-pdf-tk
1715install-pdf-host: maybe-install-pdf-libtermcap
1716install-pdf-host: maybe-install-pdf-utils
1717install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1718install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1719install-pdf-host: maybe-install-pdf-libcc1
1720install-pdf-host: maybe-install-pdf-gotools
a3ca38d2
DD
1721
1722.PHONY: install-pdf-target
1723
1724install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1725install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1726install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1727install-pdf-target: maybe-install-pdf-target-libvtv
e78e02e6 1728install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1729install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1730install-pdf-target: maybe-install-pdf-target-libssp
1731install-pdf-target: maybe-install-pdf-target-newlib
1732install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1733install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1734install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1735install-pdf-target: maybe-install-pdf-target-libgfortran
1736install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1737install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1738install-pdf-target: maybe-install-pdf-target-libtermcap
1739install-pdf-target: maybe-install-pdf-target-winsup
1740install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2
DD
1741install-pdf-target: maybe-install-pdf-target-libffi
1742install-pdf-target: maybe-install-pdf-target-libjava
1743install-pdf-target: maybe-install-pdf-target-zlib
1744install-pdf-target: maybe-install-pdf-target-boehm-gc
a3ca38d2
DD
1745install-pdf-target: maybe-install-pdf-target-rda
1746install-pdf-target: maybe-install-pdf-target-libada
1747install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1748install-pdf-target: maybe-install-pdf-target-libitm
1749install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1750
108a6f8e
CD
1751.PHONY: do-install-html
1752do-install-html:
1753 @: $(MAKE); $(unstage)
1754 @r=`${PWD_COMMAND}`; export r; \
1755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1756 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1757 install-html-target
1758
1759
1760.PHONY: install-html-host
1761
108a6f8e
CD
1762install-html-host: maybe-install-html-bfd
1763install-html-host: maybe-install-html-opcodes
1764install-html-host: maybe-install-html-binutils
1765install-html-host: maybe-install-html-bison
f9806fa5 1766install-html-host: maybe-install-html-cgen
108a6f8e 1767install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1768install-html-host: maybe-install-html-etc
1769install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1770install-html-host: maybe-install-html-fixincludes
1771install-html-host: maybe-install-html-flex
1772install-html-host: maybe-install-html-gas
1773install-html-host: maybe-install-html-gcc
4b900473
PB
1774install-html-host: maybe-install-html-gmp
1775install-html-host: maybe-install-html-mpfr
e8a5fa9c 1776install-html-host: maybe-install-html-mpc
7ec59b9e 1777install-html-host: maybe-install-html-isl
1f53ca9a 1778install-html-host: maybe-install-html-libelf
93f9b408 1779install-html-host: maybe-install-html-gold
108a6f8e 1780install-html-host: maybe-install-html-gprof
108a6f8e
CD
1781install-html-host: maybe-install-html-intl
1782install-html-host: maybe-install-html-tcl
1783install-html-host: maybe-install-html-itcl
1784install-html-host: maybe-install-html-ld
2bf680c4 1785install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1786install-html-host: maybe-install-html-libcpp
1787install-html-host: maybe-install-html-libdecnumber
1788install-html-host: maybe-install-html-libgui
1789install-html-host: maybe-install-html-libiberty
1b6c0831 1790install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1791install-html-host: maybe-install-html-libiconv
108a6f8e 1792install-html-host: maybe-install-html-m4
108a6f8e 1793install-html-host: maybe-install-html-readline
108a6f8e
CD
1794install-html-host: maybe-install-html-sid
1795install-html-host: maybe-install-html-sim
108a6f8e 1796install-html-host: maybe-install-html-texinfo
108a6f8e
CD
1797install-html-host: maybe-install-html-zlib
1798install-html-host: maybe-install-html-gdb
1799install-html-host: maybe-install-html-expect
1800install-html-host: maybe-install-html-guile
1801install-html-host: maybe-install-html-tk
1802install-html-host: maybe-install-html-libtermcap
1803install-html-host: maybe-install-html-utils
1804install-html-host: maybe-install-html-gnattools
700d40ca 1805install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1806install-html-host: maybe-install-html-libcc1
1807install-html-host: maybe-install-html-gotools
108a6f8e
CD
1808
1809.PHONY: install-html-target
1810
1811install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1812install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1813install-html-target: maybe-install-html-target-libmpx
95e43135 1814install-html-target: maybe-install-html-target-libvtv
e78e02e6 1815install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1816install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1817install-html-target: maybe-install-html-target-libssp
108a6f8e 1818install-html-target: maybe-install-html-target-newlib
6aa8ef82 1819install-html-target: maybe-install-html-target-libgcc
2bf680c4 1820install-html-target: maybe-install-html-target-libbacktrace
e552509b 1821install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1822install-html-target: maybe-install-html-target-libgfortran
1823install-html-target: maybe-install-html-target-libobjc
e552509b 1824install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1825install-html-target: maybe-install-html-target-libtermcap
1826install-html-target: maybe-install-html-target-winsup
1827install-html-target: maybe-install-html-target-libgloss
108a6f8e
CD
1828install-html-target: maybe-install-html-target-libffi
1829install-html-target: maybe-install-html-target-libjava
1830install-html-target: maybe-install-html-target-zlib
1831install-html-target: maybe-install-html-target-boehm-gc
108a6f8e
CD
1832install-html-target: maybe-install-html-target-rda
1833install-html-target: maybe-install-html-target-libada
1834install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1835install-html-target: maybe-install-html-target-libitm
1836install-html-target: maybe-install-html-target-libatomic
108a6f8e 1837
2a4cbe27 1838.PHONY: do-installcheck
f70224b5 1839do-installcheck:
0aed8855 1840 @: $(MAKE); $(unstage)
e360f423
PB
1841 @r=`${PWD_COMMAND}`; export r; \
1842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1843 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1844 installcheck-target
f70224b5 1845
2a4cbe27
NN
1846
1847.PHONY: installcheck-host
c52c6897 1848
c52c6897
PB
1849installcheck-host: maybe-installcheck-bfd
1850installcheck-host: maybe-installcheck-opcodes
1851installcheck-host: maybe-installcheck-binutils
1852installcheck-host: maybe-installcheck-bison
f9806fa5 1853installcheck-host: maybe-installcheck-cgen
c52c6897 1854installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1855installcheck-host: maybe-installcheck-etc
1856installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1857installcheck-host: maybe-installcheck-fixincludes
1858installcheck-host: maybe-installcheck-flex
1859installcheck-host: maybe-installcheck-gas
1860installcheck-host: maybe-installcheck-gcc
4b900473
PB
1861installcheck-host: maybe-installcheck-gmp
1862installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1863installcheck-host: maybe-installcheck-mpc
7ec59b9e 1864installcheck-host: maybe-installcheck-isl
1f53ca9a 1865installcheck-host: maybe-installcheck-libelf
93f9b408 1866installcheck-host: maybe-installcheck-gold
c52c6897 1867installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1868installcheck-host: maybe-installcheck-intl
1869installcheck-host: maybe-installcheck-tcl
1870installcheck-host: maybe-installcheck-itcl
1871installcheck-host: maybe-installcheck-ld
2bf680c4 1872installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1873installcheck-host: maybe-installcheck-libcpp
1874installcheck-host: maybe-installcheck-libdecnumber
1875installcheck-host: maybe-installcheck-libgui
1876installcheck-host: maybe-installcheck-libiberty
1b6c0831 1877installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1878installcheck-host: maybe-installcheck-libiconv
c52c6897 1879installcheck-host: maybe-installcheck-m4
c52c6897 1880installcheck-host: maybe-installcheck-readline
c52c6897
PB
1881installcheck-host: maybe-installcheck-sid
1882installcheck-host: maybe-installcheck-sim
c52c6897 1883installcheck-host: maybe-installcheck-texinfo
c52c6897
PB
1884installcheck-host: maybe-installcheck-zlib
1885installcheck-host: maybe-installcheck-gdb
1886installcheck-host: maybe-installcheck-expect
1887installcheck-host: maybe-installcheck-guile
1888installcheck-host: maybe-installcheck-tk
1889installcheck-host: maybe-installcheck-libtermcap
1890installcheck-host: maybe-installcheck-utils
1891installcheck-host: maybe-installcheck-gnattools
700d40ca 1892installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1893installcheck-host: maybe-installcheck-libcc1
1894installcheck-host: maybe-installcheck-gotools
2a4cbe27
NN
1895
1896.PHONY: installcheck-target
c52c6897
PB
1897
1898installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1899installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1900installcheck-target: maybe-installcheck-target-libmpx
95e43135 1901installcheck-target: maybe-installcheck-target-libvtv
e78e02e6 1902installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1903installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1904installcheck-target: maybe-installcheck-target-libssp
c52c6897 1905installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1906installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1907installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1908installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1909installcheck-target: maybe-installcheck-target-libgfortran
1910installcheck-target: maybe-installcheck-target-libobjc
e552509b 1911installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1912installcheck-target: maybe-installcheck-target-libtermcap
1913installcheck-target: maybe-installcheck-target-winsup
1914installcheck-target: maybe-installcheck-target-libgloss
c52c6897
PB
1915installcheck-target: maybe-installcheck-target-libffi
1916installcheck-target: maybe-installcheck-target-libjava
1917installcheck-target: maybe-installcheck-target-zlib
1918installcheck-target: maybe-installcheck-target-boehm-gc
c52c6897
PB
1919installcheck-target: maybe-installcheck-target-rda
1920installcheck-target: maybe-installcheck-target-libada
1921installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1922installcheck-target: maybe-installcheck-target-libitm
1923installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1924
4fa63067 1925.PHONY: do-mostlyclean
f70224b5 1926do-mostlyclean:
0aed8855 1927 @: $(MAKE); $(unstage)
e360f423
PB
1928 @r=`${PWD_COMMAND}`; export r; \
1929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1930 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1931 mostlyclean-target
f70224b5 1932
2a4cbe27 1933
4fa63067 1934.PHONY: mostlyclean-host
c52c6897 1935
c52c6897
PB
1936mostlyclean-host: maybe-mostlyclean-bfd
1937mostlyclean-host: maybe-mostlyclean-opcodes
1938mostlyclean-host: maybe-mostlyclean-binutils
1939mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1940mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1941mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1942mostlyclean-host: maybe-mostlyclean-etc
1943mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1944mostlyclean-host: maybe-mostlyclean-fixincludes
1945mostlyclean-host: maybe-mostlyclean-flex
1946mostlyclean-host: maybe-mostlyclean-gas
1947mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1948mostlyclean-host: maybe-mostlyclean-gmp
1949mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1950mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1951mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1952mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1953mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1954mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1955mostlyclean-host: maybe-mostlyclean-intl
1956mostlyclean-host: maybe-mostlyclean-tcl
1957mostlyclean-host: maybe-mostlyclean-itcl
1958mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1959mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1960mostlyclean-host: maybe-mostlyclean-libcpp
1961mostlyclean-host: maybe-mostlyclean-libdecnumber
1962mostlyclean-host: maybe-mostlyclean-libgui
1963mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1964mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1965mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1966mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1967mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1968mostlyclean-host: maybe-mostlyclean-sid
1969mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1970mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897
PB
1971mostlyclean-host: maybe-mostlyclean-zlib
1972mostlyclean-host: maybe-mostlyclean-gdb
1973mostlyclean-host: maybe-mostlyclean-expect
1974mostlyclean-host: maybe-mostlyclean-guile
1975mostlyclean-host: maybe-mostlyclean-tk
1976mostlyclean-host: maybe-mostlyclean-libtermcap
1977mostlyclean-host: maybe-mostlyclean-utils
1978mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1979mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
1980mostlyclean-host: maybe-mostlyclean-libcc1
1981mostlyclean-host: maybe-mostlyclean-gotools
2a4cbe27 1982
4fa63067 1983.PHONY: mostlyclean-target
c52c6897
PB
1984
1985mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 1986mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 1987mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 1988mostlyclean-target: maybe-mostlyclean-target-libvtv
e78e02e6 1989mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 1990mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 1991mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 1992mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 1993mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 1994mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 1995mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
1996mostlyclean-target: maybe-mostlyclean-target-libgfortran
1997mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 1998mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
1999mostlyclean-target: maybe-mostlyclean-target-libtermcap
2000mostlyclean-target: maybe-mostlyclean-target-winsup
2001mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897
PB
2002mostlyclean-target: maybe-mostlyclean-target-libffi
2003mostlyclean-target: maybe-mostlyclean-target-libjava
2004mostlyclean-target: maybe-mostlyclean-target-zlib
2005mostlyclean-target: maybe-mostlyclean-target-boehm-gc
c52c6897
PB
2006mostlyclean-target: maybe-mostlyclean-target-rda
2007mostlyclean-target: maybe-mostlyclean-target-libada
2008mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2009mostlyclean-target: maybe-mostlyclean-target-libitm
2010mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2011
4fa63067 2012.PHONY: do-clean
f70224b5 2013do-clean:
0aed8855 2014 @: $(MAKE); $(unstage)
e360f423
PB
2015 @r=`${PWD_COMMAND}`; export r; \
2016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2017 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2018 clean-target
f70224b5 2019
2a4cbe27 2020
4fa63067 2021.PHONY: clean-host
c52c6897 2022
c52c6897
PB
2023clean-host: maybe-clean-bfd
2024clean-host: maybe-clean-opcodes
2025clean-host: maybe-clean-binutils
2026clean-host: maybe-clean-bison
f9806fa5 2027clean-host: maybe-clean-cgen
c52c6897 2028clean-host: maybe-clean-dejagnu
c52c6897
PB
2029clean-host: maybe-clean-etc
2030clean-host: maybe-clean-fastjar
c52c6897
PB
2031clean-host: maybe-clean-fixincludes
2032clean-host: maybe-clean-flex
2033clean-host: maybe-clean-gas
2034clean-host: maybe-clean-gcc
4b900473
PB
2035clean-host: maybe-clean-gmp
2036clean-host: maybe-clean-mpfr
e8a5fa9c 2037clean-host: maybe-clean-mpc
7ec59b9e 2038clean-host: maybe-clean-isl
1f53ca9a 2039clean-host: maybe-clean-libelf
93f9b408 2040clean-host: maybe-clean-gold
c52c6897 2041clean-host: maybe-clean-gprof
c52c6897
PB
2042clean-host: maybe-clean-intl
2043clean-host: maybe-clean-tcl
2044clean-host: maybe-clean-itcl
2045clean-host: maybe-clean-ld
2bf680c4 2046clean-host: maybe-clean-libbacktrace
c52c6897
PB
2047clean-host: maybe-clean-libcpp
2048clean-host: maybe-clean-libdecnumber
2049clean-host: maybe-clean-libgui
2050clean-host: maybe-clean-libiberty
1b6c0831 2051clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2052clean-host: maybe-clean-libiconv
c52c6897 2053clean-host: maybe-clean-m4
c52c6897 2054clean-host: maybe-clean-readline
c52c6897
PB
2055clean-host: maybe-clean-sid
2056clean-host: maybe-clean-sim
c52c6897 2057clean-host: maybe-clean-texinfo
c52c6897
PB
2058clean-host: maybe-clean-zlib
2059clean-host: maybe-clean-gdb
2060clean-host: maybe-clean-expect
2061clean-host: maybe-clean-guile
2062clean-host: maybe-clean-tk
2063clean-host: maybe-clean-libtermcap
2064clean-host: maybe-clean-utils
2065clean-host: maybe-clean-gnattools
700d40ca 2066clean-host: maybe-clean-lto-plugin
1b6c0831
L
2067clean-host: maybe-clean-libcc1
2068clean-host: maybe-clean-gotools
2a4cbe27 2069
4fa63067 2070.PHONY: clean-target
c52c6897
PB
2071
2072clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2073clean-target: maybe-clean-target-libsanitizer
1b6c0831 2074clean-target: maybe-clean-target-libmpx
95e43135 2075clean-target: maybe-clean-target-libvtv
e78e02e6 2076clean-target: maybe-clean-target-libcilkrts
1b6c0831 2077clean-target: maybe-clean-target-liboffloadmic
c52c6897 2078clean-target: maybe-clean-target-libssp
c52c6897 2079clean-target: maybe-clean-target-newlib
6aa8ef82 2080clean-target: maybe-clean-target-libgcc
2bf680c4 2081clean-target: maybe-clean-target-libbacktrace
e552509b 2082clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2083clean-target: maybe-clean-target-libgfortran
2084clean-target: maybe-clean-target-libobjc
e552509b 2085clean-target: maybe-clean-target-libgo
c52c6897
PB
2086clean-target: maybe-clean-target-libtermcap
2087clean-target: maybe-clean-target-winsup
2088clean-target: maybe-clean-target-libgloss
c52c6897
PB
2089clean-target: maybe-clean-target-libffi
2090clean-target: maybe-clean-target-libjava
2091clean-target: maybe-clean-target-zlib
2092clean-target: maybe-clean-target-boehm-gc
c52c6897
PB
2093clean-target: maybe-clean-target-rda
2094clean-target: maybe-clean-target-libada
2095clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2096clean-target: maybe-clean-target-libitm
2097clean-target: maybe-clean-target-libatomic
2a4cbe27 2098
4fa63067 2099.PHONY: do-distclean
f70224b5 2100do-distclean:
0aed8855 2101 @: $(MAKE); $(unstage)
e360f423
PB
2102 @r=`${PWD_COMMAND}`; export r; \
2103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2104 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2105 distclean-target
f70224b5 2106
2a4cbe27 2107
4fa63067 2108.PHONY: distclean-host
c52c6897 2109
c52c6897
PB
2110distclean-host: maybe-distclean-bfd
2111distclean-host: maybe-distclean-opcodes
2112distclean-host: maybe-distclean-binutils
2113distclean-host: maybe-distclean-bison
f9806fa5 2114distclean-host: maybe-distclean-cgen
c52c6897 2115distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2116distclean-host: maybe-distclean-etc
2117distclean-host: maybe-distclean-fastjar
c52c6897
PB
2118distclean-host: maybe-distclean-fixincludes
2119distclean-host: maybe-distclean-flex
2120distclean-host: maybe-distclean-gas
2121distclean-host: maybe-distclean-gcc
4b900473
PB
2122distclean-host: maybe-distclean-gmp
2123distclean-host: maybe-distclean-mpfr
e8a5fa9c 2124distclean-host: maybe-distclean-mpc
7ec59b9e 2125distclean-host: maybe-distclean-isl
1f53ca9a 2126distclean-host: maybe-distclean-libelf
93f9b408 2127distclean-host: maybe-distclean-gold
c52c6897 2128distclean-host: maybe-distclean-gprof
c52c6897
PB
2129distclean-host: maybe-distclean-intl
2130distclean-host: maybe-distclean-tcl
2131distclean-host: maybe-distclean-itcl
2132distclean-host: maybe-distclean-ld
2bf680c4 2133distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2134distclean-host: maybe-distclean-libcpp
2135distclean-host: maybe-distclean-libdecnumber
2136distclean-host: maybe-distclean-libgui
2137distclean-host: maybe-distclean-libiberty
1b6c0831 2138distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2139distclean-host: maybe-distclean-libiconv
c52c6897 2140distclean-host: maybe-distclean-m4
c52c6897 2141distclean-host: maybe-distclean-readline
c52c6897
PB
2142distclean-host: maybe-distclean-sid
2143distclean-host: maybe-distclean-sim
c52c6897 2144distclean-host: maybe-distclean-texinfo
c52c6897
PB
2145distclean-host: maybe-distclean-zlib
2146distclean-host: maybe-distclean-gdb
2147distclean-host: maybe-distclean-expect
2148distclean-host: maybe-distclean-guile
2149distclean-host: maybe-distclean-tk
2150distclean-host: maybe-distclean-libtermcap
2151distclean-host: maybe-distclean-utils
2152distclean-host: maybe-distclean-gnattools
700d40ca 2153distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2154distclean-host: maybe-distclean-libcc1
2155distclean-host: maybe-distclean-gotools
2a4cbe27 2156
4fa63067 2157.PHONY: distclean-target
c52c6897
PB
2158
2159distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2160distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2161distclean-target: maybe-distclean-target-libmpx
95e43135 2162distclean-target: maybe-distclean-target-libvtv
e78e02e6 2163distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2164distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2165distclean-target: maybe-distclean-target-libssp
c52c6897 2166distclean-target: maybe-distclean-target-newlib
6aa8ef82 2167distclean-target: maybe-distclean-target-libgcc
2bf680c4 2168distclean-target: maybe-distclean-target-libbacktrace
e552509b 2169distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2170distclean-target: maybe-distclean-target-libgfortran
2171distclean-target: maybe-distclean-target-libobjc
e552509b 2172distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2173distclean-target: maybe-distclean-target-libtermcap
2174distclean-target: maybe-distclean-target-winsup
2175distclean-target: maybe-distclean-target-libgloss
c52c6897
PB
2176distclean-target: maybe-distclean-target-libffi
2177distclean-target: maybe-distclean-target-libjava
2178distclean-target: maybe-distclean-target-zlib
2179distclean-target: maybe-distclean-target-boehm-gc
c52c6897
PB
2180distclean-target: maybe-distclean-target-rda
2181distclean-target: maybe-distclean-target-libada
2182distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2183distclean-target: maybe-distclean-target-libitm
2184distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2185
4fa63067 2186.PHONY: do-maintainer-clean
f70224b5 2187do-maintainer-clean:
0aed8855 2188 @: $(MAKE); $(unstage)
e360f423
PB
2189 @r=`${PWD_COMMAND}`; export r; \
2190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2191 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2192 maintainer-clean-target
f70224b5 2193
2a4cbe27 2194
4fa63067 2195.PHONY: maintainer-clean-host
c52c6897 2196
c52c6897
PB
2197maintainer-clean-host: maybe-maintainer-clean-bfd
2198maintainer-clean-host: maybe-maintainer-clean-opcodes
2199maintainer-clean-host: maybe-maintainer-clean-binutils
2200maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2201maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2202maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2203maintainer-clean-host: maybe-maintainer-clean-etc
2204maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2205maintainer-clean-host: maybe-maintainer-clean-fixincludes
2206maintainer-clean-host: maybe-maintainer-clean-flex
2207maintainer-clean-host: maybe-maintainer-clean-gas
2208maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2209maintainer-clean-host: maybe-maintainer-clean-gmp
2210maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2211maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2212maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2213maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2214maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2215maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2216maintainer-clean-host: maybe-maintainer-clean-intl
2217maintainer-clean-host: maybe-maintainer-clean-tcl
2218maintainer-clean-host: maybe-maintainer-clean-itcl
2219maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2220maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2221maintainer-clean-host: maybe-maintainer-clean-libcpp
2222maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2223maintainer-clean-host: maybe-maintainer-clean-libgui
2224maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2225maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2226maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2227maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2228maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2229maintainer-clean-host: maybe-maintainer-clean-sid
2230maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2231maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897
PB
2232maintainer-clean-host: maybe-maintainer-clean-zlib
2233maintainer-clean-host: maybe-maintainer-clean-gdb
2234maintainer-clean-host: maybe-maintainer-clean-expect
2235maintainer-clean-host: maybe-maintainer-clean-guile
2236maintainer-clean-host: maybe-maintainer-clean-tk
2237maintainer-clean-host: maybe-maintainer-clean-libtermcap
2238maintainer-clean-host: maybe-maintainer-clean-utils
2239maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2240maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2241maintainer-clean-host: maybe-maintainer-clean-libcc1
2242maintainer-clean-host: maybe-maintainer-clean-gotools
2a4cbe27 2243
4fa63067 2244.PHONY: maintainer-clean-target
c52c6897
PB
2245
2246maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2247maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2248maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2249maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e78e02e6 2250maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2251maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2252maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2253maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2254maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2255maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2256maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2257maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2258maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2259maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2260maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2261maintainer-clean-target: maybe-maintainer-clean-target-winsup
2262maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897
PB
2263maintainer-clean-target: maybe-maintainer-clean-target-libffi
2264maintainer-clean-target: maybe-maintainer-clean-target-libjava
2265maintainer-clean-target: maybe-maintainer-clean-target-zlib
2266maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
c52c6897
PB
2267maintainer-clean-target: maybe-maintainer-clean-target-rda
2268maintainer-clean-target: maybe-maintainer-clean-target-libada
2269maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2270maintainer-clean-target: maybe-maintainer-clean-target-libitm
2271maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2272
2a4cbe27 2273
4fa63067 2274# Here are the targets which correspond to the do-X targets.
2a4cbe27 2275
a3ca38d2
DD
2276.PHONY: info installcheck dvi pdf html
2277.PHONY: install-info install-pdf install-html
4fa63067
NN
2278.PHONY: clean distclean mostlyclean maintainer-clean realclean
2279.PHONY: local-clean local-distclean local-maintainer-clean
2280info: do-info
2281installcheck: do-installcheck
2282dvi: do-dvi
56a8fe78 2283pdf: do-pdf
6d389afc 2284html: do-html
2a4cbe27 2285
4fa63067
NN
2286# Make sure makeinfo is built before we do a `make info', if we're
2287# in fact building texinfo.
2288do-info: maybe-all-texinfo
2a4cbe27 2289
4fa63067 2290install-info: do-install-info dir.info
b40e3958 2291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067
NN
2292 if [ -f dir.info ] ; then \
2293 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2294 else true ; fi
2a4cbe27 2295
a3ca38d2
DD
2296install-pdf: do-install-pdf
2297
108a6f8e
CD
2298install-html: do-install-html
2299
4fa63067
NN
2300local-clean:
2301 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2302
4fa63067
NN
2303local-distclean:
2304 -rm -f Makefile config.status config.cache mh-frag mt-frag
0aed8855 2305 -rm -f maybedep.tmp serdep.tmp
4fa63067
NN
2306 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2307 rm -rf $(TARGET_SUBDIR); \
2308 else true; fi
2309 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2310 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2311 rm -rf $(HOST_SUBDIR); \
2312 else true; fi
4fa63067
NN
2313 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2314 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2315 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2316 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2317 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
18fa8f9c 2318 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2319
4fa63067
NN
2320local-maintainer-clean:
2321 @echo "This command is intended for maintainers to use;"
2322 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2323
4fa63067
NN
2324clean: do-clean local-clean
2325mostlyclean: do-mostlyclean local-clean
2326distclean: do-distclean local-clean local-distclean
2327maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2328maintainer-clean: local-distclean
2329realclean: maintainer-clean
2a4cbe27 2330
4fa63067 2331# Check target.
2a4cbe27 2332
4fa63067
NN
2333.PHONY: check do-check
2334check: do-check
2a4cbe27 2335
4fa63067 2336# Only include modules actually being configured and built.
f70224b5
PB
2337.PHONY: check-host
2338check-host: \
4fa63067
NN
2339 maybe-check-bfd \
2340 maybe-check-opcodes \
2341 maybe-check-binutils \
2342 maybe-check-bison \
f9806fa5 2343 maybe-check-cgen \
4fa63067 2344 maybe-check-dejagnu \
4fa63067
NN
2345 maybe-check-etc \
2346 maybe-check-fastjar \
d3ed111c 2347 maybe-check-fixincludes \
4fa63067
NN
2348 maybe-check-flex \
2349 maybe-check-gas \
b813574b 2350 maybe-check-gcc \
4b900473
PB
2351 maybe-check-gmp \
2352 maybe-check-mpfr \
e8a5fa9c 2353 maybe-check-mpc \
7ec59b9e 2354 maybe-check-isl \
1f53ca9a 2355 maybe-check-libelf \
93f9b408 2356 maybe-check-gold \
4fa63067 2357 maybe-check-gprof \
4fa63067
NN
2358 maybe-check-intl \
2359 maybe-check-tcl \
2360 maybe-check-itcl \
2361 maybe-check-ld \
2bf680c4 2362 maybe-check-libbacktrace \
04cf1b77 2363 maybe-check-libcpp \
be01d343 2364 maybe-check-libdecnumber \
4fa63067
NN
2365 maybe-check-libgui \
2366 maybe-check-libiberty \
1b6c0831 2367 maybe-check-libiberty-linker-plugin \
dc448a7b 2368 maybe-check-libiconv \
4fa63067 2369 maybe-check-m4 \
4fa63067 2370 maybe-check-readline \
4fa63067
NN
2371 maybe-check-sid \
2372 maybe-check-sim \
4fa63067 2373 maybe-check-texinfo \
4fa63067
NN
2374 maybe-check-zlib \
2375 maybe-check-gdb \
2376 maybe-check-expect \
2377 maybe-check-guile \
2378 maybe-check-tk \
4fa63067
NN
2379 maybe-check-libtermcap \
2380 maybe-check-utils \
700d40ca 2381 maybe-check-gnattools \
1b6c0831
L
2382 maybe-check-lto-plugin \
2383 maybe-check-libcc1 \
2384 maybe-check-gotools
f70224b5
PB
2385
2386.PHONY: check-target
2387check-target: \
4fa63067 2388 maybe-check-target-libstdc++-v3 \
5286fdef 2389 maybe-check-target-libsanitizer \
1b6c0831 2390 maybe-check-target-libmpx \
95e43135 2391 maybe-check-target-libvtv \
e78e02e6 2392 maybe-check-target-libcilkrts \
1b6c0831 2393 maybe-check-target-liboffloadmic \
064d0a7c 2394 maybe-check-target-libssp \
4fa63067 2395 maybe-check-target-newlib \
6aa8ef82 2396 maybe-check-target-libgcc \
2bf680c4 2397 maybe-check-target-libbacktrace \
e552509b 2398 maybe-check-target-libquadmath \
4b1cb4fe 2399 maybe-check-target-libgfortran \
4fa63067 2400 maybe-check-target-libobjc \
e552509b 2401 maybe-check-target-libgo \
4fa63067
NN
2402 maybe-check-target-libtermcap \
2403 maybe-check-target-winsup \
2404 maybe-check-target-libgloss \
4fa63067
NN
2405 maybe-check-target-libffi \
2406 maybe-check-target-libjava \
2407 maybe-check-target-zlib \
2408 maybe-check-target-boehm-gc \
4fa63067 2409 maybe-check-target-rda \
b3ded179 2410 maybe-check-target-libada \
7ec59b9e
L
2411 maybe-check-target-libgomp \
2412 maybe-check-target-libitm \
2413 maybe-check-target-libatomic
f70224b5
PB
2414
2415do-check:
0aed8855 2416 @: $(MAKE); $(unstage)
e360f423
PB
2417 @r=`${PWD_COMMAND}`; export r; \
2418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2419 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2420
4fa63067 2421# Automated reporting of test results.
2a4cbe27 2422
4fa63067
NN
2423warning.log: build.log
2424 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2425
4fa63067
NN
2426mail-report.log:
2427 if test x'$(BOOT_CFLAGS)' != x''; then \
2428 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2429 fi; \
2430 $(srcdir)/contrib/test_summary -t >$@
2431 chmod +x $@
2432 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2433
4fa63067
NN
2434mail-report-with-warnings.log: warning.log
2435 if test x'$(BOOT_CFLAGS)' != x''; then \
2436 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2437 fi; \
2438 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2439 chmod +x $@
2440 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2441
1b6c0831
L
2442# Local Vim config
2443
2444$(srcdir)/.local.vimrc:
2445 $(LN_S) $(srcdir)/contrib/vimrc $@
2446
2447$(srcdir)/.lvimrc:
2448 $(LN_S) $(srcdir)/contrib/vimrc $@
2449
2450vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2451
2452.PHONY: vimrc
2453
4fa63067 2454# Installation targets.
2a4cbe27 2455
4fa63067 2456.PHONY: install uninstall
f70224b5 2457install:
0aed8855 2458 @: $(MAKE); $(unstage)
e360f423
PB
2459 @r=`${PWD_COMMAND}`; export r; \
2460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2461 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2462
4fa63067
NN
2463.PHONY: install-host-nogcc
2464install-host-nogcc: \
4fa63067
NN
2465 maybe-install-bfd \
2466 maybe-install-opcodes \
2467 maybe-install-binutils \
2468 maybe-install-bison \
f9806fa5 2469 maybe-install-cgen \
4fa63067 2470 maybe-install-dejagnu \
4fa63067
NN
2471 maybe-install-etc \
2472 maybe-install-fastjar \
d3ed111c 2473 maybe-install-fixincludes \
4fa63067
NN
2474 maybe-install-flex \
2475 maybe-install-gas \
4b900473
PB
2476 maybe-install-gmp \
2477 maybe-install-mpfr \
e8a5fa9c 2478 maybe-install-mpc \
7ec59b9e 2479 maybe-install-isl \
1f53ca9a 2480 maybe-install-libelf \
93f9b408 2481 maybe-install-gold \
4fa63067 2482 maybe-install-gprof \
4fa63067
NN
2483 maybe-install-intl \
2484 maybe-install-tcl \
2485 maybe-install-itcl \
2486 maybe-install-ld \
2bf680c4 2487 maybe-install-libbacktrace \
04cf1b77 2488 maybe-install-libcpp \
be01d343 2489 maybe-install-libdecnumber \
4fa63067
NN
2490 maybe-install-libgui \
2491 maybe-install-libiberty \
1b6c0831 2492 maybe-install-libiberty-linker-plugin \
dc448a7b 2493 maybe-install-libiconv \
4fa63067 2494 maybe-install-m4 \
4fa63067 2495 maybe-install-readline \
4fa63067
NN
2496 maybe-install-sid \
2497 maybe-install-sim \
4fa63067 2498 maybe-install-texinfo \
4fa63067
NN
2499 maybe-install-zlib \
2500 maybe-install-gdb \
2501 maybe-install-expect \
2502 maybe-install-guile \
2503 maybe-install-tk \
4fa63067 2504 maybe-install-libtermcap \
b00612cc 2505 maybe-install-utils \
700d40ca 2506 maybe-install-gnattools \
1b6c0831
L
2507 maybe-install-lto-plugin \
2508 maybe-install-libcc1 \
2509 maybe-install-gotools
2a4cbe27 2510
4fa63067 2511.PHONY: install-host
b813574b 2512install-host: \
4fa63067
NN
2513 maybe-install-bfd \
2514 maybe-install-opcodes \
2515 maybe-install-binutils \
2516 maybe-install-bison \
f9806fa5 2517 maybe-install-cgen \
4fa63067 2518 maybe-install-dejagnu \
4fa63067
NN
2519 maybe-install-etc \
2520 maybe-install-fastjar \
d3ed111c 2521 maybe-install-fixincludes \
4fa63067
NN
2522 maybe-install-flex \
2523 maybe-install-gas \
b813574b 2524 maybe-install-gcc \
4b900473
PB
2525 maybe-install-gmp \
2526 maybe-install-mpfr \
e8a5fa9c 2527 maybe-install-mpc \
7ec59b9e 2528 maybe-install-isl \
1f53ca9a 2529 maybe-install-libelf \
93f9b408 2530 maybe-install-gold \
4fa63067 2531 maybe-install-gprof \
4fa63067
NN
2532 maybe-install-intl \
2533 maybe-install-tcl \
2534 maybe-install-itcl \
2535 maybe-install-ld \
2bf680c4 2536 maybe-install-libbacktrace \
04cf1b77 2537 maybe-install-libcpp \
be01d343 2538 maybe-install-libdecnumber \
4fa63067
NN
2539 maybe-install-libgui \
2540 maybe-install-libiberty \
1b6c0831 2541 maybe-install-libiberty-linker-plugin \
dc448a7b 2542 maybe-install-libiconv \
4fa63067 2543 maybe-install-m4 \
4fa63067 2544 maybe-install-readline \
4fa63067
NN
2545 maybe-install-sid \
2546 maybe-install-sim \
4fa63067 2547 maybe-install-texinfo \
4fa63067
NN
2548 maybe-install-zlib \
2549 maybe-install-gdb \
2550 maybe-install-expect \
2551 maybe-install-guile \
2552 maybe-install-tk \
4fa63067 2553 maybe-install-libtermcap \
b00612cc 2554 maybe-install-utils \
700d40ca 2555 maybe-install-gnattools \
1b6c0831
L
2556 maybe-install-lto-plugin \
2557 maybe-install-libcc1 \
2558 maybe-install-gotools
2a4cbe27 2559
4fa63067
NN
2560.PHONY: install-target
2561install-target: \
2562 maybe-install-target-libstdc++-v3 \
5286fdef 2563 maybe-install-target-libsanitizer \
1b6c0831 2564 maybe-install-target-libmpx \
95e43135 2565 maybe-install-target-libvtv \
e78e02e6 2566 maybe-install-target-libcilkrts \
1b6c0831 2567 maybe-install-target-liboffloadmic \
064d0a7c 2568 maybe-install-target-libssp \
4fa63067 2569 maybe-install-target-newlib \
6aa8ef82 2570 maybe-install-target-libgcc \
2bf680c4 2571 maybe-install-target-libbacktrace \
e552509b 2572 maybe-install-target-libquadmath \
4b1cb4fe 2573 maybe-install-target-libgfortran \
4fa63067 2574 maybe-install-target-libobjc \
e552509b 2575 maybe-install-target-libgo \
4fa63067
NN
2576 maybe-install-target-libtermcap \
2577 maybe-install-target-winsup \
2578 maybe-install-target-libgloss \
4fa63067
NN
2579 maybe-install-target-libffi \
2580 maybe-install-target-libjava \
2581 maybe-install-target-zlib \
2582 maybe-install-target-boehm-gc \
4fa63067 2583 maybe-install-target-rda \
b3ded179 2584 maybe-install-target-libada \
7ec59b9e
L
2585 maybe-install-target-libgomp \
2586 maybe-install-target-libitm \
2587 maybe-install-target-libatomic
2a4cbe27 2588
4fa63067
NN
2589uninstall:
2590 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2591
4fa63067
NN
2592.PHONY: install.all
2593install.all: install-no-fixedincludes
2594 @if [ -f ./gcc/Makefile ] ; then \
2595 r=`${PWD_COMMAND}` ; export r ; \
0aed8855 2596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2597 $(HOST_EXPORTS) \
4fa63067
NN
2598 (cd ./gcc && \
2599 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2600 else \
2601 true ; \
2602 fi
2a4cbe27 2603
7ec59b9e
L
2604# install-no-fixedincludes is used to allow the elaboration of binary packages
2605# suitable for distribution, where we cannot include the fixed system header
2606# files.
4fa63067
NN
2607.PHONY: install-no-fixedincludes
2608install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2609 install-target gcc-install-no-fixedincludes
2a4cbe27 2610
9b980aa1
RW
2611.PHONY: install-strip
2612install-strip:
2613 @: $(MAKE); $(unstage)
2614 @r=`${PWD_COMMAND}`; export r; \
2615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2616 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2617
2618.PHONY: install-strip-host
2619install-strip-host: \
9b980aa1
RW
2620 maybe-install-strip-bfd \
2621 maybe-install-strip-opcodes \
2622 maybe-install-strip-binutils \
2623 maybe-install-strip-bison \
9b980aa1
RW
2624 maybe-install-strip-cgen \
2625 maybe-install-strip-dejagnu \
9b980aa1
RW
2626 maybe-install-strip-etc \
2627 maybe-install-strip-fastjar \
9b980aa1
RW
2628 maybe-install-strip-fixincludes \
2629 maybe-install-strip-flex \
2630 maybe-install-strip-gas \
2631 maybe-install-strip-gcc \
9b980aa1
RW
2632 maybe-install-strip-gmp \
2633 maybe-install-strip-mpfr \
2634 maybe-install-strip-mpc \
7ec59b9e 2635 maybe-install-strip-isl \
9b980aa1 2636 maybe-install-strip-libelf \
9b980aa1
RW
2637 maybe-install-strip-gold \
2638 maybe-install-strip-gprof \
9b980aa1
RW
2639 maybe-install-strip-intl \
2640 maybe-install-strip-tcl \
2641 maybe-install-strip-itcl \
2642 maybe-install-strip-ld \
2bf680c4 2643 maybe-install-strip-libbacktrace \
9b980aa1
RW
2644 maybe-install-strip-libcpp \
2645 maybe-install-strip-libdecnumber \
2646 maybe-install-strip-libgui \
2647 maybe-install-strip-libiberty \
1b6c0831 2648 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2649 maybe-install-strip-libiconv \
9b980aa1 2650 maybe-install-strip-m4 \
9b980aa1 2651 maybe-install-strip-readline \
9b980aa1
RW
2652 maybe-install-strip-sid \
2653 maybe-install-strip-sim \
9b980aa1 2654 maybe-install-strip-texinfo \
9b980aa1
RW
2655 maybe-install-strip-zlib \
2656 maybe-install-strip-gdb \
2657 maybe-install-strip-expect \
2658 maybe-install-strip-guile \
2659 maybe-install-strip-tk \
2660 maybe-install-strip-libtermcap \
2661 maybe-install-strip-utils \
2662 maybe-install-strip-gnattools \
1b6c0831
L
2663 maybe-install-strip-lto-plugin \
2664 maybe-install-strip-libcc1 \
2665 maybe-install-strip-gotools
9b980aa1
RW
2666
2667.PHONY: install-strip-target
2668install-strip-target: \
2669 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2670 maybe-install-strip-target-libsanitizer \
1b6c0831 2671 maybe-install-strip-target-libmpx \
95e43135 2672 maybe-install-strip-target-libvtv \
e78e02e6 2673 maybe-install-strip-target-libcilkrts \
1b6c0831 2674 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2675 maybe-install-strip-target-libssp \
2676 maybe-install-strip-target-newlib \
2677 maybe-install-strip-target-libgcc \
2bf680c4 2678 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2679 maybe-install-strip-target-libquadmath \
2680 maybe-install-strip-target-libgfortran \
2681 maybe-install-strip-target-libobjc \
2682 maybe-install-strip-target-libgo \
2683 maybe-install-strip-target-libtermcap \
2684 maybe-install-strip-target-winsup \
2685 maybe-install-strip-target-libgloss \
9b980aa1
RW
2686 maybe-install-strip-target-libffi \
2687 maybe-install-strip-target-libjava \
2688 maybe-install-strip-target-zlib \
2689 maybe-install-strip-target-boehm-gc \
9b980aa1
RW
2690 maybe-install-strip-target-rda \
2691 maybe-install-strip-target-libada \
7ec59b9e
L
2692 maybe-install-strip-target-libgomp \
2693 maybe-install-strip-target-libitm \
2694 maybe-install-strip-target-libatomic
9b980aa1
RW
2695
2696
4fa63067 2697### other supporting targets
2a4cbe27 2698
4fa63067
NN
2699MAKEDIRS= \
2700 $(DESTDIR)$(prefix) \
2701 $(DESTDIR)$(exec_prefix)
2702.PHONY: installdirs
2703installdirs: mkinstalldirs
2704 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2705
4fa63067
NN
2706dir.info: do-install-info
2707 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2708 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2709 mv -f dir.info.new dir.info ; \
2710 else true ; \
2711 fi
2a4cbe27 2712
4fa63067
NN
2713dist:
2714 @echo "Building a full distribution of this tree isn't done"
2715 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2716
4fa63067 2717etags tags: TAGS
2a4cbe27 2718
4fa63067
NN
2719# Right now this just builds TAGS in each subdirectory. emacs19 has the
2720# ability to use several tags files at once, so there is probably no need
2721# to combine them into one big TAGS file (like CVS 1.3 does). We could
2722# (if we felt like it) have this Makefile write a piece of elisp which
2723# the user could load to tell emacs19 where all the TAGS files we just
2724# built are.
2725TAGS: do-TAGS
2a4cbe27 2726
a7254363
PB
2727# ------------------------------------
2728# Macros for configure and all targets
2729# ------------------------------------
2730
2731
2732
2733
2734
4fa63067
NN
2735# --------------------------------------
2736# Modules which run on the build machine
2737# --------------------------------------
2738
a7254363 2739
4fa63067
NN
2740.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2741maybe-configure-build-libiberty:
4f0ef2d8
CD
2742@if gcc-bootstrap
2743configure-build-libiberty: stage_current
2744@endif gcc-bootstrap
6bd3dfaa
PB
2745@if build-libiberty
2746maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2747configure-build-libiberty:
0aed8855 2748 @: $(MAKE); $(unstage)
c52c6897 2749 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2751 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2752 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
1f53ca9a 2753 $(BUILD_EXPORTS) \
4fa63067
NN
2754 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2755 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2756 case $(srcdir) in \
b00612cc
PB
2757 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2758 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2759 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2760 esac; \
1b6c0831 2761 module_srcdir=libiberty; \
4fa63067 2762 rm -f no-such-file || : ; \
1b6c0831
L
2763 CONFIG_SITE=no-such-file $(SHELL) \
2764 $$s/$$module_srcdir/configure \
2765 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2766 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2767 --target=${target_alias} \
2a4cbe27 2768 || exit 1
6bd3dfaa 2769@endif build-libiberty
2a4cbe27 2770
a7254363
PB
2771
2772
d545f33b
PB
2773
2774
4fa63067
NN
2775.PHONY: all-build-libiberty maybe-all-build-libiberty
2776maybe-all-build-libiberty:
4f0ef2d8
CD
2777@if gcc-bootstrap
2778all-build-libiberty: stage_current
2779@endif gcc-bootstrap
6bd3dfaa 2780@if build-libiberty
72b2455a 2781TARGET-build-libiberty=all
6bd3dfaa 2782maybe-all-build-libiberty: all-build-libiberty
4fa63067 2783all-build-libiberty: configure-build-libiberty
0aed8855 2784 @: $(MAKE); $(unstage)
4fa63067 2785 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2787 $(BUILD_EXPORTS) \
72b2455a 2788 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2789 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2790 $(TARGET-build-libiberty))
6bd3dfaa 2791@endif build-libiberty
2a4cbe27 2792
a7254363
PB
2793
2794
d545f33b
PB
2795
2796
6a9cf61e
PB
2797.PHONY: configure-build-bison maybe-configure-build-bison
2798maybe-configure-build-bison:
4f0ef2d8
CD
2799@if gcc-bootstrap
2800configure-build-bison: stage_current
2801@endif gcc-bootstrap
6a9cf61e
PB
2802@if build-bison
2803maybe-configure-build-bison: configure-build-bison
c52c6897 2804configure-build-bison:
0aed8855 2805 @: $(MAKE); $(unstage)
c52c6897 2806 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2808 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2809 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
1f53ca9a 2810 $(BUILD_EXPORTS) \
6a9cf61e
PB
2811 echo Configuring in $(BUILD_SUBDIR)/bison; \
2812 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2813 case $(srcdir) in \
b00612cc
PB
2814 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2815 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2816 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2817 esac; \
1b6c0831 2818 module_srcdir=bison; \
6a9cf61e 2819 rm -f no-such-file || : ; \
1b6c0831
L
2820 CONFIG_SITE=no-such-file $(SHELL) \
2821 $$s/$$module_srcdir/configure \
2822 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2823 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2824 --target=${target_alias} \
6a9cf61e
PB
2825 || exit 1
2826@endif build-bison
2827
a7254363
PB
2828
2829
d545f33b
PB
2830
2831
6a9cf61e
PB
2832.PHONY: all-build-bison maybe-all-build-bison
2833maybe-all-build-bison:
4f0ef2d8
CD
2834@if gcc-bootstrap
2835all-build-bison: stage_current
2836@endif gcc-bootstrap
6a9cf61e 2837@if build-bison
72b2455a 2838TARGET-build-bison=all
6a9cf61e
PB
2839maybe-all-build-bison: all-build-bison
2840all-build-bison: configure-build-bison
0aed8855 2841 @: $(MAKE); $(unstage)
6a9cf61e
PB
2842 @r=`${PWD_COMMAND}`; export r; \
2843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2844 $(BUILD_EXPORTS) \
72b2455a 2845 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2846 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2847 $(TARGET-build-bison))
6a9cf61e
PB
2848@endif build-bison
2849
a7254363
PB
2850
2851
d545f33b
PB
2852
2853
6a9cf61e
PB
2854.PHONY: configure-build-flex maybe-configure-build-flex
2855maybe-configure-build-flex:
4f0ef2d8
CD
2856@if gcc-bootstrap
2857configure-build-flex: stage_current
2858@endif gcc-bootstrap
6a9cf61e
PB
2859@if build-flex
2860maybe-configure-build-flex: configure-build-flex
c52c6897 2861configure-build-flex:
0aed8855 2862 @: $(MAKE); $(unstage)
c52c6897 2863 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2865 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2866 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
1f53ca9a 2867 $(BUILD_EXPORTS) \
6a9cf61e
PB
2868 echo Configuring in $(BUILD_SUBDIR)/flex; \
2869 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2870 case $(srcdir) in \
b00612cc
PB
2871 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2872 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2873 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2874 esac; \
1b6c0831 2875 module_srcdir=flex; \
6a9cf61e 2876 rm -f no-such-file || : ; \
1b6c0831
L
2877 CONFIG_SITE=no-such-file $(SHELL) \
2878 $$s/$$module_srcdir/configure \
2879 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2880 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2881 --target=${target_alias} \
6a9cf61e
PB
2882 || exit 1
2883@endif build-flex
2884
a7254363
PB
2885
2886
d545f33b
PB
2887
2888
6a9cf61e
PB
2889.PHONY: all-build-flex maybe-all-build-flex
2890maybe-all-build-flex:
4f0ef2d8
CD
2891@if gcc-bootstrap
2892all-build-flex: stage_current
2893@endif gcc-bootstrap
6a9cf61e 2894@if build-flex
72b2455a 2895TARGET-build-flex=all
6a9cf61e
PB
2896maybe-all-build-flex: all-build-flex
2897all-build-flex: configure-build-flex
0aed8855 2898 @: $(MAKE); $(unstage)
6a9cf61e
PB
2899 @r=`${PWD_COMMAND}`; export r; \
2900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2901 $(BUILD_EXPORTS) \
72b2455a 2902 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2903 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2904 $(TARGET-build-flex))
6a9cf61e
PB
2905@endif build-flex
2906
a7254363
PB
2907
2908
d545f33b
PB
2909
2910
6a9cf61e
PB
2911.PHONY: configure-build-m4 maybe-configure-build-m4
2912maybe-configure-build-m4:
4f0ef2d8
CD
2913@if gcc-bootstrap
2914configure-build-m4: stage_current
2915@endif gcc-bootstrap
6a9cf61e
PB
2916@if build-m4
2917maybe-configure-build-m4: configure-build-m4
c52c6897 2918configure-build-m4:
0aed8855 2919 @: $(MAKE); $(unstage)
c52c6897 2920 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2922 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2923 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
1f53ca9a 2924 $(BUILD_EXPORTS) \
6a9cf61e
PB
2925 echo Configuring in $(BUILD_SUBDIR)/m4; \
2926 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2927 case $(srcdir) in \
b00612cc
PB
2928 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2929 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2930 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2931 esac; \
1b6c0831 2932 module_srcdir=m4; \
6a9cf61e 2933 rm -f no-such-file || : ; \
1b6c0831
L
2934 CONFIG_SITE=no-such-file $(SHELL) \
2935 $$s/$$module_srcdir/configure \
2936 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2937 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2938 --target=${target_alias} \
6a9cf61e
PB
2939 || exit 1
2940@endif build-m4
2941
a7254363
PB
2942
2943
d545f33b
PB
2944
2945
6a9cf61e
PB
2946.PHONY: all-build-m4 maybe-all-build-m4
2947maybe-all-build-m4:
4f0ef2d8
CD
2948@if gcc-bootstrap
2949all-build-m4: stage_current
2950@endif gcc-bootstrap
6a9cf61e 2951@if build-m4
72b2455a 2952TARGET-build-m4=all
6a9cf61e
PB
2953maybe-all-build-m4: all-build-m4
2954all-build-m4: configure-build-m4
0aed8855 2955 @: $(MAKE); $(unstage)
6a9cf61e
PB
2956 @r=`${PWD_COMMAND}`; export r; \
2957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2958 $(BUILD_EXPORTS) \
72b2455a 2959 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2960 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2961 $(TARGET-build-m4))
6a9cf61e
PB
2962@endif build-m4
2963
a7254363
PB
2964
2965
d545f33b
PB
2966
2967
6a9cf61e
PB
2968.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2969maybe-configure-build-texinfo:
4f0ef2d8
CD
2970@if gcc-bootstrap
2971configure-build-texinfo: stage_current
2972@endif gcc-bootstrap
6a9cf61e
PB
2973@if build-texinfo
2974maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 2975configure-build-texinfo:
0aed8855 2976 @: $(MAKE); $(unstage)
c52c6897 2977 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2979 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2980 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
1f53ca9a 2981 $(BUILD_EXPORTS) \
6a9cf61e
PB
2982 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2983 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2984 case $(srcdir) in \
b00612cc
PB
2985 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2986 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2987 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2988 esac; \
1b6c0831 2989 module_srcdir=texinfo; \
6a9cf61e 2990 rm -f no-such-file || : ; \
1b6c0831
L
2991 CONFIG_SITE=no-such-file $(SHELL) \
2992 $$s/$$module_srcdir/configure \
2993 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2994 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2995 --target=${target_alias} \
6a9cf61e
PB
2996 || exit 1
2997@endif build-texinfo
2998
a7254363
PB
2999
3000
d545f33b
PB
3001
3002
6a9cf61e
PB
3003.PHONY: all-build-texinfo maybe-all-build-texinfo
3004maybe-all-build-texinfo:
4f0ef2d8
CD
3005@if gcc-bootstrap
3006all-build-texinfo: stage_current
3007@endif gcc-bootstrap
6a9cf61e 3008@if build-texinfo
72b2455a 3009TARGET-build-texinfo=all
6a9cf61e
PB
3010maybe-all-build-texinfo: all-build-texinfo
3011all-build-texinfo: configure-build-texinfo
0aed8855 3012 @: $(MAKE); $(unstage)
6a9cf61e
PB
3013 @r=`${PWD_COMMAND}`; export r; \
3014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3015 $(BUILD_EXPORTS) \
72b2455a 3016 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3017 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3018 $(TARGET-build-texinfo))
6a9cf61e
PB
3019@endif build-texinfo
3020
a7254363
PB
3021
3022
d545f33b
PB
3023
3024
ee025550
PB
3025.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3026maybe-configure-build-fixincludes:
4f0ef2d8
CD
3027@if gcc-bootstrap
3028configure-build-fixincludes: stage_current
3029@endif gcc-bootstrap
ee025550
PB
3030@if build-fixincludes
3031maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3032configure-build-fixincludes:
0aed8855 3033 @: $(MAKE); $(unstage)
c52c6897 3034 @r=`${PWD_COMMAND}`; export r; \
ee025550 3035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
3036 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
3037 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
1f53ca9a 3038 $(BUILD_EXPORTS) \
ee025550
PB
3039 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3040 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3041 case $(srcdir) in \
b00612cc
PB
3042 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3043 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3044 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3045 esac; \
1b6c0831 3046 module_srcdir=fixincludes; \
ee025550 3047 rm -f no-such-file || : ; \
1b6c0831
L
3048 CONFIG_SITE=no-such-file $(SHELL) \
3049 $$s/$$module_srcdir/configure \
3050 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3051 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3052 --target=${target_alias} \
ee025550
PB
3053 || exit 1
3054@endif build-fixincludes
3055
a7254363
PB
3056
3057
d545f33b
PB
3058
3059
ee025550
PB
3060.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3061maybe-all-build-fixincludes:
4f0ef2d8
CD
3062@if gcc-bootstrap
3063all-build-fixincludes: stage_current
3064@endif gcc-bootstrap
ee025550
PB
3065@if build-fixincludes
3066TARGET-build-fixincludes=all
3067maybe-all-build-fixincludes: all-build-fixincludes
3068all-build-fixincludes: configure-build-fixincludes
0aed8855 3069 @: $(MAKE); $(unstage)
ee025550
PB
3070 @r=`${PWD_COMMAND}`; export r; \
3071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3072 $(BUILD_EXPORTS) \
ee025550 3073 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3074 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3075 $(TARGET-build-fixincludes))
ee025550
PB
3076@endif build-fixincludes
3077
2a4cbe27 3078
a7254363 3079
d545f33b
PB
3080
3081
1b6c0831
L
3082.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3083maybe-configure-build-libcpp:
3084@if gcc-bootstrap
3085configure-build-libcpp: stage_current
3086@endif gcc-bootstrap
3087@if build-libcpp
3088maybe-configure-build-libcpp: configure-build-libcpp
3089configure-build-libcpp:
3090 @: $(MAKE); $(unstage)
3091 @r=`${PWD_COMMAND}`; export r; \
3092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3093 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
3094 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp ; \
3095 $(BUILD_EXPORTS) \
3096 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3097 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3098 case $(srcdir) in \
3099 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3100 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3101 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3102 esac; \
3103 module_srcdir=libcpp; \
3104 rm -f no-such-file || : ; \
3105 CONFIG_SITE=no-such-file $(SHELL) \
3106 $$s/$$module_srcdir/configure \
3107 --srcdir=$${topdir}/$$module_srcdir \
3108 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3109 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3110 || exit 1
3111@endif build-libcpp
3112
3113
3114
3115
3116
3117.PHONY: all-build-libcpp maybe-all-build-libcpp
3118maybe-all-build-libcpp:
3119@if gcc-bootstrap
3120all-build-libcpp: stage_current
3121@endif gcc-bootstrap
3122@if build-libcpp
3123TARGET-build-libcpp=all
3124maybe-all-build-libcpp: all-build-libcpp
3125all-build-libcpp: configure-build-libcpp
3126 @: $(MAKE); $(unstage)
3127 @r=`${PWD_COMMAND}`; export r; \
3128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3129 $(BUILD_EXPORTS) \
3130 (cd $(BUILD_SUBDIR)/libcpp && \
3131 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3132 $(TARGET-build-libcpp))
3133@endif build-libcpp
3134
3135
3136
3137
3138
4fa63067
NN
3139# --------------------------------------
3140# Modules which run on the host machine
3141# --------------------------------------
2a4cbe27 3142
a7254363 3143
a90ef4bf
JM
3144.PHONY: configure-bfd maybe-configure-bfd
3145maybe-configure-bfd:
4f0ef2d8 3146@if gcc-bootstrap
a90ef4bf 3147configure-bfd: stage_current
4f0ef2d8 3148@endif gcc-bootstrap
a90ef4bf
JM
3149@if bfd
3150maybe-configure-bfd: configure-bfd
3151configure-bfd:
c52c6897 3152 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3154 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3155 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
1f53ca9a 3156 $(HOST_EXPORTS) \
a90ef4bf
JM
3157 echo Configuring in $(HOST_SUBDIR)/bfd; \
3158 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3159 case $(srcdir) in \
b00612cc 3160 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3161 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3162 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3163 esac; \
1b6c0831
L
3164 module_srcdir=bfd; \
3165 $(SHELL) \
3166 $$s/$$module_srcdir/configure \
3167 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3168 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3169 --target=${target_alias} \
2a4cbe27 3170 || exit 1
a90ef4bf 3171@endif bfd
a7254363 3172
d545f33b
PB
3173
3174
a90ef4bf
JM
3175.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3176maybe-configure-stage1-bfd:
3177@if bfd-bootstrap
3178maybe-configure-stage1-bfd: configure-stage1-bfd
3179configure-stage1-bfd:
3180 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3181 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3182 @r=`${PWD_COMMAND}`; export r; \
3183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3184 TFLAGS="$(STAGE1_TFLAGS)"; \
3185 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3186 $(HOST_EXPORTS) \
3187 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3188 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3189 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
3190 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
3191 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3192 cd $(HOST_SUBDIR)/bfd || exit 1; \
3193 case $(srcdir) in \
3194 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3195 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3196 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3197 esac; \
1b6c0831
L
3198 module_srcdir=bfd; \
3199 $(SHELL) $$s/$$module_srcdir/configure \
3200 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3201 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3202 --target=${target_alias} \
3203 \
a90ef4bf
JM
3204 $(STAGE1_CONFIGURE_FLAGS)
3205@endif bfd-bootstrap
2a4cbe27 3206
a90ef4bf
JM
3207.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3208maybe-configure-stage2-bfd:
3209@if bfd-bootstrap
3210maybe-configure-stage2-bfd: configure-stage2-bfd
3211configure-stage2-bfd:
3212 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3213 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3214 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3216 TFLAGS="$(STAGE2_TFLAGS)"; \
3217 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3218 $(HOST_EXPORTS) \
a90ef4bf
JM
3219 $(POSTSTAGE1_HOST_EXPORTS) \
3220 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3221 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3222 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
3223 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
3224 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3225 cd $(HOST_SUBDIR)/bfd || exit 1; \
3226 case $(srcdir) in \
3227 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3228 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3229 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3230 esac; \
1b6c0831
L
3231 module_srcdir=bfd; \
3232 $(SHELL) $$s/$$module_srcdir/configure \
3233 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3234 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3235 --target=${target_alias} \
3236 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3237 $(STAGE2_CONFIGURE_FLAGS)
3238@endif bfd-bootstrap
2a4cbe27 3239
a90ef4bf
JM
3240.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3241maybe-configure-stage3-bfd:
3242@if bfd-bootstrap
3243maybe-configure-stage3-bfd: configure-stage3-bfd
3244configure-stage3-bfd:
3245 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3246 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3247 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3249 TFLAGS="$(STAGE3_TFLAGS)"; \
3250 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3251 $(HOST_EXPORTS) \
a90ef4bf
JM
3252 $(POSTSTAGE1_HOST_EXPORTS) \
3253 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3254 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3255 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
3256 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
3257 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3258 cd $(HOST_SUBDIR)/bfd || exit 1; \
3259 case $(srcdir) in \
3260 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3261 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3262 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3263 esac; \
1b6c0831
L
3264 module_srcdir=bfd; \
3265 $(SHELL) $$s/$$module_srcdir/configure \
3266 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3267 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3268 --target=${target_alias} \
3269 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3270 $(STAGE3_CONFIGURE_FLAGS)
3271@endif bfd-bootstrap
9b980aa1 3272
a90ef4bf
JM
3273.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3274maybe-configure-stage4-bfd:
3275@if bfd-bootstrap
3276maybe-configure-stage4-bfd: configure-stage4-bfd
3277configure-stage4-bfd:
3278 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3279 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3280 @r=`${PWD_COMMAND}`; export r; \
3281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3282 TFLAGS="$(STAGE4_TFLAGS)"; \
3283 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3284 $(HOST_EXPORTS) \
a90ef4bf
JM
3285 $(POSTSTAGE1_HOST_EXPORTS) \
3286 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3287 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3288 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
3289 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
3290 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3291 cd $(HOST_SUBDIR)/bfd || exit 1; \
3292 case $(srcdir) in \
3293 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3294 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3295 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3296 esac; \
1b6c0831
L
3297 module_srcdir=bfd; \
3298 $(SHELL) $$s/$$module_srcdir/configure \
3299 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3300 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3301 --target=${target_alias} \
3302 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3303 $(STAGE4_CONFIGURE_FLAGS)
3304@endif bfd-bootstrap
4fa63067 3305
a90ef4bf
JM
3306.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3307maybe-configure-stageprofile-bfd:
3308@if bfd-bootstrap
3309maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3310configure-stageprofile-bfd:
3311 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3312 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3313 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3315 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3316 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3317 $(HOST_EXPORTS) \
a90ef4bf
JM
3318 $(POSTSTAGE1_HOST_EXPORTS) \
3319 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3320 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3321 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
3322 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
3323 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3324 cd $(HOST_SUBDIR)/bfd || exit 1; \
3325 case $(srcdir) in \
3326 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3327 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3328 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3329 esac; \
1b6c0831
L
3330 module_srcdir=bfd; \
3331 $(SHELL) $$s/$$module_srcdir/configure \
3332 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3333 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3334 --target=${target_alias} \
3335 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3336 $(STAGEprofile_CONFIGURE_FLAGS)
3337@endif bfd-bootstrap
2a4cbe27 3338
a90ef4bf
JM
3339.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3340maybe-configure-stagefeedback-bfd:
3341@if bfd-bootstrap
3342maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3343configure-stagefeedback-bfd:
3344 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3345 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3346 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3348 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3349 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3350 $(HOST_EXPORTS) \
a90ef4bf
JM
3351 $(POSTSTAGE1_HOST_EXPORTS) \
3352 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3353 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3354 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
3355 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
3356 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3357 cd $(HOST_SUBDIR)/bfd || exit 1; \
3358 case $(srcdir) in \
3359 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3360 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3361 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3362 esac; \
1b6c0831
L
3363 module_srcdir=bfd; \
3364 $(SHELL) $$s/$$module_srcdir/configure \
3365 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3366 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3367 --target=${target_alias} \
3368 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3369 $(STAGEfeedback_CONFIGURE_FLAGS)
3370@endif bfd-bootstrap
2a4cbe27 3371
56a8fe78 3372
56a8fe78 3373
56a8fe78 3374
6d389afc 3375
a90ef4bf
JM
3376.PHONY: all-bfd maybe-all-bfd
3377maybe-all-bfd:
3378@if gcc-bootstrap
3379all-bfd: stage_current
3380@endif gcc-bootstrap
3381@if bfd
3382TARGET-bfd=all
3383maybe-all-bfd: all-bfd
3384all-bfd: configure-bfd
3385 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3387 $(HOST_EXPORTS) \
3388 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3389 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3390 $(TARGET-bfd))
3391@endif bfd
6d389afc 3392
6d389afc 3393
2a4cbe27 3394
a90ef4bf
JM
3395.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3396.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3397maybe-all-stage1-bfd:
3398maybe-clean-stage1-bfd:
3399@if bfd-bootstrap
3400maybe-all-stage1-bfd: all-stage1-bfd
3401all-stage1: all-stage1-bfd
3402TARGET-stage1-bfd = $(TARGET-bfd)
3403all-stage1-bfd: configure-stage1-bfd
3404 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3405 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3407 TFLAGS="$(STAGE1_TFLAGS)"; \
3408 $(HOST_EXPORTS) \
3409 cd $(HOST_SUBDIR)/bfd && \
3410 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3411 CFLAGS="$(STAGE1_CFLAGS)" \
3412 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3413 LIBCFLAGS="$(LIBCFLAGS)" \
3414 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3415 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3416 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3417 $(EXTRA_HOST_FLAGS) \
3418 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3419 TFLAGS="$(STAGE1_TFLAGS)" \
3420 $(TARGET-stage1-bfd)
2a4cbe27 3421
a90ef4bf
JM
3422maybe-clean-stage1-bfd: clean-stage1-bfd
3423clean-stage1: clean-stage1-bfd
3424clean-stage1-bfd:
3425 @if [ $(current_stage) = stage1 ]; then \
3426 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3427 else \
3428 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3429 $(MAKE) stage1-start; \
3430 fi; \
3431 cd $(HOST_SUBDIR)/bfd && \
3432 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3433 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3434@endif bfd-bootstrap
2a4cbe27 3435
2a4cbe27 3436
a90ef4bf
JM
3437.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3438.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3439maybe-all-stage2-bfd:
3440maybe-clean-stage2-bfd:
3441@if bfd-bootstrap
3442maybe-all-stage2-bfd: all-stage2-bfd
3443all-stage2: all-stage2-bfd
3444TARGET-stage2-bfd = $(TARGET-bfd)
3445all-stage2-bfd: configure-stage2-bfd
3446 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3447 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3449 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3450 $(HOST_EXPORTS) \
a90ef4bf
JM
3451 $(POSTSTAGE1_HOST_EXPORTS) \
3452 cd $(HOST_SUBDIR)/bfd && \
3453 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3454 CFLAGS="$(STAGE2_CFLAGS)" \
3455 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3456 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3457 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3458 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3459 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3460 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3461 TFLAGS="$(STAGE2_TFLAGS)" \
3462 $(TARGET-stage2-bfd)
2a4cbe27 3463
a90ef4bf
JM
3464maybe-clean-stage2-bfd: clean-stage2-bfd
3465clean-stage2: clean-stage2-bfd
3466clean-stage2-bfd:
3467 @if [ $(current_stage) = stage2 ]; then \
3468 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3469 else \
3470 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3471 $(MAKE) stage2-start; \
3472 fi; \
3473 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3474 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3475@endif bfd-bootstrap
2a4cbe27 3476
a3ca38d2 3477
a90ef4bf
JM
3478.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3479.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3480maybe-all-stage3-bfd:
3481maybe-clean-stage3-bfd:
3482@if bfd-bootstrap
3483maybe-all-stage3-bfd: all-stage3-bfd
3484all-stage3: all-stage3-bfd
3485TARGET-stage3-bfd = $(TARGET-bfd)
3486all-stage3-bfd: configure-stage3-bfd
3487 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3488 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3490 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3491 $(HOST_EXPORTS) \
a90ef4bf
JM
3492 $(POSTSTAGE1_HOST_EXPORTS) \
3493 cd $(HOST_SUBDIR)/bfd && \
3494 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3495 CFLAGS="$(STAGE3_CFLAGS)" \
3496 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3497 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3498 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3499 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3500 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3501 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3502 TFLAGS="$(STAGE3_TFLAGS)" \
3503 $(TARGET-stage3-bfd)
a3ca38d2 3504
a90ef4bf
JM
3505maybe-clean-stage3-bfd: clean-stage3-bfd
3506clean-stage3: clean-stage3-bfd
3507clean-stage3-bfd:
3508 @if [ $(current_stage) = stage3 ]; then \
3509 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3510 else \
3511 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3512 $(MAKE) stage3-start; \
3513 fi; \
3514 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3515 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3516@endif bfd-bootstrap
a3ca38d2 3517
108a6f8e 3518
a90ef4bf
JM
3519.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3520.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3521maybe-all-stage4-bfd:
3522maybe-clean-stage4-bfd:
3523@if bfd-bootstrap
3524maybe-all-stage4-bfd: all-stage4-bfd
3525all-stage4: all-stage4-bfd
3526TARGET-stage4-bfd = $(TARGET-bfd)
3527all-stage4-bfd: configure-stage4-bfd
3528 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3529 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3531 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3532 $(HOST_EXPORTS) \
a90ef4bf
JM
3533 $(POSTSTAGE1_HOST_EXPORTS) \
3534 cd $(HOST_SUBDIR)/bfd && \
3535 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3536 CFLAGS="$(STAGE4_CFLAGS)" \
3537 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3538 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3539 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3540 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3541 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3542 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3543 TFLAGS="$(STAGE4_TFLAGS)" \
3544 $(TARGET-stage4-bfd)
108a6f8e 3545
a90ef4bf
JM
3546maybe-clean-stage4-bfd: clean-stage4-bfd
3547clean-stage4: clean-stage4-bfd
3548clean-stage4-bfd:
3549 @if [ $(current_stage) = stage4 ]; then \
3550 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3551 else \
3552 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3553 $(MAKE) stage4-start; \
3554 fi; \
3555 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3556 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3557@endif bfd-bootstrap
108a6f8e 3558
2a4cbe27 3559
a90ef4bf
JM
3560.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3561.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3562maybe-all-stageprofile-bfd:
3563maybe-clean-stageprofile-bfd:
3564@if bfd-bootstrap
3565maybe-all-stageprofile-bfd: all-stageprofile-bfd
3566all-stageprofile: all-stageprofile-bfd
3567TARGET-stageprofile-bfd = $(TARGET-bfd)
3568all-stageprofile-bfd: configure-stageprofile-bfd
3569 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3570 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3572 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3573 $(HOST_EXPORTS) \
a90ef4bf
JM
3574 $(POSTSTAGE1_HOST_EXPORTS) \
3575 cd $(HOST_SUBDIR)/bfd && \
3576 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3577 CFLAGS="$(STAGEprofile_CFLAGS)" \
3578 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3579 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3580 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3581 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3582 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3583 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3584 TFLAGS="$(STAGEprofile_TFLAGS)" \
3585 $(TARGET-stageprofile-bfd)
2a4cbe27 3586
a90ef4bf
JM
3587maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3588clean-stageprofile: clean-stageprofile-bfd
3589clean-stageprofile-bfd:
3590 @if [ $(current_stage) = stageprofile ]; then \
3591 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3592 else \
3593 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3594 $(MAKE) stageprofile-start; \
3595 fi; \
3596 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3597 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3598@endif bfd-bootstrap
2a4cbe27 3599
a7254363 3600
a90ef4bf
JM
3601.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3602.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3603maybe-all-stagefeedback-bfd:
3604maybe-clean-stagefeedback-bfd:
3605@if bfd-bootstrap
3606maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3607all-stagefeedback: all-stagefeedback-bfd
3608TARGET-stagefeedback-bfd = $(TARGET-bfd)
3609all-stagefeedback-bfd: configure-stagefeedback-bfd
3610 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3611 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3613 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3614 $(HOST_EXPORTS) \
3615 $(POSTSTAGE1_HOST_EXPORTS) \
3616 cd $(HOST_SUBDIR)/bfd && \
3617 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3618 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3619 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3620 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3621 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3622 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3623 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3624 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3625 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3626 $(TARGET-stagefeedback-bfd)
d545f33b 3627
a90ef4bf
JM
3628maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3629clean-stagefeedback: clean-stagefeedback-bfd
3630clean-stagefeedback-bfd:
3631 @if [ $(current_stage) = stagefeedback ]; then \
3632 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3633 else \
3634 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3635 $(MAKE) stagefeedback-start; \
3636 fi; \
3637 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3638 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3639@endif bfd-bootstrap
d545f33b 3640
2a4cbe27 3641
a7254363 3642
d545f33b
PB
3643
3644
a90ef4bf
JM
3645.PHONY: check-bfd maybe-check-bfd
3646maybe-check-bfd:
3647@if bfd
3648maybe-check-bfd: check-bfd
2a4cbe27 3649
a90ef4bf 3650check-bfd:
0aed8855 3651 @: $(MAKE); $(unstage)
4fa63067 3652 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3654 $(HOST_EXPORTS) \
a90ef4bf 3655 (cd $(HOST_SUBDIR)/bfd && \
b00612cc 3656 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 3657
a90ef4bf 3658@endif bfd
2a4cbe27 3659
a90ef4bf
JM
3660.PHONY: install-bfd maybe-install-bfd
3661maybe-install-bfd:
3662@if bfd
3663maybe-install-bfd: install-bfd
2a4cbe27 3664
a90ef4bf 3665install-bfd: installdirs
0aed8855 3666 @: $(MAKE); $(unstage)
4fa63067 3667 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3669 $(HOST_EXPORTS) \
a90ef4bf 3670 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3671 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3672
a90ef4bf 3673@endif bfd
2a4cbe27 3674
a90ef4bf
JM
3675.PHONY: install-strip-bfd maybe-install-strip-bfd
3676maybe-install-strip-bfd:
3677@if bfd
3678maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3679
a90ef4bf 3680install-strip-bfd: installdirs
9b980aa1
RW
3681 @: $(MAKE); $(unstage)
3682 @r=`${PWD_COMMAND}`; export r; \
3683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3684 $(HOST_EXPORTS) \
a90ef4bf 3685 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3686 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3687
a90ef4bf 3688@endif bfd
9b980aa1 3689
56a8fe78 3690# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3691
a90ef4bf
JM
3692.PHONY: maybe-info-bfd info-bfd
3693maybe-info-bfd:
3694@if bfd
3695maybe-info-bfd: info-bfd
4fa63067 3696
a90ef4bf
JM
3697info-bfd: \
3698 configure-bfd
3699 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3700 r=`${PWD_COMMAND}`; export r; \
3701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3702 $(HOST_EXPORTS) \
b813574b 3703 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3705 done; \
a90ef4bf
JM
3706 echo "Doing info in bfd" ; \
3707 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3710 "RANLIB=$${RANLIB}" \
0c24b341 3711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3712 info) \
2a4cbe27
NN
3713 || exit 1
3714
a90ef4bf 3715@endif bfd
2a4cbe27 3716
a90ef4bf
JM
3717.PHONY: maybe-dvi-bfd dvi-bfd
3718maybe-dvi-bfd:
3719@if bfd
3720maybe-dvi-bfd: dvi-bfd
2a4cbe27 3721
a90ef4bf
JM
3722dvi-bfd: \
3723 configure-bfd
3724 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3725 r=`${PWD_COMMAND}`; export r; \
3726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3727 $(HOST_EXPORTS) \
b813574b 3728 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3730 done; \
a90ef4bf
JM
3731 echo "Doing dvi in bfd" ; \
3732 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3735 "RANLIB=$${RANLIB}" \
0c24b341 3736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3737 dvi) \
2a4cbe27
NN
3738 || exit 1
3739
a90ef4bf 3740@endif bfd
2a4cbe27 3741
a90ef4bf
JM
3742.PHONY: maybe-pdf-bfd pdf-bfd
3743maybe-pdf-bfd:
3744@if bfd
3745maybe-pdf-bfd: pdf-bfd
56a8fe78 3746
a90ef4bf
JM
3747pdf-bfd: \
3748 configure-bfd
3749 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3750 r=`${PWD_COMMAND}`; export r; \
3751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3752 $(HOST_EXPORTS) \
3753 for flag in $(EXTRA_HOST_FLAGS) ; do \
3754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3755 done; \
a90ef4bf
JM
3756 echo "Doing pdf in bfd" ; \
3757 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3760 "RANLIB=$${RANLIB}" \
0c24b341 3761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3762 pdf) \
3763 || exit 1
3764
a90ef4bf 3765@endif bfd
56a8fe78 3766
a90ef4bf
JM
3767.PHONY: maybe-html-bfd html-bfd
3768maybe-html-bfd:
3769@if bfd
3770maybe-html-bfd: html-bfd
6d389afc 3771
a90ef4bf
JM
3772html-bfd: \
3773 configure-bfd
3774 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3775 r=`${PWD_COMMAND}`; export r; \
3776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3777 $(HOST_EXPORTS) \
3778 for flag in $(EXTRA_HOST_FLAGS) ; do \
3779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3780 done; \
a90ef4bf
JM
3781 echo "Doing html in bfd" ; \
3782 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3785 "RANLIB=$${RANLIB}" \
0c24b341 3786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3787 html) \
3788 || exit 1
3789
a90ef4bf 3790@endif bfd
6d389afc 3791
a90ef4bf
JM
3792.PHONY: maybe-TAGS-bfd TAGS-bfd
3793maybe-TAGS-bfd:
3794@if bfd
3795maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3796
a90ef4bf
JM
3797TAGS-bfd: \
3798 configure-bfd
3799 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3800 r=`${PWD_COMMAND}`; export r; \
3801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3802 $(HOST_EXPORTS) \
b813574b 3803 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3805 done; \
a90ef4bf
JM
3806 echo "Doing TAGS in bfd" ; \
3807 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3810 "RANLIB=$${RANLIB}" \
0c24b341 3811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3812 TAGS) \
2a4cbe27
NN
3813 || exit 1
3814
a90ef4bf 3815@endif bfd
2a4cbe27 3816
a90ef4bf
JM
3817.PHONY: maybe-install-info-bfd install-info-bfd
3818maybe-install-info-bfd:
3819@if bfd
3820maybe-install-info-bfd: install-info-bfd
2a4cbe27 3821
a90ef4bf
JM
3822install-info-bfd: \
3823 configure-bfd \
3824 info-bfd
3825 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3826 r=`${PWD_COMMAND}`; export r; \
3827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3828 $(HOST_EXPORTS) \
b813574b 3829 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3831 done; \
a90ef4bf
JM
3832 echo "Doing install-info in bfd" ; \
3833 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3836 "RANLIB=$${RANLIB}" \
0c24b341 3837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3838 install-info) \
2a4cbe27
NN
3839 || exit 1
3840
a90ef4bf 3841@endif bfd
2a4cbe27 3842
a90ef4bf
JM
3843.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3844maybe-install-pdf-bfd:
3845@if bfd
3846maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3847
a90ef4bf
JM
3848install-pdf-bfd: \
3849 configure-bfd \
3850 pdf-bfd
3851 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3852 r=`${PWD_COMMAND}`; export r; \
3853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3854 $(HOST_EXPORTS) \
3855 for flag in $(EXTRA_HOST_FLAGS) ; do \
3856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3857 done; \
a90ef4bf
JM
3858 echo "Doing install-pdf in bfd" ; \
3859 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3862 "RANLIB=$${RANLIB}" \
0c24b341 3863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3864 install-pdf) \
3865 || exit 1
3866
a90ef4bf 3867@endif bfd
a3ca38d2 3868
a90ef4bf
JM
3869.PHONY: maybe-install-html-bfd install-html-bfd
3870maybe-install-html-bfd:
3871@if bfd
3872maybe-install-html-bfd: install-html-bfd
108a6f8e 3873
a90ef4bf
JM
3874install-html-bfd: \
3875 configure-bfd \
3876 html-bfd
3877 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3878 r=`${PWD_COMMAND}`; export r; \
3879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3880 $(HOST_EXPORTS) \
3881 for flag in $(EXTRA_HOST_FLAGS) ; do \
3882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3883 done; \
a90ef4bf
JM
3884 echo "Doing install-html in bfd" ; \
3885 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3888 "RANLIB=$${RANLIB}" \
0c24b341 3889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3890 install-html) \
3891 || exit 1
3892
a90ef4bf 3893@endif bfd
108a6f8e 3894
a90ef4bf
JM
3895.PHONY: maybe-installcheck-bfd installcheck-bfd
3896maybe-installcheck-bfd:
3897@if bfd
3898maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3899
a90ef4bf
JM
3900installcheck-bfd: \
3901 configure-bfd
3902 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3903 r=`${PWD_COMMAND}`; export r; \
3904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3905 $(HOST_EXPORTS) \
b813574b 3906 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3908 done; \
a90ef4bf
JM
3909 echo "Doing installcheck in bfd" ; \
3910 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3913 "RANLIB=$${RANLIB}" \
0c24b341 3914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3915 installcheck) \
2a4cbe27
NN
3916 || exit 1
3917
a90ef4bf 3918@endif bfd
2a4cbe27 3919
a90ef4bf
JM
3920.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3921maybe-mostlyclean-bfd:
3922@if bfd
3923maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3924
a90ef4bf
JM
3925mostlyclean-bfd:
3926 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3927 r=`${PWD_COMMAND}`; export r; \
3928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3929 $(HOST_EXPORTS) \
b813574b 3930 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3932 done; \
a90ef4bf
JM
3933 echo "Doing mostlyclean in bfd" ; \
3934 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3937 "RANLIB=$${RANLIB}" \
0c24b341 3938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3939 mostlyclean) \
2a4cbe27
NN
3940 || exit 1
3941
a90ef4bf 3942@endif bfd
2a4cbe27 3943
a90ef4bf
JM
3944.PHONY: maybe-clean-bfd clean-bfd
3945maybe-clean-bfd:
3946@if bfd
3947maybe-clean-bfd: clean-bfd
2a4cbe27 3948
a90ef4bf
JM
3949clean-bfd:
3950 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3951 r=`${PWD_COMMAND}`; export r; \
3952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3953 $(HOST_EXPORTS) \
b813574b 3954 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3956 done; \
a90ef4bf
JM
3957 echo "Doing clean in bfd" ; \
3958 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3961 "RANLIB=$${RANLIB}" \
0c24b341 3962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3963 clean) \
2a4cbe27
NN
3964 || exit 1
3965
a90ef4bf 3966@endif bfd
2a4cbe27 3967
a90ef4bf
JM
3968.PHONY: maybe-distclean-bfd distclean-bfd
3969maybe-distclean-bfd:
3970@if bfd
3971maybe-distclean-bfd: distclean-bfd
2a4cbe27 3972
a90ef4bf
JM
3973distclean-bfd:
3974 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3975 r=`${PWD_COMMAND}`; export r; \
3976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3977 $(HOST_EXPORTS) \
b813574b 3978 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3980 done; \
a90ef4bf
JM
3981 echo "Doing distclean in bfd" ; \
3982 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3985 "RANLIB=$${RANLIB}" \
0c24b341 3986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3987 distclean) \
2a4cbe27
NN
3988 || exit 1
3989
a90ef4bf 3990@endif bfd
2a4cbe27 3991
a90ef4bf
JM
3992.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3993maybe-maintainer-clean-bfd:
3994@if bfd
3995maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 3996
a90ef4bf
JM
3997maintainer-clean-bfd:
3998 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3999 r=`${PWD_COMMAND}`; export r; \
4000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4001 $(HOST_EXPORTS) \
b813574b 4002 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4004 done; \
a90ef4bf
JM
4005 echo "Doing maintainer-clean in bfd" ; \
4006 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4009 "RANLIB=$${RANLIB}" \
0c24b341 4010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4011 maintainer-clean) \
2a4cbe27
NN
4012 || exit 1
4013
a90ef4bf 4014@endif bfd
2a4cbe27 4015
2a4cbe27 4016
a7254363 4017
a90ef4bf
JM
4018.PHONY: configure-opcodes maybe-configure-opcodes
4019maybe-configure-opcodes:
4f0ef2d8 4020@if gcc-bootstrap
a90ef4bf 4021configure-opcodes: stage_current
4f0ef2d8 4022@endif gcc-bootstrap
a90ef4bf
JM
4023@if opcodes
4024maybe-configure-opcodes: configure-opcodes
4025configure-opcodes:
c52c6897 4026 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4028 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4029 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
1f53ca9a 4030 $(HOST_EXPORTS) \
a90ef4bf
JM
4031 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4032 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4033 case $(srcdir) in \
b00612cc 4034 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4035 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4036 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4037 esac; \
1b6c0831
L
4038 module_srcdir=opcodes; \
4039 $(SHELL) \
4040 $$s/$$module_srcdir/configure \
4041 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4042 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4043 --target=${target_alias} \
2a4cbe27 4044 || exit 1
a90ef4bf 4045@endif opcodes
a7254363 4046
d545f33b
PB
4047
4048
a90ef4bf
JM
4049.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4050maybe-configure-stage1-opcodes:
4051@if opcodes-bootstrap
4052maybe-configure-stage1-opcodes: configure-stage1-opcodes
4053configure-stage1-opcodes:
4054 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4055 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4056 @r=`${PWD_COMMAND}`; export r; \
4057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4058 TFLAGS="$(STAGE1_TFLAGS)"; \
4059 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4060 $(HOST_EXPORTS) \
4061 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4062 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4063 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
4064 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
4065 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4066 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4067 case $(srcdir) in \
4068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4069 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4071 esac; \
1b6c0831
L
4072 module_srcdir=opcodes; \
4073 $(SHELL) $$s/$$module_srcdir/configure \
4074 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4075 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4076 --target=${target_alias} \
4077 \
a90ef4bf
JM
4078 $(STAGE1_CONFIGURE_FLAGS)
4079@endif opcodes-bootstrap
2a4cbe27 4080
a90ef4bf
JM
4081.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4082maybe-configure-stage2-opcodes:
4083@if opcodes-bootstrap
4084maybe-configure-stage2-opcodes: configure-stage2-opcodes
4085configure-stage2-opcodes:
4086 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4087 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4088 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4090 TFLAGS="$(STAGE2_TFLAGS)"; \
4091 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4092 $(HOST_EXPORTS) \
a90ef4bf
JM
4093 $(POSTSTAGE1_HOST_EXPORTS) \
4094 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4095 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4096 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
4097 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
4098 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4099 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4100 case $(srcdir) in \
4101 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4102 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4103 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4104 esac; \
1b6c0831
L
4105 module_srcdir=opcodes; \
4106 $(SHELL) $$s/$$module_srcdir/configure \
4107 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4108 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4109 --target=${target_alias} \
4110 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4111 $(STAGE2_CONFIGURE_FLAGS)
4112@endif opcodes-bootstrap
2a4cbe27 4113
a90ef4bf
JM
4114.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4115maybe-configure-stage3-opcodes:
4116@if opcodes-bootstrap
4117maybe-configure-stage3-opcodes: configure-stage3-opcodes
4118configure-stage3-opcodes:
4119 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4120 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4121 @r=`${PWD_COMMAND}`; export r; \
4122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4123 TFLAGS="$(STAGE3_TFLAGS)"; \
4124 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4125 $(HOST_EXPORTS) \
a90ef4bf
JM
4126 $(POSTSTAGE1_HOST_EXPORTS) \
4127 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4128 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4129 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
4130 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
4131 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4132 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4133 case $(srcdir) in \
4134 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4135 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4136 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4137 esac; \
1b6c0831
L
4138 module_srcdir=opcodes; \
4139 $(SHELL) $$s/$$module_srcdir/configure \
4140 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4141 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4142 --target=${target_alias} \
4143 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4144 $(STAGE3_CONFIGURE_FLAGS)
4145@endif opcodes-bootstrap
9b980aa1 4146
a90ef4bf
JM
4147.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4148maybe-configure-stage4-opcodes:
4149@if opcodes-bootstrap
4150maybe-configure-stage4-opcodes: configure-stage4-opcodes
4151configure-stage4-opcodes:
4152 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4153 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4154 @r=`${PWD_COMMAND}`; export r; \
4155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4156 TFLAGS="$(STAGE4_TFLAGS)"; \
4157 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4158 $(HOST_EXPORTS) \
a90ef4bf
JM
4159 $(POSTSTAGE1_HOST_EXPORTS) \
4160 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4161 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4162 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
4163 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
4164 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4165 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4166 case $(srcdir) in \
4167 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4168 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4169 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4170 esac; \
1b6c0831
L
4171 module_srcdir=opcodes; \
4172 $(SHELL) $$s/$$module_srcdir/configure \
4173 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4174 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4175 --target=${target_alias} \
4176 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4177 $(STAGE4_CONFIGURE_FLAGS)
4178@endif opcodes-bootstrap
4fa63067 4179
a90ef4bf
JM
4180.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4181maybe-configure-stageprofile-opcodes:
4182@if opcodes-bootstrap
4183maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4184configure-stageprofile-opcodes:
4185 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4186 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4187 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4189 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4190 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4191 $(HOST_EXPORTS) \
a90ef4bf
JM
4192 $(POSTSTAGE1_HOST_EXPORTS) \
4193 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4194 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4195 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
4196 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
4197 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4198 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4199 case $(srcdir) in \
4200 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4201 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4202 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4203 esac; \
1b6c0831
L
4204 module_srcdir=opcodes; \
4205 $(SHELL) $$s/$$module_srcdir/configure \
4206 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4207 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4208 --target=${target_alias} \
4209 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4210 $(STAGEprofile_CONFIGURE_FLAGS)
4211@endif opcodes-bootstrap
4212
4213.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4214maybe-configure-stagefeedback-opcodes:
4215@if opcodes-bootstrap
4216maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4217configure-stagefeedback-opcodes:
4218 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4219 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4220 @r=`${PWD_COMMAND}`; export r; \
4221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4222 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4223 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4224 $(HOST_EXPORTS) \
4225 $(POSTSTAGE1_HOST_EXPORTS) \
4226 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4227 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4228 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
4229 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
4230 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4231 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4232 case $(srcdir) in \
4233 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4234 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4235 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4236 esac; \
1b6c0831
L
4237 module_srcdir=opcodes; \
4238 $(SHELL) $$s/$$module_srcdir/configure \
4239 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4240 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4241 --target=${target_alias} \
4242 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4243 $(STAGEfeedback_CONFIGURE_FLAGS)
4244@endif opcodes-bootstrap
4245
4246
4247
4248
4249
4250.PHONY: all-opcodes maybe-all-opcodes
4251maybe-all-opcodes:
4252@if gcc-bootstrap
4253all-opcodes: stage_current
4254@endif gcc-bootstrap
4255@if opcodes
4256TARGET-opcodes=all
4257maybe-all-opcodes: all-opcodes
4258all-opcodes: configure-opcodes
4259 @r=`${PWD_COMMAND}`; export r; \
4260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4261 $(HOST_EXPORTS) \
4262 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4263 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4264 $(TARGET-opcodes))
4265@endif opcodes
4266
4267
4268
4269.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4270.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4271maybe-all-stage1-opcodes:
4272maybe-clean-stage1-opcodes:
4273@if opcodes-bootstrap
4274maybe-all-stage1-opcodes: all-stage1-opcodes
4275all-stage1: all-stage1-opcodes
4276TARGET-stage1-opcodes = $(TARGET-opcodes)
4277all-stage1-opcodes: configure-stage1-opcodes
4278 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4279 @r=`${PWD_COMMAND}`; export r; \
4280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4281 TFLAGS="$(STAGE1_TFLAGS)"; \
4282 $(HOST_EXPORTS) \
4283 cd $(HOST_SUBDIR)/opcodes && \
4284 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4285 CFLAGS="$(STAGE1_CFLAGS)" \
4286 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4287 LIBCFLAGS="$(LIBCFLAGS)" \
4288 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4289 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4290 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4291 $(EXTRA_HOST_FLAGS) \
4292 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4293 TFLAGS="$(STAGE1_TFLAGS)" \
4294 $(TARGET-stage1-opcodes)
4295
4296maybe-clean-stage1-opcodes: clean-stage1-opcodes
4297clean-stage1: clean-stage1-opcodes
4298clean-stage1-opcodes:
4299 @if [ $(current_stage) = stage1 ]; then \
4300 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4301 else \
4302 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4303 $(MAKE) stage1-start; \
4304 fi; \
4305 cd $(HOST_SUBDIR)/opcodes && \
4306 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4307 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4308@endif opcodes-bootstrap
4309
4310
4311.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4312.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4313maybe-all-stage2-opcodes:
4314maybe-clean-stage2-opcodes:
4315@if opcodes-bootstrap
4316maybe-all-stage2-opcodes: all-stage2-opcodes
4317all-stage2: all-stage2-opcodes
4318TARGET-stage2-opcodes = $(TARGET-opcodes)
4319all-stage2-opcodes: configure-stage2-opcodes
4320 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4321 @r=`${PWD_COMMAND}`; export r; \
4322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4323 TFLAGS="$(STAGE2_TFLAGS)"; \
4324 $(HOST_EXPORTS) \
4325 $(POSTSTAGE1_HOST_EXPORTS) \
4326 cd $(HOST_SUBDIR)/opcodes && \
4327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4328 CFLAGS="$(STAGE2_CFLAGS)" \
4329 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4330 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4331 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4332 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4333 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4334 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4335 TFLAGS="$(STAGE2_TFLAGS)" \
4336 $(TARGET-stage2-opcodes)
4337
4338maybe-clean-stage2-opcodes: clean-stage2-opcodes
4339clean-stage2: clean-stage2-opcodes
4340clean-stage2-opcodes:
4341 @if [ $(current_stage) = stage2 ]; then \
4342 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4343 else \
4344 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4345 $(MAKE) stage2-start; \
4346 fi; \
4347 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4348 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4349@endif opcodes-bootstrap
4350
4351
4352.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4353.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4354maybe-all-stage3-opcodes:
4355maybe-clean-stage3-opcodes:
4356@if opcodes-bootstrap
4357maybe-all-stage3-opcodes: all-stage3-opcodes
4358all-stage3: all-stage3-opcodes
4359TARGET-stage3-opcodes = $(TARGET-opcodes)
4360all-stage3-opcodes: configure-stage3-opcodes
4361 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4362 @r=`${PWD_COMMAND}`; export r; \
4363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4364 TFLAGS="$(STAGE3_TFLAGS)"; \
4365 $(HOST_EXPORTS) \
4366 $(POSTSTAGE1_HOST_EXPORTS) \
4367 cd $(HOST_SUBDIR)/opcodes && \
4368 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4369 CFLAGS="$(STAGE3_CFLAGS)" \
4370 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4371 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4372 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4373 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4374 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4375 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4376 TFLAGS="$(STAGE3_TFLAGS)" \
4377 $(TARGET-stage3-opcodes)
4378
4379maybe-clean-stage3-opcodes: clean-stage3-opcodes
4380clean-stage3: clean-stage3-opcodes
4381clean-stage3-opcodes:
4382 @if [ $(current_stage) = stage3 ]; then \
4383 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4384 else \
4385 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4386 $(MAKE) stage3-start; \
4387 fi; \
4388 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4389 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4390@endif opcodes-bootstrap
4391
4392
4393.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4394.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4395maybe-all-stage4-opcodes:
4396maybe-clean-stage4-opcodes:
4397@if opcodes-bootstrap
4398maybe-all-stage4-opcodes: all-stage4-opcodes
4399all-stage4: all-stage4-opcodes
4400TARGET-stage4-opcodes = $(TARGET-opcodes)
4401all-stage4-opcodes: configure-stage4-opcodes
4402 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4403 @r=`${PWD_COMMAND}`; export r; \
4404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4405 TFLAGS="$(STAGE4_TFLAGS)"; \
4406 $(HOST_EXPORTS) \
4407 $(POSTSTAGE1_HOST_EXPORTS) \
4408 cd $(HOST_SUBDIR)/opcodes && \
4409 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4410 CFLAGS="$(STAGE4_CFLAGS)" \
4411 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4412 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4413 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4414 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4415 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4416 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4417 TFLAGS="$(STAGE4_TFLAGS)" \
4418 $(TARGET-stage4-opcodes)
4419
4420maybe-clean-stage4-opcodes: clean-stage4-opcodes
4421clean-stage4: clean-stage4-opcodes
4422clean-stage4-opcodes:
4423 @if [ $(current_stage) = stage4 ]; then \
4424 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4425 else \
4426 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4427 $(MAKE) stage4-start; \
4428 fi; \
4429 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4430 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4431@endif opcodes-bootstrap
4432
4433
4434.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4435.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4436maybe-all-stageprofile-opcodes:
4437maybe-clean-stageprofile-opcodes:
4438@if opcodes-bootstrap
4439maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4440all-stageprofile: all-stageprofile-opcodes
4441TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4442all-stageprofile-opcodes: configure-stageprofile-opcodes
4443 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4444 @r=`${PWD_COMMAND}`; export r; \
4445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4446 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4447 $(HOST_EXPORTS) \
4448 $(POSTSTAGE1_HOST_EXPORTS) \
4449 cd $(HOST_SUBDIR)/opcodes && \
4450 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4451 CFLAGS="$(STAGEprofile_CFLAGS)" \
4452 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4453 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4454 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4455 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4456 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4457 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4458 TFLAGS="$(STAGEprofile_TFLAGS)" \
4459 $(TARGET-stageprofile-opcodes)
4460
4461maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4462clean-stageprofile: clean-stageprofile-opcodes
4463clean-stageprofile-opcodes:
4464 @if [ $(current_stage) = stageprofile ]; then \
4465 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4466 else \
4467 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4468 $(MAKE) stageprofile-start; \
4469 fi; \
4470 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4471 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4472@endif opcodes-bootstrap
4473
4474
4475.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4476.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4477maybe-all-stagefeedback-opcodes:
4478maybe-clean-stagefeedback-opcodes:
4479@if opcodes-bootstrap
4480maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4481all-stagefeedback: all-stagefeedback-opcodes
4482TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4483all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4484 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4485 @r=`${PWD_COMMAND}`; export r; \
4486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4487 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4488 $(HOST_EXPORTS) \
4489 $(POSTSTAGE1_HOST_EXPORTS) \
4490 cd $(HOST_SUBDIR)/opcodes && \
4491 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4492 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4493 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4494 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4495 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4496 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4497 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4498 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4499 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4500 $(TARGET-stagefeedback-opcodes)
4501
4502maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4503clean-stagefeedback: clean-stagefeedback-opcodes
4504clean-stagefeedback-opcodes:
4505 @if [ $(current_stage) = stagefeedback ]; then \
4506 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4507 else \
4508 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4509 $(MAKE) stagefeedback-start; \
4510 fi; \
4511 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4512 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4513@endif opcodes-bootstrap
4514
4515
4516
4517
4518
4519.PHONY: check-opcodes maybe-check-opcodes
4520maybe-check-opcodes:
4521@if opcodes
4522maybe-check-opcodes: check-opcodes
4523
4524check-opcodes:
0aed8855 4525 @: $(MAKE); $(unstage)
a90ef4bf 4526 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4528 $(HOST_EXPORTS) \
a90ef4bf
JM
4529 (cd $(HOST_SUBDIR)/opcodes && \
4530 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 4531
a90ef4bf 4532@endif opcodes
2a4cbe27 4533
a90ef4bf
JM
4534.PHONY: install-opcodes maybe-install-opcodes
4535maybe-install-opcodes:
4536@if opcodes
4537maybe-install-opcodes: install-opcodes
56a8fe78 4538
a90ef4bf 4539install-opcodes: installdirs
56a8fe78 4540 @: $(MAKE); $(unstage)
a90ef4bf 4541 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4543 $(HOST_EXPORTS) \
a90ef4bf
JM
4544 (cd $(HOST_SUBDIR)/opcodes && \
4545 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4546
a90ef4bf 4547@endif opcodes
56a8fe78 4548
a90ef4bf
JM
4549.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4550maybe-install-strip-opcodes:
4551@if opcodes
4552maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4553
a90ef4bf 4554install-strip-opcodes: installdirs
0aed8855 4555 @: $(MAKE); $(unstage)
a90ef4bf
JM
4556 @r=`${PWD_COMMAND}`; export r; \
4557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4558 $(HOST_EXPORTS) \
4559 (cd $(HOST_SUBDIR)/opcodes && \
4560 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4561
4562@endif opcodes
4563
4564# Other targets (info, dvi, pdf, etc.)
4565
4566.PHONY: maybe-info-opcodes info-opcodes
4567maybe-info-opcodes:
4568@if opcodes
4569maybe-info-opcodes: info-opcodes
4570
4571info-opcodes: \
4572 configure-opcodes
4573 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4574 r=`${PWD_COMMAND}`; export r; \
4575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4576 $(HOST_EXPORTS) \
4577 for flag in $(EXTRA_HOST_FLAGS) ; do \
4578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4579 done; \
a90ef4bf
JM
4580 echo "Doing info in opcodes" ; \
4581 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4584 "RANLIB=$${RANLIB}" \
0c24b341 4585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4586 info) \
6d389afc
MS
4587 || exit 1
4588
a90ef4bf 4589@endif opcodes
6d389afc 4590
a90ef4bf
JM
4591.PHONY: maybe-dvi-opcodes dvi-opcodes
4592maybe-dvi-opcodes:
4593@if opcodes
4594maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4595
a90ef4bf
JM
4596dvi-opcodes: \
4597 configure-opcodes
4598 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4599 r=`${PWD_COMMAND}`; export r; \
4600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4601 $(HOST_EXPORTS) \
b813574b 4602 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4604 done; \
a90ef4bf
JM
4605 echo "Doing dvi in opcodes" ; \
4606 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4609 "RANLIB=$${RANLIB}" \
0c24b341 4610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4611 dvi) \
2a4cbe27
NN
4612 || exit 1
4613
a90ef4bf 4614@endif opcodes
2a4cbe27 4615
a90ef4bf
JM
4616.PHONY: maybe-pdf-opcodes pdf-opcodes
4617maybe-pdf-opcodes:
4618@if opcodes
4619maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4620
a90ef4bf
JM
4621pdf-opcodes: \
4622 configure-opcodes
4623 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4624 r=`${PWD_COMMAND}`; export r; \
4625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4626 $(HOST_EXPORTS) \
b813574b 4627 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4629 done; \
a90ef4bf
JM
4630 echo "Doing pdf in opcodes" ; \
4631 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4634 "RANLIB=$${RANLIB}" \
0c24b341 4635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4636 pdf) \
2a4cbe27
NN
4637 || exit 1
4638
a90ef4bf 4639@endif opcodes
2a4cbe27 4640
a90ef4bf
JM
4641.PHONY: maybe-html-opcodes html-opcodes
4642maybe-html-opcodes:
4643@if opcodes
4644maybe-html-opcodes: html-opcodes
a3ca38d2 4645
a90ef4bf
JM
4646html-opcodes: \
4647 configure-opcodes
4648 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4649 r=`${PWD_COMMAND}`; export r; \
4650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4651 $(HOST_EXPORTS) \
4652 for flag in $(EXTRA_HOST_FLAGS) ; do \
4653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4654 done; \
a90ef4bf
JM
4655 echo "Doing html in opcodes" ; \
4656 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4659 "RANLIB=$${RANLIB}" \
0c24b341 4660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4661 html) \
a3ca38d2
DD
4662 || exit 1
4663
a90ef4bf 4664@endif opcodes
a3ca38d2 4665
a90ef4bf
JM
4666.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4667maybe-TAGS-opcodes:
4668@if opcodes
4669maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4670
a90ef4bf
JM
4671TAGS-opcodes: \
4672 configure-opcodes
4673 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4674 r=`${PWD_COMMAND}`; export r; \
4675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4676 $(HOST_EXPORTS) \
4677 for flag in $(EXTRA_HOST_FLAGS) ; do \
4678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4679 done; \
a90ef4bf
JM
4680 echo "Doing TAGS in opcodes" ; \
4681 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4684 "RANLIB=$${RANLIB}" \
0c24b341 4685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4686 TAGS) \
108a6f8e
CD
4687 || exit 1
4688
a90ef4bf 4689@endif opcodes
108a6f8e 4690
a90ef4bf
JM
4691.PHONY: maybe-install-info-opcodes install-info-opcodes
4692maybe-install-info-opcodes:
4693@if opcodes
4694maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4695
a90ef4bf
JM
4696install-info-opcodes: \
4697 configure-opcodes \
4698 info-opcodes
4699 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4700 r=`${PWD_COMMAND}`; export r; \
4701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4702 $(HOST_EXPORTS) \
b813574b 4703 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4705 done; \
a90ef4bf
JM
4706 echo "Doing install-info in opcodes" ; \
4707 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4710 "RANLIB=$${RANLIB}" \
0c24b341 4711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4712 install-info) \
2a4cbe27
NN
4713 || exit 1
4714
a90ef4bf 4715@endif opcodes
2a4cbe27 4716
a90ef4bf
JM
4717.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4718maybe-install-pdf-opcodes:
4719@if opcodes
4720maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4721
a90ef4bf
JM
4722install-pdf-opcodes: \
4723 configure-opcodes \
4724 pdf-opcodes
4725 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4726 r=`${PWD_COMMAND}`; export r; \
4727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4728 $(HOST_EXPORTS) \
b813574b 4729 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4731 done; \
a90ef4bf
JM
4732 echo "Doing install-pdf in opcodes" ; \
4733 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4736 "RANLIB=$${RANLIB}" \
0c24b341 4737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4738 install-pdf) \
2a4cbe27
NN
4739 || exit 1
4740
a90ef4bf 4741@endif opcodes
2a4cbe27 4742
a90ef4bf
JM
4743.PHONY: maybe-install-html-opcodes install-html-opcodes
4744maybe-install-html-opcodes:
4745@if opcodes
4746maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4747
a90ef4bf
JM
4748install-html-opcodes: \
4749 configure-opcodes \
4750 html-opcodes
4751 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4752 r=`${PWD_COMMAND}`; export r; \
4753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4754 $(HOST_EXPORTS) \
b813574b 4755 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4757 done; \
a90ef4bf
JM
4758 echo "Doing install-html in opcodes" ; \
4759 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4762 "RANLIB=$${RANLIB}" \
0c24b341 4763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4764 install-html) \
2a4cbe27
NN
4765 || exit 1
4766
a90ef4bf 4767@endif opcodes
2a4cbe27 4768
a90ef4bf
JM
4769.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4770maybe-installcheck-opcodes:
4771@if opcodes
4772maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4773
a90ef4bf
JM
4774installcheck-opcodes: \
4775 configure-opcodes
4776 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4777 r=`${PWD_COMMAND}`; export r; \
4778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4779 $(HOST_EXPORTS) \
b813574b 4780 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4782 done; \
a90ef4bf
JM
4783 echo "Doing installcheck in opcodes" ; \
4784 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4787 "RANLIB=$${RANLIB}" \
0c24b341 4788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4789 installcheck) \
2a4cbe27
NN
4790 || exit 1
4791
a90ef4bf 4792@endif opcodes
2a4cbe27 4793
a90ef4bf
JM
4794.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4795maybe-mostlyclean-opcodes:
4796@if opcodes
4797maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4798
a90ef4bf
JM
4799mostlyclean-opcodes:
4800 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4801 r=`${PWD_COMMAND}`; export r; \
4802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4803 $(HOST_EXPORTS) \
b813574b 4804 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4806 done; \
a90ef4bf
JM
4807 echo "Doing mostlyclean in opcodes" ; \
4808 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4811 "RANLIB=$${RANLIB}" \
0c24b341 4812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4813 mostlyclean) \
2a4cbe27
NN
4814 || exit 1
4815
a90ef4bf 4816@endif opcodes
2a4cbe27 4817
a90ef4bf
JM
4818.PHONY: maybe-clean-opcodes clean-opcodes
4819maybe-clean-opcodes:
4820@if opcodes
4821maybe-clean-opcodes: clean-opcodes
2a4cbe27 4822
a90ef4bf
JM
4823clean-opcodes:
4824 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4825 r=`${PWD_COMMAND}`; export r; \
4826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4827 $(HOST_EXPORTS) \
b813574b 4828 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4830 done; \
a90ef4bf
JM
4831 echo "Doing clean in opcodes" ; \
4832 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4835 "RANLIB=$${RANLIB}" \
0c24b341 4836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4837 clean) \
2a4cbe27
NN
4838 || exit 1
4839
a90ef4bf 4840@endif opcodes
2a4cbe27 4841
a90ef4bf
JM
4842.PHONY: maybe-distclean-opcodes distclean-opcodes
4843maybe-distclean-opcodes:
4844@if opcodes
4845maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4846
a90ef4bf
JM
4847distclean-opcodes:
4848 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4849 r=`${PWD_COMMAND}`; export r; \
4850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4851 $(HOST_EXPORTS) \
b813574b 4852 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4854 done; \
a90ef4bf
JM
4855 echo "Doing distclean in opcodes" ; \
4856 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4859 "RANLIB=$${RANLIB}" \
0c24b341 4860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4861 distclean) \
2a4cbe27
NN
4862 || exit 1
4863
a90ef4bf 4864@endif opcodes
2a4cbe27 4865
a90ef4bf
JM
4866.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4867maybe-maintainer-clean-opcodes:
4868@if opcodes
4869maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4870
a90ef4bf
JM
4871maintainer-clean-opcodes:
4872 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4873 r=`${PWD_COMMAND}`; export r; \
4874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4875 $(HOST_EXPORTS) \
b813574b 4876 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4878 done; \
a90ef4bf
JM
4879 echo "Doing maintainer-clean in opcodes" ; \
4880 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4883 "RANLIB=$${RANLIB}" \
0c24b341 4884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4885 maintainer-clean) \
2a4cbe27
NN
4886 || exit 1
4887
a90ef4bf 4888@endif opcodes
2a4cbe27 4889
2a4cbe27 4890
a7254363 4891
a90ef4bf
JM
4892.PHONY: configure-binutils maybe-configure-binutils
4893maybe-configure-binutils:
4f0ef2d8 4894@if gcc-bootstrap
a90ef4bf 4895configure-binutils: stage_current
4f0ef2d8 4896@endif gcc-bootstrap
a90ef4bf
JM
4897@if binutils
4898maybe-configure-binutils: configure-binutils
4899configure-binutils:
c52c6897
PB
4900 @r=`${PWD_COMMAND}`; export r; \
4901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4902 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
4903 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
1f53ca9a 4904 $(HOST_EXPORTS) \
a90ef4bf
JM
4905 echo Configuring in $(HOST_SUBDIR)/binutils; \
4906 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4907 case $(srcdir) in \
b00612cc 4908 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4909 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4910 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4911 esac; \
1b6c0831
L
4912 module_srcdir=binutils; \
4913 $(SHELL) \
4914 $$s/$$module_srcdir/configure \
4915 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4916 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4917 --target=${target_alias} \
2a4cbe27 4918 || exit 1
a90ef4bf 4919@endif binutils
2a4cbe27 4920
a7254363
PB
4921
4922
a90ef4bf
JM
4923.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4924maybe-configure-stage1-binutils:
4925@if binutils-bootstrap
4926maybe-configure-stage1-binutils: configure-stage1-binutils
4927configure-stage1-binutils:
c52c6897 4928 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4929 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4930 @r=`${PWD_COMMAND}`; export r; \
4931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4932 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4933 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4934 $(HOST_EXPORTS) \
8ee82aff 4935 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4936 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4937 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4938 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
4939 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4940 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4941 case $(srcdir) in \
4942 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4943 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4944 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4945 esac; \
1b6c0831
L
4946 module_srcdir=binutils; \
4947 $(SHELL) $$s/$$module_srcdir/configure \
4948 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4949 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4950 --target=${target_alias} \
4951 \
1b05fbbd 4952 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4953@endif binutils-bootstrap
d545f33b 4954
a90ef4bf
JM
4955.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4956maybe-configure-stage2-binutils:
4957@if binutils-bootstrap
4958maybe-configure-stage2-binutils: configure-stage2-binutils
4959configure-stage2-binutils:
c52c6897 4960 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 4961 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4962 @r=`${PWD_COMMAND}`; export r; \
4963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4964 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 4965 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4966 $(HOST_EXPORTS) \
1b05fbbd 4967 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4968 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4969 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4970 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4971 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
4972 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4973 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4974 case $(srcdir) in \
4975 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4976 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4977 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4978 esac; \
1b6c0831
L
4979 module_srcdir=binutils; \
4980 $(SHELL) $$s/$$module_srcdir/configure \
4981 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4982 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4983 --target=${target_alias} \
4984 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 4985 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 4986@endif binutils-bootstrap
8520c408 4987
a90ef4bf
JM
4988.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
4989maybe-configure-stage3-binutils:
4990@if binutils-bootstrap
4991maybe-configure-stage3-binutils: configure-stage3-binutils
4992configure-stage3-binutils:
c52c6897 4993 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 4994 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4995 @r=`${PWD_COMMAND}`; export r; \
4996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4997 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 4998 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4999 $(HOST_EXPORTS) \
1b05fbbd 5000 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5001 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5002 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5003 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
5004 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
5005 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5006 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5007 case $(srcdir) in \
5008 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5009 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5010 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5011 esac; \
1b6c0831
L
5012 module_srcdir=binutils; \
5013 $(SHELL) $$s/$$module_srcdir/configure \
5014 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5015 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5016 --target=${target_alias} \
5017 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5018 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5019@endif binutils-bootstrap
8520c408 5020
a90ef4bf
JM
5021.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5022maybe-configure-stage4-binutils:
5023@if binutils-bootstrap
5024maybe-configure-stage4-binutils: configure-stage4-binutils
5025configure-stage4-binutils:
c52c6897 5026 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5027 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5028 @r=`${PWD_COMMAND}`; export r; \
5029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5030 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5031 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5032 $(HOST_EXPORTS) \
1b05fbbd 5033 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5034 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5035 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5036 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
5037 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
5038 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5039 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5040 case $(srcdir) in \
5041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5042 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5044 esac; \
1b6c0831
L
5045 module_srcdir=binutils; \
5046 $(SHELL) $$s/$$module_srcdir/configure \
5047 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5048 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5049 --target=${target_alias} \
5050 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5051 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5052@endif binutils-bootstrap
d545f33b 5053
a90ef4bf
JM
5054.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5055maybe-configure-stageprofile-binutils:
5056@if binutils-bootstrap
5057maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5058configure-stageprofile-binutils:
c52c6897 5059 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5060 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5061 @r=`${PWD_COMMAND}`; export r; \
5062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5063 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5064 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5065 $(HOST_EXPORTS) \
1b05fbbd
AO
5066 $(POSTSTAGE1_HOST_EXPORTS) \
5067 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5068 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5069 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
5070 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
5071 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5072 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5073 case $(srcdir) in \
5074 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5075 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5076 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5077 esac; \
1b6c0831
L
5078 module_srcdir=binutils; \
5079 $(SHELL) $$s/$$module_srcdir/configure \
5080 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5081 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5082 --target=${target_alias} \
5083 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5084 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5085@endif binutils-bootstrap
d545f33b 5086
a90ef4bf
JM
5087.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5088maybe-configure-stagefeedback-binutils:
5089@if binutils-bootstrap
5090maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5091configure-stagefeedback-binutils:
c52c6897 5092 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5093 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5094 @r=`${PWD_COMMAND}`; export r; \
5095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5096 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5097 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5098 $(HOST_EXPORTS) \
1b05fbbd
AO
5099 $(POSTSTAGE1_HOST_EXPORTS) \
5100 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5101 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5102 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
5103 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
5104 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5105 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5106 case $(srcdir) in \
5107 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5108 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5109 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5110 esac; \
1b6c0831
L
5111 module_srcdir=binutils; \
5112 $(SHELL) $$s/$$module_srcdir/configure \
5113 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5114 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5115 --target=${target_alias} \
5116 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5117 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5118@endif binutils-bootstrap
d545f33b
PB
5119
5120
5121
5122
5123
a90ef4bf
JM
5124.PHONY: all-binutils maybe-all-binutils
5125maybe-all-binutils:
4f0ef2d8 5126@if gcc-bootstrap
a90ef4bf 5127all-binutils: stage_current
4f0ef2d8 5128@endif gcc-bootstrap
a90ef4bf
JM
5129@if binutils
5130TARGET-binutils=all
5131maybe-all-binutils: all-binutils
5132all-binutils: configure-binutils
c52c6897 5133 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5135 $(HOST_EXPORTS) \
a90ef4bf 5136 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5137 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5138 $(TARGET-binutils))
5139@endif binutils
2a4cbe27 5140
a7254363 5141
d545f33b 5142
a90ef4bf
JM
5143.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5144.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5145maybe-all-stage1-binutils:
5146maybe-clean-stage1-binutils:
5147@if binutils-bootstrap
5148maybe-all-stage1-binutils: all-stage1-binutils
5149all-stage1: all-stage1-binutils
5150TARGET-stage1-binutils = $(TARGET-binutils)
5151all-stage1-binutils: configure-stage1-binutils
c52c6897 5152 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5153 @r=`${PWD_COMMAND}`; export r; \
5154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5155 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5156 $(HOST_EXPORTS) \
a90ef4bf 5157 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5158 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5159 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5160 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5161 LIBCFLAGS="$(LIBCFLAGS)" \
5162 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5163 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5164 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5165 $(EXTRA_HOST_FLAGS) \
5166 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 5167 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5168 $(TARGET-stage1-binutils)
d545f33b 5169
a90ef4bf
JM
5170maybe-clean-stage1-binutils: clean-stage1-binutils
5171clean-stage1: clean-stage1-binutils
5172clean-stage1-binutils:
9dbaa842 5173 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5174 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5175 else \
a90ef4bf 5176 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5177 $(MAKE) stage1-start; \
5178 fi; \
a90ef4bf 5179 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5180 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5181 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5182@endif binutils-bootstrap
d545f33b
PB
5183
5184
a90ef4bf
JM
5185.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5186.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5187maybe-all-stage2-binutils:
5188maybe-clean-stage2-binutils:
5189@if binutils-bootstrap
5190maybe-all-stage2-binutils: all-stage2-binutils
5191all-stage2: all-stage2-binutils
5192TARGET-stage2-binutils = $(TARGET-binutils)
5193all-stage2-binutils: configure-stage2-binutils
c52c6897 5194 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5195 @r=`${PWD_COMMAND}`; export r; \
5196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5197 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5198 $(HOST_EXPORTS) \
1f53ca9a 5199 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5200 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5202 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5203 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5204 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5208 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5209 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5210 $(TARGET-stage2-binutils)
d545f33b 5211
a90ef4bf
JM
5212maybe-clean-stage2-binutils: clean-stage2-binutils
5213clean-stage2: clean-stage2-binutils
5214clean-stage2-binutils:
9dbaa842 5215 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5216 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5217 else \
a90ef4bf 5218 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5219 $(MAKE) stage2-start; \
5220 fi; \
a90ef4bf 5221 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5222 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5223@endif binutils-bootstrap
d545f33b
PB
5224
5225
a90ef4bf
JM
5226.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5227.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5228maybe-all-stage3-binutils:
5229maybe-clean-stage3-binutils:
5230@if binutils-bootstrap
5231maybe-all-stage3-binutils: all-stage3-binutils
5232all-stage3: all-stage3-binutils
5233TARGET-stage3-binutils = $(TARGET-binutils)
5234all-stage3-binutils: configure-stage3-binutils
c52c6897 5235 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5236 @r=`${PWD_COMMAND}`; export r; \
5237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5238 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5239 $(HOST_EXPORTS) \
1f53ca9a 5240 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5241 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5242 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5243 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5244 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5245 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5246 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5247 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5248 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5249 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5250 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5251 $(TARGET-stage3-binutils)
d545f33b 5252
a90ef4bf
JM
5253maybe-clean-stage3-binutils: clean-stage3-binutils
5254clean-stage3: clean-stage3-binutils
5255clean-stage3-binutils:
9dbaa842 5256 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5257 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5258 else \
a90ef4bf 5259 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5260 $(MAKE) stage3-start; \
5261 fi; \
a90ef4bf 5262 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5263 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5264@endif binutils-bootstrap
d545f33b
PB
5265
5266
a90ef4bf
JM
5267.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5268.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5269maybe-all-stage4-binutils:
5270maybe-clean-stage4-binutils:
5271@if binutils-bootstrap
5272maybe-all-stage4-binutils: all-stage4-binutils
5273all-stage4: all-stage4-binutils
5274TARGET-stage4-binutils = $(TARGET-binutils)
5275all-stage4-binutils: configure-stage4-binutils
c52c6897 5276 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5277 @r=`${PWD_COMMAND}`; export r; \
5278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5279 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5280 $(HOST_EXPORTS) \
1f53ca9a 5281 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5282 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5283 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5284 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5285 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5286 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5287 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5288 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5289 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5290 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5291 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5292 $(TARGET-stage4-binutils)
d545f33b 5293
a90ef4bf
JM
5294maybe-clean-stage4-binutils: clean-stage4-binutils
5295clean-stage4: clean-stage4-binutils
5296clean-stage4-binutils:
9dbaa842 5297 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5298 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5299 else \
a90ef4bf 5300 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5301 $(MAKE) stage4-start; \
5302 fi; \
a90ef4bf 5303 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5304 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5305@endif binutils-bootstrap
d545f33b
PB
5306
5307
a90ef4bf
JM
5308.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5309.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5310maybe-all-stageprofile-binutils:
5311maybe-clean-stageprofile-binutils:
5312@if binutils-bootstrap
5313maybe-all-stageprofile-binutils: all-stageprofile-binutils
5314all-stageprofile: all-stageprofile-binutils
5315TARGET-stageprofile-binutils = $(TARGET-binutils)
5316all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5317 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5318 @r=`${PWD_COMMAND}`; export r; \
5319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5320 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5321 $(HOST_EXPORTS) \
1f53ca9a 5322 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5323 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5324 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5325 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5326 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5327 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5328 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5329 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5330 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5331 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5332 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5333 $(TARGET-stageprofile-binutils)
d545f33b 5334
a90ef4bf
JM
5335maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5336clean-stageprofile: clean-stageprofile-binutils
5337clean-stageprofile-binutils:
9dbaa842 5338 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5339 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5340 else \
a90ef4bf 5341 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5342 $(MAKE) stageprofile-start; \
5343 fi; \
a90ef4bf 5344 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5345 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5346@endif binutils-bootstrap
d545f33b
PB
5347
5348
a90ef4bf
JM
5349.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5350.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5351maybe-all-stagefeedback-binutils:
5352maybe-clean-stagefeedback-binutils:
5353@if binutils-bootstrap
5354maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5355all-stagefeedback: all-stagefeedback-binutils
5356TARGET-stagefeedback-binutils = $(TARGET-binutils)
5357all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5358 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5359 @r=`${PWD_COMMAND}`; export r; \
5360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5361 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5362 $(HOST_EXPORTS) \
1f53ca9a 5363 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5364 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5365 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5366 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5367 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5368 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5369 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5370 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5371 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5372 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5373 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5374 $(TARGET-stagefeedback-binutils)
d545f33b 5375
a90ef4bf
JM
5376maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5377clean-stagefeedback: clean-stagefeedback-binutils
5378clean-stagefeedback-binutils:
9dbaa842 5379 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5380 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5381 else \
a90ef4bf 5382 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5383 $(MAKE) stagefeedback-start; \
5384 fi; \
a90ef4bf 5385 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5386 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5387@endif binutils-bootstrap
d545f33b
PB
5388
5389
5390
5391
5392
a90ef4bf
JM
5393.PHONY: check-binutils maybe-check-binutils
5394maybe-check-binutils:
5395@if binutils
5396maybe-check-binutils: check-binutils
2a4cbe27 5397
a90ef4bf 5398check-binutils:
0aed8855 5399 @: $(MAKE); $(unstage)
4fa63067 5400 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5402 $(HOST_EXPORTS) \
a90ef4bf 5403 (cd $(HOST_SUBDIR)/binutils && \
b00612cc 5404 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 5405
a90ef4bf 5406@endif binutils
2a4cbe27 5407
a90ef4bf
JM
5408.PHONY: install-binutils maybe-install-binutils
5409maybe-install-binutils:
5410@if binutils
5411maybe-install-binutils: install-binutils
2a4cbe27 5412
a90ef4bf 5413install-binutils: installdirs
0aed8855 5414 @: $(MAKE); $(unstage)
4fa63067 5415 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5417 $(HOST_EXPORTS) \
a90ef4bf 5418 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5419 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5420
a90ef4bf 5421@endif binutils
2a4cbe27 5422
a90ef4bf
JM
5423.PHONY: install-strip-binutils maybe-install-strip-binutils
5424maybe-install-strip-binutils:
5425@if binutils
5426maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5427
a90ef4bf 5428install-strip-binutils: installdirs
9b980aa1
RW
5429 @: $(MAKE); $(unstage)
5430 @r=`${PWD_COMMAND}`; export r; \
5431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5432 $(HOST_EXPORTS) \
a90ef4bf 5433 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5434 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5435
a90ef4bf 5436@endif binutils
9b980aa1 5437
56a8fe78 5438# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5439
a90ef4bf
JM
5440.PHONY: maybe-info-binutils info-binutils
5441maybe-info-binutils:
5442@if binutils
5443maybe-info-binutils: info-binutils
4fa63067 5444
a90ef4bf
JM
5445info-binutils: \
5446 configure-binutils
5447 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5448 r=`${PWD_COMMAND}`; export r; \
5449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5450 $(HOST_EXPORTS) \
b813574b 5451 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5453 done; \
a90ef4bf
JM
5454 echo "Doing info in binutils" ; \
5455 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5458 "RANLIB=$${RANLIB}" \
0c24b341 5459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5460 info) \
2a4cbe27
NN
5461 || exit 1
5462
a90ef4bf 5463@endif binutils
2a4cbe27 5464
a90ef4bf
JM
5465.PHONY: maybe-dvi-binutils dvi-binutils
5466maybe-dvi-binutils:
5467@if binutils
5468maybe-dvi-binutils: dvi-binutils
2a4cbe27 5469
a90ef4bf
JM
5470dvi-binutils: \
5471 configure-binutils
5472 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5473 r=`${PWD_COMMAND}`; export r; \
5474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5475 $(HOST_EXPORTS) \
b813574b 5476 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5478 done; \
a90ef4bf
JM
5479 echo "Doing dvi in binutils" ; \
5480 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5483 "RANLIB=$${RANLIB}" \
0c24b341 5484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5485 dvi) \
2a4cbe27
NN
5486 || exit 1
5487
a90ef4bf 5488@endif binutils
2a4cbe27 5489
a90ef4bf
JM
5490.PHONY: maybe-pdf-binutils pdf-binutils
5491maybe-pdf-binutils:
5492@if binutils
5493maybe-pdf-binutils: pdf-binutils
56a8fe78 5494
a90ef4bf
JM
5495pdf-binutils: \
5496 configure-binutils
5497 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5498 r=`${PWD_COMMAND}`; export r; \
5499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5500 $(HOST_EXPORTS) \
5501 for flag in $(EXTRA_HOST_FLAGS) ; do \
5502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5503 done; \
a90ef4bf
JM
5504 echo "Doing pdf in binutils" ; \
5505 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5508 "RANLIB=$${RANLIB}" \
0c24b341 5509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5510 pdf) \
5511 || exit 1
5512
a90ef4bf 5513@endif binutils
56a8fe78 5514
a90ef4bf
JM
5515.PHONY: maybe-html-binutils html-binutils
5516maybe-html-binutils:
5517@if binutils
5518maybe-html-binutils: html-binutils
6d389afc 5519
a90ef4bf
JM
5520html-binutils: \
5521 configure-binutils
5522 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5523 r=`${PWD_COMMAND}`; export r; \
5524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5525 $(HOST_EXPORTS) \
5526 for flag in $(EXTRA_HOST_FLAGS) ; do \
5527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5528 done; \
a90ef4bf
JM
5529 echo "Doing html in binutils" ; \
5530 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5533 "RANLIB=$${RANLIB}" \
0c24b341 5534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5535 html) \
5536 || exit 1
5537
a90ef4bf 5538@endif binutils
6d389afc 5539
a90ef4bf
JM
5540.PHONY: maybe-TAGS-binutils TAGS-binutils
5541maybe-TAGS-binutils:
5542@if binutils
5543maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5544
a90ef4bf
JM
5545TAGS-binutils: \
5546 configure-binutils
5547 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5548 r=`${PWD_COMMAND}`; export r; \
5549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5550 $(HOST_EXPORTS) \
b813574b 5551 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5553 done; \
a90ef4bf
JM
5554 echo "Doing TAGS in binutils" ; \
5555 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5558 "RANLIB=$${RANLIB}" \
0c24b341 5559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5560 TAGS) \
2a4cbe27
NN
5561 || exit 1
5562
a90ef4bf 5563@endif binutils
2a4cbe27 5564
a90ef4bf
JM
5565.PHONY: maybe-install-info-binutils install-info-binutils
5566maybe-install-info-binutils:
5567@if binutils
5568maybe-install-info-binutils: install-info-binutils
2a4cbe27 5569
a90ef4bf
JM
5570install-info-binutils: \
5571 configure-binutils \
5572 info-binutils
5573 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5574 r=`${PWD_COMMAND}`; export r; \
5575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5576 $(HOST_EXPORTS) \
b813574b 5577 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5579 done; \
a90ef4bf
JM
5580 echo "Doing install-info in binutils" ; \
5581 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5584 "RANLIB=$${RANLIB}" \
0c24b341 5585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5586 install-info) \
2a4cbe27
NN
5587 || exit 1
5588
a90ef4bf 5589@endif binutils
2a4cbe27 5590
a90ef4bf
JM
5591.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5592maybe-install-pdf-binutils:
5593@if binutils
5594maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5595
a90ef4bf
JM
5596install-pdf-binutils: \
5597 configure-binutils \
5598 pdf-binutils
5599 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5600 r=`${PWD_COMMAND}`; export r; \
5601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5602 $(HOST_EXPORTS) \
5603 for flag in $(EXTRA_HOST_FLAGS) ; do \
5604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5605 done; \
a90ef4bf
JM
5606 echo "Doing install-pdf in binutils" ; \
5607 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5610 "RANLIB=$${RANLIB}" \
0c24b341 5611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5612 install-pdf) \
5613 || exit 1
5614
a90ef4bf 5615@endif binutils
a3ca38d2 5616
a90ef4bf
JM
5617.PHONY: maybe-install-html-binutils install-html-binutils
5618maybe-install-html-binutils:
5619@if binutils
5620maybe-install-html-binutils: install-html-binutils
108a6f8e 5621
a90ef4bf
JM
5622install-html-binutils: \
5623 configure-binutils \
5624 html-binutils
5625 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5626 r=`${PWD_COMMAND}`; export r; \
5627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5628 $(HOST_EXPORTS) \
5629 for flag in $(EXTRA_HOST_FLAGS) ; do \
5630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5631 done; \
a90ef4bf
JM
5632 echo "Doing install-html in binutils" ; \
5633 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5636 "RANLIB=$${RANLIB}" \
0c24b341 5637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5638 install-html) \
5639 || exit 1
5640
a90ef4bf 5641@endif binutils
108a6f8e 5642
a90ef4bf
JM
5643.PHONY: maybe-installcheck-binutils installcheck-binutils
5644maybe-installcheck-binutils:
5645@if binutils
5646maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5647
a90ef4bf
JM
5648installcheck-binutils: \
5649 configure-binutils
5650 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5651 r=`${PWD_COMMAND}`; export r; \
5652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5653 $(HOST_EXPORTS) \
b813574b 5654 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5656 done; \
a90ef4bf
JM
5657 echo "Doing installcheck in binutils" ; \
5658 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5661 "RANLIB=$${RANLIB}" \
0c24b341 5662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5663 installcheck) \
2a4cbe27
NN
5664 || exit 1
5665
a90ef4bf 5666@endif binutils
2a4cbe27 5667
a90ef4bf
JM
5668.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5669maybe-mostlyclean-binutils:
5670@if binutils
5671maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5672
a90ef4bf
JM
5673mostlyclean-binutils:
5674 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5675 r=`${PWD_COMMAND}`; export r; \
5676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5677 $(HOST_EXPORTS) \
b813574b 5678 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5680 done; \
a90ef4bf
JM
5681 echo "Doing mostlyclean in binutils" ; \
5682 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5685 "RANLIB=$${RANLIB}" \
0c24b341 5686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5687 mostlyclean) \
2a4cbe27
NN
5688 || exit 1
5689
a90ef4bf 5690@endif binutils
2a4cbe27 5691
a90ef4bf
JM
5692.PHONY: maybe-clean-binutils clean-binutils
5693maybe-clean-binutils:
5694@if binutils
5695maybe-clean-binutils: clean-binutils
2a4cbe27 5696
a90ef4bf
JM
5697clean-binutils:
5698 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5699 r=`${PWD_COMMAND}`; export r; \
5700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5701 $(HOST_EXPORTS) \
b813574b 5702 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5704 done; \
a90ef4bf
JM
5705 echo "Doing clean in binutils" ; \
5706 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5709 "RANLIB=$${RANLIB}" \
0c24b341 5710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5711 clean) \
2a4cbe27
NN
5712 || exit 1
5713
a90ef4bf 5714@endif binutils
2a4cbe27 5715
a90ef4bf
JM
5716.PHONY: maybe-distclean-binutils distclean-binutils
5717maybe-distclean-binutils:
5718@if binutils
5719maybe-distclean-binutils: distclean-binutils
2a4cbe27 5720
a90ef4bf
JM
5721distclean-binutils:
5722 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5723 r=`${PWD_COMMAND}`; export r; \
5724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5725 $(HOST_EXPORTS) \
b813574b 5726 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5728 done; \
a90ef4bf
JM
5729 echo "Doing distclean in binutils" ; \
5730 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5733 "RANLIB=$${RANLIB}" \
0c24b341 5734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5735 distclean) \
2a4cbe27
NN
5736 || exit 1
5737
a90ef4bf 5738@endif binutils
2a4cbe27 5739
a90ef4bf
JM
5740.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5741maybe-maintainer-clean-binutils:
5742@if binutils
5743maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5744
a90ef4bf
JM
5745maintainer-clean-binutils:
5746 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5747 r=`${PWD_COMMAND}`; export r; \
5748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5749 $(HOST_EXPORTS) \
b813574b 5750 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5752 done; \
a90ef4bf
JM
5753 echo "Doing maintainer-clean in binutils" ; \
5754 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5757 "RANLIB=$${RANLIB}" \
0c24b341 5758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5759 maintainer-clean) \
a2592b1b
DD
5760 || exit 1
5761
a90ef4bf 5762@endif binutils
a2592b1b 5763
2a4cbe27 5764
a7254363 5765
a90ef4bf
JM
5766.PHONY: configure-bison maybe-configure-bison
5767maybe-configure-bison:
4f0ef2d8 5768@if gcc-bootstrap
a90ef4bf 5769configure-bison: stage_current
4f0ef2d8 5770@endif gcc-bootstrap
a90ef4bf
JM
5771@if bison
5772maybe-configure-bison: configure-bison
5773configure-bison:
5774 @: $(MAKE); $(unstage)
c52c6897
PB
5775 @r=`${PWD_COMMAND}`; export r; \
5776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5777 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
5778 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
1f53ca9a 5779 $(HOST_EXPORTS) \
a90ef4bf
JM
5780 echo Configuring in $(HOST_SUBDIR)/bison; \
5781 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5782 case $(srcdir) in \
b00612cc 5783 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5784 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5785 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5786 esac; \
1b6c0831
L
5787 module_srcdir=bison; \
5788 $(SHELL) \
5789 $$s/$$module_srcdir/configure \
5790 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5791 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5792 --target=${target_alias} \
4fa63067 5793 || exit 1
a90ef4bf 5794@endif bison
2a4cbe27 5795
a7254363
PB
5796
5797
d545f33b 5798
8520c408 5799
a90ef4bf
JM
5800.PHONY: all-bison maybe-all-bison
5801maybe-all-bison:
5802@if gcc-bootstrap
5803all-bison: stage_current
5804@endif gcc-bootstrap
5805@if bison
5806TARGET-bison=all
5807maybe-all-bison: all-bison
5808all-bison: configure-bison
5809 @: $(MAKE); $(unstage)
c52c6897
PB
5810 @r=`${PWD_COMMAND}`; export r; \
5811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5812 $(HOST_EXPORTS) \
5813 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5815 $(TARGET-bison))
5816@endif bison
8520c408 5817
d545f33b 5818
d545f33b 5819
d545f33b 5820
a90ef4bf
JM
5821.PHONY: check-bison maybe-check-bison
5822maybe-check-bison:
5823@if bison
5824maybe-check-bison: check-bison
d545f33b 5825
a90ef4bf
JM
5826# This module is only tested in a native toolchain.
5827check-bison:
5828 @: $(MAKE); $(unstage)
5829 @if [ '$(host)' = '$(target)' ] ; then \
5830 r=`${PWD_COMMAND}`; export r; \
5831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5832 $(HOST_EXPORTS) \
5833 (cd $(HOST_SUBDIR)/bison && \
5834 $(MAKE) $(FLAGS_TO_PASS) check); \
5835 fi
d545f33b 5836
a90ef4bf 5837@endif bison
d545f33b 5838
a90ef4bf
JM
5839.PHONY: install-bison maybe-install-bison
5840maybe-install-bison:
5841@if bison
5842maybe-install-bison: install-bison
d545f33b 5843
a90ef4bf
JM
5844install-bison: installdirs
5845 @: $(MAKE); $(unstage)
c52c6897 5846 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5848 $(HOST_EXPORTS) \
5849 (cd $(HOST_SUBDIR)/bison && \
5850 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5851
a90ef4bf 5852@endif bison
a7254363 5853
a90ef4bf
JM
5854.PHONY: install-strip-bison maybe-install-strip-bison
5855maybe-install-strip-bison:
5856@if bison
5857maybe-install-strip-bison: install-strip-bison
d545f33b 5858
a90ef4bf
JM
5859install-strip-bison: installdirs
5860 @: $(MAKE); $(unstage)
d545f33b
PB
5861 @r=`${PWD_COMMAND}`; export r; \
5862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5863 $(HOST_EXPORTS) \
5864 (cd $(HOST_SUBDIR)/bison && \
5865 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5866
a90ef4bf 5867@endif bison
d545f33b 5868
a90ef4bf 5869# Other targets (info, dvi, pdf, etc.)
d545f33b 5870
a90ef4bf
JM
5871.PHONY: maybe-info-bison info-bison
5872maybe-info-bison:
5873@if bison
5874maybe-info-bison: info-bison
5875
5876info-bison: \
5877 configure-bison
5878 @: $(MAKE); $(unstage)
5879 @[ -f ./bison/Makefile ] || exit 0; \
5880 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5882 $(HOST_EXPORTS) \
a90ef4bf
JM
5883 for flag in $(EXTRA_HOST_FLAGS) ; do \
5884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5885 done; \
5886 echo "Doing info in bison" ; \
5887 (cd $(HOST_SUBDIR)/bison && \
5888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5890 "RANLIB=$${RANLIB}" \
5891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5892 info) \
5893 || exit 1
d545f33b 5894
a90ef4bf 5895@endif bison
d545f33b 5896
a90ef4bf
JM
5897.PHONY: maybe-dvi-bison dvi-bison
5898maybe-dvi-bison:
5899@if bison
5900maybe-dvi-bison: dvi-bison
d545f33b 5901
a90ef4bf
JM
5902dvi-bison: \
5903 configure-bison
5904 @: $(MAKE); $(unstage)
5905 @[ -f ./bison/Makefile ] || exit 0; \
5906 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5908 $(HOST_EXPORTS) \
a90ef4bf
JM
5909 for flag in $(EXTRA_HOST_FLAGS) ; do \
5910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5911 done; \
5912 echo "Doing dvi in bison" ; \
5913 (cd $(HOST_SUBDIR)/bison && \
5914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5916 "RANLIB=$${RANLIB}" \
5917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5918 dvi) \
5919 || exit 1
d545f33b 5920
a90ef4bf 5921@endif bison
d545f33b 5922
a90ef4bf
JM
5923.PHONY: maybe-pdf-bison pdf-bison
5924maybe-pdf-bison:
5925@if bison
5926maybe-pdf-bison: pdf-bison
d545f33b 5927
a90ef4bf
JM
5928pdf-bison: \
5929 configure-bison
5930 @: $(MAKE); $(unstage)
5931 @[ -f ./bison/Makefile ] || exit 0; \
5932 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5934 $(HOST_EXPORTS) \
a90ef4bf
JM
5935 for flag in $(EXTRA_HOST_FLAGS) ; do \
5936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5937 done; \
5938 echo "Doing pdf in bison" ; \
5939 (cd $(HOST_SUBDIR)/bison && \
5940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5942 "RANLIB=$${RANLIB}" \
5943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5944 pdf) \
5945 || exit 1
d545f33b 5946
a90ef4bf 5947@endif bison
d545f33b 5948
a90ef4bf
JM
5949.PHONY: maybe-html-bison html-bison
5950maybe-html-bison:
5951@if bison
5952maybe-html-bison: html-bison
d545f33b 5953
a90ef4bf
JM
5954html-bison: \
5955 configure-bison
5956 @: $(MAKE); $(unstage)
5957 @[ -f ./bison/Makefile ] || exit 0; \
5958 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5960 $(HOST_EXPORTS) \
a90ef4bf
JM
5961 for flag in $(EXTRA_HOST_FLAGS) ; do \
5962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5963 done; \
5964 echo "Doing html in bison" ; \
5965 (cd $(HOST_SUBDIR)/bison && \
5966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5968 "RANLIB=$${RANLIB}" \
5969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5970 html) \
5971 || exit 1
d545f33b 5972
a90ef4bf 5973@endif bison
2a4cbe27 5974
a90ef4bf
JM
5975.PHONY: maybe-TAGS-bison TAGS-bison
5976maybe-TAGS-bison:
5977@if bison
5978maybe-TAGS-bison: TAGS-bison
2a4cbe27 5979
a90ef4bf
JM
5980TAGS-bison: \
5981 configure-bison
0aed8855 5982 @: $(MAKE); $(unstage)
a90ef4bf
JM
5983 @[ -f ./bison/Makefile ] || exit 0; \
5984 r=`${PWD_COMMAND}`; export r; \
4fa63067 5985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5986 $(HOST_EXPORTS) \
a90ef4bf
JM
5987 for flag in $(EXTRA_HOST_FLAGS) ; do \
5988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5989 done; \
5990 echo "Doing TAGS in bison" ; \
5991 (cd $(HOST_SUBDIR)/bison && \
5992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5994 "RANLIB=$${RANLIB}" \
5995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5996 TAGS) \
5997 || exit 1
4fa63067 5998
a90ef4bf 5999@endif bison
4fa63067 6000
a90ef4bf
JM
6001.PHONY: maybe-install-info-bison install-info-bison
6002maybe-install-info-bison:
6003@if bison
6004maybe-install-info-bison: install-info-bison
9b980aa1 6005
a90ef4bf
JM
6006install-info-bison: \
6007 configure-bison \
6008 info-bison
9b980aa1 6009 @: $(MAKE); $(unstage)
a90ef4bf 6010 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6011 r=`${PWD_COMMAND}`; export r; \
6012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6013 $(HOST_EXPORTS) \
b813574b 6014 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6016 done; \
a90ef4bf
JM
6017 echo "Doing install-info in bison" ; \
6018 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6021 "RANLIB=$${RANLIB}" \
0c24b341 6022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6023 install-info) \
2a4cbe27
NN
6024 || exit 1
6025
a90ef4bf 6026@endif bison
2a4cbe27 6027
a90ef4bf
JM
6028.PHONY: maybe-install-pdf-bison install-pdf-bison
6029maybe-install-pdf-bison:
6030@if bison
6031maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6032
a90ef4bf
JM
6033install-pdf-bison: \
6034 configure-bison \
6035 pdf-bison
6036 @: $(MAKE); $(unstage)
6037 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6038 r=`${PWD_COMMAND}`; export r; \
6039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6040 $(HOST_EXPORTS) \
b813574b 6041 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6043 done; \
a90ef4bf
JM
6044 echo "Doing install-pdf in bison" ; \
6045 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6048 "RANLIB=$${RANLIB}" \
0c24b341 6049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6050 install-pdf) \
2a4cbe27
NN
6051 || exit 1
6052
a90ef4bf 6053@endif bison
2a4cbe27 6054
a90ef4bf
JM
6055.PHONY: maybe-install-html-bison install-html-bison
6056maybe-install-html-bison:
6057@if bison
6058maybe-install-html-bison: install-html-bison
56a8fe78 6059
a90ef4bf
JM
6060install-html-bison: \
6061 configure-bison \
6062 html-bison
6063 @: $(MAKE); $(unstage)
6064 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6065 r=`${PWD_COMMAND}`; export r; \
6066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6067 $(HOST_EXPORTS) \
6068 for flag in $(EXTRA_HOST_FLAGS) ; do \
6069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6070 done; \
a90ef4bf
JM
6071 echo "Doing install-html in bison" ; \
6072 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6075 "RANLIB=$${RANLIB}" \
0c24b341 6076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6077 install-html) \
56a8fe78
DD
6078 || exit 1
6079
a90ef4bf 6080@endif bison
56a8fe78 6081
a90ef4bf
JM
6082.PHONY: maybe-installcheck-bison installcheck-bison
6083maybe-installcheck-bison:
6084@if bison
6085maybe-installcheck-bison: installcheck-bison
6d389afc 6086
a90ef4bf
JM
6087installcheck-bison: \
6088 configure-bison
6089 @: $(MAKE); $(unstage)
6090 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6091 r=`${PWD_COMMAND}`; export r; \
6092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6093 $(HOST_EXPORTS) \
6094 for flag in $(EXTRA_HOST_FLAGS) ; do \
6095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6096 done; \
a90ef4bf
JM
6097 echo "Doing installcheck in bison" ; \
6098 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6101 "RANLIB=$${RANLIB}" \
0c24b341 6102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6103 installcheck) \
6d389afc
MS
6104 || exit 1
6105
a90ef4bf 6106@endif bison
6d389afc 6107
a90ef4bf
JM
6108.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6109maybe-mostlyclean-bison:
6110@if bison
6111maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6112
a90ef4bf
JM
6113mostlyclean-bison:
6114 @: $(MAKE); $(unstage)
6115 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6116 r=`${PWD_COMMAND}`; export r; \
6117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6118 $(HOST_EXPORTS) \
b813574b 6119 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6121 done; \
a90ef4bf
JM
6122 echo "Doing mostlyclean in bison" ; \
6123 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6126 "RANLIB=$${RANLIB}" \
0c24b341 6127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6128 mostlyclean) \
2a4cbe27
NN
6129 || exit 1
6130
a90ef4bf 6131@endif bison
2a4cbe27 6132
a90ef4bf
JM
6133.PHONY: maybe-clean-bison clean-bison
6134maybe-clean-bison:
6135@if bison
6136maybe-clean-bison: clean-bison
2a4cbe27 6137
a90ef4bf
JM
6138clean-bison:
6139 @: $(MAKE); $(unstage)
6140 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6141 r=`${PWD_COMMAND}`; export r; \
6142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6143 $(HOST_EXPORTS) \
b813574b 6144 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6146 done; \
a90ef4bf
JM
6147 echo "Doing clean in bison" ; \
6148 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6151 "RANLIB=$${RANLIB}" \
0c24b341 6152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6153 clean) \
2a4cbe27
NN
6154 || exit 1
6155
a90ef4bf 6156@endif bison
2a4cbe27 6157
a90ef4bf
JM
6158.PHONY: maybe-distclean-bison distclean-bison
6159maybe-distclean-bison:
6160@if bison
6161maybe-distclean-bison: distclean-bison
a3ca38d2 6162
a90ef4bf
JM
6163distclean-bison:
6164 @: $(MAKE); $(unstage)
6165 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6166 r=`${PWD_COMMAND}`; export r; \
6167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6168 $(HOST_EXPORTS) \
6169 for flag in $(EXTRA_HOST_FLAGS) ; do \
6170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6171 done; \
a90ef4bf
JM
6172 echo "Doing distclean in bison" ; \
6173 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6176 "RANLIB=$${RANLIB}" \
0c24b341 6177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6178 distclean) \
a3ca38d2
DD
6179 || exit 1
6180
a90ef4bf 6181@endif bison
a3ca38d2 6182
a90ef4bf
JM
6183.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6184maybe-maintainer-clean-bison:
6185@if bison
6186maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6187
a90ef4bf
JM
6188maintainer-clean-bison:
6189 @: $(MAKE); $(unstage)
6190 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6191 r=`${PWD_COMMAND}`; export r; \
6192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6193 $(HOST_EXPORTS) \
6194 for flag in $(EXTRA_HOST_FLAGS) ; do \
6195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6196 done; \
a90ef4bf
JM
6197 echo "Doing maintainer-clean in bison" ; \
6198 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6201 "RANLIB=$${RANLIB}" \
0c24b341 6202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6203 maintainer-clean) \
108a6f8e
CD
6204 || exit 1
6205
a90ef4bf 6206@endif bison
108a6f8e 6207
2a4cbe27 6208
a90ef4bf
JM
6209
6210.PHONY: configure-cgen maybe-configure-cgen
6211maybe-configure-cgen:
6212@if gcc-bootstrap
6213configure-cgen: stage_current
6214@endif gcc-bootstrap
6215@if cgen
6216maybe-configure-cgen: configure-cgen
6217configure-cgen:
6218 @: $(MAKE); $(unstage)
6219 @r=`${PWD_COMMAND}`; export r; \
6220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6221 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
6222 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen ; \
6223 $(HOST_EXPORTS) \
6224 echo Configuring in $(HOST_SUBDIR)/cgen; \
6225 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6226 case $(srcdir) in \
6227 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6228 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6229 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6230 esac; \
1b6c0831
L
6231 module_srcdir=cgen; \
6232 $(SHELL) \
6233 $$s/$$module_srcdir/configure \
6234 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6235 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6236 --target=${target_alias} \
a90ef4bf
JM
6237 || exit 1
6238@endif cgen
6239
6240
6241
6242
6243
6244.PHONY: all-cgen maybe-all-cgen
6245maybe-all-cgen:
6246@if gcc-bootstrap
6247all-cgen: stage_current
6248@endif gcc-bootstrap
6249@if cgen
6250TARGET-cgen=all
6251maybe-all-cgen: all-cgen
6252all-cgen: configure-cgen
6253 @: $(MAKE); $(unstage)
6254 @r=`${PWD_COMMAND}`; export r; \
6255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6256 $(HOST_EXPORTS) \
6257 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6258 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6259 $(TARGET-cgen))
6260@endif cgen
6261
6262
6263
6264
6265.PHONY: check-cgen maybe-check-cgen
6266maybe-check-cgen:
6267@if cgen
6268maybe-check-cgen: check-cgen
6269
6270check-cgen:
6271 @: $(MAKE); $(unstage)
6272 @r=`${PWD_COMMAND}`; export r; \
6273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6274 $(HOST_EXPORTS) \
6275 (cd $(HOST_SUBDIR)/cgen && \
6276 $(MAKE) $(FLAGS_TO_PASS) check)
6277
6278@endif cgen
6279
6280.PHONY: install-cgen maybe-install-cgen
6281maybe-install-cgen:
6282@if cgen
6283maybe-install-cgen: install-cgen
6284
6285install-cgen: installdirs
6286 @: $(MAKE); $(unstage)
6287 @r=`${PWD_COMMAND}`; export r; \
6288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6289 $(HOST_EXPORTS) \
6290 (cd $(HOST_SUBDIR)/cgen && \
6291 $(MAKE) $(FLAGS_TO_PASS) install)
6292
6293@endif cgen
6294
6295.PHONY: install-strip-cgen maybe-install-strip-cgen
6296maybe-install-strip-cgen:
6297@if cgen
6298maybe-install-strip-cgen: install-strip-cgen
6299
6300install-strip-cgen: installdirs
6301 @: $(MAKE); $(unstage)
6302 @r=`${PWD_COMMAND}`; export r; \
6303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6304 $(HOST_EXPORTS) \
6305 (cd $(HOST_SUBDIR)/cgen && \
6306 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6307
6308@endif cgen
6309
6310# Other targets (info, dvi, pdf, etc.)
6311
6312.PHONY: maybe-info-cgen info-cgen
6313maybe-info-cgen:
6314@if cgen
6315maybe-info-cgen: info-cgen
6316
6317info-cgen: \
6318 configure-cgen
6319 @: $(MAKE); $(unstage)
6320 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6321 r=`${PWD_COMMAND}`; export r; \
6322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6323 $(HOST_EXPORTS) \
b813574b 6324 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6326 done; \
a90ef4bf
JM
6327 echo "Doing info in cgen" ; \
6328 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6331 "RANLIB=$${RANLIB}" \
0c24b341 6332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6333 info) \
2a4cbe27
NN
6334 || exit 1
6335
a90ef4bf 6336@endif cgen
2a4cbe27 6337
a90ef4bf
JM
6338.PHONY: maybe-dvi-cgen dvi-cgen
6339maybe-dvi-cgen:
6340@if cgen
6341maybe-dvi-cgen: dvi-cgen
2a4cbe27 6342
a90ef4bf
JM
6343dvi-cgen: \
6344 configure-cgen
6345 @: $(MAKE); $(unstage)
6346 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6347 r=`${PWD_COMMAND}`; export r; \
6348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6349 $(HOST_EXPORTS) \
b813574b 6350 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6352 done; \
a90ef4bf
JM
6353 echo "Doing dvi in cgen" ; \
6354 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6357 "RANLIB=$${RANLIB}" \
0c24b341 6358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6359 dvi) \
2a4cbe27
NN
6360 || exit 1
6361
a90ef4bf 6362@endif cgen
2a4cbe27 6363
a90ef4bf
JM
6364.PHONY: maybe-pdf-cgen pdf-cgen
6365maybe-pdf-cgen:
6366@if cgen
6367maybe-pdf-cgen: pdf-cgen
2a4cbe27 6368
a90ef4bf
JM
6369pdf-cgen: \
6370 configure-cgen
6371 @: $(MAKE); $(unstage)
6372 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6373 r=`${PWD_COMMAND}`; export r; \
6374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6375 $(HOST_EXPORTS) \
b813574b 6376 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6378 done; \
a90ef4bf
JM
6379 echo "Doing pdf in cgen" ; \
6380 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6383 "RANLIB=$${RANLIB}" \
0c24b341 6384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6385 pdf) \
2a4cbe27
NN
6386 || exit 1
6387
a90ef4bf 6388@endif cgen
2a4cbe27 6389
a90ef4bf
JM
6390.PHONY: maybe-html-cgen html-cgen
6391maybe-html-cgen:
6392@if cgen
6393maybe-html-cgen: html-cgen
2a4cbe27 6394
a90ef4bf
JM
6395html-cgen: \
6396 configure-cgen
6397 @: $(MAKE); $(unstage)
6398 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6399 r=`${PWD_COMMAND}`; export r; \
6400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6401 $(HOST_EXPORTS) \
b813574b 6402 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6404 done; \
a90ef4bf
JM
6405 echo "Doing html in cgen" ; \
6406 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6409 "RANLIB=$${RANLIB}" \
0c24b341 6410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6411 html) \
2a4cbe27
NN
6412 || exit 1
6413
a90ef4bf 6414@endif cgen
2a4cbe27 6415
a90ef4bf
JM
6416.PHONY: maybe-TAGS-cgen TAGS-cgen
6417maybe-TAGS-cgen:
6418@if cgen
6419maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6420
a90ef4bf
JM
6421TAGS-cgen: \
6422 configure-cgen
6423 @: $(MAKE); $(unstage)
6424 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6425 r=`${PWD_COMMAND}`; export r; \
6426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6427 $(HOST_EXPORTS) \
b813574b 6428 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6430 done; \
a90ef4bf
JM
6431 echo "Doing TAGS in cgen" ; \
6432 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6435 "RANLIB=$${RANLIB}" \
0c24b341 6436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6437 TAGS) \
2a4cbe27
NN
6438 || exit 1
6439
a90ef4bf 6440@endif cgen
2a4cbe27 6441
a90ef4bf
JM
6442.PHONY: maybe-install-info-cgen install-info-cgen
6443maybe-install-info-cgen:
6444@if cgen
6445maybe-install-info-cgen: install-info-cgen
2a4cbe27 6446
a90ef4bf
JM
6447install-info-cgen: \
6448 configure-cgen \
6449 info-cgen
6450 @: $(MAKE); $(unstage)
6451 @[ -f ./cgen/Makefile ] || exit 0; \
6452 r=`${PWD_COMMAND}`; export r; \
6453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6454 $(HOST_EXPORTS) \
6455 for flag in $(EXTRA_HOST_FLAGS) ; do \
6456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6457 done; \
6458 echo "Doing install-info in cgen" ; \
6459 (cd $(HOST_SUBDIR)/cgen && \
6460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6462 "RANLIB=$${RANLIB}" \
6463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6464 install-info) \
6465 || exit 1
a7254363 6466
a90ef4bf
JM
6467@endif cgen
6468
6469.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6470maybe-install-pdf-cgen:
6471@if cgen
6472maybe-install-pdf-cgen: install-pdf-cgen
6473
6474install-pdf-cgen: \
6475 configure-cgen \
6476 pdf-cgen
6477 @: $(MAKE); $(unstage)
6478 @[ -f ./cgen/Makefile ] || exit 0; \
6479 r=`${PWD_COMMAND}`; export r; \
c52c6897 6480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6481 $(HOST_EXPORTS) \
6482 for flag in $(EXTRA_HOST_FLAGS) ; do \
6483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6484 done; \
6485 echo "Doing install-pdf in cgen" ; \
6486 (cd $(HOST_SUBDIR)/cgen && \
6487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6489 "RANLIB=$${RANLIB}" \
6490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6491 install-pdf) \
2a4cbe27
NN
6492 || exit 1
6493
a90ef4bf 6494@endif cgen
a7254363 6495
a90ef4bf
JM
6496.PHONY: maybe-install-html-cgen install-html-cgen
6497maybe-install-html-cgen:
6498@if cgen
6499maybe-install-html-cgen: install-html-cgen
a7254363 6500
a90ef4bf
JM
6501install-html-cgen: \
6502 configure-cgen \
6503 html-cgen
6504 @: $(MAKE); $(unstage)
6505 @[ -f ./cgen/Makefile ] || exit 0; \
6506 r=`${PWD_COMMAND}`; export r; \
c52c6897 6507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6508 $(HOST_EXPORTS) \
a90ef4bf
JM
6509 for flag in $(EXTRA_HOST_FLAGS) ; do \
6510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6511 done; \
6512 echo "Doing install-html in cgen" ; \
6513 (cd $(HOST_SUBDIR)/cgen && \
6514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6516 "RANLIB=$${RANLIB}" \
6517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6518 install-html) \
6519 || exit 1
d545f33b 6520
a90ef4bf
JM
6521@endif cgen
6522
6523.PHONY: maybe-installcheck-cgen installcheck-cgen
6524maybe-installcheck-cgen:
6525@if cgen
6526maybe-installcheck-cgen: installcheck-cgen
6527
6528installcheck-cgen: \
6529 configure-cgen
6530 @: $(MAKE); $(unstage)
6531 @[ -f ./cgen/Makefile ] || exit 0; \
6532 r=`${PWD_COMMAND}`; export r; \
c52c6897 6533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6534 $(HOST_EXPORTS) \
a90ef4bf
JM
6535 for flag in $(EXTRA_HOST_FLAGS) ; do \
6536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6537 done; \
6538 echo "Doing installcheck in cgen" ; \
6539 (cd $(HOST_SUBDIR)/cgen && \
6540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6542 "RANLIB=$${RANLIB}" \
6543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6544 installcheck) \
6545 || exit 1
8520c408 6546
a90ef4bf
JM
6547@endif cgen
6548
6549.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6550maybe-mostlyclean-cgen:
6551@if cgen
6552maybe-mostlyclean-cgen: mostlyclean-cgen
6553
6554mostlyclean-cgen:
6555 @: $(MAKE); $(unstage)
6556 @[ -f ./cgen/Makefile ] || exit 0; \
6557 r=`${PWD_COMMAND}`; export r; \
c52c6897 6558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6559 $(HOST_EXPORTS) \
a90ef4bf
JM
6560 for flag in $(EXTRA_HOST_FLAGS) ; do \
6561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6562 done; \
6563 echo "Doing mostlyclean in cgen" ; \
6564 (cd $(HOST_SUBDIR)/cgen && \
6565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6567 "RANLIB=$${RANLIB}" \
6568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6569 mostlyclean) \
6570 || exit 1
8520c408 6571
a90ef4bf
JM
6572@endif cgen
6573
6574.PHONY: maybe-clean-cgen clean-cgen
6575maybe-clean-cgen:
6576@if cgen
6577maybe-clean-cgen: clean-cgen
6578
6579clean-cgen:
6580 @: $(MAKE); $(unstage)
6581 @[ -f ./cgen/Makefile ] || exit 0; \
6582 r=`${PWD_COMMAND}`; export r; \
c52c6897 6583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6584 $(HOST_EXPORTS) \
a90ef4bf
JM
6585 for flag in $(EXTRA_HOST_FLAGS) ; do \
6586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6587 done; \
6588 echo "Doing clean in cgen" ; \
6589 (cd $(HOST_SUBDIR)/cgen && \
6590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6592 "RANLIB=$${RANLIB}" \
6593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6594 clean) \
6595 || exit 1
d545f33b 6596
a90ef4bf
JM
6597@endif cgen
6598
6599.PHONY: maybe-distclean-cgen distclean-cgen
6600maybe-distclean-cgen:
6601@if cgen
6602maybe-distclean-cgen: distclean-cgen
6603
6604distclean-cgen:
6605 @: $(MAKE); $(unstage)
6606 @[ -f ./cgen/Makefile ] || exit 0; \
6607 r=`${PWD_COMMAND}`; export r; \
c52c6897 6608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6609 $(HOST_EXPORTS) \
a90ef4bf
JM
6610 for flag in $(EXTRA_HOST_FLAGS) ; do \
6611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6612 done; \
6613 echo "Doing distclean in cgen" ; \
6614 (cd $(HOST_SUBDIR)/cgen && \
6615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6617 "RANLIB=$${RANLIB}" \
6618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6619 distclean) \
6620 || exit 1
d545f33b 6621
a90ef4bf
JM
6622@endif cgen
6623
6624.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6625maybe-maintainer-clean-cgen:
6626@if cgen
6627maybe-maintainer-clean-cgen: maintainer-clean-cgen
6628
6629maintainer-clean-cgen:
6630 @: $(MAKE); $(unstage)
6631 @[ -f ./cgen/Makefile ] || exit 0; \
6632 r=`${PWD_COMMAND}`; export r; \
c52c6897 6633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6634 $(HOST_EXPORTS) \
a90ef4bf
JM
6635 for flag in $(EXTRA_HOST_FLAGS) ; do \
6636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6637 done; \
6638 echo "Doing maintainer-clean in cgen" ; \
6639 (cd $(HOST_SUBDIR)/cgen && \
6640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6642 "RANLIB=$${RANLIB}" \
6643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6644 maintainer-clean) \
6645 || exit 1
6646
6647@endif cgen
6648
6649
6650
6651.PHONY: configure-dejagnu maybe-configure-dejagnu
6652maybe-configure-dejagnu:
6653@if gcc-bootstrap
6654configure-dejagnu: stage_current
6655@endif gcc-bootstrap
6656@if dejagnu
6657maybe-configure-dejagnu: configure-dejagnu
6658configure-dejagnu:
6659 @: $(MAKE); $(unstage)
6660 @r=`${PWD_COMMAND}`; export r; \
6661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6662 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
6663 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
6664 $(HOST_EXPORTS) \
6665 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6666 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6667 case $(srcdir) in \
6668 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6669 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6670 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6671 esac; \
1b6c0831
L
6672 module_srcdir=dejagnu; \
6673 $(SHELL) \
6674 $$s/$$module_srcdir/configure \
6675 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6676 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6677 --target=${target_alias} \
a90ef4bf
JM
6678 || exit 1
6679@endif dejagnu
d545f33b
PB
6680
6681
6682
6683
6684
a90ef4bf
JM
6685.PHONY: all-dejagnu maybe-all-dejagnu
6686maybe-all-dejagnu:
4f0ef2d8 6687@if gcc-bootstrap
a90ef4bf 6688all-dejagnu: stage_current
4f0ef2d8 6689@endif gcc-bootstrap
a90ef4bf
JM
6690@if dejagnu
6691TARGET-dejagnu=all
6692maybe-all-dejagnu: all-dejagnu
6693all-dejagnu: configure-dejagnu
6694 @: $(MAKE); $(unstage)
c52c6897 6695 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6697 $(HOST_EXPORTS) \
a90ef4bf 6698 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6699 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6700 $(TARGET-dejagnu))
6701@endif dejagnu
4fa63067 6702
a7254363 6703
4fa63067 6704
a90ef4bf
JM
6705
6706.PHONY: check-dejagnu maybe-check-dejagnu
6707maybe-check-dejagnu:
6708@if dejagnu
6709maybe-check-dejagnu: check-dejagnu
6710
6711check-dejagnu:
6712 @: $(MAKE); $(unstage)
4fa63067
NN
6713 @r=`${PWD_COMMAND}`; export r; \
6714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6715 $(HOST_EXPORTS) \
6716 (cd $(HOST_SUBDIR)/dejagnu && \
6717 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6718
a90ef4bf 6719@endif dejagnu
2a4cbe27 6720
a90ef4bf
JM
6721.PHONY: install-dejagnu maybe-install-dejagnu
6722maybe-install-dejagnu:
6723@if dejagnu
6724maybe-install-dejagnu: install-dejagnu
2a4cbe27 6725
a90ef4bf
JM
6726install-dejagnu: installdirs
6727 @: $(MAKE); $(unstage)
4fa63067 6728 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6730 $(HOST_EXPORTS) \
a90ef4bf
JM
6731 (cd $(HOST_SUBDIR)/dejagnu && \
6732 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6733
a90ef4bf 6734@endif dejagnu
d545f33b 6735
a90ef4bf
JM
6736.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6737maybe-install-strip-dejagnu:
6738@if dejagnu
6739maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6740
a90ef4bf 6741install-strip-dejagnu: installdirs
9b980aa1
RW
6742 @: $(MAKE); $(unstage)
6743 @r=`${PWD_COMMAND}`; export r; \
6744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6745 $(HOST_EXPORTS) \
a90ef4bf 6746 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6747 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6748
a90ef4bf 6749@endif dejagnu
9b980aa1 6750
56a8fe78 6751# Other targets (info, dvi, pdf, etc.)
d545f33b 6752
a90ef4bf
JM
6753.PHONY: maybe-info-dejagnu info-dejagnu
6754maybe-info-dejagnu:
6755@if dejagnu
6756maybe-info-dejagnu: info-dejagnu
d545f33b 6757
a90ef4bf
JM
6758info-dejagnu: \
6759 configure-dejagnu
6760 @: $(MAKE); $(unstage)
6761 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6762 r=`${PWD_COMMAND}`; export r; \
6763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6764 $(HOST_EXPORTS) \
6765 for flag in $(EXTRA_HOST_FLAGS) ; do \
6766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6767 done; \
a90ef4bf
JM
6768 echo "Doing info in dejagnu" ; \
6769 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6772 "RANLIB=$${RANLIB}" \
0c24b341 6773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6774 info) \
6775 || exit 1
6776
a90ef4bf 6777@endif dejagnu
d545f33b 6778
a90ef4bf
JM
6779.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6780maybe-dvi-dejagnu:
6781@if dejagnu
6782maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6783
a90ef4bf
JM
6784dvi-dejagnu: \
6785 configure-dejagnu
6786 @: $(MAKE); $(unstage)
6787 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6788 r=`${PWD_COMMAND}`; export r; \
6789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6790 $(HOST_EXPORTS) \
6791 for flag in $(EXTRA_HOST_FLAGS) ; do \
6792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6793 done; \
a90ef4bf
JM
6794 echo "Doing dvi in dejagnu" ; \
6795 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6798 "RANLIB=$${RANLIB}" \
0c24b341 6799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6800 dvi) \
2a4cbe27
NN
6801 || exit 1
6802
a90ef4bf 6803@endif dejagnu
2a4cbe27 6804
a90ef4bf
JM
6805.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6806maybe-pdf-dejagnu:
6807@if dejagnu
6808maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6809
a90ef4bf
JM
6810pdf-dejagnu: \
6811 configure-dejagnu
6812 @: $(MAKE); $(unstage)
6813 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6814 r=`${PWD_COMMAND}`; export r; \
6815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6816 $(HOST_EXPORTS) \
6817 for flag in $(EXTRA_HOST_FLAGS) ; do \
6818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6819 done; \
a90ef4bf
JM
6820 echo "Doing pdf in dejagnu" ; \
6821 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6824 "RANLIB=$${RANLIB}" \
0c24b341 6825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6826 pdf) \
6827 || exit 1
6828
a90ef4bf 6829@endif dejagnu
56a8fe78 6830
a90ef4bf
JM
6831.PHONY: maybe-html-dejagnu html-dejagnu
6832maybe-html-dejagnu:
6833@if dejagnu
6834maybe-html-dejagnu: html-dejagnu
6d389afc 6835
a90ef4bf
JM
6836html-dejagnu: \
6837 configure-dejagnu
6838 @: $(MAKE); $(unstage)
6839 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6840 r=`${PWD_COMMAND}`; export r; \
6841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6842 $(HOST_EXPORTS) \
6843 for flag in $(EXTRA_HOST_FLAGS) ; do \
6844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6845 done; \
a90ef4bf
JM
6846 echo "Doing html in dejagnu" ; \
6847 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6850 "RANLIB=$${RANLIB}" \
0c24b341 6851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6852 html) \
6853 || exit 1
6854
a90ef4bf 6855@endif dejagnu
6d389afc 6856
a90ef4bf
JM
6857.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6858maybe-TAGS-dejagnu:
6859@if dejagnu
6860maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6861
a90ef4bf
JM
6862TAGS-dejagnu: \
6863 configure-dejagnu
6864 @: $(MAKE); $(unstage)
6865 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6866 r=`${PWD_COMMAND}`; export r; \
6867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6868 $(HOST_EXPORTS) \
b813574b 6869 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6871 done; \
a90ef4bf
JM
6872 echo "Doing TAGS in dejagnu" ; \
6873 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6876 "RANLIB=$${RANLIB}" \
0c24b341 6877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6878 TAGS) \
2a4cbe27
NN
6879 || exit 1
6880
a90ef4bf 6881@endif dejagnu
2a4cbe27 6882
a90ef4bf
JM
6883.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6884maybe-install-info-dejagnu:
6885@if dejagnu
6886maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6887
a90ef4bf
JM
6888install-info-dejagnu: \
6889 configure-dejagnu \
6890 info-dejagnu
6891 @: $(MAKE); $(unstage)
6892 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6893 r=`${PWD_COMMAND}`; export r; \
6894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6895 $(HOST_EXPORTS) \
b813574b 6896 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6898 done; \
a90ef4bf
JM
6899 echo "Doing install-info in dejagnu" ; \
6900 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6903 "RANLIB=$${RANLIB}" \
0c24b341 6904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6905 install-info) \
2a4cbe27
NN
6906 || exit 1
6907
a90ef4bf 6908@endif dejagnu
2a4cbe27 6909
a90ef4bf
JM
6910.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6911maybe-install-pdf-dejagnu:
6912@if dejagnu
6913maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6914
a90ef4bf
JM
6915install-pdf-dejagnu: \
6916 configure-dejagnu \
6917 pdf-dejagnu
6918 @: $(MAKE); $(unstage)
6919 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6920 r=`${PWD_COMMAND}`; export r; \
6921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6922 $(HOST_EXPORTS) \
6923 for flag in $(EXTRA_HOST_FLAGS) ; do \
6924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6925 done; \
a90ef4bf
JM
6926 echo "Doing install-pdf in dejagnu" ; \
6927 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6930 "RANLIB=$${RANLIB}" \
0c24b341 6931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6932 install-pdf) \
6933 || exit 1
6934
a90ef4bf 6935@endif dejagnu
a3ca38d2 6936
a90ef4bf
JM
6937.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6938maybe-install-html-dejagnu:
6939@if dejagnu
6940maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6941
a90ef4bf
JM
6942install-html-dejagnu: \
6943 configure-dejagnu \
6944 html-dejagnu
6945 @: $(MAKE); $(unstage)
6946 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6947 r=`${PWD_COMMAND}`; export r; \
6948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6949 $(HOST_EXPORTS) \
6950 for flag in $(EXTRA_HOST_FLAGS) ; do \
6951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6952 done; \
a90ef4bf
JM
6953 echo "Doing install-html in dejagnu" ; \
6954 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
6955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6957 "RANLIB=$${RANLIB}" \
0c24b341 6958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6959 install-html) \
6960 || exit 1
6961
a90ef4bf 6962@endif dejagnu
108a6f8e 6963
a90ef4bf
JM
6964.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6965maybe-installcheck-dejagnu:
6966@if dejagnu
6967maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 6968
a90ef4bf
JM
6969installcheck-dejagnu: \
6970 configure-dejagnu
6971 @: $(MAKE); $(unstage)
6972 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6973 r=`${PWD_COMMAND}`; export r; \
6974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6975 $(HOST_EXPORTS) \
b813574b 6976 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6978 done; \
a90ef4bf
JM
6979 echo "Doing installcheck in dejagnu" ; \
6980 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6983 "RANLIB=$${RANLIB}" \
0c24b341 6984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6985 installcheck) \
2a4cbe27
NN
6986 || exit 1
6987
a90ef4bf 6988@endif dejagnu
2a4cbe27 6989
a90ef4bf
JM
6990.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
6991maybe-mostlyclean-dejagnu:
6992@if dejagnu
6993maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 6994
a90ef4bf
JM
6995mostlyclean-dejagnu:
6996 @: $(MAKE); $(unstage)
6997 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6998 r=`${PWD_COMMAND}`; export r; \
6999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7000 $(HOST_EXPORTS) \
b813574b 7001 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7003 done; \
a90ef4bf
JM
7004 echo "Doing mostlyclean in dejagnu" ; \
7005 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7008 "RANLIB=$${RANLIB}" \
0c24b341 7009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7010 mostlyclean) \
2a4cbe27
NN
7011 || exit 1
7012
a90ef4bf 7013@endif dejagnu
2a4cbe27 7014
a90ef4bf
JM
7015.PHONY: maybe-clean-dejagnu clean-dejagnu
7016maybe-clean-dejagnu:
7017@if dejagnu
7018maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7019
a90ef4bf
JM
7020clean-dejagnu:
7021 @: $(MAKE); $(unstage)
7022 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7023 r=`${PWD_COMMAND}`; export r; \
7024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7025 $(HOST_EXPORTS) \
b813574b 7026 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7028 done; \
a90ef4bf
JM
7029 echo "Doing clean in dejagnu" ; \
7030 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7033 "RANLIB=$${RANLIB}" \
0c24b341 7034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7035 clean) \
2a4cbe27
NN
7036 || exit 1
7037
a90ef4bf 7038@endif dejagnu
2a4cbe27 7039
a90ef4bf
JM
7040.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7041maybe-distclean-dejagnu:
7042@if dejagnu
7043maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7044
a90ef4bf
JM
7045distclean-dejagnu:
7046 @: $(MAKE); $(unstage)
7047 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7048 r=`${PWD_COMMAND}`; export r; \
7049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7050 $(HOST_EXPORTS) \
b813574b 7051 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7053 done; \
a90ef4bf
JM
7054 echo "Doing distclean in dejagnu" ; \
7055 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7058 "RANLIB=$${RANLIB}" \
0c24b341 7059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7060 distclean) \
2a4cbe27
NN
7061 || exit 1
7062
a90ef4bf 7063@endif dejagnu
2a4cbe27 7064
a90ef4bf
JM
7065.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7066maybe-maintainer-clean-dejagnu:
7067@if dejagnu
7068maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7069
a90ef4bf
JM
7070maintainer-clean-dejagnu:
7071 @: $(MAKE); $(unstage)
7072 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7073 r=`${PWD_COMMAND}`; export r; \
7074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7075 $(HOST_EXPORTS) \
b813574b 7076 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7078 done; \
a90ef4bf
JM
7079 echo "Doing maintainer-clean in dejagnu" ; \
7080 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7083 "RANLIB=$${RANLIB}" \
0c24b341 7084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7085 maintainer-clean) \
2a4cbe27
NN
7086 || exit 1
7087
a90ef4bf 7088@endif dejagnu
2a4cbe27 7089
2a4cbe27 7090
a7254363 7091
a90ef4bf
JM
7092.PHONY: configure-etc maybe-configure-etc
7093maybe-configure-etc:
4f0ef2d8 7094@if gcc-bootstrap
a90ef4bf 7095configure-etc: stage_current
4f0ef2d8 7096@endif gcc-bootstrap
a90ef4bf
JM
7097@if etc
7098maybe-configure-etc: configure-etc
7099configure-etc:
0aed8855 7100 @: $(MAKE); $(unstage)
c52c6897 7101 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7103 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
7104 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
1f53ca9a 7105 $(HOST_EXPORTS) \
a90ef4bf
JM
7106 echo Configuring in $(HOST_SUBDIR)/etc; \
7107 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7108 case $(srcdir) in \
b00612cc 7109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7110 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7112 esac; \
1b6c0831
L
7113 module_srcdir=etc; \
7114 $(SHELL) \
7115 $$s/$$module_srcdir/configure \
7116 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7117 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7118 --target=${target_alias} \
2a4cbe27 7119 || exit 1
a90ef4bf 7120@endif etc
2a4cbe27 7121
a7254363
PB
7122
7123
d545f33b
PB
7124
7125
a90ef4bf
JM
7126.PHONY: all-etc maybe-all-etc
7127maybe-all-etc:
4f0ef2d8 7128@if gcc-bootstrap
a90ef4bf 7129all-etc: stage_current
4f0ef2d8 7130@endif gcc-bootstrap
a90ef4bf
JM
7131@if etc
7132TARGET-etc=all
7133maybe-all-etc: all-etc
7134all-etc: configure-etc
0aed8855 7135 @: $(MAKE); $(unstage)
4fa63067
NN
7136 @r=`${PWD_COMMAND}`; export r; \
7137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7138 $(HOST_EXPORTS) \
a90ef4bf 7139 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7140 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7141 $(TARGET-etc))
7142@endif etc
2a4cbe27 7143
a7254363 7144
d545f33b
PB
7145
7146
a90ef4bf
JM
7147.PHONY: check-etc maybe-check-etc
7148maybe-check-etc:
7149@if etc
7150maybe-check-etc: check-etc
2a4cbe27 7151
a90ef4bf 7152check-etc:
0aed8855 7153 @: $(MAKE); $(unstage)
a90ef4bf
JM
7154 @r=`${PWD_COMMAND}`; export r; \
7155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7156 $(HOST_EXPORTS) \
7157 (cd $(HOST_SUBDIR)/etc && \
7158 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7159
a90ef4bf 7160@endif etc
4fa63067 7161
a90ef4bf
JM
7162.PHONY: install-etc maybe-install-etc
7163maybe-install-etc:
7164@if etc
7165maybe-install-etc: install-etc
4fa63067 7166
a90ef4bf 7167install-etc: installdirs
0aed8855 7168 @: $(MAKE); $(unstage)
4fa63067 7169 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7171 $(HOST_EXPORTS) \
a90ef4bf 7172 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7173 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7174
a90ef4bf 7175@endif etc
2a4cbe27 7176
a90ef4bf
JM
7177.PHONY: install-strip-etc maybe-install-strip-etc
7178maybe-install-strip-etc:
7179@if etc
7180maybe-install-strip-etc: install-strip-etc
9b980aa1 7181
a90ef4bf 7182install-strip-etc: installdirs
9b980aa1
RW
7183 @: $(MAKE); $(unstage)
7184 @r=`${PWD_COMMAND}`; export r; \
7185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7186 $(HOST_EXPORTS) \
a90ef4bf 7187 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7188 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7189
a90ef4bf 7190@endif etc
9b980aa1 7191
56a8fe78 7192# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7193
a90ef4bf
JM
7194.PHONY: maybe-info-etc info-etc
7195maybe-info-etc:
7196@if etc
7197maybe-info-etc: info-etc
4fa63067 7198
a90ef4bf
JM
7199info-etc: \
7200 configure-etc
0aed8855 7201 @: $(MAKE); $(unstage)
a90ef4bf 7202 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7203 r=`${PWD_COMMAND}`; export r; \
7204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7205 $(HOST_EXPORTS) \
b813574b 7206 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7208 done; \
a90ef4bf
JM
7209 echo "Doing info in etc" ; \
7210 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7213 "RANLIB=$${RANLIB}" \
0c24b341 7214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7215 info) \
2a4cbe27
NN
7216 || exit 1
7217
a90ef4bf 7218@endif etc
2a4cbe27 7219
a90ef4bf
JM
7220.PHONY: maybe-dvi-etc dvi-etc
7221maybe-dvi-etc:
7222@if etc
7223maybe-dvi-etc: dvi-etc
2a4cbe27 7224
a90ef4bf
JM
7225dvi-etc: \
7226 configure-etc
0aed8855 7227 @: $(MAKE); $(unstage)
a90ef4bf 7228 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7229 r=`${PWD_COMMAND}`; export r; \
7230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7231 $(HOST_EXPORTS) \
b813574b 7232 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7234 done; \
a90ef4bf
JM
7235 echo "Doing dvi in etc" ; \
7236 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7239 "RANLIB=$${RANLIB}" \
0c24b341 7240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7241 dvi) \
2a4cbe27
NN
7242 || exit 1
7243
a90ef4bf 7244@endif etc
2a4cbe27 7245
a90ef4bf
JM
7246.PHONY: maybe-pdf-etc pdf-etc
7247maybe-pdf-etc:
7248@if etc
7249maybe-pdf-etc: pdf-etc
56a8fe78 7250
a90ef4bf
JM
7251pdf-etc: \
7252 configure-etc
56a8fe78 7253 @: $(MAKE); $(unstage)
a90ef4bf 7254 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7255 r=`${PWD_COMMAND}`; export r; \
7256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7257 $(HOST_EXPORTS) \
7258 for flag in $(EXTRA_HOST_FLAGS) ; do \
7259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7260 done; \
a90ef4bf
JM
7261 echo "Doing pdf in etc" ; \
7262 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7265 "RANLIB=$${RANLIB}" \
0c24b341 7266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7267 pdf) \
7268 || exit 1
7269
a90ef4bf 7270@endif etc
56a8fe78 7271
a90ef4bf
JM
7272.PHONY: maybe-html-etc html-etc
7273maybe-html-etc:
7274@if etc
7275maybe-html-etc: html-etc
6d389afc 7276
a90ef4bf
JM
7277html-etc: \
7278 configure-etc
0aed8855 7279 @: $(MAKE); $(unstage)
a90ef4bf 7280 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7281 r=`${PWD_COMMAND}`; export r; \
7282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7283 $(HOST_EXPORTS) \
7284 for flag in $(EXTRA_HOST_FLAGS) ; do \
7285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7286 done; \
a90ef4bf
JM
7287 echo "Doing html in etc" ; \
7288 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7291 "RANLIB=$${RANLIB}" \
0c24b341 7292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7293 html) \
7294 || exit 1
7295
a90ef4bf 7296@endif etc
6d389afc 7297
a90ef4bf
JM
7298.PHONY: maybe-TAGS-etc TAGS-etc
7299maybe-TAGS-etc:
7300@if etc
7301maybe-TAGS-etc: TAGS-etc
2a4cbe27 7302
a90ef4bf
JM
7303TAGS-etc: \
7304 configure-etc
0aed8855 7305 @: $(MAKE); $(unstage)
a90ef4bf 7306 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7307 r=`${PWD_COMMAND}`; export r; \
7308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7309 $(HOST_EXPORTS) \
b813574b 7310 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7312 done; \
a90ef4bf
JM
7313 echo "Doing TAGS in etc" ; \
7314 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7317 "RANLIB=$${RANLIB}" \
0c24b341 7318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7319 TAGS) \
2a4cbe27
NN
7320 || exit 1
7321
a90ef4bf 7322@endif etc
2a4cbe27 7323
a90ef4bf
JM
7324.PHONY: maybe-install-info-etc install-info-etc
7325maybe-install-info-etc:
7326@if etc
7327maybe-install-info-etc: install-info-etc
2a4cbe27 7328
a90ef4bf
JM
7329install-info-etc: \
7330 configure-etc \
7331 info-etc
0aed8855 7332 @: $(MAKE); $(unstage)
a90ef4bf 7333 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7334 r=`${PWD_COMMAND}`; export r; \
7335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7336 $(HOST_EXPORTS) \
b813574b 7337 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7339 done; \
a90ef4bf
JM
7340 echo "Doing install-info in etc" ; \
7341 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7344 "RANLIB=$${RANLIB}" \
0c24b341 7345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7346 install-info) \
2a4cbe27
NN
7347 || exit 1
7348
a90ef4bf 7349@endif etc
2a4cbe27 7350
a90ef4bf
JM
7351.PHONY: maybe-install-pdf-etc install-pdf-etc
7352maybe-install-pdf-etc:
7353@if etc
7354maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7355
a90ef4bf
JM
7356install-pdf-etc: \
7357 configure-etc \
7358 pdf-etc
a3ca38d2 7359 @: $(MAKE); $(unstage)
a90ef4bf 7360 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7361 r=`${PWD_COMMAND}`; export r; \
7362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7363 $(HOST_EXPORTS) \
7364 for flag in $(EXTRA_HOST_FLAGS) ; do \
7365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7366 done; \
a90ef4bf
JM
7367 echo "Doing install-pdf in etc" ; \
7368 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7371 "RANLIB=$${RANLIB}" \
0c24b341 7372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7373 install-pdf) \
7374 || exit 1
7375
a90ef4bf 7376@endif etc
a3ca38d2 7377
a90ef4bf
JM
7378.PHONY: maybe-install-html-etc install-html-etc
7379maybe-install-html-etc:
7380@if etc
7381maybe-install-html-etc: install-html-etc
108a6f8e 7382
a90ef4bf
JM
7383install-html-etc: \
7384 configure-etc \
7385 html-etc
108a6f8e 7386 @: $(MAKE); $(unstage)
a90ef4bf 7387 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7388 r=`${PWD_COMMAND}`; export r; \
7389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7390 $(HOST_EXPORTS) \
7391 for flag in $(EXTRA_HOST_FLAGS) ; do \
7392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7393 done; \
a90ef4bf
JM
7394 echo "Doing install-html in etc" ; \
7395 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7398 "RANLIB=$${RANLIB}" \
0c24b341 7399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7400 install-html) \
7401 || exit 1
7402
a90ef4bf 7403@endif etc
108a6f8e 7404
a90ef4bf
JM
7405.PHONY: maybe-installcheck-etc installcheck-etc
7406maybe-installcheck-etc:
7407@if etc
7408maybe-installcheck-etc: installcheck-etc
2a4cbe27 7409
a90ef4bf
JM
7410installcheck-etc: \
7411 configure-etc
0aed8855 7412 @: $(MAKE); $(unstage)
a90ef4bf 7413 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7414 r=`${PWD_COMMAND}`; export r; \
7415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7416 $(HOST_EXPORTS) \
b813574b 7417 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7419 done; \
a90ef4bf
JM
7420 echo "Doing installcheck in etc" ; \
7421 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7424 "RANLIB=$${RANLIB}" \
0c24b341 7425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7426 installcheck) \
2a4cbe27
NN
7427 || exit 1
7428
a90ef4bf 7429@endif etc
2a4cbe27 7430
a90ef4bf
JM
7431.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7432maybe-mostlyclean-etc:
7433@if etc
7434maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7435
a90ef4bf 7436mostlyclean-etc:
0aed8855 7437 @: $(MAKE); $(unstage)
a90ef4bf 7438 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7439 r=`${PWD_COMMAND}`; export r; \
7440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7441 $(HOST_EXPORTS) \
b813574b 7442 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7444 done; \
a90ef4bf
JM
7445 echo "Doing mostlyclean in etc" ; \
7446 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7449 "RANLIB=$${RANLIB}" \
0c24b341 7450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7451 mostlyclean) \
2a4cbe27
NN
7452 || exit 1
7453
a90ef4bf 7454@endif etc
2a4cbe27 7455
a90ef4bf
JM
7456.PHONY: maybe-clean-etc clean-etc
7457maybe-clean-etc:
7458@if etc
7459maybe-clean-etc: clean-etc
2a4cbe27 7460
a90ef4bf 7461clean-etc:
0aed8855 7462 @: $(MAKE); $(unstage)
a90ef4bf 7463 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7464 r=`${PWD_COMMAND}`; export r; \
7465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7466 $(HOST_EXPORTS) \
b813574b 7467 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7469 done; \
a90ef4bf
JM
7470 echo "Doing clean in etc" ; \
7471 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7474 "RANLIB=$${RANLIB}" \
0c24b341 7475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7476 clean) \
2a4cbe27
NN
7477 || exit 1
7478
a90ef4bf 7479@endif etc
2a4cbe27 7480
a90ef4bf
JM
7481.PHONY: maybe-distclean-etc distclean-etc
7482maybe-distclean-etc:
7483@if etc
7484maybe-distclean-etc: distclean-etc
2a4cbe27 7485
a90ef4bf 7486distclean-etc:
0aed8855 7487 @: $(MAKE); $(unstage)
a90ef4bf 7488 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7489 r=`${PWD_COMMAND}`; export r; \
7490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7491 $(HOST_EXPORTS) \
b813574b 7492 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7494 done; \
a90ef4bf
JM
7495 echo "Doing distclean in etc" ; \
7496 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7499 "RANLIB=$${RANLIB}" \
0c24b341 7500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7501 distclean) \
2a4cbe27
NN
7502 || exit 1
7503
a90ef4bf 7504@endif etc
2a4cbe27 7505
a90ef4bf
JM
7506.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7507maybe-maintainer-clean-etc:
7508@if etc
7509maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7510
a90ef4bf 7511maintainer-clean-etc:
0aed8855 7512 @: $(MAKE); $(unstage)
a90ef4bf 7513 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7514 r=`${PWD_COMMAND}`; export r; \
7515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7516 $(HOST_EXPORTS) \
b813574b 7517 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7519 done; \
a90ef4bf
JM
7520 echo "Doing maintainer-clean in etc" ; \
7521 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7524 "RANLIB=$${RANLIB}" \
0c24b341 7525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7526 maintainer-clean) \
2a4cbe27
NN
7527 || exit 1
7528
a90ef4bf 7529@endif etc
2a4cbe27 7530
2a4cbe27 7531
a7254363 7532
a90ef4bf
JM
7533.PHONY: configure-fastjar maybe-configure-fastjar
7534maybe-configure-fastjar:
4f0ef2d8 7535@if gcc-bootstrap
a90ef4bf 7536configure-fastjar: stage_current
4f0ef2d8 7537@endif gcc-bootstrap
a90ef4bf
JM
7538@if fastjar
7539maybe-configure-fastjar: configure-fastjar
7540configure-fastjar:
0aed8855 7541 @: $(MAKE); $(unstage)
c52c6897 7542 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7544 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
7545 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
1f53ca9a 7546 $(HOST_EXPORTS) \
a90ef4bf
JM
7547 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7548 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7549 case $(srcdir) in \
b00612cc 7550 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7551 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7552 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7553 esac; \
1b6c0831
L
7554 module_srcdir=fastjar; \
7555 $(SHELL) \
7556 $$s/$$module_srcdir/configure \
7557 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7558 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7559 --target=${target_alias} \
4fa63067 7560 || exit 1
a90ef4bf 7561@endif fastjar
4fa63067 7562
a7254363
PB
7563
7564
d545f33b
PB
7565
7566
a90ef4bf
JM
7567.PHONY: all-fastjar maybe-all-fastjar
7568maybe-all-fastjar:
4f0ef2d8 7569@if gcc-bootstrap
a90ef4bf 7570all-fastjar: stage_current
4f0ef2d8 7571@endif gcc-bootstrap
a90ef4bf
JM
7572@if fastjar
7573TARGET-fastjar=all
7574maybe-all-fastjar: all-fastjar
7575all-fastjar: configure-fastjar
0aed8855 7576 @: $(MAKE); $(unstage)
4fa63067
NN
7577 @r=`${PWD_COMMAND}`; export r; \
7578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7579 $(HOST_EXPORTS) \
a90ef4bf 7580 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7581 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7582 $(TARGET-fastjar))
7583@endif fastjar
4fa63067 7584
a7254363 7585
d545f33b
PB
7586
7587
a90ef4bf
JM
7588.PHONY: check-fastjar maybe-check-fastjar
7589maybe-check-fastjar:
7590@if fastjar
7591maybe-check-fastjar: check-fastjar
4fa63067
NN
7592
7593# This module is only tested in a native toolchain.
a90ef4bf 7594check-fastjar:
0aed8855 7595 @: $(MAKE); $(unstage)
4fa63067
NN
7596 @if [ '$(host)' = '$(target)' ] ; then \
7597 r=`${PWD_COMMAND}`; export r; \
7598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7599 $(HOST_EXPORTS) \
a90ef4bf 7600 (cd $(HOST_SUBDIR)/fastjar && \
4cfaf6d5 7601 $(MAKE) $(FLAGS_TO_PASS) check); \
4fa63067
NN
7602 fi
7603
a90ef4bf 7604@endif fastjar
4fa63067 7605
a90ef4bf
JM
7606.PHONY: install-fastjar maybe-install-fastjar
7607maybe-install-fastjar:
7608@if fastjar
7609maybe-install-fastjar: install-fastjar
4fa63067 7610
a90ef4bf 7611install-fastjar: installdirs
0aed8855 7612 @: $(MAKE); $(unstage)
4fa63067
NN
7613 @r=`${PWD_COMMAND}`; export r; \
7614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7615 $(HOST_EXPORTS) \
a90ef4bf 7616 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7617 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7618
a90ef4bf 7619@endif fastjar
4fa63067 7620
a90ef4bf
JM
7621.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7622maybe-install-strip-fastjar:
7623@if fastjar
7624maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7625
a90ef4bf 7626install-strip-fastjar: installdirs
9b980aa1
RW
7627 @: $(MAKE); $(unstage)
7628 @r=`${PWD_COMMAND}`; export r; \
7629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7630 $(HOST_EXPORTS) \
a90ef4bf 7631 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7632 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7633
a90ef4bf 7634@endif fastjar
9b980aa1 7635
56a8fe78 7636# Other targets (info, dvi, pdf, etc.)
4fa63067 7637
a90ef4bf
JM
7638.PHONY: maybe-info-fastjar info-fastjar
7639maybe-info-fastjar:
7640@if fastjar
7641maybe-info-fastjar: info-fastjar
4fa63067 7642
a90ef4bf
JM
7643info-fastjar: \
7644 configure-fastjar
0aed8855 7645 @: $(MAKE); $(unstage)
a90ef4bf 7646 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7647 r=`${PWD_COMMAND}`; export r; \
7648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7649 $(HOST_EXPORTS) \
b813574b 7650 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7652 done; \
a90ef4bf
JM
7653 echo "Doing info in fastjar" ; \
7654 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7657 "RANLIB=$${RANLIB}" \
0c24b341 7658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7659 info) \
2a4cbe27
NN
7660 || exit 1
7661
a90ef4bf 7662@endif fastjar
2a4cbe27 7663
a90ef4bf
JM
7664.PHONY: maybe-dvi-fastjar dvi-fastjar
7665maybe-dvi-fastjar:
7666@if fastjar
7667maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7668
a90ef4bf
JM
7669dvi-fastjar: \
7670 configure-fastjar
0aed8855 7671 @: $(MAKE); $(unstage)
a90ef4bf 7672 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7673 r=`${PWD_COMMAND}`; export r; \
7674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7675 $(HOST_EXPORTS) \
b813574b 7676 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7678 done; \
a90ef4bf
JM
7679 echo "Doing dvi in fastjar" ; \
7680 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7683 "RANLIB=$${RANLIB}" \
0c24b341 7684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7685 dvi) \
2a4cbe27
NN
7686 || exit 1
7687
a90ef4bf 7688@endif fastjar
2a4cbe27 7689
a90ef4bf
JM
7690.PHONY: maybe-pdf-fastjar pdf-fastjar
7691maybe-pdf-fastjar:
7692@if fastjar
7693maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7694
a90ef4bf
JM
7695pdf-fastjar: \
7696 configure-fastjar
56a8fe78 7697 @: $(MAKE); $(unstage)
a90ef4bf 7698 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7699 r=`${PWD_COMMAND}`; export r; \
7700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7701 $(HOST_EXPORTS) \
7702 for flag in $(EXTRA_HOST_FLAGS) ; do \
7703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7704 done; \
a90ef4bf
JM
7705 echo "Doing pdf in fastjar" ; \
7706 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7709 "RANLIB=$${RANLIB}" \
0c24b341 7710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7711 pdf) \
7712 || exit 1
7713
a90ef4bf 7714@endif fastjar
56a8fe78 7715
a90ef4bf
JM
7716.PHONY: maybe-html-fastjar html-fastjar
7717maybe-html-fastjar:
7718@if fastjar
7719maybe-html-fastjar: html-fastjar
6d389afc 7720
a90ef4bf
JM
7721html-fastjar: \
7722 configure-fastjar
0aed8855 7723 @: $(MAKE); $(unstage)
a90ef4bf 7724 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7725 r=`${PWD_COMMAND}`; export r; \
7726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7727 $(HOST_EXPORTS) \
7728 for flag in $(EXTRA_HOST_FLAGS) ; do \
7729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7730 done; \
a90ef4bf
JM
7731 echo "Doing html in fastjar" ; \
7732 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7735 "RANLIB=$${RANLIB}" \
0c24b341 7736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7737 html) \
7738 || exit 1
7739
a90ef4bf 7740@endif fastjar
6d389afc 7741
a90ef4bf
JM
7742.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7743maybe-TAGS-fastjar:
7744@if fastjar
7745maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7746
a90ef4bf
JM
7747TAGS-fastjar: \
7748 configure-fastjar
0aed8855 7749 @: $(MAKE); $(unstage)
a90ef4bf 7750 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7751 r=`${PWD_COMMAND}`; export r; \
7752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7753 $(HOST_EXPORTS) \
b813574b 7754 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7756 done; \
a90ef4bf
JM
7757 echo "Doing TAGS in fastjar" ; \
7758 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7761 "RANLIB=$${RANLIB}" \
0c24b341 7762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7763 TAGS) \
2a4cbe27
NN
7764 || exit 1
7765
a90ef4bf 7766@endif fastjar
2a4cbe27 7767
a90ef4bf
JM
7768.PHONY: maybe-install-info-fastjar install-info-fastjar
7769maybe-install-info-fastjar:
7770@if fastjar
7771maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7772
a90ef4bf
JM
7773install-info-fastjar: \
7774 configure-fastjar \
7775 info-fastjar
0aed8855 7776 @: $(MAKE); $(unstage)
a90ef4bf 7777 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7778 r=`${PWD_COMMAND}`; export r; \
7779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7780 $(HOST_EXPORTS) \
b813574b 7781 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7783 done; \
a90ef4bf
JM
7784 echo "Doing install-info in fastjar" ; \
7785 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7788 "RANLIB=$${RANLIB}" \
0c24b341 7789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7790 install-info) \
2a4cbe27
NN
7791 || exit 1
7792
a90ef4bf 7793@endif fastjar
2a4cbe27 7794
a90ef4bf
JM
7795.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7796maybe-install-pdf-fastjar:
7797@if fastjar
7798maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7799
a90ef4bf
JM
7800install-pdf-fastjar: \
7801 configure-fastjar \
7802 pdf-fastjar
a3ca38d2 7803 @: $(MAKE); $(unstage)
a90ef4bf 7804 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7805 r=`${PWD_COMMAND}`; export r; \
7806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7807 $(HOST_EXPORTS) \
7808 for flag in $(EXTRA_HOST_FLAGS) ; do \
7809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7810 done; \
a90ef4bf
JM
7811 echo "Doing install-pdf in fastjar" ; \
7812 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7815 "RANLIB=$${RANLIB}" \
0c24b341 7816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7817 install-pdf) \
7818 || exit 1
7819
a90ef4bf 7820@endif fastjar
a3ca38d2 7821
a90ef4bf
JM
7822.PHONY: maybe-install-html-fastjar install-html-fastjar
7823maybe-install-html-fastjar:
7824@if fastjar
7825maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7826
a90ef4bf
JM
7827install-html-fastjar: \
7828 configure-fastjar \
7829 html-fastjar
108a6f8e 7830 @: $(MAKE); $(unstage)
a90ef4bf 7831 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7832 r=`${PWD_COMMAND}`; export r; \
7833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7834 $(HOST_EXPORTS) \
7835 for flag in $(EXTRA_HOST_FLAGS) ; do \
7836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7837 done; \
a90ef4bf
JM
7838 echo "Doing install-html in fastjar" ; \
7839 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7842 "RANLIB=$${RANLIB}" \
0c24b341 7843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7844 install-html) \
7845 || exit 1
7846
a90ef4bf 7847@endif fastjar
108a6f8e 7848
a90ef4bf
JM
7849.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7850maybe-installcheck-fastjar:
7851@if fastjar
7852maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7853
a90ef4bf
JM
7854installcheck-fastjar: \
7855 configure-fastjar
0aed8855 7856 @: $(MAKE); $(unstage)
a90ef4bf 7857 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7858 r=`${PWD_COMMAND}`; export r; \
7859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7860 $(HOST_EXPORTS) \
b813574b 7861 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7863 done; \
a90ef4bf
JM
7864 echo "Doing installcheck in fastjar" ; \
7865 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7868 "RANLIB=$${RANLIB}" \
0c24b341 7869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7870 installcheck) \
2a4cbe27
NN
7871 || exit 1
7872
a90ef4bf 7873@endif fastjar
2a4cbe27 7874
a90ef4bf
JM
7875.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7876maybe-mostlyclean-fastjar:
7877@if fastjar
7878maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7879
a90ef4bf 7880mostlyclean-fastjar:
0aed8855 7881 @: $(MAKE); $(unstage)
a90ef4bf 7882 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7883 r=`${PWD_COMMAND}`; export r; \
7884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7885 $(HOST_EXPORTS) \
b813574b 7886 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7888 done; \
a90ef4bf
JM
7889 echo "Doing mostlyclean in fastjar" ; \
7890 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7893 "RANLIB=$${RANLIB}" \
0c24b341 7894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7895 mostlyclean) \
2a4cbe27
NN
7896 || exit 1
7897
a90ef4bf 7898@endif fastjar
2a4cbe27 7899
a90ef4bf
JM
7900.PHONY: maybe-clean-fastjar clean-fastjar
7901maybe-clean-fastjar:
7902@if fastjar
7903maybe-clean-fastjar: clean-fastjar
2a4cbe27 7904
a90ef4bf 7905clean-fastjar:
0aed8855 7906 @: $(MAKE); $(unstage)
a90ef4bf 7907 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7908 r=`${PWD_COMMAND}`; export r; \
7909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7910 $(HOST_EXPORTS) \
b813574b 7911 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7913 done; \
a90ef4bf
JM
7914 echo "Doing clean in fastjar" ; \
7915 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7918 "RANLIB=$${RANLIB}" \
0c24b341 7919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7920 clean) \
2a4cbe27
NN
7921 || exit 1
7922
a90ef4bf 7923@endif fastjar
2a4cbe27 7924
a90ef4bf
JM
7925.PHONY: maybe-distclean-fastjar distclean-fastjar
7926maybe-distclean-fastjar:
7927@if fastjar
7928maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7929
a90ef4bf 7930distclean-fastjar:
0aed8855 7931 @: $(MAKE); $(unstage)
a90ef4bf 7932 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7933 r=`${PWD_COMMAND}`; export r; \
7934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7935 $(HOST_EXPORTS) \
b813574b 7936 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7938 done; \
a90ef4bf
JM
7939 echo "Doing distclean in fastjar" ; \
7940 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7943 "RANLIB=$${RANLIB}" \
0c24b341 7944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7945 distclean) \
2a4cbe27
NN
7946 || exit 1
7947
a90ef4bf 7948@endif fastjar
2a4cbe27 7949
a90ef4bf
JM
7950.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7951maybe-maintainer-clean-fastjar:
7952@if fastjar
7953maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7954
7955maintainer-clean-fastjar:
0aed8855 7956 @: $(MAKE); $(unstage)
a90ef4bf 7957 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7958 r=`${PWD_COMMAND}`; export r; \
7959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7960 $(HOST_EXPORTS) \
b813574b 7961 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7963 done; \
a90ef4bf
JM
7964 echo "Doing maintainer-clean in fastjar" ; \
7965 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7968 "RANLIB=$${RANLIB}" \
0c24b341 7969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7970 maintainer-clean) \
2a4cbe27
NN
7971 || exit 1
7972
a90ef4bf 7973@endif fastjar
2a4cbe27 7974
2a4cbe27 7975
a7254363 7976
a90ef4bf
JM
7977.PHONY: configure-fixincludes maybe-configure-fixincludes
7978maybe-configure-fixincludes:
4f0ef2d8 7979@if gcc-bootstrap
a90ef4bf 7980configure-fixincludes: stage_current
4f0ef2d8 7981@endif gcc-bootstrap
a90ef4bf
JM
7982@if fixincludes
7983maybe-configure-fixincludes: configure-fixincludes
7984configure-fixincludes:
c52c6897 7985 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7987 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
7988 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
1f53ca9a 7989 $(HOST_EXPORTS) \
a90ef4bf
JM
7990 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
7991 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 7992 case $(srcdir) in \
b00612cc 7993 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7994 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 7995 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7996 esac; \
1b6c0831
L
7997 module_srcdir=fixincludes; \
7998 $(SHELL) \
7999 $$s/$$module_srcdir/configure \
8000 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8001 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8002 --target=${target_alias} \
4fa63067 8003 || exit 1
a90ef4bf 8004@endif fixincludes
4fa63067 8005
a7254363
PB
8006
8007
201f096f 8008.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8009maybe-configure-stage1-fixincludes:
8010@if fixincludes-bootstrap
8011maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8012configure-stage1-fixincludes:
8013 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8014 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8015 @r=`${PWD_COMMAND}`; export r; \
8016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8017 TFLAGS="$(STAGE1_TFLAGS)"; \
8018 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8019 $(HOST_EXPORTS) \
8020 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8021 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8022 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
8023 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes ; \
8024 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8025 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8026 case $(srcdir) in \
8027 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8028 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8029 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8030 esac; \
1b6c0831
L
8031 module_srcdir=fixincludes; \
8032 $(SHELL) $$s/$$module_srcdir/configure \
8033 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8034 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8035 --target=${target_alias} \
8036 \
201f096f 8037 $(STAGE1_CONFIGURE_FLAGS)
8038@endif fixincludes-bootstrap
8039
8040.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8041maybe-configure-stage2-fixincludes:
8042@if fixincludes-bootstrap
8043maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8044configure-stage2-fixincludes:
8045 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8046 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8047 @r=`${PWD_COMMAND}`; export r; \
8048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8049 TFLAGS="$(STAGE2_TFLAGS)"; \
8050 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8051 $(HOST_EXPORTS) \
8052 $(POSTSTAGE1_HOST_EXPORTS) \
8053 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8054 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8055 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
8056 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes ; \
8057 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8058 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8059 case $(srcdir) in \
8060 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8061 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8062 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8063 esac; \
1b6c0831
L
8064 module_srcdir=fixincludes; \
8065 $(SHELL) $$s/$$module_srcdir/configure \
8066 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8067 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8068 --target=${target_alias} \
8069 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8070 $(STAGE2_CONFIGURE_FLAGS)
8071@endif fixincludes-bootstrap
8072
8073.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8074maybe-configure-stage3-fixincludes:
8075@if fixincludes-bootstrap
8076maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8077configure-stage3-fixincludes:
8078 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8079 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8080 @r=`${PWD_COMMAND}`; export r; \
8081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8082 TFLAGS="$(STAGE3_TFLAGS)"; \
8083 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8084 $(HOST_EXPORTS) \
8085 $(POSTSTAGE1_HOST_EXPORTS) \
8086 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8087 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8088 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
8089 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes ; \
8090 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8091 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8092 case $(srcdir) in \
8093 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8094 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8095 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8096 esac; \
1b6c0831
L
8097 module_srcdir=fixincludes; \
8098 $(SHELL) $$s/$$module_srcdir/configure \
8099 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8100 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8101 --target=${target_alias} \
8102 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8103 $(STAGE3_CONFIGURE_FLAGS)
8104@endif fixincludes-bootstrap
8105
8106.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8107maybe-configure-stage4-fixincludes:
8108@if fixincludes-bootstrap
8109maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8110configure-stage4-fixincludes:
8111 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8112 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8113 @r=`${PWD_COMMAND}`; export r; \
8114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8115 TFLAGS="$(STAGE4_TFLAGS)"; \
8116 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8117 $(HOST_EXPORTS) \
8118 $(POSTSTAGE1_HOST_EXPORTS) \
8119 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8120 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8121 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
8122 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes ; \
8123 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8124 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8125 case $(srcdir) in \
8126 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8127 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8128 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8129 esac; \
1b6c0831
L
8130 module_srcdir=fixincludes; \
8131 $(SHELL) $$s/$$module_srcdir/configure \
8132 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8133 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8134 --target=${target_alias} \
8135 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8136 $(STAGE4_CONFIGURE_FLAGS)
8137@endif fixincludes-bootstrap
8138
8139.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8140maybe-configure-stageprofile-fixincludes:
8141@if fixincludes-bootstrap
8142maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8143configure-stageprofile-fixincludes:
8144 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8145 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8146 @r=`${PWD_COMMAND}`; export r; \
8147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8148 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8149 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8150 $(HOST_EXPORTS) \
8151 $(POSTSTAGE1_HOST_EXPORTS) \
8152 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8153 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8154 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
8155 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes ; \
8156 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8157 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8158 case $(srcdir) in \
8159 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8160 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8161 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8162 esac; \
1b6c0831
L
8163 module_srcdir=fixincludes; \
8164 $(SHELL) $$s/$$module_srcdir/configure \
8165 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8166 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8167 --target=${target_alias} \
8168 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8169 $(STAGEprofile_CONFIGURE_FLAGS)
8170@endif fixincludes-bootstrap
8171
8172.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8173maybe-configure-stagefeedback-fixincludes:
8174@if fixincludes-bootstrap
8175maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8176configure-stagefeedback-fixincludes:
8177 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8178 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8179 @r=`${PWD_COMMAND}`; export r; \
8180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8181 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8182 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8183 $(HOST_EXPORTS) \
8184 $(POSTSTAGE1_HOST_EXPORTS) \
8185 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8186 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8187 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
8188 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes ; \
8189 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8190 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8191 case $(srcdir) in \
8192 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8193 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8194 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8195 esac; \
1b6c0831
L
8196 module_srcdir=fixincludes; \
8197 $(SHELL) $$s/$$module_srcdir/configure \
8198 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8199 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8200 --target=${target_alias} \
8201 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8202 $(STAGEfeedback_CONFIGURE_FLAGS)
8203@endif fixincludes-bootstrap
8204
8205
8206
d545f33b
PB
8207
8208
a90ef4bf
JM
8209.PHONY: all-fixincludes maybe-all-fixincludes
8210maybe-all-fixincludes:
4f0ef2d8 8211@if gcc-bootstrap
a90ef4bf 8212all-fixincludes: stage_current
4f0ef2d8 8213@endif gcc-bootstrap
a90ef4bf
JM
8214@if fixincludes
8215TARGET-fixincludes=all
8216maybe-all-fixincludes: all-fixincludes
8217all-fixincludes: configure-fixincludes
4fa63067
NN
8218 @r=`${PWD_COMMAND}`; export r; \
8219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8220 $(HOST_EXPORTS) \
a90ef4bf 8221 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8222 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8223 $(TARGET-fixincludes))
8224@endif fixincludes
4fa63067 8225
a7254363 8226
d545f33b 8227
201f096f 8228.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8229.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8230maybe-all-stage1-fixincludes:
8231maybe-clean-stage1-fixincludes:
8232@if fixincludes-bootstrap
8233maybe-all-stage1-fixincludes: all-stage1-fixincludes
8234all-stage1: all-stage1-fixincludes
8235TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8236all-stage1-fixincludes: configure-stage1-fixincludes
8237 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8238 @r=`${PWD_COMMAND}`; export r; \
8239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8240 TFLAGS="$(STAGE1_TFLAGS)"; \
8241 $(HOST_EXPORTS) \
8242 cd $(HOST_SUBDIR)/fixincludes && \
8243 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8244 CFLAGS="$(STAGE1_CFLAGS)" \
8245 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8246 LIBCFLAGS="$(LIBCFLAGS)" \
8247 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8248 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8249 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8250 $(EXTRA_HOST_FLAGS) \
8251 $(STAGE1_FLAGS_TO_PASS) \
8252 TFLAGS="$(STAGE1_TFLAGS)" \
8253 $(TARGET-stage1-fixincludes)
8254
8255maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8256clean-stage1: clean-stage1-fixincludes
8257clean-stage1-fixincludes:
8258 @if [ $(current_stage) = stage1 ]; then \
8259 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8260 else \
8261 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8262 $(MAKE) stage1-start; \
8263 fi; \
8264 cd $(HOST_SUBDIR)/fixincludes && \
8265 $(MAKE) $(EXTRA_HOST_FLAGS) \
8266 $(STAGE1_FLAGS_TO_PASS) clean
8267@endif fixincludes-bootstrap
8268
8269
8270.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8271.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8272maybe-all-stage2-fixincludes:
8273maybe-clean-stage2-fixincludes:
8274@if fixincludes-bootstrap
8275maybe-all-stage2-fixincludes: all-stage2-fixincludes
8276all-stage2: all-stage2-fixincludes
8277TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8278all-stage2-fixincludes: configure-stage2-fixincludes
8279 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8280 @r=`${PWD_COMMAND}`; export r; \
8281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8282 TFLAGS="$(STAGE2_TFLAGS)"; \
8283 $(HOST_EXPORTS) \
8284 $(POSTSTAGE1_HOST_EXPORTS) \
8285 cd $(HOST_SUBDIR)/fixincludes && \
8286 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8287 CFLAGS="$(STAGE2_CFLAGS)" \
8288 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8289 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8290 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8291 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8292 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8293 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8294 TFLAGS="$(STAGE2_TFLAGS)" \
8295 $(TARGET-stage2-fixincludes)
8296
8297maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8298clean-stage2: clean-stage2-fixincludes
8299clean-stage2-fixincludes:
8300 @if [ $(current_stage) = stage2 ]; then \
8301 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8302 else \
8303 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8304 $(MAKE) stage2-start; \
8305 fi; \
8306 cd $(HOST_SUBDIR)/fixincludes && \
8307 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8308@endif fixincludes-bootstrap
8309
8310
8311.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8312.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8313maybe-all-stage3-fixincludes:
8314maybe-clean-stage3-fixincludes:
8315@if fixincludes-bootstrap
8316maybe-all-stage3-fixincludes: all-stage3-fixincludes
8317all-stage3: all-stage3-fixincludes
8318TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8319all-stage3-fixincludes: configure-stage3-fixincludes
8320 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8321 @r=`${PWD_COMMAND}`; export r; \
8322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8323 TFLAGS="$(STAGE3_TFLAGS)"; \
8324 $(HOST_EXPORTS) \
8325 $(POSTSTAGE1_HOST_EXPORTS) \
8326 cd $(HOST_SUBDIR)/fixincludes && \
8327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8328 CFLAGS="$(STAGE3_CFLAGS)" \
8329 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8330 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8331 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8332 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8333 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8334 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8335 TFLAGS="$(STAGE3_TFLAGS)" \
8336 $(TARGET-stage3-fixincludes)
8337
8338maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8339clean-stage3: clean-stage3-fixincludes
8340clean-stage3-fixincludes:
8341 @if [ $(current_stage) = stage3 ]; then \
8342 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8343 else \
8344 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8345 $(MAKE) stage3-start; \
8346 fi; \
8347 cd $(HOST_SUBDIR)/fixincludes && \
8348 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8349@endif fixincludes-bootstrap
8350
8351
8352.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8353.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8354maybe-all-stage4-fixincludes:
8355maybe-clean-stage4-fixincludes:
8356@if fixincludes-bootstrap
8357maybe-all-stage4-fixincludes: all-stage4-fixincludes
8358all-stage4: all-stage4-fixincludes
8359TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8360all-stage4-fixincludes: configure-stage4-fixincludes
8361 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8362 @r=`${PWD_COMMAND}`; export r; \
8363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8364 TFLAGS="$(STAGE4_TFLAGS)"; \
8365 $(HOST_EXPORTS) \
8366 $(POSTSTAGE1_HOST_EXPORTS) \
8367 cd $(HOST_SUBDIR)/fixincludes && \
8368 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8369 CFLAGS="$(STAGE4_CFLAGS)" \
8370 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8371 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8372 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8373 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8374 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8375 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8376 TFLAGS="$(STAGE4_TFLAGS)" \
8377 $(TARGET-stage4-fixincludes)
8378
8379maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8380clean-stage4: clean-stage4-fixincludes
8381clean-stage4-fixincludes:
8382 @if [ $(current_stage) = stage4 ]; then \
8383 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8384 else \
8385 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8386 $(MAKE) stage4-start; \
8387 fi; \
8388 cd $(HOST_SUBDIR)/fixincludes && \
8389 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8390@endif fixincludes-bootstrap
8391
8392
8393.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8394.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8395maybe-all-stageprofile-fixincludes:
8396maybe-clean-stageprofile-fixincludes:
8397@if fixincludes-bootstrap
8398maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8399all-stageprofile: all-stageprofile-fixincludes
8400TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8401all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8402 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8403 @r=`${PWD_COMMAND}`; export r; \
8404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8405 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8406 $(HOST_EXPORTS) \
8407 $(POSTSTAGE1_HOST_EXPORTS) \
8408 cd $(HOST_SUBDIR)/fixincludes && \
8409 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8410 CFLAGS="$(STAGEprofile_CFLAGS)" \
8411 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8412 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8413 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8414 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8415 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8416 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8417 TFLAGS="$(STAGEprofile_TFLAGS)" \
8418 $(TARGET-stageprofile-fixincludes)
8419
8420maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8421clean-stageprofile: clean-stageprofile-fixincludes
8422clean-stageprofile-fixincludes:
8423 @if [ $(current_stage) = stageprofile ]; then \
8424 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8425 else \
8426 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8427 $(MAKE) stageprofile-start; \
8428 fi; \
8429 cd $(HOST_SUBDIR)/fixincludes && \
8430 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8431@endif fixincludes-bootstrap
8432
8433
8434.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8435.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8436maybe-all-stagefeedback-fixincludes:
8437maybe-clean-stagefeedback-fixincludes:
8438@if fixincludes-bootstrap
8439maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8440all-stagefeedback: all-stagefeedback-fixincludes
8441TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8442all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8443 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8444 @r=`${PWD_COMMAND}`; export r; \
8445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8446 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8447 $(HOST_EXPORTS) \
8448 $(POSTSTAGE1_HOST_EXPORTS) \
8449 cd $(HOST_SUBDIR)/fixincludes && \
8450 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8451 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8452 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8453 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8454 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8455 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8456 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8457 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8458 TFLAGS="$(STAGEfeedback_TFLAGS)" \
8459 $(TARGET-stagefeedback-fixincludes)
8460
8461maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8462clean-stagefeedback: clean-stagefeedback-fixincludes
8463clean-stagefeedback-fixincludes:
8464 @if [ $(current_stage) = stagefeedback ]; then \
8465 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8466 else \
8467 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8468 $(MAKE) stagefeedback-start; \
8469 fi; \
8470 cd $(HOST_SUBDIR)/fixincludes && \
8471 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8472@endif fixincludes-bootstrap
8473
8474
8475
8476
d545f33b 8477
a90ef4bf
JM
8478.PHONY: check-fixincludes maybe-check-fixincludes
8479maybe-check-fixincludes:
8480@if fixincludes
8481maybe-check-fixincludes: check-fixincludes
4fa63067 8482
a90ef4bf 8483check-fixincludes:
0aed8855 8484 @: $(MAKE); $(unstage)
4fa63067
NN
8485 @r=`${PWD_COMMAND}`; export r; \
8486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8487 $(HOST_EXPORTS) \
a90ef4bf 8488 (cd $(HOST_SUBDIR)/fixincludes && \
b00612cc 8489 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 8490
a90ef4bf 8491@endif fixincludes
4fa63067 8492
a90ef4bf
JM
8493.PHONY: install-fixincludes maybe-install-fixincludes
8494maybe-install-fixincludes:
8495@if fixincludes
8496maybe-install-fixincludes: install-fixincludes
4fa63067 8497
a90ef4bf 8498install-fixincludes: installdirs
0aed8855 8499 @: $(MAKE); $(unstage)
4fa63067
NN
8500 @r=`${PWD_COMMAND}`; export r; \
8501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8502 $(HOST_EXPORTS) \
a90ef4bf 8503 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8504 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8505
a90ef4bf 8506@endif fixincludes
4fa63067 8507
a90ef4bf
JM
8508.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8509maybe-install-strip-fixincludes:
8510@if fixincludes
8511maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8512
a90ef4bf 8513install-strip-fixincludes: installdirs
9b980aa1
RW
8514 @: $(MAKE); $(unstage)
8515 @r=`${PWD_COMMAND}`; export r; \
8516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8517 $(HOST_EXPORTS) \
a90ef4bf 8518 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8519 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8520
a90ef4bf 8521@endif fixincludes
9b980aa1 8522
56a8fe78 8523# Other targets (info, dvi, pdf, etc.)
4fa63067 8524
a90ef4bf
JM
8525.PHONY: maybe-info-fixincludes info-fixincludes
8526maybe-info-fixincludes:
8527@if fixincludes
8528maybe-info-fixincludes: info-fixincludes
4fa63067 8529
a90ef4bf
JM
8530info-fixincludes: \
8531 configure-fixincludes
a90ef4bf 8532 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8533 r=`${PWD_COMMAND}`; export r; \
8534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8535 $(HOST_EXPORTS) \
b813574b 8536 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8538 done; \
a90ef4bf
JM
8539 echo "Doing info in fixincludes" ; \
8540 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8543 "RANLIB=$${RANLIB}" \
0c24b341 8544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8545 info) \
2a4cbe27
NN
8546 || exit 1
8547
a90ef4bf 8548@endif fixincludes
2a4cbe27 8549
a90ef4bf
JM
8550.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8551maybe-dvi-fixincludes:
8552@if fixincludes
8553maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8554
a90ef4bf
JM
8555dvi-fixincludes: \
8556 configure-fixincludes
a90ef4bf 8557 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8558 r=`${PWD_COMMAND}`; export r; \
8559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8560 $(HOST_EXPORTS) \
b813574b 8561 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8563 done; \
a90ef4bf
JM
8564 echo "Doing dvi in fixincludes" ; \
8565 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8568 "RANLIB=$${RANLIB}" \
0c24b341 8569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8570 dvi) \
2a4cbe27
NN
8571 || exit 1
8572
a90ef4bf 8573@endif fixincludes
2a4cbe27 8574
a90ef4bf
JM
8575.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8576maybe-pdf-fixincludes:
8577@if fixincludes
8578maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8579
a90ef4bf
JM
8580pdf-fixincludes: \
8581 configure-fixincludes
a90ef4bf 8582 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8583 r=`${PWD_COMMAND}`; export r; \
8584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8585 $(HOST_EXPORTS) \
8586 for flag in $(EXTRA_HOST_FLAGS) ; do \
8587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8588 done; \
a90ef4bf
JM
8589 echo "Doing pdf in fixincludes" ; \
8590 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8593 "RANLIB=$${RANLIB}" \
0c24b341 8594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8595 pdf) \
8596 || exit 1
8597
a90ef4bf 8598@endif fixincludes
56a8fe78 8599
a90ef4bf
JM
8600.PHONY: maybe-html-fixincludes html-fixincludes
8601maybe-html-fixincludes:
8602@if fixincludes
8603maybe-html-fixincludes: html-fixincludes
6d389afc 8604
a90ef4bf
JM
8605html-fixincludes: \
8606 configure-fixincludes
a90ef4bf 8607 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8608 r=`${PWD_COMMAND}`; export r; \
8609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8610 $(HOST_EXPORTS) \
8611 for flag in $(EXTRA_HOST_FLAGS) ; do \
8612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8613 done; \
a90ef4bf
JM
8614 echo "Doing html in fixincludes" ; \
8615 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8618 "RANLIB=$${RANLIB}" \
0c24b341 8619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8620 html) \
8621 || exit 1
8622
a90ef4bf 8623@endif fixincludes
6d389afc 8624
a90ef4bf
JM
8625.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8626maybe-TAGS-fixincludes:
8627@if fixincludes
8628maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8629
a90ef4bf
JM
8630# fixincludes doesn't support TAGS.
8631TAGS-fixincludes:
2a4cbe27 8632
a90ef4bf 8633@endif fixincludes
2a4cbe27 8634
a90ef4bf
JM
8635.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8636maybe-install-info-fixincludes:
8637@if fixincludes
8638maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8639
a90ef4bf
JM
8640install-info-fixincludes: \
8641 configure-fixincludes \
8642 info-fixincludes
a90ef4bf 8643 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8644 r=`${PWD_COMMAND}`; export r; \
8645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8646 $(HOST_EXPORTS) \
b813574b 8647 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8649 done; \
a90ef4bf
JM
8650 echo "Doing install-info in fixincludes" ; \
8651 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8654 "RANLIB=$${RANLIB}" \
0c24b341 8655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8656 install-info) \
2a4cbe27
NN
8657 || exit 1
8658
a90ef4bf 8659@endif fixincludes
2a4cbe27 8660
a90ef4bf
JM
8661.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8662maybe-install-pdf-fixincludes:
8663@if fixincludes
8664maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8665
a90ef4bf
JM
8666install-pdf-fixincludes: \
8667 configure-fixincludes \
8668 pdf-fixincludes
a90ef4bf 8669 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8670 r=`${PWD_COMMAND}`; export r; \
8671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8672 $(HOST_EXPORTS) \
8673 for flag in $(EXTRA_HOST_FLAGS) ; do \
8674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8675 done; \
a90ef4bf
JM
8676 echo "Doing install-pdf in fixincludes" ; \
8677 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8680 "RANLIB=$${RANLIB}" \
0c24b341 8681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8682 install-pdf) \
8683 || exit 1
8684
a90ef4bf 8685@endif fixincludes
a3ca38d2 8686
a90ef4bf
JM
8687.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8688maybe-install-html-fixincludes:
8689@if fixincludes
8690maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8691
a90ef4bf
JM
8692install-html-fixincludes: \
8693 configure-fixincludes \
8694 html-fixincludes
a90ef4bf 8695 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8696 r=`${PWD_COMMAND}`; export r; \
8697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8698 $(HOST_EXPORTS) \
8699 for flag in $(EXTRA_HOST_FLAGS) ; do \
8700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8701 done; \
a90ef4bf
JM
8702 echo "Doing install-html in fixincludes" ; \
8703 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8706 "RANLIB=$${RANLIB}" \
0c24b341 8707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8708 install-html) \
8709 || exit 1
8710
a90ef4bf 8711@endif fixincludes
108a6f8e 8712
a90ef4bf
JM
8713.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8714maybe-installcheck-fixincludes:
8715@if fixincludes
8716maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8717
a90ef4bf
JM
8718installcheck-fixincludes: \
8719 configure-fixincludes
a90ef4bf 8720 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8721 r=`${PWD_COMMAND}`; export r; \
8722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8723 $(HOST_EXPORTS) \
b813574b 8724 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8726 done; \
a90ef4bf
JM
8727 echo "Doing installcheck in fixincludes" ; \
8728 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8731 "RANLIB=$${RANLIB}" \
0c24b341 8732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8733 installcheck) \
2a4cbe27
NN
8734 || exit 1
8735
a90ef4bf 8736@endif fixincludes
2a4cbe27 8737
a90ef4bf
JM
8738.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8739maybe-mostlyclean-fixincludes:
8740@if fixincludes
8741maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8742
a90ef4bf 8743mostlyclean-fixincludes:
a90ef4bf 8744 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8745 r=`${PWD_COMMAND}`; export r; \
8746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8747 $(HOST_EXPORTS) \
b813574b 8748 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8750 done; \
a90ef4bf
JM
8751 echo "Doing mostlyclean in fixincludes" ; \
8752 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8755 "RANLIB=$${RANLIB}" \
0c24b341 8756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8757 mostlyclean) \
2a4cbe27
NN
8758 || exit 1
8759
a90ef4bf 8760@endif fixincludes
2a4cbe27 8761
a90ef4bf
JM
8762.PHONY: maybe-clean-fixincludes clean-fixincludes
8763maybe-clean-fixincludes:
8764@if fixincludes
8765maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8766
a90ef4bf 8767clean-fixincludes:
a90ef4bf 8768 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8769 r=`${PWD_COMMAND}`; export r; \
8770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8771 $(HOST_EXPORTS) \
b813574b 8772 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8774 done; \
a90ef4bf
JM
8775 echo "Doing clean in fixincludes" ; \
8776 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8779 "RANLIB=$${RANLIB}" \
0c24b341 8780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8781 clean) \
2a4cbe27
NN
8782 || exit 1
8783
a90ef4bf 8784@endif fixincludes
2a4cbe27 8785
a90ef4bf
JM
8786.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8787maybe-distclean-fixincludes:
8788@if fixincludes
8789maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8790
a90ef4bf 8791distclean-fixincludes:
a90ef4bf 8792 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8793 r=`${PWD_COMMAND}`; export r; \
8794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8795 $(HOST_EXPORTS) \
b813574b 8796 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8798 done; \
a90ef4bf
JM
8799 echo "Doing distclean in fixincludes" ; \
8800 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8803 "RANLIB=$${RANLIB}" \
0c24b341 8804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8805 distclean) \
2a4cbe27
NN
8806 || exit 1
8807
a90ef4bf 8808@endif fixincludes
2a4cbe27 8809
a90ef4bf
JM
8810.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8811maybe-maintainer-clean-fixincludes:
8812@if fixincludes
8813maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8814
a90ef4bf 8815maintainer-clean-fixincludes:
a90ef4bf 8816 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8817 r=`${PWD_COMMAND}`; export r; \
8818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8819 $(HOST_EXPORTS) \
b813574b 8820 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8822 done; \
a90ef4bf
JM
8823 echo "Doing maintainer-clean in fixincludes" ; \
8824 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8827 "RANLIB=$${RANLIB}" \
0c24b341 8828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8829 maintainer-clean) \
2a4cbe27
NN
8830 || exit 1
8831
a90ef4bf 8832@endif fixincludes
2a4cbe27 8833
2a4cbe27 8834
a7254363 8835
a90ef4bf
JM
8836.PHONY: configure-flex maybe-configure-flex
8837maybe-configure-flex:
f9806fa5 8838@if gcc-bootstrap
a90ef4bf 8839configure-flex: stage_current
f9806fa5 8840@endif gcc-bootstrap
a90ef4bf
JM
8841@if flex
8842maybe-configure-flex: configure-flex
8843configure-flex:
f9806fa5
DE
8844 @: $(MAKE); $(unstage)
8845 @r=`${PWD_COMMAND}`; export r; \
8846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8847 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
8848 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
1f53ca9a 8849 $(HOST_EXPORTS) \
a90ef4bf
JM
8850 echo Configuring in $(HOST_SUBDIR)/flex; \
8851 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8852 case $(srcdir) in \
8853 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8854 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8855 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8856 esac; \
1b6c0831
L
8857 module_srcdir=flex; \
8858 $(SHELL) \
8859 $$s/$$module_srcdir/configure \
8860 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8861 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8862 --target=${target_alias} \
f9806fa5 8863 || exit 1
a90ef4bf 8864@endif flex
f9806fa5
DE
8865
8866
8867
8868
8869
a90ef4bf
JM
8870.PHONY: all-flex maybe-all-flex
8871maybe-all-flex:
f9806fa5 8872@if gcc-bootstrap
a90ef4bf 8873all-flex: stage_current
f9806fa5 8874@endif gcc-bootstrap
a90ef4bf
JM
8875@if flex
8876TARGET-flex=all
8877maybe-all-flex: all-flex
8878all-flex: configure-flex
f9806fa5
DE
8879 @: $(MAKE); $(unstage)
8880 @r=`${PWD_COMMAND}`; export r; \
8881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8882 $(HOST_EXPORTS) \
a90ef4bf 8883 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8884 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8885 $(TARGET-flex))
8886@endif flex
f9806fa5
DE
8887
8888
8889
8890
a90ef4bf
JM
8891.PHONY: check-flex maybe-check-flex
8892maybe-check-flex:
8893@if flex
8894maybe-check-flex: check-flex
f9806fa5 8895
a90ef4bf
JM
8896# This module is only tested in a native toolchain.
8897check-flex:
f9806fa5 8898 @: $(MAKE); $(unstage)
a90ef4bf
JM
8899 @if [ '$(host)' = '$(target)' ] ; then \
8900 r=`${PWD_COMMAND}`; export r; \
8901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8902 $(HOST_EXPORTS) \
8903 (cd $(HOST_SUBDIR)/flex && \
8904 $(MAKE) $(FLAGS_TO_PASS) check); \
8905 fi
f9806fa5 8906
a90ef4bf 8907@endif flex
f9806fa5 8908
a90ef4bf
JM
8909.PHONY: install-flex maybe-install-flex
8910maybe-install-flex:
8911@if flex
8912maybe-install-flex: install-flex
f9806fa5 8913
a90ef4bf 8914install-flex: installdirs
f9806fa5
DE
8915 @: $(MAKE); $(unstage)
8916 @r=`${PWD_COMMAND}`; export r; \
8917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8918 $(HOST_EXPORTS) \
a90ef4bf 8919 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8920 $(MAKE) $(FLAGS_TO_PASS) install)
8921
a90ef4bf 8922@endif flex
f9806fa5 8923
a90ef4bf
JM
8924.PHONY: install-strip-flex maybe-install-strip-flex
8925maybe-install-strip-flex:
8926@if flex
8927maybe-install-strip-flex: install-strip-flex
9b980aa1 8928
a90ef4bf 8929install-strip-flex: installdirs
9b980aa1
RW
8930 @: $(MAKE); $(unstage)
8931 @r=`${PWD_COMMAND}`; export r; \
8932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8933 $(HOST_EXPORTS) \
a90ef4bf 8934 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8935 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8936
a90ef4bf 8937@endif flex
9b980aa1 8938
f9806fa5
DE
8939# Other targets (info, dvi, pdf, etc.)
8940
a90ef4bf
JM
8941.PHONY: maybe-info-flex info-flex
8942maybe-info-flex:
8943@if flex
8944maybe-info-flex: info-flex
f9806fa5 8945
a90ef4bf
JM
8946info-flex: \
8947 configure-flex
f9806fa5 8948 @: $(MAKE); $(unstage)
a90ef4bf 8949 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8950 r=`${PWD_COMMAND}`; export r; \
8951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8952 $(HOST_EXPORTS) \
8953 for flag in $(EXTRA_HOST_FLAGS) ; do \
8954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8955 done; \
a90ef4bf
JM
8956 echo "Doing info in flex" ; \
8957 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8960 "RANLIB=$${RANLIB}" \
8961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8962 info) \
8963 || exit 1
8964
a90ef4bf 8965@endif flex
f9806fa5 8966
a90ef4bf
JM
8967.PHONY: maybe-dvi-flex dvi-flex
8968maybe-dvi-flex:
8969@if flex
8970maybe-dvi-flex: dvi-flex
f9806fa5 8971
a90ef4bf
JM
8972dvi-flex: \
8973 configure-flex
f9806fa5 8974 @: $(MAKE); $(unstage)
a90ef4bf 8975 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8976 r=`${PWD_COMMAND}`; export r; \
8977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8978 $(HOST_EXPORTS) \
8979 for flag in $(EXTRA_HOST_FLAGS) ; do \
8980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8981 done; \
a90ef4bf
JM
8982 echo "Doing dvi in flex" ; \
8983 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8986 "RANLIB=$${RANLIB}" \
8987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8988 dvi) \
8989 || exit 1
8990
a90ef4bf 8991@endif flex
f9806fa5 8992
a90ef4bf
JM
8993.PHONY: maybe-pdf-flex pdf-flex
8994maybe-pdf-flex:
8995@if flex
8996maybe-pdf-flex: pdf-flex
f9806fa5 8997
a90ef4bf
JM
8998pdf-flex: \
8999 configure-flex
f9806fa5 9000 @: $(MAKE); $(unstage)
a90ef4bf 9001 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9002 r=`${PWD_COMMAND}`; export r; \
9003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9004 $(HOST_EXPORTS) \
9005 for flag in $(EXTRA_HOST_FLAGS) ; do \
9006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9007 done; \
a90ef4bf
JM
9008 echo "Doing pdf in flex" ; \
9009 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9012 "RANLIB=$${RANLIB}" \
9013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9014 pdf) \
9015 || exit 1
9016
a90ef4bf 9017@endif flex
f9806fa5 9018
a90ef4bf
JM
9019.PHONY: maybe-html-flex html-flex
9020maybe-html-flex:
9021@if flex
9022maybe-html-flex: html-flex
f9806fa5 9023
a90ef4bf
JM
9024html-flex: \
9025 configure-flex
f9806fa5 9026 @: $(MAKE); $(unstage)
a90ef4bf 9027 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9028 r=`${PWD_COMMAND}`; export r; \
9029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9030 $(HOST_EXPORTS) \
9031 for flag in $(EXTRA_HOST_FLAGS) ; do \
9032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9033 done; \
a90ef4bf
JM
9034 echo "Doing html in flex" ; \
9035 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9038 "RANLIB=$${RANLIB}" \
9039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9040 html) \
9041 || exit 1
9042
a90ef4bf 9043@endif flex
f9806fa5 9044
a90ef4bf
JM
9045.PHONY: maybe-TAGS-flex TAGS-flex
9046maybe-TAGS-flex:
9047@if flex
9048maybe-TAGS-flex: TAGS-flex
f9806fa5 9049
a90ef4bf
JM
9050TAGS-flex: \
9051 configure-flex
f9806fa5 9052 @: $(MAKE); $(unstage)
a90ef4bf 9053 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9054 r=`${PWD_COMMAND}`; export r; \
9055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9056 $(HOST_EXPORTS) \
9057 for flag in $(EXTRA_HOST_FLAGS) ; do \
9058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9059 done; \
a90ef4bf
JM
9060 echo "Doing TAGS in flex" ; \
9061 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9064 "RANLIB=$${RANLIB}" \
9065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9066 TAGS) \
9067 || exit 1
9068
a90ef4bf 9069@endif flex
f9806fa5 9070
a90ef4bf
JM
9071.PHONY: maybe-install-info-flex install-info-flex
9072maybe-install-info-flex:
9073@if flex
9074maybe-install-info-flex: install-info-flex
f9806fa5 9075
a90ef4bf
JM
9076install-info-flex: \
9077 configure-flex \
9078 info-flex
f9806fa5 9079 @: $(MAKE); $(unstage)
a90ef4bf 9080 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9081 r=`${PWD_COMMAND}`; export r; \
9082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9083 $(HOST_EXPORTS) \
9084 for flag in $(EXTRA_HOST_FLAGS) ; do \
9085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9086 done; \
a90ef4bf
JM
9087 echo "Doing install-info in flex" ; \
9088 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9091 "RANLIB=$${RANLIB}" \
9092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9093 install-info) \
9094 || exit 1
9095
a90ef4bf 9096@endif flex
f9806fa5 9097
a90ef4bf
JM
9098.PHONY: maybe-install-pdf-flex install-pdf-flex
9099maybe-install-pdf-flex:
9100@if flex
9101maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9102
a90ef4bf
JM
9103install-pdf-flex: \
9104 configure-flex \
9105 pdf-flex
f9806fa5 9106 @: $(MAKE); $(unstage)
a90ef4bf 9107 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9108 r=`${PWD_COMMAND}`; export r; \
9109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9110 $(HOST_EXPORTS) \
9111 for flag in $(EXTRA_HOST_FLAGS) ; do \
9112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9113 done; \
a90ef4bf
JM
9114 echo "Doing install-pdf in flex" ; \
9115 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9118 "RANLIB=$${RANLIB}" \
9119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9120 install-pdf) \
9121 || exit 1
9122
a90ef4bf 9123@endif flex
f9806fa5 9124
a90ef4bf
JM
9125.PHONY: maybe-install-html-flex install-html-flex
9126maybe-install-html-flex:
9127@if flex
9128maybe-install-html-flex: install-html-flex
f9806fa5 9129
a90ef4bf
JM
9130install-html-flex: \
9131 configure-flex \
9132 html-flex
f9806fa5 9133 @: $(MAKE); $(unstage)
a90ef4bf 9134 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9135 r=`${PWD_COMMAND}`; export r; \
9136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9137 $(HOST_EXPORTS) \
9138 for flag in $(EXTRA_HOST_FLAGS) ; do \
9139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9140 done; \
a90ef4bf
JM
9141 echo "Doing install-html in flex" ; \
9142 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9145 "RANLIB=$${RANLIB}" \
9146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9147 install-html) \
9148 || exit 1
9149
a90ef4bf 9150@endif flex
f9806fa5 9151
a90ef4bf
JM
9152.PHONY: maybe-installcheck-flex installcheck-flex
9153maybe-installcheck-flex:
9154@if flex
9155maybe-installcheck-flex: installcheck-flex
f9806fa5 9156
a90ef4bf
JM
9157installcheck-flex: \
9158 configure-flex
f9806fa5 9159 @: $(MAKE); $(unstage)
a90ef4bf 9160 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9161 r=`${PWD_COMMAND}`; export r; \
9162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9163 $(HOST_EXPORTS) \
9164 for flag in $(EXTRA_HOST_FLAGS) ; do \
9165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9166 done; \
a90ef4bf
JM
9167 echo "Doing installcheck in flex" ; \
9168 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9171 "RANLIB=$${RANLIB}" \
9172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9173 installcheck) \
9174 || exit 1
9175
a90ef4bf 9176@endif flex
f9806fa5 9177
a90ef4bf
JM
9178.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9179maybe-mostlyclean-flex:
9180@if flex
9181maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9182
a90ef4bf 9183mostlyclean-flex:
f9806fa5 9184 @: $(MAKE); $(unstage)
a90ef4bf 9185 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9186 r=`${PWD_COMMAND}`; export r; \
9187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9188 $(HOST_EXPORTS) \
9189 for flag in $(EXTRA_HOST_FLAGS) ; do \
9190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9191 done; \
a90ef4bf
JM
9192 echo "Doing mostlyclean in flex" ; \
9193 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9196 "RANLIB=$${RANLIB}" \
9197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9198 mostlyclean) \
9199 || exit 1
9200
a90ef4bf 9201@endif flex
f9806fa5 9202
a90ef4bf
JM
9203.PHONY: maybe-clean-flex clean-flex
9204maybe-clean-flex:
9205@if flex
9206maybe-clean-flex: clean-flex
f9806fa5 9207
a90ef4bf 9208clean-flex:
f9806fa5 9209 @: $(MAKE); $(unstage)
a90ef4bf 9210 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9211 r=`${PWD_COMMAND}`; export r; \
9212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9213 $(HOST_EXPORTS) \
9214 for flag in $(EXTRA_HOST_FLAGS) ; do \
9215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9216 done; \
a90ef4bf
JM
9217 echo "Doing clean in flex" ; \
9218 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9221 "RANLIB=$${RANLIB}" \
9222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9223 clean) \
9224 || exit 1
9225
a90ef4bf 9226@endif flex
f9806fa5 9227
a90ef4bf
JM
9228.PHONY: maybe-distclean-flex distclean-flex
9229maybe-distclean-flex:
9230@if flex
9231maybe-distclean-flex: distclean-flex
f9806fa5 9232
a90ef4bf 9233distclean-flex:
f9806fa5 9234 @: $(MAKE); $(unstage)
a90ef4bf 9235 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9236 r=`${PWD_COMMAND}`; export r; \
9237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9238 $(HOST_EXPORTS) \
9239 for flag in $(EXTRA_HOST_FLAGS) ; do \
9240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9241 done; \
a90ef4bf
JM
9242 echo "Doing distclean in flex" ; \
9243 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9246 "RANLIB=$${RANLIB}" \
9247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9248 distclean) \
9249 || exit 1
9250
a90ef4bf 9251@endif flex
f9806fa5 9252
a90ef4bf
JM
9253.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9254maybe-maintainer-clean-flex:
9255@if flex
9256maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9257
a90ef4bf 9258maintainer-clean-flex:
f9806fa5 9259 @: $(MAKE); $(unstage)
a90ef4bf 9260 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9261 r=`${PWD_COMMAND}`; export r; \
9262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9263 $(HOST_EXPORTS) \
9264 for flag in $(EXTRA_HOST_FLAGS) ; do \
9265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9266 done; \
a90ef4bf
JM
9267 echo "Doing maintainer-clean in flex" ; \
9268 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9271 "RANLIB=$${RANLIB}" \
9272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9273 maintainer-clean) \
9274 || exit 1
9275
a90ef4bf 9276@endif flex
f9806fa5
DE
9277
9278
9279
a90ef4bf
JM
9280.PHONY: configure-gas maybe-configure-gas
9281maybe-configure-gas:
4f0ef2d8 9282@if gcc-bootstrap
a90ef4bf 9283configure-gas: stage_current
4f0ef2d8 9284@endif gcc-bootstrap
a90ef4bf
JM
9285@if gas
9286maybe-configure-gas: configure-gas
9287configure-gas:
c52c6897 9288 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9290 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9291 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
1f53ca9a 9292 $(HOST_EXPORTS) \
a90ef4bf
JM
9293 echo Configuring in $(HOST_SUBDIR)/gas; \
9294 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9295 case $(srcdir) in \
b00612cc 9296 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9297 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9298 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9299 esac; \
1b6c0831
L
9300 module_srcdir=gas; \
9301 $(SHELL) \
9302 $$s/$$module_srcdir/configure \
9303 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9304 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9305 --target=${target_alias} \
4fa63067 9306 || exit 1
a90ef4bf 9307@endif gas
a7254363 9308
d545f33b
PB
9309
9310
a90ef4bf
JM
9311.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9312maybe-configure-stage1-gas:
9313@if gas-bootstrap
9314maybe-configure-stage1-gas: configure-stage1-gas
9315configure-stage1-gas:
9316 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9317 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9318 @r=`${PWD_COMMAND}`; export r; \
9319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9320 TFLAGS="$(STAGE1_TFLAGS)"; \
9321 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9322 $(HOST_EXPORTS) \
9323 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9324 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9325 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
9326 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
9327 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9328 cd $(HOST_SUBDIR)/gas || exit 1; \
9329 case $(srcdir) in \
9330 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9331 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9332 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9333 esac; \
1b6c0831
L
9334 module_srcdir=gas; \
9335 $(SHELL) $$s/$$module_srcdir/configure \
9336 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9338 --target=${target_alias} \
9339 \
a90ef4bf
JM
9340 $(STAGE1_CONFIGURE_FLAGS)
9341@endif gas-bootstrap
4fa63067 9342
a90ef4bf
JM
9343.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9344maybe-configure-stage2-gas:
9345@if gas-bootstrap
9346maybe-configure-stage2-gas: configure-stage2-gas
9347configure-stage2-gas:
9348 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9349 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9350 @r=`${PWD_COMMAND}`; export r; \
9351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9352 TFLAGS="$(STAGE2_TFLAGS)"; \
9353 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9354 $(HOST_EXPORTS) \
a90ef4bf
JM
9355 $(POSTSTAGE1_HOST_EXPORTS) \
9356 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9357 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9358 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
9359 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
9360 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9361 cd $(HOST_SUBDIR)/gas || exit 1; \
9362 case $(srcdir) in \
9363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9364 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9366 esac; \
1b6c0831
L
9367 module_srcdir=gas; \
9368 $(SHELL) $$s/$$module_srcdir/configure \
9369 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9370 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9371 --target=${target_alias} \
9372 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9373 $(STAGE2_CONFIGURE_FLAGS)
9374@endif gas-bootstrap
4fa63067 9375
a90ef4bf
JM
9376.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9377maybe-configure-stage3-gas:
9378@if gas-bootstrap
9379maybe-configure-stage3-gas: configure-stage3-gas
9380configure-stage3-gas:
9381 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9382 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9383 @r=`${PWD_COMMAND}`; export r; \
9384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9385 TFLAGS="$(STAGE3_TFLAGS)"; \
9386 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9387 $(HOST_EXPORTS) \
a90ef4bf
JM
9388 $(POSTSTAGE1_HOST_EXPORTS) \
9389 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9390 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9391 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
9392 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
9393 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9394 cd $(HOST_SUBDIR)/gas || exit 1; \
9395 case $(srcdir) in \
9396 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9397 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9398 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9399 esac; \
1b6c0831
L
9400 module_srcdir=gas; \
9401 $(SHELL) $$s/$$module_srcdir/configure \
9402 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9403 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9404 --target=${target_alias} \
9405 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9406 $(STAGE3_CONFIGURE_FLAGS)
9407@endif gas-bootstrap
9b980aa1 9408
a90ef4bf
JM
9409.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9410maybe-configure-stage4-gas:
9411@if gas-bootstrap
9412maybe-configure-stage4-gas: configure-stage4-gas
9413configure-stage4-gas:
9414 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9415 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9416 @r=`${PWD_COMMAND}`; export r; \
9417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9418 TFLAGS="$(STAGE4_TFLAGS)"; \
9419 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9420 $(HOST_EXPORTS) \
a90ef4bf
JM
9421 $(POSTSTAGE1_HOST_EXPORTS) \
9422 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9423 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9424 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
9425 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
9426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9427 cd $(HOST_SUBDIR)/gas || exit 1; \
9428 case $(srcdir) in \
9429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9430 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9432 esac; \
1b6c0831
L
9433 module_srcdir=gas; \
9434 $(SHELL) $$s/$$module_srcdir/configure \
9435 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9437 --target=${target_alias} \
9438 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9439 $(STAGE4_CONFIGURE_FLAGS)
9440@endif gas-bootstrap
4fa63067 9441
a90ef4bf
JM
9442.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9443maybe-configure-stageprofile-gas:
9444@if gas-bootstrap
9445maybe-configure-stageprofile-gas: configure-stageprofile-gas
9446configure-stageprofile-gas:
9447 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9448 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9449 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9451 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9452 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9453 $(HOST_EXPORTS) \
a90ef4bf
JM
9454 $(POSTSTAGE1_HOST_EXPORTS) \
9455 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9456 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9457 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
9458 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
9459 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9460 cd $(HOST_SUBDIR)/gas || exit 1; \
9461 case $(srcdir) in \
9462 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9463 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9464 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9465 esac; \
1b6c0831
L
9466 module_srcdir=gas; \
9467 $(SHELL) $$s/$$module_srcdir/configure \
9468 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9469 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9470 --target=${target_alias} \
9471 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9472 $(STAGEprofile_CONFIGURE_FLAGS)
9473@endif gas-bootstrap
2a4cbe27 9474
a90ef4bf
JM
9475.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9476maybe-configure-stagefeedback-gas:
9477@if gas-bootstrap
9478maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9479configure-stagefeedback-gas:
9480 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9481 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9482 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9484 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9485 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9486 $(HOST_EXPORTS) \
a90ef4bf
JM
9487 $(POSTSTAGE1_HOST_EXPORTS) \
9488 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9489 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9490 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
9491 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
9492 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9493 cd $(HOST_SUBDIR)/gas || exit 1; \
9494 case $(srcdir) in \
9495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9496 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9498 esac; \
1b6c0831
L
9499 module_srcdir=gas; \
9500 $(SHELL) $$s/$$module_srcdir/configure \
9501 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9502 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9503 --target=${target_alias} \
9504 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9505 $(STAGEfeedback_CONFIGURE_FLAGS)
9506@endif gas-bootstrap
2a4cbe27 9507
56a8fe78 9508
56a8fe78 9509
56a8fe78 9510
6d389afc 9511
a90ef4bf
JM
9512.PHONY: all-gas maybe-all-gas
9513maybe-all-gas:
9514@if gcc-bootstrap
9515all-gas: stage_current
9516@endif gcc-bootstrap
9517@if gas
9518TARGET-gas=all
9519maybe-all-gas: all-gas
9520all-gas: configure-gas
9521 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9523 $(HOST_EXPORTS) \
9524 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9525 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9526 $(TARGET-gas))
9527@endif gas
6d389afc 9528
6d389afc 9529
2a4cbe27 9530
a90ef4bf
JM
9531.PHONY: all-stage1-gas maybe-all-stage1-gas
9532.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9533maybe-all-stage1-gas:
9534maybe-clean-stage1-gas:
9535@if gas-bootstrap
9536maybe-all-stage1-gas: all-stage1-gas
9537all-stage1: all-stage1-gas
9538TARGET-stage1-gas = $(TARGET-gas)
9539all-stage1-gas: configure-stage1-gas
9540 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9541 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9543 TFLAGS="$(STAGE1_TFLAGS)"; \
9544 $(HOST_EXPORTS) \
9545 cd $(HOST_SUBDIR)/gas && \
9546 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9547 CFLAGS="$(STAGE1_CFLAGS)" \
9548 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9549 LIBCFLAGS="$(LIBCFLAGS)" \
9550 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9551 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9552 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9553 $(EXTRA_HOST_FLAGS) \
9554 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9555 TFLAGS="$(STAGE1_TFLAGS)" \
9556 $(TARGET-stage1-gas)
2a4cbe27 9557
a90ef4bf
JM
9558maybe-clean-stage1-gas: clean-stage1-gas
9559clean-stage1: clean-stage1-gas
9560clean-stage1-gas:
9561 @if [ $(current_stage) = stage1 ]; then \
9562 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9563 else \
9564 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9565 $(MAKE) stage1-start; \
9566 fi; \
9567 cd $(HOST_SUBDIR)/gas && \
9568 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9569 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9570@endif gas-bootstrap
2a4cbe27 9571
2a4cbe27 9572
a90ef4bf
JM
9573.PHONY: all-stage2-gas maybe-all-stage2-gas
9574.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9575maybe-all-stage2-gas:
9576maybe-clean-stage2-gas:
9577@if gas-bootstrap
9578maybe-all-stage2-gas: all-stage2-gas
9579all-stage2: all-stage2-gas
9580TARGET-stage2-gas = $(TARGET-gas)
9581all-stage2-gas: configure-stage2-gas
9582 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9583 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9585 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9586 $(HOST_EXPORTS) \
a90ef4bf
JM
9587 $(POSTSTAGE1_HOST_EXPORTS) \
9588 cd $(HOST_SUBDIR)/gas && \
9589 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9590 CFLAGS="$(STAGE2_CFLAGS)" \
9591 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9592 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9593 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9594 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9595 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9596 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9597 TFLAGS="$(STAGE2_TFLAGS)" \
9598 $(TARGET-stage2-gas)
2a4cbe27 9599
a90ef4bf
JM
9600maybe-clean-stage2-gas: clean-stage2-gas
9601clean-stage2: clean-stage2-gas
9602clean-stage2-gas:
9603 @if [ $(current_stage) = stage2 ]; then \
9604 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9605 else \
9606 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9607 $(MAKE) stage2-start; \
9608 fi; \
9609 cd $(HOST_SUBDIR)/gas && \
b3676d82 9610 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9611@endif gas-bootstrap
2a4cbe27 9612
2a4cbe27 9613
a90ef4bf
JM
9614.PHONY: all-stage3-gas maybe-all-stage3-gas
9615.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9616maybe-all-stage3-gas:
9617maybe-clean-stage3-gas:
9618@if gas-bootstrap
9619maybe-all-stage3-gas: all-stage3-gas
9620all-stage3: all-stage3-gas
9621TARGET-stage3-gas = $(TARGET-gas)
9622all-stage3-gas: configure-stage3-gas
9623 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9624 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9626 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9627 $(HOST_EXPORTS) \
a90ef4bf
JM
9628 $(POSTSTAGE1_HOST_EXPORTS) \
9629 cd $(HOST_SUBDIR)/gas && \
9630 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9631 CFLAGS="$(STAGE3_CFLAGS)" \
9632 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9633 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9634 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9635 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9636 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9637 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9638 TFLAGS="$(STAGE3_TFLAGS)" \
9639 $(TARGET-stage3-gas)
2a4cbe27 9640
a90ef4bf
JM
9641maybe-clean-stage3-gas: clean-stage3-gas
9642clean-stage3: clean-stage3-gas
9643clean-stage3-gas:
9644 @if [ $(current_stage) = stage3 ]; then \
9645 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9646 else \
9647 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9648 $(MAKE) stage3-start; \
9649 fi; \
9650 cd $(HOST_SUBDIR)/gas && \
b3676d82 9651 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9652@endif gas-bootstrap
2a4cbe27 9653
2a4cbe27 9654
a90ef4bf
JM
9655.PHONY: all-stage4-gas maybe-all-stage4-gas
9656.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9657maybe-all-stage4-gas:
9658maybe-clean-stage4-gas:
9659@if gas-bootstrap
9660maybe-all-stage4-gas: all-stage4-gas
9661all-stage4: all-stage4-gas
9662TARGET-stage4-gas = $(TARGET-gas)
9663all-stage4-gas: configure-stage4-gas
9664 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9665 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9667 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9668 $(HOST_EXPORTS) \
a90ef4bf
JM
9669 $(POSTSTAGE1_HOST_EXPORTS) \
9670 cd $(HOST_SUBDIR)/gas && \
9671 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9672 CFLAGS="$(STAGE4_CFLAGS)" \
9673 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9674 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9675 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9676 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9677 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9678 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9679 TFLAGS="$(STAGE4_TFLAGS)" \
9680 $(TARGET-stage4-gas)
2a4cbe27 9681
a90ef4bf
JM
9682maybe-clean-stage4-gas: clean-stage4-gas
9683clean-stage4: clean-stage4-gas
9684clean-stage4-gas:
9685 @if [ $(current_stage) = stage4 ]; then \
9686 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9687 else \
9688 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9689 $(MAKE) stage4-start; \
9690 fi; \
9691 cd $(HOST_SUBDIR)/gas && \
b3676d82 9692 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9693@endif gas-bootstrap
2a4cbe27 9694
2a4cbe27 9695
a90ef4bf
JM
9696.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9697.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9698maybe-all-stageprofile-gas:
9699maybe-clean-stageprofile-gas:
9700@if gas-bootstrap
9701maybe-all-stageprofile-gas: all-stageprofile-gas
9702all-stageprofile: all-stageprofile-gas
9703TARGET-stageprofile-gas = $(TARGET-gas)
9704all-stageprofile-gas: configure-stageprofile-gas
9705 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9706 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9708 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9709 $(HOST_EXPORTS) \
a90ef4bf
JM
9710 $(POSTSTAGE1_HOST_EXPORTS) \
9711 cd $(HOST_SUBDIR)/gas && \
9712 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9713 CFLAGS="$(STAGEprofile_CFLAGS)" \
9714 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9715 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9716 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9717 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9718 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9719 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9720 TFLAGS="$(STAGEprofile_TFLAGS)" \
9721 $(TARGET-stageprofile-gas)
4fa63067 9722
a90ef4bf
JM
9723maybe-clean-stageprofile-gas: clean-stageprofile-gas
9724clean-stageprofile: clean-stageprofile-gas
9725clean-stageprofile-gas:
9726 @if [ $(current_stage) = stageprofile ]; then \
9727 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9728 else \
9729 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9730 $(MAKE) stageprofile-start; \
9731 fi; \
9732 cd $(HOST_SUBDIR)/gas && \
b3676d82 9733 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9734@endif gas-bootstrap
4fa63067 9735
a7254363 9736
a90ef4bf
JM
9737.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9738.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9739maybe-all-stagefeedback-gas:
9740maybe-clean-stagefeedback-gas:
9741@if gas-bootstrap
9742maybe-all-stagefeedback-gas: all-stagefeedback-gas
9743all-stagefeedback: all-stagefeedback-gas
9744TARGET-stagefeedback-gas = $(TARGET-gas)
9745all-stagefeedback-gas: configure-stagefeedback-gas
9746 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9747 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9749 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9750 $(HOST_EXPORTS) \
9751 $(POSTSTAGE1_HOST_EXPORTS) \
9752 cd $(HOST_SUBDIR)/gas && \
9753 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9754 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9755 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9756 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9757 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9758 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9759 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9760 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9761 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9762 $(TARGET-stagefeedback-gas)
d545f33b 9763
a90ef4bf
JM
9764maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9765clean-stagefeedback: clean-stagefeedback-gas
9766clean-stagefeedback-gas:
9767 @if [ $(current_stage) = stagefeedback ]; then \
9768 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9769 else \
9770 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9771 $(MAKE) stagefeedback-start; \
9772 fi; \
9773 cd $(HOST_SUBDIR)/gas && \
b3676d82 9774 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9775@endif gas-bootstrap
d545f33b 9776
2a4cbe27 9777
a7254363 9778
d545f33b
PB
9779
9780
a90ef4bf
JM
9781.PHONY: check-gas maybe-check-gas
9782maybe-check-gas:
9783@if gas
9784maybe-check-gas: check-gas
2a4cbe27 9785
a90ef4bf 9786check-gas:
0aed8855 9787 @: $(MAKE); $(unstage)
4fa63067 9788 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9790 $(HOST_EXPORTS) \
a90ef4bf 9791 (cd $(HOST_SUBDIR)/gas && \
b00612cc 9792 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 9793
a90ef4bf 9794@endif gas
2a4cbe27 9795
a90ef4bf
JM
9796.PHONY: install-gas maybe-install-gas
9797maybe-install-gas:
9798@if gas
9799maybe-install-gas: install-gas
2a4cbe27 9800
a90ef4bf 9801install-gas: installdirs
0aed8855 9802 @: $(MAKE); $(unstage)
4fa63067 9803 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9805 $(HOST_EXPORTS) \
a90ef4bf 9806 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9807 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9808
a90ef4bf 9809@endif gas
2a4cbe27 9810
a90ef4bf
JM
9811.PHONY: install-strip-gas maybe-install-strip-gas
9812maybe-install-strip-gas:
9813@if gas
9814maybe-install-strip-gas: install-strip-gas
9b980aa1 9815
a90ef4bf 9816install-strip-gas: installdirs
9b980aa1
RW
9817 @: $(MAKE); $(unstage)
9818 @r=`${PWD_COMMAND}`; export r; \
9819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9820 $(HOST_EXPORTS) \
a90ef4bf 9821 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9822 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9823
a90ef4bf 9824@endif gas
9b980aa1 9825
56a8fe78 9826# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9827
a90ef4bf
JM
9828.PHONY: maybe-info-gas info-gas
9829maybe-info-gas:
9830@if gas
9831maybe-info-gas: info-gas
2a4cbe27 9832
a90ef4bf
JM
9833info-gas: \
9834 configure-gas
9835 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9836 r=`${PWD_COMMAND}`; export r; \
9837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9838 $(HOST_EXPORTS) \
b813574b 9839 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9841 done; \
a90ef4bf
JM
9842 echo "Doing info in gas" ; \
9843 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9846 "RANLIB=$${RANLIB}" \
0c24b341 9847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9848 info) \
2a4cbe27
NN
9849 || exit 1
9850
a90ef4bf 9851@endif gas
2a4cbe27 9852
a90ef4bf
JM
9853.PHONY: maybe-dvi-gas dvi-gas
9854maybe-dvi-gas:
9855@if gas
9856maybe-dvi-gas: dvi-gas
2a4cbe27 9857
a90ef4bf
JM
9858dvi-gas: \
9859 configure-gas
9860 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9861 r=`${PWD_COMMAND}`; export r; \
9862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9863 $(HOST_EXPORTS) \
b813574b 9864 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9866 done; \
a90ef4bf
JM
9867 echo "Doing dvi in gas" ; \
9868 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9871 "RANLIB=$${RANLIB}" \
0c24b341 9872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9873 dvi) \
2a4cbe27
NN
9874 || exit 1
9875
a90ef4bf 9876@endif gas
2a4cbe27 9877
a90ef4bf
JM
9878.PHONY: maybe-pdf-gas pdf-gas
9879maybe-pdf-gas:
9880@if gas
9881maybe-pdf-gas: pdf-gas
56a8fe78 9882
a90ef4bf
JM
9883pdf-gas: \
9884 configure-gas
9885 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9886 r=`${PWD_COMMAND}`; export r; \
9887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9888 $(HOST_EXPORTS) \
9889 for flag in $(EXTRA_HOST_FLAGS) ; do \
9890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9891 done; \
a90ef4bf
JM
9892 echo "Doing pdf in gas" ; \
9893 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9896 "RANLIB=$${RANLIB}" \
0c24b341 9897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9898 pdf) \
9899 || exit 1
9900
a90ef4bf 9901@endif gas
56a8fe78 9902
a90ef4bf
JM
9903.PHONY: maybe-html-gas html-gas
9904maybe-html-gas:
9905@if gas
9906maybe-html-gas: html-gas
6d389afc 9907
a90ef4bf
JM
9908html-gas: \
9909 configure-gas
9910 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9911 r=`${PWD_COMMAND}`; export r; \
9912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9913 $(HOST_EXPORTS) \
9914 for flag in $(EXTRA_HOST_FLAGS) ; do \
9915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9916 done; \
a90ef4bf
JM
9917 echo "Doing html in gas" ; \
9918 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9921 "RANLIB=$${RANLIB}" \
0c24b341 9922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9923 html) \
9924 || exit 1
9925
a90ef4bf 9926@endif gas
6d389afc 9927
a90ef4bf
JM
9928.PHONY: maybe-TAGS-gas TAGS-gas
9929maybe-TAGS-gas:
9930@if gas
9931maybe-TAGS-gas: TAGS-gas
2a4cbe27 9932
a90ef4bf
JM
9933TAGS-gas: \
9934 configure-gas
9935 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9936 r=`${PWD_COMMAND}`; export r; \
9937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9938 $(HOST_EXPORTS) \
b813574b 9939 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9941 done; \
a90ef4bf
JM
9942 echo "Doing TAGS in gas" ; \
9943 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9946 "RANLIB=$${RANLIB}" \
0c24b341 9947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9948 TAGS) \
2a4cbe27
NN
9949 || exit 1
9950
a90ef4bf 9951@endif gas
2a4cbe27 9952
a90ef4bf
JM
9953.PHONY: maybe-install-info-gas install-info-gas
9954maybe-install-info-gas:
9955@if gas
9956maybe-install-info-gas: install-info-gas
2a4cbe27 9957
a90ef4bf
JM
9958install-info-gas: \
9959 configure-gas \
9960 info-gas
9961 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9962 r=`${PWD_COMMAND}`; export r; \
9963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9964 $(HOST_EXPORTS) \
b813574b 9965 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9967 done; \
a90ef4bf
JM
9968 echo "Doing install-info in gas" ; \
9969 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9972 "RANLIB=$${RANLIB}" \
0c24b341 9973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9974 install-info) \
2a4cbe27
NN
9975 || exit 1
9976
a90ef4bf 9977@endif gas
2a4cbe27 9978
a90ef4bf
JM
9979.PHONY: maybe-install-pdf-gas install-pdf-gas
9980maybe-install-pdf-gas:
9981@if gas
9982maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 9983
a90ef4bf
JM
9984install-pdf-gas: \
9985 configure-gas \
9986 pdf-gas
9987 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
9988 r=`${PWD_COMMAND}`; export r; \
9989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9990 $(HOST_EXPORTS) \
9991 for flag in $(EXTRA_HOST_FLAGS) ; do \
9992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9993 done; \
a90ef4bf
JM
9994 echo "Doing install-pdf in gas" ; \
9995 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
9996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9998 "RANLIB=$${RANLIB}" \
0c24b341 9999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10000 install-pdf) \
10001 || exit 1
10002
a90ef4bf 10003@endif gas
a3ca38d2 10004
a90ef4bf
JM
10005.PHONY: maybe-install-html-gas install-html-gas
10006maybe-install-html-gas:
10007@if gas
10008maybe-install-html-gas: install-html-gas
108a6f8e 10009
a90ef4bf
JM
10010install-html-gas: \
10011 configure-gas \
10012 html-gas
10013 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10014 r=`${PWD_COMMAND}`; export r; \
10015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10016 $(HOST_EXPORTS) \
10017 for flag in $(EXTRA_HOST_FLAGS) ; do \
10018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10019 done; \
a90ef4bf
JM
10020 echo "Doing install-html in gas" ; \
10021 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10024 "RANLIB=$${RANLIB}" \
0c24b341 10025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10026 install-html) \
10027 || exit 1
10028
a90ef4bf 10029@endif gas
108a6f8e 10030
a90ef4bf
JM
10031.PHONY: maybe-installcheck-gas installcheck-gas
10032maybe-installcheck-gas:
10033@if gas
10034maybe-installcheck-gas: installcheck-gas
2a4cbe27 10035
a90ef4bf
JM
10036installcheck-gas: \
10037 configure-gas
10038 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10039 r=`${PWD_COMMAND}`; export r; \
10040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10041 $(HOST_EXPORTS) \
b813574b 10042 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10044 done; \
a90ef4bf
JM
10045 echo "Doing installcheck in gas" ; \
10046 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10049 "RANLIB=$${RANLIB}" \
0c24b341 10050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10051 installcheck) \
2a4cbe27
NN
10052 || exit 1
10053
a90ef4bf 10054@endif gas
2a4cbe27 10055
a90ef4bf
JM
10056.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10057maybe-mostlyclean-gas:
10058@if gas
10059maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10060
a90ef4bf
JM
10061mostlyclean-gas:
10062 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10063 r=`${PWD_COMMAND}`; export r; \
10064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10065 $(HOST_EXPORTS) \
b813574b 10066 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10068 done; \
a90ef4bf
JM
10069 echo "Doing mostlyclean in gas" ; \
10070 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10073 "RANLIB=$${RANLIB}" \
0c24b341 10074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10075 mostlyclean) \
2a4cbe27
NN
10076 || exit 1
10077
a90ef4bf 10078@endif gas
2a4cbe27 10079
a90ef4bf
JM
10080.PHONY: maybe-clean-gas clean-gas
10081maybe-clean-gas:
10082@if gas
10083maybe-clean-gas: clean-gas
2a4cbe27 10084
a90ef4bf
JM
10085clean-gas:
10086 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10087 r=`${PWD_COMMAND}`; export r; \
10088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10089 $(HOST_EXPORTS) \
b813574b 10090 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10092 done; \
a90ef4bf
JM
10093 echo "Doing clean in gas" ; \
10094 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10097 "RANLIB=$${RANLIB}" \
0c24b341 10098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10099 clean) \
2a4cbe27
NN
10100 || exit 1
10101
a90ef4bf 10102@endif gas
2a4cbe27 10103
a90ef4bf
JM
10104.PHONY: maybe-distclean-gas distclean-gas
10105maybe-distclean-gas:
10106@if gas
10107maybe-distclean-gas: distclean-gas
2a4cbe27 10108
a90ef4bf
JM
10109distclean-gas:
10110 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10111 r=`${PWD_COMMAND}`; export r; \
10112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10113 $(HOST_EXPORTS) \
b813574b 10114 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10116 done; \
a90ef4bf
JM
10117 echo "Doing distclean in gas" ; \
10118 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10121 "RANLIB=$${RANLIB}" \
0c24b341 10122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10123 distclean) \
2a4cbe27
NN
10124 || exit 1
10125
a90ef4bf 10126@endif gas
2a4cbe27 10127
a90ef4bf
JM
10128.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10129maybe-maintainer-clean-gas:
10130@if gas
10131maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10132
a90ef4bf
JM
10133maintainer-clean-gas:
10134 @[ -f ./gas/Makefile ] || exit 0; \
10135 r=`${PWD_COMMAND}`; export r; \
b40e3958 10136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10137 $(HOST_EXPORTS) \
b813574b 10138 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10140 done; \
a90ef4bf
JM
10141 echo "Doing maintainer-clean in gas" ; \
10142 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10145 "RANLIB=$${RANLIB}" \
0c24b341 10146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10147 maintainer-clean) \
2a4cbe27
NN
10148 || exit 1
10149
a90ef4bf 10150@endif gas
2a4cbe27 10151
2a4cbe27 10152
a7254363 10153
a90ef4bf
JM
10154.PHONY: configure-gcc maybe-configure-gcc
10155maybe-configure-gcc:
4f0ef2d8 10156@if gcc-bootstrap
a90ef4bf 10157configure-gcc: stage_current
4f0ef2d8 10158@endif gcc-bootstrap
a90ef4bf
JM
10159@if gcc
10160maybe-configure-gcc: configure-gcc
10161configure-gcc:
c52c6897 10162 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10164 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10165 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
1f53ca9a 10166 $(HOST_EXPORTS) \
a90ef4bf
JM
10167 echo Configuring in $(HOST_SUBDIR)/gcc; \
10168 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10169 case $(srcdir) in \
b00612cc 10170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10171 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10173 esac; \
1b6c0831
L
10174 module_srcdir=gcc; \
10175 $(SHELL) \
10176 $$s/$$module_srcdir/configure \
10177 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10178 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10179 --target=${target_alias} \
4fa63067 10180 || exit 1
a90ef4bf 10181@endif gcc
a7254363 10182
d545f33b
PB
10183
10184
a90ef4bf
JM
10185.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10186maybe-configure-stage1-gcc:
4f0ef2d8 10187@if gcc-bootstrap
a90ef4bf
JM
10188maybe-configure-stage1-gcc: configure-stage1-gcc
10189configure-stage1-gcc:
10190 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10191 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10192 @r=`${PWD_COMMAND}`; export r; \
10193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10194 TFLAGS="$(STAGE1_TFLAGS)"; \
10195 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10196 $(HOST_EXPORTS) \
10197 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10198 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10199 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
10200 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
10201 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10202 cd $(HOST_SUBDIR)/gcc || exit 1; \
10203 case $(srcdir) in \
10204 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10205 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10206 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10207 esac; \
1b6c0831
L
10208 module_srcdir=gcc; \
10209 $(SHELL) $$s/$$module_srcdir/configure \
10210 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10211 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10212 --target=${target_alias} \
10213 \
a90ef4bf
JM
10214 $(STAGE1_CONFIGURE_FLAGS)
10215@endif gcc-bootstrap
4fa63067 10216
a90ef4bf
JM
10217.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10218maybe-configure-stage2-gcc:
10219@if gcc-bootstrap
10220maybe-configure-stage2-gcc: configure-stage2-gcc
10221configure-stage2-gcc:
10222 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10223 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10224 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10226 TFLAGS="$(STAGE2_TFLAGS)"; \
10227 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10228 $(HOST_EXPORTS) \
a90ef4bf
JM
10229 $(POSTSTAGE1_HOST_EXPORTS) \
10230 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10231 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10232 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
10233 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \
10234 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10235 cd $(HOST_SUBDIR)/gcc || exit 1; \
10236 case $(srcdir) in \
10237 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10238 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10239 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10240 esac; \
1b6c0831
L
10241 module_srcdir=gcc; \
10242 $(SHELL) $$s/$$module_srcdir/configure \
10243 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10244 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10245 --target=${target_alias} \
10246 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10247 $(STAGE2_CONFIGURE_FLAGS)
10248@endif gcc-bootstrap
9b980aa1 10249
a90ef4bf
JM
10250.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10251maybe-configure-stage3-gcc:
10252@if gcc-bootstrap
10253maybe-configure-stage3-gcc: configure-stage3-gcc
10254configure-stage3-gcc:
10255 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10256 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10257 @r=`${PWD_COMMAND}`; export r; \
10258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10259 TFLAGS="$(STAGE3_TFLAGS)"; \
10260 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10261 $(HOST_EXPORTS) \
a90ef4bf
JM
10262 $(POSTSTAGE1_HOST_EXPORTS) \
10263 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10264 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10265 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
10266 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
10267 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10268 cd $(HOST_SUBDIR)/gcc || exit 1; \
10269 case $(srcdir) in \
10270 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10271 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10272 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10273 esac; \
1b6c0831
L
10274 module_srcdir=gcc; \
10275 $(SHELL) $$s/$$module_srcdir/configure \
10276 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10277 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10278 --target=${target_alias} \
10279 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10280 $(STAGE3_CONFIGURE_FLAGS)
10281@endif gcc-bootstrap
4fa63067 10282
a90ef4bf
JM
10283.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10284maybe-configure-stage4-gcc:
10285@if gcc-bootstrap
10286maybe-configure-stage4-gcc: configure-stage4-gcc
10287configure-stage4-gcc:
10288 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10289 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10290 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10292 TFLAGS="$(STAGE4_TFLAGS)"; \
10293 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10294 $(HOST_EXPORTS) \
a90ef4bf
JM
10295 $(POSTSTAGE1_HOST_EXPORTS) \
10296 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10297 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10298 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
10299 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
10300 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10301 cd $(HOST_SUBDIR)/gcc || exit 1; \
10302 case $(srcdir) in \
10303 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10304 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10305 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10306 esac; \
1b6c0831
L
10307 module_srcdir=gcc; \
10308 $(SHELL) $$s/$$module_srcdir/configure \
10309 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10310 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10311 --target=${target_alias} \
10312 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10313 $(STAGE4_CONFIGURE_FLAGS)
10314@endif gcc-bootstrap
2a4cbe27 10315
a90ef4bf
JM
10316.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10317maybe-configure-stageprofile-gcc:
10318@if gcc-bootstrap
10319maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10320configure-stageprofile-gcc:
10321 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10322 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10323 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10325 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10326 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10327 $(HOST_EXPORTS) \
a90ef4bf
JM
10328 $(POSTSTAGE1_HOST_EXPORTS) \
10329 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10330 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10331 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
10332 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
10333 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10334 cd $(HOST_SUBDIR)/gcc || exit 1; \
10335 case $(srcdir) in \
10336 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10337 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10338 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10339 esac; \
1b6c0831
L
10340 module_srcdir=gcc; \
10341 $(SHELL) $$s/$$module_srcdir/configure \
10342 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10343 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10344 --target=${target_alias} \
10345 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10346 $(STAGEprofile_CONFIGURE_FLAGS)
10347@endif gcc-bootstrap
56a8fe78 10348
a90ef4bf
JM
10349.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10350maybe-configure-stagefeedback-gcc:
10351@if gcc-bootstrap
10352maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10353configure-stagefeedback-gcc:
10354 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10355 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10356 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10358 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10359 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10360 $(HOST_EXPORTS) \
a90ef4bf
JM
10361 $(POSTSTAGE1_HOST_EXPORTS) \
10362 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10363 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10364 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
10365 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
10366 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10367 cd $(HOST_SUBDIR)/gcc || exit 1; \
10368 case $(srcdir) in \
10369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10370 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10372 esac; \
1b6c0831
L
10373 module_srcdir=gcc; \
10374 $(SHELL) $$s/$$module_srcdir/configure \
10375 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10376 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10377 --target=${target_alias} \
10378 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10379 $(STAGEfeedback_CONFIGURE_FLAGS)
10380@endif gcc-bootstrap
56a8fe78 10381
2a4cbe27 10382
2a4cbe27
NN
10383
10384
2a4cbe27 10385
a90ef4bf
JM
10386.PHONY: all-gcc maybe-all-gcc
10387maybe-all-gcc:
10388@if gcc-bootstrap
10389all-gcc: stage_current
10390@endif gcc-bootstrap
10391@if gcc
10392TARGET-gcc=all
10393maybe-all-gcc: all-gcc
10394all-gcc: configure-gcc
10395 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10397 $(HOST_EXPORTS) \
10398 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10399 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10400 $(TARGET-gcc))
10401@endif gcc
6d389afc 10402
6d389afc 10403
6d389afc 10404
a90ef4bf
JM
10405.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10406.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10407maybe-all-stage1-gcc:
10408maybe-clean-stage1-gcc:
10409@if gcc-bootstrap
10410maybe-all-stage1-gcc: all-stage1-gcc
10411all-stage1: all-stage1-gcc
10412TARGET-stage1-gcc = $(TARGET-gcc)
10413all-stage1-gcc: configure-stage1-gcc
10414 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10415 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10417 TFLAGS="$(STAGE1_TFLAGS)"; \
10418 $(HOST_EXPORTS) \
10419 cd $(HOST_SUBDIR)/gcc && \
10420 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10421 CFLAGS="$(STAGE1_CFLAGS)" \
10422 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10423 LIBCFLAGS="$(LIBCFLAGS)" \
10424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10427 $(EXTRA_HOST_FLAGS) \
10428 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10429 TFLAGS="$(STAGE1_TFLAGS)" \
10430 $(TARGET-stage1-gcc)
2a4cbe27 10431
a90ef4bf
JM
10432maybe-clean-stage1-gcc: clean-stage1-gcc
10433clean-stage1: clean-stage1-gcc
10434clean-stage1-gcc:
10435 @if [ $(current_stage) = stage1 ]; then \
10436 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10437 else \
10438 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10439 $(MAKE) stage1-start; \
10440 fi; \
10441 cd $(HOST_SUBDIR)/gcc && \
10442 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10443 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10444@endif gcc-bootstrap
2a4cbe27 10445
a3ca38d2 10446
a90ef4bf
JM
10447.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10448.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10449maybe-all-stage2-gcc:
10450maybe-clean-stage2-gcc:
10451@if gcc-bootstrap
10452maybe-all-stage2-gcc: all-stage2-gcc
10453all-stage2: all-stage2-gcc
10454TARGET-stage2-gcc = $(TARGET-gcc)
10455all-stage2-gcc: configure-stage2-gcc
10456 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10457 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10459 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10460 $(HOST_EXPORTS) \
a90ef4bf
JM
10461 $(POSTSTAGE1_HOST_EXPORTS) \
10462 cd $(HOST_SUBDIR)/gcc && \
10463 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10464 CFLAGS="$(STAGE2_CFLAGS)" \
10465 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10466 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10467 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10468 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10469 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10470 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10471 TFLAGS="$(STAGE2_TFLAGS)" \
10472 $(TARGET-stage2-gcc)
a3ca38d2 10473
a90ef4bf
JM
10474maybe-clean-stage2-gcc: clean-stage2-gcc
10475clean-stage2: clean-stage2-gcc
10476clean-stage2-gcc:
10477 @if [ $(current_stage) = stage2 ]; then \
10478 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10479 else \
10480 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10481 $(MAKE) stage2-start; \
10482 fi; \
10483 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10484 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10485@endif gcc-bootstrap
a3ca38d2 10486
108a6f8e 10487
a90ef4bf
JM
10488.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10489.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10490maybe-all-stage3-gcc:
10491maybe-clean-stage3-gcc:
10492@if gcc-bootstrap
10493maybe-all-stage3-gcc: all-stage3-gcc
10494all-stage3: all-stage3-gcc
10495TARGET-stage3-gcc = $(TARGET-gcc)
10496all-stage3-gcc: configure-stage3-gcc
10497 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10498 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10500 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10501 $(HOST_EXPORTS) \
a90ef4bf
JM
10502 $(POSTSTAGE1_HOST_EXPORTS) \
10503 cd $(HOST_SUBDIR)/gcc && \
10504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10505 CFLAGS="$(STAGE3_CFLAGS)" \
10506 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10507 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10511 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10512 TFLAGS="$(STAGE3_TFLAGS)" \
10513 $(TARGET-stage3-gcc)
108a6f8e 10514
a90ef4bf
JM
10515maybe-clean-stage3-gcc: clean-stage3-gcc
10516clean-stage3: clean-stage3-gcc
10517clean-stage3-gcc:
10518 @if [ $(current_stage) = stage3 ]; then \
10519 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10520 else \
10521 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10522 $(MAKE) stage3-start; \
10523 fi; \
10524 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10525 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10526@endif gcc-bootstrap
108a6f8e 10527
2a4cbe27 10528
a90ef4bf
JM
10529.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10530.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10531maybe-all-stage4-gcc:
10532maybe-clean-stage4-gcc:
10533@if gcc-bootstrap
10534maybe-all-stage4-gcc: all-stage4-gcc
10535all-stage4: all-stage4-gcc
10536TARGET-stage4-gcc = $(TARGET-gcc)
10537all-stage4-gcc: configure-stage4-gcc
10538 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10539 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10541 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10542 $(HOST_EXPORTS) \
a90ef4bf
JM
10543 $(POSTSTAGE1_HOST_EXPORTS) \
10544 cd $(HOST_SUBDIR)/gcc && \
10545 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10546 CFLAGS="$(STAGE4_CFLAGS)" \
10547 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10548 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10549 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10550 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10551 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10552 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10553 TFLAGS="$(STAGE4_TFLAGS)" \
10554 $(TARGET-stage4-gcc)
2a4cbe27 10555
a90ef4bf
JM
10556maybe-clean-stage4-gcc: clean-stage4-gcc
10557clean-stage4: clean-stage4-gcc
10558clean-stage4-gcc:
10559 @if [ $(current_stage) = stage4 ]; then \
10560 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10561 else \
10562 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10563 $(MAKE) stage4-start; \
10564 fi; \
10565 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10566 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10567@endif gcc-bootstrap
2a4cbe27 10568
a2592b1b 10569
a90ef4bf
JM
10570.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10571.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10572maybe-all-stageprofile-gcc:
10573maybe-clean-stageprofile-gcc:
10574@if gcc-bootstrap
10575maybe-all-stageprofile-gcc: all-stageprofile-gcc
10576all-stageprofile: all-stageprofile-gcc
10577TARGET-stageprofile-gcc = $(TARGET-gcc)
10578all-stageprofile-gcc: configure-stageprofile-gcc
10579 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10580 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10582 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10583 $(HOST_EXPORTS) \
a90ef4bf
JM
10584 $(POSTSTAGE1_HOST_EXPORTS) \
10585 cd $(HOST_SUBDIR)/gcc && \
10586 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10587 CFLAGS="$(STAGEprofile_CFLAGS)" \
10588 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10589 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10590 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10591 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10592 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10593 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10594 TFLAGS="$(STAGEprofile_TFLAGS)" \
10595 $(TARGET-stageprofile-gcc)
2a4cbe27 10596
a90ef4bf
JM
10597maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10598clean-stageprofile: clean-stageprofile-gcc
10599clean-stageprofile-gcc:
10600 @if [ $(current_stage) = stageprofile ]; then \
10601 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10602 else \
10603 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10604 $(MAKE) stageprofile-start; \
10605 fi; \
10606 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10607 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10608@endif gcc-bootstrap
2a4cbe27 10609
a7254363 10610
a90ef4bf
JM
10611.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10612.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10613maybe-all-stagefeedback-gcc:
10614maybe-clean-stagefeedback-gcc:
4f0ef2d8 10615@if gcc-bootstrap
a90ef4bf
JM
10616maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10617all-stagefeedback: all-stagefeedback-gcc
10618TARGET-stagefeedback-gcc = $(TARGET-gcc)
10619all-stagefeedback-gcc: configure-stagefeedback-gcc
10620 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10621 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10623 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10624 $(HOST_EXPORTS) \
10625 $(POSTSTAGE1_HOST_EXPORTS) \
10626 cd $(HOST_SUBDIR)/gcc && \
10627 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10628 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10629 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10630 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10631 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10632 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10633 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10634 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10635 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10636 $(TARGET-stagefeedback-gcc)
d545f33b 10637
a90ef4bf
JM
10638maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10639clean-stagefeedback: clean-stagefeedback-gcc
10640clean-stagefeedback-gcc:
10641 @if [ $(current_stage) = stagefeedback ]; then \
10642 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10643 else \
10644 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10645 $(MAKE) stagefeedback-start; \
10646 fi; \
10647 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10648 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10649@endif gcc-bootstrap
4fa63067 10650
a7254363 10651
d545f33b
PB
10652
10653
4fa63067 10654
a90ef4bf
JM
10655.PHONY: check-gcc maybe-check-gcc
10656maybe-check-gcc:
10657@if gcc
10658maybe-check-gcc: check-gcc
10659
10660check-gcc:
0aed8855 10661 @: $(MAKE); $(unstage)
4fa63067
NN
10662 @r=`${PWD_COMMAND}`; export r; \
10663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10664 $(HOST_EXPORTS) \
a90ef4bf
JM
10665 (cd $(HOST_SUBDIR)/gcc && \
10666 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
4fa63067 10667
a90ef4bf 10668@endif gcc
4fa63067 10669
a90ef4bf
JM
10670.PHONY: install-gcc maybe-install-gcc
10671maybe-install-gcc:
10672@if gcc
10673maybe-install-gcc: install-gcc
4fa63067 10674
a90ef4bf 10675install-gcc: installdirs
0aed8855 10676 @: $(MAKE); $(unstage)
4fa63067
NN
10677 @r=`${PWD_COMMAND}`; export r; \
10678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10679 $(HOST_EXPORTS) \
a90ef4bf
JM
10680 (cd $(HOST_SUBDIR)/gcc && \
10681 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10682
a90ef4bf 10683@endif gcc
4fa63067 10684
a90ef4bf
JM
10685.PHONY: install-strip-gcc maybe-install-strip-gcc
10686maybe-install-strip-gcc:
10687@if gcc
10688maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10689
a90ef4bf 10690install-strip-gcc: installdirs
9b980aa1
RW
10691 @: $(MAKE); $(unstage)
10692 @r=`${PWD_COMMAND}`; export r; \
10693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10694 $(HOST_EXPORTS) \
a90ef4bf
JM
10695 (cd $(HOST_SUBDIR)/gcc && \
10696 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10697
a90ef4bf 10698@endif gcc
9b980aa1 10699
56a8fe78 10700# Other targets (info, dvi, pdf, etc.)
4fa63067 10701
a90ef4bf
JM
10702.PHONY: maybe-info-gcc info-gcc
10703maybe-info-gcc:
10704@if gcc
10705maybe-info-gcc: info-gcc
4fa63067 10706
a90ef4bf
JM
10707info-gcc: \
10708 configure-gcc
10709 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10710 r=`${PWD_COMMAND}`; export r; \
10711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10712 $(HOST_EXPORTS) \
a90ef4bf 10713 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10715 done; \
a90ef4bf
JM
10716 echo "Doing info in gcc" ; \
10717 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10720 "RANLIB=$${RANLIB}" \
0c24b341 10721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10722 info) \
2a4cbe27
NN
10723 || exit 1
10724
a90ef4bf 10725@endif gcc
2a4cbe27 10726
a90ef4bf
JM
10727.PHONY: maybe-dvi-gcc dvi-gcc
10728maybe-dvi-gcc:
10729@if gcc
10730maybe-dvi-gcc: dvi-gcc
2a4cbe27 10731
a90ef4bf
JM
10732dvi-gcc: \
10733 configure-gcc
10734 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10735 r=`${PWD_COMMAND}`; export r; \
10736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10737 $(HOST_EXPORTS) \
a90ef4bf 10738 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10740 done; \
a90ef4bf
JM
10741 echo "Doing dvi in gcc" ; \
10742 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10745 "RANLIB=$${RANLIB}" \
0c24b341 10746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10747 dvi) \
2a4cbe27
NN
10748 || exit 1
10749
a90ef4bf 10750@endif gcc
2a4cbe27 10751
a90ef4bf
JM
10752.PHONY: maybe-pdf-gcc pdf-gcc
10753maybe-pdf-gcc:
10754@if gcc
10755maybe-pdf-gcc: pdf-gcc
56a8fe78 10756
a90ef4bf
JM
10757pdf-gcc: \
10758 configure-gcc
10759 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10760 r=`${PWD_COMMAND}`; export r; \
10761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10762 $(HOST_EXPORTS) \
a90ef4bf 10763 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10765 done; \
a90ef4bf
JM
10766 echo "Doing pdf in gcc" ; \
10767 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10770 "RANLIB=$${RANLIB}" \
0c24b341 10771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10772 pdf) \
10773 || exit 1
10774
a90ef4bf 10775@endif gcc
56a8fe78 10776
a90ef4bf
JM
10777.PHONY: maybe-html-gcc html-gcc
10778maybe-html-gcc:
10779@if gcc
10780maybe-html-gcc: html-gcc
6d389afc 10781
a90ef4bf
JM
10782html-gcc: \
10783 configure-gcc
10784 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10785 r=`${PWD_COMMAND}`; export r; \
10786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10787 $(HOST_EXPORTS) \
a90ef4bf 10788 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10790 done; \
a90ef4bf
JM
10791 echo "Doing html in gcc" ; \
10792 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10795 "RANLIB=$${RANLIB}" \
0c24b341 10796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10797 html) \
10798 || exit 1
10799
a90ef4bf 10800@endif gcc
6d389afc 10801
a90ef4bf
JM
10802.PHONY: maybe-TAGS-gcc TAGS-gcc
10803maybe-TAGS-gcc:
10804@if gcc
10805maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10806
a90ef4bf
JM
10807TAGS-gcc: \
10808 configure-gcc
10809 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10810 r=`${PWD_COMMAND}`; export r; \
10811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10812 $(HOST_EXPORTS) \
a90ef4bf 10813 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10815 done; \
a90ef4bf
JM
10816 echo "Doing TAGS in gcc" ; \
10817 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10820 "RANLIB=$${RANLIB}" \
0c24b341 10821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10822 TAGS) \
2a4cbe27
NN
10823 || exit 1
10824
a90ef4bf 10825@endif gcc
2a4cbe27 10826
a90ef4bf
JM
10827.PHONY: maybe-install-info-gcc install-info-gcc
10828maybe-install-info-gcc:
10829@if gcc
10830maybe-install-info-gcc: install-info-gcc
2a4cbe27 10831
a90ef4bf
JM
10832install-info-gcc: \
10833 configure-gcc \
10834 info-gcc
10835 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10836 r=`${PWD_COMMAND}`; export r; \
10837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10838 $(HOST_EXPORTS) \
a90ef4bf 10839 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10841 done; \
a90ef4bf
JM
10842 echo "Doing install-info in gcc" ; \
10843 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10846 "RANLIB=$${RANLIB}" \
0c24b341 10847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10848 install-info) \
2a4cbe27
NN
10849 || exit 1
10850
a90ef4bf 10851@endif gcc
2a4cbe27 10852
a90ef4bf
JM
10853.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10854maybe-install-pdf-gcc:
10855@if gcc
10856maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10857
a90ef4bf
JM
10858install-pdf-gcc: \
10859 configure-gcc \
10860 pdf-gcc
10861 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10862 r=`${PWD_COMMAND}`; export r; \
10863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10864 $(HOST_EXPORTS) \
a90ef4bf 10865 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10867 done; \
a90ef4bf
JM
10868 echo "Doing install-pdf in gcc" ; \
10869 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10872 "RANLIB=$${RANLIB}" \
0c24b341 10873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10874 install-pdf) \
10875 || exit 1
10876
a90ef4bf 10877@endif gcc
a3ca38d2 10878
a90ef4bf
JM
10879.PHONY: maybe-install-html-gcc install-html-gcc
10880maybe-install-html-gcc:
10881@if gcc
10882maybe-install-html-gcc: install-html-gcc
108a6f8e 10883
a90ef4bf
JM
10884install-html-gcc: \
10885 configure-gcc \
10886 html-gcc
10887 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10888 r=`${PWD_COMMAND}`; export r; \
10889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10890 $(HOST_EXPORTS) \
a90ef4bf 10891 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10893 done; \
a90ef4bf
JM
10894 echo "Doing install-html in gcc" ; \
10895 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10898 "RANLIB=$${RANLIB}" \
0c24b341 10899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10900 install-html) \
10901 || exit 1
10902
a90ef4bf 10903@endif gcc
108a6f8e 10904
a90ef4bf
JM
10905.PHONY: maybe-installcheck-gcc installcheck-gcc
10906maybe-installcheck-gcc:
10907@if gcc
10908maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10909
a90ef4bf
JM
10910installcheck-gcc: \
10911 configure-gcc
10912 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10913 r=`${PWD_COMMAND}`; export r; \
10914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10915 $(HOST_EXPORTS) \
a90ef4bf 10916 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10918 done; \
a90ef4bf
JM
10919 echo "Doing installcheck in gcc" ; \
10920 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10923 "RANLIB=$${RANLIB}" \
0c24b341 10924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10925 installcheck) \
2a4cbe27
NN
10926 || exit 1
10927
a90ef4bf 10928@endif gcc
2a4cbe27 10929
a90ef4bf
JM
10930.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10931maybe-mostlyclean-gcc:
10932@if gcc
10933maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 10934
a90ef4bf
JM
10935mostlyclean-gcc:
10936 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10937 r=`${PWD_COMMAND}`; export r; \
10938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10939 $(HOST_EXPORTS) \
a90ef4bf 10940 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10942 done; \
a90ef4bf
JM
10943 echo "Doing mostlyclean in gcc" ; \
10944 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10947 "RANLIB=$${RANLIB}" \
0c24b341 10948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10949 mostlyclean) \
2a4cbe27
NN
10950 || exit 1
10951
a90ef4bf 10952@endif gcc
2a4cbe27 10953
a90ef4bf
JM
10954.PHONY: maybe-clean-gcc clean-gcc
10955maybe-clean-gcc:
10956@if gcc
10957maybe-clean-gcc: clean-gcc
2a4cbe27 10958
a90ef4bf
JM
10959clean-gcc:
10960 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10961 r=`${PWD_COMMAND}`; export r; \
10962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10963 $(HOST_EXPORTS) \
a90ef4bf 10964 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10966 done; \
a90ef4bf
JM
10967 echo "Doing clean in gcc" ; \
10968 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10971 "RANLIB=$${RANLIB}" \
0c24b341 10972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10973 clean) \
2a4cbe27
NN
10974 || exit 1
10975
a90ef4bf 10976@endif gcc
2a4cbe27 10977
a90ef4bf
JM
10978.PHONY: maybe-distclean-gcc distclean-gcc
10979maybe-distclean-gcc:
10980@if gcc
10981maybe-distclean-gcc: distclean-gcc
2a4cbe27 10982
a90ef4bf
JM
10983distclean-gcc:
10984 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10985 r=`${PWD_COMMAND}`; export r; \
10986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10987 $(HOST_EXPORTS) \
a90ef4bf 10988 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10990 done; \
a90ef4bf
JM
10991 echo "Doing distclean in gcc" ; \
10992 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10995 "RANLIB=$${RANLIB}" \
0c24b341 10996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10997 distclean) \
2a4cbe27
NN
10998 || exit 1
10999
a90ef4bf 11000@endif gcc
2a4cbe27 11001
a90ef4bf
JM
11002.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11003maybe-maintainer-clean-gcc:
11004@if gcc
11005maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11006
a90ef4bf
JM
11007maintainer-clean-gcc:
11008 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11009 r=`${PWD_COMMAND}`; export r; \
11010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11011 $(HOST_EXPORTS) \
a90ef4bf 11012 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11014 done; \
a90ef4bf
JM
11015 echo "Doing maintainer-clean in gcc" ; \
11016 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11019 "RANLIB=$${RANLIB}" \
0c24b341 11020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11021 maintainer-clean) \
2a4cbe27
NN
11022 || exit 1
11023
a90ef4bf 11024@endif gcc
2a4cbe27 11025
2a4cbe27 11026
a7254363 11027
a90ef4bf
JM
11028.PHONY: configure-gmp maybe-configure-gmp
11029maybe-configure-gmp:
4f0ef2d8 11030@if gcc-bootstrap
a90ef4bf 11031configure-gmp: stage_current
4f0ef2d8 11032@endif gcc-bootstrap
a90ef4bf
JM
11033@if gmp
11034maybe-configure-gmp: configure-gmp
11035configure-gmp:
c52c6897 11036 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11038 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11039 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
1f53ca9a 11040 $(HOST_EXPORTS) \
a90ef4bf
JM
11041 echo Configuring in $(HOST_SUBDIR)/gmp; \
11042 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11043 case $(srcdir) in \
b00612cc 11044 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11045 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11046 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11047 esac; \
1b6c0831
L
11048 module_srcdir=gmp; \
11049 $(SHELL) \
11050 $$s/$$module_srcdir/configure \
11051 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11052 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11053 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11054 || exit 1
a90ef4bf 11055@endif gmp
a7254363 11056
d545f33b
PB
11057
11058
a90ef4bf
JM
11059.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11060maybe-configure-stage1-gmp:
11061@if gmp-bootstrap
11062maybe-configure-stage1-gmp: configure-stage1-gmp
11063configure-stage1-gmp:
11064 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11065 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11066 @r=`${PWD_COMMAND}`; export r; \
11067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11068 TFLAGS="$(STAGE1_TFLAGS)"; \
11069 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11070 $(HOST_EXPORTS) \
11071 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11072 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11073 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
11074 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp ; \
11075 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11076 cd $(HOST_SUBDIR)/gmp || exit 1; \
11077 case $(srcdir) in \
11078 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11079 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11080 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11081 esac; \
1b6c0831
L
11082 module_srcdir=gmp; \
11083 $(SHELL) $$s/$$module_srcdir/configure \
11084 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11085 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11086 --target=none-${host_vendor}-${host_os} \
11087 \
a90ef4bf 11088 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11089 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11090@endif gmp-bootstrap
4fa63067 11091
a90ef4bf
JM
11092.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11093maybe-configure-stage2-gmp:
11094@if gmp-bootstrap
11095maybe-configure-stage2-gmp: configure-stage2-gmp
11096configure-stage2-gmp:
11097 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11098 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11099 @r=`${PWD_COMMAND}`; export r; \
11100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11101 TFLAGS="$(STAGE2_TFLAGS)"; \
11102 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11103 $(HOST_EXPORTS) \
11104 $(POSTSTAGE1_HOST_EXPORTS) \
11105 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11106 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11107 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
11108 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp ; \
11109 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11110 cd $(HOST_SUBDIR)/gmp || exit 1; \
11111 case $(srcdir) in \
11112 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11113 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11114 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11115 esac; \
1b6c0831
L
11116 module_srcdir=gmp; \
11117 $(SHELL) $$s/$$module_srcdir/configure \
11118 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11119 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11120 --target=none-${host_vendor}-${host_os} \
11121 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11122 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11123 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11124@endif gmp-bootstrap
4fa63067 11125
a90ef4bf
JM
11126.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11127maybe-configure-stage3-gmp:
11128@if gmp-bootstrap
11129maybe-configure-stage3-gmp: configure-stage3-gmp
11130configure-stage3-gmp:
11131 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11132 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11133 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11135 TFLAGS="$(STAGE3_TFLAGS)"; \
11136 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11137 $(HOST_EXPORTS) \
a90ef4bf
JM
11138 $(POSTSTAGE1_HOST_EXPORTS) \
11139 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11140 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11141 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
11142 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp ; \
11143 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11144 cd $(HOST_SUBDIR)/gmp || exit 1; \
11145 case $(srcdir) in \
11146 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11147 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11148 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11149 esac; \
1b6c0831
L
11150 module_srcdir=gmp; \
11151 $(SHELL) $$s/$$module_srcdir/configure \
11152 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11153 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11154 --target=none-${host_vendor}-${host_os} \
11155 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11156 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11157 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11158@endif gmp-bootstrap
2a4cbe27 11159
a90ef4bf
JM
11160.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11161maybe-configure-stage4-gmp:
11162@if gmp-bootstrap
11163maybe-configure-stage4-gmp: configure-stage4-gmp
11164configure-stage4-gmp:
11165 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11166 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11167 @r=`${PWD_COMMAND}`; export r; \
11168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11169 TFLAGS="$(STAGE4_TFLAGS)"; \
11170 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11171 $(HOST_EXPORTS) \
11172 $(POSTSTAGE1_HOST_EXPORTS) \
11173 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11174 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11175 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
11176 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp ; \
11177 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11178 cd $(HOST_SUBDIR)/gmp || exit 1; \
11179 case $(srcdir) in \
11180 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11181 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11182 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11183 esac; \
1b6c0831
L
11184 module_srcdir=gmp; \
11185 $(SHELL) $$s/$$module_srcdir/configure \
11186 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11187 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11188 --target=none-${host_vendor}-${host_os} \
11189 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11190 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11191 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11192@endif gmp-bootstrap
2a4cbe27 11193
a90ef4bf
JM
11194.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11195maybe-configure-stageprofile-gmp:
11196@if gmp-bootstrap
11197maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11198configure-stageprofile-gmp:
11199 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11200 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11201 @r=`${PWD_COMMAND}`; export r; \
11202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11203 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11204 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11205 $(HOST_EXPORTS) \
11206 $(POSTSTAGE1_HOST_EXPORTS) \
11207 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11208 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11209 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
11210 echo Configuring stage profile in $(HOST_SUBDIR)/gmp ; \
11211 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11212 cd $(HOST_SUBDIR)/gmp || exit 1; \
11213 case $(srcdir) in \
11214 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11215 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11216 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11217 esac; \
1b6c0831
L
11218 module_srcdir=gmp; \
11219 $(SHELL) $$s/$$module_srcdir/configure \
11220 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11221 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11222 --target=none-${host_vendor}-${host_os} \
11223 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11224 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11225 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11226@endif gmp-bootstrap
9b980aa1 11227
a90ef4bf
JM
11228.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11229maybe-configure-stagefeedback-gmp:
11230@if gmp-bootstrap
11231maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11232configure-stagefeedback-gmp:
11233 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11234 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11235 @r=`${PWD_COMMAND}`; export r; \
11236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11237 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11238 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11239 $(HOST_EXPORTS) \
a90ef4bf
JM
11240 $(POSTSTAGE1_HOST_EXPORTS) \
11241 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11242 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11243 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
11244 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp ; \
11245 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11246 cd $(HOST_SUBDIR)/gmp || exit 1; \
11247 case $(srcdir) in \
11248 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11249 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11250 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11251 esac; \
1b6c0831
L
11252 module_srcdir=gmp; \
11253 $(SHELL) $$s/$$module_srcdir/configure \
11254 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11255 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11256 --target=none-${host_vendor}-${host_os} \
11257 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11258 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11259 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11260@endif gmp-bootstrap
9b980aa1 11261
9b980aa1 11262
2a4cbe27 11263
4fa63067 11264
a90ef4bf
JM
11265
11266.PHONY: all-gmp maybe-all-gmp
11267maybe-all-gmp:
11268@if gcc-bootstrap
11269all-gmp: stage_current
11270@endif gcc-bootstrap
11271@if gmp
11272TARGET-gmp=all
11273maybe-all-gmp: all-gmp
11274all-gmp: configure-gmp
11275 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11277 $(HOST_EXPORTS) \
11278 (cd $(HOST_SUBDIR)/gmp && \
b3676d82 11279 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11280 $(TARGET-gmp))
11281@endif gmp
2a4cbe27
NN
11282
11283
2a4cbe27 11284
a90ef4bf
JM
11285.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11286.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11287maybe-all-stage1-gmp:
11288maybe-clean-stage1-gmp:
11289@if gmp-bootstrap
11290maybe-all-stage1-gmp: all-stage1-gmp
11291all-stage1: all-stage1-gmp
11292TARGET-stage1-gmp = $(TARGET-gmp)
11293all-stage1-gmp: configure-stage1-gmp
11294 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11295 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11297 TFLAGS="$(STAGE1_TFLAGS)"; \
11298 $(HOST_EXPORTS) \
11299 cd $(HOST_SUBDIR)/gmp && \
11300 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11301 CFLAGS="$(STAGE1_CFLAGS)" \
11302 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11303 LIBCFLAGS="$(LIBCFLAGS)" \
11304 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11305 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11306 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
11307 $(EXTRA_HOST_FLAGS) \
11308 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11309 TFLAGS="$(STAGE1_TFLAGS)" \
11310 $(TARGET-stage1-gmp)
2a4cbe27 11311
a90ef4bf
JM
11312maybe-clean-stage1-gmp: clean-stage1-gmp
11313clean-stage1: clean-stage1-gmp
11314clean-stage1-gmp:
11315 @if [ $(current_stage) = stage1 ]; then \
11316 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11317 else \
11318 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11319 $(MAKE) stage1-start; \
11320 fi; \
11321 cd $(HOST_SUBDIR)/gmp && \
11322 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 11323 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11324@endif gmp-bootstrap
2a4cbe27 11325
56a8fe78 11326
a90ef4bf
JM
11327.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11328.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11329maybe-all-stage2-gmp:
11330maybe-clean-stage2-gmp:
11331@if gmp-bootstrap
11332maybe-all-stage2-gmp: all-stage2-gmp
11333all-stage2: all-stage2-gmp
11334TARGET-stage2-gmp = $(TARGET-gmp)
11335all-stage2-gmp: configure-stage2-gmp
11336 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11337 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11339 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11340 $(HOST_EXPORTS) \
a90ef4bf
JM
11341 $(POSTSTAGE1_HOST_EXPORTS) \
11342 cd $(HOST_SUBDIR)/gmp && \
11343 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11344 CFLAGS="$(STAGE2_CFLAGS)" \
11345 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11346 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11347 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11348 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11349 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11350 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11351 TFLAGS="$(STAGE2_TFLAGS)" \
11352 $(TARGET-stage2-gmp)
56a8fe78 11353
a90ef4bf
JM
11354maybe-clean-stage2-gmp: clean-stage2-gmp
11355clean-stage2: clean-stage2-gmp
11356clean-stage2-gmp:
11357 @if [ $(current_stage) = stage2 ]; then \
11358 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11359 else \
11360 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11361 $(MAKE) stage2-start; \
11362 fi; \
11363 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11364 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11365@endif gmp-bootstrap
56a8fe78 11366
6d389afc 11367
a90ef4bf
JM
11368.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11369.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11370maybe-all-stage3-gmp:
11371maybe-clean-stage3-gmp:
11372@if gmp-bootstrap
11373maybe-all-stage3-gmp: all-stage3-gmp
11374all-stage3: all-stage3-gmp
11375TARGET-stage3-gmp = $(TARGET-gmp)
11376all-stage3-gmp: configure-stage3-gmp
11377 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11378 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11380 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11381 $(HOST_EXPORTS) \
a90ef4bf
JM
11382 $(POSTSTAGE1_HOST_EXPORTS) \
11383 cd $(HOST_SUBDIR)/gmp && \
11384 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11385 CFLAGS="$(STAGE3_CFLAGS)" \
11386 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11387 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11388 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11389 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11390 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11391 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11392 TFLAGS="$(STAGE3_TFLAGS)" \
11393 $(TARGET-stage3-gmp)
6d389afc 11394
a90ef4bf
JM
11395maybe-clean-stage3-gmp: clean-stage3-gmp
11396clean-stage3: clean-stage3-gmp
11397clean-stage3-gmp:
11398 @if [ $(current_stage) = stage3 ]; then \
11399 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11400 else \
11401 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11402 $(MAKE) stage3-start; \
11403 fi; \
11404 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11405 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11406@endif gmp-bootstrap
6d389afc 11407
2a4cbe27 11408
a90ef4bf
JM
11409.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11410.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11411maybe-all-stage4-gmp:
11412maybe-clean-stage4-gmp:
11413@if gmp-bootstrap
11414maybe-all-stage4-gmp: all-stage4-gmp
11415all-stage4: all-stage4-gmp
11416TARGET-stage4-gmp = $(TARGET-gmp)
11417all-stage4-gmp: configure-stage4-gmp
11418 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11419 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11421 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11422 $(HOST_EXPORTS) \
a90ef4bf
JM
11423 $(POSTSTAGE1_HOST_EXPORTS) \
11424 cd $(HOST_SUBDIR)/gmp && \
11425 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11426 CFLAGS="$(STAGE4_CFLAGS)" \
11427 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11428 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11429 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11430 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11431 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11432 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11433 TFLAGS="$(STAGE4_TFLAGS)" \
11434 $(TARGET-stage4-gmp)
2a4cbe27 11435
a90ef4bf
JM
11436maybe-clean-stage4-gmp: clean-stage4-gmp
11437clean-stage4: clean-stage4-gmp
11438clean-stage4-gmp:
11439 @if [ $(current_stage) = stage4 ]; then \
11440 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11441 else \
11442 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11443 $(MAKE) stage4-start; \
11444 fi; \
11445 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11446 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11447@endif gmp-bootstrap
2a4cbe27 11448
2a4cbe27 11449
a90ef4bf
JM
11450.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11451.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11452maybe-all-stageprofile-gmp:
11453maybe-clean-stageprofile-gmp:
11454@if gmp-bootstrap
11455maybe-all-stageprofile-gmp: all-stageprofile-gmp
11456all-stageprofile: all-stageprofile-gmp
11457TARGET-stageprofile-gmp = $(TARGET-gmp)
11458all-stageprofile-gmp: configure-stageprofile-gmp
11459 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11460 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11462 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11463 $(HOST_EXPORTS) \
a90ef4bf
JM
11464 $(POSTSTAGE1_HOST_EXPORTS) \
11465 cd $(HOST_SUBDIR)/gmp && \
11466 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11467 CFLAGS="$(STAGEprofile_CFLAGS)" \
11468 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11469 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11470 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11471 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11472 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11473 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11474 TFLAGS="$(STAGEprofile_TFLAGS)" \
11475 $(TARGET-stageprofile-gmp)
2a4cbe27 11476
a90ef4bf
JM
11477maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11478clean-stageprofile: clean-stageprofile-gmp
11479clean-stageprofile-gmp:
11480 @if [ $(current_stage) = stageprofile ]; then \
11481 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11482 else \
11483 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11484 $(MAKE) stageprofile-start; \
11485 fi; \
11486 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11487 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11488@endif gmp-bootstrap
2a4cbe27 11489
a7254363 11490
a90ef4bf
JM
11491.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11492.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11493maybe-all-stagefeedback-gmp:
11494maybe-clean-stagefeedback-gmp:
11495@if gmp-bootstrap
11496maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11497all-stagefeedback: all-stagefeedback-gmp
11498TARGET-stagefeedback-gmp = $(TARGET-gmp)
11499all-stagefeedback-gmp: configure-stagefeedback-gmp
11500 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11501 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11503 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11504 $(HOST_EXPORTS) \
11505 $(POSTSTAGE1_HOST_EXPORTS) \
11506 cd $(HOST_SUBDIR)/gmp && \
11507 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11508 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11509 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11510 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11511 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11512 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11513 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11514 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11515 TFLAGS="$(STAGEfeedback_TFLAGS)" \
11516 $(TARGET-stagefeedback-gmp)
d545f33b 11517
a90ef4bf
JM
11518maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11519clean-stagefeedback: clean-stagefeedback-gmp
11520clean-stagefeedback-gmp:
11521 @if [ $(current_stage) = stagefeedback ]; then \
11522 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11523 else \
11524 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11525 $(MAKE) stagefeedback-start; \
11526 fi; \
11527 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11528 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11529@endif gmp-bootstrap
d545f33b 11530
4fa63067 11531
a7254363 11532
d545f33b
PB
11533
11534
a90ef4bf
JM
11535.PHONY: check-gmp maybe-check-gmp
11536maybe-check-gmp:
11537@if gmp
11538maybe-check-gmp: check-gmp
4fa63067 11539
a90ef4bf 11540check-gmp:
0aed8855 11541 @: $(MAKE); $(unstage)
4fa63067
NN
11542 @r=`${PWD_COMMAND}`; export r; \
11543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11544 $(HOST_EXPORTS) \
a90ef4bf 11545 (cd $(HOST_SUBDIR)/gmp && \
b00612cc 11546 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 11547
a90ef4bf 11548@endif gmp
2a4cbe27 11549
a90ef4bf
JM
11550.PHONY: install-gmp maybe-install-gmp
11551maybe-install-gmp:
11552@if gmp
11553maybe-install-gmp: install-gmp
2a4cbe27 11554
a90ef4bf 11555install-gmp:
2a4cbe27 11556
a90ef4bf 11557@endif gmp
2a4cbe27 11558
a90ef4bf
JM
11559.PHONY: install-strip-gmp maybe-install-strip-gmp
11560maybe-install-strip-gmp:
11561@if gmp
11562maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11563
a90ef4bf 11564install-strip-gmp:
9b980aa1 11565
a90ef4bf 11566@endif gmp
9b980aa1 11567
56a8fe78 11568# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11569
a90ef4bf
JM
11570.PHONY: maybe-info-gmp info-gmp
11571maybe-info-gmp:
11572@if gmp
11573maybe-info-gmp: info-gmp
4fa63067 11574
a90ef4bf
JM
11575info-gmp: \
11576 configure-gmp
11577 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11578 r=`${PWD_COMMAND}`; export r; \
11579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11580 $(HOST_EXPORTS) \
b813574b 11581 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11583 done; \
a90ef4bf
JM
11584 echo "Doing info in gmp" ; \
11585 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11588 "RANLIB=$${RANLIB}" \
0c24b341 11589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11590 info) \
2a4cbe27
NN
11591 || exit 1
11592
a90ef4bf 11593@endif gmp
2a4cbe27 11594
a90ef4bf
JM
11595.PHONY: maybe-dvi-gmp dvi-gmp
11596maybe-dvi-gmp:
11597@if gmp
11598maybe-dvi-gmp: dvi-gmp
2a4cbe27 11599
a90ef4bf
JM
11600dvi-gmp: \
11601 configure-gmp
11602 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11603 r=`${PWD_COMMAND}`; export r; \
11604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11605 $(HOST_EXPORTS) \
b813574b 11606 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11608 done; \
a90ef4bf
JM
11609 echo "Doing dvi in gmp" ; \
11610 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11613 "RANLIB=$${RANLIB}" \
0c24b341 11614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11615 dvi) \
2a4cbe27
NN
11616 || exit 1
11617
a90ef4bf 11618@endif gmp
2a4cbe27 11619
a90ef4bf
JM
11620.PHONY: maybe-pdf-gmp pdf-gmp
11621maybe-pdf-gmp:
11622@if gmp
11623maybe-pdf-gmp: pdf-gmp
56a8fe78 11624
a90ef4bf
JM
11625pdf-gmp: \
11626 configure-gmp
11627 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11628 r=`${PWD_COMMAND}`; export r; \
11629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11630 $(HOST_EXPORTS) \
11631 for flag in $(EXTRA_HOST_FLAGS) ; do \
11632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11633 done; \
a90ef4bf
JM
11634 echo "Doing pdf in gmp" ; \
11635 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11638 "RANLIB=$${RANLIB}" \
0c24b341 11639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11640 pdf) \
11641 || exit 1
11642
a90ef4bf 11643@endif gmp
56a8fe78 11644
a90ef4bf
JM
11645.PHONY: maybe-html-gmp html-gmp
11646maybe-html-gmp:
11647@if gmp
11648maybe-html-gmp: html-gmp
6d389afc 11649
a90ef4bf
JM
11650html-gmp: \
11651 configure-gmp
11652 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11653 r=`${PWD_COMMAND}`; export r; \
11654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11655 $(HOST_EXPORTS) \
11656 for flag in $(EXTRA_HOST_FLAGS) ; do \
11657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11658 done; \
a90ef4bf
JM
11659 echo "Doing html in gmp" ; \
11660 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11663 "RANLIB=$${RANLIB}" \
0c24b341 11664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11665 html) \
11666 || exit 1
11667
a90ef4bf 11668@endif gmp
6d389afc 11669
a90ef4bf
JM
11670.PHONY: maybe-TAGS-gmp TAGS-gmp
11671maybe-TAGS-gmp:
11672@if gmp
11673maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11674
a90ef4bf
JM
11675TAGS-gmp: \
11676 configure-gmp
11677 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11678 r=`${PWD_COMMAND}`; export r; \
11679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11680 $(HOST_EXPORTS) \
b813574b 11681 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11683 done; \
a90ef4bf
JM
11684 echo "Doing TAGS in gmp" ; \
11685 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11688 "RANLIB=$${RANLIB}" \
0c24b341 11689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11690 TAGS) \
2a4cbe27
NN
11691 || exit 1
11692
a90ef4bf 11693@endif gmp
2a4cbe27 11694
a90ef4bf
JM
11695.PHONY: maybe-install-info-gmp install-info-gmp
11696maybe-install-info-gmp:
11697@if gmp
11698maybe-install-info-gmp: install-info-gmp
2a4cbe27 11699
a90ef4bf
JM
11700install-info-gmp: \
11701 configure-gmp \
11702 info-gmp
11703 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11704 r=`${PWD_COMMAND}`; export r; \
11705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11706 $(HOST_EXPORTS) \
b813574b 11707 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11709 done; \
a90ef4bf
JM
11710 echo "Doing install-info in gmp" ; \
11711 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11714 "RANLIB=$${RANLIB}" \
0c24b341 11715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11716 install-info) \
2a4cbe27
NN
11717 || exit 1
11718
a90ef4bf 11719@endif gmp
2a4cbe27 11720
a90ef4bf
JM
11721.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11722maybe-install-pdf-gmp:
11723@if gmp
11724maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11725
a90ef4bf
JM
11726install-pdf-gmp: \
11727 configure-gmp \
11728 pdf-gmp
11729 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11730 r=`${PWD_COMMAND}`; export r; \
11731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11732 $(HOST_EXPORTS) \
11733 for flag in $(EXTRA_HOST_FLAGS) ; do \
11734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11735 done; \
a90ef4bf
JM
11736 echo "Doing install-pdf in gmp" ; \
11737 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11740 "RANLIB=$${RANLIB}" \
0c24b341 11741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11742 install-pdf) \
11743 || exit 1
11744
a90ef4bf 11745@endif gmp
a3ca38d2 11746
a90ef4bf
JM
11747.PHONY: maybe-install-html-gmp install-html-gmp
11748maybe-install-html-gmp:
11749@if gmp
11750maybe-install-html-gmp: install-html-gmp
108a6f8e 11751
a90ef4bf
JM
11752install-html-gmp: \
11753 configure-gmp \
11754 html-gmp
11755 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11756 r=`${PWD_COMMAND}`; export r; \
11757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11758 $(HOST_EXPORTS) \
11759 for flag in $(EXTRA_HOST_FLAGS) ; do \
11760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11761 done; \
a90ef4bf
JM
11762 echo "Doing install-html in gmp" ; \
11763 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11766 "RANLIB=$${RANLIB}" \
0c24b341 11767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11768 install-html) \
11769 || exit 1
11770
a90ef4bf 11771@endif gmp
108a6f8e 11772
a90ef4bf
JM
11773.PHONY: maybe-installcheck-gmp installcheck-gmp
11774maybe-installcheck-gmp:
11775@if gmp
11776maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11777
a90ef4bf
JM
11778installcheck-gmp: \
11779 configure-gmp
11780 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11781 r=`${PWD_COMMAND}`; export r; \
11782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11783 $(HOST_EXPORTS) \
b813574b 11784 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11786 done; \
a90ef4bf
JM
11787 echo "Doing installcheck in gmp" ; \
11788 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11791 "RANLIB=$${RANLIB}" \
0c24b341 11792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11793 installcheck) \
2a4cbe27
NN
11794 || exit 1
11795
a90ef4bf 11796@endif gmp
2a4cbe27 11797
a90ef4bf
JM
11798.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11799maybe-mostlyclean-gmp:
11800@if gmp
11801maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11802
a90ef4bf
JM
11803mostlyclean-gmp:
11804 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11805 r=`${PWD_COMMAND}`; export r; \
11806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11807 $(HOST_EXPORTS) \
b813574b 11808 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11810 done; \
a90ef4bf
JM
11811 echo "Doing mostlyclean in gmp" ; \
11812 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11815 "RANLIB=$${RANLIB}" \
0c24b341 11816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11817 mostlyclean) \
2a4cbe27
NN
11818 || exit 1
11819
a90ef4bf 11820@endif gmp
2a4cbe27 11821
a90ef4bf
JM
11822.PHONY: maybe-clean-gmp clean-gmp
11823maybe-clean-gmp:
11824@if gmp
11825maybe-clean-gmp: clean-gmp
2a4cbe27 11826
a90ef4bf
JM
11827clean-gmp:
11828 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11829 r=`${PWD_COMMAND}`; export r; \
11830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11831 $(HOST_EXPORTS) \
b813574b 11832 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11834 done; \
a90ef4bf
JM
11835 echo "Doing clean in gmp" ; \
11836 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11839 "RANLIB=$${RANLIB}" \
0c24b341 11840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11841 clean) \
2a4cbe27
NN
11842 || exit 1
11843
a90ef4bf 11844@endif gmp
2a4cbe27 11845
a90ef4bf
JM
11846.PHONY: maybe-distclean-gmp distclean-gmp
11847maybe-distclean-gmp:
11848@if gmp
11849maybe-distclean-gmp: distclean-gmp
2a4cbe27 11850
a90ef4bf
JM
11851distclean-gmp:
11852 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11853 r=`${PWD_COMMAND}`; export r; \
11854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11855 $(HOST_EXPORTS) \
b813574b 11856 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11858 done; \
a90ef4bf
JM
11859 echo "Doing distclean in gmp" ; \
11860 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11863 "RANLIB=$${RANLIB}" \
0c24b341 11864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11865 distclean) \
2a4cbe27
NN
11866 || exit 1
11867
a90ef4bf 11868@endif gmp
2a4cbe27 11869
a90ef4bf
JM
11870.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11871maybe-maintainer-clean-gmp:
11872@if gmp
11873maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11874
a90ef4bf
JM
11875maintainer-clean-gmp:
11876 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11877 r=`${PWD_COMMAND}`; export r; \
11878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11879 $(HOST_EXPORTS) \
b813574b 11880 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11882 done; \
a90ef4bf
JM
11883 echo "Doing maintainer-clean in gmp" ; \
11884 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11887 "RANLIB=$${RANLIB}" \
0c24b341 11888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11889 maintainer-clean) \
2a4cbe27
NN
11890 || exit 1
11891
a90ef4bf 11892@endif gmp
2a4cbe27 11893
2a4cbe27 11894
a7254363 11895
a90ef4bf
JM
11896.PHONY: configure-mpfr maybe-configure-mpfr
11897maybe-configure-mpfr:
4f0ef2d8 11898@if gcc-bootstrap
a90ef4bf 11899configure-mpfr: stage_current
4f0ef2d8 11900@endif gcc-bootstrap
a90ef4bf
JM
11901@if mpfr
11902maybe-configure-mpfr: configure-mpfr
11903configure-mpfr:
11904 @r=`${PWD_COMMAND}`; export r; \
11905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11906 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
11907 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
1f53ca9a 11908 $(HOST_EXPORTS) \
a90ef4bf
JM
11909 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11910 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11911 case $(srcdir) in \
b00612cc 11912 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11913 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11914 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11915 esac; \
1b6c0831
L
11916 module_srcdir=mpfr; \
11917 $(SHELL) \
11918 $$s/$$module_srcdir/configure \
11919 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11920 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11921 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11922 || exit 1
a90ef4bf 11923@endif mpfr
d545f33b
PB
11924
11925
2a4cbe27 11926
a90ef4bf
JM
11927.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11928maybe-configure-stage1-mpfr:
11929@if mpfr-bootstrap
11930maybe-configure-stage1-mpfr: configure-stage1-mpfr
11931configure-stage1-mpfr:
11932 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11933 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11934 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11936 TFLAGS="$(STAGE1_TFLAGS)"; \
11937 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11938 $(HOST_EXPORTS) \
a90ef4bf
JM
11939 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11940 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11941 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
11942 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr ; \
11943 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11944 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11945 case $(srcdir) in \
11946 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11947 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11948 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11949 esac; \
1b6c0831
L
11950 module_srcdir=mpfr; \
11951 $(SHELL) $$s/$$module_srcdir/configure \
11952 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11953 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11954 --target=${target_alias} \
11955 \
a90ef4bf
JM
11956 $(STAGE1_CONFIGURE_FLAGS) \
11957 --disable-shared @extra_mpfr_configure_flags@
11958@endif mpfr-bootstrap
2a4cbe27 11959
a90ef4bf
JM
11960.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
11961maybe-configure-stage2-mpfr:
11962@if mpfr-bootstrap
11963maybe-configure-stage2-mpfr: configure-stage2-mpfr
11964configure-stage2-mpfr:
11965 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11966 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11967 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11969 TFLAGS="$(STAGE2_TFLAGS)"; \
11970 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11971 $(HOST_EXPORTS) \
a90ef4bf
JM
11972 $(POSTSTAGE1_HOST_EXPORTS) \
11973 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11974 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11975 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
11976 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr ; \
11977 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11978 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11979 case $(srcdir) in \
11980 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11981 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11982 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11983 esac; \
1b6c0831
L
11984 module_srcdir=mpfr; \
11985 $(SHELL) $$s/$$module_srcdir/configure \
11986 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11987 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11988 --target=${target_alias} \
11989 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
11990 $(STAGE2_CONFIGURE_FLAGS) \
11991 --disable-shared @extra_mpfr_configure_flags@
11992@endif mpfr-bootstrap
9b980aa1 11993
a90ef4bf
JM
11994.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
11995maybe-configure-stage3-mpfr:
11996@if mpfr-bootstrap
11997maybe-configure-stage3-mpfr: configure-stage3-mpfr
11998configure-stage3-mpfr:
11999 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12000 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12001 @r=`${PWD_COMMAND}`; export r; \
12002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12003 TFLAGS="$(STAGE3_TFLAGS)"; \
12004 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12005 $(HOST_EXPORTS) \
a90ef4bf
JM
12006 $(POSTSTAGE1_HOST_EXPORTS) \
12007 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12008 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12009 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
12010 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr ; \
12011 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
12012 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12013 case $(srcdir) in \
12014 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12015 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12016 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12017 esac; \
1b6c0831
L
12018 module_srcdir=mpfr; \
12019 $(SHELL) $$s/$$module_srcdir/configure \
12020 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12021 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12022 --target=${target_alias} \
12023 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12024 $(STAGE3_CONFIGURE_FLAGS) \
12025 --disable-shared @extra_mpfr_configure_flags@
12026@endif mpfr-bootstrap
2a4cbe27 12027
a90ef4bf
JM
12028.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12029maybe-configure-stage4-mpfr:
12030@if mpfr-bootstrap
12031maybe-configure-stage4-mpfr: configure-stage4-mpfr
12032configure-stage4-mpfr:
12033 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12034 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12035 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12037 TFLAGS="$(STAGE4_TFLAGS)"; \
12038 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12039 $(HOST_EXPORTS) \
a90ef4bf
JM
12040 $(POSTSTAGE1_HOST_EXPORTS) \
12041 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12042 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12043 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
12044 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr ; \
12045 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
12046 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12047 case $(srcdir) in \
12048 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12049 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12050 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12051 esac; \
1b6c0831
L
12052 module_srcdir=mpfr; \
12053 $(SHELL) $$s/$$module_srcdir/configure \
12054 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12055 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12056 --target=${target_alias} \
12057 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12058 $(STAGE4_CONFIGURE_FLAGS) \
12059 --disable-shared @extra_mpfr_configure_flags@
12060@endif mpfr-bootstrap
2a4cbe27 12061
a90ef4bf
JM
12062.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12063maybe-configure-stageprofile-mpfr:
12064@if mpfr-bootstrap
12065maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12066configure-stageprofile-mpfr:
12067 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12068 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12069 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12071 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12072 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12073 $(HOST_EXPORTS) \
a90ef4bf
JM
12074 $(POSTSTAGE1_HOST_EXPORTS) \
12075 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12076 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12077 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
12078 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr ; \
12079 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
12080 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12081 case $(srcdir) in \
12082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12083 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12085 esac; \
1b6c0831
L
12086 module_srcdir=mpfr; \
12087 $(SHELL) $$s/$$module_srcdir/configure \
12088 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12089 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12090 --target=${target_alias} \
12091 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12092 $(STAGEprofile_CONFIGURE_FLAGS) \
12093 --disable-shared @extra_mpfr_configure_flags@
12094@endif mpfr-bootstrap
56a8fe78 12095
a90ef4bf
JM
12096.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12097maybe-configure-stagefeedback-mpfr:
12098@if mpfr-bootstrap
12099maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12100configure-stagefeedback-mpfr:
12101 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12102 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12103 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12105 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12106 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12107 $(HOST_EXPORTS) \
a90ef4bf
JM
12108 $(POSTSTAGE1_HOST_EXPORTS) \
12109 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12110 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12111 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
12112 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr ; \
12113 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
12114 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12115 case $(srcdir) in \
12116 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12117 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12118 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12119 esac; \
1b6c0831
L
12120 module_srcdir=mpfr; \
12121 $(SHELL) $$s/$$module_srcdir/configure \
12122 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12123 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12124 --target=${target_alias} \
12125 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12126 $(STAGEfeedback_CONFIGURE_FLAGS) \
12127 --disable-shared @extra_mpfr_configure_flags@
12128@endif mpfr-bootstrap
56a8fe78 12129
6d389afc 12130
6d389afc 12131
6d389afc 12132
2a4cbe27 12133
a90ef4bf
JM
12134.PHONY: all-mpfr maybe-all-mpfr
12135maybe-all-mpfr:
12136@if gcc-bootstrap
12137all-mpfr: stage_current
12138@endif gcc-bootstrap
12139@if mpfr
12140TARGET-mpfr=all
12141maybe-all-mpfr: all-mpfr
12142all-mpfr: configure-mpfr
12143 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12145 $(HOST_EXPORTS) \
12146 (cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12147 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12148 $(TARGET-mpfr))
12149@endif mpfr
2a4cbe27
NN
12150
12151
2a4cbe27 12152
a90ef4bf
JM
12153.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12154.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12155maybe-all-stage1-mpfr:
12156maybe-clean-stage1-mpfr:
12157@if mpfr-bootstrap
12158maybe-all-stage1-mpfr: all-stage1-mpfr
12159all-stage1: all-stage1-mpfr
12160TARGET-stage1-mpfr = $(TARGET-mpfr)
12161all-stage1-mpfr: configure-stage1-mpfr
12162 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12163 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12165 TFLAGS="$(STAGE1_TFLAGS)"; \
12166 $(HOST_EXPORTS) \
12167 cd $(HOST_SUBDIR)/mpfr && \
12168 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12169 CFLAGS="$(STAGE1_CFLAGS)" \
12170 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12171 LIBCFLAGS="$(LIBCFLAGS)" \
12172 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12173 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12174 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
12175 $(EXTRA_HOST_FLAGS) \
12176 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12177 TFLAGS="$(STAGE1_TFLAGS)" \
12178 $(TARGET-stage1-mpfr)
2a4cbe27 12179
a90ef4bf
JM
12180maybe-clean-stage1-mpfr: clean-stage1-mpfr
12181clean-stage1: clean-stage1-mpfr
12182clean-stage1-mpfr:
12183 @if [ $(current_stage) = stage1 ]; then \
12184 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12185 else \
12186 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12187 $(MAKE) stage1-start; \
12188 fi; \
12189 cd $(HOST_SUBDIR)/mpfr && \
12190 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 12191 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12192@endif mpfr-bootstrap
2a4cbe27 12193
a3ca38d2 12194
a90ef4bf
JM
12195.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12196.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12197maybe-all-stage2-mpfr:
12198maybe-clean-stage2-mpfr:
12199@if mpfr-bootstrap
12200maybe-all-stage2-mpfr: all-stage2-mpfr
12201all-stage2: all-stage2-mpfr
12202TARGET-stage2-mpfr = $(TARGET-mpfr)
12203all-stage2-mpfr: configure-stage2-mpfr
12204 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12205 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12207 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12208 $(HOST_EXPORTS) \
a90ef4bf
JM
12209 $(POSTSTAGE1_HOST_EXPORTS) \
12210 cd $(HOST_SUBDIR)/mpfr && \
12211 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12212 CFLAGS="$(STAGE2_CFLAGS)" \
12213 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12214 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12215 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12216 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12217 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12218 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12219 TFLAGS="$(STAGE2_TFLAGS)" \
12220 $(TARGET-stage2-mpfr)
a3ca38d2 12221
a90ef4bf
JM
12222maybe-clean-stage2-mpfr: clean-stage2-mpfr
12223clean-stage2: clean-stage2-mpfr
12224clean-stage2-mpfr:
12225 @if [ $(current_stage) = stage2 ]; then \
12226 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12227 else \
12228 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12229 $(MAKE) stage2-start; \
12230 fi; \
12231 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12232 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12233@endif mpfr-bootstrap
a3ca38d2 12234
108a6f8e 12235
a90ef4bf
JM
12236.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12237.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12238maybe-all-stage3-mpfr:
12239maybe-clean-stage3-mpfr:
12240@if mpfr-bootstrap
12241maybe-all-stage3-mpfr: all-stage3-mpfr
12242all-stage3: all-stage3-mpfr
12243TARGET-stage3-mpfr = $(TARGET-mpfr)
12244all-stage3-mpfr: configure-stage3-mpfr
12245 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12246 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12248 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12249 $(HOST_EXPORTS) \
a90ef4bf
JM
12250 $(POSTSTAGE1_HOST_EXPORTS) \
12251 cd $(HOST_SUBDIR)/mpfr && \
12252 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12253 CFLAGS="$(STAGE3_CFLAGS)" \
12254 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12255 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12256 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12257 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12258 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12259 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12260 TFLAGS="$(STAGE3_TFLAGS)" \
12261 $(TARGET-stage3-mpfr)
108a6f8e 12262
a90ef4bf
JM
12263maybe-clean-stage3-mpfr: clean-stage3-mpfr
12264clean-stage3: clean-stage3-mpfr
12265clean-stage3-mpfr:
12266 @if [ $(current_stage) = stage3 ]; then \
12267 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12268 else \
12269 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12270 $(MAKE) stage3-start; \
12271 fi; \
12272 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12273 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12274@endif mpfr-bootstrap
108a6f8e 12275
2a4cbe27 12276
a90ef4bf
JM
12277.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12278.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12279maybe-all-stage4-mpfr:
12280maybe-clean-stage4-mpfr:
12281@if mpfr-bootstrap
12282maybe-all-stage4-mpfr: all-stage4-mpfr
12283all-stage4: all-stage4-mpfr
12284TARGET-stage4-mpfr = $(TARGET-mpfr)
12285all-stage4-mpfr: configure-stage4-mpfr
12286 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12287 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12289 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12290 $(HOST_EXPORTS) \
a90ef4bf
JM
12291 $(POSTSTAGE1_HOST_EXPORTS) \
12292 cd $(HOST_SUBDIR)/mpfr && \
12293 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12294 CFLAGS="$(STAGE4_CFLAGS)" \
12295 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12296 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12297 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12298 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12299 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12300 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12301 TFLAGS="$(STAGE4_TFLAGS)" \
12302 $(TARGET-stage4-mpfr)
2a4cbe27 12303
a90ef4bf
JM
12304maybe-clean-stage4-mpfr: clean-stage4-mpfr
12305clean-stage4: clean-stage4-mpfr
12306clean-stage4-mpfr:
12307 @if [ $(current_stage) = stage4 ]; then \
12308 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12309 else \
12310 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12311 $(MAKE) stage4-start; \
12312 fi; \
12313 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12314 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12315@endif mpfr-bootstrap
2a4cbe27 12316
2a4cbe27 12317
a90ef4bf
JM
12318.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12319.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12320maybe-all-stageprofile-mpfr:
12321maybe-clean-stageprofile-mpfr:
12322@if mpfr-bootstrap
12323maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12324all-stageprofile: all-stageprofile-mpfr
12325TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12326all-stageprofile-mpfr: configure-stageprofile-mpfr
12327 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12328 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12330 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12331 $(HOST_EXPORTS) \
a90ef4bf
JM
12332 $(POSTSTAGE1_HOST_EXPORTS) \
12333 cd $(HOST_SUBDIR)/mpfr && \
12334 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12335 CFLAGS="$(STAGEprofile_CFLAGS)" \
12336 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12337 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12338 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12339 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12340 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12341 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12342 TFLAGS="$(STAGEprofile_TFLAGS)" \
12343 $(TARGET-stageprofile-mpfr)
2a4cbe27 12344
a90ef4bf
JM
12345maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12346clean-stageprofile: clean-stageprofile-mpfr
12347clean-stageprofile-mpfr:
12348 @if [ $(current_stage) = stageprofile ]; then \
12349 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12350 else \
12351 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12352 $(MAKE) stageprofile-start; \
12353 fi; \
12354 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12355 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12356@endif mpfr-bootstrap
2a4cbe27 12357
a7254363 12358
a90ef4bf
JM
12359.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12360.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12361maybe-all-stagefeedback-mpfr:
12362maybe-clean-stagefeedback-mpfr:
12363@if mpfr-bootstrap
12364maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12365all-stagefeedback: all-stagefeedback-mpfr
12366TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12367all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12368 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12369 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12371 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12372 $(HOST_EXPORTS) \
12373 $(POSTSTAGE1_HOST_EXPORTS) \
12374 cd $(HOST_SUBDIR)/mpfr && \
12375 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12376 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12377 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12378 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12379 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12380 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12381 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12382 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12383 TFLAGS="$(STAGEfeedback_TFLAGS)" \
12384 $(TARGET-stagefeedback-mpfr)
d545f33b 12385
a90ef4bf
JM
12386maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12387clean-stagefeedback: clean-stagefeedback-mpfr
12388clean-stagefeedback-mpfr:
12389 @if [ $(current_stage) = stagefeedback ]; then \
12390 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12391 else \
12392 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12393 $(MAKE) stagefeedback-start; \
12394 fi; \
12395 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12396 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12397@endif mpfr-bootstrap
d545f33b 12398
2a4cbe27 12399
a7254363 12400
d545f33b
PB
12401
12402
a90ef4bf
JM
12403.PHONY: check-mpfr maybe-check-mpfr
12404maybe-check-mpfr:
12405@if mpfr
12406maybe-check-mpfr: check-mpfr
2a4cbe27 12407
a90ef4bf 12408check-mpfr:
0aed8855 12409 @: $(MAKE); $(unstage)
4fa63067 12410 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12412 $(HOST_EXPORTS) \
a90ef4bf 12413 (cd $(HOST_SUBDIR)/mpfr && \
b00612cc 12414 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 12415
a90ef4bf 12416@endif mpfr
2a4cbe27 12417
a90ef4bf
JM
12418.PHONY: install-mpfr maybe-install-mpfr
12419maybe-install-mpfr:
12420@if mpfr
12421maybe-install-mpfr: install-mpfr
2a4cbe27 12422
a90ef4bf 12423install-mpfr:
4fa63067 12424
a90ef4bf 12425@endif mpfr
4fa63067 12426
a90ef4bf
JM
12427.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12428maybe-install-strip-mpfr:
12429@if mpfr
12430maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12431
a90ef4bf 12432install-strip-mpfr:
9b980aa1 12433
a90ef4bf 12434@endif mpfr
9b980aa1 12435
56a8fe78 12436# Other targets (info, dvi, pdf, etc.)
4fa63067 12437
a90ef4bf
JM
12438.PHONY: maybe-info-mpfr info-mpfr
12439maybe-info-mpfr:
12440@if mpfr
12441maybe-info-mpfr: info-mpfr
4fa63067 12442
a90ef4bf
JM
12443info-mpfr: \
12444 configure-mpfr
12445 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12446 r=`${PWD_COMMAND}`; export r; \
12447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12448 $(HOST_EXPORTS) \
b813574b 12449 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12451 done; \
a90ef4bf
JM
12452 echo "Doing info in mpfr" ; \
12453 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12456 "RANLIB=$${RANLIB}" \
0c24b341 12457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12458 info) \
2a4cbe27
NN
12459 || exit 1
12460
a90ef4bf 12461@endif mpfr
2a4cbe27 12462
a90ef4bf
JM
12463.PHONY: maybe-dvi-mpfr dvi-mpfr
12464maybe-dvi-mpfr:
12465@if mpfr
12466maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12467
a90ef4bf
JM
12468dvi-mpfr: \
12469 configure-mpfr
12470 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12471 r=`${PWD_COMMAND}`; export r; \
12472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12473 $(HOST_EXPORTS) \
b813574b 12474 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12476 done; \
a90ef4bf
JM
12477 echo "Doing dvi in mpfr" ; \
12478 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12481 "RANLIB=$${RANLIB}" \
0c24b341 12482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12483 dvi) \
2a4cbe27
NN
12484 || exit 1
12485
a90ef4bf 12486@endif mpfr
2a4cbe27 12487
a90ef4bf
JM
12488.PHONY: maybe-pdf-mpfr pdf-mpfr
12489maybe-pdf-mpfr:
12490@if mpfr
12491maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12492
a90ef4bf
JM
12493pdf-mpfr: \
12494 configure-mpfr
12495 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12496 r=`${PWD_COMMAND}`; export r; \
12497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12498 $(HOST_EXPORTS) \
12499 for flag in $(EXTRA_HOST_FLAGS) ; do \
12500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12501 done; \
a90ef4bf
JM
12502 echo "Doing pdf in mpfr" ; \
12503 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12506 "RANLIB=$${RANLIB}" \
0c24b341 12507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12508 pdf) \
12509 || exit 1
12510
a90ef4bf 12511@endif mpfr
56a8fe78 12512
a90ef4bf
JM
12513.PHONY: maybe-html-mpfr html-mpfr
12514maybe-html-mpfr:
12515@if mpfr
12516maybe-html-mpfr: html-mpfr
6d389afc 12517
a90ef4bf
JM
12518html-mpfr: \
12519 configure-mpfr
12520 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12521 r=`${PWD_COMMAND}`; export r; \
12522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
12523 $(HOST_EXPORTS) \
12524 for flag in $(EXTRA_HOST_FLAGS) ; do \
12525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12526 done; \
a90ef4bf
JM
12527 echo "Doing html in mpfr" ; \
12528 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12531 "RANLIB=$${RANLIB}" \
0c24b341 12532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12533 html) \
12534 || exit 1
12535
a90ef4bf 12536@endif mpfr
6d389afc 12537
a90ef4bf
JM
12538.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12539maybe-TAGS-mpfr:
12540@if mpfr
12541maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12542
a90ef4bf
JM
12543TAGS-mpfr: \
12544 configure-mpfr
12545 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12546 r=`${PWD_COMMAND}`; export r; \
12547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12548 $(HOST_EXPORTS) \
b813574b 12549 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12551 done; \
a90ef4bf
JM
12552 echo "Doing TAGS in mpfr" ; \
12553 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12556 "RANLIB=$${RANLIB}" \
0c24b341 12557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12558 TAGS) \
2a4cbe27
NN
12559 || exit 1
12560
a90ef4bf 12561@endif mpfr
2a4cbe27 12562
a90ef4bf
JM
12563.PHONY: maybe-install-info-mpfr install-info-mpfr
12564maybe-install-info-mpfr:
12565@if mpfr
12566maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12567
a90ef4bf
JM
12568install-info-mpfr: \
12569 configure-mpfr \
12570 info-mpfr
12571 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12572 r=`${PWD_COMMAND}`; export r; \
12573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12574 $(HOST_EXPORTS) \
b813574b 12575 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12577 done; \
a90ef4bf
JM
12578 echo "Doing install-info in mpfr" ; \
12579 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12582 "RANLIB=$${RANLIB}" \
0c24b341 12583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12584 install-info) \
2a4cbe27
NN
12585 || exit 1
12586
a90ef4bf 12587@endif mpfr
2a4cbe27 12588
a90ef4bf
JM
12589.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12590maybe-install-pdf-mpfr:
12591@if mpfr
12592maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12593
a90ef4bf
JM
12594install-pdf-mpfr: \
12595 configure-mpfr \
12596 pdf-mpfr
12597 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12598 r=`${PWD_COMMAND}`; export r; \
12599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12600 $(HOST_EXPORTS) \
12601 for flag in $(EXTRA_HOST_FLAGS) ; do \
12602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12603 done; \
a90ef4bf
JM
12604 echo "Doing install-pdf in mpfr" ; \
12605 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12608 "RANLIB=$${RANLIB}" \
0c24b341 12609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12610 install-pdf) \
12611 || exit 1
12612
a90ef4bf 12613@endif mpfr
a3ca38d2 12614
a90ef4bf
JM
12615.PHONY: maybe-install-html-mpfr install-html-mpfr
12616maybe-install-html-mpfr:
12617@if mpfr
12618maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12619
a90ef4bf
JM
12620install-html-mpfr: \
12621 configure-mpfr \
12622 html-mpfr
12623 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12624 r=`${PWD_COMMAND}`; export r; \
12625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12626 $(HOST_EXPORTS) \
12627 for flag in $(EXTRA_HOST_FLAGS) ; do \
12628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12629 done; \
a90ef4bf
JM
12630 echo "Doing install-html in mpfr" ; \
12631 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12634 "RANLIB=$${RANLIB}" \
0c24b341 12635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12636 install-html) \
12637 || exit 1
12638
a90ef4bf 12639@endif mpfr
108a6f8e 12640
a90ef4bf
JM
12641.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12642maybe-installcheck-mpfr:
12643@if mpfr
12644maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12645
a90ef4bf
JM
12646installcheck-mpfr: \
12647 configure-mpfr
12648 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12649 r=`${PWD_COMMAND}`; export r; \
12650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12651 $(HOST_EXPORTS) \
b813574b 12652 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12654 done; \
a90ef4bf
JM
12655 echo "Doing installcheck in mpfr" ; \
12656 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12659 "RANLIB=$${RANLIB}" \
0c24b341 12660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12661 installcheck) \
2a4cbe27
NN
12662 || exit 1
12663
a90ef4bf 12664@endif mpfr
2a4cbe27 12665
a90ef4bf
JM
12666.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12667maybe-mostlyclean-mpfr:
12668@if mpfr
12669maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12670
a90ef4bf
JM
12671mostlyclean-mpfr:
12672 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12673 r=`${PWD_COMMAND}`; export r; \
12674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12675 $(HOST_EXPORTS) \
b813574b 12676 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12678 done; \
a90ef4bf
JM
12679 echo "Doing mostlyclean in mpfr" ; \
12680 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12683 "RANLIB=$${RANLIB}" \
0c24b341 12684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12685 mostlyclean) \
2a4cbe27
NN
12686 || exit 1
12687
a90ef4bf 12688@endif mpfr
2a4cbe27 12689
a90ef4bf
JM
12690.PHONY: maybe-clean-mpfr clean-mpfr
12691maybe-clean-mpfr:
12692@if mpfr
12693maybe-clean-mpfr: clean-mpfr
2a4cbe27 12694
a90ef4bf
JM
12695clean-mpfr:
12696 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12697 r=`${PWD_COMMAND}`; export r; \
12698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12699 $(HOST_EXPORTS) \
b813574b 12700 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12702 done; \
a90ef4bf
JM
12703 echo "Doing clean in mpfr" ; \
12704 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12707 "RANLIB=$${RANLIB}" \
0c24b341 12708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12709 clean) \
2a4cbe27
NN
12710 || exit 1
12711
a90ef4bf 12712@endif mpfr
2a4cbe27 12713
a90ef4bf
JM
12714.PHONY: maybe-distclean-mpfr distclean-mpfr
12715maybe-distclean-mpfr:
12716@if mpfr
12717maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12718
a90ef4bf
JM
12719distclean-mpfr:
12720 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12721 r=`${PWD_COMMAND}`; export r; \
12722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12723 $(HOST_EXPORTS) \
b813574b 12724 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12726 done; \
a90ef4bf
JM
12727 echo "Doing distclean in mpfr" ; \
12728 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12731 "RANLIB=$${RANLIB}" \
0c24b341 12732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12733 distclean) \
2a4cbe27
NN
12734 || exit 1
12735
a90ef4bf 12736@endif mpfr
2a4cbe27 12737
a90ef4bf
JM
12738.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12739maybe-maintainer-clean-mpfr:
12740@if mpfr
12741maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12742
a90ef4bf
JM
12743maintainer-clean-mpfr:
12744 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12745 r=`${PWD_COMMAND}`; export r; \
12746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12747 $(HOST_EXPORTS) \
b813574b 12748 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12750 done; \
a90ef4bf
JM
12751 echo "Doing maintainer-clean in mpfr" ; \
12752 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12755 "RANLIB=$${RANLIB}" \
0c24b341 12756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12757 maintainer-clean) \
2a4cbe27
NN
12758 || exit 1
12759
a90ef4bf 12760@endif mpfr
2a4cbe27 12761
2a4cbe27 12762
a7254363 12763
a90ef4bf
JM
12764.PHONY: configure-mpc maybe-configure-mpc
12765maybe-configure-mpc:
4f0ef2d8 12766@if gcc-bootstrap
a90ef4bf 12767configure-mpc: stage_current
4f0ef2d8 12768@endif gcc-bootstrap
a90ef4bf
JM
12769@if mpc
12770maybe-configure-mpc: configure-mpc
12771configure-mpc:
c52c6897 12772 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12774 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12775 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
1f53ca9a 12776 $(HOST_EXPORTS) \
a90ef4bf
JM
12777 echo Configuring in $(HOST_SUBDIR)/mpc; \
12778 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12779 case $(srcdir) in \
b00612cc 12780 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12781 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12782 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12783 esac; \
1b6c0831
L
12784 module_srcdir=mpc; \
12785 $(SHELL) \
12786 $$s/$$module_srcdir/configure \
12787 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12788 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12789 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12790 || exit 1
a90ef4bf 12791@endif mpc
d545f33b
PB
12792
12793
d3ed111c 12794
a90ef4bf
JM
12795.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12796maybe-configure-stage1-mpc:
12797@if mpc-bootstrap
12798maybe-configure-stage1-mpc: configure-stage1-mpc
12799configure-stage1-mpc:
12800 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12801 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12802 @r=`${PWD_COMMAND}`; export r; \
12803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12804 TFLAGS="$(STAGE1_TFLAGS)"; \
12805 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12806 $(HOST_EXPORTS) \
a90ef4bf
JM
12807 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12808 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12809 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
12810 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc ; \
12811 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12812 cd $(HOST_SUBDIR)/mpc || exit 1; \
12813 case $(srcdir) in \
12814 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12815 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12816 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12817 esac; \
1b6c0831
L
12818 module_srcdir=mpc; \
12819 $(SHELL) $$s/$$module_srcdir/configure \
12820 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12821 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12822 --target=${target_alias} \
12823 \
a90ef4bf
JM
12824 $(STAGE1_CONFIGURE_FLAGS) \
12825 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12826@endif mpc-bootstrap
d3ed111c 12827
a90ef4bf
JM
12828.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12829maybe-configure-stage2-mpc:
12830@if mpc-bootstrap
12831maybe-configure-stage2-mpc: configure-stage2-mpc
12832configure-stage2-mpc:
12833 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12834 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12835 @r=`${PWD_COMMAND}`; export r; \
12836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12837 TFLAGS="$(STAGE2_TFLAGS)"; \
12838 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12839 $(HOST_EXPORTS) \
a90ef4bf
JM
12840 $(POSTSTAGE1_HOST_EXPORTS) \
12841 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12842 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12843 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
12844 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc ; \
12845 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12846 cd $(HOST_SUBDIR)/mpc || exit 1; \
12847 case $(srcdir) in \
12848 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12849 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12850 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12851 esac; \
1b6c0831
L
12852 module_srcdir=mpc; \
12853 $(SHELL) $$s/$$module_srcdir/configure \
12854 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12855 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12856 --target=${target_alias} \
12857 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12858 $(STAGE2_CONFIGURE_FLAGS) \
12859 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12860@endif mpc-bootstrap
9b980aa1 12861
a90ef4bf
JM
12862.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12863maybe-configure-stage3-mpc:
12864@if mpc-bootstrap
12865maybe-configure-stage3-mpc: configure-stage3-mpc
12866configure-stage3-mpc:
12867 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12868 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12869 @r=`${PWD_COMMAND}`; export r; \
12870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12871 TFLAGS="$(STAGE3_TFLAGS)"; \
12872 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12873 $(HOST_EXPORTS) \
a90ef4bf
JM
12874 $(POSTSTAGE1_HOST_EXPORTS) \
12875 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12876 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12877 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
12878 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc ; \
12879 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12880 cd $(HOST_SUBDIR)/mpc || exit 1; \
12881 case $(srcdir) in \
12882 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12883 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12884 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12885 esac; \
1b6c0831
L
12886 module_srcdir=mpc; \
12887 $(SHELL) $$s/$$module_srcdir/configure \
12888 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12889 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12890 --target=${target_alias} \
12891 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12892 $(STAGE3_CONFIGURE_FLAGS) \
12893 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12894@endif mpc-bootstrap
d3ed111c 12895
a90ef4bf
JM
12896.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12897maybe-configure-stage4-mpc:
12898@if mpc-bootstrap
12899maybe-configure-stage4-mpc: configure-stage4-mpc
12900configure-stage4-mpc:
12901 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12902 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12903 @r=`${PWD_COMMAND}`; export r; \
12904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12905 TFLAGS="$(STAGE4_TFLAGS)"; \
12906 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12907 $(HOST_EXPORTS) \
12908 $(POSTSTAGE1_HOST_EXPORTS) \
12909 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12910 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12911 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
12912 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc ; \
12913 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12914 cd $(HOST_SUBDIR)/mpc || exit 1; \
12915 case $(srcdir) in \
12916 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12917 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12918 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12919 esac; \
1b6c0831
L
12920 module_srcdir=mpc; \
12921 $(SHELL) $$s/$$module_srcdir/configure \
12922 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12923 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12924 --target=${target_alias} \
12925 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12926 $(STAGE4_CONFIGURE_FLAGS) \
12927 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12928@endif mpc-bootstrap
12929
12930.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12931maybe-configure-stageprofile-mpc:
12932@if mpc-bootstrap
12933maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12934configure-stageprofile-mpc:
12935 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12936 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12937 @r=`${PWD_COMMAND}`; export r; \
12938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12939 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12940 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12941 $(HOST_EXPORTS) \
12942 $(POSTSTAGE1_HOST_EXPORTS) \
12943 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12944 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12945 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
12946 echo Configuring stage profile in $(HOST_SUBDIR)/mpc ; \
12947 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12948 cd $(HOST_SUBDIR)/mpc || exit 1; \
12949 case $(srcdir) in \
12950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12951 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12953 esac; \
1b6c0831
L
12954 module_srcdir=mpc; \
12955 $(SHELL) $$s/$$module_srcdir/configure \
12956 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12957 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12958 --target=${target_alias} \
12959 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12960 $(STAGEprofile_CONFIGURE_FLAGS) \
12961 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12962@endif mpc-bootstrap
12963
12964.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
12965maybe-configure-stagefeedback-mpc:
12966@if mpc-bootstrap
12967maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
12968configure-stagefeedback-mpc:
12969 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12970 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12971 @r=`${PWD_COMMAND}`; export r; \
12972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12973 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12974 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12975 $(HOST_EXPORTS) \
12976 $(POSTSTAGE1_HOST_EXPORTS) \
12977 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12978 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12979 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
12980 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc ; \
12981 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12982 cd $(HOST_SUBDIR)/mpc || exit 1; \
12983 case $(srcdir) in \
12984 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12985 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12986 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12987 esac; \
1b6c0831
L
12988 module_srcdir=mpc; \
12989 $(SHELL) $$s/$$module_srcdir/configure \
12990 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12991 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12992 --target=${target_alias} \
12993 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12994 $(STAGEfeedback_CONFIGURE_FLAGS) \
12995 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12996@endif mpc-bootstrap
12997
12998
12999
13000
13001
13002.PHONY: all-mpc maybe-all-mpc
13003maybe-all-mpc:
13004@if gcc-bootstrap
13005all-mpc: stage_current
13006@endif gcc-bootstrap
13007@if mpc
13008TARGET-mpc=all
13009maybe-all-mpc: all-mpc
13010all-mpc: configure-mpc
13011 @r=`${PWD_COMMAND}`; export r; \
13012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13013 $(HOST_EXPORTS) \
13014 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13015 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13016 $(TARGET-mpc))
13017@endif mpc
13018
13019
13020
13021.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13022.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13023maybe-all-stage1-mpc:
13024maybe-clean-stage1-mpc:
13025@if mpc-bootstrap
13026maybe-all-stage1-mpc: all-stage1-mpc
13027all-stage1: all-stage1-mpc
13028TARGET-stage1-mpc = $(TARGET-mpc)
13029all-stage1-mpc: configure-stage1-mpc
13030 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13031 @r=`${PWD_COMMAND}`; export r; \
13032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13033 TFLAGS="$(STAGE1_TFLAGS)"; \
13034 $(HOST_EXPORTS) \
13035 cd $(HOST_SUBDIR)/mpc && \
13036 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13037 CFLAGS="$(STAGE1_CFLAGS)" \
13038 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13039 LIBCFLAGS="$(LIBCFLAGS)" \
13040 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13041 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13042 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13043 $(EXTRA_HOST_FLAGS) \
13044 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13045 TFLAGS="$(STAGE1_TFLAGS)" \
13046 $(TARGET-stage1-mpc)
13047
13048maybe-clean-stage1-mpc: clean-stage1-mpc
13049clean-stage1: clean-stage1-mpc
13050clean-stage1-mpc:
13051 @if [ $(current_stage) = stage1 ]; then \
13052 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13053 else \
13054 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13055 $(MAKE) stage1-start; \
13056 fi; \
13057 cd $(HOST_SUBDIR)/mpc && \
13058 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13059 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13060@endif mpc-bootstrap
13061
13062
13063.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13064.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13065maybe-all-stage2-mpc:
13066maybe-clean-stage2-mpc:
13067@if mpc-bootstrap
13068maybe-all-stage2-mpc: all-stage2-mpc
13069all-stage2: all-stage2-mpc
13070TARGET-stage2-mpc = $(TARGET-mpc)
13071all-stage2-mpc: configure-stage2-mpc
13072 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13073 @r=`${PWD_COMMAND}`; export r; \
13074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13075 TFLAGS="$(STAGE2_TFLAGS)"; \
13076 $(HOST_EXPORTS) \
13077 $(POSTSTAGE1_HOST_EXPORTS) \
13078 cd $(HOST_SUBDIR)/mpc && \
13079 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13080 CFLAGS="$(STAGE2_CFLAGS)" \
13081 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13082 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13083 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13084 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13085 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13086 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13087 TFLAGS="$(STAGE2_TFLAGS)" \
13088 $(TARGET-stage2-mpc)
13089
13090maybe-clean-stage2-mpc: clean-stage2-mpc
13091clean-stage2: clean-stage2-mpc
13092clean-stage2-mpc:
13093 @if [ $(current_stage) = stage2 ]; then \
13094 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13095 else \
13096 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13097 $(MAKE) stage2-start; \
13098 fi; \
13099 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13100 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13101@endif mpc-bootstrap
13102
13103
13104.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13105.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13106maybe-all-stage3-mpc:
13107maybe-clean-stage3-mpc:
13108@if mpc-bootstrap
13109maybe-all-stage3-mpc: all-stage3-mpc
13110all-stage3: all-stage3-mpc
13111TARGET-stage3-mpc = $(TARGET-mpc)
13112all-stage3-mpc: configure-stage3-mpc
13113 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13114 @r=`${PWD_COMMAND}`; export r; \
13115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13116 TFLAGS="$(STAGE3_TFLAGS)"; \
13117 $(HOST_EXPORTS) \
13118 $(POSTSTAGE1_HOST_EXPORTS) \
13119 cd $(HOST_SUBDIR)/mpc && \
13120 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13121 CFLAGS="$(STAGE3_CFLAGS)" \
13122 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13123 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13124 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13125 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13126 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13127 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13128 TFLAGS="$(STAGE3_TFLAGS)" \
13129 $(TARGET-stage3-mpc)
13130
13131maybe-clean-stage3-mpc: clean-stage3-mpc
13132clean-stage3: clean-stage3-mpc
13133clean-stage3-mpc:
13134 @if [ $(current_stage) = stage3 ]; then \
13135 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13136 else \
13137 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13138 $(MAKE) stage3-start; \
13139 fi; \
13140 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13141 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13142@endif mpc-bootstrap
13143
13144
13145.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13146.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13147maybe-all-stage4-mpc:
13148maybe-clean-stage4-mpc:
13149@if mpc-bootstrap
13150maybe-all-stage4-mpc: all-stage4-mpc
13151all-stage4: all-stage4-mpc
13152TARGET-stage4-mpc = $(TARGET-mpc)
13153all-stage4-mpc: configure-stage4-mpc
13154 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13155 @r=`${PWD_COMMAND}`; export r; \
13156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13157 TFLAGS="$(STAGE4_TFLAGS)"; \
13158 $(HOST_EXPORTS) \
13159 $(POSTSTAGE1_HOST_EXPORTS) \
13160 cd $(HOST_SUBDIR)/mpc && \
13161 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13162 CFLAGS="$(STAGE4_CFLAGS)" \
13163 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13164 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13165 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13166 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13167 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13168 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13169 TFLAGS="$(STAGE4_TFLAGS)" \
13170 $(TARGET-stage4-mpc)
13171
13172maybe-clean-stage4-mpc: clean-stage4-mpc
13173clean-stage4: clean-stage4-mpc
13174clean-stage4-mpc:
13175 @if [ $(current_stage) = stage4 ]; then \
13176 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13177 else \
13178 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13179 $(MAKE) stage4-start; \
13180 fi; \
13181 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13182 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13183@endif mpc-bootstrap
13184
13185
13186.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13187.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13188maybe-all-stageprofile-mpc:
13189maybe-clean-stageprofile-mpc:
13190@if mpc-bootstrap
13191maybe-all-stageprofile-mpc: all-stageprofile-mpc
13192all-stageprofile: all-stageprofile-mpc
13193TARGET-stageprofile-mpc = $(TARGET-mpc)
13194all-stageprofile-mpc: configure-stageprofile-mpc
13195 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13196 @r=`${PWD_COMMAND}`; export r; \
13197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13198 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13199 $(HOST_EXPORTS) \
13200 $(POSTSTAGE1_HOST_EXPORTS) \
13201 cd $(HOST_SUBDIR)/mpc && \
13202 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13203 CFLAGS="$(STAGEprofile_CFLAGS)" \
13204 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13205 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13206 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13207 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13208 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13209 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13210 TFLAGS="$(STAGEprofile_TFLAGS)" \
13211 $(TARGET-stageprofile-mpc)
13212
13213maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13214clean-stageprofile: clean-stageprofile-mpc
13215clean-stageprofile-mpc:
13216 @if [ $(current_stage) = stageprofile ]; then \
13217 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13218 else \
13219 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13220 $(MAKE) stageprofile-start; \
13221 fi; \
13222 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13223 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13224@endif mpc-bootstrap
13225
13226
13227.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13228.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13229maybe-all-stagefeedback-mpc:
13230maybe-clean-stagefeedback-mpc:
13231@if mpc-bootstrap
13232maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13233all-stagefeedback: all-stagefeedback-mpc
13234TARGET-stagefeedback-mpc = $(TARGET-mpc)
13235all-stagefeedback-mpc: configure-stagefeedback-mpc
13236 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13237 @r=`${PWD_COMMAND}`; export r; \
13238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13239 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13240 $(HOST_EXPORTS) \
13241 $(POSTSTAGE1_HOST_EXPORTS) \
13242 cd $(HOST_SUBDIR)/mpc && \
13243 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13244 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13245 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13246 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13247 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13248 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13249 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13250 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13251 TFLAGS="$(STAGEfeedback_TFLAGS)" \
13252 $(TARGET-stagefeedback-mpc)
13253
13254maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13255clean-stagefeedback: clean-stagefeedback-mpc
13256clean-stagefeedback-mpc:
13257 @if [ $(current_stage) = stagefeedback ]; then \
13258 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13259 else \
13260 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13261 $(MAKE) stagefeedback-start; \
13262 fi; \
13263 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13264 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13265@endif mpc-bootstrap
13266
13267
13268
13269
13270
13271.PHONY: check-mpc maybe-check-mpc
13272maybe-check-mpc:
13273@if mpc
13274maybe-check-mpc: check-mpc
13275
13276check-mpc:
13277 @: $(MAKE); $(unstage)
13278 @r=`${PWD_COMMAND}`; export r; \
13279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13280 $(HOST_EXPORTS) \
13281 (cd $(HOST_SUBDIR)/mpc && \
13282 $(MAKE) $(FLAGS_TO_PASS) check)
13283
13284@endif mpc
13285
13286.PHONY: install-mpc maybe-install-mpc
13287maybe-install-mpc:
13288@if mpc
13289maybe-install-mpc: install-mpc
13290
13291install-mpc:
13292
13293@endif mpc
13294
13295.PHONY: install-strip-mpc maybe-install-strip-mpc
13296maybe-install-strip-mpc:
13297@if mpc
13298maybe-install-strip-mpc: install-strip-mpc
13299
13300install-strip-mpc:
13301
13302@endif mpc
13303
13304# Other targets (info, dvi, pdf, etc.)
13305
13306.PHONY: maybe-info-mpc info-mpc
13307maybe-info-mpc:
13308@if mpc
13309maybe-info-mpc: info-mpc
13310
13311info-mpc: \
13312 configure-mpc
13313 @[ -f ./mpc/Makefile ] || exit 0; \
13314 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13316 $(HOST_EXPORTS) \
13317 for flag in $(EXTRA_HOST_FLAGS) ; do \
13318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13319 done; \
a90ef4bf
JM
13320 echo "Doing info in mpc" ; \
13321 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13324 "RANLIB=$${RANLIB}" \
0c24b341 13325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13326 info) \
13327 || exit 1
d3ed111c 13328
a90ef4bf 13329@endif mpc
d3ed111c 13330
a90ef4bf
JM
13331.PHONY: maybe-dvi-mpc dvi-mpc
13332maybe-dvi-mpc:
13333@if mpc
13334maybe-dvi-mpc: dvi-mpc
d3ed111c 13335
a90ef4bf
JM
13336dvi-mpc: \
13337 configure-mpc
13338 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13339 r=`${PWD_COMMAND}`; export r; \
13340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13341 $(HOST_EXPORTS) \
13342 for flag in $(EXTRA_HOST_FLAGS) ; do \
13343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13344 done; \
a90ef4bf
JM
13345 echo "Doing dvi in mpc" ; \
13346 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13349 "RANLIB=$${RANLIB}" \
0c24b341 13350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13351 dvi) \
13352 || exit 1
d3ed111c 13353
a90ef4bf 13354@endif mpc
d3ed111c 13355
a90ef4bf
JM
13356.PHONY: maybe-pdf-mpc pdf-mpc
13357maybe-pdf-mpc:
13358@if mpc
13359maybe-pdf-mpc: pdf-mpc
56a8fe78 13360
a90ef4bf
JM
13361pdf-mpc: \
13362 configure-mpc
13363 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13364 r=`${PWD_COMMAND}`; export r; \
13365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13366 $(HOST_EXPORTS) \
13367 for flag in $(EXTRA_HOST_FLAGS) ; do \
13368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13369 done; \
a90ef4bf
JM
13370 echo "Doing pdf in mpc" ; \
13371 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13374 "RANLIB=$${RANLIB}" \
0c24b341 13375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13376 pdf) \
13377 || exit 1
56a8fe78 13378
a90ef4bf 13379@endif mpc
56a8fe78 13380
a90ef4bf
JM
13381.PHONY: maybe-html-mpc html-mpc
13382maybe-html-mpc:
13383@if mpc
13384maybe-html-mpc: html-mpc
6d389afc 13385
a90ef4bf
JM
13386html-mpc: \
13387 configure-mpc
13388 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13389 r=`${PWD_COMMAND}`; export r; \
13390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13391 $(HOST_EXPORTS) \
13392 for flag in $(EXTRA_HOST_FLAGS) ; do \
13393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13394 done; \
a90ef4bf
JM
13395 echo "Doing html in mpc" ; \
13396 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13399 "RANLIB=$${RANLIB}" \
0c24b341 13400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13401 html) \
13402 || exit 1
13403
a90ef4bf 13404@endif mpc
d3ed111c 13405
a90ef4bf
JM
13406.PHONY: maybe-TAGS-mpc TAGS-mpc
13407maybe-TAGS-mpc:
13408@if mpc
13409maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13410
a90ef4bf
JM
13411TAGS-mpc: \
13412 configure-mpc
13413 @[ -f ./mpc/Makefile ] || exit 0; \
13414 r=`${PWD_COMMAND}`; export r; \
13415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13416 $(HOST_EXPORTS) \
13417 for flag in $(EXTRA_HOST_FLAGS) ; do \
13418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13419 done; \
a90ef4bf
JM
13420 echo "Doing TAGS in mpc" ; \
13421 (cd $(HOST_SUBDIR)/mpc && \
13422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13424 "RANLIB=$${RANLIB}" \
13425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13426 TAGS) \
13427 || exit 1
13428
13429@endif mpc
13430
13431.PHONY: maybe-install-info-mpc install-info-mpc
13432maybe-install-info-mpc:
13433@if mpc
13434maybe-install-info-mpc: install-info-mpc
13435
13436install-info-mpc: \
13437 configure-mpc \
13438 info-mpc
13439 @[ -f ./mpc/Makefile ] || exit 0; \
13440 r=`${PWD_COMMAND}`; export r; \
13441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13442 $(HOST_EXPORTS) \
13443 for flag in $(EXTRA_HOST_FLAGS) ; do \
13444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13445 done; \
13446 echo "Doing install-info in mpc" ; \
13447 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13450 "RANLIB=$${RANLIB}" \
0c24b341 13451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13452 install-info) \
13453 || exit 1
d3ed111c 13454
a90ef4bf 13455@endif mpc
d3ed111c 13456
a90ef4bf
JM
13457.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13458maybe-install-pdf-mpc:
13459@if mpc
13460maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13461
a90ef4bf
JM
13462install-pdf-mpc: \
13463 configure-mpc \
13464 pdf-mpc
13465 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13466 r=`${PWD_COMMAND}`; export r; \
13467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13468 $(HOST_EXPORTS) \
13469 for flag in $(EXTRA_HOST_FLAGS) ; do \
13470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13471 done; \
a90ef4bf
JM
13472 echo "Doing install-pdf in mpc" ; \
13473 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13476 "RANLIB=$${RANLIB}" \
0c24b341 13477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13478 install-pdf) \
13479 || exit 1
a3ca38d2 13480
a90ef4bf 13481@endif mpc
a3ca38d2 13482
a90ef4bf
JM
13483.PHONY: maybe-install-html-mpc install-html-mpc
13484maybe-install-html-mpc:
13485@if mpc
13486maybe-install-html-mpc: install-html-mpc
108a6f8e 13487
a90ef4bf
JM
13488install-html-mpc: \
13489 configure-mpc \
13490 html-mpc
13491 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13492 r=`${PWD_COMMAND}`; export r; \
13493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13494 $(HOST_EXPORTS) \
13495 for flag in $(EXTRA_HOST_FLAGS) ; do \
13496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13497 done; \
a90ef4bf
JM
13498 echo "Doing install-html in mpc" ; \
13499 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13502 "RANLIB=$${RANLIB}" \
0c24b341 13503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13504 install-html) \
13505 || exit 1
13506
a90ef4bf 13507@endif mpc
108a6f8e 13508
a90ef4bf
JM
13509.PHONY: maybe-installcheck-mpc installcheck-mpc
13510maybe-installcheck-mpc:
13511@if mpc
13512maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13513
a90ef4bf
JM
13514installcheck-mpc: \
13515 configure-mpc
13516 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13517 r=`${PWD_COMMAND}`; export r; \
13518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13519 $(HOST_EXPORTS) \
13520 for flag in $(EXTRA_HOST_FLAGS) ; do \
13521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13522 done; \
a90ef4bf
JM
13523 echo "Doing installcheck in mpc" ; \
13524 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13527 "RANLIB=$${RANLIB}" \
0c24b341 13528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13529 installcheck) \
13530 || exit 1
d3ed111c 13531
a90ef4bf 13532@endif mpc
d3ed111c 13533
a90ef4bf
JM
13534.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13535maybe-mostlyclean-mpc:
13536@if mpc
13537maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13538
a90ef4bf
JM
13539mostlyclean-mpc:
13540 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13541 r=`${PWD_COMMAND}`; export r; \
13542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13543 $(HOST_EXPORTS) \
13544 for flag in $(EXTRA_HOST_FLAGS) ; do \
13545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13546 done; \
a90ef4bf
JM
13547 echo "Doing mostlyclean in mpc" ; \
13548 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13551 "RANLIB=$${RANLIB}" \
0c24b341 13552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13553 mostlyclean) \
13554 || exit 1
13555
a90ef4bf 13556@endif mpc
d3ed111c 13557
a90ef4bf
JM
13558.PHONY: maybe-clean-mpc clean-mpc
13559maybe-clean-mpc:
13560@if mpc
13561maybe-clean-mpc: clean-mpc
d3ed111c 13562
a90ef4bf
JM
13563clean-mpc:
13564 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13565 r=`${PWD_COMMAND}`; export r; \
13566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13567 $(HOST_EXPORTS) \
13568 for flag in $(EXTRA_HOST_FLAGS) ; do \
13569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13570 done; \
a90ef4bf
JM
13571 echo "Doing clean in mpc" ; \
13572 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13575 "RANLIB=$${RANLIB}" \
0c24b341 13576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13577 clean) \
13578 || exit 1
13579
a90ef4bf 13580@endif mpc
d3ed111c 13581
a90ef4bf
JM
13582.PHONY: maybe-distclean-mpc distclean-mpc
13583maybe-distclean-mpc:
13584@if mpc
13585maybe-distclean-mpc: distclean-mpc
d3ed111c 13586
a90ef4bf
JM
13587distclean-mpc:
13588 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13589 r=`${PWD_COMMAND}`; export r; \
13590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13591 $(HOST_EXPORTS) \
13592 for flag in $(EXTRA_HOST_FLAGS) ; do \
13593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13594 done; \
a90ef4bf
JM
13595 echo "Doing distclean in mpc" ; \
13596 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13599 "RANLIB=$${RANLIB}" \
0c24b341 13600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13601 distclean) \
13602 || exit 1
13603
a90ef4bf 13604@endif mpc
d3ed111c 13605
a90ef4bf
JM
13606.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13607maybe-maintainer-clean-mpc:
13608@if mpc
13609maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13610
a90ef4bf
JM
13611maintainer-clean-mpc:
13612 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13613 r=`${PWD_COMMAND}`; export r; \
13614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13615 $(HOST_EXPORTS) \
13616 for flag in $(EXTRA_HOST_FLAGS) ; do \
13617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13618 done; \
a90ef4bf
JM
13619 echo "Doing maintainer-clean in mpc" ; \
13620 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13623 "RANLIB=$${RANLIB}" \
0c24b341 13624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13625 maintainer-clean) \
13626 || exit 1
13627
a90ef4bf 13628@endif mpc
d3ed111c
GK
13629
13630
a7254363 13631
7ec59b9e
L
13632.PHONY: configure-isl maybe-configure-isl
13633maybe-configure-isl:
4f0ef2d8 13634@if gcc-bootstrap
7ec59b9e 13635configure-isl: stage_current
4f0ef2d8 13636@endif gcc-bootstrap
7ec59b9e
L
13637@if isl
13638maybe-configure-isl: configure-isl
13639configure-isl:
c52c6897 13640 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e
L
13642 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
13643 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
1f53ca9a 13644 $(HOST_EXPORTS) \
7ec59b9e
L
13645 echo Configuring in $(HOST_SUBDIR)/isl; \
13646 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13647 case $(srcdir) in \
b00612cc 13648 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13649 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13650 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13651 esac; \
1b6c0831
L
13652 module_srcdir=isl; \
13653 $(SHELL) \
13654 $$s/$$module_srcdir/configure \
13655 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13656 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13657 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13658 || exit 1
7ec59b9e 13659@endif isl
4fa63067 13660
a7254363
PB
13661
13662
7ec59b9e
L
13663.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13664maybe-configure-stage1-isl:
13665@if isl-bootstrap
13666maybe-configure-stage1-isl: configure-stage1-isl
13667configure-stage1-isl:
a90ef4bf 13668 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13669 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13670 @r=`${PWD_COMMAND}`; export r; \
13671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13672 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13673 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13674 $(HOST_EXPORTS) \
13675 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13676 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13677 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13678 echo Configuring stage 1 in $(HOST_SUBDIR)/isl ; \
13679 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13680 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13681 case $(srcdir) in \
13682 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13683 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13684 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13685 esac; \
1b6c0831
L
13686 module_srcdir=isl; \
13687 $(SHELL) $$s/$$module_srcdir/configure \
13688 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13689 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13690 --target=${target_alias} \
13691 \
a90ef4bf 13692 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13693 --disable-shared @extra_isl_gmp_configure_flags@
13694@endif isl-bootstrap
13695
13696.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13697maybe-configure-stage2-isl:
13698@if isl-bootstrap
13699maybe-configure-stage2-isl: configure-stage2-isl
13700configure-stage2-isl:
a90ef4bf 13701 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13702 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13703 @r=`${PWD_COMMAND}`; export r; \
13704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13705 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13706 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13707 $(HOST_EXPORTS) \
13708 $(POSTSTAGE1_HOST_EXPORTS) \
13709 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13710 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13711 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13712 echo Configuring stage 2 in $(HOST_SUBDIR)/isl ; \
13713 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13714 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13715 case $(srcdir) in \
13716 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13717 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13718 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13719 esac; \
1b6c0831
L
13720 module_srcdir=isl; \
13721 $(SHELL) $$s/$$module_srcdir/configure \
13722 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13723 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13724 --target=${target_alias} \
13725 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13726 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13727 --disable-shared @extra_isl_gmp_configure_flags@
13728@endif isl-bootstrap
13729
13730.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13731maybe-configure-stage3-isl:
13732@if isl-bootstrap
13733maybe-configure-stage3-isl: configure-stage3-isl
13734configure-stage3-isl:
a90ef4bf 13735 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13736 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13737 @r=`${PWD_COMMAND}`; export r; \
13738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13739 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13740 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13741 $(HOST_EXPORTS) \
13742 $(POSTSTAGE1_HOST_EXPORTS) \
13743 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13744 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13745 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13746 echo Configuring stage 3 in $(HOST_SUBDIR)/isl ; \
13747 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13748 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13749 case $(srcdir) in \
13750 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13751 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13752 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13753 esac; \
1b6c0831
L
13754 module_srcdir=isl; \
13755 $(SHELL) $$s/$$module_srcdir/configure \
13756 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13757 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13758 --target=${target_alias} \
13759 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13760 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13761 --disable-shared @extra_isl_gmp_configure_flags@
13762@endif isl-bootstrap
13763
13764.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13765maybe-configure-stage4-isl:
13766@if isl-bootstrap
13767maybe-configure-stage4-isl: configure-stage4-isl
13768configure-stage4-isl:
a90ef4bf 13769 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13770 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13771 @r=`${PWD_COMMAND}`; export r; \
13772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13773 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13774 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13775 $(HOST_EXPORTS) \
13776 $(POSTSTAGE1_HOST_EXPORTS) \
13777 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13778 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13779 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13780 echo Configuring stage 4 in $(HOST_SUBDIR)/isl ; \
13781 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13782 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13783 case $(srcdir) in \
13784 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13785 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13786 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13787 esac; \
1b6c0831
L
13788 module_srcdir=isl; \
13789 $(SHELL) $$s/$$module_srcdir/configure \
13790 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13791 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13792 --target=${target_alias} \
13793 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13794 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13795 --disable-shared @extra_isl_gmp_configure_flags@
13796@endif isl-bootstrap
13797
13798.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13799maybe-configure-stageprofile-isl:
13800@if isl-bootstrap
13801maybe-configure-stageprofile-isl: configure-stageprofile-isl
13802configure-stageprofile-isl:
a90ef4bf 13803 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13804 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13805 @r=`${PWD_COMMAND}`; export r; \
13806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13807 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13808 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13809 $(HOST_EXPORTS) \
13810 $(POSTSTAGE1_HOST_EXPORTS) \
13811 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13812 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13813 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13814 echo Configuring stage profile in $(HOST_SUBDIR)/isl ; \
13815 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13816 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13817 case $(srcdir) in \
13818 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13819 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13820 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13821 esac; \
1b6c0831
L
13822 module_srcdir=isl; \
13823 $(SHELL) $$s/$$module_srcdir/configure \
13824 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13825 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13826 --target=${target_alias} \
13827 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13828 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13829 --disable-shared @extra_isl_gmp_configure_flags@
13830@endif isl-bootstrap
13831
13832.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13833maybe-configure-stagefeedback-isl:
13834@if isl-bootstrap
13835maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13836configure-stagefeedback-isl:
a90ef4bf 13837 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13838 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13839 @r=`${PWD_COMMAND}`; export r; \
13840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13841 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13842 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13843 $(HOST_EXPORTS) \
13844 $(POSTSTAGE1_HOST_EXPORTS) \
13845 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13846 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13847 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13848 echo Configuring stage feedback in $(HOST_SUBDIR)/isl ; \
13849 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13850 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13851 case $(srcdir) in \
13852 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13853 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13854 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13855 esac; \
1b6c0831
L
13856 module_srcdir=isl; \
13857 $(SHELL) $$s/$$module_srcdir/configure \
13858 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13859 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13860 --target=${target_alias} \
13861 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13862 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13863 --disable-shared @extra_isl_gmp_configure_flags@
13864@endif isl-bootstrap
d545f33b 13865
4fa63067 13866
4fa63067
NN
13867
13868
4fa63067 13869
7ec59b9e
L
13870.PHONY: all-isl maybe-all-isl
13871maybe-all-isl:
a90ef4bf 13872@if gcc-bootstrap
7ec59b9e 13873all-isl: stage_current
a90ef4bf 13874@endif gcc-bootstrap
7ec59b9e
L
13875@if isl
13876TARGET-isl=all
13877maybe-all-isl: all-isl
13878all-isl: configure-isl
4fa63067
NN
13879 @r=`${PWD_COMMAND}`; export r; \
13880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13881 $(HOST_EXPORTS) \
7ec59b9e 13882 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13883 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13884 $(TARGET-isl))
13885@endif isl
13886
13887
13888
13889.PHONY: all-stage1-isl maybe-all-stage1-isl
13890.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13891maybe-all-stage1-isl:
13892maybe-clean-stage1-isl:
13893@if isl-bootstrap
13894maybe-all-stage1-isl: all-stage1-isl
13895all-stage1: all-stage1-isl
13896TARGET-stage1-isl = $(TARGET-isl)
13897all-stage1-isl: configure-stage1-isl
a90ef4bf 13898 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13899 @r=`${PWD_COMMAND}`; export r; \
13900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13901 TFLAGS="$(STAGE1_TFLAGS)"; \
13902 $(HOST_EXPORTS) \
7ec59b9e 13903 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13904 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13905 CFLAGS="$(STAGE1_CFLAGS)" \
13906 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13907 LIBCFLAGS="$(LIBCFLAGS)" \
13908 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13909 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13910 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13911 $(EXTRA_HOST_FLAGS) \
13912 $(STAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13913 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13914 $(TARGET-stage1-isl)
9b980aa1 13915
7ec59b9e
L
13916maybe-clean-stage1-isl: clean-stage1-isl
13917clean-stage1: clean-stage1-isl
13918clean-stage1-isl:
a90ef4bf 13919 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 13920 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13921 else \
7ec59b9e 13922 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13923 $(MAKE) stage1-start; \
13924 fi; \
7ec59b9e 13925 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 13926 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13927 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13928@endif isl-bootstrap
13929
13930
13931.PHONY: all-stage2-isl maybe-all-stage2-isl
13932.PHONY: clean-stage2-isl maybe-clean-stage2-isl
13933maybe-all-stage2-isl:
13934maybe-clean-stage2-isl:
13935@if isl-bootstrap
13936maybe-all-stage2-isl: all-stage2-isl
13937all-stage2: all-stage2-isl
13938TARGET-stage2-isl = $(TARGET-isl)
13939all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
13940 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13941 @r=`${PWD_COMMAND}`; export r; \
13942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13943 TFLAGS="$(STAGE2_TFLAGS)"; \
13944 $(HOST_EXPORTS) \
13945 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13946 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13947 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13948 CFLAGS="$(STAGE2_CFLAGS)" \
13949 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13950 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13951 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13952 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13953 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13954 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13955 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 13956 $(TARGET-stage2-isl)
a90ef4bf 13957
7ec59b9e
L
13958maybe-clean-stage2-isl: clean-stage2-isl
13959clean-stage2: clean-stage2-isl
13960clean-stage2-isl:
a90ef4bf 13961 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 13962 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13963 else \
7ec59b9e 13964 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13965 $(MAKE) stage2-start; \
13966 fi; \
7ec59b9e 13967 cd $(HOST_SUBDIR)/isl && \
b3676d82 13968 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13969@endif isl-bootstrap
13970
13971
13972.PHONY: all-stage3-isl maybe-all-stage3-isl
13973.PHONY: clean-stage3-isl maybe-clean-stage3-isl
13974maybe-all-stage3-isl:
13975maybe-clean-stage3-isl:
13976@if isl-bootstrap
13977maybe-all-stage3-isl: all-stage3-isl
13978all-stage3: all-stage3-isl
13979TARGET-stage3-isl = $(TARGET-isl)
13980all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
13981 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13982 @r=`${PWD_COMMAND}`; export r; \
13983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13984 TFLAGS="$(STAGE3_TFLAGS)"; \
13985 $(HOST_EXPORTS) \
13986 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13987 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13988 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13989 CFLAGS="$(STAGE3_CFLAGS)" \
13990 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13991 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13992 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13993 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13994 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13995 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13996 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 13997 $(TARGET-stage3-isl)
a90ef4bf 13998
7ec59b9e
L
13999maybe-clean-stage3-isl: clean-stage3-isl
14000clean-stage3: clean-stage3-isl
14001clean-stage3-isl:
a90ef4bf 14002 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14003 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14004 else \
7ec59b9e 14005 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14006 $(MAKE) stage3-start; \
14007 fi; \
7ec59b9e 14008 cd $(HOST_SUBDIR)/isl && \
b3676d82 14009 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14010@endif isl-bootstrap
14011
14012
14013.PHONY: all-stage4-isl maybe-all-stage4-isl
14014.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14015maybe-all-stage4-isl:
14016maybe-clean-stage4-isl:
14017@if isl-bootstrap
14018maybe-all-stage4-isl: all-stage4-isl
14019all-stage4: all-stage4-isl
14020TARGET-stage4-isl = $(TARGET-isl)
14021all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14022 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14023 @r=`${PWD_COMMAND}`; export r; \
14024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14025 TFLAGS="$(STAGE4_TFLAGS)"; \
14026 $(HOST_EXPORTS) \
14027 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14028 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14029 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14030 CFLAGS="$(STAGE4_CFLAGS)" \
14031 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14032 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14033 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14034 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14035 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14036 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14037 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14038 $(TARGET-stage4-isl)
a90ef4bf 14039
7ec59b9e
L
14040maybe-clean-stage4-isl: clean-stage4-isl
14041clean-stage4: clean-stage4-isl
14042clean-stage4-isl:
a90ef4bf 14043 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14044 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14045 else \
7ec59b9e 14046 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14047 $(MAKE) stage4-start; \
14048 fi; \
7ec59b9e 14049 cd $(HOST_SUBDIR)/isl && \
b3676d82 14050 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14051@endif isl-bootstrap
14052
14053
14054.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14055.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14056maybe-all-stageprofile-isl:
14057maybe-clean-stageprofile-isl:
14058@if isl-bootstrap
14059maybe-all-stageprofile-isl: all-stageprofile-isl
14060all-stageprofile: all-stageprofile-isl
14061TARGET-stageprofile-isl = $(TARGET-isl)
14062all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14063 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14064 @r=`${PWD_COMMAND}`; export r; \
14065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14066 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14067 $(HOST_EXPORTS) \
14068 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14069 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14070 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14071 CFLAGS="$(STAGEprofile_CFLAGS)" \
14072 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14073 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14074 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14075 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14076 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14077 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14078 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14079 $(TARGET-stageprofile-isl)
a90ef4bf 14080
7ec59b9e
L
14081maybe-clean-stageprofile-isl: clean-stageprofile-isl
14082clean-stageprofile: clean-stageprofile-isl
14083clean-stageprofile-isl:
a90ef4bf 14084 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14085 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14086 else \
7ec59b9e 14087 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14088 $(MAKE) stageprofile-start; \
14089 fi; \
7ec59b9e 14090 cd $(HOST_SUBDIR)/isl && \
b3676d82 14091 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14092@endif isl-bootstrap
14093
14094
14095.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14096.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14097maybe-all-stagefeedback-isl:
14098maybe-clean-stagefeedback-isl:
14099@if isl-bootstrap
14100maybe-all-stagefeedback-isl: all-stagefeedback-isl
14101all-stagefeedback: all-stagefeedback-isl
14102TARGET-stagefeedback-isl = $(TARGET-isl)
14103all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14104 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14105 @r=`${PWD_COMMAND}`; export r; \
14106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14107 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14108 $(HOST_EXPORTS) \
14109 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14110 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14111 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14112 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14113 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14114 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14115 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14116 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14117 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14118 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14119 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14120 $(TARGET-stagefeedback-isl)
a90ef4bf 14121
7ec59b9e
L
14122maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14123clean-stagefeedback: clean-stagefeedback-isl
14124clean-stagefeedback-isl:
a90ef4bf 14125 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14126 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14127 else \
7ec59b9e 14128 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14129 $(MAKE) stagefeedback-start; \
14130 fi; \
7ec59b9e 14131 cd $(HOST_SUBDIR)/isl && \
b3676d82 14132 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14133@endif isl-bootstrap
a90ef4bf
JM
14134
14135
14136
14137
14138
7ec59b9e
L
14139.PHONY: check-isl maybe-check-isl
14140maybe-check-isl:
14141@if isl
14142maybe-check-isl: check-isl
a90ef4bf 14143
7ec59b9e 14144check-isl:
0aed8855 14145 @: $(MAKE); $(unstage)
a90ef4bf
JM
14146 @r=`${PWD_COMMAND}`; export r; \
14147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14148 $(HOST_EXPORTS) \
7ec59b9e
L
14149 (cd $(HOST_SUBDIR)/isl && \
14150 $(MAKE) $(FLAGS_TO_PASS) V=1 check)
a90ef4bf 14151
7ec59b9e 14152@endif isl
a90ef4bf 14153
7ec59b9e
L
14154.PHONY: install-isl maybe-install-isl
14155maybe-install-isl:
14156@if isl
14157maybe-install-isl: install-isl
a90ef4bf 14158
7ec59b9e 14159install-isl:
a90ef4bf 14160
7ec59b9e 14161@endif isl
a90ef4bf 14162
7ec59b9e
L
14163.PHONY: install-strip-isl maybe-install-strip-isl
14164maybe-install-strip-isl:
14165@if isl
14166maybe-install-strip-isl: install-strip-isl
a90ef4bf 14167
7ec59b9e 14168install-strip-isl:
a90ef4bf 14169
7ec59b9e 14170@endif isl
a90ef4bf
JM
14171
14172# Other targets (info, dvi, pdf, etc.)
14173
7ec59b9e
L
14174.PHONY: maybe-info-isl info-isl
14175maybe-info-isl:
14176@if isl
14177maybe-info-isl: info-isl
a90ef4bf 14178
7ec59b9e
L
14179info-isl: \
14180 configure-isl
14181 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14182 r=`${PWD_COMMAND}`; export r; \
14183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14184 $(HOST_EXPORTS) \
7ec59b9e 14185 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14187 done; \
7ec59b9e
L
14188 echo "Doing info in isl" ; \
14189 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14192 "RANLIB=$${RANLIB}" \
0c24b341 14193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14194 info) \
2a4cbe27
NN
14195 || exit 1
14196
7ec59b9e 14197@endif isl
2a4cbe27 14198
7ec59b9e
L
14199.PHONY: maybe-dvi-isl dvi-isl
14200maybe-dvi-isl:
14201@if isl
14202maybe-dvi-isl: dvi-isl
2a4cbe27 14203
7ec59b9e
L
14204dvi-isl: \
14205 configure-isl
14206 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14207 r=`${PWD_COMMAND}`; export r; \
14208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14209 $(HOST_EXPORTS) \
7ec59b9e 14210 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14212 done; \
7ec59b9e
L
14213 echo "Doing dvi in isl" ; \
14214 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14217 "RANLIB=$${RANLIB}" \
0c24b341 14218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14219 dvi) \
2a4cbe27
NN
14220 || exit 1
14221
7ec59b9e 14222@endif isl
2a4cbe27 14223
7ec59b9e
L
14224.PHONY: maybe-pdf-isl pdf-isl
14225maybe-pdf-isl:
14226@if isl
14227maybe-pdf-isl: pdf-isl
56a8fe78 14228
7ec59b9e
L
14229pdf-isl: \
14230 configure-isl
14231 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14232 r=`${PWD_COMMAND}`; export r; \
14233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14234 $(HOST_EXPORTS) \
7ec59b9e 14235 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14237 done; \
7ec59b9e
L
14238 echo "Doing pdf in isl" ; \
14239 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14242 "RANLIB=$${RANLIB}" \
0c24b341 14243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14244 pdf) \
14245 || exit 1
14246
7ec59b9e 14247@endif isl
56a8fe78 14248
7ec59b9e
L
14249.PHONY: maybe-html-isl html-isl
14250maybe-html-isl:
14251@if isl
14252maybe-html-isl: html-isl
6d389afc 14253
7ec59b9e
L
14254html-isl: \
14255 configure-isl
14256 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14257 r=`${PWD_COMMAND}`; export r; \
14258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14259 $(HOST_EXPORTS) \
7ec59b9e 14260 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14262 done; \
7ec59b9e
L
14263 echo "Doing html in isl" ; \
14264 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14267 "RANLIB=$${RANLIB}" \
0c24b341 14268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14269 html) \
14270 || exit 1
14271
7ec59b9e 14272@endif isl
6d389afc 14273
7ec59b9e
L
14274.PHONY: maybe-TAGS-isl TAGS-isl
14275maybe-TAGS-isl:
14276@if isl
14277maybe-TAGS-isl: TAGS-isl
2a4cbe27 14278
7ec59b9e
L
14279TAGS-isl: \
14280 configure-isl
14281 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14282 r=`${PWD_COMMAND}`; export r; \
14283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14284 $(HOST_EXPORTS) \
7ec59b9e 14285 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14287 done; \
7ec59b9e
L
14288 echo "Doing TAGS in isl" ; \
14289 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14292 "RANLIB=$${RANLIB}" \
0c24b341 14293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14294 TAGS) \
2a4cbe27
NN
14295 || exit 1
14296
7ec59b9e 14297@endif isl
2a4cbe27 14298
7ec59b9e
L
14299.PHONY: maybe-install-info-isl install-info-isl
14300maybe-install-info-isl:
14301@if isl
14302maybe-install-info-isl: install-info-isl
2a4cbe27 14303
7ec59b9e
L
14304install-info-isl: \
14305 configure-isl \
14306 info-isl
14307 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14308 r=`${PWD_COMMAND}`; export r; \
14309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14310 $(HOST_EXPORTS) \
7ec59b9e 14311 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14313 done; \
7ec59b9e
L
14314 echo "Doing install-info in isl" ; \
14315 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14318 "RANLIB=$${RANLIB}" \
0c24b341 14319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14320 install-info) \
2a4cbe27
NN
14321 || exit 1
14322
7ec59b9e 14323@endif isl
2a4cbe27 14324
7ec59b9e
L
14325.PHONY: maybe-install-pdf-isl install-pdf-isl
14326maybe-install-pdf-isl:
14327@if isl
14328maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14329
7ec59b9e
L
14330install-pdf-isl: \
14331 configure-isl \
14332 pdf-isl
14333 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14334 r=`${PWD_COMMAND}`; export r; \
14335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14336 $(HOST_EXPORTS) \
7ec59b9e 14337 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14339 done; \
7ec59b9e
L
14340 echo "Doing install-pdf in isl" ; \
14341 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14344 "RANLIB=$${RANLIB}" \
0c24b341 14345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14346 install-pdf) \
14347 || exit 1
14348
7ec59b9e 14349@endif isl
a3ca38d2 14350
7ec59b9e
L
14351.PHONY: maybe-install-html-isl install-html-isl
14352maybe-install-html-isl:
14353@if isl
14354maybe-install-html-isl: install-html-isl
108a6f8e 14355
7ec59b9e
L
14356install-html-isl: \
14357 configure-isl \
14358 html-isl
14359 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14360 r=`${PWD_COMMAND}`; export r; \
14361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14362 $(HOST_EXPORTS) \
7ec59b9e 14363 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14365 done; \
7ec59b9e
L
14366 echo "Doing install-html in isl" ; \
14367 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14370 "RANLIB=$${RANLIB}" \
0c24b341 14371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14372 install-html) \
14373 || exit 1
14374
7ec59b9e 14375@endif isl
108a6f8e 14376
7ec59b9e
L
14377.PHONY: maybe-installcheck-isl installcheck-isl
14378maybe-installcheck-isl:
14379@if isl
14380maybe-installcheck-isl: installcheck-isl
2a4cbe27 14381
7ec59b9e
L
14382installcheck-isl: \
14383 configure-isl
14384 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14385 r=`${PWD_COMMAND}`; export r; \
14386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14387 $(HOST_EXPORTS) \
7ec59b9e 14388 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14390 done; \
7ec59b9e
L
14391 echo "Doing installcheck in isl" ; \
14392 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14395 "RANLIB=$${RANLIB}" \
0c24b341 14396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14397 installcheck) \
2a4cbe27
NN
14398 || exit 1
14399
7ec59b9e 14400@endif isl
2a4cbe27 14401
7ec59b9e
L
14402.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14403maybe-mostlyclean-isl:
14404@if isl
14405maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14406
7ec59b9e
L
14407mostlyclean-isl:
14408 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14409 r=`${PWD_COMMAND}`; export r; \
14410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14411 $(HOST_EXPORTS) \
7ec59b9e 14412 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14414 done; \
7ec59b9e
L
14415 echo "Doing mostlyclean in isl" ; \
14416 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14419 "RANLIB=$${RANLIB}" \
0c24b341 14420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14421 mostlyclean) \
2a4cbe27
NN
14422 || exit 1
14423
7ec59b9e 14424@endif isl
2a4cbe27 14425
7ec59b9e
L
14426.PHONY: maybe-clean-isl clean-isl
14427maybe-clean-isl:
14428@if isl
14429maybe-clean-isl: clean-isl
2a4cbe27 14430
7ec59b9e
L
14431clean-isl:
14432 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14433 r=`${PWD_COMMAND}`; export r; \
14434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14435 $(HOST_EXPORTS) \
7ec59b9e 14436 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14438 done; \
7ec59b9e
L
14439 echo "Doing clean in isl" ; \
14440 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14443 "RANLIB=$${RANLIB}" \
0c24b341 14444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14445 clean) \
2a4cbe27
NN
14446 || exit 1
14447
7ec59b9e 14448@endif isl
2a4cbe27 14449
7ec59b9e
L
14450.PHONY: maybe-distclean-isl distclean-isl
14451maybe-distclean-isl:
14452@if isl
14453maybe-distclean-isl: distclean-isl
2a4cbe27 14454
7ec59b9e
L
14455distclean-isl:
14456 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14457 r=`${PWD_COMMAND}`; export r; \
14458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14459 $(HOST_EXPORTS) \
7ec59b9e 14460 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14462 done; \
7ec59b9e
L
14463 echo "Doing distclean in isl" ; \
14464 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14467 "RANLIB=$${RANLIB}" \
0c24b341 14468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14469 distclean) \
2a4cbe27
NN
14470 || exit 1
14471
7ec59b9e 14472@endif isl
2a4cbe27 14473
7ec59b9e
L
14474.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14475maybe-maintainer-clean-isl:
14476@if isl
14477maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14478
7ec59b9e
L
14479maintainer-clean-isl:
14480 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14481 r=`${PWD_COMMAND}`; export r; \
14482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14483 $(HOST_EXPORTS) \
7ec59b9e 14484 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14486 done; \
7ec59b9e
L
14487 echo "Doing maintainer-clean in isl" ; \
14488 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14491 "RANLIB=$${RANLIB}" \
0c24b341 14492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14493 maintainer-clean) \
2a4cbe27
NN
14494 || exit 1
14495
7ec59b9e 14496@endif isl
2a4cbe27 14497
2a4cbe27 14498
a7254363 14499
a90ef4bf
JM
14500.PHONY: configure-libelf maybe-configure-libelf
14501maybe-configure-libelf:
c52c6897 14502@if gcc-bootstrap
a90ef4bf 14503configure-libelf: stage_current
c52c6897 14504@endif gcc-bootstrap
a90ef4bf
JM
14505@if libelf
14506maybe-configure-libelf: configure-libelf
14507configure-libelf:
c52c6897
PB
14508 @r=`${PWD_COMMAND}`; export r; \
14509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14510 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
14511 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
1f53ca9a 14512 $(HOST_EXPORTS) \
a90ef4bf
JM
14513 echo Configuring in $(HOST_SUBDIR)/libelf; \
14514 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14515 case $(srcdir) in \
b00612cc 14516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14517 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14519 esac; \
1b6c0831
L
14520 module_srcdir=libelf; \
14521 $(SHELL) \
14522 $$s/$$module_srcdir/configure \
14523 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14524 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14525 --target=${target_alias} --disable-shared \
4fa63067 14526 || exit 1
a90ef4bf 14527@endif libelf
4fa63067 14528
a7254363
PB
14529
14530
a90ef4bf
JM
14531.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14532maybe-configure-stage1-libelf:
14533@if libelf-bootstrap
14534maybe-configure-stage1-libelf: configure-stage1-libelf
14535configure-stage1-libelf:
c52c6897 14536 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14537 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14538 @r=`${PWD_COMMAND}`; export r; \
14539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14540 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14541 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14542 $(HOST_EXPORTS) \
8ee82aff 14543 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14544 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14545 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14546 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf ; \
14547 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14548 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14549 case $(srcdir) in \
14550 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14551 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14552 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14553 esac; \
1b6c0831
L
14554 module_srcdir=libelf; \
14555 $(SHELL) $$s/$$module_srcdir/configure \
14556 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14557 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14558 --target=${target_alias} \
14559 \
a90ef4bf
JM
14560 $(STAGE1_CONFIGURE_FLAGS) \
14561 --disable-shared
14562@endif libelf-bootstrap
d545f33b 14563
a90ef4bf
JM
14564.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14565maybe-configure-stage2-libelf:
14566@if libelf-bootstrap
14567maybe-configure-stage2-libelf: configure-stage2-libelf
14568configure-stage2-libelf:
c52c6897 14569 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14570 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14571 @r=`${PWD_COMMAND}`; export r; \
14572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14573 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14574 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14575 $(HOST_EXPORTS) \
1b05fbbd 14576 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14577 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14578 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14579 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14580 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf ; \
14581 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14582 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14583 case $(srcdir) in \
14584 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14585 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14586 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14587 esac; \
1b6c0831
L
14588 module_srcdir=libelf; \
14589 $(SHELL) $$s/$$module_srcdir/configure \
14590 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14591 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14592 --target=${target_alias} \
14593 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14594 $(STAGE2_CONFIGURE_FLAGS) \
14595 --disable-shared
14596@endif libelf-bootstrap
8520c408 14597
a90ef4bf
JM
14598.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14599maybe-configure-stage3-libelf:
14600@if libelf-bootstrap
14601maybe-configure-stage3-libelf: configure-stage3-libelf
14602configure-stage3-libelf:
c52c6897 14603 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14604 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14605 @r=`${PWD_COMMAND}`; export r; \
14606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14607 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14608 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14609 $(HOST_EXPORTS) \
1b05fbbd 14610 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14611 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14612 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14613 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14614 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf ; \
14615 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14616 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14617 case $(srcdir) in \
14618 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14619 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14620 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14621 esac; \
1b6c0831
L
14622 module_srcdir=libelf; \
14623 $(SHELL) $$s/$$module_srcdir/configure \
14624 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14625 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14626 --target=${target_alias} \
14627 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14628 $(STAGE3_CONFIGURE_FLAGS) \
14629 --disable-shared
14630@endif libelf-bootstrap
8520c408 14631
a90ef4bf
JM
14632.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14633maybe-configure-stage4-libelf:
14634@if libelf-bootstrap
14635maybe-configure-stage4-libelf: configure-stage4-libelf
14636configure-stage4-libelf:
c52c6897 14637 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14638 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14639 @r=`${PWD_COMMAND}`; export r; \
14640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14641 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14642 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14643 $(HOST_EXPORTS) \
1b05fbbd 14644 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14645 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14646 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14647 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14648 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf ; \
14649 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14650 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14651 case $(srcdir) in \
14652 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14653 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14654 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14655 esac; \
1b6c0831
L
14656 module_srcdir=libelf; \
14657 $(SHELL) $$s/$$module_srcdir/configure \
14658 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14659 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14660 --target=${target_alias} \
14661 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14662 $(STAGE4_CONFIGURE_FLAGS) \
14663 --disable-shared
14664@endif libelf-bootstrap
d545f33b 14665
a90ef4bf
JM
14666.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14667maybe-configure-stageprofile-libelf:
14668@if libelf-bootstrap
14669maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14670configure-stageprofile-libelf:
c52c6897 14671 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14672 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14673 @r=`${PWD_COMMAND}`; export r; \
14674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14675 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14676 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14677 $(HOST_EXPORTS) \
1b05fbbd
AO
14678 $(POSTSTAGE1_HOST_EXPORTS) \
14679 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14680 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14681 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14682 echo Configuring stage profile in $(HOST_SUBDIR)/libelf ; \
14683 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14684 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14685 case $(srcdir) in \
14686 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14687 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14688 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14689 esac; \
1b6c0831
L
14690 module_srcdir=libelf; \
14691 $(SHELL) $$s/$$module_srcdir/configure \
14692 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14693 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14694 --target=${target_alias} \
14695 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14696 $(STAGEprofile_CONFIGURE_FLAGS) \
14697 --disable-shared
14698@endif libelf-bootstrap
d545f33b 14699
a90ef4bf
JM
14700.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14701maybe-configure-stagefeedback-libelf:
14702@if libelf-bootstrap
14703maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14704configure-stagefeedback-libelf:
c52c6897 14705 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14706 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14707 @r=`${PWD_COMMAND}`; export r; \
14708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14709 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14710 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14711 $(HOST_EXPORTS) \
1b05fbbd
AO
14712 $(POSTSTAGE1_HOST_EXPORTS) \
14713 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14714 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14715 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14716 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf ; \
14717 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14718 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14719 case $(srcdir) in \
14720 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14721 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14722 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14723 esac; \
1b6c0831
L
14724 module_srcdir=libelf; \
14725 $(SHELL) $$s/$$module_srcdir/configure \
14726 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14727 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14728 --target=${target_alias} \
14729 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14730 $(STAGEfeedback_CONFIGURE_FLAGS) \
14731 --disable-shared
14732@endif libelf-bootstrap
d545f33b
PB
14733
14734
14735
14736
14737
a90ef4bf
JM
14738.PHONY: all-libelf maybe-all-libelf
14739maybe-all-libelf:
4f0ef2d8 14740@if gcc-bootstrap
a90ef4bf 14741all-libelf: stage_current
4f0ef2d8 14742@endif gcc-bootstrap
a90ef4bf
JM
14743@if libelf
14744TARGET-libelf=all
14745maybe-all-libelf: all-libelf
14746all-libelf: configure-libelf
c52c6897 14747 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14749 $(HOST_EXPORTS) \
a90ef4bf 14750 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14751 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14752 $(TARGET-libelf))
14753@endif libelf
4fa63067 14754
a7254363 14755
d545f33b 14756
a90ef4bf
JM
14757.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14758.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14759maybe-all-stage1-libelf:
14760maybe-clean-stage1-libelf:
14761@if libelf-bootstrap
14762maybe-all-stage1-libelf: all-stage1-libelf
14763all-stage1: all-stage1-libelf
14764TARGET-stage1-libelf = $(TARGET-libelf)
14765all-stage1-libelf: configure-stage1-libelf
c52c6897 14766 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14767 @r=`${PWD_COMMAND}`; export r; \
14768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14769 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14770 $(HOST_EXPORTS) \
a90ef4bf 14771 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14772 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14773 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14774 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14775 LIBCFLAGS="$(LIBCFLAGS)" \
14776 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14777 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14778 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14779 $(EXTRA_HOST_FLAGS) \
14780 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 14781 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14782 $(TARGET-stage1-libelf)
d545f33b 14783
a90ef4bf
JM
14784maybe-clean-stage1-libelf: clean-stage1-libelf
14785clean-stage1: clean-stage1-libelf
14786clean-stage1-libelf:
9dbaa842 14787 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14788 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14789 else \
a90ef4bf 14790 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14791 $(MAKE) stage1-start; \
14792 fi; \
a90ef4bf 14793 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14794 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14795 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14796@endif libelf-bootstrap
d545f33b
PB
14797
14798
a90ef4bf
JM
14799.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14800.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14801maybe-all-stage2-libelf:
14802maybe-clean-stage2-libelf:
14803@if libelf-bootstrap
14804maybe-all-stage2-libelf: all-stage2-libelf
14805all-stage2: all-stage2-libelf
14806TARGET-stage2-libelf = $(TARGET-libelf)
14807all-stage2-libelf: configure-stage2-libelf
c52c6897 14808 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14809 @r=`${PWD_COMMAND}`; export r; \
14810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14811 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14812 $(HOST_EXPORTS) \
1f53ca9a 14813 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14814 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14815 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14816 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14817 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14818 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14819 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14820 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14821 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14822 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14823 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14824 $(TARGET-stage2-libelf)
d545f33b 14825
a90ef4bf
JM
14826maybe-clean-stage2-libelf: clean-stage2-libelf
14827clean-stage2: clean-stage2-libelf
14828clean-stage2-libelf:
9dbaa842 14829 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14830 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14831 else \
a90ef4bf 14832 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14833 $(MAKE) stage2-start; \
14834 fi; \
a90ef4bf 14835 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14836 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14837@endif libelf-bootstrap
d545f33b
PB
14838
14839
a90ef4bf
JM
14840.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14841.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14842maybe-all-stage3-libelf:
14843maybe-clean-stage3-libelf:
14844@if libelf-bootstrap
14845maybe-all-stage3-libelf: all-stage3-libelf
14846all-stage3: all-stage3-libelf
14847TARGET-stage3-libelf = $(TARGET-libelf)
14848all-stage3-libelf: configure-stage3-libelf
c52c6897 14849 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14850 @r=`${PWD_COMMAND}`; export r; \
14851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14852 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14853 $(HOST_EXPORTS) \
1f53ca9a 14854 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14855 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14856 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14857 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14858 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14859 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14860 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14861 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14862 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14863 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14864 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14865 $(TARGET-stage3-libelf)
d545f33b 14866
a90ef4bf
JM
14867maybe-clean-stage3-libelf: clean-stage3-libelf
14868clean-stage3: clean-stage3-libelf
14869clean-stage3-libelf:
9dbaa842 14870 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14871 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14872 else \
a90ef4bf 14873 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14874 $(MAKE) stage3-start; \
14875 fi; \
a90ef4bf 14876 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14877 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14878@endif libelf-bootstrap
d545f33b
PB
14879
14880
a90ef4bf
JM
14881.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14882.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14883maybe-all-stage4-libelf:
14884maybe-clean-stage4-libelf:
14885@if libelf-bootstrap
14886maybe-all-stage4-libelf: all-stage4-libelf
14887all-stage4: all-stage4-libelf
14888TARGET-stage4-libelf = $(TARGET-libelf)
14889all-stage4-libelf: configure-stage4-libelf
c52c6897 14890 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14891 @r=`${PWD_COMMAND}`; export r; \
14892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14893 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14894 $(HOST_EXPORTS) \
1f53ca9a 14895 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14896 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14897 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14898 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14899 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14900 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14901 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14902 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14903 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14904 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14905 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14906 $(TARGET-stage4-libelf)
d545f33b 14907
a90ef4bf
JM
14908maybe-clean-stage4-libelf: clean-stage4-libelf
14909clean-stage4: clean-stage4-libelf
14910clean-stage4-libelf:
9dbaa842 14911 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 14912 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14913 else \
a90ef4bf 14914 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14915 $(MAKE) stage4-start; \
14916 fi; \
a90ef4bf 14917 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14918 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14919@endif libelf-bootstrap
d545f33b
PB
14920
14921
a90ef4bf
JM
14922.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
14923.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
14924maybe-all-stageprofile-libelf:
14925maybe-clean-stageprofile-libelf:
14926@if libelf-bootstrap
14927maybe-all-stageprofile-libelf: all-stageprofile-libelf
14928all-stageprofile: all-stageprofile-libelf
14929TARGET-stageprofile-libelf = $(TARGET-libelf)
14930all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 14931 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
14932 @r=`${PWD_COMMAND}`; export r; \
14933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14934 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 14935 $(HOST_EXPORTS) \
1f53ca9a 14936 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14937 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14938 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14939 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 14940 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
14941 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14942 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14943 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14944 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14945 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14946 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 14947 $(TARGET-stageprofile-libelf)
d545f33b 14948
a90ef4bf
JM
14949maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
14950clean-stageprofile: clean-stageprofile-libelf
14951clean-stageprofile-libelf:
9dbaa842 14952 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 14953 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14954 else \
a90ef4bf 14955 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14956 $(MAKE) stageprofile-start; \
14957 fi; \
a90ef4bf 14958 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14959 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14960@endif libelf-bootstrap
d545f33b
PB
14961
14962
a90ef4bf
JM
14963.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
14964.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
14965maybe-all-stagefeedback-libelf:
14966maybe-clean-stagefeedback-libelf:
14967@if libelf-bootstrap
14968maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
14969all-stagefeedback: all-stagefeedback-libelf
14970TARGET-stagefeedback-libelf = $(TARGET-libelf)
14971all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 14972 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
14973 @r=`${PWD_COMMAND}`; export r; \
14974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14975 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 14976 $(HOST_EXPORTS) \
1f53ca9a 14977 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14978 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14979 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14980 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 14981 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
14982 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14983 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14984 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14985 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14986 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14987 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 14988 $(TARGET-stagefeedback-libelf)
d545f33b 14989
a90ef4bf
JM
14990maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
14991clean-stagefeedback: clean-stagefeedback-libelf
14992clean-stagefeedback-libelf:
9dbaa842 14993 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 14994 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14995 else \
a90ef4bf 14996 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14997 $(MAKE) stagefeedback-start; \
14998 fi; \
a90ef4bf 14999 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15000 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15001@endif libelf-bootstrap
d545f33b
PB
15002
15003
15004
15005
15006
a90ef4bf
JM
15007.PHONY: check-libelf maybe-check-libelf
15008maybe-check-libelf:
15009@if libelf
15010maybe-check-libelf: check-libelf
4fa63067 15011
a90ef4bf 15012check-libelf:
0aed8855 15013 @: $(MAKE); $(unstage)
4fa63067
NN
15014 @r=`${PWD_COMMAND}`; export r; \
15015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15016 $(HOST_EXPORTS) \
a90ef4bf
JM
15017 (cd $(HOST_SUBDIR)/libelf && \
15018 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 15019
a90ef4bf 15020@endif libelf
4fa63067 15021
a90ef4bf
JM
15022.PHONY: install-libelf maybe-install-libelf
15023maybe-install-libelf:
15024@if libelf
15025maybe-install-libelf: install-libelf
4fa63067 15026
a90ef4bf 15027install-libelf:
4fa63067 15028
a90ef4bf 15029@endif libelf
4fa63067 15030
a90ef4bf
JM
15031.PHONY: install-strip-libelf maybe-install-strip-libelf
15032maybe-install-strip-libelf:
15033@if libelf
15034maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15035
a90ef4bf 15036install-strip-libelf:
9b980aa1 15037
a90ef4bf 15038@endif libelf
9b980aa1 15039
56a8fe78 15040# Other targets (info, dvi, pdf, etc.)
4fa63067 15041
a90ef4bf
JM
15042.PHONY: maybe-info-libelf info-libelf
15043maybe-info-libelf:
15044@if libelf
15045maybe-info-libelf: info-libelf
4fa63067 15046
a90ef4bf
JM
15047info-libelf: \
15048 configure-libelf
15049 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15050 r=`${PWD_COMMAND}`; export r; \
15051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15052 $(HOST_EXPORTS) \
a90ef4bf 15053 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15055 done; \
a90ef4bf
JM
15056 echo "Doing info in libelf" ; \
15057 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15060 "RANLIB=$${RANLIB}" \
0c24b341 15061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15062 info) \
2a4cbe27
NN
15063 || exit 1
15064
a90ef4bf 15065@endif libelf
2a4cbe27 15066
a90ef4bf
JM
15067.PHONY: maybe-dvi-libelf dvi-libelf
15068maybe-dvi-libelf:
15069@if libelf
15070maybe-dvi-libelf: dvi-libelf
2a4cbe27 15071
a90ef4bf
JM
15072dvi-libelf: \
15073 configure-libelf
15074 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15075 r=`${PWD_COMMAND}`; export r; \
15076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15077 $(HOST_EXPORTS) \
a90ef4bf 15078 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15080 done; \
a90ef4bf
JM
15081 echo "Doing dvi in libelf" ; \
15082 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15085 "RANLIB=$${RANLIB}" \
0c24b341 15086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15087 dvi) \
2a4cbe27
NN
15088 || exit 1
15089
a90ef4bf 15090@endif libelf
2a4cbe27 15091
a90ef4bf
JM
15092.PHONY: maybe-pdf-libelf pdf-libelf
15093maybe-pdf-libelf:
15094@if libelf
15095maybe-pdf-libelf: pdf-libelf
56a8fe78 15096
a90ef4bf
JM
15097pdf-libelf: \
15098 configure-libelf
15099 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15100 r=`${PWD_COMMAND}`; export r; \
15101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15102 $(HOST_EXPORTS) \
a90ef4bf 15103 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15105 done; \
a90ef4bf
JM
15106 echo "Doing pdf in libelf" ; \
15107 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15110 "RANLIB=$${RANLIB}" \
0c24b341 15111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15112 pdf) \
15113 || exit 1
15114
a90ef4bf 15115@endif libelf
56a8fe78 15116
a90ef4bf
JM
15117.PHONY: maybe-html-libelf html-libelf
15118maybe-html-libelf:
15119@if libelf
15120maybe-html-libelf: html-libelf
6d389afc 15121
a90ef4bf
JM
15122html-libelf: \
15123 configure-libelf
15124 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15125 r=`${PWD_COMMAND}`; export r; \
15126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15127 $(HOST_EXPORTS) \
a90ef4bf 15128 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15130 done; \
a90ef4bf
JM
15131 echo "Doing html in libelf" ; \
15132 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15135 "RANLIB=$${RANLIB}" \
0c24b341 15136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15137 html) \
15138 || exit 1
15139
a90ef4bf 15140@endif libelf
6d389afc 15141
a90ef4bf
JM
15142.PHONY: maybe-TAGS-libelf TAGS-libelf
15143maybe-TAGS-libelf:
15144@if libelf
15145maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15146
a90ef4bf
JM
15147TAGS-libelf: \
15148 configure-libelf
15149 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15150 r=`${PWD_COMMAND}`; export r; \
15151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15152 $(HOST_EXPORTS) \
a90ef4bf 15153 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15155 done; \
a90ef4bf
JM
15156 echo "Doing TAGS in libelf" ; \
15157 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15160 "RANLIB=$${RANLIB}" \
0c24b341 15161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15162 TAGS) \
2a4cbe27
NN
15163 || exit 1
15164
a90ef4bf 15165@endif libelf
2a4cbe27 15166
a90ef4bf
JM
15167.PHONY: maybe-install-info-libelf install-info-libelf
15168maybe-install-info-libelf:
15169@if libelf
15170maybe-install-info-libelf: install-info-libelf
a2592b1b 15171
a90ef4bf
JM
15172install-info-libelf: \
15173 configure-libelf \
15174 info-libelf
15175 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15176 r=`${PWD_COMMAND}`; export r; \
15177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15178 $(HOST_EXPORTS) \
a90ef4bf 15179 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15181 done; \
a90ef4bf
JM
15182 echo "Doing install-info in libelf" ; \
15183 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15186 "RANLIB=$${RANLIB}" \
0c24b341 15187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15188 install-info) \
a2592b1b
DD
15189 || exit 1
15190
a90ef4bf 15191@endif libelf
a2592b1b 15192
a90ef4bf
JM
15193.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15194maybe-install-pdf-libelf:
15195@if libelf
15196maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15197
a90ef4bf
JM
15198install-pdf-libelf: \
15199 configure-libelf \
15200 pdf-libelf
15201 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15202 r=`${PWD_COMMAND}`; export r; \
15203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15204 $(HOST_EXPORTS) \
a90ef4bf 15205 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15207 done; \
a90ef4bf
JM
15208 echo "Doing install-pdf in libelf" ; \
15209 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15212 "RANLIB=$${RANLIB}" \
0c24b341 15213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15214 install-pdf) \
15215 || exit 1
15216
a90ef4bf 15217@endif libelf
a3ca38d2 15218
a90ef4bf
JM
15219.PHONY: maybe-install-html-libelf install-html-libelf
15220maybe-install-html-libelf:
15221@if libelf
15222maybe-install-html-libelf: install-html-libelf
108a6f8e 15223
a90ef4bf
JM
15224install-html-libelf: \
15225 configure-libelf \
15226 html-libelf
15227 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15228 r=`${PWD_COMMAND}`; export r; \
15229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15230 $(HOST_EXPORTS) \
a90ef4bf 15231 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15233 done; \
a90ef4bf
JM
15234 echo "Doing install-html in libelf" ; \
15235 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15238 "RANLIB=$${RANLIB}" \
0c24b341 15239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15240 install-html) \
15241 || exit 1
15242
a90ef4bf 15243@endif libelf
108a6f8e 15244
a90ef4bf
JM
15245.PHONY: maybe-installcheck-libelf installcheck-libelf
15246maybe-installcheck-libelf:
15247@if libelf
15248maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15249
a90ef4bf
JM
15250installcheck-libelf: \
15251 configure-libelf
15252 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15253 r=`${PWD_COMMAND}`; export r; \
15254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15255 $(HOST_EXPORTS) \
a90ef4bf 15256 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15258 done; \
a90ef4bf
JM
15259 echo "Doing installcheck in libelf" ; \
15260 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15263 "RANLIB=$${RANLIB}" \
0c24b341 15264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15265 installcheck) \
4fa63067 15266 || exit 1
2a4cbe27 15267
a90ef4bf 15268@endif libelf
4fa63067 15269
a90ef4bf
JM
15270.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15271maybe-mostlyclean-libelf:
15272@if libelf
15273maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15274
a90ef4bf
JM
15275mostlyclean-libelf:
15276 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15277 r=`${PWD_COMMAND}`; export r; \
15278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15279 $(HOST_EXPORTS) \
a90ef4bf 15280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15282 done; \
a90ef4bf
JM
15283 echo "Doing mostlyclean in libelf" ; \
15284 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15287 "RANLIB=$${RANLIB}" \
0c24b341 15288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15289 mostlyclean) \
2a4cbe27
NN
15290 || exit 1
15291
a90ef4bf 15292@endif libelf
2a4cbe27 15293
a90ef4bf
JM
15294.PHONY: maybe-clean-libelf clean-libelf
15295maybe-clean-libelf:
15296@if libelf
15297maybe-clean-libelf: clean-libelf
2a4cbe27 15298
a90ef4bf
JM
15299clean-libelf:
15300 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15301 r=`${PWD_COMMAND}`; export r; \
15302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15303 $(HOST_EXPORTS) \
a90ef4bf 15304 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15306 done; \
a90ef4bf
JM
15307 echo "Doing clean in libelf" ; \
15308 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15311 "RANLIB=$${RANLIB}" \
0c24b341 15312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15313 clean) \
2a4cbe27
NN
15314 || exit 1
15315
a90ef4bf 15316@endif libelf
2a4cbe27 15317
a90ef4bf
JM
15318.PHONY: maybe-distclean-libelf distclean-libelf
15319maybe-distclean-libelf:
15320@if libelf
15321maybe-distclean-libelf: distclean-libelf
2a4cbe27 15322
a90ef4bf
JM
15323distclean-libelf:
15324 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15325 r=`${PWD_COMMAND}`; export r; \
15326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15327 $(HOST_EXPORTS) \
a90ef4bf 15328 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15330 done; \
a90ef4bf
JM
15331 echo "Doing distclean in libelf" ; \
15332 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15335 "RANLIB=$${RANLIB}" \
0c24b341 15336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15337 distclean) \
2a4cbe27
NN
15338 || exit 1
15339
a90ef4bf 15340@endif libelf
2a4cbe27 15341
a90ef4bf
JM
15342.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15343maybe-maintainer-clean-libelf:
15344@if libelf
15345maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15346
a90ef4bf
JM
15347maintainer-clean-libelf:
15348 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15349 r=`${PWD_COMMAND}`; export r; \
15350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15351 $(HOST_EXPORTS) \
a90ef4bf 15352 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15354 done; \
a90ef4bf
JM
15355 echo "Doing maintainer-clean in libelf" ; \
15356 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15359 "RANLIB=$${RANLIB}" \
0c24b341 15360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15361 maintainer-clean) \
2a4cbe27
NN
15362 || exit 1
15363
a90ef4bf 15364@endif libelf
2a4cbe27 15365
2a4cbe27 15366
a7254363 15367
a90ef4bf
JM
15368.PHONY: configure-gold maybe-configure-gold
15369maybe-configure-gold:
4f0ef2d8 15370@if gcc-bootstrap
a90ef4bf 15371configure-gold: stage_current
4f0ef2d8 15372@endif gcc-bootstrap
a90ef4bf
JM
15373@if gold
15374maybe-configure-gold: configure-gold
15375configure-gold:
c52c6897 15376 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15378 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15379 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
1f53ca9a 15380 $(HOST_EXPORTS) \
a90ef4bf
JM
15381 echo Configuring in $(HOST_SUBDIR)/gold; \
15382 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15383 case $(srcdir) in \
b00612cc 15384 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15385 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15386 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15387 esac; \
1b6c0831
L
15388 module_srcdir=gold; \
15389 $(SHELL) \
15390 $$s/$$module_srcdir/configure \
15391 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15392 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15393 --target=${target_alias} \
4fa63067 15394 || exit 1
a90ef4bf 15395@endif gold
a7254363 15396
d545f33b
PB
15397
15398
a90ef4bf
JM
15399.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15400maybe-configure-stage1-gold:
15401@if gold-bootstrap
15402maybe-configure-stage1-gold: configure-stage1-gold
15403configure-stage1-gold:
15404 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15405 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15406 @r=`${PWD_COMMAND}`; export r; \
15407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15408 TFLAGS="$(STAGE1_TFLAGS)"; \
15409 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15410 $(HOST_EXPORTS) \
15411 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15412 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15413 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
15414 echo Configuring stage 1 in $(HOST_SUBDIR)/gold ; \
15415 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15416 cd $(HOST_SUBDIR)/gold || exit 1; \
15417 case $(srcdir) in \
15418 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15419 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15420 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15421 esac; \
1b6c0831
L
15422 module_srcdir=gold; \
15423 $(SHELL) $$s/$$module_srcdir/configure \
15424 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15425 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15426 --target=${target_alias} \
15427 \
a90ef4bf
JM
15428 $(STAGE1_CONFIGURE_FLAGS)
15429@endif gold-bootstrap
4fa63067 15430
a90ef4bf
JM
15431.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15432maybe-configure-stage2-gold:
15433@if gold-bootstrap
15434maybe-configure-stage2-gold: configure-stage2-gold
15435configure-stage2-gold:
15436 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15437 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15438 @r=`${PWD_COMMAND}`; export r; \
15439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15440 TFLAGS="$(STAGE2_TFLAGS)"; \
15441 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15442 $(HOST_EXPORTS) \
a90ef4bf
JM
15443 $(POSTSTAGE1_HOST_EXPORTS) \
15444 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15445 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15446 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
15447 echo Configuring stage 2 in $(HOST_SUBDIR)/gold ; \
15448 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15449 cd $(HOST_SUBDIR)/gold || exit 1; \
15450 case $(srcdir) in \
15451 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15452 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15453 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15454 esac; \
1b6c0831
L
15455 module_srcdir=gold; \
15456 $(SHELL) $$s/$$module_srcdir/configure \
15457 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15458 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15459 --target=${target_alias} \
15460 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15461 $(STAGE2_CONFIGURE_FLAGS)
15462@endif gold-bootstrap
4fa63067 15463
a90ef4bf
JM
15464.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15465maybe-configure-stage3-gold:
15466@if gold-bootstrap
15467maybe-configure-stage3-gold: configure-stage3-gold
15468configure-stage3-gold:
15469 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15470 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15471 @r=`${PWD_COMMAND}`; export r; \
15472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15473 TFLAGS="$(STAGE3_TFLAGS)"; \
15474 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15475 $(HOST_EXPORTS) \
a90ef4bf
JM
15476 $(POSTSTAGE1_HOST_EXPORTS) \
15477 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15478 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15479 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
15480 echo Configuring stage 3 in $(HOST_SUBDIR)/gold ; \
15481 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15482 cd $(HOST_SUBDIR)/gold || exit 1; \
15483 case $(srcdir) in \
15484 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15485 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15486 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15487 esac; \
1b6c0831
L
15488 module_srcdir=gold; \
15489 $(SHELL) $$s/$$module_srcdir/configure \
15490 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15491 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15492 --target=${target_alias} \
15493 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15494 $(STAGE3_CONFIGURE_FLAGS)
15495@endif gold-bootstrap
9b980aa1 15496
a90ef4bf
JM
15497.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15498maybe-configure-stage4-gold:
15499@if gold-bootstrap
15500maybe-configure-stage4-gold: configure-stage4-gold
15501configure-stage4-gold:
15502 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15503 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15504 @r=`${PWD_COMMAND}`; export r; \
15505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15506 TFLAGS="$(STAGE4_TFLAGS)"; \
15507 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15508 $(HOST_EXPORTS) \
a90ef4bf
JM
15509 $(POSTSTAGE1_HOST_EXPORTS) \
15510 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15511 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15512 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
15513 echo Configuring stage 4 in $(HOST_SUBDIR)/gold ; \
15514 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15515 cd $(HOST_SUBDIR)/gold || exit 1; \
15516 case $(srcdir) in \
15517 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15518 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15519 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15520 esac; \
1b6c0831
L
15521 module_srcdir=gold; \
15522 $(SHELL) $$s/$$module_srcdir/configure \
15523 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15524 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15525 --target=${target_alias} \
15526 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15527 $(STAGE4_CONFIGURE_FLAGS)
15528@endif gold-bootstrap
4fa63067 15529
a90ef4bf
JM
15530.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15531maybe-configure-stageprofile-gold:
15532@if gold-bootstrap
15533maybe-configure-stageprofile-gold: configure-stageprofile-gold
15534configure-stageprofile-gold:
15535 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15536 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15537 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15539 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15540 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15541 $(HOST_EXPORTS) \
a90ef4bf
JM
15542 $(POSTSTAGE1_HOST_EXPORTS) \
15543 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15544 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15545 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
15546 echo Configuring stage profile in $(HOST_SUBDIR)/gold ; \
15547 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15548 cd $(HOST_SUBDIR)/gold || exit 1; \
15549 case $(srcdir) in \
15550 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15551 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15552 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15553 esac; \
1b6c0831
L
15554 module_srcdir=gold; \
15555 $(SHELL) $$s/$$module_srcdir/configure \
15556 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15557 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15558 --target=${target_alias} \
15559 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15560 $(STAGEprofile_CONFIGURE_FLAGS)
15561@endif gold-bootstrap
2a4cbe27 15562
a90ef4bf
JM
15563.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15564maybe-configure-stagefeedback-gold:
15565@if gold-bootstrap
15566maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15567configure-stagefeedback-gold:
15568 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15569 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15570 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15572 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15573 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15574 $(HOST_EXPORTS) \
a90ef4bf
JM
15575 $(POSTSTAGE1_HOST_EXPORTS) \
15576 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15577 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15578 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
15579 echo Configuring stage feedback in $(HOST_SUBDIR)/gold ; \
15580 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15581 cd $(HOST_SUBDIR)/gold || exit 1; \
15582 case $(srcdir) in \
15583 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15584 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15585 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15586 esac; \
1b6c0831
L
15587 module_srcdir=gold; \
15588 $(SHELL) $$s/$$module_srcdir/configure \
15589 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15590 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15591 --target=${target_alias} \
15592 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15593 $(STAGEfeedback_CONFIGURE_FLAGS)
15594@endif gold-bootstrap
2a4cbe27 15595
56a8fe78 15596
56a8fe78 15597
56a8fe78 15598
6d389afc 15599
a90ef4bf
JM
15600.PHONY: all-gold maybe-all-gold
15601maybe-all-gold:
15602@if gcc-bootstrap
15603all-gold: stage_current
15604@endif gcc-bootstrap
15605@if gold
15606TARGET-gold=all
15607maybe-all-gold: all-gold
15608all-gold: configure-gold
15609 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15611 $(HOST_EXPORTS) \
15612 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15613 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15614 $(TARGET-gold))
15615@endif gold
6d389afc 15616
6d389afc 15617
2a4cbe27 15618
a90ef4bf
JM
15619.PHONY: all-stage1-gold maybe-all-stage1-gold
15620.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15621maybe-all-stage1-gold:
15622maybe-clean-stage1-gold:
15623@if gold-bootstrap
15624maybe-all-stage1-gold: all-stage1-gold
15625all-stage1: all-stage1-gold
15626TARGET-stage1-gold = $(TARGET-gold)
15627all-stage1-gold: configure-stage1-gold
15628 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15629 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15631 TFLAGS="$(STAGE1_TFLAGS)"; \
15632 $(HOST_EXPORTS) \
15633 cd $(HOST_SUBDIR)/gold && \
15634 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15635 CFLAGS="$(STAGE1_CFLAGS)" \
15636 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15637 LIBCFLAGS="$(LIBCFLAGS)" \
15638 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15639 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15640 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15641 $(EXTRA_HOST_FLAGS) \
15642 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15643 TFLAGS="$(STAGE1_TFLAGS)" \
15644 $(TARGET-stage1-gold)
2a4cbe27 15645
a90ef4bf
JM
15646maybe-clean-stage1-gold: clean-stage1-gold
15647clean-stage1: clean-stage1-gold
15648clean-stage1-gold:
15649 @if [ $(current_stage) = stage1 ]; then \
15650 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15651 else \
15652 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15653 $(MAKE) stage1-start; \
15654 fi; \
15655 cd $(HOST_SUBDIR)/gold && \
15656 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15657 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15658@endif gold-bootstrap
2a4cbe27 15659
2a4cbe27 15660
a90ef4bf
JM
15661.PHONY: all-stage2-gold maybe-all-stage2-gold
15662.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15663maybe-all-stage2-gold:
15664maybe-clean-stage2-gold:
15665@if gold-bootstrap
15666maybe-all-stage2-gold: all-stage2-gold
15667all-stage2: all-stage2-gold
15668TARGET-stage2-gold = $(TARGET-gold)
15669all-stage2-gold: configure-stage2-gold
15670 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15671 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15673 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15674 $(HOST_EXPORTS) \
a90ef4bf
JM
15675 $(POSTSTAGE1_HOST_EXPORTS) \
15676 cd $(HOST_SUBDIR)/gold && \
15677 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15678 CFLAGS="$(STAGE2_CFLAGS)" \
15679 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15680 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15681 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15682 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15683 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15684 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15685 TFLAGS="$(STAGE2_TFLAGS)" \
15686 $(TARGET-stage2-gold)
2a4cbe27 15687
a90ef4bf
JM
15688maybe-clean-stage2-gold: clean-stage2-gold
15689clean-stage2: clean-stage2-gold
15690clean-stage2-gold:
15691 @if [ $(current_stage) = stage2 ]; then \
15692 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15693 else \
15694 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15695 $(MAKE) stage2-start; \
15696 fi; \
15697 cd $(HOST_SUBDIR)/gold && \
b3676d82 15698 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15699@endif gold-bootstrap
2a4cbe27 15700
a3ca38d2 15701
a90ef4bf
JM
15702.PHONY: all-stage3-gold maybe-all-stage3-gold
15703.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15704maybe-all-stage3-gold:
15705maybe-clean-stage3-gold:
15706@if gold-bootstrap
15707maybe-all-stage3-gold: all-stage3-gold
15708all-stage3: all-stage3-gold
15709TARGET-stage3-gold = $(TARGET-gold)
15710all-stage3-gold: configure-stage3-gold
15711 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15712 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15714 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15715 $(HOST_EXPORTS) \
a90ef4bf
JM
15716 $(POSTSTAGE1_HOST_EXPORTS) \
15717 cd $(HOST_SUBDIR)/gold && \
15718 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15719 CFLAGS="$(STAGE3_CFLAGS)" \
15720 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15721 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15722 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15723 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15724 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15725 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15726 TFLAGS="$(STAGE3_TFLAGS)" \
15727 $(TARGET-stage3-gold)
2a4cbe27 15728
a90ef4bf
JM
15729maybe-clean-stage3-gold: clean-stage3-gold
15730clean-stage3: clean-stage3-gold
15731clean-stage3-gold:
15732 @if [ $(current_stage) = stage3 ]; then \
15733 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15734 else \
15735 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15736 $(MAKE) stage3-start; \
15737 fi; \
15738 cd $(HOST_SUBDIR)/gold && \
b3676d82 15739 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15740@endif gold-bootstrap
2a4cbe27 15741
2a4cbe27 15742
a90ef4bf
JM
15743.PHONY: all-stage4-gold maybe-all-stage4-gold
15744.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15745maybe-all-stage4-gold:
15746maybe-clean-stage4-gold:
15747@if gold-bootstrap
15748maybe-all-stage4-gold: all-stage4-gold
15749all-stage4: all-stage4-gold
15750TARGET-stage4-gold = $(TARGET-gold)
15751all-stage4-gold: configure-stage4-gold
15752 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15753 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15755 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15756 $(HOST_EXPORTS) \
a90ef4bf
JM
15757 $(POSTSTAGE1_HOST_EXPORTS) \
15758 cd $(HOST_SUBDIR)/gold && \
15759 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15760 CFLAGS="$(STAGE4_CFLAGS)" \
15761 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15762 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15763 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15764 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15765 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15766 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15767 TFLAGS="$(STAGE4_TFLAGS)" \
15768 $(TARGET-stage4-gold)
2a4cbe27 15769
a90ef4bf
JM
15770maybe-clean-stage4-gold: clean-stage4-gold
15771clean-stage4: clean-stage4-gold
15772clean-stage4-gold:
15773 @if [ $(current_stage) = stage4 ]; then \
15774 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15775 else \
15776 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15777 $(MAKE) stage4-start; \
15778 fi; \
15779 cd $(HOST_SUBDIR)/gold && \
b3676d82 15780 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15781@endif gold-bootstrap
2a4cbe27 15782
2a4cbe27 15783
a90ef4bf
JM
15784.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15785.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15786maybe-all-stageprofile-gold:
15787maybe-clean-stageprofile-gold:
15788@if gold-bootstrap
15789maybe-all-stageprofile-gold: all-stageprofile-gold
15790all-stageprofile: all-stageprofile-gold
15791TARGET-stageprofile-gold = $(TARGET-gold)
15792all-stageprofile-gold: configure-stageprofile-gold
15793 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15794 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15796 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15797 $(HOST_EXPORTS) \
a90ef4bf
JM
15798 $(POSTSTAGE1_HOST_EXPORTS) \
15799 cd $(HOST_SUBDIR)/gold && \
15800 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15801 CFLAGS="$(STAGEprofile_CFLAGS)" \
15802 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15803 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15804 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15805 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15806 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15807 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15808 TFLAGS="$(STAGEprofile_TFLAGS)" \
15809 $(TARGET-stageprofile-gold)
2a4cbe27 15810
a90ef4bf
JM
15811maybe-clean-stageprofile-gold: clean-stageprofile-gold
15812clean-stageprofile: clean-stageprofile-gold
15813clean-stageprofile-gold:
15814 @if [ $(current_stage) = stageprofile ]; then \
15815 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15816 else \
15817 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15818 $(MAKE) stageprofile-start; \
15819 fi; \
15820 cd $(HOST_SUBDIR)/gold && \
b3676d82 15821 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15822@endif gold-bootstrap
2a4cbe27 15823
a7254363 15824
a90ef4bf
JM
15825.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15826.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15827maybe-all-stagefeedback-gold:
15828maybe-clean-stagefeedback-gold:
15829@if gold-bootstrap
15830maybe-all-stagefeedback-gold: all-stagefeedback-gold
15831all-stagefeedback: all-stagefeedback-gold
15832TARGET-stagefeedback-gold = $(TARGET-gold)
15833all-stagefeedback-gold: configure-stagefeedback-gold
15834 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15835 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15837 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15838 $(HOST_EXPORTS) \
15839 $(POSTSTAGE1_HOST_EXPORTS) \
15840 cd $(HOST_SUBDIR)/gold && \
15841 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15842 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15843 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15844 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15845 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15846 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15847 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15848 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15849 TFLAGS="$(STAGEfeedback_TFLAGS)" \
15850 $(TARGET-stagefeedback-gold)
d545f33b 15851
a90ef4bf
JM
15852maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15853clean-stagefeedback: clean-stagefeedback-gold
15854clean-stagefeedback-gold:
15855 @if [ $(current_stage) = stagefeedback ]; then \
15856 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15857 else \
15858 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15859 $(MAKE) stagefeedback-start; \
15860 fi; \
15861 cd $(HOST_SUBDIR)/gold && \
b3676d82 15862 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15863@endif gold-bootstrap
d545f33b 15864
4fa63067 15865
a7254363 15866
d545f33b
PB
15867
15868
a90ef4bf
JM
15869.PHONY: check-gold maybe-check-gold
15870maybe-check-gold:
15871@if gold
15872maybe-check-gold: check-gold
4fa63067 15873
a90ef4bf 15874check-gold:
0aed8855 15875 @: $(MAKE); $(unstage)
4fa63067
NN
15876 @r=`${PWD_COMMAND}`; export r; \
15877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15878 $(HOST_EXPORTS) \
a90ef4bf 15879 (cd $(HOST_SUBDIR)/gold && \
b00612cc 15880 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 15881
a90ef4bf 15882@endif gold
4fa63067 15883
a90ef4bf
JM
15884.PHONY: install-gold maybe-install-gold
15885maybe-install-gold:
15886@if gold
15887maybe-install-gold: install-gold
4fa63067 15888
a90ef4bf 15889install-gold: installdirs
0aed8855 15890 @: $(MAKE); $(unstage)
4fa63067
NN
15891 @r=`${PWD_COMMAND}`; export r; \
15892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15893 $(HOST_EXPORTS) \
a90ef4bf 15894 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15895 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15896
a90ef4bf 15897@endif gold
4fa63067 15898
a90ef4bf
JM
15899.PHONY: install-strip-gold maybe-install-strip-gold
15900maybe-install-strip-gold:
15901@if gold
15902maybe-install-strip-gold: install-strip-gold
9b980aa1 15903
a90ef4bf 15904install-strip-gold: installdirs
9b980aa1
RW
15905 @: $(MAKE); $(unstage)
15906 @r=`${PWD_COMMAND}`; export r; \
15907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15908 $(HOST_EXPORTS) \
a90ef4bf 15909 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
15910 $(MAKE) $(FLAGS_TO_PASS) install-strip)
15911
a90ef4bf 15912@endif gold
9b980aa1 15913
56a8fe78 15914# Other targets (info, dvi, pdf, etc.)
4fa63067 15915
a90ef4bf
JM
15916.PHONY: maybe-info-gold info-gold
15917maybe-info-gold:
15918@if gold
15919maybe-info-gold: info-gold
4fa63067 15920
a90ef4bf
JM
15921info-gold: \
15922 configure-gold
15923 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15924 r=`${PWD_COMMAND}`; export r; \
15925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15926 $(HOST_EXPORTS) \
b813574b 15927 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15929 done; \
a90ef4bf
JM
15930 echo "Doing info in gold" ; \
15931 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15934 "RANLIB=$${RANLIB}" \
0c24b341 15935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15936 info) \
2a4cbe27
NN
15937 || exit 1
15938
a90ef4bf 15939@endif gold
2a4cbe27 15940
a90ef4bf
JM
15941.PHONY: maybe-dvi-gold dvi-gold
15942maybe-dvi-gold:
15943@if gold
15944maybe-dvi-gold: dvi-gold
2a4cbe27 15945
a90ef4bf
JM
15946dvi-gold: \
15947 configure-gold
15948 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15949 r=`${PWD_COMMAND}`; export r; \
15950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15951 $(HOST_EXPORTS) \
b813574b 15952 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15954 done; \
a90ef4bf
JM
15955 echo "Doing dvi in gold" ; \
15956 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15959 "RANLIB=$${RANLIB}" \
0c24b341 15960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15961 dvi) \
2a4cbe27
NN
15962 || exit 1
15963
a90ef4bf 15964@endif gold
2a4cbe27 15965
a90ef4bf
JM
15966.PHONY: maybe-pdf-gold pdf-gold
15967maybe-pdf-gold:
15968@if gold
15969maybe-pdf-gold: pdf-gold
56a8fe78 15970
a90ef4bf
JM
15971pdf-gold: \
15972 configure-gold
15973 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
15974 r=`${PWD_COMMAND}`; export r; \
15975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15976 $(HOST_EXPORTS) \
15977 for flag in $(EXTRA_HOST_FLAGS) ; do \
15978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15979 done; \
a90ef4bf
JM
15980 echo "Doing pdf in gold" ; \
15981 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
15982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15984 "RANLIB=$${RANLIB}" \
0c24b341 15985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15986 pdf) \
15987 || exit 1
15988
a90ef4bf 15989@endif gold
56a8fe78 15990
a90ef4bf
JM
15991.PHONY: maybe-html-gold html-gold
15992maybe-html-gold:
15993@if gold
15994maybe-html-gold: html-gold
6d389afc 15995
a90ef4bf
JM
15996html-gold: \
15997 configure-gold
15998 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
15999 r=`${PWD_COMMAND}`; export r; \
16000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16001 $(HOST_EXPORTS) \
16002 for flag in $(EXTRA_HOST_FLAGS) ; do \
16003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16004 done; \
a90ef4bf
JM
16005 echo "Doing html in gold" ; \
16006 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16009 "RANLIB=$${RANLIB}" \
0c24b341 16010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16011 html) \
16012 || exit 1
16013
a90ef4bf 16014@endif gold
6d389afc 16015
a90ef4bf
JM
16016.PHONY: maybe-TAGS-gold TAGS-gold
16017maybe-TAGS-gold:
16018@if gold
16019maybe-TAGS-gold: TAGS-gold
2a4cbe27 16020
a90ef4bf
JM
16021TAGS-gold: \
16022 configure-gold
16023 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16024 r=`${PWD_COMMAND}`; export r; \
16025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16026 $(HOST_EXPORTS) \
b813574b 16027 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16029 done; \
a90ef4bf
JM
16030 echo "Doing TAGS in gold" ; \
16031 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16034 "RANLIB=$${RANLIB}" \
0c24b341 16035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16036 TAGS) \
2a4cbe27
NN
16037 || exit 1
16038
a90ef4bf 16039@endif gold
2a4cbe27 16040
a90ef4bf
JM
16041.PHONY: maybe-install-info-gold install-info-gold
16042maybe-install-info-gold:
16043@if gold
16044maybe-install-info-gold: install-info-gold
b813574b 16045
a90ef4bf
JM
16046install-info-gold: \
16047 configure-gold \
16048 info-gold
16049 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16050 r=`${PWD_COMMAND}`; export r; \
16051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16052 $(HOST_EXPORTS) \
b813574b 16053 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16055 done; \
a90ef4bf
JM
16056 echo "Doing install-info in gold" ; \
16057 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16060 "RANLIB=$${RANLIB}" \
0c24b341 16061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16062 install-info) \
2a4cbe27
NN
16063 || exit 1
16064
a90ef4bf 16065@endif gold
2a4cbe27 16066
a90ef4bf
JM
16067.PHONY: maybe-install-pdf-gold install-pdf-gold
16068maybe-install-pdf-gold:
16069@if gold
16070maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16071
a90ef4bf
JM
16072install-pdf-gold: \
16073 configure-gold \
16074 pdf-gold
16075 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16076 r=`${PWD_COMMAND}`; export r; \
16077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16078 $(HOST_EXPORTS) \
16079 for flag in $(EXTRA_HOST_FLAGS) ; do \
16080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16081 done; \
a90ef4bf
JM
16082 echo "Doing install-pdf in gold" ; \
16083 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16086 "RANLIB=$${RANLIB}" \
0c24b341 16087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16088 install-pdf) \
16089 || exit 1
16090
a90ef4bf 16091@endif gold
a3ca38d2 16092
a90ef4bf
JM
16093.PHONY: maybe-install-html-gold install-html-gold
16094maybe-install-html-gold:
16095@if gold
16096maybe-install-html-gold: install-html-gold
108a6f8e 16097
a90ef4bf
JM
16098install-html-gold: \
16099 configure-gold \
16100 html-gold
16101 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16102 r=`${PWD_COMMAND}`; export r; \
16103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16104 $(HOST_EXPORTS) \
16105 for flag in $(EXTRA_HOST_FLAGS) ; do \
16106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16107 done; \
a90ef4bf
JM
16108 echo "Doing install-html in gold" ; \
16109 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16112 "RANLIB=$${RANLIB}" \
0c24b341 16113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16114 install-html) \
16115 || exit 1
16116
a90ef4bf 16117@endif gold
108a6f8e 16118
a90ef4bf
JM
16119.PHONY: maybe-installcheck-gold installcheck-gold
16120maybe-installcheck-gold:
16121@if gold
16122maybe-installcheck-gold: installcheck-gold
2a4cbe27 16123
a90ef4bf
JM
16124installcheck-gold: \
16125 configure-gold
16126 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16127 r=`${PWD_COMMAND}`; export r; \
16128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16129 $(HOST_EXPORTS) \
b813574b 16130 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16132 done; \
a90ef4bf
JM
16133 echo "Doing installcheck in gold" ; \
16134 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16137 "RANLIB=$${RANLIB}" \
0c24b341 16138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16139 installcheck) \
2a4cbe27
NN
16140 || exit 1
16141
a90ef4bf 16142@endif gold
2a4cbe27 16143
a90ef4bf
JM
16144.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16145maybe-mostlyclean-gold:
16146@if gold
16147maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16148
a90ef4bf
JM
16149mostlyclean-gold:
16150 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16151 r=`${PWD_COMMAND}`; export r; \
16152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16153 $(HOST_EXPORTS) \
b813574b 16154 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16156 done; \
a90ef4bf
JM
16157 echo "Doing mostlyclean in gold" ; \
16158 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16161 "RANLIB=$${RANLIB}" \
0c24b341 16162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16163 mostlyclean) \
2a4cbe27
NN
16164 || exit 1
16165
a90ef4bf 16166@endif gold
2a4cbe27 16167
a90ef4bf
JM
16168.PHONY: maybe-clean-gold clean-gold
16169maybe-clean-gold:
16170@if gold
16171maybe-clean-gold: clean-gold
2a4cbe27 16172
a90ef4bf
JM
16173clean-gold:
16174 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16175 r=`${PWD_COMMAND}`; export r; \
16176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16177 $(HOST_EXPORTS) \
b813574b 16178 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16180 done; \
a90ef4bf
JM
16181 echo "Doing clean in gold" ; \
16182 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16185 "RANLIB=$${RANLIB}" \
0c24b341 16186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16187 clean) \
2a4cbe27
NN
16188 || exit 1
16189
a90ef4bf 16190@endif gold
2a4cbe27 16191
a90ef4bf
JM
16192.PHONY: maybe-distclean-gold distclean-gold
16193maybe-distclean-gold:
16194@if gold
16195maybe-distclean-gold: distclean-gold
2a4cbe27 16196
a90ef4bf
JM
16197distclean-gold:
16198 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16199 r=`${PWD_COMMAND}`; export r; \
16200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16201 $(HOST_EXPORTS) \
b813574b 16202 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16204 done; \
a90ef4bf
JM
16205 echo "Doing distclean in gold" ; \
16206 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16209 "RANLIB=$${RANLIB}" \
0c24b341 16210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16211 distclean) \
2a4cbe27
NN
16212 || exit 1
16213
a90ef4bf 16214@endif gold
2a4cbe27 16215
a90ef4bf
JM
16216.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16217maybe-maintainer-clean-gold:
16218@if gold
16219maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16220
a90ef4bf
JM
16221maintainer-clean-gold:
16222 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16223 r=`${PWD_COMMAND}`; export r; \
16224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16225 $(HOST_EXPORTS) \
b813574b 16226 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16228 done; \
a90ef4bf
JM
16229 echo "Doing maintainer-clean in gold" ; \
16230 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16233 "RANLIB=$${RANLIB}" \
0c24b341 16234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16235 maintainer-clean) \
4fa63067
NN
16236 || exit 1
16237
a90ef4bf 16238@endif gold
4fa63067
NN
16239
16240
a7254363 16241
a90ef4bf
JM
16242.PHONY: configure-gprof maybe-configure-gprof
16243maybe-configure-gprof:
4b900473 16244@if gcc-bootstrap
a90ef4bf 16245configure-gprof: stage_current
4b900473 16246@endif gcc-bootstrap
a90ef4bf
JM
16247@if gprof
16248maybe-configure-gprof: configure-gprof
16249configure-gprof:
16250 @: $(MAKE); $(unstage)
4b900473
PB
16251 @r=`${PWD_COMMAND}`; export r; \
16252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16253 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
16254 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
1f53ca9a 16255 $(HOST_EXPORTS) \
a90ef4bf
JM
16256 echo Configuring in $(HOST_SUBDIR)/gprof; \
16257 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16258 case $(srcdir) in \
16259 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16260 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16261 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16262 esac; \
1b6c0831
L
16263 module_srcdir=gprof; \
16264 $(SHELL) \
16265 $$s/$$module_srcdir/configure \
16266 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16267 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16268 --target=${target_alias} \
4b900473 16269 || exit 1
a90ef4bf 16270@endif gprof
4b900473
PB
16271
16272
16273
4b900473 16274
a90ef4bf
JM
16275
16276.PHONY: all-gprof maybe-all-gprof
16277maybe-all-gprof:
16278@if gcc-bootstrap
16279all-gprof: stage_current
16280@endif gcc-bootstrap
16281@if gprof
16282TARGET-gprof=all
16283maybe-all-gprof: all-gprof
16284all-gprof: configure-gprof
16285 @: $(MAKE); $(unstage)
4b900473
PB
16286 @r=`${PWD_COMMAND}`; export r; \
16287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16288 $(HOST_EXPORTS) \
a90ef4bf 16289 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16290 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16291 $(TARGET-gprof))
16292@endif gprof
4b900473
PB
16293
16294
4b900473 16295
4b900473 16296
a90ef4bf
JM
16297.PHONY: check-gprof maybe-check-gprof
16298maybe-check-gprof:
16299@if gprof
16300maybe-check-gprof: check-gprof
4b900473 16301
a90ef4bf
JM
16302check-gprof:
16303 @: $(MAKE); $(unstage)
4b900473
PB
16304 @r=`${PWD_COMMAND}`; export r; \
16305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16306 $(HOST_EXPORTS) \
a90ef4bf
JM
16307 (cd $(HOST_SUBDIR)/gprof && \
16308 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16309
a90ef4bf 16310@endif gprof
4b900473 16311
a90ef4bf
JM
16312.PHONY: install-gprof maybe-install-gprof
16313maybe-install-gprof:
16314@if gprof
16315maybe-install-gprof: install-gprof
4b900473 16316
a90ef4bf
JM
16317install-gprof: installdirs
16318 @: $(MAKE); $(unstage)
4b900473
PB
16319 @r=`${PWD_COMMAND}`; export r; \
16320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16321 $(HOST_EXPORTS) \
a90ef4bf
JM
16322 (cd $(HOST_SUBDIR)/gprof && \
16323 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16324
a90ef4bf 16325@endif gprof
4b900473 16326
a90ef4bf
JM
16327.PHONY: install-strip-gprof maybe-install-strip-gprof
16328maybe-install-strip-gprof:
16329@if gprof
16330maybe-install-strip-gprof: install-strip-gprof
4b900473 16331
a90ef4bf 16332install-strip-gprof: installdirs
4b900473
PB
16333 @: $(MAKE); $(unstage)
16334 @r=`${PWD_COMMAND}`; export r; \
16335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16336 $(HOST_EXPORTS) \
a90ef4bf
JM
16337 (cd $(HOST_SUBDIR)/gprof && \
16338 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16339
a90ef4bf 16340@endif gprof
9b980aa1 16341
4b900473
PB
16342# Other targets (info, dvi, pdf, etc.)
16343
a90ef4bf
JM
16344.PHONY: maybe-info-gprof info-gprof
16345maybe-info-gprof:
16346@if gprof
16347maybe-info-gprof: info-gprof
4b900473 16348
a90ef4bf
JM
16349info-gprof: \
16350 configure-gprof
16351 @: $(MAKE); $(unstage)
16352 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16353 r=`${PWD_COMMAND}`; export r; \
16354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16355 $(HOST_EXPORTS) \
16356 for flag in $(EXTRA_HOST_FLAGS) ; do \
16357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16358 done; \
a90ef4bf
JM
16359 echo "Doing info in gprof" ; \
16360 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16363 "RANLIB=$${RANLIB}" \
0c24b341 16364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16365 info) \
16366 || exit 1
16367
a90ef4bf 16368@endif gprof
4b900473 16369
a90ef4bf
JM
16370.PHONY: maybe-dvi-gprof dvi-gprof
16371maybe-dvi-gprof:
16372@if gprof
16373maybe-dvi-gprof: dvi-gprof
4b900473 16374
a90ef4bf
JM
16375dvi-gprof: \
16376 configure-gprof
16377 @: $(MAKE); $(unstage)
16378 @[ -f ./gprof/Makefile ] || exit 0; \
16379 r=`${PWD_COMMAND}`; export r; \
16380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16381 $(HOST_EXPORTS) \
4b900473
PB
16382 for flag in $(EXTRA_HOST_FLAGS) ; do \
16383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16384 done; \
a90ef4bf
JM
16385 echo "Doing dvi in gprof" ; \
16386 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16389 "RANLIB=$${RANLIB}" \
0c24b341 16390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16391 dvi) \
16392 || exit 1
16393
a90ef4bf 16394@endif gprof
4b900473 16395
a90ef4bf
JM
16396.PHONY: maybe-pdf-gprof pdf-gprof
16397maybe-pdf-gprof:
16398@if gprof
16399maybe-pdf-gprof: pdf-gprof
4b900473 16400
a90ef4bf
JM
16401pdf-gprof: \
16402 configure-gprof
16403 @: $(MAKE); $(unstage)
16404 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16405 r=`${PWD_COMMAND}`; export r; \
16406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16407 $(HOST_EXPORTS) \
16408 for flag in $(EXTRA_HOST_FLAGS) ; do \
16409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16410 done; \
a90ef4bf
JM
16411 echo "Doing pdf in gprof" ; \
16412 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16415 "RANLIB=$${RANLIB}" \
0c24b341 16416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16417 pdf) \
16418 || exit 1
16419
a90ef4bf 16420@endif gprof
4b900473 16421
a90ef4bf
JM
16422.PHONY: maybe-html-gprof html-gprof
16423maybe-html-gprof:
16424@if gprof
16425maybe-html-gprof: html-gprof
4b900473 16426
a90ef4bf
JM
16427html-gprof: \
16428 configure-gprof
16429 @: $(MAKE); $(unstage)
16430 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16431 r=`${PWD_COMMAND}`; export r; \
16432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16433 $(HOST_EXPORTS) \
16434 for flag in $(EXTRA_HOST_FLAGS) ; do \
16435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16436 done; \
a90ef4bf
JM
16437 echo "Doing html in gprof" ; \
16438 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16441 "RANLIB=$${RANLIB}" \
0c24b341 16442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16443 html) \
16444 || exit 1
16445
a90ef4bf 16446@endif gprof
4b900473 16447
a90ef4bf
JM
16448.PHONY: maybe-TAGS-gprof TAGS-gprof
16449maybe-TAGS-gprof:
16450@if gprof
16451maybe-TAGS-gprof: TAGS-gprof
4b900473 16452
a90ef4bf
JM
16453TAGS-gprof: \
16454 configure-gprof
16455 @: $(MAKE); $(unstage)
16456 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16457 r=`${PWD_COMMAND}`; export r; \
16458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16459 $(HOST_EXPORTS) \
16460 for flag in $(EXTRA_HOST_FLAGS) ; do \
16461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16462 done; \
a90ef4bf
JM
16463 echo "Doing TAGS in gprof" ; \
16464 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16467 "RANLIB=$${RANLIB}" \
0c24b341 16468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16469 TAGS) \
16470 || exit 1
16471
a90ef4bf 16472@endif gprof
4b900473 16473
a90ef4bf
JM
16474.PHONY: maybe-install-info-gprof install-info-gprof
16475maybe-install-info-gprof:
16476@if gprof
16477maybe-install-info-gprof: install-info-gprof
4b900473 16478
a90ef4bf
JM
16479install-info-gprof: \
16480 configure-gprof \
16481 info-gprof
16482 @: $(MAKE); $(unstage)
16483 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16484 r=`${PWD_COMMAND}`; export r; \
16485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16486 $(HOST_EXPORTS) \
16487 for flag in $(EXTRA_HOST_FLAGS) ; do \
16488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16489 done; \
a90ef4bf
JM
16490 echo "Doing install-info in gprof" ; \
16491 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16494 "RANLIB=$${RANLIB}" \
0c24b341 16495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16496 install-info) \
16497 || exit 1
16498
a90ef4bf 16499@endif gprof
4b900473 16500
a90ef4bf
JM
16501.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16502maybe-install-pdf-gprof:
16503@if gprof
16504maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16505
a90ef4bf
JM
16506install-pdf-gprof: \
16507 configure-gprof \
16508 pdf-gprof
16509 @: $(MAKE); $(unstage)
16510 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16511 r=`${PWD_COMMAND}`; export r; \
16512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16513 $(HOST_EXPORTS) \
16514 for flag in $(EXTRA_HOST_FLAGS) ; do \
16515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16516 done; \
a90ef4bf
JM
16517 echo "Doing install-pdf in gprof" ; \
16518 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16521 "RANLIB=$${RANLIB}" \
0c24b341 16522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16523 install-pdf) \
16524 || exit 1
16525
a90ef4bf 16526@endif gprof
a3ca38d2 16527
a90ef4bf
JM
16528.PHONY: maybe-install-html-gprof install-html-gprof
16529maybe-install-html-gprof:
16530@if gprof
16531maybe-install-html-gprof: install-html-gprof
4b900473 16532
a90ef4bf
JM
16533install-html-gprof: \
16534 configure-gprof \
16535 html-gprof
16536 @: $(MAKE); $(unstage)
16537 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16538 r=`${PWD_COMMAND}`; export r; \
16539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16540 $(HOST_EXPORTS) \
16541 for flag in $(EXTRA_HOST_FLAGS) ; do \
16542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16543 done; \
a90ef4bf
JM
16544 echo "Doing install-html in gprof" ; \
16545 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16548 "RANLIB=$${RANLIB}" \
0c24b341 16549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16550 install-html) \
16551 || exit 1
16552
a90ef4bf 16553@endif gprof
4b900473 16554
a90ef4bf
JM
16555.PHONY: maybe-installcheck-gprof installcheck-gprof
16556maybe-installcheck-gprof:
16557@if gprof
16558maybe-installcheck-gprof: installcheck-gprof
4b900473 16559
a90ef4bf
JM
16560installcheck-gprof: \
16561 configure-gprof
16562 @: $(MAKE); $(unstage)
16563 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16564 r=`${PWD_COMMAND}`; export r; \
16565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16566 $(HOST_EXPORTS) \
16567 for flag in $(EXTRA_HOST_FLAGS) ; do \
16568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16569 done; \
a90ef4bf
JM
16570 echo "Doing installcheck in gprof" ; \
16571 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16574 "RANLIB=$${RANLIB}" \
16575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16576 installcheck) \
16577 || exit 1
16578
a90ef4bf 16579@endif gprof
e28c595f 16580
a90ef4bf
JM
16581.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16582maybe-mostlyclean-gprof:
16583@if gprof
16584maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16585
a90ef4bf
JM
16586mostlyclean-gprof:
16587 @: $(MAKE); $(unstage)
16588 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16589 r=`${PWD_COMMAND}`; export r; \
16590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16591 $(HOST_EXPORTS) \
16592 for flag in $(EXTRA_HOST_FLAGS) ; do \
16593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16594 done; \
a90ef4bf
JM
16595 echo "Doing mostlyclean in gprof" ; \
16596 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16599 "RANLIB=$${RANLIB}" \
16600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16601 mostlyclean) \
16602 || exit 1
16603
a90ef4bf 16604@endif gprof
e28c595f 16605
a90ef4bf
JM
16606.PHONY: maybe-clean-gprof clean-gprof
16607maybe-clean-gprof:
16608@if gprof
16609maybe-clean-gprof: clean-gprof
e28c595f 16610
a90ef4bf
JM
16611clean-gprof:
16612 @: $(MAKE); $(unstage)
16613 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16614 r=`${PWD_COMMAND}`; export r; \
16615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16616 $(HOST_EXPORTS) \
16617 for flag in $(EXTRA_HOST_FLAGS) ; do \
16618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16619 done; \
a90ef4bf
JM
16620 echo "Doing clean in gprof" ; \
16621 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16624 "RANLIB=$${RANLIB}" \
16625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16626 clean) \
16627 || exit 1
16628
a90ef4bf 16629@endif gprof
e28c595f 16630
a90ef4bf
JM
16631.PHONY: maybe-distclean-gprof distclean-gprof
16632maybe-distclean-gprof:
16633@if gprof
16634maybe-distclean-gprof: distclean-gprof
e28c595f 16635
a90ef4bf
JM
16636distclean-gprof:
16637 @: $(MAKE); $(unstage)
16638 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16639 r=`${PWD_COMMAND}`; export r; \
16640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16641 $(HOST_EXPORTS) \
16642 for flag in $(EXTRA_HOST_FLAGS) ; do \
16643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16644 done; \
a90ef4bf
JM
16645 echo "Doing distclean in gprof" ; \
16646 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16649 "RANLIB=$${RANLIB}" \
16650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16651 distclean) \
16652 || exit 1
16653
a90ef4bf 16654@endif gprof
e28c595f 16655
a90ef4bf
JM
16656.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16657maybe-maintainer-clean-gprof:
16658@if gprof
16659maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16660
a90ef4bf
JM
16661maintainer-clean-gprof:
16662 @: $(MAKE); $(unstage)
16663 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16664 r=`${PWD_COMMAND}`; export r; \
16665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16666 $(HOST_EXPORTS) \
16667 for flag in $(EXTRA_HOST_FLAGS) ; do \
16668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16669 done; \
a90ef4bf
JM
16670 echo "Doing maintainer-clean in gprof" ; \
16671 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16674 "RANLIB=$${RANLIB}" \
16675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16676 maintainer-clean) \
16677 || exit 1
16678
a90ef4bf 16679@endif gprof
e28c595f
JM
16680
16681
16682
a90ef4bf
JM
16683.PHONY: configure-intl maybe-configure-intl
16684maybe-configure-intl:
e28c595f 16685@if gcc-bootstrap
a90ef4bf 16686configure-intl: stage_current
e28c595f 16687@endif gcc-bootstrap
a90ef4bf
JM
16688@if intl
16689maybe-configure-intl: configure-intl
16690configure-intl:
e28c595f
JM
16691 @r=`${PWD_COMMAND}`; export r; \
16692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16693 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
16694 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
1f53ca9a 16695 $(HOST_EXPORTS) \
a90ef4bf
JM
16696 echo Configuring in $(HOST_SUBDIR)/intl; \
16697 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16698 case $(srcdir) in \
16699 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16700 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16701 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16702 esac; \
1b6c0831
L
16703 module_srcdir=intl; \
16704 $(SHELL) \
16705 $$s/$$module_srcdir/configure \
16706 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16707 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16708 --target=${target_alias} \
e28c595f 16709 || exit 1
a90ef4bf 16710@endif intl
e28c595f
JM
16711
16712
16713
a90ef4bf
JM
16714.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16715maybe-configure-stage1-intl:
16716@if intl-bootstrap
16717maybe-configure-stage1-intl: configure-stage1-intl
16718configure-stage1-intl:
e28c595f 16719 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16720 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16721 @r=`${PWD_COMMAND}`; export r; \
16722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16723 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16724 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16725 $(HOST_EXPORTS) \
e28c595f 16726 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16727 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16728 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16729 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
16730 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16731 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16732 case $(srcdir) in \
16733 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16734 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16735 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16736 esac; \
1b6c0831
L
16737 module_srcdir=intl; \
16738 $(SHELL) $$s/$$module_srcdir/configure \
16739 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16740 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16741 --target=${target_alias} \
16742 \
a90ef4bf
JM
16743 $(STAGE1_CONFIGURE_FLAGS)
16744@endif intl-bootstrap
e28c595f 16745
a90ef4bf
JM
16746.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16747maybe-configure-stage2-intl:
16748@if intl-bootstrap
16749maybe-configure-stage2-intl: configure-stage2-intl
16750configure-stage2-intl:
e28c595f 16751 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16752 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16753 @r=`${PWD_COMMAND}`; export r; \
16754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16755 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16756 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16757 $(HOST_EXPORTS) \
1b05fbbd 16758 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16759 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16760 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16761 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16762 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
16763 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16764 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16765 case $(srcdir) in \
16766 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16767 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16768 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16769 esac; \
1b6c0831
L
16770 module_srcdir=intl; \
16771 $(SHELL) $$s/$$module_srcdir/configure \
16772 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16773 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16774 --target=${target_alias} \
16775 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16776 $(STAGE2_CONFIGURE_FLAGS)
16777@endif intl-bootstrap
e28c595f 16778
a90ef4bf
JM
16779.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16780maybe-configure-stage3-intl:
16781@if intl-bootstrap
16782maybe-configure-stage3-intl: configure-stage3-intl
16783configure-stage3-intl:
e28c595f 16784 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16785 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16786 @r=`${PWD_COMMAND}`; export r; \
16787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16788 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16789 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16790 $(HOST_EXPORTS) \
1b05fbbd 16791 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16792 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16793 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16794 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16795 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
16796 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16797 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16798 case $(srcdir) in \
16799 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16800 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16801 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16802 esac; \
1b6c0831
L
16803 module_srcdir=intl; \
16804 $(SHELL) $$s/$$module_srcdir/configure \
16805 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16806 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16807 --target=${target_alias} \
16808 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16809 $(STAGE3_CONFIGURE_FLAGS)
16810@endif intl-bootstrap
e28c595f 16811
a90ef4bf
JM
16812.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16813maybe-configure-stage4-intl:
16814@if intl-bootstrap
16815maybe-configure-stage4-intl: configure-stage4-intl
16816configure-stage4-intl:
e28c595f 16817 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16818 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16819 @r=`${PWD_COMMAND}`; export r; \
16820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16821 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16822 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16823 $(HOST_EXPORTS) \
1b05fbbd 16824 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16825 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16826 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16827 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16828 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
16829 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16830 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16831 case $(srcdir) in \
16832 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16833 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16834 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16835 esac; \
1b6c0831
L
16836 module_srcdir=intl; \
16837 $(SHELL) $$s/$$module_srcdir/configure \
16838 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16839 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16840 --target=${target_alias} \
16841 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16842 $(STAGE4_CONFIGURE_FLAGS)
16843@endif intl-bootstrap
e28c595f 16844
a90ef4bf
JM
16845.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16846maybe-configure-stageprofile-intl:
16847@if intl-bootstrap
16848maybe-configure-stageprofile-intl: configure-stageprofile-intl
16849configure-stageprofile-intl:
e28c595f 16850 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16851 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16852 @r=`${PWD_COMMAND}`; export r; \
16853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16854 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16855 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16856 $(HOST_EXPORTS) \
1b05fbbd
AO
16857 $(POSTSTAGE1_HOST_EXPORTS) \
16858 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16859 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16860 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16861 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
16862 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16863 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16864 case $(srcdir) in \
16865 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16866 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16867 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16868 esac; \
1b6c0831
L
16869 module_srcdir=intl; \
16870 $(SHELL) $$s/$$module_srcdir/configure \
16871 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16872 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16873 --target=${target_alias} \
16874 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16875 $(STAGEprofile_CONFIGURE_FLAGS)
16876@endif intl-bootstrap
e28c595f 16877
a90ef4bf
JM
16878.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16879maybe-configure-stagefeedback-intl:
16880@if intl-bootstrap
16881maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16882configure-stagefeedback-intl:
e28c595f 16883 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16884 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16885 @r=`${PWD_COMMAND}`; export r; \
16886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16887 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16888 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16889 $(HOST_EXPORTS) \
1b05fbbd
AO
16890 $(POSTSTAGE1_HOST_EXPORTS) \
16891 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16892 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16893 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16894 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
16895 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16896 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16897 case $(srcdir) in \
16898 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16899 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16900 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16901 esac; \
1b6c0831
L
16902 module_srcdir=intl; \
16903 $(SHELL) $$s/$$module_srcdir/configure \
16904 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16905 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16906 --target=${target_alias} \
16907 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16908 $(STAGEfeedback_CONFIGURE_FLAGS)
16909@endif intl-bootstrap
e28c595f
JM
16910
16911
16912
16913
16914
a90ef4bf
JM
16915.PHONY: all-intl maybe-all-intl
16916maybe-all-intl:
e28c595f 16917@if gcc-bootstrap
a90ef4bf 16918all-intl: stage_current
e28c595f 16919@endif gcc-bootstrap
a90ef4bf
JM
16920@if intl
16921TARGET-intl=all
16922maybe-all-intl: all-intl
16923all-intl: configure-intl
e28c595f
JM
16924 @r=`${PWD_COMMAND}`; export r; \
16925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16926 $(HOST_EXPORTS) \
a90ef4bf 16927 (cd $(HOST_SUBDIR)/intl && \
b3676d82 16928 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16929 $(TARGET-intl))
16930@endif intl
e28c595f
JM
16931
16932
16933
a90ef4bf
JM
16934.PHONY: all-stage1-intl maybe-all-stage1-intl
16935.PHONY: clean-stage1-intl maybe-clean-stage1-intl
16936maybe-all-stage1-intl:
16937maybe-clean-stage1-intl:
16938@if intl-bootstrap
16939maybe-all-stage1-intl: all-stage1-intl
16940all-stage1: all-stage1-intl
16941TARGET-stage1-intl = $(TARGET-intl)
16942all-stage1-intl: configure-stage1-intl
e28c595f
JM
16943 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16944 @r=`${PWD_COMMAND}`; export r; \
16945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16946 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 16947 $(HOST_EXPORTS) \
a90ef4bf 16948 cd $(HOST_SUBDIR)/intl && \
e28c595f 16949 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 16950 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 16951 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
16952 LIBCFLAGS="$(LIBCFLAGS)" \
16953 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16954 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16955 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
16956 $(EXTRA_HOST_FLAGS) \
16957 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 16958 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 16959 $(TARGET-stage1-intl)
e28c595f 16960
a90ef4bf
JM
16961maybe-clean-stage1-intl: clean-stage1-intl
16962clean-stage1: clean-stage1-intl
16963clean-stage1-intl:
e28c595f 16964 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 16965 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 16966 else \
a90ef4bf 16967 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
16968 $(MAKE) stage1-start; \
16969 fi; \
a90ef4bf 16970 cd $(HOST_SUBDIR)/intl && \
e28c595f 16971 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 16972 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16973@endif intl-bootstrap
e28c595f
JM
16974
16975
a90ef4bf
JM
16976.PHONY: all-stage2-intl maybe-all-stage2-intl
16977.PHONY: clean-stage2-intl maybe-clean-stage2-intl
16978maybe-all-stage2-intl:
16979maybe-clean-stage2-intl:
16980@if intl-bootstrap
16981maybe-all-stage2-intl: all-stage2-intl
16982all-stage2: all-stage2-intl
16983TARGET-stage2-intl = $(TARGET-intl)
16984all-stage2-intl: configure-stage2-intl
e28c595f
JM
16985 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
16986 @r=`${PWD_COMMAND}`; export r; \
16987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16988 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 16989 $(HOST_EXPORTS) \
1f53ca9a 16990 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 16991 cd $(HOST_SUBDIR)/intl && \
e28c595f 16992 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 16993 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 16994 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
16995 LIBCFLAGS="$(STAGE2_CFLAGS)" \
16996 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16997 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16998 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16999 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17000 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17001 $(TARGET-stage2-intl)
e28c595f 17002
a90ef4bf
JM
17003maybe-clean-stage2-intl: clean-stage2-intl
17004clean-stage2: clean-stage2-intl
17005clean-stage2-intl:
e28c595f 17006 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17007 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17008 else \
a90ef4bf 17009 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17010 $(MAKE) stage2-start; \
17011 fi; \
a90ef4bf 17012 cd $(HOST_SUBDIR)/intl && \
b3676d82 17013 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17014@endif intl-bootstrap
e28c595f
JM
17015
17016
a90ef4bf
JM
17017.PHONY: all-stage3-intl maybe-all-stage3-intl
17018.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17019maybe-all-stage3-intl:
17020maybe-clean-stage3-intl:
17021@if intl-bootstrap
17022maybe-all-stage3-intl: all-stage3-intl
17023all-stage3: all-stage3-intl
17024TARGET-stage3-intl = $(TARGET-intl)
17025all-stage3-intl: configure-stage3-intl
e28c595f
JM
17026 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17027 @r=`${PWD_COMMAND}`; export r; \
17028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17029 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17030 $(HOST_EXPORTS) \
1f53ca9a 17031 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17032 cd $(HOST_SUBDIR)/intl && \
e28c595f 17033 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17034 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17035 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17036 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17037 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17038 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17039 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17040 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17041 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17042 $(TARGET-stage3-intl)
e28c595f 17043
a90ef4bf
JM
17044maybe-clean-stage3-intl: clean-stage3-intl
17045clean-stage3: clean-stage3-intl
17046clean-stage3-intl:
e28c595f 17047 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17048 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17049 else \
a90ef4bf 17050 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17051 $(MAKE) stage3-start; \
17052 fi; \
a90ef4bf 17053 cd $(HOST_SUBDIR)/intl && \
b3676d82 17054 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17055@endif intl-bootstrap
e28c595f
JM
17056
17057
a90ef4bf
JM
17058.PHONY: all-stage4-intl maybe-all-stage4-intl
17059.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17060maybe-all-stage4-intl:
17061maybe-clean-stage4-intl:
17062@if intl-bootstrap
17063maybe-all-stage4-intl: all-stage4-intl
17064all-stage4: all-stage4-intl
17065TARGET-stage4-intl = $(TARGET-intl)
17066all-stage4-intl: configure-stage4-intl
e28c595f
JM
17067 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17068 @r=`${PWD_COMMAND}`; export r; \
17069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17070 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17071 $(HOST_EXPORTS) \
1f53ca9a 17072 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17073 cd $(HOST_SUBDIR)/intl && \
e28c595f 17074 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17075 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17076 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17077 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17078 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17079 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17080 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17081 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17082 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17083 $(TARGET-stage4-intl)
e28c595f 17084
a90ef4bf
JM
17085maybe-clean-stage4-intl: clean-stage4-intl
17086clean-stage4: clean-stage4-intl
17087clean-stage4-intl:
e28c595f 17088 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17089 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17090 else \
a90ef4bf 17091 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17092 $(MAKE) stage4-start; \
17093 fi; \
a90ef4bf 17094 cd $(HOST_SUBDIR)/intl && \
b3676d82 17095 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17096@endif intl-bootstrap
e28c595f
JM
17097
17098
a90ef4bf
JM
17099.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17100.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17101maybe-all-stageprofile-intl:
17102maybe-clean-stageprofile-intl:
17103@if intl-bootstrap
17104maybe-all-stageprofile-intl: all-stageprofile-intl
17105all-stageprofile: all-stageprofile-intl
17106TARGET-stageprofile-intl = $(TARGET-intl)
17107all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17108 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17109 @r=`${PWD_COMMAND}`; export r; \
17110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17111 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17112 $(HOST_EXPORTS) \
1f53ca9a 17113 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17114 cd $(HOST_SUBDIR)/intl && \
e28c595f 17115 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17116 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17117 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17118 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17119 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17120 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17121 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17122 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17123 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17124 $(TARGET-stageprofile-intl)
e28c595f 17125
a90ef4bf
JM
17126maybe-clean-stageprofile-intl: clean-stageprofile-intl
17127clean-stageprofile: clean-stageprofile-intl
17128clean-stageprofile-intl:
e28c595f 17129 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17130 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17131 else \
a90ef4bf 17132 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17133 $(MAKE) stageprofile-start; \
17134 fi; \
a90ef4bf 17135 cd $(HOST_SUBDIR)/intl && \
b3676d82 17136 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17137@endif intl-bootstrap
e28c595f
JM
17138
17139
a90ef4bf
JM
17140.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17141.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17142maybe-all-stagefeedback-intl:
17143maybe-clean-stagefeedback-intl:
17144@if intl-bootstrap
17145maybe-all-stagefeedback-intl: all-stagefeedback-intl
17146all-stagefeedback: all-stagefeedback-intl
17147TARGET-stagefeedback-intl = $(TARGET-intl)
17148all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17149 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17150 @r=`${PWD_COMMAND}`; export r; \
17151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17152 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17153 $(HOST_EXPORTS) \
1f53ca9a 17154 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17155 cd $(HOST_SUBDIR)/intl && \
e28c595f 17156 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17157 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17158 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17159 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17160 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17161 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17162 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17163 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17164 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17165 $(TARGET-stagefeedback-intl)
e28c595f 17166
a90ef4bf
JM
17167maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17168clean-stagefeedback: clean-stagefeedback-intl
17169clean-stagefeedback-intl:
e28c595f 17170 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17171 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17172 else \
a90ef4bf 17173 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17174 $(MAKE) stagefeedback-start; \
17175 fi; \
a90ef4bf 17176 cd $(HOST_SUBDIR)/intl && \
b3676d82 17177 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17178@endif intl-bootstrap
e28c595f
JM
17179
17180
17181
17182
17183
a90ef4bf
JM
17184.PHONY: check-intl maybe-check-intl
17185maybe-check-intl:
17186@if intl
17187maybe-check-intl: check-intl
e28c595f 17188
a90ef4bf 17189check-intl:
e28c595f
JM
17190 @: $(MAKE); $(unstage)
17191 @r=`${PWD_COMMAND}`; export r; \
17192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17193 $(HOST_EXPORTS) \
a90ef4bf 17194 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17195 $(MAKE) $(FLAGS_TO_PASS) check)
17196
a90ef4bf 17197@endif intl
e28c595f 17198
a90ef4bf
JM
17199.PHONY: install-intl maybe-install-intl
17200maybe-install-intl:
17201@if intl
17202maybe-install-intl: install-intl
e28c595f 17203
a90ef4bf
JM
17204install-intl: installdirs
17205 @: $(MAKE); $(unstage)
17206 @r=`${PWD_COMMAND}`; export r; \
17207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17208 $(HOST_EXPORTS) \
17209 (cd $(HOST_SUBDIR)/intl && \
17210 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17211
a90ef4bf 17212@endif intl
e28c595f 17213
a90ef4bf
JM
17214.PHONY: install-strip-intl maybe-install-strip-intl
17215maybe-install-strip-intl:
17216@if intl
17217maybe-install-strip-intl: install-strip-intl
9b980aa1 17218
a90ef4bf
JM
17219install-strip-intl: installdirs
17220 @: $(MAKE); $(unstage)
17221 @r=`${PWD_COMMAND}`; export r; \
17222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17223 $(HOST_EXPORTS) \
17224 (cd $(HOST_SUBDIR)/intl && \
17225 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17226
a90ef4bf 17227@endif intl
9b980aa1 17228
e28c595f
JM
17229# Other targets (info, dvi, pdf, etc.)
17230
a90ef4bf
JM
17231.PHONY: maybe-info-intl info-intl
17232maybe-info-intl:
17233@if intl
17234maybe-info-intl: info-intl
e28c595f 17235
a90ef4bf
JM
17236info-intl: \
17237 configure-intl
17238 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17239 r=`${PWD_COMMAND}`; export r; \
17240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17241 $(HOST_EXPORTS) \
17242 for flag in $(EXTRA_HOST_FLAGS) ; do \
17243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17244 done; \
a90ef4bf
JM
17245 echo "Doing info in intl" ; \
17246 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17249 "RANLIB=$${RANLIB}" \
17250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17251 info) \
17252 || exit 1
17253
a90ef4bf 17254@endif intl
e28c595f 17255
a90ef4bf
JM
17256.PHONY: maybe-dvi-intl dvi-intl
17257maybe-dvi-intl:
17258@if intl
17259maybe-dvi-intl: dvi-intl
e28c595f 17260
a90ef4bf
JM
17261dvi-intl: \
17262 configure-intl
17263 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17264 r=`${PWD_COMMAND}`; export r; \
17265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17266 $(HOST_EXPORTS) \
17267 for flag in $(EXTRA_HOST_FLAGS) ; do \
17268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17269 done; \
a90ef4bf
JM
17270 echo "Doing dvi in intl" ; \
17271 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17274 "RANLIB=$${RANLIB}" \
17275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17276 dvi) \
17277 || exit 1
17278
a90ef4bf 17279@endif intl
e28c595f 17280
a90ef4bf
JM
17281.PHONY: maybe-pdf-intl pdf-intl
17282maybe-pdf-intl:
17283@if intl
17284maybe-pdf-intl: pdf-intl
e28c595f 17285
a90ef4bf
JM
17286pdf-intl: \
17287 configure-intl
17288 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17289 r=`${PWD_COMMAND}`; export r; \
17290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17291 $(HOST_EXPORTS) \
17292 for flag in $(EXTRA_HOST_FLAGS) ; do \
17293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17294 done; \
a90ef4bf
JM
17295 echo "Doing pdf in intl" ; \
17296 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17299 "RANLIB=$${RANLIB}" \
17300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17301 pdf) \
17302 || exit 1
17303
a90ef4bf 17304@endif intl
e28c595f 17305
a90ef4bf
JM
17306.PHONY: maybe-html-intl html-intl
17307maybe-html-intl:
17308@if intl
17309maybe-html-intl: html-intl
e28c595f 17310
a90ef4bf
JM
17311html-intl: \
17312 configure-intl
17313 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17314 r=`${PWD_COMMAND}`; export r; \
17315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17316 $(HOST_EXPORTS) \
17317 for flag in $(EXTRA_HOST_FLAGS) ; do \
17318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17319 done; \
a90ef4bf
JM
17320 echo "Doing html in intl" ; \
17321 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17324 "RANLIB=$${RANLIB}" \
17325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17326 html) \
17327 || exit 1
17328
a90ef4bf 17329@endif intl
e28c595f 17330
a90ef4bf
JM
17331.PHONY: maybe-TAGS-intl TAGS-intl
17332maybe-TAGS-intl:
17333@if intl
17334maybe-TAGS-intl: TAGS-intl
e28c595f 17335
a90ef4bf
JM
17336TAGS-intl: \
17337 configure-intl
17338 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17339 r=`${PWD_COMMAND}`; export r; \
17340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17341 $(HOST_EXPORTS) \
17342 for flag in $(EXTRA_HOST_FLAGS) ; do \
17343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17344 done; \
a90ef4bf
JM
17345 echo "Doing TAGS in intl" ; \
17346 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17349 "RANLIB=$${RANLIB}" \
17350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17351 TAGS) \
17352 || exit 1
17353
a90ef4bf 17354@endif intl
e28c595f 17355
a90ef4bf
JM
17356.PHONY: maybe-install-info-intl install-info-intl
17357maybe-install-info-intl:
17358@if intl
17359maybe-install-info-intl: install-info-intl
e28c595f 17360
a90ef4bf
JM
17361install-info-intl: \
17362 configure-intl \
17363 info-intl
17364 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17365 r=`${PWD_COMMAND}`; export r; \
17366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17367 $(HOST_EXPORTS) \
17368 for flag in $(EXTRA_HOST_FLAGS) ; do \
17369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17370 done; \
a90ef4bf
JM
17371 echo "Doing install-info in intl" ; \
17372 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17375 "RANLIB=$${RANLIB}" \
17376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17377 install-info) \
17378 || exit 1
17379
a90ef4bf 17380@endif intl
e28c595f 17381
a90ef4bf
JM
17382.PHONY: maybe-install-pdf-intl install-pdf-intl
17383maybe-install-pdf-intl:
17384@if intl
17385maybe-install-pdf-intl: install-pdf-intl
e28c595f 17386
a90ef4bf
JM
17387install-pdf-intl: \
17388 configure-intl \
17389 pdf-intl
17390 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17391 r=`${PWD_COMMAND}`; export r; \
17392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17393 $(HOST_EXPORTS) \
17394 for flag in $(EXTRA_HOST_FLAGS) ; do \
17395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17396 done; \
a90ef4bf
JM
17397 echo "Doing install-pdf in intl" ; \
17398 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17401 "RANLIB=$${RANLIB}" \
17402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17403 install-pdf) \
17404 || exit 1
17405
a90ef4bf 17406@endif intl
e28c595f 17407
a90ef4bf
JM
17408.PHONY: maybe-install-html-intl install-html-intl
17409maybe-install-html-intl:
17410@if intl
17411maybe-install-html-intl: install-html-intl
e28c595f 17412
a90ef4bf
JM
17413install-html-intl: \
17414 configure-intl \
17415 html-intl
17416 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17417 r=`${PWD_COMMAND}`; export r; \
17418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17419 $(HOST_EXPORTS) \
17420 for flag in $(EXTRA_HOST_FLAGS) ; do \
17421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17422 done; \
a90ef4bf
JM
17423 echo "Doing install-html in intl" ; \
17424 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17427 "RANLIB=$${RANLIB}" \
17428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17429 install-html) \
17430 || exit 1
17431
a90ef4bf 17432@endif intl
e28c595f 17433
a90ef4bf
JM
17434.PHONY: maybe-installcheck-intl installcheck-intl
17435maybe-installcheck-intl:
17436@if intl
17437maybe-installcheck-intl: installcheck-intl
e28c595f 17438
a90ef4bf
JM
17439installcheck-intl: \
17440 configure-intl
17441 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17442 r=`${PWD_COMMAND}`; export r; \
17443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17444 $(HOST_EXPORTS) \
17445 for flag in $(EXTRA_HOST_FLAGS) ; do \
17446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17447 done; \
a90ef4bf
JM
17448 echo "Doing installcheck in intl" ; \
17449 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17452 "RANLIB=$${RANLIB}" \
17453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17454 installcheck) \
17455 || exit 1
17456
a90ef4bf 17457@endif intl
e28c595f 17458
a90ef4bf
JM
17459.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17460maybe-mostlyclean-intl:
17461@if intl
17462maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17463
a90ef4bf
JM
17464mostlyclean-intl:
17465 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17466 r=`${PWD_COMMAND}`; export r; \
17467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17468 $(HOST_EXPORTS) \
17469 for flag in $(EXTRA_HOST_FLAGS) ; do \
17470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17471 done; \
a90ef4bf
JM
17472 echo "Doing mostlyclean in intl" ; \
17473 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17476 "RANLIB=$${RANLIB}" \
17477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17478 mostlyclean) \
17479 || exit 1
17480
a90ef4bf 17481@endif intl
e28c595f 17482
a90ef4bf
JM
17483.PHONY: maybe-clean-intl clean-intl
17484maybe-clean-intl:
17485@if intl
17486maybe-clean-intl: clean-intl
e28c595f 17487
a90ef4bf
JM
17488clean-intl:
17489 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17490 r=`${PWD_COMMAND}`; export r; \
17491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17492 $(HOST_EXPORTS) \
17493 for flag in $(EXTRA_HOST_FLAGS) ; do \
17494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17495 done; \
a90ef4bf
JM
17496 echo "Doing clean in intl" ; \
17497 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17500 "RANLIB=$${RANLIB}" \
17501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17502 clean) \
17503 || exit 1
17504
a90ef4bf 17505@endif intl
e28c595f 17506
a90ef4bf
JM
17507.PHONY: maybe-distclean-intl distclean-intl
17508maybe-distclean-intl:
17509@if intl
17510maybe-distclean-intl: distclean-intl
e28c595f 17511
a90ef4bf
JM
17512distclean-intl:
17513 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17514 r=`${PWD_COMMAND}`; export r; \
17515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17516 $(HOST_EXPORTS) \
17517 for flag in $(EXTRA_HOST_FLAGS) ; do \
17518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17519 done; \
a90ef4bf
JM
17520 echo "Doing distclean in intl" ; \
17521 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17524 "RANLIB=$${RANLIB}" \
17525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17526 distclean) \
17527 || exit 1
17528
a90ef4bf 17529@endif intl
e28c595f 17530
a90ef4bf
JM
17531.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17532maybe-maintainer-clean-intl:
17533@if intl
17534maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17535
a90ef4bf
JM
17536maintainer-clean-intl:
17537 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17538 r=`${PWD_COMMAND}`; export r; \
17539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17540 $(HOST_EXPORTS) \
17541 for flag in $(EXTRA_HOST_FLAGS) ; do \
17542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17543 done; \
a90ef4bf
JM
17544 echo "Doing maintainer-clean in intl" ; \
17545 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17548 "RANLIB=$${RANLIB}" \
17549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17550 maintainer-clean) \
17551 || exit 1
17552
a90ef4bf 17553@endif intl
e28c595f
JM
17554
17555
17556
a90ef4bf
JM
17557.PHONY: configure-tcl maybe-configure-tcl
17558maybe-configure-tcl:
e8a5fa9c 17559@if gcc-bootstrap
a90ef4bf 17560configure-tcl: stage_current
e8a5fa9c 17561@endif gcc-bootstrap
a90ef4bf
JM
17562@if tcl
17563maybe-configure-tcl: configure-tcl
17564configure-tcl:
17565 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17566 @r=`${PWD_COMMAND}`; export r; \
17567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17568 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
17569 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
1f53ca9a 17570 $(HOST_EXPORTS) \
a90ef4bf
JM
17571 echo Configuring in $(HOST_SUBDIR)/tcl; \
17572 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17573 case $(srcdir) in \
17574 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17575 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17576 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17577 esac; \
1b6c0831
L
17578 module_srcdir=tcl; \
17579 $(SHELL) \
17580 $$s/$$module_srcdir/configure \
17581 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17582 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17583 --target=${target_alias} \
e8a5fa9c 17584 || exit 1
a90ef4bf 17585@endif tcl
e8a5fa9c
RW
17586
17587
17588
e8a5fa9c 17589
e8a5fa9c 17590
a90ef4bf
JM
17591.PHONY: all-tcl maybe-all-tcl
17592maybe-all-tcl:
17593@if gcc-bootstrap
17594all-tcl: stage_current
17595@endif gcc-bootstrap
17596@if tcl
17597TARGET-tcl=all
17598maybe-all-tcl: all-tcl
17599all-tcl: configure-tcl
17600 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17601 @r=`${PWD_COMMAND}`; export r; \
17602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17603 $(HOST_EXPORTS) \
17604 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17605 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17606 $(TARGET-tcl))
17607@endif tcl
e8a5fa9c 17608
a90ef4bf
JM
17609
17610
17611
17612.PHONY: check-tcl maybe-check-tcl
17613maybe-check-tcl:
17614@if tcl
17615maybe-check-tcl: check-tcl
17616
17617check-tcl:
17618 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17619 @r=`${PWD_COMMAND}`; export r; \
17620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17621 $(HOST_EXPORTS) \
a90ef4bf
JM
17622 (cd $(HOST_SUBDIR)/tcl && \
17623 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17624
a90ef4bf
JM
17625@endif tcl
17626
17627.PHONY: install-tcl maybe-install-tcl
17628maybe-install-tcl:
17629@if tcl
17630maybe-install-tcl: install-tcl
17631
17632install-tcl: installdirs
17633 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17634 @r=`${PWD_COMMAND}`; export r; \
17635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17636 $(HOST_EXPORTS) \
a90ef4bf
JM
17637 (cd $(HOST_SUBDIR)/tcl && \
17638 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17639
a90ef4bf
JM
17640@endif tcl
17641
17642.PHONY: install-strip-tcl maybe-install-strip-tcl
17643maybe-install-strip-tcl:
17644@if tcl
17645maybe-install-strip-tcl: install-strip-tcl
17646
17647install-strip-tcl: installdirs
17648 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17649 @r=`${PWD_COMMAND}`; export r; \
17650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17651 $(HOST_EXPORTS) \
a90ef4bf
JM
17652 (cd $(HOST_SUBDIR)/tcl && \
17653 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17654
a90ef4bf 17655@endif tcl
e8a5fa9c 17656
a90ef4bf 17657# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17658
a90ef4bf
JM
17659.PHONY: maybe-info-tcl info-tcl
17660maybe-info-tcl:
17661@if tcl
17662maybe-info-tcl: info-tcl
e8a5fa9c 17663
a90ef4bf
JM
17664info-tcl: \
17665 configure-tcl
17666 @: $(MAKE); $(unstage)
17667 @[ -f ./tcl/Makefile ] || exit 0; \
17668 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17670 $(HOST_EXPORTS) \
17671 for flag in $(EXTRA_HOST_FLAGS) ; do \
17672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17673 done; \
17674 echo "Doing info in tcl" ; \
17675 (cd $(HOST_SUBDIR)/tcl && \
17676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17678 "RANLIB=$${RANLIB}" \
17679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17680 info) \
17681 || exit 1
e8a5fa9c 17682
a90ef4bf 17683@endif tcl
e8a5fa9c 17684
a90ef4bf
JM
17685.PHONY: maybe-dvi-tcl dvi-tcl
17686maybe-dvi-tcl:
17687@if tcl
17688maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17689
a90ef4bf
JM
17690dvi-tcl: \
17691 configure-tcl
17692 @: $(MAKE); $(unstage)
17693 @[ -f ./tcl/Makefile ] || exit 0; \
17694 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17696 $(HOST_EXPORTS) \
17697 for flag in $(EXTRA_HOST_FLAGS) ; do \
17698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17699 done; \
17700 echo "Doing dvi in tcl" ; \
17701 (cd $(HOST_SUBDIR)/tcl && \
17702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17704 "RANLIB=$${RANLIB}" \
17705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17706 dvi) \
17707 || exit 1
e8a5fa9c 17708
a90ef4bf 17709@endif tcl
e8a5fa9c 17710
a90ef4bf
JM
17711.PHONY: maybe-pdf-tcl pdf-tcl
17712maybe-pdf-tcl:
17713@if tcl
17714maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17715
a90ef4bf
JM
17716pdf-tcl: \
17717 configure-tcl
17718 @: $(MAKE); $(unstage)
17719 @[ -f ./tcl/Makefile ] || exit 0; \
17720 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17722 $(HOST_EXPORTS) \
a90ef4bf
JM
17723 for flag in $(EXTRA_HOST_FLAGS) ; do \
17724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17725 done; \
17726 echo "Doing pdf in tcl" ; \
17727 (cd $(HOST_SUBDIR)/tcl && \
17728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17730 "RANLIB=$${RANLIB}" \
17731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17732 pdf) \
17733 || exit 1
e8a5fa9c 17734
a90ef4bf 17735@endif tcl
e8a5fa9c 17736
a90ef4bf
JM
17737.PHONY: maybe-html-tcl html-tcl
17738maybe-html-tcl:
17739@if tcl
17740maybe-html-tcl: html-tcl
e8a5fa9c 17741
a90ef4bf
JM
17742html-tcl: \
17743 configure-tcl
17744 @: $(MAKE); $(unstage)
17745 @[ -f ./tcl/Makefile ] || exit 0; \
17746 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17748 $(HOST_EXPORTS) \
a90ef4bf
JM
17749 for flag in $(EXTRA_HOST_FLAGS) ; do \
17750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17751 done; \
17752 echo "Doing html in tcl" ; \
17753 (cd $(HOST_SUBDIR)/tcl && \
17754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17756 "RANLIB=$${RANLIB}" \
17757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17758 html) \
17759 || exit 1
e8a5fa9c 17760
a90ef4bf 17761@endif tcl
e8a5fa9c 17762
a90ef4bf
JM
17763.PHONY: maybe-TAGS-tcl TAGS-tcl
17764maybe-TAGS-tcl:
17765@if tcl
17766maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17767
a90ef4bf
JM
17768TAGS-tcl: \
17769 configure-tcl
17770 @: $(MAKE); $(unstage)
17771 @[ -f ./tcl/Makefile ] || exit 0; \
17772 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17774 $(HOST_EXPORTS) \
a90ef4bf
JM
17775 for flag in $(EXTRA_HOST_FLAGS) ; do \
17776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17777 done; \
17778 echo "Doing TAGS in tcl" ; \
17779 (cd $(HOST_SUBDIR)/tcl && \
17780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17782 "RANLIB=$${RANLIB}" \
17783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17784 TAGS) \
17785 || exit 1
e8a5fa9c 17786
a90ef4bf 17787@endif tcl
e8a5fa9c 17788
a90ef4bf
JM
17789.PHONY: maybe-install-info-tcl install-info-tcl
17790maybe-install-info-tcl:
17791@if tcl
17792maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17793
a90ef4bf
JM
17794install-info-tcl: \
17795 configure-tcl \
17796 info-tcl
e8a5fa9c 17797 @: $(MAKE); $(unstage)
a90ef4bf 17798 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17799 r=`${PWD_COMMAND}`; export r; \
17800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17801 $(HOST_EXPORTS) \
17802 for flag in $(EXTRA_HOST_FLAGS) ; do \
17803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17804 done; \
a90ef4bf
JM
17805 echo "Doing install-info in tcl" ; \
17806 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17809 "RANLIB=$${RANLIB}" \
17810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17811 install-info) \
e8a5fa9c
RW
17812 || exit 1
17813
a90ef4bf 17814@endif tcl
e8a5fa9c 17815
a90ef4bf
JM
17816.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17817maybe-install-pdf-tcl:
17818@if tcl
17819maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17820
a90ef4bf
JM
17821install-pdf-tcl: \
17822 configure-tcl \
17823 pdf-tcl
17824 @: $(MAKE); $(unstage)
17825 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17826 r=`${PWD_COMMAND}`; export r; \
17827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17828 $(HOST_EXPORTS) \
17829 for flag in $(EXTRA_HOST_FLAGS) ; do \
17830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17831 done; \
a90ef4bf
JM
17832 echo "Doing install-pdf in tcl" ; \
17833 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17836 "RANLIB=$${RANLIB}" \
17837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17838 install-pdf) \
e8a5fa9c
RW
17839 || exit 1
17840
a90ef4bf 17841@endif tcl
e8a5fa9c 17842
a90ef4bf
JM
17843.PHONY: maybe-install-html-tcl install-html-tcl
17844maybe-install-html-tcl:
17845@if tcl
17846maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17847
a90ef4bf
JM
17848install-html-tcl: \
17849 configure-tcl \
17850 html-tcl
17851 @: $(MAKE); $(unstage)
17852 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17853 r=`${PWD_COMMAND}`; export r; \
17854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17855 $(HOST_EXPORTS) \
17856 for flag in $(EXTRA_HOST_FLAGS) ; do \
17857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17858 done; \
a90ef4bf
JM
17859 echo "Doing install-html in tcl" ; \
17860 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17863 "RANLIB=$${RANLIB}" \
17864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17865 install-html) \
e8a5fa9c
RW
17866 || exit 1
17867
a90ef4bf 17868@endif tcl
e8a5fa9c 17869
a90ef4bf
JM
17870.PHONY: maybe-installcheck-tcl installcheck-tcl
17871maybe-installcheck-tcl:
17872@if tcl
17873maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17874
a90ef4bf
JM
17875installcheck-tcl: \
17876 configure-tcl
17877 @: $(MAKE); $(unstage)
17878 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17879 r=`${PWD_COMMAND}`; export r; \
17880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17881 $(HOST_EXPORTS) \
17882 for flag in $(EXTRA_HOST_FLAGS) ; do \
17883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17884 done; \
a90ef4bf
JM
17885 echo "Doing installcheck in tcl" ; \
17886 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17889 "RANLIB=$${RANLIB}" \
17890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17891 installcheck) \
e8a5fa9c
RW
17892 || exit 1
17893
a90ef4bf 17894@endif tcl
e8a5fa9c 17895
a90ef4bf
JM
17896.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
17897maybe-mostlyclean-tcl:
17898@if tcl
17899maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 17900
a90ef4bf
JM
17901# tcl doesn't support mostlyclean.
17902mostlyclean-tcl:
17903
17904@endif tcl
17905
17906.PHONY: maybe-clean-tcl clean-tcl
17907maybe-clean-tcl:
17908@if tcl
17909maybe-clean-tcl: clean-tcl
17910
17911clean-tcl:
17912 @: $(MAKE); $(unstage)
17913 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17914 r=`${PWD_COMMAND}`; export r; \
17915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17916 $(HOST_EXPORTS) \
17917 for flag in $(EXTRA_HOST_FLAGS) ; do \
17918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17919 done; \
a90ef4bf
JM
17920 echo "Doing clean in tcl" ; \
17921 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17924 "RANLIB=$${RANLIB}" \
17925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17926 clean) \
e8a5fa9c
RW
17927 || exit 1
17928
a90ef4bf 17929@endif tcl
e8a5fa9c 17930
a90ef4bf
JM
17931.PHONY: maybe-distclean-tcl distclean-tcl
17932maybe-distclean-tcl:
17933@if tcl
17934maybe-distclean-tcl: distclean-tcl
e8a5fa9c 17935
a90ef4bf
JM
17936distclean-tcl:
17937 @: $(MAKE); $(unstage)
17938 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17939 r=`${PWD_COMMAND}`; export r; \
17940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17941 $(HOST_EXPORTS) \
17942 for flag in $(EXTRA_HOST_FLAGS) ; do \
17943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17944 done; \
a90ef4bf
JM
17945 echo "Doing distclean in tcl" ; \
17946 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17949 "RANLIB=$${RANLIB}" \
17950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17951 distclean) \
e8a5fa9c
RW
17952 || exit 1
17953
a90ef4bf 17954@endif tcl
e8a5fa9c 17955
a90ef4bf
JM
17956.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
17957maybe-maintainer-clean-tcl:
17958@if tcl
17959maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 17960
a90ef4bf
JM
17961maintainer-clean-tcl:
17962 @: $(MAKE); $(unstage)
17963 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17964 r=`${PWD_COMMAND}`; export r; \
17965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17966 $(HOST_EXPORTS) \
17967 for flag in $(EXTRA_HOST_FLAGS) ; do \
17968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17969 done; \
a90ef4bf
JM
17970 echo "Doing maintainer-clean in tcl" ; \
17971 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17974 "RANLIB=$${RANLIB}" \
17975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17976 maintainer-clean) \
e8a5fa9c
RW
17977 || exit 1
17978
a90ef4bf 17979@endif tcl
e8a5fa9c 17980
e8a5fa9c 17981
a90ef4bf
JM
17982
17983.PHONY: configure-itcl maybe-configure-itcl
17984maybe-configure-itcl:
17985@if gcc-bootstrap
17986configure-itcl: stage_current
17987@endif gcc-bootstrap
17988@if itcl
17989maybe-configure-itcl: configure-itcl
17990configure-itcl:
17991 @: $(MAKE); $(unstage)
17992 @r=`${PWD_COMMAND}`; export r; \
17993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17994 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
17995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
17996 $(HOST_EXPORTS) \
17997 echo Configuring in $(HOST_SUBDIR)/itcl; \
17998 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
17999 case $(srcdir) in \
18000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18001 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18003 esac; \
1b6c0831
L
18004 module_srcdir=itcl; \
18005 $(SHELL) \
18006 $$s/$$module_srcdir/configure \
18007 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18008 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18009 --target=${target_alias} \
a90ef4bf
JM
18010 || exit 1
18011@endif itcl
18012
18013
18014
18015
18016
18017.PHONY: all-itcl maybe-all-itcl
18018maybe-all-itcl:
18019@if gcc-bootstrap
18020all-itcl: stage_current
18021@endif gcc-bootstrap
18022@if itcl
18023TARGET-itcl=all
18024maybe-all-itcl: all-itcl
18025all-itcl: configure-itcl
18026 @: $(MAKE); $(unstage)
18027 @r=`${PWD_COMMAND}`; export r; \
18028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18029 $(HOST_EXPORTS) \
18030 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18031 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18032 $(TARGET-itcl))
18033@endif itcl
18034
18035
18036
18037
18038.PHONY: check-itcl maybe-check-itcl
18039maybe-check-itcl:
18040@if itcl
18041maybe-check-itcl: check-itcl
18042
18043check-itcl:
18044 @: $(MAKE); $(unstage)
18045 @r=`${PWD_COMMAND}`; export r; \
18046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18047 $(HOST_EXPORTS) \
18048 (cd $(HOST_SUBDIR)/itcl && \
18049 $(MAKE) $(FLAGS_TO_PASS) check)
18050
18051@endif itcl
18052
18053.PHONY: install-itcl maybe-install-itcl
18054maybe-install-itcl:
18055@if itcl
18056maybe-install-itcl: install-itcl
18057
18058install-itcl: installdirs
18059 @: $(MAKE); $(unstage)
18060 @r=`${PWD_COMMAND}`; export r; \
18061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18062 $(HOST_EXPORTS) \
18063 (cd $(HOST_SUBDIR)/itcl && \
18064 $(MAKE) $(FLAGS_TO_PASS) install)
18065
18066@endif itcl
18067
18068.PHONY: install-strip-itcl maybe-install-strip-itcl
18069maybe-install-strip-itcl:
18070@if itcl
18071maybe-install-strip-itcl: install-strip-itcl
18072
18073install-strip-itcl: installdirs
18074 @: $(MAKE); $(unstage)
18075 @r=`${PWD_COMMAND}`; export r; \
18076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18077 $(HOST_EXPORTS) \
18078 (cd $(HOST_SUBDIR)/itcl && \
18079 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18080
18081@endif itcl
18082
18083# Other targets (info, dvi, pdf, etc.)
18084
18085.PHONY: maybe-info-itcl info-itcl
18086maybe-info-itcl:
18087@if itcl
18088maybe-info-itcl: info-itcl
18089
18090info-itcl: \
18091 configure-itcl
18092 @: $(MAKE); $(unstage)
18093 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18094 r=`${PWD_COMMAND}`; export r; \
18095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18096 $(HOST_EXPORTS) \
18097 for flag in $(EXTRA_HOST_FLAGS) ; do \
18098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18099 done; \
a90ef4bf
JM
18100 echo "Doing info in itcl" ; \
18101 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18104 "RANLIB=$${RANLIB}" \
18105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18106 info) \
e8a5fa9c
RW
18107 || exit 1
18108
a90ef4bf 18109@endif itcl
e8a5fa9c 18110
a90ef4bf
JM
18111.PHONY: maybe-dvi-itcl dvi-itcl
18112maybe-dvi-itcl:
18113@if itcl
18114maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18115
a90ef4bf
JM
18116dvi-itcl: \
18117 configure-itcl
18118 @: $(MAKE); $(unstage)
18119 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18120 r=`${PWD_COMMAND}`; export r; \
18121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18122 $(HOST_EXPORTS) \
18123 for flag in $(EXTRA_HOST_FLAGS) ; do \
18124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18125 done; \
a90ef4bf
JM
18126 echo "Doing dvi in itcl" ; \
18127 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18130 "RANLIB=$${RANLIB}" \
18131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18132 dvi) \
e8a5fa9c
RW
18133 || exit 1
18134
a90ef4bf 18135@endif itcl
e8a5fa9c 18136
a90ef4bf
JM
18137.PHONY: maybe-pdf-itcl pdf-itcl
18138maybe-pdf-itcl:
18139@if itcl
18140maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18141
a90ef4bf
JM
18142pdf-itcl: \
18143 configure-itcl
18144 @: $(MAKE); $(unstage)
18145 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18146 r=`${PWD_COMMAND}`; export r; \
18147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18148 $(HOST_EXPORTS) \
18149 for flag in $(EXTRA_HOST_FLAGS) ; do \
18150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18151 done; \
a90ef4bf
JM
18152 echo "Doing pdf in itcl" ; \
18153 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18156 "RANLIB=$${RANLIB}" \
18157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18158 pdf) \
e8a5fa9c
RW
18159 || exit 1
18160
a90ef4bf 18161@endif itcl
e8a5fa9c 18162
a90ef4bf
JM
18163.PHONY: maybe-html-itcl html-itcl
18164maybe-html-itcl:
18165@if itcl
18166maybe-html-itcl: html-itcl
e8a5fa9c 18167
a90ef4bf
JM
18168html-itcl: \
18169 configure-itcl
18170 @: $(MAKE); $(unstage)
18171 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18172 r=`${PWD_COMMAND}`; export r; \
18173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18174 $(HOST_EXPORTS) \
18175 for flag in $(EXTRA_HOST_FLAGS) ; do \
18176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18177 done; \
a90ef4bf
JM
18178 echo "Doing html in itcl" ; \
18179 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18182 "RANLIB=$${RANLIB}" \
18183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18184 html) \
e8a5fa9c
RW
18185 || exit 1
18186
a90ef4bf 18187@endif itcl
e8a5fa9c 18188
a90ef4bf
JM
18189.PHONY: maybe-TAGS-itcl TAGS-itcl
18190maybe-TAGS-itcl:
18191@if itcl
18192maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18193
a90ef4bf
JM
18194TAGS-itcl: \
18195 configure-itcl
18196 @: $(MAKE); $(unstage)
18197 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18198 r=`${PWD_COMMAND}`; export r; \
18199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18200 $(HOST_EXPORTS) \
18201 for flag in $(EXTRA_HOST_FLAGS) ; do \
18202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18203 done; \
a90ef4bf
JM
18204 echo "Doing TAGS in itcl" ; \
18205 (cd $(HOST_SUBDIR)/itcl && \
18206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18208 "RANLIB=$${RANLIB}" \
18209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18210 TAGS) \
18211 || exit 1
18212
18213@endif itcl
18214
18215.PHONY: maybe-install-info-itcl install-info-itcl
18216maybe-install-info-itcl:
18217@if itcl
18218maybe-install-info-itcl: install-info-itcl
18219
18220install-info-itcl: \
18221 configure-itcl \
18222 info-itcl
18223 @: $(MAKE); $(unstage)
18224 @[ -f ./itcl/Makefile ] || exit 0; \
18225 r=`${PWD_COMMAND}`; export r; \
18226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18227 $(HOST_EXPORTS) \
18228 for flag in $(EXTRA_HOST_FLAGS) ; do \
18229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18230 done; \
18231 echo "Doing install-info in itcl" ; \
18232 (cd $(HOST_SUBDIR)/itcl && \
18233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18235 "RANLIB=$${RANLIB}" \
18236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18237 install-info) \
18238 || exit 1
18239
18240@endif itcl
18241
18242.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18243maybe-install-pdf-itcl:
18244@if itcl
18245maybe-install-pdf-itcl: install-pdf-itcl
18246
18247install-pdf-itcl: \
18248 configure-itcl \
18249 pdf-itcl
18250 @: $(MAKE); $(unstage)
18251 @[ -f ./itcl/Makefile ] || exit 0; \
18252 r=`${PWD_COMMAND}`; export r; \
18253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18254 $(HOST_EXPORTS) \
18255 for flag in $(EXTRA_HOST_FLAGS) ; do \
18256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18257 done; \
18258 echo "Doing install-pdf in itcl" ; \
18259 (cd $(HOST_SUBDIR)/itcl && \
18260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18262 "RANLIB=$${RANLIB}" \
18263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18264 install-pdf) \
18265 || exit 1
18266
18267@endif itcl
18268
18269.PHONY: maybe-install-html-itcl install-html-itcl
18270maybe-install-html-itcl:
18271@if itcl
18272maybe-install-html-itcl: install-html-itcl
18273
18274install-html-itcl: \
18275 configure-itcl \
18276 html-itcl
18277 @: $(MAKE); $(unstage)
18278 @[ -f ./itcl/Makefile ] || exit 0; \
18279 r=`${PWD_COMMAND}`; export r; \
18280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18281 $(HOST_EXPORTS) \
18282 for flag in $(EXTRA_HOST_FLAGS) ; do \
18283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18284 done; \
18285 echo "Doing install-html in itcl" ; \
18286 (cd $(HOST_SUBDIR)/itcl && \
18287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18289 "RANLIB=$${RANLIB}" \
18290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18291 install-html) \
18292 || exit 1
18293
18294@endif itcl
18295
18296.PHONY: maybe-installcheck-itcl installcheck-itcl
18297maybe-installcheck-itcl:
18298@if itcl
18299maybe-installcheck-itcl: installcheck-itcl
18300
18301installcheck-itcl: \
18302 configure-itcl
18303 @: $(MAKE); $(unstage)
18304 @[ -f ./itcl/Makefile ] || exit 0; \
18305 r=`${PWD_COMMAND}`; export r; \
18306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18307 $(HOST_EXPORTS) \
18308 for flag in $(EXTRA_HOST_FLAGS) ; do \
18309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18310 done; \
18311 echo "Doing installcheck in itcl" ; \
18312 (cd $(HOST_SUBDIR)/itcl && \
18313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18315 "RANLIB=$${RANLIB}" \
18316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18317 installcheck) \
18318 || exit 1
18319
18320@endif itcl
18321
18322.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18323maybe-mostlyclean-itcl:
18324@if itcl
18325maybe-mostlyclean-itcl: mostlyclean-itcl
18326
18327mostlyclean-itcl:
18328 @: $(MAKE); $(unstage)
18329 @[ -f ./itcl/Makefile ] || exit 0; \
18330 r=`${PWD_COMMAND}`; export r; \
18331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18332 $(HOST_EXPORTS) \
18333 for flag in $(EXTRA_HOST_FLAGS) ; do \
18334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18335 done; \
18336 echo "Doing mostlyclean in itcl" ; \
18337 (cd $(HOST_SUBDIR)/itcl && \
18338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18340 "RANLIB=$${RANLIB}" \
18341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18342 mostlyclean) \
18343 || exit 1
18344
18345@endif itcl
18346
18347.PHONY: maybe-clean-itcl clean-itcl
18348maybe-clean-itcl:
18349@if itcl
18350maybe-clean-itcl: clean-itcl
18351
18352clean-itcl:
18353 @: $(MAKE); $(unstage)
18354 @[ -f ./itcl/Makefile ] || exit 0; \
18355 r=`${PWD_COMMAND}`; export r; \
18356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18357 $(HOST_EXPORTS) \
18358 for flag in $(EXTRA_HOST_FLAGS) ; do \
18359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18360 done; \
18361 echo "Doing clean in itcl" ; \
18362 (cd $(HOST_SUBDIR)/itcl && \
18363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18365 "RANLIB=$${RANLIB}" \
18366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18367 clean) \
18368 || exit 1
18369
18370@endif itcl
18371
18372.PHONY: maybe-distclean-itcl distclean-itcl
18373maybe-distclean-itcl:
18374@if itcl
18375maybe-distclean-itcl: distclean-itcl
18376
18377distclean-itcl:
18378 @: $(MAKE); $(unstage)
18379 @[ -f ./itcl/Makefile ] || exit 0; \
18380 r=`${PWD_COMMAND}`; export r; \
18381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18382 $(HOST_EXPORTS) \
18383 for flag in $(EXTRA_HOST_FLAGS) ; do \
18384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18385 done; \
18386 echo "Doing distclean in itcl" ; \
18387 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18390 "RANLIB=$${RANLIB}" \
18391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18392 distclean) \
18393 || exit 1
18394
a90ef4bf 18395@endif itcl
e8a5fa9c 18396
a90ef4bf
JM
18397.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18398maybe-maintainer-clean-itcl:
18399@if itcl
18400maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18401
a90ef4bf
JM
18402maintainer-clean-itcl:
18403 @: $(MAKE); $(unstage)
18404 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18405 r=`${PWD_COMMAND}`; export r; \
18406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18407 $(HOST_EXPORTS) \
18408 for flag in $(EXTRA_HOST_FLAGS) ; do \
18409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18410 done; \
a90ef4bf
JM
18411 echo "Doing maintainer-clean in itcl" ; \
18412 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18415 "RANLIB=$${RANLIB}" \
18416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18417 maintainer-clean) \
18418 || exit 1
18419
a90ef4bf 18420@endif itcl
e8a5fa9c
RW
18421
18422
18423
a90ef4bf
JM
18424.PHONY: configure-ld maybe-configure-ld
18425maybe-configure-ld:
e28c595f 18426@if gcc-bootstrap
a90ef4bf 18427configure-ld: stage_current
e28c595f 18428@endif gcc-bootstrap
a90ef4bf
JM
18429@if ld
18430maybe-configure-ld: configure-ld
18431configure-ld:
e28c595f
JM
18432 @r=`${PWD_COMMAND}`; export r; \
18433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18434 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
18435 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
1f53ca9a 18436 $(HOST_EXPORTS) \
a90ef4bf
JM
18437 echo Configuring in $(HOST_SUBDIR)/ld; \
18438 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18439 case $(srcdir) in \
18440 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18441 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18442 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18443 esac; \
1b6c0831
L
18444 module_srcdir=ld; \
18445 $(SHELL) \
18446 $$s/$$module_srcdir/configure \
18447 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18448 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18449 --target=${target_alias} \
e28c595f 18450 || exit 1
a90ef4bf 18451@endif ld
e28c595f
JM
18452
18453
18454
a90ef4bf
JM
18455.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18456maybe-configure-stage1-ld:
18457@if ld-bootstrap
18458maybe-configure-stage1-ld: configure-stage1-ld
18459configure-stage1-ld:
e28c595f 18460 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18461 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18462 @r=`${PWD_COMMAND}`; export r; \
18463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18464 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18465 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18466 $(HOST_EXPORTS) \
e28c595f 18467 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18468 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18469 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18470 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
18471 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18472 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18473 case $(srcdir) in \
18474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18475 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18477 esac; \
1b6c0831
L
18478 module_srcdir=ld; \
18479 $(SHELL) $$s/$$module_srcdir/configure \
18480 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18481 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18482 --target=${target_alias} \
18483 \
a90ef4bf
JM
18484 $(STAGE1_CONFIGURE_FLAGS)
18485@endif ld-bootstrap
e28c595f 18486
a90ef4bf
JM
18487.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18488maybe-configure-stage2-ld:
18489@if ld-bootstrap
18490maybe-configure-stage2-ld: configure-stage2-ld
18491configure-stage2-ld:
e28c595f 18492 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18493 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18494 @r=`${PWD_COMMAND}`; export r; \
18495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18496 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18497 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18498 $(HOST_EXPORTS) \
1b05fbbd 18499 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18500 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18501 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18502 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18503 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
18504 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18505 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18506 case $(srcdir) in \
18507 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18508 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18509 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18510 esac; \
1b6c0831
L
18511 module_srcdir=ld; \
18512 $(SHELL) $$s/$$module_srcdir/configure \
18513 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18514 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18515 --target=${target_alias} \
18516 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18517 $(STAGE2_CONFIGURE_FLAGS)
18518@endif ld-bootstrap
e28c595f 18519
a90ef4bf
JM
18520.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18521maybe-configure-stage3-ld:
18522@if ld-bootstrap
18523maybe-configure-stage3-ld: configure-stage3-ld
18524configure-stage3-ld:
e28c595f 18525 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18526 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18527 @r=`${PWD_COMMAND}`; export r; \
18528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18529 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18530 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18531 $(HOST_EXPORTS) \
1b05fbbd 18532 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18533 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18534 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18535 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18536 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
18537 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18538 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18539 case $(srcdir) in \
18540 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18541 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18542 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18543 esac; \
1b6c0831
L
18544 module_srcdir=ld; \
18545 $(SHELL) $$s/$$module_srcdir/configure \
18546 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18547 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18548 --target=${target_alias} \
18549 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18550 $(STAGE3_CONFIGURE_FLAGS)
18551@endif ld-bootstrap
e28c595f 18552
a90ef4bf
JM
18553.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18554maybe-configure-stage4-ld:
18555@if ld-bootstrap
18556maybe-configure-stage4-ld: configure-stage4-ld
18557configure-stage4-ld:
e28c595f 18558 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18559 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18560 @r=`${PWD_COMMAND}`; export r; \
18561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18562 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18563 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18564 $(HOST_EXPORTS) \
1b05fbbd 18565 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18566 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18567 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18568 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18569 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
18570 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18571 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18572 case $(srcdir) in \
18573 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18574 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18575 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18576 esac; \
1b6c0831
L
18577 module_srcdir=ld; \
18578 $(SHELL) $$s/$$module_srcdir/configure \
18579 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18580 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18581 --target=${target_alias} \
18582 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18583 $(STAGE4_CONFIGURE_FLAGS)
18584@endif ld-bootstrap
e28c595f 18585
a90ef4bf
JM
18586.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18587maybe-configure-stageprofile-ld:
18588@if ld-bootstrap
18589maybe-configure-stageprofile-ld: configure-stageprofile-ld
18590configure-stageprofile-ld:
e28c595f 18591 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18592 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18593 @r=`${PWD_COMMAND}`; export r; \
18594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18595 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18596 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18597 $(HOST_EXPORTS) \
1b05fbbd
AO
18598 $(POSTSTAGE1_HOST_EXPORTS) \
18599 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18600 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18601 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18602 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
18603 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18604 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18605 case $(srcdir) in \
18606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18607 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18609 esac; \
1b6c0831
L
18610 module_srcdir=ld; \
18611 $(SHELL) $$s/$$module_srcdir/configure \
18612 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18613 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18614 --target=${target_alias} \
18615 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18616 $(STAGEprofile_CONFIGURE_FLAGS)
18617@endif ld-bootstrap
e28c595f 18618
a90ef4bf
JM
18619.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18620maybe-configure-stagefeedback-ld:
18621@if ld-bootstrap
18622maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18623configure-stagefeedback-ld:
e28c595f 18624 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18625 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18626 @r=`${PWD_COMMAND}`; export r; \
18627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18628 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18629 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18630 $(HOST_EXPORTS) \
1b05fbbd
AO
18631 $(POSTSTAGE1_HOST_EXPORTS) \
18632 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18633 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18634 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18635 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
18636 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18637 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18638 case $(srcdir) in \
18639 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18640 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18641 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18642 esac; \
1b6c0831
L
18643 module_srcdir=ld; \
18644 $(SHELL) $$s/$$module_srcdir/configure \
18645 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18646 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18647 --target=${target_alias} \
18648 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18649 $(STAGEfeedback_CONFIGURE_FLAGS)
18650@endif ld-bootstrap
e28c595f
JM
18651
18652
18653
18654
18655
a90ef4bf
JM
18656.PHONY: all-ld maybe-all-ld
18657maybe-all-ld:
e28c595f 18658@if gcc-bootstrap
a90ef4bf 18659all-ld: stage_current
e28c595f 18660@endif gcc-bootstrap
a90ef4bf
JM
18661@if ld
18662TARGET-ld=all
18663maybe-all-ld: all-ld
18664all-ld: configure-ld
e28c595f
JM
18665 @r=`${PWD_COMMAND}`; export r; \
18666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18667 $(HOST_EXPORTS) \
a90ef4bf 18668 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18669 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18670 $(TARGET-ld))
18671@endif ld
e28c595f
JM
18672
18673
18674
a90ef4bf
JM
18675.PHONY: all-stage1-ld maybe-all-stage1-ld
18676.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18677maybe-all-stage1-ld:
18678maybe-clean-stage1-ld:
18679@if ld-bootstrap
18680maybe-all-stage1-ld: all-stage1-ld
18681all-stage1: all-stage1-ld
18682TARGET-stage1-ld = $(TARGET-ld)
18683all-stage1-ld: configure-stage1-ld
e28c595f
JM
18684 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18685 @r=`${PWD_COMMAND}`; export r; \
18686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18687 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18688 $(HOST_EXPORTS) \
a90ef4bf 18689 cd $(HOST_SUBDIR)/ld && \
e28c595f 18690 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18691 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18692 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18693 LIBCFLAGS="$(LIBCFLAGS)" \
18694 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18695 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18696 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18697 $(EXTRA_HOST_FLAGS) \
18698 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 18699 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18700 $(TARGET-stage1-ld)
e28c595f 18701
a90ef4bf
JM
18702maybe-clean-stage1-ld: clean-stage1-ld
18703clean-stage1: clean-stage1-ld
18704clean-stage1-ld:
e28c595f 18705 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18706 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18707 else \
a90ef4bf 18708 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18709 $(MAKE) stage1-start; \
18710 fi; \
a90ef4bf 18711 cd $(HOST_SUBDIR)/ld && \
e28c595f 18712 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18713 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18714@endif ld-bootstrap
e28c595f
JM
18715
18716
a90ef4bf
JM
18717.PHONY: all-stage2-ld maybe-all-stage2-ld
18718.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18719maybe-all-stage2-ld:
18720maybe-clean-stage2-ld:
18721@if ld-bootstrap
18722maybe-all-stage2-ld: all-stage2-ld
18723all-stage2: all-stage2-ld
18724TARGET-stage2-ld = $(TARGET-ld)
18725all-stage2-ld: configure-stage2-ld
e28c595f
JM
18726 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18727 @r=`${PWD_COMMAND}`; export r; \
18728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18729 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18730 $(HOST_EXPORTS) \
1f53ca9a 18731 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18732 cd $(HOST_SUBDIR)/ld && \
e28c595f 18733 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18734 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18735 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18736 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18737 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18738 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18739 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18740 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18741 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18742 $(TARGET-stage2-ld)
e28c595f 18743
a90ef4bf
JM
18744maybe-clean-stage2-ld: clean-stage2-ld
18745clean-stage2: clean-stage2-ld
18746clean-stage2-ld:
e28c595f 18747 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18748 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18749 else \
a90ef4bf 18750 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18751 $(MAKE) stage2-start; \
18752 fi; \
a90ef4bf 18753 cd $(HOST_SUBDIR)/ld && \
b3676d82 18754 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18755@endif ld-bootstrap
e28c595f
JM
18756
18757
a90ef4bf
JM
18758.PHONY: all-stage3-ld maybe-all-stage3-ld
18759.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18760maybe-all-stage3-ld:
18761maybe-clean-stage3-ld:
18762@if ld-bootstrap
18763maybe-all-stage3-ld: all-stage3-ld
18764all-stage3: all-stage3-ld
18765TARGET-stage3-ld = $(TARGET-ld)
18766all-stage3-ld: configure-stage3-ld
e28c595f
JM
18767 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18768 @r=`${PWD_COMMAND}`; export r; \
18769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18770 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18771 $(HOST_EXPORTS) \
1f53ca9a 18772 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18773 cd $(HOST_SUBDIR)/ld && \
e28c595f 18774 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18775 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18776 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18777 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18778 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18779 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18780 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18781 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18782 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18783 $(TARGET-stage3-ld)
e28c595f 18784
a90ef4bf
JM
18785maybe-clean-stage3-ld: clean-stage3-ld
18786clean-stage3: clean-stage3-ld
18787clean-stage3-ld:
e28c595f 18788 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18789 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18790 else \
a90ef4bf 18791 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18792 $(MAKE) stage3-start; \
18793 fi; \
a90ef4bf 18794 cd $(HOST_SUBDIR)/ld && \
b3676d82 18795 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18796@endif ld-bootstrap
e28c595f
JM
18797
18798
a90ef4bf
JM
18799.PHONY: all-stage4-ld maybe-all-stage4-ld
18800.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18801maybe-all-stage4-ld:
18802maybe-clean-stage4-ld:
18803@if ld-bootstrap
18804maybe-all-stage4-ld: all-stage4-ld
18805all-stage4: all-stage4-ld
18806TARGET-stage4-ld = $(TARGET-ld)
18807all-stage4-ld: configure-stage4-ld
e28c595f
JM
18808 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18809 @r=`${PWD_COMMAND}`; export r; \
18810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18811 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18812 $(HOST_EXPORTS) \
1f53ca9a 18813 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18814 cd $(HOST_SUBDIR)/ld && \
e28c595f 18815 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18816 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18817 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18818 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18819 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18820 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18821 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18822 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18823 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18824 $(TARGET-stage4-ld)
e28c595f 18825
a90ef4bf
JM
18826maybe-clean-stage4-ld: clean-stage4-ld
18827clean-stage4: clean-stage4-ld
18828clean-stage4-ld:
e28c595f 18829 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18830 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18831 else \
a90ef4bf 18832 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18833 $(MAKE) stage4-start; \
18834 fi; \
a90ef4bf 18835 cd $(HOST_SUBDIR)/ld && \
b3676d82 18836 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18837@endif ld-bootstrap
e28c595f
JM
18838
18839
a90ef4bf
JM
18840.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18841.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18842maybe-all-stageprofile-ld:
18843maybe-clean-stageprofile-ld:
18844@if ld-bootstrap
18845maybe-all-stageprofile-ld: all-stageprofile-ld
18846all-stageprofile: all-stageprofile-ld
18847TARGET-stageprofile-ld = $(TARGET-ld)
18848all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18849 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18850 @r=`${PWD_COMMAND}`; export r; \
18851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18852 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18853 $(HOST_EXPORTS) \
1f53ca9a 18854 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18855 cd $(HOST_SUBDIR)/ld && \
e28c595f 18856 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18857 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18858 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18859 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18860 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18861 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18862 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18863 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18864 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18865 $(TARGET-stageprofile-ld)
e28c595f 18866
a90ef4bf
JM
18867maybe-clean-stageprofile-ld: clean-stageprofile-ld
18868clean-stageprofile: clean-stageprofile-ld
18869clean-stageprofile-ld:
e28c595f 18870 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18871 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18872 else \
a90ef4bf 18873 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18874 $(MAKE) stageprofile-start; \
18875 fi; \
a90ef4bf 18876 cd $(HOST_SUBDIR)/ld && \
b3676d82 18877 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18878@endif ld-bootstrap
e28c595f
JM
18879
18880
a90ef4bf
JM
18881.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18882.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18883maybe-all-stagefeedback-ld:
18884maybe-clean-stagefeedback-ld:
18885@if ld-bootstrap
18886maybe-all-stagefeedback-ld: all-stagefeedback-ld
18887all-stagefeedback: all-stagefeedback-ld
18888TARGET-stagefeedback-ld = $(TARGET-ld)
18889all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
18890 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18891 @r=`${PWD_COMMAND}`; export r; \
18892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18893 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 18894 $(HOST_EXPORTS) \
1f53ca9a 18895 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18896 cd $(HOST_SUBDIR)/ld && \
e28c595f 18897 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18898 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 18899 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
18900 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18901 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18902 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18903 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18904 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18905 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 18906 $(TARGET-stagefeedback-ld)
e28c595f 18907
a90ef4bf
JM
18908maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
18909clean-stagefeedback: clean-stagefeedback-ld
18910clean-stagefeedback-ld:
e28c595f 18911 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 18912 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18913 else \
a90ef4bf 18914 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
18915 $(MAKE) stagefeedback-start; \
18916 fi; \
a90ef4bf 18917 cd $(HOST_SUBDIR)/ld && \
b3676d82 18918 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18919@endif ld-bootstrap
e28c595f
JM
18920
18921
18922
18923
18924
a90ef4bf
JM
18925.PHONY: check-ld maybe-check-ld
18926maybe-check-ld:
18927@if ld
18928maybe-check-ld: check-ld
e28c595f 18929
a90ef4bf 18930check-ld:
e28c595f
JM
18931 @: $(MAKE); $(unstage)
18932 @r=`${PWD_COMMAND}`; export r; \
18933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18934 $(HOST_EXPORTS) \
a90ef4bf 18935 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
18936 $(MAKE) $(FLAGS_TO_PASS) check)
18937
a90ef4bf 18938@endif ld
e28c595f 18939
a90ef4bf
JM
18940.PHONY: install-ld maybe-install-ld
18941maybe-install-ld:
18942@if ld
18943maybe-install-ld: install-ld
e28c595f 18944
a90ef4bf
JM
18945install-ld: installdirs
18946 @: $(MAKE); $(unstage)
18947 @r=`${PWD_COMMAND}`; export r; \
18948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18949 $(HOST_EXPORTS) \
18950 (cd $(HOST_SUBDIR)/ld && \
18951 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 18952
a90ef4bf 18953@endif ld
e28c595f 18954
a90ef4bf
JM
18955.PHONY: install-strip-ld maybe-install-strip-ld
18956maybe-install-strip-ld:
18957@if ld
18958maybe-install-strip-ld: install-strip-ld
9b980aa1 18959
a90ef4bf
JM
18960install-strip-ld: installdirs
18961 @: $(MAKE); $(unstage)
18962 @r=`${PWD_COMMAND}`; export r; \
18963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18964 $(HOST_EXPORTS) \
18965 (cd $(HOST_SUBDIR)/ld && \
18966 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 18967
a90ef4bf 18968@endif ld
9b980aa1 18969
e28c595f
JM
18970# Other targets (info, dvi, pdf, etc.)
18971
a90ef4bf
JM
18972.PHONY: maybe-info-ld info-ld
18973maybe-info-ld:
18974@if ld
18975maybe-info-ld: info-ld
e28c595f 18976
a90ef4bf
JM
18977info-ld: \
18978 configure-ld
18979 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
18980 r=`${PWD_COMMAND}`; export r; \
18981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18982 $(HOST_EXPORTS) \
18983 for flag in $(EXTRA_HOST_FLAGS) ; do \
18984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18985 done; \
a90ef4bf
JM
18986 echo "Doing info in ld" ; \
18987 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
18988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18990 "RANLIB=$${RANLIB}" \
18991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18992 info) \
18993 || exit 1
18994
a90ef4bf 18995@endif ld
e28c595f 18996
a90ef4bf
JM
18997.PHONY: maybe-dvi-ld dvi-ld
18998maybe-dvi-ld:
18999@if ld
19000maybe-dvi-ld: dvi-ld
e28c595f 19001
a90ef4bf
JM
19002dvi-ld: \
19003 configure-ld
19004 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19005 r=`${PWD_COMMAND}`; export r; \
19006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19007 $(HOST_EXPORTS) \
19008 for flag in $(EXTRA_HOST_FLAGS) ; do \
19009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19010 done; \
a90ef4bf
JM
19011 echo "Doing dvi in ld" ; \
19012 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19015 "RANLIB=$${RANLIB}" \
19016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19017 dvi) \
19018 || exit 1
19019
a90ef4bf 19020@endif ld
e28c595f 19021
a90ef4bf
JM
19022.PHONY: maybe-pdf-ld pdf-ld
19023maybe-pdf-ld:
19024@if ld
19025maybe-pdf-ld: pdf-ld
e28c595f 19026
a90ef4bf
JM
19027pdf-ld: \
19028 configure-ld
19029 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19030 r=`${PWD_COMMAND}`; export r; \
19031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19032 $(HOST_EXPORTS) \
19033 for flag in $(EXTRA_HOST_FLAGS) ; do \
19034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19035 done; \
a90ef4bf
JM
19036 echo "Doing pdf in ld" ; \
19037 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19040 "RANLIB=$${RANLIB}" \
19041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19042 pdf) \
19043 || exit 1
19044
a90ef4bf 19045@endif ld
e28c595f 19046
a90ef4bf
JM
19047.PHONY: maybe-html-ld html-ld
19048maybe-html-ld:
19049@if ld
19050maybe-html-ld: html-ld
e28c595f 19051
a90ef4bf
JM
19052html-ld: \
19053 configure-ld
19054 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19055 r=`${PWD_COMMAND}`; export r; \
19056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19057 $(HOST_EXPORTS) \
19058 for flag in $(EXTRA_HOST_FLAGS) ; do \
19059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19060 done; \
a90ef4bf
JM
19061 echo "Doing html in ld" ; \
19062 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19065 "RANLIB=$${RANLIB}" \
19066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19067 html) \
19068 || exit 1
19069
a90ef4bf 19070@endif ld
e28c595f 19071
a90ef4bf
JM
19072.PHONY: maybe-TAGS-ld TAGS-ld
19073maybe-TAGS-ld:
19074@if ld
19075maybe-TAGS-ld: TAGS-ld
e28c595f 19076
a90ef4bf
JM
19077TAGS-ld: \
19078 configure-ld
19079 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19080 r=`${PWD_COMMAND}`; export r; \
19081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19082 $(HOST_EXPORTS) \
19083 for flag in $(EXTRA_HOST_FLAGS) ; do \
19084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19085 done; \
a90ef4bf
JM
19086 echo "Doing TAGS in ld" ; \
19087 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19090 "RANLIB=$${RANLIB}" \
19091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19092 TAGS) \
19093 || exit 1
19094
a90ef4bf 19095@endif ld
e28c595f 19096
a90ef4bf
JM
19097.PHONY: maybe-install-info-ld install-info-ld
19098maybe-install-info-ld:
19099@if ld
19100maybe-install-info-ld: install-info-ld
e28c595f 19101
a90ef4bf
JM
19102install-info-ld: \
19103 configure-ld \
19104 info-ld
19105 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19106 r=`${PWD_COMMAND}`; export r; \
19107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19108 $(HOST_EXPORTS) \
19109 for flag in $(EXTRA_HOST_FLAGS) ; do \
19110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19111 done; \
a90ef4bf
JM
19112 echo "Doing install-info in ld" ; \
19113 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19116 "RANLIB=$${RANLIB}" \
19117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19118 install-info) \
19119 || exit 1
19120
a90ef4bf 19121@endif ld
e28c595f 19122
a90ef4bf
JM
19123.PHONY: maybe-install-pdf-ld install-pdf-ld
19124maybe-install-pdf-ld:
19125@if ld
19126maybe-install-pdf-ld: install-pdf-ld
e28c595f 19127
a90ef4bf
JM
19128install-pdf-ld: \
19129 configure-ld \
19130 pdf-ld
19131 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19132 r=`${PWD_COMMAND}`; export r; \
19133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19134 $(HOST_EXPORTS) \
19135 for flag in $(EXTRA_HOST_FLAGS) ; do \
19136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19137 done; \
a90ef4bf
JM
19138 echo "Doing install-pdf in ld" ; \
19139 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19142 "RANLIB=$${RANLIB}" \
19143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19144 install-pdf) \
19145 || exit 1
19146
a90ef4bf 19147@endif ld
e28c595f 19148
a90ef4bf
JM
19149.PHONY: maybe-install-html-ld install-html-ld
19150maybe-install-html-ld:
19151@if ld
19152maybe-install-html-ld: install-html-ld
e28c595f 19153
a90ef4bf
JM
19154install-html-ld: \
19155 configure-ld \
19156 html-ld
19157 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19158 r=`${PWD_COMMAND}`; export r; \
19159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19160 $(HOST_EXPORTS) \
19161 for flag in $(EXTRA_HOST_FLAGS) ; do \
19162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19163 done; \
a90ef4bf
JM
19164 echo "Doing install-html in ld" ; \
19165 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19168 "RANLIB=$${RANLIB}" \
19169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19170 install-html) \
19171 || exit 1
19172
a90ef4bf 19173@endif ld
e28c595f 19174
a90ef4bf
JM
19175.PHONY: maybe-installcheck-ld installcheck-ld
19176maybe-installcheck-ld:
19177@if ld
19178maybe-installcheck-ld: installcheck-ld
e28c595f 19179
a90ef4bf
JM
19180installcheck-ld: \
19181 configure-ld
19182 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19183 r=`${PWD_COMMAND}`; export r; \
19184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19185 $(HOST_EXPORTS) \
19186 for flag in $(EXTRA_HOST_FLAGS) ; do \
19187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19188 done; \
a90ef4bf
JM
19189 echo "Doing installcheck in ld" ; \
19190 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19193 "RANLIB=$${RANLIB}" \
0c24b341 19194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19195 installcheck) \
19196 || exit 1
19197
a90ef4bf 19198@endif ld
4b900473 19199
a90ef4bf
JM
19200.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19201maybe-mostlyclean-ld:
19202@if ld
19203maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19204
a90ef4bf
JM
19205mostlyclean-ld:
19206 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19207 r=`${PWD_COMMAND}`; export r; \
19208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19209 $(HOST_EXPORTS) \
19210 for flag in $(EXTRA_HOST_FLAGS) ; do \
19211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19212 done; \
a90ef4bf
JM
19213 echo "Doing mostlyclean in ld" ; \
19214 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19217 "RANLIB=$${RANLIB}" \
0c24b341 19218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19219 mostlyclean) \
19220 || exit 1
19221
a90ef4bf 19222@endif ld
4b900473 19223
a90ef4bf
JM
19224.PHONY: maybe-clean-ld clean-ld
19225maybe-clean-ld:
19226@if ld
19227maybe-clean-ld: clean-ld
4b900473 19228
a90ef4bf
JM
19229clean-ld:
19230 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19231 r=`${PWD_COMMAND}`; export r; \
19232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19233 $(HOST_EXPORTS) \
19234 for flag in $(EXTRA_HOST_FLAGS) ; do \
19235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19236 done; \
a90ef4bf
JM
19237 echo "Doing clean in ld" ; \
19238 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19241 "RANLIB=$${RANLIB}" \
0c24b341 19242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19243 clean) \
19244 || exit 1
19245
a90ef4bf 19246@endif ld
4b900473 19247
a90ef4bf
JM
19248.PHONY: maybe-distclean-ld distclean-ld
19249maybe-distclean-ld:
19250@if ld
19251maybe-distclean-ld: distclean-ld
4b900473 19252
a90ef4bf
JM
19253distclean-ld:
19254 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19255 r=`${PWD_COMMAND}`; export r; \
19256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19257 $(HOST_EXPORTS) \
19258 for flag in $(EXTRA_HOST_FLAGS) ; do \
19259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19260 done; \
a90ef4bf
JM
19261 echo "Doing distclean in ld" ; \
19262 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19265 "RANLIB=$${RANLIB}" \
0c24b341 19266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19267 distclean) \
19268 || exit 1
19269
a90ef4bf 19270@endif ld
4b900473 19271
a90ef4bf
JM
19272.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19273maybe-maintainer-clean-ld:
19274@if ld
19275maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19276
a90ef4bf
JM
19277maintainer-clean-ld:
19278 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19279 r=`${PWD_COMMAND}`; export r; \
19280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19281 $(HOST_EXPORTS) \
19282 for flag in $(EXTRA_HOST_FLAGS) ; do \
19283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19284 done; \
a90ef4bf
JM
19285 echo "Doing maintainer-clean in ld" ; \
19286 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19289 "RANLIB=$${RANLIB}" \
0c24b341 19290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19291 maintainer-clean) \
19292 || exit 1
19293
a90ef4bf 19294@endif ld
4b900473
PB
19295
19296
19297
2bf680c4
ILT
19298.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19299maybe-configure-libbacktrace:
19300@if gcc-bootstrap
19301configure-libbacktrace: stage_current
19302@endif gcc-bootstrap
19303@if libbacktrace
19304maybe-configure-libbacktrace: configure-libbacktrace
19305configure-libbacktrace:
19306 @r=`${PWD_COMMAND}`; export r; \
19307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19308 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19309 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19310 $(HOST_EXPORTS) \
19311 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19312 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19313 case $(srcdir) in \
19314 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19315 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19316 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19317 esac; \
1b6c0831
L
19318 module_srcdir=libbacktrace; \
19319 $(SHELL) \
19320 $$s/$$module_srcdir/configure \
19321 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19322 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19323 --target=${target_alias} \
2bf680c4
ILT
19324 || exit 1
19325@endif libbacktrace
19326
19327
19328
19329.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19330maybe-configure-stage1-libbacktrace:
19331@if libbacktrace-bootstrap
19332maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19333configure-stage1-libbacktrace:
19334 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19335 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19336 @r=`${PWD_COMMAND}`; export r; \
19337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19338 TFLAGS="$(STAGE1_TFLAGS)"; \
19339 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19340 $(HOST_EXPORTS) \
19341 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19342 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19343 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
19344 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace ; \
19345 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19346 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19347 case $(srcdir) in \
19348 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19349 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19350 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19351 esac; \
1b6c0831
L
19352 module_srcdir=libbacktrace; \
19353 $(SHELL) $$s/$$module_srcdir/configure \
19354 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19355 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19356 --target=${target_alias} \
19357 \
2bf680c4
ILT
19358 $(STAGE1_CONFIGURE_FLAGS)
19359@endif libbacktrace-bootstrap
19360
19361.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19362maybe-configure-stage2-libbacktrace:
19363@if libbacktrace-bootstrap
19364maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19365configure-stage2-libbacktrace:
19366 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19367 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19368 @r=`${PWD_COMMAND}`; export r; \
19369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19370 TFLAGS="$(STAGE2_TFLAGS)"; \
19371 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19372 $(HOST_EXPORTS) \
19373 $(POSTSTAGE1_HOST_EXPORTS) \
19374 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19375 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19376 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
19377 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace ; \
19378 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19379 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19380 case $(srcdir) in \
19381 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19382 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19383 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19384 esac; \
1b6c0831
L
19385 module_srcdir=libbacktrace; \
19386 $(SHELL) $$s/$$module_srcdir/configure \
19387 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19388 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19389 --target=${target_alias} \
19390 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19391 $(STAGE2_CONFIGURE_FLAGS)
19392@endif libbacktrace-bootstrap
19393
19394.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19395maybe-configure-stage3-libbacktrace:
19396@if libbacktrace-bootstrap
19397maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19398configure-stage3-libbacktrace:
19399 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19400 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19401 @r=`${PWD_COMMAND}`; export r; \
19402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19403 TFLAGS="$(STAGE3_TFLAGS)"; \
19404 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19405 $(HOST_EXPORTS) \
19406 $(POSTSTAGE1_HOST_EXPORTS) \
19407 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19408 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19409 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
19410 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace ; \
19411 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19412 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19413 case $(srcdir) in \
19414 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19415 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19416 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19417 esac; \
1b6c0831
L
19418 module_srcdir=libbacktrace; \
19419 $(SHELL) $$s/$$module_srcdir/configure \
19420 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19421 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19422 --target=${target_alias} \
19423 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19424 $(STAGE3_CONFIGURE_FLAGS)
19425@endif libbacktrace-bootstrap
19426
19427.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19428maybe-configure-stage4-libbacktrace:
19429@if libbacktrace-bootstrap
19430maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19431configure-stage4-libbacktrace:
19432 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19433 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19434 @r=`${PWD_COMMAND}`; export r; \
19435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19436 TFLAGS="$(STAGE4_TFLAGS)"; \
19437 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19438 $(HOST_EXPORTS) \
19439 $(POSTSTAGE1_HOST_EXPORTS) \
19440 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19441 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19442 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
19443 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace ; \
19444 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19445 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19446 case $(srcdir) in \
19447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19448 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19450 esac; \
1b6c0831
L
19451 module_srcdir=libbacktrace; \
19452 $(SHELL) $$s/$$module_srcdir/configure \
19453 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19454 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19455 --target=${target_alias} \
19456 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19457 $(STAGE4_CONFIGURE_FLAGS)
19458@endif libbacktrace-bootstrap
19459
19460.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19461maybe-configure-stageprofile-libbacktrace:
19462@if libbacktrace-bootstrap
19463maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19464configure-stageprofile-libbacktrace:
19465 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19466 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19467 @r=`${PWD_COMMAND}`; export r; \
19468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19469 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19470 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19471 $(HOST_EXPORTS) \
19472 $(POSTSTAGE1_HOST_EXPORTS) \
19473 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19474 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19475 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
19476 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace ; \
19477 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19478 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19479 case $(srcdir) in \
19480 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19481 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19482 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19483 esac; \
1b6c0831
L
19484 module_srcdir=libbacktrace; \
19485 $(SHELL) $$s/$$module_srcdir/configure \
19486 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19487 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19488 --target=${target_alias} \
19489 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19490 $(STAGEprofile_CONFIGURE_FLAGS)
19491@endif libbacktrace-bootstrap
19492
19493.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19494maybe-configure-stagefeedback-libbacktrace:
19495@if libbacktrace-bootstrap
19496maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19497configure-stagefeedback-libbacktrace:
19498 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19499 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19500 @r=`${PWD_COMMAND}`; export r; \
19501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19502 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19503 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19504 $(HOST_EXPORTS) \
19505 $(POSTSTAGE1_HOST_EXPORTS) \
19506 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19507 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19508 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
19509 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace ; \
19510 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19511 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19512 case $(srcdir) in \
19513 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19514 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19515 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19516 esac; \
1b6c0831
L
19517 module_srcdir=libbacktrace; \
19518 $(SHELL) $$s/$$module_srcdir/configure \
19519 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19520 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19521 --target=${target_alias} \
19522 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19523 $(STAGEfeedback_CONFIGURE_FLAGS)
19524@endif libbacktrace-bootstrap
19525
19526
19527
19528
19529
19530.PHONY: all-libbacktrace maybe-all-libbacktrace
19531maybe-all-libbacktrace:
19532@if gcc-bootstrap
19533all-libbacktrace: stage_current
19534@endif gcc-bootstrap
19535@if libbacktrace
19536TARGET-libbacktrace=all
19537maybe-all-libbacktrace: all-libbacktrace
19538all-libbacktrace: configure-libbacktrace
19539 @r=`${PWD_COMMAND}`; export r; \
19540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19541 $(HOST_EXPORTS) \
19542 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19543 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19544 $(TARGET-libbacktrace))
19545@endif libbacktrace
19546
19547
19548
19549.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19550.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19551maybe-all-stage1-libbacktrace:
19552maybe-clean-stage1-libbacktrace:
19553@if libbacktrace-bootstrap
19554maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19555all-stage1: all-stage1-libbacktrace
19556TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19557all-stage1-libbacktrace: configure-stage1-libbacktrace
19558 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19559 @r=`${PWD_COMMAND}`; export r; \
19560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19561 TFLAGS="$(STAGE1_TFLAGS)"; \
19562 $(HOST_EXPORTS) \
19563 cd $(HOST_SUBDIR)/libbacktrace && \
19564 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19565 CFLAGS="$(STAGE1_CFLAGS)" \
19566 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19567 LIBCFLAGS="$(LIBCFLAGS)" \
19568 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19569 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19570 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19571 $(EXTRA_HOST_FLAGS) \
19572 $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19573 TFLAGS="$(STAGE1_TFLAGS)" \
19574 $(TARGET-stage1-libbacktrace)
19575
19576maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19577clean-stage1: clean-stage1-libbacktrace
19578clean-stage1-libbacktrace:
19579 @if [ $(current_stage) = stage1 ]; then \
19580 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19581 else \
19582 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19583 $(MAKE) stage1-start; \
19584 fi; \
19585 cd $(HOST_SUBDIR)/libbacktrace && \
19586 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19587 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19588@endif libbacktrace-bootstrap
19589
19590
19591.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19592.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19593maybe-all-stage2-libbacktrace:
19594maybe-clean-stage2-libbacktrace:
19595@if libbacktrace-bootstrap
19596maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19597all-stage2: all-stage2-libbacktrace
19598TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19599all-stage2-libbacktrace: configure-stage2-libbacktrace
19600 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19601 @r=`${PWD_COMMAND}`; export r; \
19602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19603 TFLAGS="$(STAGE2_TFLAGS)"; \
19604 $(HOST_EXPORTS) \
19605 $(POSTSTAGE1_HOST_EXPORTS) \
19606 cd $(HOST_SUBDIR)/libbacktrace && \
19607 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19608 CFLAGS="$(STAGE2_CFLAGS)" \
19609 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19610 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19611 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19612 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19613 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19614 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19615 TFLAGS="$(STAGE2_TFLAGS)" \
19616 $(TARGET-stage2-libbacktrace)
19617
19618maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19619clean-stage2: clean-stage2-libbacktrace
19620clean-stage2-libbacktrace:
19621 @if [ $(current_stage) = stage2 ]; then \
19622 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19623 else \
19624 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19625 $(MAKE) stage2-start; \
19626 fi; \
19627 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19628 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19629@endif libbacktrace-bootstrap
19630
19631
19632.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19633.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19634maybe-all-stage3-libbacktrace:
19635maybe-clean-stage3-libbacktrace:
19636@if libbacktrace-bootstrap
19637maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19638all-stage3: all-stage3-libbacktrace
19639TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19640all-stage3-libbacktrace: configure-stage3-libbacktrace
19641 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19642 @r=`${PWD_COMMAND}`; export r; \
19643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19644 TFLAGS="$(STAGE3_TFLAGS)"; \
19645 $(HOST_EXPORTS) \
19646 $(POSTSTAGE1_HOST_EXPORTS) \
19647 cd $(HOST_SUBDIR)/libbacktrace && \
19648 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19649 CFLAGS="$(STAGE3_CFLAGS)" \
19650 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19651 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19652 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19653 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19654 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19655 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19656 TFLAGS="$(STAGE3_TFLAGS)" \
19657 $(TARGET-stage3-libbacktrace)
19658
19659maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19660clean-stage3: clean-stage3-libbacktrace
19661clean-stage3-libbacktrace:
19662 @if [ $(current_stage) = stage3 ]; then \
19663 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19664 else \
19665 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19666 $(MAKE) stage3-start; \
19667 fi; \
19668 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19669 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19670@endif libbacktrace-bootstrap
19671
19672
19673.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19674.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19675maybe-all-stage4-libbacktrace:
19676maybe-clean-stage4-libbacktrace:
19677@if libbacktrace-bootstrap
19678maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19679all-stage4: all-stage4-libbacktrace
19680TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19681all-stage4-libbacktrace: configure-stage4-libbacktrace
19682 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19683 @r=`${PWD_COMMAND}`; export r; \
19684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19685 TFLAGS="$(STAGE4_TFLAGS)"; \
19686 $(HOST_EXPORTS) \
19687 $(POSTSTAGE1_HOST_EXPORTS) \
19688 cd $(HOST_SUBDIR)/libbacktrace && \
19689 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19690 CFLAGS="$(STAGE4_CFLAGS)" \
19691 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19692 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19693 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19694 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19695 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19696 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19697 TFLAGS="$(STAGE4_TFLAGS)" \
19698 $(TARGET-stage4-libbacktrace)
19699
19700maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19701clean-stage4: clean-stage4-libbacktrace
19702clean-stage4-libbacktrace:
19703 @if [ $(current_stage) = stage4 ]; then \
19704 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19705 else \
19706 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19707 $(MAKE) stage4-start; \
19708 fi; \
19709 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19710 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19711@endif libbacktrace-bootstrap
19712
19713
19714.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19715.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19716maybe-all-stageprofile-libbacktrace:
19717maybe-clean-stageprofile-libbacktrace:
19718@if libbacktrace-bootstrap
19719maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19720all-stageprofile: all-stageprofile-libbacktrace
19721TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19722all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19723 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19724 @r=`${PWD_COMMAND}`; export r; \
19725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19726 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19727 $(HOST_EXPORTS) \
19728 $(POSTSTAGE1_HOST_EXPORTS) \
19729 cd $(HOST_SUBDIR)/libbacktrace && \
19730 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19731 CFLAGS="$(STAGEprofile_CFLAGS)" \
19732 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19733 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19734 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19735 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19736 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19737 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19738 TFLAGS="$(STAGEprofile_TFLAGS)" \
19739 $(TARGET-stageprofile-libbacktrace)
19740
19741maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19742clean-stageprofile: clean-stageprofile-libbacktrace
19743clean-stageprofile-libbacktrace:
19744 @if [ $(current_stage) = stageprofile ]; then \
19745 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19746 else \
19747 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19748 $(MAKE) stageprofile-start; \
19749 fi; \
19750 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19751 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19752@endif libbacktrace-bootstrap
19753
19754
19755.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19756.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19757maybe-all-stagefeedback-libbacktrace:
19758maybe-clean-stagefeedback-libbacktrace:
19759@if libbacktrace-bootstrap
19760maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19761all-stagefeedback: all-stagefeedback-libbacktrace
19762TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19763all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19764 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19765 @r=`${PWD_COMMAND}`; export r; \
19766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19767 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19768 $(HOST_EXPORTS) \
19769 $(POSTSTAGE1_HOST_EXPORTS) \
19770 cd $(HOST_SUBDIR)/libbacktrace && \
19771 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19772 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19773 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19774 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19775 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19776 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19777 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19778 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19779 TFLAGS="$(STAGEfeedback_TFLAGS)" \
19780 $(TARGET-stagefeedback-libbacktrace)
19781
19782maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19783clean-stagefeedback: clean-stagefeedback-libbacktrace
19784clean-stagefeedback-libbacktrace:
19785 @if [ $(current_stage) = stagefeedback ]; then \
19786 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19787 else \
19788 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19789 $(MAKE) stagefeedback-start; \
19790 fi; \
19791 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19792 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19793@endif libbacktrace-bootstrap
19794
19795
19796
19797
19798
19799.PHONY: check-libbacktrace maybe-check-libbacktrace
19800maybe-check-libbacktrace:
19801@if libbacktrace
19802maybe-check-libbacktrace: check-libbacktrace
19803
19804check-libbacktrace:
19805 @: $(MAKE); $(unstage)
19806 @r=`${PWD_COMMAND}`; export r; \
19807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19808 $(HOST_EXPORTS) \
19809 (cd $(HOST_SUBDIR)/libbacktrace && \
19810 $(MAKE) $(FLAGS_TO_PASS) check)
19811
19812@endif libbacktrace
19813
19814.PHONY: install-libbacktrace maybe-install-libbacktrace
19815maybe-install-libbacktrace:
19816@if libbacktrace
19817maybe-install-libbacktrace: install-libbacktrace
19818
19819install-libbacktrace: installdirs
19820 @: $(MAKE); $(unstage)
19821 @r=`${PWD_COMMAND}`; export r; \
19822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19823 $(HOST_EXPORTS) \
19824 (cd $(HOST_SUBDIR)/libbacktrace && \
19825 $(MAKE) $(FLAGS_TO_PASS) install)
19826
19827@endif libbacktrace
19828
19829.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19830maybe-install-strip-libbacktrace:
19831@if libbacktrace
19832maybe-install-strip-libbacktrace: install-strip-libbacktrace
19833
19834install-strip-libbacktrace: installdirs
19835 @: $(MAKE); $(unstage)
19836 @r=`${PWD_COMMAND}`; export r; \
19837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19838 $(HOST_EXPORTS) \
19839 (cd $(HOST_SUBDIR)/libbacktrace && \
19840 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19841
19842@endif libbacktrace
19843
19844# Other targets (info, dvi, pdf, etc.)
19845
19846.PHONY: maybe-info-libbacktrace info-libbacktrace
19847maybe-info-libbacktrace:
19848@if libbacktrace
19849maybe-info-libbacktrace: info-libbacktrace
19850
19851info-libbacktrace: \
19852 configure-libbacktrace
19853 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19854 r=`${PWD_COMMAND}`; export r; \
19855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19856 $(HOST_EXPORTS) \
19857 for flag in $(EXTRA_HOST_FLAGS) ; do \
19858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19859 done; \
19860 echo "Doing info in libbacktrace" ; \
19861 (cd $(HOST_SUBDIR)/libbacktrace && \
19862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19864 "RANLIB=$${RANLIB}" \
19865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19866 info) \
19867 || exit 1
19868
19869@endif libbacktrace
19870
19871.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19872maybe-dvi-libbacktrace:
19873@if libbacktrace
19874maybe-dvi-libbacktrace: dvi-libbacktrace
19875
19876dvi-libbacktrace: \
19877 configure-libbacktrace
19878 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19879 r=`${PWD_COMMAND}`; export r; \
19880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19881 $(HOST_EXPORTS) \
19882 for flag in $(EXTRA_HOST_FLAGS) ; do \
19883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19884 done; \
19885 echo "Doing dvi in libbacktrace" ; \
19886 (cd $(HOST_SUBDIR)/libbacktrace && \
19887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19889 "RANLIB=$${RANLIB}" \
19890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19891 dvi) \
19892 || exit 1
19893
19894@endif libbacktrace
19895
19896.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
19897maybe-pdf-libbacktrace:
19898@if libbacktrace
19899maybe-pdf-libbacktrace: pdf-libbacktrace
19900
19901pdf-libbacktrace: \
19902 configure-libbacktrace
19903 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19904 r=`${PWD_COMMAND}`; export r; \
19905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19906 $(HOST_EXPORTS) \
19907 for flag in $(EXTRA_HOST_FLAGS) ; do \
19908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19909 done; \
19910 echo "Doing pdf in libbacktrace" ; \
19911 (cd $(HOST_SUBDIR)/libbacktrace && \
19912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19914 "RANLIB=$${RANLIB}" \
19915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19916 pdf) \
19917 || exit 1
19918
19919@endif libbacktrace
19920
19921.PHONY: maybe-html-libbacktrace html-libbacktrace
19922maybe-html-libbacktrace:
19923@if libbacktrace
19924maybe-html-libbacktrace: html-libbacktrace
19925
19926html-libbacktrace: \
19927 configure-libbacktrace
19928 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19929 r=`${PWD_COMMAND}`; export r; \
19930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19931 $(HOST_EXPORTS) \
19932 for flag in $(EXTRA_HOST_FLAGS) ; do \
19933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19934 done; \
19935 echo "Doing html in libbacktrace" ; \
19936 (cd $(HOST_SUBDIR)/libbacktrace && \
19937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19939 "RANLIB=$${RANLIB}" \
19940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19941 html) \
19942 || exit 1
19943
19944@endif libbacktrace
19945
19946.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
19947maybe-TAGS-libbacktrace:
19948@if libbacktrace
19949maybe-TAGS-libbacktrace: TAGS-libbacktrace
19950
19951TAGS-libbacktrace: \
19952 configure-libbacktrace
19953 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19954 r=`${PWD_COMMAND}`; export r; \
19955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19956 $(HOST_EXPORTS) \
19957 for flag in $(EXTRA_HOST_FLAGS) ; do \
19958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19959 done; \
19960 echo "Doing TAGS in libbacktrace" ; \
19961 (cd $(HOST_SUBDIR)/libbacktrace && \
19962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19964 "RANLIB=$${RANLIB}" \
19965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19966 TAGS) \
19967 || exit 1
19968
19969@endif libbacktrace
19970
19971.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
19972maybe-install-info-libbacktrace:
19973@if libbacktrace
19974maybe-install-info-libbacktrace: install-info-libbacktrace
19975
19976install-info-libbacktrace: \
19977 configure-libbacktrace \
19978 info-libbacktrace
19979 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19980 r=`${PWD_COMMAND}`; export r; \
19981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19982 $(HOST_EXPORTS) \
19983 for flag in $(EXTRA_HOST_FLAGS) ; do \
19984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19985 done; \
19986 echo "Doing install-info in libbacktrace" ; \
19987 (cd $(HOST_SUBDIR)/libbacktrace && \
19988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19990 "RANLIB=$${RANLIB}" \
19991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19992 install-info) \
19993 || exit 1
19994
19995@endif libbacktrace
19996
19997.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
19998maybe-install-pdf-libbacktrace:
19999@if libbacktrace
20000maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20001
20002install-pdf-libbacktrace: \
20003 configure-libbacktrace \
20004 pdf-libbacktrace
20005 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20006 r=`${PWD_COMMAND}`; export r; \
20007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20008 $(HOST_EXPORTS) \
20009 for flag in $(EXTRA_HOST_FLAGS) ; do \
20010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20011 done; \
20012 echo "Doing install-pdf in libbacktrace" ; \
20013 (cd $(HOST_SUBDIR)/libbacktrace && \
20014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20016 "RANLIB=$${RANLIB}" \
20017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20018 install-pdf) \
20019 || exit 1
20020
20021@endif libbacktrace
20022
20023.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20024maybe-install-html-libbacktrace:
20025@if libbacktrace
20026maybe-install-html-libbacktrace: install-html-libbacktrace
20027
20028install-html-libbacktrace: \
20029 configure-libbacktrace \
20030 html-libbacktrace
20031 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20032 r=`${PWD_COMMAND}`; export r; \
20033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20034 $(HOST_EXPORTS) \
20035 for flag in $(EXTRA_HOST_FLAGS) ; do \
20036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20037 done; \
20038 echo "Doing install-html in libbacktrace" ; \
20039 (cd $(HOST_SUBDIR)/libbacktrace && \
20040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20042 "RANLIB=$${RANLIB}" \
20043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20044 install-html) \
20045 || exit 1
20046
20047@endif libbacktrace
20048
20049.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20050maybe-installcheck-libbacktrace:
20051@if libbacktrace
20052maybe-installcheck-libbacktrace: installcheck-libbacktrace
20053
20054installcheck-libbacktrace: \
20055 configure-libbacktrace
20056 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20057 r=`${PWD_COMMAND}`; export r; \
20058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20059 $(HOST_EXPORTS) \
20060 for flag in $(EXTRA_HOST_FLAGS) ; do \
20061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20062 done; \
20063 echo "Doing installcheck in libbacktrace" ; \
20064 (cd $(HOST_SUBDIR)/libbacktrace && \
20065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20067 "RANLIB=$${RANLIB}" \
20068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20069 installcheck) \
20070 || exit 1
20071
20072@endif libbacktrace
20073
20074.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20075maybe-mostlyclean-libbacktrace:
20076@if libbacktrace
20077maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20078
20079mostlyclean-libbacktrace:
20080 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20081 r=`${PWD_COMMAND}`; export r; \
20082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20083 $(HOST_EXPORTS) \
20084 for flag in $(EXTRA_HOST_FLAGS) ; do \
20085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20086 done; \
20087 echo "Doing mostlyclean in libbacktrace" ; \
20088 (cd $(HOST_SUBDIR)/libbacktrace && \
20089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20091 "RANLIB=$${RANLIB}" \
20092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20093 mostlyclean) \
20094 || exit 1
20095
20096@endif libbacktrace
20097
20098.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20099maybe-clean-libbacktrace:
20100@if libbacktrace
20101maybe-clean-libbacktrace: clean-libbacktrace
20102
20103clean-libbacktrace:
20104 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20105 r=`${PWD_COMMAND}`; export r; \
20106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20107 $(HOST_EXPORTS) \
20108 for flag in $(EXTRA_HOST_FLAGS) ; do \
20109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20110 done; \
20111 echo "Doing clean in libbacktrace" ; \
20112 (cd $(HOST_SUBDIR)/libbacktrace && \
20113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20115 "RANLIB=$${RANLIB}" \
20116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20117 clean) \
20118 || exit 1
20119
20120@endif libbacktrace
20121
20122.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20123maybe-distclean-libbacktrace:
20124@if libbacktrace
20125maybe-distclean-libbacktrace: distclean-libbacktrace
20126
20127distclean-libbacktrace:
20128 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20129 r=`${PWD_COMMAND}`; export r; \
20130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20131 $(HOST_EXPORTS) \
20132 for flag in $(EXTRA_HOST_FLAGS) ; do \
20133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20134 done; \
20135 echo "Doing distclean in libbacktrace" ; \
20136 (cd $(HOST_SUBDIR)/libbacktrace && \
20137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20139 "RANLIB=$${RANLIB}" \
20140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20141 distclean) \
20142 || exit 1
20143
20144@endif libbacktrace
20145
20146.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20147maybe-maintainer-clean-libbacktrace:
20148@if libbacktrace
20149maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20150
20151maintainer-clean-libbacktrace:
20152 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20153 r=`${PWD_COMMAND}`; export r; \
20154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20155 $(HOST_EXPORTS) \
20156 for flag in $(EXTRA_HOST_FLAGS) ; do \
20157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20158 done; \
20159 echo "Doing maintainer-clean in libbacktrace" ; \
20160 (cd $(HOST_SUBDIR)/libbacktrace && \
20161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20163 "RANLIB=$${RANLIB}" \
20164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20165 maintainer-clean) \
20166 || exit 1
20167
20168@endif libbacktrace
20169
20170
20171
a90ef4bf
JM
20172.PHONY: configure-libcpp maybe-configure-libcpp
20173maybe-configure-libcpp:
4b900473 20174@if gcc-bootstrap
a90ef4bf 20175configure-libcpp: stage_current
4b900473 20176@endif gcc-bootstrap
a90ef4bf
JM
20177@if libcpp
20178maybe-configure-libcpp: configure-libcpp
20179configure-libcpp:
4b900473
PB
20180 @r=`${PWD_COMMAND}`; export r; \
20181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20182 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
20183 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20184 $(HOST_EXPORTS) \
20185 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20186 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20187 case $(srcdir) in \
20188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20189 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20191 esac; \
1b6c0831
L
20192 module_srcdir=libcpp; \
20193 $(SHELL) \
20194 $$s/$$module_srcdir/configure \
20195 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20196 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20197 --target=${target_alias} \
4b900473 20198 || exit 1
a90ef4bf 20199@endif libcpp
4b900473
PB
20200
20201
20202
a90ef4bf
JM
20203.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20204maybe-configure-stage1-libcpp:
20205@if libcpp-bootstrap
20206maybe-configure-stage1-libcpp: configure-stage1-libcpp
20207configure-stage1-libcpp:
4b900473 20208 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20209 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20210 @r=`${PWD_COMMAND}`; export r; \
20211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20212 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20213 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20214 $(HOST_EXPORTS) \
8ee82aff 20215 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20216 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20217 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
20218 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
20219 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20220 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20221 case $(srcdir) in \
20222 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20223 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20224 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20225 esac; \
1b6c0831
L
20226 module_srcdir=libcpp; \
20227 $(SHELL) $$s/$$module_srcdir/configure \
20228 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20229 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20230 --target=${target_alias} \
20231 \
a90ef4bf
JM
20232 $(STAGE1_CONFIGURE_FLAGS)
20233@endif libcpp-bootstrap
e28c595f 20234
a90ef4bf
JM
20235.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20236maybe-configure-stage2-libcpp:
20237@if libcpp-bootstrap
20238maybe-configure-stage2-libcpp: configure-stage2-libcpp
20239configure-stage2-libcpp:
4b900473 20240 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20241 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20242 @r=`${PWD_COMMAND}`; export r; \
20243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20244 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20245 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20246 $(HOST_EXPORTS) \
1b05fbbd 20247 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20248 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20249 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20250 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
20251 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
20252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20253 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20254 case $(srcdir) in \
20255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20256 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20258 esac; \
1b6c0831
L
20259 module_srcdir=libcpp; \
20260 $(SHELL) $$s/$$module_srcdir/configure \
20261 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20262 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20263 --target=${target_alias} \
20264 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20265 $(STAGE2_CONFIGURE_FLAGS)
20266@endif libcpp-bootstrap
e28c595f 20267
a90ef4bf
JM
20268.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20269maybe-configure-stage3-libcpp:
20270@if libcpp-bootstrap
20271maybe-configure-stage3-libcpp: configure-stage3-libcpp
20272configure-stage3-libcpp:
4b900473 20273 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20274 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20275 @r=`${PWD_COMMAND}`; export r; \
20276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20277 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20278 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20279 $(HOST_EXPORTS) \
1b05fbbd 20280 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20281 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20282 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20283 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
20284 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
20285 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20286 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20287 case $(srcdir) in \
20288 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20289 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20290 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20291 esac; \
1b6c0831
L
20292 module_srcdir=libcpp; \
20293 $(SHELL) $$s/$$module_srcdir/configure \
20294 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20295 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20296 --target=${target_alias} \
20297 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20298 $(STAGE3_CONFIGURE_FLAGS)
20299@endif libcpp-bootstrap
e28c595f 20300
a90ef4bf
JM
20301.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20302maybe-configure-stage4-libcpp:
20303@if libcpp-bootstrap
20304maybe-configure-stage4-libcpp: configure-stage4-libcpp
20305configure-stage4-libcpp:
4b900473 20306 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20307 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20308 @r=`${PWD_COMMAND}`; export r; \
20309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20310 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20311 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20312 $(HOST_EXPORTS) \
1b05fbbd 20313 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20314 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20315 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20316 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
20317 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
20318 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20319 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20320 case $(srcdir) in \
20321 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20322 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20323 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20324 esac; \
1b6c0831
L
20325 module_srcdir=libcpp; \
20326 $(SHELL) $$s/$$module_srcdir/configure \
20327 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20328 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20329 --target=${target_alias} \
20330 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20331 $(STAGE4_CONFIGURE_FLAGS)
20332@endif libcpp-bootstrap
e28c595f 20333
a90ef4bf
JM
20334.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20335maybe-configure-stageprofile-libcpp:
20336@if libcpp-bootstrap
20337maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20338configure-stageprofile-libcpp:
4b900473 20339 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20340 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20341 @r=`${PWD_COMMAND}`; export r; \
20342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20343 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20344 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20345 $(HOST_EXPORTS) \
1b05fbbd
AO
20346 $(POSTSTAGE1_HOST_EXPORTS) \
20347 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20348 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20349 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
20350 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
20351 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20352 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20353 case $(srcdir) in \
20354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20355 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20357 esac; \
1b6c0831
L
20358 module_srcdir=libcpp; \
20359 $(SHELL) $$s/$$module_srcdir/configure \
20360 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20361 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20362 --target=${target_alias} \
20363 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20364 $(STAGEprofile_CONFIGURE_FLAGS)
20365@endif libcpp-bootstrap
e28c595f 20366
a90ef4bf
JM
20367.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20368maybe-configure-stagefeedback-libcpp:
20369@if libcpp-bootstrap
20370maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20371configure-stagefeedback-libcpp:
4b900473 20372 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20373 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20374 @r=`${PWD_COMMAND}`; export r; \
20375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20376 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20377 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20378 $(HOST_EXPORTS) \
1b05fbbd
AO
20379 $(POSTSTAGE1_HOST_EXPORTS) \
20380 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20381 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20382 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
20383 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
20384 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20385 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20386 case $(srcdir) in \
20387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20388 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20390 esac; \
1b6c0831
L
20391 module_srcdir=libcpp; \
20392 $(SHELL) $$s/$$module_srcdir/configure \
20393 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20395 --target=${target_alias} \
20396 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20397 $(STAGEfeedback_CONFIGURE_FLAGS)
20398@endif libcpp-bootstrap
4b900473
PB
20399
20400
20401
20402
20403
a90ef4bf
JM
20404.PHONY: all-libcpp maybe-all-libcpp
20405maybe-all-libcpp:
4b900473 20406@if gcc-bootstrap
a90ef4bf 20407all-libcpp: stage_current
4b900473 20408@endif gcc-bootstrap
a90ef4bf
JM
20409@if libcpp
20410TARGET-libcpp=all
20411maybe-all-libcpp: all-libcpp
20412all-libcpp: configure-libcpp
4b900473
PB
20413 @r=`${PWD_COMMAND}`; export r; \
20414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20415 $(HOST_EXPORTS) \
20416 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20417 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20418 $(TARGET-libcpp))
20419@endif libcpp
4b900473
PB
20420
20421
20422
a90ef4bf
JM
20423.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20424.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20425maybe-all-stage1-libcpp:
20426maybe-clean-stage1-libcpp:
20427@if libcpp-bootstrap
20428maybe-all-stage1-libcpp: all-stage1-libcpp
20429all-stage1: all-stage1-libcpp
20430TARGET-stage1-libcpp = $(TARGET-libcpp)
20431all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20432 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20433 @r=`${PWD_COMMAND}`; export r; \
20434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20435 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20436 $(HOST_EXPORTS) \
20437 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20438 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20439 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20440 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20441 LIBCFLAGS="$(LIBCFLAGS)" \
20442 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20443 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20444 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20445 $(EXTRA_HOST_FLAGS) \
20446 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 20447 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20448 $(TARGET-stage1-libcpp)
4b900473 20449
a90ef4bf
JM
20450maybe-clean-stage1-libcpp: clean-stage1-libcpp
20451clean-stage1: clean-stage1-libcpp
20452clean-stage1-libcpp:
4b900473 20453 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20454 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20455 else \
a90ef4bf 20456 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20457 $(MAKE) stage1-start; \
20458 fi; \
a90ef4bf 20459 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20460 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20461 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20462@endif libcpp-bootstrap
e28c595f
JM
20463
20464
a90ef4bf
JM
20465.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20466.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20467maybe-all-stage2-libcpp:
20468maybe-clean-stage2-libcpp:
20469@if libcpp-bootstrap
20470maybe-all-stage2-libcpp: all-stage2-libcpp
20471all-stage2: all-stage2-libcpp
20472TARGET-stage2-libcpp = $(TARGET-libcpp)
20473all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20474 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20475 @r=`${PWD_COMMAND}`; export r; \
20476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20477 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20478 $(HOST_EXPORTS) \
a90ef4bf
JM
20479 $(POSTSTAGE1_HOST_EXPORTS) \
20480 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20481 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20482 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20483 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20484 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20485 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20486 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20487 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20488 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20489 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20490 $(TARGET-stage2-libcpp)
4b900473 20491
a90ef4bf
JM
20492maybe-clean-stage2-libcpp: clean-stage2-libcpp
20493clean-stage2: clean-stage2-libcpp
20494clean-stage2-libcpp:
4b900473 20495 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20496 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20497 else \
a90ef4bf 20498 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20499 $(MAKE) stage2-start; \
20500 fi; \
a90ef4bf 20501 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20502 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20503@endif libcpp-bootstrap
e28c595f
JM
20504
20505
a90ef4bf
JM
20506.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20507.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20508maybe-all-stage3-libcpp:
20509maybe-clean-stage3-libcpp:
20510@if libcpp-bootstrap
20511maybe-all-stage3-libcpp: all-stage3-libcpp
20512all-stage3: all-stage3-libcpp
20513TARGET-stage3-libcpp = $(TARGET-libcpp)
20514all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20515 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20516 @r=`${PWD_COMMAND}`; export r; \
20517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20518 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20519 $(HOST_EXPORTS) \
a90ef4bf
JM
20520 $(POSTSTAGE1_HOST_EXPORTS) \
20521 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20522 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20523 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20524 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20525 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20526 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20527 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20528 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20529 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20530 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20531 $(TARGET-stage3-libcpp)
4b900473 20532
a90ef4bf
JM
20533maybe-clean-stage3-libcpp: clean-stage3-libcpp
20534clean-stage3: clean-stage3-libcpp
20535clean-stage3-libcpp:
4b900473 20536 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20537 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20538 else \
a90ef4bf 20539 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20540 $(MAKE) stage3-start; \
20541 fi; \
a90ef4bf 20542 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20543 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20544@endif libcpp-bootstrap
e28c595f
JM
20545
20546
a90ef4bf
JM
20547.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20548.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20549maybe-all-stage4-libcpp:
20550maybe-clean-stage4-libcpp:
20551@if libcpp-bootstrap
20552maybe-all-stage4-libcpp: all-stage4-libcpp
20553all-stage4: all-stage4-libcpp
20554TARGET-stage4-libcpp = $(TARGET-libcpp)
20555all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20556 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20557 @r=`${PWD_COMMAND}`; export r; \
20558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20559 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20560 $(HOST_EXPORTS) \
a90ef4bf
JM
20561 $(POSTSTAGE1_HOST_EXPORTS) \
20562 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20563 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20564 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20565 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20566 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20567 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20568 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20569 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20570 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20571 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20572 $(TARGET-stage4-libcpp)
4b900473 20573
a90ef4bf
JM
20574maybe-clean-stage4-libcpp: clean-stage4-libcpp
20575clean-stage4: clean-stage4-libcpp
20576clean-stage4-libcpp:
4b900473 20577 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20578 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20579 else \
a90ef4bf 20580 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20581 $(MAKE) stage4-start; \
20582 fi; \
a90ef4bf 20583 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20584 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20585@endif libcpp-bootstrap
e28c595f
JM
20586
20587
a90ef4bf
JM
20588.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20589.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20590maybe-all-stageprofile-libcpp:
20591maybe-clean-stageprofile-libcpp:
20592@if libcpp-bootstrap
20593maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20594all-stageprofile: all-stageprofile-libcpp
20595TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20596all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20597 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20598 @r=`${PWD_COMMAND}`; export r; \
20599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20600 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20601 $(HOST_EXPORTS) \
a90ef4bf
JM
20602 $(POSTSTAGE1_HOST_EXPORTS) \
20603 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20604 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20605 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20606 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20607 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20608 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20609 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20610 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20611 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20612 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20613 $(TARGET-stageprofile-libcpp)
4b900473 20614
a90ef4bf
JM
20615maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20616clean-stageprofile: clean-stageprofile-libcpp
20617clean-stageprofile-libcpp:
4b900473 20618 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20619 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20620 else \
a90ef4bf 20621 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20622 $(MAKE) stageprofile-start; \
20623 fi; \
a90ef4bf 20624 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20625 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20626@endif libcpp-bootstrap
e28c595f
JM
20627
20628
a90ef4bf
JM
20629.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20630.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20631maybe-all-stagefeedback-libcpp:
20632maybe-clean-stagefeedback-libcpp:
20633@if libcpp-bootstrap
20634maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20635all-stagefeedback: all-stagefeedback-libcpp
20636TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20637all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20638 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20639 @r=`${PWD_COMMAND}`; export r; \
20640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20641 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20642 $(HOST_EXPORTS) \
a90ef4bf
JM
20643 $(POSTSTAGE1_HOST_EXPORTS) \
20644 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20645 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20646 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20647 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20648 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20649 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20650 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20651 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20652 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20653 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20654 $(TARGET-stagefeedback-libcpp)
4b900473 20655
a90ef4bf
JM
20656maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20657clean-stagefeedback: clean-stagefeedback-libcpp
20658clean-stagefeedback-libcpp:
4b900473 20659 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20660 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20661 else \
a90ef4bf 20662 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20663 $(MAKE) stagefeedback-start; \
20664 fi; \
a90ef4bf 20665 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20666 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20667@endif libcpp-bootstrap
4b900473
PB
20668
20669
20670
20671
20672
a90ef4bf
JM
20673.PHONY: check-libcpp maybe-check-libcpp
20674maybe-check-libcpp:
20675@if libcpp
20676maybe-check-libcpp: check-libcpp
4b900473 20677
a90ef4bf 20678check-libcpp:
4b900473
PB
20679 @: $(MAKE); $(unstage)
20680 @r=`${PWD_COMMAND}`; export r; \
20681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20682 $(HOST_EXPORTS) \
a90ef4bf
JM
20683 (cd $(HOST_SUBDIR)/libcpp && \
20684 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 20685
a90ef4bf 20686@endif libcpp
4b900473 20687
a90ef4bf
JM
20688.PHONY: install-libcpp maybe-install-libcpp
20689maybe-install-libcpp:
20690@if libcpp
20691maybe-install-libcpp: install-libcpp
4b900473 20692
a90ef4bf
JM
20693install-libcpp: installdirs
20694 @: $(MAKE); $(unstage)
20695 @r=`${PWD_COMMAND}`; export r; \
20696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20697 $(HOST_EXPORTS) \
20698 (cd $(HOST_SUBDIR)/libcpp && \
20699 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20700
a90ef4bf 20701@endif libcpp
4b900473 20702
a90ef4bf
JM
20703.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20704maybe-install-strip-libcpp:
20705@if libcpp
20706maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20707
a90ef4bf
JM
20708install-strip-libcpp: installdirs
20709 @: $(MAKE); $(unstage)
20710 @r=`${PWD_COMMAND}`; export r; \
20711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20712 $(HOST_EXPORTS) \
20713 (cd $(HOST_SUBDIR)/libcpp && \
20714 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20715
a90ef4bf 20716@endif libcpp
9b980aa1 20717
4b900473
PB
20718# Other targets (info, dvi, pdf, etc.)
20719
a90ef4bf
JM
20720.PHONY: maybe-info-libcpp info-libcpp
20721maybe-info-libcpp:
20722@if libcpp
20723maybe-info-libcpp: info-libcpp
4b900473 20724
a90ef4bf
JM
20725info-libcpp: \
20726 configure-libcpp
20727 @[ -f ./libcpp/Makefile ] || exit 0; \
20728 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20730 $(HOST_EXPORTS) \
a90ef4bf 20731 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20733 done; \
a90ef4bf
JM
20734 echo "Doing info in libcpp" ; \
20735 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20738 "RANLIB=$${RANLIB}" \
0c24b341 20739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20740 info) \
20741 || exit 1
20742
a90ef4bf 20743@endif libcpp
4b900473 20744
a90ef4bf
JM
20745.PHONY: maybe-dvi-libcpp dvi-libcpp
20746maybe-dvi-libcpp:
20747@if libcpp
20748maybe-dvi-libcpp: dvi-libcpp
4b900473 20749
a90ef4bf
JM
20750dvi-libcpp: \
20751 configure-libcpp
20752 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20753 r=`${PWD_COMMAND}`; export r; \
20754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20755 $(HOST_EXPORTS) \
a90ef4bf 20756 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20758 done; \
a90ef4bf
JM
20759 echo "Doing dvi in libcpp" ; \
20760 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20763 "RANLIB=$${RANLIB}" \
0c24b341 20764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20765 dvi) \
20766 || exit 1
20767
a90ef4bf 20768@endif libcpp
4b900473 20769
a90ef4bf
JM
20770.PHONY: maybe-pdf-libcpp pdf-libcpp
20771maybe-pdf-libcpp:
20772@if libcpp
20773maybe-pdf-libcpp: pdf-libcpp
4b900473 20774
a90ef4bf
JM
20775pdf-libcpp: \
20776 configure-libcpp
20777 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20778 r=`${PWD_COMMAND}`; export r; \
20779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20780 $(HOST_EXPORTS) \
a90ef4bf 20781 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20783 done; \
a90ef4bf
JM
20784 echo "Doing pdf in libcpp" ; \
20785 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20788 "RANLIB=$${RANLIB}" \
0c24b341 20789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20790 pdf) \
20791 || exit 1
20792
a90ef4bf 20793@endif libcpp
4b900473 20794
a90ef4bf
JM
20795.PHONY: maybe-html-libcpp html-libcpp
20796maybe-html-libcpp:
20797@if libcpp
20798maybe-html-libcpp: html-libcpp
4b900473 20799
a90ef4bf
JM
20800html-libcpp: \
20801 configure-libcpp
20802 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20803 r=`${PWD_COMMAND}`; export r; \
20804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20805 $(HOST_EXPORTS) \
a90ef4bf 20806 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20808 done; \
a90ef4bf
JM
20809 echo "Doing html in libcpp" ; \
20810 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20813 "RANLIB=$${RANLIB}" \
0c24b341 20814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20815 html) \
20816 || exit 1
20817
a90ef4bf 20818@endif libcpp
4b900473 20819
a90ef4bf
JM
20820.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20821maybe-TAGS-libcpp:
20822@if libcpp
20823maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20824
a90ef4bf
JM
20825TAGS-libcpp: \
20826 configure-libcpp
20827 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20828 r=`${PWD_COMMAND}`; export r; \
20829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20830 $(HOST_EXPORTS) \
a90ef4bf 20831 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20833 done; \
a90ef4bf
JM
20834 echo "Doing TAGS in libcpp" ; \
20835 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20838 "RANLIB=$${RANLIB}" \
0c24b341 20839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20840 TAGS) \
20841 || exit 1
20842
a90ef4bf 20843@endif libcpp
4b900473 20844
a90ef4bf
JM
20845.PHONY: maybe-install-info-libcpp install-info-libcpp
20846maybe-install-info-libcpp:
20847@if libcpp
20848maybe-install-info-libcpp: install-info-libcpp
4b900473 20849
a90ef4bf
JM
20850install-info-libcpp: \
20851 configure-libcpp \
20852 info-libcpp
20853 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20854 r=`${PWD_COMMAND}`; export r; \
20855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20856 $(HOST_EXPORTS) \
a90ef4bf 20857 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20859 done; \
a90ef4bf
JM
20860 echo "Doing install-info in libcpp" ; \
20861 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20864 "RANLIB=$${RANLIB}" \
0c24b341 20865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20866 install-info) \
20867 || exit 1
20868
a90ef4bf 20869@endif libcpp
4b900473 20870
a90ef4bf
JM
20871.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20872maybe-install-pdf-libcpp:
20873@if libcpp
20874maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 20875
a90ef4bf
JM
20876install-pdf-libcpp: \
20877 configure-libcpp \
20878 pdf-libcpp
20879 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
20880 r=`${PWD_COMMAND}`; export r; \
20881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20882 $(HOST_EXPORTS) \
a90ef4bf 20883 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
20884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20885 done; \
a90ef4bf
JM
20886 echo "Doing install-pdf in libcpp" ; \
20887 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
20888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20890 "RANLIB=$${RANLIB}" \
0c24b341 20891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
20892 install-pdf) \
20893 || exit 1
20894
a90ef4bf 20895@endif libcpp
a3ca38d2 20896
a90ef4bf
JM
20897.PHONY: maybe-install-html-libcpp install-html-libcpp
20898maybe-install-html-libcpp:
20899@if libcpp
20900maybe-install-html-libcpp: install-html-libcpp
4b900473 20901
a90ef4bf
JM
20902install-html-libcpp: \
20903 configure-libcpp \
20904 html-libcpp
20905 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20906 r=`${PWD_COMMAND}`; export r; \
20907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20908 $(HOST_EXPORTS) \
a90ef4bf 20909 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20911 done; \
a90ef4bf
JM
20912 echo "Doing install-html in libcpp" ; \
20913 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20916 "RANLIB=$${RANLIB}" \
0c24b341 20917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20918 install-html) \
20919 || exit 1
20920
a90ef4bf 20921@endif libcpp
4b900473 20922
a90ef4bf
JM
20923.PHONY: maybe-installcheck-libcpp installcheck-libcpp
20924maybe-installcheck-libcpp:
20925@if libcpp
20926maybe-installcheck-libcpp: installcheck-libcpp
4b900473 20927
a90ef4bf
JM
20928installcheck-libcpp: \
20929 configure-libcpp
20930 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20931 r=`${PWD_COMMAND}`; export r; \
20932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20933 $(HOST_EXPORTS) \
a90ef4bf 20934 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20936 done; \
a90ef4bf
JM
20937 echo "Doing installcheck in libcpp" ; \
20938 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20941 "RANLIB=$${RANLIB}" \
0c24b341 20942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20943 installcheck) \
20944 || exit 1
20945
a90ef4bf 20946@endif libcpp
4b900473 20947
a90ef4bf
JM
20948.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
20949maybe-mostlyclean-libcpp:
20950@if libcpp
20951maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 20952
a90ef4bf
JM
20953mostlyclean-libcpp:
20954 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20955 r=`${PWD_COMMAND}`; export r; \
20956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20957 $(HOST_EXPORTS) \
a90ef4bf 20958 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20960 done; \
a90ef4bf
JM
20961 echo "Doing mostlyclean in libcpp" ; \
20962 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20965 "RANLIB=$${RANLIB}" \
0c24b341 20966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20967 mostlyclean) \
20968 || exit 1
20969
a90ef4bf 20970@endif libcpp
4b900473 20971
a90ef4bf
JM
20972.PHONY: maybe-clean-libcpp clean-libcpp
20973maybe-clean-libcpp:
20974@if libcpp
20975maybe-clean-libcpp: clean-libcpp
4b900473 20976
a90ef4bf
JM
20977clean-libcpp:
20978 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20979 r=`${PWD_COMMAND}`; export r; \
20980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20981 $(HOST_EXPORTS) \
a90ef4bf 20982 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20984 done; \
a90ef4bf
JM
20985 echo "Doing clean in libcpp" ; \
20986 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20989 "RANLIB=$${RANLIB}" \
0c24b341 20990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20991 clean) \
20992 || exit 1
20993
a90ef4bf 20994@endif libcpp
4b900473 20995
a90ef4bf
JM
20996.PHONY: maybe-distclean-libcpp distclean-libcpp
20997maybe-distclean-libcpp:
20998@if libcpp
20999maybe-distclean-libcpp: distclean-libcpp
4b900473 21000
a90ef4bf
JM
21001distclean-libcpp:
21002 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21003 r=`${PWD_COMMAND}`; export r; \
21004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21005 $(HOST_EXPORTS) \
a90ef4bf 21006 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21008 done; \
a90ef4bf
JM
21009 echo "Doing distclean in libcpp" ; \
21010 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21013 "RANLIB=$${RANLIB}" \
0c24b341 21014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21015 distclean) \
21016 || exit 1
21017
a90ef4bf 21018@endif libcpp
4b900473 21019
a90ef4bf
JM
21020.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21021maybe-maintainer-clean-libcpp:
21022@if libcpp
21023maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21024
a90ef4bf
JM
21025maintainer-clean-libcpp:
21026 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21027 r=`${PWD_COMMAND}`; export r; \
21028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21029 $(HOST_EXPORTS) \
a90ef4bf 21030 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21032 done; \
a90ef4bf
JM
21033 echo "Doing maintainer-clean in libcpp" ; \
21034 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21037 "RANLIB=$${RANLIB}" \
0c24b341 21038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21039 maintainer-clean) \
21040 || exit 1
21041
a90ef4bf 21042@endif libcpp
4b900473
PB
21043
21044
21045
a90ef4bf
JM
21046.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21047maybe-configure-libdecnumber:
1f53ca9a 21048@if gcc-bootstrap
a90ef4bf 21049configure-libdecnumber: stage_current
1f53ca9a 21050@endif gcc-bootstrap
a90ef4bf
JM
21051@if libdecnumber
21052maybe-configure-libdecnumber: configure-libdecnumber
21053configure-libdecnumber:
1f53ca9a
AO
21054 @r=`${PWD_COMMAND}`; export r; \
21055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
21056 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
21057 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
1f53ca9a 21058 $(HOST_EXPORTS) \
a90ef4bf
JM
21059 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21060 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21061 case $(srcdir) in \
21062 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21063 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21064 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21065 esac; \
1b6c0831
L
21066 module_srcdir=libdecnumber; \
21067 $(SHELL) \
21068 $$s/$$module_srcdir/configure \
21069 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21070 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21071 --target=${target_alias} \
1f53ca9a 21072 || exit 1
a90ef4bf 21073@endif libdecnumber
1f53ca9a
AO
21074
21075
21076
a90ef4bf
JM
21077.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21078maybe-configure-stage1-libdecnumber:
21079@if libdecnumber-bootstrap
21080maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21081configure-stage1-libdecnumber:
1f53ca9a 21082 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21083 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21084 @r=`${PWD_COMMAND}`; export r; \
21085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21086 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21087 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21088 $(HOST_EXPORTS) \
21089 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21090 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21091 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21092 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
21093 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21094 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21095 case $(srcdir) in \
21096 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21097 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21098 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21099 esac; \
1b6c0831
L
21100 module_srcdir=libdecnumber; \
21101 $(SHELL) $$s/$$module_srcdir/configure \
21102 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21103 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21104 --target=${target_alias} \
21105 \
a90ef4bf
JM
21106 $(STAGE1_CONFIGURE_FLAGS)
21107@endif libdecnumber-bootstrap
1f53ca9a 21108
a90ef4bf
JM
21109.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21110maybe-configure-stage2-libdecnumber:
21111@if libdecnumber-bootstrap
21112maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21113configure-stage2-libdecnumber:
1f53ca9a 21114 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21115 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21116 @r=`${PWD_COMMAND}`; export r; \
21117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21118 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21119 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21120 $(HOST_EXPORTS) \
21121 $(POSTSTAGE1_HOST_EXPORTS) \
21122 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21123 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21124 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21125 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
21126 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21127 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21128 case $(srcdir) in \
21129 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21130 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21131 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21132 esac; \
1b6c0831
L
21133 module_srcdir=libdecnumber; \
21134 $(SHELL) $$s/$$module_srcdir/configure \
21135 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21136 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21137 --target=${target_alias} \
21138 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21139 $(STAGE2_CONFIGURE_FLAGS)
21140@endif libdecnumber-bootstrap
1f53ca9a 21141
a90ef4bf
JM
21142.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21143maybe-configure-stage3-libdecnumber:
21144@if libdecnumber-bootstrap
21145maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21146configure-stage3-libdecnumber:
1f53ca9a 21147 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21148 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21149 @r=`${PWD_COMMAND}`; export r; \
21150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21151 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21152 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21153 $(HOST_EXPORTS) \
21154 $(POSTSTAGE1_HOST_EXPORTS) \
21155 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21156 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21157 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21158 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
21159 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21160 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21161 case $(srcdir) in \
21162 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21163 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21164 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21165 esac; \
1b6c0831
L
21166 module_srcdir=libdecnumber; \
21167 $(SHELL) $$s/$$module_srcdir/configure \
21168 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21169 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21170 --target=${target_alias} \
21171 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21172 $(STAGE3_CONFIGURE_FLAGS)
21173@endif libdecnumber-bootstrap
1f53ca9a 21174
a90ef4bf
JM
21175.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21176maybe-configure-stage4-libdecnumber:
21177@if libdecnumber-bootstrap
21178maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21179configure-stage4-libdecnumber:
1f53ca9a 21180 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21181 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21182 @r=`${PWD_COMMAND}`; export r; \
21183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21184 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21185 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21186 $(HOST_EXPORTS) \
21187 $(POSTSTAGE1_HOST_EXPORTS) \
21188 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21189 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21190 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21191 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
21192 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21193 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21194 case $(srcdir) in \
21195 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21196 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21197 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21198 esac; \
1b6c0831
L
21199 module_srcdir=libdecnumber; \
21200 $(SHELL) $$s/$$module_srcdir/configure \
21201 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21202 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21203 --target=${target_alias} \
21204 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21205 $(STAGE4_CONFIGURE_FLAGS)
21206@endif libdecnumber-bootstrap
1f53ca9a 21207
a90ef4bf
JM
21208.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21209maybe-configure-stageprofile-libdecnumber:
21210@if libdecnumber-bootstrap
21211maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21212configure-stageprofile-libdecnumber:
1f53ca9a 21213 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21214 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21215 @r=`${PWD_COMMAND}`; export r; \
21216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21217 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21218 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21219 $(HOST_EXPORTS) \
21220 $(POSTSTAGE1_HOST_EXPORTS) \
21221 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21222 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21223 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21224 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
21225 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21226 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21227 case $(srcdir) in \
21228 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21229 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21230 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21231 esac; \
1b6c0831
L
21232 module_srcdir=libdecnumber; \
21233 $(SHELL) $$s/$$module_srcdir/configure \
21234 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21235 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21236 --target=${target_alias} \
21237 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21238 $(STAGEprofile_CONFIGURE_FLAGS)
21239@endif libdecnumber-bootstrap
1f53ca9a 21240
a90ef4bf
JM
21241.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21242maybe-configure-stagefeedback-libdecnumber:
21243@if libdecnumber-bootstrap
21244maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21245configure-stagefeedback-libdecnumber:
1f53ca9a 21246 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21247 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21248 @r=`${PWD_COMMAND}`; export r; \
21249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21250 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21251 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21252 $(HOST_EXPORTS) \
21253 $(POSTSTAGE1_HOST_EXPORTS) \
21254 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21255 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21256 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21257 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
21258 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21259 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21260 case $(srcdir) in \
21261 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21262 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21263 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21264 esac; \
1b6c0831
L
21265 module_srcdir=libdecnumber; \
21266 $(SHELL) $$s/$$module_srcdir/configure \
21267 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21268 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21269 --target=${target_alias} \
21270 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21271 $(STAGEfeedback_CONFIGURE_FLAGS)
21272@endif libdecnumber-bootstrap
1f53ca9a
AO
21273
21274
21275
21276
21277
a90ef4bf
JM
21278.PHONY: all-libdecnumber maybe-all-libdecnumber
21279maybe-all-libdecnumber:
1f53ca9a 21280@if gcc-bootstrap
a90ef4bf 21281all-libdecnumber: stage_current
1f53ca9a 21282@endif gcc-bootstrap
a90ef4bf
JM
21283@if libdecnumber
21284TARGET-libdecnumber=all
21285maybe-all-libdecnumber: all-libdecnumber
21286all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21287 @r=`${PWD_COMMAND}`; export r; \
21288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21289 $(HOST_EXPORTS) \
a90ef4bf 21290 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21291 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21292 $(TARGET-libdecnumber))
21293@endif libdecnumber
1f53ca9a
AO
21294
21295
21296
a90ef4bf
JM
21297.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21298.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21299maybe-all-stage1-libdecnumber:
21300maybe-clean-stage1-libdecnumber:
21301@if libdecnumber-bootstrap
21302maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21303all-stage1: all-stage1-libdecnumber
21304TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21305all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21306 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21307 @r=`${PWD_COMMAND}`; export r; \
21308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21309 TFLAGS="$(STAGE1_TFLAGS)"; \
21310 $(HOST_EXPORTS) \
a90ef4bf 21311 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21312 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21313 CFLAGS="$(STAGE1_CFLAGS)" \
21314 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21315 LIBCFLAGS="$(LIBCFLAGS)" \
21316 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21317 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21318 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21319 $(EXTRA_HOST_FLAGS) \
21320 $(STAGE1_FLAGS_TO_PASS) \
1f53ca9a 21321 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21322 $(TARGET-stage1-libdecnumber)
1f53ca9a 21323
a90ef4bf
JM
21324maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21325clean-stage1: clean-stage1-libdecnumber
21326clean-stage1-libdecnumber:
1f53ca9a 21327 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21328 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21329 else \
a90ef4bf 21330 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21331 $(MAKE) stage1-start; \
21332 fi; \
a90ef4bf 21333 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21334 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21335 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21336@endif libdecnumber-bootstrap
1f53ca9a
AO
21337
21338
a90ef4bf
JM
21339.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21340.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21341maybe-all-stage2-libdecnumber:
21342maybe-clean-stage2-libdecnumber:
21343@if libdecnumber-bootstrap
21344maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21345all-stage2: all-stage2-libdecnumber
21346TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21347all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21348 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21349 @r=`${PWD_COMMAND}`; export r; \
21350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21351 TFLAGS="$(STAGE2_TFLAGS)"; \
21352 $(HOST_EXPORTS) \
21353 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21354 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21355 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21356 CFLAGS="$(STAGE2_CFLAGS)" \
21357 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21358 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21359 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21360 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21361 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21362 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21363 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21364 $(TARGET-stage2-libdecnumber)
1f53ca9a 21365
a90ef4bf
JM
21366maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21367clean-stage2: clean-stage2-libdecnumber
21368clean-stage2-libdecnumber:
1f53ca9a 21369 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21370 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21371 else \
a90ef4bf 21372 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21373 $(MAKE) stage2-start; \
21374 fi; \
a90ef4bf 21375 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21376 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21377@endif libdecnumber-bootstrap
1f53ca9a
AO
21378
21379
a90ef4bf
JM
21380.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21381.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21382maybe-all-stage3-libdecnumber:
21383maybe-clean-stage3-libdecnumber:
21384@if libdecnumber-bootstrap
21385maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21386all-stage3: all-stage3-libdecnumber
21387TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21388all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21389 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21390 @r=`${PWD_COMMAND}`; export r; \
21391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21392 TFLAGS="$(STAGE3_TFLAGS)"; \
21393 $(HOST_EXPORTS) \
21394 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21395 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21396 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21397 CFLAGS="$(STAGE3_CFLAGS)" \
21398 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21399 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21400 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21401 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21402 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21403 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21404 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21405 $(TARGET-stage3-libdecnumber)
1f53ca9a 21406
a90ef4bf
JM
21407maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21408clean-stage3: clean-stage3-libdecnumber
21409clean-stage3-libdecnumber:
1f53ca9a 21410 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21411 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21412 else \
a90ef4bf 21413 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21414 $(MAKE) stage3-start; \
21415 fi; \
a90ef4bf 21416 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21417 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21418@endif libdecnumber-bootstrap
1f53ca9a
AO
21419
21420
a90ef4bf
JM
21421.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21422.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21423maybe-all-stage4-libdecnumber:
21424maybe-clean-stage4-libdecnumber:
21425@if libdecnumber-bootstrap
21426maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21427all-stage4: all-stage4-libdecnumber
21428TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21429all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21430 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21431 @r=`${PWD_COMMAND}`; export r; \
21432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21433 TFLAGS="$(STAGE4_TFLAGS)"; \
21434 $(HOST_EXPORTS) \
21435 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21436 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21437 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21438 CFLAGS="$(STAGE4_CFLAGS)" \
21439 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21440 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21441 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21442 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21443 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21444 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21445 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21446 $(TARGET-stage4-libdecnumber)
1f53ca9a 21447
a90ef4bf
JM
21448maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21449clean-stage4: clean-stage4-libdecnumber
21450clean-stage4-libdecnumber:
1f53ca9a 21451 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21452 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21453 else \
a90ef4bf 21454 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21455 $(MAKE) stage4-start; \
21456 fi; \
a90ef4bf 21457 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21458 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21459@endif libdecnumber-bootstrap
1f53ca9a
AO
21460
21461
a90ef4bf
JM
21462.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21463.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21464maybe-all-stageprofile-libdecnumber:
21465maybe-clean-stageprofile-libdecnumber:
21466@if libdecnumber-bootstrap
21467maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21468all-stageprofile: all-stageprofile-libdecnumber
21469TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21470all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21471 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21472 @r=`${PWD_COMMAND}`; export r; \
21473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21474 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21475 $(HOST_EXPORTS) \
21476 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21477 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21478 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21479 CFLAGS="$(STAGEprofile_CFLAGS)" \
21480 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21481 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21482 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21483 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21484 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21485 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21486 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21487 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21488
a90ef4bf
JM
21489maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21490clean-stageprofile: clean-stageprofile-libdecnumber
21491clean-stageprofile-libdecnumber:
1f53ca9a 21492 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21493 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21494 else \
a90ef4bf 21495 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21496 $(MAKE) stageprofile-start; \
21497 fi; \
a90ef4bf 21498 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21499 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21500@endif libdecnumber-bootstrap
1f53ca9a
AO
21501
21502
a90ef4bf
JM
21503.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21504.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21505maybe-all-stagefeedback-libdecnumber:
21506maybe-clean-stagefeedback-libdecnumber:
21507@if libdecnumber-bootstrap
21508maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21509all-stagefeedback: all-stagefeedback-libdecnumber
21510TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21511all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21512 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21513 @r=`${PWD_COMMAND}`; export r; \
21514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21515 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21516 $(HOST_EXPORTS) \
21517 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21518 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21519 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21520 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21521 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21522 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21523 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21524 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21525 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21526 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21527 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21528 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21529
a90ef4bf
JM
21530maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21531clean-stagefeedback: clean-stagefeedback-libdecnumber
21532clean-stagefeedback-libdecnumber:
1f53ca9a 21533 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21534 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21535 else \
a90ef4bf 21536 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21537 $(MAKE) stagefeedback-start; \
21538 fi; \
a90ef4bf 21539 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21540 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21541@endif libdecnumber-bootstrap
1f53ca9a
AO
21542
21543
21544
21545
21546
a90ef4bf
JM
21547.PHONY: check-libdecnumber maybe-check-libdecnumber
21548maybe-check-libdecnumber:
21549@if libdecnumber
21550maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21551
a90ef4bf 21552check-libdecnumber:
1f53ca9a
AO
21553 @: $(MAKE); $(unstage)
21554 @r=`${PWD_COMMAND}`; export r; \
21555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21556 $(HOST_EXPORTS) \
a90ef4bf 21557 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21558 $(MAKE) $(FLAGS_TO_PASS) check)
21559
a90ef4bf 21560@endif libdecnumber
1f53ca9a 21561
a90ef4bf
JM
21562.PHONY: install-libdecnumber maybe-install-libdecnumber
21563maybe-install-libdecnumber:
21564@if libdecnumber
21565maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21566
a90ef4bf
JM
21567install-libdecnumber: installdirs
21568 @: $(MAKE); $(unstage)
21569 @r=`${PWD_COMMAND}`; export r; \
21570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21571 $(HOST_EXPORTS) \
21572 (cd $(HOST_SUBDIR)/libdecnumber && \
21573 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21574
a90ef4bf 21575@endif libdecnumber
1f53ca9a 21576
a90ef4bf
JM
21577.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21578maybe-install-strip-libdecnumber:
21579@if libdecnumber
21580maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21581
a90ef4bf
JM
21582install-strip-libdecnumber: installdirs
21583 @: $(MAKE); $(unstage)
21584 @r=`${PWD_COMMAND}`; export r; \
21585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21586 $(HOST_EXPORTS) \
21587 (cd $(HOST_SUBDIR)/libdecnumber && \
21588 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21589
a90ef4bf 21590@endif libdecnumber
9b980aa1 21591
1f53ca9a
AO
21592# Other targets (info, dvi, pdf, etc.)
21593
a90ef4bf
JM
21594.PHONY: maybe-info-libdecnumber info-libdecnumber
21595maybe-info-libdecnumber:
21596@if libdecnumber
21597maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21598
a90ef4bf
JM
21599info-libdecnumber: \
21600 configure-libdecnumber
21601 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21602 r=`${PWD_COMMAND}`; export r; \
21603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21604 $(HOST_EXPORTS) \
21605 for flag in $(EXTRA_HOST_FLAGS) ; do \
21606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21607 done; \
a90ef4bf
JM
21608 echo "Doing info in libdecnumber" ; \
21609 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21612 "RANLIB=$${RANLIB}" \
21613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21614 info) \
21615 || exit 1
21616
a90ef4bf 21617@endif libdecnumber
1f53ca9a 21618
a90ef4bf
JM
21619.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21620maybe-dvi-libdecnumber:
21621@if libdecnumber
21622maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21623
a90ef4bf
JM
21624dvi-libdecnumber: \
21625 configure-libdecnumber
21626 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21627 r=`${PWD_COMMAND}`; export r; \
21628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21629 $(HOST_EXPORTS) \
21630 for flag in $(EXTRA_HOST_FLAGS) ; do \
21631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21632 done; \
a90ef4bf
JM
21633 echo "Doing dvi in libdecnumber" ; \
21634 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21637 "RANLIB=$${RANLIB}" \
21638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21639 dvi) \
21640 || exit 1
21641
a90ef4bf 21642@endif libdecnumber
1f53ca9a 21643
a90ef4bf
JM
21644.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21645maybe-pdf-libdecnumber:
21646@if libdecnumber
21647maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21648
a90ef4bf
JM
21649pdf-libdecnumber: \
21650 configure-libdecnumber
21651 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21652 r=`${PWD_COMMAND}`; export r; \
21653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21654 $(HOST_EXPORTS) \
21655 for flag in $(EXTRA_HOST_FLAGS) ; do \
21656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21657 done; \
a90ef4bf
JM
21658 echo "Doing pdf in libdecnumber" ; \
21659 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21662 "RANLIB=$${RANLIB}" \
21663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21664 pdf) \
21665 || exit 1
21666
a90ef4bf 21667@endif libdecnumber
1f53ca9a 21668
a90ef4bf
JM
21669.PHONY: maybe-html-libdecnumber html-libdecnumber
21670maybe-html-libdecnumber:
21671@if libdecnumber
21672maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21673
a90ef4bf
JM
21674html-libdecnumber: \
21675 configure-libdecnumber
21676 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21677 r=`${PWD_COMMAND}`; export r; \
21678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21679 $(HOST_EXPORTS) \
21680 for flag in $(EXTRA_HOST_FLAGS) ; do \
21681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21682 done; \
a90ef4bf
JM
21683 echo "Doing html in libdecnumber" ; \
21684 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21687 "RANLIB=$${RANLIB}" \
21688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21689 html) \
21690 || exit 1
21691
a90ef4bf 21692@endif libdecnumber
1f53ca9a 21693
a90ef4bf
JM
21694.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21695maybe-TAGS-libdecnumber:
21696@if libdecnumber
21697maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21698
a90ef4bf
JM
21699TAGS-libdecnumber: \
21700 configure-libdecnumber
21701 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21702 r=`${PWD_COMMAND}`; export r; \
21703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21704 $(HOST_EXPORTS) \
21705 for flag in $(EXTRA_HOST_FLAGS) ; do \
21706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21707 done; \
a90ef4bf
JM
21708 echo "Doing TAGS in libdecnumber" ; \
21709 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21712 "RANLIB=$${RANLIB}" \
21713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21714 TAGS) \
21715 || exit 1
21716
a90ef4bf 21717@endif libdecnumber
1f53ca9a 21718
a90ef4bf
JM
21719.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21720maybe-install-info-libdecnumber:
21721@if libdecnumber
21722maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21723
a90ef4bf
JM
21724install-info-libdecnumber: \
21725 configure-libdecnumber \
21726 info-libdecnumber
21727 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21728 r=`${PWD_COMMAND}`; export r; \
21729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21730 $(HOST_EXPORTS) \
21731 for flag in $(EXTRA_HOST_FLAGS) ; do \
21732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21733 done; \
a90ef4bf
JM
21734 echo "Doing install-info in libdecnumber" ; \
21735 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21738 "RANLIB=$${RANLIB}" \
21739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21740 install-info) \
21741 || exit 1
21742
a90ef4bf 21743@endif libdecnumber
1f53ca9a 21744
a90ef4bf
JM
21745.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21746maybe-install-pdf-libdecnumber:
21747@if libdecnumber
21748maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21749
a90ef4bf
JM
21750install-pdf-libdecnumber: \
21751 configure-libdecnumber \
21752 pdf-libdecnumber
21753 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21754 r=`${PWD_COMMAND}`; export r; \
21755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21756 $(HOST_EXPORTS) \
21757 for flag in $(EXTRA_HOST_FLAGS) ; do \
21758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21759 done; \
a90ef4bf
JM
21760 echo "Doing install-pdf in libdecnumber" ; \
21761 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21764 "RANLIB=$${RANLIB}" \
21765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21766 install-pdf) \
21767 || exit 1
21768
a90ef4bf 21769@endif libdecnumber
1f53ca9a 21770
a90ef4bf
JM
21771.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21772maybe-install-html-libdecnumber:
21773@if libdecnumber
21774maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21775
a90ef4bf
JM
21776install-html-libdecnumber: \
21777 configure-libdecnumber \
21778 html-libdecnumber
21779 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21780 r=`${PWD_COMMAND}`; export r; \
21781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21782 $(HOST_EXPORTS) \
21783 for flag in $(EXTRA_HOST_FLAGS) ; do \
21784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21785 done; \
a90ef4bf
JM
21786 echo "Doing install-html in libdecnumber" ; \
21787 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21790 "RANLIB=$${RANLIB}" \
21791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21792 install-html) \
21793 || exit 1
21794
a90ef4bf 21795@endif libdecnumber
1f53ca9a 21796
a90ef4bf
JM
21797.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21798maybe-installcheck-libdecnumber:
21799@if libdecnumber
21800maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21801
a90ef4bf
JM
21802installcheck-libdecnumber: \
21803 configure-libdecnumber
21804 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21805 r=`${PWD_COMMAND}`; export r; \
21806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21807 $(HOST_EXPORTS) \
21808 for flag in $(EXTRA_HOST_FLAGS) ; do \
21809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21810 done; \
a90ef4bf
JM
21811 echo "Doing installcheck in libdecnumber" ; \
21812 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21815 "RANLIB=$${RANLIB}" \
21816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21817 installcheck) \
21818 || exit 1
21819
a90ef4bf 21820@endif libdecnumber
1f53ca9a 21821
a90ef4bf
JM
21822.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21823maybe-mostlyclean-libdecnumber:
21824@if libdecnumber
21825maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21826
a90ef4bf
JM
21827mostlyclean-libdecnumber:
21828 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21829 r=`${PWD_COMMAND}`; export r; \
21830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21831 $(HOST_EXPORTS) \
21832 for flag in $(EXTRA_HOST_FLAGS) ; do \
21833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21834 done; \
a90ef4bf
JM
21835 echo "Doing mostlyclean in libdecnumber" ; \
21836 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21839 "RANLIB=$${RANLIB}" \
21840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21841 mostlyclean) \
21842 || exit 1
21843
a90ef4bf 21844@endif libdecnumber
1f53ca9a 21845
a90ef4bf
JM
21846.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21847maybe-clean-libdecnumber:
21848@if libdecnumber
21849maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21850
a90ef4bf
JM
21851clean-libdecnumber:
21852 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21853 r=`${PWD_COMMAND}`; export r; \
21854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21855 $(HOST_EXPORTS) \
21856 for flag in $(EXTRA_HOST_FLAGS) ; do \
21857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21858 done; \
a90ef4bf
JM
21859 echo "Doing clean in libdecnumber" ; \
21860 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21863 "RANLIB=$${RANLIB}" \
21864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21865 clean) \
21866 || exit 1
21867
a90ef4bf 21868@endif libdecnumber
1f53ca9a 21869
a90ef4bf
JM
21870.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
21871maybe-distclean-libdecnumber:
21872@if libdecnumber
21873maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 21874
a90ef4bf
JM
21875distclean-libdecnumber:
21876 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21877 r=`${PWD_COMMAND}`; export r; \
21878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21879 $(HOST_EXPORTS) \
21880 for flag in $(EXTRA_HOST_FLAGS) ; do \
21881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21882 done; \
a90ef4bf
JM
21883 echo "Doing distclean in libdecnumber" ; \
21884 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21887 "RANLIB=$${RANLIB}" \
21888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21889 distclean) \
21890 || exit 1
21891
a90ef4bf 21892@endif libdecnumber
1f53ca9a 21893
a90ef4bf
JM
21894.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
21895maybe-maintainer-clean-libdecnumber:
21896@if libdecnumber
21897maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 21898
a90ef4bf
JM
21899maintainer-clean-libdecnumber:
21900 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21901 r=`${PWD_COMMAND}`; export r; \
21902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21903 $(HOST_EXPORTS) \
21904 for flag in $(EXTRA_HOST_FLAGS) ; do \
21905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21906 done; \
a90ef4bf
JM
21907 echo "Doing maintainer-clean in libdecnumber" ; \
21908 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21911 "RANLIB=$${RANLIB}" \
21912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21913 maintainer-clean) \
21914 || exit 1
21915
a90ef4bf 21916@endif libdecnumber
1f53ca9a
AO
21917
21918
21919
a90ef4bf
JM
21920.PHONY: configure-libgui maybe-configure-libgui
21921maybe-configure-libgui:
4f0ef2d8 21922@if gcc-bootstrap
a90ef4bf 21923configure-libgui: stage_current
4f0ef2d8 21924@endif gcc-bootstrap
a90ef4bf
JM
21925@if libgui
21926maybe-configure-libgui: configure-libgui
21927configure-libgui:
0aed8855 21928 @: $(MAKE); $(unstage)
c52c6897 21929 @r=`${PWD_COMMAND}`; export r; \
4fa63067 21930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
21931 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
21932 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
1f53ca9a 21933 $(HOST_EXPORTS) \
a90ef4bf
JM
21934 echo Configuring in $(HOST_SUBDIR)/libgui; \
21935 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 21936 case $(srcdir) in \
b00612cc 21937 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21938 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 21939 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 21940 esac; \
1b6c0831
L
21941 module_srcdir=libgui; \
21942 $(SHELL) \
21943 $$s/$$module_srcdir/configure \
21944 --srcdir=$${topdir}/$$module_srcdir \
4b900473 21945 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21946 --target=${target_alias} \
2a4cbe27 21947 || exit 1
a90ef4bf 21948@endif libgui
2a4cbe27 21949
a7254363
PB
21950
21951
d545f33b
PB
21952
21953
a90ef4bf
JM
21954.PHONY: all-libgui maybe-all-libgui
21955maybe-all-libgui:
4f0ef2d8 21956@if gcc-bootstrap
a90ef4bf 21957all-libgui: stage_current
4f0ef2d8 21958@endif gcc-bootstrap
a90ef4bf
JM
21959@if libgui
21960TARGET-libgui=all
21961maybe-all-libgui: all-libgui
21962all-libgui: configure-libgui
0aed8855 21963 @: $(MAKE); $(unstage)
4fa63067
NN
21964 @r=`${PWD_COMMAND}`; export r; \
21965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 21966 $(HOST_EXPORTS) \
a90ef4bf 21967 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 21968 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21969 $(TARGET-libgui))
21970@endif libgui
2a4cbe27 21971
a7254363 21972
d545f33b
PB
21973
21974
a90ef4bf
JM
21975.PHONY: check-libgui maybe-check-libgui
21976maybe-check-libgui:
21977@if libgui
21978maybe-check-libgui: check-libgui
2a4cbe27 21979
a90ef4bf 21980check-libgui:
0aed8855 21981 @: $(MAKE); $(unstage)
4fa63067 21982 @r=`${PWD_COMMAND}`; export r; \
b40e3958 21983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 21984 $(HOST_EXPORTS) \
a90ef4bf 21985 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 21986 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 21987
a90ef4bf 21988@endif libgui
2a4cbe27 21989
a90ef4bf
JM
21990.PHONY: install-libgui maybe-install-libgui
21991maybe-install-libgui:
21992@if libgui
21993maybe-install-libgui: install-libgui
2a4cbe27 21994
a90ef4bf 21995install-libgui: installdirs
0aed8855 21996 @: $(MAKE); $(unstage)
4fa63067 21997 @r=`${PWD_COMMAND}`; export r; \
b40e3958 21998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 21999 $(HOST_EXPORTS) \
a90ef4bf 22000 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22001 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22002
a90ef4bf 22003@endif libgui
2a4cbe27 22004
a90ef4bf
JM
22005.PHONY: install-strip-libgui maybe-install-strip-libgui
22006maybe-install-strip-libgui:
22007@if libgui
22008maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22009
a90ef4bf 22010install-strip-libgui: installdirs
9b980aa1
RW
22011 @: $(MAKE); $(unstage)
22012 @r=`${PWD_COMMAND}`; export r; \
22013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22014 $(HOST_EXPORTS) \
a90ef4bf 22015 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22016 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22017
a90ef4bf 22018@endif libgui
9b980aa1 22019
56a8fe78 22020# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22021
a90ef4bf
JM
22022.PHONY: maybe-info-libgui info-libgui
22023maybe-info-libgui:
22024@if libgui
22025maybe-info-libgui: info-libgui
4fa63067 22026
a90ef4bf
JM
22027info-libgui: \
22028 configure-libgui
0aed8855 22029 @: $(MAKE); $(unstage)
a90ef4bf 22030 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22031 r=`${PWD_COMMAND}`; export r; \
22032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22033 $(HOST_EXPORTS) \
b813574b 22034 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22036 done; \
a90ef4bf
JM
22037 echo "Doing info in libgui" ; \
22038 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22041 "RANLIB=$${RANLIB}" \
0c24b341 22042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22043 info) \
2a4cbe27
NN
22044 || exit 1
22045
a90ef4bf 22046@endif libgui
2a4cbe27 22047
a90ef4bf
JM
22048.PHONY: maybe-dvi-libgui dvi-libgui
22049maybe-dvi-libgui:
22050@if libgui
22051maybe-dvi-libgui: dvi-libgui
2a4cbe27 22052
a90ef4bf
JM
22053dvi-libgui: \
22054 configure-libgui
0aed8855 22055 @: $(MAKE); $(unstage)
a90ef4bf 22056 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22057 r=`${PWD_COMMAND}`; export r; \
22058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22059 $(HOST_EXPORTS) \
b813574b 22060 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22062 done; \
a90ef4bf
JM
22063 echo "Doing dvi in libgui" ; \
22064 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22067 "RANLIB=$${RANLIB}" \
0c24b341 22068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22069 dvi) \
2a4cbe27
NN
22070 || exit 1
22071
a90ef4bf 22072@endif libgui
2a4cbe27 22073
a90ef4bf
JM
22074.PHONY: maybe-pdf-libgui pdf-libgui
22075maybe-pdf-libgui:
22076@if libgui
22077maybe-pdf-libgui: pdf-libgui
56a8fe78 22078
a90ef4bf
JM
22079pdf-libgui: \
22080 configure-libgui
56a8fe78 22081 @: $(MAKE); $(unstage)
a90ef4bf 22082 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22083 r=`${PWD_COMMAND}`; export r; \
22084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22085 $(HOST_EXPORTS) \
22086 for flag in $(EXTRA_HOST_FLAGS) ; do \
22087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22088 done; \
a90ef4bf
JM
22089 echo "Doing pdf in libgui" ; \
22090 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22093 "RANLIB=$${RANLIB}" \
0c24b341 22094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22095 pdf) \
22096 || exit 1
22097
a90ef4bf 22098@endif libgui
56a8fe78 22099
a90ef4bf
JM
22100.PHONY: maybe-html-libgui html-libgui
22101maybe-html-libgui:
22102@if libgui
22103maybe-html-libgui: html-libgui
6d389afc 22104
a90ef4bf
JM
22105html-libgui: \
22106 configure-libgui
0aed8855 22107 @: $(MAKE); $(unstage)
a90ef4bf 22108 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22109 r=`${PWD_COMMAND}`; export r; \
22110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22111 $(HOST_EXPORTS) \
22112 for flag in $(EXTRA_HOST_FLAGS) ; do \
22113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22114 done; \
a90ef4bf
JM
22115 echo "Doing html in libgui" ; \
22116 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22119 "RANLIB=$${RANLIB}" \
0c24b341 22120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22121 html) \
22122 || exit 1
22123
a90ef4bf 22124@endif libgui
6d389afc 22125
a90ef4bf
JM
22126.PHONY: maybe-TAGS-libgui TAGS-libgui
22127maybe-TAGS-libgui:
22128@if libgui
22129maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22130
a90ef4bf
JM
22131TAGS-libgui: \
22132 configure-libgui
0aed8855 22133 @: $(MAKE); $(unstage)
a90ef4bf 22134 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22135 r=`${PWD_COMMAND}`; export r; \
22136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22137 $(HOST_EXPORTS) \
b813574b 22138 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22140 done; \
a90ef4bf
JM
22141 echo "Doing TAGS in libgui" ; \
22142 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22145 "RANLIB=$${RANLIB}" \
0c24b341 22146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22147 TAGS) \
2a4cbe27
NN
22148 || exit 1
22149
a90ef4bf 22150@endif libgui
2a4cbe27 22151
a90ef4bf
JM
22152.PHONY: maybe-install-info-libgui install-info-libgui
22153maybe-install-info-libgui:
22154@if libgui
22155maybe-install-info-libgui: install-info-libgui
2a4cbe27 22156
a90ef4bf
JM
22157install-info-libgui: \
22158 configure-libgui \
22159 info-libgui
0aed8855 22160 @: $(MAKE); $(unstage)
a90ef4bf 22161 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22162 r=`${PWD_COMMAND}`; export r; \
22163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22164 $(HOST_EXPORTS) \
b813574b 22165 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22167 done; \
a90ef4bf
JM
22168 echo "Doing install-info in libgui" ; \
22169 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22172 "RANLIB=$${RANLIB}" \
0c24b341 22173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22174 install-info) \
2a4cbe27
NN
22175 || exit 1
22176
a90ef4bf 22177@endif libgui
2a4cbe27 22178
a90ef4bf
JM
22179.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22180maybe-install-pdf-libgui:
22181@if libgui
22182maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22183
a90ef4bf
JM
22184install-pdf-libgui: \
22185 configure-libgui \
22186 pdf-libgui
a3ca38d2 22187 @: $(MAKE); $(unstage)
a90ef4bf 22188 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22189 r=`${PWD_COMMAND}`; export r; \
22190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22191 $(HOST_EXPORTS) \
22192 for flag in $(EXTRA_HOST_FLAGS) ; do \
22193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22194 done; \
a90ef4bf
JM
22195 echo "Doing install-pdf in libgui" ; \
22196 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22199 "RANLIB=$${RANLIB}" \
0c24b341 22200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22201 install-pdf) \
22202 || exit 1
22203
a90ef4bf 22204@endif libgui
a3ca38d2 22205
a90ef4bf
JM
22206.PHONY: maybe-install-html-libgui install-html-libgui
22207maybe-install-html-libgui:
22208@if libgui
22209maybe-install-html-libgui: install-html-libgui
108a6f8e 22210
a90ef4bf
JM
22211install-html-libgui: \
22212 configure-libgui \
22213 html-libgui
108a6f8e 22214 @: $(MAKE); $(unstage)
a90ef4bf 22215 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22216 r=`${PWD_COMMAND}`; export r; \
22217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22218 $(HOST_EXPORTS) \
22219 for flag in $(EXTRA_HOST_FLAGS) ; do \
22220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22221 done; \
a90ef4bf
JM
22222 echo "Doing install-html in libgui" ; \
22223 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22226 "RANLIB=$${RANLIB}" \
0c24b341 22227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22228 install-html) \
22229 || exit 1
22230
a90ef4bf 22231@endif libgui
108a6f8e 22232
a90ef4bf
JM
22233.PHONY: maybe-installcheck-libgui installcheck-libgui
22234maybe-installcheck-libgui:
22235@if libgui
22236maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22237
a90ef4bf
JM
22238installcheck-libgui: \
22239 configure-libgui
0aed8855 22240 @: $(MAKE); $(unstage)
a90ef4bf 22241 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22242 r=`${PWD_COMMAND}`; export r; \
22243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22244 $(HOST_EXPORTS) \
b813574b 22245 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22247 done; \
a90ef4bf
JM
22248 echo "Doing installcheck in libgui" ; \
22249 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22252 "RANLIB=$${RANLIB}" \
0c24b341 22253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22254 installcheck) \
2a4cbe27
NN
22255 || exit 1
22256
a90ef4bf 22257@endif libgui
2a4cbe27 22258
a90ef4bf
JM
22259.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22260maybe-mostlyclean-libgui:
22261@if libgui
22262maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22263
a90ef4bf 22264mostlyclean-libgui:
0aed8855 22265 @: $(MAKE); $(unstage)
a90ef4bf 22266 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22267 r=`${PWD_COMMAND}`; export r; \
22268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22269 $(HOST_EXPORTS) \
b813574b 22270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22272 done; \
a90ef4bf
JM
22273 echo "Doing mostlyclean in libgui" ; \
22274 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22277 "RANLIB=$${RANLIB}" \
0c24b341 22278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22279 mostlyclean) \
2a4cbe27
NN
22280 || exit 1
22281
a90ef4bf 22282@endif libgui
2a4cbe27 22283
a90ef4bf
JM
22284.PHONY: maybe-clean-libgui clean-libgui
22285maybe-clean-libgui:
22286@if libgui
22287maybe-clean-libgui: clean-libgui
2a4cbe27 22288
a90ef4bf 22289clean-libgui:
0aed8855 22290 @: $(MAKE); $(unstage)
a90ef4bf 22291 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22292 r=`${PWD_COMMAND}`; export r; \
22293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22294 $(HOST_EXPORTS) \
b813574b 22295 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22297 done; \
a90ef4bf
JM
22298 echo "Doing clean in libgui" ; \
22299 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22302 "RANLIB=$${RANLIB}" \
0c24b341 22303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22304 clean) \
2a4cbe27
NN
22305 || exit 1
22306
a90ef4bf 22307@endif libgui
2a4cbe27 22308
a90ef4bf
JM
22309.PHONY: maybe-distclean-libgui distclean-libgui
22310maybe-distclean-libgui:
22311@if libgui
22312maybe-distclean-libgui: distclean-libgui
2a4cbe27 22313
a90ef4bf 22314distclean-libgui:
0aed8855 22315 @: $(MAKE); $(unstage)
a90ef4bf 22316 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22317 r=`${PWD_COMMAND}`; export r; \
22318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22319 $(HOST_EXPORTS) \
b813574b 22320 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22322 done; \
a90ef4bf
JM
22323 echo "Doing distclean in libgui" ; \
22324 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22327 "RANLIB=$${RANLIB}" \
0c24b341 22328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22329 distclean) \
2a4cbe27
NN
22330 || exit 1
22331
a90ef4bf 22332@endif libgui
2a4cbe27 22333
a90ef4bf
JM
22334.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22335maybe-maintainer-clean-libgui:
22336@if libgui
22337maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22338
a90ef4bf 22339maintainer-clean-libgui:
0aed8855 22340 @: $(MAKE); $(unstage)
a90ef4bf 22341 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22342 r=`${PWD_COMMAND}`; export r; \
22343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22344 $(HOST_EXPORTS) \
b813574b 22345 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22347 done; \
a90ef4bf
JM
22348 echo "Doing maintainer-clean in libgui" ; \
22349 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22352 "RANLIB=$${RANLIB}" \
0c24b341 22353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22354 maintainer-clean) \
2a4cbe27
NN
22355 || exit 1
22356
a90ef4bf 22357@endif libgui
2a4cbe27 22358
2a4cbe27 22359
a7254363 22360
a90ef4bf
JM
22361.PHONY: configure-libiberty maybe-configure-libiberty
22362maybe-configure-libiberty:
93f9b408 22363@if gcc-bootstrap
a90ef4bf 22364configure-libiberty: stage_current
93f9b408 22365@endif gcc-bootstrap
a90ef4bf
JM
22366@if libiberty
22367maybe-configure-libiberty: configure-libiberty
22368configure-libiberty:
93f9b408
ILT
22369 @r=`${PWD_COMMAND}`; export r; \
22370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
22371 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22372 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
1f53ca9a 22373 $(HOST_EXPORTS) \
a90ef4bf
JM
22374 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22375 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22376 case $(srcdir) in \
22377 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22378 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22379 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22380 esac; \
1b6c0831
L
22381 module_srcdir=libiberty; \
22382 $(SHELL) \
22383 $$s/$$module_srcdir/configure \
22384 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22385 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22386 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22387 || exit 1
a90ef4bf 22388@endif libiberty
93f9b408
ILT
22389
22390
22391
a90ef4bf
JM
22392.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22393maybe-configure-stage1-libiberty:
22394@if libiberty-bootstrap
22395maybe-configure-stage1-libiberty: configure-stage1-libiberty
22396configure-stage1-libiberty:
93f9b408 22397 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22398 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22399 @r=`${PWD_COMMAND}`; export r; \
22400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22401 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22402 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22403 $(HOST_EXPORTS) \
93f9b408 22404 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22405 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22406 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22407 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
22408 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22409 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22410 case $(srcdir) in \
22411 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22412 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22413 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22414 esac; \
1b6c0831
L
22415 module_srcdir=libiberty; \
22416 $(SHELL) $$s/$$module_srcdir/configure \
22417 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22418 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22419 --target=${target_alias} \
22420 \
a90ef4bf
JM
22421 $(STAGE1_CONFIGURE_FLAGS) \
22422 @extra_host_libiberty_configure_flags@
22423@endif libiberty-bootstrap
93f9b408 22424
a90ef4bf
JM
22425.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22426maybe-configure-stage2-libiberty:
22427@if libiberty-bootstrap
22428maybe-configure-stage2-libiberty: configure-stage2-libiberty
22429configure-stage2-libiberty:
93f9b408 22430 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22431 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22432 @r=`${PWD_COMMAND}`; export r; \
22433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22434 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22435 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22436 $(HOST_EXPORTS) \
1b05fbbd 22437 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22438 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22439 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22440 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22441 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
22442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22443 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22444 case $(srcdir) in \
22445 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22446 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22447 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22448 esac; \
1b6c0831
L
22449 module_srcdir=libiberty; \
22450 $(SHELL) $$s/$$module_srcdir/configure \
22451 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22452 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22453 --target=${target_alias} \
22454 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22455 $(STAGE2_CONFIGURE_FLAGS) \
22456 @extra_host_libiberty_configure_flags@
22457@endif libiberty-bootstrap
93f9b408 22458
a90ef4bf
JM
22459.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22460maybe-configure-stage3-libiberty:
22461@if libiberty-bootstrap
22462maybe-configure-stage3-libiberty: configure-stage3-libiberty
22463configure-stage3-libiberty:
93f9b408 22464 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22465 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22466 @r=`${PWD_COMMAND}`; export r; \
22467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22468 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22469 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22470 $(HOST_EXPORTS) \
1b05fbbd 22471 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22472 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22473 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22474 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22475 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
22476 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22477 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22478 case $(srcdir) in \
22479 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22480 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22481 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22482 esac; \
1b6c0831
L
22483 module_srcdir=libiberty; \
22484 $(SHELL) $$s/$$module_srcdir/configure \
22485 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22486 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22487 --target=${target_alias} \
22488 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22489 $(STAGE3_CONFIGURE_FLAGS) \
22490 @extra_host_libiberty_configure_flags@
22491@endif libiberty-bootstrap
93f9b408 22492
a90ef4bf
JM
22493.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22494maybe-configure-stage4-libiberty:
22495@if libiberty-bootstrap
22496maybe-configure-stage4-libiberty: configure-stage4-libiberty
22497configure-stage4-libiberty:
93f9b408 22498 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22499 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22500 @r=`${PWD_COMMAND}`; export r; \
22501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22502 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22503 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22504 $(HOST_EXPORTS) \
1b05fbbd 22505 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22506 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22507 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22508 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22509 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
22510 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22511 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22512 case $(srcdir) in \
22513 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22514 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22515 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22516 esac; \
1b6c0831
L
22517 module_srcdir=libiberty; \
22518 $(SHELL) $$s/$$module_srcdir/configure \
22519 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22520 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22521 --target=${target_alias} \
22522 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22523 $(STAGE4_CONFIGURE_FLAGS) \
22524 @extra_host_libiberty_configure_flags@
22525@endif libiberty-bootstrap
93f9b408 22526
a90ef4bf
JM
22527.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22528maybe-configure-stageprofile-libiberty:
22529@if libiberty-bootstrap
22530maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22531configure-stageprofile-libiberty:
93f9b408 22532 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22533 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22534 @r=`${PWD_COMMAND}`; export r; \
22535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22536 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22537 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22538 $(HOST_EXPORTS) \
1b05fbbd
AO
22539 $(POSTSTAGE1_HOST_EXPORTS) \
22540 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22541 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22542 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22543 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
22544 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22545 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22546 case $(srcdir) in \
22547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22548 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22550 esac; \
1b6c0831
L
22551 module_srcdir=libiberty; \
22552 $(SHELL) $$s/$$module_srcdir/configure \
22553 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22554 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22555 --target=${target_alias} \
22556 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22557 $(STAGEprofile_CONFIGURE_FLAGS) \
22558 @extra_host_libiberty_configure_flags@
22559@endif libiberty-bootstrap
93f9b408 22560
a90ef4bf
JM
22561.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22562maybe-configure-stagefeedback-libiberty:
22563@if libiberty-bootstrap
22564maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22565configure-stagefeedback-libiberty:
93f9b408 22566 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22567 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22568 @r=`${PWD_COMMAND}`; export r; \
22569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22570 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22571 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22572 $(HOST_EXPORTS) \
1b05fbbd
AO
22573 $(POSTSTAGE1_HOST_EXPORTS) \
22574 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22575 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22576 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22577 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
22578 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22579 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22580 case $(srcdir) in \
22581 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22582 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22583 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22584 esac; \
1b6c0831
L
22585 module_srcdir=libiberty; \
22586 $(SHELL) $$s/$$module_srcdir/configure \
22587 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22588 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22589 --target=${target_alias} \
22590 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22591 $(STAGEfeedback_CONFIGURE_FLAGS) \
22592 @extra_host_libiberty_configure_flags@
22593@endif libiberty-bootstrap
93f9b408
ILT
22594
22595
22596
22597
22598
a90ef4bf
JM
22599.PHONY: all-libiberty maybe-all-libiberty
22600maybe-all-libiberty:
93f9b408 22601@if gcc-bootstrap
a90ef4bf 22602all-libiberty: stage_current
93f9b408 22603@endif gcc-bootstrap
a90ef4bf
JM
22604@if libiberty
22605TARGET-libiberty=all
22606maybe-all-libiberty: all-libiberty
22607all-libiberty: configure-libiberty
93f9b408
ILT
22608 @r=`${PWD_COMMAND}`; export r; \
22609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22610 $(HOST_EXPORTS) \
a90ef4bf 22611 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22612 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22613 $(TARGET-libiberty))
22614@endif libiberty
93f9b408
ILT
22615
22616
22617
a90ef4bf
JM
22618.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22619.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22620maybe-all-stage1-libiberty:
22621maybe-clean-stage1-libiberty:
22622@if libiberty-bootstrap
22623maybe-all-stage1-libiberty: all-stage1-libiberty
22624all-stage1: all-stage1-libiberty
22625TARGET-stage1-libiberty = $(TARGET-libiberty)
22626all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22627 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22628 @r=`${PWD_COMMAND}`; export r; \
22629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22630 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22631 $(HOST_EXPORTS) \
a90ef4bf 22632 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22633 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22634 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22635 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22636 LIBCFLAGS="$(LIBCFLAGS)" \
22637 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22638 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22639 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22640 $(EXTRA_HOST_FLAGS) \
22641 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 22642 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22643 $(TARGET-stage1-libiberty)
93f9b408 22644
a90ef4bf
JM
22645maybe-clean-stage1-libiberty: clean-stage1-libiberty
22646clean-stage1: clean-stage1-libiberty
22647clean-stage1-libiberty:
93f9b408 22648 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22649 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22650 else \
a90ef4bf 22651 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22652 $(MAKE) stage1-start; \
22653 fi; \
a90ef4bf 22654 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22655 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22656 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22657@endif libiberty-bootstrap
93f9b408
ILT
22658
22659
a90ef4bf
JM
22660.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22661.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22662maybe-all-stage2-libiberty:
22663maybe-clean-stage2-libiberty:
22664@if libiberty-bootstrap
22665maybe-all-stage2-libiberty: all-stage2-libiberty
22666all-stage2: all-stage2-libiberty
22667TARGET-stage2-libiberty = $(TARGET-libiberty)
22668all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22669 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22670 @r=`${PWD_COMMAND}`; export r; \
22671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22672 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22673 $(HOST_EXPORTS) \
1f53ca9a 22674 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22675 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22676 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22677 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22678 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22679 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22680 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22681 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22682 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22683 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22684 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22685 $(TARGET-stage2-libiberty)
93f9b408 22686
a90ef4bf
JM
22687maybe-clean-stage2-libiberty: clean-stage2-libiberty
22688clean-stage2: clean-stage2-libiberty
22689clean-stage2-libiberty:
93f9b408 22690 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22691 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22692 else \
a90ef4bf 22693 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22694 $(MAKE) stage2-start; \
22695 fi; \
a90ef4bf 22696 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22697 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22698@endif libiberty-bootstrap
93f9b408
ILT
22699
22700
a90ef4bf
JM
22701.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22702.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22703maybe-all-stage3-libiberty:
22704maybe-clean-stage3-libiberty:
22705@if libiberty-bootstrap
22706maybe-all-stage3-libiberty: all-stage3-libiberty
22707all-stage3: all-stage3-libiberty
22708TARGET-stage3-libiberty = $(TARGET-libiberty)
22709all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22710 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22711 @r=`${PWD_COMMAND}`; export r; \
22712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22713 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22714 $(HOST_EXPORTS) \
1f53ca9a 22715 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22716 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22717 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22718 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22719 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22720 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22721 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22722 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22723 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22724 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22725 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22726 $(TARGET-stage3-libiberty)
93f9b408 22727
a90ef4bf
JM
22728maybe-clean-stage3-libiberty: clean-stage3-libiberty
22729clean-stage3: clean-stage3-libiberty
22730clean-stage3-libiberty:
93f9b408 22731 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22732 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22733 else \
a90ef4bf 22734 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22735 $(MAKE) stage3-start; \
22736 fi; \
a90ef4bf 22737 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22738 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22739@endif libiberty-bootstrap
93f9b408
ILT
22740
22741
a90ef4bf
JM
22742.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22743.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22744maybe-all-stage4-libiberty:
22745maybe-clean-stage4-libiberty:
22746@if libiberty-bootstrap
22747maybe-all-stage4-libiberty: all-stage4-libiberty
22748all-stage4: all-stage4-libiberty
22749TARGET-stage4-libiberty = $(TARGET-libiberty)
22750all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22751 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22752 @r=`${PWD_COMMAND}`; export r; \
22753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22754 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22755 $(HOST_EXPORTS) \
1f53ca9a 22756 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22757 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22758 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22759 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22760 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22761 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22762 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22763 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22764 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22765 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22766 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22767 $(TARGET-stage4-libiberty)
93f9b408 22768
a90ef4bf
JM
22769maybe-clean-stage4-libiberty: clean-stage4-libiberty
22770clean-stage4: clean-stage4-libiberty
22771clean-stage4-libiberty:
93f9b408 22772 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22773 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22774 else \
a90ef4bf 22775 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22776 $(MAKE) stage4-start; \
22777 fi; \
a90ef4bf 22778 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22779 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22780@endif libiberty-bootstrap
93f9b408
ILT
22781
22782
a90ef4bf
JM
22783.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22784.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22785maybe-all-stageprofile-libiberty:
22786maybe-clean-stageprofile-libiberty:
22787@if libiberty-bootstrap
22788maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22789all-stageprofile: all-stageprofile-libiberty
22790TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22791all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22792 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22793 @r=`${PWD_COMMAND}`; export r; \
22794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22795 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22796 $(HOST_EXPORTS) \
1f53ca9a 22797 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22798 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22799 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22800 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22801 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22802 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22803 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22804 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22805 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22806 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22807 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22808 $(TARGET-stageprofile-libiberty)
93f9b408 22809
a90ef4bf
JM
22810maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22811clean-stageprofile: clean-stageprofile-libiberty
22812clean-stageprofile-libiberty:
93f9b408 22813 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22814 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22815 else \
a90ef4bf 22816 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22817 $(MAKE) stageprofile-start; \
22818 fi; \
a90ef4bf 22819 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22820 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22821@endif libiberty-bootstrap
93f9b408
ILT
22822
22823
a90ef4bf
JM
22824.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22825.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22826maybe-all-stagefeedback-libiberty:
22827maybe-clean-stagefeedback-libiberty:
22828@if libiberty-bootstrap
22829maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22830all-stagefeedback: all-stagefeedback-libiberty
22831TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22832all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22833 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22834 @r=`${PWD_COMMAND}`; export r; \
22835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22836 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22837 $(HOST_EXPORTS) \
1f53ca9a 22838 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22839 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22840 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22841 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22842 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22843 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22844 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22845 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22846 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22847 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22848 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22849 $(TARGET-stagefeedback-libiberty)
93f9b408 22850
a90ef4bf
JM
22851maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22852clean-stagefeedback: clean-stagefeedback-libiberty
22853clean-stagefeedback-libiberty:
93f9b408 22854 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22855 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22856 else \
a90ef4bf 22857 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22858 $(MAKE) stagefeedback-start; \
22859 fi; \
a90ef4bf 22860 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22861 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22862@endif libiberty-bootstrap
93f9b408
ILT
22863
22864
22865
22866
22867
a90ef4bf
JM
22868.PHONY: check-libiberty maybe-check-libiberty
22869maybe-check-libiberty:
22870@if libiberty
22871maybe-check-libiberty: check-libiberty
93f9b408 22872
a90ef4bf 22873check-libiberty:
93f9b408
ILT
22874 @: $(MAKE); $(unstage)
22875 @r=`${PWD_COMMAND}`; export r; \
22876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22877 $(HOST_EXPORTS) \
a90ef4bf 22878 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22879 $(MAKE) $(FLAGS_TO_PASS) check)
22880
a90ef4bf 22881@endif libiberty
93f9b408 22882
a90ef4bf
JM
22883.PHONY: install-libiberty maybe-install-libiberty
22884maybe-install-libiberty:
22885@if libiberty
22886maybe-install-libiberty: install-libiberty
93f9b408 22887
a90ef4bf 22888install-libiberty: installdirs
93f9b408
ILT
22889 @: $(MAKE); $(unstage)
22890 @r=`${PWD_COMMAND}`; export r; \
22891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22892 $(HOST_EXPORTS) \
a90ef4bf 22893 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22894 $(MAKE) $(FLAGS_TO_PASS) install)
22895
a90ef4bf 22896@endif libiberty
93f9b408 22897
a90ef4bf
JM
22898.PHONY: install-strip-libiberty maybe-install-strip-libiberty
22899maybe-install-strip-libiberty:
22900@if libiberty
22901maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 22902
a90ef4bf 22903install-strip-libiberty: installdirs
9b980aa1
RW
22904 @: $(MAKE); $(unstage)
22905 @r=`${PWD_COMMAND}`; export r; \
22906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22907 $(HOST_EXPORTS) \
a90ef4bf 22908 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
22909 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22910
a90ef4bf 22911@endif libiberty
9b980aa1 22912
93f9b408
ILT
22913# Other targets (info, dvi, pdf, etc.)
22914
a90ef4bf
JM
22915.PHONY: maybe-info-libiberty info-libiberty
22916maybe-info-libiberty:
22917@if libiberty
22918maybe-info-libiberty: info-libiberty
93f9b408 22919
a90ef4bf
JM
22920info-libiberty: \
22921 configure-libiberty
22922 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22923 r=`${PWD_COMMAND}`; export r; \
22924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22925 $(HOST_EXPORTS) \
22926 for flag in $(EXTRA_HOST_FLAGS) ; do \
22927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22928 done; \
a90ef4bf
JM
22929 echo "Doing info in libiberty" ; \
22930 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22933 "RANLIB=$${RANLIB}" \
22934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22935 info) \
22936 || exit 1
22937
a90ef4bf 22938@endif libiberty
93f9b408 22939
a90ef4bf
JM
22940.PHONY: maybe-dvi-libiberty dvi-libiberty
22941maybe-dvi-libiberty:
22942@if libiberty
22943maybe-dvi-libiberty: dvi-libiberty
93f9b408 22944
a90ef4bf
JM
22945dvi-libiberty: \
22946 configure-libiberty
22947 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22948 r=`${PWD_COMMAND}`; export r; \
22949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22950 $(HOST_EXPORTS) \
22951 for flag in $(EXTRA_HOST_FLAGS) ; do \
22952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22953 done; \
a90ef4bf
JM
22954 echo "Doing dvi in libiberty" ; \
22955 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22958 "RANLIB=$${RANLIB}" \
22959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22960 dvi) \
22961 || exit 1
22962
a90ef4bf 22963@endif libiberty
93f9b408 22964
a90ef4bf
JM
22965.PHONY: maybe-pdf-libiberty pdf-libiberty
22966maybe-pdf-libiberty:
22967@if libiberty
22968maybe-pdf-libiberty: pdf-libiberty
93f9b408 22969
a90ef4bf
JM
22970pdf-libiberty: \
22971 configure-libiberty
22972 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22973 r=`${PWD_COMMAND}`; export r; \
22974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22975 $(HOST_EXPORTS) \
22976 for flag in $(EXTRA_HOST_FLAGS) ; do \
22977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22978 done; \
a90ef4bf
JM
22979 echo "Doing pdf in libiberty" ; \
22980 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22983 "RANLIB=$${RANLIB}" \
22984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22985 pdf) \
22986 || exit 1
22987
a90ef4bf 22988@endif libiberty
93f9b408 22989
a90ef4bf
JM
22990.PHONY: maybe-html-libiberty html-libiberty
22991maybe-html-libiberty:
22992@if libiberty
22993maybe-html-libiberty: html-libiberty
93f9b408 22994
a90ef4bf
JM
22995html-libiberty: \
22996 configure-libiberty
22997 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22998 r=`${PWD_COMMAND}`; export r; \
22999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23000 $(HOST_EXPORTS) \
23001 for flag in $(EXTRA_HOST_FLAGS) ; do \
23002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23003 done; \
a90ef4bf
JM
23004 echo "Doing html in libiberty" ; \
23005 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23008 "RANLIB=$${RANLIB}" \
23009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23010 html) \
23011 || exit 1
23012
a90ef4bf 23013@endif libiberty
93f9b408 23014
a90ef4bf
JM
23015.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23016maybe-TAGS-libiberty:
23017@if libiberty
23018maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23019
a90ef4bf
JM
23020TAGS-libiberty: \
23021 configure-libiberty
23022 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23023 r=`${PWD_COMMAND}`; export r; \
23024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23025 $(HOST_EXPORTS) \
23026 for flag in $(EXTRA_HOST_FLAGS) ; do \
23027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23028 done; \
a90ef4bf
JM
23029 echo "Doing TAGS in libiberty" ; \
23030 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23033 "RANLIB=$${RANLIB}" \
23034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23035 TAGS) \
23036 || exit 1
23037
a90ef4bf 23038@endif libiberty
93f9b408 23039
a90ef4bf
JM
23040.PHONY: maybe-install-info-libiberty install-info-libiberty
23041maybe-install-info-libiberty:
23042@if libiberty
23043maybe-install-info-libiberty: install-info-libiberty
93f9b408 23044
a90ef4bf
JM
23045install-info-libiberty: \
23046 configure-libiberty \
23047 info-libiberty
23048 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23049 r=`${PWD_COMMAND}`; export r; \
23050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23051 $(HOST_EXPORTS) \
23052 for flag in $(EXTRA_HOST_FLAGS) ; do \
23053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23054 done; \
a90ef4bf
JM
23055 echo "Doing install-info in libiberty" ; \
23056 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23059 "RANLIB=$${RANLIB}" \
23060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23061 install-info) \
23062 || exit 1
23063
a90ef4bf 23064@endif libiberty
93f9b408 23065
a90ef4bf
JM
23066.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23067maybe-install-pdf-libiberty:
23068@if libiberty
23069maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23070
a90ef4bf
JM
23071install-pdf-libiberty: \
23072 configure-libiberty \
23073 pdf-libiberty
23074 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23075 r=`${PWD_COMMAND}`; export r; \
23076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23077 $(HOST_EXPORTS) \
23078 for flag in $(EXTRA_HOST_FLAGS) ; do \
23079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23080 done; \
a90ef4bf
JM
23081 echo "Doing install-pdf in libiberty" ; \
23082 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23085 "RANLIB=$${RANLIB}" \
23086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23087 install-pdf) \
23088 || exit 1
23089
a90ef4bf 23090@endif libiberty
93f9b408 23091
a90ef4bf
JM
23092.PHONY: maybe-install-html-libiberty install-html-libiberty
23093maybe-install-html-libiberty:
23094@if libiberty
23095maybe-install-html-libiberty: install-html-libiberty
93f9b408 23096
a90ef4bf
JM
23097install-html-libiberty: \
23098 configure-libiberty \
23099 html-libiberty
23100 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23101 r=`${PWD_COMMAND}`; export r; \
23102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23103 $(HOST_EXPORTS) \
23104 for flag in $(EXTRA_HOST_FLAGS) ; do \
23105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23106 done; \
a90ef4bf
JM
23107 echo "Doing install-html in libiberty" ; \
23108 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23111 "RANLIB=$${RANLIB}" \
23112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23113 install-html) \
23114 || exit 1
23115
a90ef4bf 23116@endif libiberty
93f9b408 23117
a90ef4bf
JM
23118.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23119maybe-installcheck-libiberty:
23120@if libiberty
23121maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23122
a90ef4bf
JM
23123installcheck-libiberty: \
23124 configure-libiberty
23125 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23126 r=`${PWD_COMMAND}`; export r; \
23127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23128 $(HOST_EXPORTS) \
23129 for flag in $(EXTRA_HOST_FLAGS) ; do \
23130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23131 done; \
a90ef4bf
JM
23132 echo "Doing installcheck in libiberty" ; \
23133 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23136 "RANLIB=$${RANLIB}" \
23137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23138 installcheck) \
23139 || exit 1
23140
a90ef4bf 23141@endif libiberty
93f9b408 23142
a90ef4bf
JM
23143.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23144maybe-mostlyclean-libiberty:
23145@if libiberty
23146maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23147
a90ef4bf
JM
23148mostlyclean-libiberty:
23149 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23150 r=`${PWD_COMMAND}`; export r; \
23151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23152 $(HOST_EXPORTS) \
23153 for flag in $(EXTRA_HOST_FLAGS) ; do \
23154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23155 done; \
a90ef4bf
JM
23156 echo "Doing mostlyclean in libiberty" ; \
23157 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23160 "RANLIB=$${RANLIB}" \
23161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23162 mostlyclean) \
23163 || exit 1
23164
a90ef4bf 23165@endif libiberty
93f9b408 23166
a90ef4bf
JM
23167.PHONY: maybe-clean-libiberty clean-libiberty
23168maybe-clean-libiberty:
23169@if libiberty
23170maybe-clean-libiberty: clean-libiberty
93f9b408 23171
a90ef4bf
JM
23172clean-libiberty:
23173 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23174 r=`${PWD_COMMAND}`; export r; \
23175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23176 $(HOST_EXPORTS) \
23177 for flag in $(EXTRA_HOST_FLAGS) ; do \
23178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23179 done; \
a90ef4bf
JM
23180 echo "Doing clean in libiberty" ; \
23181 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23184 "RANLIB=$${RANLIB}" \
23185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23186 clean) \
23187 || exit 1
23188
a90ef4bf 23189@endif libiberty
93f9b408 23190
a90ef4bf
JM
23191.PHONY: maybe-distclean-libiberty distclean-libiberty
23192maybe-distclean-libiberty:
23193@if libiberty
23194maybe-distclean-libiberty: distclean-libiberty
93f9b408 23195
a90ef4bf
JM
23196distclean-libiberty:
23197 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23198 r=`${PWD_COMMAND}`; export r; \
23199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23200 $(HOST_EXPORTS) \
23201 for flag in $(EXTRA_HOST_FLAGS) ; do \
23202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23203 done; \
a90ef4bf
JM
23204 echo "Doing distclean in libiberty" ; \
23205 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23208 "RANLIB=$${RANLIB}" \
23209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23210 distclean) \
23211 || exit 1
23212
a90ef4bf 23213@endif libiberty
93f9b408 23214
a90ef4bf
JM
23215.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23216maybe-maintainer-clean-libiberty:
23217@if libiberty
23218maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23219
a90ef4bf
JM
23220maintainer-clean-libiberty:
23221 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23222 r=`${PWD_COMMAND}`; export r; \
23223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23224 $(HOST_EXPORTS) \
23225 for flag in $(EXTRA_HOST_FLAGS) ; do \
23226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23227 done; \
a90ef4bf
JM
23228 echo "Doing maintainer-clean in libiberty" ; \
23229 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23232 "RANLIB=$${RANLIB}" \
23233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23234 maintainer-clean) \
23235 || exit 1
23236
a90ef4bf 23237@endif libiberty
93f9b408
ILT
23238
23239
23240
1b6c0831
L
23241.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23242maybe-configure-libiberty-linker-plugin:
23243@if gcc-bootstrap
23244configure-libiberty-linker-plugin: stage_current
23245@endif gcc-bootstrap
23246@if libiberty-linker-plugin
23247maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23248configure-libiberty-linker-plugin:
23249 @r=`${PWD_COMMAND}`; export r; \
23250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23251 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23253 $(HOST_EXPORTS) \
23254 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23255 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23256 case $(srcdir) in \
23257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23258 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23260 esac; \
23261 module_srcdir=libiberty; \
23262 $(SHELL) \
23263 $$s/$$module_srcdir/configure \
23264 --srcdir=$${topdir}/$$module_srcdir \
23265 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23266 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23267 || exit 1
23268@endif libiberty-linker-plugin
23269
23270
23271
23272.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23273maybe-configure-stage1-libiberty-linker-plugin:
23274@if libiberty-linker-plugin-bootstrap
23275maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23276configure-stage1-libiberty-linker-plugin:
23277 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23278 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23279 @r=`${PWD_COMMAND}`; export r; \
23280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23281 TFLAGS="$(STAGE1_TFLAGS)"; \
23282 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23283 $(HOST_EXPORTS) \
23284 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23285 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23286 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
23287 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23288 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23289 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23290 case $(srcdir) in \
23291 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23292 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23293 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23294 esac; \
23295 module_srcdir=libiberty; \
23296 $(SHELL) $$s/$$module_srcdir/configure \
23297 --srcdir=$${topdir}/$$module_srcdir \
23298 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23299 --target=${target_alias} \
23300 \
23301 $(STAGE1_CONFIGURE_FLAGS) \
23302 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23303@endif libiberty-linker-plugin-bootstrap
23304
23305.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23306maybe-configure-stage2-libiberty-linker-plugin:
23307@if libiberty-linker-plugin-bootstrap
23308maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23309configure-stage2-libiberty-linker-plugin:
23310 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23311 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23312 @r=`${PWD_COMMAND}`; export r; \
23313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23314 TFLAGS="$(STAGE2_TFLAGS)"; \
23315 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23316 $(HOST_EXPORTS) \
23317 $(POSTSTAGE1_HOST_EXPORTS) \
23318 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23319 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23320 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
23321 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23322 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23323 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23324 case $(srcdir) in \
23325 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23326 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23327 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23328 esac; \
23329 module_srcdir=libiberty; \
23330 $(SHELL) $$s/$$module_srcdir/configure \
23331 --srcdir=$${topdir}/$$module_srcdir \
23332 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23333 --target=${target_alias} \
23334 --with-build-libsubdir=$(HOST_SUBDIR) \
23335 $(STAGE2_CONFIGURE_FLAGS) \
23336 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23337@endif libiberty-linker-plugin-bootstrap
23338
23339.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23340maybe-configure-stage3-libiberty-linker-plugin:
23341@if libiberty-linker-plugin-bootstrap
23342maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23343configure-stage3-libiberty-linker-plugin:
23344 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23345 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23346 @r=`${PWD_COMMAND}`; export r; \
23347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23348 TFLAGS="$(STAGE3_TFLAGS)"; \
23349 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23350 $(HOST_EXPORTS) \
23351 $(POSTSTAGE1_HOST_EXPORTS) \
23352 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23353 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23354 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
23355 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23356 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23357 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23358 case $(srcdir) in \
23359 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23360 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23361 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23362 esac; \
23363 module_srcdir=libiberty; \
23364 $(SHELL) $$s/$$module_srcdir/configure \
23365 --srcdir=$${topdir}/$$module_srcdir \
23366 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23367 --target=${target_alias} \
23368 --with-build-libsubdir=$(HOST_SUBDIR) \
23369 $(STAGE3_CONFIGURE_FLAGS) \
23370 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23371@endif libiberty-linker-plugin-bootstrap
23372
23373.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23374maybe-configure-stage4-libiberty-linker-plugin:
23375@if libiberty-linker-plugin-bootstrap
23376maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23377configure-stage4-libiberty-linker-plugin:
23378 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23379 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23380 @r=`${PWD_COMMAND}`; export r; \
23381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23382 TFLAGS="$(STAGE4_TFLAGS)"; \
23383 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23384 $(HOST_EXPORTS) \
23385 $(POSTSTAGE1_HOST_EXPORTS) \
23386 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23387 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23388 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
23389 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23390 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23391 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23392 case $(srcdir) in \
23393 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23394 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23395 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23396 esac; \
23397 module_srcdir=libiberty; \
23398 $(SHELL) $$s/$$module_srcdir/configure \
23399 --srcdir=$${topdir}/$$module_srcdir \
23400 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23401 --target=${target_alias} \
23402 --with-build-libsubdir=$(HOST_SUBDIR) \
23403 $(STAGE4_CONFIGURE_FLAGS) \
23404 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23405@endif libiberty-linker-plugin-bootstrap
23406
23407.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23408maybe-configure-stageprofile-libiberty-linker-plugin:
23409@if libiberty-linker-plugin-bootstrap
23410maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23411configure-stageprofile-libiberty-linker-plugin:
23412 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23413 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23414 @r=`${PWD_COMMAND}`; export r; \
23415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23416 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23417 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23418 $(HOST_EXPORTS) \
23419 $(POSTSTAGE1_HOST_EXPORTS) \
23420 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23421 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23422 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
23423 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23424 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23425 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23426 case $(srcdir) in \
23427 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23428 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23429 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23430 esac; \
23431 module_srcdir=libiberty; \
23432 $(SHELL) $$s/$$module_srcdir/configure \
23433 --srcdir=$${topdir}/$$module_srcdir \
23434 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23435 --target=${target_alias} \
23436 --with-build-libsubdir=$(HOST_SUBDIR) \
23437 $(STAGEprofile_CONFIGURE_FLAGS) \
23438 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23439@endif libiberty-linker-plugin-bootstrap
23440
23441.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23442maybe-configure-stagefeedback-libiberty-linker-plugin:
23443@if libiberty-linker-plugin-bootstrap
23444maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23445configure-stagefeedback-libiberty-linker-plugin:
23446 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23447 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23448 @r=`${PWD_COMMAND}`; export r; \
23449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23450 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23451 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23452 $(HOST_EXPORTS) \
23453 $(POSTSTAGE1_HOST_EXPORTS) \
23454 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23455 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23456 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
23457 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23458 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23459 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23460 case $(srcdir) in \
23461 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23462 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23463 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23464 esac; \
23465 module_srcdir=libiberty; \
23466 $(SHELL) $$s/$$module_srcdir/configure \
23467 --srcdir=$${topdir}/$$module_srcdir \
23468 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23469 --target=${target_alias} \
23470 --with-build-libsubdir=$(HOST_SUBDIR) \
23471 $(STAGEfeedback_CONFIGURE_FLAGS) \
23472 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23473@endif libiberty-linker-plugin-bootstrap
23474
23475
23476
23477
23478
23479.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23480maybe-all-libiberty-linker-plugin:
23481@if gcc-bootstrap
23482all-libiberty-linker-plugin: stage_current
23483@endif gcc-bootstrap
23484@if libiberty-linker-plugin
23485TARGET-libiberty-linker-plugin=all
23486maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23487all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23488 @r=`${PWD_COMMAND}`; export r; \
23489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23490 $(HOST_EXPORTS) \
23491 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23492 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23493 $(TARGET-libiberty-linker-plugin))
23494@endif libiberty-linker-plugin
23495
23496
23497
23498.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23499.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23500maybe-all-stage1-libiberty-linker-plugin:
23501maybe-clean-stage1-libiberty-linker-plugin:
23502@if libiberty-linker-plugin-bootstrap
23503maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23504all-stage1: all-stage1-libiberty-linker-plugin
23505TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23506all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23507 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23508 @r=`${PWD_COMMAND}`; export r; \
23509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23510 TFLAGS="$(STAGE1_TFLAGS)"; \
23511 $(HOST_EXPORTS) \
23512 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23513 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23514 CFLAGS="$(STAGE1_CFLAGS)" \
23515 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23516 LIBCFLAGS="$(LIBCFLAGS)" \
23517 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23518 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23519 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23520 $(EXTRA_HOST_FLAGS) \
23521 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23522 TFLAGS="$(STAGE1_TFLAGS)" \
23523 $(TARGET-stage1-libiberty-linker-plugin)
23524
23525maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23526clean-stage1: clean-stage1-libiberty-linker-plugin
23527clean-stage1-libiberty-linker-plugin:
23528 @if [ $(current_stage) = stage1 ]; then \
23529 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23530 else \
23531 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23532 $(MAKE) stage1-start; \
23533 fi; \
23534 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23535 $(MAKE) $(EXTRA_HOST_FLAGS) \
23536 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23537@endif libiberty-linker-plugin-bootstrap
23538
23539
23540.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23541.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23542maybe-all-stage2-libiberty-linker-plugin:
23543maybe-clean-stage2-libiberty-linker-plugin:
23544@if libiberty-linker-plugin-bootstrap
23545maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23546all-stage2: all-stage2-libiberty-linker-plugin
23547TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23548all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23549 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23550 @r=`${PWD_COMMAND}`; export r; \
23551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23552 TFLAGS="$(STAGE2_TFLAGS)"; \
23553 $(HOST_EXPORTS) \
23554 $(POSTSTAGE1_HOST_EXPORTS) \
23555 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23556 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23557 CFLAGS="$(STAGE2_CFLAGS)" \
23558 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23559 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23560 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23561 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23562 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23563 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23564 TFLAGS="$(STAGE2_TFLAGS)" \
23565 $(TARGET-stage2-libiberty-linker-plugin)
23566
23567maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23568clean-stage2: clean-stage2-libiberty-linker-plugin
23569clean-stage2-libiberty-linker-plugin:
23570 @if [ $(current_stage) = stage2 ]; then \
23571 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23572 else \
23573 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23574 $(MAKE) stage2-start; \
23575 fi; \
23576 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23577 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23578@endif libiberty-linker-plugin-bootstrap
23579
23580
23581.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23582.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23583maybe-all-stage3-libiberty-linker-plugin:
23584maybe-clean-stage3-libiberty-linker-plugin:
23585@if libiberty-linker-plugin-bootstrap
23586maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23587all-stage3: all-stage3-libiberty-linker-plugin
23588TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23589all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23590 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23591 @r=`${PWD_COMMAND}`; export r; \
23592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23593 TFLAGS="$(STAGE3_TFLAGS)"; \
23594 $(HOST_EXPORTS) \
23595 $(POSTSTAGE1_HOST_EXPORTS) \
23596 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23597 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23598 CFLAGS="$(STAGE3_CFLAGS)" \
23599 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23600 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23601 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23602 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23603 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23604 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23605 TFLAGS="$(STAGE3_TFLAGS)" \
23606 $(TARGET-stage3-libiberty-linker-plugin)
23607
23608maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23609clean-stage3: clean-stage3-libiberty-linker-plugin
23610clean-stage3-libiberty-linker-plugin:
23611 @if [ $(current_stage) = stage3 ]; then \
23612 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23613 else \
23614 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23615 $(MAKE) stage3-start; \
23616 fi; \
23617 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23618 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23619@endif libiberty-linker-plugin-bootstrap
23620
23621
23622.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23623.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23624maybe-all-stage4-libiberty-linker-plugin:
23625maybe-clean-stage4-libiberty-linker-plugin:
23626@if libiberty-linker-plugin-bootstrap
23627maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23628all-stage4: all-stage4-libiberty-linker-plugin
23629TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23630all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23631 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23632 @r=`${PWD_COMMAND}`; export r; \
23633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23634 TFLAGS="$(STAGE4_TFLAGS)"; \
23635 $(HOST_EXPORTS) \
23636 $(POSTSTAGE1_HOST_EXPORTS) \
23637 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23638 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23639 CFLAGS="$(STAGE4_CFLAGS)" \
23640 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23641 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23642 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23643 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23644 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23645 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23646 TFLAGS="$(STAGE4_TFLAGS)" \
23647 $(TARGET-stage4-libiberty-linker-plugin)
23648
23649maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23650clean-stage4: clean-stage4-libiberty-linker-plugin
23651clean-stage4-libiberty-linker-plugin:
23652 @if [ $(current_stage) = stage4 ]; then \
23653 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23654 else \
23655 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23656 $(MAKE) stage4-start; \
23657 fi; \
23658 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23659 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23660@endif libiberty-linker-plugin-bootstrap
23661
23662
23663.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23664.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23665maybe-all-stageprofile-libiberty-linker-plugin:
23666maybe-clean-stageprofile-libiberty-linker-plugin:
23667@if libiberty-linker-plugin-bootstrap
23668maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23669all-stageprofile: all-stageprofile-libiberty-linker-plugin
23670TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23671all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23672 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23673 @r=`${PWD_COMMAND}`; export r; \
23674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23675 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23676 $(HOST_EXPORTS) \
23677 $(POSTSTAGE1_HOST_EXPORTS) \
23678 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23679 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23680 CFLAGS="$(STAGEprofile_CFLAGS)" \
23681 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23682 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23683 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23684 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23685 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23686 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23687 TFLAGS="$(STAGEprofile_TFLAGS)" \
23688 $(TARGET-stageprofile-libiberty-linker-plugin)
23689
23690maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23691clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23692clean-stageprofile-libiberty-linker-plugin:
23693 @if [ $(current_stage) = stageprofile ]; then \
23694 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23695 else \
23696 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23697 $(MAKE) stageprofile-start; \
23698 fi; \
23699 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23700 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23701@endif libiberty-linker-plugin-bootstrap
23702
23703
23704.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23705.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23706maybe-all-stagefeedback-libiberty-linker-plugin:
23707maybe-clean-stagefeedback-libiberty-linker-plugin:
23708@if libiberty-linker-plugin-bootstrap
23709maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23710all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23711TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23712all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23713 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23714 @r=`${PWD_COMMAND}`; export r; \
23715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23716 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23717 $(HOST_EXPORTS) \
23718 $(POSTSTAGE1_HOST_EXPORTS) \
23719 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23720 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23721 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23722 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23723 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23724 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23725 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23726 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23727 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23728 TFLAGS="$(STAGEfeedback_TFLAGS)" \
23729 $(TARGET-stagefeedback-libiberty-linker-plugin)
23730
23731maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23732clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23733clean-stagefeedback-libiberty-linker-plugin:
23734 @if [ $(current_stage) = stagefeedback ]; then \
23735 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23736 else \
23737 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23738 $(MAKE) stagefeedback-start; \
23739 fi; \
23740 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23741 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23742@endif libiberty-linker-plugin-bootstrap
23743
23744
23745
23746
23747
23748.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23749maybe-check-libiberty-linker-plugin:
23750@if libiberty-linker-plugin
23751maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23752
23753check-libiberty-linker-plugin:
23754 @: $(MAKE); $(unstage)
23755 @r=`${PWD_COMMAND}`; export r; \
23756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23757 $(HOST_EXPORTS) \
23758 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23759 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ check)
23760
23761@endif libiberty-linker-plugin
23762
23763.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23764maybe-install-libiberty-linker-plugin:
23765@if libiberty-linker-plugin
23766maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23767
23768install-libiberty-linker-plugin: installdirs
23769 @: $(MAKE); $(unstage)
23770 @r=`${PWD_COMMAND}`; export r; \
23771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23772 $(HOST_EXPORTS) \
23773 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23774 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23775
23776@endif libiberty-linker-plugin
23777
23778.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23779maybe-install-strip-libiberty-linker-plugin:
23780@if libiberty-linker-plugin
23781maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23782
23783install-strip-libiberty-linker-plugin: installdirs
23784 @: $(MAKE); $(unstage)
23785 @r=`${PWD_COMMAND}`; export r; \
23786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23787 $(HOST_EXPORTS) \
23788 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23789 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23790
23791@endif libiberty-linker-plugin
23792
23793# Other targets (info, dvi, pdf, etc.)
23794
23795.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23796maybe-info-libiberty-linker-plugin:
23797@if libiberty-linker-plugin
23798maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23799
23800info-libiberty-linker-plugin: \
23801 configure-libiberty-linker-plugin
23802 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23803 r=`${PWD_COMMAND}`; export r; \
23804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23805 $(HOST_EXPORTS) \
23806 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23808 done; \
23809 echo "Doing info in libiberty-linker-plugin" ; \
23810 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23813 "RANLIB=$${RANLIB}" \
23814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23815 info) \
23816 || exit 1
23817
23818@endif libiberty-linker-plugin
23819
23820.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23821maybe-dvi-libiberty-linker-plugin:
23822@if libiberty-linker-plugin
23823maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23824
23825dvi-libiberty-linker-plugin: \
23826 configure-libiberty-linker-plugin
23827 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23828 r=`${PWD_COMMAND}`; export r; \
23829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23830 $(HOST_EXPORTS) \
23831 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23833 done; \
23834 echo "Doing dvi in libiberty-linker-plugin" ; \
23835 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23838 "RANLIB=$${RANLIB}" \
23839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23840 dvi) \
23841 || exit 1
23842
23843@endif libiberty-linker-plugin
23844
23845.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23846maybe-pdf-libiberty-linker-plugin:
23847@if libiberty-linker-plugin
23848maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23849
23850pdf-libiberty-linker-plugin: \
23851 configure-libiberty-linker-plugin
23852 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23853 r=`${PWD_COMMAND}`; export r; \
23854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23855 $(HOST_EXPORTS) \
23856 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23858 done; \
23859 echo "Doing pdf in libiberty-linker-plugin" ; \
23860 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23863 "RANLIB=$${RANLIB}" \
23864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23865 pdf) \
23866 || exit 1
23867
23868@endif libiberty-linker-plugin
23869
23870.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
23871maybe-html-libiberty-linker-plugin:
23872@if libiberty-linker-plugin
23873maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
23874
23875html-libiberty-linker-plugin: \
23876 configure-libiberty-linker-plugin
23877 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23878 r=`${PWD_COMMAND}`; export r; \
23879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23880 $(HOST_EXPORTS) \
23881 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23883 done; \
23884 echo "Doing html in libiberty-linker-plugin" ; \
23885 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23888 "RANLIB=$${RANLIB}" \
23889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23890 html) \
23891 || exit 1
23892
23893@endif libiberty-linker-plugin
23894
23895.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
23896maybe-TAGS-libiberty-linker-plugin:
23897@if libiberty-linker-plugin
23898maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
23899
23900TAGS-libiberty-linker-plugin: \
23901 configure-libiberty-linker-plugin
23902 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23903 r=`${PWD_COMMAND}`; export r; \
23904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23905 $(HOST_EXPORTS) \
23906 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23908 done; \
23909 echo "Doing TAGS in libiberty-linker-plugin" ; \
23910 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23913 "RANLIB=$${RANLIB}" \
23914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23915 TAGS) \
23916 || exit 1
23917
23918@endif libiberty-linker-plugin
23919
23920.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
23921maybe-install-info-libiberty-linker-plugin:
23922@if libiberty-linker-plugin
23923maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
23924
23925install-info-libiberty-linker-plugin: \
23926 configure-libiberty-linker-plugin \
23927 info-libiberty-linker-plugin
23928 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23929 r=`${PWD_COMMAND}`; export r; \
23930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23931 $(HOST_EXPORTS) \
23932 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23934 done; \
23935 echo "Doing install-info in libiberty-linker-plugin" ; \
23936 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23939 "RANLIB=$${RANLIB}" \
23940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23941 install-info) \
23942 || exit 1
23943
23944@endif libiberty-linker-plugin
23945
23946.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
23947maybe-install-pdf-libiberty-linker-plugin:
23948@if libiberty-linker-plugin
23949maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
23950
23951install-pdf-libiberty-linker-plugin: \
23952 configure-libiberty-linker-plugin \
23953 pdf-libiberty-linker-plugin
23954 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23955 r=`${PWD_COMMAND}`; export r; \
23956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23957 $(HOST_EXPORTS) \
23958 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23960 done; \
23961 echo "Doing install-pdf in libiberty-linker-plugin" ; \
23962 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23965 "RANLIB=$${RANLIB}" \
23966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23967 install-pdf) \
23968 || exit 1
23969
23970@endif libiberty-linker-plugin
23971
23972.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
23973maybe-install-html-libiberty-linker-plugin:
23974@if libiberty-linker-plugin
23975maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
23976
23977install-html-libiberty-linker-plugin: \
23978 configure-libiberty-linker-plugin \
23979 html-libiberty-linker-plugin
23980 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23981 r=`${PWD_COMMAND}`; export r; \
23982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23983 $(HOST_EXPORTS) \
23984 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23986 done; \
23987 echo "Doing install-html in libiberty-linker-plugin" ; \
23988 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23991 "RANLIB=$${RANLIB}" \
23992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23993 install-html) \
23994 || exit 1
23995
23996@endif libiberty-linker-plugin
23997
23998.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
23999maybe-installcheck-libiberty-linker-plugin:
24000@if libiberty-linker-plugin
24001maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24002
24003installcheck-libiberty-linker-plugin: \
24004 configure-libiberty-linker-plugin
24005 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24006 r=`${PWD_COMMAND}`; export r; \
24007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24008 $(HOST_EXPORTS) \
24009 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24011 done; \
24012 echo "Doing installcheck in libiberty-linker-plugin" ; \
24013 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24016 "RANLIB=$${RANLIB}" \
24017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24018 installcheck) \
24019 || exit 1
24020
24021@endif libiberty-linker-plugin
24022
24023.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24024maybe-mostlyclean-libiberty-linker-plugin:
24025@if libiberty-linker-plugin
24026maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24027
24028mostlyclean-libiberty-linker-plugin:
24029 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24030 r=`${PWD_COMMAND}`; export r; \
24031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24032 $(HOST_EXPORTS) \
24033 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24035 done; \
24036 echo "Doing mostlyclean in libiberty-linker-plugin" ; \
24037 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24040 "RANLIB=$${RANLIB}" \
24041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24042 mostlyclean) \
24043 || exit 1
24044
24045@endif libiberty-linker-plugin
24046
24047.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24048maybe-clean-libiberty-linker-plugin:
24049@if libiberty-linker-plugin
24050maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24051
24052clean-libiberty-linker-plugin:
24053 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24054 r=`${PWD_COMMAND}`; export r; \
24055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24056 $(HOST_EXPORTS) \
24057 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24059 done; \
24060 echo "Doing clean in libiberty-linker-plugin" ; \
24061 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24064 "RANLIB=$${RANLIB}" \
24065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24066 clean) \
24067 || exit 1
24068
24069@endif libiberty-linker-plugin
24070
24071.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24072maybe-distclean-libiberty-linker-plugin:
24073@if libiberty-linker-plugin
24074maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24075
24076distclean-libiberty-linker-plugin:
24077 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24078 r=`${PWD_COMMAND}`; export r; \
24079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24080 $(HOST_EXPORTS) \
24081 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24083 done; \
24084 echo "Doing distclean in libiberty-linker-plugin" ; \
24085 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24088 "RANLIB=$${RANLIB}" \
24089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24090 distclean) \
24091 || exit 1
24092
24093@endif libiberty-linker-plugin
24094
24095.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24096maybe-maintainer-clean-libiberty-linker-plugin:
24097@if libiberty-linker-plugin
24098maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24099
24100maintainer-clean-libiberty-linker-plugin:
24101 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24102 r=`${PWD_COMMAND}`; export r; \
24103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24104 $(HOST_EXPORTS) \
24105 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24107 done; \
24108 echo "Doing maintainer-clean in libiberty-linker-plugin" ; \
24109 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24112 "RANLIB=$${RANLIB}" \
24113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24114 maintainer-clean) \
24115 || exit 1
24116
24117@endif libiberty-linker-plugin
24118
24119
24120
a90ef4bf
JM
24121.PHONY: configure-libiconv maybe-configure-libiconv
24122maybe-configure-libiconv:
4f0ef2d8 24123@if gcc-bootstrap
a90ef4bf 24124configure-libiconv: stage_current
4f0ef2d8 24125@endif gcc-bootstrap
a90ef4bf
JM
24126@if libiconv
24127maybe-configure-libiconv: configure-libiconv
24128configure-libiconv:
0aed8855 24129 @: $(MAKE); $(unstage)
c52c6897 24130 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24132 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv ; \
1f53ca9a 24134 $(HOST_EXPORTS) \
a90ef4bf
JM
24135 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24136 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24137 case $(srcdir) in \
b00612cc 24138 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24139 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24140 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24141 esac; \
1b6c0831
L
24142 module_srcdir=libiconv; \
24143 $(SHELL) \
24144 $$s/$$module_srcdir/configure \
24145 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24146 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24147 --target=${target_alias} --disable-shared \
2a4cbe27 24148 || exit 1
a90ef4bf 24149@endif libiconv
2a4cbe27 24150
a7254363
PB
24151
24152
d545f33b
PB
24153
24154
a90ef4bf
JM
24155.PHONY: all-libiconv maybe-all-libiconv
24156maybe-all-libiconv:
4f0ef2d8 24157@if gcc-bootstrap
a90ef4bf 24158all-libiconv: stage_current
4f0ef2d8 24159@endif gcc-bootstrap
a90ef4bf
JM
24160@if libiconv
24161TARGET-libiconv=all
24162maybe-all-libiconv: all-libiconv
24163all-libiconv: configure-libiconv
0aed8855 24164 @: $(MAKE); $(unstage)
4fa63067
NN
24165 @r=`${PWD_COMMAND}`; export r; \
24166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24167 $(HOST_EXPORTS) \
a90ef4bf 24168 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24169 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24170 $(TARGET-libiconv))
24171@endif libiconv
2a4cbe27 24172
a7254363 24173
d545f33b
PB
24174
24175
a90ef4bf
JM
24176.PHONY: check-libiconv maybe-check-libiconv
24177maybe-check-libiconv:
24178@if libiconv
24179maybe-check-libiconv: check-libiconv
2a4cbe27 24180
a90ef4bf 24181check-libiconv:
0aed8855 24182 @: $(MAKE); $(unstage)
4fa63067 24183 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24185 $(HOST_EXPORTS) \
a90ef4bf 24186 (cd $(HOST_SUBDIR)/libiconv && \
b00612cc 24187 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24188
a90ef4bf 24189@endif libiconv
4fa63067 24190
a90ef4bf
JM
24191.PHONY: install-libiconv maybe-install-libiconv
24192maybe-install-libiconv:
24193@if libiconv
24194maybe-install-libiconv: install-libiconv
2a4cbe27 24195
a90ef4bf 24196install-libiconv:
2a4cbe27 24197
a90ef4bf 24198@endif libiconv
9b980aa1 24199
a90ef4bf
JM
24200.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24201maybe-install-strip-libiconv:
24202@if libiconv
24203maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24204
a90ef4bf
JM
24205install-strip-libiconv:
24206
24207@endif libiconv
9b980aa1 24208
56a8fe78 24209# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24210
a90ef4bf
JM
24211.PHONY: maybe-info-libiconv info-libiconv
24212maybe-info-libiconv:
24213@if libiconv
24214maybe-info-libiconv: info-libiconv
4fa63067 24215
a90ef4bf
JM
24216info-libiconv: \
24217 configure-libiconv
0aed8855 24218 @: $(MAKE); $(unstage)
a90ef4bf 24219 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24220 r=`${PWD_COMMAND}`; export r; \
24221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24222 $(HOST_EXPORTS) \
b813574b 24223 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24225 done; \
a90ef4bf
JM
24226 echo "Doing info in libiconv" ; \
24227 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24230 "RANLIB=$${RANLIB}" \
0c24b341 24231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24232 info) \
2a4cbe27
NN
24233 || exit 1
24234
a90ef4bf 24235@endif libiconv
2a4cbe27 24236
a90ef4bf
JM
24237.PHONY: maybe-dvi-libiconv dvi-libiconv
24238maybe-dvi-libiconv:
24239@if libiconv
24240maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24241
a90ef4bf
JM
24242dvi-libiconv: \
24243 configure-libiconv
0aed8855 24244 @: $(MAKE); $(unstage)
a90ef4bf 24245 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24246 r=`${PWD_COMMAND}`; export r; \
24247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24248 $(HOST_EXPORTS) \
b813574b 24249 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24251 done; \
a90ef4bf
JM
24252 echo "Doing dvi in libiconv" ; \
24253 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24256 "RANLIB=$${RANLIB}" \
0c24b341 24257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24258 dvi) \
2a4cbe27
NN
24259 || exit 1
24260
a90ef4bf 24261@endif libiconv
2a4cbe27 24262
a90ef4bf
JM
24263.PHONY: maybe-pdf-libiconv pdf-libiconv
24264maybe-pdf-libiconv:
24265@if libiconv
24266maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24267
a90ef4bf
JM
24268pdf-libiconv: \
24269 configure-libiconv
56a8fe78 24270 @: $(MAKE); $(unstage)
a90ef4bf 24271 @[ -f ./libiconv/Makefile ] || exit 0; \
56a8fe78
DD
24272 r=`${PWD_COMMAND}`; export r; \
24273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24274 $(HOST_EXPORTS) \
24275 for flag in $(EXTRA_HOST_FLAGS) ; do \
24276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24277 done; \
a90ef4bf
JM
24278 echo "Doing pdf in libiconv" ; \
24279 (cd $(HOST_SUBDIR)/libiconv && \
56a8fe78
DD
24280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24282 "RANLIB=$${RANLIB}" \
0c24b341 24283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
24284 pdf) \
24285 || exit 1
24286
a90ef4bf 24287@endif libiconv
56a8fe78 24288
a90ef4bf
JM
24289.PHONY: maybe-html-libiconv html-libiconv
24290maybe-html-libiconv:
24291@if libiconv
24292maybe-html-libiconv: html-libiconv
6d389afc 24293
a90ef4bf
JM
24294html-libiconv: \
24295 configure-libiconv
0aed8855 24296 @: $(MAKE); $(unstage)
a90ef4bf 24297 @[ -f ./libiconv/Makefile ] || exit 0; \
6d389afc
MS
24298 r=`${PWD_COMMAND}`; export r; \
24299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
24300 $(HOST_EXPORTS) \
24301 for flag in $(EXTRA_HOST_FLAGS) ; do \
24302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24303 done; \
a90ef4bf
JM
24304 echo "Doing html in libiconv" ; \
24305 (cd $(HOST_SUBDIR)/libiconv && \
6d389afc
MS
24306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24308 "RANLIB=$${RANLIB}" \
0c24b341 24309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
24310 html) \
24311 || exit 1
24312
a90ef4bf 24313@endif libiconv
6d389afc 24314
a90ef4bf
JM
24315.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24316maybe-TAGS-libiconv:
24317@if libiconv
24318maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24319
a90ef4bf
JM
24320TAGS-libiconv: \
24321 configure-libiconv
0aed8855 24322 @: $(MAKE); $(unstage)
a90ef4bf 24323 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24324 r=`${PWD_COMMAND}`; export r; \
24325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24326 $(HOST_EXPORTS) \
b813574b 24327 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24329 done; \
a90ef4bf
JM
24330 echo "Doing TAGS in libiconv" ; \
24331 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24334 "RANLIB=$${RANLIB}" \
0c24b341 24335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24336 TAGS) \
2a4cbe27
NN
24337 || exit 1
24338
a90ef4bf 24339@endif libiconv
2a4cbe27 24340
a90ef4bf
JM
24341.PHONY: maybe-install-info-libiconv install-info-libiconv
24342maybe-install-info-libiconv:
24343@if libiconv
24344maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24345
a90ef4bf
JM
24346# libiconv doesn't support install-info.
24347install-info-libiconv:
2a4cbe27 24348
a90ef4bf 24349@endif libiconv
2a4cbe27 24350
a90ef4bf
JM
24351.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24352maybe-install-pdf-libiconv:
24353@if libiconv
24354maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24355
a90ef4bf
JM
24356# libiconv doesn't support install-pdf.
24357install-pdf-libiconv:
a3ca38d2 24358
a90ef4bf 24359@endif libiconv
a3ca38d2 24360
a90ef4bf
JM
24361.PHONY: maybe-install-html-libiconv install-html-libiconv
24362maybe-install-html-libiconv:
24363@if libiconv
24364maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24365
a90ef4bf
JM
24366# libiconv doesn't support install-html.
24367install-html-libiconv:
108a6f8e 24368
a90ef4bf 24369@endif libiconv
108a6f8e 24370
a90ef4bf
JM
24371.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24372maybe-installcheck-libiconv:
24373@if libiconv
24374maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24375
a90ef4bf
JM
24376installcheck-libiconv: \
24377 configure-libiconv
0aed8855 24378 @: $(MAKE); $(unstage)
a90ef4bf 24379 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24380 r=`${PWD_COMMAND}`; export r; \
24381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24382 $(HOST_EXPORTS) \
b813574b 24383 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24385 done; \
a90ef4bf
JM
24386 echo "Doing installcheck in libiconv" ; \
24387 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24390 "RANLIB=$${RANLIB}" \
0c24b341 24391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24392 installcheck) \
2a4cbe27
NN
24393 || exit 1
24394
a90ef4bf 24395@endif libiconv
2a4cbe27 24396
a90ef4bf
JM
24397.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24398maybe-mostlyclean-libiconv:
24399@if libiconv
24400maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24401
a90ef4bf 24402mostlyclean-libiconv:
0aed8855 24403 @: $(MAKE); $(unstage)
a90ef4bf 24404 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24405 r=`${PWD_COMMAND}`; export r; \
24406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24407 $(HOST_EXPORTS) \
b813574b 24408 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24410 done; \
a90ef4bf
JM
24411 echo "Doing mostlyclean in libiconv" ; \
24412 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24415 "RANLIB=$${RANLIB}" \
0c24b341 24416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24417 mostlyclean) \
2a4cbe27
NN
24418 || exit 1
24419
a90ef4bf 24420@endif libiconv
2a4cbe27 24421
a90ef4bf
JM
24422.PHONY: maybe-clean-libiconv clean-libiconv
24423maybe-clean-libiconv:
24424@if libiconv
24425maybe-clean-libiconv: clean-libiconv
2a4cbe27 24426
a90ef4bf 24427clean-libiconv:
0aed8855 24428 @: $(MAKE); $(unstage)
a90ef4bf 24429 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24430 r=`${PWD_COMMAND}`; export r; \
24431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24432 $(HOST_EXPORTS) \
b813574b 24433 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24435 done; \
a90ef4bf
JM
24436 echo "Doing clean in libiconv" ; \
24437 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24440 "RANLIB=$${RANLIB}" \
0c24b341 24441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24442 clean) \
2a4cbe27
NN
24443 || exit 1
24444
a90ef4bf 24445@endif libiconv
2a4cbe27 24446
a90ef4bf
JM
24447.PHONY: maybe-distclean-libiconv distclean-libiconv
24448maybe-distclean-libiconv:
24449@if libiconv
24450maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 24451
a90ef4bf 24452distclean-libiconv:
0aed8855 24453 @: $(MAKE); $(unstage)
a90ef4bf 24454 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24455 r=`${PWD_COMMAND}`; export r; \
24456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24457 $(HOST_EXPORTS) \
b813574b 24458 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24460 done; \
a90ef4bf
JM
24461 echo "Doing distclean in libiconv" ; \
24462 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24465 "RANLIB=$${RANLIB}" \
0c24b341 24466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24467 distclean) \
2a4cbe27
NN
24468 || exit 1
24469
a90ef4bf 24470@endif libiconv
2a4cbe27 24471
a90ef4bf
JM
24472.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
24473maybe-maintainer-clean-libiconv:
24474@if libiconv
24475maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 24476
a90ef4bf 24477maintainer-clean-libiconv:
0aed8855 24478 @: $(MAKE); $(unstage)
a90ef4bf 24479 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24480 r=`${PWD_COMMAND}`; export r; \
24481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24482 $(HOST_EXPORTS) \
b813574b 24483 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24485 done; \
a90ef4bf
JM
24486 echo "Doing maintainer-clean in libiconv" ; \
24487 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24490 "RANLIB=$${RANLIB}" \
0c24b341 24491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24492 maintainer-clean) \
2a4cbe27
NN
24493 || exit 1
24494
a90ef4bf 24495@endif libiconv
2a4cbe27 24496
2a4cbe27 24497
a7254363 24498
a90ef4bf
JM
24499.PHONY: configure-m4 maybe-configure-m4
24500maybe-configure-m4:
4f0ef2d8 24501@if gcc-bootstrap
a90ef4bf 24502configure-m4: stage_current
4f0ef2d8 24503@endif gcc-bootstrap
a90ef4bf
JM
24504@if m4
24505maybe-configure-m4: configure-m4
24506configure-m4:
0aed8855 24507 @: $(MAKE); $(unstage)
c52c6897 24508 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24510 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
24511 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
1f53ca9a 24512 $(HOST_EXPORTS) \
a90ef4bf
JM
24513 echo Configuring in $(HOST_SUBDIR)/m4; \
24514 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 24515 case $(srcdir) in \
b00612cc 24516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24517 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 24518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24519 esac; \
1b6c0831
L
24520 module_srcdir=m4; \
24521 $(SHELL) \
24522 $$s/$$module_srcdir/configure \
24523 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24524 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24525 --target=${target_alias} \
2a4cbe27 24526 || exit 1
a90ef4bf 24527@endif m4
2a4cbe27 24528
a7254363
PB
24529
24530
d545f33b
PB
24531
24532
a90ef4bf
JM
24533.PHONY: all-m4 maybe-all-m4
24534maybe-all-m4:
4f0ef2d8 24535@if gcc-bootstrap
a90ef4bf 24536all-m4: stage_current
4f0ef2d8 24537@endif gcc-bootstrap
a90ef4bf
JM
24538@if m4
24539TARGET-m4=all
24540maybe-all-m4: all-m4
24541all-m4: configure-m4
0aed8855 24542 @: $(MAKE); $(unstage)
4fa63067
NN
24543 @r=`${PWD_COMMAND}`; export r; \
24544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24545 $(HOST_EXPORTS) \
a90ef4bf 24546 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 24547 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24548 $(TARGET-m4))
24549@endif m4
2a4cbe27 24550
a7254363 24551
d545f33b
PB
24552
24553
a90ef4bf
JM
24554.PHONY: check-m4 maybe-check-m4
24555maybe-check-m4:
24556@if m4
24557maybe-check-m4: check-m4
2a4cbe27 24558
a90ef4bf 24559check-m4:
0aed8855 24560 @: $(MAKE); $(unstage)
4fa63067 24561 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24563 $(HOST_EXPORTS) \
a90ef4bf 24564 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 24565 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24566
a90ef4bf 24567@endif m4
2a4cbe27 24568
a90ef4bf
JM
24569.PHONY: install-m4 maybe-install-m4
24570maybe-install-m4:
24571@if m4
24572maybe-install-m4: install-m4
2a4cbe27 24573
a90ef4bf 24574install-m4: installdirs
0aed8855 24575 @: $(MAKE); $(unstage)
4fa63067 24576 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24578 $(HOST_EXPORTS) \
a90ef4bf 24579 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 24580 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 24581
a90ef4bf 24582@endif m4
2a4cbe27 24583
a90ef4bf
JM
24584.PHONY: install-strip-m4 maybe-install-strip-m4
24585maybe-install-strip-m4:
24586@if m4
24587maybe-install-strip-m4: install-strip-m4
9b980aa1 24588
a90ef4bf 24589install-strip-m4: installdirs
9b980aa1
RW
24590 @: $(MAKE); $(unstage)
24591 @r=`${PWD_COMMAND}`; export r; \
24592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24593 $(HOST_EXPORTS) \
a90ef4bf 24594 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
24595 $(MAKE) $(FLAGS_TO_PASS) install-strip)
24596
a90ef4bf 24597@endif m4
9b980aa1 24598
56a8fe78 24599# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24600
a90ef4bf
JM
24601.PHONY: maybe-info-m4 info-m4
24602maybe-info-m4:
24603@if m4
24604maybe-info-m4: info-m4
4fa63067 24605
a90ef4bf
JM
24606info-m4: \
24607 configure-m4
0aed8855 24608 @: $(MAKE); $(unstage)
a90ef4bf 24609 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24610 r=`${PWD_COMMAND}`; export r; \
24611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24612 $(HOST_EXPORTS) \
b813574b 24613 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24615 done; \
a90ef4bf
JM
24616 echo "Doing info in m4" ; \
24617 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24620 "RANLIB=$${RANLIB}" \
0c24b341 24621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24622 info) \
2a4cbe27
NN
24623 || exit 1
24624
a90ef4bf 24625@endif m4
2a4cbe27 24626
a90ef4bf
JM
24627.PHONY: maybe-dvi-m4 dvi-m4
24628maybe-dvi-m4:
24629@if m4
24630maybe-dvi-m4: dvi-m4
2a4cbe27 24631
a90ef4bf
JM
24632dvi-m4: \
24633 configure-m4
0aed8855 24634 @: $(MAKE); $(unstage)
a90ef4bf 24635 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24636 r=`${PWD_COMMAND}`; export r; \
24637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24638 $(HOST_EXPORTS) \
b813574b 24639 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24641 done; \
a90ef4bf
JM
24642 echo "Doing dvi in m4" ; \
24643 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24646 "RANLIB=$${RANLIB}" \
0c24b341 24647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24648 dvi) \
2a4cbe27
NN
24649 || exit 1
24650
a90ef4bf 24651@endif m4
2a4cbe27 24652
a90ef4bf
JM
24653.PHONY: maybe-pdf-m4 pdf-m4
24654maybe-pdf-m4:
24655@if m4
24656maybe-pdf-m4: pdf-m4
56a8fe78 24657
a90ef4bf
JM
24658pdf-m4: \
24659 configure-m4
56a8fe78 24660 @: $(MAKE); $(unstage)
a90ef4bf 24661 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
24662 r=`${PWD_COMMAND}`; export r; \
24663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24664 $(HOST_EXPORTS) \
24665 for flag in $(EXTRA_HOST_FLAGS) ; do \
24666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24667 done; \
a90ef4bf
JM
24668 echo "Doing pdf in m4" ; \
24669 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
24670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24672 "RANLIB=$${RANLIB}" \
0c24b341 24673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
24674 pdf) \
24675 || exit 1
24676
a90ef4bf 24677@endif m4
56a8fe78 24678
a90ef4bf
JM
24679.PHONY: maybe-html-m4 html-m4
24680maybe-html-m4:
24681@if m4
24682maybe-html-m4: html-m4
6d389afc 24683
a90ef4bf
JM
24684html-m4: \
24685 configure-m4
0aed8855 24686 @: $(MAKE); $(unstage)
a90ef4bf 24687 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
24688 r=`${PWD_COMMAND}`; export r; \
24689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
24690 $(HOST_EXPORTS) \
24691 for flag in $(EXTRA_HOST_FLAGS) ; do \
24692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24693 done; \
a90ef4bf
JM
24694 echo "Doing html in m4" ; \
24695 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
24696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24698 "RANLIB=$${RANLIB}" \
0c24b341 24699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
24700 html) \
24701 || exit 1
24702
a90ef4bf 24703@endif m4
6d389afc 24704
a90ef4bf
JM
24705.PHONY: maybe-TAGS-m4 TAGS-m4
24706maybe-TAGS-m4:
24707@if m4
24708maybe-TAGS-m4: TAGS-m4
2a4cbe27 24709
a90ef4bf
JM
24710TAGS-m4: \
24711 configure-m4
0aed8855 24712 @: $(MAKE); $(unstage)
a90ef4bf 24713 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24714 r=`${PWD_COMMAND}`; export r; \
24715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24716 $(HOST_EXPORTS) \
b813574b 24717 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24719 done; \
a90ef4bf
JM
24720 echo "Doing TAGS in m4" ; \
24721 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24724 "RANLIB=$${RANLIB}" \
0c24b341 24725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24726 TAGS) \
2a4cbe27
NN
24727 || exit 1
24728
a90ef4bf 24729@endif m4
2a4cbe27 24730
a90ef4bf
JM
24731.PHONY: maybe-install-info-m4 install-info-m4
24732maybe-install-info-m4:
24733@if m4
24734maybe-install-info-m4: install-info-m4
2a4cbe27 24735
a90ef4bf
JM
24736install-info-m4: \
24737 configure-m4 \
24738 info-m4
0aed8855 24739 @: $(MAKE); $(unstage)
a90ef4bf 24740 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24741 r=`${PWD_COMMAND}`; export r; \
24742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24743 $(HOST_EXPORTS) \
b813574b 24744 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24746 done; \
a90ef4bf
JM
24747 echo "Doing install-info in m4" ; \
24748 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24751 "RANLIB=$${RANLIB}" \
0c24b341 24752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24753 install-info) \
2a4cbe27
NN
24754 || exit 1
24755
a90ef4bf 24756@endif m4
2a4cbe27 24757
a90ef4bf
JM
24758.PHONY: maybe-install-pdf-m4 install-pdf-m4
24759maybe-install-pdf-m4:
24760@if m4
24761maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 24762
a90ef4bf
JM
24763install-pdf-m4: \
24764 configure-m4 \
24765 pdf-m4
a3ca38d2 24766 @: $(MAKE); $(unstage)
a90ef4bf 24767 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
24768 r=`${PWD_COMMAND}`; export r; \
24769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24770 $(HOST_EXPORTS) \
24771 for flag in $(EXTRA_HOST_FLAGS) ; do \
24772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24773 done; \
a90ef4bf
JM
24774 echo "Doing install-pdf in m4" ; \
24775 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
24776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24778 "RANLIB=$${RANLIB}" \
0c24b341 24779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
24780 install-pdf) \
24781 || exit 1
24782
a90ef4bf 24783@endif m4
a3ca38d2 24784
a90ef4bf
JM
24785.PHONY: maybe-install-html-m4 install-html-m4
24786maybe-install-html-m4:
24787@if m4
24788maybe-install-html-m4: install-html-m4
108a6f8e 24789
a90ef4bf
JM
24790install-html-m4: \
24791 configure-m4 \
24792 html-m4
108a6f8e 24793 @: $(MAKE); $(unstage)
a90ef4bf 24794 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
24795 r=`${PWD_COMMAND}`; export r; \
24796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24797 $(HOST_EXPORTS) \
24798 for flag in $(EXTRA_HOST_FLAGS) ; do \
24799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24800 done; \
a90ef4bf
JM
24801 echo "Doing install-html in m4" ; \
24802 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
24803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24805 "RANLIB=$${RANLIB}" \
0c24b341 24806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
24807 install-html) \
24808 || exit 1
24809
a90ef4bf 24810@endif m4
108a6f8e 24811
a90ef4bf
JM
24812.PHONY: maybe-installcheck-m4 installcheck-m4
24813maybe-installcheck-m4:
24814@if m4
24815maybe-installcheck-m4: installcheck-m4
2a4cbe27 24816
a90ef4bf
JM
24817installcheck-m4: \
24818 configure-m4
0aed8855 24819 @: $(MAKE); $(unstage)
a90ef4bf 24820 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24821 r=`${PWD_COMMAND}`; export r; \
24822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24823 $(HOST_EXPORTS) \
b813574b 24824 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24826 done; \
a90ef4bf
JM
24827 echo "Doing installcheck in m4" ; \
24828 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24831 "RANLIB=$${RANLIB}" \
0c24b341 24832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24833 installcheck) \
2a4cbe27
NN
24834 || exit 1
24835
a90ef4bf 24836@endif m4
2a4cbe27 24837
a90ef4bf
JM
24838.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
24839maybe-mostlyclean-m4:
24840@if m4
24841maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 24842
a90ef4bf 24843mostlyclean-m4:
0aed8855 24844 @: $(MAKE); $(unstage)
a90ef4bf 24845 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24846 r=`${PWD_COMMAND}`; export r; \
24847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24848 $(HOST_EXPORTS) \
b813574b 24849 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24851 done; \
a90ef4bf
JM
24852 echo "Doing mostlyclean in m4" ; \
24853 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24856 "RANLIB=$${RANLIB}" \
0c24b341 24857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24858 mostlyclean) \
2a4cbe27
NN
24859 || exit 1
24860
a90ef4bf 24861@endif m4
2a4cbe27 24862
a90ef4bf
JM
24863.PHONY: maybe-clean-m4 clean-m4
24864maybe-clean-m4:
24865@if m4
24866maybe-clean-m4: clean-m4
2a4cbe27 24867
a90ef4bf 24868clean-m4:
0aed8855 24869 @: $(MAKE); $(unstage)
a90ef4bf 24870 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24871 r=`${PWD_COMMAND}`; export r; \
24872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24873 $(HOST_EXPORTS) \
b813574b 24874 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24876 done; \
a90ef4bf
JM
24877 echo "Doing clean in m4" ; \
24878 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24881 "RANLIB=$${RANLIB}" \
0c24b341 24882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24883 clean) \
2a4cbe27
NN
24884 || exit 1
24885
a90ef4bf 24886@endif m4
2a4cbe27 24887
a90ef4bf
JM
24888.PHONY: maybe-distclean-m4 distclean-m4
24889maybe-distclean-m4:
24890@if m4
24891maybe-distclean-m4: distclean-m4
2a4cbe27 24892
a90ef4bf 24893distclean-m4:
0aed8855 24894 @: $(MAKE); $(unstage)
a90ef4bf 24895 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24896 r=`${PWD_COMMAND}`; export r; \
24897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24898 $(HOST_EXPORTS) \
b813574b 24899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24901 done; \
a90ef4bf
JM
24902 echo "Doing distclean in m4" ; \
24903 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24906 "RANLIB=$${RANLIB}" \
0c24b341 24907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24908 distclean) \
2a4cbe27
NN
24909 || exit 1
24910
a90ef4bf 24911@endif m4
2a4cbe27 24912
a90ef4bf
JM
24913.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
24914maybe-maintainer-clean-m4:
24915@if m4
24916maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 24917
a90ef4bf 24918maintainer-clean-m4:
0aed8855 24919 @: $(MAKE); $(unstage)
a90ef4bf 24920 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24921 r=`${PWD_COMMAND}`; export r; \
24922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24923 $(HOST_EXPORTS) \
b813574b 24924 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24926 done; \
a90ef4bf
JM
24927 echo "Doing maintainer-clean in m4" ; \
24928 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24931 "RANLIB=$${RANLIB}" \
0c24b341 24932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24933 maintainer-clean) \
2a4cbe27
NN
24934 || exit 1
24935
a90ef4bf 24936@endif m4
2a4cbe27 24937
2a4cbe27 24938
a7254363 24939
a90ef4bf
JM
24940.PHONY: configure-readline maybe-configure-readline
24941maybe-configure-readline:
4f0ef2d8 24942@if gcc-bootstrap
a90ef4bf 24943configure-readline: stage_current
4f0ef2d8 24944@endif gcc-bootstrap
a90ef4bf
JM
24945@if readline
24946maybe-configure-readline: configure-readline
24947configure-readline:
0aed8855 24948 @: $(MAKE); $(unstage)
c52c6897 24949 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24951 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
24952 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
1f53ca9a 24953 $(HOST_EXPORTS) \
a90ef4bf
JM
24954 echo Configuring in $(HOST_SUBDIR)/readline; \
24955 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 24956 case $(srcdir) in \
b00612cc 24957 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24958 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 24959 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24960 esac; \
1b6c0831
L
24961 module_srcdir=readline; \
24962 $(SHELL) \
24963 $$s/$$module_srcdir/configure \
24964 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24965 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24966 --target=${target_alias} \
2a4cbe27 24967 || exit 1
a90ef4bf 24968@endif readline
2a4cbe27 24969
a7254363
PB
24970
24971
d545f33b
PB
24972
24973
a90ef4bf
JM
24974.PHONY: all-readline maybe-all-readline
24975maybe-all-readline:
4f0ef2d8 24976@if gcc-bootstrap
a90ef4bf 24977all-readline: stage_current
4f0ef2d8 24978@endif gcc-bootstrap
a90ef4bf
JM
24979@if readline
24980TARGET-readline=all
24981maybe-all-readline: all-readline
24982all-readline: configure-readline
0aed8855 24983 @: $(MAKE); $(unstage)
4fa63067
NN
24984 @r=`${PWD_COMMAND}`; export r; \
24985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24986 $(HOST_EXPORTS) \
a90ef4bf 24987 (cd $(HOST_SUBDIR)/readline && \
b3676d82 24988 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24989 $(TARGET-readline))
24990@endif readline
2a4cbe27 24991
a7254363 24992
d545f33b
PB
24993
24994
a90ef4bf
JM
24995.PHONY: check-readline maybe-check-readline
24996maybe-check-readline:
24997@if readline
24998maybe-check-readline: check-readline
2a4cbe27 24999
a90ef4bf 25000check-readline:
0aed8855 25001 @: $(MAKE); $(unstage)
4fa63067 25002 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25004 $(HOST_EXPORTS) \
a90ef4bf 25005 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25006 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25007
a90ef4bf 25008@endif readline
2a4cbe27 25009
a90ef4bf
JM
25010.PHONY: install-readline maybe-install-readline
25011maybe-install-readline:
25012@if readline
25013maybe-install-readline: install-readline
2a4cbe27 25014
a90ef4bf 25015install-readline: installdirs
0aed8855 25016 @: $(MAKE); $(unstage)
4fa63067
NN
25017 @r=`${PWD_COMMAND}`; export r; \
25018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25019 $(HOST_EXPORTS) \
a90ef4bf 25020 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25021 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25022
a90ef4bf 25023@endif readline
9b980aa1 25024
a90ef4bf
JM
25025.PHONY: install-strip-readline maybe-install-strip-readline
25026maybe-install-strip-readline:
25027@if readline
25028maybe-install-strip-readline: install-strip-readline
25029
25030install-strip-readline: installdirs
9b980aa1
RW
25031 @: $(MAKE); $(unstage)
25032 @r=`${PWD_COMMAND}`; export r; \
25033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25034 $(HOST_EXPORTS) \
a90ef4bf 25035 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25036 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25037
a90ef4bf 25038@endif readline
9b980aa1 25039
56a8fe78 25040# Other targets (info, dvi, pdf, etc.)
4fa63067 25041
a90ef4bf
JM
25042.PHONY: maybe-info-readline info-readline
25043maybe-info-readline:
25044@if readline
25045maybe-info-readline: info-readline
4fa63067 25046
a90ef4bf
JM
25047info-readline: \
25048 configure-readline
0aed8855 25049 @: $(MAKE); $(unstage)
a90ef4bf 25050 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25051 r=`${PWD_COMMAND}`; export r; \
25052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25053 $(HOST_EXPORTS) \
b813574b 25054 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25056 done; \
a90ef4bf
JM
25057 echo "Doing info in readline" ; \
25058 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25061 "RANLIB=$${RANLIB}" \
0c24b341 25062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25063 info) \
2a4cbe27
NN
25064 || exit 1
25065
a90ef4bf 25066@endif readline
2a4cbe27 25067
a90ef4bf
JM
25068.PHONY: maybe-dvi-readline dvi-readline
25069maybe-dvi-readline:
25070@if readline
25071maybe-dvi-readline: dvi-readline
2a4cbe27 25072
a90ef4bf
JM
25073dvi-readline: \
25074 configure-readline
0aed8855 25075 @: $(MAKE); $(unstage)
a90ef4bf 25076 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25077 r=`${PWD_COMMAND}`; export r; \
25078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25079 $(HOST_EXPORTS) \
b813574b 25080 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25082 done; \
a90ef4bf
JM
25083 echo "Doing dvi in readline" ; \
25084 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25087 "RANLIB=$${RANLIB}" \
0c24b341 25088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25089 dvi) \
2a4cbe27
NN
25090 || exit 1
25091
a90ef4bf 25092@endif readline
2a4cbe27 25093
a90ef4bf
JM
25094.PHONY: maybe-pdf-readline pdf-readline
25095maybe-pdf-readline:
25096@if readline
25097maybe-pdf-readline: pdf-readline
56a8fe78 25098
a90ef4bf
JM
25099pdf-readline: \
25100 configure-readline
56a8fe78 25101 @: $(MAKE); $(unstage)
a90ef4bf 25102 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25103 r=`${PWD_COMMAND}`; export r; \
25104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25105 $(HOST_EXPORTS) \
25106 for flag in $(EXTRA_HOST_FLAGS) ; do \
25107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25108 done; \
a90ef4bf
JM
25109 echo "Doing pdf in readline" ; \
25110 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25113 "RANLIB=$${RANLIB}" \
0c24b341 25114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25115 pdf) \
25116 || exit 1
25117
a90ef4bf 25118@endif readline
56a8fe78 25119
a90ef4bf
JM
25120.PHONY: maybe-html-readline html-readline
25121maybe-html-readline:
25122@if readline
25123maybe-html-readline: html-readline
6d389afc 25124
a90ef4bf
JM
25125html-readline: \
25126 configure-readline
0aed8855 25127 @: $(MAKE); $(unstage)
a90ef4bf 25128 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25129 r=`${PWD_COMMAND}`; export r; \
25130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25131 $(HOST_EXPORTS) \
25132 for flag in $(EXTRA_HOST_FLAGS) ; do \
25133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25134 done; \
a90ef4bf
JM
25135 echo "Doing html in readline" ; \
25136 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25139 "RANLIB=$${RANLIB}" \
0c24b341 25140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25141 html) \
25142 || exit 1
25143
a90ef4bf 25144@endif readline
6d389afc 25145
a90ef4bf
JM
25146.PHONY: maybe-TAGS-readline TAGS-readline
25147maybe-TAGS-readline:
25148@if readline
25149maybe-TAGS-readline: TAGS-readline
2a4cbe27 25150
a90ef4bf
JM
25151TAGS-readline: \
25152 configure-readline
0aed8855 25153 @: $(MAKE); $(unstage)
a90ef4bf 25154 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25155 r=`${PWD_COMMAND}`; export r; \
25156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25157 $(HOST_EXPORTS) \
b813574b 25158 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25160 done; \
a90ef4bf
JM
25161 echo "Doing TAGS in readline" ; \
25162 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25165 "RANLIB=$${RANLIB}" \
0c24b341 25166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25167 TAGS) \
2a4cbe27
NN
25168 || exit 1
25169
a90ef4bf 25170@endif readline
2a4cbe27 25171
a90ef4bf
JM
25172.PHONY: maybe-install-info-readline install-info-readline
25173maybe-install-info-readline:
25174@if readline
25175maybe-install-info-readline: install-info-readline
2a4cbe27 25176
a90ef4bf
JM
25177install-info-readline: \
25178 configure-readline \
25179 info-readline
0aed8855 25180 @: $(MAKE); $(unstage)
a90ef4bf 25181 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25182 r=`${PWD_COMMAND}`; export r; \
25183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25184 $(HOST_EXPORTS) \
b813574b 25185 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25187 done; \
a90ef4bf
JM
25188 echo "Doing install-info in readline" ; \
25189 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25192 "RANLIB=$${RANLIB}" \
0c24b341 25193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25194 install-info) \
2a4cbe27
NN
25195 || exit 1
25196
a90ef4bf 25197@endif readline
2a4cbe27 25198
a90ef4bf
JM
25199.PHONY: maybe-install-pdf-readline install-pdf-readline
25200maybe-install-pdf-readline:
25201@if readline
25202maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25203
a90ef4bf
JM
25204install-pdf-readline: \
25205 configure-readline \
25206 pdf-readline
a3ca38d2 25207 @: $(MAKE); $(unstage)
a90ef4bf 25208 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25209 r=`${PWD_COMMAND}`; export r; \
25210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25211 $(HOST_EXPORTS) \
25212 for flag in $(EXTRA_HOST_FLAGS) ; do \
25213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25214 done; \
a90ef4bf
JM
25215 echo "Doing install-pdf in readline" ; \
25216 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25219 "RANLIB=$${RANLIB}" \
0c24b341 25220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25221 install-pdf) \
25222 || exit 1
25223
a90ef4bf 25224@endif readline
a3ca38d2 25225
a90ef4bf
JM
25226.PHONY: maybe-install-html-readline install-html-readline
25227maybe-install-html-readline:
25228@if readline
25229maybe-install-html-readline: install-html-readline
108a6f8e 25230
a90ef4bf
JM
25231install-html-readline: \
25232 configure-readline \
25233 html-readline
108a6f8e 25234 @: $(MAKE); $(unstage)
a90ef4bf 25235 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25236 r=`${PWD_COMMAND}`; export r; \
25237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25238 $(HOST_EXPORTS) \
25239 for flag in $(EXTRA_HOST_FLAGS) ; do \
25240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25241 done; \
a90ef4bf
JM
25242 echo "Doing install-html in readline" ; \
25243 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25246 "RANLIB=$${RANLIB}" \
0c24b341 25247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25248 install-html) \
25249 || exit 1
25250
a90ef4bf 25251@endif readline
108a6f8e 25252
a90ef4bf
JM
25253.PHONY: maybe-installcheck-readline installcheck-readline
25254maybe-installcheck-readline:
25255@if readline
25256maybe-installcheck-readline: installcheck-readline
2a4cbe27 25257
a90ef4bf
JM
25258installcheck-readline: \
25259 configure-readline
0aed8855 25260 @: $(MAKE); $(unstage)
a90ef4bf 25261 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25262 r=`${PWD_COMMAND}`; export r; \
25263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25264 $(HOST_EXPORTS) \
b813574b 25265 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25267 done; \
a90ef4bf
JM
25268 echo "Doing installcheck in readline" ; \
25269 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25272 "RANLIB=$${RANLIB}" \
0c24b341 25273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25274 installcheck) \
2a4cbe27
NN
25275 || exit 1
25276
a90ef4bf 25277@endif readline
2a4cbe27 25278
a90ef4bf
JM
25279.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25280maybe-mostlyclean-readline:
25281@if readline
25282maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25283
a90ef4bf 25284mostlyclean-readline:
0aed8855 25285 @: $(MAKE); $(unstage)
a90ef4bf 25286 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25287 r=`${PWD_COMMAND}`; export r; \
25288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25289 $(HOST_EXPORTS) \
b813574b 25290 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25292 done; \
a90ef4bf
JM
25293 echo "Doing mostlyclean in readline" ; \
25294 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25297 "RANLIB=$${RANLIB}" \
0c24b341 25298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25299 mostlyclean) \
2a4cbe27
NN
25300 || exit 1
25301
a90ef4bf 25302@endif readline
2a4cbe27 25303
a90ef4bf
JM
25304.PHONY: maybe-clean-readline clean-readline
25305maybe-clean-readline:
25306@if readline
25307maybe-clean-readline: clean-readline
2a4cbe27 25308
a90ef4bf 25309clean-readline:
0aed8855 25310 @: $(MAKE); $(unstage)
a90ef4bf 25311 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25312 r=`${PWD_COMMAND}`; export r; \
25313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25314 $(HOST_EXPORTS) \
b813574b 25315 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25317 done; \
a90ef4bf
JM
25318 echo "Doing clean in readline" ; \
25319 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25322 "RANLIB=$${RANLIB}" \
0c24b341 25323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25324 clean) \
2a4cbe27
NN
25325 || exit 1
25326
a90ef4bf 25327@endif readline
2a4cbe27 25328
a90ef4bf
JM
25329.PHONY: maybe-distclean-readline distclean-readline
25330maybe-distclean-readline:
25331@if readline
25332maybe-distclean-readline: distclean-readline
2a4cbe27 25333
a90ef4bf 25334distclean-readline:
0aed8855 25335 @: $(MAKE); $(unstage)
a90ef4bf 25336 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25337 r=`${PWD_COMMAND}`; export r; \
25338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25339 $(HOST_EXPORTS) \
b813574b 25340 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25342 done; \
a90ef4bf
JM
25343 echo "Doing distclean in readline" ; \
25344 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25347 "RANLIB=$${RANLIB}" \
0c24b341 25348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25349 distclean) \
2a4cbe27
NN
25350 || exit 1
25351
a90ef4bf 25352@endif readline
2a4cbe27 25353
a90ef4bf
JM
25354.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25355maybe-maintainer-clean-readline:
25356@if readline
25357maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25358
a90ef4bf 25359maintainer-clean-readline:
0aed8855 25360 @: $(MAKE); $(unstage)
a90ef4bf 25361 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25362 r=`${PWD_COMMAND}`; export r; \
25363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25364 $(HOST_EXPORTS) \
b813574b 25365 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25367 done; \
a90ef4bf
JM
25368 echo "Doing maintainer-clean in readline" ; \
25369 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25372 "RANLIB=$${RANLIB}" \
0c24b341 25373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25374 maintainer-clean) \
2a4cbe27
NN
25375 || exit 1
25376
a90ef4bf 25377@endif readline
2a4cbe27 25378
2a4cbe27 25379
a7254363 25380
a90ef4bf
JM
25381.PHONY: configure-sid maybe-configure-sid
25382maybe-configure-sid:
4f0ef2d8 25383@if gcc-bootstrap
a90ef4bf 25384configure-sid: stage_current
4f0ef2d8 25385@endif gcc-bootstrap
a90ef4bf
JM
25386@if sid
25387maybe-configure-sid: configure-sid
25388configure-sid:
0aed8855 25389 @: $(MAKE); $(unstage)
c52c6897 25390 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25392 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
25393 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
1f53ca9a 25394 $(HOST_EXPORTS) \
a90ef4bf
JM
25395 echo Configuring in $(HOST_SUBDIR)/sid; \
25396 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25397 case $(srcdir) in \
b00612cc 25398 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25399 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25400 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25401 esac; \
1b6c0831
L
25402 module_srcdir=sid; \
25403 $(SHELL) \
25404 $$s/$$module_srcdir/configure \
25405 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25406 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25407 --target=${target_alias} \
4fa63067 25408 || exit 1
a90ef4bf 25409@endif sid
2a4cbe27 25410
a7254363
PB
25411
25412
d545f33b
PB
25413
25414
a90ef4bf
JM
25415.PHONY: all-sid maybe-all-sid
25416maybe-all-sid:
4f0ef2d8 25417@if gcc-bootstrap
a90ef4bf 25418all-sid: stage_current
4f0ef2d8 25419@endif gcc-bootstrap
a90ef4bf
JM
25420@if sid
25421TARGET-sid=all
25422maybe-all-sid: all-sid
25423all-sid: configure-sid
0aed8855 25424 @: $(MAKE); $(unstage)
4fa63067
NN
25425 @r=`${PWD_COMMAND}`; export r; \
25426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25427 $(HOST_EXPORTS) \
a90ef4bf 25428 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25429 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25430 $(TARGET-sid))
25431@endif sid
2a4cbe27 25432
a7254363 25433
d545f33b
PB
25434
25435
a90ef4bf
JM
25436.PHONY: check-sid maybe-check-sid
25437maybe-check-sid:
25438@if sid
25439maybe-check-sid: check-sid
2a4cbe27 25440
a90ef4bf 25441check-sid:
0aed8855 25442 @: $(MAKE); $(unstage)
4fa63067 25443 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25445 $(HOST_EXPORTS) \
a90ef4bf 25446 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25447 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25448
a90ef4bf 25449@endif sid
2a4cbe27 25450
a90ef4bf
JM
25451.PHONY: install-sid maybe-install-sid
25452maybe-install-sid:
25453@if sid
25454maybe-install-sid: install-sid
2a4cbe27 25455
a90ef4bf 25456install-sid: installdirs
0aed8855 25457 @: $(MAKE); $(unstage)
4fa63067 25458 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25460 $(HOST_EXPORTS) \
a90ef4bf 25461 (cd $(HOST_SUBDIR)/sid && \
2da12f12 25462 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25463
a90ef4bf 25464@endif sid
2a4cbe27 25465
a90ef4bf
JM
25466.PHONY: install-strip-sid maybe-install-strip-sid
25467maybe-install-strip-sid:
25468@if sid
25469maybe-install-strip-sid: install-strip-sid
9b980aa1 25470
a90ef4bf 25471install-strip-sid: installdirs
9b980aa1
RW
25472 @: $(MAKE); $(unstage)
25473 @r=`${PWD_COMMAND}`; export r; \
25474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25475 $(HOST_EXPORTS) \
a90ef4bf 25476 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
25477 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25478
a90ef4bf 25479@endif sid
9b980aa1 25480
56a8fe78 25481# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25482
a90ef4bf
JM
25483.PHONY: maybe-info-sid info-sid
25484maybe-info-sid:
25485@if sid
25486maybe-info-sid: info-sid
4fa63067 25487
a90ef4bf
JM
25488info-sid: \
25489 configure-sid
0aed8855 25490 @: $(MAKE); $(unstage)
a90ef4bf 25491 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25492 r=`${PWD_COMMAND}`; export r; \
25493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25494 $(HOST_EXPORTS) \
b813574b 25495 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25497 done; \
a90ef4bf
JM
25498 echo "Doing info in sid" ; \
25499 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25502 "RANLIB=$${RANLIB}" \
0c24b341 25503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25504 info) \
2a4cbe27
NN
25505 || exit 1
25506
a90ef4bf 25507@endif sid
2a4cbe27 25508
a90ef4bf
JM
25509.PHONY: maybe-dvi-sid dvi-sid
25510maybe-dvi-sid:
25511@if sid
25512maybe-dvi-sid: dvi-sid
2a4cbe27 25513
a90ef4bf
JM
25514dvi-sid: \
25515 configure-sid
0aed8855 25516 @: $(MAKE); $(unstage)
a90ef4bf 25517 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25518 r=`${PWD_COMMAND}`; export r; \
25519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25520 $(HOST_EXPORTS) \
b813574b 25521 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25523 done; \
a90ef4bf
JM
25524 echo "Doing dvi in sid" ; \
25525 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25528 "RANLIB=$${RANLIB}" \
0c24b341 25529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25530 dvi) \
2a4cbe27
NN
25531 || exit 1
25532
a90ef4bf 25533@endif sid
2a4cbe27 25534
a90ef4bf
JM
25535.PHONY: maybe-pdf-sid pdf-sid
25536maybe-pdf-sid:
25537@if sid
25538maybe-pdf-sid: pdf-sid
56a8fe78 25539
a90ef4bf
JM
25540pdf-sid: \
25541 configure-sid
56a8fe78 25542 @: $(MAKE); $(unstage)
a90ef4bf 25543 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
25544 r=`${PWD_COMMAND}`; export r; \
25545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25546 $(HOST_EXPORTS) \
25547 for flag in $(EXTRA_HOST_FLAGS) ; do \
25548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25549 done; \
a90ef4bf
JM
25550 echo "Doing pdf in sid" ; \
25551 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
25552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25554 "RANLIB=$${RANLIB}" \
0c24b341 25555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25556 pdf) \
25557 || exit 1
25558
a90ef4bf 25559@endif sid
56a8fe78 25560
a90ef4bf
JM
25561.PHONY: maybe-html-sid html-sid
25562maybe-html-sid:
25563@if sid
25564maybe-html-sid: html-sid
6d389afc 25565
a90ef4bf
JM
25566html-sid: \
25567 configure-sid
0aed8855 25568 @: $(MAKE); $(unstage)
a90ef4bf 25569 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
25570 r=`${PWD_COMMAND}`; export r; \
25571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25572 $(HOST_EXPORTS) \
25573 for flag in $(EXTRA_HOST_FLAGS) ; do \
25574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25575 done; \
a90ef4bf
JM
25576 echo "Doing html in sid" ; \
25577 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
25578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25580 "RANLIB=$${RANLIB}" \
0c24b341 25581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25582 html) \
25583 || exit 1
25584
a90ef4bf 25585@endif sid
6d389afc 25586
a90ef4bf
JM
25587.PHONY: maybe-TAGS-sid TAGS-sid
25588maybe-TAGS-sid:
25589@if sid
25590maybe-TAGS-sid: TAGS-sid
2a4cbe27 25591
a90ef4bf
JM
25592TAGS-sid: \
25593 configure-sid
0aed8855 25594 @: $(MAKE); $(unstage)
a90ef4bf 25595 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25596 r=`${PWD_COMMAND}`; export r; \
25597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25598 $(HOST_EXPORTS) \
b813574b 25599 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25601 done; \
a90ef4bf
JM
25602 echo "Doing TAGS in sid" ; \
25603 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25606 "RANLIB=$${RANLIB}" \
0c24b341 25607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25608 TAGS) \
2a4cbe27
NN
25609 || exit 1
25610
a90ef4bf 25611@endif sid
2a4cbe27 25612
a90ef4bf
JM
25613.PHONY: maybe-install-info-sid install-info-sid
25614maybe-install-info-sid:
25615@if sid
25616maybe-install-info-sid: install-info-sid
2a4cbe27 25617
a90ef4bf
JM
25618install-info-sid: \
25619 configure-sid \
25620 info-sid
0aed8855 25621 @: $(MAKE); $(unstage)
a90ef4bf 25622 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25623 r=`${PWD_COMMAND}`; export r; \
25624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25625 $(HOST_EXPORTS) \
b813574b 25626 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25628 done; \
a90ef4bf
JM
25629 echo "Doing install-info in sid" ; \
25630 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25633 "RANLIB=$${RANLIB}" \
0c24b341 25634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25635 install-info) \
2a4cbe27
NN
25636 || exit 1
25637
a90ef4bf 25638@endif sid
2a4cbe27 25639
a90ef4bf
JM
25640.PHONY: maybe-install-pdf-sid install-pdf-sid
25641maybe-install-pdf-sid:
25642@if sid
25643maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 25644
a90ef4bf
JM
25645install-pdf-sid: \
25646 configure-sid \
25647 pdf-sid
a3ca38d2 25648 @: $(MAKE); $(unstage)
a90ef4bf 25649 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
25650 r=`${PWD_COMMAND}`; export r; \
25651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25652 $(HOST_EXPORTS) \
25653 for flag in $(EXTRA_HOST_FLAGS) ; do \
25654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25655 done; \
a90ef4bf
JM
25656 echo "Doing install-pdf in sid" ; \
25657 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
25658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25660 "RANLIB=$${RANLIB}" \
0c24b341 25661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25662 install-pdf) \
25663 || exit 1
25664
a90ef4bf 25665@endif sid
a3ca38d2 25666
a90ef4bf
JM
25667.PHONY: maybe-install-html-sid install-html-sid
25668maybe-install-html-sid:
25669@if sid
25670maybe-install-html-sid: install-html-sid
108a6f8e 25671
a90ef4bf
JM
25672install-html-sid: \
25673 configure-sid \
25674 html-sid
108a6f8e 25675 @: $(MAKE); $(unstage)
a90ef4bf 25676 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
25677 r=`${PWD_COMMAND}`; export r; \
25678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25679 $(HOST_EXPORTS) \
25680 for flag in $(EXTRA_HOST_FLAGS) ; do \
25681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25682 done; \
a90ef4bf
JM
25683 echo "Doing install-html in sid" ; \
25684 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
25685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25687 "RANLIB=$${RANLIB}" \
0c24b341 25688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25689 install-html) \
25690 || exit 1
25691
a90ef4bf 25692@endif sid
108a6f8e 25693
a90ef4bf
JM
25694.PHONY: maybe-installcheck-sid installcheck-sid
25695maybe-installcheck-sid:
25696@if sid
25697maybe-installcheck-sid: installcheck-sid
2a4cbe27 25698
a90ef4bf
JM
25699installcheck-sid: \
25700 configure-sid
0aed8855 25701 @: $(MAKE); $(unstage)
a90ef4bf 25702 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25703 r=`${PWD_COMMAND}`; export r; \
25704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25705 $(HOST_EXPORTS) \
b813574b 25706 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25708 done; \
a90ef4bf
JM
25709 echo "Doing installcheck in sid" ; \
25710 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25713 "RANLIB=$${RANLIB}" \
0c24b341 25714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25715 installcheck) \
2a4cbe27
NN
25716 || exit 1
25717
a90ef4bf 25718@endif sid
2a4cbe27 25719
a90ef4bf
JM
25720.PHONY: maybe-mostlyclean-sid mostlyclean-sid
25721maybe-mostlyclean-sid:
25722@if sid
25723maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 25724
a90ef4bf 25725mostlyclean-sid:
0aed8855 25726 @: $(MAKE); $(unstage)
a90ef4bf 25727 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25728 r=`${PWD_COMMAND}`; export r; \
25729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25730 $(HOST_EXPORTS) \
b813574b 25731 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25733 done; \
a90ef4bf
JM
25734 echo "Doing mostlyclean in sid" ; \
25735 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25738 "RANLIB=$${RANLIB}" \
0c24b341 25739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25740 mostlyclean) \
2a4cbe27
NN
25741 || exit 1
25742
a90ef4bf 25743@endif sid
2a4cbe27 25744
a90ef4bf
JM
25745.PHONY: maybe-clean-sid clean-sid
25746maybe-clean-sid:
25747@if sid
25748maybe-clean-sid: clean-sid
2a4cbe27 25749
a90ef4bf 25750clean-sid:
0aed8855 25751 @: $(MAKE); $(unstage)
a90ef4bf 25752 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25753 r=`${PWD_COMMAND}`; export r; \
25754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25755 $(HOST_EXPORTS) \
b813574b 25756 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25758 done; \
a90ef4bf
JM
25759 echo "Doing clean in sid" ; \
25760 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25763 "RANLIB=$${RANLIB}" \
0c24b341 25764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25765 clean) \
2a4cbe27
NN
25766 || exit 1
25767
a90ef4bf 25768@endif sid
2a4cbe27 25769
a90ef4bf
JM
25770.PHONY: maybe-distclean-sid distclean-sid
25771maybe-distclean-sid:
25772@if sid
25773maybe-distclean-sid: distclean-sid
2a4cbe27 25774
a90ef4bf 25775distclean-sid:
0aed8855 25776 @: $(MAKE); $(unstage)
a90ef4bf 25777 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25778 r=`${PWD_COMMAND}`; export r; \
25779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25780 $(HOST_EXPORTS) \
b813574b 25781 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25783 done; \
a90ef4bf
JM
25784 echo "Doing distclean in sid" ; \
25785 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25788 "RANLIB=$${RANLIB}" \
0c24b341 25789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25790 distclean) \
2a4cbe27
NN
25791 || exit 1
25792
a90ef4bf 25793@endif sid
2a4cbe27 25794
a90ef4bf
JM
25795.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
25796maybe-maintainer-clean-sid:
25797@if sid
25798maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 25799
a90ef4bf 25800maintainer-clean-sid:
0aed8855 25801 @: $(MAKE); $(unstage)
a90ef4bf 25802 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25803 r=`${PWD_COMMAND}`; export r; \
25804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25805 $(HOST_EXPORTS) \
b813574b 25806 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25808 done; \
a90ef4bf
JM
25809 echo "Doing maintainer-clean in sid" ; \
25810 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25813 "RANLIB=$${RANLIB}" \
0c24b341 25814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25815 maintainer-clean) \
2a4cbe27
NN
25816 || exit 1
25817
a90ef4bf 25818@endif sid
2a4cbe27 25819
a2592b1b 25820
a7254363 25821
a90ef4bf
JM
25822.PHONY: configure-sim maybe-configure-sim
25823maybe-configure-sim:
4f0ef2d8 25824@if gcc-bootstrap
a90ef4bf 25825configure-sim: stage_current
4f0ef2d8 25826@endif gcc-bootstrap
a90ef4bf
JM
25827@if sim
25828maybe-configure-sim: configure-sim
25829configure-sim:
25830 @: $(MAKE); $(unstage)
c52c6897
PB
25831 @r=`${PWD_COMMAND}`; export r; \
25832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25833 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
25834 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
1f53ca9a 25835 $(HOST_EXPORTS) \
a90ef4bf
JM
25836 echo Configuring in $(HOST_SUBDIR)/sim; \
25837 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 25838 case $(srcdir) in \
b00612cc 25839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25840 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 25841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25842 esac; \
1b6c0831
L
25843 module_srcdir=sim; \
25844 $(SHELL) \
25845 $$s/$$module_srcdir/configure \
25846 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25847 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25848 --target=${target_alias} \
a2592b1b 25849 || exit 1
a90ef4bf 25850@endif sim
a2592b1b 25851
a7254363
PB
25852
25853
a90ef4bf
JM
25854
25855
25856.PHONY: all-sim maybe-all-sim
25857maybe-all-sim:
25858@if gcc-bootstrap
25859all-sim: stage_current
25860@endif gcc-bootstrap
25861@if sim
25862TARGET-sim=all
25863maybe-all-sim: all-sim
25864all-sim: configure-sim
25865 @: $(MAKE); $(unstage)
c52c6897
PB
25866 @r=`${PWD_COMMAND}`; export r; \
25867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25868 $(HOST_EXPORTS) \
25869 (cd $(HOST_SUBDIR)/sim && \
b3676d82 25870 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25871 $(TARGET-sim))
25872@endif sim
d545f33b 25873
a90ef4bf
JM
25874
25875
25876
25877.PHONY: check-sim maybe-check-sim
25878maybe-check-sim:
25879@if sim
25880maybe-check-sim: check-sim
25881
25882check-sim:
25883 @: $(MAKE); $(unstage)
c52c6897
PB
25884 @r=`${PWD_COMMAND}`; export r; \
25885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 25886 $(HOST_EXPORTS) \
a90ef4bf
JM
25887 (cd $(HOST_SUBDIR)/sim && \
25888 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 25889
a90ef4bf
JM
25890@endif sim
25891
25892.PHONY: install-sim maybe-install-sim
25893maybe-install-sim:
25894@if sim
25895maybe-install-sim: install-sim
25896
25897install-sim: installdirs
25898 @: $(MAKE); $(unstage)
c52c6897
PB
25899 @r=`${PWD_COMMAND}`; export r; \
25900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 25901 $(HOST_EXPORTS) \
a90ef4bf
JM
25902 (cd $(HOST_SUBDIR)/sim && \
25903 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 25904
a90ef4bf
JM
25905@endif sim
25906
25907.PHONY: install-strip-sim maybe-install-strip-sim
25908maybe-install-strip-sim:
25909@if sim
25910maybe-install-strip-sim: install-strip-sim
25911
25912install-strip-sim: installdirs
25913 @: $(MAKE); $(unstage)
c52c6897
PB
25914 @r=`${PWD_COMMAND}`; export r; \
25915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 25916 $(HOST_EXPORTS) \
a90ef4bf
JM
25917 (cd $(HOST_SUBDIR)/sim && \
25918 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 25919
a90ef4bf 25920@endif sim
9b980aa1 25921
56a8fe78 25922# Other targets (info, dvi, pdf, etc.)
4fa63067 25923
a90ef4bf
JM
25924.PHONY: maybe-info-sim info-sim
25925maybe-info-sim:
25926@if sim
25927maybe-info-sim: info-sim
4fa63067 25928
a90ef4bf
JM
25929info-sim: \
25930 configure-sim
25931 @: $(MAKE); $(unstage)
25932 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25933 r=`${PWD_COMMAND}`; export r; \
25934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25935 $(HOST_EXPORTS) \
b813574b 25936 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25938 done; \
a90ef4bf
JM
25939 echo "Doing info in sim" ; \
25940 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25943 "RANLIB=$${RANLIB}" \
0c24b341 25944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25945 info) \
2a4cbe27
NN
25946 || exit 1
25947
a90ef4bf 25948@endif sim
2a4cbe27 25949
a90ef4bf
JM
25950.PHONY: maybe-dvi-sim dvi-sim
25951maybe-dvi-sim:
25952@if sim
25953maybe-dvi-sim: dvi-sim
2a4cbe27 25954
a90ef4bf
JM
25955dvi-sim: \
25956 configure-sim
25957 @: $(MAKE); $(unstage)
25958 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 25959 r=`${PWD_COMMAND}`; export r; \
b40e3958 25960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25961 $(HOST_EXPORTS) \
b813574b 25962 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25964 done; \
a90ef4bf
JM
25965 echo "Doing dvi in sim" ; \
25966 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25969 "RANLIB=$${RANLIB}" \
0c24b341 25970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25971 dvi) \
2a4cbe27
NN
25972 || exit 1
25973
a90ef4bf 25974@endif sim
2a4cbe27 25975
a90ef4bf
JM
25976.PHONY: maybe-pdf-sim pdf-sim
25977maybe-pdf-sim:
25978@if sim
25979maybe-pdf-sim: pdf-sim
56a8fe78 25980
a90ef4bf
JM
25981pdf-sim: \
25982 configure-sim
25983 @: $(MAKE); $(unstage)
25984 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
25985 r=`${PWD_COMMAND}`; export r; \
25986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25987 $(HOST_EXPORTS) \
25988 for flag in $(EXTRA_HOST_FLAGS) ; do \
25989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25990 done; \
a90ef4bf
JM
25991 echo "Doing pdf in sim" ; \
25992 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
25993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25995 "RANLIB=$${RANLIB}" \
0c24b341 25996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25997 pdf) \
25998 || exit 1
25999
a90ef4bf 26000@endif sim
56a8fe78 26001
a90ef4bf
JM
26002.PHONY: maybe-html-sim html-sim
26003maybe-html-sim:
26004@if sim
26005maybe-html-sim: html-sim
6d389afc 26006
a90ef4bf
JM
26007html-sim: \
26008 configure-sim
26009 @: $(MAKE); $(unstage)
26010 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26011 r=`${PWD_COMMAND}`; export r; \
26012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26013 $(HOST_EXPORTS) \
26014 for flag in $(EXTRA_HOST_FLAGS) ; do \
26015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26016 done; \
a90ef4bf
JM
26017 echo "Doing html in sim" ; \
26018 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26021 "RANLIB=$${RANLIB}" \
0c24b341 26022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26023 html) \
26024 || exit 1
26025
a90ef4bf 26026@endif sim
6d389afc 26027
a90ef4bf
JM
26028.PHONY: maybe-TAGS-sim TAGS-sim
26029maybe-TAGS-sim:
26030@if sim
26031maybe-TAGS-sim: TAGS-sim
2a4cbe27 26032
a90ef4bf
JM
26033TAGS-sim: \
26034 configure-sim
26035 @: $(MAKE); $(unstage)
26036 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26037 r=`${PWD_COMMAND}`; export r; \
26038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26039 $(HOST_EXPORTS) \
b813574b 26040 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26042 done; \
a90ef4bf
JM
26043 echo "Doing TAGS in sim" ; \
26044 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26047 "RANLIB=$${RANLIB}" \
0c24b341 26048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26049 TAGS) \
2a4cbe27
NN
26050 || exit 1
26051
a90ef4bf 26052@endif sim
2a4cbe27 26053
a90ef4bf
JM
26054.PHONY: maybe-install-info-sim install-info-sim
26055maybe-install-info-sim:
26056@if sim
26057maybe-install-info-sim: install-info-sim
2a4cbe27 26058
a90ef4bf
JM
26059install-info-sim: \
26060 configure-sim \
26061 info-sim
26062 @: $(MAKE); $(unstage)
26063 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26064 r=`${PWD_COMMAND}`; export r; \
26065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26066 $(HOST_EXPORTS) \
b813574b 26067 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26069 done; \
a90ef4bf
JM
26070 echo "Doing install-info in sim" ; \
26071 (cd $(HOST_SUBDIR)/sim && \
26072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26074 "RANLIB=$${RANLIB}" \
0c24b341 26075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26076 install-info) \
2a4cbe27
NN
26077 || exit 1
26078
a90ef4bf 26079@endif sim
2a4cbe27 26080
a90ef4bf
JM
26081.PHONY: maybe-install-pdf-sim install-pdf-sim
26082maybe-install-pdf-sim:
26083@if sim
26084maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26085
a90ef4bf
JM
26086install-pdf-sim: \
26087 configure-sim \
26088 pdf-sim
26089 @: $(MAKE); $(unstage)
26090 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26091 r=`${PWD_COMMAND}`; export r; \
26092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26093 $(HOST_EXPORTS) \
26094 for flag in $(EXTRA_HOST_FLAGS) ; do \
26095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26096 done; \
a90ef4bf
JM
26097 echo "Doing install-pdf in sim" ; \
26098 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26101 "RANLIB=$${RANLIB}" \
0c24b341 26102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26103 install-pdf) \
26104 || exit 1
26105
a90ef4bf 26106@endif sim
a3ca38d2 26107
a90ef4bf
JM
26108.PHONY: maybe-install-html-sim install-html-sim
26109maybe-install-html-sim:
26110@if sim
26111maybe-install-html-sim: install-html-sim
108a6f8e 26112
a90ef4bf
JM
26113install-html-sim: \
26114 configure-sim \
26115 html-sim
26116 @: $(MAKE); $(unstage)
26117 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26118 r=`${PWD_COMMAND}`; export r; \
26119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26120 $(HOST_EXPORTS) \
26121 for flag in $(EXTRA_HOST_FLAGS) ; do \
26122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26123 done; \
a90ef4bf
JM
26124 echo "Doing install-html in sim" ; \
26125 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26128 "RANLIB=$${RANLIB}" \
0c24b341 26129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26130 install-html) \
26131 || exit 1
26132
a90ef4bf 26133@endif sim
108a6f8e 26134
a90ef4bf
JM
26135.PHONY: maybe-installcheck-sim installcheck-sim
26136maybe-installcheck-sim:
26137@if sim
26138maybe-installcheck-sim: installcheck-sim
2a4cbe27 26139
a90ef4bf
JM
26140installcheck-sim: \
26141 configure-sim
26142 @: $(MAKE); $(unstage)
26143 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26144 r=`${PWD_COMMAND}`; export r; \
26145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26146 $(HOST_EXPORTS) \
b813574b 26147 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26149 done; \
a90ef4bf
JM
26150 echo "Doing installcheck in sim" ; \
26151 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26154 "RANLIB=$${RANLIB}" \
0c24b341 26155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26156 installcheck) \
2a4cbe27
NN
26157 || exit 1
26158
a90ef4bf 26159@endif sim
2a4cbe27 26160
a90ef4bf
JM
26161.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26162maybe-mostlyclean-sim:
26163@if sim
26164maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26165
a90ef4bf
JM
26166mostlyclean-sim:
26167 @: $(MAKE); $(unstage)
26168 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26169 r=`${PWD_COMMAND}`; export r; \
26170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26171 $(HOST_EXPORTS) \
26172 for flag in $(EXTRA_HOST_FLAGS) ; do \
26173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26174 done; \
a90ef4bf
JM
26175 echo "Doing mostlyclean in sim" ; \
26176 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26179 "RANLIB=$${RANLIB}" \
0c24b341 26180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26181 mostlyclean) \
26182 || exit 1
4fa63067 26183
a90ef4bf 26184@endif sim
4fa63067 26185
a90ef4bf
JM
26186.PHONY: maybe-clean-sim clean-sim
26187maybe-clean-sim:
26188@if sim
26189maybe-clean-sim: clean-sim
4fa63067 26190
a90ef4bf
JM
26191clean-sim:
26192 @: $(MAKE); $(unstage)
26193 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26194 r=`${PWD_COMMAND}`; export r; \
26195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26196 $(HOST_EXPORTS) \
b813574b 26197 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26199 done; \
a90ef4bf
JM
26200 echo "Doing clean in sim" ; \
26201 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26204 "RANLIB=$${RANLIB}" \
0c24b341 26205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26206 clean) \
2a4cbe27
NN
26207 || exit 1
26208
a90ef4bf 26209@endif sim
2a4cbe27 26210
a90ef4bf
JM
26211.PHONY: maybe-distclean-sim distclean-sim
26212maybe-distclean-sim:
26213@if sim
26214maybe-distclean-sim: distclean-sim
2a4cbe27 26215
a90ef4bf
JM
26216distclean-sim:
26217 @: $(MAKE); $(unstage)
26218 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26219 r=`${PWD_COMMAND}`; export r; \
26220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26221 $(HOST_EXPORTS) \
b813574b 26222 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26224 done; \
a90ef4bf
JM
26225 echo "Doing distclean in sim" ; \
26226 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26229 "RANLIB=$${RANLIB}" \
0c24b341 26230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26231 distclean) \
2a4cbe27
NN
26232 || exit 1
26233
a90ef4bf 26234@endif sim
2a4cbe27 26235
a90ef4bf
JM
26236.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26237maybe-maintainer-clean-sim:
26238@if sim
26239maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26240
a90ef4bf
JM
26241maintainer-clean-sim:
26242 @: $(MAKE); $(unstage)
26243 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26244 r=`${PWD_COMMAND}`; export r; \
26245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26246 $(HOST_EXPORTS) \
b813574b 26247 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26249 done; \
a90ef4bf
JM
26250 echo "Doing maintainer-clean in sim" ; \
26251 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26254 "RANLIB=$${RANLIB}" \
0c24b341 26255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26256 maintainer-clean) \
2a4cbe27
NN
26257 || exit 1
26258
a90ef4bf 26259@endif sim
2a4cbe27 26260
2a4cbe27 26261
a7254363 26262
a90ef4bf
JM
26263.PHONY: configure-texinfo maybe-configure-texinfo
26264maybe-configure-texinfo:
4f0ef2d8 26265@if gcc-bootstrap
a90ef4bf 26266configure-texinfo: stage_current
4f0ef2d8 26267@endif gcc-bootstrap
a90ef4bf
JM
26268@if texinfo
26269maybe-configure-texinfo: configure-texinfo
26270configure-texinfo:
0aed8855 26271 @: $(MAKE); $(unstage)
c52c6897 26272 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26274 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
26275 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
1f53ca9a 26276 $(HOST_EXPORTS) \
a90ef4bf
JM
26277 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26278 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26279 case $(srcdir) in \
b00612cc 26280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26281 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26283 esac; \
1b6c0831
L
26284 module_srcdir=texinfo; \
26285 $(SHELL) \
26286 $$s/$$module_srcdir/configure \
26287 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26288 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26289 --target=${target_alias} \
2a4cbe27 26290 || exit 1
a90ef4bf 26291@endif texinfo
2a4cbe27 26292
a7254363
PB
26293
26294
d545f33b
PB
26295
26296
a90ef4bf
JM
26297.PHONY: all-texinfo maybe-all-texinfo
26298maybe-all-texinfo:
4f0ef2d8 26299@if gcc-bootstrap
a90ef4bf 26300all-texinfo: stage_current
4f0ef2d8 26301@endif gcc-bootstrap
a90ef4bf
JM
26302@if texinfo
26303TARGET-texinfo=all
26304maybe-all-texinfo: all-texinfo
26305all-texinfo: configure-texinfo
0aed8855 26306 @: $(MAKE); $(unstage)
4fa63067
NN
26307 @r=`${PWD_COMMAND}`; export r; \
26308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26309 $(HOST_EXPORTS) \
a90ef4bf 26310 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26311 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26312 $(TARGET-texinfo))
26313@endif texinfo
4fa63067 26314
a7254363 26315
d545f33b
PB
26316
26317
a90ef4bf
JM
26318.PHONY: check-texinfo maybe-check-texinfo
26319maybe-check-texinfo:
26320@if texinfo
26321maybe-check-texinfo: check-texinfo
2a4cbe27 26322
a90ef4bf 26323check-texinfo:
0aed8855 26324 @: $(MAKE); $(unstage)
4fa63067
NN
26325 @r=`${PWD_COMMAND}`; export r; \
26326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26327 $(HOST_EXPORTS) \
a90ef4bf 26328 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26329 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26330
a90ef4bf 26331@endif texinfo
4fa63067 26332
a90ef4bf
JM
26333.PHONY: install-texinfo maybe-install-texinfo
26334maybe-install-texinfo:
26335@if texinfo
26336maybe-install-texinfo: install-texinfo
4fa63067 26337
a90ef4bf 26338install-texinfo:
4fa63067 26339
a90ef4bf 26340@endif texinfo
4fa63067 26341
a90ef4bf
JM
26342.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26343maybe-install-strip-texinfo:
26344@if texinfo
26345maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26346
a90ef4bf 26347install-strip-texinfo:
9b980aa1 26348
a90ef4bf 26349@endif texinfo
9b980aa1 26350
56a8fe78 26351# Other targets (info, dvi, pdf, etc.)
4fa63067 26352
a90ef4bf
JM
26353.PHONY: maybe-info-texinfo info-texinfo
26354maybe-info-texinfo:
26355@if texinfo
26356maybe-info-texinfo: info-texinfo
4fa63067 26357
a90ef4bf
JM
26358info-texinfo: \
26359 configure-texinfo
0aed8855 26360 @: $(MAKE); $(unstage)
a90ef4bf 26361 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26362 r=`${PWD_COMMAND}`; export r; \
26363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26364 $(HOST_EXPORTS) \
b813574b 26365 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26367 done; \
a90ef4bf
JM
26368 echo "Doing info in texinfo" ; \
26369 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26372 "RANLIB=$${RANLIB}" \
0c24b341 26373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26374 info) \
2a4cbe27
NN
26375 || exit 1
26376
a90ef4bf 26377@endif texinfo
2a4cbe27 26378
a90ef4bf
JM
26379.PHONY: maybe-dvi-texinfo dvi-texinfo
26380maybe-dvi-texinfo:
26381@if texinfo
26382maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26383
a90ef4bf
JM
26384dvi-texinfo: \
26385 configure-texinfo
0aed8855 26386 @: $(MAKE); $(unstage)
a90ef4bf 26387 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26388 r=`${PWD_COMMAND}`; export r; \
26389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26390 $(HOST_EXPORTS) \
b813574b 26391 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26393 done; \
a90ef4bf
JM
26394 echo "Doing dvi in texinfo" ; \
26395 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26398 "RANLIB=$${RANLIB}" \
0c24b341 26399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26400 dvi) \
2a4cbe27
NN
26401 || exit 1
26402
a90ef4bf 26403@endif texinfo
2a4cbe27 26404
a90ef4bf
JM
26405.PHONY: maybe-pdf-texinfo pdf-texinfo
26406maybe-pdf-texinfo:
26407@if texinfo
26408maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26409
a90ef4bf
JM
26410pdf-texinfo: \
26411 configure-texinfo
56a8fe78 26412 @: $(MAKE); $(unstage)
a90ef4bf 26413 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26414 r=`${PWD_COMMAND}`; export r; \
26415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26416 $(HOST_EXPORTS) \
26417 for flag in $(EXTRA_HOST_FLAGS) ; do \
26418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26419 done; \
a90ef4bf
JM
26420 echo "Doing pdf in texinfo" ; \
26421 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26424 "RANLIB=$${RANLIB}" \
0c24b341 26425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26426 pdf) \
26427 || exit 1
26428
a90ef4bf 26429@endif texinfo
56a8fe78 26430
a90ef4bf
JM
26431.PHONY: maybe-html-texinfo html-texinfo
26432maybe-html-texinfo:
26433@if texinfo
26434maybe-html-texinfo: html-texinfo
6d389afc 26435
a90ef4bf
JM
26436html-texinfo: \
26437 configure-texinfo
0aed8855 26438 @: $(MAKE); $(unstage)
a90ef4bf 26439 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26440 r=`${PWD_COMMAND}`; export r; \
26441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26442 $(HOST_EXPORTS) \
26443 for flag in $(EXTRA_HOST_FLAGS) ; do \
26444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26445 done; \
a90ef4bf
JM
26446 echo "Doing html in texinfo" ; \
26447 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26450 "RANLIB=$${RANLIB}" \
0c24b341 26451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26452 html) \
26453 || exit 1
26454
a90ef4bf 26455@endif texinfo
6d389afc 26456
a90ef4bf
JM
26457.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26458maybe-TAGS-texinfo:
26459@if texinfo
26460maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 26461
a90ef4bf
JM
26462TAGS-texinfo: \
26463 configure-texinfo
0aed8855 26464 @: $(MAKE); $(unstage)
a90ef4bf 26465 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26466 r=`${PWD_COMMAND}`; export r; \
26467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26468 $(HOST_EXPORTS) \
b813574b 26469 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26471 done; \
a90ef4bf
JM
26472 echo "Doing TAGS in texinfo" ; \
26473 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26476 "RANLIB=$${RANLIB}" \
0c24b341 26477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26478 TAGS) \
2a4cbe27
NN
26479 || exit 1
26480
a90ef4bf 26481@endif texinfo
2a4cbe27 26482
a90ef4bf
JM
26483.PHONY: maybe-install-info-texinfo install-info-texinfo
26484maybe-install-info-texinfo:
26485@if texinfo
26486maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 26487
a90ef4bf
JM
26488install-info-texinfo: \
26489 configure-texinfo \
26490 info-texinfo
0aed8855 26491 @: $(MAKE); $(unstage)
a90ef4bf 26492 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26493 r=`${PWD_COMMAND}`; export r; \
26494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26495 $(HOST_EXPORTS) \
b813574b 26496 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26498 done; \
a90ef4bf
JM
26499 echo "Doing install-info in texinfo" ; \
26500 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26503 "RANLIB=$${RANLIB}" \
0c24b341 26504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26505 install-info) \
2a4cbe27
NN
26506 || exit 1
26507
a90ef4bf 26508@endif texinfo
2a4cbe27 26509
a90ef4bf
JM
26510.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
26511maybe-install-pdf-texinfo:
26512@if texinfo
26513maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 26514
a90ef4bf
JM
26515install-pdf-texinfo: \
26516 configure-texinfo \
26517 pdf-texinfo
a3ca38d2 26518 @: $(MAKE); $(unstage)
a90ef4bf 26519 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
26520 r=`${PWD_COMMAND}`; export r; \
26521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26522 $(HOST_EXPORTS) \
26523 for flag in $(EXTRA_HOST_FLAGS) ; do \
26524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26525 done; \
a90ef4bf
JM
26526 echo "Doing install-pdf in texinfo" ; \
26527 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
26528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26530 "RANLIB=$${RANLIB}" \
0c24b341 26531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26532 install-pdf) \
26533 || exit 1
26534
a90ef4bf 26535@endif texinfo
a3ca38d2 26536
a90ef4bf
JM
26537.PHONY: maybe-install-html-texinfo install-html-texinfo
26538maybe-install-html-texinfo:
26539@if texinfo
26540maybe-install-html-texinfo: install-html-texinfo
108a6f8e 26541
a90ef4bf
JM
26542install-html-texinfo: \
26543 configure-texinfo \
26544 html-texinfo
108a6f8e 26545 @: $(MAKE); $(unstage)
a90ef4bf 26546 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
26547 r=`${PWD_COMMAND}`; export r; \
26548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26549 $(HOST_EXPORTS) \
26550 for flag in $(EXTRA_HOST_FLAGS) ; do \
26551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26552 done; \
a90ef4bf
JM
26553 echo "Doing install-html in texinfo" ; \
26554 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
26555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26557 "RANLIB=$${RANLIB}" \
0c24b341 26558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26559 install-html) \
26560 || exit 1
26561
a90ef4bf 26562@endif texinfo
108a6f8e 26563
a90ef4bf
JM
26564.PHONY: maybe-installcheck-texinfo installcheck-texinfo
26565maybe-installcheck-texinfo:
26566@if texinfo
26567maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 26568
a90ef4bf
JM
26569installcheck-texinfo: \
26570 configure-texinfo
0aed8855 26571 @: $(MAKE); $(unstage)
a90ef4bf 26572 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26573 r=`${PWD_COMMAND}`; export r; \
26574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26575 $(HOST_EXPORTS) \
b813574b 26576 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26578 done; \
a90ef4bf
JM
26579 echo "Doing installcheck in texinfo" ; \
26580 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26583 "RANLIB=$${RANLIB}" \
0c24b341 26584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26585 installcheck) \
2a4cbe27
NN
26586 || exit 1
26587
a90ef4bf 26588@endif texinfo
2a4cbe27 26589
a90ef4bf
JM
26590.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
26591maybe-mostlyclean-texinfo:
26592@if texinfo
26593maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 26594
a90ef4bf 26595mostlyclean-texinfo:
0aed8855 26596 @: $(MAKE); $(unstage)
a90ef4bf 26597 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26598 r=`${PWD_COMMAND}`; export r; \
26599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26600 $(HOST_EXPORTS) \
b813574b 26601 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26603 done; \
a90ef4bf
JM
26604 echo "Doing mostlyclean in texinfo" ; \
26605 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26608 "RANLIB=$${RANLIB}" \
0c24b341 26609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 26610 mostlyclean) \
2a4cbe27
NN
26611 || exit 1
26612
a90ef4bf 26613@endif texinfo
2a4cbe27 26614
a90ef4bf
JM
26615.PHONY: maybe-clean-texinfo clean-texinfo
26616maybe-clean-texinfo:
26617@if texinfo
26618maybe-clean-texinfo: clean-texinfo
2a4cbe27 26619
a90ef4bf 26620clean-texinfo:
0aed8855 26621 @: $(MAKE); $(unstage)
a90ef4bf 26622 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26623 r=`${PWD_COMMAND}`; export r; \
26624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26625 $(HOST_EXPORTS) \
b813574b 26626 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26628 done; \
a90ef4bf
JM
26629 echo "Doing clean in texinfo" ; \
26630 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26633 "RANLIB=$${RANLIB}" \
0c24b341 26634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 26635 clean) \
2a4cbe27
NN
26636 || exit 1
26637
a90ef4bf 26638@endif texinfo
2a4cbe27 26639
a90ef4bf
JM
26640.PHONY: maybe-distclean-texinfo distclean-texinfo
26641maybe-distclean-texinfo:
26642@if texinfo
26643maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 26644
a90ef4bf 26645distclean-texinfo:
0aed8855 26646 @: $(MAKE); $(unstage)
a90ef4bf 26647 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26648 r=`${PWD_COMMAND}`; export r; \
26649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26650 $(HOST_EXPORTS) \
b813574b 26651 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26653 done; \
a90ef4bf
JM
26654 echo "Doing distclean in texinfo" ; \
26655 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26658 "RANLIB=$${RANLIB}" \
0c24b341 26659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 26660 distclean) \
2a4cbe27
NN
26661 || exit 1
26662
a90ef4bf 26663@endif texinfo
2a4cbe27 26664
a90ef4bf
JM
26665.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
26666maybe-maintainer-clean-texinfo:
26667@if texinfo
26668maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 26669
a90ef4bf 26670maintainer-clean-texinfo:
0aed8855 26671 @: $(MAKE); $(unstage)
a90ef4bf 26672 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26673 r=`${PWD_COMMAND}`; export r; \
26674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26675 $(HOST_EXPORTS) \
b813574b 26676 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26678 done; \
a90ef4bf
JM
26679 echo "Doing maintainer-clean in texinfo" ; \
26680 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26683 "RANLIB=$${RANLIB}" \
0c24b341 26684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26685 maintainer-clean) \
2a4cbe27
NN
26686 || exit 1
26687
a90ef4bf 26688@endif texinfo
2a4cbe27 26689
2a4cbe27 26690
a7254363 26691
a90ef4bf
JM
26692.PHONY: configure-zlib maybe-configure-zlib
26693maybe-configure-zlib:
4f0ef2d8 26694@if gcc-bootstrap
a90ef4bf 26695configure-zlib: stage_current
4f0ef2d8 26696@endif gcc-bootstrap
a90ef4bf
JM
26697@if zlib
26698maybe-configure-zlib: configure-zlib
26699configure-zlib:
c52c6897
PB
26700 @r=`${PWD_COMMAND}`; export r; \
26701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26702 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
26703 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
1f53ca9a 26704 $(HOST_EXPORTS) \
a90ef4bf
JM
26705 echo Configuring in $(HOST_SUBDIR)/zlib; \
26706 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 26707 case $(srcdir) in \
b00612cc 26708 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26709 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 26710 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 26711 esac; \
1b6c0831
L
26712 module_srcdir=zlib; \
26713 $(SHELL) \
26714 $$s/$$module_srcdir/configure \
26715 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26716 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26717 --target=${target_alias} \
04cf1b77 26718 || exit 1
a90ef4bf 26719@endif zlib
04cf1b77 26720
a7254363
PB
26721
26722
a90ef4bf
JM
26723.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
26724maybe-configure-stage1-zlib:
26725@if zlib-bootstrap
26726maybe-configure-stage1-zlib: configure-stage1-zlib
26727configure-stage1-zlib:
c52c6897 26728 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 26729 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26730 @r=`${PWD_COMMAND}`; export r; \
26731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26732 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 26733 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 26734 $(HOST_EXPORTS) \
8ee82aff 26735 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26736 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
26737 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26738 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
26739 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26740 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26741 case $(srcdir) in \
26742 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26743 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26744 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26745 esac; \
1b6c0831
L
26746 module_srcdir=zlib; \
26747 $(SHELL) $$s/$$module_srcdir/configure \
26748 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26749 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26750 --target=${target_alias} \
26751 \
1b05fbbd 26752 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 26753@endif zlib-bootstrap
d545f33b 26754
a90ef4bf
JM
26755.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
26756maybe-configure-stage2-zlib:
26757@if zlib-bootstrap
26758maybe-configure-stage2-zlib: configure-stage2-zlib
26759configure-stage2-zlib:
c52c6897 26760 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 26761 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26762 @r=`${PWD_COMMAND}`; export r; \
26763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26764 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 26765 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26766 $(HOST_EXPORTS) \
1b05fbbd 26767 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26768 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26769 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
26770 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26771 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
26772 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26773 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26774 case $(srcdir) in \
26775 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26776 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26777 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26778 esac; \
1b6c0831
L
26779 module_srcdir=zlib; \
26780 $(SHELL) $$s/$$module_srcdir/configure \
26781 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26782 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26783 --target=${target_alias} \
26784 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26785 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 26786@endif zlib-bootstrap
8520c408 26787
a90ef4bf
JM
26788.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
26789maybe-configure-stage3-zlib:
26790@if zlib-bootstrap
26791maybe-configure-stage3-zlib: configure-stage3-zlib
26792configure-stage3-zlib:
c52c6897 26793 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 26794 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26795 @r=`${PWD_COMMAND}`; export r; \
26796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26797 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 26798 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26799 $(HOST_EXPORTS) \
1b05fbbd 26800 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26801 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26802 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
26803 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26804 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
26805 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26806 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26807 case $(srcdir) in \
26808 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26809 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26810 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26811 esac; \
1b6c0831
L
26812 module_srcdir=zlib; \
26813 $(SHELL) $$s/$$module_srcdir/configure \
26814 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26815 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26816 --target=${target_alias} \
26817 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26818 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 26819@endif zlib-bootstrap
8520c408 26820
a90ef4bf
JM
26821.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
26822maybe-configure-stage4-zlib:
26823@if zlib-bootstrap
26824maybe-configure-stage4-zlib: configure-stage4-zlib
26825configure-stage4-zlib:
c52c6897 26826 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 26827 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26828 @r=`${PWD_COMMAND}`; export r; \
26829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26830 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 26831 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26832 $(HOST_EXPORTS) \
1b05fbbd 26833 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26834 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26835 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
26836 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26837 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
26838 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26839 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26840 case $(srcdir) in \
26841 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26842 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26843 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26844 esac; \
1b6c0831
L
26845 module_srcdir=zlib; \
26846 $(SHELL) $$s/$$module_srcdir/configure \
26847 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26848 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26849 --target=${target_alias} \
26850 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26851 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 26852@endif zlib-bootstrap
d545f33b 26853
a90ef4bf
JM
26854.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
26855maybe-configure-stageprofile-zlib:
26856@if zlib-bootstrap
26857maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
26858configure-stageprofile-zlib:
c52c6897 26859 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 26860 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26861 @r=`${PWD_COMMAND}`; export r; \
26862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26863 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 26864 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26865 $(HOST_EXPORTS) \
1b05fbbd
AO
26866 $(POSTSTAGE1_HOST_EXPORTS) \
26867 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26868 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
26869 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26870 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
26871 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26872 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26873 case $(srcdir) in \
26874 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26875 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26876 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26877 esac; \
1b6c0831
L
26878 module_srcdir=zlib; \
26879 $(SHELL) $$s/$$module_srcdir/configure \
26880 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26881 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26882 --target=${target_alias} \
26883 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26884 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 26885@endif zlib-bootstrap
d545f33b 26886
a90ef4bf
JM
26887.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
26888maybe-configure-stagefeedback-zlib:
26889@if zlib-bootstrap
26890maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
26891configure-stagefeedback-zlib:
c52c6897 26892 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 26893 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26894 @r=`${PWD_COMMAND}`; export r; \
26895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26896 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 26897 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26898 $(HOST_EXPORTS) \
1b05fbbd
AO
26899 $(POSTSTAGE1_HOST_EXPORTS) \
26900 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26901 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
26902 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26903 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
26904 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26905 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26906 case $(srcdir) in \
26907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26908 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26910 esac; \
1b6c0831
L
26911 module_srcdir=zlib; \
26912 $(SHELL) $$s/$$module_srcdir/configure \
26913 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26914 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26915 --target=${target_alias} \
26916 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26917 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 26918@endif zlib-bootstrap
d545f33b
PB
26919
26920
26921
26922
26923
a90ef4bf
JM
26924.PHONY: all-zlib maybe-all-zlib
26925maybe-all-zlib:
4f0ef2d8 26926@if gcc-bootstrap
a90ef4bf 26927all-zlib: stage_current
4f0ef2d8 26928@endif gcc-bootstrap
a90ef4bf
JM
26929@if zlib
26930TARGET-zlib=all
26931maybe-all-zlib: all-zlib
26932all-zlib: configure-zlib
c52c6897 26933 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 26934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26935 $(HOST_EXPORTS) \
a90ef4bf 26936 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 26937 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26938 $(TARGET-zlib))
26939@endif zlib
04cf1b77 26940
a7254363 26941
d545f33b 26942
a90ef4bf
JM
26943.PHONY: all-stage1-zlib maybe-all-stage1-zlib
26944.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
26945maybe-all-stage1-zlib:
26946maybe-clean-stage1-zlib:
26947@if zlib-bootstrap
26948maybe-all-stage1-zlib: all-stage1-zlib
26949all-stage1: all-stage1-zlib
26950TARGET-stage1-zlib = $(TARGET-zlib)
26951all-stage1-zlib: configure-stage1-zlib
c52c6897 26952 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
26953 @r=`${PWD_COMMAND}`; export r; \
26954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26955 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 26956 $(HOST_EXPORTS) \
a90ef4bf 26957 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26958 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26959 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 26960 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
26961 LIBCFLAGS="$(LIBCFLAGS)" \
26962 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26963 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26964 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
26965 $(EXTRA_HOST_FLAGS) \
26966 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 26967 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 26968 $(TARGET-stage1-zlib)
d545f33b 26969
a90ef4bf
JM
26970maybe-clean-stage1-zlib: clean-stage1-zlib
26971clean-stage1: clean-stage1-zlib
26972clean-stage1-zlib:
9dbaa842 26973 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 26974 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26975 else \
a90ef4bf 26976 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26977 $(MAKE) stage1-start; \
26978 fi; \
a90ef4bf 26979 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26980 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 26981 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26982@endif zlib-bootstrap
d545f33b
PB
26983
26984
a90ef4bf
JM
26985.PHONY: all-stage2-zlib maybe-all-stage2-zlib
26986.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
26987maybe-all-stage2-zlib:
26988maybe-clean-stage2-zlib:
26989@if zlib-bootstrap
26990maybe-all-stage2-zlib: all-stage2-zlib
26991all-stage2: all-stage2-zlib
26992TARGET-stage2-zlib = $(TARGET-zlib)
26993all-stage2-zlib: configure-stage2-zlib
c52c6897 26994 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
26995 @r=`${PWD_COMMAND}`; export r; \
26996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26997 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 26998 $(HOST_EXPORTS) \
1f53ca9a 26999 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27000 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27001 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27002 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27003 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27004 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27005 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27006 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27007 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27008 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27009 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27010 $(TARGET-stage2-zlib)
d545f33b 27011
a90ef4bf
JM
27012maybe-clean-stage2-zlib: clean-stage2-zlib
27013clean-stage2: clean-stage2-zlib
27014clean-stage2-zlib:
9dbaa842 27015 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27016 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27017 else \
a90ef4bf 27018 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27019 $(MAKE) stage2-start; \
27020 fi; \
a90ef4bf 27021 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27022 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27023@endif zlib-bootstrap
d545f33b
PB
27024
27025
a90ef4bf
JM
27026.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27027.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27028maybe-all-stage3-zlib:
27029maybe-clean-stage3-zlib:
27030@if zlib-bootstrap
27031maybe-all-stage3-zlib: all-stage3-zlib
27032all-stage3: all-stage3-zlib
27033TARGET-stage3-zlib = $(TARGET-zlib)
27034all-stage3-zlib: configure-stage3-zlib
c52c6897 27035 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27036 @r=`${PWD_COMMAND}`; export r; \
27037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27038 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27039 $(HOST_EXPORTS) \
1f53ca9a 27040 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27041 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27042 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27043 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27044 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27045 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27046 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27047 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27048 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27049 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27050 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27051 $(TARGET-stage3-zlib)
d545f33b 27052
a90ef4bf
JM
27053maybe-clean-stage3-zlib: clean-stage3-zlib
27054clean-stage3: clean-stage3-zlib
27055clean-stage3-zlib:
9dbaa842 27056 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27057 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27058 else \
a90ef4bf 27059 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27060 $(MAKE) stage3-start; \
27061 fi; \
a90ef4bf 27062 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27063 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27064@endif zlib-bootstrap
d545f33b
PB
27065
27066
a90ef4bf
JM
27067.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27068.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27069maybe-all-stage4-zlib:
27070maybe-clean-stage4-zlib:
27071@if zlib-bootstrap
27072maybe-all-stage4-zlib: all-stage4-zlib
27073all-stage4: all-stage4-zlib
27074TARGET-stage4-zlib = $(TARGET-zlib)
27075all-stage4-zlib: configure-stage4-zlib
c52c6897 27076 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27077 @r=`${PWD_COMMAND}`; export r; \
27078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27079 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27080 $(HOST_EXPORTS) \
1f53ca9a 27081 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27082 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27083 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27084 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27085 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27086 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27087 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27088 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27089 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27090 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27091 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27092 $(TARGET-stage4-zlib)
d545f33b 27093
a90ef4bf
JM
27094maybe-clean-stage4-zlib: clean-stage4-zlib
27095clean-stage4: clean-stage4-zlib
27096clean-stage4-zlib:
9dbaa842 27097 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27098 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27099 else \
a90ef4bf 27100 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27101 $(MAKE) stage4-start; \
27102 fi; \
a90ef4bf 27103 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27104 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27105@endif zlib-bootstrap
d545f33b
PB
27106
27107
a90ef4bf
JM
27108.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27109.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27110maybe-all-stageprofile-zlib:
27111maybe-clean-stageprofile-zlib:
27112@if zlib-bootstrap
27113maybe-all-stageprofile-zlib: all-stageprofile-zlib
27114all-stageprofile: all-stageprofile-zlib
27115TARGET-stageprofile-zlib = $(TARGET-zlib)
27116all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27117 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27118 @r=`${PWD_COMMAND}`; export r; \
27119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27120 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27121 $(HOST_EXPORTS) \
1f53ca9a 27122 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27123 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27124 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27125 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27126 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27127 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27128 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27129 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27130 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27131 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27132 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27133 $(TARGET-stageprofile-zlib)
d545f33b 27134
a90ef4bf
JM
27135maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27136clean-stageprofile: clean-stageprofile-zlib
27137clean-stageprofile-zlib:
9dbaa842 27138 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27139 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27140 else \
a90ef4bf 27141 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27142 $(MAKE) stageprofile-start; \
27143 fi; \
a90ef4bf 27144 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27145 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27146@endif zlib-bootstrap
d545f33b
PB
27147
27148
a90ef4bf
JM
27149.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27150.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27151maybe-all-stagefeedback-zlib:
27152maybe-clean-stagefeedback-zlib:
27153@if zlib-bootstrap
27154maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27155all-stagefeedback: all-stagefeedback-zlib
27156TARGET-stagefeedback-zlib = $(TARGET-zlib)
27157all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27158 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27159 @r=`${PWD_COMMAND}`; export r; \
27160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27161 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27162 $(HOST_EXPORTS) \
1f53ca9a 27163 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27164 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27165 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27166 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27167 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27168 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27169 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27170 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27171 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27172 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27173 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27174 $(TARGET-stagefeedback-zlib)
d545f33b 27175
a90ef4bf
JM
27176maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27177clean-stagefeedback: clean-stagefeedback-zlib
27178clean-stagefeedback-zlib:
9dbaa842 27179 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27180 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27181 else \
a90ef4bf 27182 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27183 $(MAKE) stagefeedback-start; \
27184 fi; \
a90ef4bf 27185 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27186 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27187@endif zlib-bootstrap
d545f33b
PB
27188
27189
27190
27191
27192
a90ef4bf
JM
27193.PHONY: check-zlib maybe-check-zlib
27194maybe-check-zlib:
27195@if zlib
27196maybe-check-zlib: check-zlib
04cf1b77 27197
a90ef4bf 27198check-zlib:
04cf1b77 27199
a90ef4bf 27200@endif zlib
04cf1b77 27201
a90ef4bf
JM
27202.PHONY: install-zlib maybe-install-zlib
27203maybe-install-zlib:
27204@if zlib
27205maybe-install-zlib: install-zlib
04cf1b77 27206
a90ef4bf 27207install-zlib:
04cf1b77 27208
a90ef4bf 27209@endif zlib
04cf1b77 27210
a90ef4bf
JM
27211.PHONY: install-strip-zlib maybe-install-strip-zlib
27212maybe-install-strip-zlib:
27213@if zlib
27214maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27215
a90ef4bf 27216install-strip-zlib:
9b980aa1 27217
a90ef4bf 27218@endif zlib
9b980aa1 27219
56a8fe78 27220# Other targets (info, dvi, pdf, etc.)
04cf1b77 27221
a90ef4bf
JM
27222.PHONY: maybe-info-zlib info-zlib
27223maybe-info-zlib:
27224@if zlib
27225maybe-info-zlib: info-zlib
04cf1b77 27226
a90ef4bf
JM
27227info-zlib: \
27228 configure-zlib
27229 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27230 r=`${PWD_COMMAND}`; export r; \
27231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27232 $(HOST_EXPORTS) \
b813574b 27233 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27235 done; \
a90ef4bf
JM
27236 echo "Doing info in zlib" ; \
27237 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27240 "RANLIB=$${RANLIB}" \
0c24b341 27241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27242 info) \
04cf1b77
PB
27243 || exit 1
27244
a90ef4bf 27245@endif zlib
04cf1b77 27246
a90ef4bf
JM
27247.PHONY: maybe-dvi-zlib dvi-zlib
27248maybe-dvi-zlib:
27249@if zlib
27250maybe-dvi-zlib: dvi-zlib
04cf1b77 27251
a90ef4bf
JM
27252dvi-zlib: \
27253 configure-zlib
27254 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27255 r=`${PWD_COMMAND}`; export r; \
27256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27257 $(HOST_EXPORTS) \
b813574b 27258 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27260 done; \
a90ef4bf
JM
27261 echo "Doing dvi in zlib" ; \
27262 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27265 "RANLIB=$${RANLIB}" \
0c24b341 27266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27267 dvi) \
04cf1b77
PB
27268 || exit 1
27269
a90ef4bf 27270@endif zlib
04cf1b77 27271
a90ef4bf
JM
27272.PHONY: maybe-pdf-zlib pdf-zlib
27273maybe-pdf-zlib:
27274@if zlib
27275maybe-pdf-zlib: pdf-zlib
56a8fe78 27276
a90ef4bf
JM
27277pdf-zlib: \
27278 configure-zlib
27279 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27280 r=`${PWD_COMMAND}`; export r; \
27281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27282 $(HOST_EXPORTS) \
27283 for flag in $(EXTRA_HOST_FLAGS) ; do \
27284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27285 done; \
a90ef4bf
JM
27286 echo "Doing pdf in zlib" ; \
27287 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27290 "RANLIB=$${RANLIB}" \
0c24b341 27291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27292 pdf) \
27293 || exit 1
27294
a90ef4bf 27295@endif zlib
56a8fe78 27296
a90ef4bf
JM
27297.PHONY: maybe-html-zlib html-zlib
27298maybe-html-zlib:
27299@if zlib
27300maybe-html-zlib: html-zlib
6d389afc 27301
a90ef4bf
JM
27302html-zlib: \
27303 configure-zlib
27304 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27305 r=`${PWD_COMMAND}`; export r; \
27306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27307 $(HOST_EXPORTS) \
27308 for flag in $(EXTRA_HOST_FLAGS) ; do \
27309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27310 done; \
a90ef4bf
JM
27311 echo "Doing html in zlib" ; \
27312 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27315 "RANLIB=$${RANLIB}" \
0c24b341 27316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27317 html) \
27318 || exit 1
27319
a90ef4bf 27320@endif zlib
6d389afc 27321
a90ef4bf
JM
27322.PHONY: maybe-TAGS-zlib TAGS-zlib
27323maybe-TAGS-zlib:
27324@if zlib
27325maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27326
a90ef4bf
JM
27327TAGS-zlib: \
27328 configure-zlib
27329 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27330 r=`${PWD_COMMAND}`; export r; \
27331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27332 $(HOST_EXPORTS) \
b813574b 27333 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27335 done; \
a90ef4bf
JM
27336 echo "Doing TAGS in zlib" ; \
27337 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27340 "RANLIB=$${RANLIB}" \
0c24b341 27341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27342 TAGS) \
04cf1b77
PB
27343 || exit 1
27344
a90ef4bf 27345@endif zlib
04cf1b77 27346
a90ef4bf
JM
27347.PHONY: maybe-install-info-zlib install-info-zlib
27348maybe-install-info-zlib:
27349@if zlib
27350maybe-install-info-zlib: install-info-zlib
04cf1b77 27351
a90ef4bf
JM
27352install-info-zlib: \
27353 configure-zlib \
27354 info-zlib
27355 @[ -f ./zlib/Makefile ] || exit 0; \
27356 r=`${PWD_COMMAND}`; export r; \
27357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27358 $(HOST_EXPORTS) \
b813574b 27359 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27361 done; \
a90ef4bf
JM
27362 echo "Doing install-info in zlib" ; \
27363 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27366 "RANLIB=$${RANLIB}" \
0c24b341 27367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27368 install-info) \
04cf1b77
PB
27369 || exit 1
27370
a90ef4bf 27371@endif zlib
04cf1b77 27372
a90ef4bf
JM
27373.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27374maybe-install-pdf-zlib:
27375@if zlib
27376maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27377
a90ef4bf
JM
27378install-pdf-zlib: \
27379 configure-zlib \
27380 pdf-zlib
27381 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27382 r=`${PWD_COMMAND}`; export r; \
27383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27384 $(HOST_EXPORTS) \
27385 for flag in $(EXTRA_HOST_FLAGS) ; do \
27386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27387 done; \
a90ef4bf
JM
27388 echo "Doing install-pdf in zlib" ; \
27389 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27392 "RANLIB=$${RANLIB}" \
0c24b341 27393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27394 install-pdf) \
27395 || exit 1
27396
a90ef4bf 27397@endif zlib
a3ca38d2 27398
a90ef4bf
JM
27399.PHONY: maybe-install-html-zlib install-html-zlib
27400maybe-install-html-zlib:
27401@if zlib
27402maybe-install-html-zlib: install-html-zlib
108a6f8e 27403
a90ef4bf
JM
27404install-html-zlib: \
27405 configure-zlib \
27406 html-zlib
27407 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27408 r=`${PWD_COMMAND}`; export r; \
27409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27410 $(HOST_EXPORTS) \
27411 for flag in $(EXTRA_HOST_FLAGS) ; do \
27412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27413 done; \
a90ef4bf
JM
27414 echo "Doing install-html in zlib" ; \
27415 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27418 "RANLIB=$${RANLIB}" \
0c24b341 27419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27420 install-html) \
27421 || exit 1
27422
a90ef4bf 27423@endif zlib
108a6f8e 27424
a90ef4bf
JM
27425.PHONY: maybe-installcheck-zlib installcheck-zlib
27426maybe-installcheck-zlib:
27427@if zlib
27428maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27429
a90ef4bf
JM
27430installcheck-zlib: \
27431 configure-zlib
27432 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27433 r=`${PWD_COMMAND}`; export r; \
27434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27435 $(HOST_EXPORTS) \
b813574b 27436 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27438 done; \
a90ef4bf
JM
27439 echo "Doing installcheck in zlib" ; \
27440 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27443 "RANLIB=$${RANLIB}" \
0c24b341 27444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27445 installcheck) \
04cf1b77
PB
27446 || exit 1
27447
a90ef4bf 27448@endif zlib
04cf1b77 27449
a90ef4bf
JM
27450.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
27451maybe-mostlyclean-zlib:
27452@if zlib
27453maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 27454
a90ef4bf
JM
27455mostlyclean-zlib:
27456 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27457 r=`${PWD_COMMAND}`; export r; \
27458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27459 $(HOST_EXPORTS) \
b813574b 27460 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27462 done; \
a90ef4bf
JM
27463 echo "Doing mostlyclean in zlib" ; \
27464 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27467 "RANLIB=$${RANLIB}" \
0c24b341 27468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27469 mostlyclean) \
04cf1b77
PB
27470 || exit 1
27471
a90ef4bf 27472@endif zlib
04cf1b77 27473
a90ef4bf
JM
27474.PHONY: maybe-clean-zlib clean-zlib
27475maybe-clean-zlib:
27476@if zlib
27477maybe-clean-zlib: clean-zlib
04cf1b77 27478
a90ef4bf
JM
27479clean-zlib:
27480 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27481 r=`${PWD_COMMAND}`; export r; \
27482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27483 $(HOST_EXPORTS) \
b813574b 27484 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27486 done; \
a90ef4bf
JM
27487 echo "Doing clean in zlib" ; \
27488 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27491 "RANLIB=$${RANLIB}" \
0c24b341 27492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27493 clean) \
04cf1b77
PB
27494 || exit 1
27495
a90ef4bf 27496@endif zlib
04cf1b77 27497
a90ef4bf
JM
27498.PHONY: maybe-distclean-zlib distclean-zlib
27499maybe-distclean-zlib:
27500@if zlib
27501maybe-distclean-zlib: distclean-zlib
04cf1b77 27502
a90ef4bf
JM
27503distclean-zlib:
27504 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27505 r=`${PWD_COMMAND}`; export r; \
27506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27507 $(HOST_EXPORTS) \
b813574b 27508 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27510 done; \
a90ef4bf
JM
27511 echo "Doing distclean in zlib" ; \
27512 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27515 "RANLIB=$${RANLIB}" \
0c24b341 27516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27517 distclean) \
04cf1b77
PB
27518 || exit 1
27519
a90ef4bf 27520@endif zlib
04cf1b77 27521
a90ef4bf
JM
27522.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
27523maybe-maintainer-clean-zlib:
27524@if zlib
27525maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 27526
a90ef4bf
JM
27527maintainer-clean-zlib:
27528 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27529 r=`${PWD_COMMAND}`; export r; \
27530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27531 $(HOST_EXPORTS) \
b813574b 27532 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27534 done; \
a90ef4bf
JM
27535 echo "Doing maintainer-clean in zlib" ; \
27536 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27539 "RANLIB=$${RANLIB}" \
0c24b341 27540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27541 maintainer-clean) \
04cf1b77
PB
27542 || exit 1
27543
a90ef4bf 27544@endif zlib
04cf1b77
PB
27545
27546
a7254363 27547
a90ef4bf
JM
27548.PHONY: configure-gdb maybe-configure-gdb
27549maybe-configure-gdb:
4f0ef2d8 27550@if gcc-bootstrap
a90ef4bf 27551configure-gdb: stage_current
4f0ef2d8 27552@endif gcc-bootstrap
a90ef4bf
JM
27553@if gdb
27554maybe-configure-gdb: configure-gdb
27555configure-gdb:
27556 @: $(MAKE); $(unstage)
c52c6897
PB
27557 @r=`${PWD_COMMAND}`; export r; \
27558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27559 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
27560 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
1f53ca9a 27561 $(HOST_EXPORTS) \
a90ef4bf
JM
27562 echo Configuring in $(HOST_SUBDIR)/gdb; \
27563 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 27564 case $(srcdir) in \
b00612cc 27565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27566 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 27567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 27568 esac; \
1b6c0831
L
27569 module_srcdir=gdb; \
27570 $(SHELL) \
27571 $$s/$$module_srcdir/configure \
27572 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27573 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27574 --target=${target_alias} \
4fa63067 27575 || exit 1
a90ef4bf 27576@endif gdb
4fa63067 27577
a7254363
PB
27578
27579
d545f33b 27580
8520c408 27581
a90ef4bf
JM
27582.PHONY: all-gdb maybe-all-gdb
27583maybe-all-gdb:
27584@if gcc-bootstrap
27585all-gdb: stage_current
27586@endif gcc-bootstrap
27587@if gdb
27588TARGET-gdb=all
27589maybe-all-gdb: all-gdb
27590all-gdb: configure-gdb
27591 @: $(MAKE); $(unstage)
c52c6897
PB
27592 @r=`${PWD_COMMAND}`; export r; \
27593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27594 $(HOST_EXPORTS) \
27595 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 27596 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27597 $(TARGET-gdb))
27598@endif gdb
8520c408 27599
a90ef4bf
JM
27600
27601
27602
27603.PHONY: check-gdb maybe-check-gdb
27604maybe-check-gdb:
27605@if gdb
27606maybe-check-gdb: check-gdb
27607
27608check-gdb:
27609 @: $(MAKE); $(unstage)
c52c6897
PB
27610 @r=`${PWD_COMMAND}`; export r; \
27611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 27612 $(HOST_EXPORTS) \
a90ef4bf
JM
27613 (cd $(HOST_SUBDIR)/gdb && \
27614 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 27615
a90ef4bf
JM
27616@endif gdb
27617
27618.PHONY: install-gdb maybe-install-gdb
27619maybe-install-gdb:
27620@if gdb
27621maybe-install-gdb: install-gdb
27622
27623install-gdb: installdirs
27624 @: $(MAKE); $(unstage)
c52c6897
PB
27625 @r=`${PWD_COMMAND}`; export r; \
27626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 27627 $(HOST_EXPORTS) \
a90ef4bf
JM
27628 (cd $(HOST_SUBDIR)/gdb && \
27629 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 27630
a90ef4bf
JM
27631@endif gdb
27632
27633.PHONY: install-strip-gdb maybe-install-strip-gdb
27634maybe-install-strip-gdb:
27635@if gdb
27636maybe-install-strip-gdb: install-strip-gdb
27637
27638install-strip-gdb: installdirs
27639 @: $(MAKE); $(unstage)
c52c6897
PB
27640 @r=`${PWD_COMMAND}`; export r; \
27641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 27642 $(HOST_EXPORTS) \
a90ef4bf
JM
27643 (cd $(HOST_SUBDIR)/gdb && \
27644 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 27645
a90ef4bf 27646@endif gdb
d545f33b 27647
a90ef4bf 27648# Other targets (info, dvi, pdf, etc.)
d545f33b 27649
a90ef4bf
JM
27650.PHONY: maybe-info-gdb info-gdb
27651maybe-info-gdb:
27652@if gdb
27653maybe-info-gdb: info-gdb
d545f33b 27654
a90ef4bf
JM
27655info-gdb: \
27656 configure-gdb
27657 @: $(MAKE); $(unstage)
27658 @[ -f ./gdb/Makefile ] || exit 0; \
27659 r=`${PWD_COMMAND}`; export r; \
4fa63067 27660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27661 $(HOST_EXPORTS) \
27662 for flag in $(EXTRA_HOST_FLAGS) ; do \
27663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27664 done; \
27665 echo "Doing info in gdb" ; \
27666 (cd $(HOST_SUBDIR)/gdb && \
27667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27669 "RANLIB=$${RANLIB}" \
27670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27671 info) \
27672 || exit 1
4fa63067 27673
a90ef4bf 27674@endif gdb
a7254363 27675
a90ef4bf
JM
27676.PHONY: maybe-dvi-gdb dvi-gdb
27677maybe-dvi-gdb:
27678@if gdb
27679maybe-dvi-gdb: dvi-gdb
d545f33b 27680
a90ef4bf
JM
27681dvi-gdb: \
27682 configure-gdb
27683 @: $(MAKE); $(unstage)
27684 @[ -f ./gdb/Makefile ] || exit 0; \
27685 r=`${PWD_COMMAND}`; export r; \
d545f33b 27686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27687 $(HOST_EXPORTS) \
27688 for flag in $(EXTRA_HOST_FLAGS) ; do \
27689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27690 done; \
27691 echo "Doing dvi in gdb" ; \
27692 (cd $(HOST_SUBDIR)/gdb && \
27693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27695 "RANLIB=$${RANLIB}" \
27696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27697 dvi) \
27698 || exit 1
d545f33b 27699
a90ef4bf 27700@endif gdb
d545f33b 27701
a90ef4bf
JM
27702.PHONY: maybe-pdf-gdb pdf-gdb
27703maybe-pdf-gdb:
27704@if gdb
27705maybe-pdf-gdb: pdf-gdb
d545f33b 27706
a90ef4bf
JM
27707pdf-gdb: \
27708 configure-gdb
9b980aa1 27709 @: $(MAKE); $(unstage)
a90ef4bf 27710 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27711 r=`${PWD_COMMAND}`; export r; \
27712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27713 $(HOST_EXPORTS) \
b813574b 27714 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27716 done; \
a90ef4bf
JM
27717 echo "Doing pdf in gdb" ; \
27718 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27721 "RANLIB=$${RANLIB}" \
0c24b341 27722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27723 pdf) \
2a4cbe27
NN
27724 || exit 1
27725
a90ef4bf 27726@endif gdb
2a4cbe27 27727
a90ef4bf
JM
27728.PHONY: maybe-html-gdb html-gdb
27729maybe-html-gdb:
27730@if gdb
27731maybe-html-gdb: html-gdb
2a4cbe27 27732
a90ef4bf
JM
27733html-gdb: \
27734 configure-gdb
27735 @: $(MAKE); $(unstage)
27736 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27737 r=`${PWD_COMMAND}`; export r; \
27738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27739 $(HOST_EXPORTS) \
b813574b 27740 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27742 done; \
a90ef4bf
JM
27743 echo "Doing html in gdb" ; \
27744 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27747 "RANLIB=$${RANLIB}" \
0c24b341 27748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27749 html) \
2a4cbe27
NN
27750 || exit 1
27751
a90ef4bf 27752@endif gdb
2a4cbe27 27753
a90ef4bf
JM
27754.PHONY: maybe-TAGS-gdb TAGS-gdb
27755maybe-TAGS-gdb:
27756@if gdb
27757maybe-TAGS-gdb: TAGS-gdb
56a8fe78 27758
a90ef4bf
JM
27759TAGS-gdb: \
27760 configure-gdb
27761 @: $(MAKE); $(unstage)
27762 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
27763 r=`${PWD_COMMAND}`; export r; \
27764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27765 $(HOST_EXPORTS) \
27766 for flag in $(EXTRA_HOST_FLAGS) ; do \
27767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27768 done; \
a90ef4bf
JM
27769 echo "Doing TAGS in gdb" ; \
27770 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
27771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27773 "RANLIB=$${RANLIB}" \
0c24b341 27774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27775 TAGS) \
56a8fe78
DD
27776 || exit 1
27777
a90ef4bf 27778@endif gdb
56a8fe78 27779
a90ef4bf
JM
27780.PHONY: maybe-install-info-gdb install-info-gdb
27781maybe-install-info-gdb:
27782@if gdb
27783maybe-install-info-gdb: install-info-gdb
6d389afc 27784
a90ef4bf
JM
27785install-info-gdb: \
27786 configure-gdb \
27787 info-gdb
27788 @: $(MAKE); $(unstage)
27789 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
27790 r=`${PWD_COMMAND}`; export r; \
27791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27792 $(HOST_EXPORTS) \
27793 for flag in $(EXTRA_HOST_FLAGS) ; do \
27794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27795 done; \
a90ef4bf
JM
27796 echo "Doing install-info in gdb" ; \
27797 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
27798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27800 "RANLIB=$${RANLIB}" \
0c24b341 27801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27802 install-info) \
6d389afc
MS
27803 || exit 1
27804
a90ef4bf 27805@endif gdb
6d389afc 27806
a90ef4bf
JM
27807.PHONY: maybe-install-pdf-gdb install-pdf-gdb
27808maybe-install-pdf-gdb:
27809@if gdb
27810maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 27811
a90ef4bf
JM
27812install-pdf-gdb: \
27813 configure-gdb \
27814 pdf-gdb
27815 @: $(MAKE); $(unstage)
27816 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27817 r=`${PWD_COMMAND}`; export r; \
27818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27819 $(HOST_EXPORTS) \
b813574b 27820 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27822 done; \
a90ef4bf
JM
27823 echo "Doing install-pdf in gdb" ; \
27824 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27827 "RANLIB=$${RANLIB}" \
0c24b341 27828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27829 install-pdf) \
2a4cbe27
NN
27830 || exit 1
27831
a90ef4bf 27832@endif gdb
2a4cbe27 27833
a90ef4bf
JM
27834.PHONY: maybe-install-html-gdb install-html-gdb
27835maybe-install-html-gdb:
27836@if gdb
27837maybe-install-html-gdb: install-html-gdb
2a4cbe27 27838
a90ef4bf
JM
27839install-html-gdb: \
27840 configure-gdb \
27841 html-gdb
27842 @: $(MAKE); $(unstage)
27843 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27844 r=`${PWD_COMMAND}`; export r; \
27845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27846 $(HOST_EXPORTS) \
b813574b 27847 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27849 done; \
a90ef4bf
JM
27850 echo "Doing install-html in gdb" ; \
27851 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27854 "RANLIB=$${RANLIB}" \
0c24b341 27855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27856 install-html) \
2a4cbe27
NN
27857 || exit 1
27858
a90ef4bf 27859@endif gdb
2a4cbe27 27860
a90ef4bf
JM
27861.PHONY: maybe-installcheck-gdb installcheck-gdb
27862maybe-installcheck-gdb:
27863@if gdb
27864maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 27865
a90ef4bf
JM
27866installcheck-gdb: \
27867 configure-gdb
27868 @: $(MAKE); $(unstage)
27869 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
27870 r=`${PWD_COMMAND}`; export r; \
27871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27872 $(HOST_EXPORTS) \
27873 for flag in $(EXTRA_HOST_FLAGS) ; do \
27874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27875 done; \
a90ef4bf
JM
27876 echo "Doing installcheck in gdb" ; \
27877 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
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}" \
a90ef4bf 27882 installcheck) \
a3ca38d2
DD
27883 || exit 1
27884
a90ef4bf 27885@endif gdb
a3ca38d2 27886
a90ef4bf
JM
27887.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
27888maybe-mostlyclean-gdb:
27889@if gdb
27890maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 27891
a90ef4bf
JM
27892mostlyclean-gdb:
27893 @: $(MAKE); $(unstage)
27894 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
27895 r=`${PWD_COMMAND}`; export r; \
27896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27897 $(HOST_EXPORTS) \
27898 for flag in $(EXTRA_HOST_FLAGS) ; do \
27899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27900 done; \
a90ef4bf
JM
27901 echo "Doing mostlyclean in gdb" ; \
27902 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
27903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27905 "RANLIB=$${RANLIB}" \
0c24b341 27906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27907 mostlyclean) \
108a6f8e
CD
27908 || exit 1
27909
a90ef4bf 27910@endif gdb
108a6f8e 27911
a90ef4bf
JM
27912.PHONY: maybe-clean-gdb clean-gdb
27913maybe-clean-gdb:
27914@if gdb
27915maybe-clean-gdb: clean-gdb
2a4cbe27 27916
a90ef4bf
JM
27917clean-gdb:
27918 @: $(MAKE); $(unstage)
27919 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27920 r=`${PWD_COMMAND}`; export r; \
27921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27922 $(HOST_EXPORTS) \
b813574b 27923 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27925 done; \
a90ef4bf
JM
27926 echo "Doing clean in gdb" ; \
27927 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27930 "RANLIB=$${RANLIB}" \
0c24b341 27931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27932 clean) \
2a4cbe27
NN
27933 || exit 1
27934
a90ef4bf 27935@endif gdb
2a4cbe27 27936
a90ef4bf
JM
27937.PHONY: maybe-distclean-gdb distclean-gdb
27938maybe-distclean-gdb:
27939@if gdb
27940maybe-distclean-gdb: distclean-gdb
2a4cbe27 27941
a90ef4bf
JM
27942distclean-gdb:
27943 @: $(MAKE); $(unstage)
27944 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27945 r=`${PWD_COMMAND}`; export r; \
27946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27947 $(HOST_EXPORTS) \
b813574b 27948 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27950 done; \
a90ef4bf
JM
27951 echo "Doing distclean in gdb" ; \
27952 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27955 "RANLIB=$${RANLIB}" \
0c24b341 27956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27957 distclean) \
2a4cbe27
NN
27958 || exit 1
27959
a90ef4bf 27960@endif gdb
2a4cbe27 27961
a90ef4bf
JM
27962.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
27963maybe-maintainer-clean-gdb:
27964@if gdb
27965maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 27966
a90ef4bf
JM
27967maintainer-clean-gdb:
27968 @: $(MAKE); $(unstage)
27969 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27970 r=`${PWD_COMMAND}`; export r; \
27971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27972 $(HOST_EXPORTS) \
b813574b 27973 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27975 done; \
a90ef4bf
JM
27976 echo "Doing maintainer-clean in gdb" ; \
27977 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27980 "RANLIB=$${RANLIB}" \
0c24b341 27981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27982 maintainer-clean) \
2a4cbe27
NN
27983 || exit 1
27984
a90ef4bf 27985@endif gdb
2a4cbe27 27986
2a4cbe27 27987
a7254363 27988
a90ef4bf
JM
27989.PHONY: configure-expect maybe-configure-expect
27990maybe-configure-expect:
4f0ef2d8 27991@if gcc-bootstrap
a90ef4bf 27992configure-expect: stage_current
4f0ef2d8 27993@endif gcc-bootstrap
a90ef4bf
JM
27994@if expect
27995maybe-configure-expect: configure-expect
27996configure-expect:
27997 @: $(MAKE); $(unstage)
c52c6897
PB
27998 @r=`${PWD_COMMAND}`; export r; \
27999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28000 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
28001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
1f53ca9a 28002 $(HOST_EXPORTS) \
a90ef4bf
JM
28003 echo Configuring in $(HOST_SUBDIR)/expect; \
28004 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
28005 case $(srcdir) in \
28006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28007 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
28008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28009 esac; \
1b6c0831
L
28010 module_srcdir=expect; \
28011 $(SHELL) \
28012 $$s/$$module_srcdir/configure \
28013 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28014 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28015 --target=${target_alias} \
be01d343 28016 || exit 1
a90ef4bf 28017@endif expect
be01d343
PB
28018
28019
28020
be01d343 28021
8520c408 28022
a90ef4bf
JM
28023.PHONY: all-expect maybe-all-expect
28024maybe-all-expect:
28025@if gcc-bootstrap
28026all-expect: stage_current
28027@endif gcc-bootstrap
28028@if expect
28029TARGET-expect=all
28030maybe-all-expect: all-expect
28031all-expect: configure-expect
28032 @: $(MAKE); $(unstage)
c52c6897
PB
28033 @r=`${PWD_COMMAND}`; export r; \
28034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28035 $(HOST_EXPORTS) \
28036 (cd $(HOST_SUBDIR)/expect && \
b3676d82 28037 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28038 $(TARGET-expect))
28039@endif expect
8520c408 28040
a90ef4bf
JM
28041
28042
28043
28044.PHONY: check-expect maybe-check-expect
28045maybe-check-expect:
28046@if expect
28047maybe-check-expect: check-expect
28048
28049check-expect:
28050 @: $(MAKE); $(unstage)
c52c6897
PB
28051 @r=`${PWD_COMMAND}`; export r; \
28052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28053 $(HOST_EXPORTS) \
a90ef4bf
JM
28054 (cd $(HOST_SUBDIR)/expect && \
28055 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 28056
a90ef4bf
JM
28057@endif expect
28058
28059.PHONY: install-expect maybe-install-expect
28060maybe-install-expect:
28061@if expect
28062maybe-install-expect: install-expect
28063
28064install-expect: installdirs
28065 @: $(MAKE); $(unstage)
c52c6897
PB
28066 @r=`${PWD_COMMAND}`; export r; \
28067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28068 $(HOST_EXPORTS) \
a90ef4bf
JM
28069 (cd $(HOST_SUBDIR)/expect && \
28070 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 28071
a90ef4bf
JM
28072@endif expect
28073
28074.PHONY: install-strip-expect maybe-install-strip-expect
28075maybe-install-strip-expect:
28076@if expect
28077maybe-install-strip-expect: install-strip-expect
28078
28079install-strip-expect: installdirs
28080 @: $(MAKE); $(unstage)
c52c6897
PB
28081 @r=`${PWD_COMMAND}`; export r; \
28082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28083 $(HOST_EXPORTS) \
a90ef4bf
JM
28084 (cd $(HOST_SUBDIR)/expect && \
28085 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 28086
a90ef4bf 28087@endif expect
be01d343 28088
a90ef4bf 28089# Other targets (info, dvi, pdf, etc.)
be01d343 28090
a90ef4bf
JM
28091.PHONY: maybe-info-expect info-expect
28092maybe-info-expect:
28093@if expect
28094maybe-info-expect: info-expect
be01d343 28095
a90ef4bf
JM
28096info-expect: \
28097 configure-expect
28098 @: $(MAKE); $(unstage)
28099 @[ -f ./expect/Makefile ] || exit 0; \
28100 r=`${PWD_COMMAND}`; export r; \
be01d343 28101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28102 $(HOST_EXPORTS) \
28103 for flag in $(EXTRA_HOST_FLAGS) ; do \
28104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28105 done; \
28106 echo "Doing info in expect" ; \
28107 (cd $(HOST_SUBDIR)/expect && \
28108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28110 "RANLIB=$${RANLIB}" \
28111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28112 info) \
28113 || exit 1
be01d343 28114
a90ef4bf 28115@endif expect
be01d343 28116
a90ef4bf
JM
28117.PHONY: maybe-dvi-expect dvi-expect
28118maybe-dvi-expect:
28119@if expect
28120maybe-dvi-expect: dvi-expect
be01d343 28121
a90ef4bf
JM
28122dvi-expect: \
28123 configure-expect
28124 @: $(MAKE); $(unstage)
28125 @[ -f ./expect/Makefile ] || exit 0; \
28126 r=`${PWD_COMMAND}`; export r; \
be01d343 28127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28128 $(HOST_EXPORTS) \
28129 for flag in $(EXTRA_HOST_FLAGS) ; do \
28130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28131 done; \
28132 echo "Doing dvi in expect" ; \
28133 (cd $(HOST_SUBDIR)/expect && \
28134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28136 "RANLIB=$${RANLIB}" \
28137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28138 dvi) \
28139 || exit 1
be01d343 28140
a90ef4bf 28141@endif expect
be01d343 28142
a90ef4bf
JM
28143.PHONY: maybe-pdf-expect pdf-expect
28144maybe-pdf-expect:
28145@if expect
28146maybe-pdf-expect: pdf-expect
be01d343 28147
a90ef4bf
JM
28148pdf-expect: \
28149 configure-expect
28150 @: $(MAKE); $(unstage)
28151 @[ -f ./expect/Makefile ] || exit 0; \
28152 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28154 $(HOST_EXPORTS) \
a90ef4bf
JM
28155 for flag in $(EXTRA_HOST_FLAGS) ; do \
28156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28157 done; \
28158 echo "Doing pdf in expect" ; \
28159 (cd $(HOST_SUBDIR)/expect && \
28160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28162 "RANLIB=$${RANLIB}" \
28163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28164 pdf) \
28165 || exit 1
be01d343 28166
a90ef4bf 28167@endif expect
be01d343 28168
a90ef4bf
JM
28169.PHONY: maybe-html-expect html-expect
28170maybe-html-expect:
28171@if expect
28172maybe-html-expect: html-expect
be01d343 28173
a90ef4bf
JM
28174html-expect: \
28175 configure-expect
28176 @: $(MAKE); $(unstage)
28177 @[ -f ./expect/Makefile ] || exit 0; \
28178 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28180 $(HOST_EXPORTS) \
a90ef4bf
JM
28181 for flag in $(EXTRA_HOST_FLAGS) ; do \
28182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28183 done; \
28184 echo "Doing html in expect" ; \
28185 (cd $(HOST_SUBDIR)/expect && \
28186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28188 "RANLIB=$${RANLIB}" \
28189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28190 html) \
28191 || exit 1
be01d343 28192
a90ef4bf 28193@endif expect
be01d343 28194
a90ef4bf
JM
28195.PHONY: maybe-TAGS-expect TAGS-expect
28196maybe-TAGS-expect:
28197@if expect
28198maybe-TAGS-expect: TAGS-expect
9b980aa1 28199
a90ef4bf
JM
28200TAGS-expect: \
28201 configure-expect
9b980aa1 28202 @: $(MAKE); $(unstage)
a90ef4bf 28203 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28204 r=`${PWD_COMMAND}`; export r; \
28205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28206 $(HOST_EXPORTS) \
28207 for flag in $(EXTRA_HOST_FLAGS) ; do \
28208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28209 done; \
a90ef4bf
JM
28210 echo "Doing TAGS in expect" ; \
28211 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28214 "RANLIB=$${RANLIB}" \
0c24b341 28215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28216 TAGS) \
28217 || exit 1
28218
a90ef4bf 28219@endif expect
be01d343 28220
a90ef4bf
JM
28221.PHONY: maybe-install-info-expect install-info-expect
28222maybe-install-info-expect:
28223@if expect
28224maybe-install-info-expect: install-info-expect
be01d343 28225
a90ef4bf
JM
28226install-info-expect: \
28227 configure-expect \
28228 info-expect
28229 @: $(MAKE); $(unstage)
28230 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28231 r=`${PWD_COMMAND}`; export r; \
28232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28233 $(HOST_EXPORTS) \
28234 for flag in $(EXTRA_HOST_FLAGS) ; do \
28235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28236 done; \
a90ef4bf
JM
28237 echo "Doing install-info in expect" ; \
28238 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28241 "RANLIB=$${RANLIB}" \
0c24b341 28242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28243 install-info) \
28244 || exit 1
28245
a90ef4bf 28246@endif expect
be01d343 28247
a90ef4bf
JM
28248.PHONY: maybe-install-pdf-expect install-pdf-expect
28249maybe-install-pdf-expect:
28250@if expect
28251maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 28252
a90ef4bf
JM
28253install-pdf-expect: \
28254 configure-expect \
28255 pdf-expect
28256 @: $(MAKE); $(unstage)
28257 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
28258 r=`${PWD_COMMAND}`; export r; \
28259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28260 $(HOST_EXPORTS) \
28261 for flag in $(EXTRA_HOST_FLAGS) ; do \
28262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28263 done; \
a90ef4bf
JM
28264 echo "Doing install-pdf in expect" ; \
28265 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
28266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28268 "RANLIB=$${RANLIB}" \
0c24b341 28269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28270 install-pdf) \
28271 || exit 1
28272
a90ef4bf 28273@endif expect
a3ca38d2 28274
a90ef4bf
JM
28275.PHONY: maybe-install-html-expect install-html-expect
28276maybe-install-html-expect:
28277@if expect
28278maybe-install-html-expect: install-html-expect
108a6f8e 28279
a90ef4bf
JM
28280install-html-expect: \
28281 configure-expect \
28282 html-expect
28283 @: $(MAKE); $(unstage)
28284 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
28285 r=`${PWD_COMMAND}`; export r; \
28286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28287 $(HOST_EXPORTS) \
28288 for flag in $(EXTRA_HOST_FLAGS) ; do \
28289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28290 done; \
a90ef4bf
JM
28291 echo "Doing install-html in expect" ; \
28292 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
28293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28295 "RANLIB=$${RANLIB}" \
0c24b341 28296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28297 install-html) \
28298 || exit 1
28299
a90ef4bf 28300@endif expect
108a6f8e 28301
a90ef4bf
JM
28302.PHONY: maybe-installcheck-expect installcheck-expect
28303maybe-installcheck-expect:
28304@if expect
28305maybe-installcheck-expect: installcheck-expect
be01d343 28306
a90ef4bf
JM
28307installcheck-expect: \
28308 configure-expect
28309 @: $(MAKE); $(unstage)
28310 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28311 r=`${PWD_COMMAND}`; export r; \
28312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28313 $(HOST_EXPORTS) \
28314 for flag in $(EXTRA_HOST_FLAGS) ; do \
28315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28316 done; \
a90ef4bf
JM
28317 echo "Doing installcheck in expect" ; \
28318 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28321 "RANLIB=$${RANLIB}" \
0c24b341 28322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28323 installcheck) \
28324 || exit 1
28325
a90ef4bf 28326@endif expect
be01d343 28327
a90ef4bf
JM
28328.PHONY: maybe-mostlyclean-expect mostlyclean-expect
28329maybe-mostlyclean-expect:
28330@if expect
28331maybe-mostlyclean-expect: mostlyclean-expect
be01d343 28332
a90ef4bf
JM
28333mostlyclean-expect:
28334 @: $(MAKE); $(unstage)
28335 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28336 r=`${PWD_COMMAND}`; export r; \
28337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28338 $(HOST_EXPORTS) \
28339 for flag in $(EXTRA_HOST_FLAGS) ; do \
28340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28341 done; \
a90ef4bf
JM
28342 echo "Doing mostlyclean in expect" ; \
28343 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28346 "RANLIB=$${RANLIB}" \
0c24b341 28347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28348 mostlyclean) \
28349 || exit 1
28350
a90ef4bf 28351@endif expect
be01d343 28352
a90ef4bf
JM
28353.PHONY: maybe-clean-expect clean-expect
28354maybe-clean-expect:
28355@if expect
28356maybe-clean-expect: clean-expect
be01d343 28357
a90ef4bf
JM
28358clean-expect:
28359 @: $(MAKE); $(unstage)
28360 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28361 r=`${PWD_COMMAND}`; export r; \
28362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28363 $(HOST_EXPORTS) \
28364 for flag in $(EXTRA_HOST_FLAGS) ; do \
28365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28366 done; \
a90ef4bf
JM
28367 echo "Doing clean in expect" ; \
28368 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28371 "RANLIB=$${RANLIB}" \
0c24b341 28372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28373 clean) \
28374 || exit 1
28375
a90ef4bf 28376@endif expect
be01d343 28377
a90ef4bf
JM
28378.PHONY: maybe-distclean-expect distclean-expect
28379maybe-distclean-expect:
28380@if expect
28381maybe-distclean-expect: distclean-expect
be01d343 28382
a90ef4bf
JM
28383distclean-expect:
28384 @: $(MAKE); $(unstage)
28385 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28386 r=`${PWD_COMMAND}`; export r; \
28387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28388 $(HOST_EXPORTS) \
28389 for flag in $(EXTRA_HOST_FLAGS) ; do \
28390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28391 done; \
a90ef4bf
JM
28392 echo "Doing distclean in expect" ; \
28393 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28396 "RANLIB=$${RANLIB}" \
0c24b341 28397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28398 distclean) \
28399 || exit 1
28400
a90ef4bf 28401@endif expect
be01d343 28402
a90ef4bf
JM
28403.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
28404maybe-maintainer-clean-expect:
28405@if expect
28406maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 28407
a90ef4bf
JM
28408maintainer-clean-expect:
28409 @: $(MAKE); $(unstage)
28410 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28411 r=`${PWD_COMMAND}`; export r; \
28412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28413 $(HOST_EXPORTS) \
28414 for flag in $(EXTRA_HOST_FLAGS) ; do \
28415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28416 done; \
a90ef4bf
JM
28417 echo "Doing maintainer-clean in expect" ; \
28418 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28421 "RANLIB=$${RANLIB}" \
0c24b341 28422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28423 maintainer-clean) \
28424 || exit 1
28425
a90ef4bf 28426@endif expect
be01d343
PB
28427
28428
28429
a90ef4bf
JM
28430.PHONY: configure-guile maybe-configure-guile
28431maybe-configure-guile:
4f0ef2d8 28432@if gcc-bootstrap
a90ef4bf 28433configure-guile: stage_current
4f0ef2d8 28434@endif gcc-bootstrap
a90ef4bf
JM
28435@if guile
28436maybe-configure-guile: configure-guile
28437configure-guile:
0aed8855 28438 @: $(MAKE); $(unstage)
c52c6897 28439 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 28440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28441 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
28442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
1f53ca9a 28443 $(HOST_EXPORTS) \
a90ef4bf
JM
28444 echo Configuring in $(HOST_SUBDIR)/guile; \
28445 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 28446 case $(srcdir) in \
b00612cc 28447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28448 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 28449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 28450 esac; \
1b6c0831
L
28451 module_srcdir=guile; \
28452 $(SHELL) \
28453 $$s/$$module_srcdir/configure \
28454 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28455 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28456 --target=${target_alias} \
4b1cb4fe 28457 || exit 1
a90ef4bf 28458@endif guile
4b1cb4fe 28459
a7254363
PB
28460
28461
d545f33b
PB
28462
28463
a90ef4bf
JM
28464.PHONY: all-guile maybe-all-guile
28465maybe-all-guile:
4f0ef2d8 28466@if gcc-bootstrap
a90ef4bf 28467all-guile: stage_current
4f0ef2d8 28468@endif gcc-bootstrap
a90ef4bf
JM
28469@if guile
28470TARGET-guile=all
28471maybe-all-guile: all-guile
28472all-guile: configure-guile
28473 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28474 @r=`${PWD_COMMAND}`; export r; \
28475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 28476 $(HOST_EXPORTS) \
a90ef4bf 28477 (cd $(HOST_SUBDIR)/guile && \
b3676d82 28478 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28479 $(TARGET-guile))
28480@endif guile
4b1cb4fe 28481
a7254363 28482
d545f33b
PB
28483
28484
a90ef4bf
JM
28485.PHONY: check-guile maybe-check-guile
28486maybe-check-guile:
28487@if guile
28488maybe-check-guile: check-guile
4b1cb4fe 28489
a90ef4bf 28490check-guile:
0aed8855 28491 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28492 @r=`${PWD_COMMAND}`; export r; \
28493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28494 $(HOST_EXPORTS) \
a90ef4bf 28495 (cd $(HOST_SUBDIR)/guile && \
b00612cc 28496 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 28497
a90ef4bf 28498@endif guile
4b1cb4fe 28499
a90ef4bf
JM
28500.PHONY: install-guile maybe-install-guile
28501maybe-install-guile:
28502@if guile
28503maybe-install-guile: install-guile
4b1cb4fe 28504
a90ef4bf 28505install-guile: installdirs
0aed8855 28506 @: $(MAKE); $(unstage)
b813574b
PB
28507 @r=`${PWD_COMMAND}`; export r; \
28508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 28509 $(HOST_EXPORTS) \
a90ef4bf 28510 (cd $(HOST_SUBDIR)/guile && \
2da12f12 28511 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 28512
a90ef4bf 28513@endif guile
4b1cb4fe 28514
a90ef4bf
JM
28515.PHONY: install-strip-guile maybe-install-strip-guile
28516maybe-install-strip-guile:
28517@if guile
28518maybe-install-strip-guile: install-strip-guile
9b980aa1 28519
a90ef4bf 28520install-strip-guile: installdirs
9b980aa1
RW
28521 @: $(MAKE); $(unstage)
28522 @r=`${PWD_COMMAND}`; export r; \
28523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28524 $(HOST_EXPORTS) \
a90ef4bf 28525 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
28526 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28527
a90ef4bf 28528@endif guile
9b980aa1 28529
56a8fe78 28530# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 28531
a90ef4bf
JM
28532.PHONY: maybe-info-guile info-guile
28533maybe-info-guile:
28534@if guile
28535maybe-info-guile: info-guile
4b1cb4fe 28536
a90ef4bf
JM
28537info-guile: \
28538 configure-guile
0aed8855 28539 @: $(MAKE); $(unstage)
a90ef4bf 28540 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28541 r=`${PWD_COMMAND}`; export r; \
28542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28543 $(HOST_EXPORTS) \
b813574b 28544 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28546 done; \
a90ef4bf
JM
28547 echo "Doing info in guile" ; \
28548 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28551 "RANLIB=$${RANLIB}" \
0c24b341 28552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28553 info) \
4b1cb4fe
DD
28554 || exit 1
28555
a90ef4bf 28556@endif guile
4b1cb4fe 28557
a90ef4bf
JM
28558.PHONY: maybe-dvi-guile dvi-guile
28559maybe-dvi-guile:
28560@if guile
28561maybe-dvi-guile: dvi-guile
4b1cb4fe 28562
a90ef4bf
JM
28563dvi-guile: \
28564 configure-guile
0aed8855 28565 @: $(MAKE); $(unstage)
a90ef4bf 28566 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28567 r=`${PWD_COMMAND}`; export r; \
28568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28569 $(HOST_EXPORTS) \
b813574b 28570 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28572 done; \
a90ef4bf
JM
28573 echo "Doing dvi in guile" ; \
28574 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28577 "RANLIB=$${RANLIB}" \
0c24b341 28578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28579 dvi) \
4b1cb4fe
DD
28580 || exit 1
28581
a90ef4bf 28582@endif guile
4b1cb4fe 28583
a90ef4bf
JM
28584.PHONY: maybe-pdf-guile pdf-guile
28585maybe-pdf-guile:
28586@if guile
28587maybe-pdf-guile: pdf-guile
56a8fe78 28588
a90ef4bf
JM
28589pdf-guile: \
28590 configure-guile
56a8fe78 28591 @: $(MAKE); $(unstage)
a90ef4bf 28592 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
28593 r=`${PWD_COMMAND}`; export r; \
28594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28595 $(HOST_EXPORTS) \
28596 for flag in $(EXTRA_HOST_FLAGS) ; do \
28597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28598 done; \
a90ef4bf
JM
28599 echo "Doing pdf in guile" ; \
28600 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
28601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28603 "RANLIB=$${RANLIB}" \
0c24b341 28604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
28605 pdf) \
28606 || exit 1
28607
a90ef4bf 28608@endif guile
56a8fe78 28609
a90ef4bf
JM
28610.PHONY: maybe-html-guile html-guile
28611maybe-html-guile:
28612@if guile
28613maybe-html-guile: html-guile
6d389afc 28614
a90ef4bf
JM
28615html-guile: \
28616 configure-guile
0aed8855 28617 @: $(MAKE); $(unstage)
a90ef4bf 28618 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
28619 r=`${PWD_COMMAND}`; export r; \
28620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28621 $(HOST_EXPORTS) \
28622 for flag in $(EXTRA_HOST_FLAGS) ; do \
28623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28624 done; \
a90ef4bf
JM
28625 echo "Doing html in guile" ; \
28626 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
28627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28629 "RANLIB=$${RANLIB}" \
0c24b341 28630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
28631 html) \
28632 || exit 1
28633
a90ef4bf 28634@endif guile
6d389afc 28635
a90ef4bf
JM
28636.PHONY: maybe-TAGS-guile TAGS-guile
28637maybe-TAGS-guile:
28638@if guile
28639maybe-TAGS-guile: TAGS-guile
4b1cb4fe 28640
a90ef4bf
JM
28641TAGS-guile: \
28642 configure-guile
0aed8855 28643 @: $(MAKE); $(unstage)
a90ef4bf 28644 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28645 r=`${PWD_COMMAND}`; export r; \
28646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28647 $(HOST_EXPORTS) \
b813574b 28648 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28650 done; \
a90ef4bf
JM
28651 echo "Doing TAGS in guile" ; \
28652 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28655 "RANLIB=$${RANLIB}" \
0c24b341 28656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28657 TAGS) \
4b1cb4fe
DD
28658 || exit 1
28659
a90ef4bf 28660@endif guile
4b1cb4fe 28661
a90ef4bf
JM
28662.PHONY: maybe-install-info-guile install-info-guile
28663maybe-install-info-guile:
28664@if guile
28665maybe-install-info-guile: install-info-guile
4b1cb4fe 28666
a90ef4bf
JM
28667install-info-guile: \
28668 configure-guile \
28669 info-guile
0aed8855 28670 @: $(MAKE); $(unstage)
a90ef4bf 28671 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28672 r=`${PWD_COMMAND}`; export r; \
28673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28674 $(HOST_EXPORTS) \
b813574b 28675 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28677 done; \
a90ef4bf
JM
28678 echo "Doing install-info in guile" ; \
28679 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28682 "RANLIB=$${RANLIB}" \
0c24b341 28683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28684 install-info) \
4b1cb4fe
DD
28685 || exit 1
28686
a90ef4bf 28687@endif guile
4b1cb4fe 28688
a90ef4bf
JM
28689.PHONY: maybe-install-pdf-guile install-pdf-guile
28690maybe-install-pdf-guile:
28691@if guile
28692maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 28693
a90ef4bf
JM
28694install-pdf-guile: \
28695 configure-guile \
28696 pdf-guile
a3ca38d2 28697 @: $(MAKE); $(unstage)
a90ef4bf 28698 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
28699 r=`${PWD_COMMAND}`; export r; \
28700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28701 $(HOST_EXPORTS) \
28702 for flag in $(EXTRA_HOST_FLAGS) ; do \
28703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28704 done; \
a90ef4bf
JM
28705 echo "Doing install-pdf in guile" ; \
28706 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
28707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28709 "RANLIB=$${RANLIB}" \
0c24b341 28710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28711 install-pdf) \
28712 || exit 1
28713
a90ef4bf 28714@endif guile
a3ca38d2 28715
a90ef4bf
JM
28716.PHONY: maybe-install-html-guile install-html-guile
28717maybe-install-html-guile:
28718@if guile
28719maybe-install-html-guile: install-html-guile
108a6f8e 28720
a90ef4bf
JM
28721install-html-guile: \
28722 configure-guile \
28723 html-guile
108a6f8e 28724 @: $(MAKE); $(unstage)
a90ef4bf 28725 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
28726 r=`${PWD_COMMAND}`; export r; \
28727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28728 $(HOST_EXPORTS) \
28729 for flag in $(EXTRA_HOST_FLAGS) ; do \
28730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28731 done; \
a90ef4bf
JM
28732 echo "Doing install-html in guile" ; \
28733 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
28734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28736 "RANLIB=$${RANLIB}" \
0c24b341 28737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28738 install-html) \
28739 || exit 1
28740
a90ef4bf 28741@endif guile
108a6f8e 28742
a90ef4bf
JM
28743.PHONY: maybe-installcheck-guile installcheck-guile
28744maybe-installcheck-guile:
28745@if guile
28746maybe-installcheck-guile: installcheck-guile
4b1cb4fe 28747
a90ef4bf
JM
28748installcheck-guile: \
28749 configure-guile
0aed8855 28750 @: $(MAKE); $(unstage)
a90ef4bf 28751 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28752 r=`${PWD_COMMAND}`; export r; \
28753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28754 $(HOST_EXPORTS) \
b813574b 28755 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28757 done; \
a90ef4bf
JM
28758 echo "Doing installcheck in guile" ; \
28759 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28762 "RANLIB=$${RANLIB}" \
0c24b341 28763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28764 installcheck) \
4b1cb4fe
DD
28765 || exit 1
28766
a90ef4bf 28767@endif guile
4b1cb4fe 28768
a90ef4bf
JM
28769.PHONY: maybe-mostlyclean-guile mostlyclean-guile
28770maybe-mostlyclean-guile:
28771@if guile
28772maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 28773
a90ef4bf 28774mostlyclean-guile:
0aed8855 28775 @: $(MAKE); $(unstage)
a90ef4bf 28776 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28777 r=`${PWD_COMMAND}`; export r; \
28778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28779 $(HOST_EXPORTS) \
b813574b 28780 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28782 done; \
a90ef4bf
JM
28783 echo "Doing mostlyclean in guile" ; \
28784 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28787 "RANLIB=$${RANLIB}" \
0c24b341 28788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28789 mostlyclean) \
4b1cb4fe
DD
28790 || exit 1
28791
a90ef4bf 28792@endif guile
4b1cb4fe 28793
a90ef4bf
JM
28794.PHONY: maybe-clean-guile clean-guile
28795maybe-clean-guile:
28796@if guile
28797maybe-clean-guile: clean-guile
4b1cb4fe 28798
a90ef4bf 28799clean-guile:
0aed8855 28800 @: $(MAKE); $(unstage)
a90ef4bf 28801 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28802 r=`${PWD_COMMAND}`; export r; \
28803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28804 $(HOST_EXPORTS) \
b813574b 28805 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28807 done; \
a90ef4bf
JM
28808 echo "Doing clean in guile" ; \
28809 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28812 "RANLIB=$${RANLIB}" \
0c24b341 28813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28814 clean) \
4b1cb4fe
DD
28815 || exit 1
28816
a90ef4bf 28817@endif guile
4b1cb4fe 28818
a90ef4bf
JM
28819.PHONY: maybe-distclean-guile distclean-guile
28820maybe-distclean-guile:
28821@if guile
28822maybe-distclean-guile: distclean-guile
4b1cb4fe 28823
a90ef4bf 28824distclean-guile:
0aed8855 28825 @: $(MAKE); $(unstage)
a90ef4bf 28826 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28827 r=`${PWD_COMMAND}`; export r; \
28828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28829 $(HOST_EXPORTS) \
b813574b 28830 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28832 done; \
a90ef4bf
JM
28833 echo "Doing distclean in guile" ; \
28834 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28837 "RANLIB=$${RANLIB}" \
0c24b341 28838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28839 distclean) \
4b1cb4fe
DD
28840 || exit 1
28841
a90ef4bf 28842@endif guile
4b1cb4fe 28843
a90ef4bf
JM
28844.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
28845maybe-maintainer-clean-guile:
28846@if guile
28847maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 28848
a90ef4bf 28849maintainer-clean-guile:
0aed8855 28850 @: $(MAKE); $(unstage)
a90ef4bf 28851 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28852 r=`${PWD_COMMAND}`; export r; \
28853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28854 $(HOST_EXPORTS) \
b813574b 28855 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28857 done; \
a90ef4bf
JM
28858 echo "Doing maintainer-clean in guile" ; \
28859 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28862 "RANLIB=$${RANLIB}" \
0c24b341 28863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28864 maintainer-clean) \
4b1cb4fe
DD
28865 || exit 1
28866
a90ef4bf 28867@endif guile
4b1cb4fe
DD
28868
28869
a7254363 28870
a90ef4bf
JM
28871.PHONY: configure-tk maybe-configure-tk
28872maybe-configure-tk:
4f0ef2d8 28873@if gcc-bootstrap
a90ef4bf 28874configure-tk: stage_current
4f0ef2d8 28875@endif gcc-bootstrap
a90ef4bf
JM
28876@if tk
28877maybe-configure-tk: configure-tk
28878configure-tk:
28879 @: $(MAKE); $(unstage)
c52c6897
PB
28880 @r=`${PWD_COMMAND}`; export r; \
28881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28882 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
28883 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
1f53ca9a 28884 $(HOST_EXPORTS) \
a90ef4bf
JM
28885 echo Configuring in $(HOST_SUBDIR)/tk; \
28886 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 28887 case $(srcdir) in \
b00612cc 28888 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28889 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 28890 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 28891 esac; \
1b6c0831
L
28892 module_srcdir=tk; \
28893 $(SHELL) \
28894 $$s/$$module_srcdir/configure \
28895 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28896 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28897 --target=${target_alias} \
2a4cbe27 28898 || exit 1
a90ef4bf 28899@endif tk
2a4cbe27 28900
a7254363
PB
28901
28902
a90ef4bf
JM
28903
28904
28905.PHONY: all-tk maybe-all-tk
28906maybe-all-tk:
28907@if gcc-bootstrap
28908all-tk: stage_current
28909@endif gcc-bootstrap
28910@if tk
28911TARGET-tk=all
28912maybe-all-tk: all-tk
28913all-tk: configure-tk
28914 @: $(MAKE); $(unstage)
c52c6897
PB
28915 @r=`${PWD_COMMAND}`; export r; \
28916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28917 $(HOST_EXPORTS) \
28918 (cd $(HOST_SUBDIR)/tk && \
b3676d82 28919 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28920 $(TARGET-tk))
28921@endif tk
d545f33b 28922
a90ef4bf
JM
28923
28924
28925
28926.PHONY: check-tk maybe-check-tk
28927maybe-check-tk:
28928@if tk
28929maybe-check-tk: check-tk
28930
28931check-tk:
28932 @: $(MAKE); $(unstage)
c52c6897
PB
28933 @r=`${PWD_COMMAND}`; export r; \
28934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28935 $(HOST_EXPORTS) \
a90ef4bf
JM
28936 (cd $(HOST_SUBDIR)/tk && \
28937 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 28938
a90ef4bf
JM
28939@endif tk
28940
28941.PHONY: install-tk maybe-install-tk
28942maybe-install-tk:
28943@if tk
28944maybe-install-tk: install-tk
28945
28946install-tk: installdirs
28947 @: $(MAKE); $(unstage)
c52c6897
PB
28948 @r=`${PWD_COMMAND}`; export r; \
28949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28950 $(HOST_EXPORTS) \
a90ef4bf
JM
28951 (cd $(HOST_SUBDIR)/tk && \
28952 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 28953
a90ef4bf
JM
28954@endif tk
28955
28956.PHONY: install-strip-tk maybe-install-strip-tk
28957maybe-install-strip-tk:
28958@if tk
28959maybe-install-strip-tk: install-strip-tk
28960
28961install-strip-tk: installdirs
28962 @: $(MAKE); $(unstage)
c52c6897
PB
28963 @r=`${PWD_COMMAND}`; export r; \
28964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28965 $(HOST_EXPORTS) \
a90ef4bf
JM
28966 (cd $(HOST_SUBDIR)/tk && \
28967 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28968
a90ef4bf 28969@endif tk
9b980aa1 28970
56a8fe78 28971# Other targets (info, dvi, pdf, etc.)
2a4cbe27 28972
a90ef4bf
JM
28973.PHONY: maybe-info-tk info-tk
28974maybe-info-tk:
28975@if tk
28976maybe-info-tk: info-tk
4fa63067 28977
a90ef4bf
JM
28978info-tk: \
28979 configure-tk
28980 @: $(MAKE); $(unstage)
28981 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28982 r=`${PWD_COMMAND}`; export r; \
28983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28984 $(HOST_EXPORTS) \
b813574b 28985 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28987 done; \
a90ef4bf
JM
28988 echo "Doing info in tk" ; \
28989 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
28990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28992 "RANLIB=$${RANLIB}" \
0c24b341 28993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
28994 info) \
28995 || exit 1
28996
a90ef4bf 28997@endif tk
6d389afc 28998
a90ef4bf
JM
28999.PHONY: maybe-dvi-tk dvi-tk
29000maybe-dvi-tk:
29001@if tk
29002maybe-dvi-tk: dvi-tk
6d389afc 29003
a90ef4bf
JM
29004dvi-tk: \
29005 configure-tk
29006 @: $(MAKE); $(unstage)
29007 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
29008 r=`${PWD_COMMAND}`; export r; \
29009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29010 $(HOST_EXPORTS) \
29011 for flag in $(EXTRA_HOST_FLAGS) ; do \
29012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29013 done; \
a90ef4bf
JM
29014 echo "Doing dvi in tk" ; \
29015 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29018 "RANLIB=$${RANLIB}" \
0c24b341 29019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29020 dvi) \
2a4cbe27
NN
29021 || exit 1
29022
a90ef4bf 29023@endif tk
2a4cbe27 29024
a90ef4bf
JM
29025.PHONY: maybe-pdf-tk pdf-tk
29026maybe-pdf-tk:
29027@if tk
29028maybe-pdf-tk: pdf-tk
56a8fe78 29029
a90ef4bf
JM
29030pdf-tk: \
29031 configure-tk
29032 @: $(MAKE); $(unstage)
29033 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
29034 r=`${PWD_COMMAND}`; export r; \
29035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29036 $(HOST_EXPORTS) \
29037 for flag in $(EXTRA_HOST_FLAGS) ; do \
29038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29039 done; \
a90ef4bf
JM
29040 echo "Doing pdf in tk" ; \
29041 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
29042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29044 "RANLIB=$${RANLIB}" \
0c24b341 29045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29046 pdf) \
29047 || exit 1
29048
a90ef4bf 29049@endif tk
56a8fe78 29050
a90ef4bf
JM
29051.PHONY: maybe-html-tk html-tk
29052maybe-html-tk:
29053@if tk
29054maybe-html-tk: html-tk
2a4cbe27 29055
a90ef4bf
JM
29056html-tk: \
29057 configure-tk
29058 @: $(MAKE); $(unstage)
29059 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29060 r=`${PWD_COMMAND}`; export r; \
29061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29062 $(HOST_EXPORTS) \
b813574b 29063 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29065 done; \
a90ef4bf
JM
29066 echo "Doing html in tk" ; \
29067 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29070 "RANLIB=$${RANLIB}" \
0c24b341 29071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29072 html) \
2a4cbe27
NN
29073 || exit 1
29074
a90ef4bf 29075@endif tk
2a4cbe27 29076
a90ef4bf
JM
29077.PHONY: maybe-TAGS-tk TAGS-tk
29078maybe-TAGS-tk:
29079@if tk
29080maybe-TAGS-tk: TAGS-tk
2a4cbe27 29081
a90ef4bf
JM
29082TAGS-tk: \
29083 configure-tk
29084 @: $(MAKE); $(unstage)
29085 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29086 r=`${PWD_COMMAND}`; export r; \
29087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29088 $(HOST_EXPORTS) \
b813574b 29089 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29091 done; \
a90ef4bf
JM
29092 echo "Doing TAGS in tk" ; \
29093 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29096 "RANLIB=$${RANLIB}" \
0c24b341 29097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29098 TAGS) \
2a4cbe27
NN
29099 || exit 1
29100
a90ef4bf 29101@endif tk
2a4cbe27 29102
a90ef4bf
JM
29103.PHONY: maybe-install-info-tk install-info-tk
29104maybe-install-info-tk:
29105@if tk
29106maybe-install-info-tk: install-info-tk
2a4cbe27 29107
a90ef4bf
JM
29108install-info-tk: \
29109 configure-tk \
29110 info-tk
29111 @: $(MAKE); $(unstage)
29112 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29113 r=`${PWD_COMMAND}`; export r; \
29114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29115 $(HOST_EXPORTS) \
b813574b 29116 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29118 done; \
a90ef4bf
JM
29119 echo "Doing install-info in tk" ; \
29120 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29123 "RANLIB=$${RANLIB}" \
0c24b341 29124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29125 install-info) \
2a4cbe27
NN
29126 || exit 1
29127
a90ef4bf 29128@endif tk
2a4cbe27 29129
a90ef4bf
JM
29130.PHONY: maybe-install-pdf-tk install-pdf-tk
29131maybe-install-pdf-tk:
29132@if tk
29133maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 29134
a90ef4bf
JM
29135install-pdf-tk: \
29136 configure-tk \
29137 pdf-tk
29138 @: $(MAKE); $(unstage)
29139 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
29140 r=`${PWD_COMMAND}`; export r; \
29141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29142 $(HOST_EXPORTS) \
29143 for flag in $(EXTRA_HOST_FLAGS) ; do \
29144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29145 done; \
a90ef4bf
JM
29146 echo "Doing install-pdf in tk" ; \
29147 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
29148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29150 "RANLIB=$${RANLIB}" \
0c24b341 29151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29152 install-pdf) \
29153 || exit 1
29154
a90ef4bf 29155@endif tk
a3ca38d2 29156
a90ef4bf
JM
29157.PHONY: maybe-install-html-tk install-html-tk
29158maybe-install-html-tk:
29159@if tk
29160maybe-install-html-tk: install-html-tk
108a6f8e 29161
a90ef4bf
JM
29162install-html-tk: \
29163 configure-tk \
29164 html-tk
29165 @: $(MAKE); $(unstage)
29166 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
29167 r=`${PWD_COMMAND}`; export r; \
29168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29169 $(HOST_EXPORTS) \
29170 for flag in $(EXTRA_HOST_FLAGS) ; do \
29171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29172 done; \
a90ef4bf
JM
29173 echo "Doing install-html in tk" ; \
29174 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
29175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29177 "RANLIB=$${RANLIB}" \
0c24b341 29178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29179 install-html) \
29180 || exit 1
29181
a90ef4bf 29182@endif tk
108a6f8e 29183
a90ef4bf
JM
29184.PHONY: maybe-installcheck-tk installcheck-tk
29185maybe-installcheck-tk:
29186@if tk
29187maybe-installcheck-tk: installcheck-tk
2a4cbe27 29188
a90ef4bf
JM
29189installcheck-tk: \
29190 configure-tk
29191 @: $(MAKE); $(unstage)
29192 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29193 r=`${PWD_COMMAND}`; export r; \
29194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29195 $(HOST_EXPORTS) \
b813574b 29196 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29198 done; \
a90ef4bf
JM
29199 echo "Doing installcheck in tk" ; \
29200 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29203 "RANLIB=$${RANLIB}" \
0c24b341 29204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29205 installcheck) \
2a4cbe27
NN
29206 || exit 1
29207
a90ef4bf 29208@endif tk
2a4cbe27 29209
a90ef4bf
JM
29210.PHONY: maybe-mostlyclean-tk mostlyclean-tk
29211maybe-mostlyclean-tk:
29212@if tk
29213maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 29214
a90ef4bf
JM
29215mostlyclean-tk:
29216 @: $(MAKE); $(unstage)
29217 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29218 r=`${PWD_COMMAND}`; export r; \
29219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29220 $(HOST_EXPORTS) \
b813574b 29221 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29223 done; \
a90ef4bf
JM
29224 echo "Doing mostlyclean in tk" ; \
29225 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29228 "RANLIB=$${RANLIB}" \
0c24b341 29229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29230 mostlyclean) \
2a4cbe27
NN
29231 || exit 1
29232
a90ef4bf 29233@endif tk
2a4cbe27 29234
a90ef4bf
JM
29235.PHONY: maybe-clean-tk clean-tk
29236maybe-clean-tk:
29237@if tk
29238maybe-clean-tk: clean-tk
2a4cbe27 29239
a90ef4bf
JM
29240clean-tk:
29241 @: $(MAKE); $(unstage)
29242 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29243 r=`${PWD_COMMAND}`; export r; \
29244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29245 $(HOST_EXPORTS) \
b813574b 29246 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29248 done; \
a90ef4bf
JM
29249 echo "Doing clean in tk" ; \
29250 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29253 "RANLIB=$${RANLIB}" \
0c24b341 29254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29255 clean) \
2a4cbe27
NN
29256 || exit 1
29257
a90ef4bf 29258@endif tk
2a4cbe27 29259
a90ef4bf
JM
29260.PHONY: maybe-distclean-tk distclean-tk
29261maybe-distclean-tk:
29262@if tk
29263maybe-distclean-tk: distclean-tk
2a4cbe27 29264
a90ef4bf
JM
29265distclean-tk:
29266 @: $(MAKE); $(unstage)
29267 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29268 r=`${PWD_COMMAND}`; export r; \
29269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29270 $(HOST_EXPORTS) \
b813574b 29271 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29273 done; \
a90ef4bf
JM
29274 echo "Doing distclean in tk" ; \
29275 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29278 "RANLIB=$${RANLIB}" \
0c24b341 29279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29280 distclean) \
2a4cbe27
NN
29281 || exit 1
29282
a90ef4bf 29283@endif tk
2a4cbe27 29284
a90ef4bf
JM
29285.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
29286maybe-maintainer-clean-tk:
29287@if tk
29288maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 29289
a90ef4bf
JM
29290maintainer-clean-tk:
29291 @: $(MAKE); $(unstage)
29292 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29293 r=`${PWD_COMMAND}`; export r; \
29294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29295 $(HOST_EXPORTS) \
b813574b 29296 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29298 done; \
a90ef4bf
JM
29299 echo "Doing maintainer-clean in tk" ; \
29300 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29303 "RANLIB=$${RANLIB}" \
0c24b341 29304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29305 maintainer-clean) \
2a4cbe27
NN
29306 || exit 1
29307
a90ef4bf 29308@endif tk
2a4cbe27 29309
2a4cbe27 29310
a7254363 29311
a90ef4bf
JM
29312.PHONY: configure-libtermcap maybe-configure-libtermcap
29313maybe-configure-libtermcap:
dc448a7b 29314@if gcc-bootstrap
a90ef4bf 29315configure-libtermcap: stage_current
dc448a7b 29316@endif gcc-bootstrap
a90ef4bf
JM
29317@if libtermcap
29318maybe-configure-libtermcap: configure-libtermcap
29319configure-libtermcap:
dc448a7b
TT
29320 @: $(MAKE); $(unstage)
29321 @r=`${PWD_COMMAND}`; export r; \
29322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29323 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
29324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
1f53ca9a 29325 $(HOST_EXPORTS) \
a90ef4bf
JM
29326 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
29327 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
29328 case $(srcdir) in \
29329 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29330 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
29331 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29332 esac; \
1b6c0831
L
29333 module_srcdir=libtermcap; \
29334 $(SHELL) \
29335 $$s/$$module_srcdir/configure \
29336 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 29337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29338 --target=${target_alias} \
dc448a7b 29339 || exit 1
a90ef4bf 29340@endif libtermcap
dc448a7b
TT
29341
29342
29343
29344
29345
a90ef4bf
JM
29346.PHONY: all-libtermcap maybe-all-libtermcap
29347maybe-all-libtermcap:
dc448a7b 29348@if gcc-bootstrap
a90ef4bf 29349all-libtermcap: stage_current
dc448a7b 29350@endif gcc-bootstrap
a90ef4bf
JM
29351@if libtermcap
29352TARGET-libtermcap=all
29353maybe-all-libtermcap: all-libtermcap
29354all-libtermcap: configure-libtermcap
dc448a7b
TT
29355 @: $(MAKE); $(unstage)
29356 @r=`${PWD_COMMAND}`; export r; \
29357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29358 $(HOST_EXPORTS) \
a90ef4bf 29359 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 29360 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29361 $(TARGET-libtermcap))
29362@endif libtermcap
dc448a7b
TT
29363
29364
29365
29366
a90ef4bf
JM
29367.PHONY: check-libtermcap maybe-check-libtermcap
29368maybe-check-libtermcap:
29369@if libtermcap
29370maybe-check-libtermcap: check-libtermcap
dc448a7b 29371
a90ef4bf
JM
29372check-libtermcap:
29373
29374@endif libtermcap
29375
29376.PHONY: install-libtermcap maybe-install-libtermcap
29377maybe-install-libtermcap:
29378@if libtermcap
29379maybe-install-libtermcap: install-libtermcap
29380
29381install-libtermcap: installdirs
dc448a7b
TT
29382 @: $(MAKE); $(unstage)
29383 @r=`${PWD_COMMAND}`; export r; \
29384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29385 $(HOST_EXPORTS) \
a90ef4bf
JM
29386 (cd $(HOST_SUBDIR)/libtermcap && \
29387 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 29388
a90ef4bf 29389@endif libtermcap
dc448a7b 29390
a90ef4bf
JM
29391.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
29392maybe-install-strip-libtermcap:
29393@if libtermcap
29394maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 29395
a90ef4bf
JM
29396install-strip-libtermcap: installdirs
29397 @: $(MAKE); $(unstage)
29398 @r=`${PWD_COMMAND}`; export r; \
29399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29400 $(HOST_EXPORTS) \
29401 (cd $(HOST_SUBDIR)/libtermcap && \
29402 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 29403
a90ef4bf 29404@endif libtermcap
9b980aa1 29405
dc448a7b
TT
29406# Other targets (info, dvi, pdf, etc.)
29407
a90ef4bf
JM
29408.PHONY: maybe-info-libtermcap info-libtermcap
29409maybe-info-libtermcap:
29410@if libtermcap
29411maybe-info-libtermcap: info-libtermcap
dc448a7b 29412
a90ef4bf
JM
29413info-libtermcap: \
29414 configure-libtermcap
dc448a7b 29415 @: $(MAKE); $(unstage)
a90ef4bf 29416 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29417 r=`${PWD_COMMAND}`; export r; \
29418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29419 $(HOST_EXPORTS) \
29420 for flag in $(EXTRA_HOST_FLAGS) ; do \
29421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29422 done; \
a90ef4bf
JM
29423 echo "Doing info in libtermcap" ; \
29424 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29427 "RANLIB=$${RANLIB}" \
29428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29429 info) \
29430 || exit 1
29431
a90ef4bf 29432@endif libtermcap
dc448a7b 29433
a90ef4bf
JM
29434.PHONY: maybe-dvi-libtermcap dvi-libtermcap
29435maybe-dvi-libtermcap:
29436@if libtermcap
29437maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 29438
a90ef4bf
JM
29439dvi-libtermcap: \
29440 configure-libtermcap
dc448a7b 29441 @: $(MAKE); $(unstage)
a90ef4bf 29442 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29443 r=`${PWD_COMMAND}`; export r; \
29444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29445 $(HOST_EXPORTS) \
29446 for flag in $(EXTRA_HOST_FLAGS) ; do \
29447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29448 done; \
a90ef4bf
JM
29449 echo "Doing dvi in libtermcap" ; \
29450 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29453 "RANLIB=$${RANLIB}" \
29454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29455 dvi) \
29456 || exit 1
29457
a90ef4bf 29458@endif libtermcap
dc448a7b 29459
a90ef4bf
JM
29460.PHONY: maybe-pdf-libtermcap pdf-libtermcap
29461maybe-pdf-libtermcap:
29462@if libtermcap
29463maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 29464
a90ef4bf
JM
29465pdf-libtermcap: \
29466 configure-libtermcap
dc448a7b 29467 @: $(MAKE); $(unstage)
a90ef4bf 29468 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29469 r=`${PWD_COMMAND}`; export r; \
29470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29471 $(HOST_EXPORTS) \
29472 for flag in $(EXTRA_HOST_FLAGS) ; do \
29473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29474 done; \
a90ef4bf
JM
29475 echo "Doing pdf in libtermcap" ; \
29476 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29479 "RANLIB=$${RANLIB}" \
29480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29481 pdf) \
29482 || exit 1
29483
a90ef4bf 29484@endif libtermcap
dc448a7b 29485
a90ef4bf
JM
29486.PHONY: maybe-html-libtermcap html-libtermcap
29487maybe-html-libtermcap:
29488@if libtermcap
29489maybe-html-libtermcap: html-libtermcap
dc448a7b 29490
a90ef4bf
JM
29491html-libtermcap: \
29492 configure-libtermcap
dc448a7b 29493 @: $(MAKE); $(unstage)
a90ef4bf 29494 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29495 r=`${PWD_COMMAND}`; export r; \
29496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29497 $(HOST_EXPORTS) \
29498 for flag in $(EXTRA_HOST_FLAGS) ; do \
29499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29500 done; \
a90ef4bf
JM
29501 echo "Doing html in libtermcap" ; \
29502 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29505 "RANLIB=$${RANLIB}" \
29506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29507 html) \
29508 || exit 1
29509
a90ef4bf 29510@endif libtermcap
dc448a7b 29511
a90ef4bf
JM
29512.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
29513maybe-TAGS-libtermcap:
29514@if libtermcap
29515maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 29516
a90ef4bf
JM
29517TAGS-libtermcap: \
29518 configure-libtermcap
dc448a7b 29519 @: $(MAKE); $(unstage)
a90ef4bf 29520 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29521 r=`${PWD_COMMAND}`; export r; \
29522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29523 $(HOST_EXPORTS) \
29524 for flag in $(EXTRA_HOST_FLAGS) ; do \
29525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29526 done; \
a90ef4bf
JM
29527 echo "Doing TAGS in libtermcap" ; \
29528 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29531 "RANLIB=$${RANLIB}" \
29532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29533 TAGS) \
29534 || exit 1
29535
a90ef4bf 29536@endif libtermcap
dc448a7b 29537
a90ef4bf
JM
29538.PHONY: maybe-install-info-libtermcap install-info-libtermcap
29539maybe-install-info-libtermcap:
29540@if libtermcap
29541maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 29542
a90ef4bf
JM
29543install-info-libtermcap: \
29544 configure-libtermcap \
29545 info-libtermcap
dc448a7b 29546 @: $(MAKE); $(unstage)
a90ef4bf 29547 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29548 r=`${PWD_COMMAND}`; export r; \
29549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29550 $(HOST_EXPORTS) \
29551 for flag in $(EXTRA_HOST_FLAGS) ; do \
29552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29553 done; \
a90ef4bf
JM
29554 echo "Doing install-info in libtermcap" ; \
29555 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29558 "RANLIB=$${RANLIB}" \
29559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29560 install-info) \
dc448a7b
TT
29561 || exit 1
29562
a90ef4bf 29563@endif libtermcap
dc448a7b 29564
a90ef4bf
JM
29565.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
29566maybe-install-pdf-libtermcap:
29567@if libtermcap
29568maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 29569
a90ef4bf
JM
29570install-pdf-libtermcap: \
29571 configure-libtermcap \
29572 pdf-libtermcap
dc448a7b 29573 @: $(MAKE); $(unstage)
a90ef4bf 29574 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29575 r=`${PWD_COMMAND}`; export r; \
29576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29577 $(HOST_EXPORTS) \
29578 for flag in $(EXTRA_HOST_FLAGS) ; do \
29579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29580 done; \
a90ef4bf
JM
29581 echo "Doing install-pdf in libtermcap" ; \
29582 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29585 "RANLIB=$${RANLIB}" \
29586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29587 install-pdf) \
dc448a7b
TT
29588 || exit 1
29589
a90ef4bf 29590@endif libtermcap
dc448a7b 29591
a90ef4bf
JM
29592.PHONY: maybe-install-html-libtermcap install-html-libtermcap
29593maybe-install-html-libtermcap:
29594@if libtermcap
29595maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 29596
a90ef4bf
JM
29597install-html-libtermcap: \
29598 configure-libtermcap \
29599 html-libtermcap
dc448a7b 29600 @: $(MAKE); $(unstage)
a90ef4bf 29601 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29602 r=`${PWD_COMMAND}`; export r; \
29603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29604 $(HOST_EXPORTS) \
29605 for flag in $(EXTRA_HOST_FLAGS) ; do \
29606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29607 done; \
a90ef4bf
JM
29608 echo "Doing install-html in libtermcap" ; \
29609 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29612 "RANLIB=$${RANLIB}" \
29613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29614 install-html) \
dc448a7b
TT
29615 || exit 1
29616
a90ef4bf 29617@endif libtermcap
dc448a7b 29618
a90ef4bf
JM
29619.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
29620maybe-installcheck-libtermcap:
29621@if libtermcap
29622maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 29623
a90ef4bf
JM
29624installcheck-libtermcap: \
29625 configure-libtermcap
dc448a7b 29626 @: $(MAKE); $(unstage)
a90ef4bf 29627 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29628 r=`${PWD_COMMAND}`; export r; \
29629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29630 $(HOST_EXPORTS) \
29631 for flag in $(EXTRA_HOST_FLAGS) ; do \
29632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29633 done; \
a90ef4bf
JM
29634 echo "Doing installcheck in libtermcap" ; \
29635 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29638 "RANLIB=$${RANLIB}" \
29639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29640 installcheck) \
dc448a7b
TT
29641 || exit 1
29642
a90ef4bf 29643@endif libtermcap
dc448a7b 29644
a90ef4bf
JM
29645.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
29646maybe-mostlyclean-libtermcap:
29647@if libtermcap
29648maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 29649
a90ef4bf
JM
29650# libtermcap doesn't support mostlyclean.
29651mostlyclean-libtermcap:
dc448a7b 29652
a90ef4bf 29653@endif libtermcap
dc448a7b 29654
a90ef4bf
JM
29655.PHONY: maybe-clean-libtermcap clean-libtermcap
29656maybe-clean-libtermcap:
29657@if libtermcap
29658maybe-clean-libtermcap: clean-libtermcap
dc448a7b 29659
a90ef4bf
JM
29660# libtermcap doesn't support clean.
29661clean-libtermcap:
dc448a7b 29662
a90ef4bf
JM
29663@endif libtermcap
29664
29665.PHONY: maybe-distclean-libtermcap distclean-libtermcap
29666maybe-distclean-libtermcap:
29667@if libtermcap
29668maybe-distclean-libtermcap: distclean-libtermcap
29669
29670# libtermcap doesn't support distclean.
29671distclean-libtermcap:
29672
29673@endif libtermcap
29674
29675.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
29676maybe-maintainer-clean-libtermcap:
29677@if libtermcap
29678maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
29679
29680# libtermcap doesn't support maintainer-clean.
29681maintainer-clean-libtermcap:
29682
29683@endif libtermcap
29684
29685
29686
29687.PHONY: configure-utils maybe-configure-utils
29688maybe-configure-utils:
29689@if gcc-bootstrap
29690configure-utils: stage_current
29691@endif gcc-bootstrap
29692@if utils
29693maybe-configure-utils: configure-utils
29694configure-utils:
29695 @: $(MAKE); $(unstage)
c52c6897 29696 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29698 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
29699 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
1f53ca9a 29700 $(HOST_EXPORTS) \
a90ef4bf
JM
29701 echo Configuring in $(HOST_SUBDIR)/utils; \
29702 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 29703 case $(srcdir) in \
b00612cc 29704 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29705 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 29706 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29707 esac; \
1b6c0831
L
29708 module_srcdir=utils; \
29709 $(SHELL) \
29710 $$s/$$module_srcdir/configure \
29711 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29712 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29713 --target=${target_alias} \
2a4cbe27 29714 || exit 1
a90ef4bf 29715@endif utils
2a4cbe27 29716
a7254363
PB
29717
29718
d545f33b
PB
29719
29720
a90ef4bf
JM
29721.PHONY: all-utils maybe-all-utils
29722maybe-all-utils:
4f0ef2d8 29723@if gcc-bootstrap
a90ef4bf 29724all-utils: stage_current
4f0ef2d8 29725@endif gcc-bootstrap
a90ef4bf
JM
29726@if utils
29727TARGET-utils=all
29728maybe-all-utils: all-utils
29729all-utils: configure-utils
0aed8855 29730 @: $(MAKE); $(unstage)
4fa63067
NN
29731 @r=`${PWD_COMMAND}`; export r; \
29732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29733 $(HOST_EXPORTS) \
a90ef4bf 29734 (cd $(HOST_SUBDIR)/utils && \
b3676d82 29735 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29736 $(TARGET-utils))
29737@endif utils
2a4cbe27 29738
a7254363 29739
d545f33b
PB
29740
29741
a90ef4bf
JM
29742.PHONY: check-utils maybe-check-utils
29743maybe-check-utils:
29744@if utils
29745maybe-check-utils: check-utils
2a4cbe27 29746
a90ef4bf 29747check-utils:
2a4cbe27 29748
a90ef4bf 29749@endif utils
2a4cbe27 29750
a90ef4bf
JM
29751.PHONY: install-utils maybe-install-utils
29752maybe-install-utils:
29753@if utils
29754maybe-install-utils: install-utils
2a4cbe27 29755
a90ef4bf 29756install-utils: installdirs
0aed8855 29757 @: $(MAKE); $(unstage)
4fa63067 29758 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29760 $(HOST_EXPORTS) \
a90ef4bf 29761 (cd $(HOST_SUBDIR)/utils && \
2da12f12 29762 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 29763
a90ef4bf 29764@endif utils
2a4cbe27 29765
a90ef4bf
JM
29766.PHONY: install-strip-utils maybe-install-strip-utils
29767maybe-install-strip-utils:
29768@if utils
29769maybe-install-strip-utils: install-strip-utils
9b980aa1 29770
a90ef4bf 29771install-strip-utils: installdirs
9b980aa1
RW
29772 @: $(MAKE); $(unstage)
29773 @r=`${PWD_COMMAND}`; export r; \
29774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29775 $(HOST_EXPORTS) \
a90ef4bf 29776 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
29777 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29778
a90ef4bf 29779@endif utils
9b980aa1 29780
56a8fe78 29781# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29782
a90ef4bf
JM
29783.PHONY: maybe-info-utils info-utils
29784maybe-info-utils:
29785@if utils
29786maybe-info-utils: info-utils
4fa63067 29787
a90ef4bf
JM
29788info-utils: \
29789 configure-utils
0aed8855 29790 @: $(MAKE); $(unstage)
a90ef4bf 29791 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29792 r=`${PWD_COMMAND}`; export r; \
29793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29794 $(HOST_EXPORTS) \
b813574b 29795 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29797 done; \
a90ef4bf
JM
29798 echo "Doing info in utils" ; \
29799 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29802 "RANLIB=$${RANLIB}" \
0c24b341 29803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29804 info) \
2a4cbe27
NN
29805 || exit 1
29806
a90ef4bf 29807@endif utils
2a4cbe27 29808
a90ef4bf
JM
29809.PHONY: maybe-dvi-utils dvi-utils
29810maybe-dvi-utils:
29811@if utils
29812maybe-dvi-utils: dvi-utils
2a4cbe27 29813
a90ef4bf
JM
29814dvi-utils: \
29815 configure-utils
0aed8855 29816 @: $(MAKE); $(unstage)
a90ef4bf 29817 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29818 r=`${PWD_COMMAND}`; export r; \
29819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29820 $(HOST_EXPORTS) \
b813574b 29821 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29823 done; \
a90ef4bf
JM
29824 echo "Doing dvi in utils" ; \
29825 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29828 "RANLIB=$${RANLIB}" \
0c24b341 29829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29830 dvi) \
2a4cbe27
NN
29831 || exit 1
29832
a90ef4bf 29833@endif utils
2a4cbe27 29834
a90ef4bf
JM
29835.PHONY: maybe-pdf-utils pdf-utils
29836maybe-pdf-utils:
29837@if utils
29838maybe-pdf-utils: pdf-utils
56a8fe78 29839
a90ef4bf
JM
29840pdf-utils: \
29841 configure-utils
56a8fe78 29842 @: $(MAKE); $(unstage)
a90ef4bf 29843 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
29844 r=`${PWD_COMMAND}`; export r; \
29845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29846 $(HOST_EXPORTS) \
29847 for flag in $(EXTRA_HOST_FLAGS) ; do \
29848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29849 done; \
a90ef4bf
JM
29850 echo "Doing pdf in utils" ; \
29851 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
29852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29854 "RANLIB=$${RANLIB}" \
0c24b341 29855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29856 pdf) \
29857 || exit 1
29858
a90ef4bf 29859@endif utils
56a8fe78 29860
a90ef4bf
JM
29861.PHONY: maybe-html-utils html-utils
29862maybe-html-utils:
29863@if utils
29864maybe-html-utils: html-utils
6d389afc 29865
a90ef4bf
JM
29866html-utils: \
29867 configure-utils
0aed8855 29868 @: $(MAKE); $(unstage)
a90ef4bf 29869 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
29870 r=`${PWD_COMMAND}`; export r; \
29871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29872 $(HOST_EXPORTS) \
29873 for flag in $(EXTRA_HOST_FLAGS) ; do \
29874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29875 done; \
a90ef4bf
JM
29876 echo "Doing html in utils" ; \
29877 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
29878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29880 "RANLIB=$${RANLIB}" \
0c24b341 29881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29882 html) \
29883 || exit 1
29884
a90ef4bf 29885@endif utils
6d389afc 29886
a90ef4bf
JM
29887.PHONY: maybe-TAGS-utils TAGS-utils
29888maybe-TAGS-utils:
29889@if utils
29890maybe-TAGS-utils: TAGS-utils
2a4cbe27 29891
a90ef4bf
JM
29892TAGS-utils: \
29893 configure-utils
0aed8855 29894 @: $(MAKE); $(unstage)
a90ef4bf 29895 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29896 r=`${PWD_COMMAND}`; export r; \
29897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29898 $(HOST_EXPORTS) \
b813574b 29899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29901 done; \
a90ef4bf
JM
29902 echo "Doing TAGS in utils" ; \
29903 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29906 "RANLIB=$${RANLIB}" \
0c24b341 29907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29908 TAGS) \
2a4cbe27
NN
29909 || exit 1
29910
a90ef4bf 29911@endif utils
2a4cbe27 29912
a90ef4bf
JM
29913.PHONY: maybe-install-info-utils install-info-utils
29914maybe-install-info-utils:
29915@if utils
29916maybe-install-info-utils: install-info-utils
2a4cbe27 29917
a90ef4bf
JM
29918install-info-utils: \
29919 configure-utils \
29920 info-utils
0aed8855 29921 @: $(MAKE); $(unstage)
a90ef4bf 29922 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29923 r=`${PWD_COMMAND}`; export r; \
29924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29925 $(HOST_EXPORTS) \
b813574b 29926 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29928 done; \
a90ef4bf
JM
29929 echo "Doing install-info in utils" ; \
29930 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29933 "RANLIB=$${RANLIB}" \
0c24b341 29934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29935 install-info) \
2a4cbe27
NN
29936 || exit 1
29937
a90ef4bf 29938@endif utils
2a4cbe27 29939
a90ef4bf
JM
29940.PHONY: maybe-install-pdf-utils install-pdf-utils
29941maybe-install-pdf-utils:
29942@if utils
29943maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 29944
a90ef4bf
JM
29945install-pdf-utils: \
29946 configure-utils \
29947 pdf-utils
a3ca38d2 29948 @: $(MAKE); $(unstage)
a90ef4bf 29949 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
29950 r=`${PWD_COMMAND}`; export r; \
29951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29952 $(HOST_EXPORTS) \
29953 for flag in $(EXTRA_HOST_FLAGS) ; do \
29954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29955 done; \
a90ef4bf
JM
29956 echo "Doing install-pdf in utils" ; \
29957 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
29958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29960 "RANLIB=$${RANLIB}" \
0c24b341 29961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29962 install-pdf) \
29963 || exit 1
29964
a90ef4bf 29965@endif utils
a3ca38d2 29966
a90ef4bf
JM
29967.PHONY: maybe-install-html-utils install-html-utils
29968maybe-install-html-utils:
29969@if utils
29970maybe-install-html-utils: install-html-utils
108a6f8e 29971
a90ef4bf
JM
29972install-html-utils: \
29973 configure-utils \
29974 html-utils
108a6f8e 29975 @: $(MAKE); $(unstage)
a90ef4bf 29976 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
29977 r=`${PWD_COMMAND}`; export r; \
29978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29979 $(HOST_EXPORTS) \
29980 for flag in $(EXTRA_HOST_FLAGS) ; do \
29981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29982 done; \
a90ef4bf
JM
29983 echo "Doing install-html in utils" ; \
29984 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
29985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29987 "RANLIB=$${RANLIB}" \
0c24b341 29988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29989 install-html) \
29990 || exit 1
29991
a90ef4bf 29992@endif utils
108a6f8e 29993
a90ef4bf
JM
29994.PHONY: maybe-installcheck-utils installcheck-utils
29995maybe-installcheck-utils:
29996@if utils
29997maybe-installcheck-utils: installcheck-utils
2a4cbe27 29998
a90ef4bf
JM
29999installcheck-utils: \
30000 configure-utils
0aed8855 30001 @: $(MAKE); $(unstage)
a90ef4bf 30002 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30003 r=`${PWD_COMMAND}`; export r; \
30004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30005 $(HOST_EXPORTS) \
b813574b 30006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30008 done; \
a90ef4bf
JM
30009 echo "Doing installcheck in utils" ; \
30010 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30013 "RANLIB=$${RANLIB}" \
0c24b341 30014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30015 installcheck) \
2a4cbe27
NN
30016 || exit 1
30017
a90ef4bf 30018@endif utils
2a4cbe27 30019
a90ef4bf
JM
30020.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30021maybe-mostlyclean-utils:
30022@if utils
30023maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 30024
a90ef4bf 30025mostlyclean-utils:
0aed8855 30026 @: $(MAKE); $(unstage)
a90ef4bf 30027 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30028 r=`${PWD_COMMAND}`; export r; \
30029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30030 $(HOST_EXPORTS) \
b813574b 30031 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30033 done; \
a90ef4bf
JM
30034 echo "Doing mostlyclean in utils" ; \
30035 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30038 "RANLIB=$${RANLIB}" \
0c24b341 30039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30040 mostlyclean) \
2a4cbe27
NN
30041 || exit 1
30042
a90ef4bf 30043@endif utils
2a4cbe27 30044
a90ef4bf
JM
30045.PHONY: maybe-clean-utils clean-utils
30046maybe-clean-utils:
30047@if utils
30048maybe-clean-utils: clean-utils
2a4cbe27 30049
a90ef4bf 30050clean-utils:
0aed8855 30051 @: $(MAKE); $(unstage)
a90ef4bf 30052 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30053 r=`${PWD_COMMAND}`; export r; \
30054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30055 $(HOST_EXPORTS) \
b813574b 30056 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30058 done; \
a90ef4bf
JM
30059 echo "Doing clean in utils" ; \
30060 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30063 "RANLIB=$${RANLIB}" \
0c24b341 30064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30065 clean) \
2a4cbe27
NN
30066 || exit 1
30067
a90ef4bf 30068@endif utils
2a4cbe27 30069
a90ef4bf
JM
30070.PHONY: maybe-distclean-utils distclean-utils
30071maybe-distclean-utils:
30072@if utils
30073maybe-distclean-utils: distclean-utils
2a4cbe27 30074
a90ef4bf 30075distclean-utils:
0aed8855 30076 @: $(MAKE); $(unstage)
a90ef4bf 30077 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30078 r=`${PWD_COMMAND}`; export r; \
30079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30080 $(HOST_EXPORTS) \
b813574b 30081 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30083 done; \
a90ef4bf
JM
30084 echo "Doing distclean in utils" ; \
30085 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30088 "RANLIB=$${RANLIB}" \
0c24b341 30089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30090 distclean) \
2a4cbe27
NN
30091 || exit 1
30092
a90ef4bf 30093@endif utils
2a4cbe27 30094
a90ef4bf
JM
30095.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30096maybe-maintainer-clean-utils:
30097@if utils
30098maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 30099
a90ef4bf 30100maintainer-clean-utils:
0aed8855 30101 @: $(MAKE); $(unstage)
a90ef4bf 30102 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30103 r=`${PWD_COMMAND}`; export r; \
30104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30105 $(HOST_EXPORTS) \
b813574b 30106 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30108 done; \
a90ef4bf
JM
30109 echo "Doing maintainer-clean in utils" ; \
30110 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30113 "RANLIB=$${RANLIB}" \
0c24b341 30114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30115 maintainer-clean) \
2a4cbe27
NN
30116 || exit 1
30117
a90ef4bf 30118@endif utils
2a4cbe27 30119
2a4cbe27 30120
a7254363 30121
a90ef4bf
JM
30122.PHONY: configure-gnattools maybe-configure-gnattools
30123maybe-configure-gnattools:
4f0ef2d8 30124@if gcc-bootstrap
a90ef4bf 30125configure-gnattools: stage_current
4f0ef2d8 30126@endif gcc-bootstrap
a90ef4bf
JM
30127@if gnattools
30128maybe-configure-gnattools: configure-gnattools
30129configure-gnattools:
0aed8855 30130 @: $(MAKE); $(unstage)
c52c6897 30131 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30133 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
30134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
1f53ca9a 30135 $(HOST_EXPORTS) \
a90ef4bf
JM
30136 echo Configuring in $(HOST_SUBDIR)/gnattools; \
30137 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 30138 case $(srcdir) in \
b00612cc 30139 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30140 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 30141 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30142 esac; \
1b6c0831
L
30143 module_srcdir=gnattools; \
30144 $(SHELL) \
30145 $$s/$$module_srcdir/configure \
30146 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30147 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30148 --target=${target_alias} \
2a4cbe27 30149 || exit 1
a90ef4bf 30150@endif gnattools
2a4cbe27 30151
a7254363
PB
30152
30153
d545f33b
PB
30154
30155
a90ef4bf
JM
30156.PHONY: all-gnattools maybe-all-gnattools
30157maybe-all-gnattools:
4f0ef2d8 30158@if gcc-bootstrap
a90ef4bf 30159all-gnattools: stage_current
4f0ef2d8 30160@endif gcc-bootstrap
a90ef4bf
JM
30161@if gnattools
30162TARGET-gnattools=all
30163maybe-all-gnattools: all-gnattools
30164all-gnattools: configure-gnattools
0aed8855 30165 @: $(MAKE); $(unstage)
4fa63067
NN
30166 @r=`${PWD_COMMAND}`; export r; \
30167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30168 $(HOST_EXPORTS) \
a90ef4bf 30169 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 30170 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30171 $(TARGET-gnattools))
30172@endif gnattools
4fa63067 30173
a7254363 30174
d545f33b
PB
30175
30176
a90ef4bf
JM
30177.PHONY: check-gnattools maybe-check-gnattools
30178maybe-check-gnattools:
30179@if gnattools
30180maybe-check-gnattools: check-gnattools
2a4cbe27 30181
a90ef4bf 30182check-gnattools:
0aed8855 30183 @: $(MAKE); $(unstage)
4fa63067
NN
30184 @r=`${PWD_COMMAND}`; export r; \
30185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30186 $(HOST_EXPORTS) \
a90ef4bf 30187 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 30188 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30189
a90ef4bf 30190@endif gnattools
4fa63067 30191
a90ef4bf
JM
30192.PHONY: install-gnattools maybe-install-gnattools
30193maybe-install-gnattools:
30194@if gnattools
30195maybe-install-gnattools: install-gnattools
4fa63067 30196
a90ef4bf 30197install-gnattools: installdirs
0aed8855 30198 @: $(MAKE); $(unstage)
4fa63067
NN
30199 @r=`${PWD_COMMAND}`; export r; \
30200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30201 $(HOST_EXPORTS) \
a90ef4bf 30202 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 30203 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30204
a90ef4bf 30205@endif gnattools
4fa63067 30206
a90ef4bf
JM
30207.PHONY: install-strip-gnattools maybe-install-strip-gnattools
30208maybe-install-strip-gnattools:
30209@if gnattools
30210maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 30211
a90ef4bf 30212install-strip-gnattools: installdirs
9b980aa1
RW
30213 @: $(MAKE); $(unstage)
30214 @r=`${PWD_COMMAND}`; export r; \
30215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30216 $(HOST_EXPORTS) \
a90ef4bf 30217 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
30218 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30219
a90ef4bf 30220@endif gnattools
9b980aa1 30221
56a8fe78 30222# Other targets (info, dvi, pdf, etc.)
4fa63067 30223
a90ef4bf
JM
30224.PHONY: maybe-info-gnattools info-gnattools
30225maybe-info-gnattools:
30226@if gnattools
30227maybe-info-gnattools: info-gnattools
4fa63067 30228
a90ef4bf
JM
30229info-gnattools: \
30230 configure-gnattools
0aed8855 30231 @: $(MAKE); $(unstage)
a90ef4bf 30232 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30233 r=`${PWD_COMMAND}`; export r; \
30234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30235 $(HOST_EXPORTS) \
b813574b 30236 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30238 done; \
a90ef4bf
JM
30239 echo "Doing info in gnattools" ; \
30240 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30243 "RANLIB=$${RANLIB}" \
0c24b341 30244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30245 info) \
2a4cbe27
NN
30246 || exit 1
30247
a90ef4bf 30248@endif gnattools
2a4cbe27 30249
a90ef4bf
JM
30250.PHONY: maybe-dvi-gnattools dvi-gnattools
30251maybe-dvi-gnattools:
30252@if gnattools
30253maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 30254
a90ef4bf
JM
30255dvi-gnattools: \
30256 configure-gnattools
0aed8855 30257 @: $(MAKE); $(unstage)
a90ef4bf 30258 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30259 r=`${PWD_COMMAND}`; export r; \
30260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30261 $(HOST_EXPORTS) \
b813574b 30262 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30264 done; \
a90ef4bf
JM
30265 echo "Doing dvi in gnattools" ; \
30266 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30269 "RANLIB=$${RANLIB}" \
0c24b341 30270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30271 dvi) \
2a4cbe27
NN
30272 || exit 1
30273
a90ef4bf 30274@endif gnattools
2a4cbe27 30275
a90ef4bf
JM
30276.PHONY: maybe-pdf-gnattools pdf-gnattools
30277maybe-pdf-gnattools:
30278@if gnattools
30279maybe-pdf-gnattools: pdf-gnattools
56a8fe78 30280
a90ef4bf
JM
30281pdf-gnattools: \
30282 configure-gnattools
56a8fe78 30283 @: $(MAKE); $(unstage)
a90ef4bf 30284 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
30285 r=`${PWD_COMMAND}`; export r; \
30286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30287 $(HOST_EXPORTS) \
30288 for flag in $(EXTRA_HOST_FLAGS) ; do \
30289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30290 done; \
a90ef4bf
JM
30291 echo "Doing pdf in gnattools" ; \
30292 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
30293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30295 "RANLIB=$${RANLIB}" \
0c24b341 30296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30297 pdf) \
30298 || exit 1
30299
a90ef4bf 30300@endif gnattools
56a8fe78 30301
a90ef4bf
JM
30302.PHONY: maybe-html-gnattools html-gnattools
30303maybe-html-gnattools:
30304@if gnattools
30305maybe-html-gnattools: html-gnattools
6d389afc 30306
a90ef4bf
JM
30307html-gnattools: \
30308 configure-gnattools
0aed8855 30309 @: $(MAKE); $(unstage)
a90ef4bf 30310 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
30311 r=`${PWD_COMMAND}`; export r; \
30312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30313 $(HOST_EXPORTS) \
30314 for flag in $(EXTRA_HOST_FLAGS) ; do \
30315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30316 done; \
a90ef4bf
JM
30317 echo "Doing html in gnattools" ; \
30318 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
30319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30321 "RANLIB=$${RANLIB}" \
0c24b341 30322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30323 html) \
30324 || exit 1
30325
a90ef4bf 30326@endif gnattools
6d389afc 30327
a90ef4bf
JM
30328.PHONY: maybe-TAGS-gnattools TAGS-gnattools
30329maybe-TAGS-gnattools:
30330@if gnattools
30331maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 30332
a90ef4bf
JM
30333TAGS-gnattools: \
30334 configure-gnattools
0aed8855 30335 @: $(MAKE); $(unstage)
a90ef4bf 30336 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30337 r=`${PWD_COMMAND}`; export r; \
30338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30339 $(HOST_EXPORTS) \
b813574b 30340 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30342 done; \
a90ef4bf
JM
30343 echo "Doing TAGS in gnattools" ; \
30344 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30347 "RANLIB=$${RANLIB}" \
0c24b341 30348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30349 TAGS) \
2a4cbe27
NN
30350 || exit 1
30351
a90ef4bf 30352@endif gnattools
2a4cbe27 30353
a90ef4bf
JM
30354.PHONY: maybe-install-info-gnattools install-info-gnattools
30355maybe-install-info-gnattools:
30356@if gnattools
30357maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 30358
a90ef4bf
JM
30359install-info-gnattools: \
30360 configure-gnattools \
30361 info-gnattools
0aed8855 30362 @: $(MAKE); $(unstage)
a90ef4bf 30363 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30364 r=`${PWD_COMMAND}`; export r; \
30365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30366 $(HOST_EXPORTS) \
b813574b 30367 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30369 done; \
a90ef4bf
JM
30370 echo "Doing install-info in gnattools" ; \
30371 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30374 "RANLIB=$${RANLIB}" \
0c24b341 30375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30376 install-info) \
2a4cbe27
NN
30377 || exit 1
30378
a90ef4bf 30379@endif gnattools
2a4cbe27 30380
a90ef4bf
JM
30381.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
30382maybe-install-pdf-gnattools:
30383@if gnattools
30384maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 30385
a90ef4bf
JM
30386install-pdf-gnattools: \
30387 configure-gnattools \
30388 pdf-gnattools
a3ca38d2 30389 @: $(MAKE); $(unstage)
a90ef4bf 30390 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
30391 r=`${PWD_COMMAND}`; export r; \
30392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30393 $(HOST_EXPORTS) \
30394 for flag in $(EXTRA_HOST_FLAGS) ; do \
30395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30396 done; \
a90ef4bf
JM
30397 echo "Doing install-pdf in gnattools" ; \
30398 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
30399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30401 "RANLIB=$${RANLIB}" \
0c24b341 30402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30403 install-pdf) \
30404 || exit 1
30405
a90ef4bf 30406@endif gnattools
a3ca38d2 30407
a90ef4bf
JM
30408.PHONY: maybe-install-html-gnattools install-html-gnattools
30409maybe-install-html-gnattools:
30410@if gnattools
30411maybe-install-html-gnattools: install-html-gnattools
108a6f8e 30412
a90ef4bf
JM
30413install-html-gnattools: \
30414 configure-gnattools \
30415 html-gnattools
108a6f8e 30416 @: $(MAKE); $(unstage)
a90ef4bf 30417 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
30418 r=`${PWD_COMMAND}`; export r; \
30419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30420 $(HOST_EXPORTS) \
30421 for flag in $(EXTRA_HOST_FLAGS) ; do \
30422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30423 done; \
a90ef4bf
JM
30424 echo "Doing install-html in gnattools" ; \
30425 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
30426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30428 "RANLIB=$${RANLIB}" \
0c24b341 30429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30430 install-html) \
30431 || exit 1
30432
a90ef4bf 30433@endif gnattools
108a6f8e 30434
a90ef4bf
JM
30435.PHONY: maybe-installcheck-gnattools installcheck-gnattools
30436maybe-installcheck-gnattools:
30437@if gnattools
30438maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 30439
a90ef4bf
JM
30440installcheck-gnattools: \
30441 configure-gnattools
0aed8855 30442 @: $(MAKE); $(unstage)
a90ef4bf 30443 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30444 r=`${PWD_COMMAND}`; export r; \
30445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30446 $(HOST_EXPORTS) \
b813574b 30447 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30449 done; \
a90ef4bf
JM
30450 echo "Doing installcheck in gnattools" ; \
30451 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30454 "RANLIB=$${RANLIB}" \
0c24b341 30455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30456 installcheck) \
2a4cbe27
NN
30457 || exit 1
30458
a90ef4bf 30459@endif gnattools
2a4cbe27 30460
a90ef4bf
JM
30461.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
30462maybe-mostlyclean-gnattools:
30463@if gnattools
30464maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 30465
a90ef4bf 30466mostlyclean-gnattools:
0aed8855 30467 @: $(MAKE); $(unstage)
a90ef4bf 30468 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30469 r=`${PWD_COMMAND}`; export r; \
30470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30471 $(HOST_EXPORTS) \
b813574b 30472 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30474 done; \
a90ef4bf
JM
30475 echo "Doing mostlyclean in gnattools" ; \
30476 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30479 "RANLIB=$${RANLIB}" \
0c24b341 30480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30481 mostlyclean) \
2a4cbe27
NN
30482 || exit 1
30483
a90ef4bf 30484@endif gnattools
2a4cbe27 30485
a90ef4bf
JM
30486.PHONY: maybe-clean-gnattools clean-gnattools
30487maybe-clean-gnattools:
30488@if gnattools
30489maybe-clean-gnattools: clean-gnattools
2a4cbe27 30490
a90ef4bf 30491clean-gnattools:
0aed8855 30492 @: $(MAKE); $(unstage)
a90ef4bf 30493 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30494 r=`${PWD_COMMAND}`; export r; \
30495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30496 $(HOST_EXPORTS) \
b813574b 30497 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30499 done; \
a90ef4bf
JM
30500 echo "Doing clean in gnattools" ; \
30501 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30504 "RANLIB=$${RANLIB}" \
0c24b341 30505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30506 clean) \
2a4cbe27
NN
30507 || exit 1
30508
a90ef4bf 30509@endif gnattools
2a4cbe27 30510
a90ef4bf
JM
30511.PHONY: maybe-distclean-gnattools distclean-gnattools
30512maybe-distclean-gnattools:
30513@if gnattools
30514maybe-distclean-gnattools: distclean-gnattools
a2592b1b 30515
a90ef4bf 30516distclean-gnattools:
0aed8855 30517 @: $(MAKE); $(unstage)
a90ef4bf 30518 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
30519 r=`${PWD_COMMAND}`; export r; \
30520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30521 $(HOST_EXPORTS) \
b813574b 30522 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
30523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30524 done; \
a90ef4bf
JM
30525 echo "Doing distclean in gnattools" ; \
30526 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
30527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30529 "RANLIB=$${RANLIB}" \
0c24b341 30530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30531 distclean) \
a2592b1b
DD
30532 || exit 1
30533
a90ef4bf 30534@endif gnattools
a2592b1b 30535
a90ef4bf
JM
30536.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
30537maybe-maintainer-clean-gnattools:
30538@if gnattools
30539maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 30540
a90ef4bf 30541maintainer-clean-gnattools:
0aed8855 30542 @: $(MAKE); $(unstage)
a90ef4bf 30543 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 30544 r=`${PWD_COMMAND}`; export r; \
b40e3958 30545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30546 $(HOST_EXPORTS) \
b813574b 30547 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30549 done; \
a90ef4bf
JM
30550 echo "Doing maintainer-clean in gnattools" ; \
30551 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
30552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30554 "RANLIB=$${RANLIB}" \
0c24b341 30555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30556 maintainer-clean) \
4fa63067 30557 || exit 1
252b5132 30558
a90ef4bf 30559@endif gnattools
252b5132 30560
252b5132 30561
a7254363 30562
a90ef4bf
JM
30563.PHONY: configure-lto-plugin maybe-configure-lto-plugin
30564maybe-configure-lto-plugin:
4f0ef2d8 30565@if gcc-bootstrap
a90ef4bf 30566configure-lto-plugin: stage_current
4f0ef2d8 30567@endif gcc-bootstrap
a90ef4bf
JM
30568@if lto-plugin
30569maybe-configure-lto-plugin: configure-lto-plugin
30570configure-lto-plugin:
c52c6897 30571 @r=`${PWD_COMMAND}`; export r; \
b813574b 30572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30573 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
30574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
1f53ca9a 30575 $(HOST_EXPORTS) \
a90ef4bf
JM
30576 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
30577 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 30578 case $(srcdir) in \
b00612cc 30579 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30580 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 30581 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30582 esac; \
1b6c0831
L
30583 module_srcdir=lto-plugin; \
30584 $(SHELL) \
30585 $$s/$$module_srcdir/configure \
30586 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30588 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 30589 || exit 1
a90ef4bf 30590@endif lto-plugin
a7254363 30591
d545f33b
PB
30592
30593
a90ef4bf
JM
30594.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
30595maybe-configure-stage1-lto-plugin:
30596@if lto-plugin-bootstrap
30597maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
30598configure-stage1-lto-plugin:
30599 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30600 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
30601 @r=`${PWD_COMMAND}`; export r; \
30602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30603 TFLAGS="$(STAGE1_TFLAGS)"; \
30604 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
30605 $(HOST_EXPORTS) \
30606 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
30607 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
30608 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
30609 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin ; \
30610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30611 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30612 case $(srcdir) in \
30613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30614 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30616 esac; \
1b6c0831
L
30617 module_srcdir=lto-plugin; \
30618 $(SHELL) $$s/$$module_srcdir/configure \
30619 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30621 --target=${target_alias} \
30622 \
a90ef4bf 30623 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 30624 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30625@endif lto-plugin-bootstrap
252b5132 30626
a90ef4bf
JM
30627.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
30628maybe-configure-stage2-lto-plugin:
30629@if lto-plugin-bootstrap
30630maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
30631configure-stage2-lto-plugin:
30632 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30633 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
30634 @r=`${PWD_COMMAND}`; export r; \
30635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30636 TFLAGS="$(STAGE2_TFLAGS)"; \
30637 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 30638 $(HOST_EXPORTS) \
a90ef4bf
JM
30639 $(POSTSTAGE1_HOST_EXPORTS) \
30640 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
30641 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
30642 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
30643 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin ; \
30644 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30645 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30646 case $(srcdir) in \
30647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30648 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30650 esac; \
1b6c0831
L
30651 module_srcdir=lto-plugin; \
30652 $(SHELL) $$s/$$module_srcdir/configure \
30653 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30654 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30655 --target=${target_alias} \
30656 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30657 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 30658 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30659@endif lto-plugin-bootstrap
4fa63067 30660
a90ef4bf
JM
30661.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
30662maybe-configure-stage3-lto-plugin:
30663@if lto-plugin-bootstrap
30664maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
30665configure-stage3-lto-plugin:
30666 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30667 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
30668 @r=`${PWD_COMMAND}`; export r; \
30669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30670 TFLAGS="$(STAGE3_TFLAGS)"; \
30671 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30672 $(HOST_EXPORTS) \
a90ef4bf
JM
30673 $(POSTSTAGE1_HOST_EXPORTS) \
30674 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
30675 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
30676 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
30677 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin ; \
30678 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30679 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30680 case $(srcdir) in \
30681 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30682 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30683 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30684 esac; \
1b6c0831
L
30685 module_srcdir=lto-plugin; \
30686 $(SHELL) $$s/$$module_srcdir/configure \
30687 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30688 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30689 --target=${target_alias} \
30690 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30691 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 30692 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30693@endif lto-plugin-bootstrap
9b980aa1 30694
a90ef4bf
JM
30695.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
30696maybe-configure-stage4-lto-plugin:
30697@if lto-plugin-bootstrap
30698maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
30699configure-stage4-lto-plugin:
30700 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30701 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
30702 @r=`${PWD_COMMAND}`; export r; \
30703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30704 TFLAGS="$(STAGE4_TFLAGS)"; \
30705 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 30706 $(HOST_EXPORTS) \
a90ef4bf
JM
30707 $(POSTSTAGE1_HOST_EXPORTS) \
30708 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
30709 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
30710 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
30711 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin ; \
30712 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30713 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30714 case $(srcdir) in \
30715 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30716 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30717 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30718 esac; \
1b6c0831
L
30719 module_srcdir=lto-plugin; \
30720 $(SHELL) $$s/$$module_srcdir/configure \
30721 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30722 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30723 --target=${target_alias} \
30724 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30725 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 30726 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30727@endif lto-plugin-bootstrap
4fa63067 30728
a90ef4bf
JM
30729.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
30730maybe-configure-stageprofile-lto-plugin:
30731@if lto-plugin-bootstrap
30732maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
30733configure-stageprofile-lto-plugin:
30734 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30735 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
30736 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30738 TFLAGS="$(STAGEprofile_TFLAGS)"; \
30739 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30740 $(HOST_EXPORTS) \
a90ef4bf
JM
30741 $(POSTSTAGE1_HOST_EXPORTS) \
30742 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
30743 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
30744 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
30745 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin ; \
30746 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30747 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30748 case $(srcdir) in \
30749 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30750 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30751 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30752 esac; \
1b6c0831
L
30753 module_srcdir=lto-plugin; \
30754 $(SHELL) $$s/$$module_srcdir/configure \
30755 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30756 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30757 --target=${target_alias} \
30758 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30759 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 30760 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30761@endif lto-plugin-bootstrap
4fa63067 30762
a90ef4bf
JM
30763.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
30764maybe-configure-stagefeedback-lto-plugin:
30765@if lto-plugin-bootstrap
30766maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
30767configure-stagefeedback-lto-plugin:
30768 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
30769 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
30770 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30772 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
30773 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30774 $(HOST_EXPORTS) \
a90ef4bf
JM
30775 $(POSTSTAGE1_HOST_EXPORTS) \
30776 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
30777 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
30778 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
30779 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin ; \
30780 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30781 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30782 case $(srcdir) in \
30783 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30784 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30785 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30786 esac; \
1b6c0831
L
30787 module_srcdir=lto-plugin; \
30788 $(SHELL) $$s/$$module_srcdir/configure \
30789 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30790 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30791 --target=${target_alias} \
30792 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30793 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 30794 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30795@endif lto-plugin-bootstrap
252b5132 30796
56a8fe78 30797
56a8fe78 30798
56a8fe78 30799
6d389afc 30800
a90ef4bf
JM
30801.PHONY: all-lto-plugin maybe-all-lto-plugin
30802maybe-all-lto-plugin:
30803@if gcc-bootstrap
30804all-lto-plugin: stage_current
30805@endif gcc-bootstrap
30806@if lto-plugin
30807TARGET-lto-plugin=all
30808maybe-all-lto-plugin: all-lto-plugin
30809all-lto-plugin: configure-lto-plugin
30810 @r=`${PWD_COMMAND}`; export r; \
6d389afc 30811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30812 $(HOST_EXPORTS) \
30813 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30815 $(TARGET-lto-plugin))
30816@endif lto-plugin
6d389afc 30817
6d389afc 30818
252b5132 30819
a90ef4bf
JM
30820.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
30821.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
30822maybe-all-stage1-lto-plugin:
30823maybe-clean-stage1-lto-plugin:
30824@if lto-plugin-bootstrap
30825maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
30826all-stage1: all-stage1-lto-plugin
30827TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
30828all-stage1-lto-plugin: configure-stage1-lto-plugin
30829 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30830 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30832 TFLAGS="$(STAGE1_TFLAGS)"; \
30833 $(HOST_EXPORTS) \
30834 cd $(HOST_SUBDIR)/lto-plugin && \
30835 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30836 CFLAGS="$(STAGE1_CFLAGS)" \
30837 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
30838 LIBCFLAGS="$(LIBCFLAGS)" \
30839 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30840 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30841 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 30842 $(EXTRA_HOST_FLAGS) \
1b6c0831 30843 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30844 TFLAGS="$(STAGE1_TFLAGS)" \
30845 $(TARGET-stage1-lto-plugin)
3866be5d 30846
a90ef4bf
JM
30847maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
30848clean-stage1: clean-stage1-lto-plugin
30849clean-stage1-lto-plugin:
30850 @if [ $(current_stage) = stage1 ]; then \
30851 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30852 else \
30853 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
30854 $(MAKE) stage1-start; \
30855 fi; \
30856 cd $(HOST_SUBDIR)/lto-plugin && \
30857 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 30858 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30859@endif lto-plugin-bootstrap
3866be5d 30860
3866be5d 30861
a90ef4bf
JM
30862.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
30863.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
30864maybe-all-stage2-lto-plugin:
30865maybe-clean-stage2-lto-plugin:
30866@if lto-plugin-bootstrap
30867maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
30868all-stage2: all-stage2-lto-plugin
30869TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
30870all-stage2-lto-plugin: configure-stage2-lto-plugin
30871 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30872 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30874 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 30875 $(HOST_EXPORTS) \
a90ef4bf
JM
30876 $(POSTSTAGE1_HOST_EXPORTS) \
30877 cd $(HOST_SUBDIR)/lto-plugin && \
30878 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30879 CFLAGS="$(STAGE2_CFLAGS)" \
30880 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
30881 LIBCFLAGS="$(STAGE2_CFLAGS)" \
30882 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30883 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30884 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30885 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30886 TFLAGS="$(STAGE2_TFLAGS)" \
30887 $(TARGET-stage2-lto-plugin)
3866be5d 30888
a90ef4bf
JM
30889maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
30890clean-stage2: clean-stage2-lto-plugin
30891clean-stage2-lto-plugin:
30892 @if [ $(current_stage) = stage2 ]; then \
30893 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30894 else \
30895 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
30896 $(MAKE) stage2-start; \
30897 fi; \
30898 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30899 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30900@endif lto-plugin-bootstrap
3866be5d 30901
a3ca38d2 30902
a90ef4bf
JM
30903.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
30904.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
30905maybe-all-stage3-lto-plugin:
30906maybe-clean-stage3-lto-plugin:
30907@if lto-plugin-bootstrap
30908maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
30909all-stage3: all-stage3-lto-plugin
30910TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
30911all-stage3-lto-plugin: configure-stage3-lto-plugin
30912 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30913 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 30914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30915 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 30916 $(HOST_EXPORTS) \
a90ef4bf
JM
30917 $(POSTSTAGE1_HOST_EXPORTS) \
30918 cd $(HOST_SUBDIR)/lto-plugin && \
30919 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30920 CFLAGS="$(STAGE3_CFLAGS)" \
30921 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
30922 LIBCFLAGS="$(STAGE3_CFLAGS)" \
30923 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30924 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30925 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30926 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30927 TFLAGS="$(STAGE3_TFLAGS)" \
30928 $(TARGET-stage3-lto-plugin)
a3ca38d2 30929
a90ef4bf
JM
30930maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
30931clean-stage3: clean-stage3-lto-plugin
30932clean-stage3-lto-plugin:
30933 @if [ $(current_stage) = stage3 ]; then \
30934 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30935 else \
30936 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
30937 $(MAKE) stage3-start; \
30938 fi; \
30939 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30940 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30941@endif lto-plugin-bootstrap
a3ca38d2 30942
108a6f8e 30943
a90ef4bf
JM
30944.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
30945.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
30946maybe-all-stage4-lto-plugin:
30947maybe-clean-stage4-lto-plugin:
30948@if lto-plugin-bootstrap
30949maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
30950all-stage4: all-stage4-lto-plugin
30951TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
30952all-stage4-lto-plugin: configure-stage4-lto-plugin
30953 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30954 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 30955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30956 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 30957 $(HOST_EXPORTS) \
a90ef4bf
JM
30958 $(POSTSTAGE1_HOST_EXPORTS) \
30959 cd $(HOST_SUBDIR)/lto-plugin && \
30960 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30961 CFLAGS="$(STAGE4_CFLAGS)" \
30962 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
30963 LIBCFLAGS="$(STAGE4_CFLAGS)" \
30964 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30965 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30966 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30967 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30968 TFLAGS="$(STAGE4_TFLAGS)" \
30969 $(TARGET-stage4-lto-plugin)
108a6f8e 30970
a90ef4bf
JM
30971maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
30972clean-stage4: clean-stage4-lto-plugin
30973clean-stage4-lto-plugin:
30974 @if [ $(current_stage) = stage4 ]; then \
30975 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30976 else \
30977 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
30978 $(MAKE) stage4-start; \
30979 fi; \
30980 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30981 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30982@endif lto-plugin-bootstrap
4fa63067 30983
4fa63067 30984
a90ef4bf
JM
30985.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
30986.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
30987maybe-all-stageprofile-lto-plugin:
30988maybe-clean-stageprofile-lto-plugin:
30989@if lto-plugin-bootstrap
30990maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
30991all-stageprofile: all-stageprofile-lto-plugin
30992TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
30993all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
30994 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30995 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30997 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 30998 $(HOST_EXPORTS) \
a90ef4bf
JM
30999 $(POSTSTAGE1_HOST_EXPORTS) \
31000 cd $(HOST_SUBDIR)/lto-plugin && \
31001 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31002 CFLAGS="$(STAGEprofile_CFLAGS)" \
31003 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
31004 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
31005 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31006 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31007 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31008 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31009 TFLAGS="$(STAGEprofile_TFLAGS)" \
31010 $(TARGET-stageprofile-lto-plugin)
4fa63067 31011
a90ef4bf
JM
31012maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
31013clean-stageprofile: clean-stageprofile-lto-plugin
31014clean-stageprofile-lto-plugin:
31015 @if [ $(current_stage) = stageprofile ]; then \
31016 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31017 else \
31018 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
31019 $(MAKE) stageprofile-start; \
31020 fi; \
31021 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31022 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31023@endif lto-plugin-bootstrap
4fa63067 31024
4fa63067 31025
a90ef4bf
JM
31026.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
31027.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
31028maybe-all-stagefeedback-lto-plugin:
31029maybe-clean-stagefeedback-lto-plugin:
31030@if lto-plugin-bootstrap
31031maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
31032all-stagefeedback: all-stagefeedback-lto-plugin
31033TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
31034all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31035 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31036 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31038 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 31039 $(HOST_EXPORTS) \
a90ef4bf
JM
31040 $(POSTSTAGE1_HOST_EXPORTS) \
31041 cd $(HOST_SUBDIR)/lto-plugin && \
31042 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31043 CFLAGS="$(STAGEfeedback_CFLAGS)" \
31044 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
31045 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
31046 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31047 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31048 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31049 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31050 TFLAGS="$(STAGEfeedback_TFLAGS)" \
31051 $(TARGET-stagefeedback-lto-plugin)
3866be5d 31052
a90ef4bf
JM
31053maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
31054clean-stagefeedback: clean-stagefeedback-lto-plugin
31055clean-stagefeedback-lto-plugin:
31056 @if [ $(current_stage) = stagefeedback ]; then \
31057 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31058 else \
31059 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
31060 $(MAKE) stagefeedback-start; \
31061 fi; \
31062 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31063 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31064@endif lto-plugin-bootstrap
a7254363 31065
e2b9e2dc 31066
a7254363
PB
31067
31068
d545f33b 31069
a90ef4bf
JM
31070.PHONY: check-lto-plugin maybe-check-lto-plugin
31071maybe-check-lto-plugin:
31072@if lto-plugin
31073maybe-check-lto-plugin: check-lto-plugin
d545f33b 31074
a90ef4bf 31075check-lto-plugin:
0aed8855 31076 @: $(MAKE); $(unstage)
b40e3958
L
31077 @r=`${PWD_COMMAND}`; export r; \
31078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31079 $(HOST_EXPORTS) \
31080 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31081 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ check)
3866be5d 31082
a90ef4bf 31083@endif lto-plugin
3866be5d 31084
a90ef4bf
JM
31085.PHONY: install-lto-plugin maybe-install-lto-plugin
31086maybe-install-lto-plugin:
31087@if lto-plugin
31088maybe-install-lto-plugin: install-lto-plugin
4fa63067 31089
a90ef4bf 31090install-lto-plugin: installdirs
0aed8855 31091 @: $(MAKE); $(unstage)
4fa63067
NN
31092 @r=`${PWD_COMMAND}`; export r; \
31093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31094 $(HOST_EXPORTS) \
a90ef4bf 31095 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31096 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 31097
a90ef4bf 31098@endif lto-plugin
4fa63067 31099
a90ef4bf
JM
31100.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
31101maybe-install-strip-lto-plugin:
31102@if lto-plugin
31103maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 31104
a90ef4bf 31105install-strip-lto-plugin: installdirs
9b980aa1
RW
31106 @: $(MAKE); $(unstage)
31107 @r=`${PWD_COMMAND}`; export r; \
31108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31109 $(HOST_EXPORTS) \
a90ef4bf 31110 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31111 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 31112
a90ef4bf 31113@endif lto-plugin
9b980aa1 31114
56a8fe78 31115# Other targets (info, dvi, pdf, etc.)
4fa63067 31116
a90ef4bf
JM
31117.PHONY: maybe-info-lto-plugin info-lto-plugin
31118maybe-info-lto-plugin:
31119@if lto-plugin
31120maybe-info-lto-plugin: info-lto-plugin
4fa63067 31121
a90ef4bf
JM
31122info-lto-plugin: \
31123 configure-lto-plugin
31124 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31125 r=`${PWD_COMMAND}`; export r; \
31126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31127 $(HOST_EXPORTS) \
1b6c0831 31128 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31130 done; \
a90ef4bf
JM
31131 echo "Doing info in lto-plugin" ; \
31132 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31135 "RANLIB=$${RANLIB}" \
0c24b341 31136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31137 info) \
4fa63067
NN
31138 || exit 1
31139
a90ef4bf 31140@endif lto-plugin
4fa63067 31141
a90ef4bf
JM
31142.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
31143maybe-dvi-lto-plugin:
31144@if lto-plugin
31145maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 31146
a90ef4bf
JM
31147dvi-lto-plugin: \
31148 configure-lto-plugin
31149 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31150 r=`${PWD_COMMAND}`; export r; \
31151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31152 $(HOST_EXPORTS) \
1b6c0831 31153 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31155 done; \
a90ef4bf
JM
31156 echo "Doing dvi in lto-plugin" ; \
31157 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31160 "RANLIB=$${RANLIB}" \
0c24b341 31161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31162 dvi) \
4fa63067
NN
31163 || exit 1
31164
a90ef4bf 31165@endif lto-plugin
4fa63067 31166
a90ef4bf
JM
31167.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
31168maybe-pdf-lto-plugin:
31169@if lto-plugin
31170maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 31171
a90ef4bf
JM
31172pdf-lto-plugin: \
31173 configure-lto-plugin
31174 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
31175 r=`${PWD_COMMAND}`; export r; \
31176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31177 $(HOST_EXPORTS) \
1b6c0831 31178 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
31179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31180 done; \
a90ef4bf
JM
31181 echo "Doing pdf in lto-plugin" ; \
31182 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
31183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31185 "RANLIB=$${RANLIB}" \
0c24b341 31186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31187 pdf) \
31188 || exit 1
31189
a90ef4bf 31190@endif lto-plugin
56a8fe78 31191
a90ef4bf
JM
31192.PHONY: maybe-html-lto-plugin html-lto-plugin
31193maybe-html-lto-plugin:
31194@if lto-plugin
31195maybe-html-lto-plugin: html-lto-plugin
6d389afc 31196
a90ef4bf
JM
31197html-lto-plugin: \
31198 configure-lto-plugin
31199 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
31200 r=`${PWD_COMMAND}`; export r; \
31201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 31202 $(HOST_EXPORTS) \
1b6c0831 31203 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
31204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31205 done; \
a90ef4bf
JM
31206 echo "Doing html in lto-plugin" ; \
31207 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
31208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31210 "RANLIB=$${RANLIB}" \
0c24b341 31211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31212 html) \
31213 || exit 1
31214
a90ef4bf 31215@endif lto-plugin
6d389afc 31216
a90ef4bf
JM
31217.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
31218maybe-TAGS-lto-plugin:
31219@if lto-plugin
31220maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 31221
a90ef4bf
JM
31222TAGS-lto-plugin: \
31223 configure-lto-plugin
31224 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31225 r=`${PWD_COMMAND}`; export r; \
31226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31227 $(HOST_EXPORTS) \
1b6c0831 31228 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31230 done; \
a90ef4bf
JM
31231 echo "Doing TAGS in lto-plugin" ; \
31232 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31235 "RANLIB=$${RANLIB}" \
0c24b341 31236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31237 TAGS) \
4fa63067
NN
31238 || exit 1
31239
a90ef4bf 31240@endif lto-plugin
4fa63067 31241
a90ef4bf
JM
31242.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
31243maybe-install-info-lto-plugin:
31244@if lto-plugin
31245maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 31246
a90ef4bf
JM
31247install-info-lto-plugin: \
31248 configure-lto-plugin \
31249 info-lto-plugin
31250 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31251 r=`${PWD_COMMAND}`; export r; \
31252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31253 $(HOST_EXPORTS) \
1b6c0831 31254 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31256 done; \
a90ef4bf
JM
31257 echo "Doing install-info in lto-plugin" ; \
31258 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31261 "RANLIB=$${RANLIB}" \
0c24b341 31262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31263 install-info) \
4fa63067
NN
31264 || exit 1
31265
a90ef4bf 31266@endif lto-plugin
4fa63067 31267
a90ef4bf
JM
31268.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
31269maybe-install-pdf-lto-plugin:
31270@if lto-plugin
31271maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 31272
a90ef4bf
JM
31273install-pdf-lto-plugin: \
31274 configure-lto-plugin \
31275 pdf-lto-plugin
31276 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
31277 r=`${PWD_COMMAND}`; export r; \
31278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31279 $(HOST_EXPORTS) \
1b6c0831 31280 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
31281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31282 done; \
a90ef4bf
JM
31283 echo "Doing install-pdf in lto-plugin" ; \
31284 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
31285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31287 "RANLIB=$${RANLIB}" \
0c24b341 31288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31289 install-pdf) \
31290 || exit 1
31291
a90ef4bf 31292@endif lto-plugin
a3ca38d2 31293
a90ef4bf
JM
31294.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
31295maybe-install-html-lto-plugin:
31296@if lto-plugin
31297maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 31298
a90ef4bf
JM
31299install-html-lto-plugin: \
31300 configure-lto-plugin \
31301 html-lto-plugin
31302 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
31303 r=`${PWD_COMMAND}`; export r; \
31304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31305 $(HOST_EXPORTS) \
1b6c0831 31306 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
31307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31308 done; \
a90ef4bf
JM
31309 echo "Doing install-html in lto-plugin" ; \
31310 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
31311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31313 "RANLIB=$${RANLIB}" \
0c24b341 31314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31315 install-html) \
31316 || exit 1
31317
a90ef4bf 31318@endif lto-plugin
108a6f8e 31319
a90ef4bf
JM
31320.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
31321maybe-installcheck-lto-plugin:
31322@if lto-plugin
31323maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 31324
a90ef4bf
JM
31325installcheck-lto-plugin: \
31326 configure-lto-plugin
31327 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31328 r=`${PWD_COMMAND}`; export r; \
31329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31330 $(HOST_EXPORTS) \
1b6c0831 31331 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31333 done; \
a90ef4bf
JM
31334 echo "Doing installcheck in lto-plugin" ; \
31335 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31338 "RANLIB=$${RANLIB}" \
0c24b341 31339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31340 installcheck) \
4fa63067
NN
31341 || exit 1
31342
a90ef4bf 31343@endif lto-plugin
4fa63067 31344
a90ef4bf
JM
31345.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
31346maybe-mostlyclean-lto-plugin:
31347@if lto-plugin
31348maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 31349
a90ef4bf
JM
31350mostlyclean-lto-plugin:
31351 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31352 r=`${PWD_COMMAND}`; export r; \
31353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31354 $(HOST_EXPORTS) \
1b6c0831 31355 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31357 done; \
a90ef4bf
JM
31358 echo "Doing mostlyclean in lto-plugin" ; \
31359 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31362 "RANLIB=$${RANLIB}" \
0c24b341 31363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31364 mostlyclean) \
4fa63067
NN
31365 || exit 1
31366
a90ef4bf 31367@endif lto-plugin
4fa63067 31368
a90ef4bf
JM
31369.PHONY: maybe-clean-lto-plugin clean-lto-plugin
31370maybe-clean-lto-plugin:
31371@if lto-plugin
31372maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 31373
a90ef4bf
JM
31374clean-lto-plugin:
31375 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31376 r=`${PWD_COMMAND}`; export r; \
31377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31378 $(HOST_EXPORTS) \
1b6c0831 31379 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31381 done; \
a90ef4bf
JM
31382 echo "Doing clean in lto-plugin" ; \
31383 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31386 "RANLIB=$${RANLIB}" \
0c24b341 31387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31388 clean) \
4fa63067
NN
31389 || exit 1
31390
a90ef4bf 31391@endif lto-plugin
4fa63067 31392
a90ef4bf
JM
31393.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
31394maybe-distclean-lto-plugin:
31395@if lto-plugin
31396maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 31397
a90ef4bf
JM
31398distclean-lto-plugin:
31399 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31400 r=`${PWD_COMMAND}`; export r; \
31401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31402 $(HOST_EXPORTS) \
1b6c0831 31403 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31405 done; \
a90ef4bf
JM
31406 echo "Doing distclean in lto-plugin" ; \
31407 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31410 "RANLIB=$${RANLIB}" \
0c24b341 31411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31412 distclean) \
4fa63067
NN
31413 || exit 1
31414
a90ef4bf 31415@endif lto-plugin
4fa63067 31416
a90ef4bf
JM
31417.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
31418maybe-maintainer-clean-lto-plugin:
31419@if lto-plugin
31420maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 31421
a90ef4bf
JM
31422maintainer-clean-lto-plugin:
31423 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31424 r=`${PWD_COMMAND}`; export r; \
31425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31426 $(HOST_EXPORTS) \
1b6c0831 31427 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31429 done; \
a90ef4bf
JM
31430 echo "Doing maintainer-clean in lto-plugin" ; \
31431 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31434 "RANLIB=$${RANLIB}" \
0c24b341 31435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31436 maintainer-clean) \
4fa63067 31437 || exit 1
16ae0395 31438
a90ef4bf
JM
31439@endif lto-plugin
31440
31441
31442
1b6c0831
L
31443.PHONY: configure-libcc1 maybe-configure-libcc1
31444maybe-configure-libcc1:
4f0ef2d8 31445@if gcc-bootstrap
1b6c0831 31446configure-libcc1: stage_current
4f0ef2d8 31447@endif gcc-bootstrap
1b6c0831
L
31448@if libcc1
31449maybe-configure-libcc1: configure-libcc1
31450configure-libcc1:
31451 @: $(MAKE); $(unstage)
c52c6897 31452 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31454 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
31455 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1 ; \
31456 $(HOST_EXPORTS) \
31457 echo Configuring in $(HOST_SUBDIR)/libcc1; \
31458 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 31459 case $(srcdir) in \
b00612cc 31460 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 31461 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 31462 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 31463 esac; \
1b6c0831
L
31464 module_srcdir=libcc1; \
31465 $(SHELL) \
31466 $$s/$$module_srcdir/configure \
31467 --srcdir=$${topdir}/$$module_srcdir \
31468 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31469 --target=${target_alias} --enable-shared \
e2b9e2dc 31470 || exit 1
1b6c0831 31471@endif libcc1
d545f33b
PB
31472
31473
3866be5d 31474
16ae0395 31475
9b980aa1 31476
1b6c0831
L
31477.PHONY: all-libcc1 maybe-all-libcc1
31478maybe-all-libcc1:
31479@if gcc-bootstrap
31480all-libcc1: stage_current
31481@endif gcc-bootstrap
31482@if libcc1
31483TARGET-libcc1=all
31484maybe-all-libcc1: all-libcc1
31485all-libcc1: configure-libcc1
31486 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31487 @r=`${PWD_COMMAND}`; export r; \
31488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31489 $(HOST_EXPORTS) \
31490 (cd $(HOST_SUBDIR)/libcc1 && \
31491 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31492 $(TARGET-libcc1))
31493@endif libcc1
e8a5fa9c 31494
1b6c0831
L
31495
31496
31497
31498.PHONY: check-libcc1 maybe-check-libcc1
31499maybe-check-libcc1:
31500@if libcc1
31501maybe-check-libcc1: check-libcc1
31502
31503check-libcc1:
31504 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31505 @r=`${PWD_COMMAND}`; export r; \
31506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31507 $(HOST_EXPORTS) \
31508 (cd $(HOST_SUBDIR)/libcc1 && \
31509 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 31510
1b6c0831
L
31511@endif libcc1
31512
31513.PHONY: install-libcc1 maybe-install-libcc1
31514maybe-install-libcc1:
31515@if libcc1
31516maybe-install-libcc1: install-libcc1
31517
31518install-libcc1: installdirs
31519 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31520 @r=`${PWD_COMMAND}`; export r; \
31521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31522 $(HOST_EXPORTS) \
31523 (cd $(HOST_SUBDIR)/libcc1 && \
31524 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 31525
1b6c0831
L
31526@endif libcc1
31527
31528.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
31529maybe-install-strip-libcc1:
31530@if libcc1
31531maybe-install-strip-libcc1: install-strip-libcc1
31532
31533install-strip-libcc1: installdirs
31534 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31535 @r=`${PWD_COMMAND}`; export r; \
31536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31537 $(HOST_EXPORTS) \
31538 (cd $(HOST_SUBDIR)/libcc1 && \
31539 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 31540
1b6c0831 31541@endif libcc1
e8a5fa9c 31542
1b6c0831 31543# Other targets (info, dvi, pdf, etc.)
d545f33b 31544
1b6c0831
L
31545.PHONY: maybe-info-libcc1 info-libcc1
31546maybe-info-libcc1:
31547@if libcc1
31548maybe-info-libcc1: info-libcc1
d545f33b 31549
1b6c0831
L
31550info-libcc1: \
31551 configure-libcc1
31552 @: $(MAKE); $(unstage)
31553 @[ -f ./libcc1/Makefile ] || exit 0; \
31554 r=`${PWD_COMMAND}`; export r; \
b40e3958 31555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31556 $(HOST_EXPORTS) \
31557 for flag in $(EXTRA_HOST_FLAGS) ; do \
31558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31559 done; \
31560 echo "Doing info in libcc1" ; \
31561 (cd $(HOST_SUBDIR)/libcc1 && \
31562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31564 "RANLIB=$${RANLIB}" \
31565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31566 info) \
31567 || exit 1
3866be5d 31568
1b6c0831 31569@endif libcc1
a7254363 31570
1b6c0831
L
31571.PHONY: maybe-dvi-libcc1 dvi-libcc1
31572maybe-dvi-libcc1:
31573@if libcc1
31574maybe-dvi-libcc1: dvi-libcc1
a7254363 31575
1b6c0831
L
31576dvi-libcc1: \
31577 configure-libcc1
31578 @: $(MAKE); $(unstage)
31579 @[ -f ./libcc1/Makefile ] || exit 0; \
31580 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31582 $(HOST_EXPORTS) \
31583 for flag in $(EXTRA_HOST_FLAGS) ; do \
31584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31585 done; \
31586 echo "Doing dvi in libcc1" ; \
31587 (cd $(HOST_SUBDIR)/libcc1 && \
31588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31590 "RANLIB=$${RANLIB}" \
31591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31592 dvi) \
31593 || exit 1
e8a5fa9c 31594
1b6c0831 31595@endif libcc1
e8a5fa9c 31596
1b6c0831
L
31597.PHONY: maybe-pdf-libcc1 pdf-libcc1
31598maybe-pdf-libcc1:
31599@if libcc1
31600maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 31601
1b6c0831
L
31602pdf-libcc1: \
31603 configure-libcc1
31604 @: $(MAKE); $(unstage)
31605 @[ -f ./libcc1/Makefile ] || exit 0; \
31606 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31608 $(HOST_EXPORTS) \
31609 for flag in $(EXTRA_HOST_FLAGS) ; do \
31610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31611 done; \
31612 echo "Doing pdf in libcc1" ; \
31613 (cd $(HOST_SUBDIR)/libcc1 && \
31614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31616 "RANLIB=$${RANLIB}" \
31617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31618 pdf) \
31619 || exit 1
e8a5fa9c 31620
1b6c0831 31621@endif libcc1
e8a5fa9c 31622
1b6c0831
L
31623.PHONY: maybe-html-libcc1 html-libcc1
31624maybe-html-libcc1:
31625@if libcc1
31626maybe-html-libcc1: html-libcc1
e8a5fa9c 31627
1b6c0831
L
31628html-libcc1: \
31629 configure-libcc1
31630 @: $(MAKE); $(unstage)
31631 @[ -f ./libcc1/Makefile ] || exit 0; \
31632 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31634 $(HOST_EXPORTS) \
31635 for flag in $(EXTRA_HOST_FLAGS) ; do \
31636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31637 done; \
31638 echo "Doing html in libcc1" ; \
31639 (cd $(HOST_SUBDIR)/libcc1 && \
31640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31642 "RANLIB=$${RANLIB}" \
31643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31644 html) \
31645 || exit 1
e8a5fa9c 31646
1b6c0831 31647@endif libcc1
e8a5fa9c 31648
1b6c0831
L
31649.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
31650maybe-TAGS-libcc1:
31651@if libcc1
31652maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 31653
1b6c0831
L
31654TAGS-libcc1: \
31655 configure-libcc1
31656 @: $(MAKE); $(unstage)
31657 @[ -f ./libcc1/Makefile ] || exit 0; \
31658 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31660 $(HOST_EXPORTS) \
31661 for flag in $(EXTRA_HOST_FLAGS) ; do \
31662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31663 done; \
31664 echo "Doing TAGS in libcc1" ; \
31665 (cd $(HOST_SUBDIR)/libcc1 && \
31666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31668 "RANLIB=$${RANLIB}" \
31669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31670 TAGS) \
31671 || exit 1
31672
31673@endif libcc1
31674
31675.PHONY: maybe-install-info-libcc1 install-info-libcc1
31676maybe-install-info-libcc1:
31677@if libcc1
31678maybe-install-info-libcc1: install-info-libcc1
31679
31680install-info-libcc1: \
31681 configure-libcc1 \
31682 info-libcc1
31683 @: $(MAKE); $(unstage)
31684 @[ -f ./libcc1/Makefile ] || exit 0; \
31685 r=`${PWD_COMMAND}`; export r; \
31686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31687 $(HOST_EXPORTS) \
31688 for flag in $(EXTRA_HOST_FLAGS) ; do \
31689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31690 done; \
31691 echo "Doing install-info in libcc1" ; \
31692 (cd $(HOST_SUBDIR)/libcc1 && \
31693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31695 "RANLIB=$${RANLIB}" \
31696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31697 install-info) \
31698 || exit 1
31699
31700@endif libcc1
31701
31702.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
31703maybe-install-pdf-libcc1:
31704@if libcc1
31705maybe-install-pdf-libcc1: install-pdf-libcc1
31706
31707install-pdf-libcc1: \
31708 configure-libcc1 \
31709 pdf-libcc1
31710 @: $(MAKE); $(unstage)
31711 @[ -f ./libcc1/Makefile ] || exit 0; \
31712 r=`${PWD_COMMAND}`; export r; \
31713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31714 $(HOST_EXPORTS) \
31715 for flag in $(EXTRA_HOST_FLAGS) ; do \
31716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31717 done; \
31718 echo "Doing install-pdf in libcc1" ; \
31719 (cd $(HOST_SUBDIR)/libcc1 && \
31720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31722 "RANLIB=$${RANLIB}" \
31723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31724 install-pdf) \
31725 || exit 1
31726
31727@endif libcc1
31728
31729.PHONY: maybe-install-html-libcc1 install-html-libcc1
31730maybe-install-html-libcc1:
31731@if libcc1
31732maybe-install-html-libcc1: install-html-libcc1
31733
31734install-html-libcc1: \
31735 configure-libcc1 \
31736 html-libcc1
31737 @: $(MAKE); $(unstage)
31738 @[ -f ./libcc1/Makefile ] || exit 0; \
31739 r=`${PWD_COMMAND}`; export r; \
31740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31741 $(HOST_EXPORTS) \
31742 for flag in $(EXTRA_HOST_FLAGS) ; do \
31743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31744 done; \
31745 echo "Doing install-html in libcc1" ; \
31746 (cd $(HOST_SUBDIR)/libcc1 && \
31747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31749 "RANLIB=$${RANLIB}" \
31750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31751 install-html) \
31752 || exit 1
31753
31754@endif libcc1
31755
31756.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
31757maybe-installcheck-libcc1:
31758@if libcc1
31759maybe-installcheck-libcc1: installcheck-libcc1
31760
31761installcheck-libcc1: \
31762 configure-libcc1
31763 @: $(MAKE); $(unstage)
31764 @[ -f ./libcc1/Makefile ] || exit 0; \
31765 r=`${PWD_COMMAND}`; export r; \
31766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31767 $(HOST_EXPORTS) \
31768 for flag in $(EXTRA_HOST_FLAGS) ; do \
31769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31770 done; \
31771 echo "Doing installcheck in libcc1" ; \
31772 (cd $(HOST_SUBDIR)/libcc1 && \
31773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31775 "RANLIB=$${RANLIB}" \
31776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31777 installcheck) \
31778 || exit 1
31779
31780@endif libcc1
31781
31782.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
31783maybe-mostlyclean-libcc1:
31784@if libcc1
31785maybe-mostlyclean-libcc1: mostlyclean-libcc1
31786
31787mostlyclean-libcc1:
31788 @: $(MAKE); $(unstage)
31789 @[ -f ./libcc1/Makefile ] || exit 0; \
31790 r=`${PWD_COMMAND}`; export r; \
31791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31792 $(HOST_EXPORTS) \
31793 for flag in $(EXTRA_HOST_FLAGS) ; do \
31794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31795 done; \
31796 echo "Doing mostlyclean in libcc1" ; \
31797 (cd $(HOST_SUBDIR)/libcc1 && \
31798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31800 "RANLIB=$${RANLIB}" \
31801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31802 mostlyclean) \
31803 || exit 1
31804
31805@endif libcc1
31806
31807.PHONY: maybe-clean-libcc1 clean-libcc1
31808maybe-clean-libcc1:
31809@if libcc1
31810maybe-clean-libcc1: clean-libcc1
31811
31812clean-libcc1:
31813 @: $(MAKE); $(unstage)
31814 @[ -f ./libcc1/Makefile ] || exit 0; \
31815 r=`${PWD_COMMAND}`; export r; \
31816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31817 $(HOST_EXPORTS) \
31818 for flag in $(EXTRA_HOST_FLAGS) ; do \
31819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31820 done; \
31821 echo "Doing clean in libcc1" ; \
31822 (cd $(HOST_SUBDIR)/libcc1 && \
31823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31825 "RANLIB=$${RANLIB}" \
31826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31827 clean) \
31828 || exit 1
31829
31830@endif libcc1
31831
31832.PHONY: maybe-distclean-libcc1 distclean-libcc1
31833maybe-distclean-libcc1:
31834@if libcc1
31835maybe-distclean-libcc1: distclean-libcc1
31836
31837distclean-libcc1:
31838 @: $(MAKE); $(unstage)
31839 @[ -f ./libcc1/Makefile ] || exit 0; \
31840 r=`${PWD_COMMAND}`; export r; \
31841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31842 $(HOST_EXPORTS) \
31843 for flag in $(EXTRA_HOST_FLAGS) ; do \
31844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31845 done; \
31846 echo "Doing distclean in libcc1" ; \
31847 (cd $(HOST_SUBDIR)/libcc1 && \
31848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31850 "RANLIB=$${RANLIB}" \
31851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31852 distclean) \
31853 || exit 1
31854
31855@endif libcc1
31856
31857.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
31858maybe-maintainer-clean-libcc1:
31859@if libcc1
31860maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
31861
31862maintainer-clean-libcc1:
31863 @: $(MAKE); $(unstage)
31864 @[ -f ./libcc1/Makefile ] || exit 0; \
31865 r=`${PWD_COMMAND}`; export r; \
31866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31867 $(HOST_EXPORTS) \
31868 for flag in $(EXTRA_HOST_FLAGS) ; do \
31869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31870 done; \
31871 echo "Doing maintainer-clean in libcc1" ; \
31872 (cd $(HOST_SUBDIR)/libcc1 && \
31873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31875 "RANLIB=$${RANLIB}" \
31876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31877 maintainer-clean) \
31878 || exit 1
31879
31880@endif libcc1
31881
31882
31883
31884.PHONY: configure-gotools maybe-configure-gotools
31885maybe-configure-gotools:
31886@if gcc-bootstrap
31887configure-gotools: stage_current
31888@endif gcc-bootstrap
31889@if gotools
31890maybe-configure-gotools: configure-gotools
31891configure-gotools:
31892 @: $(MAKE); $(unstage)
31893 @r=`${PWD_COMMAND}`; export r; \
31894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31895 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
31896 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools ; \
31897 $(HOST_EXPORTS) \
31898 echo Configuring in $(HOST_SUBDIR)/gotools; \
31899 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
31900 case $(srcdir) in \
31901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31902 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
31903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31904 esac; \
31905 module_srcdir=gotools; \
31906 $(SHELL) \
31907 $$s/$$module_srcdir/configure \
31908 --srcdir=$${topdir}/$$module_srcdir \
31909 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31910 --target=${target_alias} \
31911 || exit 1
31912@endif gotools
31913
31914
31915
31916
31917
31918.PHONY: all-gotools maybe-all-gotools
31919maybe-all-gotools:
31920@if gcc-bootstrap
31921all-gotools: stage_current
31922@endif gcc-bootstrap
31923@if gotools
31924TARGET-gotools=all
31925maybe-all-gotools: all-gotools
31926all-gotools: configure-gotools
31927 @: $(MAKE); $(unstage)
31928 @r=`${PWD_COMMAND}`; export r; \
31929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31930 $(HOST_EXPORTS) \
31931 (cd $(HOST_SUBDIR)/gotools && \
31932 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31933 $(TARGET-gotools))
31934@endif gotools
31935
31936
31937
31938
31939.PHONY: check-gotools maybe-check-gotools
31940maybe-check-gotools:
31941@if gotools
31942maybe-check-gotools: check-gotools
31943
31944check-gotools:
31945 @: $(MAKE); $(unstage)
31946 @r=`${PWD_COMMAND}`; export r; \
31947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31948 $(HOST_EXPORTS) \
31949 (cd $(HOST_SUBDIR)/gotools && \
31950 $(MAKE) $(FLAGS_TO_PASS) check)
31951
31952@endif gotools
31953
31954.PHONY: install-gotools maybe-install-gotools
31955maybe-install-gotools:
31956@if gotools
31957maybe-install-gotools: install-gotools
31958
31959install-gotools: installdirs
31960 @: $(MAKE); $(unstage)
31961 @r=`${PWD_COMMAND}`; export r; \
31962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31963 $(HOST_EXPORTS) \
31964 (cd $(HOST_SUBDIR)/gotools && \
31965 $(MAKE) $(FLAGS_TO_PASS) install)
31966
31967@endif gotools
31968
31969.PHONY: install-strip-gotools maybe-install-strip-gotools
31970maybe-install-strip-gotools:
31971@if gotools
31972maybe-install-strip-gotools: install-strip-gotools
31973
31974install-strip-gotools: installdirs
31975 @: $(MAKE); $(unstage)
31976 @r=`${PWD_COMMAND}`; export r; \
31977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31978 $(HOST_EXPORTS) \
31979 (cd $(HOST_SUBDIR)/gotools && \
31980 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31981
31982@endif gotools
31983
31984# Other targets (info, dvi, pdf, etc.)
31985
31986.PHONY: maybe-info-gotools info-gotools
31987maybe-info-gotools:
31988@if gotools
31989maybe-info-gotools: info-gotools
31990
31991info-gotools: \
31992 configure-gotools
31993 @: $(MAKE); $(unstage)
31994 @[ -f ./gotools/Makefile ] || exit 0; \
31995 r=`${PWD_COMMAND}`; export r; \
31996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31997 $(HOST_EXPORTS) \
31998 for flag in $(EXTRA_HOST_FLAGS) ; do \
31999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32000 done; \
32001 echo "Doing info in gotools" ; \
32002 (cd $(HOST_SUBDIR)/gotools && \
32003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32005 "RANLIB=$${RANLIB}" \
32006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32007 info) \
32008 || exit 1
32009
32010@endif gotools
32011
32012.PHONY: maybe-dvi-gotools dvi-gotools
32013maybe-dvi-gotools:
32014@if gotools
32015maybe-dvi-gotools: dvi-gotools
32016
32017dvi-gotools: \
32018 configure-gotools
32019 @: $(MAKE); $(unstage)
32020 @[ -f ./gotools/Makefile ] || exit 0; \
32021 r=`${PWD_COMMAND}`; export r; \
32022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32023 $(HOST_EXPORTS) \
32024 for flag in $(EXTRA_HOST_FLAGS) ; do \
32025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32026 done; \
32027 echo "Doing dvi in gotools" ; \
32028 (cd $(HOST_SUBDIR)/gotools && \
32029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32031 "RANLIB=$${RANLIB}" \
32032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32033 dvi) \
32034 || exit 1
32035
32036@endif gotools
32037
32038.PHONY: maybe-pdf-gotools pdf-gotools
32039maybe-pdf-gotools:
32040@if gotools
32041maybe-pdf-gotools: pdf-gotools
32042
32043pdf-gotools: \
32044 configure-gotools
32045 @: $(MAKE); $(unstage)
32046 @[ -f ./gotools/Makefile ] || exit 0; \
32047 r=`${PWD_COMMAND}`; export r; \
32048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32049 $(HOST_EXPORTS) \
32050 for flag in $(EXTRA_HOST_FLAGS) ; do \
32051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32052 done; \
32053 echo "Doing pdf in gotools" ; \
32054 (cd $(HOST_SUBDIR)/gotools && \
32055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32057 "RANLIB=$${RANLIB}" \
32058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32059 pdf) \
32060 || exit 1
32061
32062@endif gotools
32063
32064.PHONY: maybe-html-gotools html-gotools
32065maybe-html-gotools:
32066@if gotools
32067maybe-html-gotools: html-gotools
32068
32069html-gotools: \
32070 configure-gotools
32071 @: $(MAKE); $(unstage)
32072 @[ -f ./gotools/Makefile ] || exit 0; \
32073 r=`${PWD_COMMAND}`; export r; \
32074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32075 $(HOST_EXPORTS) \
32076 for flag in $(EXTRA_HOST_FLAGS) ; do \
32077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32078 done; \
32079 echo "Doing html in gotools" ; \
32080 (cd $(HOST_SUBDIR)/gotools && \
32081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32083 "RANLIB=$${RANLIB}" \
32084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32085 html) \
32086 || exit 1
32087
32088@endif gotools
32089
32090.PHONY: maybe-TAGS-gotools TAGS-gotools
32091maybe-TAGS-gotools:
32092@if gotools
32093maybe-TAGS-gotools: TAGS-gotools
32094
32095TAGS-gotools: \
32096 configure-gotools
32097 @: $(MAKE); $(unstage)
32098 @[ -f ./gotools/Makefile ] || exit 0; \
32099 r=`${PWD_COMMAND}`; export r; \
32100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32101 $(HOST_EXPORTS) \
32102 for flag in $(EXTRA_HOST_FLAGS) ; do \
32103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32104 done; \
32105 echo "Doing TAGS in gotools" ; \
32106 (cd $(HOST_SUBDIR)/gotools && \
32107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32109 "RANLIB=$${RANLIB}" \
32110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32111 TAGS) \
32112 || exit 1
32113
32114@endif gotools
32115
32116.PHONY: maybe-install-info-gotools install-info-gotools
32117maybe-install-info-gotools:
32118@if gotools
32119maybe-install-info-gotools: install-info-gotools
32120
32121install-info-gotools: \
32122 configure-gotools \
32123 info-gotools
32124 @: $(MAKE); $(unstage)
32125 @[ -f ./gotools/Makefile ] || exit 0; \
32126 r=`${PWD_COMMAND}`; export r; \
32127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32128 $(HOST_EXPORTS) \
32129 for flag in $(EXTRA_HOST_FLAGS) ; do \
32130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32131 done; \
32132 echo "Doing install-info in gotools" ; \
32133 (cd $(HOST_SUBDIR)/gotools && \
32134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32136 "RANLIB=$${RANLIB}" \
32137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32138 install-info) \
32139 || exit 1
32140
32141@endif gotools
32142
32143.PHONY: maybe-install-pdf-gotools install-pdf-gotools
32144maybe-install-pdf-gotools:
32145@if gotools
32146maybe-install-pdf-gotools: install-pdf-gotools
32147
32148install-pdf-gotools: \
32149 configure-gotools \
32150 pdf-gotools
32151 @: $(MAKE); $(unstage)
32152 @[ -f ./gotools/Makefile ] || exit 0; \
32153 r=`${PWD_COMMAND}`; export r; \
32154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32155 $(HOST_EXPORTS) \
32156 for flag in $(EXTRA_HOST_FLAGS) ; do \
32157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32158 done; \
32159 echo "Doing install-pdf in gotools" ; \
32160 (cd $(HOST_SUBDIR)/gotools && \
32161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32163 "RANLIB=$${RANLIB}" \
32164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32165 install-pdf) \
32166 || exit 1
32167
32168@endif gotools
32169
32170.PHONY: maybe-install-html-gotools install-html-gotools
32171maybe-install-html-gotools:
32172@if gotools
32173maybe-install-html-gotools: install-html-gotools
32174
32175install-html-gotools: \
32176 configure-gotools \
32177 html-gotools
32178 @: $(MAKE); $(unstage)
32179 @[ -f ./gotools/Makefile ] || exit 0; \
32180 r=`${PWD_COMMAND}`; export r; \
32181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32182 $(HOST_EXPORTS) \
32183 for flag in $(EXTRA_HOST_FLAGS) ; do \
32184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32185 done; \
32186 echo "Doing install-html in gotools" ; \
32187 (cd $(HOST_SUBDIR)/gotools && \
32188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32190 "RANLIB=$${RANLIB}" \
32191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32192 install-html) \
32193 || exit 1
32194
32195@endif gotools
32196
32197.PHONY: maybe-installcheck-gotools installcheck-gotools
32198maybe-installcheck-gotools:
32199@if gotools
32200maybe-installcheck-gotools: installcheck-gotools
32201
32202installcheck-gotools: \
32203 configure-gotools
32204 @: $(MAKE); $(unstage)
32205 @[ -f ./gotools/Makefile ] || exit 0; \
32206 r=`${PWD_COMMAND}`; export r; \
32207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32208 $(HOST_EXPORTS) \
32209 for flag in $(EXTRA_HOST_FLAGS) ; do \
32210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32211 done; \
32212 echo "Doing installcheck in gotools" ; \
32213 (cd $(HOST_SUBDIR)/gotools && \
32214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32216 "RANLIB=$${RANLIB}" \
32217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32218 installcheck) \
32219 || exit 1
32220
32221@endif gotools
32222
32223.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
32224maybe-mostlyclean-gotools:
32225@if gotools
32226maybe-mostlyclean-gotools: mostlyclean-gotools
32227
32228mostlyclean-gotools:
32229 @: $(MAKE); $(unstage)
32230 @[ -f ./gotools/Makefile ] || exit 0; \
32231 r=`${PWD_COMMAND}`; export r; \
32232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32233 $(HOST_EXPORTS) \
32234 for flag in $(EXTRA_HOST_FLAGS) ; do \
32235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32236 done; \
32237 echo "Doing mostlyclean in gotools" ; \
32238 (cd $(HOST_SUBDIR)/gotools && \
32239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32241 "RANLIB=$${RANLIB}" \
32242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32243 mostlyclean) \
32244 || exit 1
32245
32246@endif gotools
32247
32248.PHONY: maybe-clean-gotools clean-gotools
32249maybe-clean-gotools:
32250@if gotools
32251maybe-clean-gotools: clean-gotools
32252
32253clean-gotools:
32254 @: $(MAKE); $(unstage)
32255 @[ -f ./gotools/Makefile ] || exit 0; \
32256 r=`${PWD_COMMAND}`; export r; \
32257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32258 $(HOST_EXPORTS) \
32259 for flag in $(EXTRA_HOST_FLAGS) ; do \
32260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32261 done; \
32262 echo "Doing clean in gotools" ; \
32263 (cd $(HOST_SUBDIR)/gotools && \
32264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32266 "RANLIB=$${RANLIB}" \
32267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32268 clean) \
32269 || exit 1
32270
32271@endif gotools
32272
32273.PHONY: maybe-distclean-gotools distclean-gotools
32274maybe-distclean-gotools:
32275@if gotools
32276maybe-distclean-gotools: distclean-gotools
32277
32278distclean-gotools:
32279 @: $(MAKE); $(unstage)
32280 @[ -f ./gotools/Makefile ] || exit 0; \
32281 r=`${PWD_COMMAND}`; export r; \
32282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32283 $(HOST_EXPORTS) \
32284 for flag in $(EXTRA_HOST_FLAGS) ; do \
32285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32286 done; \
32287 echo "Doing distclean in gotools" ; \
32288 (cd $(HOST_SUBDIR)/gotools && \
32289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32291 "RANLIB=$${RANLIB}" \
32292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32293 distclean) \
32294 || exit 1
32295
32296@endif gotools
32297
32298.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
32299maybe-maintainer-clean-gotools:
32300@if gotools
32301maybe-maintainer-clean-gotools: maintainer-clean-gotools
32302
32303maintainer-clean-gotools:
32304 @: $(MAKE); $(unstage)
32305 @[ -f ./gotools/Makefile ] || exit 0; \
32306 r=`${PWD_COMMAND}`; export r; \
32307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32308 $(HOST_EXPORTS) \
32309 for flag in $(EXTRA_HOST_FLAGS) ; do \
32310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32311 done; \
32312 echo "Doing maintainer-clean in gotools" ; \
32313 (cd $(HOST_SUBDIR)/gotools && \
32314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32316 "RANLIB=$${RANLIB}" \
32317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32318 maintainer-clean) \
32319 || exit 1
32320
32321@endif gotools
32322
32323
32324
32325# ---------------------------------------
32326# Modules which run on the target machine
32327# ---------------------------------------
32328
32329
32330
32331
32332.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
32333maybe-configure-target-libstdc++-v3:
32334@if gcc-bootstrap
32335configure-target-libstdc++-v3: stage_current
32336@endif gcc-bootstrap
32337@if target-libstdc++-v3
32338maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
32339configure-target-libstdc++-v3:
32340 @r=`${PWD_COMMAND}`; export r; \
32341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32342 echo "Checking multilib configuration for libstdc++-v3..."; \
32343 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32344 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32345 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32346 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32347 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32348 else \
32349 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32350 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32351 fi; \
32352 else \
32353 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32354 fi; \
32355 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32356 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32357 $(RAW_CXX_TARGET_EXPORTS) \
32358 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
32359 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
32360 case $(srcdir) in \
32361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32362 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32364 esac; \
32365 module_srcdir=libstdc++-v3; \
32366 rm -f no-such-file || : ; \
32367 CONFIG_SITE=no-such-file $(SHELL) \
32368 $$s/$$module_srcdir/configure \
32369 --srcdir=$${topdir}/$$module_srcdir \
32370 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32371 --target=${target_alias} \
32372 || exit 1
32373@endif target-libstdc++-v3
32374
32375
32376
32377.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
32378maybe-configure-stage1-target-libstdc++-v3:
32379@if target-libstdc++-v3-bootstrap
32380maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32381configure-stage1-target-libstdc++-v3:
32382 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32383 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32384 @r=`${PWD_COMMAND}`; export r; \
32385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32386 TFLAGS="$(STAGE1_TFLAGS)"; \
32387 echo "Checking multilib configuration for libstdc++-v3..."; \
32388 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32389 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32390 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32391 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32392 else \
32393 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32394 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32395 fi; \
32396 else \
32397 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32398 fi; \
32399 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32400 $(RAW_CXX_TARGET_EXPORTS) \
32401 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32402 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32403 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32404 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32405 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32406 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32407 case $(srcdir) in \
32408 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32409 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32410 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32411 esac; \
32412 module_srcdir=libstdc++-v3; \
32413 $(SHELL) $$s/$$module_srcdir/configure \
32414 --srcdir=$${topdir}/$$module_srcdir \
32415 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32416 --target=${target_alias} \
32417 \
32418 $(STAGE1_CONFIGURE_FLAGS)
32419@endif target-libstdc++-v3-bootstrap
32420
32421.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
32422maybe-configure-stage2-target-libstdc++-v3:
32423@if target-libstdc++-v3-bootstrap
32424maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32425configure-stage2-target-libstdc++-v3:
32426 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32427 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32428 @r=`${PWD_COMMAND}`; export r; \
32429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32430 TFLAGS="$(STAGE2_TFLAGS)"; \
32431 echo "Checking multilib configuration for libstdc++-v3..."; \
32432 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32433 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32434 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32435 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32436 else \
32437 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32438 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32439 fi; \
32440 else \
32441 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32442 fi; \
32443 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32444 $(RAW_CXX_TARGET_EXPORTS) \
32445 \
32446 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32447 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32448 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32449 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32450 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32451 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32452 case $(srcdir) in \
32453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32454 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32456 esac; \
32457 module_srcdir=libstdc++-v3; \
32458 $(SHELL) $$s/$$module_srcdir/configure \
32459 --srcdir=$${topdir}/$$module_srcdir \
32460 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32461 --target=${target_alias} \
32462 --with-build-libsubdir=$(HOST_SUBDIR) \
32463 $(STAGE2_CONFIGURE_FLAGS)
32464@endif target-libstdc++-v3-bootstrap
32465
32466.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
32467maybe-configure-stage3-target-libstdc++-v3:
32468@if target-libstdc++-v3-bootstrap
32469maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32470configure-stage3-target-libstdc++-v3:
32471 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32472 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32473 @r=`${PWD_COMMAND}`; export r; \
32474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32475 TFLAGS="$(STAGE3_TFLAGS)"; \
32476 echo "Checking multilib configuration for libstdc++-v3..."; \
32477 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32478 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32479 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32480 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32481 else \
32482 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32483 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32484 fi; \
32485 else \
32486 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32487 fi; \
32488 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32489 $(RAW_CXX_TARGET_EXPORTS) \
32490 \
32491 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32492 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32493 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32494 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32495 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32496 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32497 case $(srcdir) in \
32498 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32499 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32500 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32501 esac; \
32502 module_srcdir=libstdc++-v3; \
32503 $(SHELL) $$s/$$module_srcdir/configure \
32504 --srcdir=$${topdir}/$$module_srcdir \
32505 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32506 --target=${target_alias} \
32507 --with-build-libsubdir=$(HOST_SUBDIR) \
32508 $(STAGE3_CONFIGURE_FLAGS)
32509@endif target-libstdc++-v3-bootstrap
32510
32511.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
32512maybe-configure-stage4-target-libstdc++-v3:
32513@if target-libstdc++-v3-bootstrap
32514maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32515configure-stage4-target-libstdc++-v3:
32516 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32517 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32518 @r=`${PWD_COMMAND}`; export r; \
32519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32520 TFLAGS="$(STAGE4_TFLAGS)"; \
32521 echo "Checking multilib configuration for libstdc++-v3..."; \
32522 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32523 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32524 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32525 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32526 else \
32527 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32528 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32529 fi; \
32530 else \
32531 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32532 fi; \
32533 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32534 $(RAW_CXX_TARGET_EXPORTS) \
32535 \
32536 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32537 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32538 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32539 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32540 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32541 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32542 case $(srcdir) in \
32543 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32544 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32545 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32546 esac; \
32547 module_srcdir=libstdc++-v3; \
32548 $(SHELL) $$s/$$module_srcdir/configure \
32549 --srcdir=$${topdir}/$$module_srcdir \
32550 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32551 --target=${target_alias} \
32552 --with-build-libsubdir=$(HOST_SUBDIR) \
32553 $(STAGE4_CONFIGURE_FLAGS)
32554@endif target-libstdc++-v3-bootstrap
32555
32556.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
32557maybe-configure-stageprofile-target-libstdc++-v3:
32558@if target-libstdc++-v3-bootstrap
32559maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32560configure-stageprofile-target-libstdc++-v3:
32561 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32562 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32563 @r=`${PWD_COMMAND}`; export r; \
32564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32565 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32566 echo "Checking multilib configuration for libstdc++-v3..."; \
32567 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32568 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32569 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32570 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32571 else \
32572 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32573 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32574 fi; \
32575 else \
32576 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32577 fi; \
32578 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32579 $(RAW_CXX_TARGET_EXPORTS) \
32580 \
32581 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32582 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32583 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32584 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32585 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32586 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32587 case $(srcdir) in \
32588 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32589 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32590 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32591 esac; \
32592 module_srcdir=libstdc++-v3; \
32593 $(SHELL) $$s/$$module_srcdir/configure \
32594 --srcdir=$${topdir}/$$module_srcdir \
32595 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32596 --target=${target_alias} \
32597 --with-build-libsubdir=$(HOST_SUBDIR) \
32598 $(STAGEprofile_CONFIGURE_FLAGS)
32599@endif target-libstdc++-v3-bootstrap
32600
32601.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
32602maybe-configure-stagefeedback-target-libstdc++-v3:
32603@if target-libstdc++-v3-bootstrap
32604maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
32605configure-stagefeedback-target-libstdc++-v3:
32606 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32607 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32608 @r=`${PWD_COMMAND}`; export r; \
32609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32610 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32611 echo "Checking multilib configuration for libstdc++-v3..."; \
32612 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32613 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32614 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32615 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32616 else \
32617 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32618 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32619 fi; \
32620 else \
32621 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32622 fi; \
32623 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32624 $(RAW_CXX_TARGET_EXPORTS) \
32625 \
32626 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32627 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32628 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32629 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32630 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32631 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32632 case $(srcdir) in \
32633 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32634 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32635 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32636 esac; \
32637 module_srcdir=libstdc++-v3; \
32638 $(SHELL) $$s/$$module_srcdir/configure \
32639 --srcdir=$${topdir}/$$module_srcdir \
32640 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32641 --target=${target_alias} \
32642 --with-build-libsubdir=$(HOST_SUBDIR) \
32643 $(STAGEfeedback_CONFIGURE_FLAGS)
32644@endif target-libstdc++-v3-bootstrap
32645
32646
32647
32648
32649
32650.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
32651maybe-all-target-libstdc++-v3:
32652@if gcc-bootstrap
32653all-target-libstdc++-v3: stage_current
32654@endif gcc-bootstrap
32655@if target-libstdc++-v3
32656TARGET-target-libstdc++-v3=all
32657maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
32658all-target-libstdc++-v3: configure-target-libstdc++-v3
32659 @r=`${PWD_COMMAND}`; export r; \
32660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32661 $(RAW_CXX_TARGET_EXPORTS) \
32662 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32663 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32664 $(TARGET-target-libstdc++-v3))
32665@endif target-libstdc++-v3
32666
32667
32668
32669.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
32670.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
32671maybe-all-stage1-target-libstdc++-v3:
32672maybe-clean-stage1-target-libstdc++-v3:
32673@if target-libstdc++-v3-bootstrap
32674maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
32675all-stage1: all-stage1-target-libstdc++-v3
32676TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32677all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32678 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32679 @r=`${PWD_COMMAND}`; export r; \
32680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32681 TFLAGS="$(STAGE1_TFLAGS)"; \
32682 $(RAW_CXX_TARGET_EXPORTS) \
32683 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32684 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32685 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32686 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32687 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32688 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32689 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32690 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32691 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32692 \
32693 TFLAGS="$(STAGE1_TFLAGS)" \
32694 $(TARGET-stage1-target-libstdc++-v3)
32695
32696maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
32697clean-stage1: clean-stage1-target-libstdc++-v3
32698clean-stage1-target-libstdc++-v3:
32699 @if [ $(current_stage) = stage1 ]; then \
32700 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32701 else \
32702 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
32703 $(MAKE) stage1-start; \
32704 fi; \
32705 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32706 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32707 clean
32708@endif target-libstdc++-v3-bootstrap
32709
32710
32711.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
32712.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
32713maybe-all-stage2-target-libstdc++-v3:
32714maybe-clean-stage2-target-libstdc++-v3:
32715@if target-libstdc++-v3-bootstrap
32716maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
32717all-stage2: all-stage2-target-libstdc++-v3
32718TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32719all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32720 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32721 @r=`${PWD_COMMAND}`; export r; \
32722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32723 TFLAGS="$(STAGE2_TFLAGS)"; \
32724 $(RAW_CXX_TARGET_EXPORTS) \
32725 \
32726 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32727 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32728 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32729 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32730 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32731 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32732 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32733 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32734 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32735 TFLAGS="$(STAGE2_TFLAGS)" \
32736 $(TARGET-stage2-target-libstdc++-v3)
32737
32738maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
32739clean-stage2: clean-stage2-target-libstdc++-v3
32740clean-stage2-target-libstdc++-v3:
32741 @if [ $(current_stage) = stage2 ]; then \
32742 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32743 else \
32744 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
32745 $(MAKE) stage2-start; \
32746 fi; \
32747 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32748 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32749@endif target-libstdc++-v3-bootstrap
32750
32751
32752.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
32753.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
32754maybe-all-stage3-target-libstdc++-v3:
32755maybe-clean-stage3-target-libstdc++-v3:
32756@if target-libstdc++-v3-bootstrap
32757maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
32758all-stage3: all-stage3-target-libstdc++-v3
32759TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32760all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32761 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32762 @r=`${PWD_COMMAND}`; export r; \
32763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32764 TFLAGS="$(STAGE3_TFLAGS)"; \
32765 $(RAW_CXX_TARGET_EXPORTS) \
32766 \
32767 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32768 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32769 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32770 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32771 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32772 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32773 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32774 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32775 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32776 TFLAGS="$(STAGE3_TFLAGS)" \
32777 $(TARGET-stage3-target-libstdc++-v3)
32778
32779maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
32780clean-stage3: clean-stage3-target-libstdc++-v3
32781clean-stage3-target-libstdc++-v3:
32782 @if [ $(current_stage) = stage3 ]; then \
32783 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32784 else \
32785 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
32786 $(MAKE) stage3-start; \
32787 fi; \
32788 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32789 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32790@endif target-libstdc++-v3-bootstrap
32791
32792
32793.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
32794.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
32795maybe-all-stage4-target-libstdc++-v3:
32796maybe-clean-stage4-target-libstdc++-v3:
32797@if target-libstdc++-v3-bootstrap
32798maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
32799all-stage4: all-stage4-target-libstdc++-v3
32800TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32801all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32802 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32803 @r=`${PWD_COMMAND}`; export r; \
32804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32805 TFLAGS="$(STAGE4_TFLAGS)"; \
32806 $(RAW_CXX_TARGET_EXPORTS) \
32807 \
32808 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32809 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32810 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32811 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32812 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32813 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32814 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32815 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32816 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32817 TFLAGS="$(STAGE4_TFLAGS)" \
32818 $(TARGET-stage4-target-libstdc++-v3)
32819
32820maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
32821clean-stage4: clean-stage4-target-libstdc++-v3
32822clean-stage4-target-libstdc++-v3:
32823 @if [ $(current_stage) = stage4 ]; then \
32824 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32825 else \
32826 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
32827 $(MAKE) stage4-start; \
32828 fi; \
32829 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32830 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32831@endif target-libstdc++-v3-bootstrap
32832
32833
32834.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
32835.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
32836maybe-all-stageprofile-target-libstdc++-v3:
32837maybe-clean-stageprofile-target-libstdc++-v3:
32838@if target-libstdc++-v3-bootstrap
32839maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
32840all-stageprofile: all-stageprofile-target-libstdc++-v3
32841TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32842all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32843 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32844 @r=`${PWD_COMMAND}`; export r; \
32845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32846 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32847 $(RAW_CXX_TARGET_EXPORTS) \
32848 \
32849 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32850 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32851 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32852 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32853 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32854 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32855 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32856 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32857 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32858 TFLAGS="$(STAGEprofile_TFLAGS)" \
32859 $(TARGET-stageprofile-target-libstdc++-v3)
32860
32861maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
32862clean-stageprofile: clean-stageprofile-target-libstdc++-v3
32863clean-stageprofile-target-libstdc++-v3:
32864 @if [ $(current_stage) = stageprofile ]; then \
32865 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32866 else \
32867 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
32868 $(MAKE) stageprofile-start; \
32869 fi; \
32870 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32871 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32872@endif target-libstdc++-v3-bootstrap
32873
32874
32875.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
32876.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
32877maybe-all-stagefeedback-target-libstdc++-v3:
32878maybe-clean-stagefeedback-target-libstdc++-v3:
32879@if target-libstdc++-v3-bootstrap
32880maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
32881all-stagefeedback: all-stagefeedback-target-libstdc++-v3
32882TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32883all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
32884 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32885 @r=`${PWD_COMMAND}`; export r; \
32886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32887 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32888 $(RAW_CXX_TARGET_EXPORTS) \
32889 \
32890 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32891 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32892 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32893 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32894 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32895 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32896 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32897 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32898 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32899 TFLAGS="$(STAGEfeedback_TFLAGS)" \
32900 $(TARGET-stagefeedback-target-libstdc++-v3)
32901
32902maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
32903clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
32904clean-stagefeedback-target-libstdc++-v3:
32905 @if [ $(current_stage) = stagefeedback ]; then \
32906 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32907 else \
32908 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
32909 $(MAKE) stagefeedback-start; \
32910 fi; \
32911 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32912 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32913@endif target-libstdc++-v3-bootstrap
32914
32915
32916
32917
32918
32919
32920.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
32921maybe-check-target-libstdc++-v3:
32922@if target-libstdc++-v3
32923maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
32924
32925check-target-libstdc++-v3:
32926 @: $(MAKE); $(unstage)
32927 @r=`${PWD_COMMAND}`; export r; \
32928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32929 $(RAW_CXX_TARGET_EXPORTS) \
32930 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32931 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
32932
32933@endif target-libstdc++-v3
32934
32935.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
32936maybe-install-target-libstdc++-v3:
32937@if target-libstdc++-v3
32938maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
32939
32940install-target-libstdc++-v3: installdirs
32941 @: $(MAKE); $(unstage)
32942 @r=`${PWD_COMMAND}`; export r; \
32943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32944 $(RAW_CXX_TARGET_EXPORTS) \
32945 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32946 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
32947
32948@endif target-libstdc++-v3
32949
32950.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
32951maybe-install-strip-target-libstdc++-v3:
32952@if target-libstdc++-v3
32953maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
32954
32955install-strip-target-libstdc++-v3: installdirs
32956 @: $(MAKE); $(unstage)
32957 @r=`${PWD_COMMAND}`; export r; \
32958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32959 $(RAW_CXX_TARGET_EXPORTS) \
32960 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32961 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
32962
32963@endif target-libstdc++-v3
32964
32965# Other targets (info, dvi, pdf, etc.)
32966
32967.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
32968maybe-info-target-libstdc++-v3:
32969@if target-libstdc++-v3
32970maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
32971
32972info-target-libstdc++-v3: \
32973 configure-target-libstdc++-v3
32974 @: $(MAKE); $(unstage)
32975 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
32976 r=`${PWD_COMMAND}`; export r; \
32977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32978 $(RAW_CXX_TARGET_EXPORTS) \
32979 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
32980 for flag in $(EXTRA_TARGET_FLAGS); do \
32981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32982 done; \
32983 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32986 "RANLIB=$${RANLIB}" \
32987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32988 info) \
32989 || exit 1
32990
32991@endif target-libstdc++-v3
32992
32993.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
32994maybe-dvi-target-libstdc++-v3:
32995@if target-libstdc++-v3
32996maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
32997
32998dvi-target-libstdc++-v3: \
32999 configure-target-libstdc++-v3
33000 @: $(MAKE); $(unstage)
33001 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33002 r=`${PWD_COMMAND}`; export r; \
33003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33004 $(RAW_CXX_TARGET_EXPORTS) \
33005 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33006 for flag in $(EXTRA_TARGET_FLAGS); do \
33007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33008 done; \
33009 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33012 "RANLIB=$${RANLIB}" \
33013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33014 dvi) \
33015 || exit 1
33016
33017@endif target-libstdc++-v3
33018
33019.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
33020maybe-pdf-target-libstdc++-v3:
33021@if target-libstdc++-v3
33022maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
33023
33024pdf-target-libstdc++-v3: \
33025 configure-target-libstdc++-v3
33026 @: $(MAKE); $(unstage)
33027 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33028 r=`${PWD_COMMAND}`; export r; \
33029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33030 $(RAW_CXX_TARGET_EXPORTS) \
33031 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33032 for flag in $(EXTRA_TARGET_FLAGS); do \
33033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33034 done; \
33035 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33038 "RANLIB=$${RANLIB}" \
33039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33040 pdf) \
33041 || exit 1
33042
33043@endif target-libstdc++-v3
33044
33045.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
33046maybe-html-target-libstdc++-v3:
33047@if target-libstdc++-v3
33048maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
33049
33050html-target-libstdc++-v3: \
33051 configure-target-libstdc++-v3
33052 @: $(MAKE); $(unstage)
33053 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33054 r=`${PWD_COMMAND}`; export r; \
33055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33056 $(RAW_CXX_TARGET_EXPORTS) \
33057 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33058 for flag in $(EXTRA_TARGET_FLAGS); do \
33059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33060 done; \
33061 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33064 "RANLIB=$${RANLIB}" \
33065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33066 html) \
33067 || exit 1
33068
33069@endif target-libstdc++-v3
33070
33071.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
33072maybe-TAGS-target-libstdc++-v3:
33073@if target-libstdc++-v3
33074maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
33075
33076TAGS-target-libstdc++-v3: \
33077 configure-target-libstdc++-v3
33078 @: $(MAKE); $(unstage)
33079 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33080 r=`${PWD_COMMAND}`; export r; \
33081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33082 $(RAW_CXX_TARGET_EXPORTS) \
33083 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33084 for flag in $(EXTRA_TARGET_FLAGS); do \
33085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33086 done; \
33087 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33090 "RANLIB=$${RANLIB}" \
33091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33092 TAGS) \
33093 || exit 1
33094
33095@endif target-libstdc++-v3
33096
33097.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
33098maybe-install-info-target-libstdc++-v3:
33099@if target-libstdc++-v3
33100maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
33101
33102install-info-target-libstdc++-v3: \
33103 configure-target-libstdc++-v3 \
33104 info-target-libstdc++-v3
33105 @: $(MAKE); $(unstage)
33106 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33107 r=`${PWD_COMMAND}`; export r; \
33108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33109 $(RAW_CXX_TARGET_EXPORTS) \
33110 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33111 for flag in $(EXTRA_TARGET_FLAGS); do \
33112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33113 done; \
33114 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33117 "RANLIB=$${RANLIB}" \
33118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33119 install-info) \
33120 || exit 1
33121
33122@endif target-libstdc++-v3
33123
33124.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
33125maybe-install-pdf-target-libstdc++-v3:
33126@if target-libstdc++-v3
33127maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
33128
33129install-pdf-target-libstdc++-v3: \
33130 configure-target-libstdc++-v3 \
33131 pdf-target-libstdc++-v3
33132 @: $(MAKE); $(unstage)
33133 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33134 r=`${PWD_COMMAND}`; export r; \
33135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33136 $(RAW_CXX_TARGET_EXPORTS) \
33137 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33138 for flag in $(EXTRA_TARGET_FLAGS); do \
33139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33140 done; \
33141 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33144 "RANLIB=$${RANLIB}" \
33145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33146 install-pdf) \
33147 || exit 1
33148
33149@endif target-libstdc++-v3
33150
33151.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
33152maybe-install-html-target-libstdc++-v3:
33153@if target-libstdc++-v3
33154maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
33155
33156install-html-target-libstdc++-v3: \
33157 configure-target-libstdc++-v3 \
33158 html-target-libstdc++-v3
33159 @: $(MAKE); $(unstage)
33160 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33161 r=`${PWD_COMMAND}`; export r; \
33162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33163 $(RAW_CXX_TARGET_EXPORTS) \
33164 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33165 for flag in $(EXTRA_TARGET_FLAGS); do \
33166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33167 done; \
33168 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33171 "RANLIB=$${RANLIB}" \
33172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33173 install-html) \
33174 || exit 1
33175
33176@endif target-libstdc++-v3
33177
33178.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
33179maybe-installcheck-target-libstdc++-v3:
33180@if target-libstdc++-v3
33181maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
33182
33183installcheck-target-libstdc++-v3: \
33184 configure-target-libstdc++-v3
33185 @: $(MAKE); $(unstage)
33186 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33187 r=`${PWD_COMMAND}`; export r; \
33188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33189 $(RAW_CXX_TARGET_EXPORTS) \
33190 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33191 for flag in $(EXTRA_TARGET_FLAGS); do \
33192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33193 done; \
33194 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33197 "RANLIB=$${RANLIB}" \
33198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33199 installcheck) \
33200 || exit 1
33201
33202@endif target-libstdc++-v3
33203
33204.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
33205maybe-mostlyclean-target-libstdc++-v3:
33206@if target-libstdc++-v3
33207maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
33208
33209mostlyclean-target-libstdc++-v3:
33210 @: $(MAKE); $(unstage)
33211 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33212 r=`${PWD_COMMAND}`; export r; \
33213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33214 $(RAW_CXX_TARGET_EXPORTS) \
33215 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33216 for flag in $(EXTRA_TARGET_FLAGS); do \
33217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33218 done; \
33219 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33222 "RANLIB=$${RANLIB}" \
33223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33224 mostlyclean) \
33225 || exit 1
33226
33227@endif target-libstdc++-v3
33228
33229.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
33230maybe-clean-target-libstdc++-v3:
33231@if target-libstdc++-v3
33232maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
33233
33234clean-target-libstdc++-v3:
33235 @: $(MAKE); $(unstage)
33236 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33237 r=`${PWD_COMMAND}`; export r; \
33238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33239 $(RAW_CXX_TARGET_EXPORTS) \
33240 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33241 for flag in $(EXTRA_TARGET_FLAGS); do \
33242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33243 done; \
33244 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33247 "RANLIB=$${RANLIB}" \
33248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33249 clean) \
33250 || exit 1
33251
33252@endif target-libstdc++-v3
33253
33254.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
33255maybe-distclean-target-libstdc++-v3:
33256@if target-libstdc++-v3
33257maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
33258
33259distclean-target-libstdc++-v3:
33260 @: $(MAKE); $(unstage)
33261 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33262 r=`${PWD_COMMAND}`; export r; \
33263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33264 $(RAW_CXX_TARGET_EXPORTS) \
33265 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33266 for flag in $(EXTRA_TARGET_FLAGS); do \
33267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33268 done; \
33269 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33272 "RANLIB=$${RANLIB}" \
33273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33274 distclean) \
33275 || exit 1
33276
33277@endif target-libstdc++-v3
33278
33279.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
33280maybe-maintainer-clean-target-libstdc++-v3:
33281@if target-libstdc++-v3
33282maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
33283
33284maintainer-clean-target-libstdc++-v3:
33285 @: $(MAKE); $(unstage)
33286 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33287 r=`${PWD_COMMAND}`; export r; \
33288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33289 $(RAW_CXX_TARGET_EXPORTS) \
33290 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33291 for flag in $(EXTRA_TARGET_FLAGS); do \
33292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33293 done; \
33294 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33297 "RANLIB=$${RANLIB}" \
33298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33299 maintainer-clean) \
33300 || exit 1
33301
33302@endif target-libstdc++-v3
33303
33304
33305
33306
33307
33308.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
33309maybe-configure-target-libsanitizer:
33310@if gcc-bootstrap
33311configure-target-libsanitizer: stage_current
33312@endif gcc-bootstrap
33313@if target-libsanitizer
33314maybe-configure-target-libsanitizer: configure-target-libsanitizer
33315configure-target-libsanitizer:
33316 @r=`${PWD_COMMAND}`; export r; \
33317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33318 echo "Checking multilib configuration for libsanitizer..."; \
33319 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33320 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33321 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33322 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33323 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33324 else \
33325 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33326 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33327 fi; \
33328 else \
33329 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33330 fi; \
33331 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33332 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33333 $(RAW_CXX_TARGET_EXPORTS) \
33334 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
33335 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
33336 case $(srcdir) in \
33337 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33338 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33339 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33340 esac; \
33341 module_srcdir=libsanitizer; \
33342 rm -f no-such-file || : ; \
33343 CONFIG_SITE=no-such-file $(SHELL) \
33344 $$s/$$module_srcdir/configure \
33345 --srcdir=$${topdir}/$$module_srcdir \
33346 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33347 --target=${target_alias} \
33348 || exit 1
33349@endif target-libsanitizer
33350
33351
33352
33353.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
33354maybe-configure-stage1-target-libsanitizer:
33355@if target-libsanitizer-bootstrap
33356maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33357configure-stage1-target-libsanitizer:
33358 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33359 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33360 @r=`${PWD_COMMAND}`; export r; \
33361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33362 TFLAGS="$(STAGE1_TFLAGS)"; \
33363 echo "Checking multilib configuration for libsanitizer..."; \
33364 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33365 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33366 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33367 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33368 else \
33369 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33370 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33371 fi; \
33372 else \
33373 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33374 fi; \
33375 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33376 $(RAW_CXX_TARGET_EXPORTS) \
33377 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33378 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33379 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33380 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer ; \
33381 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33382 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33383 case $(srcdir) in \
33384 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33385 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33386 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33387 esac; \
33388 module_srcdir=libsanitizer; \
33389 $(SHELL) $$s/$$module_srcdir/configure \
33390 --srcdir=$${topdir}/$$module_srcdir \
33391 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33392 --target=${target_alias} \
33393 \
33394 $(STAGE1_CONFIGURE_FLAGS)
33395@endif target-libsanitizer-bootstrap
33396
33397.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
33398maybe-configure-stage2-target-libsanitizer:
33399@if target-libsanitizer-bootstrap
33400maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33401configure-stage2-target-libsanitizer:
33402 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33403 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33404 @r=`${PWD_COMMAND}`; export r; \
33405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33406 TFLAGS="$(STAGE2_TFLAGS)"; \
33407 echo "Checking multilib configuration for libsanitizer..."; \
33408 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33409 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33410 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33411 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33412 else \
33413 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33414 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33415 fi; \
33416 else \
33417 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33418 fi; \
33419 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33420 $(RAW_CXX_TARGET_EXPORTS) \
33421 \
33422 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33423 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33424 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33425 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer ; \
33426 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33427 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33428 case $(srcdir) in \
33429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33430 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33432 esac; \
33433 module_srcdir=libsanitizer; \
33434 $(SHELL) $$s/$$module_srcdir/configure \
33435 --srcdir=$${topdir}/$$module_srcdir \
33436 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33437 --target=${target_alias} \
33438 --with-build-libsubdir=$(HOST_SUBDIR) \
33439 $(STAGE2_CONFIGURE_FLAGS)
33440@endif target-libsanitizer-bootstrap
33441
33442.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
33443maybe-configure-stage3-target-libsanitizer:
33444@if target-libsanitizer-bootstrap
33445maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33446configure-stage3-target-libsanitizer:
33447 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33448 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33449 @r=`${PWD_COMMAND}`; export r; \
33450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33451 TFLAGS="$(STAGE3_TFLAGS)"; \
33452 echo "Checking multilib configuration for libsanitizer..."; \
33453 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33454 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33455 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33456 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33457 else \
33458 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33459 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33460 fi; \
33461 else \
33462 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33463 fi; \
33464 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33465 $(RAW_CXX_TARGET_EXPORTS) \
33466 \
33467 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33468 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33469 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33470 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer ; \
33471 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33472 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33473 case $(srcdir) in \
33474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33475 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33477 esac; \
33478 module_srcdir=libsanitizer; \
33479 $(SHELL) $$s/$$module_srcdir/configure \
33480 --srcdir=$${topdir}/$$module_srcdir \
33481 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33482 --target=${target_alias} \
33483 --with-build-libsubdir=$(HOST_SUBDIR) \
33484 $(STAGE3_CONFIGURE_FLAGS)
33485@endif target-libsanitizer-bootstrap
33486
33487.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
33488maybe-configure-stage4-target-libsanitizer:
33489@if target-libsanitizer-bootstrap
33490maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33491configure-stage4-target-libsanitizer:
33492 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33493 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33494 @r=`${PWD_COMMAND}`; export r; \
33495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33496 TFLAGS="$(STAGE4_TFLAGS)"; \
33497 echo "Checking multilib configuration for libsanitizer..."; \
33498 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33499 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33500 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33501 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33502 else \
33503 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33504 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33505 fi; \
33506 else \
33507 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33508 fi; \
33509 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33510 $(RAW_CXX_TARGET_EXPORTS) \
33511 \
33512 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33513 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33514 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33515 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer ; \
33516 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33517 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33518 case $(srcdir) in \
33519 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33520 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33521 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33522 esac; \
33523 module_srcdir=libsanitizer; \
33524 $(SHELL) $$s/$$module_srcdir/configure \
33525 --srcdir=$${topdir}/$$module_srcdir \
33526 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33527 --target=${target_alias} \
33528 --with-build-libsubdir=$(HOST_SUBDIR) \
33529 $(STAGE4_CONFIGURE_FLAGS)
33530@endif target-libsanitizer-bootstrap
33531
33532.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
33533maybe-configure-stageprofile-target-libsanitizer:
33534@if target-libsanitizer-bootstrap
33535maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
33536configure-stageprofile-target-libsanitizer:
33537 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33538 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33539 @r=`${PWD_COMMAND}`; export r; \
33540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33541 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33542 echo "Checking multilib configuration for libsanitizer..."; \
33543 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33544 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33545 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33546 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33547 else \
33548 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33549 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33550 fi; \
33551 else \
33552 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33553 fi; \
33554 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33555 $(RAW_CXX_TARGET_EXPORTS) \
33556 \
33557 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33558 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33559 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33560 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer ; \
33561 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33562 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33563 case $(srcdir) in \
33564 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33565 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33566 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33567 esac; \
33568 module_srcdir=libsanitizer; \
33569 $(SHELL) $$s/$$module_srcdir/configure \
33570 --srcdir=$${topdir}/$$module_srcdir \
33571 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33572 --target=${target_alias} \
33573 --with-build-libsubdir=$(HOST_SUBDIR) \
33574 $(STAGEprofile_CONFIGURE_FLAGS)
33575@endif target-libsanitizer-bootstrap
33576
33577.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
33578maybe-configure-stagefeedback-target-libsanitizer:
33579@if target-libsanitizer-bootstrap
33580maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
33581configure-stagefeedback-target-libsanitizer:
33582 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33583 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33584 @r=`${PWD_COMMAND}`; export r; \
33585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33586 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33587 echo "Checking multilib configuration for libsanitizer..."; \
33588 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33589 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33590 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33591 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33592 else \
33593 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33594 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33595 fi; \
33596 else \
33597 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33598 fi; \
33599 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33600 $(RAW_CXX_TARGET_EXPORTS) \
33601 \
33602 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33603 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33604 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33605 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer ; \
33606 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33607 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33608 case $(srcdir) in \
33609 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33610 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33611 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33612 esac; \
33613 module_srcdir=libsanitizer; \
33614 $(SHELL) $$s/$$module_srcdir/configure \
33615 --srcdir=$${topdir}/$$module_srcdir \
33616 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33617 --target=${target_alias} \
33618 --with-build-libsubdir=$(HOST_SUBDIR) \
33619 $(STAGEfeedback_CONFIGURE_FLAGS)
33620@endif target-libsanitizer-bootstrap
33621
33622
33623
33624
33625
33626.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
33627maybe-all-target-libsanitizer:
33628@if gcc-bootstrap
33629all-target-libsanitizer: stage_current
33630@endif gcc-bootstrap
33631@if target-libsanitizer
33632TARGET-target-libsanitizer=all
33633maybe-all-target-libsanitizer: all-target-libsanitizer
33634all-target-libsanitizer: configure-target-libsanitizer
33635 @r=`${PWD_COMMAND}`; export r; \
33636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33637 $(RAW_CXX_TARGET_EXPORTS) \
33638 (cd $(TARGET_SUBDIR)/libsanitizer && \
33639 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33640 $(TARGET-target-libsanitizer))
33641@endif target-libsanitizer
33642
33643
33644
33645.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
33646.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
33647maybe-all-stage1-target-libsanitizer:
33648maybe-clean-stage1-target-libsanitizer:
33649@if target-libsanitizer-bootstrap
33650maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
33651all-stage1: all-stage1-target-libsanitizer
33652TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
33653all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33654 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33655 @r=`${PWD_COMMAND}`; export r; \
33656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33657 TFLAGS="$(STAGE1_TFLAGS)"; \
33658 $(RAW_CXX_TARGET_EXPORTS) \
33659 cd $(TARGET_SUBDIR)/libsanitizer && \
33660 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33661 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33662 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33663 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33664 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33665 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33666 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33667 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33668 \
33669 TFLAGS="$(STAGE1_TFLAGS)" \
33670 $(TARGET-stage1-target-libsanitizer)
33671
33672maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
33673clean-stage1: clean-stage1-target-libsanitizer
33674clean-stage1-target-libsanitizer:
33675 @if [ $(current_stage) = stage1 ]; then \
33676 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33677 else \
33678 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
33679 $(MAKE) stage1-start; \
33680 fi; \
33681 cd $(TARGET_SUBDIR)/libsanitizer && \
33682 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33683 clean
33684@endif target-libsanitizer-bootstrap
33685
33686
33687.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
33688.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
33689maybe-all-stage2-target-libsanitizer:
33690maybe-clean-stage2-target-libsanitizer:
33691@if target-libsanitizer-bootstrap
33692maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
33693all-stage2: all-stage2-target-libsanitizer
33694TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
33695all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33696 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33697 @r=`${PWD_COMMAND}`; export r; \
33698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33699 TFLAGS="$(STAGE2_TFLAGS)"; \
33700 $(RAW_CXX_TARGET_EXPORTS) \
33701 \
33702 cd $(TARGET_SUBDIR)/libsanitizer && \
33703 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33704 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33705 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33706 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33707 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33708 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33709 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33710 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33711 TFLAGS="$(STAGE2_TFLAGS)" \
33712 $(TARGET-stage2-target-libsanitizer)
33713
33714maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
33715clean-stage2: clean-stage2-target-libsanitizer
33716clean-stage2-target-libsanitizer:
33717 @if [ $(current_stage) = stage2 ]; then \
33718 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33719 else \
33720 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
33721 $(MAKE) stage2-start; \
33722 fi; \
33723 cd $(TARGET_SUBDIR)/libsanitizer && \
33724 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33725@endif target-libsanitizer-bootstrap
33726
33727
33728.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
33729.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
33730maybe-all-stage3-target-libsanitizer:
33731maybe-clean-stage3-target-libsanitizer:
33732@if target-libsanitizer-bootstrap
33733maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
33734all-stage3: all-stage3-target-libsanitizer
33735TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
33736all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33737 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33738 @r=`${PWD_COMMAND}`; export r; \
33739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33740 TFLAGS="$(STAGE3_TFLAGS)"; \
33741 $(RAW_CXX_TARGET_EXPORTS) \
33742 \
33743 cd $(TARGET_SUBDIR)/libsanitizer && \
33744 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33745 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33746 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33747 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33748 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33749 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33750 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33751 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33752 TFLAGS="$(STAGE3_TFLAGS)" \
33753 $(TARGET-stage3-target-libsanitizer)
33754
33755maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
33756clean-stage3: clean-stage3-target-libsanitizer
33757clean-stage3-target-libsanitizer:
33758 @if [ $(current_stage) = stage3 ]; then \
33759 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33760 else \
33761 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
33762 $(MAKE) stage3-start; \
33763 fi; \
33764 cd $(TARGET_SUBDIR)/libsanitizer && \
33765 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33766@endif target-libsanitizer-bootstrap
33767
33768
33769.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
33770.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
33771maybe-all-stage4-target-libsanitizer:
33772maybe-clean-stage4-target-libsanitizer:
33773@if target-libsanitizer-bootstrap
33774maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
33775all-stage4: all-stage4-target-libsanitizer
33776TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
33777all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33778 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33779 @r=`${PWD_COMMAND}`; export r; \
33780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33781 TFLAGS="$(STAGE4_TFLAGS)"; \
33782 $(RAW_CXX_TARGET_EXPORTS) \
33783 \
33784 cd $(TARGET_SUBDIR)/libsanitizer && \
33785 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33786 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33787 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33788 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
33789 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33790 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33791 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33792 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33793 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 33794 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 33795
1b6c0831
L
33796maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
33797clean-stage4: clean-stage4-target-libsanitizer
33798clean-stage4-target-libsanitizer:
e8a5fa9c 33799 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 33800 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33801 else \
1b6c0831 33802 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33803 $(MAKE) stage4-start; \
33804 fi; \
1b6c0831 33805 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33806 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33807@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33808
33809
1b6c0831
L
33810.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
33811.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
33812maybe-all-stageprofile-target-libsanitizer:
33813maybe-clean-stageprofile-target-libsanitizer:
33814@if target-libsanitizer-bootstrap
33815maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
33816all-stageprofile: all-stageprofile-target-libsanitizer
33817TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
33818all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
33819 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33820 @r=`${PWD_COMMAND}`; export r; \
33821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33822 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33823 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 33824 \
1b6c0831 33825 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
33826 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33827 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33828 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33829 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33830 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33831 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33832 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33833 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33834 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 33835 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 33836
1b6c0831
L
33837maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
33838clean-stageprofile: clean-stageprofile-target-libsanitizer
33839clean-stageprofile-target-libsanitizer:
e8a5fa9c 33840 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 33841 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33842 else \
1b6c0831 33843 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33844 $(MAKE) stageprofile-start; \
33845 fi; \
1b6c0831 33846 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33847 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33848@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33849
33850
1b6c0831
L
33851.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
33852.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
33853maybe-all-stagefeedback-target-libsanitizer:
33854maybe-clean-stagefeedback-target-libsanitizer:
33855@if target-libsanitizer-bootstrap
33856maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
33857all-stagefeedback: all-stagefeedback-target-libsanitizer
33858TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
33859all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
33860 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33861 @r=`${PWD_COMMAND}`; export r; \
33862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33863 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33864 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 33865 \
1b6c0831 33866 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
33867 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33868 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33869 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33870 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33871 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33872 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33873 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33874 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33875 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 33876 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 33877
1b6c0831
L
33878maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
33879clean-stagefeedback: clean-stagefeedback-target-libsanitizer
33880clean-stagefeedback-target-libsanitizer:
e8a5fa9c 33881 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 33882 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33883 else \
1b6c0831 33884 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33885 $(MAKE) stagefeedback-start; \
33886 fi; \
1b6c0831 33887 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33888 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33889@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33890
33891
33892
33893
d545f33b
PB
33894
33895
1b6c0831
L
33896.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
33897maybe-check-target-libsanitizer:
33898@if target-libsanitizer
33899maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 33900
1b6c0831 33901check-target-libsanitizer:
0aed8855 33902 @: $(MAKE); $(unstage)
b40e3958
L
33903 @r=`${PWD_COMMAND}`; export r; \
33904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33905 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33906 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 33907 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 33908
1b6c0831 33909@endif target-libsanitizer
3866be5d 33910
1b6c0831
L
33911.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
33912maybe-install-target-libsanitizer:
33913@if target-libsanitizer
33914maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 33915
1b6c0831 33916install-target-libsanitizer: installdirs
0aed8855 33917 @: $(MAKE); $(unstage)
b40e3958
L
33918 @r=`${PWD_COMMAND}`; export r; \
33919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33920 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33921 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 33922 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 33923
1b6c0831 33924@endif target-libsanitizer
e2b9e2dc 33925
1b6c0831
L
33926.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
33927maybe-install-strip-target-libsanitizer:
33928@if target-libsanitizer
33929maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 33930
1b6c0831 33931install-strip-target-libsanitizer: installdirs
9b980aa1
RW
33932 @: $(MAKE); $(unstage)
33933 @r=`${PWD_COMMAND}`; export r; \
33934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33935 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33936 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
33937 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33938
1b6c0831 33939@endif target-libsanitizer
9b980aa1 33940
56a8fe78 33941# Other targets (info, dvi, pdf, etc.)
3866be5d 33942
1b6c0831
L
33943.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
33944maybe-info-target-libsanitizer:
33945@if target-libsanitizer
33946maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 33947
1b6c0831
L
33948info-target-libsanitizer: \
33949 configure-target-libsanitizer
0aed8855 33950 @: $(MAKE); $(unstage)
1b6c0831 33951 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 33952 r=`${PWD_COMMAND}`; export r; \
b40e3958 33953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33954 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33955 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
33956 for flag in $(EXTRA_TARGET_FLAGS); do \
33957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33958 done; \
1b6c0831 33959 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
33960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33962 "RANLIB=$${RANLIB}" \
0c24b341 33963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 33964 info) \
4fa63067 33965 || exit 1
3866be5d 33966
1b6c0831 33967@endif target-libsanitizer
3866be5d 33968
1b6c0831
L
33969.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
33970maybe-dvi-target-libsanitizer:
33971@if target-libsanitizer
33972maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 33973
1b6c0831
L
33974dvi-target-libsanitizer: \
33975 configure-target-libsanitizer
0aed8855 33976 @: $(MAKE); $(unstage)
1b6c0831 33977 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 33978 r=`${PWD_COMMAND}`; export r; \
b40e3958 33979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33980 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33981 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
33982 for flag in $(EXTRA_TARGET_FLAGS); do \
33983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33984 done; \
1b6c0831 33985 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
33986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33988 "RANLIB=$${RANLIB}" \
0c24b341 33989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 33990 dvi) \
4fa63067 33991 || exit 1
3866be5d 33992
1b6c0831 33993@endif target-libsanitizer
3866be5d 33994
1b6c0831
L
33995.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
33996maybe-pdf-target-libsanitizer:
33997@if target-libsanitizer
33998maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 33999
1b6c0831
L
34000pdf-target-libsanitizer: \
34001 configure-target-libsanitizer
56a8fe78 34002 @: $(MAKE); $(unstage)
1b6c0831 34003 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
56a8fe78
DD
34004 r=`${PWD_COMMAND}`; export r; \
34005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34006 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34007 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer" ; \
56a8fe78
DD
34008 for flag in $(EXTRA_TARGET_FLAGS); do \
34009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34010 done; \
1b6c0831 34011 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
34012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34014 "RANLIB=$${RANLIB}" \
0c24b341 34015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34016 pdf) \
34017 || exit 1
34018
1b6c0831 34019@endif target-libsanitizer
56a8fe78 34020
1b6c0831
L
34021.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
34022maybe-html-target-libsanitizer:
34023@if target-libsanitizer
34024maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 34025
1b6c0831
L
34026html-target-libsanitizer: \
34027 configure-target-libsanitizer
0aed8855 34028 @: $(MAKE); $(unstage)
1b6c0831 34029 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
6d389afc
MS
34030 r=`${PWD_COMMAND}`; export r; \
34031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 34032 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34033 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer" ; \
6d389afc
MS
34034 for flag in $(EXTRA_TARGET_FLAGS); do \
34035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34036 done; \
1b6c0831 34037 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
34038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34040 "RANLIB=$${RANLIB}" \
0c24b341 34041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34042 html) \
34043 || exit 1
34044
1b6c0831 34045@endif target-libsanitizer
6d389afc 34046
1b6c0831
L
34047.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
34048maybe-TAGS-target-libsanitizer:
34049@if target-libsanitizer
34050maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 34051
1b6c0831
L
34052TAGS-target-libsanitizer: \
34053 configure-target-libsanitizer
0aed8855 34054 @: $(MAKE); $(unstage)
1b6c0831 34055 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
b40e3958
L
34056 r=`${PWD_COMMAND}`; export r; \
34057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34058 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34059 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34060 for flag in $(EXTRA_TARGET_FLAGS); do \
34061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34062 done; \
1b6c0831 34063 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34066 "RANLIB=$${RANLIB}" \
0c24b341 34067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34068 TAGS) \
e2b9e2dc
NN
34069 || exit 1
34070
1b6c0831 34071@endif target-libsanitizer
3866be5d 34072
1b6c0831
L
34073.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
34074maybe-install-info-target-libsanitizer:
34075@if target-libsanitizer
34076maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 34077
1b6c0831
L
34078install-info-target-libsanitizer: \
34079 configure-target-libsanitizer \
34080 info-target-libsanitizer
0aed8855 34081 @: $(MAKE); $(unstage)
1b6c0831 34082 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34083 r=`${PWD_COMMAND}`; export r; \
b40e3958 34084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34085 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34086 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34087 for flag in $(EXTRA_TARGET_FLAGS); do \
34088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34089 done; \
1b6c0831 34090 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34093 "RANLIB=$${RANLIB}" \
0c24b341 34094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34095 install-info) \
4fa63067 34096 || exit 1
3866be5d 34097
1b6c0831 34098@endif target-libsanitizer
3866be5d 34099
1b6c0831
L
34100.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
34101maybe-install-pdf-target-libsanitizer:
34102@if target-libsanitizer
34103maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 34104
1b6c0831
L
34105install-pdf-target-libsanitizer: \
34106 configure-target-libsanitizer \
34107 pdf-target-libsanitizer
a3ca38d2 34108 @: $(MAKE); $(unstage)
1b6c0831 34109 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
a3ca38d2
DD
34110 r=`${PWD_COMMAND}`; export r; \
34111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34112 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34113 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer" ; \
a3ca38d2
DD
34114 for flag in $(EXTRA_TARGET_FLAGS); do \
34115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34116 done; \
1b6c0831 34117 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
34118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34120 "RANLIB=$${RANLIB}" \
0c24b341 34121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34122 install-pdf) \
34123 || exit 1
34124
1b6c0831 34125@endif target-libsanitizer
a3ca38d2 34126
1b6c0831
L
34127.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
34128maybe-install-html-target-libsanitizer:
34129@if target-libsanitizer
34130maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 34131
1b6c0831
L
34132install-html-target-libsanitizer: \
34133 configure-target-libsanitizer \
34134 html-target-libsanitizer
108a6f8e 34135 @: $(MAKE); $(unstage)
1b6c0831 34136 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
108a6f8e
CD
34137 r=`${PWD_COMMAND}`; export r; \
34138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34139 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34140 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer" ; \
108a6f8e
CD
34141 for flag in $(EXTRA_TARGET_FLAGS); do \
34142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34143 done; \
1b6c0831 34144 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
34145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34147 "RANLIB=$${RANLIB}" \
0c24b341 34148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34149 install-html) \
34150 || exit 1
34151
1b6c0831 34152@endif target-libsanitizer
108a6f8e 34153
1b6c0831
L
34154.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
34155maybe-installcheck-target-libsanitizer:
34156@if target-libsanitizer
34157maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 34158
1b6c0831
L
34159installcheck-target-libsanitizer: \
34160 configure-target-libsanitizer
0aed8855 34161 @: $(MAKE); $(unstage)
1b6c0831 34162 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34163 r=`${PWD_COMMAND}`; export r; \
b40e3958 34164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34165 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34166 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34167 for flag in $(EXTRA_TARGET_FLAGS); do \
34168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34169 done; \
1b6c0831 34170 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34173 "RANLIB=$${RANLIB}" \
0c24b341 34174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34175 installcheck) \
4fa63067 34176 || exit 1
3866be5d 34177
1b6c0831 34178@endif target-libsanitizer
3866be5d 34179
1b6c0831
L
34180.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
34181maybe-mostlyclean-target-libsanitizer:
34182@if target-libsanitizer
34183maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 34184
1b6c0831 34185mostlyclean-target-libsanitizer:
0aed8855 34186 @: $(MAKE); $(unstage)
1b6c0831 34187 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
b40e3958
L
34188 r=`${PWD_COMMAND}`; export r; \
34189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34190 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34191 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34192 for flag in $(EXTRA_TARGET_FLAGS); do \
34193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34194 done; \
1b6c0831 34195 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34198 "RANLIB=$${RANLIB}" \
0c24b341 34199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34200 mostlyclean) \
e2b9e2dc
NN
34201 || exit 1
34202
1b6c0831 34203@endif target-libsanitizer
4fa63067 34204
1b6c0831
L
34205.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
34206maybe-clean-target-libsanitizer:
34207@if target-libsanitizer
34208maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 34209
1b6c0831 34210clean-target-libsanitizer:
0aed8855 34211 @: $(MAKE); $(unstage)
1b6c0831 34212 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34213 r=`${PWD_COMMAND}`; export r; \
b40e3958 34214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34215 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34216 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34217 for flag in $(EXTRA_TARGET_FLAGS); do \
34218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34219 done; \
1b6c0831 34220 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34223 "RANLIB=$${RANLIB}" \
0c24b341 34224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34225 clean) \
4fa63067 34226 || exit 1
3866be5d 34227
1b6c0831 34228@endif target-libsanitizer
3866be5d 34229
1b6c0831
L
34230.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
34231maybe-distclean-target-libsanitizer:
34232@if target-libsanitizer
34233maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 34234
1b6c0831 34235distclean-target-libsanitizer:
0aed8855 34236 @: $(MAKE); $(unstage)
1b6c0831 34237 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34238 r=`${PWD_COMMAND}`; export r; \
b40e3958 34239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34240 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34241 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34242 for flag in $(EXTRA_TARGET_FLAGS); do \
34243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34244 done; \
1b6c0831 34245 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34248 "RANLIB=$${RANLIB}" \
0c24b341 34249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34250 distclean) \
4fa63067 34251 || exit 1
3866be5d 34252
1b6c0831 34253@endif target-libsanitizer
3866be5d 34254
1b6c0831
L
34255.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
34256maybe-maintainer-clean-target-libsanitizer:
34257@if target-libsanitizer
34258maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 34259
1b6c0831 34260maintainer-clean-target-libsanitizer:
0aed8855 34261 @: $(MAKE); $(unstage)
1b6c0831 34262 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34263 r=`${PWD_COMMAND}`; export r; \
b40e3958 34264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34265 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34266 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34267 for flag in $(EXTRA_TARGET_FLAGS); do \
34268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34269 done; \
1b6c0831 34270 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34273 "RANLIB=$${RANLIB}" \
0c24b341 34274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34275 maintainer-clean) \
4fa63067 34276 || exit 1
3866be5d 34277
1b6c0831 34278@endif target-libsanitizer
3866be5d 34279
4fa63067 34280
4fa63067 34281
a7254363
PB
34282
34283
1b6c0831
L
34284.PHONY: configure-target-libmpx maybe-configure-target-libmpx
34285maybe-configure-target-libmpx:
5286fdef 34286@if gcc-bootstrap
1b6c0831 34287configure-target-libmpx: stage_current
5286fdef 34288@endif gcc-bootstrap
1b6c0831
L
34289@if target-libmpx
34290maybe-configure-target-libmpx: configure-target-libmpx
34291configure-target-libmpx:
5286fdef
L
34292 @r=`${PWD_COMMAND}`; export r; \
34293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34294 echo "Checking multilib configuration for libmpx..."; \
34295 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34296 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34297 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34298 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34299 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 34300 else \
1b6c0831
L
34301 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34302 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
34303 fi; \
34304 else \
1b6c0831 34305 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 34306 fi; \
1b6c0831
L
34307 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34308 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34309 $(NORMAL_TARGET_EXPORTS) \
34310 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
34311 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
34312 case $(srcdir) in \
34313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34314 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
34315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34316 esac; \
1b6c0831 34317 module_srcdir=libmpx; \
5286fdef 34318 rm -f no-such-file || : ; \
1b6c0831
L
34319 CONFIG_SITE=no-such-file $(SHELL) \
34320 $$s/$$module_srcdir/configure \
34321 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 34322 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34323 --target=${target_alias} \
5286fdef 34324 || exit 1
1b6c0831 34325@endif target-libmpx
5286fdef
L
34326
34327
34328
1b6c0831
L
34329.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
34330maybe-configure-stage1-target-libmpx:
34331@if target-libmpx-bootstrap
34332maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
34333configure-stage1-target-libmpx:
5eb08693 34334 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 34335 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34336 @r=`${PWD_COMMAND}`; export r; \
34337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34338 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
34339 echo "Checking multilib configuration for libmpx..."; \
34340 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34341 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34342 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34343 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34344 else \
1b6c0831
L
34345 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34346 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34347 fi; \
34348 else \
1b6c0831 34349 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34350 fi; \
1b6c0831
L
34351 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34352 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34353 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34354 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34355 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34356 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx ; \
34357 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34358 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34359 case $(srcdir) in \
34360 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34361 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34362 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34363 esac; \
1b6c0831
L
34364 module_srcdir=libmpx; \
34365 $(SHELL) $$s/$$module_srcdir/configure \
34366 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34367 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34368 --target=${target_alias} \
34369 \
5eb08693 34370 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 34371@endif target-libmpx-bootstrap
5eb08693 34372
1b6c0831
L
34373.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
34374maybe-configure-stage2-target-libmpx:
34375@if target-libmpx-bootstrap
34376maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
34377configure-stage2-target-libmpx:
5eb08693 34378 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 34379 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34380 @r=`${PWD_COMMAND}`; export r; \
34381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34382 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831
L
34383 echo "Checking multilib configuration for libmpx..."; \
34384 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34385 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34386 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34387 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34388 else \
1b6c0831
L
34389 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34390 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34391 fi; \
34392 else \
1b6c0831 34393 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34394 fi; \
1b6c0831
L
34395 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34396 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34397 \
34398 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34399 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34400 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34401 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx ; \
34402 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34403 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34404 case $(srcdir) in \
34405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34406 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34408 esac; \
1b6c0831
L
34409 module_srcdir=libmpx; \
34410 $(SHELL) $$s/$$module_srcdir/configure \
34411 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34412 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34413 --target=${target_alias} \
34414 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34415 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 34416@endif target-libmpx-bootstrap
5eb08693 34417
1b6c0831
L
34418.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
34419maybe-configure-stage3-target-libmpx:
34420@if target-libmpx-bootstrap
34421maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
34422configure-stage3-target-libmpx:
5eb08693 34423 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 34424 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34425 @r=`${PWD_COMMAND}`; export r; \
34426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34427 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831
L
34428 echo "Checking multilib configuration for libmpx..."; \
34429 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34430 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34431 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34432 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34433 else \
1b6c0831
L
34434 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34435 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34436 fi; \
34437 else \
1b6c0831 34438 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34439 fi; \
1b6c0831
L
34440 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34441 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34442 \
34443 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34444 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34445 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34446 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx ; \
34447 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34448 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34449 case $(srcdir) in \
34450 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34451 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34452 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34453 esac; \
1b6c0831
L
34454 module_srcdir=libmpx; \
34455 $(SHELL) $$s/$$module_srcdir/configure \
34456 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34457 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34458 --target=${target_alias} \
34459 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34460 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 34461@endif target-libmpx-bootstrap
5eb08693 34462
1b6c0831
L
34463.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
34464maybe-configure-stage4-target-libmpx:
34465@if target-libmpx-bootstrap
34466maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
34467configure-stage4-target-libmpx:
5eb08693 34468 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 34469 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34470 @r=`${PWD_COMMAND}`; export r; \
34471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34472 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831
L
34473 echo "Checking multilib configuration for libmpx..."; \
34474 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34475 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34476 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34477 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34478 else \
1b6c0831
L
34479 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34480 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34481 fi; \
34482 else \
1b6c0831 34483 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34484 fi; \
1b6c0831
L
34485 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34486 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34487 \
34488 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34489 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34490 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34491 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx ; \
34492 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34493 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34494 case $(srcdir) in \
34495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34496 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34498 esac; \
1b6c0831
L
34499 module_srcdir=libmpx; \
34500 $(SHELL) $$s/$$module_srcdir/configure \
34501 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34502 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34503 --target=${target_alias} \
34504 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34505 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 34506@endif target-libmpx-bootstrap
5eb08693 34507
1b6c0831
L
34508.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
34509maybe-configure-stageprofile-target-libmpx:
34510@if target-libmpx-bootstrap
34511maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
34512configure-stageprofile-target-libmpx:
5eb08693 34513 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 34514 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34515 @r=`${PWD_COMMAND}`; export r; \
34516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34517 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831
L
34518 echo "Checking multilib configuration for libmpx..."; \
34519 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34520 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34521 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34522 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34523 else \
1b6c0831
L
34524 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34525 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34526 fi; \
34527 else \
1b6c0831 34528 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34529 fi; \
1b6c0831
L
34530 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34531 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34532 \
34533 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34534 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34535 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34536 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx ; \
34537 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34538 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34539 case $(srcdir) in \
34540 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34541 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34542 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34543 esac; \
1b6c0831
L
34544 module_srcdir=libmpx; \
34545 $(SHELL) $$s/$$module_srcdir/configure \
34546 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34547 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34548 --target=${target_alias} \
34549 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34550 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 34551@endif target-libmpx-bootstrap
5eb08693 34552
1b6c0831
L
34553.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
34554maybe-configure-stagefeedback-target-libmpx:
34555@if target-libmpx-bootstrap
34556maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
34557configure-stagefeedback-target-libmpx:
5eb08693 34558 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 34559 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34560 @r=`${PWD_COMMAND}`; export r; \
34561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34562 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831
L
34563 echo "Checking multilib configuration for libmpx..."; \
34564 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34565 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34566 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34567 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34568 else \
1b6c0831
L
34569 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34570 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34571 fi; \
34572 else \
1b6c0831 34573 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34574 fi; \
1b6c0831
L
34575 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34576 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34577 \
34578 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34579 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34580 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34581 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx ; \
34582 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34583 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34584 case $(srcdir) in \
34585 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34586 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34587 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34588 esac; \
1b6c0831
L
34589 module_srcdir=libmpx; \
34590 $(SHELL) $$s/$$module_srcdir/configure \
34591 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34592 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34593 --target=${target_alias} \
34594 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34595 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 34596@endif target-libmpx-bootstrap
5eb08693
L
34597
34598
34599
5286fdef
L
34600
34601
1b6c0831
L
34602.PHONY: all-target-libmpx maybe-all-target-libmpx
34603maybe-all-target-libmpx:
5286fdef 34604@if gcc-bootstrap
1b6c0831 34605all-target-libmpx: stage_current
5286fdef 34606@endif gcc-bootstrap
1b6c0831
L
34607@if target-libmpx
34608TARGET-target-libmpx=all
34609maybe-all-target-libmpx: all-target-libmpx
34610all-target-libmpx: configure-target-libmpx
5286fdef
L
34611 @r=`${PWD_COMMAND}`; export r; \
34612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34613 $(NORMAL_TARGET_EXPORTS) \
34614 (cd $(TARGET_SUBDIR)/libmpx && \
34615 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
34616 $(TARGET-target-libmpx))
34617@endif target-libmpx
5286fdef
L
34618
34619
34620
1b6c0831
L
34621.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
34622.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
34623maybe-all-stage1-target-libmpx:
34624maybe-clean-stage1-target-libmpx:
34625@if target-libmpx-bootstrap
34626maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
34627all-stage1: all-stage1-target-libmpx
34628TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
34629all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
34630 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34631 @r=`${PWD_COMMAND}`; export r; \
34632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34633 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
34634 $(NORMAL_TARGET_EXPORTS) \
34635 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34636 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34637 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34638 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34639 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34640 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34641 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34642 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34643 $(EXTRA_TARGET_FLAGS) \
5eb08693
L
34644 \
34645 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 34646 $(TARGET-stage1-target-libmpx)
5eb08693 34647
1b6c0831
L
34648maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
34649clean-stage1: clean-stage1-target-libmpx
34650clean-stage1-target-libmpx:
5eb08693 34651 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 34652 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34653 else \
1b6c0831 34654 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
34655 $(MAKE) stage1-start; \
34656 fi; \
1b6c0831
L
34657 cd $(TARGET_SUBDIR)/libmpx && \
34658 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 34659 clean
1b6c0831
L
34660@endif target-libmpx-bootstrap
34661
34662
34663.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
34664.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
34665maybe-all-stage2-target-libmpx:
34666maybe-clean-stage2-target-libmpx:
34667@if target-libmpx-bootstrap
34668maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
34669all-stage2: all-stage2-target-libmpx
34670TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
34671all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
34672 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34673 @r=`${PWD_COMMAND}`; export r; \
34674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34675 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 34676 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34677 \
1b6c0831 34678 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34679 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34680 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34681 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34682 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34683 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34684 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34685 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34686 $(EXTRA_TARGET_FLAGS) \
5eb08693 34687 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 34688 $(TARGET-stage2-target-libmpx)
5eb08693 34689
1b6c0831
L
34690maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
34691clean-stage2: clean-stage2-target-libmpx
34692clean-stage2-target-libmpx:
5eb08693 34693 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 34694 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34695 else \
1b6c0831 34696 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
34697 $(MAKE) stage2-start; \
34698 fi; \
1b6c0831
L
34699 cd $(TARGET_SUBDIR)/libmpx && \
34700 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34701@endif target-libmpx-bootstrap
34702
34703
34704.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
34705.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
34706maybe-all-stage3-target-libmpx:
34707maybe-clean-stage3-target-libmpx:
34708@if target-libmpx-bootstrap
34709maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
34710all-stage3: all-stage3-target-libmpx
34711TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
34712all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
34713 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34714 @r=`${PWD_COMMAND}`; export r; \
34715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34716 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 34717 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34718 \
1b6c0831 34719 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34720 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34721 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34722 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34723 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34724 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34725 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34726 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34727 $(EXTRA_TARGET_FLAGS) \
5eb08693 34728 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 34729 $(TARGET-stage3-target-libmpx)
5eb08693 34730
1b6c0831
L
34731maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
34732clean-stage3: clean-stage3-target-libmpx
34733clean-stage3-target-libmpx:
5eb08693 34734 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 34735 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34736 else \
1b6c0831 34737 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
34738 $(MAKE) stage3-start; \
34739 fi; \
1b6c0831
L
34740 cd $(TARGET_SUBDIR)/libmpx && \
34741 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34742@endif target-libmpx-bootstrap
34743
34744
34745.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
34746.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
34747maybe-all-stage4-target-libmpx:
34748maybe-clean-stage4-target-libmpx:
34749@if target-libmpx-bootstrap
34750maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
34751all-stage4: all-stage4-target-libmpx
34752TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
34753all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
34754 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34755 @r=`${PWD_COMMAND}`; export r; \
34756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34757 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 34758 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34759 \
1b6c0831 34760 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34761 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34762 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34763 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34764 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34765 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34766 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34767 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34768 $(EXTRA_TARGET_FLAGS) \
5eb08693 34769 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 34770 $(TARGET-stage4-target-libmpx)
5eb08693 34771
1b6c0831
L
34772maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
34773clean-stage4: clean-stage4-target-libmpx
34774clean-stage4-target-libmpx:
5eb08693 34775 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 34776 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34777 else \
1b6c0831 34778 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
34779 $(MAKE) stage4-start; \
34780 fi; \
1b6c0831
L
34781 cd $(TARGET_SUBDIR)/libmpx && \
34782 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34783@endif target-libmpx-bootstrap
34784
34785
34786.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
34787.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
34788maybe-all-stageprofile-target-libmpx:
34789maybe-clean-stageprofile-target-libmpx:
34790@if target-libmpx-bootstrap
34791maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
34792all-stageprofile: all-stageprofile-target-libmpx
34793TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
34794all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
34795 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34796 @r=`${PWD_COMMAND}`; export r; \
34797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34798 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 34799 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34800 \
1b6c0831 34801 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34802 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34803 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34804 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34805 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34806 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34807 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34808 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34809 $(EXTRA_TARGET_FLAGS) \
5eb08693 34810 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 34811 $(TARGET-stageprofile-target-libmpx)
5eb08693 34812
1b6c0831
L
34813maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
34814clean-stageprofile: clean-stageprofile-target-libmpx
34815clean-stageprofile-target-libmpx:
5eb08693 34816 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 34817 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34818 else \
1b6c0831 34819 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
34820 $(MAKE) stageprofile-start; \
34821 fi; \
1b6c0831
L
34822 cd $(TARGET_SUBDIR)/libmpx && \
34823 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34824@endif target-libmpx-bootstrap
34825
34826
34827.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
34828.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
34829maybe-all-stagefeedback-target-libmpx:
34830maybe-clean-stagefeedback-target-libmpx:
34831@if target-libmpx-bootstrap
34832maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
34833all-stagefeedback: all-stagefeedback-target-libmpx
34834TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
34835all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
34836 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34837 @r=`${PWD_COMMAND}`; export r; \
34838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34839 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 34840 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34841 \
1b6c0831 34842 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34843 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34844 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34845 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34846 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34847 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34848 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34849 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34850 $(EXTRA_TARGET_FLAGS) \
5eb08693 34851 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 34852 $(TARGET-stagefeedback-target-libmpx)
5eb08693 34853
1b6c0831
L
34854maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
34855clean-stagefeedback: clean-stagefeedback-target-libmpx
34856clean-stagefeedback-target-libmpx:
5eb08693 34857 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 34858 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34859 else \
1b6c0831 34860 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
34861 $(MAKE) stagefeedback-start; \
34862 fi; \
1b6c0831
L
34863 cd $(TARGET_SUBDIR)/libmpx && \
34864 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34865@endif target-libmpx-bootstrap
5eb08693
L
34866
34867
34868
34869
5286fdef
L
34870
34871
1b6c0831
L
34872.PHONY: check-target-libmpx maybe-check-target-libmpx
34873maybe-check-target-libmpx:
34874@if target-libmpx
34875maybe-check-target-libmpx: check-target-libmpx
5286fdef 34876
1b6c0831 34877check-target-libmpx:
5286fdef
L
34878 @: $(MAKE); $(unstage)
34879 @r=`${PWD_COMMAND}`; export r; \
34880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34881 $(NORMAL_TARGET_EXPORTS) \
34882 (cd $(TARGET_SUBDIR)/libmpx && \
34883 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 34884
1b6c0831 34885@endif target-libmpx
5286fdef 34886
1b6c0831
L
34887.PHONY: install-target-libmpx maybe-install-target-libmpx
34888maybe-install-target-libmpx:
34889@if target-libmpx
34890maybe-install-target-libmpx: install-target-libmpx
5286fdef 34891
1b6c0831 34892install-target-libmpx: installdirs
5286fdef
L
34893 @: $(MAKE); $(unstage)
34894 @r=`${PWD_COMMAND}`; export r; \
34895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34896 $(NORMAL_TARGET_EXPORTS) \
34897 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34898 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
34899
1b6c0831 34900@endif target-libmpx
5286fdef 34901
1b6c0831
L
34902.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
34903maybe-install-strip-target-libmpx:
34904@if target-libmpx
34905maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 34906
1b6c0831 34907install-strip-target-libmpx: installdirs
5286fdef
L
34908 @: $(MAKE); $(unstage)
34909 @r=`${PWD_COMMAND}`; export r; \
34910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34911 $(NORMAL_TARGET_EXPORTS) \
34912 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34913 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34914
1b6c0831 34915@endif target-libmpx
5286fdef
L
34916
34917# Other targets (info, dvi, pdf, etc.)
34918
1b6c0831
L
34919.PHONY: maybe-info-target-libmpx info-target-libmpx
34920maybe-info-target-libmpx:
34921@if target-libmpx
34922maybe-info-target-libmpx: info-target-libmpx
5286fdef 34923
1b6c0831
L
34924info-target-libmpx: \
34925 configure-target-libmpx
5286fdef 34926 @: $(MAKE); $(unstage)
1b6c0831 34927 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34928 r=`${PWD_COMMAND}`; export r; \
34929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34930 $(NORMAL_TARGET_EXPORTS) \
34931 echo "Doing info in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34932 for flag in $(EXTRA_TARGET_FLAGS); do \
34933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34934 done; \
1b6c0831 34935 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34938 "RANLIB=$${RANLIB}" \
34939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34940 info) \
34941 || exit 1
34942
1b6c0831 34943@endif target-libmpx
5286fdef 34944
1b6c0831
L
34945.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
34946maybe-dvi-target-libmpx:
34947@if target-libmpx
34948maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 34949
1b6c0831
L
34950dvi-target-libmpx: \
34951 configure-target-libmpx
5286fdef 34952 @: $(MAKE); $(unstage)
1b6c0831 34953 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34954 r=`${PWD_COMMAND}`; export r; \
34955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34956 $(NORMAL_TARGET_EXPORTS) \
34957 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34958 for flag in $(EXTRA_TARGET_FLAGS); do \
34959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34960 done; \
1b6c0831 34961 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34964 "RANLIB=$${RANLIB}" \
34965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34966 dvi) \
34967 || exit 1
34968
1b6c0831 34969@endif target-libmpx
5286fdef 34970
1b6c0831
L
34971.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
34972maybe-pdf-target-libmpx:
34973@if target-libmpx
34974maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 34975
1b6c0831
L
34976pdf-target-libmpx: \
34977 configure-target-libmpx
5286fdef 34978 @: $(MAKE); $(unstage)
1b6c0831 34979 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34980 r=`${PWD_COMMAND}`; export r; \
34981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34982 $(NORMAL_TARGET_EXPORTS) \
34983 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34984 for flag in $(EXTRA_TARGET_FLAGS); do \
34985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34986 done; \
1b6c0831 34987 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34990 "RANLIB=$${RANLIB}" \
34991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34992 pdf) \
34993 || exit 1
34994
1b6c0831 34995@endif target-libmpx
5286fdef 34996
1b6c0831
L
34997.PHONY: maybe-html-target-libmpx html-target-libmpx
34998maybe-html-target-libmpx:
34999@if target-libmpx
35000maybe-html-target-libmpx: html-target-libmpx
5286fdef 35001
1b6c0831
L
35002html-target-libmpx: \
35003 configure-target-libmpx
5286fdef 35004 @: $(MAKE); $(unstage)
1b6c0831 35005 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35006 r=`${PWD_COMMAND}`; export r; \
35007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35008 $(NORMAL_TARGET_EXPORTS) \
35009 echo "Doing html in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35010 for flag in $(EXTRA_TARGET_FLAGS); do \
35011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35012 done; \
1b6c0831 35013 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35016 "RANLIB=$${RANLIB}" \
35017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35018 html) \
35019 || exit 1
35020
1b6c0831 35021@endif target-libmpx
5286fdef 35022
1b6c0831
L
35023.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
35024maybe-TAGS-target-libmpx:
35025@if target-libmpx
35026maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 35027
1b6c0831
L
35028TAGS-target-libmpx: \
35029 configure-target-libmpx
5286fdef 35030 @: $(MAKE); $(unstage)
1b6c0831 35031 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35032 r=`${PWD_COMMAND}`; export r; \
35033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35034 $(NORMAL_TARGET_EXPORTS) \
35035 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35036 for flag in $(EXTRA_TARGET_FLAGS); do \
35037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35038 done; \
1b6c0831 35039 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35042 "RANLIB=$${RANLIB}" \
35043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35044 TAGS) \
35045 || exit 1
35046
1b6c0831 35047@endif target-libmpx
5286fdef 35048
1b6c0831
L
35049.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
35050maybe-install-info-target-libmpx:
35051@if target-libmpx
35052maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 35053
1b6c0831
L
35054install-info-target-libmpx: \
35055 configure-target-libmpx \
35056 info-target-libmpx
5286fdef 35057 @: $(MAKE); $(unstage)
1b6c0831 35058 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35059 r=`${PWD_COMMAND}`; export r; \
35060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35061 $(NORMAL_TARGET_EXPORTS) \
35062 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35063 for flag in $(EXTRA_TARGET_FLAGS); do \
35064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35065 done; \
1b6c0831 35066 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35069 "RANLIB=$${RANLIB}" \
35070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35071 install-info) \
35072 || exit 1
35073
1b6c0831 35074@endif target-libmpx
5286fdef 35075
1b6c0831
L
35076.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
35077maybe-install-pdf-target-libmpx:
35078@if target-libmpx
35079maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 35080
1b6c0831
L
35081install-pdf-target-libmpx: \
35082 configure-target-libmpx \
35083 pdf-target-libmpx
5286fdef 35084 @: $(MAKE); $(unstage)
1b6c0831 35085 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35086 r=`${PWD_COMMAND}`; export r; \
35087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35088 $(NORMAL_TARGET_EXPORTS) \
35089 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35090 for flag in $(EXTRA_TARGET_FLAGS); do \
35091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35092 done; \
1b6c0831 35093 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35096 "RANLIB=$${RANLIB}" \
35097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35098 install-pdf) \
35099 || exit 1
35100
1b6c0831 35101@endif target-libmpx
5286fdef 35102
1b6c0831
L
35103.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
35104maybe-install-html-target-libmpx:
35105@if target-libmpx
35106maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 35107
1b6c0831
L
35108install-html-target-libmpx: \
35109 configure-target-libmpx \
35110 html-target-libmpx
5286fdef 35111 @: $(MAKE); $(unstage)
1b6c0831 35112 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35113 r=`${PWD_COMMAND}`; export r; \
35114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35115 $(NORMAL_TARGET_EXPORTS) \
35116 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35117 for flag in $(EXTRA_TARGET_FLAGS); do \
35118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35119 done; \
1b6c0831 35120 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35123 "RANLIB=$${RANLIB}" \
35124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35125 install-html) \
35126 || exit 1
35127
1b6c0831 35128@endif target-libmpx
5286fdef 35129
1b6c0831
L
35130.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
35131maybe-installcheck-target-libmpx:
35132@if target-libmpx
35133maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 35134
1b6c0831
L
35135installcheck-target-libmpx: \
35136 configure-target-libmpx
5286fdef 35137 @: $(MAKE); $(unstage)
1b6c0831 35138 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35139 r=`${PWD_COMMAND}`; export r; \
35140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35141 $(NORMAL_TARGET_EXPORTS) \
35142 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35143 for flag in $(EXTRA_TARGET_FLAGS); do \
35144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35145 done; \
1b6c0831 35146 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35149 "RANLIB=$${RANLIB}" \
35150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35151 installcheck) \
35152 || exit 1
35153
1b6c0831 35154@endif target-libmpx
5286fdef 35155
1b6c0831
L
35156.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
35157maybe-mostlyclean-target-libmpx:
35158@if target-libmpx
35159maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 35160
1b6c0831 35161mostlyclean-target-libmpx:
5286fdef 35162 @: $(MAKE); $(unstage)
1b6c0831 35163 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35164 r=`${PWD_COMMAND}`; export r; \
35165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35166 $(NORMAL_TARGET_EXPORTS) \
35167 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35168 for flag in $(EXTRA_TARGET_FLAGS); do \
35169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35170 done; \
1b6c0831 35171 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35174 "RANLIB=$${RANLIB}" \
35175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35176 mostlyclean) \
35177 || exit 1
35178
1b6c0831 35179@endif target-libmpx
5286fdef 35180
1b6c0831
L
35181.PHONY: maybe-clean-target-libmpx clean-target-libmpx
35182maybe-clean-target-libmpx:
35183@if target-libmpx
35184maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 35185
1b6c0831 35186clean-target-libmpx:
5286fdef 35187 @: $(MAKE); $(unstage)
1b6c0831 35188 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35189 r=`${PWD_COMMAND}`; export r; \
35190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35191 $(NORMAL_TARGET_EXPORTS) \
35192 echo "Doing clean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35193 for flag in $(EXTRA_TARGET_FLAGS); do \
35194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35195 done; \
1b6c0831 35196 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35199 "RANLIB=$${RANLIB}" \
35200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35201 clean) \
35202 || exit 1
35203
1b6c0831 35204@endif target-libmpx
5286fdef 35205
1b6c0831
L
35206.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
35207maybe-distclean-target-libmpx:
35208@if target-libmpx
35209maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 35210
1b6c0831 35211distclean-target-libmpx:
5286fdef 35212 @: $(MAKE); $(unstage)
1b6c0831 35213 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35214 r=`${PWD_COMMAND}`; export r; \
35215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35216 $(NORMAL_TARGET_EXPORTS) \
35217 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35218 for flag in $(EXTRA_TARGET_FLAGS); do \
35219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35220 done; \
1b6c0831 35221 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35224 "RANLIB=$${RANLIB}" \
35225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35226 distclean) \
35227 || exit 1
35228
1b6c0831 35229@endif target-libmpx
5286fdef 35230
1b6c0831
L
35231.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
35232maybe-maintainer-clean-target-libmpx:
35233@if target-libmpx
35234maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 35235
1b6c0831 35236maintainer-clean-target-libmpx:
5286fdef 35237 @: $(MAKE); $(unstage)
1b6c0831 35238 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35239 r=`${PWD_COMMAND}`; export r; \
35240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35241 $(NORMAL_TARGET_EXPORTS) \
35242 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35243 for flag in $(EXTRA_TARGET_FLAGS); do \
35244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35245 done; \
1b6c0831 35246 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35249 "RANLIB=$${RANLIB}" \
35250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35251 maintainer-clean) \
35252 || exit 1
35253
1b6c0831 35254@endif target-libmpx
5286fdef
L
35255
35256
35257
35258
35259
95e43135
JBG
35260.PHONY: configure-target-libvtv maybe-configure-target-libvtv
35261maybe-configure-target-libvtv:
35262@if gcc-bootstrap
35263configure-target-libvtv: stage_current
35264@endif gcc-bootstrap
35265@if target-libvtv
35266maybe-configure-target-libvtv: configure-target-libvtv
35267configure-target-libvtv:
35268 @r=`${PWD_COMMAND}`; export r; \
35269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35270 echo "Checking multilib configuration for libvtv..."; \
35271 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35272 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35273 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35274 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35275 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35276 else \
35277 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35278 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35279 fi; \
35280 else \
35281 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35282 fi; \
35283 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35284 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35285 $(RAW_CXX_TARGET_EXPORTS) \
35286 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
35287 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
35288 case $(srcdir) in \
35289 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35290 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35291 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35292 esac; \
1b6c0831 35293 module_srcdir=libvtv; \
95e43135 35294 rm -f no-such-file || : ; \
1b6c0831
L
35295 CONFIG_SITE=no-such-file $(SHELL) \
35296 $$s/$$module_srcdir/configure \
35297 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35298 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35299 --target=${target_alias} \
95e43135
JBG
35300 || exit 1
35301@endif target-libvtv
35302
35303
35304
35305.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
35306maybe-configure-stage1-target-libvtv:
35307@if target-libvtv-bootstrap
35308maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
35309configure-stage1-target-libvtv:
35310 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35311 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35312 @r=`${PWD_COMMAND}`; export r; \
35313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35314 TFLAGS="$(STAGE1_TFLAGS)"; \
35315 echo "Checking multilib configuration for libvtv..."; \
35316 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35317 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35318 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35319 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35320 else \
35321 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35322 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35323 fi; \
35324 else \
35325 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35326 fi; \
35327 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35328 $(RAW_CXX_TARGET_EXPORTS) \
35329 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35330 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35331 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35332 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv ; \
35333 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35334 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35335 case $(srcdir) in \
35336 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35337 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35338 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35339 esac; \
1b6c0831
L
35340 module_srcdir=libvtv; \
35341 $(SHELL) $$s/$$module_srcdir/configure \
35342 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35343 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35344 --target=${target_alias} \
35345 \
95e43135
JBG
35346 $(STAGE1_CONFIGURE_FLAGS)
35347@endif target-libvtv-bootstrap
35348
35349.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
35350maybe-configure-stage2-target-libvtv:
35351@if target-libvtv-bootstrap
35352maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
35353configure-stage2-target-libvtv:
35354 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35355 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35356 @r=`${PWD_COMMAND}`; export r; \
35357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35358 TFLAGS="$(STAGE2_TFLAGS)"; \
35359 echo "Checking multilib configuration for libvtv..."; \
35360 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35361 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35362 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35363 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35364 else \
35365 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35366 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35367 fi; \
35368 else \
35369 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35370 fi; \
35371 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35372 $(RAW_CXX_TARGET_EXPORTS) \
35373 \
35374 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35375 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35376 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35377 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv ; \
35378 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35379 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35380 case $(srcdir) in \
35381 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35382 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35383 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35384 esac; \
1b6c0831
L
35385 module_srcdir=libvtv; \
35386 $(SHELL) $$s/$$module_srcdir/configure \
35387 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35388 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35389 --target=${target_alias} \
35390 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35391 $(STAGE2_CONFIGURE_FLAGS)
35392@endif target-libvtv-bootstrap
35393
35394.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
35395maybe-configure-stage3-target-libvtv:
35396@if target-libvtv-bootstrap
35397maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
35398configure-stage3-target-libvtv:
35399 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35400 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35401 @r=`${PWD_COMMAND}`; export r; \
35402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35403 TFLAGS="$(STAGE3_TFLAGS)"; \
35404 echo "Checking multilib configuration for libvtv..."; \
35405 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35406 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35407 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35408 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35409 else \
35410 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35411 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35412 fi; \
35413 else \
35414 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35415 fi; \
35416 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35417 $(RAW_CXX_TARGET_EXPORTS) \
35418 \
35419 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35420 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35421 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35422 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv ; \
35423 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35424 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35425 case $(srcdir) in \
35426 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35427 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35428 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35429 esac; \
1b6c0831
L
35430 module_srcdir=libvtv; \
35431 $(SHELL) $$s/$$module_srcdir/configure \
35432 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35433 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35434 --target=${target_alias} \
35435 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35436 $(STAGE3_CONFIGURE_FLAGS)
35437@endif target-libvtv-bootstrap
35438
35439.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
35440maybe-configure-stage4-target-libvtv:
35441@if target-libvtv-bootstrap
35442maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
35443configure-stage4-target-libvtv:
35444 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35445 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35446 @r=`${PWD_COMMAND}`; export r; \
35447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35448 TFLAGS="$(STAGE4_TFLAGS)"; \
35449 echo "Checking multilib configuration for libvtv..."; \
35450 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35451 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35452 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35453 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35454 else \
35455 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35456 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35457 fi; \
35458 else \
35459 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35460 fi; \
35461 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35462 $(RAW_CXX_TARGET_EXPORTS) \
35463 \
35464 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35465 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35466 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35467 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv ; \
35468 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35469 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35470 case $(srcdir) in \
35471 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35472 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35473 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35474 esac; \
1b6c0831
L
35475 module_srcdir=libvtv; \
35476 $(SHELL) $$s/$$module_srcdir/configure \
35477 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35478 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35479 --target=${target_alias} \
35480 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35481 $(STAGE4_CONFIGURE_FLAGS)
35482@endif target-libvtv-bootstrap
35483
35484.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
35485maybe-configure-stageprofile-target-libvtv:
35486@if target-libvtv-bootstrap
35487maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35488configure-stageprofile-target-libvtv:
35489 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35490 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35491 @r=`${PWD_COMMAND}`; export r; \
35492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35493 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35494 echo "Checking multilib configuration for libvtv..."; \
35495 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35496 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35497 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35498 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35499 else \
35500 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35501 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35502 fi; \
35503 else \
35504 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35505 fi; \
35506 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35507 $(RAW_CXX_TARGET_EXPORTS) \
35508 \
35509 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35510 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35511 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35512 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv ; \
35513 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35514 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35515 case $(srcdir) in \
35516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35517 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35519 esac; \
1b6c0831
L
35520 module_srcdir=libvtv; \
35521 $(SHELL) $$s/$$module_srcdir/configure \
35522 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35523 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35524 --target=${target_alias} \
35525 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35526 $(STAGEprofile_CONFIGURE_FLAGS)
35527@endif target-libvtv-bootstrap
35528
35529.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
35530maybe-configure-stagefeedback-target-libvtv:
35531@if target-libvtv-bootstrap
35532maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35533configure-stagefeedback-target-libvtv:
35534 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35535 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35536 @r=`${PWD_COMMAND}`; export r; \
35537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35538 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35539 echo "Checking multilib configuration for libvtv..."; \
35540 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35541 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35542 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35543 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35544 else \
35545 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35546 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35547 fi; \
35548 else \
35549 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35550 fi; \
35551 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35552 $(RAW_CXX_TARGET_EXPORTS) \
35553 \
35554 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35555 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35556 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35557 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv ; \
35558 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35559 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35560 case $(srcdir) in \
35561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35562 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35564 esac; \
1b6c0831
L
35565 module_srcdir=libvtv; \
35566 $(SHELL) $$s/$$module_srcdir/configure \
35567 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35568 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35569 --target=${target_alias} \
35570 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35571 $(STAGEfeedback_CONFIGURE_FLAGS)
35572@endif target-libvtv-bootstrap
35573
35574
35575
35576
35577
35578.PHONY: all-target-libvtv maybe-all-target-libvtv
35579maybe-all-target-libvtv:
35580@if gcc-bootstrap
35581all-target-libvtv: stage_current
35582@endif gcc-bootstrap
35583@if target-libvtv
35584TARGET-target-libvtv=all
35585maybe-all-target-libvtv: all-target-libvtv
35586all-target-libvtv: configure-target-libvtv
35587 @r=`${PWD_COMMAND}`; export r; \
35588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35589 $(RAW_CXX_TARGET_EXPORTS) \
35590 (cd $(TARGET_SUBDIR)/libvtv && \
35591 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35592 $(TARGET-target-libvtv))
35593@endif target-libvtv
35594
35595
35596
35597.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
35598.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
35599maybe-all-stage1-target-libvtv:
35600maybe-clean-stage1-target-libvtv:
35601@if target-libvtv-bootstrap
35602maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
35603all-stage1: all-stage1-target-libvtv
35604TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
35605all-stage1-target-libvtv: configure-stage1-target-libvtv
35606 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35607 @r=`${PWD_COMMAND}`; export r; \
35608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35609 TFLAGS="$(STAGE1_TFLAGS)"; \
35610 $(RAW_CXX_TARGET_EXPORTS) \
35611 cd $(TARGET_SUBDIR)/libvtv && \
35612 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35613 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35614 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35615 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35616 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35617 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35618 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35619 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35620 \
35621 TFLAGS="$(STAGE1_TFLAGS)" \
35622 $(TARGET-stage1-target-libvtv)
35623
35624maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
35625clean-stage1: clean-stage1-target-libvtv
35626clean-stage1-target-libvtv:
35627 @if [ $(current_stage) = stage1 ]; then \
35628 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35629 else \
35630 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
35631 $(MAKE) stage1-start; \
35632 fi; \
35633 cd $(TARGET_SUBDIR)/libvtv && \
35634 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35635 clean
35636@endif target-libvtv-bootstrap
35637
35638
35639.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
35640.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
35641maybe-all-stage2-target-libvtv:
35642maybe-clean-stage2-target-libvtv:
35643@if target-libvtv-bootstrap
35644maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
35645all-stage2: all-stage2-target-libvtv
35646TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
35647all-stage2-target-libvtv: configure-stage2-target-libvtv
35648 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35649 @r=`${PWD_COMMAND}`; export r; \
35650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35651 TFLAGS="$(STAGE2_TFLAGS)"; \
35652 $(RAW_CXX_TARGET_EXPORTS) \
35653 \
35654 cd $(TARGET_SUBDIR)/libvtv && \
35655 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35656 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35657 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35658 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35659 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35660 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35661 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35662 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35663 TFLAGS="$(STAGE2_TFLAGS)" \
35664 $(TARGET-stage2-target-libvtv)
35665
35666maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
35667clean-stage2: clean-stage2-target-libvtv
35668clean-stage2-target-libvtv:
35669 @if [ $(current_stage) = stage2 ]; then \
35670 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35671 else \
35672 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
35673 $(MAKE) stage2-start; \
35674 fi; \
35675 cd $(TARGET_SUBDIR)/libvtv && \
35676 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35677@endif target-libvtv-bootstrap
35678
35679
35680.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
35681.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
35682maybe-all-stage3-target-libvtv:
35683maybe-clean-stage3-target-libvtv:
35684@if target-libvtv-bootstrap
35685maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
35686all-stage3: all-stage3-target-libvtv
35687TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
35688all-stage3-target-libvtv: configure-stage3-target-libvtv
35689 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35690 @r=`${PWD_COMMAND}`; export r; \
35691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35692 TFLAGS="$(STAGE3_TFLAGS)"; \
35693 $(RAW_CXX_TARGET_EXPORTS) \
35694 \
35695 cd $(TARGET_SUBDIR)/libvtv && \
35696 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35697 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35698 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35699 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35700 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35701 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35702 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35703 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35704 TFLAGS="$(STAGE3_TFLAGS)" \
35705 $(TARGET-stage3-target-libvtv)
35706
35707maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
35708clean-stage3: clean-stage3-target-libvtv
35709clean-stage3-target-libvtv:
35710 @if [ $(current_stage) = stage3 ]; then \
35711 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35712 else \
35713 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
35714 $(MAKE) stage3-start; \
35715 fi; \
35716 cd $(TARGET_SUBDIR)/libvtv && \
35717 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35718@endif target-libvtv-bootstrap
35719
35720
35721.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
35722.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
35723maybe-all-stage4-target-libvtv:
35724maybe-clean-stage4-target-libvtv:
35725@if target-libvtv-bootstrap
35726maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
35727all-stage4: all-stage4-target-libvtv
35728TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
35729all-stage4-target-libvtv: configure-stage4-target-libvtv
35730 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35731 @r=`${PWD_COMMAND}`; export r; \
35732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35733 TFLAGS="$(STAGE4_TFLAGS)"; \
35734 $(RAW_CXX_TARGET_EXPORTS) \
35735 \
35736 cd $(TARGET_SUBDIR)/libvtv && \
35737 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35738 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35739 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35740 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35741 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35742 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35743 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35744 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35745 TFLAGS="$(STAGE4_TFLAGS)" \
35746 $(TARGET-stage4-target-libvtv)
35747
35748maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
35749clean-stage4: clean-stage4-target-libvtv
35750clean-stage4-target-libvtv:
35751 @if [ $(current_stage) = stage4 ]; then \
35752 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35753 else \
35754 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
35755 $(MAKE) stage4-start; \
35756 fi; \
35757 cd $(TARGET_SUBDIR)/libvtv && \
35758 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35759@endif target-libvtv-bootstrap
35760
35761
35762.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
35763.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
35764maybe-all-stageprofile-target-libvtv:
35765maybe-clean-stageprofile-target-libvtv:
35766@if target-libvtv-bootstrap
35767maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
35768all-stageprofile: all-stageprofile-target-libvtv
35769TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
35770all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35771 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35772 @r=`${PWD_COMMAND}`; export r; \
35773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35774 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35775 $(RAW_CXX_TARGET_EXPORTS) \
35776 \
35777 cd $(TARGET_SUBDIR)/libvtv && \
35778 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35779 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35780 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35781 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35782 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35783 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35784 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35785 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35786 TFLAGS="$(STAGEprofile_TFLAGS)" \
35787 $(TARGET-stageprofile-target-libvtv)
35788
35789maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
35790clean-stageprofile: clean-stageprofile-target-libvtv
35791clean-stageprofile-target-libvtv:
35792 @if [ $(current_stage) = stageprofile ]; then \
35793 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35794 else \
35795 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
35796 $(MAKE) stageprofile-start; \
35797 fi; \
35798 cd $(TARGET_SUBDIR)/libvtv && \
35799 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35800@endif target-libvtv-bootstrap
35801
35802
35803.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
35804.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
35805maybe-all-stagefeedback-target-libvtv:
35806maybe-clean-stagefeedback-target-libvtv:
35807@if target-libvtv-bootstrap
35808maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
35809all-stagefeedback: all-stagefeedback-target-libvtv
35810TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
35811all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35812 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35813 @r=`${PWD_COMMAND}`; export r; \
35814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35815 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35816 $(RAW_CXX_TARGET_EXPORTS) \
35817 \
35818 cd $(TARGET_SUBDIR)/libvtv && \
35819 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35820 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35821 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35822 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35823 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35824 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35825 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35826 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35827 TFLAGS="$(STAGEfeedback_TFLAGS)" \
35828 $(TARGET-stagefeedback-target-libvtv)
35829
35830maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
35831clean-stagefeedback: clean-stagefeedback-target-libvtv
35832clean-stagefeedback-target-libvtv:
35833 @if [ $(current_stage) = stagefeedback ]; then \
35834 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35835 else \
35836 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
35837 $(MAKE) stagefeedback-start; \
35838 fi; \
35839 cd $(TARGET_SUBDIR)/libvtv && \
35840 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35841@endif target-libvtv-bootstrap
35842
35843
35844
35845
35846
35847
35848.PHONY: check-target-libvtv maybe-check-target-libvtv
35849maybe-check-target-libvtv:
35850@if target-libvtv
35851maybe-check-target-libvtv: check-target-libvtv
35852
35853check-target-libvtv:
35854 @: $(MAKE); $(unstage)
35855 @r=`${PWD_COMMAND}`; export r; \
35856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35857 $(RAW_CXX_TARGET_EXPORTS) \
35858 (cd $(TARGET_SUBDIR)/libvtv && \
35859 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
35860
35861@endif target-libvtv
35862
35863.PHONY: install-target-libvtv maybe-install-target-libvtv
35864maybe-install-target-libvtv:
35865@if target-libvtv
35866maybe-install-target-libvtv: install-target-libvtv
35867
35868install-target-libvtv: installdirs
35869 @: $(MAKE); $(unstage)
35870 @r=`${PWD_COMMAND}`; export r; \
35871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35872 $(RAW_CXX_TARGET_EXPORTS) \
35873 (cd $(TARGET_SUBDIR)/libvtv && \
35874 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35875
35876@endif target-libvtv
35877
35878.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
35879maybe-install-strip-target-libvtv:
35880@if target-libvtv
35881maybe-install-strip-target-libvtv: install-strip-target-libvtv
35882
35883install-strip-target-libvtv: installdirs
35884 @: $(MAKE); $(unstage)
35885 @r=`${PWD_COMMAND}`; export r; \
35886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35887 $(RAW_CXX_TARGET_EXPORTS) \
35888 (cd $(TARGET_SUBDIR)/libvtv && \
35889 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35890
35891@endif target-libvtv
35892
35893# Other targets (info, dvi, pdf, etc.)
35894
35895.PHONY: maybe-info-target-libvtv info-target-libvtv
35896maybe-info-target-libvtv:
35897@if target-libvtv
35898maybe-info-target-libvtv: info-target-libvtv
35899
35900info-target-libvtv: \
35901 configure-target-libvtv
35902 @: $(MAKE); $(unstage)
35903 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35904 r=`${PWD_COMMAND}`; export r; \
35905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35906 $(RAW_CXX_TARGET_EXPORTS) \
35907 echo "Doing info in $(TARGET_SUBDIR)/libvtv" ; \
35908 for flag in $(EXTRA_TARGET_FLAGS); do \
35909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35910 done; \
35911 (cd $(TARGET_SUBDIR)/libvtv && \
35912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35914 "RANLIB=$${RANLIB}" \
35915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35916 info) \
35917 || exit 1
35918
35919@endif target-libvtv
35920
35921.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
35922maybe-dvi-target-libvtv:
35923@if target-libvtv
35924maybe-dvi-target-libvtv: dvi-target-libvtv
35925
35926dvi-target-libvtv: \
35927 configure-target-libvtv
35928 @: $(MAKE); $(unstage)
35929 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35930 r=`${PWD_COMMAND}`; export r; \
35931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35932 $(RAW_CXX_TARGET_EXPORTS) \
35933 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv" ; \
35934 for flag in $(EXTRA_TARGET_FLAGS); do \
35935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35936 done; \
35937 (cd $(TARGET_SUBDIR)/libvtv && \
35938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35940 "RANLIB=$${RANLIB}" \
35941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35942 dvi) \
35943 || exit 1
35944
35945@endif target-libvtv
35946
35947.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
35948maybe-pdf-target-libvtv:
35949@if target-libvtv
35950maybe-pdf-target-libvtv: pdf-target-libvtv
35951
35952pdf-target-libvtv: \
35953 configure-target-libvtv
35954 @: $(MAKE); $(unstage)
35955 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35956 r=`${PWD_COMMAND}`; export r; \
35957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35958 $(RAW_CXX_TARGET_EXPORTS) \
35959 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv" ; \
35960 for flag in $(EXTRA_TARGET_FLAGS); do \
35961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35962 done; \
35963 (cd $(TARGET_SUBDIR)/libvtv && \
35964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35966 "RANLIB=$${RANLIB}" \
35967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35968 pdf) \
35969 || exit 1
35970
35971@endif target-libvtv
35972
35973.PHONY: maybe-html-target-libvtv html-target-libvtv
35974maybe-html-target-libvtv:
35975@if target-libvtv
35976maybe-html-target-libvtv: html-target-libvtv
35977
35978html-target-libvtv: \
35979 configure-target-libvtv
35980 @: $(MAKE); $(unstage)
35981 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35982 r=`${PWD_COMMAND}`; export r; \
35983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35984 $(RAW_CXX_TARGET_EXPORTS) \
35985 echo "Doing html in $(TARGET_SUBDIR)/libvtv" ; \
35986 for flag in $(EXTRA_TARGET_FLAGS); do \
35987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35988 done; \
35989 (cd $(TARGET_SUBDIR)/libvtv && \
35990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35992 "RANLIB=$${RANLIB}" \
35993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35994 html) \
35995 || exit 1
35996
35997@endif target-libvtv
35998
35999.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
36000maybe-TAGS-target-libvtv:
36001@if target-libvtv
36002maybe-TAGS-target-libvtv: TAGS-target-libvtv
36003
36004TAGS-target-libvtv: \
36005 configure-target-libvtv
36006 @: $(MAKE); $(unstage)
36007 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36008 r=`${PWD_COMMAND}`; export r; \
36009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36010 $(RAW_CXX_TARGET_EXPORTS) \
36011 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv" ; \
36012 for flag in $(EXTRA_TARGET_FLAGS); do \
36013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36014 done; \
36015 (cd $(TARGET_SUBDIR)/libvtv && \
36016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36018 "RANLIB=$${RANLIB}" \
36019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36020 TAGS) \
36021 || exit 1
36022
36023@endif target-libvtv
36024
36025.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
36026maybe-install-info-target-libvtv:
36027@if target-libvtv
36028maybe-install-info-target-libvtv: install-info-target-libvtv
36029
36030install-info-target-libvtv: \
36031 configure-target-libvtv \
36032 info-target-libvtv
36033 @: $(MAKE); $(unstage)
36034 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36035 r=`${PWD_COMMAND}`; export r; \
36036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36037 $(RAW_CXX_TARGET_EXPORTS) \
36038 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv" ; \
36039 for flag in $(EXTRA_TARGET_FLAGS); do \
36040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36041 done; \
36042 (cd $(TARGET_SUBDIR)/libvtv && \
36043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36045 "RANLIB=$${RANLIB}" \
36046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36047 install-info) \
36048 || exit 1
36049
36050@endif target-libvtv
36051
36052.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
36053maybe-install-pdf-target-libvtv:
36054@if target-libvtv
36055maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
36056
36057install-pdf-target-libvtv: \
36058 configure-target-libvtv \
36059 pdf-target-libvtv
36060 @: $(MAKE); $(unstage)
36061 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36062 r=`${PWD_COMMAND}`; export r; \
36063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36064 $(RAW_CXX_TARGET_EXPORTS) \
36065 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv" ; \
36066 for flag in $(EXTRA_TARGET_FLAGS); do \
36067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36068 done; \
36069 (cd $(TARGET_SUBDIR)/libvtv && \
36070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36072 "RANLIB=$${RANLIB}" \
36073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36074 install-pdf) \
36075 || exit 1
36076
36077@endif target-libvtv
36078
36079.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
36080maybe-install-html-target-libvtv:
36081@if target-libvtv
36082maybe-install-html-target-libvtv: install-html-target-libvtv
36083
36084install-html-target-libvtv: \
36085 configure-target-libvtv \
36086 html-target-libvtv
36087 @: $(MAKE); $(unstage)
36088 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36089 r=`${PWD_COMMAND}`; export r; \
36090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36091 $(RAW_CXX_TARGET_EXPORTS) \
36092 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv" ; \
36093 for flag in $(EXTRA_TARGET_FLAGS); do \
36094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36095 done; \
36096 (cd $(TARGET_SUBDIR)/libvtv && \
36097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36099 "RANLIB=$${RANLIB}" \
36100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36101 install-html) \
36102 || exit 1
36103
36104@endif target-libvtv
36105
36106.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
36107maybe-installcheck-target-libvtv:
36108@if target-libvtv
36109maybe-installcheck-target-libvtv: installcheck-target-libvtv
36110
36111installcheck-target-libvtv: \
36112 configure-target-libvtv
36113 @: $(MAKE); $(unstage)
36114 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36115 r=`${PWD_COMMAND}`; export r; \
36116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36117 $(RAW_CXX_TARGET_EXPORTS) \
36118 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv" ; \
36119 for flag in $(EXTRA_TARGET_FLAGS); do \
36120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36121 done; \
36122 (cd $(TARGET_SUBDIR)/libvtv && \
36123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36125 "RANLIB=$${RANLIB}" \
36126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36127 installcheck) \
36128 || exit 1
36129
36130@endif target-libvtv
36131
36132.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
36133maybe-mostlyclean-target-libvtv:
36134@if target-libvtv
36135maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
36136
36137mostlyclean-target-libvtv:
36138 @: $(MAKE); $(unstage)
36139 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36140 r=`${PWD_COMMAND}`; export r; \
36141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36142 $(RAW_CXX_TARGET_EXPORTS) \
36143 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv" ; \
36144 for flag in $(EXTRA_TARGET_FLAGS); do \
36145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36146 done; \
36147 (cd $(TARGET_SUBDIR)/libvtv && \
36148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36150 "RANLIB=$${RANLIB}" \
36151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36152 mostlyclean) \
36153 || exit 1
36154
36155@endif target-libvtv
36156
36157.PHONY: maybe-clean-target-libvtv clean-target-libvtv
36158maybe-clean-target-libvtv:
36159@if target-libvtv
36160maybe-clean-target-libvtv: clean-target-libvtv
36161
36162clean-target-libvtv:
36163 @: $(MAKE); $(unstage)
36164 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36165 r=`${PWD_COMMAND}`; export r; \
36166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36167 $(RAW_CXX_TARGET_EXPORTS) \
36168 echo "Doing clean in $(TARGET_SUBDIR)/libvtv" ; \
36169 for flag in $(EXTRA_TARGET_FLAGS); do \
36170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36171 done; \
36172 (cd $(TARGET_SUBDIR)/libvtv && \
36173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36175 "RANLIB=$${RANLIB}" \
36176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36177 clean) \
36178 || exit 1
36179
36180@endif target-libvtv
36181
36182.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
36183maybe-distclean-target-libvtv:
36184@if target-libvtv
36185maybe-distclean-target-libvtv: distclean-target-libvtv
36186
36187distclean-target-libvtv:
36188 @: $(MAKE); $(unstage)
36189 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36190 r=`${PWD_COMMAND}`; export r; \
36191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36192 $(RAW_CXX_TARGET_EXPORTS) \
36193 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv" ; \
36194 for flag in $(EXTRA_TARGET_FLAGS); do \
36195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36196 done; \
36197 (cd $(TARGET_SUBDIR)/libvtv && \
36198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36200 "RANLIB=$${RANLIB}" \
36201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36202 distclean) \
36203 || exit 1
36204
36205@endif target-libvtv
36206
36207.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
36208maybe-maintainer-clean-target-libvtv:
36209@if target-libvtv
36210maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
36211
36212maintainer-clean-target-libvtv:
36213 @: $(MAKE); $(unstage)
36214 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36215 r=`${PWD_COMMAND}`; export r; \
36216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36217 $(RAW_CXX_TARGET_EXPORTS) \
36218 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv" ; \
36219 for flag in $(EXTRA_TARGET_FLAGS); do \
36220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36221 done; \
36222 (cd $(TARGET_SUBDIR)/libvtv && \
36223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36225 "RANLIB=$${RANLIB}" \
36226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36227 maintainer-clean) \
36228 || exit 1
36229
36230@endif target-libvtv
36231
36232
36233
36234
36235
e78e02e6 36236.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
36237maybe-configure-target-libcilkrts:
36238@if gcc-bootstrap
36239configure-target-libcilkrts: stage_current
36240@endif gcc-bootstrap
36241@if target-libcilkrts
36242maybe-configure-target-libcilkrts: configure-target-libcilkrts
36243configure-target-libcilkrts:
36244 @: $(MAKE); $(unstage)
36245 @r=`${PWD_COMMAND}`; export r; \
36246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36247 echo "Checking multilib configuration for libcilkrts..."; \
36248 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
36249 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
36250 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36251 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36252 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
36253 else \
36254 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
36255 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36256 fi; \
36257 else \
36258 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36259 fi; \
36260 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
36261 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
36262 $(NORMAL_TARGET_EXPORTS) \
36263 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
36264 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
36265 case $(srcdir) in \
36266 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36267 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
36268 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36269 esac; \
1b6c0831 36270 module_srcdir=libcilkrts; \
e78e02e6 36271 rm -f no-such-file || : ; \
1b6c0831
L
36272 CONFIG_SITE=no-such-file $(SHELL) \
36273 $$s/$$module_srcdir/configure \
36274 --srcdir=$${topdir}/$$module_srcdir \
e78e02e6 36275 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36276 --target=${target_alias} \
e78e02e6 36277 || exit 1
36278@endif target-libcilkrts
36279
36280
36281
36282
36283
36284.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
36285maybe-all-target-libcilkrts:
36286@if gcc-bootstrap
36287all-target-libcilkrts: stage_current
36288@endif gcc-bootstrap
36289@if target-libcilkrts
36290TARGET-target-libcilkrts=all
36291maybe-all-target-libcilkrts: all-target-libcilkrts
36292all-target-libcilkrts: configure-target-libcilkrts
36293 @: $(MAKE); $(unstage)
36294 @r=`${PWD_COMMAND}`; export r; \
36295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36296 $(NORMAL_TARGET_EXPORTS) \
36297 (cd $(TARGET_SUBDIR)/libcilkrts && \
36298 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36299 $(TARGET-target-libcilkrts))
36300@endif target-libcilkrts
36301
36302
36303
36304
36305
36306.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
36307maybe-check-target-libcilkrts:
36308@if target-libcilkrts
36309maybe-check-target-libcilkrts: check-target-libcilkrts
36310
36311check-target-libcilkrts:
36312 @: $(MAKE); $(unstage)
36313 @r=`${PWD_COMMAND}`; export r; \
36314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36315 $(NORMAL_TARGET_EXPORTS) \
36316 (cd $(TARGET_SUBDIR)/libcilkrts && \
36317 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36318
36319@endif target-libcilkrts
36320
36321.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
36322maybe-install-target-libcilkrts:
36323@if target-libcilkrts
36324maybe-install-target-libcilkrts: install-target-libcilkrts
36325
36326install-target-libcilkrts: installdirs
36327 @: $(MAKE); $(unstage)
36328 @r=`${PWD_COMMAND}`; export r; \
36329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36330 $(NORMAL_TARGET_EXPORTS) \
36331 (cd $(TARGET_SUBDIR)/libcilkrts && \
36332 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36333
36334@endif target-libcilkrts
36335
36336.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
36337maybe-install-strip-target-libcilkrts:
36338@if target-libcilkrts
36339maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
36340
36341install-strip-target-libcilkrts: installdirs
36342 @: $(MAKE); $(unstage)
36343 @r=`${PWD_COMMAND}`; export r; \
36344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36345 $(NORMAL_TARGET_EXPORTS) \
36346 (cd $(TARGET_SUBDIR)/libcilkrts && \
36347 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36348
36349@endif target-libcilkrts
36350
36351# Other targets (info, dvi, pdf, etc.)
36352
36353.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
36354maybe-info-target-libcilkrts:
36355@if target-libcilkrts
36356maybe-info-target-libcilkrts: info-target-libcilkrts
36357
36358info-target-libcilkrts: \
36359 configure-target-libcilkrts
36360 @: $(MAKE); $(unstage)
36361 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36362 r=`${PWD_COMMAND}`; export r; \
36363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36364 $(NORMAL_TARGET_EXPORTS) \
36365 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts" ; \
36366 for flag in $(EXTRA_TARGET_FLAGS); do \
36367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36368 done; \
36369 (cd $(TARGET_SUBDIR)/libcilkrts && \
36370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36372 "RANLIB=$${RANLIB}" \
36373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36374 info) \
36375 || exit 1
36376
36377@endif target-libcilkrts
36378
36379.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
36380maybe-dvi-target-libcilkrts:
36381@if target-libcilkrts
36382maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
36383
36384dvi-target-libcilkrts: \
36385 configure-target-libcilkrts
36386 @: $(MAKE); $(unstage)
36387 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36388 r=`${PWD_COMMAND}`; export r; \
36389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36390 $(NORMAL_TARGET_EXPORTS) \
36391 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts" ; \
36392 for flag in $(EXTRA_TARGET_FLAGS); do \
36393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36394 done; \
36395 (cd $(TARGET_SUBDIR)/libcilkrts && \
36396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36398 "RANLIB=$${RANLIB}" \
36399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36400 dvi) \
36401 || exit 1
36402
36403@endif target-libcilkrts
36404
36405.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
36406maybe-pdf-target-libcilkrts:
36407@if target-libcilkrts
36408maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
36409
36410pdf-target-libcilkrts: \
36411 configure-target-libcilkrts
36412 @: $(MAKE); $(unstage)
36413 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36414 r=`${PWD_COMMAND}`; export r; \
36415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36416 $(NORMAL_TARGET_EXPORTS) \
36417 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts" ; \
36418 for flag in $(EXTRA_TARGET_FLAGS); do \
36419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36420 done; \
36421 (cd $(TARGET_SUBDIR)/libcilkrts && \
36422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36424 "RANLIB=$${RANLIB}" \
36425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36426 pdf) \
36427 || exit 1
36428
36429@endif target-libcilkrts
36430
36431.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
36432maybe-html-target-libcilkrts:
36433@if target-libcilkrts
36434maybe-html-target-libcilkrts: html-target-libcilkrts
36435
36436html-target-libcilkrts: \
36437 configure-target-libcilkrts
36438 @: $(MAKE); $(unstage)
36439 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36440 r=`${PWD_COMMAND}`; export r; \
36441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36442 $(NORMAL_TARGET_EXPORTS) \
36443 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts" ; \
36444 for flag in $(EXTRA_TARGET_FLAGS); do \
36445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36446 done; \
36447 (cd $(TARGET_SUBDIR)/libcilkrts && \
36448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36450 "RANLIB=$${RANLIB}" \
36451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36452 html) \
36453 || exit 1
36454
36455@endif target-libcilkrts
36456
36457.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
36458maybe-TAGS-target-libcilkrts:
36459@if target-libcilkrts
36460maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
36461
36462TAGS-target-libcilkrts: \
36463 configure-target-libcilkrts
36464 @: $(MAKE); $(unstage)
36465 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36466 r=`${PWD_COMMAND}`; export r; \
36467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36468 $(NORMAL_TARGET_EXPORTS) \
36469 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts" ; \
36470 for flag in $(EXTRA_TARGET_FLAGS); do \
36471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36472 done; \
36473 (cd $(TARGET_SUBDIR)/libcilkrts && \
36474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36476 "RANLIB=$${RANLIB}" \
36477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36478 TAGS) \
36479 || exit 1
36480
36481@endif target-libcilkrts
36482
36483.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
36484maybe-install-info-target-libcilkrts:
36485@if target-libcilkrts
36486maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
36487
36488install-info-target-libcilkrts: \
36489 configure-target-libcilkrts \
36490 info-target-libcilkrts
36491 @: $(MAKE); $(unstage)
36492 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36493 r=`${PWD_COMMAND}`; export r; \
36494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36495 $(NORMAL_TARGET_EXPORTS) \
36496 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts" ; \
36497 for flag in $(EXTRA_TARGET_FLAGS); do \
36498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36499 done; \
36500 (cd $(TARGET_SUBDIR)/libcilkrts && \
36501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36503 "RANLIB=$${RANLIB}" \
36504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36505 install-info) \
36506 || exit 1
36507
36508@endif target-libcilkrts
36509
36510.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
36511maybe-install-pdf-target-libcilkrts:
36512@if target-libcilkrts
36513maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
36514
36515install-pdf-target-libcilkrts: \
36516 configure-target-libcilkrts \
36517 pdf-target-libcilkrts
36518 @: $(MAKE); $(unstage)
36519 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36520 r=`${PWD_COMMAND}`; export r; \
36521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36522 $(NORMAL_TARGET_EXPORTS) \
36523 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts" ; \
36524 for flag in $(EXTRA_TARGET_FLAGS); do \
36525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36526 done; \
36527 (cd $(TARGET_SUBDIR)/libcilkrts && \
36528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36530 "RANLIB=$${RANLIB}" \
36531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36532 install-pdf) \
36533 || exit 1
36534
36535@endif target-libcilkrts
36536
36537.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
36538maybe-install-html-target-libcilkrts:
36539@if target-libcilkrts
36540maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
36541
36542install-html-target-libcilkrts: \
36543 configure-target-libcilkrts \
36544 html-target-libcilkrts
36545 @: $(MAKE); $(unstage)
36546 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36547 r=`${PWD_COMMAND}`; export r; \
36548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36549 $(NORMAL_TARGET_EXPORTS) \
36550 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts" ; \
36551 for flag in $(EXTRA_TARGET_FLAGS); do \
36552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36553 done; \
36554 (cd $(TARGET_SUBDIR)/libcilkrts && \
36555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36557 "RANLIB=$${RANLIB}" \
36558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36559 install-html) \
36560 || exit 1
36561
36562@endif target-libcilkrts
36563
36564.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
36565maybe-installcheck-target-libcilkrts:
36566@if target-libcilkrts
36567maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
36568
36569installcheck-target-libcilkrts: \
36570 configure-target-libcilkrts
36571 @: $(MAKE); $(unstage)
36572 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36573 r=`${PWD_COMMAND}`; export r; \
36574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36575 $(NORMAL_TARGET_EXPORTS) \
36576 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts" ; \
36577 for flag in $(EXTRA_TARGET_FLAGS); do \
36578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36579 done; \
36580 (cd $(TARGET_SUBDIR)/libcilkrts && \
36581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36583 "RANLIB=$${RANLIB}" \
36584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36585 installcheck) \
36586 || exit 1
36587
36588@endif target-libcilkrts
36589
36590.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
36591maybe-mostlyclean-target-libcilkrts:
36592@if target-libcilkrts
36593maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
36594
36595mostlyclean-target-libcilkrts:
36596 @: $(MAKE); $(unstage)
36597 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36598 r=`${PWD_COMMAND}`; export r; \
36599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36600 $(NORMAL_TARGET_EXPORTS) \
36601 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts" ; \
36602 for flag in $(EXTRA_TARGET_FLAGS); do \
36603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36604 done; \
36605 (cd $(TARGET_SUBDIR)/libcilkrts && \
36606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36608 "RANLIB=$${RANLIB}" \
36609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36610 mostlyclean) \
36611 || exit 1
36612
36613@endif target-libcilkrts
36614
36615.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
36616maybe-clean-target-libcilkrts:
36617@if target-libcilkrts
36618maybe-clean-target-libcilkrts: clean-target-libcilkrts
36619
36620clean-target-libcilkrts:
36621 @: $(MAKE); $(unstage)
36622 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36623 r=`${PWD_COMMAND}`; export r; \
36624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36625 $(NORMAL_TARGET_EXPORTS) \
36626 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts" ; \
36627 for flag in $(EXTRA_TARGET_FLAGS); do \
36628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36629 done; \
36630 (cd $(TARGET_SUBDIR)/libcilkrts && \
36631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36633 "RANLIB=$${RANLIB}" \
36634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36635 clean) \
36636 || exit 1
36637
36638@endif target-libcilkrts
36639
36640.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
36641maybe-distclean-target-libcilkrts:
36642@if target-libcilkrts
36643maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
36644
36645distclean-target-libcilkrts:
36646 @: $(MAKE); $(unstage)
36647 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36648 r=`${PWD_COMMAND}`; export r; \
36649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36650 $(NORMAL_TARGET_EXPORTS) \
36651 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts" ; \
36652 for flag in $(EXTRA_TARGET_FLAGS); do \
36653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36654 done; \
36655 (cd $(TARGET_SUBDIR)/libcilkrts && \
36656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36658 "RANLIB=$${RANLIB}" \
36659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36660 distclean) \
36661 || exit 1
36662
36663@endif target-libcilkrts
36664
36665.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
36666maybe-maintainer-clean-target-libcilkrts:
36667@if target-libcilkrts
36668maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
36669
36670maintainer-clean-target-libcilkrts:
36671 @: $(MAKE); $(unstage)
36672 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36673 r=`${PWD_COMMAND}`; export r; \
36674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36675 $(NORMAL_TARGET_EXPORTS) \
36676 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts" ; \
36677 for flag in $(EXTRA_TARGET_FLAGS); do \
36678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36679 done; \
36680 (cd $(TARGET_SUBDIR)/libcilkrts && \
36681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36683 "RANLIB=$${RANLIB}" \
36684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36685 maintainer-clean) \
36686 || exit 1
36687
36688@endif target-libcilkrts
36689
36690
36691
36692
36693
1b6c0831
L
36694.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
36695maybe-configure-target-liboffloadmic:
36696@if gcc-bootstrap
36697configure-target-liboffloadmic: stage_current
36698@endif gcc-bootstrap
36699@if target-liboffloadmic
36700maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
36701configure-target-liboffloadmic:
36702 @: $(MAKE); $(unstage)
36703 @r=`${PWD_COMMAND}`; export r; \
36704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36705 echo "Checking multilib configuration for liboffloadmic..."; \
36706 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic ; \
36707 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null ; \
36708 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
36709 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
36710 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
36711 else \
36712 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
36713 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
36714 fi; \
36715 else \
36716 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
36717 fi; \
36718 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
36719 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic ; \
36720 $(NORMAL_TARGET_EXPORTS) \
36721 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
36722 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
36723 case $(srcdir) in \
36724 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36725 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
36726 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36727 esac; \
36728 module_srcdir=liboffloadmic; \
36729 rm -f no-such-file || : ; \
36730 CONFIG_SITE=no-such-file $(SHELL) \
36731 $$s/$$module_srcdir/configure \
36732 --srcdir=$${topdir}/$$module_srcdir \
36733 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36734 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
36735 || exit 1
36736@endif target-liboffloadmic
36737
36738
36739
36740
36741
36742.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
36743maybe-all-target-liboffloadmic:
36744@if gcc-bootstrap
36745all-target-liboffloadmic: stage_current
36746@endif gcc-bootstrap
36747@if target-liboffloadmic
36748TARGET-target-liboffloadmic=all
36749maybe-all-target-liboffloadmic: all-target-liboffloadmic
36750all-target-liboffloadmic: configure-target-liboffloadmic
36751 @: $(MAKE); $(unstage)
36752 @r=`${PWD_COMMAND}`; export r; \
36753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36754 $(NORMAL_TARGET_EXPORTS) \
36755 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36756 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36757 $(TARGET-target-liboffloadmic))
36758@endif target-liboffloadmic
36759
36760
36761
36762
36763
36764.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
36765maybe-check-target-liboffloadmic:
36766@if target-liboffloadmic
36767maybe-check-target-liboffloadmic: check-target-liboffloadmic
36768
36769check-target-liboffloadmic:
36770 @: $(MAKE); $(unstage)
36771 @r=`${PWD_COMMAND}`; export r; \
36772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36773 $(NORMAL_TARGET_EXPORTS) \
36774 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36775 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36776
36777@endif target-liboffloadmic
36778
36779.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
36780maybe-install-target-liboffloadmic:
36781@if target-liboffloadmic
36782maybe-install-target-liboffloadmic: install-target-liboffloadmic
36783
36784install-target-liboffloadmic: installdirs
36785 @: $(MAKE); $(unstage)
36786 @r=`${PWD_COMMAND}`; export r; \
36787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36788 $(NORMAL_TARGET_EXPORTS) \
36789 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36790 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36791
36792@endif target-liboffloadmic
36793
36794.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
36795maybe-install-strip-target-liboffloadmic:
36796@if target-liboffloadmic
36797maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
36798
36799install-strip-target-liboffloadmic: installdirs
36800 @: $(MAKE); $(unstage)
36801 @r=`${PWD_COMMAND}`; export r; \
36802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36803 $(NORMAL_TARGET_EXPORTS) \
36804 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36805 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36806
36807@endif target-liboffloadmic
36808
36809# Other targets (info, dvi, pdf, etc.)
36810
36811.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
36812maybe-info-target-liboffloadmic:
36813@if target-liboffloadmic
36814maybe-info-target-liboffloadmic: info-target-liboffloadmic
36815
36816info-target-liboffloadmic: \
36817 configure-target-liboffloadmic
36818 @: $(MAKE); $(unstage)
36819 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36820 r=`${PWD_COMMAND}`; export r; \
36821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36822 $(NORMAL_TARGET_EXPORTS) \
36823 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic" ; \
36824 for flag in $(EXTRA_TARGET_FLAGS); do \
36825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36826 done; \
36827 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36830 "RANLIB=$${RANLIB}" \
36831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36832 info) \
36833 || exit 1
36834
36835@endif target-liboffloadmic
36836
36837.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
36838maybe-dvi-target-liboffloadmic:
36839@if target-liboffloadmic
36840maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
36841
36842dvi-target-liboffloadmic: \
36843 configure-target-liboffloadmic
36844 @: $(MAKE); $(unstage)
36845 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36846 r=`${PWD_COMMAND}`; export r; \
36847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36848 $(NORMAL_TARGET_EXPORTS) \
36849 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic" ; \
36850 for flag in $(EXTRA_TARGET_FLAGS); do \
36851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36852 done; \
36853 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36856 "RANLIB=$${RANLIB}" \
36857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36858 dvi) \
36859 || exit 1
36860
36861@endif target-liboffloadmic
36862
36863.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
36864maybe-pdf-target-liboffloadmic:
36865@if target-liboffloadmic
36866maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
36867
36868pdf-target-liboffloadmic: \
36869 configure-target-liboffloadmic
36870 @: $(MAKE); $(unstage)
36871 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36872 r=`${PWD_COMMAND}`; export r; \
36873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36874 $(NORMAL_TARGET_EXPORTS) \
36875 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic" ; \
36876 for flag in $(EXTRA_TARGET_FLAGS); do \
36877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36878 done; \
36879 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36882 "RANLIB=$${RANLIB}" \
36883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36884 pdf) \
36885 || exit 1
36886
36887@endif target-liboffloadmic
36888
36889.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
36890maybe-html-target-liboffloadmic:
36891@if target-liboffloadmic
36892maybe-html-target-liboffloadmic: html-target-liboffloadmic
36893
36894html-target-liboffloadmic: \
36895 configure-target-liboffloadmic
36896 @: $(MAKE); $(unstage)
36897 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36898 r=`${PWD_COMMAND}`; export r; \
36899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36900 $(NORMAL_TARGET_EXPORTS) \
36901 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic" ; \
36902 for flag in $(EXTRA_TARGET_FLAGS); do \
36903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36904 done; \
36905 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36908 "RANLIB=$${RANLIB}" \
36909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36910 html) \
36911 || exit 1
36912
36913@endif target-liboffloadmic
36914
36915.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
36916maybe-TAGS-target-liboffloadmic:
36917@if target-liboffloadmic
36918maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
36919
36920TAGS-target-liboffloadmic: \
36921 configure-target-liboffloadmic
36922 @: $(MAKE); $(unstage)
36923 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36924 r=`${PWD_COMMAND}`; export r; \
36925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36926 $(NORMAL_TARGET_EXPORTS) \
36927 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic" ; \
36928 for flag in $(EXTRA_TARGET_FLAGS); do \
36929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36930 done; \
36931 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36934 "RANLIB=$${RANLIB}" \
36935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36936 TAGS) \
36937 || exit 1
36938
36939@endif target-liboffloadmic
36940
36941.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
36942maybe-install-info-target-liboffloadmic:
36943@if target-liboffloadmic
36944maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
36945
36946install-info-target-liboffloadmic: \
36947 configure-target-liboffloadmic \
36948 info-target-liboffloadmic
36949 @: $(MAKE); $(unstage)
36950 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36951 r=`${PWD_COMMAND}`; export r; \
36952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36953 $(NORMAL_TARGET_EXPORTS) \
36954 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic" ; \
36955 for flag in $(EXTRA_TARGET_FLAGS); do \
36956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36957 done; \
36958 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36961 "RANLIB=$${RANLIB}" \
36962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36963 install-info) \
36964 || exit 1
36965
36966@endif target-liboffloadmic
36967
36968.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
36969maybe-install-pdf-target-liboffloadmic:
36970@if target-liboffloadmic
36971maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
36972
36973install-pdf-target-liboffloadmic: \
36974 configure-target-liboffloadmic \
36975 pdf-target-liboffloadmic
36976 @: $(MAKE); $(unstage)
36977 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36978 r=`${PWD_COMMAND}`; export r; \
36979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36980 $(NORMAL_TARGET_EXPORTS) \
36981 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic" ; \
36982 for flag in $(EXTRA_TARGET_FLAGS); do \
36983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36984 done; \
36985 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36988 "RANLIB=$${RANLIB}" \
36989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36990 install-pdf) \
36991 || exit 1
36992
36993@endif target-liboffloadmic
36994
36995.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
36996maybe-install-html-target-liboffloadmic:
36997@if target-liboffloadmic
36998maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
36999
37000install-html-target-liboffloadmic: \
37001 configure-target-liboffloadmic \
37002 html-target-liboffloadmic
37003 @: $(MAKE); $(unstage)
37004 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37005 r=`${PWD_COMMAND}`; export r; \
37006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37007 $(NORMAL_TARGET_EXPORTS) \
37008 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic" ; \
37009 for flag in $(EXTRA_TARGET_FLAGS); do \
37010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37011 done; \
37012 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37015 "RANLIB=$${RANLIB}" \
37016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37017 install-html) \
37018 || exit 1
37019
37020@endif target-liboffloadmic
37021
37022.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
37023maybe-installcheck-target-liboffloadmic:
37024@if target-liboffloadmic
37025maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
37026
37027installcheck-target-liboffloadmic: \
37028 configure-target-liboffloadmic
37029 @: $(MAKE); $(unstage)
37030 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37031 r=`${PWD_COMMAND}`; export r; \
37032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37033 $(NORMAL_TARGET_EXPORTS) \
37034 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic" ; \
37035 for flag in $(EXTRA_TARGET_FLAGS); do \
37036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37037 done; \
37038 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37041 "RANLIB=$${RANLIB}" \
37042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37043 installcheck) \
37044 || exit 1
37045
37046@endif target-liboffloadmic
37047
37048.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
37049maybe-mostlyclean-target-liboffloadmic:
37050@if target-liboffloadmic
37051maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
37052
37053mostlyclean-target-liboffloadmic:
37054 @: $(MAKE); $(unstage)
37055 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37056 r=`${PWD_COMMAND}`; export r; \
37057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37058 $(NORMAL_TARGET_EXPORTS) \
37059 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37060 for flag in $(EXTRA_TARGET_FLAGS); do \
37061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37062 done; \
37063 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37066 "RANLIB=$${RANLIB}" \
37067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37068 mostlyclean) \
37069 || exit 1
37070
37071@endif target-liboffloadmic
37072
37073.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
37074maybe-clean-target-liboffloadmic:
37075@if target-liboffloadmic
37076maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
37077
37078clean-target-liboffloadmic:
37079 @: $(MAKE); $(unstage)
37080 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37081 r=`${PWD_COMMAND}`; export r; \
37082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37083 $(NORMAL_TARGET_EXPORTS) \
37084 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37085 for flag in $(EXTRA_TARGET_FLAGS); do \
37086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37087 done; \
37088 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37091 "RANLIB=$${RANLIB}" \
37092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37093 clean) \
37094 || exit 1
37095
37096@endif target-liboffloadmic
37097
37098.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
37099maybe-distclean-target-liboffloadmic:
37100@if target-liboffloadmic
37101maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
37102
37103distclean-target-liboffloadmic:
37104 @: $(MAKE); $(unstage)
37105 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37106 r=`${PWD_COMMAND}`; export r; \
37107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37108 $(NORMAL_TARGET_EXPORTS) \
37109 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37110 for flag in $(EXTRA_TARGET_FLAGS); do \
37111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37112 done; \
37113 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37116 "RANLIB=$${RANLIB}" \
37117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37118 distclean) \
37119 || exit 1
37120
37121@endif target-liboffloadmic
37122
37123.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
37124maybe-maintainer-clean-target-liboffloadmic:
37125@if target-liboffloadmic
37126maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
37127
37128maintainer-clean-target-liboffloadmic:
37129 @: $(MAKE); $(unstage)
37130 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37131 r=`${PWD_COMMAND}`; export r; \
37132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37133 $(NORMAL_TARGET_EXPORTS) \
37134 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37135 for flag in $(EXTRA_TARGET_FLAGS); do \
37136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37137 done; \
37138 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37141 "RANLIB=$${RANLIB}" \
37142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37143 maintainer-clean) \
37144 || exit 1
37145
37146@endif target-liboffloadmic
37147
37148
37149
37150
37151
a90ef4bf
JM
37152.PHONY: configure-target-libssp maybe-configure-target-libssp
37153maybe-configure-target-libssp:
4f0ef2d8 37154@if gcc-bootstrap
a90ef4bf 37155configure-target-libssp: stage_current
4f0ef2d8 37156@endif gcc-bootstrap
a90ef4bf
JM
37157@if target-libssp
37158maybe-configure-target-libssp: configure-target-libssp
37159configure-target-libssp:
0aed8855
PB
37160 @: $(MAKE); $(unstage)
37161 @r=`${PWD_COMMAND}`; export r; \
37162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
37163 echo "Checking multilib configuration for libssp..."; \
37164 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
37165 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
37166 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
37167 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
37168 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 37169 else \
a90ef4bf
JM
37170 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
37171 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
37172 fi; \
37173 else \
a90ef4bf 37174 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 37175 fi; \
a90ef4bf
JM
37176 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
37177 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
1f53ca9a 37178 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37179 echo Configuring in $(TARGET_SUBDIR)/libssp; \
37180 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 37181 case $(srcdir) in \
b00612cc 37182 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37183 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 37184 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 37185 esac; \
1b6c0831 37186 module_srcdir=libssp; \
4b1cb4fe 37187 rm -f no-such-file || : ; \
1b6c0831
L
37188 CONFIG_SITE=no-such-file $(SHELL) \
37189 $$s/$$module_srcdir/configure \
37190 --srcdir=$${topdir}/$$module_srcdir \
4b900473 37191 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37192 --target=${target_alias} \
4b1cb4fe 37193 || exit 1
a90ef4bf 37194@endif target-libssp
4b1cb4fe 37195
a7254363
PB
37196
37197
d545f33b
PB
37198
37199
a90ef4bf
JM
37200.PHONY: all-target-libssp maybe-all-target-libssp
37201maybe-all-target-libssp:
4f0ef2d8 37202@if gcc-bootstrap
a90ef4bf 37203all-target-libssp: stage_current
4f0ef2d8 37204@endif gcc-bootstrap
a90ef4bf
JM
37205@if target-libssp
37206TARGET-target-libssp=all
37207maybe-all-target-libssp: all-target-libssp
37208all-target-libssp: configure-target-libssp
0aed8855 37209 @: $(MAKE); $(unstage)
4b1cb4fe
DD
37210 @r=`${PWD_COMMAND}`; export r; \
37211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37212 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37213 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 37214 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37215 $(TARGET-target-libssp))
37216@endif target-libssp
4b1cb4fe 37217
a7254363
PB
37218
37219
d545f33b
PB
37220
37221
a90ef4bf
JM
37222.PHONY: check-target-libssp maybe-check-target-libssp
37223maybe-check-target-libssp:
37224@if target-libssp
37225maybe-check-target-libssp: check-target-libssp
4b1cb4fe 37226
a90ef4bf 37227check-target-libssp:
0aed8855 37228 @: $(MAKE); $(unstage)
b40e3958
L
37229 @r=`${PWD_COMMAND}`; export r; \
37230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37231 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37232 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37233 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 37234
a90ef4bf 37235@endif target-libssp
3866be5d 37236
a90ef4bf
JM
37237.PHONY: install-target-libssp maybe-install-target-libssp
37238maybe-install-target-libssp:
37239@if target-libssp
37240maybe-install-target-libssp: install-target-libssp
e2b9e2dc 37241
a90ef4bf 37242install-target-libssp: installdirs
0aed8855 37243 @: $(MAKE); $(unstage)
b40e3958
L
37244 @r=`${PWD_COMMAND}`; export r; \
37245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37246 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37247 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37248 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37249
a90ef4bf 37250@endif target-libssp
3866be5d 37251
a90ef4bf
JM
37252.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
37253maybe-install-strip-target-libssp:
37254@if target-libssp
37255maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 37256
a90ef4bf 37257install-strip-target-libssp: installdirs
9b980aa1
RW
37258 @: $(MAKE); $(unstage)
37259 @r=`${PWD_COMMAND}`; export r; \
37260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37261 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37262 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
37263 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37264
a90ef4bf 37265@endif target-libssp
9b980aa1 37266
56a8fe78 37267# Other targets (info, dvi, pdf, etc.)
3866be5d 37268
a90ef4bf
JM
37269.PHONY: maybe-info-target-libssp info-target-libssp
37270maybe-info-target-libssp:
37271@if target-libssp
37272maybe-info-target-libssp: info-target-libssp
3866be5d 37273
a90ef4bf
JM
37274info-target-libssp: \
37275 configure-target-libssp
0aed8855 37276 @: $(MAKE); $(unstage)
a90ef4bf 37277 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067
NN
37278 r=`${PWD_COMMAND}`; export r; \
37279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37280 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37281 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37282 for flag in $(EXTRA_TARGET_FLAGS); do \
37283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37284 done; \
a90ef4bf 37285 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37288 "RANLIB=$${RANLIB}" \
0c24b341 37289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37290 info) \
4fa63067 37291 || exit 1
16ae0395 37292
a90ef4bf 37293@endif target-libssp
3866be5d 37294
a90ef4bf
JM
37295.PHONY: maybe-dvi-target-libssp dvi-target-libssp
37296maybe-dvi-target-libssp:
37297@if target-libssp
37298maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 37299
a90ef4bf
JM
37300dvi-target-libssp: \
37301 configure-target-libssp
0aed8855 37302 @: $(MAKE); $(unstage)
a90ef4bf 37303 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37304 r=`${PWD_COMMAND}`; export r; \
37305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37306 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37307 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37308 for flag in $(EXTRA_TARGET_FLAGS); do \
37309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37310 done; \
a90ef4bf 37311 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37314 "RANLIB=$${RANLIB}" \
0c24b341 37315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37316 dvi) \
e2b9e2dc
NN
37317 || exit 1
37318
a90ef4bf 37319@endif target-libssp
3866be5d 37320
a90ef4bf
JM
37321.PHONY: maybe-pdf-target-libssp pdf-target-libssp
37322maybe-pdf-target-libssp:
37323@if target-libssp
37324maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 37325
a90ef4bf
JM
37326pdf-target-libssp: \
37327 configure-target-libssp
56a8fe78 37328 @: $(MAKE); $(unstage)
a90ef4bf 37329 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
56a8fe78
DD
37330 r=`${PWD_COMMAND}`; export r; \
37331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37332 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37333 echo "Doing pdf in $(TARGET_SUBDIR)/libssp" ; \
56a8fe78
DD
37334 for flag in $(EXTRA_TARGET_FLAGS); do \
37335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37336 done; \
a90ef4bf 37337 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
37338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37340 "RANLIB=$${RANLIB}" \
0c24b341 37341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37342 pdf) \
37343 || exit 1
37344
a90ef4bf 37345@endif target-libssp
a3ca38d2 37346
a90ef4bf
JM
37347.PHONY: maybe-html-target-libssp html-target-libssp
37348maybe-html-target-libssp:
37349@if target-libssp
37350maybe-html-target-libssp: html-target-libssp
108a6f8e 37351
a90ef4bf
JM
37352html-target-libssp: \
37353 configure-target-libssp
108a6f8e 37354 @: $(MAKE); $(unstage)
a90ef4bf 37355 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
108a6f8e
CD
37356 r=`${PWD_COMMAND}`; export r; \
37357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37358 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37359 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
108a6f8e
CD
37360 for flag in $(EXTRA_TARGET_FLAGS); do \
37361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37362 done; \
a90ef4bf 37363 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
37364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37366 "RANLIB=$${RANLIB}" \
0c24b341 37367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37368 html) \
108a6f8e
CD
37369 || exit 1
37370
a90ef4bf 37371@endif target-libssp
108a6f8e 37372
a90ef4bf
JM
37373.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
37374maybe-TAGS-target-libssp:
37375@if target-libssp
37376maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 37377
a90ef4bf
JM
37378TAGS-target-libssp: \
37379 configure-target-libssp
0aed8855 37380 @: $(MAKE); $(unstage)
a90ef4bf 37381 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37382 r=`${PWD_COMMAND}`; export r; \
37383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37384 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37385 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37386 for flag in $(EXTRA_TARGET_FLAGS); do \
37387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37388 done; \
a90ef4bf 37389 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37392 "RANLIB=$${RANLIB}" \
0c24b341 37393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37394 TAGS) \
e2b9e2dc
NN
37395 || exit 1
37396
a90ef4bf 37397@endif target-libssp
3866be5d 37398
a90ef4bf
JM
37399.PHONY: maybe-install-info-target-libssp install-info-target-libssp
37400maybe-install-info-target-libssp:
37401@if target-libssp
37402maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 37403
a90ef4bf
JM
37404install-info-target-libssp: \
37405 configure-target-libssp \
37406 info-target-libssp
0aed8855 37407 @: $(MAKE); $(unstage)
a90ef4bf 37408 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37409 r=`${PWD_COMMAND}`; export r; \
b40e3958 37410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37411 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37412 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37413 for flag in $(EXTRA_TARGET_FLAGS); do \
37414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37415 done; \
a90ef4bf 37416 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37419 "RANLIB=$${RANLIB}" \
0c24b341 37420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37421 install-info) \
4fa63067 37422 || exit 1
3866be5d 37423
a90ef4bf 37424@endif target-libssp
3866be5d 37425
a90ef4bf
JM
37426.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
37427maybe-install-pdf-target-libssp:
37428@if target-libssp
37429maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 37430
a90ef4bf
JM
37431install-pdf-target-libssp: \
37432 configure-target-libssp \
37433 pdf-target-libssp
0aed8855 37434 @: $(MAKE); $(unstage)
a90ef4bf 37435 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37436 r=`${PWD_COMMAND}`; export r; \
b40e3958 37437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37438 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37439 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37440 for flag in $(EXTRA_TARGET_FLAGS); do \
37441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37442 done; \
a90ef4bf 37443 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37446 "RANLIB=$${RANLIB}" \
0c24b341 37447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37448 install-pdf) \
4fa63067 37449 || exit 1
3866be5d 37450
a90ef4bf 37451@endif target-libssp
3866be5d 37452
a90ef4bf
JM
37453.PHONY: maybe-install-html-target-libssp install-html-target-libssp
37454maybe-install-html-target-libssp:
37455@if target-libssp
37456maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 37457
a90ef4bf
JM
37458install-html-target-libssp: \
37459 configure-target-libssp \
37460 html-target-libssp
0aed8855 37461 @: $(MAKE); $(unstage)
a90ef4bf 37462 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37463 r=`${PWD_COMMAND}`; export r; \
37464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37465 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37466 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37467 for flag in $(EXTRA_TARGET_FLAGS); do \
37468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37469 done; \
a90ef4bf 37470 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37473 "RANLIB=$${RANLIB}" \
0c24b341 37474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37475 install-html) \
e2b9e2dc
NN
37476 || exit 1
37477
a90ef4bf 37478@endif target-libssp
3866be5d 37479
a90ef4bf
JM
37480.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
37481maybe-installcheck-target-libssp:
37482@if target-libssp
37483maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 37484
a90ef4bf
JM
37485installcheck-target-libssp: \
37486 configure-target-libssp
0aed8855 37487 @: $(MAKE); $(unstage)
a90ef4bf 37488 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37489 r=`${PWD_COMMAND}`; export r; \
b40e3958 37490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37491 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37492 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37493 for flag in $(EXTRA_TARGET_FLAGS); do \
37494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37495 done; \
a90ef4bf 37496 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37499 "RANLIB=$${RANLIB}" \
0c24b341 37500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37501 installcheck) \
6aa8ef82 37502 || exit 1
6aa8ef82 37503
a90ef4bf 37504@endif target-libssp
6aa8ef82 37505
a90ef4bf
JM
37506.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
37507maybe-mostlyclean-target-libssp:
37508@if target-libssp
37509maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 37510
a90ef4bf
JM
37511mostlyclean-target-libssp:
37512 @: $(MAKE); $(unstage)
37513 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37514 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37516 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37517 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
37518 for flag in $(EXTRA_TARGET_FLAGS); do \
37519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37520 done; \
37521 (cd $(TARGET_SUBDIR)/libssp && \
37522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37524 "RANLIB=$${RANLIB}" \
37525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37526 mostlyclean) \
37527 || exit 1
6aa8ef82 37528
a90ef4bf 37529@endif target-libssp
6aa8ef82 37530
a90ef4bf
JM
37531.PHONY: maybe-clean-target-libssp clean-target-libssp
37532maybe-clean-target-libssp:
37533@if target-libssp
37534maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 37535
a90ef4bf
JM
37536clean-target-libssp:
37537 @: $(MAKE); $(unstage)
37538 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37539 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37541 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37542 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
37543 for flag in $(EXTRA_TARGET_FLAGS); do \
37544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37545 done; \
37546 (cd $(TARGET_SUBDIR)/libssp && \
37547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37549 "RANLIB=$${RANLIB}" \
37550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37551 clean) \
37552 || exit 1
6aa8ef82 37553
a90ef4bf 37554@endif target-libssp
6aa8ef82 37555
a90ef4bf
JM
37556.PHONY: maybe-distclean-target-libssp distclean-target-libssp
37557maybe-distclean-target-libssp:
37558@if target-libssp
37559maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 37560
a90ef4bf
JM
37561distclean-target-libssp:
37562 @: $(MAKE); $(unstage)
37563 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37564 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37566 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37567 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
37568 for flag in $(EXTRA_TARGET_FLAGS); do \
37569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37570 done; \
37571 (cd $(TARGET_SUBDIR)/libssp && \
37572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37574 "RANLIB=$${RANLIB}" \
37575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37576 distclean) \
37577 || exit 1
6aa8ef82 37578
a90ef4bf 37579@endif target-libssp
6aa8ef82 37580
a90ef4bf
JM
37581.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
37582maybe-maintainer-clean-target-libssp:
37583@if target-libssp
37584maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 37585
a90ef4bf
JM
37586maintainer-clean-target-libssp:
37587 @: $(MAKE); $(unstage)
37588 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37589 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37591 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37592 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
37593 for flag in $(EXTRA_TARGET_FLAGS); do \
37594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37595 done; \
37596 (cd $(TARGET_SUBDIR)/libssp && \
37597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37599 "RANLIB=$${RANLIB}" \
37600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37601 maintainer-clean) \
37602 || exit 1
6aa8ef82 37603
a90ef4bf 37604@endif target-libssp
6aa8ef82
DJ
37605
37606
a90ef4bf
JM
37607
37608
37609
37610.PHONY: configure-target-newlib maybe-configure-target-newlib
37611maybe-configure-target-newlib:
37612@if gcc-bootstrap
37613configure-target-newlib: stage_current
37614@endif gcc-bootstrap
37615@if target-newlib
37616maybe-configure-target-newlib: configure-target-newlib
37617configure-target-newlib:
37618 @: $(MAKE); $(unstage)
6aa8ef82
DJ
37619 @r=`${PWD_COMMAND}`; export r; \
37620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
37621 echo "Checking multilib configuration for newlib..."; \
37622 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
37623 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
37624 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
37625 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
37626 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
37627 else \
37628 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
37629 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
37630 fi; \
6aa8ef82 37631 else \
a90ef4bf 37632 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 37633 fi; \
a90ef4bf
JM
37634 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
37635 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
37636 $(NORMAL_TARGET_EXPORTS) \
37637 echo Configuring in $(TARGET_SUBDIR)/newlib; \
37638 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
37639 case $(srcdir) in \
37640 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37641 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
37642 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37643 esac; \
1b6c0831 37644 module_srcdir=newlib; \
a90ef4bf 37645 rm -f no-such-file || : ; \
1b6c0831
L
37646 CONFIG_SITE=no-such-file $(SHELL) \
37647 $$s/$$module_srcdir/configure \
37648 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 37649 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37650 --target=${target_alias} \
a90ef4bf
JM
37651 || exit 1
37652@endif target-newlib
6aa8ef82
DJ
37653
37654
37655
37656
37657
a90ef4bf
JM
37658.PHONY: all-target-newlib maybe-all-target-newlib
37659maybe-all-target-newlib:
37660@if gcc-bootstrap
37661all-target-newlib: stage_current
37662@endif gcc-bootstrap
37663@if target-newlib
37664TARGET-target-newlib=all
37665maybe-all-target-newlib: all-target-newlib
37666all-target-newlib: configure-target-newlib
37667 @: $(MAKE); $(unstage)
37668 @r=`${PWD_COMMAND}`; export r; \
37669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37670 $(NORMAL_TARGET_EXPORTS) \
37671 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 37672 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37673 $(TARGET-target-newlib))
37674@endif target-newlib
6aa8ef82 37675
6aa8ef82 37676
6aa8ef82 37677
6aa8ef82 37678
6aa8ef82 37679
a90ef4bf
JM
37680.PHONY: check-target-newlib maybe-check-target-newlib
37681maybe-check-target-newlib:
37682@if target-newlib
37683maybe-check-target-newlib: check-target-newlib
37684
37685check-target-newlib:
6aa8ef82
DJ
37686 @: $(MAKE); $(unstage)
37687 @r=`${PWD_COMMAND}`; export r; \
37688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37689 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37690 (cd $(TARGET_SUBDIR)/newlib && \
37691 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
37692
37693@endif target-newlib
37694
37695.PHONY: install-target-newlib maybe-install-target-newlib
37696maybe-install-target-newlib:
37697@if target-newlib
37698maybe-install-target-newlib: install-target-newlib
37699
37700install-target-newlib: installdirs
37701 @: $(MAKE); $(unstage)
37702 @r=`${PWD_COMMAND}`; export r; \
37703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37704 $(NORMAL_TARGET_EXPORTS) \
37705 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37706 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37707
a90ef4bf 37708@endif target-newlib
6aa8ef82 37709
a90ef4bf
JM
37710.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
37711maybe-install-strip-target-newlib:
37712@if target-newlib
37713maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 37714
a90ef4bf 37715install-strip-target-newlib: installdirs
9b980aa1
RW
37716 @: $(MAKE); $(unstage)
37717 @r=`${PWD_COMMAND}`; export r; \
37718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37719 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37720 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
37721 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37722
a90ef4bf 37723@endif target-newlib
9b980aa1 37724
6aa8ef82
DJ
37725# Other targets (info, dvi, pdf, etc.)
37726
a90ef4bf
JM
37727.PHONY: maybe-info-target-newlib info-target-newlib
37728maybe-info-target-newlib:
37729@if target-newlib
37730maybe-info-target-newlib: info-target-newlib
6aa8ef82 37731
a90ef4bf
JM
37732info-target-newlib: \
37733 configure-target-newlib
6aa8ef82 37734 @: $(MAKE); $(unstage)
a90ef4bf 37735 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37736 r=`${PWD_COMMAND}`; export r; \
37737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37738 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37739 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37740 for flag in $(EXTRA_TARGET_FLAGS); do \
37741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37742 done; \
a90ef4bf 37743 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37746 "RANLIB=$${RANLIB}" \
0c24b341 37747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37748 info) \
37749 || exit 1
37750
a90ef4bf 37751@endif target-newlib
6aa8ef82 37752
a90ef4bf
JM
37753.PHONY: maybe-dvi-target-newlib dvi-target-newlib
37754maybe-dvi-target-newlib:
37755@if target-newlib
37756maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 37757
a90ef4bf
JM
37758dvi-target-newlib: \
37759 configure-target-newlib
6aa8ef82 37760 @: $(MAKE); $(unstage)
a90ef4bf 37761 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37762 r=`${PWD_COMMAND}`; export r; \
37763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37764 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37765 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37766 for flag in $(EXTRA_TARGET_FLAGS); do \
37767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37768 done; \
a90ef4bf 37769 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37772 "RANLIB=$${RANLIB}" \
0c24b341 37773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37774 dvi) \
37775 || exit 1
37776
a90ef4bf 37777@endif target-newlib
6aa8ef82 37778
a90ef4bf
JM
37779.PHONY: maybe-pdf-target-newlib pdf-target-newlib
37780maybe-pdf-target-newlib:
37781@if target-newlib
37782maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 37783
a90ef4bf
JM
37784pdf-target-newlib: \
37785 configure-target-newlib
6aa8ef82 37786 @: $(MAKE); $(unstage)
a90ef4bf 37787 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37788 r=`${PWD_COMMAND}`; export r; \
37789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37790 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37791 echo "Doing pdf in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37792 for flag in $(EXTRA_TARGET_FLAGS); do \
37793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37794 done; \
a90ef4bf 37795 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37798 "RANLIB=$${RANLIB}" \
0c24b341 37799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37800 pdf) \
37801 || exit 1
37802
a90ef4bf 37803@endif target-newlib
6aa8ef82 37804
a90ef4bf
JM
37805.PHONY: maybe-html-target-newlib html-target-newlib
37806maybe-html-target-newlib:
37807@if target-newlib
37808maybe-html-target-newlib: html-target-newlib
6aa8ef82 37809
a90ef4bf
JM
37810html-target-newlib: \
37811 configure-target-newlib
6aa8ef82 37812 @: $(MAKE); $(unstage)
a90ef4bf 37813 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37814 r=`${PWD_COMMAND}`; export r; \
37815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37816 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37817 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37818 for flag in $(EXTRA_TARGET_FLAGS); do \
37819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37820 done; \
a90ef4bf 37821 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37824 "RANLIB=$${RANLIB}" \
0c24b341 37825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37826 html) \
37827 || exit 1
37828
a90ef4bf 37829@endif target-newlib
6aa8ef82 37830
a90ef4bf
JM
37831.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
37832maybe-TAGS-target-newlib:
37833@if target-newlib
37834maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 37835
a90ef4bf
JM
37836TAGS-target-newlib: \
37837 configure-target-newlib
6aa8ef82 37838 @: $(MAKE); $(unstage)
a90ef4bf 37839 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37840 r=`${PWD_COMMAND}`; export r; \
37841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37842 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37843 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37844 for flag in $(EXTRA_TARGET_FLAGS); do \
37845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37846 done; \
a90ef4bf 37847 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37850 "RANLIB=$${RANLIB}" \
0c24b341 37851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37852 TAGS) \
37853 || exit 1
37854
a90ef4bf 37855@endif target-newlib
6aa8ef82 37856
a90ef4bf
JM
37857.PHONY: maybe-install-info-target-newlib install-info-target-newlib
37858maybe-install-info-target-newlib:
37859@if target-newlib
37860maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 37861
a90ef4bf
JM
37862install-info-target-newlib: \
37863 configure-target-newlib \
37864 info-target-newlib
6aa8ef82 37865 @: $(MAKE); $(unstage)
a90ef4bf 37866 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37867 r=`${PWD_COMMAND}`; export r; \
37868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37869 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37870 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37871 for flag in $(EXTRA_TARGET_FLAGS); do \
37872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37873 done; \
a90ef4bf 37874 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37877 "RANLIB=$${RANLIB}" \
0c24b341 37878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37879 install-info) \
37880 || exit 1
37881
a90ef4bf 37882@endif target-newlib
6aa8ef82 37883
a90ef4bf
JM
37884.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
37885maybe-install-pdf-target-newlib:
37886@if target-newlib
37887maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 37888
a90ef4bf
JM
37889install-pdf-target-newlib: \
37890 configure-target-newlib \
37891 pdf-target-newlib
a3ca38d2 37892 @: $(MAKE); $(unstage)
a90ef4bf 37893 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
a3ca38d2
DD
37894 r=`${PWD_COMMAND}`; export r; \
37895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37896 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37897 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib" ; \
a3ca38d2
DD
37898 for flag in $(EXTRA_TARGET_FLAGS); do \
37899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37900 done; \
a90ef4bf 37901 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
37902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37904 "RANLIB=$${RANLIB}" \
0c24b341 37905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
37906 install-pdf) \
37907 || exit 1
37908
a90ef4bf 37909@endif target-newlib
a3ca38d2 37910
a90ef4bf
JM
37911.PHONY: maybe-install-html-target-newlib install-html-target-newlib
37912maybe-install-html-target-newlib:
37913@if target-newlib
37914maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 37915
a90ef4bf
JM
37916install-html-target-newlib: \
37917 configure-target-newlib \
37918 html-target-newlib
6aa8ef82 37919 @: $(MAKE); $(unstage)
a90ef4bf 37920 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37921 r=`${PWD_COMMAND}`; export r; \
37922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37923 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37924 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37925 for flag in $(EXTRA_TARGET_FLAGS); do \
37926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37927 done; \
a90ef4bf 37928 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37931 "RANLIB=$${RANLIB}" \
0c24b341 37932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37933 install-html) \
37934 || exit 1
37935
a90ef4bf 37936@endif target-newlib
6aa8ef82 37937
a90ef4bf
JM
37938.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
37939maybe-installcheck-target-newlib:
37940@if target-newlib
37941maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 37942
a90ef4bf
JM
37943installcheck-target-newlib: \
37944 configure-target-newlib
6aa8ef82 37945 @: $(MAKE); $(unstage)
a90ef4bf 37946 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37947 r=`${PWD_COMMAND}`; export r; \
37948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37949 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37950 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37951 for flag in $(EXTRA_TARGET_FLAGS); do \
37952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37953 done; \
a90ef4bf 37954 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37957 "RANLIB=$${RANLIB}" \
0c24b341 37958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37959 installcheck) \
37960 || exit 1
37961
a90ef4bf 37962@endif target-newlib
6aa8ef82 37963
a90ef4bf
JM
37964.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
37965maybe-mostlyclean-target-newlib:
37966@if target-newlib
37967maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 37968
a90ef4bf 37969mostlyclean-target-newlib:
6aa8ef82 37970 @: $(MAKE); $(unstage)
a90ef4bf 37971 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37972 r=`${PWD_COMMAND}`; export r; \
37973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37974 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37975 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37976 for flag in $(EXTRA_TARGET_FLAGS); do \
37977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37978 done; \
a90ef4bf 37979 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37982 "RANLIB=$${RANLIB}" \
0c24b341 37983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37984 mostlyclean) \
37985 || exit 1
37986
a90ef4bf 37987@endif target-newlib
6aa8ef82 37988
a90ef4bf
JM
37989.PHONY: maybe-clean-target-newlib clean-target-newlib
37990maybe-clean-target-newlib:
37991@if target-newlib
37992maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 37993
a90ef4bf 37994clean-target-newlib:
6aa8ef82 37995 @: $(MAKE); $(unstage)
a90ef4bf 37996 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37997 r=`${PWD_COMMAND}`; export r; \
37998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37999 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38000 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38001 for flag in $(EXTRA_TARGET_FLAGS); do \
38002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38003 done; \
a90ef4bf 38004 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38007 "RANLIB=$${RANLIB}" \
0c24b341 38008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38009 clean) \
38010 || exit 1
38011
a90ef4bf 38012@endif target-newlib
6aa8ef82 38013
a90ef4bf
JM
38014.PHONY: maybe-distclean-target-newlib distclean-target-newlib
38015maybe-distclean-target-newlib:
38016@if target-newlib
38017maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 38018
a90ef4bf 38019distclean-target-newlib:
6aa8ef82 38020 @: $(MAKE); $(unstage)
a90ef4bf 38021 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
38022 r=`${PWD_COMMAND}`; export r; \
38023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38024 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38025 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38026 for flag in $(EXTRA_TARGET_FLAGS); do \
38027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38028 done; \
a90ef4bf 38029 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38032 "RANLIB=$${RANLIB}" \
0c24b341 38033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38034 distclean) \
38035 || exit 1
38036
a90ef4bf 38037@endif target-newlib
6aa8ef82 38038
a90ef4bf
JM
38039.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
38040maybe-maintainer-clean-target-newlib:
38041@if target-newlib
38042maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 38043
a90ef4bf 38044maintainer-clean-target-newlib:
6aa8ef82 38045 @: $(MAKE); $(unstage)
a90ef4bf 38046 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
38047 r=`${PWD_COMMAND}`; export r; \
38048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38049 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38050 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38051 for flag in $(EXTRA_TARGET_FLAGS); do \
38052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38053 done; \
a90ef4bf 38054 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38057 "RANLIB=$${RANLIB}" \
0c24b341 38058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38059 maintainer-clean) \
38060 || exit 1
38061
a90ef4bf 38062@endif target-newlib
6aa8ef82
DJ
38063
38064
38065
38066
38067
a90ef4bf
JM
38068.PHONY: configure-target-libgcc maybe-configure-target-libgcc
38069maybe-configure-target-libgcc:
e552509b 38070@if gcc-bootstrap
a90ef4bf 38071configure-target-libgcc: stage_current
e552509b 38072@endif gcc-bootstrap
a90ef4bf
JM
38073@if target-libgcc
38074maybe-configure-target-libgcc: configure-target-libgcc
38075configure-target-libgcc:
e552509b
ILT
38076 @r=`${PWD_COMMAND}`; export r; \
38077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38078 echo "Checking multilib configuration for libgcc..."; \
38079 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38080 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38081 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38082 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38083 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 38084 else \
a90ef4bf
JM
38085 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38086 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
38087 fi; \
38088 else \
a90ef4bf 38089 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 38090 fi; \
a90ef4bf
JM
38091 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
38092 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
e552509b 38093 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38094 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
38095 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
38096 case $(srcdir) in \
38097 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38098 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
38099 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38100 esac; \
1b6c0831 38101 module_srcdir=libgcc; \
e552509b 38102 rm -f no-such-file || : ; \
1b6c0831
L
38103 CONFIG_SITE=no-such-file $(SHELL) \
38104 $$s/$$module_srcdir/configure \
38105 --srcdir=$${topdir}/$$module_srcdir \
e552509b 38106 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38107 --target=${target_alias} \
e552509b 38108 || exit 1
a90ef4bf 38109@endif target-libgcc
e552509b
ILT
38110
38111
e552509b 38112
a90ef4bf
JM
38113.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
38114maybe-configure-stage1-target-libgcc:
38115@if target-libgcc-bootstrap
38116maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
38117configure-stage1-target-libgcc:
38118 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38119 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38120 @r=`${PWD_COMMAND}`; export r; \
38121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38122 TFLAGS="$(STAGE1_TFLAGS)"; \
38123 echo "Checking multilib configuration for libgcc..."; \
38124 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38125 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38126 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38127 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38128 else \
38129 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38130 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38131 fi; \
38132 else \
38133 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38134 fi; \
38135 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38136 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38137 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38138 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38139 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38140 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc ; \
38141 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38142 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38143 case $(srcdir) in \
38144 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38145 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38146 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38147 esac; \
1b6c0831
L
38148 module_srcdir=libgcc; \
38149 $(SHELL) $$s/$$module_srcdir/configure \
38150 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38151 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38152 --target=${target_alias} \
38153 \
a90ef4bf
JM
38154 $(STAGE1_CONFIGURE_FLAGS)
38155@endif target-libgcc-bootstrap
e552509b 38156
a90ef4bf
JM
38157.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
38158maybe-configure-stage2-target-libgcc:
38159@if target-libgcc-bootstrap
38160maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
38161configure-stage2-target-libgcc:
38162 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38163 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38164 @r=`${PWD_COMMAND}`; export r; \
38165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38166 TFLAGS="$(STAGE2_TFLAGS)"; \
38167 echo "Checking multilib configuration for libgcc..."; \
38168 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38169 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38170 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38171 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38172 else \
38173 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38174 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38175 fi; \
38176 else \
38177 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38178 fi; \
38179 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38180 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38181 \
38182 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38183 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38184 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38185 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc ; \
38186 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38187 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38188 case $(srcdir) in \
38189 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38190 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38191 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38192 esac; \
1b6c0831
L
38193 module_srcdir=libgcc; \
38194 $(SHELL) $$s/$$module_srcdir/configure \
38195 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38196 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38197 --target=${target_alias} \
38198 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38199 $(STAGE2_CONFIGURE_FLAGS)
38200@endif target-libgcc-bootstrap
9b980aa1 38201
a90ef4bf
JM
38202.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
38203maybe-configure-stage3-target-libgcc:
38204@if target-libgcc-bootstrap
38205maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
38206configure-stage3-target-libgcc:
38207 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38208 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
38209 @r=`${PWD_COMMAND}`; export r; \
38210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38211 TFLAGS="$(STAGE3_TFLAGS)"; \
38212 echo "Checking multilib configuration for libgcc..."; \
38213 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38214 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38215 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38216 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38217 else \
38218 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38219 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38220 fi; \
38221 else \
38222 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38223 fi; \
38224 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 38225 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38226 \
38227 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38228 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38229 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38230 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc ; \
38231 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38232 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38233 case $(srcdir) in \
38234 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38235 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38236 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38237 esac; \
1b6c0831
L
38238 module_srcdir=libgcc; \
38239 $(SHELL) $$s/$$module_srcdir/configure \
38240 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38241 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38242 --target=${target_alias} \
38243 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38244 $(STAGE3_CONFIGURE_FLAGS)
38245@endif target-libgcc-bootstrap
e552509b 38246
a90ef4bf
JM
38247.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
38248maybe-configure-stage4-target-libgcc:
38249@if target-libgcc-bootstrap
38250maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
38251configure-stage4-target-libgcc:
38252 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38253 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38254 @r=`${PWD_COMMAND}`; export r; \
e552509b 38255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38256 TFLAGS="$(STAGE4_TFLAGS)"; \
38257 echo "Checking multilib configuration for libgcc..."; \
38258 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38259 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38260 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38261 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38262 else \
38263 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38264 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38265 fi; \
38266 else \
38267 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38268 fi; \
38269 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38270 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38271 \
38272 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38273 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38274 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38275 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc ; \
38276 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38277 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38278 case $(srcdir) in \
38279 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38280 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38281 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38282 esac; \
1b6c0831
L
38283 module_srcdir=libgcc; \
38284 $(SHELL) $$s/$$module_srcdir/configure \
38285 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38286 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38287 --target=${target_alias} \
38288 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38289 $(STAGE4_CONFIGURE_FLAGS)
38290@endif target-libgcc-bootstrap
38291
38292.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
38293maybe-configure-stageprofile-target-libgcc:
38294@if target-libgcc-bootstrap
38295maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38296configure-stageprofile-target-libgcc:
38297 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38298 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38299 @r=`${PWD_COMMAND}`; export r; \
e552509b 38300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38301 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38302 echo "Checking multilib configuration for libgcc..."; \
38303 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38304 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38305 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38306 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38307 else \
38308 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38309 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38310 fi; \
38311 else \
38312 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38313 fi; \
38314 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38315 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38316 \
38317 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38318 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38319 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38320 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc ; \
38321 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38322 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38323 case $(srcdir) in \
38324 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38325 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38326 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38327 esac; \
1b6c0831
L
38328 module_srcdir=libgcc; \
38329 $(SHELL) $$s/$$module_srcdir/configure \
38330 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38331 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38332 --target=${target_alias} \
38333 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38334 $(STAGEprofile_CONFIGURE_FLAGS)
38335@endif target-libgcc-bootstrap
e552509b 38336
a90ef4bf
JM
38337.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
38338maybe-configure-stagefeedback-target-libgcc:
38339@if target-libgcc-bootstrap
38340maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38341configure-stagefeedback-target-libgcc:
38342 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38343 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38344 @r=`${PWD_COMMAND}`; export r; \
e552509b 38345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38346 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38347 echo "Checking multilib configuration for libgcc..."; \
38348 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38349 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38350 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38351 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38352 else \
38353 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38354 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38355 fi; \
38356 else \
38357 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38358 fi; \
38359 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38360 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38361 \
38362 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38363 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38364 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38365 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc ; \
38366 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38367 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38368 case $(srcdir) in \
38369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38370 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38372 esac; \
1b6c0831
L
38373 module_srcdir=libgcc; \
38374 $(SHELL) $$s/$$module_srcdir/configure \
38375 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38376 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38377 --target=${target_alias} \
38378 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38379 $(STAGEfeedback_CONFIGURE_FLAGS)
38380@endif target-libgcc-bootstrap
e552509b 38381
e552509b 38382
e552509b 38383
e552509b 38384
e552509b 38385
a90ef4bf
JM
38386.PHONY: all-target-libgcc maybe-all-target-libgcc
38387maybe-all-target-libgcc:
38388@if gcc-bootstrap
38389all-target-libgcc: stage_current
38390@endif gcc-bootstrap
38391@if target-libgcc
38392TARGET-target-libgcc=all
38393maybe-all-target-libgcc: all-target-libgcc
38394all-target-libgcc: configure-target-libgcc
38395 @r=`${PWD_COMMAND}`; export r; \
e552509b 38396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38397 $(NORMAL_TARGET_EXPORTS) \
38398 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38399 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38400 $(TARGET-target-libgcc))
38401@endif target-libgcc
e552509b 38402
e552509b 38403
e552509b 38404
a90ef4bf
JM
38405.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
38406.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
38407maybe-all-stage1-target-libgcc:
38408maybe-clean-stage1-target-libgcc:
38409@if target-libgcc-bootstrap
38410maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
38411all-stage1: all-stage1-target-libgcc
38412TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
38413all-stage1-target-libgcc: configure-stage1-target-libgcc
38414 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38415 @r=`${PWD_COMMAND}`; export r; \
e552509b 38416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38417 TFLAGS="$(STAGE1_TFLAGS)"; \
38418 $(NORMAL_TARGET_EXPORTS) \
38419 cd $(TARGET_SUBDIR)/libgcc && \
38420 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38421 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38422 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38423 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
38427 $(EXTRA_TARGET_FLAGS) \
38428 \
a90ef4bf
JM
38429 TFLAGS="$(STAGE1_TFLAGS)" \
38430 $(TARGET-stage1-target-libgcc)
e552509b 38431
a90ef4bf
JM
38432maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
38433clean-stage1: clean-stage1-target-libgcc
38434clean-stage1-target-libgcc:
38435 @if [ $(current_stage) = stage1 ]; then \
38436 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38437 else \
38438 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
38439 $(MAKE) stage1-start; \
38440 fi; \
38441 cd $(TARGET_SUBDIR)/libgcc && \
38442 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 38443 clean
a90ef4bf 38444@endif target-libgcc-bootstrap
e552509b 38445
e552509b 38446
a90ef4bf
JM
38447.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
38448.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
38449maybe-all-stage2-target-libgcc:
38450maybe-clean-stage2-target-libgcc:
38451@if target-libgcc-bootstrap
38452maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
38453all-stage2: all-stage2-target-libgcc
38454TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
38455all-stage2-target-libgcc: configure-stage2-target-libgcc
38456 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38457 @r=`${PWD_COMMAND}`; export r; \
e552509b 38458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38459 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 38460 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38461 \
38462 cd $(TARGET_SUBDIR)/libgcc && \
38463 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38464 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38465 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38466 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38467 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38468 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38469 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38470 $(EXTRA_TARGET_FLAGS) \
38471 TFLAGS="$(STAGE2_TFLAGS)" \
38472 $(TARGET-stage2-target-libgcc)
e552509b 38473
a90ef4bf
JM
38474maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
38475clean-stage2: clean-stage2-target-libgcc
38476clean-stage2-target-libgcc:
38477 @if [ $(current_stage) = stage2 ]; then \
38478 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38479 else \
38480 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
38481 $(MAKE) stage2-start; \
38482 fi; \
38483 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38484 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38485@endif target-libgcc-bootstrap
e552509b 38486
e552509b 38487
a90ef4bf
JM
38488.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
38489.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
38490maybe-all-stage3-target-libgcc:
38491maybe-clean-stage3-target-libgcc:
38492@if target-libgcc-bootstrap
38493maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
38494all-stage3: all-stage3-target-libgcc
38495TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
38496all-stage3-target-libgcc: configure-stage3-target-libgcc
38497 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38498 @r=`${PWD_COMMAND}`; export r; \
e552509b 38499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38500 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 38501 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38502 \
38503 cd $(TARGET_SUBDIR)/libgcc && \
38504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38505 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38506 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38507 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38511 $(EXTRA_TARGET_FLAGS) \
38512 TFLAGS="$(STAGE3_TFLAGS)" \
38513 $(TARGET-stage3-target-libgcc)
e552509b 38514
a90ef4bf
JM
38515maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
38516clean-stage3: clean-stage3-target-libgcc
38517clean-stage3-target-libgcc:
38518 @if [ $(current_stage) = stage3 ]; then \
38519 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38520 else \
38521 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
38522 $(MAKE) stage3-start; \
38523 fi; \
38524 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38525 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38526@endif target-libgcc-bootstrap
e552509b 38527
e552509b 38528
a90ef4bf
JM
38529.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
38530.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
38531maybe-all-stage4-target-libgcc:
38532maybe-clean-stage4-target-libgcc:
38533@if target-libgcc-bootstrap
38534maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
38535all-stage4: all-stage4-target-libgcc
38536TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
38537all-stage4-target-libgcc: configure-stage4-target-libgcc
38538 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38539 @r=`${PWD_COMMAND}`; export r; \
e552509b 38540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38541 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 38542 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38543 \
38544 cd $(TARGET_SUBDIR)/libgcc && \
38545 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38546 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38547 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38548 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38549 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38550 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38551 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38552 $(EXTRA_TARGET_FLAGS) \
38553 TFLAGS="$(STAGE4_TFLAGS)" \
38554 $(TARGET-stage4-target-libgcc)
e552509b 38555
a90ef4bf
JM
38556maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
38557clean-stage4: clean-stage4-target-libgcc
38558clean-stage4-target-libgcc:
38559 @if [ $(current_stage) = stage4 ]; then \
38560 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38561 else \
38562 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
38563 $(MAKE) stage4-start; \
38564 fi; \
38565 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38566 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38567@endif target-libgcc-bootstrap
e552509b
ILT
38568
38569
a90ef4bf
JM
38570.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
38571.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
38572maybe-all-stageprofile-target-libgcc:
38573maybe-clean-stageprofile-target-libgcc:
38574@if target-libgcc-bootstrap
38575maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
38576all-stageprofile: all-stageprofile-target-libgcc
38577TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
38578all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38579 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
38580 @r=`${PWD_COMMAND}`; export r; \
38581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38582 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38583 $(NORMAL_TARGET_EXPORTS) \
38584 \
38585 cd $(TARGET_SUBDIR)/libgcc && \
38586 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38587 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38588 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38589 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38590 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38591 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38592 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38593 $(EXTRA_TARGET_FLAGS) \
38594 TFLAGS="$(STAGEprofile_TFLAGS)" \
38595 $(TARGET-stageprofile-target-libgcc)
38596
38597maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
38598clean-stageprofile: clean-stageprofile-target-libgcc
38599clean-stageprofile-target-libgcc:
38600 @if [ $(current_stage) = stageprofile ]; then \
38601 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 38602 else \
a90ef4bf
JM
38603 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
38604 $(MAKE) stageprofile-start; \
c52c6897 38605 fi; \
a90ef4bf 38606 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38607 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38608@endif target-libgcc-bootstrap
d545f33b
PB
38609
38610
a90ef4bf
JM
38611.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
38612.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
38613maybe-all-stagefeedback-target-libgcc:
38614maybe-clean-stagefeedback-target-libgcc:
38615@if target-libgcc-bootstrap
38616maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
38617all-stagefeedback: all-stagefeedback-target-libgcc
38618TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
38619all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38620 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
38621 @r=`${PWD_COMMAND}`; export r; \
38622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38623 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38624 $(NORMAL_TARGET_EXPORTS) \
38625 \
38626 cd $(TARGET_SUBDIR)/libgcc && \
38627 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38628 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38629 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38630 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38631 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38632 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38633 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38634 $(EXTRA_TARGET_FLAGS) \
38635 TFLAGS="$(STAGEfeedback_TFLAGS)" \
38636 $(TARGET-stagefeedback-target-libgcc)
38637
38638maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
38639clean-stagefeedback: clean-stagefeedback-target-libgcc
38640clean-stagefeedback-target-libgcc:
38641 @if [ $(current_stage) = stagefeedback ]; then \
38642 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38643 else \
38644 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
38645 $(MAKE) stagefeedback-start; \
38646 fi; \
38647 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38648 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38649@endif target-libgcc-bootstrap
4b1cb4fe 38650
a7254363
PB
38651
38652
d545f33b
PB
38653
38654
4b1cb4fe 38655
a90ef4bf
JM
38656.PHONY: check-target-libgcc maybe-check-target-libgcc
38657maybe-check-target-libgcc:
38658@if target-libgcc
38659maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 38660
a90ef4bf
JM
38661# Dummy target for uncheckable module.
38662check-target-libgcc:
4b1cb4fe 38663
a90ef4bf 38664@endif target-libgcc
4b1cb4fe 38665
a90ef4bf
JM
38666.PHONY: install-target-libgcc maybe-install-target-libgcc
38667maybe-install-target-libgcc:
38668@if target-libgcc
38669maybe-install-target-libgcc: install-target-libgcc
38670
38671install-target-libgcc: installdirs
0aed8855 38672 @: $(MAKE); $(unstage)
4b1cb4fe
DD
38673 @r=`${PWD_COMMAND}`; export r; \
38674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38675 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38676 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 38677 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 38678
a90ef4bf 38679@endif target-libgcc
4b1cb4fe 38680
a90ef4bf
JM
38681.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
38682maybe-install-strip-target-libgcc:
38683@if target-libgcc
38684maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 38685
a90ef4bf 38686install-strip-target-libgcc: installdirs
9b980aa1
RW
38687 @: $(MAKE); $(unstage)
38688 @r=`${PWD_COMMAND}`; export r; \
38689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38690 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38691 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
38692 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38693
a90ef4bf 38694@endif target-libgcc
9b980aa1 38695
56a8fe78 38696# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 38697
a90ef4bf
JM
38698.PHONY: maybe-info-target-libgcc info-target-libgcc
38699maybe-info-target-libgcc:
38700@if target-libgcc
38701maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 38702
a90ef4bf
JM
38703info-target-libgcc: \
38704 configure-target-libgcc
0aed8855 38705 @: $(MAKE); $(unstage)
a90ef4bf 38706 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38707 r=`${PWD_COMMAND}`; export r; \
38708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38709 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38710 echo "Doing info in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38711 for flag in $(EXTRA_TARGET_FLAGS); do \
38712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38713 done; \
a90ef4bf 38714 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38717 "RANLIB=$${RANLIB}" \
0c24b341 38718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38719 info) \
4b1cb4fe
DD
38720 || exit 1
38721
a90ef4bf 38722@endif target-libgcc
4b1cb4fe 38723
a90ef4bf
JM
38724.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
38725maybe-dvi-target-libgcc:
38726@if target-libgcc
38727maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 38728
a90ef4bf
JM
38729dvi-target-libgcc: \
38730 configure-target-libgcc
0aed8855 38731 @: $(MAKE); $(unstage)
a90ef4bf 38732 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38733 r=`${PWD_COMMAND}`; export r; \
38734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38735 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38736 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38737 for flag in $(EXTRA_TARGET_FLAGS); do \
38738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38739 done; \
a90ef4bf 38740 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38743 "RANLIB=$${RANLIB}" \
0c24b341 38744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38745 dvi) \
4b1cb4fe
DD
38746 || exit 1
38747
a90ef4bf 38748@endif target-libgcc
4b1cb4fe 38749
a90ef4bf
JM
38750.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
38751maybe-pdf-target-libgcc:
38752@if target-libgcc
38753maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 38754
a90ef4bf
JM
38755pdf-target-libgcc: \
38756 configure-target-libgcc
56a8fe78 38757 @: $(MAKE); $(unstage)
a90ef4bf 38758 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
56a8fe78
DD
38759 r=`${PWD_COMMAND}`; export r; \
38760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38761 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38762 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc" ; \
56a8fe78
DD
38763 for flag in $(EXTRA_TARGET_FLAGS); do \
38764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38765 done; \
a90ef4bf 38766 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
38767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38769 "RANLIB=$${RANLIB}" \
0c24b341 38770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
38771 pdf) \
38772 || exit 1
38773
a90ef4bf 38774@endif target-libgcc
56a8fe78 38775
a90ef4bf
JM
38776.PHONY: maybe-html-target-libgcc html-target-libgcc
38777maybe-html-target-libgcc:
38778@if target-libgcc
38779maybe-html-target-libgcc: html-target-libgcc
6d389afc 38780
a90ef4bf
JM
38781html-target-libgcc: \
38782 configure-target-libgcc
0aed8855 38783 @: $(MAKE); $(unstage)
a90ef4bf 38784 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6d389afc
MS
38785 r=`${PWD_COMMAND}`; export r; \
38786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 38787 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38788 echo "Doing html in $(TARGET_SUBDIR)/libgcc" ; \
6d389afc
MS
38789 for flag in $(EXTRA_TARGET_FLAGS); do \
38790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38791 done; \
a90ef4bf 38792 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
38793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38795 "RANLIB=$${RANLIB}" \
0c24b341 38796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
38797 html) \
38798 || exit 1
38799
a90ef4bf 38800@endif target-libgcc
6d389afc 38801
a90ef4bf
JM
38802.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
38803maybe-TAGS-target-libgcc:
38804@if target-libgcc
38805maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 38806
a90ef4bf
JM
38807TAGS-target-libgcc: \
38808 configure-target-libgcc
0aed8855 38809 @: $(MAKE); $(unstage)
a90ef4bf 38810 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38811 r=`${PWD_COMMAND}`; export r; \
38812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38813 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38814 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38815 for flag in $(EXTRA_TARGET_FLAGS); do \
38816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38817 done; \
a90ef4bf 38818 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38821 "RANLIB=$${RANLIB}" \
0c24b341 38822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38823 TAGS) \
4b1cb4fe
DD
38824 || exit 1
38825
a90ef4bf 38826@endif target-libgcc
4b1cb4fe 38827
a90ef4bf
JM
38828.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
38829maybe-install-info-target-libgcc:
38830@if target-libgcc
38831maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 38832
a90ef4bf
JM
38833install-info-target-libgcc: \
38834 configure-target-libgcc \
38835 info-target-libgcc
0aed8855 38836 @: $(MAKE); $(unstage)
a90ef4bf 38837 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38838 r=`${PWD_COMMAND}`; export r; \
38839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38840 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38841 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38842 for flag in $(EXTRA_TARGET_FLAGS); do \
38843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38844 done; \
a90ef4bf 38845 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38848 "RANLIB=$${RANLIB}" \
0c24b341 38849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38850 install-info) \
4b1cb4fe
DD
38851 || exit 1
38852
a90ef4bf 38853@endif target-libgcc
4b1cb4fe 38854
a90ef4bf
JM
38855.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
38856maybe-install-pdf-target-libgcc:
38857@if target-libgcc
38858maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 38859
a90ef4bf
JM
38860install-pdf-target-libgcc: \
38861 configure-target-libgcc \
38862 pdf-target-libgcc
a3ca38d2 38863 @: $(MAKE); $(unstage)
a90ef4bf 38864 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
a3ca38d2
DD
38865 r=`${PWD_COMMAND}`; export r; \
38866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38867 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38868 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc" ; \
a3ca38d2
DD
38869 for flag in $(EXTRA_TARGET_FLAGS); do \
38870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38871 done; \
a90ef4bf 38872 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
38873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38875 "RANLIB=$${RANLIB}" \
0c24b341 38876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38877 install-pdf) \
38878 || exit 1
38879
a90ef4bf 38880@endif target-libgcc
a3ca38d2 38881
a90ef4bf
JM
38882.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
38883maybe-install-html-target-libgcc:
38884@if target-libgcc
38885maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 38886
a90ef4bf
JM
38887install-html-target-libgcc: \
38888 configure-target-libgcc \
38889 html-target-libgcc
108a6f8e 38890 @: $(MAKE); $(unstage)
a90ef4bf 38891 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
108a6f8e
CD
38892 r=`${PWD_COMMAND}`; export r; \
38893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38894 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38895 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc" ; \
108a6f8e
CD
38896 for flag in $(EXTRA_TARGET_FLAGS); do \
38897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38898 done; \
a90ef4bf 38899 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
38900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38902 "RANLIB=$${RANLIB}" \
0c24b341 38903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
38904 install-html) \
38905 || exit 1
38906
a90ef4bf 38907@endif target-libgcc
108a6f8e 38908
a90ef4bf
JM
38909.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
38910maybe-installcheck-target-libgcc:
38911@if target-libgcc
38912maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 38913
a90ef4bf
JM
38914installcheck-target-libgcc: \
38915 configure-target-libgcc
0aed8855 38916 @: $(MAKE); $(unstage)
a90ef4bf 38917 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38918 r=`${PWD_COMMAND}`; export r; \
38919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38920 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38921 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38922 for flag in $(EXTRA_TARGET_FLAGS); do \
38923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38924 done; \
a90ef4bf 38925 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38928 "RANLIB=$${RANLIB}" \
0c24b341 38929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38930 installcheck) \
4b1cb4fe
DD
38931 || exit 1
38932
a90ef4bf 38933@endif target-libgcc
4b1cb4fe 38934
a90ef4bf
JM
38935.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
38936maybe-mostlyclean-target-libgcc:
38937@if target-libgcc
38938maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 38939
a90ef4bf 38940mostlyclean-target-libgcc:
0aed8855 38941 @: $(MAKE); $(unstage)
a90ef4bf 38942 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38943 r=`${PWD_COMMAND}`; export r; \
38944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38945 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38946 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38947 for flag in $(EXTRA_TARGET_FLAGS); do \
38948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38949 done; \
a90ef4bf 38950 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38953 "RANLIB=$${RANLIB}" \
0c24b341 38954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38955 mostlyclean) \
4b1cb4fe
DD
38956 || exit 1
38957
a90ef4bf 38958@endif target-libgcc
4b1cb4fe 38959
a90ef4bf
JM
38960.PHONY: maybe-clean-target-libgcc clean-target-libgcc
38961maybe-clean-target-libgcc:
38962@if target-libgcc
38963maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 38964
a90ef4bf 38965clean-target-libgcc:
0aed8855 38966 @: $(MAKE); $(unstage)
a90ef4bf 38967 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38968 r=`${PWD_COMMAND}`; export r; \
38969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38970 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38971 echo "Doing clean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38972 for flag in $(EXTRA_TARGET_FLAGS); do \
38973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38974 done; \
a90ef4bf 38975 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38978 "RANLIB=$${RANLIB}" \
0c24b341 38979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38980 clean) \
4b1cb4fe
DD
38981 || exit 1
38982
a90ef4bf 38983@endif target-libgcc
4b1cb4fe 38984
a90ef4bf
JM
38985.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
38986maybe-distclean-target-libgcc:
38987@if target-libgcc
38988maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 38989
a90ef4bf 38990distclean-target-libgcc:
0aed8855 38991 @: $(MAKE); $(unstage)
a90ef4bf 38992 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38993 r=`${PWD_COMMAND}`; export r; \
38994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38995 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38996 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38997 for flag in $(EXTRA_TARGET_FLAGS); do \
38998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38999 done; \
a90ef4bf 39000 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39003 "RANLIB=$${RANLIB}" \
0c24b341 39004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39005 distclean) \
4b1cb4fe
DD
39006 || exit 1
39007
a90ef4bf 39008@endif target-libgcc
4b1cb4fe 39009
a90ef4bf
JM
39010.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
39011maybe-maintainer-clean-target-libgcc:
39012@if target-libgcc
39013maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 39014
a90ef4bf 39015maintainer-clean-target-libgcc:
0aed8855 39016 @: $(MAKE); $(unstage)
a90ef4bf 39017 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
39018 r=`${PWD_COMMAND}`; export r; \
39019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39020 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39021 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
39022 for flag in $(EXTRA_TARGET_FLAGS); do \
39023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39024 done; \
a90ef4bf 39025 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39028 "RANLIB=$${RANLIB}" \
0c24b341 39029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39030 maintainer-clean) \
4b1cb4fe
DD
39031 || exit 1
39032
a90ef4bf 39033@endif target-libgcc
4b1cb4fe
DD
39034
39035
3866be5d 39036
a7254363 39037
e90269c8 39038
2bf680c4
ILT
39039.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
39040maybe-configure-target-libbacktrace:
39041@if gcc-bootstrap
39042configure-target-libbacktrace: stage_current
39043@endif gcc-bootstrap
39044@if target-libbacktrace
39045maybe-configure-target-libbacktrace: configure-target-libbacktrace
39046configure-target-libbacktrace:
39047 @: $(MAKE); $(unstage)
39048 @r=`${PWD_COMMAND}`; export r; \
39049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39050 echo "Checking multilib configuration for libbacktrace..."; \
39051 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace ; \
39052 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null ; \
39053 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39054 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39055 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
39056 else \
39057 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
39058 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39059 fi; \
39060 else \
39061 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39062 fi; \
39063 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
39064 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace ; \
39065 $(NORMAL_TARGET_EXPORTS) \
39066 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
39067 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
39068 case $(srcdir) in \
39069 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39070 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
39071 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39072 esac; \
1b6c0831 39073 module_srcdir=libbacktrace; \
2bf680c4 39074 rm -f no-such-file || : ; \
1b6c0831
L
39075 CONFIG_SITE=no-such-file $(SHELL) \
39076 $$s/$$module_srcdir/configure \
39077 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 39078 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39079 --target=${target_alias} \
2bf680c4
ILT
39080 || exit 1
39081@endif target-libbacktrace
39082
39083
39084
39085
39086
39087.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
39088maybe-all-target-libbacktrace:
39089@if gcc-bootstrap
39090all-target-libbacktrace: stage_current
39091@endif gcc-bootstrap
39092@if target-libbacktrace
39093TARGET-target-libbacktrace=all
39094maybe-all-target-libbacktrace: all-target-libbacktrace
39095all-target-libbacktrace: configure-target-libbacktrace
39096 @: $(MAKE); $(unstage)
39097 @r=`${PWD_COMMAND}`; export r; \
39098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39099 $(NORMAL_TARGET_EXPORTS) \
39100 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 39101 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
39102 $(TARGET-target-libbacktrace))
39103@endif target-libbacktrace
39104
39105
39106
39107
39108
39109.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
39110maybe-check-target-libbacktrace:
39111@if target-libbacktrace
39112maybe-check-target-libbacktrace: check-target-libbacktrace
39113
39114check-target-libbacktrace:
39115 @: $(MAKE); $(unstage)
39116 @r=`${PWD_COMMAND}`; export r; \
39117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39118 $(NORMAL_TARGET_EXPORTS) \
39119 (cd $(TARGET_SUBDIR)/libbacktrace && \
39120 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39121
39122@endif target-libbacktrace
39123
39124.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
39125maybe-install-target-libbacktrace:
39126@if target-libbacktrace
39127maybe-install-target-libbacktrace: install-target-libbacktrace
39128
39129install-target-libbacktrace: installdirs
39130 @: $(MAKE); $(unstage)
39131 @r=`${PWD_COMMAND}`; export r; \
39132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39133 $(NORMAL_TARGET_EXPORTS) \
39134 (cd $(TARGET_SUBDIR)/libbacktrace && \
39135 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39136
39137@endif target-libbacktrace
39138
39139.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
39140maybe-install-strip-target-libbacktrace:
39141@if target-libbacktrace
39142maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
39143
39144install-strip-target-libbacktrace: installdirs
39145 @: $(MAKE); $(unstage)
39146 @r=`${PWD_COMMAND}`; export r; \
39147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39148 $(NORMAL_TARGET_EXPORTS) \
39149 (cd $(TARGET_SUBDIR)/libbacktrace && \
39150 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39151
39152@endif target-libbacktrace
39153
39154# Other targets (info, dvi, pdf, etc.)
39155
39156.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
39157maybe-info-target-libbacktrace:
39158@if target-libbacktrace
39159maybe-info-target-libbacktrace: info-target-libbacktrace
39160
39161info-target-libbacktrace: \
39162 configure-target-libbacktrace
39163 @: $(MAKE); $(unstage)
39164 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39165 r=`${PWD_COMMAND}`; export r; \
39166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39167 $(NORMAL_TARGET_EXPORTS) \
39168 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace" ; \
39169 for flag in $(EXTRA_TARGET_FLAGS); do \
39170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39171 done; \
39172 (cd $(TARGET_SUBDIR)/libbacktrace && \
39173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39175 "RANLIB=$${RANLIB}" \
39176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39177 info) \
39178 || exit 1
39179
39180@endif target-libbacktrace
39181
39182.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
39183maybe-dvi-target-libbacktrace:
39184@if target-libbacktrace
39185maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
39186
39187dvi-target-libbacktrace: \
39188 configure-target-libbacktrace
39189 @: $(MAKE); $(unstage)
39190 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39191 r=`${PWD_COMMAND}`; export r; \
39192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39193 $(NORMAL_TARGET_EXPORTS) \
39194 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace" ; \
39195 for flag in $(EXTRA_TARGET_FLAGS); do \
39196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39197 done; \
39198 (cd $(TARGET_SUBDIR)/libbacktrace && \
39199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39201 "RANLIB=$${RANLIB}" \
39202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39203 dvi) \
39204 || exit 1
39205
39206@endif target-libbacktrace
39207
39208.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
39209maybe-pdf-target-libbacktrace:
39210@if target-libbacktrace
39211maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
39212
39213pdf-target-libbacktrace: \
39214 configure-target-libbacktrace
39215 @: $(MAKE); $(unstage)
39216 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39217 r=`${PWD_COMMAND}`; export r; \
39218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39219 $(NORMAL_TARGET_EXPORTS) \
39220 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace" ; \
39221 for flag in $(EXTRA_TARGET_FLAGS); do \
39222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39223 done; \
39224 (cd $(TARGET_SUBDIR)/libbacktrace && \
39225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39227 "RANLIB=$${RANLIB}" \
39228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39229 pdf) \
39230 || exit 1
39231
39232@endif target-libbacktrace
39233
39234.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
39235maybe-html-target-libbacktrace:
39236@if target-libbacktrace
39237maybe-html-target-libbacktrace: html-target-libbacktrace
39238
39239html-target-libbacktrace: \
39240 configure-target-libbacktrace
39241 @: $(MAKE); $(unstage)
39242 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39243 r=`${PWD_COMMAND}`; export r; \
39244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39245 $(NORMAL_TARGET_EXPORTS) \
39246 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace" ; \
39247 for flag in $(EXTRA_TARGET_FLAGS); do \
39248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39249 done; \
39250 (cd $(TARGET_SUBDIR)/libbacktrace && \
39251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39253 "RANLIB=$${RANLIB}" \
39254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39255 html) \
39256 || exit 1
39257
39258@endif target-libbacktrace
39259
39260.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
39261maybe-TAGS-target-libbacktrace:
39262@if target-libbacktrace
39263maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
39264
39265TAGS-target-libbacktrace: \
39266 configure-target-libbacktrace
39267 @: $(MAKE); $(unstage)
39268 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39269 r=`${PWD_COMMAND}`; export r; \
39270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39271 $(NORMAL_TARGET_EXPORTS) \
39272 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace" ; \
39273 for flag in $(EXTRA_TARGET_FLAGS); do \
39274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39275 done; \
39276 (cd $(TARGET_SUBDIR)/libbacktrace && \
39277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39279 "RANLIB=$${RANLIB}" \
39280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39281 TAGS) \
39282 || exit 1
39283
39284@endif target-libbacktrace
39285
39286.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
39287maybe-install-info-target-libbacktrace:
39288@if target-libbacktrace
39289maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
39290
39291install-info-target-libbacktrace: \
39292 configure-target-libbacktrace \
39293 info-target-libbacktrace
39294 @: $(MAKE); $(unstage)
39295 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39296 r=`${PWD_COMMAND}`; export r; \
39297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39298 $(NORMAL_TARGET_EXPORTS) \
39299 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace" ; \
39300 for flag in $(EXTRA_TARGET_FLAGS); do \
39301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39302 done; \
39303 (cd $(TARGET_SUBDIR)/libbacktrace && \
39304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39306 "RANLIB=$${RANLIB}" \
39307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39308 install-info) \
39309 || exit 1
39310
39311@endif target-libbacktrace
39312
39313.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
39314maybe-install-pdf-target-libbacktrace:
39315@if target-libbacktrace
39316maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
39317
39318install-pdf-target-libbacktrace: \
39319 configure-target-libbacktrace \
39320 pdf-target-libbacktrace
39321 @: $(MAKE); $(unstage)
39322 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39323 r=`${PWD_COMMAND}`; export r; \
39324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39325 $(NORMAL_TARGET_EXPORTS) \
39326 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace" ; \
39327 for flag in $(EXTRA_TARGET_FLAGS); do \
39328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39329 done; \
39330 (cd $(TARGET_SUBDIR)/libbacktrace && \
39331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39333 "RANLIB=$${RANLIB}" \
39334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39335 install-pdf) \
39336 || exit 1
39337
39338@endif target-libbacktrace
39339
39340.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
39341maybe-install-html-target-libbacktrace:
39342@if target-libbacktrace
39343maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
39344
39345install-html-target-libbacktrace: \
39346 configure-target-libbacktrace \
39347 html-target-libbacktrace
39348 @: $(MAKE); $(unstage)
39349 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39350 r=`${PWD_COMMAND}`; export r; \
39351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39352 $(NORMAL_TARGET_EXPORTS) \
39353 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace" ; \
39354 for flag in $(EXTRA_TARGET_FLAGS); do \
39355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39356 done; \
39357 (cd $(TARGET_SUBDIR)/libbacktrace && \
39358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39360 "RANLIB=$${RANLIB}" \
39361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39362 install-html) \
39363 || exit 1
39364
39365@endif target-libbacktrace
39366
39367.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
39368maybe-installcheck-target-libbacktrace:
39369@if target-libbacktrace
39370maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
39371
39372installcheck-target-libbacktrace: \
39373 configure-target-libbacktrace
39374 @: $(MAKE); $(unstage)
39375 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39376 r=`${PWD_COMMAND}`; export r; \
39377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39378 $(NORMAL_TARGET_EXPORTS) \
39379 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace" ; \
39380 for flag in $(EXTRA_TARGET_FLAGS); do \
39381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39382 done; \
39383 (cd $(TARGET_SUBDIR)/libbacktrace && \
39384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39386 "RANLIB=$${RANLIB}" \
39387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39388 installcheck) \
39389 || exit 1
39390
39391@endif target-libbacktrace
39392
39393.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
39394maybe-mostlyclean-target-libbacktrace:
39395@if target-libbacktrace
39396maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
39397
39398mostlyclean-target-libbacktrace:
39399 @: $(MAKE); $(unstage)
39400 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39401 r=`${PWD_COMMAND}`; export r; \
39402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39403 $(NORMAL_TARGET_EXPORTS) \
39404 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace" ; \
39405 for flag in $(EXTRA_TARGET_FLAGS); do \
39406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39407 done; \
39408 (cd $(TARGET_SUBDIR)/libbacktrace && \
39409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39411 "RANLIB=$${RANLIB}" \
39412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39413 mostlyclean) \
39414 || exit 1
39415
39416@endif target-libbacktrace
39417
39418.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
39419maybe-clean-target-libbacktrace:
39420@if target-libbacktrace
39421maybe-clean-target-libbacktrace: clean-target-libbacktrace
39422
39423clean-target-libbacktrace:
39424 @: $(MAKE); $(unstage)
39425 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39426 r=`${PWD_COMMAND}`; export r; \
39427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39428 $(NORMAL_TARGET_EXPORTS) \
39429 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace" ; \
39430 for flag in $(EXTRA_TARGET_FLAGS); do \
39431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39432 done; \
39433 (cd $(TARGET_SUBDIR)/libbacktrace && \
39434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39436 "RANLIB=$${RANLIB}" \
39437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39438 clean) \
39439 || exit 1
39440
39441@endif target-libbacktrace
39442
39443.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
39444maybe-distclean-target-libbacktrace:
39445@if target-libbacktrace
39446maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
39447
39448distclean-target-libbacktrace:
39449 @: $(MAKE); $(unstage)
39450 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39451 r=`${PWD_COMMAND}`; export r; \
39452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39453 $(NORMAL_TARGET_EXPORTS) \
39454 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace" ; \
39455 for flag in $(EXTRA_TARGET_FLAGS); do \
39456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39457 done; \
39458 (cd $(TARGET_SUBDIR)/libbacktrace && \
39459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39461 "RANLIB=$${RANLIB}" \
39462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39463 distclean) \
39464 || exit 1
39465
39466@endif target-libbacktrace
39467
39468.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
39469maybe-maintainer-clean-target-libbacktrace:
39470@if target-libbacktrace
39471maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
39472
39473maintainer-clean-target-libbacktrace:
39474 @: $(MAKE); $(unstage)
39475 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39476 r=`${PWD_COMMAND}`; export r; \
39477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39478 $(NORMAL_TARGET_EXPORTS) \
39479 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace" ; \
39480 for flag in $(EXTRA_TARGET_FLAGS); do \
39481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39482 done; \
39483 (cd $(TARGET_SUBDIR)/libbacktrace && \
39484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39486 "RANLIB=$${RANLIB}" \
39487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39488 maintainer-clean) \
39489 || exit 1
39490
39491@endif target-libbacktrace
39492
39493
39494
39495
39496
a90ef4bf
JM
39497.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
39498maybe-configure-target-libquadmath:
4f0ef2d8 39499@if gcc-bootstrap
a90ef4bf 39500configure-target-libquadmath: stage_current
4f0ef2d8 39501@endif gcc-bootstrap
a90ef4bf
JM
39502@if target-libquadmath
39503maybe-configure-target-libquadmath: configure-target-libquadmath
39504configure-target-libquadmath:
0aed8855
PB
39505 @: $(MAKE); $(unstage)
39506 @r=`${PWD_COMMAND}`; export r; \
39507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39508 echo "Checking multilib configuration for libquadmath..."; \
39509 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
39510 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null ; \
39511 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39512 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39513 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 39514 else \
a90ef4bf
JM
39515 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
39516 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
39517 fi; \
39518 else \
a90ef4bf 39519 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 39520 fi; \
a90ef4bf
JM
39521 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
39522 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
1f53ca9a 39523 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39524 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
39525 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 39526 case $(srcdir) in \
b00612cc 39527 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39528 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 39529 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 39530 esac; \
1b6c0831 39531 module_srcdir=libquadmath; \
4fa63067 39532 rm -f no-such-file || : ; \
1b6c0831
L
39533 CONFIG_SITE=no-such-file $(SHELL) \
39534 $$s/$$module_srcdir/configure \
39535 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39536 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39537 --target=${target_alias} \
e2b9e2dc 39538 || exit 1
a90ef4bf 39539@endif target-libquadmath
e2b9e2dc 39540
a7254363
PB
39541
39542
d545f33b
PB
39543
39544
a90ef4bf
JM
39545.PHONY: all-target-libquadmath maybe-all-target-libquadmath
39546maybe-all-target-libquadmath:
4f0ef2d8 39547@if gcc-bootstrap
a90ef4bf 39548all-target-libquadmath: stage_current
4f0ef2d8 39549@endif gcc-bootstrap
a90ef4bf
JM
39550@if target-libquadmath
39551TARGET-target-libquadmath=all
39552maybe-all-target-libquadmath: all-target-libquadmath
39553all-target-libquadmath: configure-target-libquadmath
0aed8855 39554 @: $(MAKE); $(unstage)
b40e3958
L
39555 @r=`${PWD_COMMAND}`; export r; \
39556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39557 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39558 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 39559 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39560 $(TARGET-target-libquadmath))
39561@endif target-libquadmath
3866be5d 39562
a7254363
PB
39563
39564
d545f33b
PB
39565
39566
a90ef4bf
JM
39567.PHONY: check-target-libquadmath maybe-check-target-libquadmath
39568maybe-check-target-libquadmath:
39569@if target-libquadmath
39570maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 39571
a90ef4bf 39572check-target-libquadmath:
0aed8855 39573 @: $(MAKE); $(unstage)
b40e3958
L
39574 @r=`${PWD_COMMAND}`; export r; \
39575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39576 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39577 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 39578 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 39579
a90ef4bf 39580@endif target-libquadmath
3866be5d 39581
a90ef4bf
JM
39582.PHONY: install-target-libquadmath maybe-install-target-libquadmath
39583maybe-install-target-libquadmath:
39584@if target-libquadmath
39585maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 39586
a90ef4bf 39587install-target-libquadmath: installdirs
0aed8855 39588 @: $(MAKE); $(unstage)
b40e3958
L
39589 @r=`${PWD_COMMAND}`; export r; \
39590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39591 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39592 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 39593 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 39594
a90ef4bf 39595@endif target-libquadmath
3866be5d 39596
a90ef4bf
JM
39597.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
39598maybe-install-strip-target-libquadmath:
39599@if target-libquadmath
39600maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 39601
a90ef4bf 39602install-strip-target-libquadmath: installdirs
9b980aa1
RW
39603 @: $(MAKE); $(unstage)
39604 @r=`${PWD_COMMAND}`; export r; \
39605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39606 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39607 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
39608 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39609
a90ef4bf 39610@endif target-libquadmath
9b980aa1 39611
56a8fe78 39612# Other targets (info, dvi, pdf, etc.)
4fa63067 39613
a90ef4bf
JM
39614.PHONY: maybe-info-target-libquadmath info-target-libquadmath
39615maybe-info-target-libquadmath:
39616@if target-libquadmath
39617maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 39618
a90ef4bf
JM
39619info-target-libquadmath: \
39620 configure-target-libquadmath
0aed8855 39621 @: $(MAKE); $(unstage)
a90ef4bf 39622 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39623 r=`${PWD_COMMAND}`; export r; \
b40e3958 39624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39625 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39626 echo "Doing info in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39627 for flag in $(EXTRA_TARGET_FLAGS); do \
39628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39629 done; \
a90ef4bf 39630 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39633 "RANLIB=$${RANLIB}" \
0c24b341 39634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39635 info) \
4fa63067 39636 || exit 1
3866be5d 39637
a90ef4bf 39638@endif target-libquadmath
3866be5d 39639
a90ef4bf
JM
39640.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
39641maybe-dvi-target-libquadmath:
39642@if target-libquadmath
39643maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 39644
a90ef4bf
JM
39645dvi-target-libquadmath: \
39646 configure-target-libquadmath
0aed8855 39647 @: $(MAKE); $(unstage)
a90ef4bf 39648 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39649 r=`${PWD_COMMAND}`; export r; \
b40e3958 39650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39651 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39652 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39653 for flag in $(EXTRA_TARGET_FLAGS); do \
39654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39655 done; \
a90ef4bf 39656 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39659 "RANLIB=$${RANLIB}" \
0c24b341 39660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39661 dvi) \
4fa63067 39662 || exit 1
3866be5d 39663
a90ef4bf 39664@endif target-libquadmath
3866be5d 39665
a90ef4bf
JM
39666.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
39667maybe-pdf-target-libquadmath:
39668@if target-libquadmath
39669maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 39670
a90ef4bf
JM
39671pdf-target-libquadmath: \
39672 configure-target-libquadmath
56a8fe78 39673 @: $(MAKE); $(unstage)
a90ef4bf 39674 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
56a8fe78
DD
39675 r=`${PWD_COMMAND}`; export r; \
39676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39677 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39678 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath" ; \
56a8fe78
DD
39679 for flag in $(EXTRA_TARGET_FLAGS); do \
39680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39681 done; \
a90ef4bf 39682 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
39683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39685 "RANLIB=$${RANLIB}" \
0c24b341 39686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39687 pdf) \
39688 || exit 1
39689
a90ef4bf 39690@endif target-libquadmath
56a8fe78 39691
a90ef4bf
JM
39692.PHONY: maybe-html-target-libquadmath html-target-libquadmath
39693maybe-html-target-libquadmath:
39694@if target-libquadmath
39695maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 39696
a90ef4bf
JM
39697html-target-libquadmath: \
39698 configure-target-libquadmath
0aed8855 39699 @: $(MAKE); $(unstage)
a90ef4bf 39700 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
6d389afc
MS
39701 r=`${PWD_COMMAND}`; export r; \
39702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 39703 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39704 echo "Doing html in $(TARGET_SUBDIR)/libquadmath" ; \
6d389afc
MS
39705 for flag in $(EXTRA_TARGET_FLAGS); do \
39706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39707 done; \
a90ef4bf 39708 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
39709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39711 "RANLIB=$${RANLIB}" \
0c24b341 39712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39713 html) \
39714 || exit 1
39715
a90ef4bf 39716@endif target-libquadmath
6d389afc 39717
a90ef4bf
JM
39718.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
39719maybe-TAGS-target-libquadmath:
39720@if target-libquadmath
39721maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 39722
a90ef4bf
JM
39723TAGS-target-libquadmath: \
39724 configure-target-libquadmath
0aed8855 39725 @: $(MAKE); $(unstage)
a90ef4bf 39726 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b40e3958
L
39727 r=`${PWD_COMMAND}`; export r; \
39728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39729 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39730 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39731 for flag in $(EXTRA_TARGET_FLAGS); do \
39732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39733 done; \
a90ef4bf 39734 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39737 "RANLIB=$${RANLIB}" \
0c24b341 39738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39739 TAGS) \
e2b9e2dc
NN
39740 || exit 1
39741
a90ef4bf 39742@endif target-libquadmath
4fa63067 39743
a90ef4bf
JM
39744.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
39745maybe-install-info-target-libquadmath:
39746@if target-libquadmath
39747maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 39748
a90ef4bf
JM
39749install-info-target-libquadmath: \
39750 configure-target-libquadmath \
39751 info-target-libquadmath
0aed8855 39752 @: $(MAKE); $(unstage)
a90ef4bf 39753 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39754 r=`${PWD_COMMAND}`; export r; \
b40e3958 39755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39756 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39757 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39758 for flag in $(EXTRA_TARGET_FLAGS); do \
39759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39760 done; \
a90ef4bf 39761 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39764 "RANLIB=$${RANLIB}" \
0c24b341 39765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39766 install-info) \
4fa63067 39767 || exit 1
3866be5d 39768
a90ef4bf 39769@endif target-libquadmath
3866be5d 39770
a90ef4bf
JM
39771.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
39772maybe-install-pdf-target-libquadmath:
39773@if target-libquadmath
39774maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 39775
a90ef4bf
JM
39776install-pdf-target-libquadmath: \
39777 configure-target-libquadmath \
39778 pdf-target-libquadmath
a3ca38d2 39779 @: $(MAKE); $(unstage)
a90ef4bf 39780 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
a3ca38d2
DD
39781 r=`${PWD_COMMAND}`; export r; \
39782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39783 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39784 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath" ; \
a3ca38d2
DD
39785 for flag in $(EXTRA_TARGET_FLAGS); do \
39786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39787 done; \
a90ef4bf 39788 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
39789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39791 "RANLIB=$${RANLIB}" \
0c24b341 39792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39793 install-pdf) \
39794 || exit 1
39795
a90ef4bf 39796@endif target-libquadmath
a3ca38d2 39797
a90ef4bf
JM
39798.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
39799maybe-install-html-target-libquadmath:
39800@if target-libquadmath
39801maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 39802
a90ef4bf
JM
39803install-html-target-libquadmath: \
39804 configure-target-libquadmath \
39805 html-target-libquadmath
108a6f8e 39806 @: $(MAKE); $(unstage)
a90ef4bf 39807 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
108a6f8e
CD
39808 r=`${PWD_COMMAND}`; export r; \
39809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39810 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39811 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath" ; \
108a6f8e
CD
39812 for flag in $(EXTRA_TARGET_FLAGS); do \
39813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39814 done; \
a90ef4bf 39815 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
39816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39818 "RANLIB=$${RANLIB}" \
0c24b341 39819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39820 install-html) \
39821 || exit 1
39822
a90ef4bf 39823@endif target-libquadmath
108a6f8e 39824
a90ef4bf
JM
39825.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
39826maybe-installcheck-target-libquadmath:
39827@if target-libquadmath
39828maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 39829
a90ef4bf
JM
39830installcheck-target-libquadmath: \
39831 configure-target-libquadmath
0aed8855 39832 @: $(MAKE); $(unstage)
a90ef4bf 39833 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39834 r=`${PWD_COMMAND}`; export r; \
b40e3958 39835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39836 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39837 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39838 for flag in $(EXTRA_TARGET_FLAGS); do \
39839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39840 done; \
a90ef4bf 39841 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39844 "RANLIB=$${RANLIB}" \
0c24b341 39845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39846 installcheck) \
4fa63067 39847 || exit 1
3866be5d 39848
a90ef4bf 39849@endif target-libquadmath
3866be5d 39850
a90ef4bf
JM
39851.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
39852maybe-mostlyclean-target-libquadmath:
39853@if target-libquadmath
39854maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 39855
a90ef4bf 39856mostlyclean-target-libquadmath:
0aed8855 39857 @: $(MAKE); $(unstage)
a90ef4bf 39858 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39859 r=`${PWD_COMMAND}`; export r; \
b40e3958 39860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39861 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39862 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39863 for flag in $(EXTRA_TARGET_FLAGS); do \
39864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39865 done; \
a90ef4bf 39866 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39869 "RANLIB=$${RANLIB}" \
0c24b341 39870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39871 mostlyclean) \
4fa63067 39872 || exit 1
3866be5d 39873
a90ef4bf 39874@endif target-libquadmath
3866be5d 39875
a90ef4bf
JM
39876.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
39877maybe-clean-target-libquadmath:
39878@if target-libquadmath
39879maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 39880
a90ef4bf 39881clean-target-libquadmath:
0aed8855 39882 @: $(MAKE); $(unstage)
a90ef4bf 39883 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b40e3958
L
39884 r=`${PWD_COMMAND}`; export r; \
39885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39886 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39887 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39888 for flag in $(EXTRA_TARGET_FLAGS); do \
39889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39890 done; \
a90ef4bf 39891 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39894 "RANLIB=$${RANLIB}" \
0c24b341 39895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39896 clean) \
e2b9e2dc
NN
39897 || exit 1
39898
a90ef4bf 39899@endif target-libquadmath
3866be5d 39900
a90ef4bf
JM
39901.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
39902maybe-distclean-target-libquadmath:
39903@if target-libquadmath
39904maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 39905
a90ef4bf 39906distclean-target-libquadmath:
0aed8855 39907 @: $(MAKE); $(unstage)
a90ef4bf 39908 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39909 r=`${PWD_COMMAND}`; export r; \
b40e3958 39910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39911 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39912 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39913 for flag in $(EXTRA_TARGET_FLAGS); do \
39914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39915 done; \
a90ef4bf 39916 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39919 "RANLIB=$${RANLIB}" \
0c24b341 39920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39921 distclean) \
4fa63067 39922 || exit 1
3866be5d 39923
a90ef4bf 39924@endif target-libquadmath
3866be5d 39925
a90ef4bf
JM
39926.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
39927maybe-maintainer-clean-target-libquadmath:
39928@if target-libquadmath
39929maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 39930
a90ef4bf 39931maintainer-clean-target-libquadmath:
0aed8855 39932 @: $(MAKE); $(unstage)
a90ef4bf 39933 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39934 r=`${PWD_COMMAND}`; export r; \
b40e3958 39935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39936 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39937 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39938 for flag in $(EXTRA_TARGET_FLAGS); do \
39939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39940 done; \
a90ef4bf 39941 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39944 "RANLIB=$${RANLIB}" \
0c24b341 39945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39946 maintainer-clean) \
4fa63067 39947 || exit 1
3866be5d 39948
a90ef4bf 39949@endif target-libquadmath
3866be5d 39950
4fa63067 39951
4fa63067 39952
a7254363 39953
e90269c8 39954
a90ef4bf
JM
39955.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
39956maybe-configure-target-libgfortran:
e552509b 39957@if gcc-bootstrap
a90ef4bf 39958configure-target-libgfortran: stage_current
e552509b 39959@endif gcc-bootstrap
a90ef4bf
JM
39960@if target-libgfortran
39961maybe-configure-target-libgfortran: configure-target-libgfortran
39962configure-target-libgfortran:
e552509b
ILT
39963 @: $(MAKE); $(unstage)
39964 @r=`${PWD_COMMAND}`; export r; \
39965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39966 echo "Checking multilib configuration for libgfortran..."; \
39967 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
39968 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
39969 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
39970 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
39971 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 39972 else \
a90ef4bf
JM
39973 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
39974 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
39975 fi; \
39976 else \
a90ef4bf 39977 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 39978 fi; \
a90ef4bf
JM
39979 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
39980 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
e552509b 39981 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39982 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
39983 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
39984 case $(srcdir) in \
39985 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39986 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
39987 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39988 esac; \
1b6c0831 39989 module_srcdir=libgfortran; \
e552509b 39990 rm -f no-such-file || : ; \
1b6c0831
L
39991 CONFIG_SITE=no-such-file $(SHELL) \
39992 $$s/$$module_srcdir/configure \
39993 --srcdir=$${topdir}/$$module_srcdir \
e552509b 39994 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39995 --target=${target_alias} \
e552509b 39996 || exit 1
a90ef4bf 39997@endif target-libgfortran
e552509b
ILT
39998
39999
40000
40001
40002
a90ef4bf
JM
40003.PHONY: all-target-libgfortran maybe-all-target-libgfortran
40004maybe-all-target-libgfortran:
e552509b 40005@if gcc-bootstrap
a90ef4bf 40006all-target-libgfortran: stage_current
e552509b 40007@endif gcc-bootstrap
a90ef4bf
JM
40008@if target-libgfortran
40009TARGET-target-libgfortran=all
40010maybe-all-target-libgfortran: all-target-libgfortran
40011all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
40012 @: $(MAKE); $(unstage)
40013 @r=`${PWD_COMMAND}`; export r; \
40014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40015 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40016 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 40017 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40018 $(TARGET-target-libgfortran))
40019@endif target-libgfortran
e552509b
ILT
40020
40021
40022
40023
40024
a90ef4bf
JM
40025.PHONY: check-target-libgfortran maybe-check-target-libgfortran
40026maybe-check-target-libgfortran:
40027@if target-libgfortran
40028maybe-check-target-libgfortran: check-target-libgfortran
e552509b 40029
a90ef4bf 40030check-target-libgfortran:
e552509b
ILT
40031 @: $(MAKE); $(unstage)
40032 @r=`${PWD_COMMAND}`; export r; \
40033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40034 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40035 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40036 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40037
a90ef4bf 40038@endif target-libgfortran
e552509b 40039
a90ef4bf
JM
40040.PHONY: install-target-libgfortran maybe-install-target-libgfortran
40041maybe-install-target-libgfortran:
40042@if target-libgfortran
40043maybe-install-target-libgfortran: install-target-libgfortran
e552509b 40044
a90ef4bf 40045install-target-libgfortran: installdirs
e552509b
ILT
40046 @: $(MAKE); $(unstage)
40047 @r=`${PWD_COMMAND}`; export r; \
40048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40049 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40050 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40051 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40052
a90ef4bf 40053@endif target-libgfortran
e552509b 40054
a90ef4bf
JM
40055.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
40056maybe-install-strip-target-libgfortran:
40057@if target-libgfortran
40058maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 40059
a90ef4bf 40060install-strip-target-libgfortran: installdirs
9b980aa1
RW
40061 @: $(MAKE); $(unstage)
40062 @r=`${PWD_COMMAND}`; export r; \
40063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40064 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40065 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
40066 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40067
a90ef4bf 40068@endif target-libgfortran
9b980aa1 40069
e552509b
ILT
40070# Other targets (info, dvi, pdf, etc.)
40071
a90ef4bf
JM
40072.PHONY: maybe-info-target-libgfortran info-target-libgfortran
40073maybe-info-target-libgfortran:
40074@if target-libgfortran
40075maybe-info-target-libgfortran: info-target-libgfortran
e552509b 40076
a90ef4bf
JM
40077info-target-libgfortran: \
40078 configure-target-libgfortran
e552509b 40079 @: $(MAKE); $(unstage)
a90ef4bf 40080 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40081 r=`${PWD_COMMAND}`; export r; \
40082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40083 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40084 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40085 for flag in $(EXTRA_TARGET_FLAGS); do \
40086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40087 done; \
a90ef4bf 40088 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40091 "RANLIB=$${RANLIB}" \
40092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40093 info) \
40094 || exit 1
40095
a90ef4bf 40096@endif target-libgfortran
e552509b 40097
a90ef4bf
JM
40098.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
40099maybe-dvi-target-libgfortran:
40100@if target-libgfortran
40101maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 40102
a90ef4bf
JM
40103dvi-target-libgfortran: \
40104 configure-target-libgfortran
e552509b 40105 @: $(MAKE); $(unstage)
a90ef4bf 40106 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40107 r=`${PWD_COMMAND}`; export r; \
40108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40109 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40110 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40111 for flag in $(EXTRA_TARGET_FLAGS); do \
40112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40113 done; \
a90ef4bf 40114 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40117 "RANLIB=$${RANLIB}" \
40118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40119 dvi) \
40120 || exit 1
40121
a90ef4bf 40122@endif target-libgfortran
e552509b 40123
a90ef4bf
JM
40124.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
40125maybe-pdf-target-libgfortran:
40126@if target-libgfortran
40127maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 40128
a90ef4bf
JM
40129pdf-target-libgfortran: \
40130 configure-target-libgfortran
e552509b 40131 @: $(MAKE); $(unstage)
a90ef4bf 40132 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40133 r=`${PWD_COMMAND}`; export r; \
40134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40135 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40136 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40137 for flag in $(EXTRA_TARGET_FLAGS); do \
40138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40139 done; \
a90ef4bf 40140 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40143 "RANLIB=$${RANLIB}" \
40144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40145 pdf) \
40146 || exit 1
40147
a90ef4bf 40148@endif target-libgfortran
e552509b 40149
a90ef4bf
JM
40150.PHONY: maybe-html-target-libgfortran html-target-libgfortran
40151maybe-html-target-libgfortran:
40152@if target-libgfortran
40153maybe-html-target-libgfortran: html-target-libgfortran
e552509b 40154
a90ef4bf
JM
40155html-target-libgfortran: \
40156 configure-target-libgfortran
e552509b 40157 @: $(MAKE); $(unstage)
a90ef4bf 40158 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40159 r=`${PWD_COMMAND}`; export r; \
40160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40161 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40162 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40163 for flag in $(EXTRA_TARGET_FLAGS); do \
40164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40165 done; \
a90ef4bf 40166 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40169 "RANLIB=$${RANLIB}" \
40170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40171 html) \
40172 || exit 1
40173
a90ef4bf 40174@endif target-libgfortran
e552509b 40175
a90ef4bf
JM
40176.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
40177maybe-TAGS-target-libgfortran:
40178@if target-libgfortran
40179maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 40180
a90ef4bf
JM
40181TAGS-target-libgfortran: \
40182 configure-target-libgfortran
e552509b 40183 @: $(MAKE); $(unstage)
a90ef4bf 40184 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40185 r=`${PWD_COMMAND}`; export r; \
40186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40187 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40188 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40189 for flag in $(EXTRA_TARGET_FLAGS); do \
40190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40191 done; \
a90ef4bf 40192 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40195 "RANLIB=$${RANLIB}" \
40196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40197 TAGS) \
40198 || exit 1
40199
a90ef4bf 40200@endif target-libgfortran
e552509b 40201
a90ef4bf
JM
40202.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
40203maybe-install-info-target-libgfortran:
40204@if target-libgfortran
40205maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 40206
a90ef4bf
JM
40207install-info-target-libgfortran: \
40208 configure-target-libgfortran \
40209 info-target-libgfortran
e552509b 40210 @: $(MAKE); $(unstage)
a90ef4bf 40211 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40212 r=`${PWD_COMMAND}`; export r; \
40213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40214 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40215 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40216 for flag in $(EXTRA_TARGET_FLAGS); do \
40217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40218 done; \
a90ef4bf 40219 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40222 "RANLIB=$${RANLIB}" \
40223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40224 install-info) \
40225 || exit 1
40226
a90ef4bf 40227@endif target-libgfortran
e552509b 40228
a90ef4bf
JM
40229.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
40230maybe-install-pdf-target-libgfortran:
40231@if target-libgfortran
40232maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 40233
a90ef4bf
JM
40234install-pdf-target-libgfortran: \
40235 configure-target-libgfortran \
40236 pdf-target-libgfortran
e552509b 40237 @: $(MAKE); $(unstage)
a90ef4bf 40238 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40239 r=`${PWD_COMMAND}`; export r; \
40240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40241 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40242 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40243 for flag in $(EXTRA_TARGET_FLAGS); do \
40244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40245 done; \
a90ef4bf 40246 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40249 "RANLIB=$${RANLIB}" \
40250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40251 install-pdf) \
40252 || exit 1
40253
a90ef4bf 40254@endif target-libgfortran
e552509b 40255
a90ef4bf
JM
40256.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
40257maybe-install-html-target-libgfortran:
40258@if target-libgfortran
40259maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 40260
a90ef4bf
JM
40261install-html-target-libgfortran: \
40262 configure-target-libgfortran \
40263 html-target-libgfortran
e552509b 40264 @: $(MAKE); $(unstage)
a90ef4bf 40265 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40266 r=`${PWD_COMMAND}`; export r; \
40267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40268 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40269 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40270 for flag in $(EXTRA_TARGET_FLAGS); do \
40271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40272 done; \
a90ef4bf 40273 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40276 "RANLIB=$${RANLIB}" \
40277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40278 install-html) \
40279 || exit 1
40280
a90ef4bf 40281@endif target-libgfortran
e552509b 40282
a90ef4bf
JM
40283.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
40284maybe-installcheck-target-libgfortran:
40285@if target-libgfortran
40286maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 40287
a90ef4bf
JM
40288installcheck-target-libgfortran: \
40289 configure-target-libgfortran
e552509b 40290 @: $(MAKE); $(unstage)
a90ef4bf 40291 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40292 r=`${PWD_COMMAND}`; export r; \
40293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40294 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40295 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40296 for flag in $(EXTRA_TARGET_FLAGS); do \
40297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40298 done; \
a90ef4bf 40299 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40302 "RANLIB=$${RANLIB}" \
40303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40304 installcheck) \
40305 || exit 1
40306
a90ef4bf 40307@endif target-libgfortran
e552509b 40308
a90ef4bf
JM
40309.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
40310maybe-mostlyclean-target-libgfortran:
40311@if target-libgfortran
40312maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 40313
a90ef4bf 40314mostlyclean-target-libgfortran:
e552509b 40315 @: $(MAKE); $(unstage)
a90ef4bf 40316 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40317 r=`${PWD_COMMAND}`; export r; \
40318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40319 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40320 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40321 for flag in $(EXTRA_TARGET_FLAGS); do \
40322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40323 done; \
a90ef4bf 40324 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40327 "RANLIB=$${RANLIB}" \
40328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40329 mostlyclean) \
40330 || exit 1
40331
a90ef4bf 40332@endif target-libgfortran
e552509b 40333
a90ef4bf
JM
40334.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
40335maybe-clean-target-libgfortran:
40336@if target-libgfortran
40337maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 40338
a90ef4bf 40339clean-target-libgfortran:
e552509b 40340 @: $(MAKE); $(unstage)
a90ef4bf 40341 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40342 r=`${PWD_COMMAND}`; export r; \
40343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40344 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40345 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40346 for flag in $(EXTRA_TARGET_FLAGS); do \
40347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40348 done; \
a90ef4bf 40349 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40352 "RANLIB=$${RANLIB}" \
40353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40354 clean) \
40355 || exit 1
40356
a90ef4bf 40357@endif target-libgfortran
e552509b 40358
a90ef4bf
JM
40359.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
40360maybe-distclean-target-libgfortran:
40361@if target-libgfortran
40362maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 40363
a90ef4bf 40364distclean-target-libgfortran:
e552509b 40365 @: $(MAKE); $(unstage)
a90ef4bf 40366 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40367 r=`${PWD_COMMAND}`; export r; \
40368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40369 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40370 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40371 for flag in $(EXTRA_TARGET_FLAGS); do \
40372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40373 done; \
a90ef4bf 40374 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40377 "RANLIB=$${RANLIB}" \
40378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40379 distclean) \
40380 || exit 1
40381
a90ef4bf 40382@endif target-libgfortran
e552509b 40383
a90ef4bf
JM
40384.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
40385maybe-maintainer-clean-target-libgfortran:
40386@if target-libgfortran
40387maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 40388
a90ef4bf 40389maintainer-clean-target-libgfortran:
e552509b 40390 @: $(MAKE); $(unstage)
a90ef4bf 40391 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40392 r=`${PWD_COMMAND}`; export r; \
40393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40394 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40395 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40396 for flag in $(EXTRA_TARGET_FLAGS); do \
40397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40398 done; \
a90ef4bf 40399 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40402 "RANLIB=$${RANLIB}" \
40403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40404 maintainer-clean) \
40405 || exit 1
40406
a90ef4bf 40407@endif target-libgfortran
e552509b
ILT
40408
40409
40410
40411
40412
a90ef4bf
JM
40413.PHONY: configure-target-libobjc maybe-configure-target-libobjc
40414maybe-configure-target-libobjc:
4f0ef2d8 40415@if gcc-bootstrap
a90ef4bf 40416configure-target-libobjc: stage_current
4f0ef2d8 40417@endif gcc-bootstrap
a90ef4bf
JM
40418@if target-libobjc
40419maybe-configure-target-libobjc: configure-target-libobjc
40420configure-target-libobjc:
0aed8855
PB
40421 @: $(MAKE); $(unstage)
40422 @r=`${PWD_COMMAND}`; export r; \
40423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40424 echo "Checking multilib configuration for libobjc..."; \
40425 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
40426 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
40427 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40428 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40429 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 40430 else \
a90ef4bf
JM
40431 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
40432 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
40433 fi; \
40434 else \
a90ef4bf 40435 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 40436 fi; \
a90ef4bf
JM
40437 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
40438 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
1f53ca9a 40439 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40440 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
40441 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 40442 case $(srcdir) in \
b00612cc 40443 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40444 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 40445 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 40446 esac; \
1b6c0831 40447 module_srcdir=libobjc; \
4fa63067 40448 rm -f no-such-file || : ; \
1b6c0831
L
40449 CONFIG_SITE=no-such-file $(SHELL) \
40450 $$s/$$module_srcdir/configure \
40451 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40452 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40453 --target=${target_alias} \
e2b9e2dc 40454 || exit 1
a90ef4bf 40455@endif target-libobjc
e2b9e2dc 40456
a7254363
PB
40457
40458
d545f33b
PB
40459
40460
a90ef4bf
JM
40461.PHONY: all-target-libobjc maybe-all-target-libobjc
40462maybe-all-target-libobjc:
4f0ef2d8 40463@if gcc-bootstrap
a90ef4bf 40464all-target-libobjc: stage_current
4f0ef2d8 40465@endif gcc-bootstrap
a90ef4bf
JM
40466@if target-libobjc
40467TARGET-target-libobjc=all
40468maybe-all-target-libobjc: all-target-libobjc
40469all-target-libobjc: configure-target-libobjc
0aed8855 40470 @: $(MAKE); $(unstage)
b40e3958
L
40471 @r=`${PWD_COMMAND}`; export r; \
40472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40473 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40474 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 40475 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40476 $(TARGET-target-libobjc))
40477@endif target-libobjc
3866be5d 40478
a7254363
PB
40479
40480
d545f33b
PB
40481
40482
a90ef4bf
JM
40483.PHONY: check-target-libobjc maybe-check-target-libobjc
40484maybe-check-target-libobjc:
40485@if target-libobjc
40486maybe-check-target-libobjc: check-target-libobjc
3866be5d 40487
a90ef4bf
JM
40488check-target-libobjc:
40489 @: $(MAKE); $(unstage)
40490 @r=`${PWD_COMMAND}`; export r; \
40491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40492 $(NORMAL_TARGET_EXPORTS) \
40493 (cd $(TARGET_SUBDIR)/libobjc && \
40494 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 40495
a90ef4bf 40496@endif target-libobjc
4fa63067 40497
a90ef4bf
JM
40498.PHONY: install-target-libobjc maybe-install-target-libobjc
40499maybe-install-target-libobjc:
40500@if target-libobjc
40501maybe-install-target-libobjc: install-target-libobjc
4fa63067 40502
a90ef4bf 40503install-target-libobjc: installdirs
0aed8855 40504 @: $(MAKE); $(unstage)
b40e3958
L
40505 @r=`${PWD_COMMAND}`; export r; \
40506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40507 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40508 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 40509 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40510
a90ef4bf 40511@endif target-libobjc
3866be5d 40512
a90ef4bf
JM
40513.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
40514maybe-install-strip-target-libobjc:
40515@if target-libobjc
40516maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 40517
a90ef4bf 40518install-strip-target-libobjc: installdirs
9b980aa1
RW
40519 @: $(MAKE); $(unstage)
40520 @r=`${PWD_COMMAND}`; export r; \
40521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40522 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40523 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
40524 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40525
a90ef4bf 40526@endif target-libobjc
9b980aa1 40527
56a8fe78 40528# Other targets (info, dvi, pdf, etc.)
16ae0395 40529
a90ef4bf
JM
40530.PHONY: maybe-info-target-libobjc info-target-libobjc
40531maybe-info-target-libobjc:
40532@if target-libobjc
40533maybe-info-target-libobjc: info-target-libobjc
6d389afc 40534
a90ef4bf
JM
40535info-target-libobjc: \
40536 configure-target-libobjc
0aed8855 40537 @: $(MAKE); $(unstage)
a90ef4bf 40538 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
6d389afc
MS
40539 r=`${PWD_COMMAND}`; export r; \
40540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40541 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40542 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
6d389afc
MS
40543 for flag in $(EXTRA_TARGET_FLAGS); do \
40544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40545 done; \
a90ef4bf 40546 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
40547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40549 "RANLIB=$${RANLIB}" \
0c24b341 40550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40551 info) \
40552 || exit 1
40553
a90ef4bf 40554@endif target-libobjc
6d389afc 40555
a90ef4bf
JM
40556.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
40557maybe-dvi-target-libobjc:
40558@if target-libobjc
40559maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 40560
a90ef4bf
JM
40561dvi-target-libobjc: \
40562 configure-target-libobjc
0aed8855 40563 @: $(MAKE); $(unstage)
a90ef4bf 40564 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40565 r=`${PWD_COMMAND}`; export r; \
b40e3958 40566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40567 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40568 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40569 for flag in $(EXTRA_TARGET_FLAGS); do \
40570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40571 done; \
a90ef4bf 40572 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40575 "RANLIB=$${RANLIB}" \
0c24b341 40576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 40577 dvi) \
4fa63067 40578 || exit 1
3866be5d 40579
a90ef4bf 40580@endif target-libobjc
3866be5d 40581
a90ef4bf
JM
40582.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
40583maybe-pdf-target-libobjc:
40584@if target-libobjc
40585maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 40586
a90ef4bf
JM
40587pdf-target-libobjc: \
40588 configure-target-libobjc
56a8fe78 40589 @: $(MAKE); $(unstage)
a90ef4bf 40590 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
56a8fe78
DD
40591 r=`${PWD_COMMAND}`; export r; \
40592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40593 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40594 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc" ; \
56a8fe78
DD
40595 for flag in $(EXTRA_TARGET_FLAGS); do \
40596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40597 done; \
a90ef4bf 40598 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
40599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40601 "RANLIB=$${RANLIB}" \
0c24b341 40602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40603 pdf) \
40604 || exit 1
40605
a90ef4bf 40606@endif target-libobjc
56a8fe78 40607
a90ef4bf
JM
40608.PHONY: maybe-html-target-libobjc html-target-libobjc
40609maybe-html-target-libobjc:
40610@if target-libobjc
40611maybe-html-target-libobjc: html-target-libobjc
4fa63067 40612
a90ef4bf
JM
40613html-target-libobjc: \
40614 configure-target-libobjc
0aed8855 40615 @: $(MAKE); $(unstage)
a90ef4bf 40616 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
b40e3958
L
40617 r=`${PWD_COMMAND}`; export r; \
40618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40619 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40620 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40621 for flag in $(EXTRA_TARGET_FLAGS); do \
40622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40623 done; \
a90ef4bf 40624 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40627 "RANLIB=$${RANLIB}" \
0c24b341 40628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 40629 html) \
e2b9e2dc
NN
40630 || exit 1
40631
a90ef4bf 40632@endif target-libobjc
4fa63067 40633
a90ef4bf
JM
40634.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
40635maybe-TAGS-target-libobjc:
40636@if target-libobjc
40637maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 40638
a90ef4bf
JM
40639TAGS-target-libobjc: \
40640 configure-target-libobjc
0aed8855 40641 @: $(MAKE); $(unstage)
a90ef4bf 40642 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40643 r=`${PWD_COMMAND}`; export r; \
b40e3958 40644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40645 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40646 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40647 for flag in $(EXTRA_TARGET_FLAGS); do \
40648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40649 done; \
a90ef4bf 40650 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40653 "RANLIB=$${RANLIB}" \
0c24b341 40654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40655 TAGS) \
4fa63067 40656 || exit 1
3866be5d 40657
a90ef4bf 40658@endif target-libobjc
3866be5d 40659
a90ef4bf
JM
40660.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
40661maybe-install-info-target-libobjc:
40662@if target-libobjc
40663maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 40664
a90ef4bf
JM
40665install-info-target-libobjc: \
40666 configure-target-libobjc \
40667 info-target-libobjc
0aed8855 40668 @: $(MAKE); $(unstage)
a90ef4bf 40669 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067
NN
40670 r=`${PWD_COMMAND}`; export r; \
40671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40672 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40673 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40674 for flag in $(EXTRA_TARGET_FLAGS); do \
40675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40676 done; \
a90ef4bf 40677 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40680 "RANLIB=$${RANLIB}" \
0c24b341 40681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40682 install-info) \
4fa63067 40683 || exit 1
3866be5d 40684
a90ef4bf 40685@endif target-libobjc
16ae0395 40686
a90ef4bf
JM
40687.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
40688maybe-install-pdf-target-libobjc:
40689@if target-libobjc
40690maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 40691
a90ef4bf
JM
40692install-pdf-target-libobjc: \
40693 configure-target-libobjc \
40694 pdf-target-libobjc
a3ca38d2 40695 @: $(MAKE); $(unstage)
a90ef4bf 40696 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
a3ca38d2
DD
40697 r=`${PWD_COMMAND}`; export r; \
40698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40699 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40700 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc" ; \
a3ca38d2
DD
40701 for flag in $(EXTRA_TARGET_FLAGS); do \
40702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40703 done; \
a90ef4bf 40704 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
40705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40707 "RANLIB=$${RANLIB}" \
0c24b341 40708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40709 install-pdf) \
40710 || exit 1
40711
a90ef4bf 40712@endif target-libobjc
a3ca38d2 40713
a90ef4bf
JM
40714.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
40715maybe-install-html-target-libobjc:
40716@if target-libobjc
40717maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 40718
a90ef4bf
JM
40719install-html-target-libobjc: \
40720 configure-target-libobjc \
40721 html-target-libobjc
108a6f8e 40722 @: $(MAKE); $(unstage)
a90ef4bf 40723 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
108a6f8e
CD
40724 r=`${PWD_COMMAND}`; export r; \
40725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40726 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40727 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
108a6f8e
CD
40728 for flag in $(EXTRA_TARGET_FLAGS); do \
40729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40730 done; \
a90ef4bf 40731 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
40732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40734 "RANLIB=$${RANLIB}" \
0c24b341 40735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40736 install-html) \
40737 || exit 1
40738
a90ef4bf 40739@endif target-libobjc
108a6f8e 40740
a90ef4bf
JM
40741.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
40742maybe-installcheck-target-libobjc:
40743@if target-libobjc
40744maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 40745
a90ef4bf
JM
40746installcheck-target-libobjc: \
40747 configure-target-libobjc
0aed8855 40748 @: $(MAKE); $(unstage)
a90ef4bf 40749 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40750 r=`${PWD_COMMAND}`; export r; \
b40e3958 40751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40752 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40753 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40754 for flag in $(EXTRA_TARGET_FLAGS); do \
40755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40756 done; \
a90ef4bf 40757 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40760 "RANLIB=$${RANLIB}" \
0c24b341 40761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40762 installcheck) \
4fa63067 40763 || exit 1
3866be5d 40764
a90ef4bf 40765@endif target-libobjc
3866be5d 40766
a90ef4bf
JM
40767.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
40768maybe-mostlyclean-target-libobjc:
40769@if target-libobjc
40770maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 40771
a90ef4bf
JM
40772mostlyclean-target-libobjc:
40773 @: $(MAKE); $(unstage)
40774 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40775 r=`${PWD_COMMAND}`; export r; \
40776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40777 $(NORMAL_TARGET_EXPORTS) \
40778 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
40779 for flag in $(EXTRA_TARGET_FLAGS); do \
40780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40781 done; \
40782 (cd $(TARGET_SUBDIR)/libobjc && \
40783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40785 "RANLIB=$${RANLIB}" \
40786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40787 mostlyclean) \
40788 || exit 1
4fa63067 40789
a90ef4bf 40790@endif target-libobjc
4fa63067 40791
a90ef4bf
JM
40792.PHONY: maybe-clean-target-libobjc clean-target-libobjc
40793maybe-clean-target-libobjc:
40794@if target-libobjc
40795maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 40796
a90ef4bf
JM
40797clean-target-libobjc:
40798 @: $(MAKE); $(unstage)
40799 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40800 r=`${PWD_COMMAND}`; export r; \
40801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40802 $(NORMAL_TARGET_EXPORTS) \
40803 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
40804 for flag in $(EXTRA_TARGET_FLAGS); do \
40805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40806 done; \
40807 (cd $(TARGET_SUBDIR)/libobjc && \
40808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40810 "RANLIB=$${RANLIB}" \
40811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40812 clean) \
40813 || exit 1
4fa63067 40814
a90ef4bf 40815@endif target-libobjc
4fa63067 40816
a90ef4bf
JM
40817.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
40818maybe-distclean-target-libobjc:
40819@if target-libobjc
40820maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 40821
a90ef4bf
JM
40822distclean-target-libobjc:
40823 @: $(MAKE); $(unstage)
40824 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40825 r=`${PWD_COMMAND}`; export r; \
40826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40827 $(NORMAL_TARGET_EXPORTS) \
40828 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
40829 for flag in $(EXTRA_TARGET_FLAGS); do \
40830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40831 done; \
40832 (cd $(TARGET_SUBDIR)/libobjc && \
40833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40835 "RANLIB=$${RANLIB}" \
40836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40837 distclean) \
40838 || exit 1
4fa63067 40839
a90ef4bf 40840@endif target-libobjc
4fa63067 40841
a90ef4bf
JM
40842.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
40843maybe-maintainer-clean-target-libobjc:
40844@if target-libobjc
40845maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 40846
a90ef4bf
JM
40847maintainer-clean-target-libobjc:
40848 @: $(MAKE); $(unstage)
40849 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40850 r=`${PWD_COMMAND}`; export r; \
40851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40852 $(NORMAL_TARGET_EXPORTS) \
40853 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
40854 for flag in $(EXTRA_TARGET_FLAGS); do \
40855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40856 done; \
40857 (cd $(TARGET_SUBDIR)/libobjc && \
40858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40860 "RANLIB=$${RANLIB}" \
40861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40862 maintainer-clean) \
40863 || exit 1
4fa63067 40864
a90ef4bf 40865@endif target-libobjc
4fa63067
NN
40866
40867
4fa63067 40868
4fa63067 40869
a7254363 40870
a90ef4bf
JM
40871.PHONY: configure-target-libgo maybe-configure-target-libgo
40872maybe-configure-target-libgo:
4f0ef2d8 40873@if gcc-bootstrap
a90ef4bf 40874configure-target-libgo: stage_current
4f0ef2d8 40875@endif gcc-bootstrap
a90ef4bf
JM
40876@if target-libgo
40877maybe-configure-target-libgo: configure-target-libgo
40878configure-target-libgo:
0aed8855
PB
40879 @: $(MAKE); $(unstage)
40880 @r=`${PWD_COMMAND}`; export r; \
40881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40882 echo "Checking multilib configuration for libgo..."; \
40883 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
40884 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null ; \
40885 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
40886 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
40887 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 40888 else \
a90ef4bf
JM
40889 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
40890 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
40891 fi; \
40892 else \
a90ef4bf 40893 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 40894 fi; \
a90ef4bf
JM
40895 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
40896 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
1f53ca9a 40897 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40898 echo Configuring in $(TARGET_SUBDIR)/libgo; \
40899 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 40900 case $(srcdir) in \
b00612cc 40901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40902 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 40903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 40904 esac; \
1b6c0831 40905 module_srcdir=libgo; \
4fa63067 40906 rm -f no-such-file || : ; \
1b6c0831
L
40907 CONFIG_SITE=no-such-file $(SHELL) \
40908 $$s/$$module_srcdir/configure \
40909 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40910 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40911 --target=${target_alias} \
e2b9e2dc 40912 || exit 1
a90ef4bf 40913@endif target-libgo
e2b9e2dc 40914
a7254363
PB
40915
40916
d545f33b
PB
40917
40918
a90ef4bf
JM
40919.PHONY: all-target-libgo maybe-all-target-libgo
40920maybe-all-target-libgo:
4f0ef2d8 40921@if gcc-bootstrap
a90ef4bf 40922all-target-libgo: stage_current
4f0ef2d8 40923@endif gcc-bootstrap
a90ef4bf
JM
40924@if target-libgo
40925TARGET-target-libgo=all
40926maybe-all-target-libgo: all-target-libgo
40927all-target-libgo: configure-target-libgo
0aed8855 40928 @: $(MAKE); $(unstage)
b40e3958
L
40929 @r=`${PWD_COMMAND}`; export r; \
40930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40931 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40932 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 40933 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40934 $(TARGET-target-libgo))
40935@endif target-libgo
3866be5d 40936
a7254363
PB
40937
40938
d545f33b
PB
40939
40940
a90ef4bf
JM
40941.PHONY: check-target-libgo maybe-check-target-libgo
40942maybe-check-target-libgo:
40943@if target-libgo
40944maybe-check-target-libgo: check-target-libgo
3866be5d 40945
a90ef4bf 40946check-target-libgo:
0aed8855 40947 @: $(MAKE); $(unstage)
4fa63067
NN
40948 @r=`${PWD_COMMAND}`; export r; \
40949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40950 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40951 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 40952 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40953
a90ef4bf 40954@endif target-libgo
3866be5d 40955
a90ef4bf
JM
40956.PHONY: install-target-libgo maybe-install-target-libgo
40957maybe-install-target-libgo:
40958@if target-libgo
40959maybe-install-target-libgo: install-target-libgo
16ae0395 40960
a90ef4bf 40961install-target-libgo: installdirs
0aed8855 40962 @: $(MAKE); $(unstage)
4fa63067
NN
40963 @r=`${PWD_COMMAND}`; export r; \
40964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40965 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40966 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 40967 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40968
a90ef4bf 40969@endif target-libgo
3866be5d 40970
a90ef4bf
JM
40971.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
40972maybe-install-strip-target-libgo:
40973@if target-libgo
40974maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 40975
a90ef4bf 40976install-strip-target-libgo: installdirs
9b980aa1
RW
40977 @: $(MAKE); $(unstage)
40978 @r=`${PWD_COMMAND}`; export r; \
40979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40980 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40981 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
40982 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40983
a90ef4bf 40984@endif target-libgo
9b980aa1 40985
56a8fe78 40986# Other targets (info, dvi, pdf, etc.)
4fa63067 40987
a90ef4bf
JM
40988.PHONY: maybe-info-target-libgo info-target-libgo
40989maybe-info-target-libgo:
40990@if target-libgo
40991maybe-info-target-libgo: info-target-libgo
4fa63067 40992
a90ef4bf
JM
40993info-target-libgo: \
40994 configure-target-libgo
0aed8855 40995 @: $(MAKE); $(unstage)
a90ef4bf 40996 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
40997 r=`${PWD_COMMAND}`; export r; \
40998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40999 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41000 echo "Doing info in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41001 for flag in $(EXTRA_TARGET_FLAGS); do \
41002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41003 done; \
a90ef4bf 41004 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41007 "RANLIB=$${RANLIB}" \
0c24b341 41008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41009 info) \
e2b9e2dc
NN
41010 || exit 1
41011
a90ef4bf 41012@endif target-libgo
3866be5d 41013
a90ef4bf
JM
41014.PHONY: maybe-dvi-target-libgo dvi-target-libgo
41015maybe-dvi-target-libgo:
41016@if target-libgo
41017maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 41018
a90ef4bf
JM
41019dvi-target-libgo: \
41020 configure-target-libgo
0aed8855 41021 @: $(MAKE); $(unstage)
a90ef4bf 41022 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41023 r=`${PWD_COMMAND}`; export r; \
b40e3958 41024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41025 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41026 echo "Doing dvi in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41027 for flag in $(EXTRA_TARGET_FLAGS); do \
41028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41029 done; \
a90ef4bf 41030 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41033 "RANLIB=$${RANLIB}" \
0c24b341 41034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41035 dvi) \
4fa63067 41036 || exit 1
3866be5d 41037
a90ef4bf 41038@endif target-libgo
3866be5d 41039
a90ef4bf
JM
41040.PHONY: maybe-pdf-target-libgo pdf-target-libgo
41041maybe-pdf-target-libgo:
41042@if target-libgo
41043maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 41044
a90ef4bf
JM
41045pdf-target-libgo: \
41046 configure-target-libgo
56a8fe78 41047 @: $(MAKE); $(unstage)
a90ef4bf 41048 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
56a8fe78
DD
41049 r=`${PWD_COMMAND}`; export r; \
41050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41051 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41052 echo "Doing pdf in $(TARGET_SUBDIR)/libgo" ; \
56a8fe78
DD
41053 for flag in $(EXTRA_TARGET_FLAGS); do \
41054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41055 done; \
a90ef4bf 41056 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
41057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41059 "RANLIB=$${RANLIB}" \
0c24b341 41060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41061 pdf) \
41062 || exit 1
41063
a90ef4bf 41064@endif target-libgo
56a8fe78 41065
a90ef4bf
JM
41066.PHONY: maybe-html-target-libgo html-target-libgo
41067maybe-html-target-libgo:
41068@if target-libgo
41069maybe-html-target-libgo: html-target-libgo
6d389afc 41070
a90ef4bf
JM
41071html-target-libgo: \
41072 configure-target-libgo
0aed8855 41073 @: $(MAKE); $(unstage)
a90ef4bf 41074 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
6d389afc
MS
41075 r=`${PWD_COMMAND}`; export r; \
41076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41077 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41078 echo "Doing html in $(TARGET_SUBDIR)/libgo" ; \
6d389afc
MS
41079 for flag in $(EXTRA_TARGET_FLAGS); do \
41080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41081 done; \
a90ef4bf 41082 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
41083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41085 "RANLIB=$${RANLIB}" \
0c24b341 41086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41087 html) \
41088 || exit 1
41089
a90ef4bf 41090@endif target-libgo
6d389afc 41091
a90ef4bf
JM
41092.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
41093maybe-TAGS-target-libgo:
41094@if target-libgo
41095maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 41096
a90ef4bf
JM
41097TAGS-target-libgo: \
41098 configure-target-libgo
0aed8855 41099 @: $(MAKE); $(unstage)
a90ef4bf 41100 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41101 r=`${PWD_COMMAND}`; export r; \
b40e3958 41102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41103 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41104 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41105 for flag in $(EXTRA_TARGET_FLAGS); do \
41106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41107 done; \
a90ef4bf 41108 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41111 "RANLIB=$${RANLIB}" \
0c24b341 41112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41113 TAGS) \
4fa63067 41114 || exit 1
3866be5d 41115
a90ef4bf 41116@endif target-libgo
3866be5d 41117
a90ef4bf
JM
41118.PHONY: maybe-install-info-target-libgo install-info-target-libgo
41119maybe-install-info-target-libgo:
41120@if target-libgo
41121maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 41122
a90ef4bf
JM
41123install-info-target-libgo: \
41124 configure-target-libgo \
41125 info-target-libgo
0aed8855 41126 @: $(MAKE); $(unstage)
a90ef4bf 41127 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
41128 r=`${PWD_COMMAND}`; export r; \
41129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41130 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41131 echo "Doing install-info in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41132 for flag in $(EXTRA_TARGET_FLAGS); do \
41133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41134 done; \
a90ef4bf 41135 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41138 "RANLIB=$${RANLIB}" \
0c24b341 41139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41140 install-info) \
e2b9e2dc
NN
41141 || exit 1
41142
a90ef4bf 41143@endif target-libgo
4fa63067 41144
a90ef4bf
JM
41145.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
41146maybe-install-pdf-target-libgo:
41147@if target-libgo
41148maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 41149
a90ef4bf
JM
41150install-pdf-target-libgo: \
41151 configure-target-libgo \
41152 pdf-target-libgo
a3ca38d2 41153 @: $(MAKE); $(unstage)
a90ef4bf 41154 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
a3ca38d2
DD
41155 r=`${PWD_COMMAND}`; export r; \
41156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41157 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41158 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo" ; \
a3ca38d2
DD
41159 for flag in $(EXTRA_TARGET_FLAGS); do \
41160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41161 done; \
a90ef4bf 41162 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
41163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41165 "RANLIB=$${RANLIB}" \
0c24b341 41166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41167 install-pdf) \
41168 || exit 1
41169
a90ef4bf 41170@endif target-libgo
a3ca38d2 41171
a90ef4bf
JM
41172.PHONY: maybe-install-html-target-libgo install-html-target-libgo
41173maybe-install-html-target-libgo:
41174@if target-libgo
41175maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 41176
a90ef4bf
JM
41177install-html-target-libgo: \
41178 configure-target-libgo \
41179 html-target-libgo
108a6f8e 41180 @: $(MAKE); $(unstage)
a90ef4bf 41181 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
108a6f8e
CD
41182 r=`${PWD_COMMAND}`; export r; \
41183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41184 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41185 echo "Doing install-html in $(TARGET_SUBDIR)/libgo" ; \
108a6f8e
CD
41186 for flag in $(EXTRA_TARGET_FLAGS); do \
41187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41188 done; \
a90ef4bf 41189 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
41190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41192 "RANLIB=$${RANLIB}" \
0c24b341 41193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41194 install-html) \
41195 || exit 1
41196
a90ef4bf 41197@endif target-libgo
108a6f8e 41198
a90ef4bf
JM
41199.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
41200maybe-installcheck-target-libgo:
41201@if target-libgo
41202maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 41203
a90ef4bf
JM
41204installcheck-target-libgo: \
41205 configure-target-libgo
0aed8855 41206 @: $(MAKE); $(unstage)
a90ef4bf 41207 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41208 r=`${PWD_COMMAND}`; export r; \
b40e3958 41209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41210 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41211 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41212 for flag in $(EXTRA_TARGET_FLAGS); do \
41213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41214 done; \
a90ef4bf 41215 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41218 "RANLIB=$${RANLIB}" \
0c24b341 41219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41220 installcheck) \
4fa63067 41221 || exit 1
3866be5d 41222
a90ef4bf 41223@endif target-libgo
3866be5d 41224
a90ef4bf
JM
41225.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
41226maybe-mostlyclean-target-libgo:
41227@if target-libgo
41228maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 41229
a90ef4bf 41230mostlyclean-target-libgo:
0aed8855 41231 @: $(MAKE); $(unstage)
a90ef4bf 41232 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41233 r=`${PWD_COMMAND}`; export r; \
b40e3958 41234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41235 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41236 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41237 for flag in $(EXTRA_TARGET_FLAGS); do \
41238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41239 done; \
a90ef4bf 41240 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41243 "RANLIB=$${RANLIB}" \
0c24b341 41244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41245 mostlyclean) \
4fa63067 41246 || exit 1
3866be5d 41247
a90ef4bf 41248@endif target-libgo
3866be5d 41249
a90ef4bf
JM
41250.PHONY: maybe-clean-target-libgo clean-target-libgo
41251maybe-clean-target-libgo:
41252@if target-libgo
41253maybe-clean-target-libgo: clean-target-libgo
16ae0395 41254
a90ef4bf 41255clean-target-libgo:
0aed8855 41256 @: $(MAKE); $(unstage)
a90ef4bf 41257 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41258 r=`${PWD_COMMAND}`; export r; \
b40e3958 41259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41260 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41261 echo "Doing clean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41262 for flag in $(EXTRA_TARGET_FLAGS); do \
41263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41264 done; \
a90ef4bf 41265 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41268 "RANLIB=$${RANLIB}" \
0c24b341 41269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41270 clean) \
4fa63067 41271 || exit 1
3866be5d 41272
a90ef4bf 41273@endif target-libgo
3866be5d 41274
a90ef4bf
JM
41275.PHONY: maybe-distclean-target-libgo distclean-target-libgo
41276maybe-distclean-target-libgo:
41277@if target-libgo
41278maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 41279
a90ef4bf 41280distclean-target-libgo:
0aed8855 41281 @: $(MAKE); $(unstage)
a90ef4bf 41282 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
41283 r=`${PWD_COMMAND}`; export r; \
41284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41285 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41286 echo "Doing distclean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41287 for flag in $(EXTRA_TARGET_FLAGS); do \
41288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41289 done; \
a90ef4bf 41290 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41293 "RANLIB=$${RANLIB}" \
0c24b341 41294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41295 distclean) \
e2b9e2dc
NN
41296 || exit 1
41297
a90ef4bf 41298@endif target-libgo
3866be5d 41299
a90ef4bf
JM
41300.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
41301maybe-maintainer-clean-target-libgo:
41302@if target-libgo
41303maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 41304
a90ef4bf 41305maintainer-clean-target-libgo:
0aed8855 41306 @: $(MAKE); $(unstage)
a90ef4bf 41307 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41308 r=`${PWD_COMMAND}`; export r; \
b40e3958 41309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41310 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41311 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41312 for flag in $(EXTRA_TARGET_FLAGS); do \
41313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41314 done; \
a90ef4bf 41315 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41318 "RANLIB=$${RANLIB}" \
0c24b341 41319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41320 maintainer-clean) \
4fa63067 41321 || exit 1
3866be5d 41322
a90ef4bf 41323@endif target-libgo
3866be5d 41324
16ae0395 41325
3866be5d 41326
e90269c8 41327
a7254363 41328
a90ef4bf
JM
41329.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
41330maybe-configure-target-libtermcap:
4f0ef2d8 41331@if gcc-bootstrap
a90ef4bf 41332configure-target-libtermcap: stage_current
4f0ef2d8 41333@endif gcc-bootstrap
a90ef4bf
JM
41334@if target-libtermcap
41335maybe-configure-target-libtermcap: configure-target-libtermcap
41336configure-target-libtermcap:
0aed8855
PB
41337 @: $(MAKE); $(unstage)
41338 @r=`${PWD_COMMAND}`; export r; \
41339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41340 echo "Checking multilib configuration for libtermcap..."; \
41341 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
41342 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
41343 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41344 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41345 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 41346 else \
a90ef4bf
JM
41347 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
41348 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
41349 fi; \
41350 else \
a90ef4bf 41351 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 41352 fi; \
a90ef4bf
JM
41353 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
41354 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
1f53ca9a 41355 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41356 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
41357 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 41358 case $(srcdir) in \
b00612cc 41359 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41360 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 41361 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41362 esac; \
1b6c0831 41363 module_srcdir=libtermcap; \
4fa63067 41364 rm -f no-such-file || : ; \
1b6c0831
L
41365 CONFIG_SITE=no-such-file $(SHELL) \
41366 $$s/$$module_srcdir/configure \
41367 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41368 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41369 --target=${target_alias} \
e2b9e2dc 41370 || exit 1
a90ef4bf 41371@endif target-libtermcap
e2b9e2dc 41372
a7254363
PB
41373
41374
d545f33b
PB
41375
41376
a90ef4bf
JM
41377.PHONY: all-target-libtermcap maybe-all-target-libtermcap
41378maybe-all-target-libtermcap:
4f0ef2d8 41379@if gcc-bootstrap
a90ef4bf 41380all-target-libtermcap: stage_current
4f0ef2d8 41381@endif gcc-bootstrap
a90ef4bf
JM
41382@if target-libtermcap
41383TARGET-target-libtermcap=all
41384maybe-all-target-libtermcap: all-target-libtermcap
41385all-target-libtermcap: configure-target-libtermcap
0aed8855 41386 @: $(MAKE); $(unstage)
b40e3958
L
41387 @r=`${PWD_COMMAND}`; export r; \
41388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41389 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41390 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 41391 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41392 $(TARGET-target-libtermcap))
41393@endif target-libtermcap
e393202e 41394
a7254363
PB
41395
41396
d545f33b
PB
41397
41398
a90ef4bf
JM
41399.PHONY: check-target-libtermcap maybe-check-target-libtermcap
41400maybe-check-target-libtermcap:
41401@if target-libtermcap
41402maybe-check-target-libtermcap: check-target-libtermcap
e393202e 41403
4fa63067 41404# Dummy target for uncheckable module.
a90ef4bf 41405check-target-libtermcap:
e393202e 41406
a90ef4bf 41407@endif target-libtermcap
e393202e 41408
a90ef4bf
JM
41409.PHONY: install-target-libtermcap maybe-install-target-libtermcap
41410maybe-install-target-libtermcap:
41411@if target-libtermcap
41412maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 41413
a90ef4bf 41414install-target-libtermcap: installdirs
0aed8855 41415 @: $(MAKE); $(unstage)
b40e3958
L
41416 @r=`${PWD_COMMAND}`; export r; \
41417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41418 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41419 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 41420 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 41421
a90ef4bf 41422@endif target-libtermcap
56a8fe78 41423
a90ef4bf
JM
41424.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
41425maybe-install-strip-target-libtermcap:
41426@if target-libtermcap
41427maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 41428
a90ef4bf 41429install-strip-target-libtermcap: installdirs
0aed8855 41430 @: $(MAKE); $(unstage)
a90ef4bf 41431 @r=`${PWD_COMMAND}`; export r; \
6d389afc 41432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41433 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41434 (cd $(TARGET_SUBDIR)/libtermcap && \
41435 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 41436
a90ef4bf 41437@endif target-libtermcap
6d389afc 41438
a90ef4bf 41439# Other targets (info, dvi, pdf, etc.)
16ae0395 41440
a90ef4bf
JM
41441.PHONY: maybe-info-target-libtermcap info-target-libtermcap
41442maybe-info-target-libtermcap:
41443@if target-libtermcap
41444maybe-info-target-libtermcap: info-target-libtermcap
41445
41446info-target-libtermcap: \
41447 configure-target-libtermcap
0aed8855 41448 @: $(MAKE); $(unstage)
a90ef4bf 41449 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41450 r=`${PWD_COMMAND}`; export r; \
b40e3958 41451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41452 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41453 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41454 for flag in $(EXTRA_TARGET_FLAGS); do \
41455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41456 done; \
a90ef4bf 41457 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41460 "RANLIB=$${RANLIB}" \
0c24b341 41461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41462 info) \
4fa63067 41463 || exit 1
ce5b542e 41464
a90ef4bf 41465@endif target-libtermcap
ce5b542e 41466
a90ef4bf
JM
41467.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
41468maybe-dvi-target-libtermcap:
41469@if target-libtermcap
41470maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 41471
a90ef4bf
JM
41472dvi-target-libtermcap: \
41473 configure-target-libtermcap
0aed8855 41474 @: $(MAKE); $(unstage)
a90ef4bf 41475 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
41476 r=`${PWD_COMMAND}`; export r; \
41477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41478 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41479 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41480 for flag in $(EXTRA_TARGET_FLAGS); do \
41481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41482 done; \
a90ef4bf 41483 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41486 "RANLIB=$${RANLIB}" \
0c24b341 41487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41488 dvi) \
e2b9e2dc
NN
41489 || exit 1
41490
a90ef4bf 41491@endif target-libtermcap
e393202e 41492
a90ef4bf
JM
41493.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
41494maybe-pdf-target-libtermcap:
41495@if target-libtermcap
41496maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 41497
a90ef4bf
JM
41498pdf-target-libtermcap: \
41499 configure-target-libtermcap
a3ca38d2 41500 @: $(MAKE); $(unstage)
a90ef4bf 41501 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
a3ca38d2
DD
41502 r=`${PWD_COMMAND}`; export r; \
41503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41504 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41505 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap" ; \
a3ca38d2
DD
41506 for flag in $(EXTRA_TARGET_FLAGS); do \
41507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41508 done; \
a90ef4bf 41509 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
41510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41512 "RANLIB=$${RANLIB}" \
0c24b341 41513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41514 pdf) \
a3ca38d2
DD
41515 || exit 1
41516
a90ef4bf 41517@endif target-libtermcap
a3ca38d2 41518
a90ef4bf
JM
41519.PHONY: maybe-html-target-libtermcap html-target-libtermcap
41520maybe-html-target-libtermcap:
41521@if target-libtermcap
41522maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 41523
a90ef4bf
JM
41524html-target-libtermcap: \
41525 configure-target-libtermcap
108a6f8e 41526 @: $(MAKE); $(unstage)
a90ef4bf 41527 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
108a6f8e
CD
41528 r=`${PWD_COMMAND}`; export r; \
41529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41530 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41531 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
108a6f8e
CD
41532 for flag in $(EXTRA_TARGET_FLAGS); do \
41533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41534 done; \
a90ef4bf 41535 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
41536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41538 "RANLIB=$${RANLIB}" \
0c24b341 41539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41540 html) \
108a6f8e
CD
41541 || exit 1
41542
a90ef4bf 41543@endif target-libtermcap
108a6f8e 41544
a90ef4bf
JM
41545.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
41546maybe-TAGS-target-libtermcap:
41547@if target-libtermcap
41548maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 41549
a90ef4bf
JM
41550TAGS-target-libtermcap: \
41551 configure-target-libtermcap
0aed8855 41552 @: $(MAKE); $(unstage)
a90ef4bf 41553 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067
NN
41554 r=`${PWD_COMMAND}`; export r; \
41555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41556 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41557 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41558 for flag in $(EXTRA_TARGET_FLAGS); do \
41559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41560 done; \
a90ef4bf 41561 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41564 "RANLIB=$${RANLIB}" \
0c24b341 41565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41566 TAGS) \
4fa63067 41567 || exit 1
3866be5d 41568
a90ef4bf 41569@endif target-libtermcap
3866be5d 41570
a90ef4bf
JM
41571.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
41572maybe-install-info-target-libtermcap:
41573@if target-libtermcap
41574maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 41575
a90ef4bf
JM
41576install-info-target-libtermcap: \
41577 configure-target-libtermcap \
41578 info-target-libtermcap
0aed8855 41579 @: $(MAKE); $(unstage)
a90ef4bf 41580 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41581 r=`${PWD_COMMAND}`; export r; \
b40e3958 41582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41583 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41584 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41585 for flag in $(EXTRA_TARGET_FLAGS); do \
41586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41587 done; \
a90ef4bf 41588 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41591 "RANLIB=$${RANLIB}" \
0c24b341 41592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41593 install-info) \
4fa63067 41594 || exit 1
e393202e 41595
a90ef4bf 41596@endif target-libtermcap
3866be5d 41597
a90ef4bf
JM
41598.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
41599maybe-install-pdf-target-libtermcap:
41600@if target-libtermcap
41601maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 41602
a90ef4bf
JM
41603install-pdf-target-libtermcap: \
41604 configure-target-libtermcap \
41605 pdf-target-libtermcap
0aed8855 41606 @: $(MAKE); $(unstage)
a90ef4bf 41607 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
41608 r=`${PWD_COMMAND}`; export r; \
41609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41610 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41611 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41612 for flag in $(EXTRA_TARGET_FLAGS); do \
41613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41614 done; \
a90ef4bf 41615 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41618 "RANLIB=$${RANLIB}" \
0c24b341 41619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41620 install-pdf) \
e2b9e2dc
NN
41621 || exit 1
41622
a90ef4bf 41623@endif target-libtermcap
e393202e 41624
a90ef4bf
JM
41625.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
41626maybe-install-html-target-libtermcap:
41627@if target-libtermcap
41628maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 41629
a90ef4bf
JM
41630install-html-target-libtermcap: \
41631 configure-target-libtermcap \
41632 html-target-libtermcap
0aed8855 41633 @: $(MAKE); $(unstage)
a90ef4bf 41634 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067
NN
41635 r=`${PWD_COMMAND}`; export r; \
41636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41637 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41638 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41639 for flag in $(EXTRA_TARGET_FLAGS); do \
41640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41641 done; \
a90ef4bf 41642 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41645 "RANLIB=$${RANLIB}" \
0c24b341 41646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41647 install-html) \
4fa63067 41648 || exit 1
3866be5d 41649
a90ef4bf 41650@endif target-libtermcap
3866be5d 41651
a90ef4bf
JM
41652.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
41653maybe-installcheck-target-libtermcap:
41654@if target-libtermcap
41655maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 41656
a90ef4bf
JM
41657installcheck-target-libtermcap: \
41658 configure-target-libtermcap
0aed8855 41659 @: $(MAKE); $(unstage)
a90ef4bf 41660 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41661 r=`${PWD_COMMAND}`; export r; \
b40e3958 41662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41663 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41664 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41665 for flag in $(EXTRA_TARGET_FLAGS); do \
41666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41667 done; \
a90ef4bf 41668 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41671 "RANLIB=$${RANLIB}" \
0c24b341 41672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41673 installcheck) \
4fa63067 41674 || exit 1
3866be5d 41675
a90ef4bf
JM
41676@endif target-libtermcap
41677
41678.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
41679maybe-mostlyclean-target-libtermcap:
41680@if target-libtermcap
41681maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
41682
41683# libtermcap doesn't support mostlyclean.
41684mostlyclean-target-libtermcap:
41685
41686@endif target-libtermcap
3866be5d 41687
a90ef4bf
JM
41688.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
41689maybe-clean-target-libtermcap:
41690@if target-libtermcap
41691maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 41692
a90ef4bf
JM
41693# libtermcap doesn't support clean.
41694clean-target-libtermcap:
15723a45 41695
a90ef4bf 41696@endif target-libtermcap
e90269c8 41697
a90ef4bf
JM
41698.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
41699maybe-distclean-target-libtermcap:
41700@if target-libtermcap
41701maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 41702
a90ef4bf
JM
41703# libtermcap doesn't support distclean.
41704distclean-target-libtermcap:
41705
41706@endif target-libtermcap
41707
41708.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
41709maybe-maintainer-clean-target-libtermcap:
41710@if target-libtermcap
41711maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
41712
41713# libtermcap doesn't support maintainer-clean.
41714maintainer-clean-target-libtermcap:
41715
41716@endif target-libtermcap
41717
41718
41719
41720
41721
41722.PHONY: configure-target-winsup maybe-configure-target-winsup
41723maybe-configure-target-winsup:
4f0ef2d8 41724@if gcc-bootstrap
a90ef4bf 41725configure-target-winsup: stage_current
4f0ef2d8 41726@endif gcc-bootstrap
a90ef4bf
JM
41727@if target-winsup
41728maybe-configure-target-winsup: configure-target-winsup
41729configure-target-winsup:
0aed8855
PB
41730 @: $(MAKE); $(unstage)
41731 @r=`${PWD_COMMAND}`; export r; \
41732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41733 echo "Checking multilib configuration for winsup..."; \
41734 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
41735 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
41736 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
41737 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
41738 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 41739 else \
a90ef4bf
JM
41740 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
41741 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
41742 fi; \
41743 else \
a90ef4bf 41744 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 41745 fi; \
a90ef4bf
JM
41746 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
41747 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
1f53ca9a 41748 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41749 echo Configuring in $(TARGET_SUBDIR)/winsup; \
41750 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 41751 case $(srcdir) in \
b00612cc 41752 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41753 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 41754 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 41755 esac; \
1b6c0831 41756 module_srcdir=winsup; \
bba45b8b 41757 rm -f no-such-file || : ; \
1b6c0831
L
41758 CONFIG_SITE=no-such-file $(SHELL) \
41759 $$s/$$module_srcdir/configure \
41760 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41761 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41762 --target=${target_alias} \
bba45b8b 41763 || exit 1
a90ef4bf 41764@endif target-winsup
e393202e 41765
a7254363
PB
41766
41767
d545f33b
PB
41768
41769
a90ef4bf
JM
41770.PHONY: all-target-winsup maybe-all-target-winsup
41771maybe-all-target-winsup:
4f0ef2d8 41772@if gcc-bootstrap
a90ef4bf 41773all-target-winsup: stage_current
4f0ef2d8 41774@endif gcc-bootstrap
a90ef4bf
JM
41775@if target-winsup
41776TARGET-target-winsup=all
41777maybe-all-target-winsup: all-target-winsup
41778all-target-winsup: configure-target-winsup
0aed8855 41779 @: $(MAKE); $(unstage)
b40e3958
L
41780 @r=`${PWD_COMMAND}`; export r; \
41781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41782 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41783 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 41784 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41785 $(TARGET-target-winsup))
41786@endif target-winsup
e393202e 41787
a7254363
PB
41788
41789
d545f33b
PB
41790
41791
a90ef4bf
JM
41792.PHONY: check-target-winsup maybe-check-target-winsup
41793maybe-check-target-winsup:
41794@if target-winsup
41795maybe-check-target-winsup: check-target-winsup
16ae0395 41796
a90ef4bf 41797check-target-winsup:
0aed8855 41798 @: $(MAKE); $(unstage)
b40e3958
L
41799 @r=`${PWD_COMMAND}`; export r; \
41800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41801 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41802 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 41803 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 41804
a90ef4bf 41805@endif target-winsup
e393202e 41806
a90ef4bf
JM
41807.PHONY: install-target-winsup maybe-install-target-winsup
41808maybe-install-target-winsup:
41809@if target-winsup
41810maybe-install-target-winsup: install-target-winsup
4fa63067 41811
a90ef4bf 41812install-target-winsup: installdirs
0aed8855 41813 @: $(MAKE); $(unstage)
4fa63067
NN
41814 @r=`${PWD_COMMAND}`; export r; \
41815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41816 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41817 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 41818 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 41819
a90ef4bf 41820@endif target-winsup
4fa63067 41821
a90ef4bf
JM
41822.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
41823maybe-install-strip-target-winsup:
41824@if target-winsup
41825maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 41826
a90ef4bf 41827install-strip-target-winsup: installdirs
9b980aa1
RW
41828 @: $(MAKE); $(unstage)
41829 @r=`${PWD_COMMAND}`; export r; \
41830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41831 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41832 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
41833 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41834
a90ef4bf 41835@endif target-winsup
9b980aa1 41836
56a8fe78 41837# Other targets (info, dvi, pdf, etc.)
4fa63067 41838
a90ef4bf
JM
41839.PHONY: maybe-info-target-winsup info-target-winsup
41840maybe-info-target-winsup:
41841@if target-winsup
41842maybe-info-target-winsup: info-target-winsup
4fa63067 41843
a90ef4bf
JM
41844info-target-winsup: \
41845 configure-target-winsup
0aed8855 41846 @: $(MAKE); $(unstage)
a90ef4bf 41847 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41848 r=`${PWD_COMMAND}`; export r; \
41849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41850 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41851 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41852 for flag in $(EXTRA_TARGET_FLAGS); do \
41853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41854 done; \
a90ef4bf 41855 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41858 "RANLIB=$${RANLIB}" \
0c24b341 41859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41860 info) \
4fa63067
NN
41861 || exit 1
41862
a90ef4bf 41863@endif target-winsup
4fa63067 41864
a90ef4bf
JM
41865.PHONY: maybe-dvi-target-winsup dvi-target-winsup
41866maybe-dvi-target-winsup:
41867@if target-winsup
41868maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 41869
a90ef4bf
JM
41870dvi-target-winsup: \
41871 configure-target-winsup
0aed8855 41872 @: $(MAKE); $(unstage)
a90ef4bf 41873 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41874 r=`${PWD_COMMAND}`; export r; \
41875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41876 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41877 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41878 for flag in $(EXTRA_TARGET_FLAGS); do \
41879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41880 done; \
a90ef4bf 41881 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41884 "RANLIB=$${RANLIB}" \
0c24b341 41885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41886 dvi) \
4fa63067
NN
41887 || exit 1
41888
a90ef4bf 41889@endif target-winsup
4fa63067 41890
a90ef4bf
JM
41891.PHONY: maybe-pdf-target-winsup pdf-target-winsup
41892maybe-pdf-target-winsup:
41893@if target-winsup
41894maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 41895
a90ef4bf
JM
41896pdf-target-winsup: \
41897 configure-target-winsup
56a8fe78 41898 @: $(MAKE); $(unstage)
a90ef4bf 41899 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
56a8fe78
DD
41900 r=`${PWD_COMMAND}`; export r; \
41901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41902 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41903 echo "Doing pdf in $(TARGET_SUBDIR)/winsup" ; \
56a8fe78
DD
41904 for flag in $(EXTRA_TARGET_FLAGS); do \
41905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41906 done; \
a90ef4bf 41907 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
41908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41910 "RANLIB=$${RANLIB}" \
0c24b341 41911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41912 pdf) \
41913 || exit 1
41914
a90ef4bf 41915@endif target-winsup
56a8fe78 41916
a90ef4bf
JM
41917.PHONY: maybe-html-target-winsup html-target-winsup
41918maybe-html-target-winsup:
41919@if target-winsup
41920maybe-html-target-winsup: html-target-winsup
6d389afc 41921
a90ef4bf
JM
41922html-target-winsup: \
41923 configure-target-winsup
0aed8855 41924 @: $(MAKE); $(unstage)
a90ef4bf 41925 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
6d389afc
MS
41926 r=`${PWD_COMMAND}`; export r; \
41927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41928 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41929 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
6d389afc
MS
41930 for flag in $(EXTRA_TARGET_FLAGS); do \
41931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41932 done; \
a90ef4bf 41933 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
41934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41936 "RANLIB=$${RANLIB}" \
0c24b341 41937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41938 html) \
41939 || exit 1
41940
a90ef4bf 41941@endif target-winsup
6d389afc 41942
a90ef4bf
JM
41943.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
41944maybe-TAGS-target-winsup:
41945@if target-winsup
41946maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 41947
a90ef4bf
JM
41948TAGS-target-winsup: \
41949 configure-target-winsup
0aed8855 41950 @: $(MAKE); $(unstage)
a90ef4bf 41951 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41952 r=`${PWD_COMMAND}`; export r; \
41953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41954 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41955 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41956 for flag in $(EXTRA_TARGET_FLAGS); do \
41957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41958 done; \
a90ef4bf 41959 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41962 "RANLIB=$${RANLIB}" \
0c24b341 41963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41964 TAGS) \
4fa63067
NN
41965 || exit 1
41966
a90ef4bf 41967@endif target-winsup
4fa63067 41968
a90ef4bf
JM
41969.PHONY: maybe-install-info-target-winsup install-info-target-winsup
41970maybe-install-info-target-winsup:
41971@if target-winsup
41972maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 41973
a90ef4bf
JM
41974install-info-target-winsup: \
41975 configure-target-winsup \
41976 info-target-winsup
0aed8855 41977 @: $(MAKE); $(unstage)
a90ef4bf 41978 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41979 r=`${PWD_COMMAND}`; export r; \
41980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41981 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41982 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41983 for flag in $(EXTRA_TARGET_FLAGS); do \
41984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41985 done; \
a90ef4bf 41986 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41989 "RANLIB=$${RANLIB}" \
0c24b341 41990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41991 install-info) \
4fa63067
NN
41992 || exit 1
41993
a90ef4bf 41994@endif target-winsup
4fa63067 41995
a90ef4bf
JM
41996.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
41997maybe-install-pdf-target-winsup:
41998@if target-winsup
41999maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 42000
a90ef4bf
JM
42001install-pdf-target-winsup: \
42002 configure-target-winsup \
42003 pdf-target-winsup
a3ca38d2 42004 @: $(MAKE); $(unstage)
a90ef4bf 42005 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
a3ca38d2
DD
42006 r=`${PWD_COMMAND}`; export r; \
42007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42008 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42009 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup" ; \
a3ca38d2
DD
42010 for flag in $(EXTRA_TARGET_FLAGS); do \
42011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42012 done; \
a90ef4bf 42013 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
42014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42016 "RANLIB=$${RANLIB}" \
0c24b341 42017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42018 install-pdf) \
42019 || exit 1
42020
a90ef4bf 42021@endif target-winsup
a3ca38d2 42022
a90ef4bf
JM
42023.PHONY: maybe-install-html-target-winsup install-html-target-winsup
42024maybe-install-html-target-winsup:
42025@if target-winsup
42026maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 42027
a90ef4bf
JM
42028install-html-target-winsup: \
42029 configure-target-winsup \
42030 html-target-winsup
108a6f8e 42031 @: $(MAKE); $(unstage)
a90ef4bf 42032 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
108a6f8e
CD
42033 r=`${PWD_COMMAND}`; export r; \
42034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42035 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42036 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
108a6f8e
CD
42037 for flag in $(EXTRA_TARGET_FLAGS); do \
42038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42039 done; \
a90ef4bf 42040 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
42041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42043 "RANLIB=$${RANLIB}" \
0c24b341 42044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42045 install-html) \
42046 || exit 1
42047
a90ef4bf 42048@endif target-winsup
108a6f8e 42049
a90ef4bf
JM
42050.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
42051maybe-installcheck-target-winsup:
42052@if target-winsup
42053maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 42054
a90ef4bf
JM
42055installcheck-target-winsup: \
42056 configure-target-winsup
0aed8855 42057 @: $(MAKE); $(unstage)
a90ef4bf 42058 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42059 r=`${PWD_COMMAND}`; export r; \
42060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42061 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42062 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42063 for flag in $(EXTRA_TARGET_FLAGS); do \
42064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42065 done; \
a90ef4bf 42066 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42069 "RANLIB=$${RANLIB}" \
0c24b341 42070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42071 installcheck) \
4fa63067
NN
42072 || exit 1
42073
a90ef4bf 42074@endif target-winsup
4fa63067 42075
a90ef4bf
JM
42076.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
42077maybe-mostlyclean-target-winsup:
42078@if target-winsup
42079maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 42080
a90ef4bf 42081mostlyclean-target-winsup:
0aed8855 42082 @: $(MAKE); $(unstage)
a90ef4bf 42083 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42084 r=`${PWD_COMMAND}`; export r; \
42085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42086 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42087 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42088 for flag in $(EXTRA_TARGET_FLAGS); do \
42089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42090 done; \
a90ef4bf 42091 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42094 "RANLIB=$${RANLIB}" \
0c24b341 42095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42096 mostlyclean) \
4fa63067
NN
42097 || exit 1
42098
a90ef4bf 42099@endif target-winsup
4fa63067 42100
a90ef4bf
JM
42101.PHONY: maybe-clean-target-winsup clean-target-winsup
42102maybe-clean-target-winsup:
42103@if target-winsup
42104maybe-clean-target-winsup: clean-target-winsup
4fa63067 42105
a90ef4bf 42106clean-target-winsup:
0aed8855 42107 @: $(MAKE); $(unstage)
a90ef4bf 42108 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42109 r=`${PWD_COMMAND}`; export r; \
42110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42111 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42112 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42113 for flag in $(EXTRA_TARGET_FLAGS); do \
42114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42115 done; \
a90ef4bf 42116 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42119 "RANLIB=$${RANLIB}" \
0c24b341 42120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42121 clean) \
4fa63067
NN
42122 || exit 1
42123
a90ef4bf 42124@endif target-winsup
4fa63067 42125
a90ef4bf
JM
42126.PHONY: maybe-distclean-target-winsup distclean-target-winsup
42127maybe-distclean-target-winsup:
42128@if target-winsup
42129maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 42130
a90ef4bf 42131distclean-target-winsup:
0aed8855 42132 @: $(MAKE); $(unstage)
a90ef4bf 42133 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42134 r=`${PWD_COMMAND}`; export r; \
42135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42136 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42137 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42138 for flag in $(EXTRA_TARGET_FLAGS); do \
42139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42140 done; \
a90ef4bf 42141 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42144 "RANLIB=$${RANLIB}" \
0c24b341 42145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42146 distclean) \
4fa63067
NN
42147 || exit 1
42148
a90ef4bf 42149@endif target-winsup
4fa63067 42150
a90ef4bf
JM
42151.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
42152maybe-maintainer-clean-target-winsup:
42153@if target-winsup
42154maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 42155
a90ef4bf 42156maintainer-clean-target-winsup:
0aed8855 42157 @: $(MAKE); $(unstage)
a90ef4bf 42158 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42159 r=`${PWD_COMMAND}`; export r; \
42160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42161 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42162 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42163 for flag in $(EXTRA_TARGET_FLAGS); do \
42164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42165 done; \
a90ef4bf 42166 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42169 "RANLIB=$${RANLIB}" \
0c24b341 42170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42171 maintainer-clean) \
4fa63067 42172 || exit 1
16ae0395 42173
a90ef4bf 42174@endif target-winsup
e393202e
NN
42175
42176
15723a45 42177
e90269c8 42178
a7254363 42179
a90ef4bf
JM
42180.PHONY: configure-target-libgloss maybe-configure-target-libgloss
42181maybe-configure-target-libgloss:
4f0ef2d8 42182@if gcc-bootstrap
a90ef4bf 42183configure-target-libgloss: stage_current
4f0ef2d8 42184@endif gcc-bootstrap
a90ef4bf
JM
42185@if target-libgloss
42186maybe-configure-target-libgloss: configure-target-libgloss
42187configure-target-libgloss:
0aed8855
PB
42188 @: $(MAKE); $(unstage)
42189 @r=`${PWD_COMMAND}`; export r; \
42190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
42191 echo "Checking multilib configuration for libgloss..."; \
42192 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
42193 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
42194 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42195 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42196 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 42197 else \
a90ef4bf
JM
42198 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
42199 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
42200 fi; \
42201 else \
a90ef4bf 42202 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 42203 fi; \
a90ef4bf
JM
42204 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
42205 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
1f53ca9a 42206 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42207 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
42208 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 42209 case $(srcdir) in \
b00612cc 42210 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42211 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 42212 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42213 esac; \
1b6c0831 42214 module_srcdir=libgloss; \
bba45b8b 42215 rm -f no-such-file || : ; \
1b6c0831
L
42216 CONFIG_SITE=no-such-file $(SHELL) \
42217 $$s/$$module_srcdir/configure \
42218 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42219 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42220 --target=${target_alias} \
bba45b8b 42221 || exit 1
a90ef4bf 42222@endif target-libgloss
e393202e 42223
a7254363
PB
42224
42225
d545f33b
PB
42226
42227
a90ef4bf
JM
42228.PHONY: all-target-libgloss maybe-all-target-libgloss
42229maybe-all-target-libgloss:
4f0ef2d8 42230@if gcc-bootstrap
a90ef4bf 42231all-target-libgloss: stage_current
4f0ef2d8 42232@endif gcc-bootstrap
a90ef4bf
JM
42233@if target-libgloss
42234TARGET-target-libgloss=all
42235maybe-all-target-libgloss: all-target-libgloss
42236all-target-libgloss: configure-target-libgloss
0aed8855 42237 @: $(MAKE); $(unstage)
b40e3958
L
42238 @r=`${PWD_COMMAND}`; export r; \
42239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42240 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42241 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 42242 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42243 $(TARGET-target-libgloss))
42244@endif target-libgloss
e393202e 42245
a7254363
PB
42246
42247
d545f33b
PB
42248
42249
a90ef4bf
JM
42250.PHONY: check-target-libgloss maybe-check-target-libgloss
42251maybe-check-target-libgloss:
42252@if target-libgloss
42253maybe-check-target-libgloss: check-target-libgloss
16ae0395 42254
a90ef4bf
JM
42255# Dummy target for uncheckable module.
42256check-target-libgloss:
930314a4 42257
a90ef4bf 42258@endif target-libgloss
e393202e 42259
a90ef4bf
JM
42260.PHONY: install-target-libgloss maybe-install-target-libgloss
42261maybe-install-target-libgloss:
42262@if target-libgloss
42263maybe-install-target-libgloss: install-target-libgloss
4fa63067 42264
a90ef4bf 42265install-target-libgloss: installdirs
0aed8855 42266 @: $(MAKE); $(unstage)
4fa63067
NN
42267 @r=`${PWD_COMMAND}`; export r; \
42268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42269 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42270 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 42271 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42272
a90ef4bf 42273@endif target-libgloss
4fa63067 42274
a90ef4bf
JM
42275.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
42276maybe-install-strip-target-libgloss:
42277@if target-libgloss
42278maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 42279
a90ef4bf 42280install-strip-target-libgloss: installdirs
9b980aa1
RW
42281 @: $(MAKE); $(unstage)
42282 @r=`${PWD_COMMAND}`; export r; \
42283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42284 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42285 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
42286 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42287
a90ef4bf 42288@endif target-libgloss
9b980aa1 42289
56a8fe78 42290# Other targets (info, dvi, pdf, etc.)
4fa63067 42291
a90ef4bf
JM
42292.PHONY: maybe-info-target-libgloss info-target-libgloss
42293maybe-info-target-libgloss:
42294@if target-libgloss
42295maybe-info-target-libgloss: info-target-libgloss
4fa63067 42296
a90ef4bf
JM
42297info-target-libgloss: \
42298 configure-target-libgloss
0aed8855 42299 @: $(MAKE); $(unstage)
a90ef4bf 42300 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42301 r=`${PWD_COMMAND}`; export r; \
42302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42303 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42304 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42305 for flag in $(EXTRA_TARGET_FLAGS); do \
42306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42307 done; \
a90ef4bf 42308 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42311 "RANLIB=$${RANLIB}" \
0c24b341 42312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42313 info) \
4fa63067
NN
42314 || exit 1
42315
a90ef4bf 42316@endif target-libgloss
4fa63067 42317
a90ef4bf
JM
42318.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
42319maybe-dvi-target-libgloss:
42320@if target-libgloss
42321maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 42322
a90ef4bf
JM
42323dvi-target-libgloss: \
42324 configure-target-libgloss
0aed8855 42325 @: $(MAKE); $(unstage)
a90ef4bf 42326 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42327 r=`${PWD_COMMAND}`; export r; \
42328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42329 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42330 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42331 for flag in $(EXTRA_TARGET_FLAGS); do \
42332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42333 done; \
a90ef4bf 42334 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42337 "RANLIB=$${RANLIB}" \
0c24b341 42338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42339 dvi) \
4fa63067
NN
42340 || exit 1
42341
a90ef4bf 42342@endif target-libgloss
4fa63067 42343
a90ef4bf
JM
42344.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
42345maybe-pdf-target-libgloss:
42346@if target-libgloss
42347maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 42348
a90ef4bf
JM
42349pdf-target-libgloss: \
42350 configure-target-libgloss
56a8fe78 42351 @: $(MAKE); $(unstage)
a90ef4bf 42352 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
56a8fe78
DD
42353 r=`${PWD_COMMAND}`; export r; \
42354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42355 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42356 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss" ; \
56a8fe78
DD
42357 for flag in $(EXTRA_TARGET_FLAGS); do \
42358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42359 done; \
a90ef4bf 42360 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
42361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42363 "RANLIB=$${RANLIB}" \
0c24b341 42364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42365 pdf) \
42366 || exit 1
42367
a90ef4bf 42368@endif target-libgloss
56a8fe78 42369
a90ef4bf
JM
42370.PHONY: maybe-html-target-libgloss html-target-libgloss
42371maybe-html-target-libgloss:
42372@if target-libgloss
42373maybe-html-target-libgloss: html-target-libgloss
6d389afc 42374
a90ef4bf
JM
42375html-target-libgloss: \
42376 configure-target-libgloss
0aed8855 42377 @: $(MAKE); $(unstage)
a90ef4bf 42378 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
6d389afc
MS
42379 r=`${PWD_COMMAND}`; export r; \
42380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42381 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42382 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
6d389afc
MS
42383 for flag in $(EXTRA_TARGET_FLAGS); do \
42384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42385 done; \
a90ef4bf 42386 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
42387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42389 "RANLIB=$${RANLIB}" \
0c24b341 42390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42391 html) \
42392 || exit 1
42393
a90ef4bf 42394@endif target-libgloss
6d389afc 42395
a90ef4bf
JM
42396.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
42397maybe-TAGS-target-libgloss:
42398@if target-libgloss
42399maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 42400
a90ef4bf
JM
42401TAGS-target-libgloss: \
42402 configure-target-libgloss
0aed8855 42403 @: $(MAKE); $(unstage)
a90ef4bf 42404 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42405 r=`${PWD_COMMAND}`; export r; \
42406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42407 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42408 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42409 for flag in $(EXTRA_TARGET_FLAGS); do \
42410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42411 done; \
a90ef4bf 42412 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42415 "RANLIB=$${RANLIB}" \
0c24b341 42416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42417 TAGS) \
4fa63067
NN
42418 || exit 1
42419
a90ef4bf 42420@endif target-libgloss
4fa63067 42421
a90ef4bf
JM
42422.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
42423maybe-install-info-target-libgloss:
42424@if target-libgloss
42425maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 42426
a90ef4bf
JM
42427install-info-target-libgloss: \
42428 configure-target-libgloss \
42429 info-target-libgloss
0aed8855 42430 @: $(MAKE); $(unstage)
a90ef4bf 42431 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42432 r=`${PWD_COMMAND}`; export r; \
42433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42434 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42435 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42436 for flag in $(EXTRA_TARGET_FLAGS); do \
42437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42438 done; \
a90ef4bf 42439 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42442 "RANLIB=$${RANLIB}" \
0c24b341 42443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42444 install-info) \
4fa63067
NN
42445 || exit 1
42446
a90ef4bf 42447@endif target-libgloss
4fa63067 42448
a90ef4bf
JM
42449.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
42450maybe-install-pdf-target-libgloss:
42451@if target-libgloss
42452maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 42453
a90ef4bf
JM
42454install-pdf-target-libgloss: \
42455 configure-target-libgloss \
42456 pdf-target-libgloss
a3ca38d2 42457 @: $(MAKE); $(unstage)
a90ef4bf 42458 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
a3ca38d2
DD
42459 r=`${PWD_COMMAND}`; export r; \
42460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42461 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42462 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss" ; \
a3ca38d2
DD
42463 for flag in $(EXTRA_TARGET_FLAGS); do \
42464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42465 done; \
a90ef4bf 42466 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
42467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42469 "RANLIB=$${RANLIB}" \
0c24b341 42470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42471 install-pdf) \
42472 || exit 1
42473
a90ef4bf 42474@endif target-libgloss
a3ca38d2 42475
a90ef4bf
JM
42476.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
42477maybe-install-html-target-libgloss:
42478@if target-libgloss
42479maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 42480
a90ef4bf
JM
42481install-html-target-libgloss: \
42482 configure-target-libgloss \
42483 html-target-libgloss
108a6f8e 42484 @: $(MAKE); $(unstage)
a90ef4bf 42485 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
108a6f8e
CD
42486 r=`${PWD_COMMAND}`; export r; \
42487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42488 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42489 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
108a6f8e
CD
42490 for flag in $(EXTRA_TARGET_FLAGS); do \
42491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42492 done; \
a90ef4bf 42493 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
42494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42496 "RANLIB=$${RANLIB}" \
0c24b341 42497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42498 install-html) \
42499 || exit 1
42500
a90ef4bf 42501@endif target-libgloss
108a6f8e 42502
a90ef4bf
JM
42503.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
42504maybe-installcheck-target-libgloss:
42505@if target-libgloss
42506maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 42507
a90ef4bf
JM
42508installcheck-target-libgloss: \
42509 configure-target-libgloss
0aed8855 42510 @: $(MAKE); $(unstage)
a90ef4bf 42511 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42512 r=`${PWD_COMMAND}`; export r; \
42513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42514 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42515 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42516 for flag in $(EXTRA_TARGET_FLAGS); do \
42517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42518 done; \
a90ef4bf 42519 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42522 "RANLIB=$${RANLIB}" \
0c24b341 42523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42524 installcheck) \
4fa63067
NN
42525 || exit 1
42526
a90ef4bf 42527@endif target-libgloss
4fa63067 42528
a90ef4bf
JM
42529.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
42530maybe-mostlyclean-target-libgloss:
42531@if target-libgloss
42532maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 42533
a90ef4bf 42534mostlyclean-target-libgloss:
0aed8855 42535 @: $(MAKE); $(unstage)
a90ef4bf 42536 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42537 r=`${PWD_COMMAND}`; export r; \
42538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42539 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42540 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42541 for flag in $(EXTRA_TARGET_FLAGS); do \
42542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42543 done; \
a90ef4bf 42544 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42547 "RANLIB=$${RANLIB}" \
0c24b341 42548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42549 mostlyclean) \
4fa63067
NN
42550 || exit 1
42551
a90ef4bf 42552@endif target-libgloss
4fa63067 42553
a90ef4bf
JM
42554.PHONY: maybe-clean-target-libgloss clean-target-libgloss
42555maybe-clean-target-libgloss:
42556@if target-libgloss
42557maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 42558
a90ef4bf 42559clean-target-libgloss:
0aed8855 42560 @: $(MAKE); $(unstage)
a90ef4bf 42561 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42562 r=`${PWD_COMMAND}`; export r; \
42563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42564 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42565 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42566 for flag in $(EXTRA_TARGET_FLAGS); do \
42567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42568 done; \
a90ef4bf 42569 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42572 "RANLIB=$${RANLIB}" \
0c24b341 42573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42574 clean) \
4fa63067
NN
42575 || exit 1
42576
a90ef4bf 42577@endif target-libgloss
4fa63067 42578
a90ef4bf
JM
42579.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
42580maybe-distclean-target-libgloss:
42581@if target-libgloss
42582maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 42583
a90ef4bf 42584distclean-target-libgloss:
0aed8855 42585 @: $(MAKE); $(unstage)
a90ef4bf 42586 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42587 r=`${PWD_COMMAND}`; export r; \
42588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42589 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42590 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42591 for flag in $(EXTRA_TARGET_FLAGS); do \
42592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42593 done; \
a90ef4bf 42594 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42597 "RANLIB=$${RANLIB}" \
0c24b341 42598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42599 distclean) \
4fa63067
NN
42600 || exit 1
42601
a90ef4bf 42602@endif target-libgloss
4fa63067 42603
a90ef4bf
JM
42604.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
42605maybe-maintainer-clean-target-libgloss:
42606@if target-libgloss
42607maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 42608
a90ef4bf 42609maintainer-clean-target-libgloss:
0aed8855 42610 @: $(MAKE); $(unstage)
a90ef4bf 42611 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42612 r=`${PWD_COMMAND}`; export r; \
42613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42614 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42615 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42616 for flag in $(EXTRA_TARGET_FLAGS); do \
42617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42618 done; \
a90ef4bf 42619 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42622 "RANLIB=$${RANLIB}" \
0c24b341 42623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42624 maintainer-clean) \
4fa63067 42625 || exit 1
16ae0395 42626
a90ef4bf 42627@endif target-libgloss
e393202e
NN
42628
42629
15723a45 42630
a7254363
PB
42631
42632
a7254363
PB
42633.PHONY: configure-target-libffi maybe-configure-target-libffi
42634maybe-configure-target-libffi:
4f0ef2d8
CD
42635@if gcc-bootstrap
42636configure-target-libffi: stage_current
42637@endif gcc-bootstrap
a7254363
PB
42638@if target-libffi
42639maybe-configure-target-libffi: configure-target-libffi
c52c6897 42640configure-target-libffi:
0aed8855
PB
42641 @: $(MAKE); $(unstage)
42642 @r=`${PWD_COMMAND}`; export r; \
42643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42644 echo "Checking multilib configuration for libffi..."; \
42645 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
42646 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
42647 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
42648 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
42649 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
42650 else \
42651 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
42652 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
42653 fi; \
42654 else \
42655 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
42656 fi; \
42657 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
4fa63067 42658 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
1f53ca9a 42659 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42660 echo Configuring in $(TARGET_SUBDIR)/libffi; \
42661 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 42662 case $(srcdir) in \
b00612cc
PB
42663 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42664 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
42665 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42666 esac; \
1b6c0831 42667 module_srcdir=libffi; \
bba45b8b 42668 rm -f no-such-file || : ; \
1b6c0831
L
42669 CONFIG_SITE=no-such-file $(SHELL) \
42670 $$s/$$module_srcdir/configure \
42671 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42672 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42673 --target=${target_alias} \
bba45b8b 42674 || exit 1
6bd3dfaa 42675@endif target-libffi
e393202e 42676
a7254363
PB
42677
42678
d545f33b
PB
42679
42680
4fa63067
NN
42681.PHONY: all-target-libffi maybe-all-target-libffi
42682maybe-all-target-libffi:
4f0ef2d8
CD
42683@if gcc-bootstrap
42684all-target-libffi: stage_current
42685@endif gcc-bootstrap
6bd3dfaa 42686@if target-libffi
72b2455a 42687TARGET-target-libffi=all
6bd3dfaa 42688maybe-all-target-libffi: all-target-libffi
4fa63067 42689all-target-libffi: configure-target-libffi
0aed8855 42690 @: $(MAKE); $(unstage)
b40e3958
L
42691 @r=`${PWD_COMMAND}`; export r; \
42692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42693 $(NORMAL_TARGET_EXPORTS) \
4fa63067 42694 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 42695 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 42696 $(TARGET-target-libffi))
6bd3dfaa 42697@endif target-libffi
e393202e 42698
a7254363
PB
42699
42700
d545f33b
PB
42701
42702
4fa63067
NN
42703.PHONY: check-target-libffi maybe-check-target-libffi
42704maybe-check-target-libffi:
6bd3dfaa
PB
42705@if target-libffi
42706maybe-check-target-libffi: check-target-libffi
16ae0395 42707
4fa63067 42708check-target-libffi:
0aed8855 42709 @: $(MAKE); $(unstage)
b40e3958
L
42710 @r=`${PWD_COMMAND}`; export r; \
42711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42712 $(NORMAL_TARGET_EXPORTS) \
4fa63067 42713 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 42714 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 42715
6bd3dfaa 42716@endif target-libffi
e393202e 42717
4fa63067
NN
42718.PHONY: install-target-libffi maybe-install-target-libffi
42719maybe-install-target-libffi:
6bd3dfaa
PB
42720@if target-libffi
42721maybe-install-target-libffi: install-target-libffi
16ae0395 42722
b836cb18
JBG
42723# Dummy target for uninstallable.
42724install-target-libffi:
e393202e 42725
6bd3dfaa 42726@endif target-libffi
e393202e 42727
9b980aa1
RW
42728.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
42729maybe-install-strip-target-libffi:
42730@if target-libffi
42731maybe-install-strip-target-libffi: install-strip-target-libffi
42732
b836cb18
JBG
42733# Dummy target for uninstallable.
42734install-strip-target-libffi:
9b980aa1
RW
42735
42736@endif target-libffi
42737
56a8fe78 42738# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
42739
42740.PHONY: maybe-info-target-libffi info-target-libffi
42741maybe-info-target-libffi:
6bd3dfaa
PB
42742@if target-libffi
42743maybe-info-target-libffi: info-target-libffi
4fa63067
NN
42744
42745info-target-libffi: \
42746 configure-target-libffi
0aed8855 42747 @: $(MAKE); $(unstage)
4fa63067
NN
42748 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42749 r=`${PWD_COMMAND}`; export r; \
42750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42751 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42752 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
42753 for flag in $(EXTRA_TARGET_FLAGS); do \
42754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42755 done; \
42756 (cd $(TARGET_SUBDIR)/libffi && \
42757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42759 "RANLIB=$${RANLIB}" \
0c24b341 42760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42761 info) \
4fa63067
NN
42762 || exit 1
42763
6bd3dfaa 42764@endif target-libffi
4fa63067
NN
42765
42766.PHONY: maybe-dvi-target-libffi dvi-target-libffi
42767maybe-dvi-target-libffi:
6bd3dfaa
PB
42768@if target-libffi
42769maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
42770
42771dvi-target-libffi: \
42772 configure-target-libffi
0aed8855 42773 @: $(MAKE); $(unstage)
4fa63067
NN
42774 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42775 r=`${PWD_COMMAND}`; export r; \
42776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42777 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42778 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
42779 for flag in $(EXTRA_TARGET_FLAGS); do \
42780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42781 done; \
42782 (cd $(TARGET_SUBDIR)/libffi && \
42783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42785 "RANLIB=$${RANLIB}" \
0c24b341 42786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42787 dvi) \
4fa63067
NN
42788 || exit 1
42789
6bd3dfaa 42790@endif target-libffi
4fa63067 42791
56a8fe78
DD
42792.PHONY: maybe-pdf-target-libffi pdf-target-libffi
42793maybe-pdf-target-libffi:
42794@if target-libffi
42795maybe-pdf-target-libffi: pdf-target-libffi
42796
42797pdf-target-libffi: \
42798 configure-target-libffi
42799 @: $(MAKE); $(unstage)
42800 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42801 r=`${PWD_COMMAND}`; export r; \
42802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42803 $(NORMAL_TARGET_EXPORTS) \
42804 echo "Doing pdf in $(TARGET_SUBDIR)/libffi" ; \
42805 for flag in $(EXTRA_TARGET_FLAGS); do \
42806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42807 done; \
42808 (cd $(TARGET_SUBDIR)/libffi && \
42809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42811 "RANLIB=$${RANLIB}" \
0c24b341 42812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42813 pdf) \
42814 || exit 1
42815
42816@endif target-libffi
42817
6d389afc
MS
42818.PHONY: maybe-html-target-libffi html-target-libffi
42819maybe-html-target-libffi:
42820@if target-libffi
42821maybe-html-target-libffi: html-target-libffi
42822
42823html-target-libffi: \
42824 configure-target-libffi
0aed8855 42825 @: $(MAKE); $(unstage)
6d389afc
MS
42826 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42827 r=`${PWD_COMMAND}`; export r; \
42828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
42829 $(NORMAL_TARGET_EXPORTS) \
42830 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
42831 for flag in $(EXTRA_TARGET_FLAGS); do \
42832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42833 done; \
42834 (cd $(TARGET_SUBDIR)/libffi && \
42835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42837 "RANLIB=$${RANLIB}" \
0c24b341 42838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42839 html) \
42840 || exit 1
42841
42842@endif target-libffi
42843
4fa63067
NN
42844.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
42845maybe-TAGS-target-libffi:
6bd3dfaa
PB
42846@if target-libffi
42847maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
42848
42849TAGS-target-libffi: \
42850 configure-target-libffi
0aed8855 42851 @: $(MAKE); $(unstage)
4fa63067
NN
42852 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42853 r=`${PWD_COMMAND}`; export r; \
42854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42855 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42856 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
42857 for flag in $(EXTRA_TARGET_FLAGS); do \
42858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42859 done; \
42860 (cd $(TARGET_SUBDIR)/libffi && \
42861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42863 "RANLIB=$${RANLIB}" \
0c24b341 42864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42865 TAGS) \
4fa63067
NN
42866 || exit 1
42867
6bd3dfaa 42868@endif target-libffi
4fa63067
NN
42869
42870.PHONY: maybe-install-info-target-libffi install-info-target-libffi
42871maybe-install-info-target-libffi:
6bd3dfaa
PB
42872@if target-libffi
42873maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
42874
42875install-info-target-libffi: \
42876 configure-target-libffi \
42877 info-target-libffi
0aed8855 42878 @: $(MAKE); $(unstage)
4fa63067
NN
42879 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42880 r=`${PWD_COMMAND}`; export r; \
42881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42882 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42883 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
42884 for flag in $(EXTRA_TARGET_FLAGS); do \
42885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42886 done; \
42887 (cd $(TARGET_SUBDIR)/libffi && \
42888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42890 "RANLIB=$${RANLIB}" \
0c24b341 42891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42892 install-info) \
4fa63067
NN
42893 || exit 1
42894
6bd3dfaa 42895@endif target-libffi
4fa63067 42896
a3ca38d2
DD
42897.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
42898maybe-install-pdf-target-libffi:
42899@if target-libffi
42900maybe-install-pdf-target-libffi: install-pdf-target-libffi
42901
42902install-pdf-target-libffi: \
42903 configure-target-libffi \
42904 pdf-target-libffi
42905 @: $(MAKE); $(unstage)
42906 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42907 r=`${PWD_COMMAND}`; export r; \
42908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42909 $(NORMAL_TARGET_EXPORTS) \
42910 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi" ; \
42911 for flag in $(EXTRA_TARGET_FLAGS); do \
42912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42913 done; \
42914 (cd $(TARGET_SUBDIR)/libffi && \
42915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42917 "RANLIB=$${RANLIB}" \
0c24b341 42918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42919 install-pdf) \
42920 || exit 1
42921
42922@endif target-libffi
42923
108a6f8e
CD
42924.PHONY: maybe-install-html-target-libffi install-html-target-libffi
42925maybe-install-html-target-libffi:
42926@if target-libffi
42927maybe-install-html-target-libffi: install-html-target-libffi
42928
42929install-html-target-libffi: \
42930 configure-target-libffi \
42931 html-target-libffi
42932 @: $(MAKE); $(unstage)
42933 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42934 r=`${PWD_COMMAND}`; export r; \
42935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42936 $(NORMAL_TARGET_EXPORTS) \
42937 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
42938 for flag in $(EXTRA_TARGET_FLAGS); do \
42939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42940 done; \
42941 (cd $(TARGET_SUBDIR)/libffi && \
42942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42944 "RANLIB=$${RANLIB}" \
0c24b341 42945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42946 install-html) \
42947 || exit 1
42948
42949@endif target-libffi
42950
4fa63067
NN
42951.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
42952maybe-installcheck-target-libffi:
6bd3dfaa
PB
42953@if target-libffi
42954maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
42955
42956installcheck-target-libffi: \
42957 configure-target-libffi
0aed8855 42958 @: $(MAKE); $(unstage)
4fa63067
NN
42959 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42960 r=`${PWD_COMMAND}`; export r; \
42961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42962 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42963 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
42964 for flag in $(EXTRA_TARGET_FLAGS); do \
42965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42966 done; \
42967 (cd $(TARGET_SUBDIR)/libffi && \
42968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42970 "RANLIB=$${RANLIB}" \
0c24b341 42971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42972 installcheck) \
4fa63067
NN
42973 || exit 1
42974
6bd3dfaa 42975@endif target-libffi
4fa63067
NN
42976
42977.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
42978maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
42979@if target-libffi
42980maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
42981
42982mostlyclean-target-libffi:
0aed8855 42983 @: $(MAKE); $(unstage)
4fa63067
NN
42984 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42985 r=`${PWD_COMMAND}`; export r; \
42986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42987 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42988 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
42989 for flag in $(EXTRA_TARGET_FLAGS); do \
42990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42991 done; \
42992 (cd $(TARGET_SUBDIR)/libffi && \
42993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42995 "RANLIB=$${RANLIB}" \
0c24b341 42996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42997 mostlyclean) \
4fa63067
NN
42998 || exit 1
42999
6bd3dfaa 43000@endif target-libffi
4fa63067
NN
43001
43002.PHONY: maybe-clean-target-libffi clean-target-libffi
43003maybe-clean-target-libffi:
6bd3dfaa
PB
43004@if target-libffi
43005maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
43006
43007clean-target-libffi:
0aed8855 43008 @: $(MAKE); $(unstage)
4fa63067
NN
43009 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43010 r=`${PWD_COMMAND}`; export r; \
43011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43012 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43013 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
43014 for flag in $(EXTRA_TARGET_FLAGS); do \
43015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43016 done; \
43017 (cd $(TARGET_SUBDIR)/libffi && \
43018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43020 "RANLIB=$${RANLIB}" \
0c24b341 43021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43022 clean) \
4fa63067
NN
43023 || exit 1
43024
6bd3dfaa 43025@endif target-libffi
4fa63067
NN
43026
43027.PHONY: maybe-distclean-target-libffi distclean-target-libffi
43028maybe-distclean-target-libffi:
6bd3dfaa
PB
43029@if target-libffi
43030maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
43031
43032distclean-target-libffi:
0aed8855 43033 @: $(MAKE); $(unstage)
4fa63067
NN
43034 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43035 r=`${PWD_COMMAND}`; export r; \
43036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43037 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43038 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
43039 for flag in $(EXTRA_TARGET_FLAGS); do \
43040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43041 done; \
43042 (cd $(TARGET_SUBDIR)/libffi && \
43043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43045 "RANLIB=$${RANLIB}" \
0c24b341 43046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43047 distclean) \
4fa63067
NN
43048 || exit 1
43049
6bd3dfaa 43050@endif target-libffi
4fa63067
NN
43051
43052.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
43053maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
43054@if target-libffi
43055maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
43056
43057maintainer-clean-target-libffi:
0aed8855 43058 @: $(MAKE); $(unstage)
4fa63067
NN
43059 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43060 r=`${PWD_COMMAND}`; export r; \
43061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43062 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43063 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
43064 for flag in $(EXTRA_TARGET_FLAGS); do \
43065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43066 done; \
43067 (cd $(TARGET_SUBDIR)/libffi && \
43068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43070 "RANLIB=$${RANLIB}" \
0c24b341 43071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43072 maintainer-clean) \
4fa63067
NN
43073 || exit 1
43074
6bd3dfaa 43075@endif target-libffi
4fa63067
NN
43076
43077
15723a45 43078
a7254363 43079
15723a45 43080
a7254363
PB
43081.PHONY: configure-target-libjava maybe-configure-target-libjava
43082maybe-configure-target-libjava:
4f0ef2d8
CD
43083@if gcc-bootstrap
43084configure-target-libjava: stage_current
43085@endif gcc-bootstrap
a7254363
PB
43086@if target-libjava
43087maybe-configure-target-libjava: configure-target-libjava
c52c6897 43088configure-target-libjava:
0aed8855
PB
43089 @: $(MAKE); $(unstage)
43090 @r=`${PWD_COMMAND}`; export r; \
43091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43092 echo "Checking multilib configuration for libjava..."; \
43093 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
43094 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
43095 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
43096 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
43097 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
43098 else \
43099 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
43100 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
43101 fi; \
43102 else \
43103 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
c52c6897
PB
43104 fi; \
43105 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
4fa63067 43106 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
1f53ca9a 43107 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43108 echo Configuring in $(TARGET_SUBDIR)/libjava; \
43109 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b 43110 case $(srcdir) in \
b00612cc
PB
43111 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43112 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
43113 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43114 esac; \
1b6c0831 43115 module_srcdir=libjava; \
bba45b8b 43116 rm -f no-such-file || : ; \
1b6c0831
L
43117 CONFIG_SITE=no-such-file $(SHELL) \
43118 $$s/$$module_srcdir/configure \
43119 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43120 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43121 --target=${target_alias} $(EXTRA_CONFIGARGS_LIBJAVA) \
bba45b8b 43122 || exit 1
6bd3dfaa 43123@endif target-libjava
e393202e 43124
a7254363
PB
43125
43126
d545f33b
PB
43127
43128
4fa63067
NN
43129.PHONY: all-target-libjava maybe-all-target-libjava
43130maybe-all-target-libjava:
4f0ef2d8
CD
43131@if gcc-bootstrap
43132all-target-libjava: stage_current
43133@endif gcc-bootstrap
6bd3dfaa 43134@if target-libjava
72b2455a 43135TARGET-target-libjava=all
6bd3dfaa 43136maybe-all-target-libjava: all-target-libjava
4fa63067 43137all-target-libjava: configure-target-libjava
0aed8855 43138 @: $(MAKE); $(unstage)
b40e3958
L
43139 @r=`${PWD_COMMAND}`; export r; \
43140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43141 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43142 (cd $(TARGET_SUBDIR)/libjava && \
b3676d82 43143 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 43144 $(TARGET-target-libjava))
6bd3dfaa 43145@endif target-libjava
e393202e 43146
a7254363
PB
43147
43148
d545f33b
PB
43149
43150
4fa63067
NN
43151.PHONY: check-target-libjava maybe-check-target-libjava
43152maybe-check-target-libjava:
6bd3dfaa
PB
43153@if target-libjava
43154maybe-check-target-libjava: check-target-libjava
16ae0395 43155
4fa63067 43156check-target-libjava:
0aed8855 43157 @: $(MAKE); $(unstage)
4fa63067
NN
43158 @r=`${PWD_COMMAND}`; export r; \
43159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43160 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43161 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43162 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 43163
6bd3dfaa 43164@endif target-libjava
930314a4 43165
4fa63067
NN
43166.PHONY: install-target-libjava maybe-install-target-libjava
43167maybe-install-target-libjava:
6bd3dfaa
PB
43168@if target-libjava
43169maybe-install-target-libjava: install-target-libjava
16ae0395 43170
4fa63067 43171install-target-libjava: installdirs
0aed8855 43172 @: $(MAKE); $(unstage)
b40e3958
L
43173 @r=`${PWD_COMMAND}`; export r; \
43174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43175 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43176 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43177 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43178
6bd3dfaa 43179@endif target-libjava
e393202e 43180
9b980aa1
RW
43181.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
43182maybe-install-strip-target-libjava:
43183@if target-libjava
43184maybe-install-strip-target-libjava: install-strip-target-libjava
43185
43186install-strip-target-libjava: installdirs
43187 @: $(MAKE); $(unstage)
43188 @r=`${PWD_COMMAND}`; export r; \
43189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43190 $(RAW_CXX_TARGET_EXPORTS) \
43191 (cd $(TARGET_SUBDIR)/libjava && \
43192 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43193
43194@endif target-libjava
43195
56a8fe78 43196# Other targets (info, dvi, pdf, etc.)
15723a45 43197
4fa63067
NN
43198.PHONY: maybe-info-target-libjava info-target-libjava
43199maybe-info-target-libjava:
6bd3dfaa
PB
43200@if target-libjava
43201maybe-info-target-libjava: info-target-libjava
15723a45 43202
4fa63067
NN
43203info-target-libjava: \
43204 configure-target-libjava
0aed8855 43205 @: $(MAKE); $(unstage)
4fa63067 43206 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
43207 r=`${PWD_COMMAND}`; export r; \
43208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43209 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43210 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
43211 for flag in $(EXTRA_TARGET_FLAGS); do \
43212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43213 done; \
43214 (cd $(TARGET_SUBDIR)/libjava && \
43215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43217 "RANLIB=$${RANLIB}" \
0c24b341 43218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43219 info) \
bba45b8b 43220 || exit 1
e393202e 43221
6bd3dfaa 43222@endif target-libjava
4fa63067
NN
43223
43224.PHONY: maybe-dvi-target-libjava dvi-target-libjava
43225maybe-dvi-target-libjava:
6bd3dfaa
PB
43226@if target-libjava
43227maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
43228
43229dvi-target-libjava: \
43230 configure-target-libjava
0aed8855 43231 @: $(MAKE); $(unstage)
4fa63067
NN
43232 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43233 r=`${PWD_COMMAND}`; export r; \
b40e3958 43234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43235 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43236 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
43237 for flag in $(EXTRA_TARGET_FLAGS); do \
43238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43239 done; \
43240 (cd $(TARGET_SUBDIR)/libjava && \
43241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43243 "RANLIB=$${RANLIB}" \
0c24b341 43244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43245 dvi) \
4fa63067 43246 || exit 1
e393202e 43247
6bd3dfaa 43248@endif target-libjava
16ae0395 43249
56a8fe78
DD
43250.PHONY: maybe-pdf-target-libjava pdf-target-libjava
43251maybe-pdf-target-libjava:
43252@if target-libjava
43253maybe-pdf-target-libjava: pdf-target-libjava
43254
43255pdf-target-libjava: \
43256 configure-target-libjava
43257 @: $(MAKE); $(unstage)
43258 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43259 r=`${PWD_COMMAND}`; export r; \
43260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43261 $(RAW_CXX_TARGET_EXPORTS) \
43262 echo "Doing pdf in $(TARGET_SUBDIR)/libjava" ; \
43263 for flag in $(EXTRA_TARGET_FLAGS); do \
43264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43265 done; \
43266 (cd $(TARGET_SUBDIR)/libjava && \
43267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43269 "RANLIB=$${RANLIB}" \
0c24b341 43270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43271 pdf) \
43272 || exit 1
43273
43274@endif target-libjava
43275
6d389afc
MS
43276.PHONY: maybe-html-target-libjava html-target-libjava
43277maybe-html-target-libjava:
43278@if target-libjava
43279maybe-html-target-libjava: html-target-libjava
43280
43281html-target-libjava: \
43282 configure-target-libjava
0aed8855 43283 @: $(MAKE); $(unstage)
6d389afc
MS
43284 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43285 r=`${PWD_COMMAND}`; export r; \
43286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
43287 $(RAW_CXX_TARGET_EXPORTS) \
43288 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
43289 for flag in $(EXTRA_TARGET_FLAGS); do \
43290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43291 done; \
43292 (cd $(TARGET_SUBDIR)/libjava && \
43293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43295 "RANLIB=$${RANLIB}" \
0c24b341 43296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43297 html) \
43298 || exit 1
43299
43300@endif target-libjava
43301
4fa63067
NN
43302.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
43303maybe-TAGS-target-libjava:
6bd3dfaa
PB
43304@if target-libjava
43305maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
43306
43307TAGS-target-libjava: \
43308 configure-target-libjava
0aed8855 43309 @: $(MAKE); $(unstage)
4fa63067
NN
43310 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43311 r=`${PWD_COMMAND}`; export r; \
b40e3958 43312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43313 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43314 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
43315 for flag in $(EXTRA_TARGET_FLAGS); do \
43316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43317 done; \
43318 (cd $(TARGET_SUBDIR)/libjava && \
43319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43321 "RANLIB=$${RANLIB}" \
0c24b341 43322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43323 TAGS) \
4fa63067 43324 || exit 1
e393202e 43325
6bd3dfaa 43326@endif target-libjava
930314a4 43327
4fa63067
NN
43328.PHONY: maybe-install-info-target-libjava install-info-target-libjava
43329maybe-install-info-target-libjava:
6bd3dfaa
PB
43330@if target-libjava
43331maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 43332
4fa63067
NN
43333install-info-target-libjava: \
43334 configure-target-libjava \
43335 info-target-libjava
0aed8855 43336 @: $(MAKE); $(unstage)
4fa63067
NN
43337 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43338 r=`${PWD_COMMAND}`; export r; \
b40e3958 43339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43340 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43341 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
43342 for flag in $(EXTRA_TARGET_FLAGS); do \
43343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43344 done; \
43345 (cd $(TARGET_SUBDIR)/libjava && \
43346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43348 "RANLIB=$${RANLIB}" \
0c24b341 43349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43350 install-info) \
4fa63067 43351 || exit 1
e393202e 43352
6bd3dfaa 43353@endif target-libjava
e393202e 43354
a3ca38d2
DD
43355.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
43356maybe-install-pdf-target-libjava:
43357@if target-libjava
43358maybe-install-pdf-target-libjava: install-pdf-target-libjava
43359
43360install-pdf-target-libjava: \
43361 configure-target-libjava \
43362 pdf-target-libjava
43363 @: $(MAKE); $(unstage)
43364 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43365 r=`${PWD_COMMAND}`; export r; \
43366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43367 $(RAW_CXX_TARGET_EXPORTS) \
43368 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava" ; \
43369 for flag in $(EXTRA_TARGET_FLAGS); do \
43370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43371 done; \
43372 (cd $(TARGET_SUBDIR)/libjava && \
43373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43375 "RANLIB=$${RANLIB}" \
0c24b341 43376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43377 install-pdf) \
43378 || exit 1
43379
43380@endif target-libjava
43381
108a6f8e
CD
43382.PHONY: maybe-install-html-target-libjava install-html-target-libjava
43383maybe-install-html-target-libjava:
43384@if target-libjava
43385maybe-install-html-target-libjava: install-html-target-libjava
43386
43387install-html-target-libjava: \
43388 configure-target-libjava \
43389 html-target-libjava
43390 @: $(MAKE); $(unstage)
43391 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43392 r=`${PWD_COMMAND}`; export r; \
43393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43394 $(RAW_CXX_TARGET_EXPORTS) \
43395 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
43396 for flag in $(EXTRA_TARGET_FLAGS); do \
43397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43398 done; \
43399 (cd $(TARGET_SUBDIR)/libjava && \
43400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43402 "RANLIB=$${RANLIB}" \
0c24b341 43403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43404 install-html) \
43405 || exit 1
43406
43407@endif target-libjava
43408
4fa63067
NN
43409.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
43410maybe-installcheck-target-libjava:
6bd3dfaa
PB
43411@if target-libjava
43412maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 43413
4fa63067
NN
43414installcheck-target-libjava: \
43415 configure-target-libjava
0aed8855 43416 @: $(MAKE); $(unstage)
4fa63067
NN
43417 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43418 r=`${PWD_COMMAND}`; export r; \
43419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43420 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43421 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
43422 for flag in $(EXTRA_TARGET_FLAGS); do \
43423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43424 done; \
43425 (cd $(TARGET_SUBDIR)/libjava && \
43426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43428 "RANLIB=$${RANLIB}" \
0c24b341 43429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43430 installcheck) \
4fa63067 43431 || exit 1
15723a45 43432
6bd3dfaa 43433@endif target-libjava
4fa63067
NN
43434
43435.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
43436maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
43437@if target-libjava
43438maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
43439
43440mostlyclean-target-libjava:
0aed8855 43441 @: $(MAKE); $(unstage)
4fa63067
NN
43442 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43443 r=`${PWD_COMMAND}`; export r; \
43444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43445 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43446 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
43447 for flag in $(EXTRA_TARGET_FLAGS); do \
43448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43449 done; \
43450 (cd $(TARGET_SUBDIR)/libjava && \
43451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43453 "RANLIB=$${RANLIB}" \
0c24b341 43454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43455 mostlyclean) \
4fa63067
NN
43456 || exit 1
43457
6bd3dfaa 43458@endif target-libjava
4fa63067
NN
43459
43460.PHONY: maybe-clean-target-libjava clean-target-libjava
43461maybe-clean-target-libjava:
6bd3dfaa
PB
43462@if target-libjava
43463maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
43464
43465clean-target-libjava:
0aed8855 43466 @: $(MAKE); $(unstage)
4fa63067 43467 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
43468 r=`${PWD_COMMAND}`; export r; \
43469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43470 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43471 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
43472 for flag in $(EXTRA_TARGET_FLAGS); do \
43473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43474 done; \
43475 (cd $(TARGET_SUBDIR)/libjava && \
43476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43478 "RANLIB=$${RANLIB}" \
0c24b341 43479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43480 clean) \
bba45b8b 43481 || exit 1
e393202e 43482
6bd3dfaa 43483@endif target-libjava
e393202e 43484
4fa63067
NN
43485.PHONY: maybe-distclean-target-libjava distclean-target-libjava
43486maybe-distclean-target-libjava:
6bd3dfaa
PB
43487@if target-libjava
43488maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 43489
4fa63067 43490distclean-target-libjava:
0aed8855 43491 @: $(MAKE); $(unstage)
4fa63067
NN
43492 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43493 r=`${PWD_COMMAND}`; export r; \
43494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43495 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43496 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
43497 for flag in $(EXTRA_TARGET_FLAGS); do \
43498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43499 done; \
43500 (cd $(TARGET_SUBDIR)/libjava && \
43501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43503 "RANLIB=$${RANLIB}" \
0c24b341 43504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43505 distclean) \
4fa63067 43506 || exit 1
3866be5d 43507
6bd3dfaa 43508@endif target-libjava
930314a4 43509
4fa63067
NN
43510.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
43511maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
43512@if target-libjava
43513maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 43514
4fa63067 43515maintainer-clean-target-libjava:
0aed8855 43516 @: $(MAKE); $(unstage)
4fa63067
NN
43517 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43518 r=`${PWD_COMMAND}`; export r; \
b40e3958 43519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43520 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43521 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
43522 for flag in $(EXTRA_TARGET_FLAGS); do \
43523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43524 done; \
43525 (cd $(TARGET_SUBDIR)/libjava && \
43526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43528 "RANLIB=$${RANLIB}" \
0c24b341 43529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43530 maintainer-clean) \
4fa63067 43531 || exit 1
e393202e 43532
6bd3dfaa 43533@endif target-libjava
e393202e 43534
4fa63067 43535
15723a45 43536
a7254363 43537
e90269c8 43538
a7254363
PB
43539.PHONY: configure-target-zlib maybe-configure-target-zlib
43540maybe-configure-target-zlib:
4f0ef2d8
CD
43541@if gcc-bootstrap
43542configure-target-zlib: stage_current
43543@endif gcc-bootstrap
a7254363
PB
43544@if target-zlib
43545maybe-configure-target-zlib: configure-target-zlib
c52c6897 43546configure-target-zlib:
0aed8855
PB
43547 @: $(MAKE); $(unstage)
43548 @r=`${PWD_COMMAND}`; export r; \
43549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43550 echo "Checking multilib configuration for zlib..."; \
43551 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
43552 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
43553 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
43554 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
43555 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
43556 else \
43557 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
43558 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
43559 fi; \
43560 else \
43561 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
43562 fi; \
43563 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
4fa63067 43564 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
1f53ca9a 43565 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43566 echo Configuring in $(TARGET_SUBDIR)/zlib; \
43567 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 43568 case $(srcdir) in \
b00612cc
PB
43569 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43570 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
43571 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43572 esac; \
1b6c0831 43573 module_srcdir=zlib; \
bba45b8b 43574 rm -f no-such-file || : ; \
1b6c0831
L
43575 CONFIG_SITE=no-such-file $(SHELL) \
43576 $$s/$$module_srcdir/configure \
43577 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43578 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43579 --target=${target_alias} \
bba45b8b 43580 || exit 1
6bd3dfaa 43581@endif target-zlib
e393202e 43582
a7254363
PB
43583
43584
d545f33b
PB
43585
43586
4fa63067
NN
43587.PHONY: all-target-zlib maybe-all-target-zlib
43588maybe-all-target-zlib:
4f0ef2d8
CD
43589@if gcc-bootstrap
43590all-target-zlib: stage_current
43591@endif gcc-bootstrap
6bd3dfaa 43592@if target-zlib
72b2455a 43593TARGET-target-zlib=all
6bd3dfaa 43594maybe-all-target-zlib: all-target-zlib
4fa63067 43595all-target-zlib: configure-target-zlib
0aed8855 43596 @: $(MAKE); $(unstage)
b40e3958
L
43597 @r=`${PWD_COMMAND}`; export r; \
43598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43599 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43600 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 43601 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 43602 $(TARGET-target-zlib))
6bd3dfaa 43603@endif target-zlib
e393202e 43604
a7254363
PB
43605
43606
d545f33b
PB
43607
43608
4fa63067
NN
43609.PHONY: check-target-zlib maybe-check-target-zlib
43610maybe-check-target-zlib:
6bd3dfaa
PB
43611@if target-zlib
43612maybe-check-target-zlib: check-target-zlib
16ae0395 43613
4fa63067 43614check-target-zlib:
0aed8855 43615 @: $(MAKE); $(unstage)
b40e3958
L
43616 @r=`${PWD_COMMAND}`; export r; \
43617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43618 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43619 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 43620 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 43621
6bd3dfaa 43622@endif target-zlib
930314a4 43623
4fa63067
NN
43624.PHONY: install-target-zlib maybe-install-target-zlib
43625maybe-install-target-zlib:
6bd3dfaa
PB
43626@if target-zlib
43627maybe-install-target-zlib: install-target-zlib
16ae0395 43628
4fa63067 43629install-target-zlib: installdirs
0aed8855 43630 @: $(MAKE); $(unstage)
b40e3958
L
43631 @r=`${PWD_COMMAND}`; export r; \
43632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43633 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43634 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 43635 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43636
6bd3dfaa 43637@endif target-zlib
e393202e 43638
9b980aa1
RW
43639.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
43640maybe-install-strip-target-zlib:
43641@if target-zlib
43642maybe-install-strip-target-zlib: install-strip-target-zlib
43643
43644install-strip-target-zlib: installdirs
43645 @: $(MAKE); $(unstage)
43646 @r=`${PWD_COMMAND}`; export r; \
43647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43648 $(NORMAL_TARGET_EXPORTS) \
43649 (cd $(TARGET_SUBDIR)/zlib && \
43650 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43651
43652@endif target-zlib
43653
56a8fe78 43654# Other targets (info, dvi, pdf, etc.)
15723a45 43655
4fa63067
NN
43656.PHONY: maybe-info-target-zlib info-target-zlib
43657maybe-info-target-zlib:
6bd3dfaa
PB
43658@if target-zlib
43659maybe-info-target-zlib: info-target-zlib
15723a45 43660
4fa63067
NN
43661info-target-zlib: \
43662 configure-target-zlib
0aed8855 43663 @: $(MAKE); $(unstage)
4fa63067 43664 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43665 r=`${PWD_COMMAND}`; export r; \
43666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43667 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43668 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
43669 for flag in $(EXTRA_TARGET_FLAGS); do \
43670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43671 done; \
43672 (cd $(TARGET_SUBDIR)/zlib && \
43673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43675 "RANLIB=$${RANLIB}" \
0c24b341 43676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43677 info) \
bba45b8b 43678 || exit 1
e393202e 43679
6bd3dfaa 43680@endif target-zlib
e393202e 43681
4fa63067
NN
43682.PHONY: maybe-dvi-target-zlib dvi-target-zlib
43683maybe-dvi-target-zlib:
6bd3dfaa
PB
43684@if target-zlib
43685maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 43686
4fa63067
NN
43687dvi-target-zlib: \
43688 configure-target-zlib
0aed8855 43689 @: $(MAKE); $(unstage)
4fa63067
NN
43690 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43691 r=`${PWD_COMMAND}`; export r; \
b40e3958 43692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43693 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43694 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
43695 for flag in $(EXTRA_TARGET_FLAGS); do \
43696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43697 done; \
43698 (cd $(TARGET_SUBDIR)/zlib && \
43699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43701 "RANLIB=$${RANLIB}" \
0c24b341 43702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43703 dvi) \
4fa63067 43704 || exit 1
e393202e 43705
6bd3dfaa 43706@endif target-zlib
930314a4 43707
56a8fe78
DD
43708.PHONY: maybe-pdf-target-zlib pdf-target-zlib
43709maybe-pdf-target-zlib:
43710@if target-zlib
43711maybe-pdf-target-zlib: pdf-target-zlib
43712
43713pdf-target-zlib: \
43714 configure-target-zlib
43715 @: $(MAKE); $(unstage)
43716 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43717 r=`${PWD_COMMAND}`; export r; \
43718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43719 $(NORMAL_TARGET_EXPORTS) \
43720 echo "Doing pdf in $(TARGET_SUBDIR)/zlib" ; \
43721 for flag in $(EXTRA_TARGET_FLAGS); do \
43722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43723 done; \
43724 (cd $(TARGET_SUBDIR)/zlib && \
43725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43727 "RANLIB=$${RANLIB}" \
0c24b341 43728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43729 pdf) \
43730 || exit 1
43731
43732@endif target-zlib
43733
6d389afc
MS
43734.PHONY: maybe-html-target-zlib html-target-zlib
43735maybe-html-target-zlib:
43736@if target-zlib
43737maybe-html-target-zlib: html-target-zlib
43738
43739html-target-zlib: \
43740 configure-target-zlib
0aed8855 43741 @: $(MAKE); $(unstage)
6d389afc
MS
43742 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43743 r=`${PWD_COMMAND}`; export r; \
43744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
43745 $(NORMAL_TARGET_EXPORTS) \
43746 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
43747 for flag in $(EXTRA_TARGET_FLAGS); do \
43748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43749 done; \
43750 (cd $(TARGET_SUBDIR)/zlib && \
43751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43753 "RANLIB=$${RANLIB}" \
0c24b341 43754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43755 html) \
43756 || exit 1
43757
43758@endif target-zlib
43759
4fa63067
NN
43760.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
43761maybe-TAGS-target-zlib:
6bd3dfaa
PB
43762@if target-zlib
43763maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 43764
4fa63067
NN
43765TAGS-target-zlib: \
43766 configure-target-zlib
0aed8855 43767 @: $(MAKE); $(unstage)
4fa63067
NN
43768 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43769 r=`${PWD_COMMAND}`; export r; \
b40e3958 43770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43771 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43772 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
43773 for flag in $(EXTRA_TARGET_FLAGS); do \
43774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43775 done; \
43776 (cd $(TARGET_SUBDIR)/zlib && \
43777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43779 "RANLIB=$${RANLIB}" \
0c24b341 43780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43781 TAGS) \
4fa63067 43782 || exit 1
e393202e 43783
6bd3dfaa 43784@endif target-zlib
15723a45 43785
4fa63067
NN
43786.PHONY: maybe-install-info-target-zlib install-info-target-zlib
43787maybe-install-info-target-zlib:
6bd3dfaa
PB
43788@if target-zlib
43789maybe-install-info-target-zlib: install-info-target-zlib
15723a45 43790
4fa63067
NN
43791install-info-target-zlib: \
43792 configure-target-zlib \
43793 info-target-zlib
0aed8855 43794 @: $(MAKE); $(unstage)
4fa63067 43795 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43796 r=`${PWD_COMMAND}`; export r; \
43797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43798 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43799 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
43800 for flag in $(EXTRA_TARGET_FLAGS); do \
43801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43802 done; \
43803 (cd $(TARGET_SUBDIR)/zlib && \
43804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43806 "RANLIB=$${RANLIB}" \
0c24b341 43807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43808 install-info) \
bba45b8b 43809 || exit 1
e393202e 43810
6bd3dfaa 43811@endif target-zlib
16ae0395 43812
a3ca38d2
DD
43813.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
43814maybe-install-pdf-target-zlib:
43815@if target-zlib
43816maybe-install-pdf-target-zlib: install-pdf-target-zlib
43817
43818install-pdf-target-zlib: \
43819 configure-target-zlib \
43820 pdf-target-zlib
43821 @: $(MAKE); $(unstage)
43822 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43823 r=`${PWD_COMMAND}`; export r; \
43824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43825 $(NORMAL_TARGET_EXPORTS) \
43826 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib" ; \
43827 for flag in $(EXTRA_TARGET_FLAGS); do \
43828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43829 done; \
43830 (cd $(TARGET_SUBDIR)/zlib && \
43831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43833 "RANLIB=$${RANLIB}" \
0c24b341 43834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43835 install-pdf) \
43836 || exit 1
43837
43838@endif target-zlib
43839
108a6f8e
CD
43840.PHONY: maybe-install-html-target-zlib install-html-target-zlib
43841maybe-install-html-target-zlib:
43842@if target-zlib
43843maybe-install-html-target-zlib: install-html-target-zlib
43844
43845install-html-target-zlib: \
43846 configure-target-zlib \
43847 html-target-zlib
43848 @: $(MAKE); $(unstage)
43849 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43850 r=`${PWD_COMMAND}`; export r; \
43851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43852 $(NORMAL_TARGET_EXPORTS) \
43853 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
43854 for flag in $(EXTRA_TARGET_FLAGS); do \
43855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43856 done; \
43857 (cd $(TARGET_SUBDIR)/zlib && \
43858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43860 "RANLIB=$${RANLIB}" \
0c24b341 43861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43862 install-html) \
43863 || exit 1
43864
43865@endif target-zlib
43866
4fa63067
NN
43867.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
43868maybe-installcheck-target-zlib:
6bd3dfaa
PB
43869@if target-zlib
43870maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 43871
4fa63067
NN
43872installcheck-target-zlib: \
43873 configure-target-zlib
0aed8855 43874 @: $(MAKE); $(unstage)
4fa63067
NN
43875 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43876 r=`${PWD_COMMAND}`; export r; \
43877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43878 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43879 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
43880 for flag in $(EXTRA_TARGET_FLAGS); do \
43881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43882 done; \
43883 (cd $(TARGET_SUBDIR)/zlib && \
43884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43886 "RANLIB=$${RANLIB}" \
0c24b341 43887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43888 installcheck) \
4fa63067 43889 || exit 1
e393202e 43890
6bd3dfaa 43891@endif target-zlib
16ae0395 43892
4fa63067
NN
43893.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
43894maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
43895@if target-zlib
43896maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 43897
4fa63067 43898mostlyclean-target-zlib:
0aed8855 43899 @: $(MAKE); $(unstage)
4fa63067
NN
43900 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43901 r=`${PWD_COMMAND}`; export r; \
43902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43903 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43904 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
43905 for flag in $(EXTRA_TARGET_FLAGS); do \
43906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43907 done; \
43908 (cd $(TARGET_SUBDIR)/zlib && \
43909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43911 "RANLIB=$${RANLIB}" \
0c24b341 43912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43913 mostlyclean) \
4fa63067 43914 || exit 1
e393202e 43915
6bd3dfaa 43916@endif target-zlib
15723a45 43917
4fa63067
NN
43918.PHONY: maybe-clean-target-zlib clean-target-zlib
43919maybe-clean-target-zlib:
6bd3dfaa
PB
43920@if target-zlib
43921maybe-clean-target-zlib: clean-target-zlib
15723a45 43922
4fa63067 43923clean-target-zlib:
0aed8855 43924 @: $(MAKE); $(unstage)
4fa63067 43925 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43926 r=`${PWD_COMMAND}`; export r; \
43927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43928 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43929 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
43930 for flag in $(EXTRA_TARGET_FLAGS); do \
43931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43932 done; \
43933 (cd $(TARGET_SUBDIR)/zlib && \
43934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43936 "RANLIB=$${RANLIB}" \
0c24b341 43937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43938 clean) \
bba45b8b 43939 || exit 1
e393202e 43940
6bd3dfaa 43941@endif target-zlib
e393202e 43942
4fa63067
NN
43943.PHONY: maybe-distclean-target-zlib distclean-target-zlib
43944maybe-distclean-target-zlib:
6bd3dfaa
PB
43945@if target-zlib
43946maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 43947
4fa63067 43948distclean-target-zlib:
0aed8855 43949 @: $(MAKE); $(unstage)
4fa63067
NN
43950 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43951 r=`${PWD_COMMAND}`; export r; \
b40e3958 43952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43953 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43954 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
43955 for flag in $(EXTRA_TARGET_FLAGS); do \
43956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43957 done; \
43958 (cd $(TARGET_SUBDIR)/zlib && \
43959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43961 "RANLIB=$${RANLIB}" \
0c24b341 43962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43963 distclean) \
4fa63067 43964 || exit 1
e393202e 43965
6bd3dfaa 43966@endif target-zlib
e393202e 43967
4fa63067
NN
43968.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
43969maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
43970@if target-zlib
43971maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 43972
4fa63067 43973maintainer-clean-target-zlib:
0aed8855 43974 @: $(MAKE); $(unstage)
4fa63067
NN
43975 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43976 r=`${PWD_COMMAND}`; export r; \
b40e3958 43977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43978 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43979 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
43980 for flag in $(EXTRA_TARGET_FLAGS); do \
43981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43982 done; \
43983 (cd $(TARGET_SUBDIR)/zlib && \
43984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43986 "RANLIB=$${RANLIB}" \
0c24b341 43987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43988 maintainer-clean) \
4fa63067 43989 || exit 1
e393202e 43990
6bd3dfaa 43991@endif target-zlib
930314a4 43992
4fa63067 43993
15723a45 43994
a7254363 43995
e90269c8 43996
a7254363
PB
43997.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
43998maybe-configure-target-boehm-gc:
4f0ef2d8
CD
43999@if gcc-bootstrap
44000configure-target-boehm-gc: stage_current
44001@endif gcc-bootstrap
a7254363
PB
44002@if target-boehm-gc
44003maybe-configure-target-boehm-gc: configure-target-boehm-gc
c52c6897 44004configure-target-boehm-gc:
0aed8855
PB
44005 @: $(MAKE); $(unstage)
44006 @r=`${PWD_COMMAND}`; export r; \
44007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44008 echo "Checking multilib configuration for boehm-gc..."; \
44009 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
44010 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
44011 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44012 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44013 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
44014 else \
44015 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
44016 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
44017 fi; \
44018 else \
44019 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
c52c6897
PB
44020 fi; \
44021 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
4fa63067 44022 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
1f53ca9a 44023 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44024 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
44025 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b 44026 case $(srcdir) in \
b00612cc
PB
44027 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44028 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
44029 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44030 esac; \
1b6c0831 44031 module_srcdir=boehm-gc; \
bba45b8b 44032 rm -f no-such-file || : ; \
1b6c0831
L
44033 CONFIG_SITE=no-such-file $(SHELL) \
44034 $$s/$$module_srcdir/configure \
44035 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44036 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44037 --target=${target_alias} \
bba45b8b 44038 || exit 1
6bd3dfaa 44039@endif target-boehm-gc
e393202e 44040
a7254363
PB
44041
44042
d545f33b
PB
44043
44044
4fa63067
NN
44045.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
44046maybe-all-target-boehm-gc:
4f0ef2d8
CD
44047@if gcc-bootstrap
44048all-target-boehm-gc: stage_current
44049@endif gcc-bootstrap
6bd3dfaa 44050@if target-boehm-gc
72b2455a 44051TARGET-target-boehm-gc=all
6bd3dfaa 44052maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 44053all-target-boehm-gc: configure-target-boehm-gc
0aed8855 44054 @: $(MAKE); $(unstage)
b40e3958
L
44055 @r=`${PWD_COMMAND}`; export r; \
44056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44057 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44058 (cd $(TARGET_SUBDIR)/boehm-gc && \
b3676d82 44059 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44060 $(TARGET-target-boehm-gc))
6bd3dfaa 44061@endif target-boehm-gc
e393202e 44062
a7254363
PB
44063
44064
d545f33b
PB
44065
44066
4fa63067
NN
44067.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
44068maybe-check-target-boehm-gc:
6bd3dfaa
PB
44069@if target-boehm-gc
44070maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 44071
4fa63067 44072check-target-boehm-gc:
0aed8855 44073 @: $(MAKE); $(unstage)
b40e3958
L
44074 @r=`${PWD_COMMAND}`; export r; \
44075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44076 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44077 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44078 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44079
6bd3dfaa 44080@endif target-boehm-gc
930314a4 44081
4fa63067
NN
44082.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
44083maybe-install-target-boehm-gc:
6bd3dfaa
PB
44084@if target-boehm-gc
44085maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 44086
4fa63067 44087install-target-boehm-gc: installdirs
0aed8855 44088 @: $(MAKE); $(unstage)
b40e3958
L
44089 @r=`${PWD_COMMAND}`; export r; \
44090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44091 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44092 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44093 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44094
6bd3dfaa 44095@endif target-boehm-gc
e393202e 44096
9b980aa1
RW
44097.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
44098maybe-install-strip-target-boehm-gc:
44099@if target-boehm-gc
44100maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
44101
44102install-strip-target-boehm-gc: installdirs
44103 @: $(MAKE); $(unstage)
44104 @r=`${PWD_COMMAND}`; export r; \
44105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44106 $(NORMAL_TARGET_EXPORTS) \
44107 (cd $(TARGET_SUBDIR)/boehm-gc && \
44108 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44109
44110@endif target-boehm-gc
44111
56a8fe78 44112# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44113
44114.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
44115maybe-info-target-boehm-gc:
6bd3dfaa
PB
44116@if target-boehm-gc
44117maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
44118
44119info-target-boehm-gc: \
44120 configure-target-boehm-gc
0aed8855 44121 @: $(MAKE); $(unstage)
4fa63067
NN
44122 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44123 r=`${PWD_COMMAND}`; export r; \
44124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44125 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44126 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
44127 for flag in $(EXTRA_TARGET_FLAGS); do \
44128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44129 done; \
44130 (cd $(TARGET_SUBDIR)/boehm-gc && \
44131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44133 "RANLIB=$${RANLIB}" \
0c24b341 44134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44135 info) \
4fa63067
NN
44136 || exit 1
44137
6bd3dfaa 44138@endif target-boehm-gc
4fa63067
NN
44139
44140.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
44141maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
44142@if target-boehm-gc
44143maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
44144
44145dvi-target-boehm-gc: \
44146 configure-target-boehm-gc
0aed8855 44147 @: $(MAKE); $(unstage)
4fa63067
NN
44148 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44149 r=`${PWD_COMMAND}`; export r; \
44150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44151 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44152 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
44153 for flag in $(EXTRA_TARGET_FLAGS); do \
44154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44155 done; \
44156 (cd $(TARGET_SUBDIR)/boehm-gc && \
44157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44159 "RANLIB=$${RANLIB}" \
0c24b341 44160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44161 dvi) \
4fa63067
NN
44162 || exit 1
44163
6bd3dfaa 44164@endif target-boehm-gc
4fa63067 44165
56a8fe78
DD
44166.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
44167maybe-pdf-target-boehm-gc:
44168@if target-boehm-gc
44169maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
44170
44171pdf-target-boehm-gc: \
44172 configure-target-boehm-gc
44173 @: $(MAKE); $(unstage)
44174 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44175 r=`${PWD_COMMAND}`; export r; \
44176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44177 $(NORMAL_TARGET_EXPORTS) \
44178 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
44179 for flag in $(EXTRA_TARGET_FLAGS); do \
44180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44181 done; \
44182 (cd $(TARGET_SUBDIR)/boehm-gc && \
44183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44185 "RANLIB=$${RANLIB}" \
0c24b341 44186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44187 pdf) \
44188 || exit 1
44189
44190@endif target-boehm-gc
44191
6d389afc
MS
44192.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
44193maybe-html-target-boehm-gc:
44194@if target-boehm-gc
44195maybe-html-target-boehm-gc: html-target-boehm-gc
44196
44197html-target-boehm-gc: \
44198 configure-target-boehm-gc
0aed8855 44199 @: $(MAKE); $(unstage)
6d389afc
MS
44200 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44201 r=`${PWD_COMMAND}`; export r; \
44202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
44203 $(NORMAL_TARGET_EXPORTS) \
44204 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
44205 for flag in $(EXTRA_TARGET_FLAGS); do \
44206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44207 done; \
44208 (cd $(TARGET_SUBDIR)/boehm-gc && \
44209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44211 "RANLIB=$${RANLIB}" \
0c24b341 44212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44213 html) \
44214 || exit 1
44215
44216@endif target-boehm-gc
44217
4fa63067
NN
44218.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
44219maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
44220@if target-boehm-gc
44221maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
44222
44223TAGS-target-boehm-gc: \
44224 configure-target-boehm-gc
0aed8855 44225 @: $(MAKE); $(unstage)
4fa63067
NN
44226 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44227 r=`${PWD_COMMAND}`; export r; \
44228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44229 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44230 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
44231 for flag in $(EXTRA_TARGET_FLAGS); do \
44232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44233 done; \
44234 (cd $(TARGET_SUBDIR)/boehm-gc && \
44235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44237 "RANLIB=$${RANLIB}" \
0c24b341 44238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44239 TAGS) \
4fa63067
NN
44240 || exit 1
44241
6bd3dfaa 44242@endif target-boehm-gc
4fa63067
NN
44243
44244.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
44245maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
44246@if target-boehm-gc
44247maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
44248
44249install-info-target-boehm-gc: \
44250 configure-target-boehm-gc \
44251 info-target-boehm-gc
0aed8855 44252 @: $(MAKE); $(unstage)
4fa63067
NN
44253 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44254 r=`${PWD_COMMAND}`; export r; \
44255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44256 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44257 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
44258 for flag in $(EXTRA_TARGET_FLAGS); do \
44259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44260 done; \
44261 (cd $(TARGET_SUBDIR)/boehm-gc && \
44262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44264 "RANLIB=$${RANLIB}" \
0c24b341 44265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44266 install-info) \
4fa63067
NN
44267 || exit 1
44268
6bd3dfaa 44269@endif target-boehm-gc
4fa63067 44270
a3ca38d2
DD
44271.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
44272maybe-install-pdf-target-boehm-gc:
44273@if target-boehm-gc
44274maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
44275
44276install-pdf-target-boehm-gc: \
44277 configure-target-boehm-gc \
44278 pdf-target-boehm-gc
44279 @: $(MAKE); $(unstage)
44280 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44281 r=`${PWD_COMMAND}`; export r; \
44282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44283 $(NORMAL_TARGET_EXPORTS) \
44284 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
44285 for flag in $(EXTRA_TARGET_FLAGS); do \
44286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44287 done; \
44288 (cd $(TARGET_SUBDIR)/boehm-gc && \
44289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44291 "RANLIB=$${RANLIB}" \
0c24b341 44292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44293 install-pdf) \
44294 || exit 1
44295
44296@endif target-boehm-gc
44297
108a6f8e
CD
44298.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
44299maybe-install-html-target-boehm-gc:
44300@if target-boehm-gc
44301maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
44302
44303install-html-target-boehm-gc: \
44304 configure-target-boehm-gc \
44305 html-target-boehm-gc
44306 @: $(MAKE); $(unstage)
44307 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44308 r=`${PWD_COMMAND}`; export r; \
44309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44310 $(NORMAL_TARGET_EXPORTS) \
44311 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
44312 for flag in $(EXTRA_TARGET_FLAGS); do \
44313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44314 done; \
44315 (cd $(TARGET_SUBDIR)/boehm-gc && \
44316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44318 "RANLIB=$${RANLIB}" \
0c24b341 44319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44320 install-html) \
44321 || exit 1
44322
44323@endif target-boehm-gc
44324
4fa63067
NN
44325.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
44326maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
44327@if target-boehm-gc
44328maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
44329
44330installcheck-target-boehm-gc: \
44331 configure-target-boehm-gc
0aed8855 44332 @: $(MAKE); $(unstage)
4fa63067
NN
44333 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44334 r=`${PWD_COMMAND}`; export r; \
44335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44336 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44337 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
44338 for flag in $(EXTRA_TARGET_FLAGS); do \
44339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44340 done; \
44341 (cd $(TARGET_SUBDIR)/boehm-gc && \
44342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44344 "RANLIB=$${RANLIB}" \
0c24b341 44345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44346 installcheck) \
4fa63067
NN
44347 || exit 1
44348
6bd3dfaa 44349@endif target-boehm-gc
4fa63067
NN
44350
44351.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
44352maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
44353@if target-boehm-gc
44354maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
44355
44356mostlyclean-target-boehm-gc:
0aed8855 44357 @: $(MAKE); $(unstage)
4fa63067
NN
44358 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44359 r=`${PWD_COMMAND}`; export r; \
44360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44361 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44362 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
44363 for flag in $(EXTRA_TARGET_FLAGS); do \
44364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44365 done; \
44366 (cd $(TARGET_SUBDIR)/boehm-gc && \
44367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44369 "RANLIB=$${RANLIB}" \
0c24b341 44370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44371 mostlyclean) \
4fa63067
NN
44372 || exit 1
44373
6bd3dfaa 44374@endif target-boehm-gc
4fa63067
NN
44375
44376.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
44377maybe-clean-target-boehm-gc:
6bd3dfaa
PB
44378@if target-boehm-gc
44379maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
44380
44381clean-target-boehm-gc:
0aed8855 44382 @: $(MAKE); $(unstage)
4fa63067
NN
44383 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44384 r=`${PWD_COMMAND}`; export r; \
44385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44386 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44387 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
44388 for flag in $(EXTRA_TARGET_FLAGS); do \
44389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44390 done; \
44391 (cd $(TARGET_SUBDIR)/boehm-gc && \
44392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44394 "RANLIB=$${RANLIB}" \
0c24b341 44395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44396 clean) \
4fa63067
NN
44397 || exit 1
44398
6bd3dfaa 44399@endif target-boehm-gc
4fa63067
NN
44400
44401.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
44402maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
44403@if target-boehm-gc
44404maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
44405
44406distclean-target-boehm-gc:
0aed8855 44407 @: $(MAKE); $(unstage)
4fa63067
NN
44408 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44409 r=`${PWD_COMMAND}`; export r; \
44410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44411 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44412 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
44413 for flag in $(EXTRA_TARGET_FLAGS); do \
44414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44415 done; \
44416 (cd $(TARGET_SUBDIR)/boehm-gc && \
44417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44419 "RANLIB=$${RANLIB}" \
0c24b341 44420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44421 distclean) \
4fa63067
NN
44422 || exit 1
44423
6bd3dfaa 44424@endif target-boehm-gc
4fa63067
NN
44425
44426.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
44427maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
44428@if target-boehm-gc
44429maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
44430
44431maintainer-clean-target-boehm-gc:
0aed8855 44432 @: $(MAKE); $(unstage)
4fa63067
NN
44433 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44434 r=`${PWD_COMMAND}`; export r; \
44435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44436 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44437 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
44438 for flag in $(EXTRA_TARGET_FLAGS); do \
44439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44440 done; \
44441 (cd $(TARGET_SUBDIR)/boehm-gc && \
44442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44444 "RANLIB=$${RANLIB}" \
0c24b341 44445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44446 maintainer-clean) \
4fa63067
NN
44447 || exit 1
44448
6bd3dfaa 44449@endif target-boehm-gc
4fa63067
NN
44450
44451
15723a45 44452
15723a45 44453
a7254363 44454
a7254363
PB
44455.PHONY: configure-target-rda maybe-configure-target-rda
44456maybe-configure-target-rda:
4f0ef2d8
CD
44457@if gcc-bootstrap
44458configure-target-rda: stage_current
44459@endif gcc-bootstrap
a7254363
PB
44460@if target-rda
44461maybe-configure-target-rda: configure-target-rda
c52c6897 44462configure-target-rda:
0aed8855
PB
44463 @: $(MAKE); $(unstage)
44464 @r=`${PWD_COMMAND}`; export r; \
44465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44466 echo "Checking multilib configuration for rda..."; \
44467 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
44468 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
44469 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
44470 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
44471 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
44472 else \
44473 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
44474 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
44475 fi; \
44476 else \
44477 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
44478 fi; \
44479 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
4fa63067 44480 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
1f53ca9a 44481 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44482 echo Configuring in $(TARGET_SUBDIR)/rda; \
44483 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 44484 case $(srcdir) in \
b00612cc
PB
44485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44486 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
44487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44488 esac; \
1b6c0831 44489 module_srcdir=rda; \
bba45b8b 44490 rm -f no-such-file || : ; \
1b6c0831
L
44491 CONFIG_SITE=no-such-file $(SHELL) \
44492 $$s/$$module_srcdir/configure \
44493 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44494 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44495 --target=${target_alias} \
bba45b8b 44496 || exit 1
6bd3dfaa 44497@endif target-rda
49b7683b 44498
a7254363
PB
44499
44500
d545f33b
PB
44501
44502
4fa63067
NN
44503.PHONY: all-target-rda maybe-all-target-rda
44504maybe-all-target-rda:
4f0ef2d8
CD
44505@if gcc-bootstrap
44506all-target-rda: stage_current
44507@endif gcc-bootstrap
6bd3dfaa 44508@if target-rda
72b2455a 44509TARGET-target-rda=all
6bd3dfaa 44510maybe-all-target-rda: all-target-rda
4fa63067 44511all-target-rda: configure-target-rda
0aed8855 44512 @: $(MAKE); $(unstage)
b40e3958
L
44513 @r=`${PWD_COMMAND}`; export r; \
44514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44515 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44516 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 44517 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44518 $(TARGET-target-rda))
6bd3dfaa 44519@endif target-rda
252b5132 44520
a7254363
PB
44521
44522
d545f33b
PB
44523
44524
4fa63067
NN
44525.PHONY: check-target-rda maybe-check-target-rda
44526maybe-check-target-rda:
6bd3dfaa
PB
44527@if target-rda
44528maybe-check-target-rda: check-target-rda
16ae0395 44529
4fa63067 44530check-target-rda:
0aed8855 44531 @: $(MAKE); $(unstage)
b40e3958
L
44532 @r=`${PWD_COMMAND}`; export r; \
44533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44534 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44535 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44536 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 44537
6bd3dfaa 44538@endif target-rda
930314a4 44539
4fa63067
NN
44540.PHONY: install-target-rda maybe-install-target-rda
44541maybe-install-target-rda:
6bd3dfaa
PB
44542@if target-rda
44543maybe-install-target-rda: install-target-rda
16ae0395 44544
4fa63067 44545install-target-rda: installdirs
0aed8855 44546 @: $(MAKE); $(unstage)
b40e3958
L
44547 @r=`${PWD_COMMAND}`; export r; \
44548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44549 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44550 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44551 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44552
6bd3dfaa 44553@endif target-rda
e393202e 44554
9b980aa1
RW
44555.PHONY: install-strip-target-rda maybe-install-strip-target-rda
44556maybe-install-strip-target-rda:
44557@if target-rda
44558maybe-install-strip-target-rda: install-strip-target-rda
44559
44560install-strip-target-rda: installdirs
44561 @: $(MAKE); $(unstage)
44562 @r=`${PWD_COMMAND}`; export r; \
44563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44564 $(NORMAL_TARGET_EXPORTS) \
44565 (cd $(TARGET_SUBDIR)/rda && \
44566 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44567
44568@endif target-rda
44569
56a8fe78 44570# Other targets (info, dvi, pdf, etc.)
15723a45 44571
4fa63067
NN
44572.PHONY: maybe-info-target-rda info-target-rda
44573maybe-info-target-rda:
6bd3dfaa
PB
44574@if target-rda
44575maybe-info-target-rda: info-target-rda
15723a45 44576
4fa63067
NN
44577info-target-rda: \
44578 configure-target-rda
0aed8855 44579 @: $(MAKE); $(unstage)
4fa63067 44580 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
44581 r=`${PWD_COMMAND}`; export r; \
44582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44583 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44584 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
44585 for flag in $(EXTRA_TARGET_FLAGS); do \
44586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44587 done; \
44588 (cd $(TARGET_SUBDIR)/rda && \
44589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44591 "RANLIB=$${RANLIB}" \
0c24b341 44592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44593 info) \
bba45b8b 44594 || exit 1
252b5132 44595
6bd3dfaa 44596@endif target-rda
4fa63067
NN
44597
44598.PHONY: maybe-dvi-target-rda dvi-target-rda
44599maybe-dvi-target-rda:
6bd3dfaa
PB
44600@if target-rda
44601maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
44602
44603dvi-target-rda: \
44604 configure-target-rda
0aed8855 44605 @: $(MAKE); $(unstage)
4fa63067
NN
44606 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44607 r=`${PWD_COMMAND}`; export r; \
b40e3958 44608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44609 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44610 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
44611 for flag in $(EXTRA_TARGET_FLAGS); do \
44612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44613 done; \
44614 (cd $(TARGET_SUBDIR)/rda && \
44615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44617 "RANLIB=$${RANLIB}" \
0c24b341 44618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44619 dvi) \
4fa63067 44620 || exit 1
252b5132 44621
6bd3dfaa 44622@endif target-rda
16ae0395 44623
56a8fe78
DD
44624.PHONY: maybe-pdf-target-rda pdf-target-rda
44625maybe-pdf-target-rda:
44626@if target-rda
44627maybe-pdf-target-rda: pdf-target-rda
44628
44629pdf-target-rda: \
44630 configure-target-rda
44631 @: $(MAKE); $(unstage)
44632 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44633 r=`${PWD_COMMAND}`; export r; \
44634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44635 $(NORMAL_TARGET_EXPORTS) \
44636 echo "Doing pdf in $(TARGET_SUBDIR)/rda" ; \
44637 for flag in $(EXTRA_TARGET_FLAGS); do \
44638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44639 done; \
44640 (cd $(TARGET_SUBDIR)/rda && \
44641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44643 "RANLIB=$${RANLIB}" \
0c24b341 44644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44645 pdf) \
44646 || exit 1
44647
44648@endif target-rda
44649
6d389afc
MS
44650.PHONY: maybe-html-target-rda html-target-rda
44651maybe-html-target-rda:
44652@if target-rda
44653maybe-html-target-rda: html-target-rda
44654
44655html-target-rda: \
44656 configure-target-rda
0aed8855 44657 @: $(MAKE); $(unstage)
6d389afc
MS
44658 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44659 r=`${PWD_COMMAND}`; export r; \
44660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
44661 $(NORMAL_TARGET_EXPORTS) \
44662 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
44663 for flag in $(EXTRA_TARGET_FLAGS); do \
44664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44665 done; \
44666 (cd $(TARGET_SUBDIR)/rda && \
44667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44669 "RANLIB=$${RANLIB}" \
0c24b341 44670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44671 html) \
44672 || exit 1
44673
44674@endif target-rda
44675
4fa63067
NN
44676.PHONY: maybe-TAGS-target-rda TAGS-target-rda
44677maybe-TAGS-target-rda:
6bd3dfaa
PB
44678@if target-rda
44679maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
44680
44681TAGS-target-rda: \
44682 configure-target-rda
0aed8855 44683 @: $(MAKE); $(unstage)
4fa63067
NN
44684 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44685 r=`${PWD_COMMAND}`; export r; \
b40e3958 44686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44687 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44688 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
44689 for flag in $(EXTRA_TARGET_FLAGS); do \
44690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44691 done; \
44692 (cd $(TARGET_SUBDIR)/rda && \
44693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44695 "RANLIB=$${RANLIB}" \
0c24b341 44696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44697 TAGS) \
4fa63067 44698 || exit 1
e393202e 44699
6bd3dfaa 44700@endif target-rda
930314a4 44701
4fa63067
NN
44702.PHONY: maybe-install-info-target-rda install-info-target-rda
44703maybe-install-info-target-rda:
6bd3dfaa
PB
44704@if target-rda
44705maybe-install-info-target-rda: install-info-target-rda
16ae0395 44706
4fa63067
NN
44707install-info-target-rda: \
44708 configure-target-rda \
44709 info-target-rda
0aed8855 44710 @: $(MAKE); $(unstage)
4fa63067
NN
44711 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44712 r=`${PWD_COMMAND}`; export r; \
b40e3958 44713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44714 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44715 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
44716 for flag in $(EXTRA_TARGET_FLAGS); do \
44717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44718 done; \
44719 (cd $(TARGET_SUBDIR)/rda && \
44720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44722 "RANLIB=$${RANLIB}" \
0c24b341 44723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44724 install-info) \
4fa63067 44725 || exit 1
252b5132 44726
6bd3dfaa 44727@endif target-rda
e393202e 44728
a3ca38d2
DD
44729.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
44730maybe-install-pdf-target-rda:
44731@if target-rda
44732maybe-install-pdf-target-rda: install-pdf-target-rda
44733
44734install-pdf-target-rda: \
44735 configure-target-rda \
44736 pdf-target-rda
44737 @: $(MAKE); $(unstage)
44738 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44739 r=`${PWD_COMMAND}`; export r; \
44740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44741 $(NORMAL_TARGET_EXPORTS) \
44742 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda" ; \
44743 for flag in $(EXTRA_TARGET_FLAGS); do \
44744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44745 done; \
44746 (cd $(TARGET_SUBDIR)/rda && \
44747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44749 "RANLIB=$${RANLIB}" \
0c24b341 44750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44751 install-pdf) \
44752 || exit 1
44753
44754@endif target-rda
44755
108a6f8e
CD
44756.PHONY: maybe-install-html-target-rda install-html-target-rda
44757maybe-install-html-target-rda:
44758@if target-rda
44759maybe-install-html-target-rda: install-html-target-rda
44760
44761install-html-target-rda: \
44762 configure-target-rda \
44763 html-target-rda
44764 @: $(MAKE); $(unstage)
44765 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44766 r=`${PWD_COMMAND}`; export r; \
44767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44768 $(NORMAL_TARGET_EXPORTS) \
44769 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
44770 for flag in $(EXTRA_TARGET_FLAGS); do \
44771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44772 done; \
44773 (cd $(TARGET_SUBDIR)/rda && \
44774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44776 "RANLIB=$${RANLIB}" \
0c24b341 44777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44778 install-html) \
44779 || exit 1
44780
44781@endif target-rda
44782
4fa63067
NN
44783.PHONY: maybe-installcheck-target-rda installcheck-target-rda
44784maybe-installcheck-target-rda:
6bd3dfaa
PB
44785@if target-rda
44786maybe-installcheck-target-rda: installcheck-target-rda
15723a45 44787
4fa63067
NN
44788installcheck-target-rda: \
44789 configure-target-rda
0aed8855 44790 @: $(MAKE); $(unstage)
4fa63067
NN
44791 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44792 r=`${PWD_COMMAND}`; export r; \
44793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44794 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44795 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
44796 for flag in $(EXTRA_TARGET_FLAGS); do \
44797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44798 done; \
44799 (cd $(TARGET_SUBDIR)/rda && \
44800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44802 "RANLIB=$${RANLIB}" \
0c24b341 44803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44804 installcheck) \
4fa63067 44805 || exit 1
15723a45 44806
6bd3dfaa 44807@endif target-rda
4fa63067
NN
44808
44809.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
44810maybe-mostlyclean-target-rda:
6bd3dfaa
PB
44811@if target-rda
44812maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
44813
44814mostlyclean-target-rda:
0aed8855 44815 @: $(MAKE); $(unstage)
4fa63067 44816 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
44817 r=`${PWD_COMMAND}`; export r; \
44818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44819 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44820 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
44821 for flag in $(EXTRA_TARGET_FLAGS); do \
44822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44823 done; \
44824 (cd $(TARGET_SUBDIR)/rda && \
44825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44827 "RANLIB=$${RANLIB}" \
0c24b341 44828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44829 mostlyclean) \
bba45b8b 44830 || exit 1
252b5132 44831
6bd3dfaa 44832@endif target-rda
4fa63067
NN
44833
44834.PHONY: maybe-clean-target-rda clean-target-rda
44835maybe-clean-target-rda:
6bd3dfaa
PB
44836@if target-rda
44837maybe-clean-target-rda: clean-target-rda
4fa63067
NN
44838
44839clean-target-rda:
0aed8855 44840 @: $(MAKE); $(unstage)
4fa63067
NN
44841 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44842 r=`${PWD_COMMAND}`; export r; \
b40e3958 44843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44844 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44845 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
44846 for flag in $(EXTRA_TARGET_FLAGS); do \
44847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44848 done; \
bba45b8b 44849 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44852 "RANLIB=$${RANLIB}" \
0c24b341 44853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44854 clean) \
4fa63067 44855 || exit 1
252b5132 44856
6bd3dfaa 44857@endif target-rda
16ae0395 44858
4fa63067
NN
44859.PHONY: maybe-distclean-target-rda distclean-target-rda
44860maybe-distclean-target-rda:
6bd3dfaa
PB
44861@if target-rda
44862maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
44863
44864distclean-target-rda:
0aed8855 44865 @: $(MAKE); $(unstage)
4fa63067
NN
44866 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44867 r=`${PWD_COMMAND}`; export r; \
b40e3958 44868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44869 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44870 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
44871 for flag in $(EXTRA_TARGET_FLAGS); do \
44872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44873 done; \
bba45b8b 44874 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44877 "RANLIB=$${RANLIB}" \
0c24b341 44878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44879 distclean) \
4fa63067 44880 || exit 1
252b5132 44881
6bd3dfaa 44882@endif target-rda
930314a4 44883
4fa63067
NN
44884.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
44885maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
44886@if target-rda
44887maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 44888
4fa63067 44889maintainer-clean-target-rda:
0aed8855 44890 @: $(MAKE); $(unstage)
4fa63067
NN
44891 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44892 r=`${PWD_COMMAND}`; export r; \
b40e3958 44893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44894 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44895 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
44896 for flag in $(EXTRA_TARGET_FLAGS); do \
44897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44898 done; \
bba45b8b 44899 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44902 "RANLIB=$${RANLIB}" \
0c24b341 44903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44904 maintainer-clean) \
4fa63067
NN
44905 || exit 1
44906
6bd3dfaa 44907@endif target-rda
252b5132 44908
e393202e 44909
a2592b1b 44910
a7254363
PB
44911
44912
44913.PHONY: configure-target-libada maybe-configure-target-libada
44914maybe-configure-target-libada:
4f0ef2d8
CD
44915@if gcc-bootstrap
44916configure-target-libada: stage_current
44917@endif gcc-bootstrap
a7254363
PB
44918@if target-libada
44919maybe-configure-target-libada: configure-target-libada
c52c6897 44920configure-target-libada:
0aed8855
PB
44921 @: $(MAKE); $(unstage)
44922 @r=`${PWD_COMMAND}`; export r; \
44923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44924 echo "Checking multilib configuration for libada..."; \
44925 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
44926 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
44927 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
44928 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
44929 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
44930 else \
44931 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
44932 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
44933 fi; \
44934 else \
44935 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
44936 fi; \
44937 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
a2592b1b 44938 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
1f53ca9a 44939 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
44940 echo Configuring in $(TARGET_SUBDIR)/libada; \
44941 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
44942 case $(srcdir) in \
b00612cc
PB
44943 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44944 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
44945 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 44946 esac; \
1b6c0831 44947 module_srcdir=libada; \
a2592b1b 44948 rm -f no-such-file || : ; \
1b6c0831
L
44949 CONFIG_SITE=no-such-file $(SHELL) \
44950 $$s/$$module_srcdir/configure \
44951 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44952 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44953 --target=${target_alias} \
a2592b1b 44954 || exit 1
6bd3dfaa 44955@endif target-libada
a2592b1b 44956
a7254363
PB
44957
44958
d545f33b
PB
44959
44960
4fa63067
NN
44961.PHONY: all-target-libada maybe-all-target-libada
44962maybe-all-target-libada:
4f0ef2d8
CD
44963@if gcc-bootstrap
44964all-target-libada: stage_current
44965@endif gcc-bootstrap
6bd3dfaa 44966@if target-libada
72b2455a 44967TARGET-target-libada=all
6bd3dfaa 44968maybe-all-target-libada: all-target-libada
4fa63067 44969all-target-libada: configure-target-libada
0aed8855 44970 @: $(MAKE); $(unstage)
4fa63067
NN
44971 @r=`${PWD_COMMAND}`; export r; \
44972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44973 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44974 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 44975 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44976 $(TARGET-target-libada))
6bd3dfaa 44977@endif target-libada
4fa63067 44978
a7254363
PB
44979
44980
d545f33b
PB
44981
44982
4fa63067
NN
44983.PHONY: check-target-libada maybe-check-target-libada
44984maybe-check-target-libada:
6bd3dfaa
PB
44985@if target-libada
44986maybe-check-target-libada: check-target-libada
4fa63067
NN
44987
44988check-target-libada:
0aed8855 44989 @: $(MAKE); $(unstage)
4fa63067
NN
44990 @r=`${PWD_COMMAND}`; export r; \
44991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44992 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44993 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 44994 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 44995
6bd3dfaa 44996@endif target-libada
4fa63067
NN
44997
44998.PHONY: install-target-libada maybe-install-target-libada
44999maybe-install-target-libada:
6bd3dfaa
PB
45000@if target-libada
45001maybe-install-target-libada: install-target-libada
4fa63067
NN
45002
45003install-target-libada: installdirs
0aed8855 45004 @: $(MAKE); $(unstage)
4fa63067
NN
45005 @r=`${PWD_COMMAND}`; export r; \
45006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45007 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45008 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45009 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45010
6bd3dfaa 45011@endif target-libada
4fa63067 45012
9b980aa1
RW
45013.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45014maybe-install-strip-target-libada:
45015@if target-libada
45016maybe-install-strip-target-libada: install-strip-target-libada
45017
45018install-strip-target-libada: installdirs
45019 @: $(MAKE); $(unstage)
45020 @r=`${PWD_COMMAND}`; export r; \
45021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45022 $(NORMAL_TARGET_EXPORTS) \
45023 (cd $(TARGET_SUBDIR)/libada && \
45024 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45025
45026@endif target-libada
45027
56a8fe78 45028# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45029
45030.PHONY: maybe-info-target-libada info-target-libada
45031maybe-info-target-libada:
6bd3dfaa
PB
45032@if target-libada
45033maybe-info-target-libada: info-target-libada
4fa63067
NN
45034
45035info-target-libada: \
45036 configure-target-libada
0aed8855 45037 @: $(MAKE); $(unstage)
4fa63067
NN
45038 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45039 r=`${PWD_COMMAND}`; export r; \
45040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45041 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45042 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
45043 for flag in $(EXTRA_TARGET_FLAGS); do \
45044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45045 done; \
45046 (cd $(TARGET_SUBDIR)/libada && \
45047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45049 "RANLIB=$${RANLIB}" \
0c24b341 45050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45051 info) \
4fa63067
NN
45052 || exit 1
45053
6bd3dfaa 45054@endif target-libada
4fa63067
NN
45055
45056.PHONY: maybe-dvi-target-libada dvi-target-libada
45057maybe-dvi-target-libada:
6bd3dfaa
PB
45058@if target-libada
45059maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
45060
45061dvi-target-libada: \
45062 configure-target-libada
0aed8855 45063 @: $(MAKE); $(unstage)
4fa63067
NN
45064 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45065 r=`${PWD_COMMAND}`; export r; \
45066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45067 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45068 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
45069 for flag in $(EXTRA_TARGET_FLAGS); do \
45070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45071 done; \
45072 (cd $(TARGET_SUBDIR)/libada && \
45073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45075 "RANLIB=$${RANLIB}" \
0c24b341 45076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45077 dvi) \
4fa63067
NN
45078 || exit 1
45079
6bd3dfaa 45080@endif target-libada
4fa63067 45081
56a8fe78
DD
45082.PHONY: maybe-pdf-target-libada pdf-target-libada
45083maybe-pdf-target-libada:
45084@if target-libada
45085maybe-pdf-target-libada: pdf-target-libada
45086
45087pdf-target-libada: \
45088 configure-target-libada
45089 @: $(MAKE); $(unstage)
45090 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45091 r=`${PWD_COMMAND}`; export r; \
45092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45093 $(NORMAL_TARGET_EXPORTS) \
45094 echo "Doing pdf in $(TARGET_SUBDIR)/libada" ; \
45095 for flag in $(EXTRA_TARGET_FLAGS); do \
45096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45097 done; \
45098 (cd $(TARGET_SUBDIR)/libada && \
45099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45101 "RANLIB=$${RANLIB}" \
0c24b341 45102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45103 pdf) \
45104 || exit 1
45105
45106@endif target-libada
45107
6d389afc
MS
45108.PHONY: maybe-html-target-libada html-target-libada
45109maybe-html-target-libada:
45110@if target-libada
45111maybe-html-target-libada: html-target-libada
45112
45113html-target-libada: \
45114 configure-target-libada
0aed8855 45115 @: $(MAKE); $(unstage)
6d389afc
MS
45116 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45117 r=`${PWD_COMMAND}`; export r; \
45118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
45119 $(NORMAL_TARGET_EXPORTS) \
45120 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
45121 for flag in $(EXTRA_TARGET_FLAGS); do \
45122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45123 done; \
45124 (cd $(TARGET_SUBDIR)/libada && \
45125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45127 "RANLIB=$${RANLIB}" \
0c24b341 45128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45129 html) \
45130 || exit 1
45131
45132@endif target-libada
45133
4fa63067
NN
45134.PHONY: maybe-TAGS-target-libada TAGS-target-libada
45135maybe-TAGS-target-libada:
6bd3dfaa
PB
45136@if target-libada
45137maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
45138
45139TAGS-target-libada: \
45140 configure-target-libada
0aed8855 45141 @: $(MAKE); $(unstage)
4fa63067
NN
45142 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45143 r=`${PWD_COMMAND}`; export r; \
45144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45145 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45146 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
45147 for flag in $(EXTRA_TARGET_FLAGS); do \
45148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45149 done; \
45150 (cd $(TARGET_SUBDIR)/libada && \
45151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45153 "RANLIB=$${RANLIB}" \
0c24b341 45154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45155 TAGS) \
4fa63067
NN
45156 || exit 1
45157
6bd3dfaa 45158@endif target-libada
4fa63067
NN
45159
45160.PHONY: maybe-install-info-target-libada install-info-target-libada
45161maybe-install-info-target-libada:
6bd3dfaa
PB
45162@if target-libada
45163maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
45164
45165install-info-target-libada: \
45166 configure-target-libada \
45167 info-target-libada
0aed8855 45168 @: $(MAKE); $(unstage)
4fa63067
NN
45169 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45170 r=`${PWD_COMMAND}`; export r; \
45171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45172 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45173 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
45174 for flag in $(EXTRA_TARGET_FLAGS); do \
45175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45176 done; \
45177 (cd $(TARGET_SUBDIR)/libada && \
45178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45180 "RANLIB=$${RANLIB}" \
0c24b341 45181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45182 install-info) \
4fa63067
NN
45183 || exit 1
45184
6bd3dfaa 45185@endif target-libada
4fa63067 45186
a3ca38d2
DD
45187.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
45188maybe-install-pdf-target-libada:
45189@if target-libada
45190maybe-install-pdf-target-libada: install-pdf-target-libada
45191
45192install-pdf-target-libada: \
45193 configure-target-libada \
45194 pdf-target-libada
45195 @: $(MAKE); $(unstage)
45196 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45197 r=`${PWD_COMMAND}`; export r; \
45198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45199 $(NORMAL_TARGET_EXPORTS) \
45200 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada" ; \
45201 for flag in $(EXTRA_TARGET_FLAGS); do \
45202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45203 done; \
45204 (cd $(TARGET_SUBDIR)/libada && \
45205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45207 "RANLIB=$${RANLIB}" \
0c24b341 45208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45209 install-pdf) \
45210 || exit 1
45211
45212@endif target-libada
45213
108a6f8e
CD
45214.PHONY: maybe-install-html-target-libada install-html-target-libada
45215maybe-install-html-target-libada:
45216@if target-libada
45217maybe-install-html-target-libada: install-html-target-libada
45218
45219install-html-target-libada: \
45220 configure-target-libada \
45221 html-target-libada
45222 @: $(MAKE); $(unstage)
45223 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45224 r=`${PWD_COMMAND}`; export r; \
45225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45226 $(NORMAL_TARGET_EXPORTS) \
45227 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
45228 for flag in $(EXTRA_TARGET_FLAGS); do \
45229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45230 done; \
45231 (cd $(TARGET_SUBDIR)/libada && \
45232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45234 "RANLIB=$${RANLIB}" \
0c24b341 45235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45236 install-html) \
45237 || exit 1
45238
45239@endif target-libada
45240
4fa63067
NN
45241.PHONY: maybe-installcheck-target-libada installcheck-target-libada
45242maybe-installcheck-target-libada:
6bd3dfaa
PB
45243@if target-libada
45244maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
45245
45246installcheck-target-libada: \
45247 configure-target-libada
0aed8855 45248 @: $(MAKE); $(unstage)
4fa63067
NN
45249 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45250 r=`${PWD_COMMAND}`; export r; \
45251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45252 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45253 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
45254 for flag in $(EXTRA_TARGET_FLAGS); do \
45255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45256 done; \
45257 (cd $(TARGET_SUBDIR)/libada && \
45258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45260 "RANLIB=$${RANLIB}" \
0c24b341 45261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45262 installcheck) \
4fa63067
NN
45263 || exit 1
45264
6bd3dfaa 45265@endif target-libada
4fa63067
NN
45266
45267.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
45268maybe-mostlyclean-target-libada:
6bd3dfaa
PB
45269@if target-libada
45270maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
45271
45272mostlyclean-target-libada:
0aed8855 45273 @: $(MAKE); $(unstage)
4fa63067
NN
45274 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45275 r=`${PWD_COMMAND}`; export r; \
45276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45277 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45278 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
45279 for flag in $(EXTRA_TARGET_FLAGS); do \
45280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45281 done; \
45282 (cd $(TARGET_SUBDIR)/libada && \
45283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45285 "RANLIB=$${RANLIB}" \
0c24b341 45286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45287 mostlyclean) \
4fa63067
NN
45288 || exit 1
45289
6bd3dfaa 45290@endif target-libada
4fa63067
NN
45291
45292.PHONY: maybe-clean-target-libada clean-target-libada
45293maybe-clean-target-libada:
6bd3dfaa
PB
45294@if target-libada
45295maybe-clean-target-libada: clean-target-libada
4fa63067
NN
45296
45297clean-target-libada:
0aed8855 45298 @: $(MAKE); $(unstage)
4fa63067
NN
45299 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45300 r=`${PWD_COMMAND}`; export r; \
45301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45302 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45303 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
45304 for flag in $(EXTRA_TARGET_FLAGS); do \
45305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45306 done; \
45307 (cd $(TARGET_SUBDIR)/libada && \
45308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45310 "RANLIB=$${RANLIB}" \
0c24b341 45311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45312 clean) \
4fa63067
NN
45313 || exit 1
45314
6bd3dfaa 45315@endif target-libada
a2592b1b 45316
4fa63067
NN
45317.PHONY: maybe-distclean-target-libada distclean-target-libada
45318maybe-distclean-target-libada:
6bd3dfaa
PB
45319@if target-libada
45320maybe-distclean-target-libada: distclean-target-libada
a2592b1b 45321
4fa63067 45322distclean-target-libada:
0aed8855 45323 @: $(MAKE); $(unstage)
4fa63067
NN
45324 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45325 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45327 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45328 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
45329 for flag in $(EXTRA_TARGET_FLAGS); do \
45330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45331 done; \
a2592b1b 45332 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45335 "RANLIB=$${RANLIB}" \
0c24b341 45336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45337 distclean) \
4fa63067 45338 || exit 1
a2592b1b 45339
6bd3dfaa 45340@endif target-libada
a2592b1b 45341
4fa63067
NN
45342.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
45343maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
45344@if target-libada
45345maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 45346
4fa63067 45347maintainer-clean-target-libada:
0aed8855 45348 @: $(MAKE); $(unstage)
4fa63067
NN
45349 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45350 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45352 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45353 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
45354 for flag in $(EXTRA_TARGET_FLAGS); do \
45355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45356 done; \
a2592b1b 45357 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45360 "RANLIB=$${RANLIB}" \
0c24b341 45361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45362 maintainer-clean) \
4fa63067
NN
45363 || exit 1
45364
6bd3dfaa 45365@endif target-libada
a2592b1b
DD
45366
45367
e393202e 45368
b3ded179
PB
45369
45370
45371.PHONY: configure-target-libgomp maybe-configure-target-libgomp
45372maybe-configure-target-libgomp:
4f0ef2d8
CD
45373@if gcc-bootstrap
45374configure-target-libgomp: stage_current
45375@endif gcc-bootstrap
b3ded179
PB
45376@if target-libgomp
45377maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 45378configure-target-libgomp:
b3ded179
PB
45379 @r=`${PWD_COMMAND}`; export r; \
45380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45381 echo "Checking multilib configuration for libgomp..."; \
45382 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45383 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45384 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45385 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45386 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45387 else \
45388 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45389 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45390 fi; \
45391 else \
45392 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
45393 fi; \
45394 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
b3ded179 45395 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
1f53ca9a 45396 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
45397 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
45398 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
45399 case $(srcdir) in \
45400 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45401 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45402 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45403 esac; \
1b6c0831 45404 module_srcdir=libgomp; \
b3ded179 45405 rm -f no-such-file || : ; \
1b6c0831
L
45406 CONFIG_SITE=no-such-file $(SHELL) \
45407 $$s/$$module_srcdir/configure \
45408 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45409 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45410 --target=${target_alias} \
b3ded179
PB
45411 || exit 1
45412@endif target-libgomp
45413
45414
45415
911e63d0
JR
45416.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
45417maybe-configure-stage1-target-libgomp:
45418@if target-libgomp-bootstrap
45419maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
45420configure-stage1-target-libgomp:
45421 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45422 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45423 @r=`${PWD_COMMAND}`; export r; \
45424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45425 TFLAGS="$(STAGE1_TFLAGS)"; \
45426 echo "Checking multilib configuration for libgomp..."; \
45427 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45428 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45429 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45430 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45431 else \
45432 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45433 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45434 fi; \
45435 else \
45436 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45437 fi; \
45438 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45439 $(NORMAL_TARGET_EXPORTS) \
45440 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45441 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45442 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45443 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp ; \
45444 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45445 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45446 case $(srcdir) in \
45447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45448 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45450 esac; \
1b6c0831
L
45451 module_srcdir=libgomp; \
45452 $(SHELL) $$s/$$module_srcdir/configure \
45453 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45454 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45455 --target=${target_alias} \
45456 \
911e63d0
JR
45457 $(STAGE1_CONFIGURE_FLAGS)
45458@endif target-libgomp-bootstrap
45459
45460.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
45461maybe-configure-stage2-target-libgomp:
45462@if target-libgomp-bootstrap
45463maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
45464configure-stage2-target-libgomp:
45465 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45466 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45467 @r=`${PWD_COMMAND}`; export r; \
45468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45469 TFLAGS="$(STAGE2_TFLAGS)"; \
45470 echo "Checking multilib configuration for libgomp..."; \
45471 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45472 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45473 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45474 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45475 else \
45476 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45477 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45478 fi; \
45479 else \
45480 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45481 fi; \
45482 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45483 $(NORMAL_TARGET_EXPORTS) \
45484 \
45485 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45486 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45487 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45488 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp ; \
45489 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45490 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45491 case $(srcdir) in \
45492 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45493 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45494 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45495 esac; \
1b6c0831
L
45496 module_srcdir=libgomp; \
45497 $(SHELL) $$s/$$module_srcdir/configure \
45498 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45499 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45500 --target=${target_alias} \
45501 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45502 $(STAGE2_CONFIGURE_FLAGS)
45503@endif target-libgomp-bootstrap
45504
45505.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
45506maybe-configure-stage3-target-libgomp:
45507@if target-libgomp-bootstrap
45508maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
45509configure-stage3-target-libgomp:
45510 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45511 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45512 @r=`${PWD_COMMAND}`; export r; \
45513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45514 TFLAGS="$(STAGE3_TFLAGS)"; \
45515 echo "Checking multilib configuration for libgomp..."; \
45516 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45517 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45518 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45519 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45520 else \
45521 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45522 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45523 fi; \
45524 else \
45525 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45526 fi; \
45527 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45528 $(NORMAL_TARGET_EXPORTS) \
45529 \
45530 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45531 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45532 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45533 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp ; \
45534 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45535 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45536 case $(srcdir) in \
45537 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45538 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45539 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45540 esac; \
1b6c0831
L
45541 module_srcdir=libgomp; \
45542 $(SHELL) $$s/$$module_srcdir/configure \
45543 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45544 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45545 --target=${target_alias} \
45546 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45547 $(STAGE3_CONFIGURE_FLAGS)
45548@endif target-libgomp-bootstrap
45549
45550.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
45551maybe-configure-stage4-target-libgomp:
45552@if target-libgomp-bootstrap
45553maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
45554configure-stage4-target-libgomp:
45555 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45556 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45557 @r=`${PWD_COMMAND}`; export r; \
45558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45559 TFLAGS="$(STAGE4_TFLAGS)"; \
45560 echo "Checking multilib configuration for libgomp..."; \
45561 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45562 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45563 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45564 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45565 else \
45566 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45567 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45568 fi; \
45569 else \
45570 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45571 fi; \
45572 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45573 $(NORMAL_TARGET_EXPORTS) \
45574 \
45575 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45576 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45577 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45578 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp ; \
45579 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45580 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45581 case $(srcdir) in \
45582 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45583 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45584 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45585 esac; \
1b6c0831
L
45586 module_srcdir=libgomp; \
45587 $(SHELL) $$s/$$module_srcdir/configure \
45588 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45589 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45590 --target=${target_alias} \
45591 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45592 $(STAGE4_CONFIGURE_FLAGS)
45593@endif target-libgomp-bootstrap
45594
45595.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
45596maybe-configure-stageprofile-target-libgomp:
45597@if target-libgomp-bootstrap
45598maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
45599configure-stageprofile-target-libgomp:
45600 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45601 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45602 @r=`${PWD_COMMAND}`; export r; \
45603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45604 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45605 echo "Checking multilib configuration for libgomp..."; \
45606 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45607 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45608 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45609 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45610 else \
45611 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45612 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45613 fi; \
45614 else \
45615 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45616 fi; \
45617 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45618 $(NORMAL_TARGET_EXPORTS) \
45619 \
45620 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45621 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45622 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45623 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp ; \
45624 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45625 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45626 case $(srcdir) in \
45627 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45628 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45629 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45630 esac; \
1b6c0831
L
45631 module_srcdir=libgomp; \
45632 $(SHELL) $$s/$$module_srcdir/configure \
45633 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45634 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45635 --target=${target_alias} \
45636 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45637 $(STAGEprofile_CONFIGURE_FLAGS)
45638@endif target-libgomp-bootstrap
45639
45640.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
45641maybe-configure-stagefeedback-target-libgomp:
45642@if target-libgomp-bootstrap
45643maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
45644configure-stagefeedback-target-libgomp:
45645 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45646 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45647 @r=`${PWD_COMMAND}`; export r; \
45648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45649 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45650 echo "Checking multilib configuration for libgomp..."; \
45651 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45652 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45653 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45654 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45655 else \
45656 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45657 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45658 fi; \
45659 else \
45660 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45661 fi; \
45662 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45663 $(NORMAL_TARGET_EXPORTS) \
45664 \
45665 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45666 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45667 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45668 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp ; \
45669 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45670 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45671 case $(srcdir) in \
45672 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45673 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45674 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45675 esac; \
1b6c0831
L
45676 module_srcdir=libgomp; \
45677 $(SHELL) $$s/$$module_srcdir/configure \
45678 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45679 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45680 --target=${target_alias} \
45681 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45682 $(STAGEfeedback_CONFIGURE_FLAGS)
45683@endif target-libgomp-bootstrap
45684
45685
45686
b3ded179
PB
45687
45688
45689.PHONY: all-target-libgomp maybe-all-target-libgomp
45690maybe-all-target-libgomp:
4f0ef2d8
CD
45691@if gcc-bootstrap
45692all-target-libgomp: stage_current
45693@endif gcc-bootstrap
b3ded179
PB
45694@if target-libgomp
45695TARGET-target-libgomp=all
45696maybe-all-target-libgomp: all-target-libgomp
45697all-target-libgomp: configure-target-libgomp
b3ded179
PB
45698 @r=`${PWD_COMMAND}`; export r; \
45699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45700 $(NORMAL_TARGET_EXPORTS) \
b3ded179 45701 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45702 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45703 $(TARGET-target-libgomp))
b3ded179
PB
45704@endif target-libgomp
45705
45706
45707
911e63d0
JR
45708.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
45709.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
45710maybe-all-stage1-target-libgomp:
45711maybe-clean-stage1-target-libgomp:
45712@if target-libgomp-bootstrap
45713maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
45714all-stage1: all-stage1-target-libgomp
45715TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
45716all-stage1-target-libgomp: configure-stage1-target-libgomp
45717 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45718 @r=`${PWD_COMMAND}`; export r; \
45719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45720 TFLAGS="$(STAGE1_TFLAGS)"; \
45721 $(NORMAL_TARGET_EXPORTS) \
45722 cd $(TARGET_SUBDIR)/libgomp && \
45723 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45724 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45725 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45726 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45727 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45728 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45729 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
45730 $(EXTRA_TARGET_FLAGS) \
45731 \
911e63d0
JR
45732 TFLAGS="$(STAGE1_TFLAGS)" \
45733 $(TARGET-stage1-target-libgomp)
45734
45735maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
45736clean-stage1: clean-stage1-target-libgomp
45737clean-stage1-target-libgomp:
45738 @if [ $(current_stage) = stage1 ]; then \
45739 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45740 else \
45741 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
45742 $(MAKE) stage1-start; \
45743 fi; \
45744 cd $(TARGET_SUBDIR)/libgomp && \
45745 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 45746 clean
911e63d0
JR
45747@endif target-libgomp-bootstrap
45748
45749
45750.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
45751.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
45752maybe-all-stage2-target-libgomp:
45753maybe-clean-stage2-target-libgomp:
45754@if target-libgomp-bootstrap
45755maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
45756all-stage2: all-stage2-target-libgomp
45757TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
45758all-stage2-target-libgomp: configure-stage2-target-libgomp
45759 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45760 @r=`${PWD_COMMAND}`; export r; \
45761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45762 TFLAGS="$(STAGE2_TFLAGS)"; \
45763 $(NORMAL_TARGET_EXPORTS) \
45764 \
45765 cd $(TARGET_SUBDIR)/libgomp && \
45766 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45767 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45768 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45769 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45770 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45771 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45772 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45773 $(EXTRA_TARGET_FLAGS) \
45774 TFLAGS="$(STAGE2_TFLAGS)" \
45775 $(TARGET-stage2-target-libgomp)
45776
45777maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
45778clean-stage2: clean-stage2-target-libgomp
45779clean-stage2-target-libgomp:
45780 @if [ $(current_stage) = stage2 ]; then \
45781 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45782 else \
45783 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
45784 $(MAKE) stage2-start; \
45785 fi; \
45786 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45787 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45788@endif target-libgomp-bootstrap
45789
45790
45791.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
45792.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
45793maybe-all-stage3-target-libgomp:
45794maybe-clean-stage3-target-libgomp:
45795@if target-libgomp-bootstrap
45796maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
45797all-stage3: all-stage3-target-libgomp
45798TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
45799all-stage3-target-libgomp: configure-stage3-target-libgomp
45800 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45801 @r=`${PWD_COMMAND}`; export r; \
45802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45803 TFLAGS="$(STAGE3_TFLAGS)"; \
45804 $(NORMAL_TARGET_EXPORTS) \
45805 \
45806 cd $(TARGET_SUBDIR)/libgomp && \
45807 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45808 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45809 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45810 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45811 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45812 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45813 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45814 $(EXTRA_TARGET_FLAGS) \
45815 TFLAGS="$(STAGE3_TFLAGS)" \
45816 $(TARGET-stage3-target-libgomp)
45817
45818maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
45819clean-stage3: clean-stage3-target-libgomp
45820clean-stage3-target-libgomp:
45821 @if [ $(current_stage) = stage3 ]; then \
45822 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45823 else \
45824 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
45825 $(MAKE) stage3-start; \
45826 fi; \
45827 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45828 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45829@endif target-libgomp-bootstrap
45830
45831
45832.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
45833.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
45834maybe-all-stage4-target-libgomp:
45835maybe-clean-stage4-target-libgomp:
45836@if target-libgomp-bootstrap
45837maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
45838all-stage4: all-stage4-target-libgomp
45839TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
45840all-stage4-target-libgomp: configure-stage4-target-libgomp
45841 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45842 @r=`${PWD_COMMAND}`; export r; \
45843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45844 TFLAGS="$(STAGE4_TFLAGS)"; \
45845 $(NORMAL_TARGET_EXPORTS) \
45846 \
45847 cd $(TARGET_SUBDIR)/libgomp && \
45848 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45849 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45850 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45851 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45852 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45853 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45854 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45855 $(EXTRA_TARGET_FLAGS) \
45856 TFLAGS="$(STAGE4_TFLAGS)" \
45857 $(TARGET-stage4-target-libgomp)
45858
45859maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
45860clean-stage4: clean-stage4-target-libgomp
45861clean-stage4-target-libgomp:
45862 @if [ $(current_stage) = stage4 ]; then \
45863 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45864 else \
45865 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
45866 $(MAKE) stage4-start; \
45867 fi; \
45868 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45869 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45870@endif target-libgomp-bootstrap
45871
45872
45873.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
45874.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
45875maybe-all-stageprofile-target-libgomp:
45876maybe-clean-stageprofile-target-libgomp:
45877@if target-libgomp-bootstrap
45878maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
45879all-stageprofile: all-stageprofile-target-libgomp
45880TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
45881all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
45882 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45883 @r=`${PWD_COMMAND}`; export r; \
45884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45885 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45886 $(NORMAL_TARGET_EXPORTS) \
45887 \
45888 cd $(TARGET_SUBDIR)/libgomp && \
45889 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45890 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45891 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45892 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45893 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45894 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45895 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45896 $(EXTRA_TARGET_FLAGS) \
45897 TFLAGS="$(STAGEprofile_TFLAGS)" \
45898 $(TARGET-stageprofile-target-libgomp)
45899
45900maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
45901clean-stageprofile: clean-stageprofile-target-libgomp
45902clean-stageprofile-target-libgomp:
45903 @if [ $(current_stage) = stageprofile ]; then \
45904 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45905 else \
45906 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
45907 $(MAKE) stageprofile-start; \
45908 fi; \
45909 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45910 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45911@endif target-libgomp-bootstrap
45912
45913
45914.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
45915.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
45916maybe-all-stagefeedback-target-libgomp:
45917maybe-clean-stagefeedback-target-libgomp:
45918@if target-libgomp-bootstrap
45919maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
45920all-stagefeedback: all-stagefeedback-target-libgomp
45921TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
45922all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
45923 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45924 @r=`${PWD_COMMAND}`; export r; \
45925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45926 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45927 $(NORMAL_TARGET_EXPORTS) \
45928 \
45929 cd $(TARGET_SUBDIR)/libgomp && \
45930 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45931 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45932 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45933 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45934 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45935 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45936 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45937 $(EXTRA_TARGET_FLAGS) \
45938 TFLAGS="$(STAGEfeedback_TFLAGS)" \
45939 $(TARGET-stagefeedback-target-libgomp)
45940
45941maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
45942clean-stagefeedback: clean-stagefeedback-target-libgomp
45943clean-stagefeedback-target-libgomp:
45944 @if [ $(current_stage) = stagefeedback ]; then \
45945 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45946 else \
45947 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
45948 $(MAKE) stagefeedback-start; \
45949 fi; \
45950 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45951 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45952@endif target-libgomp-bootstrap
45953
45954
45955
45956
b3ded179
PB
45957
45958
45959.PHONY: check-target-libgomp maybe-check-target-libgomp
45960maybe-check-target-libgomp:
45961@if target-libgomp
45962maybe-check-target-libgomp: check-target-libgomp
45963
45964check-target-libgomp:
45965 @: $(MAKE); $(unstage)
45966 @r=`${PWD_COMMAND}`; export r; \
45967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45968 $(NORMAL_TARGET_EXPORTS) \
45969 (cd $(TARGET_SUBDIR)/libgomp && \
45970 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
45971
45972@endif target-libgomp
45973
45974.PHONY: install-target-libgomp maybe-install-target-libgomp
45975maybe-install-target-libgomp:
45976@if target-libgomp
45977maybe-install-target-libgomp: install-target-libgomp
45978
45979install-target-libgomp: installdirs
45980 @: $(MAKE); $(unstage)
45981 @r=`${PWD_COMMAND}`; export r; \
45982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45983 $(NORMAL_TARGET_EXPORTS) \
45984 (cd $(TARGET_SUBDIR)/libgomp && \
45985 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
45986
45987@endif target-libgomp
45988
9b980aa1
RW
45989.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
45990maybe-install-strip-target-libgomp:
45991@if target-libgomp
45992maybe-install-strip-target-libgomp: install-strip-target-libgomp
45993
45994install-strip-target-libgomp: installdirs
45995 @: $(MAKE); $(unstage)
45996 @r=`${PWD_COMMAND}`; export r; \
45997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45998 $(NORMAL_TARGET_EXPORTS) \
45999 (cd $(TARGET_SUBDIR)/libgomp && \
46000 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46001
46002@endif target-libgomp
46003
56a8fe78 46004# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46005
46006.PHONY: maybe-info-target-libgomp info-target-libgomp
46007maybe-info-target-libgomp:
46008@if target-libgomp
46009maybe-info-target-libgomp: info-target-libgomp
46010
46011info-target-libgomp: \
46012 configure-target-libgomp
46013 @: $(MAKE); $(unstage)
46014 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46015 r=`${PWD_COMMAND}`; export r; \
46016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46017 $(NORMAL_TARGET_EXPORTS) \
46018 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
46019 for flag in $(EXTRA_TARGET_FLAGS); do \
46020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46021 done; \
46022 (cd $(TARGET_SUBDIR)/libgomp && \
46023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46025 "RANLIB=$${RANLIB}" \
0c24b341 46026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46027 info) \
46028 || exit 1
46029
46030@endif target-libgomp
46031
46032.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
46033maybe-dvi-target-libgomp:
46034@if target-libgomp
46035maybe-dvi-target-libgomp: dvi-target-libgomp
46036
46037dvi-target-libgomp: \
46038 configure-target-libgomp
46039 @: $(MAKE); $(unstage)
46040 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46041 r=`${PWD_COMMAND}`; export r; \
46042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46043 $(NORMAL_TARGET_EXPORTS) \
46044 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
46045 for flag in $(EXTRA_TARGET_FLAGS); do \
46046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46047 done; \
46048 (cd $(TARGET_SUBDIR)/libgomp && \
46049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46051 "RANLIB=$${RANLIB}" \
0c24b341 46052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46053 dvi) \
46054 || exit 1
46055
46056@endif target-libgomp
46057
56a8fe78
DD
46058.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
46059maybe-pdf-target-libgomp:
46060@if target-libgomp
46061maybe-pdf-target-libgomp: pdf-target-libgomp
46062
46063pdf-target-libgomp: \
46064 configure-target-libgomp
46065 @: $(MAKE); $(unstage)
46066 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46067 r=`${PWD_COMMAND}`; export r; \
46068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46069 $(NORMAL_TARGET_EXPORTS) \
46070 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp" ; \
46071 for flag in $(EXTRA_TARGET_FLAGS); do \
46072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46073 done; \
46074 (cd $(TARGET_SUBDIR)/libgomp && \
46075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46077 "RANLIB=$${RANLIB}" \
0c24b341 46078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46079 pdf) \
46080 || exit 1
46081
46082@endif target-libgomp
46083
b3ded179
PB
46084.PHONY: maybe-html-target-libgomp html-target-libgomp
46085maybe-html-target-libgomp:
46086@if target-libgomp
46087maybe-html-target-libgomp: html-target-libgomp
46088
46089html-target-libgomp: \
46090 configure-target-libgomp
46091 @: $(MAKE); $(unstage)
46092 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46093 r=`${PWD_COMMAND}`; export r; \
46094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46095 $(NORMAL_TARGET_EXPORTS) \
46096 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
46097 for flag in $(EXTRA_TARGET_FLAGS); do \
46098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46099 done; \
46100 (cd $(TARGET_SUBDIR)/libgomp && \
46101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46103 "RANLIB=$${RANLIB}" \
0c24b341 46104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46105 html) \
46106 || exit 1
46107
46108@endif target-libgomp
46109
46110.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
46111maybe-TAGS-target-libgomp:
46112@if target-libgomp
46113maybe-TAGS-target-libgomp: TAGS-target-libgomp
46114
46115TAGS-target-libgomp: \
46116 configure-target-libgomp
46117 @: $(MAKE); $(unstage)
46118 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46119 r=`${PWD_COMMAND}`; export r; \
46120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46121 $(NORMAL_TARGET_EXPORTS) \
46122 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
46123 for flag in $(EXTRA_TARGET_FLAGS); do \
46124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46125 done; \
46126 (cd $(TARGET_SUBDIR)/libgomp && \
46127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46129 "RANLIB=$${RANLIB}" \
0c24b341 46130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46131 TAGS) \
46132 || exit 1
46133
46134@endif target-libgomp
46135
46136.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
46137maybe-install-info-target-libgomp:
46138@if target-libgomp
46139maybe-install-info-target-libgomp: install-info-target-libgomp
46140
46141install-info-target-libgomp: \
46142 configure-target-libgomp \
46143 info-target-libgomp
46144 @: $(MAKE); $(unstage)
46145 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46146 r=`${PWD_COMMAND}`; export r; \
46147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46148 $(NORMAL_TARGET_EXPORTS) \
46149 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
46150 for flag in $(EXTRA_TARGET_FLAGS); do \
46151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46152 done; \
46153 (cd $(TARGET_SUBDIR)/libgomp && \
46154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46156 "RANLIB=$${RANLIB}" \
0c24b341 46157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46158 install-info) \
46159 || exit 1
46160
46161@endif target-libgomp
46162
a3ca38d2
DD
46163.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
46164maybe-install-pdf-target-libgomp:
46165@if target-libgomp
46166maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
46167
46168install-pdf-target-libgomp: \
46169 configure-target-libgomp \
46170 pdf-target-libgomp
46171 @: $(MAKE); $(unstage)
46172 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46173 r=`${PWD_COMMAND}`; export r; \
46174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46175 $(NORMAL_TARGET_EXPORTS) \
46176 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp" ; \
46177 for flag in $(EXTRA_TARGET_FLAGS); do \
46178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46179 done; \
46180 (cd $(TARGET_SUBDIR)/libgomp && \
46181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46183 "RANLIB=$${RANLIB}" \
0c24b341 46184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46185 install-pdf) \
46186 || exit 1
46187
46188@endif target-libgomp
46189
108a6f8e
CD
46190.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
46191maybe-install-html-target-libgomp:
46192@if target-libgomp
46193maybe-install-html-target-libgomp: install-html-target-libgomp
46194
46195install-html-target-libgomp: \
46196 configure-target-libgomp \
46197 html-target-libgomp
46198 @: $(MAKE); $(unstage)
46199 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46200 r=`${PWD_COMMAND}`; export r; \
46201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46202 $(NORMAL_TARGET_EXPORTS) \
46203 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
46204 for flag in $(EXTRA_TARGET_FLAGS); do \
46205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46206 done; \
46207 (cd $(TARGET_SUBDIR)/libgomp && \
46208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46210 "RANLIB=$${RANLIB}" \
0c24b341 46211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46212 install-html) \
46213 || exit 1
46214
46215@endif target-libgomp
46216
b3ded179
PB
46217.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
46218maybe-installcheck-target-libgomp:
46219@if target-libgomp
46220maybe-installcheck-target-libgomp: installcheck-target-libgomp
46221
46222installcheck-target-libgomp: \
46223 configure-target-libgomp
46224 @: $(MAKE); $(unstage)
46225 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46226 r=`${PWD_COMMAND}`; export r; \
46227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46228 $(NORMAL_TARGET_EXPORTS) \
46229 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
46230 for flag in $(EXTRA_TARGET_FLAGS); do \
46231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46232 done; \
46233 (cd $(TARGET_SUBDIR)/libgomp && \
46234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46236 "RANLIB=$${RANLIB}" \
0c24b341 46237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46238 installcheck) \
46239 || exit 1
46240
46241@endif target-libgomp
46242
46243.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
46244maybe-mostlyclean-target-libgomp:
46245@if target-libgomp
46246maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
46247
46248mostlyclean-target-libgomp:
46249 @: $(MAKE); $(unstage)
46250 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46251 r=`${PWD_COMMAND}`; export r; \
46252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46253 $(NORMAL_TARGET_EXPORTS) \
46254 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
46255 for flag in $(EXTRA_TARGET_FLAGS); do \
46256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46257 done; \
46258 (cd $(TARGET_SUBDIR)/libgomp && \
46259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46261 "RANLIB=$${RANLIB}" \
0c24b341 46262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46263 mostlyclean) \
46264 || exit 1
46265
46266@endif target-libgomp
46267
46268.PHONY: maybe-clean-target-libgomp clean-target-libgomp
46269maybe-clean-target-libgomp:
46270@if target-libgomp
46271maybe-clean-target-libgomp: clean-target-libgomp
46272
46273clean-target-libgomp:
46274 @: $(MAKE); $(unstage)
46275 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46276 r=`${PWD_COMMAND}`; export r; \
46277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46278 $(NORMAL_TARGET_EXPORTS) \
46279 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
46280 for flag in $(EXTRA_TARGET_FLAGS); do \
46281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46282 done; \
46283 (cd $(TARGET_SUBDIR)/libgomp && \
46284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46286 "RANLIB=$${RANLIB}" \
0c24b341 46287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46288 clean) \
46289 || exit 1
46290
46291@endif target-libgomp
46292
46293.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
46294maybe-distclean-target-libgomp:
46295@if target-libgomp
46296maybe-distclean-target-libgomp: distclean-target-libgomp
46297
46298distclean-target-libgomp:
46299 @: $(MAKE); $(unstage)
46300 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46301 r=`${PWD_COMMAND}`; export r; \
46302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46303 $(NORMAL_TARGET_EXPORTS) \
46304 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
46305 for flag in $(EXTRA_TARGET_FLAGS); do \
46306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46307 done; \
46308 (cd $(TARGET_SUBDIR)/libgomp && \
46309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46311 "RANLIB=$${RANLIB}" \
0c24b341 46312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46313 distclean) \
46314 || exit 1
46315
46316@endif target-libgomp
46317
46318.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
46319maybe-maintainer-clean-target-libgomp:
46320@if target-libgomp
46321maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
46322
46323maintainer-clean-target-libgomp:
46324 @: $(MAKE); $(unstage)
46325 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46326 r=`${PWD_COMMAND}`; export r; \
46327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46328 $(NORMAL_TARGET_EXPORTS) \
46329 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
46330 for flag in $(EXTRA_TARGET_FLAGS); do \
46331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46332 done; \
46333 (cd $(TARGET_SUBDIR)/libgomp && \
46334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46336 "RANLIB=$${RANLIB}" \
0c24b341 46337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46338 maintainer-clean) \
46339 || exit 1
46340
46341@endif target-libgomp
46342
46343
46344
7ec59b9e
L
46345
46346
46347.PHONY: configure-target-libitm maybe-configure-target-libitm
46348maybe-configure-target-libitm:
46349@if gcc-bootstrap
46350configure-target-libitm: stage_current
46351@endif gcc-bootstrap
46352@if target-libitm
46353maybe-configure-target-libitm: configure-target-libitm
46354configure-target-libitm:
46355 @: $(MAKE); $(unstage)
46356 @r=`${PWD_COMMAND}`; export r; \
46357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46358 echo "Checking multilib configuration for libitm..."; \
46359 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm ; \
46360 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null ; \
46361 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
46362 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
46363 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
46364 else \
46365 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
46366 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46367 fi; \
46368 else \
46369 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46370 fi; \
46371 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
46372 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm ; \
46373 $(NORMAL_TARGET_EXPORTS) \
46374 echo Configuring in $(TARGET_SUBDIR)/libitm; \
46375 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
46376 case $(srcdir) in \
46377 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46378 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
46379 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46380 esac; \
1b6c0831 46381 module_srcdir=libitm; \
7ec59b9e 46382 rm -f no-such-file || : ; \
1b6c0831
L
46383 CONFIG_SITE=no-such-file $(SHELL) \
46384 $$s/$$module_srcdir/configure \
46385 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46386 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46387 --target=${target_alias} \
7ec59b9e
L
46388 || exit 1
46389@endif target-libitm
46390
46391
46392
46393
46394
46395.PHONY: all-target-libitm maybe-all-target-libitm
46396maybe-all-target-libitm:
46397@if gcc-bootstrap
46398all-target-libitm: stage_current
46399@endif gcc-bootstrap
46400@if target-libitm
46401TARGET-target-libitm=all
46402maybe-all-target-libitm: all-target-libitm
46403all-target-libitm: configure-target-libitm
46404 @: $(MAKE); $(unstage)
46405 @r=`${PWD_COMMAND}`; export r; \
46406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46407 $(NORMAL_TARGET_EXPORTS) \
46408 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 46409 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46410 $(TARGET-target-libitm))
46411@endif target-libitm
46412
46413
46414
46415
46416
46417.PHONY: check-target-libitm maybe-check-target-libitm
46418maybe-check-target-libitm:
46419@if target-libitm
46420maybe-check-target-libitm: check-target-libitm
46421
46422check-target-libitm:
46423 @: $(MAKE); $(unstage)
46424 @r=`${PWD_COMMAND}`; export r; \
46425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46426 $(NORMAL_TARGET_EXPORTS) \
46427 (cd $(TARGET_SUBDIR)/libitm && \
46428 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46429
46430@endif target-libitm
46431
46432.PHONY: install-target-libitm maybe-install-target-libitm
46433maybe-install-target-libitm:
46434@if target-libitm
46435maybe-install-target-libitm: install-target-libitm
46436
46437install-target-libitm: installdirs
46438 @: $(MAKE); $(unstage)
46439 @r=`${PWD_COMMAND}`; export r; \
46440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46441 $(NORMAL_TARGET_EXPORTS) \
46442 (cd $(TARGET_SUBDIR)/libitm && \
46443 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46444
46445@endif target-libitm
46446
46447.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
46448maybe-install-strip-target-libitm:
46449@if target-libitm
46450maybe-install-strip-target-libitm: install-strip-target-libitm
46451
46452install-strip-target-libitm: installdirs
46453 @: $(MAKE); $(unstage)
46454 @r=`${PWD_COMMAND}`; export r; \
46455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46456 $(NORMAL_TARGET_EXPORTS) \
46457 (cd $(TARGET_SUBDIR)/libitm && \
46458 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46459
46460@endif target-libitm
46461
46462# Other targets (info, dvi, pdf, etc.)
46463
46464.PHONY: maybe-info-target-libitm info-target-libitm
46465maybe-info-target-libitm:
46466@if target-libitm
46467maybe-info-target-libitm: info-target-libitm
46468
46469info-target-libitm: \
46470 configure-target-libitm
46471 @: $(MAKE); $(unstage)
46472 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46473 r=`${PWD_COMMAND}`; export r; \
46474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46475 $(NORMAL_TARGET_EXPORTS) \
46476 echo "Doing info in $(TARGET_SUBDIR)/libitm" ; \
46477 for flag in $(EXTRA_TARGET_FLAGS); do \
46478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46479 done; \
46480 (cd $(TARGET_SUBDIR)/libitm && \
46481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46483 "RANLIB=$${RANLIB}" \
46484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46485 info) \
46486 || exit 1
46487
46488@endif target-libitm
46489
46490.PHONY: maybe-dvi-target-libitm dvi-target-libitm
46491maybe-dvi-target-libitm:
46492@if target-libitm
46493maybe-dvi-target-libitm: dvi-target-libitm
46494
46495dvi-target-libitm: \
46496 configure-target-libitm
46497 @: $(MAKE); $(unstage)
46498 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46499 r=`${PWD_COMMAND}`; export r; \
46500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46501 $(NORMAL_TARGET_EXPORTS) \
46502 echo "Doing dvi in $(TARGET_SUBDIR)/libitm" ; \
46503 for flag in $(EXTRA_TARGET_FLAGS); do \
46504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46505 done; \
46506 (cd $(TARGET_SUBDIR)/libitm && \
46507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46509 "RANLIB=$${RANLIB}" \
46510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46511 dvi) \
46512 || exit 1
46513
46514@endif target-libitm
46515
46516.PHONY: maybe-pdf-target-libitm pdf-target-libitm
46517maybe-pdf-target-libitm:
46518@if target-libitm
46519maybe-pdf-target-libitm: pdf-target-libitm
46520
46521pdf-target-libitm: \
46522 configure-target-libitm
46523 @: $(MAKE); $(unstage)
46524 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46525 r=`${PWD_COMMAND}`; export r; \
46526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46527 $(NORMAL_TARGET_EXPORTS) \
46528 echo "Doing pdf in $(TARGET_SUBDIR)/libitm" ; \
46529 for flag in $(EXTRA_TARGET_FLAGS); do \
46530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46531 done; \
46532 (cd $(TARGET_SUBDIR)/libitm && \
46533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46535 "RANLIB=$${RANLIB}" \
46536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46537 pdf) \
46538 || exit 1
46539
46540@endif target-libitm
46541
46542.PHONY: maybe-html-target-libitm html-target-libitm
46543maybe-html-target-libitm:
46544@if target-libitm
46545maybe-html-target-libitm: html-target-libitm
46546
46547html-target-libitm: \
46548 configure-target-libitm
46549 @: $(MAKE); $(unstage)
46550 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46551 r=`${PWD_COMMAND}`; export r; \
46552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46553 $(NORMAL_TARGET_EXPORTS) \
46554 echo "Doing html in $(TARGET_SUBDIR)/libitm" ; \
46555 for flag in $(EXTRA_TARGET_FLAGS); do \
46556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46557 done; \
46558 (cd $(TARGET_SUBDIR)/libitm && \
46559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46561 "RANLIB=$${RANLIB}" \
46562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46563 html) \
46564 || exit 1
46565
46566@endif target-libitm
46567
46568.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
46569maybe-TAGS-target-libitm:
46570@if target-libitm
46571maybe-TAGS-target-libitm: TAGS-target-libitm
46572
46573TAGS-target-libitm: \
46574 configure-target-libitm
46575 @: $(MAKE); $(unstage)
46576 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46577 r=`${PWD_COMMAND}`; export r; \
46578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46579 $(NORMAL_TARGET_EXPORTS) \
46580 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm" ; \
46581 for flag in $(EXTRA_TARGET_FLAGS); do \
46582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46583 done; \
46584 (cd $(TARGET_SUBDIR)/libitm && \
46585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46587 "RANLIB=$${RANLIB}" \
46588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46589 TAGS) \
46590 || exit 1
46591
46592@endif target-libitm
46593
46594.PHONY: maybe-install-info-target-libitm install-info-target-libitm
46595maybe-install-info-target-libitm:
46596@if target-libitm
46597maybe-install-info-target-libitm: install-info-target-libitm
46598
46599install-info-target-libitm: \
46600 configure-target-libitm \
46601 info-target-libitm
46602 @: $(MAKE); $(unstage)
46603 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46604 r=`${PWD_COMMAND}`; export r; \
46605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46606 $(NORMAL_TARGET_EXPORTS) \
46607 echo "Doing install-info in $(TARGET_SUBDIR)/libitm" ; \
46608 for flag in $(EXTRA_TARGET_FLAGS); do \
46609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46610 done; \
46611 (cd $(TARGET_SUBDIR)/libitm && \
46612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46614 "RANLIB=$${RANLIB}" \
46615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46616 install-info) \
46617 || exit 1
46618
46619@endif target-libitm
46620
46621.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
46622maybe-install-pdf-target-libitm:
46623@if target-libitm
46624maybe-install-pdf-target-libitm: install-pdf-target-libitm
46625
46626install-pdf-target-libitm: \
46627 configure-target-libitm \
46628 pdf-target-libitm
46629 @: $(MAKE); $(unstage)
46630 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46631 r=`${PWD_COMMAND}`; export r; \
46632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46633 $(NORMAL_TARGET_EXPORTS) \
46634 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm" ; \
46635 for flag in $(EXTRA_TARGET_FLAGS); do \
46636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46637 done; \
46638 (cd $(TARGET_SUBDIR)/libitm && \
46639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46641 "RANLIB=$${RANLIB}" \
46642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46643 install-pdf) \
46644 || exit 1
46645
46646@endif target-libitm
46647
46648.PHONY: maybe-install-html-target-libitm install-html-target-libitm
46649maybe-install-html-target-libitm:
46650@if target-libitm
46651maybe-install-html-target-libitm: install-html-target-libitm
46652
46653install-html-target-libitm: \
46654 configure-target-libitm \
46655 html-target-libitm
46656 @: $(MAKE); $(unstage)
46657 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46658 r=`${PWD_COMMAND}`; export r; \
46659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46660 $(NORMAL_TARGET_EXPORTS) \
46661 echo "Doing install-html in $(TARGET_SUBDIR)/libitm" ; \
46662 for flag in $(EXTRA_TARGET_FLAGS); do \
46663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46664 done; \
46665 (cd $(TARGET_SUBDIR)/libitm && \
46666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46668 "RANLIB=$${RANLIB}" \
46669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46670 install-html) \
46671 || exit 1
46672
46673@endif target-libitm
46674
46675.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
46676maybe-installcheck-target-libitm:
46677@if target-libitm
46678maybe-installcheck-target-libitm: installcheck-target-libitm
46679
46680installcheck-target-libitm: \
46681 configure-target-libitm
46682 @: $(MAKE); $(unstage)
46683 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46684 r=`${PWD_COMMAND}`; export r; \
46685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46686 $(NORMAL_TARGET_EXPORTS) \
46687 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm" ; \
46688 for flag in $(EXTRA_TARGET_FLAGS); do \
46689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46690 done; \
46691 (cd $(TARGET_SUBDIR)/libitm && \
46692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46694 "RANLIB=$${RANLIB}" \
46695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46696 installcheck) \
46697 || exit 1
46698
46699@endif target-libitm
46700
46701.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
46702maybe-mostlyclean-target-libitm:
46703@if target-libitm
46704maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
46705
46706mostlyclean-target-libitm:
46707 @: $(MAKE); $(unstage)
46708 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46709 r=`${PWD_COMMAND}`; export r; \
46710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46711 $(NORMAL_TARGET_EXPORTS) \
46712 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm" ; \
46713 for flag in $(EXTRA_TARGET_FLAGS); do \
46714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46715 done; \
46716 (cd $(TARGET_SUBDIR)/libitm && \
46717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46719 "RANLIB=$${RANLIB}" \
46720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46721 mostlyclean) \
46722 || exit 1
46723
46724@endif target-libitm
46725
46726.PHONY: maybe-clean-target-libitm clean-target-libitm
46727maybe-clean-target-libitm:
46728@if target-libitm
46729maybe-clean-target-libitm: clean-target-libitm
46730
46731clean-target-libitm:
46732 @: $(MAKE); $(unstage)
46733 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46734 r=`${PWD_COMMAND}`; export r; \
46735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46736 $(NORMAL_TARGET_EXPORTS) \
46737 echo "Doing clean in $(TARGET_SUBDIR)/libitm" ; \
46738 for flag in $(EXTRA_TARGET_FLAGS); do \
46739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46740 done; \
46741 (cd $(TARGET_SUBDIR)/libitm && \
46742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46744 "RANLIB=$${RANLIB}" \
46745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46746 clean) \
46747 || exit 1
46748
46749@endif target-libitm
46750
46751.PHONY: maybe-distclean-target-libitm distclean-target-libitm
46752maybe-distclean-target-libitm:
46753@if target-libitm
46754maybe-distclean-target-libitm: distclean-target-libitm
46755
46756distclean-target-libitm:
46757 @: $(MAKE); $(unstage)
46758 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46759 r=`${PWD_COMMAND}`; export r; \
46760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46761 $(NORMAL_TARGET_EXPORTS) \
46762 echo "Doing distclean in $(TARGET_SUBDIR)/libitm" ; \
46763 for flag in $(EXTRA_TARGET_FLAGS); do \
46764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46765 done; \
46766 (cd $(TARGET_SUBDIR)/libitm && \
46767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46769 "RANLIB=$${RANLIB}" \
46770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46771 distclean) \
46772 || exit 1
46773
46774@endif target-libitm
46775
46776.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
46777maybe-maintainer-clean-target-libitm:
46778@if target-libitm
46779maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
46780
46781maintainer-clean-target-libitm:
46782 @: $(MAKE); $(unstage)
46783 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46784 r=`${PWD_COMMAND}`; export r; \
46785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46786 $(NORMAL_TARGET_EXPORTS) \
46787 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm" ; \
46788 for flag in $(EXTRA_TARGET_FLAGS); do \
46789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46790 done; \
46791 (cd $(TARGET_SUBDIR)/libitm && \
46792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46794 "RANLIB=$${RANLIB}" \
46795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46796 maintainer-clean) \
46797 || exit 1
46798
46799@endif target-libitm
46800
46801
46802
46803
46804
46805.PHONY: configure-target-libatomic maybe-configure-target-libatomic
46806maybe-configure-target-libatomic:
46807@if gcc-bootstrap
46808configure-target-libatomic: stage_current
46809@endif gcc-bootstrap
46810@if target-libatomic
46811maybe-configure-target-libatomic: configure-target-libatomic
46812configure-target-libatomic:
46813 @: $(MAKE); $(unstage)
46814 @r=`${PWD_COMMAND}`; export r; \
46815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46816 echo "Checking multilib configuration for libatomic..."; \
46817 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
46818 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null ; \
46819 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
46820 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
46821 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
46822 else \
46823 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
46824 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
46825 fi; \
46826 else \
46827 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
46828 fi; \
46829 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
46830 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
46831 $(NORMAL_TARGET_EXPORTS) \
46832 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
46833 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
46834 case $(srcdir) in \
46835 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46836 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
46837 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46838 esac; \
1b6c0831 46839 module_srcdir=libatomic; \
7ec59b9e 46840 rm -f no-such-file || : ; \
1b6c0831
L
46841 CONFIG_SITE=no-such-file $(SHELL) \
46842 $$s/$$module_srcdir/configure \
46843 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46844 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46845 --target=${target_alias} \
7ec59b9e
L
46846 || exit 1
46847@endif target-libatomic
46848
46849
46850
46851
46852
46853.PHONY: all-target-libatomic maybe-all-target-libatomic
46854maybe-all-target-libatomic:
46855@if gcc-bootstrap
46856all-target-libatomic: stage_current
46857@endif gcc-bootstrap
46858@if target-libatomic
46859TARGET-target-libatomic=all
46860maybe-all-target-libatomic: all-target-libatomic
46861all-target-libatomic: configure-target-libatomic
46862 @: $(MAKE); $(unstage)
46863 @r=`${PWD_COMMAND}`; export r; \
46864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46865 $(NORMAL_TARGET_EXPORTS) \
46866 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 46867 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46868 $(TARGET-target-libatomic))
46869@endif target-libatomic
46870
46871
46872
46873
46874
46875.PHONY: check-target-libatomic maybe-check-target-libatomic
46876maybe-check-target-libatomic:
46877@if target-libatomic
46878maybe-check-target-libatomic: check-target-libatomic
46879
46880check-target-libatomic:
46881 @: $(MAKE); $(unstage)
46882 @r=`${PWD_COMMAND}`; export r; \
46883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46884 $(NORMAL_TARGET_EXPORTS) \
46885 (cd $(TARGET_SUBDIR)/libatomic && \
46886 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46887
46888@endif target-libatomic
46889
46890.PHONY: install-target-libatomic maybe-install-target-libatomic
46891maybe-install-target-libatomic:
46892@if target-libatomic
46893maybe-install-target-libatomic: install-target-libatomic
46894
46895install-target-libatomic: installdirs
46896 @: $(MAKE); $(unstage)
46897 @r=`${PWD_COMMAND}`; export r; \
46898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46899 $(NORMAL_TARGET_EXPORTS) \
46900 (cd $(TARGET_SUBDIR)/libatomic && \
46901 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46902
46903@endif target-libatomic
46904
46905.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
46906maybe-install-strip-target-libatomic:
46907@if target-libatomic
46908maybe-install-strip-target-libatomic: install-strip-target-libatomic
46909
46910install-strip-target-libatomic: installdirs
46911 @: $(MAKE); $(unstage)
46912 @r=`${PWD_COMMAND}`; export r; \
46913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46914 $(NORMAL_TARGET_EXPORTS) \
46915 (cd $(TARGET_SUBDIR)/libatomic && \
46916 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46917
46918@endif target-libatomic
46919
46920# Other targets (info, dvi, pdf, etc.)
46921
46922.PHONY: maybe-info-target-libatomic info-target-libatomic
46923maybe-info-target-libatomic:
46924@if target-libatomic
46925maybe-info-target-libatomic: info-target-libatomic
46926
46927info-target-libatomic: \
46928 configure-target-libatomic
46929 @: $(MAKE); $(unstage)
46930 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46931 r=`${PWD_COMMAND}`; export r; \
46932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46933 $(NORMAL_TARGET_EXPORTS) \
46934 echo "Doing info in $(TARGET_SUBDIR)/libatomic" ; \
46935 for flag in $(EXTRA_TARGET_FLAGS); do \
46936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46937 done; \
46938 (cd $(TARGET_SUBDIR)/libatomic && \
46939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46941 "RANLIB=$${RANLIB}" \
46942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46943 info) \
46944 || exit 1
46945
46946@endif target-libatomic
46947
46948.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
46949maybe-dvi-target-libatomic:
46950@if target-libatomic
46951maybe-dvi-target-libatomic: dvi-target-libatomic
46952
46953dvi-target-libatomic: \
46954 configure-target-libatomic
46955 @: $(MAKE); $(unstage)
46956 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46957 r=`${PWD_COMMAND}`; export r; \
46958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46959 $(NORMAL_TARGET_EXPORTS) \
46960 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic" ; \
46961 for flag in $(EXTRA_TARGET_FLAGS); do \
46962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46963 done; \
46964 (cd $(TARGET_SUBDIR)/libatomic && \
46965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46967 "RANLIB=$${RANLIB}" \
46968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46969 dvi) \
46970 || exit 1
46971
46972@endif target-libatomic
46973
46974.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
46975maybe-pdf-target-libatomic:
46976@if target-libatomic
46977maybe-pdf-target-libatomic: pdf-target-libatomic
46978
46979pdf-target-libatomic: \
46980 configure-target-libatomic
46981 @: $(MAKE); $(unstage)
46982 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46983 r=`${PWD_COMMAND}`; export r; \
46984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46985 $(NORMAL_TARGET_EXPORTS) \
46986 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic" ; \
46987 for flag in $(EXTRA_TARGET_FLAGS); do \
46988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46989 done; \
46990 (cd $(TARGET_SUBDIR)/libatomic && \
46991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46993 "RANLIB=$${RANLIB}" \
46994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46995 pdf) \
46996 || exit 1
46997
46998@endif target-libatomic
46999
47000.PHONY: maybe-html-target-libatomic html-target-libatomic
47001maybe-html-target-libatomic:
47002@if target-libatomic
47003maybe-html-target-libatomic: html-target-libatomic
47004
47005html-target-libatomic: \
47006 configure-target-libatomic
47007 @: $(MAKE); $(unstage)
47008 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47009 r=`${PWD_COMMAND}`; export r; \
47010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47011 $(NORMAL_TARGET_EXPORTS) \
47012 echo "Doing html in $(TARGET_SUBDIR)/libatomic" ; \
47013 for flag in $(EXTRA_TARGET_FLAGS); do \
47014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47015 done; \
47016 (cd $(TARGET_SUBDIR)/libatomic && \
47017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47019 "RANLIB=$${RANLIB}" \
47020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47021 html) \
47022 || exit 1
47023
47024@endif target-libatomic
47025
47026.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
47027maybe-TAGS-target-libatomic:
47028@if target-libatomic
47029maybe-TAGS-target-libatomic: TAGS-target-libatomic
47030
47031TAGS-target-libatomic: \
47032 configure-target-libatomic
47033 @: $(MAKE); $(unstage)
47034 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47035 r=`${PWD_COMMAND}`; export r; \
47036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47037 $(NORMAL_TARGET_EXPORTS) \
47038 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic" ; \
47039 for flag in $(EXTRA_TARGET_FLAGS); do \
47040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47041 done; \
47042 (cd $(TARGET_SUBDIR)/libatomic && \
47043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47045 "RANLIB=$${RANLIB}" \
47046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47047 TAGS) \
47048 || exit 1
47049
47050@endif target-libatomic
47051
47052.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
47053maybe-install-info-target-libatomic:
47054@if target-libatomic
47055maybe-install-info-target-libatomic: install-info-target-libatomic
47056
47057install-info-target-libatomic: \
47058 configure-target-libatomic \
47059 info-target-libatomic
47060 @: $(MAKE); $(unstage)
47061 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47062 r=`${PWD_COMMAND}`; export r; \
47063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47064 $(NORMAL_TARGET_EXPORTS) \
47065 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic" ; \
47066 for flag in $(EXTRA_TARGET_FLAGS); do \
47067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47068 done; \
47069 (cd $(TARGET_SUBDIR)/libatomic && \
47070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47072 "RANLIB=$${RANLIB}" \
47073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47074 install-info) \
47075 || exit 1
47076
47077@endif target-libatomic
47078
47079.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
47080maybe-install-pdf-target-libatomic:
47081@if target-libatomic
47082maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
47083
47084install-pdf-target-libatomic: \
47085 configure-target-libatomic \
47086 pdf-target-libatomic
47087 @: $(MAKE); $(unstage)
47088 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47089 r=`${PWD_COMMAND}`; export r; \
47090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47091 $(NORMAL_TARGET_EXPORTS) \
47092 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic" ; \
47093 for flag in $(EXTRA_TARGET_FLAGS); do \
47094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47095 done; \
47096 (cd $(TARGET_SUBDIR)/libatomic && \
47097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47099 "RANLIB=$${RANLIB}" \
47100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47101 install-pdf) \
47102 || exit 1
47103
47104@endif target-libatomic
47105
47106.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
47107maybe-install-html-target-libatomic:
47108@if target-libatomic
47109maybe-install-html-target-libatomic: install-html-target-libatomic
47110
47111install-html-target-libatomic: \
47112 configure-target-libatomic \
47113 html-target-libatomic
47114 @: $(MAKE); $(unstage)
47115 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47116 r=`${PWD_COMMAND}`; export r; \
47117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47118 $(NORMAL_TARGET_EXPORTS) \
47119 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic" ; \
47120 for flag in $(EXTRA_TARGET_FLAGS); do \
47121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47122 done; \
47123 (cd $(TARGET_SUBDIR)/libatomic && \
47124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47126 "RANLIB=$${RANLIB}" \
47127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47128 install-html) \
47129 || exit 1
47130
47131@endif target-libatomic
47132
47133.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
47134maybe-installcheck-target-libatomic:
47135@if target-libatomic
47136maybe-installcheck-target-libatomic: installcheck-target-libatomic
47137
47138installcheck-target-libatomic: \
47139 configure-target-libatomic
47140 @: $(MAKE); $(unstage)
47141 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47142 r=`${PWD_COMMAND}`; export r; \
47143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47144 $(NORMAL_TARGET_EXPORTS) \
47145 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic" ; \
47146 for flag in $(EXTRA_TARGET_FLAGS); do \
47147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47148 done; \
47149 (cd $(TARGET_SUBDIR)/libatomic && \
47150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47152 "RANLIB=$${RANLIB}" \
47153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47154 installcheck) \
47155 || exit 1
47156
47157@endif target-libatomic
47158
47159.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
47160maybe-mostlyclean-target-libatomic:
47161@if target-libatomic
47162maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
47163
47164mostlyclean-target-libatomic:
47165 @: $(MAKE); $(unstage)
47166 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47167 r=`${PWD_COMMAND}`; export r; \
47168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47169 $(NORMAL_TARGET_EXPORTS) \
47170 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic" ; \
47171 for flag in $(EXTRA_TARGET_FLAGS); do \
47172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47173 done; \
47174 (cd $(TARGET_SUBDIR)/libatomic && \
47175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47177 "RANLIB=$${RANLIB}" \
47178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47179 mostlyclean) \
47180 || exit 1
47181
47182@endif target-libatomic
47183
47184.PHONY: maybe-clean-target-libatomic clean-target-libatomic
47185maybe-clean-target-libatomic:
47186@if target-libatomic
47187maybe-clean-target-libatomic: clean-target-libatomic
47188
47189clean-target-libatomic:
47190 @: $(MAKE); $(unstage)
47191 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47192 r=`${PWD_COMMAND}`; export r; \
47193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47194 $(NORMAL_TARGET_EXPORTS) \
47195 echo "Doing clean in $(TARGET_SUBDIR)/libatomic" ; \
47196 for flag in $(EXTRA_TARGET_FLAGS); do \
47197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47198 done; \
47199 (cd $(TARGET_SUBDIR)/libatomic && \
47200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47202 "RANLIB=$${RANLIB}" \
47203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47204 clean) \
47205 || exit 1
47206
47207@endif target-libatomic
47208
47209.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
47210maybe-distclean-target-libatomic:
47211@if target-libatomic
47212maybe-distclean-target-libatomic: distclean-target-libatomic
47213
47214distclean-target-libatomic:
47215 @: $(MAKE); $(unstage)
47216 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47217 r=`${PWD_COMMAND}`; export r; \
47218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47219 $(NORMAL_TARGET_EXPORTS) \
47220 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic" ; \
47221 for flag in $(EXTRA_TARGET_FLAGS); do \
47222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47223 done; \
47224 (cd $(TARGET_SUBDIR)/libatomic && \
47225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47227 "RANLIB=$${RANLIB}" \
47228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47229 distclean) \
47230 || exit 1
47231
47232@endif target-libatomic
47233
47234.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
47235maybe-maintainer-clean-target-libatomic:
47236@if target-libatomic
47237maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
47238
47239maintainer-clean-target-libatomic:
47240 @: $(MAKE); $(unstage)
47241 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47242 r=`${PWD_COMMAND}`; export r; \
47243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47244 $(NORMAL_TARGET_EXPORTS) \
47245 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic" ; \
47246 for flag in $(EXTRA_TARGET_FLAGS); do \
47247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47248 done; \
47249 (cd $(TARGET_SUBDIR)/libatomic && \
47250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47252 "RANLIB=$${RANLIB}" \
47253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47254 maintainer-clean) \
47255 || exit 1
47256
47257@endif target-libatomic
47258
47259
47260
7ec59b9e
L
47261@if target-libgomp
47262.PHONY: check-target-libgomp-c++
47263check-target-libgomp-c++:
47264 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
47265
47266@endif target-libgomp
47267
47268@if target-libitm
47269.PHONY: check-target-libitm-c++
47270check-target-libitm-c++:
47271 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
47272
47273@endif target-libitm
47274
15723a45
NN
47275# ----------
47276# GCC module
47277# ----------
47278
319cab08 47279@if gcc-no-bootstrap
252b5132 47280.PHONY: cross
72b2455a 47281cross: all-build all-gas all-ld
b40e3958
L
47282 @r=`${PWD_COMMAND}`; export r; \
47283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47284 $(HOST_EXPORTS) \
252b5132 47285 echo "Building the C and C++ compiler"; \
5cec67bf 47286 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958
L
47287 @r=`${PWD_COMMAND}`; export r; \
47288 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
252b5132 47289 echo "Building runtime libraries"; \
656fdd47 47290 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 47291@endif gcc-no-bootstrap
252b5132 47292
6bd3dfaa 47293@if gcc
c50523ce
L
47294
47295.PHONY: check-gcc-c check-c
47296check-gcc-c:
47297 r=`${PWD_COMMAND}`; export r; \
47298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47299 $(HOST_EXPORTS) \
47300 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
47301check-c: check-gcc-c
47302
47303.PHONY: check-gcc-c++ check-c++
7d695d07 47304check-gcc-c++:
c50523ce
L
47305 r=`${PWD_COMMAND}`; export r; \
47306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47307 $(HOST_EXPORTS) \
7ec59b9e 47308 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 47309check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
47310
47311.PHONY: check-gcc-fortran check-fortran
47312check-gcc-fortran:
47313 r=`${PWD_COMMAND}`; export r; \
47314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47315 $(HOST_EXPORTS) \
47316 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e552509b 47317check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
c50523ce
L
47318
47319.PHONY: check-gcc-java check-java
47320check-gcc-java:
47321 r=`${PWD_COMMAND}`; export r; \
47322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47323 $(HOST_EXPORTS) \
47324 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
47325check-java: check-gcc-java check-target-libjava
47326
47327.PHONY: check-gcc-ada check-ada
47328check-gcc-ada:
47329 r=`${PWD_COMMAND}`; export r; \
47330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47331 $(HOST_EXPORTS) \
47332 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
47333check-ada: check-gcc-ada check-target-libada
47334
47335.PHONY: check-gcc-objc check-objc
47336check-gcc-objc:
47337 r=`${PWD_COMMAND}`; export r; \
47338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47339 $(HOST_EXPORTS) \
47340 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
47341check-objc: check-gcc-objc check-target-libobjc
47342
47343.PHONY: check-gcc-obj-c++ check-obj-c++
47344check-gcc-obj-c++:
47345 r=`${PWD_COMMAND}`; export r; \
47346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47347 $(HOST_EXPORTS) \
47348 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
47349check-obj-c++: check-gcc-obj-c++
7d695d07 47350
e552509b
ILT
47351.PHONY: check-gcc-go check-go
47352check-gcc-go:
47353 r=`${PWD_COMMAND}`; export r; \
47354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47355 $(HOST_EXPORTS) \
47356 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
47357check-go: check-gcc-go check-target-libgo
47358
252b5132 47359
7ec59b9e
L
47360# The gcc part of install-no-fixedincludes, which relies on an intimate
47361# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
47362.PHONY: gcc-install-no-fixedincludes
47363gcc-install-no-fixedincludes:
15723a45 47364 @if [ -f ./gcc/Makefile ]; then \
b40e3958 47365 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 47366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47367 $(HOST_EXPORTS) \
7ec59b9e
L
47368 (cd ./gcc \
47369 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 47370 else true; fi
6bd3dfaa 47371@endif gcc
4fa63067 47372
b813574b
PB
47373# ---------------------
47374# GCC bootstrap support
47375# ---------------------
4fa63067 47376
b813574b
PB
47377# We track the current stage (the one in 'gcc') in the stage_current file.
47378# stage_last instead tracks the stage that was built last. These targets
47379# are dummy when toplevel bootstrap is not active.
4fa63067 47380
f70224b5 47381# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
47382# there, so $(unstage) should be run at various points. To avoid excessive
47383# recursive invocations of make, we "inline" them using a variable. These
47384# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
47385# to avoid warnings from the GNU Make job server.
f70224b5
PB
47386
47387unstage = :
47388stage = :
c52c6897 47389current_stage = ""
f70224b5 47390
b813574b 47391@if gcc-bootstrap
9daf3993 47392unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 47393stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 47394current_stage = "`cat stage_current 2> /dev/null`"
b813574b 47395@endif gcc-bootstrap
4fa63067 47396
f70224b5
PB
47397.PHONY: unstage stage
47398unstage:
0aed8855 47399 @: $(MAKE); $(unstage)
b813574b 47400stage:
0aed8855 47401 @: $(MAKE); $(stage)
1d39f329 47402
80911fe1
PB
47403# Disable commands for lean bootstrap.
47404LEAN = false
47405
dfdffa2c
PB
47406# We name the build directories for the various stages "stage1-gcc",
47407# "stage2-gcc","stage3-gcc", etc.
47408
47409# Since the 'compare' process will fail (on debugging information) if any
47410# directory names are different, we need to link the gcc directory for
0aed8855 47411# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
47412# the build directories constant as well. For the latter, we use naked names
47413# like 'gcc', because the scripts in that directory assume it. We use
47414# mv on platforms where symlinks to directories do not work or are not
47415# reliable.
47416
1d39f329
NN
47417# 'touch' doesn't work right on some platforms.
47418STAMP = echo timestamp >
47419
dfdffa2c
PB
47420# We only want to compare .o files, so set this!
47421objext = .o
47422
dfdffa2c 47423
319cab08 47424.PHONY: stage1-start stage1-end
dfdffa2c 47425
656fdd47 47426stage1-start::
0aed8855 47427 @: $(MAKE); $(stage); \
b813574b 47428 echo stage1 > stage_current ; \
b00612cc 47429 echo stage1 > stage_last; \
0aed8855 47430 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47431@if bfd
b00612cc
PB
47432 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
47433 mkdir stage1-bfd; \
80911fe1 47434 mv stage1-bfd bfd
72b2455a
PB
47435@endif bfd
47436@if opcodes
b00612cc
PB
47437 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
47438 mkdir stage1-opcodes; \
80911fe1 47439 mv stage1-opcodes opcodes
72b2455a
PB
47440@endif opcodes
47441@if binutils
b00612cc
PB
47442 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
47443 mkdir stage1-binutils; \
80911fe1 47444 mv stage1-binutils binutils
72b2455a 47445@endif binutils
201f096f 47446@if fixincludes
47447 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
47448 mkdir stage1-fixincludes; \
47449 mv stage1-fixincludes fixincludes
47450@endif fixincludes
72b2455a 47451@if gas
b00612cc
PB
47452 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
47453 mkdir stage1-gas; \
80911fe1 47454 mv stage1-gas gas
72b2455a
PB
47455@endif gas
47456@if gcc
b00612cc
PB
47457 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
47458 mkdir stage1-gcc; \
80911fe1 47459 mv stage1-gcc gcc
72b2455a 47460@endif gcc
4b900473
PB
47461@if gmp
47462 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
47463 mkdir stage1-gmp; \
47464 mv stage1-gmp gmp
47465@endif gmp
47466@if mpfr
47467 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
47468 mkdir stage1-mpfr; \
47469 mv stage1-mpfr mpfr
47470@endif mpfr
e8a5fa9c
RW
47471@if mpc
47472 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
47473 mkdir stage1-mpc; \
47474 mv stage1-mpc mpc
47475@endif mpc
7ec59b9e
L
47476@if isl
47477 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
47478 mkdir stage1-isl; \
47479 mv stage1-isl isl
47480@endif isl
1f53ca9a
AO
47481@if libelf
47482 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
47483 mkdir stage1-libelf; \
47484 mv stage1-libelf libelf
47485@endif libelf
93f9b408
ILT
47486@if gold
47487 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
47488 mkdir stage1-gold; \
47489 mv stage1-gold gold
47490@endif gold
72b2455a 47491@if intl
b00612cc
PB
47492 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
47493 mkdir stage1-intl; \
80911fe1 47494 mv stage1-intl intl
72b2455a
PB
47495@endif intl
47496@if ld
b00612cc
PB
47497 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
47498 mkdir stage1-ld; \
80911fe1 47499 mv stage1-ld ld
72b2455a 47500@endif ld
2bf680c4
ILT
47501@if libbacktrace
47502 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
47503 mkdir stage1-libbacktrace; \
47504 mv stage1-libbacktrace libbacktrace
47505@endif libbacktrace
72b2455a 47506@if libcpp
b00612cc
PB
47507 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
47508 mkdir stage1-libcpp; \
80911fe1 47509 mv stage1-libcpp libcpp
72b2455a 47510@endif libcpp
be01d343
PB
47511@if libdecnumber
47512 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
47513 mkdir stage1-libdecnumber; \
80911fe1 47514 mv stage1-libdecnumber libdecnumber
be01d343 47515@endif libdecnumber
72b2455a 47516@if libiberty
b00612cc
PB
47517 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
47518 mkdir stage1-libiberty; \
80911fe1 47519 mv stage1-libiberty libiberty
72b2455a 47520@endif libiberty
1b6c0831
L
47521@if libiberty-linker-plugin
47522 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
47523 mkdir stage1-libiberty-linker-plugin; \
47524 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
47525@endif libiberty-linker-plugin
72b2455a 47526@if zlib
b00612cc
PB
47527 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
47528 mkdir stage1-zlib; \
80911fe1 47529 mv stage1-zlib zlib
72b2455a 47530@endif zlib
700d40ca
ILT
47531@if lto-plugin
47532 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
47533 mkdir stage1-lto-plugin; \
47534 mv stage1-lto-plugin lto-plugin
47535@endif lto-plugin
0aed8855
PB
47536 @[ -d stage1-$(TARGET_SUBDIR) ] || \
47537 mkdir stage1-$(TARGET_SUBDIR); \
80911fe1 47538 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 47539
80911fe1 47540stage1-end::
72b2455a 47541@if bfd
80911fe1
PB
47542 @if test -d $(HOST_SUBDIR)/bfd ; then \
47543 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
0aed8855 47544 fi
72b2455a
PB
47545@endif bfd
47546@if opcodes
80911fe1
PB
47547 @if test -d $(HOST_SUBDIR)/opcodes ; then \
47548 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
0aed8855 47549 fi
72b2455a
PB
47550@endif opcodes
47551@if binutils
80911fe1
PB
47552 @if test -d $(HOST_SUBDIR)/binutils ; then \
47553 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
0aed8855 47554 fi
72b2455a 47555@endif binutils
201f096f 47556@if fixincludes
47557 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
47558 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes ; \
47559 fi
47560@endif fixincludes
72b2455a 47561@if gas
80911fe1
PB
47562 @if test -d $(HOST_SUBDIR)/gas ; then \
47563 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
0aed8855 47564 fi
72b2455a
PB
47565@endif gas
47566@if gcc
80911fe1
PB
47567 @if test -d $(HOST_SUBDIR)/gcc ; then \
47568 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
0aed8855 47569 fi
72b2455a 47570@endif gcc
4b900473
PB
47571@if gmp
47572 @if test -d $(HOST_SUBDIR)/gmp ; then \
47573 cd $(HOST_SUBDIR); mv gmp stage1-gmp ; \
47574 fi
47575@endif gmp
47576@if mpfr
47577 @if test -d $(HOST_SUBDIR)/mpfr ; then \
47578 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr ; \
47579 fi
47580@endif mpfr
e8a5fa9c
RW
47581@if mpc
47582 @if test -d $(HOST_SUBDIR)/mpc ; then \
47583 cd $(HOST_SUBDIR); mv mpc stage1-mpc ; \
47584 fi
47585@endif mpc
7ec59b9e
L
47586@if isl
47587 @if test -d $(HOST_SUBDIR)/isl ; then \
47588 cd $(HOST_SUBDIR); mv isl stage1-isl ; \
e28c595f 47589 fi
7ec59b9e 47590@endif isl
1f53ca9a
AO
47591@if libelf
47592 @if test -d $(HOST_SUBDIR)/libelf ; then \
47593 cd $(HOST_SUBDIR); mv libelf stage1-libelf ; \
47594 fi
47595@endif libelf
93f9b408
ILT
47596@if gold
47597 @if test -d $(HOST_SUBDIR)/gold ; then \
47598 cd $(HOST_SUBDIR); mv gold stage1-gold ; \
47599 fi
47600@endif gold
72b2455a 47601@if intl
80911fe1
PB
47602 @if test -d $(HOST_SUBDIR)/intl ; then \
47603 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
0aed8855 47604 fi
72b2455a
PB
47605@endif intl
47606@if ld
80911fe1
PB
47607 @if test -d $(HOST_SUBDIR)/ld ; then \
47608 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
0aed8855 47609 fi
72b2455a 47610@endif ld
2bf680c4
ILT
47611@if libbacktrace
47612 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
47613 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace ; \
47614 fi
47615@endif libbacktrace
72b2455a 47616@if libcpp
80911fe1
PB
47617 @if test -d $(HOST_SUBDIR)/libcpp ; then \
47618 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
0aed8855 47619 fi
72b2455a 47620@endif libcpp
be01d343 47621@if libdecnumber
80911fe1
PB
47622 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
47623 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
0aed8855 47624 fi
be01d343 47625@endif libdecnumber
72b2455a 47626@if libiberty
80911fe1
PB
47627 @if test -d $(HOST_SUBDIR)/libiberty ; then \
47628 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
0aed8855 47629 fi
72b2455a 47630@endif libiberty
1b6c0831
L
47631@if libiberty-linker-plugin
47632 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
47633 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin ; \
47634 fi
47635@endif libiberty-linker-plugin
72b2455a 47636@if zlib
80911fe1
PB
47637 @if test -d $(HOST_SUBDIR)/zlib ; then \
47638 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
0aed8855 47639 fi
72b2455a 47640@endif zlib
700d40ca
ILT
47641@if lto-plugin
47642 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
47643 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin ; \
47644 fi
47645@endif lto-plugin
0aed8855 47646 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1 47647 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
0aed8855 47648 fi
80911fe1 47649 rm -f stage_current
dfdffa2c 47650
973601e1 47651# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 47652# remade, but not reconfigured. The next stage (if any) will not be
675492f0 47653# reconfigured either.
319cab08 47654.PHONY: stage1-bubble
656fdd47 47655stage1-bubble::
e360f423
PB
47656 @r=`${PWD_COMMAND}`; export r; \
47657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47658 if test -f stage1-lean ; then \
9cb3fa6f
PB
47659 echo Skipping rebuild of stage1 ; \
47660 else \
f70224b5
PB
47661 $(MAKE) stage1-start; \
47662 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 47663 fi
72b2455a 47664
0df3d27f 47665.PHONY: all-stage1 clean-stage1
0df3d27f 47666do-clean: clean-stage1
0df3d27f 47667
72b2455a
PB
47668# FIXME: Will not need to be conditional when toplevel bootstrap is the
47669# only possibility, but now it conflicts with no-bootstrap rules
47670@if gcc-bootstrap
47671
47672
47673
47674
0df3d27f 47675# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 47676
0df3d27f 47677.PHONY: distclean-stage1
72b2455a 47678distclean-stage1::
0aed8855 47679 @: $(MAKE); $(stage)
e00a73e3 47680 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 47681 rm -rf stage1-*
72b2455a
PB
47682
47683
47684@endif gcc-bootstrap
47685
47686
47687.PHONY: stage2-start stage2-end
47688
47689stage2-start::
0aed8855 47690 @: $(MAKE); $(stage); \
72b2455a 47691 echo stage2 > stage_current ; \
b00612cc 47692 echo stage2 > stage_last; \
0aed8855 47693 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47694@if bfd
b00612cc
PB
47695 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
47696 mkdir stage2-bfd; \
80911fe1
PB
47697 mv stage2-bfd bfd ; \
47698 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
47699@endif bfd
47700@if opcodes
b00612cc
PB
47701 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
47702 mkdir stage2-opcodes; \
80911fe1
PB
47703 mv stage2-opcodes opcodes ; \
47704 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
47705@endif opcodes
47706@if binutils
b00612cc
PB
47707 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
47708 mkdir stage2-binutils; \
80911fe1
PB
47709 mv stage2-binutils binutils ; \
47710 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 47711@endif binutils
201f096f 47712@if fixincludes
47713 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
47714 mkdir stage2-fixincludes; \
47715 mv stage2-fixincludes fixincludes ; \
47716 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
47717@endif fixincludes
72b2455a 47718@if gas
b00612cc
PB
47719 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
47720 mkdir stage2-gas; \
80911fe1
PB
47721 mv stage2-gas gas ; \
47722 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
47723@endif gas
47724@if gcc
b00612cc
PB
47725 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
47726 mkdir stage2-gcc; \
80911fe1
PB
47727 mv stage2-gcc gcc ; \
47728 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 47729@endif gcc
4b900473
PB
47730@if gmp
47731 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
47732 mkdir stage2-gmp; \
47733 mv stage2-gmp gmp ; \
47734 mv stage1-gmp prev-gmp || test -f stage1-lean
47735@endif gmp
47736@if mpfr
47737 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
47738 mkdir stage2-mpfr; \
47739 mv stage2-mpfr mpfr ; \
47740 mv stage1-mpfr prev-mpfr || test -f stage1-lean
47741@endif mpfr
e8a5fa9c
RW
47742@if mpc
47743 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
47744 mkdir stage2-mpc; \
47745 mv stage2-mpc mpc ; \
47746 mv stage1-mpc prev-mpc || test -f stage1-lean
47747@endif mpc
7ec59b9e
L
47748@if isl
47749 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
47750 mkdir stage2-isl; \
47751 mv stage2-isl isl ; \
47752 mv stage1-isl prev-isl || test -f stage1-lean
47753@endif isl
1f53ca9a
AO
47754@if libelf
47755 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
47756 mkdir stage2-libelf; \
47757 mv stage2-libelf libelf ; \
47758 mv stage1-libelf prev-libelf || test -f stage1-lean
47759@endif libelf
93f9b408
ILT
47760@if gold
47761 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
47762 mkdir stage2-gold; \
47763 mv stage2-gold gold ; \
47764 mv stage1-gold prev-gold || test -f stage1-lean
47765@endif gold
72b2455a 47766@if intl
b00612cc
PB
47767 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
47768 mkdir stage2-intl; \
80911fe1
PB
47769 mv stage2-intl intl ; \
47770 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
47771@endif intl
47772@if ld
b00612cc
PB
47773 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
47774 mkdir stage2-ld; \
80911fe1
PB
47775 mv stage2-ld ld ; \
47776 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 47777@endif ld
2bf680c4
ILT
47778@if libbacktrace
47779 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
47780 mkdir stage2-libbacktrace; \
47781 mv stage2-libbacktrace libbacktrace ; \
47782 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
47783@endif libbacktrace
72b2455a 47784@if libcpp
b00612cc
PB
47785 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
47786 mkdir stage2-libcpp; \
80911fe1
PB
47787 mv stage2-libcpp libcpp ; \
47788 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 47789@endif libcpp
be01d343
PB
47790@if libdecnumber
47791 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
47792 mkdir stage2-libdecnumber; \
80911fe1
PB
47793 mv stage2-libdecnumber libdecnumber ; \
47794 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 47795@endif libdecnumber
72b2455a 47796@if libiberty
b00612cc
PB
47797 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
47798 mkdir stage2-libiberty; \
80911fe1
PB
47799 mv stage2-libiberty libiberty ; \
47800 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 47801@endif libiberty
1b6c0831
L
47802@if libiberty-linker-plugin
47803 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
47804 mkdir stage2-libiberty-linker-plugin; \
47805 mv stage2-libiberty-linker-plugin libiberty-linker-plugin ; \
47806 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
47807@endif libiberty-linker-plugin
72b2455a 47808@if zlib
b00612cc
PB
47809 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
47810 mkdir stage2-zlib; \
80911fe1
PB
47811 mv stage2-zlib zlib ; \
47812 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 47813@endif zlib
700d40ca
ILT
47814@if lto-plugin
47815 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
47816 mkdir stage2-lto-plugin; \
47817 mv stage2-lto-plugin lto-plugin ; \
47818 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
47819@endif lto-plugin
0aed8855
PB
47820 @[ -d stage2-$(TARGET_SUBDIR) ] || \
47821 mkdir stage2-$(TARGET_SUBDIR); \
80911fe1
PB
47822 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
47823 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 47824
80911fe1 47825stage2-end::
72b2455a 47826@if bfd
80911fe1
PB
47827 @if test -d $(HOST_SUBDIR)/bfd ; then \
47828 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
47829 mv prev-bfd stage1-bfd ; : ; \
0aed8855 47830 fi
72b2455a
PB
47831@endif bfd
47832@if opcodes
80911fe1
PB
47833 @if test -d $(HOST_SUBDIR)/opcodes ; then \
47834 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
47835 mv prev-opcodes stage1-opcodes ; : ; \
0aed8855 47836 fi
72b2455a
PB
47837@endif opcodes
47838@if binutils
80911fe1
PB
47839 @if test -d $(HOST_SUBDIR)/binutils ; then \
47840 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
47841 mv prev-binutils stage1-binutils ; : ; \
0aed8855 47842 fi
72b2455a 47843@endif binutils
201f096f 47844@if fixincludes
47845 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
47846 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes ; \
47847 mv prev-fixincludes stage1-fixincludes ; : ; \
47848 fi
47849@endif fixincludes
72b2455a 47850@if gas
80911fe1
PB
47851 @if test -d $(HOST_SUBDIR)/gas ; then \
47852 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
47853 mv prev-gas stage1-gas ; : ; \
0aed8855 47854 fi
72b2455a
PB
47855@endif gas
47856@if gcc
80911fe1
PB
47857 @if test -d $(HOST_SUBDIR)/gcc ; then \
47858 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
47859 mv prev-gcc stage1-gcc ; : ; \
0aed8855 47860 fi
72b2455a 47861@endif gcc
4b900473
PB
47862@if gmp
47863 @if test -d $(HOST_SUBDIR)/gmp ; then \
47864 cd $(HOST_SUBDIR); mv gmp stage2-gmp ; \
47865 mv prev-gmp stage1-gmp ; : ; \
47866 fi
47867@endif gmp
47868@if mpfr
47869 @if test -d $(HOST_SUBDIR)/mpfr ; then \
47870 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr ; \
47871 mv prev-mpfr stage1-mpfr ; : ; \
47872 fi
47873@endif mpfr
e8a5fa9c
RW
47874@if mpc
47875 @if test -d $(HOST_SUBDIR)/mpc ; then \
47876 cd $(HOST_SUBDIR); mv mpc stage2-mpc ; \
47877 mv prev-mpc stage1-mpc ; : ; \
47878 fi
47879@endif mpc
7ec59b9e
L
47880@if isl
47881 @if test -d $(HOST_SUBDIR)/isl ; then \
47882 cd $(HOST_SUBDIR); mv isl stage2-isl ; \
47883 mv prev-isl stage1-isl ; : ; \
e28c595f 47884 fi
7ec59b9e 47885@endif isl
1f53ca9a
AO
47886@if libelf
47887 @if test -d $(HOST_SUBDIR)/libelf ; then \
47888 cd $(HOST_SUBDIR); mv libelf stage2-libelf ; \
47889 mv prev-libelf stage1-libelf ; : ; \
47890 fi
47891@endif libelf
93f9b408
ILT
47892@if gold
47893 @if test -d $(HOST_SUBDIR)/gold ; then \
47894 cd $(HOST_SUBDIR); mv gold stage2-gold ; \
47895 mv prev-gold stage1-gold ; : ; \
47896 fi
47897@endif gold
72b2455a 47898@if intl
80911fe1
PB
47899 @if test -d $(HOST_SUBDIR)/intl ; then \
47900 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
47901 mv prev-intl stage1-intl ; : ; \
0aed8855 47902 fi
72b2455a
PB
47903@endif intl
47904@if ld
80911fe1
PB
47905 @if test -d $(HOST_SUBDIR)/ld ; then \
47906 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
47907 mv prev-ld stage1-ld ; : ; \
0aed8855 47908 fi
72b2455a 47909@endif ld
2bf680c4
ILT
47910@if libbacktrace
47911 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
47912 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace ; \
47913 mv prev-libbacktrace stage1-libbacktrace ; : ; \
47914 fi
47915@endif libbacktrace
72b2455a 47916@if libcpp
80911fe1
PB
47917 @if test -d $(HOST_SUBDIR)/libcpp ; then \
47918 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
47919 mv prev-libcpp stage1-libcpp ; : ; \
0aed8855 47920 fi
72b2455a 47921@endif libcpp
be01d343 47922@if libdecnumber
80911fe1
PB
47923 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
47924 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
47925 mv prev-libdecnumber stage1-libdecnumber ; : ; \
0aed8855 47926 fi
be01d343 47927@endif libdecnumber
72b2455a 47928@if libiberty
80911fe1
PB
47929 @if test -d $(HOST_SUBDIR)/libiberty ; then \
47930 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
47931 mv prev-libiberty stage1-libiberty ; : ; \
0aed8855 47932 fi
72b2455a 47933@endif libiberty
1b6c0831
L
47934@if libiberty-linker-plugin
47935 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
47936 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin ; \
47937 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin ; : ; \
47938 fi
47939@endif libiberty-linker-plugin
72b2455a 47940@if zlib
80911fe1
PB
47941 @if test -d $(HOST_SUBDIR)/zlib ; then \
47942 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
47943 mv prev-zlib stage1-zlib ; : ; \
0aed8855 47944 fi
72b2455a 47945@endif zlib
700d40ca
ILT
47946@if lto-plugin
47947 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
47948 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin ; \
47949 mv prev-lto-plugin stage1-lto-plugin ; : ; \
47950 fi
47951@endif lto-plugin
0aed8855 47952 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
47953 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
47954 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
0aed8855 47955 fi
80911fe1 47956 rm -f stage_current
72b2455a 47957
973601e1 47958# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 47959# remade, but not reconfigured. The next stage (if any) will not be
675492f0 47960# reconfigured either.
72b2455a
PB
47961.PHONY: stage2-bubble
47962stage2-bubble:: stage1-bubble
e360f423
PB
47963 @r=`${PWD_COMMAND}`; export r; \
47964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47965 if test -f stage2-lean || test -f stage1-lean ; then \
9cb3fa6f
PB
47966 echo Skipping rebuild of stage2 ; \
47967 else \
f70224b5
PB
47968 $(MAKE) stage2-start; \
47969 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 47970 fi
72b2455a 47971
0df3d27f 47972.PHONY: all-stage2 clean-stage2
0df3d27f 47973do-clean: clean-stage2
0df3d27f 47974
72b2455a
PB
47975# FIXME: Will not need to be conditional when toplevel bootstrap is the
47976# only possibility, but now it conflicts with no-bootstrap rules
47977@if gcc-bootstrap
47978
47979
47980
80911fe1 47981.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
47982bootstrap2:
47983 echo stage2 > stage_final
47984 @r=`${PWD_COMMAND}`; export r; \
47985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47986 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 47987 @: $(MAKE); $(unstage)
be01d343
PB
47988 @r=`${PWD_COMMAND}`; export r; \
47989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 47990 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 47991 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 47992
80911fe1
PB
47993bootstrap2-lean:
47994 echo stage2 > stage_final
47995 @r=`${PWD_COMMAND}`; export r; \
47996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47997 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
47998 @: $(MAKE); $(unstage)
47999 @r=`${PWD_COMMAND}`; export r; \
48000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48001 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
48002 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48003
72b2455a 48004
0df3d27f 48005# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48006distclean-stage1:: distclean-stage2
0df3d27f 48007.PHONY: distclean-stage2
72b2455a 48008distclean-stage2::
0aed8855 48009 @: $(MAKE); $(stage)
e00a73e3 48010 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 48011 rm -rf stage2-*
72b2455a
PB
48012
48013
48014@endif gcc-bootstrap
48015
48016
48017.PHONY: stage3-start stage3-end
48018
48019stage3-start::
0aed8855 48020 @: $(MAKE); $(stage); \
72b2455a 48021 echo stage3 > stage_current ; \
b00612cc 48022 echo stage3 > stage_last; \
0aed8855 48023 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48024@if bfd
b00612cc
PB
48025 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
48026 mkdir stage3-bfd; \
80911fe1
PB
48027 mv stage3-bfd bfd ; \
48028 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
48029@endif bfd
48030@if opcodes
b00612cc
PB
48031 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
48032 mkdir stage3-opcodes; \
80911fe1
PB
48033 mv stage3-opcodes opcodes ; \
48034 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
48035@endif opcodes
48036@if binutils
b00612cc
PB
48037 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
48038 mkdir stage3-binutils; \
80911fe1
PB
48039 mv stage3-binutils binutils ; \
48040 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 48041@endif binutils
201f096f 48042@if fixincludes
48043 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
48044 mkdir stage3-fixincludes; \
48045 mv stage3-fixincludes fixincludes ; \
48046 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
48047@endif fixincludes
72b2455a 48048@if gas
b00612cc
PB
48049 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
48050 mkdir stage3-gas; \
80911fe1
PB
48051 mv stage3-gas gas ; \
48052 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
48053@endif gas
48054@if gcc
b00612cc
PB
48055 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
48056 mkdir stage3-gcc; \
80911fe1
PB
48057 mv stage3-gcc gcc ; \
48058 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 48059@endif gcc
4b900473
PB
48060@if gmp
48061 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
48062 mkdir stage3-gmp; \
48063 mv stage3-gmp gmp ; \
48064 mv stage2-gmp prev-gmp || test -f stage2-lean
48065@endif gmp
48066@if mpfr
48067 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
48068 mkdir stage3-mpfr; \
48069 mv stage3-mpfr mpfr ; \
48070 mv stage2-mpfr prev-mpfr || test -f stage2-lean
48071@endif mpfr
e8a5fa9c
RW
48072@if mpc
48073 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
48074 mkdir stage3-mpc; \
48075 mv stage3-mpc mpc ; \
48076 mv stage2-mpc prev-mpc || test -f stage2-lean
48077@endif mpc
7ec59b9e
L
48078@if isl
48079 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
48080 mkdir stage3-isl; \
48081 mv stage3-isl isl ; \
48082 mv stage2-isl prev-isl || test -f stage2-lean
48083@endif isl
1f53ca9a
AO
48084@if libelf
48085 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
48086 mkdir stage3-libelf; \
48087 mv stage3-libelf libelf ; \
48088 mv stage2-libelf prev-libelf || test -f stage2-lean
48089@endif libelf
93f9b408
ILT
48090@if gold
48091 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
48092 mkdir stage3-gold; \
48093 mv stage3-gold gold ; \
48094 mv stage2-gold prev-gold || test -f stage2-lean
48095@endif gold
72b2455a 48096@if intl
b00612cc
PB
48097 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
48098 mkdir stage3-intl; \
80911fe1
PB
48099 mv stage3-intl intl ; \
48100 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
48101@endif intl
48102@if ld
b00612cc
PB
48103 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
48104 mkdir stage3-ld; \
80911fe1
PB
48105 mv stage3-ld ld ; \
48106 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 48107@endif ld
2bf680c4
ILT
48108@if libbacktrace
48109 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
48110 mkdir stage3-libbacktrace; \
48111 mv stage3-libbacktrace libbacktrace ; \
48112 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
48113@endif libbacktrace
72b2455a 48114@if libcpp
b00612cc
PB
48115 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
48116 mkdir stage3-libcpp; \
80911fe1
PB
48117 mv stage3-libcpp libcpp ; \
48118 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 48119@endif libcpp
be01d343
PB
48120@if libdecnumber
48121 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
48122 mkdir stage3-libdecnumber; \
80911fe1
PB
48123 mv stage3-libdecnumber libdecnumber ; \
48124 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 48125@endif libdecnumber
72b2455a 48126@if libiberty
b00612cc
PB
48127 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
48128 mkdir stage3-libiberty; \
80911fe1
PB
48129 mv stage3-libiberty libiberty ; \
48130 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 48131@endif libiberty
1b6c0831
L
48132@if libiberty-linker-plugin
48133 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
48134 mkdir stage3-libiberty-linker-plugin; \
48135 mv stage3-libiberty-linker-plugin libiberty-linker-plugin ; \
48136 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
48137@endif libiberty-linker-plugin
72b2455a 48138@if zlib
b00612cc
PB
48139 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
48140 mkdir stage3-zlib; \
80911fe1
PB
48141 mv stage3-zlib zlib ; \
48142 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 48143@endif zlib
700d40ca
ILT
48144@if lto-plugin
48145 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
48146 mkdir stage3-lto-plugin; \
48147 mv stage3-lto-plugin lto-plugin ; \
48148 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
48149@endif lto-plugin
0aed8855
PB
48150 @[ -d stage3-$(TARGET_SUBDIR) ] || \
48151 mkdir stage3-$(TARGET_SUBDIR); \
80911fe1
PB
48152 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48153 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 48154
80911fe1 48155stage3-end::
72b2455a 48156@if bfd
80911fe1
PB
48157 @if test -d $(HOST_SUBDIR)/bfd ; then \
48158 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
48159 mv prev-bfd stage2-bfd ; : ; \
0aed8855 48160 fi
72b2455a
PB
48161@endif bfd
48162@if opcodes
80911fe1
PB
48163 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48164 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
48165 mv prev-opcodes stage2-opcodes ; : ; \
0aed8855 48166 fi
72b2455a
PB
48167@endif opcodes
48168@if binutils
80911fe1
PB
48169 @if test -d $(HOST_SUBDIR)/binutils ; then \
48170 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
48171 mv prev-binutils stage2-binutils ; : ; \
0aed8855 48172 fi
72b2455a 48173@endif binutils
201f096f 48174@if fixincludes
48175 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48176 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes ; \
48177 mv prev-fixincludes stage2-fixincludes ; : ; \
48178 fi
48179@endif fixincludes
72b2455a 48180@if gas
80911fe1
PB
48181 @if test -d $(HOST_SUBDIR)/gas ; then \
48182 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
48183 mv prev-gas stage2-gas ; : ; \
0aed8855 48184 fi
72b2455a
PB
48185@endif gas
48186@if gcc
80911fe1
PB
48187 @if test -d $(HOST_SUBDIR)/gcc ; then \
48188 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
48189 mv prev-gcc stage2-gcc ; : ; \
0aed8855 48190 fi
72b2455a 48191@endif gcc
4b900473
PB
48192@if gmp
48193 @if test -d $(HOST_SUBDIR)/gmp ; then \
48194 cd $(HOST_SUBDIR); mv gmp stage3-gmp ; \
48195 mv prev-gmp stage2-gmp ; : ; \
48196 fi
48197@endif gmp
48198@if mpfr
48199 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48200 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr ; \
48201 mv prev-mpfr stage2-mpfr ; : ; \
48202 fi
48203@endif mpfr
e8a5fa9c
RW
48204@if mpc
48205 @if test -d $(HOST_SUBDIR)/mpc ; then \
48206 cd $(HOST_SUBDIR); mv mpc stage3-mpc ; \
48207 mv prev-mpc stage2-mpc ; : ; \
48208 fi
48209@endif mpc
7ec59b9e
L
48210@if isl
48211 @if test -d $(HOST_SUBDIR)/isl ; then \
48212 cd $(HOST_SUBDIR); mv isl stage3-isl ; \
48213 mv prev-isl stage2-isl ; : ; \
e28c595f 48214 fi
7ec59b9e 48215@endif isl
1f53ca9a
AO
48216@if libelf
48217 @if test -d $(HOST_SUBDIR)/libelf ; then \
48218 cd $(HOST_SUBDIR); mv libelf stage3-libelf ; \
48219 mv prev-libelf stage2-libelf ; : ; \
48220 fi
48221@endif libelf
93f9b408
ILT
48222@if gold
48223 @if test -d $(HOST_SUBDIR)/gold ; then \
48224 cd $(HOST_SUBDIR); mv gold stage3-gold ; \
48225 mv prev-gold stage2-gold ; : ; \
48226 fi
48227@endif gold
72b2455a 48228@if intl
80911fe1
PB
48229 @if test -d $(HOST_SUBDIR)/intl ; then \
48230 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
48231 mv prev-intl stage2-intl ; : ; \
0aed8855 48232 fi
72b2455a
PB
48233@endif intl
48234@if ld
80911fe1
PB
48235 @if test -d $(HOST_SUBDIR)/ld ; then \
48236 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
48237 mv prev-ld stage2-ld ; : ; \
0aed8855 48238 fi
72b2455a 48239@endif ld
2bf680c4
ILT
48240@if libbacktrace
48241 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
48242 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace ; \
48243 mv prev-libbacktrace stage2-libbacktrace ; : ; \
48244 fi
48245@endif libbacktrace
72b2455a 48246@if libcpp
80911fe1
PB
48247 @if test -d $(HOST_SUBDIR)/libcpp ; then \
48248 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
48249 mv prev-libcpp stage2-libcpp ; : ; \
0aed8855 48250 fi
72b2455a 48251@endif libcpp
be01d343 48252@if libdecnumber
80911fe1
PB
48253 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
48254 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
48255 mv prev-libdecnumber stage2-libdecnumber ; : ; \
0aed8855 48256 fi
be01d343 48257@endif libdecnumber
72b2455a 48258@if libiberty
80911fe1
PB
48259 @if test -d $(HOST_SUBDIR)/libiberty ; then \
48260 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
48261 mv prev-libiberty stage2-libiberty ; : ; \
0aed8855 48262 fi
72b2455a 48263@endif libiberty
1b6c0831
L
48264@if libiberty-linker-plugin
48265 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
48266 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin ; \
48267 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin ; : ; \
48268 fi
48269@endif libiberty-linker-plugin
72b2455a 48270@if zlib
80911fe1
PB
48271 @if test -d $(HOST_SUBDIR)/zlib ; then \
48272 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
48273 mv prev-zlib stage2-zlib ; : ; \
0aed8855 48274 fi
72b2455a 48275@endif zlib
700d40ca
ILT
48276@if lto-plugin
48277 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
48278 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin ; \
48279 mv prev-lto-plugin stage2-lto-plugin ; : ; \
48280 fi
48281@endif lto-plugin
0aed8855 48282 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
48283 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
48284 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
0aed8855 48285 fi
80911fe1 48286 rm -f stage_current
72b2455a 48287
973601e1 48288# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 48289# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48290# reconfigured either.
72b2455a
PB
48291.PHONY: stage3-bubble
48292stage3-bubble:: stage2-bubble
e360f423
PB
48293 @r=`${PWD_COMMAND}`; export r; \
48294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48295 if test -f stage3-lean || test -f stage2-lean ; then \
9cb3fa6f
PB
48296 echo Skipping rebuild of stage3 ; \
48297 else \
f70224b5 48298 $(MAKE) stage3-start; \
80911fe1
PB
48299 if $(LEAN); then \
48300 rm -rf stage1-* ; \
48301 $(STAMP) stage1-lean ; \
48302 fi; \
f70224b5 48303 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 48304 fi
f6d183c0 48305 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 48306
0df3d27f 48307.PHONY: all-stage3 clean-stage3
0df3d27f 48308do-clean: clean-stage3
0df3d27f 48309
d545f33b
PB
48310# FIXME: Will not need to be conditional when toplevel bootstrap is the
48311# only possibility, but now it conflicts with no-bootstrap rules
48312@if gcc-bootstrap
72b2455a 48313
d545f33b 48314compare:
e360f423
PB
48315 @r=`${PWD_COMMAND}`; export r; \
48316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48317 if test -f stage2-lean; then \
d545f33b
PB
48318 echo Cannot compare object files as stage 2 was deleted. ; \
48319 exit 0 ; \
48320 fi; \
0aed8855 48321 : $(MAKE); $(stage); \
d545f33b 48322 rm -f .bad_compare ; \
c52c6897 48323 echo Comparing stages 2 and 3 ; \
fda13ee8
AO
48324 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
48325 files=`find stage3-* -name "*$(objext)" -print | \
48326 sed -n s,^stage$$sed-,,p` ; \
d545f33b 48327 for file in $${files} ; do \
fda13ee8
AO
48328 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
48329 if test ! -f $$f1; then continue; fi; \
8520c408 48330 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
48331 if test $$? -eq 1; then \
48332 case $$file in \
e8a5fa9c 48333 @compare_exclusions@) \
f70224b5
PB
48334 echo warning: $$file differs ;; \
48335 *) \
48336 echo $$file differs >> .bad_compare ;; \
48337 esac ; \
48338 fi ; \
d545f33b
PB
48339 done ; \
48340 if [ -f .bad_compare ]; then \
48341 echo "Bootstrap comparison failure!"; \
48342 cat .bad_compare; \
48343 exit 1; \
48344 else \
c52c6897 48345 echo Comparison successful.; \
d545f33b
PB
48346 fi ; \
48347 $(STAMP) compare
80911fe1
PB
48348 if $(LEAN); then \
48349 rm -rf stage2-*; \
48350 $(STAMP) stage2-lean; \
48351 fi
9cb3fa6f 48352
72b2455a 48353
72b2455a 48354
80911fe1 48355.PHONY: bootstrap bootstrap-lean
be01d343
PB
48356bootstrap:
48357 echo stage3 > stage_final
48358 @r=`${PWD_COMMAND}`; export r; \
48359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48360 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 48361 @: $(MAKE); $(unstage)
be01d343
PB
48362 @r=`${PWD_COMMAND}`; export r; \
48363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48364 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 48365 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48366
80911fe1
PB
48367bootstrap-lean:
48368 echo stage3 > stage_final
48369 @r=`${PWD_COMMAND}`; export r; \
48370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48371 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
48372 @: $(MAKE); $(unstage)
48373 @r=`${PWD_COMMAND}`; export r; \
48374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48375 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
48376 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48377
72b2455a 48378
d545f33b
PB
48379# Rules to wipe a stage and all the following ones, also used for cleanstrap
48380distclean-stage2:: distclean-stage3
48381.PHONY: distclean-stage3
48382distclean-stage3::
0aed8855 48383 @: $(MAKE); $(stage)
e00a73e3 48384 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 48385 rm -rf stage3-* compare
0df3d27f 48386
9cb3fa6f 48387
d545f33b 48388.PHONY: cleanstrap
e00a73e3
PB
48389cleanstrap: do-distclean local-clean
48390 echo stage3 > stage_final
48391 @r=`${PWD_COMMAND}`; export r; \
48392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48393 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
48394 @: $(MAKE); $(unstage)
48395 @r=`${PWD_COMMAND}`; export r; \
48396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48397 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
48398 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48399
48400@endif gcc-bootstrap
48401
48402
72b2455a
PB
48403.PHONY: stage4-start stage4-end
48404
48405stage4-start::
0aed8855 48406 @: $(MAKE); $(stage); \
72b2455a 48407 echo stage4 > stage_current ; \
b00612cc 48408 echo stage4 > stage_last; \
0aed8855 48409 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48410@if bfd
b00612cc
PB
48411 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
48412 mkdir stage4-bfd; \
80911fe1
PB
48413 mv stage4-bfd bfd ; \
48414 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
48415@endif bfd
48416@if opcodes
b00612cc
PB
48417 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
48418 mkdir stage4-opcodes; \
80911fe1
PB
48419 mv stage4-opcodes opcodes ; \
48420 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
48421@endif opcodes
48422@if binutils
b00612cc
PB
48423 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
48424 mkdir stage4-binutils; \
80911fe1
PB
48425 mv stage4-binutils binutils ; \
48426 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 48427@endif binutils
201f096f 48428@if fixincludes
48429 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
48430 mkdir stage4-fixincludes; \
48431 mv stage4-fixincludes fixincludes ; \
48432 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
48433@endif fixincludes
72b2455a 48434@if gas
b00612cc
PB
48435 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
48436 mkdir stage4-gas; \
80911fe1
PB
48437 mv stage4-gas gas ; \
48438 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
48439@endif gas
48440@if gcc
b00612cc
PB
48441 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
48442 mkdir stage4-gcc; \
80911fe1
PB
48443 mv stage4-gcc gcc ; \
48444 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 48445@endif gcc
4b900473
PB
48446@if gmp
48447 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
48448 mkdir stage4-gmp; \
48449 mv stage4-gmp gmp ; \
48450 mv stage3-gmp prev-gmp || test -f stage3-lean
48451@endif gmp
48452@if mpfr
48453 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
48454 mkdir stage4-mpfr; \
48455 mv stage4-mpfr mpfr ; \
48456 mv stage3-mpfr prev-mpfr || test -f stage3-lean
48457@endif mpfr
e8a5fa9c
RW
48458@if mpc
48459 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
48460 mkdir stage4-mpc; \
48461 mv stage4-mpc mpc ; \
48462 mv stage3-mpc prev-mpc || test -f stage3-lean
48463@endif mpc
7ec59b9e
L
48464@if isl
48465 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
48466 mkdir stage4-isl; \
48467 mv stage4-isl isl ; \
48468 mv stage3-isl prev-isl || test -f stage3-lean
48469@endif isl
1f53ca9a
AO
48470@if libelf
48471 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
48472 mkdir stage4-libelf; \
48473 mv stage4-libelf libelf ; \
48474 mv stage3-libelf prev-libelf || test -f stage3-lean
48475@endif libelf
93f9b408
ILT
48476@if gold
48477 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
48478 mkdir stage4-gold; \
48479 mv stage4-gold gold ; \
48480 mv stage3-gold prev-gold || test -f stage3-lean
48481@endif gold
72b2455a 48482@if intl
b00612cc
PB
48483 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
48484 mkdir stage4-intl; \
80911fe1
PB
48485 mv stage4-intl intl ; \
48486 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
48487@endif intl
48488@if ld
b00612cc
PB
48489 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
48490 mkdir stage4-ld; \
80911fe1
PB
48491 mv stage4-ld ld ; \
48492 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 48493@endif ld
2bf680c4
ILT
48494@if libbacktrace
48495 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
48496 mkdir stage4-libbacktrace; \
48497 mv stage4-libbacktrace libbacktrace ; \
48498 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
48499@endif libbacktrace
72b2455a 48500@if libcpp
b00612cc
PB
48501 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
48502 mkdir stage4-libcpp; \
80911fe1
PB
48503 mv stage4-libcpp libcpp ; \
48504 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 48505@endif libcpp
be01d343
PB
48506@if libdecnumber
48507 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
48508 mkdir stage4-libdecnumber; \
80911fe1
PB
48509 mv stage4-libdecnumber libdecnumber ; \
48510 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 48511@endif libdecnumber
72b2455a 48512@if libiberty
b00612cc
PB
48513 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
48514 mkdir stage4-libiberty; \
80911fe1
PB
48515 mv stage4-libiberty libiberty ; \
48516 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 48517@endif libiberty
1b6c0831
L
48518@if libiberty-linker-plugin
48519 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
48520 mkdir stage4-libiberty-linker-plugin; \
48521 mv stage4-libiberty-linker-plugin libiberty-linker-plugin ; \
48522 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
48523@endif libiberty-linker-plugin
72b2455a 48524@if zlib
b00612cc
PB
48525 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
48526 mkdir stage4-zlib; \
80911fe1
PB
48527 mv stage4-zlib zlib ; \
48528 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 48529@endif zlib
700d40ca
ILT
48530@if lto-plugin
48531 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
48532 mkdir stage4-lto-plugin; \
48533 mv stage4-lto-plugin lto-plugin ; \
48534 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
48535@endif lto-plugin
0aed8855
PB
48536 @[ -d stage4-$(TARGET_SUBDIR) ] || \
48537 mkdir stage4-$(TARGET_SUBDIR); \
80911fe1
PB
48538 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48539 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 48540
80911fe1 48541stage4-end::
72b2455a 48542@if bfd
80911fe1
PB
48543 @if test -d $(HOST_SUBDIR)/bfd ; then \
48544 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
48545 mv prev-bfd stage3-bfd ; : ; \
0aed8855 48546 fi
72b2455a
PB
48547@endif bfd
48548@if opcodes
80911fe1
PB
48549 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48550 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
48551 mv prev-opcodes stage3-opcodes ; : ; \
0aed8855 48552 fi
72b2455a
PB
48553@endif opcodes
48554@if binutils
80911fe1
PB
48555 @if test -d $(HOST_SUBDIR)/binutils ; then \
48556 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
48557 mv prev-binutils stage3-binutils ; : ; \
0aed8855 48558 fi
72b2455a 48559@endif binutils
201f096f 48560@if fixincludes
48561 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48562 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes ; \
48563 mv prev-fixincludes stage3-fixincludes ; : ; \
48564 fi
48565@endif fixincludes
72b2455a 48566@if gas
80911fe1
PB
48567 @if test -d $(HOST_SUBDIR)/gas ; then \
48568 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
48569 mv prev-gas stage3-gas ; : ; \
0aed8855 48570 fi
72b2455a
PB
48571@endif gas
48572@if gcc
80911fe1
PB
48573 @if test -d $(HOST_SUBDIR)/gcc ; then \
48574 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
48575 mv prev-gcc stage3-gcc ; : ; \
0aed8855 48576 fi
72b2455a 48577@endif gcc
4b900473
PB
48578@if gmp
48579 @if test -d $(HOST_SUBDIR)/gmp ; then \
48580 cd $(HOST_SUBDIR); mv gmp stage4-gmp ; \
48581 mv prev-gmp stage3-gmp ; : ; \
48582 fi
48583@endif gmp
48584@if mpfr
48585 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48586 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr ; \
48587 mv prev-mpfr stage3-mpfr ; : ; \
48588 fi
48589@endif mpfr
e8a5fa9c
RW
48590@if mpc
48591 @if test -d $(HOST_SUBDIR)/mpc ; then \
48592 cd $(HOST_SUBDIR); mv mpc stage4-mpc ; \
48593 mv prev-mpc stage3-mpc ; : ; \
48594 fi
48595@endif mpc
7ec59b9e
L
48596@if isl
48597 @if test -d $(HOST_SUBDIR)/isl ; then \
48598 cd $(HOST_SUBDIR); mv isl stage4-isl ; \
48599 mv prev-isl stage3-isl ; : ; \
e28c595f 48600 fi
7ec59b9e 48601@endif isl
1f53ca9a
AO
48602@if libelf
48603 @if test -d $(HOST_SUBDIR)/libelf ; then \
48604 cd $(HOST_SUBDIR); mv libelf stage4-libelf ; \
48605 mv prev-libelf stage3-libelf ; : ; \
48606 fi
48607@endif libelf
93f9b408
ILT
48608@if gold
48609 @if test -d $(HOST_SUBDIR)/gold ; then \
48610 cd $(HOST_SUBDIR); mv gold stage4-gold ; \
48611 mv prev-gold stage3-gold ; : ; \
48612 fi
48613@endif gold
72b2455a 48614@if intl
80911fe1
PB
48615 @if test -d $(HOST_SUBDIR)/intl ; then \
48616 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
48617 mv prev-intl stage3-intl ; : ; \
0aed8855 48618 fi
72b2455a
PB
48619@endif intl
48620@if ld
80911fe1
PB
48621 @if test -d $(HOST_SUBDIR)/ld ; then \
48622 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
48623 mv prev-ld stage3-ld ; : ; \
0aed8855 48624 fi
72b2455a 48625@endif ld
2bf680c4
ILT
48626@if libbacktrace
48627 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
48628 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace ; \
48629 mv prev-libbacktrace stage3-libbacktrace ; : ; \
48630 fi
48631@endif libbacktrace
72b2455a 48632@if libcpp
80911fe1
PB
48633 @if test -d $(HOST_SUBDIR)/libcpp ; then \
48634 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
48635 mv prev-libcpp stage3-libcpp ; : ; \
0aed8855 48636 fi
72b2455a 48637@endif libcpp
be01d343 48638@if libdecnumber
80911fe1
PB
48639 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
48640 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
48641 mv prev-libdecnumber stage3-libdecnumber ; : ; \
0aed8855 48642 fi
be01d343 48643@endif libdecnumber
72b2455a 48644@if libiberty
80911fe1
PB
48645 @if test -d $(HOST_SUBDIR)/libiberty ; then \
48646 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
48647 mv prev-libiberty stage3-libiberty ; : ; \
0aed8855 48648 fi
72b2455a 48649@endif libiberty
1b6c0831
L
48650@if libiberty-linker-plugin
48651 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
48652 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin ; \
48653 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin ; : ; \
48654 fi
48655@endif libiberty-linker-plugin
72b2455a 48656@if zlib
80911fe1
PB
48657 @if test -d $(HOST_SUBDIR)/zlib ; then \
48658 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
48659 mv prev-zlib stage3-zlib ; : ; \
0aed8855 48660 fi
72b2455a 48661@endif zlib
700d40ca
ILT
48662@if lto-plugin
48663 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
48664 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin ; \
48665 mv prev-lto-plugin stage3-lto-plugin ; : ; \
48666 fi
48667@endif lto-plugin
0aed8855 48668 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
48669 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
48670 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
0aed8855 48671 fi
80911fe1 48672 rm -f stage_current
72b2455a 48673
973601e1 48674# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 48675# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48676# reconfigured either.
72b2455a
PB
48677.PHONY: stage4-bubble
48678stage4-bubble:: stage3-bubble
e360f423
PB
48679 @r=`${PWD_COMMAND}`; export r; \
48680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48681 if test -f stage4-lean || test -f stage3-lean ; then \
9cb3fa6f
PB
48682 echo Skipping rebuild of stage4 ; \
48683 else \
f70224b5 48684 $(MAKE) stage4-start; \
80911fe1
PB
48685 if $(LEAN); then \
48686 rm -rf stage2-* ; \
48687 $(STAMP) stage2-lean ; \
48688 fi; \
f70224b5 48689 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 48690 fi
f6d183c0 48691 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 48692
0df3d27f 48693.PHONY: all-stage4 clean-stage4
0df3d27f 48694do-clean: clean-stage4
0df3d27f 48695
d545f33b
PB
48696# FIXME: Will not need to be conditional when toplevel bootstrap is the
48697# only possibility, but now it conflicts with no-bootstrap rules
48698@if gcc-bootstrap
72b2455a 48699
d545f33b 48700compare3:
e360f423
PB
48701 @r=`${PWD_COMMAND}`; export r; \
48702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48703 if test -f stage3-lean; then \
d545f33b
PB
48704 echo Cannot compare object files as stage 3 was deleted. ; \
48705 exit 0 ; \
48706 fi; \
0aed8855 48707 : $(MAKE); $(stage); \
d545f33b 48708 rm -f .bad_compare ; \
c52c6897 48709 echo Comparing stages 3 and 4 ; \
fda13ee8
AO
48710 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
48711 files=`find stage4-* -name "*$(objext)" -print | \
48712 sed -n s,^stage$$sed-,,p` ; \
d545f33b 48713 for file in $${files} ; do \
fda13ee8
AO
48714 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
48715 if test ! -f $$f1; then continue; fi; \
8520c408 48716 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
48717 if test $$? -eq 1; then \
48718 case $$file in \
e8a5fa9c 48719 @compare_exclusions@) \
f70224b5
PB
48720 echo warning: $$file differs ;; \
48721 *) \
48722 echo $$file differs >> .bad_compare ;; \
48723 esac ; \
48724 fi ; \
d545f33b
PB
48725 done ; \
48726 if [ -f .bad_compare ]; then \
48727 echo "Bootstrap comparison failure!"; \
48728 cat .bad_compare; \
48729 exit 1; \
48730 else \
c52c6897 48731 echo Comparison successful.; \
d545f33b
PB
48732 fi ; \
48733 $(STAMP) compare3
80911fe1
PB
48734 if $(LEAN); then \
48735 rm -rf stage3-*; \
48736 $(STAMP) stage3-lean; \
48737 fi
9cb3fa6f 48738
72b2455a 48739
72b2455a 48740
80911fe1 48741.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
48742bootstrap4:
48743 echo stage4 > stage_final
48744 @r=`${PWD_COMMAND}`; export r; \
48745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48746 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 48747 @: $(MAKE); $(unstage)
be01d343
PB
48748 @r=`${PWD_COMMAND}`; export r; \
48749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48750 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 48751 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48752
80911fe1
PB
48753bootstrap4-lean:
48754 echo stage4 > stage_final
48755 @r=`${PWD_COMMAND}`; export r; \
48756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48757 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
48758 @: $(MAKE); $(unstage)
48759 @r=`${PWD_COMMAND}`; export r; \
48760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48761 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
48762 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48763
72b2455a 48764
d545f33b
PB
48765# Rules to wipe a stage and all the following ones, also used for cleanstrap
48766distclean-stage3:: distclean-stage4
48767.PHONY: distclean-stage4
48768distclean-stage4::
0aed8855 48769 @: $(MAKE); $(stage)
e00a73e3 48770 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 48771 rm -rf stage4-* compare3
0df3d27f 48772
9cb3fa6f 48773
d545f33b 48774@endif gcc-bootstrap
72b2455a
PB
48775
48776
48777.PHONY: stageprofile-start stageprofile-end
48778
48779stageprofile-start::
0aed8855 48780 @: $(MAKE); $(stage); \
72b2455a 48781 echo stageprofile > stage_current ; \
b00612cc 48782 echo stageprofile > stage_last; \
0aed8855 48783 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48784@if bfd
b00612cc
PB
48785 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
48786 mkdir stageprofile-bfd; \
80911fe1
PB
48787 mv stageprofile-bfd bfd ; \
48788 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48789@endif bfd
48790@if opcodes
b00612cc
PB
48791 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
48792 mkdir stageprofile-opcodes; \
80911fe1
PB
48793 mv stageprofile-opcodes opcodes ; \
48794 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48795@endif opcodes
48796@if binutils
b00612cc
PB
48797 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
48798 mkdir stageprofile-binutils; \
80911fe1
PB
48799 mv stageprofile-binutils binutils ; \
48800 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48801@endif binutils
201f096f 48802@if fixincludes
48803 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
48804 mkdir stageprofile-fixincludes; \
48805 mv stageprofile-fixincludes fixincludes ; \
48806 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48807@endif fixincludes
72b2455a 48808@if gas
b00612cc
PB
48809 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
48810 mkdir stageprofile-gas; \
80911fe1
PB
48811 mv stageprofile-gas gas ; \
48812 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48813@endif gas
48814@if gcc
b00612cc
PB
48815 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
48816 mkdir stageprofile-gcc; \
80911fe1
PB
48817 mv stageprofile-gcc gcc ; \
48818 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48819@endif gcc
4b900473
PB
48820@if gmp
48821 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
48822 mkdir stageprofile-gmp; \
48823 mv stageprofile-gmp gmp ; \
48824 mv stage1-gmp prev-gmp || test -f stage1-lean
48825@endif gmp
48826@if mpfr
48827 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
48828 mkdir stageprofile-mpfr; \
48829 mv stageprofile-mpfr mpfr ; \
48830 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48831@endif mpfr
e8a5fa9c
RW
48832@if mpc
48833 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
48834 mkdir stageprofile-mpc; \
48835 mv stageprofile-mpc mpc ; \
48836 mv stage1-mpc prev-mpc || test -f stage1-lean
48837@endif mpc
7ec59b9e
L
48838@if isl
48839 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
48840 mkdir stageprofile-isl; \
48841 mv stageprofile-isl isl ; \
48842 mv stage1-isl prev-isl || test -f stage1-lean
48843@endif isl
1f53ca9a
AO
48844@if libelf
48845 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
48846 mkdir stageprofile-libelf; \
48847 mv stageprofile-libelf libelf ; \
48848 mv stage1-libelf prev-libelf || test -f stage1-lean
48849@endif libelf
93f9b408
ILT
48850@if gold
48851 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
48852 mkdir stageprofile-gold; \
48853 mv stageprofile-gold gold ; \
48854 mv stage1-gold prev-gold || test -f stage1-lean
48855@endif gold
72b2455a 48856@if intl
b00612cc
PB
48857 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
48858 mkdir stageprofile-intl; \
80911fe1
PB
48859 mv stageprofile-intl intl ; \
48860 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48861@endif intl
48862@if ld
b00612cc
PB
48863 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
48864 mkdir stageprofile-ld; \
80911fe1
PB
48865 mv stageprofile-ld ld ; \
48866 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48867@endif ld
2bf680c4
ILT
48868@if libbacktrace
48869 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
48870 mkdir stageprofile-libbacktrace; \
48871 mv stageprofile-libbacktrace libbacktrace ; \
48872 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48873@endif libbacktrace
72b2455a 48874@if libcpp
b00612cc
PB
48875 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
48876 mkdir stageprofile-libcpp; \
80911fe1
PB
48877 mv stageprofile-libcpp libcpp ; \
48878 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48879@endif libcpp
be01d343
PB
48880@if libdecnumber
48881 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
48882 mkdir stageprofile-libdecnumber; \
80911fe1
PB
48883 mv stageprofile-libdecnumber libdecnumber ; \
48884 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48885@endif libdecnumber
72b2455a 48886@if libiberty
b00612cc
PB
48887 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
48888 mkdir stageprofile-libiberty; \
80911fe1
PB
48889 mv stageprofile-libiberty libiberty ; \
48890 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48891@endif libiberty
1b6c0831
L
48892@if libiberty-linker-plugin
48893 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
48894 mkdir stageprofile-libiberty-linker-plugin; \
48895 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin ; \
48896 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48897@endif libiberty-linker-plugin
72b2455a 48898@if zlib
d545f33b
PB
48899 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
48900 mkdir stageprofile-zlib; \
80911fe1
PB
48901 mv stageprofile-zlib zlib ; \
48902 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 48903@endif zlib
700d40ca
ILT
48904@if lto-plugin
48905 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
48906 mkdir stageprofile-lto-plugin; \
48907 mv stageprofile-lto-plugin lto-plugin ; \
48908 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48909@endif lto-plugin
0aed8855
PB
48910 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
48911 mkdir stageprofile-$(TARGET_SUBDIR); \
80911fe1
PB
48912 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48913 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 48914
80911fe1 48915stageprofile-end::
d545f33b 48916@if bfd
80911fe1
PB
48917 @if test -d $(HOST_SUBDIR)/bfd ; then \
48918 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
48919 mv prev-bfd stage1-bfd ; : ; \
0aed8855 48920 fi
d545f33b
PB
48921@endif bfd
48922@if opcodes
80911fe1
PB
48923 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48924 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
48925 mv prev-opcodes stage1-opcodes ; : ; \
0aed8855 48926 fi
d545f33b
PB
48927@endif opcodes
48928@if binutils
80911fe1
PB
48929 @if test -d $(HOST_SUBDIR)/binutils ; then \
48930 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
48931 mv prev-binutils stage1-binutils ; : ; \
0aed8855 48932 fi
d545f33b 48933@endif binutils
201f096f 48934@if fixincludes
48935 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48936 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes ; \
48937 mv prev-fixincludes stage1-fixincludes ; : ; \
48938 fi
48939@endif fixincludes
d545f33b 48940@if gas
80911fe1
PB
48941 @if test -d $(HOST_SUBDIR)/gas ; then \
48942 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
48943 mv prev-gas stage1-gas ; : ; \
0aed8855 48944 fi
d545f33b
PB
48945@endif gas
48946@if gcc
80911fe1
PB
48947 @if test -d $(HOST_SUBDIR)/gcc ; then \
48948 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
48949 mv prev-gcc stage1-gcc ; : ; \
0aed8855 48950 fi
d545f33b 48951@endif gcc
4b900473
PB
48952@if gmp
48953 @if test -d $(HOST_SUBDIR)/gmp ; then \
48954 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp ; \
48955 mv prev-gmp stage1-gmp ; : ; \
48956 fi
48957@endif gmp
48958@if mpfr
48959 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48960 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr ; \
48961 mv prev-mpfr stage1-mpfr ; : ; \
48962 fi
48963@endif mpfr
e8a5fa9c
RW
48964@if mpc
48965 @if test -d $(HOST_SUBDIR)/mpc ; then \
48966 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc ; \
48967 mv prev-mpc stage1-mpc ; : ; \
48968 fi
48969@endif mpc
7ec59b9e
L
48970@if isl
48971 @if test -d $(HOST_SUBDIR)/isl ; then \
48972 cd $(HOST_SUBDIR); mv isl stageprofile-isl ; \
48973 mv prev-isl stage1-isl ; : ; \
e28c595f 48974 fi
7ec59b9e 48975@endif isl
1f53ca9a
AO
48976@if libelf
48977 @if test -d $(HOST_SUBDIR)/libelf ; then \
48978 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf ; \
48979 mv prev-libelf stage1-libelf ; : ; \
48980 fi
48981@endif libelf
93f9b408
ILT
48982@if gold
48983 @if test -d $(HOST_SUBDIR)/gold ; then \
48984 cd $(HOST_SUBDIR); mv gold stageprofile-gold ; \
48985 mv prev-gold stage1-gold ; : ; \
48986 fi
48987@endif gold
d545f33b 48988@if intl
80911fe1
PB
48989 @if test -d $(HOST_SUBDIR)/intl ; then \
48990 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
48991 mv prev-intl stage1-intl ; : ; \
0aed8855 48992 fi
d545f33b
PB
48993@endif intl
48994@if ld
80911fe1
PB
48995 @if test -d $(HOST_SUBDIR)/ld ; then \
48996 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
48997 mv prev-ld stage1-ld ; : ; \
0aed8855 48998 fi
d545f33b 48999@endif ld
2bf680c4
ILT
49000@if libbacktrace
49001 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
49002 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace ; \
49003 mv prev-libbacktrace stage1-libbacktrace ; : ; \
49004 fi
49005@endif libbacktrace
d545f33b 49006@if libcpp
80911fe1
PB
49007 @if test -d $(HOST_SUBDIR)/libcpp ; then \
49008 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
49009 mv prev-libcpp stage1-libcpp ; : ; \
0aed8855 49010 fi
d545f33b 49011@endif libcpp
be01d343 49012@if libdecnumber
80911fe1
PB
49013 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
49014 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
49015 mv prev-libdecnumber stage1-libdecnumber ; : ; \
0aed8855 49016 fi
be01d343 49017@endif libdecnumber
d545f33b 49018@if libiberty
80911fe1
PB
49019 @if test -d $(HOST_SUBDIR)/libiberty ; then \
49020 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
49021 mv prev-libiberty stage1-libiberty ; : ; \
0aed8855 49022 fi
d545f33b 49023@endif libiberty
1b6c0831
L
49024@if libiberty-linker-plugin
49025 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
49026 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin ; \
49027 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin ; : ; \
49028 fi
49029@endif libiberty-linker-plugin
d545f33b 49030@if zlib
80911fe1
PB
49031 @if test -d $(HOST_SUBDIR)/zlib ; then \
49032 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
49033 mv prev-zlib stage1-zlib ; : ; \
0aed8855 49034 fi
d545f33b 49035@endif zlib
700d40ca
ILT
49036@if lto-plugin
49037 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
49038 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin ; \
49039 mv prev-lto-plugin stage1-lto-plugin ; : ; \
49040 fi
49041@endif lto-plugin
0aed8855 49042 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
49043 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
49044 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
0aed8855 49045 fi
80911fe1 49046 rm -f stage_current
72b2455a 49047
973601e1 49048# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 49049# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49050# reconfigured either.
d545f33b
PB
49051.PHONY: stageprofile-bubble
49052stageprofile-bubble:: stage1-bubble
e360f423
PB
49053 @r=`${PWD_COMMAND}`; export r; \
49054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49055 if test -f stageprofile-lean || test -f stage1-lean ; then \
d545f33b
PB
49056 echo Skipping rebuild of stageprofile ; \
49057 else \
f70224b5
PB
49058 $(MAKE) stageprofile-start; \
49059 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 49060 fi
72b2455a 49061
d545f33b
PB
49062.PHONY: all-stageprofile clean-stageprofile
49063do-clean: clean-stageprofile
0df3d27f 49064
72b2455a
PB
49065# FIXME: Will not need to be conditional when toplevel bootstrap is the
49066# only possibility, but now it conflicts with no-bootstrap rules
49067@if gcc-bootstrap
49068
49069
49070
49071
0df3d27f 49072# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49073distclean-stage1:: distclean-stageprofile
0df3d27f 49074.PHONY: distclean-stageprofile
72b2455a 49075distclean-stageprofile::
0aed8855 49076 @: $(MAKE); $(stage)
e00a73e3 49077 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 49078 rm -rf stageprofile-*
dfdffa2c
PB
49079
49080
72b2455a 49081@endif gcc-bootstrap
dfdffa2c
PB
49082
49083
72b2455a 49084.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 49085
72b2455a 49086stagefeedback-start::
0aed8855 49087 @: $(MAKE); $(stage); \
72b2455a 49088 echo stagefeedback > stage_current ; \
b00612cc 49089 echo stagefeedback > stage_last; \
0aed8855 49090 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49091@if bfd
b00612cc
PB
49092 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
49093 mkdir stagefeedback-bfd; \
80911fe1
PB
49094 mv stagefeedback-bfd bfd ; \
49095 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
49096@endif bfd
49097@if opcodes
b00612cc
PB
49098 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
49099 mkdir stagefeedback-opcodes; \
80911fe1
PB
49100 mv stagefeedback-opcodes opcodes ; \
49101 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
49102@endif opcodes
49103@if binutils
b00612cc
PB
49104 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
49105 mkdir stagefeedback-binutils; \
80911fe1
PB
49106 mv stagefeedback-binutils binutils ; \
49107 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 49108@endif binutils
201f096f 49109@if fixincludes
49110 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
49111 mkdir stagefeedback-fixincludes; \
49112 mv stagefeedback-fixincludes fixincludes ; \
49113 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
49114@endif fixincludes
72b2455a 49115@if gas
b00612cc
PB
49116 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
49117 mkdir stagefeedback-gas; \
80911fe1
PB
49118 mv stagefeedback-gas gas ; \
49119 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
49120@endif gas
49121@if gcc
b00612cc
PB
49122 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
49123 mkdir stagefeedback-gcc; \
80911fe1
PB
49124 mv stagefeedback-gcc gcc ; \
49125 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 49126@endif gcc
4b900473
PB
49127@if gmp
49128 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
49129 mkdir stagefeedback-gmp; \
49130 mv stagefeedback-gmp gmp ; \
49131 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
49132@endif gmp
49133@if mpfr
49134 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
49135 mkdir stagefeedback-mpfr; \
49136 mv stagefeedback-mpfr mpfr ; \
49137 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
49138@endif mpfr
e8a5fa9c
RW
49139@if mpc
49140 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
49141 mkdir stagefeedback-mpc; \
49142 mv stagefeedback-mpc mpc ; \
49143 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
49144@endif mpc
7ec59b9e
L
49145@if isl
49146 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
49147 mkdir stagefeedback-isl; \
49148 mv stagefeedback-isl isl ; \
49149 mv stageprofile-isl prev-isl || test -f stageprofile-lean
49150@endif isl
1f53ca9a
AO
49151@if libelf
49152 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
49153 mkdir stagefeedback-libelf; \
49154 mv stagefeedback-libelf libelf ; \
49155 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
49156@endif libelf
93f9b408
ILT
49157@if gold
49158 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
49159 mkdir stagefeedback-gold; \
49160 mv stagefeedback-gold gold ; \
49161 mv stageprofile-gold prev-gold || test -f stageprofile-lean
49162@endif gold
72b2455a 49163@if intl
b00612cc
PB
49164 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
49165 mkdir stagefeedback-intl; \
80911fe1
PB
49166 mv stagefeedback-intl intl ; \
49167 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
49168@endif intl
49169@if ld
b00612cc
PB
49170 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
49171 mkdir stagefeedback-ld; \
80911fe1
PB
49172 mv stagefeedback-ld ld ; \
49173 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 49174@endif ld
2bf680c4
ILT
49175@if libbacktrace
49176 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
49177 mkdir stagefeedback-libbacktrace; \
49178 mv stagefeedback-libbacktrace libbacktrace ; \
49179 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
49180@endif libbacktrace
72b2455a 49181@if libcpp
b00612cc
PB
49182 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
49183 mkdir stagefeedback-libcpp; \
80911fe1
PB
49184 mv stagefeedback-libcpp libcpp ; \
49185 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 49186@endif libcpp
be01d343
PB
49187@if libdecnumber
49188 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
49189 mkdir stagefeedback-libdecnumber; \
80911fe1
PB
49190 mv stagefeedback-libdecnumber libdecnumber ; \
49191 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 49192@endif libdecnumber
72b2455a 49193@if libiberty
b00612cc
PB
49194 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
49195 mkdir stagefeedback-libiberty; \
80911fe1
PB
49196 mv stagefeedback-libiberty libiberty ; \
49197 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 49198@endif libiberty
1b6c0831
L
49199@if libiberty-linker-plugin
49200 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
49201 mkdir stagefeedback-libiberty-linker-plugin; \
49202 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin ; \
49203 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
49204@endif libiberty-linker-plugin
72b2455a 49205@if zlib
b00612cc
PB
49206 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
49207 mkdir stagefeedback-zlib; \
80911fe1
PB
49208 mv stagefeedback-zlib zlib ; \
49209 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 49210@endif zlib
700d40ca
ILT
49211@if lto-plugin
49212 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
49213 mkdir stagefeedback-lto-plugin; \
49214 mv stagefeedback-lto-plugin lto-plugin ; \
49215 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
49216@endif lto-plugin
0aed8855
PB
49217 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
49218 mkdir stagefeedback-$(TARGET_SUBDIR); \
80911fe1
PB
49219 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
49220 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 49221
80911fe1 49222stagefeedback-end::
72b2455a 49223@if bfd
80911fe1
PB
49224 @if test -d $(HOST_SUBDIR)/bfd ; then \
49225 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
49226 mv prev-bfd stageprofile-bfd ; : ; \
0aed8855 49227 fi
72b2455a
PB
49228@endif bfd
49229@if opcodes
80911fe1
PB
49230 @if test -d $(HOST_SUBDIR)/opcodes ; then \
49231 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
49232 mv prev-opcodes stageprofile-opcodes ; : ; \
0aed8855 49233 fi
72b2455a
PB
49234@endif opcodes
49235@if binutils
80911fe1
PB
49236 @if test -d $(HOST_SUBDIR)/binutils ; then \
49237 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
49238 mv prev-binutils stageprofile-binutils ; : ; \
0aed8855 49239 fi
72b2455a 49240@endif binutils
201f096f 49241@if fixincludes
49242 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
49243 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes ; \
49244 mv prev-fixincludes stageprofile-fixincludes ; : ; \
49245 fi
49246@endif fixincludes
72b2455a 49247@if gas
80911fe1
PB
49248 @if test -d $(HOST_SUBDIR)/gas ; then \
49249 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
49250 mv prev-gas stageprofile-gas ; : ; \
0aed8855 49251 fi
72b2455a
PB
49252@endif gas
49253@if gcc
80911fe1
PB
49254 @if test -d $(HOST_SUBDIR)/gcc ; then \
49255 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
49256 mv prev-gcc stageprofile-gcc ; : ; \
0aed8855 49257 fi
72b2455a 49258@endif gcc
4b900473
PB
49259@if gmp
49260 @if test -d $(HOST_SUBDIR)/gmp ; then \
49261 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp ; \
49262 mv prev-gmp stageprofile-gmp ; : ; \
49263 fi
49264@endif gmp
49265@if mpfr
49266 @if test -d $(HOST_SUBDIR)/mpfr ; then \
49267 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr ; \
49268 mv prev-mpfr stageprofile-mpfr ; : ; \
49269 fi
49270@endif mpfr
e8a5fa9c
RW
49271@if mpc
49272 @if test -d $(HOST_SUBDIR)/mpc ; then \
49273 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc ; \
49274 mv prev-mpc stageprofile-mpc ; : ; \
49275 fi
49276@endif mpc
7ec59b9e
L
49277@if isl
49278 @if test -d $(HOST_SUBDIR)/isl ; then \
49279 cd $(HOST_SUBDIR); mv isl stagefeedback-isl ; \
49280 mv prev-isl stageprofile-isl ; : ; \
e28c595f 49281 fi
7ec59b9e 49282@endif isl
1f53ca9a
AO
49283@if libelf
49284 @if test -d $(HOST_SUBDIR)/libelf ; then \
49285 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf ; \
49286 mv prev-libelf stageprofile-libelf ; : ; \
49287 fi
49288@endif libelf
93f9b408
ILT
49289@if gold
49290 @if test -d $(HOST_SUBDIR)/gold ; then \
49291 cd $(HOST_SUBDIR); mv gold stagefeedback-gold ; \
49292 mv prev-gold stageprofile-gold ; : ; \
49293 fi
49294@endif gold
72b2455a 49295@if intl
80911fe1
PB
49296 @if test -d $(HOST_SUBDIR)/intl ; then \
49297 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
49298 mv prev-intl stageprofile-intl ; : ; \
0aed8855 49299 fi
72b2455a
PB
49300@endif intl
49301@if ld
80911fe1
PB
49302 @if test -d $(HOST_SUBDIR)/ld ; then \
49303 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
49304 mv prev-ld stageprofile-ld ; : ; \
0aed8855 49305 fi
72b2455a 49306@endif ld
2bf680c4
ILT
49307@if libbacktrace
49308 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
49309 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace ; \
49310 mv prev-libbacktrace stageprofile-libbacktrace ; : ; \
49311 fi
49312@endif libbacktrace
72b2455a 49313@if libcpp
80911fe1
PB
49314 @if test -d $(HOST_SUBDIR)/libcpp ; then \
49315 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
49316 mv prev-libcpp stageprofile-libcpp ; : ; \
0aed8855 49317 fi
72b2455a 49318@endif libcpp
be01d343 49319@if libdecnumber
80911fe1
PB
49320 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
49321 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
49322 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
0aed8855 49323 fi
be01d343 49324@endif libdecnumber
72b2455a 49325@if libiberty
80911fe1
PB
49326 @if test -d $(HOST_SUBDIR)/libiberty ; then \
49327 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
49328 mv prev-libiberty stageprofile-libiberty ; : ; \
0aed8855 49329 fi
72b2455a 49330@endif libiberty
1b6c0831
L
49331@if libiberty-linker-plugin
49332 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
49333 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin ; \
49334 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin ; : ; \
49335 fi
49336@endif libiberty-linker-plugin
72b2455a 49337@if zlib
80911fe1
PB
49338 @if test -d $(HOST_SUBDIR)/zlib ; then \
49339 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
49340 mv prev-zlib stageprofile-zlib ; : ; \
0aed8855 49341 fi
72b2455a 49342@endif zlib
700d40ca
ILT
49343@if lto-plugin
49344 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
49345 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin ; \
49346 mv prev-lto-plugin stageprofile-lto-plugin ; : ; \
49347 fi
49348@endif lto-plugin
0aed8855 49349 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
49350 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
49351 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
0aed8855 49352 fi
80911fe1 49353 rm -f stage_current
dfdffa2c 49354
973601e1 49355# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 49356# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49357# reconfigured either.
72b2455a 49358.PHONY: stagefeedback-bubble
7d329e61 49359stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
49360 @r=`${PWD_COMMAND}`; export r; \
49361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49362 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
9cb3fa6f
PB
49363 echo Skipping rebuild of stagefeedback ; \
49364 else \
f70224b5
PB
49365 $(MAKE) stagefeedback-start; \
49366 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 49367 fi
72b2455a 49368
0df3d27f 49369.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 49370do-clean: clean-stagefeedback
0df3d27f 49371
72b2455a
PB
49372# FIXME: Will not need to be conditional when toplevel bootstrap is the
49373# only possibility, but now it conflicts with no-bootstrap rules
49374@if gcc-bootstrap
656fdd47
PB
49375
49376
49377
80911fe1 49378.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
49379profiledbootstrap:
49380 echo stagefeedback > stage_final
49381 @r=`${PWD_COMMAND}`; export r; \
49382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49383 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 49384 @: $(MAKE); $(unstage)
be01d343
PB
49385 @r=`${PWD_COMMAND}`; export r; \
49386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49387 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 49388 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 49389
80911fe1
PB
49390profiledbootstrap-lean:
49391 echo stagefeedback > stage_final
49392 @r=`${PWD_COMMAND}`; export r; \
49393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49394 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
49395 @: $(MAKE); $(unstage)
49396 @r=`${PWD_COMMAND}`; export r; \
49397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49398 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
49399 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49400
656fdd47 49401
0df3d27f 49402# Rules to wipe a stage and all the following ones, also used for cleanstrap
7d329e61 49403distclean-stageprofile:: distclean-stagefeedback
0df3d27f 49404.PHONY: distclean-stagefeedback
656fdd47 49405distclean-stagefeedback::
0aed8855 49406 @: $(MAKE); $(stage)
e00a73e3 49407 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 49408 rm -rf stagefeedback-*
656fdd47
PB
49409
49410
72b2455a 49411@endif gcc-bootstrap
656fdd47
PB
49412
49413
49414
7d329e61
PB
49415stageprofile-end::
49416 $(MAKE) distclean-stagefeedback
656fdd47 49417
7d329e61 49418stagefeedback-start::
656fdd47
PB
49419 @r=`${PWD_COMMAND}`; export r; \
49420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61
PB
49421 for i in prev-*; do \
49422 j=`echo $$i | sed s/^prev-//` ; \
49423 cd $$r/$$i && \
49424 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
49425 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
49426 done
b8908782 49427
0df3d27f 49428@if gcc-bootstrap
0df3d27f 49429do-distclean: distclean-stage1
c52c6897
PB
49430
49431# Provide a GCC build when we're building target libraries. This does
49432# not work as a dependency, just as the minimum necessary to avoid errors.
49433stage_last:
314b2e66
AS
49434 @r=`${PWD_COMMAND}`; export r; \
49435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 49436 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 49437
4f0ef2d8
CD
49438# Same as unstage, but not phony and defaulting to stage1-start. We place
49439# it in the dependency so that for example `make -j3 all-gcc' works.
49440stage_current:
49441 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
49442
c52c6897 49443.PHONY: restrap
266df637 49444restrap::
c52c6897 49445 @: $(MAKE); $(stage)
1b05fbbd 49446 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 49447restrap:: all
c380fdd8 49448@endif gcc-bootstrap
c52c6897 49449
ae831be5
NN
49450# --------------------------------------
49451# Dependencies between different modules
49452# --------------------------------------
252b5132 49453
9e6ce191 49454# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 49455@if gcc-bootstrap
e8a5fa9c
RW
49456configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
49457configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
49458configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
49459configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
49460configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
49461configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
49462configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
49463configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
49464configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
49465configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
49466configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
49467configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
49468configure-stage1-target-libmpx: maybe-all-stage1-gcc
49469configure-stage2-target-libmpx: maybe-all-stage2-gcc
49470configure-stage3-target-libmpx: maybe-all-stage3-gcc
49471configure-stage4-target-libmpx: maybe-all-stage4-gcc
49472configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
49473configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
49474configure-stage1-target-libvtv: maybe-all-stage1-gcc
49475configure-stage2-target-libvtv: maybe-all-stage2-gcc
49476configure-stage3-target-libvtv: maybe-all-stage3-gcc
49477configure-stage4-target-libvtv: maybe-all-stage4-gcc
49478configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
49479configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
522e3d71 49480configure-target-libcilkrts: stage_last
1b6c0831 49481configure-target-liboffloadmic: stage_last
c52c6897 49482configure-target-libssp: stage_last
c52c6897 49483configure-target-newlib: stage_last
6aa8ef82
DJ
49484configure-stage1-target-libgcc: maybe-all-stage1-gcc
49485configure-stage2-target-libgcc: maybe-all-stage2-gcc
49486configure-stage3-target-libgcc: maybe-all-stage3-gcc
49487configure-stage4-target-libgcc: maybe-all-stage4-gcc
49488configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
49489configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 49490configure-target-libbacktrace: stage_last
e552509b 49491configure-target-libquadmath: stage_last
c52c6897
PB
49492configure-target-libgfortran: stage_last
49493configure-target-libobjc: stage_last
e552509b 49494configure-target-libgo: stage_last
c52c6897
PB
49495configure-target-libtermcap: stage_last
49496configure-target-winsup: stage_last
49497configure-target-libgloss: stage_last
c52c6897
PB
49498configure-target-libffi: stage_last
49499configure-target-libjava: stage_last
49500configure-target-zlib: stage_last
49501configure-target-boehm-gc: stage_last
c52c6897
PB
49502configure-target-rda: stage_last
49503configure-target-libada: stage_last
911e63d0
JR
49504configure-stage1-target-libgomp: maybe-all-stage1-gcc
49505configure-stage2-target-libgomp: maybe-all-stage2-gcc
49506configure-stage3-target-libgomp: maybe-all-stage3-gcc
49507configure-stage4-target-libgomp: maybe-all-stage4-gcc
49508configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
49509configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
49510configure-target-libitm: stage_last
49511configure-target-libatomic: stage_last
c52c6897 49512@endif gcc-bootstrap
9e6ce191 49513
c52c6897 49514@if gcc-no-bootstrap
9e6ce191 49515configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 49516configure-target-libsanitizer: maybe-all-gcc
1b6c0831 49517configure-target-libmpx: maybe-all-gcc
95e43135 49518configure-target-libvtv: maybe-all-gcc
e78e02e6 49519configure-target-libcilkrts: maybe-all-gcc
1b6c0831 49520configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 49521configure-target-libssp: maybe-all-gcc
9e6ce191 49522configure-target-newlib: maybe-all-gcc
6aa8ef82 49523configure-target-libgcc: maybe-all-gcc
2bf680c4 49524configure-target-libbacktrace: maybe-all-gcc
e552509b 49525configure-target-libquadmath: maybe-all-gcc
9e6ce191 49526configure-target-libgfortran: maybe-all-gcc
9e6ce191 49527configure-target-libobjc: maybe-all-gcc
e552509b 49528configure-target-libgo: maybe-all-gcc
9e6ce191 49529configure-target-libtermcap: maybe-all-gcc
9e6ce191 49530configure-target-winsup: maybe-all-gcc
9e6ce191 49531configure-target-libgloss: maybe-all-gcc
9e6ce191 49532configure-target-libffi: maybe-all-gcc
9e6ce191 49533configure-target-libjava: maybe-all-gcc
9e6ce191 49534configure-target-zlib: maybe-all-gcc
9e6ce191 49535configure-target-boehm-gc: maybe-all-gcc
9e6ce191 49536configure-target-rda: maybe-all-gcc
9e6ce191 49537configure-target-libada: maybe-all-gcc
b3ded179 49538configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
49539configure-target-libitm: maybe-all-gcc
49540configure-target-libatomic: maybe-all-gcc
c52c6897 49541@endif gcc-no-bootstrap
b3ded179 49542
9e6ce191 49543
ae831be5
NN
49544# There are two types of dependencies here: 'hard' dependencies, where one
49545# module simply won't build without the other; and 'soft' dependencies, where
49546# if the depended-on module is missing, the depending module will do without
49547# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 49548# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
49549# it's safer to use a soft dependency.
49550
9e6ce191
PB
49551
49552
49553
49554
c60fe18b 49555
9e6ce191
PB
49556# With all the machinery above in place, it is pretty easy to generate
49557# dependencies. Host dependencies are a bit more complex because we have
49558# to check for bootstrap/prebootstrap dependencies. To resolve
49559# prebootstrap dependencies, prebootstrap modules are gathered in
49560# a hash table.
6a9cf61e
PB
49561all-build-bison: maybe-all-build-texinfo
49562all-build-flex: maybe-all-build-texinfo
9e6ce191 49563all-build-flex: maybe-all-build-bison
9e6ce191 49564all-build-flex: maybe-all-build-m4
6a9cf61e 49565all-build-libiberty: maybe-all-build-texinfo
9e6ce191 49566all-build-m4: maybe-all-build-texinfo
ee025550 49567all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 49568all-build-libcpp: maybe-all-build-libiberty
9e6ce191
PB
49569configure-gcc: maybe-configure-intl
49570
49571configure-stage1-gcc: maybe-configure-stage1-intl
49572configure-stage2-gcc: maybe-configure-stage2-intl
49573configure-stage3-gcc: maybe-configure-stage3-intl
49574configure-stage4-gcc: maybe-configure-stage4-intl
49575configure-stageprofile-gcc: maybe-configure-stageprofile-intl
49576configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8
L
49577configure-gcc: maybe-all-gmp
49578
49579configure-stage1-gcc: maybe-all-stage1-gmp
49580configure-stage2-gcc: maybe-all-stage2-gmp
49581configure-stage3-gcc: maybe-all-stage3-gmp
49582configure-stage4-gcc: maybe-all-stage4-gmp
49583configure-stageprofile-gcc: maybe-all-stageprofile-gmp
49584configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831
L
49585configure-gcc: maybe-all-mpfr
49586
49587configure-stage1-gcc: maybe-all-stage1-mpfr
49588configure-stage2-gcc: maybe-all-stage2-mpfr
49589configure-stage3-gcc: maybe-all-stage3-mpfr
49590configure-stage4-gcc: maybe-all-stage4-mpfr
49591configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
49592configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
49593configure-gcc: maybe-all-mpc
49594
49595configure-stage1-gcc: maybe-all-stage1-mpc
49596configure-stage2-gcc: maybe-all-stage2-mpc
49597configure-stage3-gcc: maybe-all-stage3-mpc
49598configure-stage4-gcc: maybe-all-stage4-mpc
49599configure-stageprofile-gcc: maybe-all-stageprofile-mpc
49600configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
49601configure-gcc: maybe-all-isl
49602
49603configure-stage1-gcc: maybe-all-stage1-isl
49604configure-stage2-gcc: maybe-all-stage2-isl
49605configure-stage3-gcc: maybe-all-stage3-isl
49606configure-stage4-gcc: maybe-all-stage4-isl
49607configure-stageprofile-gcc: maybe-all-stageprofile-isl
49608configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a
RW
49609configure-gcc: maybe-all-lto-plugin
49610
49611configure-stage1-gcc: maybe-all-stage1-lto-plugin
49612configure-stage2-gcc: maybe-all-stage2-lto-plugin
49613configure-stage3-gcc: maybe-all-stage3-lto-plugin
49614configure-stage4-gcc: maybe-all-stage4-lto-plugin
49615configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
49616configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b
PB
49617configure-gcc: maybe-all-binutils
49618
49619configure-stage1-gcc: maybe-all-stage1-binutils
49620configure-stage2-gcc: maybe-all-stage2-binutils
49621configure-stage3-gcc: maybe-all-stage3-binutils
49622configure-stage4-gcc: maybe-all-stage4-binutils
49623configure-stageprofile-gcc: maybe-all-stageprofile-binutils
49624configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
49625configure-gcc: maybe-all-gas
49626
49627configure-stage1-gcc: maybe-all-stage1-gas
49628configure-stage2-gcc: maybe-all-stage2-gas
49629configure-stage3-gcc: maybe-all-stage3-gas
49630configure-stage4-gcc: maybe-all-stage4-gas
49631configure-stageprofile-gcc: maybe-all-stageprofile-gas
49632configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
49633configure-gcc: maybe-all-ld
49634
49635configure-stage1-gcc: maybe-all-stage1-ld
49636configure-stage2-gcc: maybe-all-stage2-ld
49637configure-stage3-gcc: maybe-all-stage3-ld
49638configure-stage4-gcc: maybe-all-stage4-ld
49639configure-stageprofile-gcc: maybe-all-stageprofile-ld
49640configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408
ILT
49641configure-gcc: maybe-all-gold
49642
49643configure-stage1-gcc: maybe-all-stage1-gold
49644configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 49645configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
49646configure-stage4-gcc: maybe-all-stage4-gold
49647configure-stageprofile-gcc: maybe-all-stageprofile-gold
49648configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480
AO
49649configure-gcc: maybe-all-libelf
49650
49651configure-stage1-gcc: maybe-all-stage1-libelf
49652configure-stage2-gcc: maybe-all-stage2-libelf
49653configure-stage3-gcc: maybe-all-stage3-libelf
49654configure-stage4-gcc: maybe-all-stage4-libelf
49655configure-stageprofile-gcc: maybe-all-stageprofile-libelf
49656configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
9e6ce191
PB
49657all-gcc: all-libiberty
49658
49659all-stage1-gcc: all-stage1-libiberty
49660all-stage2-gcc: all-stage2-libiberty
49661all-stage3-gcc: all-stage3-libiberty
49662all-stage4-gcc: all-stage4-libiberty
49663all-stageprofile-gcc: all-stageprofile-libiberty
49664all-stagefeedback-gcc: all-stagefeedback-libiberty
49665all-gcc: maybe-all-intl
49666
49667all-stage1-gcc: maybe-all-stage1-intl
49668all-stage2-gcc: maybe-all-stage2-intl
49669all-stage3-gcc: maybe-all-stage3-intl
49670all-stage4-gcc: maybe-all-stage4-intl
49671all-stageprofile-gcc: maybe-all-stageprofile-intl
49672all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473
PB
49673all-gcc: maybe-all-mpfr
49674
49675all-stage1-gcc: maybe-all-stage1-mpfr
49676all-stage2-gcc: maybe-all-stage2-mpfr
49677all-stage3-gcc: maybe-all-stage3-mpfr
49678all-stage4-gcc: maybe-all-stage4-mpfr
49679all-stageprofile-gcc: maybe-all-stageprofile-mpfr
49680all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c
RW
49681all-gcc: maybe-all-mpc
49682
49683all-stage1-gcc: maybe-all-stage1-mpc
49684all-stage2-gcc: maybe-all-stage2-mpc
49685all-stage3-gcc: maybe-all-stage3-mpc
49686all-stage4-gcc: maybe-all-stage4-mpc
49687all-stageprofile-gcc: maybe-all-stageprofile-mpc
49688all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831
L
49689all-gcc: maybe-all-isl
49690
49691all-stage1-gcc: maybe-all-stage1-isl
49692all-stage2-gcc: maybe-all-stage2-isl
49693all-stage3-gcc: maybe-all-stage3-isl
49694all-stage4-gcc: maybe-all-stage4-isl
49695all-stageprofile-gcc: maybe-all-stageprofile-isl
49696all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a
PB
49697all-gcc: maybe-all-build-texinfo
49698
49699all-stage1-gcc: maybe-all-build-texinfo
49700all-stage2-gcc: maybe-all-build-texinfo
49701all-stage3-gcc: maybe-all-build-texinfo
49702all-stage4-gcc: maybe-all-build-texinfo
49703all-stageprofile-gcc: maybe-all-build-texinfo
49704all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a
PB
49705all-gcc: maybe-all-build-bison
49706
49707all-stage1-gcc: maybe-all-build-bison
49708all-stage2-gcc: maybe-all-build-bison
49709all-stage3-gcc: maybe-all-build-bison
49710all-stage4-gcc: maybe-all-build-bison
49711all-stageprofile-gcc: maybe-all-build-bison
49712all-stagefeedback-gcc: maybe-all-build-bison
72b2455a
PB
49713all-gcc: maybe-all-build-flex
49714
49715all-stage1-gcc: maybe-all-build-flex
49716all-stage2-gcc: maybe-all-build-flex
49717all-stage3-gcc: maybe-all-build-flex
49718all-stage4-gcc: maybe-all-build-flex
49719all-stageprofile-gcc: maybe-all-build-flex
49720all-stagefeedback-gcc: maybe-all-build-flex
ee025550
PB
49721all-gcc: maybe-all-build-libiberty
49722
49723all-stage1-gcc: maybe-all-build-libiberty
49724all-stage2-gcc: maybe-all-build-libiberty
49725all-stage3-gcc: maybe-all-build-libiberty
49726all-stage4-gcc: maybe-all-build-libiberty
49727all-stageprofile-gcc: maybe-all-build-libiberty
49728all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550
PB
49729all-gcc: maybe-all-build-fixincludes
49730
49731all-stage1-gcc: maybe-all-build-fixincludes
49732all-stage2-gcc: maybe-all-build-fixincludes
49733all-stage3-gcc: maybe-all-build-fixincludes
49734all-stage4-gcc: maybe-all-build-fixincludes
49735all-stageprofile-gcc: maybe-all-build-fixincludes
49736all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831
L
49737all-gcc: maybe-all-build-libcpp
49738
49739all-stage1-gcc: maybe-all-build-libcpp
49740all-stage2-gcc: maybe-all-build-libcpp
49741all-stage3-gcc: maybe-all-build-libcpp
49742all-stage4-gcc: maybe-all-build-libcpp
49743all-stageprofile-gcc: maybe-all-build-libcpp
49744all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191
PB
49745all-gcc: maybe-all-zlib
49746
49747all-stage1-gcc: maybe-all-stage1-zlib
49748all-stage2-gcc: maybe-all-stage2-zlib
49749all-stage3-gcc: maybe-all-stage3-zlib
49750all-stage4-gcc: maybe-all-stage4-zlib
49751all-stageprofile-gcc: maybe-all-stageprofile-zlib
49752all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b
L
49753all-gcc: all-libbacktrace
49754
49755all-stage1-gcc: all-stage1-libbacktrace
49756all-stage2-gcc: all-stage2-libbacktrace
49757all-stage3-gcc: all-stage3-libbacktrace
49758all-stage4-gcc: all-stage4-libbacktrace
49759all-stageprofile-gcc: all-stageprofile-libbacktrace
49760all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191
PB
49761all-gcc: all-libcpp
49762
49763all-stage1-gcc: all-stage1-libcpp
49764all-stage2-gcc: all-stage2-libcpp
49765all-stage3-gcc: all-stage3-libcpp
49766all-stage4-gcc: all-stage4-libcpp
49767all-stageprofile-gcc: all-stageprofile-libcpp
49768all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343
PB
49769all-gcc: all-libdecnumber
49770
49771all-stage1-gcc: all-stage1-libdecnumber
49772all-stage2-gcc: all-stage2-libdecnumber
49773all-stage3-gcc: all-stage3-libdecnumber
49774all-stage4-gcc: all-stage4-libdecnumber
49775all-stageprofile-gcc: all-stageprofile-libdecnumber
49776all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c
GK
49777all-gcc: maybe-all-libiberty
49778
49779all-stage1-gcc: maybe-all-stage1-libiberty
49780all-stage2-gcc: maybe-all-stage2-libiberty
49781all-stage3-gcc: maybe-all-stage3-libiberty
49782all-stage4-gcc: maybe-all-stage4-libiberty
49783all-stageprofile-gcc: maybe-all-stageprofile-libiberty
49784all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
49785all-gcc: maybe-all-fixincludes
201f096f 49786
49787all-stage1-gcc: maybe-all-stage1-fixincludes
49788all-stage2-gcc: maybe-all-stage2-fixincludes
49789all-stage3-gcc: maybe-all-stage3-fixincludes
49790all-stage4-gcc: maybe-all-stage4-fixincludes
49791all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
49792all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a
RW
49793all-gcc: maybe-all-lto-plugin
49794
49795all-stage1-gcc: maybe-all-stage1-lto-plugin
49796all-stage2-gcc: maybe-all-stage2-lto-plugin
49797all-stage3-gcc: maybe-all-stage3-lto-plugin
49798all-stage4-gcc: maybe-all-stage4-lto-plugin
49799all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
49800all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
57eefe4d
RW
49801info-gcc: maybe-all-build-libiberty
49802
49803info-stage1-gcc: maybe-all-build-libiberty
49804info-stage2-gcc: maybe-all-build-libiberty
49805info-stage3-gcc: maybe-all-build-libiberty
49806info-stage4-gcc: maybe-all-build-libiberty
49807info-stageprofile-gcc: maybe-all-build-libiberty
49808info-stagefeedback-gcc: maybe-all-build-libiberty
49809dvi-gcc: maybe-all-build-libiberty
49810
49811dvi-stage1-gcc: maybe-all-build-libiberty
49812dvi-stage2-gcc: maybe-all-build-libiberty
49813dvi-stage3-gcc: maybe-all-build-libiberty
49814dvi-stage4-gcc: maybe-all-build-libiberty
49815dvi-stageprofile-gcc: maybe-all-build-libiberty
49816dvi-stagefeedback-gcc: maybe-all-build-libiberty
49817pdf-gcc: maybe-all-build-libiberty
49818
49819pdf-stage1-gcc: maybe-all-build-libiberty
49820pdf-stage2-gcc: maybe-all-build-libiberty
49821pdf-stage3-gcc: maybe-all-build-libiberty
49822pdf-stage4-gcc: maybe-all-build-libiberty
49823pdf-stageprofile-gcc: maybe-all-build-libiberty
49824pdf-stagefeedback-gcc: maybe-all-build-libiberty
49825html-gcc: maybe-all-build-libiberty
49826
49827html-stage1-gcc: maybe-all-build-libiberty
49828html-stage2-gcc: maybe-all-build-libiberty
49829html-stage3-gcc: maybe-all-build-libiberty
49830html-stage4-gcc: maybe-all-build-libiberty
49831html-stageprofile-gcc: maybe-all-build-libiberty
49832html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 49833install-gcc: maybe-install-fixincludes
8d8eef9a 49834install-gcc: maybe-install-lto-plugin
9b980aa1 49835install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 49836install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191
PB
49837configure-libcpp: configure-libiberty
49838
49839configure-stage1-libcpp: configure-stage1-libiberty
49840configure-stage2-libcpp: configure-stage2-libiberty
49841configure-stage3-libcpp: configure-stage3-libiberty
49842configure-stage4-libcpp: configure-stage4-libiberty
49843configure-stageprofile-libcpp: configure-stageprofile-libiberty
49844configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
49845configure-libcpp: maybe-configure-intl
49846
49847configure-stage1-libcpp: maybe-configure-stage1-intl
49848configure-stage2-libcpp: maybe-configure-stage2-intl
49849configure-stage3-libcpp: maybe-configure-stage3-intl
49850configure-stage4-libcpp: maybe-configure-stage4-intl
49851configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
49852configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
49853all-libcpp: all-libiberty
49854
49855all-stage1-libcpp: all-stage1-libiberty
49856all-stage2-libcpp: all-stage2-libiberty
49857all-stage3-libcpp: all-stage3-libiberty
49858all-stage4-libcpp: all-stage4-libiberty
49859all-stageprofile-libcpp: all-stageprofile-libiberty
49860all-stagefeedback-libcpp: all-stagefeedback-libiberty
49861all-libcpp: maybe-all-intl
49862
49863all-stage1-libcpp: maybe-all-stage1-intl
49864all-stage2-libcpp: maybe-all-stage2-intl
49865all-stage3-libcpp: maybe-all-stage3-intl
49866all-stage4-libcpp: maybe-all-stage4-intl
49867all-stageprofile-libcpp: maybe-all-stageprofile-intl
49868all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
d3ed111c 49869all-fixincludes: maybe-all-libiberty
201f096f 49870
49871all-stage1-fixincludes: maybe-all-stage1-libiberty
49872all-stage2-fixincludes: maybe-all-stage2-libiberty
49873all-stage3-fixincludes: maybe-all-stage3-libiberty
49874all-stage4-fixincludes: maybe-all-stage4-libiberty
49875all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
49876all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 49877all-gnattools: maybe-all-target-libada
50f80006 49878all-gnattools: maybe-all-target-libstdc++-v3
8d8eef9a
RW
49879all-lto-plugin: maybe-all-libiberty
49880
49881all-stage1-lto-plugin: maybe-all-stage1-libiberty
49882all-stage2-lto-plugin: maybe-all-stage2-libiberty
49883all-stage3-lto-plugin: maybe-all-stage3-libiberty
49884all-stage4-lto-plugin: maybe-all-stage4-libiberty
49885all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
49886all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831
L
49887all-lto-plugin: maybe-all-libiberty-linker-plugin
49888
49889all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
49890all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
49891all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
49892all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
49893all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
49894all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
49895configure-libcc1: maybe-configure-gcc
49896all-libcc1: maybe-all-gcc
49897all-gotools: maybe-all-target-libgo
28d9b232 49898all-utils: maybe-all-libiberty
4b900473
PB
49899configure-mpfr: maybe-all-gmp
49900
49901configure-stage1-mpfr: maybe-all-stage1-gmp
49902configure-stage2-mpfr: maybe-all-stage2-gmp
49903configure-stage3-mpfr: maybe-all-stage3-gmp
49904configure-stage4-mpfr: maybe-all-stage4-gmp
49905configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
49906configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c
RW
49907configure-mpc: maybe-all-mpfr
49908
49909configure-stage1-mpc: maybe-all-stage1-mpfr
49910configure-stage2-mpc: maybe-all-stage2-mpfr
49911configure-stage3-mpc: maybe-all-stage3-mpfr
49912configure-stage4-mpc: maybe-all-stage4-mpfr
49913configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
49914configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e
L
49915configure-isl: maybe-all-gmp
49916
49917configure-stage1-isl: maybe-all-stage1-gmp
49918configure-stage2-isl: maybe-all-stage2-gmp
49919configure-stage3-isl: maybe-all-stage3-gmp
49920configure-stage4-isl: maybe-all-stage4-gmp
49921configure-stageprofile-isl: maybe-all-stageprofile-gmp
49922configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
7b3200f9 49923configure-gdb: maybe-all-intl
9e6ce191 49924configure-gdb: maybe-configure-sim
31d99776 49925configure-gdb: maybe-all-bfd
dc448a7b 49926configure-gdb: maybe-all-libiconv
9e6ce191 49927all-gdb: maybe-all-libiberty
dc448a7b 49928all-gdb: maybe-all-libiconv
9e6ce191 49929all-gdb: maybe-all-opcodes
9e6ce191 49930all-gdb: maybe-all-readline
72b2455a 49931all-gdb: maybe-all-build-bison
9e6ce191 49932all-gdb: maybe-all-sim
5074315a 49933all-gdb: maybe-all-libdecnumber
dbbe5f95 49934all-gdb: maybe-all-libtermcap
9e6ce191
PB
49935configure-libgui: maybe-configure-tcl
49936configure-libgui: maybe-configure-tk
49937all-libgui: maybe-all-tcl
49938all-libgui: maybe-all-tk
49939all-libgui: maybe-all-itcl
b4a77b47 49940configure-bfd: configure-libiberty
9e6ce191
PB
49941
49942configure-stage1-bfd: configure-stage1-libiberty
49943configure-stage2-bfd: configure-stage2-libiberty
49944configure-stage3-bfd: configure-stage3-libiberty
49945configure-stage4-bfd: configure-stage4-libiberty
49946configure-stageprofile-bfd: configure-stageprofile-libiberty
49947configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23
DJ
49948configure-bfd: maybe-configure-intl
49949
49950configure-stage1-bfd: maybe-configure-stage1-intl
49951configure-stage2-bfd: maybe-configure-stage2-intl
49952configure-stage3-bfd: maybe-configure-stage3-intl
49953configure-stage4-bfd: maybe-configure-stage4-intl
49954configure-stageprofile-bfd: maybe-configure-stageprofile-intl
49955configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191
PB
49956all-bfd: maybe-all-libiberty
49957
49958all-stage1-bfd: maybe-all-stage1-libiberty
49959all-stage2-bfd: maybe-all-stage2-libiberty
49960all-stage3-bfd: maybe-all-stage3-libiberty
49961all-stage4-bfd: maybe-all-stage4-libiberty
49962all-stageprofile-bfd: maybe-all-stageprofile-libiberty
49963all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
49964all-bfd: maybe-all-intl
49965
49966all-stage1-bfd: maybe-all-stage1-intl
49967all-stage2-bfd: maybe-all-stage2-intl
49968all-stage3-bfd: maybe-all-stage3-intl
49969all-stage4-bfd: maybe-all-stage4-intl
49970all-stageprofile-bfd: maybe-all-stageprofile-intl
49971all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea
L
49972all-bfd: maybe-all-zlib
49973
49974all-stage1-bfd: maybe-all-stage1-zlib
49975all-stage2-bfd: maybe-all-stage2-zlib
49976all-stage3-bfd: maybe-all-stage3-zlib
49977all-stage4-bfd: maybe-all-stage4-zlib
49978all-stageprofile-bfd: maybe-all-stageprofile-zlib
49979all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67
AM
49980configure-opcodes: configure-libiberty
49981
49982configure-stage1-opcodes: configure-stage1-libiberty
49983configure-stage2-opcodes: configure-stage2-libiberty
66775d67 49984configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
49985configure-stage4-opcodes: configure-stage4-libiberty
49986configure-stageprofile-opcodes: configure-stageprofile-libiberty
49987configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
49988all-opcodes: maybe-all-libiberty
49989
49990all-stage1-opcodes: maybe-all-stage1-libiberty
49991all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 49992all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
49993all-stage4-opcodes: maybe-all-stage4-libiberty
49994all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
49995all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23
DJ
49996configure-binutils: maybe-configure-intl
49997
49998configure-stage1-binutils: maybe-configure-stage1-intl
49999configure-stage2-binutils: maybe-configure-stage2-intl
50000configure-stage3-binutils: maybe-configure-stage3-intl
50001configure-stage4-binutils: maybe-configure-stage4-intl
50002configure-stageprofile-binutils: maybe-configure-stageprofile-intl
50003configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191
PB
50004all-binutils: maybe-all-libiberty
50005
50006all-stage1-binutils: maybe-all-stage1-libiberty
50007all-stage2-binutils: maybe-all-stage2-libiberty
50008all-stage3-binutils: maybe-all-stage3-libiberty
50009all-stage4-binutils: maybe-all-stage4-libiberty
50010all-stageprofile-binutils: maybe-all-stageprofile-libiberty
50011all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
50012all-binutils: maybe-all-opcodes
50013
50014all-stage1-binutils: maybe-all-stage1-opcodes
50015all-stage2-binutils: maybe-all-stage2-opcodes
50016all-stage3-binutils: maybe-all-stage3-opcodes
50017all-stage4-binutils: maybe-all-stage4-opcodes
50018all-stageprofile-binutils: maybe-all-stageprofile-opcodes
50019all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
50020all-binutils: maybe-all-bfd
50021
50022all-stage1-binutils: maybe-all-stage1-bfd
50023all-stage2-binutils: maybe-all-stage2-bfd
50024all-stage3-binutils: maybe-all-stage3-bfd
50025all-stage4-binutils: maybe-all-stage4-bfd
50026all-stageprofile-binutils: maybe-all-stageprofile-bfd
50027all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
50028all-binutils: maybe-all-build-flex
50029
50030all-stage1-binutils: maybe-all-build-flex
50031all-stage2-binutils: maybe-all-build-flex
50032all-stage3-binutils: maybe-all-build-flex
50033all-stage4-binutils: maybe-all-build-flex
50034all-stageprofile-binutils: maybe-all-build-flex
50035all-stagefeedback-binutils: maybe-all-build-flex
72b2455a
PB
50036all-binutils: maybe-all-build-bison
50037
50038all-stage1-binutils: maybe-all-build-bison
50039all-stage2-binutils: maybe-all-build-bison
50040all-stage3-binutils: maybe-all-build-bison
50041all-stage4-binutils: maybe-all-build-bison
50042all-stageprofile-binutils: maybe-all-build-bison
50043all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191
PB
50044all-binutils: maybe-all-intl
50045
50046all-stage1-binutils: maybe-all-stage1-intl
50047all-stage2-binutils: maybe-all-stage2-intl
50048all-stage3-binutils: maybe-all-stage3-intl
50049all-stage4-binutils: maybe-all-stage4-intl
50050all-stageprofile-binutils: maybe-all-stageprofile-intl
50051all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685
L
50052all-binutils: maybe-all-gas
50053
50054all-stage1-binutils: maybe-all-stage1-gas
50055all-stage2-binutils: maybe-all-stage2-gas
50056all-stage3-binutils: maybe-all-stage3-gas
50057all-stage4-binutils: maybe-all-stage4-gas
50058all-stageprofile-binutils: maybe-all-stageprofile-gas
50059all-stagefeedback-binutils: maybe-all-stagefeedback-gas
ae831be5 50060install-binutils: maybe-install-opcodes
9b980aa1 50061install-strip-binutils: maybe-install-strip-opcodes
cf662e21 50062install-opcodes: maybe-install-bfd
9b980aa1 50063install-strip-opcodes: maybe-install-strip-bfd
20e95c23
DJ
50064configure-gas: maybe-configure-intl
50065
50066configure-stage1-gas: maybe-configure-stage1-intl
50067configure-stage2-gas: maybe-configure-stage2-intl
50068configure-stage3-gas: maybe-configure-stage3-intl
50069configure-stage4-gas: maybe-configure-stage4-intl
50070configure-stageprofile-gas: maybe-configure-stageprofile-intl
50071configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191
PB
50072all-gas: maybe-all-libiberty
50073
50074all-stage1-gas: maybe-all-stage1-libiberty
50075all-stage2-gas: maybe-all-stage2-libiberty
50076all-stage3-gas: maybe-all-stage3-libiberty
50077all-stage4-gas: maybe-all-stage4-libiberty
50078all-stageprofile-gas: maybe-all-stageprofile-libiberty
50079all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
50080all-gas: maybe-all-opcodes
50081
50082all-stage1-gas: maybe-all-stage1-opcodes
50083all-stage2-gas: maybe-all-stage2-opcodes
50084all-stage3-gas: maybe-all-stage3-opcodes
50085all-stage4-gas: maybe-all-stage4-opcodes
50086all-stageprofile-gas: maybe-all-stageprofile-opcodes
50087all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
50088all-gas: maybe-all-bfd
50089
50090all-stage1-gas: maybe-all-stage1-bfd
50091all-stage2-gas: maybe-all-stage2-bfd
50092all-stage3-gas: maybe-all-stage3-bfd
50093all-stage4-gas: maybe-all-stage4-bfd
50094all-stageprofile-gas: maybe-all-stageprofile-bfd
50095all-stagefeedback-gas: maybe-all-stagefeedback-bfd
50096all-gas: maybe-all-intl
50097
50098all-stage1-gas: maybe-all-stage1-intl
50099all-stage2-gas: maybe-all-stage2-intl
50100all-stage3-gas: maybe-all-stage3-intl
50101all-stage4-gas: maybe-all-stage4-intl
50102all-stageprofile-gas: maybe-all-stageprofile-intl
50103all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 50104configure-gprof: maybe-configure-intl
9e6ce191
PB
50105all-gprof: maybe-all-libiberty
50106all-gprof: maybe-all-bfd
50107all-gprof: maybe-all-opcodes
50108all-gprof: maybe-all-intl
0140d685 50109all-gprof: maybe-all-gas
20e95c23
DJ
50110configure-ld: maybe-configure-intl
50111
50112configure-stage1-ld: maybe-configure-stage1-intl
50113configure-stage2-ld: maybe-configure-stage2-intl
50114configure-stage3-ld: maybe-configure-stage3-intl
50115configure-stage4-ld: maybe-configure-stage4-intl
50116configure-stageprofile-ld: maybe-configure-stageprofile-intl
50117configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191
PB
50118all-ld: maybe-all-libiberty
50119
50120all-stage1-ld: maybe-all-stage1-libiberty
50121all-stage2-ld: maybe-all-stage2-libiberty
50122all-stage3-ld: maybe-all-stage3-libiberty
50123all-stage4-ld: maybe-all-stage4-libiberty
50124all-stageprofile-ld: maybe-all-stageprofile-libiberty
50125all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
50126all-ld: maybe-all-bfd
50127
50128all-stage1-ld: maybe-all-stage1-bfd
50129all-stage2-ld: maybe-all-stage2-bfd
50130all-stage3-ld: maybe-all-stage3-bfd
50131all-stage4-ld: maybe-all-stage4-bfd
50132all-stageprofile-ld: maybe-all-stageprofile-bfd
50133all-stagefeedback-ld: maybe-all-stagefeedback-bfd
50134all-ld: maybe-all-opcodes
50135
50136all-stage1-ld: maybe-all-stage1-opcodes
50137all-stage2-ld: maybe-all-stage2-opcodes
50138all-stage3-ld: maybe-all-stage3-opcodes
50139all-stage4-ld: maybe-all-stage4-opcodes
50140all-stageprofile-ld: maybe-all-stageprofile-opcodes
50141all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
50142all-ld: maybe-all-build-bison
50143
50144all-stage1-ld: maybe-all-build-bison
50145all-stage2-ld: maybe-all-build-bison
50146all-stage3-ld: maybe-all-build-bison
50147all-stage4-ld: maybe-all-build-bison
50148all-stageprofile-ld: maybe-all-build-bison
50149all-stagefeedback-ld: maybe-all-build-bison
72b2455a
PB
50150all-ld: maybe-all-build-flex
50151
50152all-stage1-ld: maybe-all-build-flex
50153all-stage2-ld: maybe-all-build-flex
50154all-stage3-ld: maybe-all-build-flex
50155all-stage4-ld: maybe-all-build-flex
50156all-stageprofile-ld: maybe-all-build-flex
50157all-stagefeedback-ld: maybe-all-build-flex
9e6ce191
PB
50158all-ld: maybe-all-intl
50159
50160all-stage1-ld: maybe-all-stage1-intl
50161all-stage2-ld: maybe-all-stage2-intl
50162all-stage3-ld: maybe-all-stage3-intl
50163all-stage4-ld: maybe-all-stage4-intl
50164all-stageprofile-ld: maybe-all-stageprofile-intl
50165all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685
L
50166all-ld: maybe-all-gas
50167
50168all-stage1-ld: maybe-all-stage1-gas
50169all-stage2-ld: maybe-all-stage2-gas
50170all-stage3-ld: maybe-all-stage3-gas
50171all-stage4-ld: maybe-all-stage4-gas
50172all-stageprofile-ld: maybe-all-stageprofile-gas
50173all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403
YS
50174all-ld: maybe-all-binutils
50175
50176all-stage1-ld: maybe-all-stage1-binutils
50177all-stage2-ld: maybe-all-stage2-binutils
50178all-stage3-ld: maybe-all-stage3-binutils
50179all-stage4-ld: maybe-all-stage4-binutils
50180all-stageprofile-ld: maybe-all-stageprofile-binutils
50181all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 50182install-ld: maybe-install-gold
9b980aa1 50183install-strip-ld: maybe-install-strip-gold
93f9b408
ILT
50184configure-gold: maybe-configure-intl
50185
50186configure-stage1-gold: maybe-configure-stage1-intl
50187configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 50188configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
50189configure-stage4-gold: maybe-configure-stage4-intl
50190configure-stageprofile-gold: maybe-configure-stageprofile-intl
50191configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
50192all-gold: maybe-all-libiberty
50193
50194all-stage1-gold: maybe-all-stage1-libiberty
50195all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 50196all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
50197all-stage4-gold: maybe-all-stage4-libiberty
50198all-stageprofile-gold: maybe-all-stageprofile-libiberty
50199all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
50200all-gold: maybe-all-intl
50201
50202all-stage1-gold: maybe-all-stage1-intl
50203all-stage2-gold: maybe-all-stage2-intl
93f9b408 50204all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
50205all-stage4-gold: maybe-all-stage4-intl
50206all-stageprofile-gold: maybe-all-stageprofile-intl
50207all-stagefeedback-gold: maybe-all-stagefeedback-intl
50208all-gold: maybe-all-bfd
50209
50210all-stage1-gold: maybe-all-stage1-bfd
50211all-stage2-gold: maybe-all-stage2-bfd
93f9b408 50212all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
50213all-stage4-gold: maybe-all-stage4-bfd
50214all-stageprofile-gold: maybe-all-stageprofile-bfd
50215all-stagefeedback-gold: maybe-all-stagefeedback-bfd
50216all-gold: maybe-all-build-bison
50217
50218all-stage1-gold: maybe-all-build-bison
50219all-stage2-gold: maybe-all-build-bison
93f9b408 50220all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
50221all-stage4-gold: maybe-all-build-bison
50222all-stageprofile-gold: maybe-all-build-bison
50223all-stagefeedback-gold: maybe-all-build-bison
0140d685
L
50224all-gold: maybe-all-gas
50225
50226all-stage1-gold: maybe-all-stage1-gas
50227all-stage2-gold: maybe-all-stage2-gas
50228all-stage3-gold: maybe-all-stage3-gas
50229all-stage4-gold: maybe-all-stage4-gas
50230all-stageprofile-gold: maybe-all-stageprofile-gas
50231all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97
ILT
50232check-gold: maybe-all-binutils
50233
50234check-stage1-gold: maybe-all-stage1-binutils
50235check-stage2-gold: maybe-all-stage2-binutils
e5164e97 50236check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
50237check-stage4-gold: maybe-all-stage4-binutils
50238check-stageprofile-gold: maybe-all-stageprofile-binutils
50239check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca
ILT
50240check-gold: maybe-all-gas
50241
50242check-stage1-gold: maybe-all-stage1-gas
50243check-stage2-gold: maybe-all-stage2-gas
50244check-stage3-gold: maybe-all-stage3-gas
50245check-stage4-gold: maybe-all-stage4-gas
50246check-stageprofile-gold: maybe-all-stageprofile-gas
50247check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee
JJ
50248configure-opcodes: maybe-configure-intl
50249
50250configure-stage1-opcodes: maybe-configure-stage1-intl
50251configure-stage2-opcodes: maybe-configure-stage2-intl
50252configure-stage3-opcodes: maybe-configure-stage3-intl
50253configure-stage4-opcodes: maybe-configure-stage4-intl
50254configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
50255configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191
PB
50256all-opcodes: maybe-all-bfd
50257
50258all-stage1-opcodes: maybe-all-stage1-bfd
50259all-stage2-opcodes: maybe-all-stage2-bfd
50260all-stage3-opcodes: maybe-all-stage3-bfd
50261all-stage4-opcodes: maybe-all-stage4-bfd
50262all-stageprofile-opcodes: maybe-all-stageprofile-bfd
50263all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
50264all-opcodes: maybe-all-libiberty
50265
50266all-stage1-opcodes: maybe-all-stage1-libiberty
50267all-stage2-opcodes: maybe-all-stage2-libiberty
50268all-stage3-opcodes: maybe-all-stage3-libiberty
50269all-stage4-opcodes: maybe-all-stage4-libiberty
50270all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50271all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee
JJ
50272all-opcodes: maybe-all-intl
50273
50274all-stage1-opcodes: maybe-all-stage1-intl
50275all-stage2-opcodes: maybe-all-stage2-intl
50276all-stage3-opcodes: maybe-all-stage3-intl
50277all-stage4-opcodes: maybe-all-stage4-intl
50278all-stageprofile-opcodes: maybe-all-stageprofile-intl
50279all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
50280all-dejagnu: maybe-all-tcl
50281all-dejagnu: maybe-all-expect
50282all-dejagnu: maybe-all-tk
50283configure-expect: maybe-configure-tcl
50284configure-expect: maybe-configure-tk
50285all-expect: maybe-all-tcl
50286all-expect: maybe-all-tk
50287configure-itcl: maybe-configure-tcl
50288configure-itcl: maybe-configure-tk
50289all-itcl: maybe-all-tcl
50290all-itcl: maybe-all-tk
ae831be5 50291install-itcl: maybe-install-tcl
9b980aa1 50292install-strip-itcl: maybe-install-strip-tcl
b4a77b47 50293configure-tk: maybe-configure-tcl
ae831be5 50294all-tk: maybe-all-tcl
9e6ce191
PB
50295all-sid: maybe-all-libiberty
50296all-sid: maybe-all-bfd
50297all-sid: maybe-all-opcodes
50298all-sid: maybe-all-tcl
50299all-sid: maybe-all-tk
50300install-sid: maybe-install-tcl
9b980aa1 50301install-strip-sid: maybe-install-strip-tcl
9e6ce191 50302install-sid: maybe-install-tk
9b980aa1 50303install-strip-sid: maybe-install-strip-tk
20e95c23
DJ
50304configure-sim: maybe-configure-intl
50305all-sim: maybe-all-intl
9e6ce191
PB
50306all-sim: maybe-all-libiberty
50307all-sim: maybe-all-bfd
50308all-sim: maybe-all-opcodes
50309all-sim: maybe-all-readline
50310all-sim: maybe-configure-gdb
50311all-fastjar: maybe-all-zlib
72b2455a 50312all-fastjar: maybe-all-build-texinfo
9e6ce191 50313all-fastjar: maybe-all-libiberty
9e6ce191 50314all-bison: maybe-all-intl
72b2455a 50315all-bison: maybe-all-build-texinfo
72b2455a 50316all-flex: maybe-all-build-bison
9e6ce191
PB
50317all-flex: maybe-all-intl
50318all-flex: maybe-all-m4
72b2455a 50319all-flex: maybe-all-build-texinfo
9e6ce191 50320all-m4: maybe-all-intl
72b2455a 50321all-m4: maybe-all-build-texinfo
f7c83eac 50322configure-target-boehm-gc: maybe-all-target-libstdc++-v3
b4a77b47 50323configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 50324all-target-fastjar: maybe-all-target-zlib
e552509b
ILT
50325configure-target-libgo: maybe-configure-target-libffi
50326configure-target-libgo: maybe-all-target-libstdc++-v3
8e71395b 50327all-target-libgo: maybe-all-target-libbacktrace
e552509b 50328all-target-libgo: maybe-all-target-libffi
9417cd2f 50329all-target-libgo: maybe-all-target-libatomic
9e6ce191
PB
50330configure-target-libjava: maybe-configure-target-zlib
50331configure-target-libjava: maybe-configure-target-boehm-gc
9e6ce191
PB
50332configure-target-libjava: maybe-configure-target-libffi
50333all-target-libjava: maybe-all-fastjar
50334all-target-libjava: maybe-all-target-zlib
50335all-target-libjava: maybe-all-target-boehm-gc
9e6ce191 50336all-target-libjava: maybe-all-target-libffi
4f0ef2d8 50337configure-target-libobjc: maybe-configure-target-boehm-gc
4f0ef2d8 50338all-target-libobjc: maybe-all-target-boehm-gc
cff87f51 50339configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50340
50341configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50342configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50343configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50344configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50345configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50346configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50347configure-target-liboffloadmic: maybe-configure-target-libgomp
5286fdef 50348configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
50349
50350configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
50351configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
50352configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
50353configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
50354configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
50355configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135
JBG
50356configure-target-libvtv: maybe-all-target-libstdc++-v3
50357
50358configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
50359configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
50360configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
50361configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
50362configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
50363configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0
JR
50364all-target-libstdc++-v3: maybe-configure-target-libgomp
50365
50366all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50367all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50368all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50369all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50370all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50371all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50372all-target-liboffloadmic: maybe-all-target-libgomp
9417cd2f
JBG
50373install-target-libgo: maybe-install-target-libatomic
50374install-target-libgfortran: maybe-install-target-libquadmath
50375install-target-libgfortran: maybe-install-target-libgcc
3dae1673 50376install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 50377install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
50378install-target-libvtv: maybe-install-target-libstdc++-v3
50379install-target-libvtv: maybe-install-target-libgcc
522e3d71 50380install-target-libcilkrts: maybe-install-target-libstdc++-v3
50381install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
50382install-target-liboffloadmic: maybe-install-target-libstdc++-v3
50383install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
50384install-target-libjava: maybe-install-target-libgcc
50385install-target-libitm: maybe-install-target-libgcc
50386install-target-libobjc: maybe-install-target-libgcc
50387install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 50388all-target-libgloss: maybe-all-target-newlib
9e6ce191 50389all-target-winsup: maybe-all-target-libtermcap
c1102ce7
RW
50390configure-target-newlib: maybe-all-binutils
50391configure-target-newlib: maybe-all-ld
e552509b 50392configure-target-libgfortran: maybe-all-target-libquadmath
9e6ce191
PB
50393
50394
6aa8ef82
DJ
50395# Dependencies for target modules on other target modules are
50396# described by lang_env_dependencies; the defaults apply to anything
50397# not mentioned there.
50398
50399
50400@if gcc-bootstrap
e8a5fa9c
RW
50401configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
50402configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
50403configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
50404configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
50405configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
50406configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
50407configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
50408configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
50409configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
50410configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
50411configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
50412configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
50413configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
50414configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
50415configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
50416configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
50417configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
50418configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
50419configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
50420configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
50421configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
50422configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
50423configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
50424configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
50425configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
50426configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
50427configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
50428configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
50429configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
50430configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
50431@endif gcc-bootstrap
50432
50433@if gcc-no-bootstrap
50434configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 50435configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 50436configure-target-libmpx: maybe-all-target-libgcc
95e43135 50437configure-target-libvtv: maybe-all-target-libgcc
522e3d71 50438configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 50439configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 50440configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 50441configure-target-newlib: maybe-all-target-libgcc
2bf680c4 50442configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 50443configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
50444configure-target-libgfortran: maybe-all-target-libgcc
50445configure-target-libobjc: maybe-all-target-libgcc
e552509b 50446configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
50447configure-target-libtermcap: maybe-all-target-libgcc
50448configure-target-winsup: maybe-all-target-libgcc
50449configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82
DJ
50450configure-target-libffi: maybe-all-target-libgcc
50451configure-target-libjava: maybe-all-target-libgcc
50452configure-target-zlib: maybe-all-target-libgcc
50453configure-target-boehm-gc: maybe-all-target-libgcc
6aa8ef82
DJ
50454configure-target-rda: maybe-all-target-libgcc
50455configure-target-libada: maybe-all-target-libgcc
50456configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
50457configure-target-libitm: maybe-all-target-libgcc
50458configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
50459@endif gcc-no-bootstrap
50460
50461
50462configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
50463
5286fdef
L
50464configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
50465
1b6c0831
L
50466configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
50467
95e43135
JBG
50468configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
50469
e78e02e6 50470configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
50471configure-target-libcilkrts: maybe-all-target-libstdc++-v3
50472
1b6c0831
L
50473configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
50474configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
50475
6aa8ef82
DJ
50476configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
50477
50478
50479
2bf680c4
ILT
50480configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
50481
e552509b
ILT
50482configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
50483
6aa8ef82
DJ
50484configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
50485
50486configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
50487
e552509b
ILT
50488configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
50489
6aa8ef82
DJ
50490configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
50491
50492configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
50493
50494
6aa8ef82
DJ
50495configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
50496
50497configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
50498configure-target-libjava: maybe-all-target-libstdc++-v3
50499
50500configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
50501
50502configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
50503
6aa8ef82
DJ
50504configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
50505
50506configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
50507
50508configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
50509
7ec59b9e
L
50510configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
50511configure-target-libitm: maybe-all-target-libstdc++-v3
50512
50513configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
50514
6aa8ef82 50515
907be67c 50516CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 50517GDB_TK = @GDB_TK@
907be67c
DJ
50518INSTALL_GDB_TK = @INSTALL_GDB_TK@
50519configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 50520all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 50521install-gdb: $(INSTALL_GDB_TK)
907a7241 50522
a2cc058a
NN
50523# Serialization dependencies. Host configures don't work well in parallel to
50524# each other, due to contention over config.cache. Target configures and
50525# build configures are similar.
50526@serialization_dependencies@
50527
15723a45
NN
50528# --------------------------------
50529# Regenerating top level configury
50530# --------------------------------
252b5132 50531
14a2a2f1 50532# Rebuilding Makefile.in, using autogen.
43be203f 50533AUTOGEN = autogen
6b784d9f 50534$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 50535 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 50536
a0da8069 50537# Rebuilding Makefile.
43be203f
AO
50538Makefile: $(srcdir)/Makefile.in config.status
50539 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
50540
479759c8 50541config.status: configure
10ecffb9 50542 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 50543
a0da8069 50544# Rebuilding configure.
43be203f 50545AUTOCONF = autoconf
da888c87
PB
50546$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
50547 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
43be203f 50548 cd $(srcdir) && $(AUTOCONF)
252b5132 50549
3728fade
NN
50550# ------------------------------
50551# Special directives to GNU Make
50552# ------------------------------
50553
3728fade
NN
50554# Don't pass command-line variables to submakes.
50555.NOEXPORT:
50556MAKEOVERRIDES=
50557
252b5132 50558# end of Makefile.in
This page took 4.55683 seconds and 4 git commands to generate.