Don't convert R_X86_64_GOTPCREL if it will overflow
[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} \
e81d5d05 26717 --target=${target_alias} @extra_host_zlib_configure_flags@ \
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 \
e81d5d05
L
26752 $(STAGE1_CONFIGURE_FLAGS) \
26753 @extra_host_zlib_configure_flags@
a90ef4bf 26754@endif zlib-bootstrap
d545f33b 26755
a90ef4bf
JM
26756.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
26757maybe-configure-stage2-zlib:
26758@if zlib-bootstrap
26759maybe-configure-stage2-zlib: configure-stage2-zlib
26760configure-stage2-zlib:
c52c6897 26761 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 26762 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26763 @r=`${PWD_COMMAND}`; export r; \
26764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26765 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 26766 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26767 $(HOST_EXPORTS) \
1b05fbbd 26768 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26769 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26770 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
26771 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26772 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
26773 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26774 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26775 case $(srcdir) in \
26776 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26777 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26778 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26779 esac; \
1b6c0831
L
26780 module_srcdir=zlib; \
26781 $(SHELL) $$s/$$module_srcdir/configure \
26782 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26783 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26784 --target=${target_alias} \
26785 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26786 $(STAGE2_CONFIGURE_FLAGS) \
26787 @extra_host_zlib_configure_flags@
a90ef4bf 26788@endif zlib-bootstrap
8520c408 26789
a90ef4bf
JM
26790.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
26791maybe-configure-stage3-zlib:
26792@if zlib-bootstrap
26793maybe-configure-stage3-zlib: configure-stage3-zlib
26794configure-stage3-zlib:
c52c6897 26795 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 26796 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26797 @r=`${PWD_COMMAND}`; export r; \
26798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26799 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 26800 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26801 $(HOST_EXPORTS) \
1b05fbbd 26802 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26803 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26804 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
26805 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26806 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
26807 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26808 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26809 case $(srcdir) in \
26810 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26811 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26812 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26813 esac; \
1b6c0831
L
26814 module_srcdir=zlib; \
26815 $(SHELL) $$s/$$module_srcdir/configure \
26816 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26817 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26818 --target=${target_alias} \
26819 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26820 $(STAGE3_CONFIGURE_FLAGS) \
26821 @extra_host_zlib_configure_flags@
a90ef4bf 26822@endif zlib-bootstrap
8520c408 26823
a90ef4bf
JM
26824.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
26825maybe-configure-stage4-zlib:
26826@if zlib-bootstrap
26827maybe-configure-stage4-zlib: configure-stage4-zlib
26828configure-stage4-zlib:
c52c6897 26829 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 26830 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26831 @r=`${PWD_COMMAND}`; export r; \
26832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26833 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 26834 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26835 $(HOST_EXPORTS) \
1b05fbbd 26836 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26837 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26838 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
26839 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26840 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
26841 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26842 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26843 case $(srcdir) in \
26844 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26845 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26846 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26847 esac; \
1b6c0831
L
26848 module_srcdir=zlib; \
26849 $(SHELL) $$s/$$module_srcdir/configure \
26850 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26851 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26852 --target=${target_alias} \
26853 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26854 $(STAGE4_CONFIGURE_FLAGS) \
26855 @extra_host_zlib_configure_flags@
a90ef4bf 26856@endif zlib-bootstrap
d545f33b 26857
a90ef4bf
JM
26858.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
26859maybe-configure-stageprofile-zlib:
26860@if zlib-bootstrap
26861maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
26862configure-stageprofile-zlib:
c52c6897 26863 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 26864 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26865 @r=`${PWD_COMMAND}`; export r; \
26866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26867 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 26868 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26869 $(HOST_EXPORTS) \
1b05fbbd
AO
26870 $(POSTSTAGE1_HOST_EXPORTS) \
26871 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26872 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
26873 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26874 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
26875 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26876 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26877 case $(srcdir) in \
26878 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26879 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26880 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26881 esac; \
1b6c0831
L
26882 module_srcdir=zlib; \
26883 $(SHELL) $$s/$$module_srcdir/configure \
26884 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26885 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26886 --target=${target_alias} \
26887 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26888 $(STAGEprofile_CONFIGURE_FLAGS) \
26889 @extra_host_zlib_configure_flags@
a90ef4bf 26890@endif zlib-bootstrap
d545f33b 26891
a90ef4bf
JM
26892.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
26893maybe-configure-stagefeedback-zlib:
26894@if zlib-bootstrap
26895maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
26896configure-stagefeedback-zlib:
c52c6897 26897 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 26898 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26899 @r=`${PWD_COMMAND}`; export r; \
26900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26901 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 26902 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26903 $(HOST_EXPORTS) \
1b05fbbd
AO
26904 $(POSTSTAGE1_HOST_EXPORTS) \
26905 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26906 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
26907 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26908 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
26909 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26910 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26911 case $(srcdir) in \
26912 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26913 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26914 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26915 esac; \
1b6c0831
L
26916 module_srcdir=zlib; \
26917 $(SHELL) $$s/$$module_srcdir/configure \
26918 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26919 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26920 --target=${target_alias} \
26921 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26922 $(STAGEfeedback_CONFIGURE_FLAGS) \
26923 @extra_host_zlib_configure_flags@
a90ef4bf 26924@endif zlib-bootstrap
d545f33b
PB
26925
26926
26927
26928
26929
a90ef4bf
JM
26930.PHONY: all-zlib maybe-all-zlib
26931maybe-all-zlib:
4f0ef2d8 26932@if gcc-bootstrap
a90ef4bf 26933all-zlib: stage_current
4f0ef2d8 26934@endif gcc-bootstrap
a90ef4bf
JM
26935@if zlib
26936TARGET-zlib=all
26937maybe-all-zlib: all-zlib
26938all-zlib: configure-zlib
c52c6897 26939 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 26940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26941 $(HOST_EXPORTS) \
a90ef4bf 26942 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 26943 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26944 $(TARGET-zlib))
26945@endif zlib
04cf1b77 26946
a7254363 26947
d545f33b 26948
a90ef4bf
JM
26949.PHONY: all-stage1-zlib maybe-all-stage1-zlib
26950.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
26951maybe-all-stage1-zlib:
26952maybe-clean-stage1-zlib:
26953@if zlib-bootstrap
26954maybe-all-stage1-zlib: all-stage1-zlib
26955all-stage1: all-stage1-zlib
26956TARGET-stage1-zlib = $(TARGET-zlib)
26957all-stage1-zlib: configure-stage1-zlib
c52c6897 26958 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
26959 @r=`${PWD_COMMAND}`; export r; \
26960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26961 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 26962 $(HOST_EXPORTS) \
a90ef4bf 26963 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26964 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26965 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 26966 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
26967 LIBCFLAGS="$(LIBCFLAGS)" \
26968 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26969 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26970 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
26971 $(EXTRA_HOST_FLAGS) \
26972 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 26973 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 26974 $(TARGET-stage1-zlib)
d545f33b 26975
a90ef4bf
JM
26976maybe-clean-stage1-zlib: clean-stage1-zlib
26977clean-stage1: clean-stage1-zlib
26978clean-stage1-zlib:
9dbaa842 26979 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 26980 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26981 else \
a90ef4bf 26982 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26983 $(MAKE) stage1-start; \
26984 fi; \
a90ef4bf 26985 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26986 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 26987 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26988@endif zlib-bootstrap
d545f33b
PB
26989
26990
a90ef4bf
JM
26991.PHONY: all-stage2-zlib maybe-all-stage2-zlib
26992.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
26993maybe-all-stage2-zlib:
26994maybe-clean-stage2-zlib:
26995@if zlib-bootstrap
26996maybe-all-stage2-zlib: all-stage2-zlib
26997all-stage2: all-stage2-zlib
26998TARGET-stage2-zlib = $(TARGET-zlib)
26999all-stage2-zlib: configure-stage2-zlib
c52c6897 27000 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27001 @r=`${PWD_COMMAND}`; export r; \
27002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27003 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27004 $(HOST_EXPORTS) \
1f53ca9a 27005 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27006 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27007 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27008 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27009 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27010 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27011 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27012 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27013 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27014 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27015 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27016 $(TARGET-stage2-zlib)
d545f33b 27017
a90ef4bf
JM
27018maybe-clean-stage2-zlib: clean-stage2-zlib
27019clean-stage2: clean-stage2-zlib
27020clean-stage2-zlib:
9dbaa842 27021 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27022 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27023 else \
a90ef4bf 27024 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27025 $(MAKE) stage2-start; \
27026 fi; \
a90ef4bf 27027 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27028 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27029@endif zlib-bootstrap
d545f33b
PB
27030
27031
a90ef4bf
JM
27032.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27033.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27034maybe-all-stage3-zlib:
27035maybe-clean-stage3-zlib:
27036@if zlib-bootstrap
27037maybe-all-stage3-zlib: all-stage3-zlib
27038all-stage3: all-stage3-zlib
27039TARGET-stage3-zlib = $(TARGET-zlib)
27040all-stage3-zlib: configure-stage3-zlib
c52c6897 27041 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27042 @r=`${PWD_COMMAND}`; export r; \
27043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27044 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27045 $(HOST_EXPORTS) \
1f53ca9a 27046 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27047 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27048 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27049 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27050 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27051 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27052 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27053 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27054 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27055 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27056 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27057 $(TARGET-stage3-zlib)
d545f33b 27058
a90ef4bf
JM
27059maybe-clean-stage3-zlib: clean-stage3-zlib
27060clean-stage3: clean-stage3-zlib
27061clean-stage3-zlib:
9dbaa842 27062 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27063 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27064 else \
a90ef4bf 27065 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27066 $(MAKE) stage3-start; \
27067 fi; \
a90ef4bf 27068 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27069 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27070@endif zlib-bootstrap
d545f33b
PB
27071
27072
a90ef4bf
JM
27073.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27074.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27075maybe-all-stage4-zlib:
27076maybe-clean-stage4-zlib:
27077@if zlib-bootstrap
27078maybe-all-stage4-zlib: all-stage4-zlib
27079all-stage4: all-stage4-zlib
27080TARGET-stage4-zlib = $(TARGET-zlib)
27081all-stage4-zlib: configure-stage4-zlib
c52c6897 27082 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27083 @r=`${PWD_COMMAND}`; export r; \
27084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27085 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27086 $(HOST_EXPORTS) \
1f53ca9a 27087 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27088 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27089 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27090 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27091 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27092 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27093 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27094 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27095 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27096 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27097 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27098 $(TARGET-stage4-zlib)
d545f33b 27099
a90ef4bf
JM
27100maybe-clean-stage4-zlib: clean-stage4-zlib
27101clean-stage4: clean-stage4-zlib
27102clean-stage4-zlib:
9dbaa842 27103 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27104 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27105 else \
a90ef4bf 27106 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27107 $(MAKE) stage4-start; \
27108 fi; \
a90ef4bf 27109 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27110 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27111@endif zlib-bootstrap
d545f33b
PB
27112
27113
a90ef4bf
JM
27114.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27115.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27116maybe-all-stageprofile-zlib:
27117maybe-clean-stageprofile-zlib:
27118@if zlib-bootstrap
27119maybe-all-stageprofile-zlib: all-stageprofile-zlib
27120all-stageprofile: all-stageprofile-zlib
27121TARGET-stageprofile-zlib = $(TARGET-zlib)
27122all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27123 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27124 @r=`${PWD_COMMAND}`; export r; \
27125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27126 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27127 $(HOST_EXPORTS) \
1f53ca9a 27128 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27129 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27130 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27131 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27132 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27133 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27134 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27135 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27136 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27137 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27138 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27139 $(TARGET-stageprofile-zlib)
d545f33b 27140
a90ef4bf
JM
27141maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27142clean-stageprofile: clean-stageprofile-zlib
27143clean-stageprofile-zlib:
9dbaa842 27144 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27145 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27146 else \
a90ef4bf 27147 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27148 $(MAKE) stageprofile-start; \
27149 fi; \
a90ef4bf 27150 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27151 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27152@endif zlib-bootstrap
d545f33b
PB
27153
27154
a90ef4bf
JM
27155.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27156.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27157maybe-all-stagefeedback-zlib:
27158maybe-clean-stagefeedback-zlib:
27159@if zlib-bootstrap
27160maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27161all-stagefeedback: all-stagefeedback-zlib
27162TARGET-stagefeedback-zlib = $(TARGET-zlib)
27163all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27164 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27165 @r=`${PWD_COMMAND}`; export r; \
27166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27167 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27168 $(HOST_EXPORTS) \
1f53ca9a 27169 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27170 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27171 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27172 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27173 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27174 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27175 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27176 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27177 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27178 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27179 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27180 $(TARGET-stagefeedback-zlib)
d545f33b 27181
a90ef4bf
JM
27182maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27183clean-stagefeedback: clean-stagefeedback-zlib
27184clean-stagefeedback-zlib:
9dbaa842 27185 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27186 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27187 else \
a90ef4bf 27188 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27189 $(MAKE) stagefeedback-start; \
27190 fi; \
a90ef4bf 27191 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27192 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27193@endif zlib-bootstrap
d545f33b
PB
27194
27195
27196
27197
27198
a90ef4bf
JM
27199.PHONY: check-zlib maybe-check-zlib
27200maybe-check-zlib:
27201@if zlib
27202maybe-check-zlib: check-zlib
04cf1b77 27203
a90ef4bf 27204check-zlib:
04cf1b77 27205
a90ef4bf 27206@endif zlib
04cf1b77 27207
a90ef4bf
JM
27208.PHONY: install-zlib maybe-install-zlib
27209maybe-install-zlib:
27210@if zlib
27211maybe-install-zlib: install-zlib
04cf1b77 27212
a90ef4bf 27213install-zlib:
04cf1b77 27214
a90ef4bf 27215@endif zlib
04cf1b77 27216
a90ef4bf
JM
27217.PHONY: install-strip-zlib maybe-install-strip-zlib
27218maybe-install-strip-zlib:
27219@if zlib
27220maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27221
a90ef4bf 27222install-strip-zlib:
9b980aa1 27223
a90ef4bf 27224@endif zlib
9b980aa1 27225
56a8fe78 27226# Other targets (info, dvi, pdf, etc.)
04cf1b77 27227
a90ef4bf
JM
27228.PHONY: maybe-info-zlib info-zlib
27229maybe-info-zlib:
27230@if zlib
27231maybe-info-zlib: info-zlib
04cf1b77 27232
a90ef4bf
JM
27233info-zlib: \
27234 configure-zlib
27235 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27236 r=`${PWD_COMMAND}`; export r; \
27237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27238 $(HOST_EXPORTS) \
b813574b 27239 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27241 done; \
a90ef4bf
JM
27242 echo "Doing info in zlib" ; \
27243 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27246 "RANLIB=$${RANLIB}" \
0c24b341 27247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27248 info) \
04cf1b77
PB
27249 || exit 1
27250
a90ef4bf 27251@endif zlib
04cf1b77 27252
a90ef4bf
JM
27253.PHONY: maybe-dvi-zlib dvi-zlib
27254maybe-dvi-zlib:
27255@if zlib
27256maybe-dvi-zlib: dvi-zlib
04cf1b77 27257
a90ef4bf
JM
27258dvi-zlib: \
27259 configure-zlib
27260 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27261 r=`${PWD_COMMAND}`; export r; \
27262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27263 $(HOST_EXPORTS) \
b813574b 27264 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27266 done; \
a90ef4bf
JM
27267 echo "Doing dvi in zlib" ; \
27268 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27271 "RANLIB=$${RANLIB}" \
0c24b341 27272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27273 dvi) \
04cf1b77
PB
27274 || exit 1
27275
a90ef4bf 27276@endif zlib
04cf1b77 27277
a90ef4bf
JM
27278.PHONY: maybe-pdf-zlib pdf-zlib
27279maybe-pdf-zlib:
27280@if zlib
27281maybe-pdf-zlib: pdf-zlib
56a8fe78 27282
a90ef4bf
JM
27283pdf-zlib: \
27284 configure-zlib
27285 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27286 r=`${PWD_COMMAND}`; export r; \
27287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27288 $(HOST_EXPORTS) \
27289 for flag in $(EXTRA_HOST_FLAGS) ; do \
27290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27291 done; \
a90ef4bf
JM
27292 echo "Doing pdf in zlib" ; \
27293 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27296 "RANLIB=$${RANLIB}" \
0c24b341 27297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27298 pdf) \
27299 || exit 1
27300
a90ef4bf 27301@endif zlib
56a8fe78 27302
a90ef4bf
JM
27303.PHONY: maybe-html-zlib html-zlib
27304maybe-html-zlib:
27305@if zlib
27306maybe-html-zlib: html-zlib
6d389afc 27307
a90ef4bf
JM
27308html-zlib: \
27309 configure-zlib
27310 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27311 r=`${PWD_COMMAND}`; export r; \
27312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27313 $(HOST_EXPORTS) \
27314 for flag in $(EXTRA_HOST_FLAGS) ; do \
27315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27316 done; \
a90ef4bf
JM
27317 echo "Doing html in zlib" ; \
27318 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27321 "RANLIB=$${RANLIB}" \
0c24b341 27322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27323 html) \
27324 || exit 1
27325
a90ef4bf 27326@endif zlib
6d389afc 27327
a90ef4bf
JM
27328.PHONY: maybe-TAGS-zlib TAGS-zlib
27329maybe-TAGS-zlib:
27330@if zlib
27331maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27332
a90ef4bf
JM
27333TAGS-zlib: \
27334 configure-zlib
27335 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27336 r=`${PWD_COMMAND}`; export r; \
27337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27338 $(HOST_EXPORTS) \
b813574b 27339 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27341 done; \
a90ef4bf
JM
27342 echo "Doing TAGS in zlib" ; \
27343 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27346 "RANLIB=$${RANLIB}" \
0c24b341 27347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27348 TAGS) \
04cf1b77
PB
27349 || exit 1
27350
a90ef4bf 27351@endif zlib
04cf1b77 27352
a90ef4bf
JM
27353.PHONY: maybe-install-info-zlib install-info-zlib
27354maybe-install-info-zlib:
27355@if zlib
27356maybe-install-info-zlib: install-info-zlib
04cf1b77 27357
a90ef4bf
JM
27358install-info-zlib: \
27359 configure-zlib \
27360 info-zlib
27361 @[ -f ./zlib/Makefile ] || exit 0; \
27362 r=`${PWD_COMMAND}`; export r; \
27363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27364 $(HOST_EXPORTS) \
b813574b 27365 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27367 done; \
a90ef4bf
JM
27368 echo "Doing install-info in zlib" ; \
27369 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27372 "RANLIB=$${RANLIB}" \
0c24b341 27373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27374 install-info) \
04cf1b77
PB
27375 || exit 1
27376
a90ef4bf 27377@endif zlib
04cf1b77 27378
a90ef4bf
JM
27379.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27380maybe-install-pdf-zlib:
27381@if zlib
27382maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27383
a90ef4bf
JM
27384install-pdf-zlib: \
27385 configure-zlib \
27386 pdf-zlib
27387 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27388 r=`${PWD_COMMAND}`; export r; \
27389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27390 $(HOST_EXPORTS) \
27391 for flag in $(EXTRA_HOST_FLAGS) ; do \
27392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27393 done; \
a90ef4bf
JM
27394 echo "Doing install-pdf in zlib" ; \
27395 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27398 "RANLIB=$${RANLIB}" \
0c24b341 27399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27400 install-pdf) \
27401 || exit 1
27402
a90ef4bf 27403@endif zlib
a3ca38d2 27404
a90ef4bf
JM
27405.PHONY: maybe-install-html-zlib install-html-zlib
27406maybe-install-html-zlib:
27407@if zlib
27408maybe-install-html-zlib: install-html-zlib
108a6f8e 27409
a90ef4bf
JM
27410install-html-zlib: \
27411 configure-zlib \
27412 html-zlib
27413 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27414 r=`${PWD_COMMAND}`; export r; \
27415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27416 $(HOST_EXPORTS) \
27417 for flag in $(EXTRA_HOST_FLAGS) ; do \
27418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27419 done; \
a90ef4bf
JM
27420 echo "Doing install-html in zlib" ; \
27421 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27424 "RANLIB=$${RANLIB}" \
0c24b341 27425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27426 install-html) \
27427 || exit 1
27428
a90ef4bf 27429@endif zlib
108a6f8e 27430
a90ef4bf
JM
27431.PHONY: maybe-installcheck-zlib installcheck-zlib
27432maybe-installcheck-zlib:
27433@if zlib
27434maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27435
a90ef4bf
JM
27436installcheck-zlib: \
27437 configure-zlib
27438 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27439 r=`${PWD_COMMAND}`; export r; \
27440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27441 $(HOST_EXPORTS) \
b813574b 27442 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27444 done; \
a90ef4bf
JM
27445 echo "Doing installcheck in zlib" ; \
27446 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27449 "RANLIB=$${RANLIB}" \
0c24b341 27450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27451 installcheck) \
04cf1b77
PB
27452 || exit 1
27453
a90ef4bf 27454@endif zlib
04cf1b77 27455
a90ef4bf
JM
27456.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
27457maybe-mostlyclean-zlib:
27458@if zlib
27459maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 27460
a90ef4bf
JM
27461mostlyclean-zlib:
27462 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27463 r=`${PWD_COMMAND}`; export r; \
27464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27465 $(HOST_EXPORTS) \
b813574b 27466 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27468 done; \
a90ef4bf
JM
27469 echo "Doing mostlyclean in zlib" ; \
27470 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27473 "RANLIB=$${RANLIB}" \
0c24b341 27474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27475 mostlyclean) \
04cf1b77
PB
27476 || exit 1
27477
a90ef4bf 27478@endif zlib
04cf1b77 27479
a90ef4bf
JM
27480.PHONY: maybe-clean-zlib clean-zlib
27481maybe-clean-zlib:
27482@if zlib
27483maybe-clean-zlib: clean-zlib
04cf1b77 27484
a90ef4bf
JM
27485clean-zlib:
27486 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27487 r=`${PWD_COMMAND}`; export r; \
27488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27489 $(HOST_EXPORTS) \
b813574b 27490 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27492 done; \
a90ef4bf
JM
27493 echo "Doing clean in zlib" ; \
27494 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27497 "RANLIB=$${RANLIB}" \
0c24b341 27498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27499 clean) \
04cf1b77
PB
27500 || exit 1
27501
a90ef4bf 27502@endif zlib
04cf1b77 27503
a90ef4bf
JM
27504.PHONY: maybe-distclean-zlib distclean-zlib
27505maybe-distclean-zlib:
27506@if zlib
27507maybe-distclean-zlib: distclean-zlib
04cf1b77 27508
a90ef4bf
JM
27509distclean-zlib:
27510 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27511 r=`${PWD_COMMAND}`; export r; \
27512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27513 $(HOST_EXPORTS) \
b813574b 27514 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27516 done; \
a90ef4bf
JM
27517 echo "Doing distclean in zlib" ; \
27518 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27521 "RANLIB=$${RANLIB}" \
0c24b341 27522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27523 distclean) \
04cf1b77
PB
27524 || exit 1
27525
a90ef4bf 27526@endif zlib
04cf1b77 27527
a90ef4bf
JM
27528.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
27529maybe-maintainer-clean-zlib:
27530@if zlib
27531maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 27532
a90ef4bf
JM
27533maintainer-clean-zlib:
27534 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27535 r=`${PWD_COMMAND}`; export r; \
27536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27537 $(HOST_EXPORTS) \
b813574b 27538 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27540 done; \
a90ef4bf
JM
27541 echo "Doing maintainer-clean in zlib" ; \
27542 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27545 "RANLIB=$${RANLIB}" \
0c24b341 27546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27547 maintainer-clean) \
04cf1b77
PB
27548 || exit 1
27549
a90ef4bf 27550@endif zlib
04cf1b77
PB
27551
27552
a7254363 27553
a90ef4bf
JM
27554.PHONY: configure-gdb maybe-configure-gdb
27555maybe-configure-gdb:
4f0ef2d8 27556@if gcc-bootstrap
a90ef4bf 27557configure-gdb: stage_current
4f0ef2d8 27558@endif gcc-bootstrap
a90ef4bf
JM
27559@if gdb
27560maybe-configure-gdb: configure-gdb
27561configure-gdb:
27562 @: $(MAKE); $(unstage)
c52c6897
PB
27563 @r=`${PWD_COMMAND}`; export r; \
27564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27565 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
27566 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
1f53ca9a 27567 $(HOST_EXPORTS) \
a90ef4bf
JM
27568 echo Configuring in $(HOST_SUBDIR)/gdb; \
27569 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 27570 case $(srcdir) in \
b00612cc 27571 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27572 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 27573 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 27574 esac; \
1b6c0831
L
27575 module_srcdir=gdb; \
27576 $(SHELL) \
27577 $$s/$$module_srcdir/configure \
27578 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27579 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27580 --target=${target_alias} \
4fa63067 27581 || exit 1
a90ef4bf 27582@endif gdb
4fa63067 27583
a7254363
PB
27584
27585
d545f33b 27586
8520c408 27587
a90ef4bf
JM
27588.PHONY: all-gdb maybe-all-gdb
27589maybe-all-gdb:
27590@if gcc-bootstrap
27591all-gdb: stage_current
27592@endif gcc-bootstrap
27593@if gdb
27594TARGET-gdb=all
27595maybe-all-gdb: all-gdb
27596all-gdb: configure-gdb
27597 @: $(MAKE); $(unstage)
c52c6897
PB
27598 @r=`${PWD_COMMAND}`; export r; \
27599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27600 $(HOST_EXPORTS) \
27601 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 27602 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27603 $(TARGET-gdb))
27604@endif gdb
8520c408 27605
a90ef4bf
JM
27606
27607
27608
27609.PHONY: check-gdb maybe-check-gdb
27610maybe-check-gdb:
27611@if gdb
27612maybe-check-gdb: check-gdb
27613
27614check-gdb:
27615 @: $(MAKE); $(unstage)
c52c6897
PB
27616 @r=`${PWD_COMMAND}`; export r; \
27617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 27618 $(HOST_EXPORTS) \
a90ef4bf
JM
27619 (cd $(HOST_SUBDIR)/gdb && \
27620 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 27621
a90ef4bf
JM
27622@endif gdb
27623
27624.PHONY: install-gdb maybe-install-gdb
27625maybe-install-gdb:
27626@if gdb
27627maybe-install-gdb: install-gdb
27628
27629install-gdb: installdirs
27630 @: $(MAKE); $(unstage)
c52c6897
PB
27631 @r=`${PWD_COMMAND}`; export r; \
27632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 27633 $(HOST_EXPORTS) \
a90ef4bf
JM
27634 (cd $(HOST_SUBDIR)/gdb && \
27635 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 27636
a90ef4bf
JM
27637@endif gdb
27638
27639.PHONY: install-strip-gdb maybe-install-strip-gdb
27640maybe-install-strip-gdb:
27641@if gdb
27642maybe-install-strip-gdb: install-strip-gdb
27643
27644install-strip-gdb: installdirs
27645 @: $(MAKE); $(unstage)
c52c6897
PB
27646 @r=`${PWD_COMMAND}`; export r; \
27647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 27648 $(HOST_EXPORTS) \
a90ef4bf
JM
27649 (cd $(HOST_SUBDIR)/gdb && \
27650 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 27651
a90ef4bf 27652@endif gdb
d545f33b 27653
a90ef4bf 27654# Other targets (info, dvi, pdf, etc.)
d545f33b 27655
a90ef4bf
JM
27656.PHONY: maybe-info-gdb info-gdb
27657maybe-info-gdb:
27658@if gdb
27659maybe-info-gdb: info-gdb
d545f33b 27660
a90ef4bf
JM
27661info-gdb: \
27662 configure-gdb
27663 @: $(MAKE); $(unstage)
27664 @[ -f ./gdb/Makefile ] || exit 0; \
27665 r=`${PWD_COMMAND}`; export r; \
4fa63067 27666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27667 $(HOST_EXPORTS) \
27668 for flag in $(EXTRA_HOST_FLAGS) ; do \
27669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27670 done; \
27671 echo "Doing info in gdb" ; \
27672 (cd $(HOST_SUBDIR)/gdb && \
27673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27675 "RANLIB=$${RANLIB}" \
27676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27677 info) \
27678 || exit 1
4fa63067 27679
a90ef4bf 27680@endif gdb
a7254363 27681
a90ef4bf
JM
27682.PHONY: maybe-dvi-gdb dvi-gdb
27683maybe-dvi-gdb:
27684@if gdb
27685maybe-dvi-gdb: dvi-gdb
d545f33b 27686
a90ef4bf
JM
27687dvi-gdb: \
27688 configure-gdb
27689 @: $(MAKE); $(unstage)
27690 @[ -f ./gdb/Makefile ] || exit 0; \
27691 r=`${PWD_COMMAND}`; export r; \
d545f33b 27692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27693 $(HOST_EXPORTS) \
27694 for flag in $(EXTRA_HOST_FLAGS) ; do \
27695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27696 done; \
27697 echo "Doing dvi in gdb" ; \
27698 (cd $(HOST_SUBDIR)/gdb && \
27699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27701 "RANLIB=$${RANLIB}" \
27702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27703 dvi) \
27704 || exit 1
d545f33b 27705
a90ef4bf 27706@endif gdb
d545f33b 27707
a90ef4bf
JM
27708.PHONY: maybe-pdf-gdb pdf-gdb
27709maybe-pdf-gdb:
27710@if gdb
27711maybe-pdf-gdb: pdf-gdb
d545f33b 27712
a90ef4bf
JM
27713pdf-gdb: \
27714 configure-gdb
9b980aa1 27715 @: $(MAKE); $(unstage)
a90ef4bf 27716 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27717 r=`${PWD_COMMAND}`; export r; \
27718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27719 $(HOST_EXPORTS) \
b813574b 27720 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27722 done; \
a90ef4bf
JM
27723 echo "Doing pdf in gdb" ; \
27724 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27727 "RANLIB=$${RANLIB}" \
0c24b341 27728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27729 pdf) \
2a4cbe27
NN
27730 || exit 1
27731
a90ef4bf 27732@endif gdb
2a4cbe27 27733
a90ef4bf
JM
27734.PHONY: maybe-html-gdb html-gdb
27735maybe-html-gdb:
27736@if gdb
27737maybe-html-gdb: html-gdb
2a4cbe27 27738
a90ef4bf
JM
27739html-gdb: \
27740 configure-gdb
27741 @: $(MAKE); $(unstage)
27742 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27743 r=`${PWD_COMMAND}`; export r; \
27744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27745 $(HOST_EXPORTS) \
b813574b 27746 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27748 done; \
a90ef4bf
JM
27749 echo "Doing html in gdb" ; \
27750 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27753 "RANLIB=$${RANLIB}" \
0c24b341 27754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27755 html) \
2a4cbe27
NN
27756 || exit 1
27757
a90ef4bf 27758@endif gdb
2a4cbe27 27759
a90ef4bf
JM
27760.PHONY: maybe-TAGS-gdb TAGS-gdb
27761maybe-TAGS-gdb:
27762@if gdb
27763maybe-TAGS-gdb: TAGS-gdb
56a8fe78 27764
a90ef4bf
JM
27765TAGS-gdb: \
27766 configure-gdb
27767 @: $(MAKE); $(unstage)
27768 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
27769 r=`${PWD_COMMAND}`; export r; \
27770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27771 $(HOST_EXPORTS) \
27772 for flag in $(EXTRA_HOST_FLAGS) ; do \
27773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27774 done; \
a90ef4bf
JM
27775 echo "Doing TAGS in gdb" ; \
27776 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
27777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27779 "RANLIB=$${RANLIB}" \
0c24b341 27780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27781 TAGS) \
56a8fe78
DD
27782 || exit 1
27783
a90ef4bf 27784@endif gdb
56a8fe78 27785
a90ef4bf
JM
27786.PHONY: maybe-install-info-gdb install-info-gdb
27787maybe-install-info-gdb:
27788@if gdb
27789maybe-install-info-gdb: install-info-gdb
6d389afc 27790
a90ef4bf
JM
27791install-info-gdb: \
27792 configure-gdb \
27793 info-gdb
27794 @: $(MAKE); $(unstage)
27795 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
27796 r=`${PWD_COMMAND}`; export r; \
27797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27798 $(HOST_EXPORTS) \
27799 for flag in $(EXTRA_HOST_FLAGS) ; do \
27800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27801 done; \
a90ef4bf
JM
27802 echo "Doing install-info in gdb" ; \
27803 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
27804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27806 "RANLIB=$${RANLIB}" \
0c24b341 27807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27808 install-info) \
6d389afc
MS
27809 || exit 1
27810
a90ef4bf 27811@endif gdb
6d389afc 27812
a90ef4bf
JM
27813.PHONY: maybe-install-pdf-gdb install-pdf-gdb
27814maybe-install-pdf-gdb:
27815@if gdb
27816maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 27817
a90ef4bf
JM
27818install-pdf-gdb: \
27819 configure-gdb \
27820 pdf-gdb
27821 @: $(MAKE); $(unstage)
27822 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27823 r=`${PWD_COMMAND}`; export r; \
27824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27825 $(HOST_EXPORTS) \
b813574b 27826 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27828 done; \
a90ef4bf
JM
27829 echo "Doing install-pdf in gdb" ; \
27830 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27833 "RANLIB=$${RANLIB}" \
0c24b341 27834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27835 install-pdf) \
2a4cbe27
NN
27836 || exit 1
27837
a90ef4bf 27838@endif gdb
2a4cbe27 27839
a90ef4bf
JM
27840.PHONY: maybe-install-html-gdb install-html-gdb
27841maybe-install-html-gdb:
27842@if gdb
27843maybe-install-html-gdb: install-html-gdb
2a4cbe27 27844
a90ef4bf
JM
27845install-html-gdb: \
27846 configure-gdb \
27847 html-gdb
27848 @: $(MAKE); $(unstage)
27849 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27850 r=`${PWD_COMMAND}`; export r; \
27851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27852 $(HOST_EXPORTS) \
b813574b 27853 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27855 done; \
a90ef4bf
JM
27856 echo "Doing install-html in gdb" ; \
27857 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27860 "RANLIB=$${RANLIB}" \
0c24b341 27861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27862 install-html) \
2a4cbe27
NN
27863 || exit 1
27864
a90ef4bf 27865@endif gdb
2a4cbe27 27866
a90ef4bf
JM
27867.PHONY: maybe-installcheck-gdb installcheck-gdb
27868maybe-installcheck-gdb:
27869@if gdb
27870maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 27871
a90ef4bf
JM
27872installcheck-gdb: \
27873 configure-gdb
27874 @: $(MAKE); $(unstage)
27875 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
27876 r=`${PWD_COMMAND}`; export r; \
27877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27878 $(HOST_EXPORTS) \
27879 for flag in $(EXTRA_HOST_FLAGS) ; do \
27880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27881 done; \
a90ef4bf
JM
27882 echo "Doing installcheck in gdb" ; \
27883 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
27884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27886 "RANLIB=$${RANLIB}" \
0c24b341 27887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27888 installcheck) \
a3ca38d2
DD
27889 || exit 1
27890
a90ef4bf 27891@endif gdb
a3ca38d2 27892
a90ef4bf
JM
27893.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
27894maybe-mostlyclean-gdb:
27895@if gdb
27896maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 27897
a90ef4bf
JM
27898mostlyclean-gdb:
27899 @: $(MAKE); $(unstage)
27900 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
27901 r=`${PWD_COMMAND}`; export r; \
27902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27903 $(HOST_EXPORTS) \
27904 for flag in $(EXTRA_HOST_FLAGS) ; do \
27905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27906 done; \
a90ef4bf
JM
27907 echo "Doing mostlyclean in gdb" ; \
27908 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
27909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27911 "RANLIB=$${RANLIB}" \
0c24b341 27912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27913 mostlyclean) \
108a6f8e
CD
27914 || exit 1
27915
a90ef4bf 27916@endif gdb
108a6f8e 27917
a90ef4bf
JM
27918.PHONY: maybe-clean-gdb clean-gdb
27919maybe-clean-gdb:
27920@if gdb
27921maybe-clean-gdb: clean-gdb
2a4cbe27 27922
a90ef4bf
JM
27923clean-gdb:
27924 @: $(MAKE); $(unstage)
27925 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27926 r=`${PWD_COMMAND}`; export r; \
27927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27928 $(HOST_EXPORTS) \
b813574b 27929 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27931 done; \
a90ef4bf
JM
27932 echo "Doing clean in gdb" ; \
27933 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27936 "RANLIB=$${RANLIB}" \
0c24b341 27937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27938 clean) \
2a4cbe27
NN
27939 || exit 1
27940
a90ef4bf 27941@endif gdb
2a4cbe27 27942
a90ef4bf
JM
27943.PHONY: maybe-distclean-gdb distclean-gdb
27944maybe-distclean-gdb:
27945@if gdb
27946maybe-distclean-gdb: distclean-gdb
2a4cbe27 27947
a90ef4bf
JM
27948distclean-gdb:
27949 @: $(MAKE); $(unstage)
27950 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27951 r=`${PWD_COMMAND}`; export r; \
27952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27953 $(HOST_EXPORTS) \
b813574b 27954 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27956 done; \
a90ef4bf
JM
27957 echo "Doing distclean in gdb" ; \
27958 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27961 "RANLIB=$${RANLIB}" \
0c24b341 27962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27963 distclean) \
2a4cbe27
NN
27964 || exit 1
27965
a90ef4bf 27966@endif gdb
2a4cbe27 27967
a90ef4bf
JM
27968.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
27969maybe-maintainer-clean-gdb:
27970@if gdb
27971maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 27972
a90ef4bf
JM
27973maintainer-clean-gdb:
27974 @: $(MAKE); $(unstage)
27975 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27976 r=`${PWD_COMMAND}`; export r; \
27977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27978 $(HOST_EXPORTS) \
b813574b 27979 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27981 done; \
a90ef4bf
JM
27982 echo "Doing maintainer-clean in gdb" ; \
27983 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27986 "RANLIB=$${RANLIB}" \
0c24b341 27987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27988 maintainer-clean) \
2a4cbe27
NN
27989 || exit 1
27990
a90ef4bf 27991@endif gdb
2a4cbe27 27992
2a4cbe27 27993
a7254363 27994
a90ef4bf
JM
27995.PHONY: configure-expect maybe-configure-expect
27996maybe-configure-expect:
4f0ef2d8 27997@if gcc-bootstrap
a90ef4bf 27998configure-expect: stage_current
4f0ef2d8 27999@endif gcc-bootstrap
a90ef4bf
JM
28000@if expect
28001maybe-configure-expect: configure-expect
28002configure-expect:
28003 @: $(MAKE); $(unstage)
c52c6897
PB
28004 @r=`${PWD_COMMAND}`; export r; \
28005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28006 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
28007 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
1f53ca9a 28008 $(HOST_EXPORTS) \
a90ef4bf
JM
28009 echo Configuring in $(HOST_SUBDIR)/expect; \
28010 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
28011 case $(srcdir) in \
28012 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28013 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
28014 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28015 esac; \
1b6c0831
L
28016 module_srcdir=expect; \
28017 $(SHELL) \
28018 $$s/$$module_srcdir/configure \
28019 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28020 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28021 --target=${target_alias} \
be01d343 28022 || exit 1
a90ef4bf 28023@endif expect
be01d343
PB
28024
28025
28026
be01d343 28027
8520c408 28028
a90ef4bf
JM
28029.PHONY: all-expect maybe-all-expect
28030maybe-all-expect:
28031@if gcc-bootstrap
28032all-expect: stage_current
28033@endif gcc-bootstrap
28034@if expect
28035TARGET-expect=all
28036maybe-all-expect: all-expect
28037all-expect: configure-expect
28038 @: $(MAKE); $(unstage)
c52c6897
PB
28039 @r=`${PWD_COMMAND}`; export r; \
28040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28041 $(HOST_EXPORTS) \
28042 (cd $(HOST_SUBDIR)/expect && \
b3676d82 28043 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28044 $(TARGET-expect))
28045@endif expect
8520c408 28046
a90ef4bf
JM
28047
28048
28049
28050.PHONY: check-expect maybe-check-expect
28051maybe-check-expect:
28052@if expect
28053maybe-check-expect: check-expect
28054
28055check-expect:
28056 @: $(MAKE); $(unstage)
c52c6897
PB
28057 @r=`${PWD_COMMAND}`; export r; \
28058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28059 $(HOST_EXPORTS) \
a90ef4bf
JM
28060 (cd $(HOST_SUBDIR)/expect && \
28061 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 28062
a90ef4bf
JM
28063@endif expect
28064
28065.PHONY: install-expect maybe-install-expect
28066maybe-install-expect:
28067@if expect
28068maybe-install-expect: install-expect
28069
28070install-expect: installdirs
28071 @: $(MAKE); $(unstage)
c52c6897
PB
28072 @r=`${PWD_COMMAND}`; export r; \
28073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28074 $(HOST_EXPORTS) \
a90ef4bf
JM
28075 (cd $(HOST_SUBDIR)/expect && \
28076 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 28077
a90ef4bf
JM
28078@endif expect
28079
28080.PHONY: install-strip-expect maybe-install-strip-expect
28081maybe-install-strip-expect:
28082@if expect
28083maybe-install-strip-expect: install-strip-expect
28084
28085install-strip-expect: installdirs
28086 @: $(MAKE); $(unstage)
c52c6897
PB
28087 @r=`${PWD_COMMAND}`; export r; \
28088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28089 $(HOST_EXPORTS) \
a90ef4bf
JM
28090 (cd $(HOST_SUBDIR)/expect && \
28091 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 28092
a90ef4bf 28093@endif expect
be01d343 28094
a90ef4bf 28095# Other targets (info, dvi, pdf, etc.)
be01d343 28096
a90ef4bf
JM
28097.PHONY: maybe-info-expect info-expect
28098maybe-info-expect:
28099@if expect
28100maybe-info-expect: info-expect
be01d343 28101
a90ef4bf
JM
28102info-expect: \
28103 configure-expect
28104 @: $(MAKE); $(unstage)
28105 @[ -f ./expect/Makefile ] || exit 0; \
28106 r=`${PWD_COMMAND}`; export r; \
be01d343 28107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28108 $(HOST_EXPORTS) \
28109 for flag in $(EXTRA_HOST_FLAGS) ; do \
28110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28111 done; \
28112 echo "Doing info in expect" ; \
28113 (cd $(HOST_SUBDIR)/expect && \
28114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28116 "RANLIB=$${RANLIB}" \
28117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28118 info) \
28119 || exit 1
be01d343 28120
a90ef4bf 28121@endif expect
be01d343 28122
a90ef4bf
JM
28123.PHONY: maybe-dvi-expect dvi-expect
28124maybe-dvi-expect:
28125@if expect
28126maybe-dvi-expect: dvi-expect
be01d343 28127
a90ef4bf
JM
28128dvi-expect: \
28129 configure-expect
28130 @: $(MAKE); $(unstage)
28131 @[ -f ./expect/Makefile ] || exit 0; \
28132 r=`${PWD_COMMAND}`; export r; \
be01d343 28133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28134 $(HOST_EXPORTS) \
28135 for flag in $(EXTRA_HOST_FLAGS) ; do \
28136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28137 done; \
28138 echo "Doing dvi in expect" ; \
28139 (cd $(HOST_SUBDIR)/expect && \
28140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28142 "RANLIB=$${RANLIB}" \
28143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28144 dvi) \
28145 || exit 1
be01d343 28146
a90ef4bf 28147@endif expect
be01d343 28148
a90ef4bf
JM
28149.PHONY: maybe-pdf-expect pdf-expect
28150maybe-pdf-expect:
28151@if expect
28152maybe-pdf-expect: pdf-expect
be01d343 28153
a90ef4bf
JM
28154pdf-expect: \
28155 configure-expect
28156 @: $(MAKE); $(unstage)
28157 @[ -f ./expect/Makefile ] || exit 0; \
28158 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28160 $(HOST_EXPORTS) \
a90ef4bf
JM
28161 for flag in $(EXTRA_HOST_FLAGS) ; do \
28162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28163 done; \
28164 echo "Doing pdf in expect" ; \
28165 (cd $(HOST_SUBDIR)/expect && \
28166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28168 "RANLIB=$${RANLIB}" \
28169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28170 pdf) \
28171 || exit 1
be01d343 28172
a90ef4bf 28173@endif expect
be01d343 28174
a90ef4bf
JM
28175.PHONY: maybe-html-expect html-expect
28176maybe-html-expect:
28177@if expect
28178maybe-html-expect: html-expect
be01d343 28179
a90ef4bf
JM
28180html-expect: \
28181 configure-expect
28182 @: $(MAKE); $(unstage)
28183 @[ -f ./expect/Makefile ] || exit 0; \
28184 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28186 $(HOST_EXPORTS) \
a90ef4bf
JM
28187 for flag in $(EXTRA_HOST_FLAGS) ; do \
28188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28189 done; \
28190 echo "Doing html in expect" ; \
28191 (cd $(HOST_SUBDIR)/expect && \
28192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28194 "RANLIB=$${RANLIB}" \
28195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28196 html) \
28197 || exit 1
be01d343 28198
a90ef4bf 28199@endif expect
be01d343 28200
a90ef4bf
JM
28201.PHONY: maybe-TAGS-expect TAGS-expect
28202maybe-TAGS-expect:
28203@if expect
28204maybe-TAGS-expect: TAGS-expect
9b980aa1 28205
a90ef4bf
JM
28206TAGS-expect: \
28207 configure-expect
9b980aa1 28208 @: $(MAKE); $(unstage)
a90ef4bf 28209 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28210 r=`${PWD_COMMAND}`; export r; \
28211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28212 $(HOST_EXPORTS) \
28213 for flag in $(EXTRA_HOST_FLAGS) ; do \
28214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28215 done; \
a90ef4bf
JM
28216 echo "Doing TAGS in expect" ; \
28217 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28220 "RANLIB=$${RANLIB}" \
0c24b341 28221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28222 TAGS) \
28223 || exit 1
28224
a90ef4bf 28225@endif expect
be01d343 28226
a90ef4bf
JM
28227.PHONY: maybe-install-info-expect install-info-expect
28228maybe-install-info-expect:
28229@if expect
28230maybe-install-info-expect: install-info-expect
be01d343 28231
a90ef4bf
JM
28232install-info-expect: \
28233 configure-expect \
28234 info-expect
28235 @: $(MAKE); $(unstage)
28236 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28237 r=`${PWD_COMMAND}`; export r; \
28238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28239 $(HOST_EXPORTS) \
28240 for flag in $(EXTRA_HOST_FLAGS) ; do \
28241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28242 done; \
a90ef4bf
JM
28243 echo "Doing install-info in expect" ; \
28244 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28247 "RANLIB=$${RANLIB}" \
0c24b341 28248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28249 install-info) \
28250 || exit 1
28251
a90ef4bf 28252@endif expect
be01d343 28253
a90ef4bf
JM
28254.PHONY: maybe-install-pdf-expect install-pdf-expect
28255maybe-install-pdf-expect:
28256@if expect
28257maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 28258
a90ef4bf
JM
28259install-pdf-expect: \
28260 configure-expect \
28261 pdf-expect
28262 @: $(MAKE); $(unstage)
28263 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
28264 r=`${PWD_COMMAND}`; export r; \
28265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28266 $(HOST_EXPORTS) \
28267 for flag in $(EXTRA_HOST_FLAGS) ; do \
28268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28269 done; \
a90ef4bf
JM
28270 echo "Doing install-pdf in expect" ; \
28271 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
28272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28274 "RANLIB=$${RANLIB}" \
0c24b341 28275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28276 install-pdf) \
28277 || exit 1
28278
a90ef4bf 28279@endif expect
a3ca38d2 28280
a90ef4bf
JM
28281.PHONY: maybe-install-html-expect install-html-expect
28282maybe-install-html-expect:
28283@if expect
28284maybe-install-html-expect: install-html-expect
108a6f8e 28285
a90ef4bf
JM
28286install-html-expect: \
28287 configure-expect \
28288 html-expect
28289 @: $(MAKE); $(unstage)
28290 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
28291 r=`${PWD_COMMAND}`; export r; \
28292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28293 $(HOST_EXPORTS) \
28294 for flag in $(EXTRA_HOST_FLAGS) ; do \
28295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28296 done; \
a90ef4bf
JM
28297 echo "Doing install-html in expect" ; \
28298 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
28299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28301 "RANLIB=$${RANLIB}" \
0c24b341 28302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28303 install-html) \
28304 || exit 1
28305
a90ef4bf 28306@endif expect
108a6f8e 28307
a90ef4bf
JM
28308.PHONY: maybe-installcheck-expect installcheck-expect
28309maybe-installcheck-expect:
28310@if expect
28311maybe-installcheck-expect: installcheck-expect
be01d343 28312
a90ef4bf
JM
28313installcheck-expect: \
28314 configure-expect
28315 @: $(MAKE); $(unstage)
28316 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28317 r=`${PWD_COMMAND}`; export r; \
28318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28319 $(HOST_EXPORTS) \
28320 for flag in $(EXTRA_HOST_FLAGS) ; do \
28321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28322 done; \
a90ef4bf
JM
28323 echo "Doing installcheck in expect" ; \
28324 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28327 "RANLIB=$${RANLIB}" \
0c24b341 28328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28329 installcheck) \
28330 || exit 1
28331
a90ef4bf 28332@endif expect
be01d343 28333
a90ef4bf
JM
28334.PHONY: maybe-mostlyclean-expect mostlyclean-expect
28335maybe-mostlyclean-expect:
28336@if expect
28337maybe-mostlyclean-expect: mostlyclean-expect
be01d343 28338
a90ef4bf
JM
28339mostlyclean-expect:
28340 @: $(MAKE); $(unstage)
28341 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28342 r=`${PWD_COMMAND}`; export r; \
28343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28344 $(HOST_EXPORTS) \
28345 for flag in $(EXTRA_HOST_FLAGS) ; do \
28346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28347 done; \
a90ef4bf
JM
28348 echo "Doing mostlyclean in expect" ; \
28349 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28352 "RANLIB=$${RANLIB}" \
0c24b341 28353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28354 mostlyclean) \
28355 || exit 1
28356
a90ef4bf 28357@endif expect
be01d343 28358
a90ef4bf
JM
28359.PHONY: maybe-clean-expect clean-expect
28360maybe-clean-expect:
28361@if expect
28362maybe-clean-expect: clean-expect
be01d343 28363
a90ef4bf
JM
28364clean-expect:
28365 @: $(MAKE); $(unstage)
28366 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28367 r=`${PWD_COMMAND}`; export r; \
28368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28369 $(HOST_EXPORTS) \
28370 for flag in $(EXTRA_HOST_FLAGS) ; do \
28371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28372 done; \
a90ef4bf
JM
28373 echo "Doing clean in expect" ; \
28374 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28377 "RANLIB=$${RANLIB}" \
0c24b341 28378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28379 clean) \
28380 || exit 1
28381
a90ef4bf 28382@endif expect
be01d343 28383
a90ef4bf
JM
28384.PHONY: maybe-distclean-expect distclean-expect
28385maybe-distclean-expect:
28386@if expect
28387maybe-distclean-expect: distclean-expect
be01d343 28388
a90ef4bf
JM
28389distclean-expect:
28390 @: $(MAKE); $(unstage)
28391 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28392 r=`${PWD_COMMAND}`; export r; \
28393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28394 $(HOST_EXPORTS) \
28395 for flag in $(EXTRA_HOST_FLAGS) ; do \
28396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28397 done; \
a90ef4bf
JM
28398 echo "Doing distclean in expect" ; \
28399 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28402 "RANLIB=$${RANLIB}" \
0c24b341 28403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28404 distclean) \
28405 || exit 1
28406
a90ef4bf 28407@endif expect
be01d343 28408
a90ef4bf
JM
28409.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
28410maybe-maintainer-clean-expect:
28411@if expect
28412maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 28413
a90ef4bf
JM
28414maintainer-clean-expect:
28415 @: $(MAKE); $(unstage)
28416 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28417 r=`${PWD_COMMAND}`; export r; \
28418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28419 $(HOST_EXPORTS) \
28420 for flag in $(EXTRA_HOST_FLAGS) ; do \
28421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28422 done; \
a90ef4bf
JM
28423 echo "Doing maintainer-clean in expect" ; \
28424 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28427 "RANLIB=$${RANLIB}" \
0c24b341 28428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28429 maintainer-clean) \
28430 || exit 1
28431
a90ef4bf 28432@endif expect
be01d343
PB
28433
28434
28435
a90ef4bf
JM
28436.PHONY: configure-guile maybe-configure-guile
28437maybe-configure-guile:
4f0ef2d8 28438@if gcc-bootstrap
a90ef4bf 28439configure-guile: stage_current
4f0ef2d8 28440@endif gcc-bootstrap
a90ef4bf
JM
28441@if guile
28442maybe-configure-guile: configure-guile
28443configure-guile:
0aed8855 28444 @: $(MAKE); $(unstage)
c52c6897 28445 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 28446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28447 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
28448 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
1f53ca9a 28449 $(HOST_EXPORTS) \
a90ef4bf
JM
28450 echo Configuring in $(HOST_SUBDIR)/guile; \
28451 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 28452 case $(srcdir) in \
b00612cc 28453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28454 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 28455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 28456 esac; \
1b6c0831
L
28457 module_srcdir=guile; \
28458 $(SHELL) \
28459 $$s/$$module_srcdir/configure \
28460 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28461 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28462 --target=${target_alias} \
4b1cb4fe 28463 || exit 1
a90ef4bf 28464@endif guile
4b1cb4fe 28465
a7254363
PB
28466
28467
d545f33b
PB
28468
28469
a90ef4bf
JM
28470.PHONY: all-guile maybe-all-guile
28471maybe-all-guile:
4f0ef2d8 28472@if gcc-bootstrap
a90ef4bf 28473all-guile: stage_current
4f0ef2d8 28474@endif gcc-bootstrap
a90ef4bf
JM
28475@if guile
28476TARGET-guile=all
28477maybe-all-guile: all-guile
28478all-guile: configure-guile
28479 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28480 @r=`${PWD_COMMAND}`; export r; \
28481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 28482 $(HOST_EXPORTS) \
a90ef4bf 28483 (cd $(HOST_SUBDIR)/guile && \
b3676d82 28484 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28485 $(TARGET-guile))
28486@endif guile
4b1cb4fe 28487
a7254363 28488
d545f33b
PB
28489
28490
a90ef4bf
JM
28491.PHONY: check-guile maybe-check-guile
28492maybe-check-guile:
28493@if guile
28494maybe-check-guile: check-guile
4b1cb4fe 28495
a90ef4bf 28496check-guile:
0aed8855 28497 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28498 @r=`${PWD_COMMAND}`; export r; \
28499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28500 $(HOST_EXPORTS) \
a90ef4bf 28501 (cd $(HOST_SUBDIR)/guile && \
b00612cc 28502 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 28503
a90ef4bf 28504@endif guile
4b1cb4fe 28505
a90ef4bf
JM
28506.PHONY: install-guile maybe-install-guile
28507maybe-install-guile:
28508@if guile
28509maybe-install-guile: install-guile
4b1cb4fe 28510
a90ef4bf 28511install-guile: installdirs
0aed8855 28512 @: $(MAKE); $(unstage)
b813574b
PB
28513 @r=`${PWD_COMMAND}`; export r; \
28514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 28515 $(HOST_EXPORTS) \
a90ef4bf 28516 (cd $(HOST_SUBDIR)/guile && \
2da12f12 28517 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 28518
a90ef4bf 28519@endif guile
4b1cb4fe 28520
a90ef4bf
JM
28521.PHONY: install-strip-guile maybe-install-strip-guile
28522maybe-install-strip-guile:
28523@if guile
28524maybe-install-strip-guile: install-strip-guile
9b980aa1 28525
a90ef4bf 28526install-strip-guile: installdirs
9b980aa1
RW
28527 @: $(MAKE); $(unstage)
28528 @r=`${PWD_COMMAND}`; export r; \
28529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28530 $(HOST_EXPORTS) \
a90ef4bf 28531 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
28532 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28533
a90ef4bf 28534@endif guile
9b980aa1 28535
56a8fe78 28536# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 28537
a90ef4bf
JM
28538.PHONY: maybe-info-guile info-guile
28539maybe-info-guile:
28540@if guile
28541maybe-info-guile: info-guile
4b1cb4fe 28542
a90ef4bf
JM
28543info-guile: \
28544 configure-guile
0aed8855 28545 @: $(MAKE); $(unstage)
a90ef4bf 28546 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28547 r=`${PWD_COMMAND}`; export r; \
28548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28549 $(HOST_EXPORTS) \
b813574b 28550 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28552 done; \
a90ef4bf
JM
28553 echo "Doing info in guile" ; \
28554 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28557 "RANLIB=$${RANLIB}" \
0c24b341 28558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28559 info) \
4b1cb4fe
DD
28560 || exit 1
28561
a90ef4bf 28562@endif guile
4b1cb4fe 28563
a90ef4bf
JM
28564.PHONY: maybe-dvi-guile dvi-guile
28565maybe-dvi-guile:
28566@if guile
28567maybe-dvi-guile: dvi-guile
4b1cb4fe 28568
a90ef4bf
JM
28569dvi-guile: \
28570 configure-guile
0aed8855 28571 @: $(MAKE); $(unstage)
a90ef4bf 28572 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28573 r=`${PWD_COMMAND}`; export r; \
28574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28575 $(HOST_EXPORTS) \
b813574b 28576 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28578 done; \
a90ef4bf
JM
28579 echo "Doing dvi in guile" ; \
28580 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28583 "RANLIB=$${RANLIB}" \
0c24b341 28584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28585 dvi) \
4b1cb4fe
DD
28586 || exit 1
28587
a90ef4bf 28588@endif guile
4b1cb4fe 28589
a90ef4bf
JM
28590.PHONY: maybe-pdf-guile pdf-guile
28591maybe-pdf-guile:
28592@if guile
28593maybe-pdf-guile: pdf-guile
56a8fe78 28594
a90ef4bf
JM
28595pdf-guile: \
28596 configure-guile
56a8fe78 28597 @: $(MAKE); $(unstage)
a90ef4bf 28598 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
28599 r=`${PWD_COMMAND}`; export r; \
28600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28601 $(HOST_EXPORTS) \
28602 for flag in $(EXTRA_HOST_FLAGS) ; do \
28603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28604 done; \
a90ef4bf
JM
28605 echo "Doing pdf in guile" ; \
28606 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
28607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28609 "RANLIB=$${RANLIB}" \
0c24b341 28610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
28611 pdf) \
28612 || exit 1
28613
a90ef4bf 28614@endif guile
56a8fe78 28615
a90ef4bf
JM
28616.PHONY: maybe-html-guile html-guile
28617maybe-html-guile:
28618@if guile
28619maybe-html-guile: html-guile
6d389afc 28620
a90ef4bf
JM
28621html-guile: \
28622 configure-guile
0aed8855 28623 @: $(MAKE); $(unstage)
a90ef4bf 28624 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
28625 r=`${PWD_COMMAND}`; export r; \
28626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28627 $(HOST_EXPORTS) \
28628 for flag in $(EXTRA_HOST_FLAGS) ; do \
28629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28630 done; \
a90ef4bf
JM
28631 echo "Doing html in guile" ; \
28632 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
28633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28635 "RANLIB=$${RANLIB}" \
0c24b341 28636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
28637 html) \
28638 || exit 1
28639
a90ef4bf 28640@endif guile
6d389afc 28641
a90ef4bf
JM
28642.PHONY: maybe-TAGS-guile TAGS-guile
28643maybe-TAGS-guile:
28644@if guile
28645maybe-TAGS-guile: TAGS-guile
4b1cb4fe 28646
a90ef4bf
JM
28647TAGS-guile: \
28648 configure-guile
0aed8855 28649 @: $(MAKE); $(unstage)
a90ef4bf 28650 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28651 r=`${PWD_COMMAND}`; export r; \
28652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28653 $(HOST_EXPORTS) \
b813574b 28654 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28656 done; \
a90ef4bf
JM
28657 echo "Doing TAGS in guile" ; \
28658 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28661 "RANLIB=$${RANLIB}" \
0c24b341 28662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28663 TAGS) \
4b1cb4fe
DD
28664 || exit 1
28665
a90ef4bf 28666@endif guile
4b1cb4fe 28667
a90ef4bf
JM
28668.PHONY: maybe-install-info-guile install-info-guile
28669maybe-install-info-guile:
28670@if guile
28671maybe-install-info-guile: install-info-guile
4b1cb4fe 28672
a90ef4bf
JM
28673install-info-guile: \
28674 configure-guile \
28675 info-guile
0aed8855 28676 @: $(MAKE); $(unstage)
a90ef4bf 28677 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28678 r=`${PWD_COMMAND}`; export r; \
28679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28680 $(HOST_EXPORTS) \
b813574b 28681 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28683 done; \
a90ef4bf
JM
28684 echo "Doing install-info in guile" ; \
28685 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28688 "RANLIB=$${RANLIB}" \
0c24b341 28689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28690 install-info) \
4b1cb4fe
DD
28691 || exit 1
28692
a90ef4bf 28693@endif guile
4b1cb4fe 28694
a90ef4bf
JM
28695.PHONY: maybe-install-pdf-guile install-pdf-guile
28696maybe-install-pdf-guile:
28697@if guile
28698maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 28699
a90ef4bf
JM
28700install-pdf-guile: \
28701 configure-guile \
28702 pdf-guile
a3ca38d2 28703 @: $(MAKE); $(unstage)
a90ef4bf 28704 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
28705 r=`${PWD_COMMAND}`; export r; \
28706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28707 $(HOST_EXPORTS) \
28708 for flag in $(EXTRA_HOST_FLAGS) ; do \
28709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28710 done; \
a90ef4bf
JM
28711 echo "Doing install-pdf in guile" ; \
28712 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
28713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28715 "RANLIB=$${RANLIB}" \
0c24b341 28716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28717 install-pdf) \
28718 || exit 1
28719
a90ef4bf 28720@endif guile
a3ca38d2 28721
a90ef4bf
JM
28722.PHONY: maybe-install-html-guile install-html-guile
28723maybe-install-html-guile:
28724@if guile
28725maybe-install-html-guile: install-html-guile
108a6f8e 28726
a90ef4bf
JM
28727install-html-guile: \
28728 configure-guile \
28729 html-guile
108a6f8e 28730 @: $(MAKE); $(unstage)
a90ef4bf 28731 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
28732 r=`${PWD_COMMAND}`; export r; \
28733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28734 $(HOST_EXPORTS) \
28735 for flag in $(EXTRA_HOST_FLAGS) ; do \
28736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28737 done; \
a90ef4bf
JM
28738 echo "Doing install-html in guile" ; \
28739 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
28740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28742 "RANLIB=$${RANLIB}" \
0c24b341 28743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28744 install-html) \
28745 || exit 1
28746
a90ef4bf 28747@endif guile
108a6f8e 28748
a90ef4bf
JM
28749.PHONY: maybe-installcheck-guile installcheck-guile
28750maybe-installcheck-guile:
28751@if guile
28752maybe-installcheck-guile: installcheck-guile
4b1cb4fe 28753
a90ef4bf
JM
28754installcheck-guile: \
28755 configure-guile
0aed8855 28756 @: $(MAKE); $(unstage)
a90ef4bf 28757 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28758 r=`${PWD_COMMAND}`; export r; \
28759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28760 $(HOST_EXPORTS) \
b813574b 28761 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28763 done; \
a90ef4bf
JM
28764 echo "Doing installcheck in guile" ; \
28765 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28768 "RANLIB=$${RANLIB}" \
0c24b341 28769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28770 installcheck) \
4b1cb4fe
DD
28771 || exit 1
28772
a90ef4bf 28773@endif guile
4b1cb4fe 28774
a90ef4bf
JM
28775.PHONY: maybe-mostlyclean-guile mostlyclean-guile
28776maybe-mostlyclean-guile:
28777@if guile
28778maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 28779
a90ef4bf 28780mostlyclean-guile:
0aed8855 28781 @: $(MAKE); $(unstage)
a90ef4bf 28782 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28783 r=`${PWD_COMMAND}`; export r; \
28784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28785 $(HOST_EXPORTS) \
b813574b 28786 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28788 done; \
a90ef4bf
JM
28789 echo "Doing mostlyclean in guile" ; \
28790 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28793 "RANLIB=$${RANLIB}" \
0c24b341 28794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28795 mostlyclean) \
4b1cb4fe
DD
28796 || exit 1
28797
a90ef4bf 28798@endif guile
4b1cb4fe 28799
a90ef4bf
JM
28800.PHONY: maybe-clean-guile clean-guile
28801maybe-clean-guile:
28802@if guile
28803maybe-clean-guile: clean-guile
4b1cb4fe 28804
a90ef4bf 28805clean-guile:
0aed8855 28806 @: $(MAKE); $(unstage)
a90ef4bf 28807 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28808 r=`${PWD_COMMAND}`; export r; \
28809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28810 $(HOST_EXPORTS) \
b813574b 28811 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28813 done; \
a90ef4bf
JM
28814 echo "Doing clean in guile" ; \
28815 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28818 "RANLIB=$${RANLIB}" \
0c24b341 28819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28820 clean) \
4b1cb4fe
DD
28821 || exit 1
28822
a90ef4bf 28823@endif guile
4b1cb4fe 28824
a90ef4bf
JM
28825.PHONY: maybe-distclean-guile distclean-guile
28826maybe-distclean-guile:
28827@if guile
28828maybe-distclean-guile: distclean-guile
4b1cb4fe 28829
a90ef4bf 28830distclean-guile:
0aed8855 28831 @: $(MAKE); $(unstage)
a90ef4bf 28832 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28833 r=`${PWD_COMMAND}`; export r; \
28834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28835 $(HOST_EXPORTS) \
b813574b 28836 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28838 done; \
a90ef4bf
JM
28839 echo "Doing distclean in guile" ; \
28840 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28843 "RANLIB=$${RANLIB}" \
0c24b341 28844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28845 distclean) \
4b1cb4fe
DD
28846 || exit 1
28847
a90ef4bf 28848@endif guile
4b1cb4fe 28849
a90ef4bf
JM
28850.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
28851maybe-maintainer-clean-guile:
28852@if guile
28853maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 28854
a90ef4bf 28855maintainer-clean-guile:
0aed8855 28856 @: $(MAKE); $(unstage)
a90ef4bf 28857 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28858 r=`${PWD_COMMAND}`; export r; \
28859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28860 $(HOST_EXPORTS) \
b813574b 28861 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28863 done; \
a90ef4bf
JM
28864 echo "Doing maintainer-clean in guile" ; \
28865 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28868 "RANLIB=$${RANLIB}" \
0c24b341 28869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28870 maintainer-clean) \
4b1cb4fe
DD
28871 || exit 1
28872
a90ef4bf 28873@endif guile
4b1cb4fe
DD
28874
28875
a7254363 28876
a90ef4bf
JM
28877.PHONY: configure-tk maybe-configure-tk
28878maybe-configure-tk:
4f0ef2d8 28879@if gcc-bootstrap
a90ef4bf 28880configure-tk: stage_current
4f0ef2d8 28881@endif gcc-bootstrap
a90ef4bf
JM
28882@if tk
28883maybe-configure-tk: configure-tk
28884configure-tk:
28885 @: $(MAKE); $(unstage)
c52c6897
PB
28886 @r=`${PWD_COMMAND}`; export r; \
28887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28888 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
28889 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
1f53ca9a 28890 $(HOST_EXPORTS) \
a90ef4bf
JM
28891 echo Configuring in $(HOST_SUBDIR)/tk; \
28892 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 28893 case $(srcdir) in \
b00612cc 28894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28895 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 28896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 28897 esac; \
1b6c0831
L
28898 module_srcdir=tk; \
28899 $(SHELL) \
28900 $$s/$$module_srcdir/configure \
28901 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28902 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28903 --target=${target_alias} \
2a4cbe27 28904 || exit 1
a90ef4bf 28905@endif tk
2a4cbe27 28906
a7254363
PB
28907
28908
a90ef4bf
JM
28909
28910
28911.PHONY: all-tk maybe-all-tk
28912maybe-all-tk:
28913@if gcc-bootstrap
28914all-tk: stage_current
28915@endif gcc-bootstrap
28916@if tk
28917TARGET-tk=all
28918maybe-all-tk: all-tk
28919all-tk: configure-tk
28920 @: $(MAKE); $(unstage)
c52c6897
PB
28921 @r=`${PWD_COMMAND}`; export r; \
28922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28923 $(HOST_EXPORTS) \
28924 (cd $(HOST_SUBDIR)/tk && \
b3676d82 28925 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28926 $(TARGET-tk))
28927@endif tk
d545f33b 28928
a90ef4bf
JM
28929
28930
28931
28932.PHONY: check-tk maybe-check-tk
28933maybe-check-tk:
28934@if tk
28935maybe-check-tk: check-tk
28936
28937check-tk:
28938 @: $(MAKE); $(unstage)
c52c6897
PB
28939 @r=`${PWD_COMMAND}`; export r; \
28940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28941 $(HOST_EXPORTS) \
a90ef4bf
JM
28942 (cd $(HOST_SUBDIR)/tk && \
28943 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 28944
a90ef4bf
JM
28945@endif tk
28946
28947.PHONY: install-tk maybe-install-tk
28948maybe-install-tk:
28949@if tk
28950maybe-install-tk: install-tk
28951
28952install-tk: installdirs
28953 @: $(MAKE); $(unstage)
c52c6897
PB
28954 @r=`${PWD_COMMAND}`; export r; \
28955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28956 $(HOST_EXPORTS) \
a90ef4bf
JM
28957 (cd $(HOST_SUBDIR)/tk && \
28958 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 28959
a90ef4bf
JM
28960@endif tk
28961
28962.PHONY: install-strip-tk maybe-install-strip-tk
28963maybe-install-strip-tk:
28964@if tk
28965maybe-install-strip-tk: install-strip-tk
28966
28967install-strip-tk: installdirs
28968 @: $(MAKE); $(unstage)
c52c6897
PB
28969 @r=`${PWD_COMMAND}`; export r; \
28970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28971 $(HOST_EXPORTS) \
a90ef4bf
JM
28972 (cd $(HOST_SUBDIR)/tk && \
28973 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28974
a90ef4bf 28975@endif tk
9b980aa1 28976
56a8fe78 28977# Other targets (info, dvi, pdf, etc.)
2a4cbe27 28978
a90ef4bf
JM
28979.PHONY: maybe-info-tk info-tk
28980maybe-info-tk:
28981@if tk
28982maybe-info-tk: info-tk
4fa63067 28983
a90ef4bf
JM
28984info-tk: \
28985 configure-tk
28986 @: $(MAKE); $(unstage)
28987 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28988 r=`${PWD_COMMAND}`; export r; \
28989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28990 $(HOST_EXPORTS) \
b813574b 28991 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28993 done; \
a90ef4bf
JM
28994 echo "Doing info in tk" ; \
28995 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
28996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28998 "RANLIB=$${RANLIB}" \
0c24b341 28999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29000 info) \
29001 || exit 1
29002
a90ef4bf 29003@endif tk
6d389afc 29004
a90ef4bf
JM
29005.PHONY: maybe-dvi-tk dvi-tk
29006maybe-dvi-tk:
29007@if tk
29008maybe-dvi-tk: dvi-tk
6d389afc 29009
a90ef4bf
JM
29010dvi-tk: \
29011 configure-tk
29012 @: $(MAKE); $(unstage)
29013 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
29014 r=`${PWD_COMMAND}`; export r; \
29015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29016 $(HOST_EXPORTS) \
29017 for flag in $(EXTRA_HOST_FLAGS) ; do \
29018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29019 done; \
a90ef4bf
JM
29020 echo "Doing dvi in tk" ; \
29021 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29024 "RANLIB=$${RANLIB}" \
0c24b341 29025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29026 dvi) \
2a4cbe27
NN
29027 || exit 1
29028
a90ef4bf 29029@endif tk
2a4cbe27 29030
a90ef4bf
JM
29031.PHONY: maybe-pdf-tk pdf-tk
29032maybe-pdf-tk:
29033@if tk
29034maybe-pdf-tk: pdf-tk
56a8fe78 29035
a90ef4bf
JM
29036pdf-tk: \
29037 configure-tk
29038 @: $(MAKE); $(unstage)
29039 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
29040 r=`${PWD_COMMAND}`; export r; \
29041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29042 $(HOST_EXPORTS) \
29043 for flag in $(EXTRA_HOST_FLAGS) ; do \
29044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29045 done; \
a90ef4bf
JM
29046 echo "Doing pdf in tk" ; \
29047 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
29048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29050 "RANLIB=$${RANLIB}" \
0c24b341 29051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29052 pdf) \
29053 || exit 1
29054
a90ef4bf 29055@endif tk
56a8fe78 29056
a90ef4bf
JM
29057.PHONY: maybe-html-tk html-tk
29058maybe-html-tk:
29059@if tk
29060maybe-html-tk: html-tk
2a4cbe27 29061
a90ef4bf
JM
29062html-tk: \
29063 configure-tk
29064 @: $(MAKE); $(unstage)
29065 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29066 r=`${PWD_COMMAND}`; export r; \
29067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29068 $(HOST_EXPORTS) \
b813574b 29069 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29071 done; \
a90ef4bf
JM
29072 echo "Doing html in tk" ; \
29073 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29076 "RANLIB=$${RANLIB}" \
0c24b341 29077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29078 html) \
2a4cbe27
NN
29079 || exit 1
29080
a90ef4bf 29081@endif tk
2a4cbe27 29082
a90ef4bf
JM
29083.PHONY: maybe-TAGS-tk TAGS-tk
29084maybe-TAGS-tk:
29085@if tk
29086maybe-TAGS-tk: TAGS-tk
2a4cbe27 29087
a90ef4bf
JM
29088TAGS-tk: \
29089 configure-tk
29090 @: $(MAKE); $(unstage)
29091 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29092 r=`${PWD_COMMAND}`; export r; \
29093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29094 $(HOST_EXPORTS) \
b813574b 29095 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29097 done; \
a90ef4bf
JM
29098 echo "Doing TAGS in tk" ; \
29099 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29102 "RANLIB=$${RANLIB}" \
0c24b341 29103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29104 TAGS) \
2a4cbe27
NN
29105 || exit 1
29106
a90ef4bf 29107@endif tk
2a4cbe27 29108
a90ef4bf
JM
29109.PHONY: maybe-install-info-tk install-info-tk
29110maybe-install-info-tk:
29111@if tk
29112maybe-install-info-tk: install-info-tk
2a4cbe27 29113
a90ef4bf
JM
29114install-info-tk: \
29115 configure-tk \
29116 info-tk
29117 @: $(MAKE); $(unstage)
29118 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29119 r=`${PWD_COMMAND}`; export r; \
29120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29121 $(HOST_EXPORTS) \
b813574b 29122 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29124 done; \
a90ef4bf
JM
29125 echo "Doing install-info in tk" ; \
29126 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29129 "RANLIB=$${RANLIB}" \
0c24b341 29130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29131 install-info) \
2a4cbe27
NN
29132 || exit 1
29133
a90ef4bf 29134@endif tk
2a4cbe27 29135
a90ef4bf
JM
29136.PHONY: maybe-install-pdf-tk install-pdf-tk
29137maybe-install-pdf-tk:
29138@if tk
29139maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 29140
a90ef4bf
JM
29141install-pdf-tk: \
29142 configure-tk \
29143 pdf-tk
29144 @: $(MAKE); $(unstage)
29145 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
29146 r=`${PWD_COMMAND}`; export r; \
29147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29148 $(HOST_EXPORTS) \
29149 for flag in $(EXTRA_HOST_FLAGS) ; do \
29150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29151 done; \
a90ef4bf
JM
29152 echo "Doing install-pdf in tk" ; \
29153 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
29154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29156 "RANLIB=$${RANLIB}" \
0c24b341 29157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29158 install-pdf) \
29159 || exit 1
29160
a90ef4bf 29161@endif tk
a3ca38d2 29162
a90ef4bf
JM
29163.PHONY: maybe-install-html-tk install-html-tk
29164maybe-install-html-tk:
29165@if tk
29166maybe-install-html-tk: install-html-tk
108a6f8e 29167
a90ef4bf
JM
29168install-html-tk: \
29169 configure-tk \
29170 html-tk
29171 @: $(MAKE); $(unstage)
29172 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
29173 r=`${PWD_COMMAND}`; export r; \
29174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29175 $(HOST_EXPORTS) \
29176 for flag in $(EXTRA_HOST_FLAGS) ; do \
29177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29178 done; \
a90ef4bf
JM
29179 echo "Doing install-html in tk" ; \
29180 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
29181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29183 "RANLIB=$${RANLIB}" \
0c24b341 29184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29185 install-html) \
29186 || exit 1
29187
a90ef4bf 29188@endif tk
108a6f8e 29189
a90ef4bf
JM
29190.PHONY: maybe-installcheck-tk installcheck-tk
29191maybe-installcheck-tk:
29192@if tk
29193maybe-installcheck-tk: installcheck-tk
2a4cbe27 29194
a90ef4bf
JM
29195installcheck-tk: \
29196 configure-tk
29197 @: $(MAKE); $(unstage)
29198 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29199 r=`${PWD_COMMAND}`; export r; \
29200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29201 $(HOST_EXPORTS) \
b813574b 29202 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29204 done; \
a90ef4bf
JM
29205 echo "Doing installcheck in tk" ; \
29206 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29209 "RANLIB=$${RANLIB}" \
0c24b341 29210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29211 installcheck) \
2a4cbe27
NN
29212 || exit 1
29213
a90ef4bf 29214@endif tk
2a4cbe27 29215
a90ef4bf
JM
29216.PHONY: maybe-mostlyclean-tk mostlyclean-tk
29217maybe-mostlyclean-tk:
29218@if tk
29219maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 29220
a90ef4bf
JM
29221mostlyclean-tk:
29222 @: $(MAKE); $(unstage)
29223 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29224 r=`${PWD_COMMAND}`; export r; \
29225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29226 $(HOST_EXPORTS) \
b813574b 29227 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29229 done; \
a90ef4bf
JM
29230 echo "Doing mostlyclean in tk" ; \
29231 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29234 "RANLIB=$${RANLIB}" \
0c24b341 29235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29236 mostlyclean) \
2a4cbe27
NN
29237 || exit 1
29238
a90ef4bf 29239@endif tk
2a4cbe27 29240
a90ef4bf
JM
29241.PHONY: maybe-clean-tk clean-tk
29242maybe-clean-tk:
29243@if tk
29244maybe-clean-tk: clean-tk
2a4cbe27 29245
a90ef4bf
JM
29246clean-tk:
29247 @: $(MAKE); $(unstage)
29248 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29249 r=`${PWD_COMMAND}`; export r; \
29250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29251 $(HOST_EXPORTS) \
b813574b 29252 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29254 done; \
a90ef4bf
JM
29255 echo "Doing clean in tk" ; \
29256 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29259 "RANLIB=$${RANLIB}" \
0c24b341 29260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29261 clean) \
2a4cbe27
NN
29262 || exit 1
29263
a90ef4bf 29264@endif tk
2a4cbe27 29265
a90ef4bf
JM
29266.PHONY: maybe-distclean-tk distclean-tk
29267maybe-distclean-tk:
29268@if tk
29269maybe-distclean-tk: distclean-tk
2a4cbe27 29270
a90ef4bf
JM
29271distclean-tk:
29272 @: $(MAKE); $(unstage)
29273 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29274 r=`${PWD_COMMAND}`; export r; \
29275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29276 $(HOST_EXPORTS) \
b813574b 29277 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29279 done; \
a90ef4bf
JM
29280 echo "Doing distclean in tk" ; \
29281 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29284 "RANLIB=$${RANLIB}" \
0c24b341 29285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29286 distclean) \
2a4cbe27
NN
29287 || exit 1
29288
a90ef4bf 29289@endif tk
2a4cbe27 29290
a90ef4bf
JM
29291.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
29292maybe-maintainer-clean-tk:
29293@if tk
29294maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 29295
a90ef4bf
JM
29296maintainer-clean-tk:
29297 @: $(MAKE); $(unstage)
29298 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29299 r=`${PWD_COMMAND}`; export r; \
29300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29301 $(HOST_EXPORTS) \
b813574b 29302 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29304 done; \
a90ef4bf
JM
29305 echo "Doing maintainer-clean in tk" ; \
29306 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29309 "RANLIB=$${RANLIB}" \
0c24b341 29310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29311 maintainer-clean) \
2a4cbe27
NN
29312 || exit 1
29313
a90ef4bf 29314@endif tk
2a4cbe27 29315
2a4cbe27 29316
a7254363 29317
a90ef4bf
JM
29318.PHONY: configure-libtermcap maybe-configure-libtermcap
29319maybe-configure-libtermcap:
dc448a7b 29320@if gcc-bootstrap
a90ef4bf 29321configure-libtermcap: stage_current
dc448a7b 29322@endif gcc-bootstrap
a90ef4bf
JM
29323@if libtermcap
29324maybe-configure-libtermcap: configure-libtermcap
29325configure-libtermcap:
dc448a7b
TT
29326 @: $(MAKE); $(unstage)
29327 @r=`${PWD_COMMAND}`; export r; \
29328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29329 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
29330 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
1f53ca9a 29331 $(HOST_EXPORTS) \
a90ef4bf
JM
29332 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
29333 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
29334 case $(srcdir) in \
29335 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29336 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
29337 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29338 esac; \
1b6c0831
L
29339 module_srcdir=libtermcap; \
29340 $(SHELL) \
29341 $$s/$$module_srcdir/configure \
29342 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 29343 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29344 --target=${target_alias} \
dc448a7b 29345 || exit 1
a90ef4bf 29346@endif libtermcap
dc448a7b
TT
29347
29348
29349
29350
29351
a90ef4bf
JM
29352.PHONY: all-libtermcap maybe-all-libtermcap
29353maybe-all-libtermcap:
dc448a7b 29354@if gcc-bootstrap
a90ef4bf 29355all-libtermcap: stage_current
dc448a7b 29356@endif gcc-bootstrap
a90ef4bf
JM
29357@if libtermcap
29358TARGET-libtermcap=all
29359maybe-all-libtermcap: all-libtermcap
29360all-libtermcap: configure-libtermcap
dc448a7b
TT
29361 @: $(MAKE); $(unstage)
29362 @r=`${PWD_COMMAND}`; export r; \
29363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29364 $(HOST_EXPORTS) \
a90ef4bf 29365 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 29366 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29367 $(TARGET-libtermcap))
29368@endif libtermcap
dc448a7b
TT
29369
29370
29371
29372
a90ef4bf
JM
29373.PHONY: check-libtermcap maybe-check-libtermcap
29374maybe-check-libtermcap:
29375@if libtermcap
29376maybe-check-libtermcap: check-libtermcap
dc448a7b 29377
a90ef4bf
JM
29378check-libtermcap:
29379
29380@endif libtermcap
29381
29382.PHONY: install-libtermcap maybe-install-libtermcap
29383maybe-install-libtermcap:
29384@if libtermcap
29385maybe-install-libtermcap: install-libtermcap
29386
29387install-libtermcap: installdirs
dc448a7b
TT
29388 @: $(MAKE); $(unstage)
29389 @r=`${PWD_COMMAND}`; export r; \
29390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29391 $(HOST_EXPORTS) \
a90ef4bf
JM
29392 (cd $(HOST_SUBDIR)/libtermcap && \
29393 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 29394
a90ef4bf 29395@endif libtermcap
dc448a7b 29396
a90ef4bf
JM
29397.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
29398maybe-install-strip-libtermcap:
29399@if libtermcap
29400maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 29401
a90ef4bf
JM
29402install-strip-libtermcap: installdirs
29403 @: $(MAKE); $(unstage)
29404 @r=`${PWD_COMMAND}`; export r; \
29405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29406 $(HOST_EXPORTS) \
29407 (cd $(HOST_SUBDIR)/libtermcap && \
29408 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 29409
a90ef4bf 29410@endif libtermcap
9b980aa1 29411
dc448a7b
TT
29412# Other targets (info, dvi, pdf, etc.)
29413
a90ef4bf
JM
29414.PHONY: maybe-info-libtermcap info-libtermcap
29415maybe-info-libtermcap:
29416@if libtermcap
29417maybe-info-libtermcap: info-libtermcap
dc448a7b 29418
a90ef4bf
JM
29419info-libtermcap: \
29420 configure-libtermcap
dc448a7b 29421 @: $(MAKE); $(unstage)
a90ef4bf 29422 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29423 r=`${PWD_COMMAND}`; export r; \
29424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29425 $(HOST_EXPORTS) \
29426 for flag in $(EXTRA_HOST_FLAGS) ; do \
29427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29428 done; \
a90ef4bf
JM
29429 echo "Doing info in libtermcap" ; \
29430 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29433 "RANLIB=$${RANLIB}" \
29434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29435 info) \
29436 || exit 1
29437
a90ef4bf 29438@endif libtermcap
dc448a7b 29439
a90ef4bf
JM
29440.PHONY: maybe-dvi-libtermcap dvi-libtermcap
29441maybe-dvi-libtermcap:
29442@if libtermcap
29443maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 29444
a90ef4bf
JM
29445dvi-libtermcap: \
29446 configure-libtermcap
dc448a7b 29447 @: $(MAKE); $(unstage)
a90ef4bf 29448 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29449 r=`${PWD_COMMAND}`; export r; \
29450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29451 $(HOST_EXPORTS) \
29452 for flag in $(EXTRA_HOST_FLAGS) ; do \
29453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29454 done; \
a90ef4bf
JM
29455 echo "Doing dvi in libtermcap" ; \
29456 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29459 "RANLIB=$${RANLIB}" \
29460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29461 dvi) \
29462 || exit 1
29463
a90ef4bf 29464@endif libtermcap
dc448a7b 29465
a90ef4bf
JM
29466.PHONY: maybe-pdf-libtermcap pdf-libtermcap
29467maybe-pdf-libtermcap:
29468@if libtermcap
29469maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 29470
a90ef4bf
JM
29471pdf-libtermcap: \
29472 configure-libtermcap
dc448a7b 29473 @: $(MAKE); $(unstage)
a90ef4bf 29474 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29475 r=`${PWD_COMMAND}`; export r; \
29476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29477 $(HOST_EXPORTS) \
29478 for flag in $(EXTRA_HOST_FLAGS) ; do \
29479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29480 done; \
a90ef4bf
JM
29481 echo "Doing pdf in libtermcap" ; \
29482 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29485 "RANLIB=$${RANLIB}" \
29486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29487 pdf) \
29488 || exit 1
29489
a90ef4bf 29490@endif libtermcap
dc448a7b 29491
a90ef4bf
JM
29492.PHONY: maybe-html-libtermcap html-libtermcap
29493maybe-html-libtermcap:
29494@if libtermcap
29495maybe-html-libtermcap: html-libtermcap
dc448a7b 29496
a90ef4bf
JM
29497html-libtermcap: \
29498 configure-libtermcap
dc448a7b 29499 @: $(MAKE); $(unstage)
a90ef4bf 29500 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29501 r=`${PWD_COMMAND}`; export r; \
29502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29503 $(HOST_EXPORTS) \
29504 for flag in $(EXTRA_HOST_FLAGS) ; do \
29505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29506 done; \
a90ef4bf
JM
29507 echo "Doing html in libtermcap" ; \
29508 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29511 "RANLIB=$${RANLIB}" \
29512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29513 html) \
29514 || exit 1
29515
a90ef4bf 29516@endif libtermcap
dc448a7b 29517
a90ef4bf
JM
29518.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
29519maybe-TAGS-libtermcap:
29520@if libtermcap
29521maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 29522
a90ef4bf
JM
29523TAGS-libtermcap: \
29524 configure-libtermcap
dc448a7b 29525 @: $(MAKE); $(unstage)
a90ef4bf 29526 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29527 r=`${PWD_COMMAND}`; export r; \
29528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29529 $(HOST_EXPORTS) \
29530 for flag in $(EXTRA_HOST_FLAGS) ; do \
29531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29532 done; \
a90ef4bf
JM
29533 echo "Doing TAGS in libtermcap" ; \
29534 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29537 "RANLIB=$${RANLIB}" \
29538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29539 TAGS) \
29540 || exit 1
29541
a90ef4bf 29542@endif libtermcap
dc448a7b 29543
a90ef4bf
JM
29544.PHONY: maybe-install-info-libtermcap install-info-libtermcap
29545maybe-install-info-libtermcap:
29546@if libtermcap
29547maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 29548
a90ef4bf
JM
29549install-info-libtermcap: \
29550 configure-libtermcap \
29551 info-libtermcap
dc448a7b 29552 @: $(MAKE); $(unstage)
a90ef4bf 29553 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29554 r=`${PWD_COMMAND}`; export r; \
29555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29556 $(HOST_EXPORTS) \
29557 for flag in $(EXTRA_HOST_FLAGS) ; do \
29558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29559 done; \
a90ef4bf
JM
29560 echo "Doing install-info in libtermcap" ; \
29561 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29564 "RANLIB=$${RANLIB}" \
29565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29566 install-info) \
dc448a7b
TT
29567 || exit 1
29568
a90ef4bf 29569@endif libtermcap
dc448a7b 29570
a90ef4bf
JM
29571.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
29572maybe-install-pdf-libtermcap:
29573@if libtermcap
29574maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 29575
a90ef4bf
JM
29576install-pdf-libtermcap: \
29577 configure-libtermcap \
29578 pdf-libtermcap
dc448a7b 29579 @: $(MAKE); $(unstage)
a90ef4bf 29580 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29581 r=`${PWD_COMMAND}`; export r; \
29582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29583 $(HOST_EXPORTS) \
29584 for flag in $(EXTRA_HOST_FLAGS) ; do \
29585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29586 done; \
a90ef4bf
JM
29587 echo "Doing install-pdf in libtermcap" ; \
29588 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29591 "RANLIB=$${RANLIB}" \
29592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29593 install-pdf) \
dc448a7b
TT
29594 || exit 1
29595
a90ef4bf 29596@endif libtermcap
dc448a7b 29597
a90ef4bf
JM
29598.PHONY: maybe-install-html-libtermcap install-html-libtermcap
29599maybe-install-html-libtermcap:
29600@if libtermcap
29601maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 29602
a90ef4bf
JM
29603install-html-libtermcap: \
29604 configure-libtermcap \
29605 html-libtermcap
dc448a7b 29606 @: $(MAKE); $(unstage)
a90ef4bf 29607 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29608 r=`${PWD_COMMAND}`; export r; \
29609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29610 $(HOST_EXPORTS) \
29611 for flag in $(EXTRA_HOST_FLAGS) ; do \
29612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29613 done; \
a90ef4bf
JM
29614 echo "Doing install-html in libtermcap" ; \
29615 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29618 "RANLIB=$${RANLIB}" \
29619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29620 install-html) \
dc448a7b
TT
29621 || exit 1
29622
a90ef4bf 29623@endif libtermcap
dc448a7b 29624
a90ef4bf
JM
29625.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
29626maybe-installcheck-libtermcap:
29627@if libtermcap
29628maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 29629
a90ef4bf
JM
29630installcheck-libtermcap: \
29631 configure-libtermcap
dc448a7b 29632 @: $(MAKE); $(unstage)
a90ef4bf 29633 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29634 r=`${PWD_COMMAND}`; export r; \
29635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29636 $(HOST_EXPORTS) \
29637 for flag in $(EXTRA_HOST_FLAGS) ; do \
29638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29639 done; \
a90ef4bf
JM
29640 echo "Doing installcheck in libtermcap" ; \
29641 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29644 "RANLIB=$${RANLIB}" \
29645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29646 installcheck) \
dc448a7b
TT
29647 || exit 1
29648
a90ef4bf 29649@endif libtermcap
dc448a7b 29650
a90ef4bf
JM
29651.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
29652maybe-mostlyclean-libtermcap:
29653@if libtermcap
29654maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 29655
a90ef4bf
JM
29656# libtermcap doesn't support mostlyclean.
29657mostlyclean-libtermcap:
dc448a7b 29658
a90ef4bf 29659@endif libtermcap
dc448a7b 29660
a90ef4bf
JM
29661.PHONY: maybe-clean-libtermcap clean-libtermcap
29662maybe-clean-libtermcap:
29663@if libtermcap
29664maybe-clean-libtermcap: clean-libtermcap
dc448a7b 29665
a90ef4bf
JM
29666# libtermcap doesn't support clean.
29667clean-libtermcap:
dc448a7b 29668
a90ef4bf
JM
29669@endif libtermcap
29670
29671.PHONY: maybe-distclean-libtermcap distclean-libtermcap
29672maybe-distclean-libtermcap:
29673@if libtermcap
29674maybe-distclean-libtermcap: distclean-libtermcap
29675
29676# libtermcap doesn't support distclean.
29677distclean-libtermcap:
29678
29679@endif libtermcap
29680
29681.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
29682maybe-maintainer-clean-libtermcap:
29683@if libtermcap
29684maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
29685
29686# libtermcap doesn't support maintainer-clean.
29687maintainer-clean-libtermcap:
29688
29689@endif libtermcap
29690
29691
29692
29693.PHONY: configure-utils maybe-configure-utils
29694maybe-configure-utils:
29695@if gcc-bootstrap
29696configure-utils: stage_current
29697@endif gcc-bootstrap
29698@if utils
29699maybe-configure-utils: configure-utils
29700configure-utils:
29701 @: $(MAKE); $(unstage)
c52c6897 29702 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29704 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
29705 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
1f53ca9a 29706 $(HOST_EXPORTS) \
a90ef4bf
JM
29707 echo Configuring in $(HOST_SUBDIR)/utils; \
29708 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 29709 case $(srcdir) in \
b00612cc 29710 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29711 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 29712 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29713 esac; \
1b6c0831
L
29714 module_srcdir=utils; \
29715 $(SHELL) \
29716 $$s/$$module_srcdir/configure \
29717 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29718 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29719 --target=${target_alias} \
2a4cbe27 29720 || exit 1
a90ef4bf 29721@endif utils
2a4cbe27 29722
a7254363
PB
29723
29724
d545f33b
PB
29725
29726
a90ef4bf
JM
29727.PHONY: all-utils maybe-all-utils
29728maybe-all-utils:
4f0ef2d8 29729@if gcc-bootstrap
a90ef4bf 29730all-utils: stage_current
4f0ef2d8 29731@endif gcc-bootstrap
a90ef4bf
JM
29732@if utils
29733TARGET-utils=all
29734maybe-all-utils: all-utils
29735all-utils: configure-utils
0aed8855 29736 @: $(MAKE); $(unstage)
4fa63067
NN
29737 @r=`${PWD_COMMAND}`; export r; \
29738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29739 $(HOST_EXPORTS) \
a90ef4bf 29740 (cd $(HOST_SUBDIR)/utils && \
b3676d82 29741 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29742 $(TARGET-utils))
29743@endif utils
2a4cbe27 29744
a7254363 29745
d545f33b
PB
29746
29747
a90ef4bf
JM
29748.PHONY: check-utils maybe-check-utils
29749maybe-check-utils:
29750@if utils
29751maybe-check-utils: check-utils
2a4cbe27 29752
a90ef4bf 29753check-utils:
2a4cbe27 29754
a90ef4bf 29755@endif utils
2a4cbe27 29756
a90ef4bf
JM
29757.PHONY: install-utils maybe-install-utils
29758maybe-install-utils:
29759@if utils
29760maybe-install-utils: install-utils
2a4cbe27 29761
a90ef4bf 29762install-utils: installdirs
0aed8855 29763 @: $(MAKE); $(unstage)
4fa63067 29764 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29766 $(HOST_EXPORTS) \
a90ef4bf 29767 (cd $(HOST_SUBDIR)/utils && \
2da12f12 29768 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 29769
a90ef4bf 29770@endif utils
2a4cbe27 29771
a90ef4bf
JM
29772.PHONY: install-strip-utils maybe-install-strip-utils
29773maybe-install-strip-utils:
29774@if utils
29775maybe-install-strip-utils: install-strip-utils
9b980aa1 29776
a90ef4bf 29777install-strip-utils: installdirs
9b980aa1
RW
29778 @: $(MAKE); $(unstage)
29779 @r=`${PWD_COMMAND}`; export r; \
29780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29781 $(HOST_EXPORTS) \
a90ef4bf 29782 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
29783 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29784
a90ef4bf 29785@endif utils
9b980aa1 29786
56a8fe78 29787# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29788
a90ef4bf
JM
29789.PHONY: maybe-info-utils info-utils
29790maybe-info-utils:
29791@if utils
29792maybe-info-utils: info-utils
4fa63067 29793
a90ef4bf
JM
29794info-utils: \
29795 configure-utils
0aed8855 29796 @: $(MAKE); $(unstage)
a90ef4bf 29797 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29798 r=`${PWD_COMMAND}`; export r; \
29799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29800 $(HOST_EXPORTS) \
b813574b 29801 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29803 done; \
a90ef4bf
JM
29804 echo "Doing info in utils" ; \
29805 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29808 "RANLIB=$${RANLIB}" \
0c24b341 29809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29810 info) \
2a4cbe27
NN
29811 || exit 1
29812
a90ef4bf 29813@endif utils
2a4cbe27 29814
a90ef4bf
JM
29815.PHONY: maybe-dvi-utils dvi-utils
29816maybe-dvi-utils:
29817@if utils
29818maybe-dvi-utils: dvi-utils
2a4cbe27 29819
a90ef4bf
JM
29820dvi-utils: \
29821 configure-utils
0aed8855 29822 @: $(MAKE); $(unstage)
a90ef4bf 29823 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29824 r=`${PWD_COMMAND}`; export r; \
29825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29826 $(HOST_EXPORTS) \
b813574b 29827 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29829 done; \
a90ef4bf
JM
29830 echo "Doing dvi in utils" ; \
29831 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29834 "RANLIB=$${RANLIB}" \
0c24b341 29835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29836 dvi) \
2a4cbe27
NN
29837 || exit 1
29838
a90ef4bf 29839@endif utils
2a4cbe27 29840
a90ef4bf
JM
29841.PHONY: maybe-pdf-utils pdf-utils
29842maybe-pdf-utils:
29843@if utils
29844maybe-pdf-utils: pdf-utils
56a8fe78 29845
a90ef4bf
JM
29846pdf-utils: \
29847 configure-utils
56a8fe78 29848 @: $(MAKE); $(unstage)
a90ef4bf 29849 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
29850 r=`${PWD_COMMAND}`; export r; \
29851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29852 $(HOST_EXPORTS) \
29853 for flag in $(EXTRA_HOST_FLAGS) ; do \
29854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29855 done; \
a90ef4bf
JM
29856 echo "Doing pdf in utils" ; \
29857 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
29858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29860 "RANLIB=$${RANLIB}" \
0c24b341 29861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29862 pdf) \
29863 || exit 1
29864
a90ef4bf 29865@endif utils
56a8fe78 29866
a90ef4bf
JM
29867.PHONY: maybe-html-utils html-utils
29868maybe-html-utils:
29869@if utils
29870maybe-html-utils: html-utils
6d389afc 29871
a90ef4bf
JM
29872html-utils: \
29873 configure-utils
0aed8855 29874 @: $(MAKE); $(unstage)
a90ef4bf 29875 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
29876 r=`${PWD_COMMAND}`; export r; \
29877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29878 $(HOST_EXPORTS) \
29879 for flag in $(EXTRA_HOST_FLAGS) ; do \
29880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29881 done; \
a90ef4bf
JM
29882 echo "Doing html in utils" ; \
29883 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
29884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29886 "RANLIB=$${RANLIB}" \
0c24b341 29887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29888 html) \
29889 || exit 1
29890
a90ef4bf 29891@endif utils
6d389afc 29892
a90ef4bf
JM
29893.PHONY: maybe-TAGS-utils TAGS-utils
29894maybe-TAGS-utils:
29895@if utils
29896maybe-TAGS-utils: TAGS-utils
2a4cbe27 29897
a90ef4bf
JM
29898TAGS-utils: \
29899 configure-utils
0aed8855 29900 @: $(MAKE); $(unstage)
a90ef4bf 29901 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29902 r=`${PWD_COMMAND}`; export r; \
29903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29904 $(HOST_EXPORTS) \
b813574b 29905 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29907 done; \
a90ef4bf
JM
29908 echo "Doing TAGS in utils" ; \
29909 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29912 "RANLIB=$${RANLIB}" \
0c24b341 29913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29914 TAGS) \
2a4cbe27
NN
29915 || exit 1
29916
a90ef4bf 29917@endif utils
2a4cbe27 29918
a90ef4bf
JM
29919.PHONY: maybe-install-info-utils install-info-utils
29920maybe-install-info-utils:
29921@if utils
29922maybe-install-info-utils: install-info-utils
2a4cbe27 29923
a90ef4bf
JM
29924install-info-utils: \
29925 configure-utils \
29926 info-utils
0aed8855 29927 @: $(MAKE); $(unstage)
a90ef4bf 29928 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29929 r=`${PWD_COMMAND}`; export r; \
29930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29931 $(HOST_EXPORTS) \
b813574b 29932 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29934 done; \
a90ef4bf
JM
29935 echo "Doing install-info in utils" ; \
29936 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29939 "RANLIB=$${RANLIB}" \
0c24b341 29940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29941 install-info) \
2a4cbe27
NN
29942 || exit 1
29943
a90ef4bf 29944@endif utils
2a4cbe27 29945
a90ef4bf
JM
29946.PHONY: maybe-install-pdf-utils install-pdf-utils
29947maybe-install-pdf-utils:
29948@if utils
29949maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 29950
a90ef4bf
JM
29951install-pdf-utils: \
29952 configure-utils \
29953 pdf-utils
a3ca38d2 29954 @: $(MAKE); $(unstage)
a90ef4bf 29955 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
29956 r=`${PWD_COMMAND}`; export r; \
29957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29958 $(HOST_EXPORTS) \
29959 for flag in $(EXTRA_HOST_FLAGS) ; do \
29960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29961 done; \
a90ef4bf
JM
29962 echo "Doing install-pdf in utils" ; \
29963 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
29964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29966 "RANLIB=$${RANLIB}" \
0c24b341 29967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29968 install-pdf) \
29969 || exit 1
29970
a90ef4bf 29971@endif utils
a3ca38d2 29972
a90ef4bf
JM
29973.PHONY: maybe-install-html-utils install-html-utils
29974maybe-install-html-utils:
29975@if utils
29976maybe-install-html-utils: install-html-utils
108a6f8e 29977
a90ef4bf
JM
29978install-html-utils: \
29979 configure-utils \
29980 html-utils
108a6f8e 29981 @: $(MAKE); $(unstage)
a90ef4bf 29982 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
29983 r=`${PWD_COMMAND}`; export r; \
29984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29985 $(HOST_EXPORTS) \
29986 for flag in $(EXTRA_HOST_FLAGS) ; do \
29987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29988 done; \
a90ef4bf
JM
29989 echo "Doing install-html in utils" ; \
29990 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
29991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29993 "RANLIB=$${RANLIB}" \
0c24b341 29994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29995 install-html) \
29996 || exit 1
29997
a90ef4bf 29998@endif utils
108a6f8e 29999
a90ef4bf
JM
30000.PHONY: maybe-installcheck-utils installcheck-utils
30001maybe-installcheck-utils:
30002@if utils
30003maybe-installcheck-utils: installcheck-utils
2a4cbe27 30004
a90ef4bf
JM
30005installcheck-utils: \
30006 configure-utils
0aed8855 30007 @: $(MAKE); $(unstage)
a90ef4bf 30008 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30009 r=`${PWD_COMMAND}`; export r; \
30010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30011 $(HOST_EXPORTS) \
b813574b 30012 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30014 done; \
a90ef4bf
JM
30015 echo "Doing installcheck in utils" ; \
30016 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30019 "RANLIB=$${RANLIB}" \
0c24b341 30020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30021 installcheck) \
2a4cbe27
NN
30022 || exit 1
30023
a90ef4bf 30024@endif utils
2a4cbe27 30025
a90ef4bf
JM
30026.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30027maybe-mostlyclean-utils:
30028@if utils
30029maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 30030
a90ef4bf 30031mostlyclean-utils:
0aed8855 30032 @: $(MAKE); $(unstage)
a90ef4bf 30033 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30034 r=`${PWD_COMMAND}`; export r; \
30035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30036 $(HOST_EXPORTS) \
b813574b 30037 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30039 done; \
a90ef4bf
JM
30040 echo "Doing mostlyclean in utils" ; \
30041 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30044 "RANLIB=$${RANLIB}" \
0c24b341 30045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30046 mostlyclean) \
2a4cbe27
NN
30047 || exit 1
30048
a90ef4bf 30049@endif utils
2a4cbe27 30050
a90ef4bf
JM
30051.PHONY: maybe-clean-utils clean-utils
30052maybe-clean-utils:
30053@if utils
30054maybe-clean-utils: clean-utils
2a4cbe27 30055
a90ef4bf 30056clean-utils:
0aed8855 30057 @: $(MAKE); $(unstage)
a90ef4bf 30058 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30059 r=`${PWD_COMMAND}`; export r; \
30060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30061 $(HOST_EXPORTS) \
b813574b 30062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30064 done; \
a90ef4bf
JM
30065 echo "Doing clean in utils" ; \
30066 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30069 "RANLIB=$${RANLIB}" \
0c24b341 30070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30071 clean) \
2a4cbe27
NN
30072 || exit 1
30073
a90ef4bf 30074@endif utils
2a4cbe27 30075
a90ef4bf
JM
30076.PHONY: maybe-distclean-utils distclean-utils
30077maybe-distclean-utils:
30078@if utils
30079maybe-distclean-utils: distclean-utils
2a4cbe27 30080
a90ef4bf 30081distclean-utils:
0aed8855 30082 @: $(MAKE); $(unstage)
a90ef4bf 30083 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30084 r=`${PWD_COMMAND}`; export r; \
30085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30086 $(HOST_EXPORTS) \
b813574b 30087 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30089 done; \
a90ef4bf
JM
30090 echo "Doing distclean in utils" ; \
30091 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30094 "RANLIB=$${RANLIB}" \
0c24b341 30095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30096 distclean) \
2a4cbe27
NN
30097 || exit 1
30098
a90ef4bf 30099@endif utils
2a4cbe27 30100
a90ef4bf
JM
30101.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30102maybe-maintainer-clean-utils:
30103@if utils
30104maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 30105
a90ef4bf 30106maintainer-clean-utils:
0aed8855 30107 @: $(MAKE); $(unstage)
a90ef4bf 30108 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30109 r=`${PWD_COMMAND}`; export r; \
30110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30111 $(HOST_EXPORTS) \
b813574b 30112 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30114 done; \
a90ef4bf
JM
30115 echo "Doing maintainer-clean in utils" ; \
30116 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30119 "RANLIB=$${RANLIB}" \
0c24b341 30120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30121 maintainer-clean) \
2a4cbe27
NN
30122 || exit 1
30123
a90ef4bf 30124@endif utils
2a4cbe27 30125
2a4cbe27 30126
a7254363 30127
a90ef4bf
JM
30128.PHONY: configure-gnattools maybe-configure-gnattools
30129maybe-configure-gnattools:
4f0ef2d8 30130@if gcc-bootstrap
a90ef4bf 30131configure-gnattools: stage_current
4f0ef2d8 30132@endif gcc-bootstrap
a90ef4bf
JM
30133@if gnattools
30134maybe-configure-gnattools: configure-gnattools
30135configure-gnattools:
0aed8855 30136 @: $(MAKE); $(unstage)
c52c6897 30137 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30139 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
30140 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
1f53ca9a 30141 $(HOST_EXPORTS) \
a90ef4bf
JM
30142 echo Configuring in $(HOST_SUBDIR)/gnattools; \
30143 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 30144 case $(srcdir) in \
b00612cc 30145 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30146 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 30147 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30148 esac; \
1b6c0831
L
30149 module_srcdir=gnattools; \
30150 $(SHELL) \
30151 $$s/$$module_srcdir/configure \
30152 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30153 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30154 --target=${target_alias} \
2a4cbe27 30155 || exit 1
a90ef4bf 30156@endif gnattools
2a4cbe27 30157
a7254363
PB
30158
30159
d545f33b
PB
30160
30161
a90ef4bf
JM
30162.PHONY: all-gnattools maybe-all-gnattools
30163maybe-all-gnattools:
4f0ef2d8 30164@if gcc-bootstrap
a90ef4bf 30165all-gnattools: stage_current
4f0ef2d8 30166@endif gcc-bootstrap
a90ef4bf
JM
30167@if gnattools
30168TARGET-gnattools=all
30169maybe-all-gnattools: all-gnattools
30170all-gnattools: configure-gnattools
0aed8855 30171 @: $(MAKE); $(unstage)
4fa63067
NN
30172 @r=`${PWD_COMMAND}`; export r; \
30173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30174 $(HOST_EXPORTS) \
a90ef4bf 30175 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 30176 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30177 $(TARGET-gnattools))
30178@endif gnattools
4fa63067 30179
a7254363 30180
d545f33b
PB
30181
30182
a90ef4bf
JM
30183.PHONY: check-gnattools maybe-check-gnattools
30184maybe-check-gnattools:
30185@if gnattools
30186maybe-check-gnattools: check-gnattools
2a4cbe27 30187
a90ef4bf 30188check-gnattools:
0aed8855 30189 @: $(MAKE); $(unstage)
4fa63067
NN
30190 @r=`${PWD_COMMAND}`; export r; \
30191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30192 $(HOST_EXPORTS) \
a90ef4bf 30193 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 30194 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30195
a90ef4bf 30196@endif gnattools
4fa63067 30197
a90ef4bf
JM
30198.PHONY: install-gnattools maybe-install-gnattools
30199maybe-install-gnattools:
30200@if gnattools
30201maybe-install-gnattools: install-gnattools
4fa63067 30202
a90ef4bf 30203install-gnattools: installdirs
0aed8855 30204 @: $(MAKE); $(unstage)
4fa63067
NN
30205 @r=`${PWD_COMMAND}`; export r; \
30206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30207 $(HOST_EXPORTS) \
a90ef4bf 30208 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 30209 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30210
a90ef4bf 30211@endif gnattools
4fa63067 30212
a90ef4bf
JM
30213.PHONY: install-strip-gnattools maybe-install-strip-gnattools
30214maybe-install-strip-gnattools:
30215@if gnattools
30216maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 30217
a90ef4bf 30218install-strip-gnattools: installdirs
9b980aa1
RW
30219 @: $(MAKE); $(unstage)
30220 @r=`${PWD_COMMAND}`; export r; \
30221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30222 $(HOST_EXPORTS) \
a90ef4bf 30223 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
30224 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30225
a90ef4bf 30226@endif gnattools
9b980aa1 30227
56a8fe78 30228# Other targets (info, dvi, pdf, etc.)
4fa63067 30229
a90ef4bf
JM
30230.PHONY: maybe-info-gnattools info-gnattools
30231maybe-info-gnattools:
30232@if gnattools
30233maybe-info-gnattools: info-gnattools
4fa63067 30234
a90ef4bf
JM
30235info-gnattools: \
30236 configure-gnattools
0aed8855 30237 @: $(MAKE); $(unstage)
a90ef4bf 30238 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30239 r=`${PWD_COMMAND}`; export r; \
30240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30241 $(HOST_EXPORTS) \
b813574b 30242 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30244 done; \
a90ef4bf
JM
30245 echo "Doing info in gnattools" ; \
30246 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30249 "RANLIB=$${RANLIB}" \
0c24b341 30250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30251 info) \
2a4cbe27
NN
30252 || exit 1
30253
a90ef4bf 30254@endif gnattools
2a4cbe27 30255
a90ef4bf
JM
30256.PHONY: maybe-dvi-gnattools dvi-gnattools
30257maybe-dvi-gnattools:
30258@if gnattools
30259maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 30260
a90ef4bf
JM
30261dvi-gnattools: \
30262 configure-gnattools
0aed8855 30263 @: $(MAKE); $(unstage)
a90ef4bf 30264 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30265 r=`${PWD_COMMAND}`; export r; \
30266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30267 $(HOST_EXPORTS) \
b813574b 30268 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30270 done; \
a90ef4bf
JM
30271 echo "Doing dvi in gnattools" ; \
30272 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30275 "RANLIB=$${RANLIB}" \
0c24b341 30276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30277 dvi) \
2a4cbe27
NN
30278 || exit 1
30279
a90ef4bf 30280@endif gnattools
2a4cbe27 30281
a90ef4bf
JM
30282.PHONY: maybe-pdf-gnattools pdf-gnattools
30283maybe-pdf-gnattools:
30284@if gnattools
30285maybe-pdf-gnattools: pdf-gnattools
56a8fe78 30286
a90ef4bf
JM
30287pdf-gnattools: \
30288 configure-gnattools
56a8fe78 30289 @: $(MAKE); $(unstage)
a90ef4bf 30290 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
30291 r=`${PWD_COMMAND}`; export r; \
30292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30293 $(HOST_EXPORTS) \
30294 for flag in $(EXTRA_HOST_FLAGS) ; do \
30295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30296 done; \
a90ef4bf
JM
30297 echo "Doing pdf in gnattools" ; \
30298 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
30299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30301 "RANLIB=$${RANLIB}" \
0c24b341 30302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30303 pdf) \
30304 || exit 1
30305
a90ef4bf 30306@endif gnattools
56a8fe78 30307
a90ef4bf
JM
30308.PHONY: maybe-html-gnattools html-gnattools
30309maybe-html-gnattools:
30310@if gnattools
30311maybe-html-gnattools: html-gnattools
6d389afc 30312
a90ef4bf
JM
30313html-gnattools: \
30314 configure-gnattools
0aed8855 30315 @: $(MAKE); $(unstage)
a90ef4bf 30316 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
30317 r=`${PWD_COMMAND}`; export r; \
30318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30319 $(HOST_EXPORTS) \
30320 for flag in $(EXTRA_HOST_FLAGS) ; do \
30321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30322 done; \
a90ef4bf
JM
30323 echo "Doing html in gnattools" ; \
30324 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
30325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30327 "RANLIB=$${RANLIB}" \
0c24b341 30328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30329 html) \
30330 || exit 1
30331
a90ef4bf 30332@endif gnattools
6d389afc 30333
a90ef4bf
JM
30334.PHONY: maybe-TAGS-gnattools TAGS-gnattools
30335maybe-TAGS-gnattools:
30336@if gnattools
30337maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 30338
a90ef4bf
JM
30339TAGS-gnattools: \
30340 configure-gnattools
0aed8855 30341 @: $(MAKE); $(unstage)
a90ef4bf 30342 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30343 r=`${PWD_COMMAND}`; export r; \
30344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30345 $(HOST_EXPORTS) \
b813574b 30346 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30348 done; \
a90ef4bf
JM
30349 echo "Doing TAGS in gnattools" ; \
30350 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30353 "RANLIB=$${RANLIB}" \
0c24b341 30354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30355 TAGS) \
2a4cbe27
NN
30356 || exit 1
30357
a90ef4bf 30358@endif gnattools
2a4cbe27 30359
a90ef4bf
JM
30360.PHONY: maybe-install-info-gnattools install-info-gnattools
30361maybe-install-info-gnattools:
30362@if gnattools
30363maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 30364
a90ef4bf
JM
30365install-info-gnattools: \
30366 configure-gnattools \
30367 info-gnattools
0aed8855 30368 @: $(MAKE); $(unstage)
a90ef4bf 30369 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30370 r=`${PWD_COMMAND}`; export r; \
30371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30372 $(HOST_EXPORTS) \
b813574b 30373 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30375 done; \
a90ef4bf
JM
30376 echo "Doing install-info in gnattools" ; \
30377 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30380 "RANLIB=$${RANLIB}" \
0c24b341 30381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30382 install-info) \
2a4cbe27
NN
30383 || exit 1
30384
a90ef4bf 30385@endif gnattools
2a4cbe27 30386
a90ef4bf
JM
30387.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
30388maybe-install-pdf-gnattools:
30389@if gnattools
30390maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 30391
a90ef4bf
JM
30392install-pdf-gnattools: \
30393 configure-gnattools \
30394 pdf-gnattools
a3ca38d2 30395 @: $(MAKE); $(unstage)
a90ef4bf 30396 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
30397 r=`${PWD_COMMAND}`; export r; \
30398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30399 $(HOST_EXPORTS) \
30400 for flag in $(EXTRA_HOST_FLAGS) ; do \
30401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30402 done; \
a90ef4bf
JM
30403 echo "Doing install-pdf in gnattools" ; \
30404 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
30405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30407 "RANLIB=$${RANLIB}" \
0c24b341 30408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30409 install-pdf) \
30410 || exit 1
30411
a90ef4bf 30412@endif gnattools
a3ca38d2 30413
a90ef4bf
JM
30414.PHONY: maybe-install-html-gnattools install-html-gnattools
30415maybe-install-html-gnattools:
30416@if gnattools
30417maybe-install-html-gnattools: install-html-gnattools
108a6f8e 30418
a90ef4bf
JM
30419install-html-gnattools: \
30420 configure-gnattools \
30421 html-gnattools
108a6f8e 30422 @: $(MAKE); $(unstage)
a90ef4bf 30423 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
30424 r=`${PWD_COMMAND}`; export r; \
30425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30426 $(HOST_EXPORTS) \
30427 for flag in $(EXTRA_HOST_FLAGS) ; do \
30428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30429 done; \
a90ef4bf
JM
30430 echo "Doing install-html in gnattools" ; \
30431 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
30432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30434 "RANLIB=$${RANLIB}" \
0c24b341 30435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30436 install-html) \
30437 || exit 1
30438
a90ef4bf 30439@endif gnattools
108a6f8e 30440
a90ef4bf
JM
30441.PHONY: maybe-installcheck-gnattools installcheck-gnattools
30442maybe-installcheck-gnattools:
30443@if gnattools
30444maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 30445
a90ef4bf
JM
30446installcheck-gnattools: \
30447 configure-gnattools
0aed8855 30448 @: $(MAKE); $(unstage)
a90ef4bf 30449 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30450 r=`${PWD_COMMAND}`; export r; \
30451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30452 $(HOST_EXPORTS) \
b813574b 30453 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30455 done; \
a90ef4bf
JM
30456 echo "Doing installcheck in gnattools" ; \
30457 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30460 "RANLIB=$${RANLIB}" \
0c24b341 30461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30462 installcheck) \
2a4cbe27
NN
30463 || exit 1
30464
a90ef4bf 30465@endif gnattools
2a4cbe27 30466
a90ef4bf
JM
30467.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
30468maybe-mostlyclean-gnattools:
30469@if gnattools
30470maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 30471
a90ef4bf 30472mostlyclean-gnattools:
0aed8855 30473 @: $(MAKE); $(unstage)
a90ef4bf 30474 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30475 r=`${PWD_COMMAND}`; export r; \
30476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30477 $(HOST_EXPORTS) \
b813574b 30478 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30480 done; \
a90ef4bf
JM
30481 echo "Doing mostlyclean in gnattools" ; \
30482 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30485 "RANLIB=$${RANLIB}" \
0c24b341 30486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30487 mostlyclean) \
2a4cbe27
NN
30488 || exit 1
30489
a90ef4bf 30490@endif gnattools
2a4cbe27 30491
a90ef4bf
JM
30492.PHONY: maybe-clean-gnattools clean-gnattools
30493maybe-clean-gnattools:
30494@if gnattools
30495maybe-clean-gnattools: clean-gnattools
2a4cbe27 30496
a90ef4bf 30497clean-gnattools:
0aed8855 30498 @: $(MAKE); $(unstage)
a90ef4bf 30499 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30500 r=`${PWD_COMMAND}`; export r; \
30501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30502 $(HOST_EXPORTS) \
b813574b 30503 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30505 done; \
a90ef4bf
JM
30506 echo "Doing clean in gnattools" ; \
30507 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30510 "RANLIB=$${RANLIB}" \
0c24b341 30511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30512 clean) \
2a4cbe27
NN
30513 || exit 1
30514
a90ef4bf 30515@endif gnattools
2a4cbe27 30516
a90ef4bf
JM
30517.PHONY: maybe-distclean-gnattools distclean-gnattools
30518maybe-distclean-gnattools:
30519@if gnattools
30520maybe-distclean-gnattools: distclean-gnattools
a2592b1b 30521
a90ef4bf 30522distclean-gnattools:
0aed8855 30523 @: $(MAKE); $(unstage)
a90ef4bf 30524 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
30525 r=`${PWD_COMMAND}`; export r; \
30526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30527 $(HOST_EXPORTS) \
b813574b 30528 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
30529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30530 done; \
a90ef4bf
JM
30531 echo "Doing distclean in gnattools" ; \
30532 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
30533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30535 "RANLIB=$${RANLIB}" \
0c24b341 30536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30537 distclean) \
a2592b1b
DD
30538 || exit 1
30539
a90ef4bf 30540@endif gnattools
a2592b1b 30541
a90ef4bf
JM
30542.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
30543maybe-maintainer-clean-gnattools:
30544@if gnattools
30545maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 30546
a90ef4bf 30547maintainer-clean-gnattools:
0aed8855 30548 @: $(MAKE); $(unstage)
a90ef4bf 30549 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 30550 r=`${PWD_COMMAND}`; export r; \
b40e3958 30551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30552 $(HOST_EXPORTS) \
b813574b 30553 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30555 done; \
a90ef4bf
JM
30556 echo "Doing maintainer-clean in gnattools" ; \
30557 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
30558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30560 "RANLIB=$${RANLIB}" \
0c24b341 30561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30562 maintainer-clean) \
4fa63067 30563 || exit 1
252b5132 30564
a90ef4bf 30565@endif gnattools
252b5132 30566
252b5132 30567
a7254363 30568
a90ef4bf
JM
30569.PHONY: configure-lto-plugin maybe-configure-lto-plugin
30570maybe-configure-lto-plugin:
4f0ef2d8 30571@if gcc-bootstrap
a90ef4bf 30572configure-lto-plugin: stage_current
4f0ef2d8 30573@endif gcc-bootstrap
a90ef4bf
JM
30574@if lto-plugin
30575maybe-configure-lto-plugin: configure-lto-plugin
30576configure-lto-plugin:
c52c6897 30577 @r=`${PWD_COMMAND}`; export r; \
b813574b 30578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30579 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
30580 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
1f53ca9a 30581 $(HOST_EXPORTS) \
a90ef4bf
JM
30582 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
30583 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 30584 case $(srcdir) in \
b00612cc 30585 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30586 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 30587 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30588 esac; \
1b6c0831
L
30589 module_srcdir=lto-plugin; \
30590 $(SHELL) \
30591 $$s/$$module_srcdir/configure \
30592 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30593 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30594 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 30595 || exit 1
a90ef4bf 30596@endif lto-plugin
a7254363 30597
d545f33b
PB
30598
30599
a90ef4bf
JM
30600.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
30601maybe-configure-stage1-lto-plugin:
30602@if lto-plugin-bootstrap
30603maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
30604configure-stage1-lto-plugin:
30605 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30606 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
30607 @r=`${PWD_COMMAND}`; export r; \
30608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30609 TFLAGS="$(STAGE1_TFLAGS)"; \
30610 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
30611 $(HOST_EXPORTS) \
30612 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
30613 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
30614 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
30615 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin ; \
30616 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30617 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30618 case $(srcdir) in \
30619 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30620 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30621 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30622 esac; \
1b6c0831
L
30623 module_srcdir=lto-plugin; \
30624 $(SHELL) $$s/$$module_srcdir/configure \
30625 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30626 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30627 --target=${target_alias} \
30628 \
a90ef4bf 30629 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 30630 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30631@endif lto-plugin-bootstrap
252b5132 30632
a90ef4bf
JM
30633.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
30634maybe-configure-stage2-lto-plugin:
30635@if lto-plugin-bootstrap
30636maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
30637configure-stage2-lto-plugin:
30638 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30639 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
30640 @r=`${PWD_COMMAND}`; export r; \
30641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30642 TFLAGS="$(STAGE2_TFLAGS)"; \
30643 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 30644 $(HOST_EXPORTS) \
a90ef4bf
JM
30645 $(POSTSTAGE1_HOST_EXPORTS) \
30646 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
30647 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
30648 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
30649 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin ; \
30650 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30651 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30652 case $(srcdir) in \
30653 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30654 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30655 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30656 esac; \
1b6c0831
L
30657 module_srcdir=lto-plugin; \
30658 $(SHELL) $$s/$$module_srcdir/configure \
30659 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30660 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30661 --target=${target_alias} \
30662 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30663 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 30664 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30665@endif lto-plugin-bootstrap
4fa63067 30666
a90ef4bf
JM
30667.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
30668maybe-configure-stage3-lto-plugin:
30669@if lto-plugin-bootstrap
30670maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
30671configure-stage3-lto-plugin:
30672 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30673 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
30674 @r=`${PWD_COMMAND}`; export r; \
30675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30676 TFLAGS="$(STAGE3_TFLAGS)"; \
30677 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30678 $(HOST_EXPORTS) \
a90ef4bf
JM
30679 $(POSTSTAGE1_HOST_EXPORTS) \
30680 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
30681 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
30682 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
30683 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin ; \
30684 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30685 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30686 case $(srcdir) in \
30687 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30688 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30689 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30690 esac; \
1b6c0831
L
30691 module_srcdir=lto-plugin; \
30692 $(SHELL) $$s/$$module_srcdir/configure \
30693 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30694 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30695 --target=${target_alias} \
30696 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30697 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 30698 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30699@endif lto-plugin-bootstrap
9b980aa1 30700
a90ef4bf
JM
30701.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
30702maybe-configure-stage4-lto-plugin:
30703@if lto-plugin-bootstrap
30704maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
30705configure-stage4-lto-plugin:
30706 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30707 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
30708 @r=`${PWD_COMMAND}`; export r; \
30709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30710 TFLAGS="$(STAGE4_TFLAGS)"; \
30711 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 30712 $(HOST_EXPORTS) \
a90ef4bf
JM
30713 $(POSTSTAGE1_HOST_EXPORTS) \
30714 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
30715 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
30716 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
30717 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin ; \
30718 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30719 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30720 case $(srcdir) in \
30721 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30722 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30723 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30724 esac; \
1b6c0831
L
30725 module_srcdir=lto-plugin; \
30726 $(SHELL) $$s/$$module_srcdir/configure \
30727 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30728 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30729 --target=${target_alias} \
30730 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30731 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 30732 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30733@endif lto-plugin-bootstrap
4fa63067 30734
a90ef4bf
JM
30735.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
30736maybe-configure-stageprofile-lto-plugin:
30737@if lto-plugin-bootstrap
30738maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
30739configure-stageprofile-lto-plugin:
30740 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30741 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
30742 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30744 TFLAGS="$(STAGEprofile_TFLAGS)"; \
30745 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30746 $(HOST_EXPORTS) \
a90ef4bf
JM
30747 $(POSTSTAGE1_HOST_EXPORTS) \
30748 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
30749 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
30750 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
30751 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin ; \
30752 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30753 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30754 case $(srcdir) in \
30755 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30756 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30757 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30758 esac; \
1b6c0831
L
30759 module_srcdir=lto-plugin; \
30760 $(SHELL) $$s/$$module_srcdir/configure \
30761 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30762 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30763 --target=${target_alias} \
30764 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30765 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 30766 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30767@endif lto-plugin-bootstrap
4fa63067 30768
a90ef4bf
JM
30769.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
30770maybe-configure-stagefeedback-lto-plugin:
30771@if lto-plugin-bootstrap
30772maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
30773configure-stagefeedback-lto-plugin:
30774 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
30775 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
30776 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30778 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
30779 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30780 $(HOST_EXPORTS) \
a90ef4bf
JM
30781 $(POSTSTAGE1_HOST_EXPORTS) \
30782 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
30783 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
30784 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
30785 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin ; \
30786 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30787 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30788 case $(srcdir) in \
30789 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30790 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30791 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30792 esac; \
1b6c0831
L
30793 module_srcdir=lto-plugin; \
30794 $(SHELL) $$s/$$module_srcdir/configure \
30795 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30796 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30797 --target=${target_alias} \
30798 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30799 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 30800 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30801@endif lto-plugin-bootstrap
252b5132 30802
56a8fe78 30803
56a8fe78 30804
56a8fe78 30805
6d389afc 30806
a90ef4bf
JM
30807.PHONY: all-lto-plugin maybe-all-lto-plugin
30808maybe-all-lto-plugin:
30809@if gcc-bootstrap
30810all-lto-plugin: stage_current
30811@endif gcc-bootstrap
30812@if lto-plugin
30813TARGET-lto-plugin=all
30814maybe-all-lto-plugin: all-lto-plugin
30815all-lto-plugin: configure-lto-plugin
30816 @r=`${PWD_COMMAND}`; export r; \
6d389afc 30817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30818 $(HOST_EXPORTS) \
30819 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30820 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30821 $(TARGET-lto-plugin))
30822@endif lto-plugin
6d389afc 30823
6d389afc 30824
252b5132 30825
a90ef4bf
JM
30826.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
30827.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
30828maybe-all-stage1-lto-plugin:
30829maybe-clean-stage1-lto-plugin:
30830@if lto-plugin-bootstrap
30831maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
30832all-stage1: all-stage1-lto-plugin
30833TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
30834all-stage1-lto-plugin: configure-stage1-lto-plugin
30835 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30836 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30838 TFLAGS="$(STAGE1_TFLAGS)"; \
30839 $(HOST_EXPORTS) \
30840 cd $(HOST_SUBDIR)/lto-plugin && \
30841 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30842 CFLAGS="$(STAGE1_CFLAGS)" \
30843 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
30844 LIBCFLAGS="$(LIBCFLAGS)" \
30845 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30846 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30847 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 30848 $(EXTRA_HOST_FLAGS) \
1b6c0831 30849 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30850 TFLAGS="$(STAGE1_TFLAGS)" \
30851 $(TARGET-stage1-lto-plugin)
3866be5d 30852
a90ef4bf
JM
30853maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
30854clean-stage1: clean-stage1-lto-plugin
30855clean-stage1-lto-plugin:
30856 @if [ $(current_stage) = stage1 ]; then \
30857 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30858 else \
30859 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
30860 $(MAKE) stage1-start; \
30861 fi; \
30862 cd $(HOST_SUBDIR)/lto-plugin && \
30863 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 30864 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30865@endif lto-plugin-bootstrap
3866be5d 30866
3866be5d 30867
a90ef4bf
JM
30868.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
30869.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
30870maybe-all-stage2-lto-plugin:
30871maybe-clean-stage2-lto-plugin:
30872@if lto-plugin-bootstrap
30873maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
30874all-stage2: all-stage2-lto-plugin
30875TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
30876all-stage2-lto-plugin: configure-stage2-lto-plugin
30877 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30878 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30880 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 30881 $(HOST_EXPORTS) \
a90ef4bf
JM
30882 $(POSTSTAGE1_HOST_EXPORTS) \
30883 cd $(HOST_SUBDIR)/lto-plugin && \
30884 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30885 CFLAGS="$(STAGE2_CFLAGS)" \
30886 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
30887 LIBCFLAGS="$(STAGE2_CFLAGS)" \
30888 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30889 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30890 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30891 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30892 TFLAGS="$(STAGE2_TFLAGS)" \
30893 $(TARGET-stage2-lto-plugin)
3866be5d 30894
a90ef4bf
JM
30895maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
30896clean-stage2: clean-stage2-lto-plugin
30897clean-stage2-lto-plugin:
30898 @if [ $(current_stage) = stage2 ]; then \
30899 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30900 else \
30901 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
30902 $(MAKE) stage2-start; \
30903 fi; \
30904 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30905 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30906@endif lto-plugin-bootstrap
3866be5d 30907
a3ca38d2 30908
a90ef4bf
JM
30909.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
30910.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
30911maybe-all-stage3-lto-plugin:
30912maybe-clean-stage3-lto-plugin:
30913@if lto-plugin-bootstrap
30914maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
30915all-stage3: all-stage3-lto-plugin
30916TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
30917all-stage3-lto-plugin: configure-stage3-lto-plugin
30918 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30919 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 30920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30921 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 30922 $(HOST_EXPORTS) \
a90ef4bf
JM
30923 $(POSTSTAGE1_HOST_EXPORTS) \
30924 cd $(HOST_SUBDIR)/lto-plugin && \
30925 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30926 CFLAGS="$(STAGE3_CFLAGS)" \
30927 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
30928 LIBCFLAGS="$(STAGE3_CFLAGS)" \
30929 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30930 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30931 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30932 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30933 TFLAGS="$(STAGE3_TFLAGS)" \
30934 $(TARGET-stage3-lto-plugin)
a3ca38d2 30935
a90ef4bf
JM
30936maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
30937clean-stage3: clean-stage3-lto-plugin
30938clean-stage3-lto-plugin:
30939 @if [ $(current_stage) = stage3 ]; then \
30940 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30941 else \
30942 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
30943 $(MAKE) stage3-start; \
30944 fi; \
30945 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30946 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30947@endif lto-plugin-bootstrap
a3ca38d2 30948
108a6f8e 30949
a90ef4bf
JM
30950.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
30951.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
30952maybe-all-stage4-lto-plugin:
30953maybe-clean-stage4-lto-plugin:
30954@if lto-plugin-bootstrap
30955maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
30956all-stage4: all-stage4-lto-plugin
30957TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
30958all-stage4-lto-plugin: configure-stage4-lto-plugin
30959 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30960 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 30961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30962 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 30963 $(HOST_EXPORTS) \
a90ef4bf
JM
30964 $(POSTSTAGE1_HOST_EXPORTS) \
30965 cd $(HOST_SUBDIR)/lto-plugin && \
30966 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30967 CFLAGS="$(STAGE4_CFLAGS)" \
30968 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
30969 LIBCFLAGS="$(STAGE4_CFLAGS)" \
30970 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30971 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30972 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30973 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30974 TFLAGS="$(STAGE4_TFLAGS)" \
30975 $(TARGET-stage4-lto-plugin)
108a6f8e 30976
a90ef4bf
JM
30977maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
30978clean-stage4: clean-stage4-lto-plugin
30979clean-stage4-lto-plugin:
30980 @if [ $(current_stage) = stage4 ]; then \
30981 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30982 else \
30983 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
30984 $(MAKE) stage4-start; \
30985 fi; \
30986 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30987 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30988@endif lto-plugin-bootstrap
4fa63067 30989
4fa63067 30990
a90ef4bf
JM
30991.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
30992.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
30993maybe-all-stageprofile-lto-plugin:
30994maybe-clean-stageprofile-lto-plugin:
30995@if lto-plugin-bootstrap
30996maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
30997all-stageprofile: all-stageprofile-lto-plugin
30998TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
30999all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31000 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31001 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31003 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 31004 $(HOST_EXPORTS) \
a90ef4bf
JM
31005 $(POSTSTAGE1_HOST_EXPORTS) \
31006 cd $(HOST_SUBDIR)/lto-plugin && \
31007 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31008 CFLAGS="$(STAGEprofile_CFLAGS)" \
31009 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
31010 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
31011 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31012 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31013 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31014 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31015 TFLAGS="$(STAGEprofile_TFLAGS)" \
31016 $(TARGET-stageprofile-lto-plugin)
4fa63067 31017
a90ef4bf
JM
31018maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
31019clean-stageprofile: clean-stageprofile-lto-plugin
31020clean-stageprofile-lto-plugin:
31021 @if [ $(current_stage) = stageprofile ]; then \
31022 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31023 else \
31024 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
31025 $(MAKE) stageprofile-start; \
31026 fi; \
31027 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31028 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31029@endif lto-plugin-bootstrap
4fa63067 31030
4fa63067 31031
a90ef4bf
JM
31032.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
31033.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
31034maybe-all-stagefeedback-lto-plugin:
31035maybe-clean-stagefeedback-lto-plugin:
31036@if lto-plugin-bootstrap
31037maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
31038all-stagefeedback: all-stagefeedback-lto-plugin
31039TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
31040all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31041 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31042 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31044 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 31045 $(HOST_EXPORTS) \
a90ef4bf
JM
31046 $(POSTSTAGE1_HOST_EXPORTS) \
31047 cd $(HOST_SUBDIR)/lto-plugin && \
31048 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31049 CFLAGS="$(STAGEfeedback_CFLAGS)" \
31050 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
31051 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
31052 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31053 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31054 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31055 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31056 TFLAGS="$(STAGEfeedback_TFLAGS)" \
31057 $(TARGET-stagefeedback-lto-plugin)
3866be5d 31058
a90ef4bf
JM
31059maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
31060clean-stagefeedback: clean-stagefeedback-lto-plugin
31061clean-stagefeedback-lto-plugin:
31062 @if [ $(current_stage) = stagefeedback ]; then \
31063 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31064 else \
31065 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
31066 $(MAKE) stagefeedback-start; \
31067 fi; \
31068 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31069 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31070@endif lto-plugin-bootstrap
a7254363 31071
e2b9e2dc 31072
a7254363
PB
31073
31074
d545f33b 31075
a90ef4bf
JM
31076.PHONY: check-lto-plugin maybe-check-lto-plugin
31077maybe-check-lto-plugin:
31078@if lto-plugin
31079maybe-check-lto-plugin: check-lto-plugin
d545f33b 31080
a90ef4bf 31081check-lto-plugin:
0aed8855 31082 @: $(MAKE); $(unstage)
b40e3958
L
31083 @r=`${PWD_COMMAND}`; export r; \
31084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31085 $(HOST_EXPORTS) \
31086 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31087 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ check)
3866be5d 31088
a90ef4bf 31089@endif lto-plugin
3866be5d 31090
a90ef4bf
JM
31091.PHONY: install-lto-plugin maybe-install-lto-plugin
31092maybe-install-lto-plugin:
31093@if lto-plugin
31094maybe-install-lto-plugin: install-lto-plugin
4fa63067 31095
a90ef4bf 31096install-lto-plugin: installdirs
0aed8855 31097 @: $(MAKE); $(unstage)
4fa63067
NN
31098 @r=`${PWD_COMMAND}`; export r; \
31099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31100 $(HOST_EXPORTS) \
a90ef4bf 31101 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31102 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 31103
a90ef4bf 31104@endif lto-plugin
4fa63067 31105
a90ef4bf
JM
31106.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
31107maybe-install-strip-lto-plugin:
31108@if lto-plugin
31109maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 31110
a90ef4bf 31111install-strip-lto-plugin: installdirs
9b980aa1
RW
31112 @: $(MAKE); $(unstage)
31113 @r=`${PWD_COMMAND}`; export r; \
31114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31115 $(HOST_EXPORTS) \
a90ef4bf 31116 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31117 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 31118
a90ef4bf 31119@endif lto-plugin
9b980aa1 31120
56a8fe78 31121# Other targets (info, dvi, pdf, etc.)
4fa63067 31122
a90ef4bf
JM
31123.PHONY: maybe-info-lto-plugin info-lto-plugin
31124maybe-info-lto-plugin:
31125@if lto-plugin
31126maybe-info-lto-plugin: info-lto-plugin
4fa63067 31127
a90ef4bf
JM
31128info-lto-plugin: \
31129 configure-lto-plugin
31130 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31131 r=`${PWD_COMMAND}`; export r; \
31132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31133 $(HOST_EXPORTS) \
1b6c0831 31134 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31136 done; \
a90ef4bf
JM
31137 echo "Doing info in lto-plugin" ; \
31138 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31141 "RANLIB=$${RANLIB}" \
0c24b341 31142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31143 info) \
4fa63067
NN
31144 || exit 1
31145
a90ef4bf 31146@endif lto-plugin
4fa63067 31147
a90ef4bf
JM
31148.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
31149maybe-dvi-lto-plugin:
31150@if lto-plugin
31151maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 31152
a90ef4bf
JM
31153dvi-lto-plugin: \
31154 configure-lto-plugin
31155 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31156 r=`${PWD_COMMAND}`; export r; \
31157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31158 $(HOST_EXPORTS) \
1b6c0831 31159 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31161 done; \
a90ef4bf
JM
31162 echo "Doing dvi in lto-plugin" ; \
31163 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31166 "RANLIB=$${RANLIB}" \
0c24b341 31167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31168 dvi) \
4fa63067
NN
31169 || exit 1
31170
a90ef4bf 31171@endif lto-plugin
4fa63067 31172
a90ef4bf
JM
31173.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
31174maybe-pdf-lto-plugin:
31175@if lto-plugin
31176maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 31177
a90ef4bf
JM
31178pdf-lto-plugin: \
31179 configure-lto-plugin
31180 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
31181 r=`${PWD_COMMAND}`; export r; \
31182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31183 $(HOST_EXPORTS) \
1b6c0831 31184 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
31185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31186 done; \
a90ef4bf
JM
31187 echo "Doing pdf in lto-plugin" ; \
31188 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
31189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31191 "RANLIB=$${RANLIB}" \
0c24b341 31192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31193 pdf) \
31194 || exit 1
31195
a90ef4bf 31196@endif lto-plugin
56a8fe78 31197
a90ef4bf
JM
31198.PHONY: maybe-html-lto-plugin html-lto-plugin
31199maybe-html-lto-plugin:
31200@if lto-plugin
31201maybe-html-lto-plugin: html-lto-plugin
6d389afc 31202
a90ef4bf
JM
31203html-lto-plugin: \
31204 configure-lto-plugin
31205 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
31206 r=`${PWD_COMMAND}`; export r; \
31207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 31208 $(HOST_EXPORTS) \
1b6c0831 31209 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
31210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31211 done; \
a90ef4bf
JM
31212 echo "Doing html in lto-plugin" ; \
31213 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
31214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31216 "RANLIB=$${RANLIB}" \
0c24b341 31217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31218 html) \
31219 || exit 1
31220
a90ef4bf 31221@endif lto-plugin
6d389afc 31222
a90ef4bf
JM
31223.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
31224maybe-TAGS-lto-plugin:
31225@if lto-plugin
31226maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 31227
a90ef4bf
JM
31228TAGS-lto-plugin: \
31229 configure-lto-plugin
31230 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31231 r=`${PWD_COMMAND}`; export r; \
31232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31233 $(HOST_EXPORTS) \
1b6c0831 31234 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31236 done; \
a90ef4bf
JM
31237 echo "Doing TAGS in lto-plugin" ; \
31238 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31241 "RANLIB=$${RANLIB}" \
0c24b341 31242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31243 TAGS) \
4fa63067
NN
31244 || exit 1
31245
a90ef4bf 31246@endif lto-plugin
4fa63067 31247
a90ef4bf
JM
31248.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
31249maybe-install-info-lto-plugin:
31250@if lto-plugin
31251maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 31252
a90ef4bf
JM
31253install-info-lto-plugin: \
31254 configure-lto-plugin \
31255 info-lto-plugin
31256 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31257 r=`${PWD_COMMAND}`; export r; \
31258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31259 $(HOST_EXPORTS) \
1b6c0831 31260 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31262 done; \
a90ef4bf
JM
31263 echo "Doing install-info in lto-plugin" ; \
31264 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31267 "RANLIB=$${RANLIB}" \
0c24b341 31268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31269 install-info) \
4fa63067
NN
31270 || exit 1
31271
a90ef4bf 31272@endif lto-plugin
4fa63067 31273
a90ef4bf
JM
31274.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
31275maybe-install-pdf-lto-plugin:
31276@if lto-plugin
31277maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 31278
a90ef4bf
JM
31279install-pdf-lto-plugin: \
31280 configure-lto-plugin \
31281 pdf-lto-plugin
31282 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
31283 r=`${PWD_COMMAND}`; export r; \
31284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31285 $(HOST_EXPORTS) \
1b6c0831 31286 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
31287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31288 done; \
a90ef4bf
JM
31289 echo "Doing install-pdf in lto-plugin" ; \
31290 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
31291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31293 "RANLIB=$${RANLIB}" \
0c24b341 31294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31295 install-pdf) \
31296 || exit 1
31297
a90ef4bf 31298@endif lto-plugin
a3ca38d2 31299
a90ef4bf
JM
31300.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
31301maybe-install-html-lto-plugin:
31302@if lto-plugin
31303maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 31304
a90ef4bf
JM
31305install-html-lto-plugin: \
31306 configure-lto-plugin \
31307 html-lto-plugin
31308 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
31309 r=`${PWD_COMMAND}`; export r; \
31310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31311 $(HOST_EXPORTS) \
1b6c0831 31312 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
31313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31314 done; \
a90ef4bf
JM
31315 echo "Doing install-html in lto-plugin" ; \
31316 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
31317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31319 "RANLIB=$${RANLIB}" \
0c24b341 31320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31321 install-html) \
31322 || exit 1
31323
a90ef4bf 31324@endif lto-plugin
108a6f8e 31325
a90ef4bf
JM
31326.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
31327maybe-installcheck-lto-plugin:
31328@if lto-plugin
31329maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 31330
a90ef4bf
JM
31331installcheck-lto-plugin: \
31332 configure-lto-plugin
31333 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31334 r=`${PWD_COMMAND}`; export r; \
31335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31336 $(HOST_EXPORTS) \
1b6c0831 31337 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31339 done; \
a90ef4bf
JM
31340 echo "Doing installcheck in lto-plugin" ; \
31341 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31344 "RANLIB=$${RANLIB}" \
0c24b341 31345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31346 installcheck) \
4fa63067
NN
31347 || exit 1
31348
a90ef4bf 31349@endif lto-plugin
4fa63067 31350
a90ef4bf
JM
31351.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
31352maybe-mostlyclean-lto-plugin:
31353@if lto-plugin
31354maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 31355
a90ef4bf
JM
31356mostlyclean-lto-plugin:
31357 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31358 r=`${PWD_COMMAND}`; export r; \
31359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31360 $(HOST_EXPORTS) \
1b6c0831 31361 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31363 done; \
a90ef4bf
JM
31364 echo "Doing mostlyclean in lto-plugin" ; \
31365 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31368 "RANLIB=$${RANLIB}" \
0c24b341 31369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31370 mostlyclean) \
4fa63067
NN
31371 || exit 1
31372
a90ef4bf 31373@endif lto-plugin
4fa63067 31374
a90ef4bf
JM
31375.PHONY: maybe-clean-lto-plugin clean-lto-plugin
31376maybe-clean-lto-plugin:
31377@if lto-plugin
31378maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 31379
a90ef4bf
JM
31380clean-lto-plugin:
31381 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31382 r=`${PWD_COMMAND}`; export r; \
31383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31384 $(HOST_EXPORTS) \
1b6c0831 31385 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31387 done; \
a90ef4bf
JM
31388 echo "Doing clean in lto-plugin" ; \
31389 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31392 "RANLIB=$${RANLIB}" \
0c24b341 31393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31394 clean) \
4fa63067
NN
31395 || exit 1
31396
a90ef4bf 31397@endif lto-plugin
4fa63067 31398
a90ef4bf
JM
31399.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
31400maybe-distclean-lto-plugin:
31401@if lto-plugin
31402maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 31403
a90ef4bf
JM
31404distclean-lto-plugin:
31405 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31406 r=`${PWD_COMMAND}`; export r; \
31407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31408 $(HOST_EXPORTS) \
1b6c0831 31409 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31411 done; \
a90ef4bf
JM
31412 echo "Doing distclean in lto-plugin" ; \
31413 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31416 "RANLIB=$${RANLIB}" \
0c24b341 31417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31418 distclean) \
4fa63067
NN
31419 || exit 1
31420
a90ef4bf 31421@endif lto-plugin
4fa63067 31422
a90ef4bf
JM
31423.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
31424maybe-maintainer-clean-lto-plugin:
31425@if lto-plugin
31426maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 31427
a90ef4bf
JM
31428maintainer-clean-lto-plugin:
31429 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31430 r=`${PWD_COMMAND}`; export r; \
31431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31432 $(HOST_EXPORTS) \
1b6c0831 31433 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31435 done; \
a90ef4bf
JM
31436 echo "Doing maintainer-clean in lto-plugin" ; \
31437 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31440 "RANLIB=$${RANLIB}" \
0c24b341 31441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31442 maintainer-clean) \
4fa63067 31443 || exit 1
16ae0395 31444
a90ef4bf
JM
31445@endif lto-plugin
31446
31447
31448
1b6c0831
L
31449.PHONY: configure-libcc1 maybe-configure-libcc1
31450maybe-configure-libcc1:
4f0ef2d8 31451@if gcc-bootstrap
1b6c0831 31452configure-libcc1: stage_current
4f0ef2d8 31453@endif gcc-bootstrap
1b6c0831
L
31454@if libcc1
31455maybe-configure-libcc1: configure-libcc1
31456configure-libcc1:
31457 @: $(MAKE); $(unstage)
c52c6897 31458 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31460 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
31461 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1 ; \
31462 $(HOST_EXPORTS) \
31463 echo Configuring in $(HOST_SUBDIR)/libcc1; \
31464 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 31465 case $(srcdir) in \
b00612cc 31466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 31467 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 31468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 31469 esac; \
1b6c0831
L
31470 module_srcdir=libcc1; \
31471 $(SHELL) \
31472 $$s/$$module_srcdir/configure \
31473 --srcdir=$${topdir}/$$module_srcdir \
31474 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31475 --target=${target_alias} --enable-shared \
e2b9e2dc 31476 || exit 1
1b6c0831 31477@endif libcc1
d545f33b
PB
31478
31479
3866be5d 31480
16ae0395 31481
9b980aa1 31482
1b6c0831
L
31483.PHONY: all-libcc1 maybe-all-libcc1
31484maybe-all-libcc1:
31485@if gcc-bootstrap
31486all-libcc1: stage_current
31487@endif gcc-bootstrap
31488@if libcc1
31489TARGET-libcc1=all
31490maybe-all-libcc1: all-libcc1
31491all-libcc1: configure-libcc1
31492 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31493 @r=`${PWD_COMMAND}`; export r; \
31494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31495 $(HOST_EXPORTS) \
31496 (cd $(HOST_SUBDIR)/libcc1 && \
31497 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31498 $(TARGET-libcc1))
31499@endif libcc1
e8a5fa9c 31500
1b6c0831
L
31501
31502
31503
31504.PHONY: check-libcc1 maybe-check-libcc1
31505maybe-check-libcc1:
31506@if libcc1
31507maybe-check-libcc1: check-libcc1
31508
31509check-libcc1:
31510 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31511 @r=`${PWD_COMMAND}`; export r; \
31512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31513 $(HOST_EXPORTS) \
31514 (cd $(HOST_SUBDIR)/libcc1 && \
31515 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 31516
1b6c0831
L
31517@endif libcc1
31518
31519.PHONY: install-libcc1 maybe-install-libcc1
31520maybe-install-libcc1:
31521@if libcc1
31522maybe-install-libcc1: install-libcc1
31523
31524install-libcc1: installdirs
31525 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31526 @r=`${PWD_COMMAND}`; export r; \
31527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31528 $(HOST_EXPORTS) \
31529 (cd $(HOST_SUBDIR)/libcc1 && \
31530 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 31531
1b6c0831
L
31532@endif libcc1
31533
31534.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
31535maybe-install-strip-libcc1:
31536@if libcc1
31537maybe-install-strip-libcc1: install-strip-libcc1
31538
31539install-strip-libcc1: installdirs
31540 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31541 @r=`${PWD_COMMAND}`; export r; \
31542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31543 $(HOST_EXPORTS) \
31544 (cd $(HOST_SUBDIR)/libcc1 && \
31545 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 31546
1b6c0831 31547@endif libcc1
e8a5fa9c 31548
1b6c0831 31549# Other targets (info, dvi, pdf, etc.)
d545f33b 31550
1b6c0831
L
31551.PHONY: maybe-info-libcc1 info-libcc1
31552maybe-info-libcc1:
31553@if libcc1
31554maybe-info-libcc1: info-libcc1
d545f33b 31555
1b6c0831
L
31556info-libcc1: \
31557 configure-libcc1
31558 @: $(MAKE); $(unstage)
31559 @[ -f ./libcc1/Makefile ] || exit 0; \
31560 r=`${PWD_COMMAND}`; export r; \
b40e3958 31561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31562 $(HOST_EXPORTS) \
31563 for flag in $(EXTRA_HOST_FLAGS) ; do \
31564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31565 done; \
31566 echo "Doing info in libcc1" ; \
31567 (cd $(HOST_SUBDIR)/libcc1 && \
31568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31570 "RANLIB=$${RANLIB}" \
31571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31572 info) \
31573 || exit 1
3866be5d 31574
1b6c0831 31575@endif libcc1
a7254363 31576
1b6c0831
L
31577.PHONY: maybe-dvi-libcc1 dvi-libcc1
31578maybe-dvi-libcc1:
31579@if libcc1
31580maybe-dvi-libcc1: dvi-libcc1
a7254363 31581
1b6c0831
L
31582dvi-libcc1: \
31583 configure-libcc1
31584 @: $(MAKE); $(unstage)
31585 @[ -f ./libcc1/Makefile ] || exit 0; \
31586 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31588 $(HOST_EXPORTS) \
31589 for flag in $(EXTRA_HOST_FLAGS) ; do \
31590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31591 done; \
31592 echo "Doing dvi in libcc1" ; \
31593 (cd $(HOST_SUBDIR)/libcc1 && \
31594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31596 "RANLIB=$${RANLIB}" \
31597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31598 dvi) \
31599 || exit 1
e8a5fa9c 31600
1b6c0831 31601@endif libcc1
e8a5fa9c 31602
1b6c0831
L
31603.PHONY: maybe-pdf-libcc1 pdf-libcc1
31604maybe-pdf-libcc1:
31605@if libcc1
31606maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 31607
1b6c0831
L
31608pdf-libcc1: \
31609 configure-libcc1
31610 @: $(MAKE); $(unstage)
31611 @[ -f ./libcc1/Makefile ] || exit 0; \
31612 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31614 $(HOST_EXPORTS) \
31615 for flag in $(EXTRA_HOST_FLAGS) ; do \
31616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31617 done; \
31618 echo "Doing pdf in libcc1" ; \
31619 (cd $(HOST_SUBDIR)/libcc1 && \
31620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31622 "RANLIB=$${RANLIB}" \
31623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31624 pdf) \
31625 || exit 1
e8a5fa9c 31626
1b6c0831 31627@endif libcc1
e8a5fa9c 31628
1b6c0831
L
31629.PHONY: maybe-html-libcc1 html-libcc1
31630maybe-html-libcc1:
31631@if libcc1
31632maybe-html-libcc1: html-libcc1
e8a5fa9c 31633
1b6c0831
L
31634html-libcc1: \
31635 configure-libcc1
31636 @: $(MAKE); $(unstage)
31637 @[ -f ./libcc1/Makefile ] || exit 0; \
31638 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31640 $(HOST_EXPORTS) \
31641 for flag in $(EXTRA_HOST_FLAGS) ; do \
31642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31643 done; \
31644 echo "Doing html in libcc1" ; \
31645 (cd $(HOST_SUBDIR)/libcc1 && \
31646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31648 "RANLIB=$${RANLIB}" \
31649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31650 html) \
31651 || exit 1
e8a5fa9c 31652
1b6c0831 31653@endif libcc1
e8a5fa9c 31654
1b6c0831
L
31655.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
31656maybe-TAGS-libcc1:
31657@if libcc1
31658maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 31659
1b6c0831
L
31660TAGS-libcc1: \
31661 configure-libcc1
31662 @: $(MAKE); $(unstage)
31663 @[ -f ./libcc1/Makefile ] || exit 0; \
31664 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31666 $(HOST_EXPORTS) \
31667 for flag in $(EXTRA_HOST_FLAGS) ; do \
31668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31669 done; \
31670 echo "Doing TAGS in libcc1" ; \
31671 (cd $(HOST_SUBDIR)/libcc1 && \
31672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31674 "RANLIB=$${RANLIB}" \
31675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31676 TAGS) \
31677 || exit 1
31678
31679@endif libcc1
31680
31681.PHONY: maybe-install-info-libcc1 install-info-libcc1
31682maybe-install-info-libcc1:
31683@if libcc1
31684maybe-install-info-libcc1: install-info-libcc1
31685
31686install-info-libcc1: \
31687 configure-libcc1 \
31688 info-libcc1
31689 @: $(MAKE); $(unstage)
31690 @[ -f ./libcc1/Makefile ] || exit 0; \
31691 r=`${PWD_COMMAND}`; export r; \
31692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31693 $(HOST_EXPORTS) \
31694 for flag in $(EXTRA_HOST_FLAGS) ; do \
31695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31696 done; \
31697 echo "Doing install-info in libcc1" ; \
31698 (cd $(HOST_SUBDIR)/libcc1 && \
31699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31701 "RANLIB=$${RANLIB}" \
31702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31703 install-info) \
31704 || exit 1
31705
31706@endif libcc1
31707
31708.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
31709maybe-install-pdf-libcc1:
31710@if libcc1
31711maybe-install-pdf-libcc1: install-pdf-libcc1
31712
31713install-pdf-libcc1: \
31714 configure-libcc1 \
31715 pdf-libcc1
31716 @: $(MAKE); $(unstage)
31717 @[ -f ./libcc1/Makefile ] || exit 0; \
31718 r=`${PWD_COMMAND}`; export r; \
31719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31720 $(HOST_EXPORTS) \
31721 for flag in $(EXTRA_HOST_FLAGS) ; do \
31722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31723 done; \
31724 echo "Doing install-pdf in libcc1" ; \
31725 (cd $(HOST_SUBDIR)/libcc1 && \
31726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31728 "RANLIB=$${RANLIB}" \
31729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31730 install-pdf) \
31731 || exit 1
31732
31733@endif libcc1
31734
31735.PHONY: maybe-install-html-libcc1 install-html-libcc1
31736maybe-install-html-libcc1:
31737@if libcc1
31738maybe-install-html-libcc1: install-html-libcc1
31739
31740install-html-libcc1: \
31741 configure-libcc1 \
31742 html-libcc1
31743 @: $(MAKE); $(unstage)
31744 @[ -f ./libcc1/Makefile ] || exit 0; \
31745 r=`${PWD_COMMAND}`; export r; \
31746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31747 $(HOST_EXPORTS) \
31748 for flag in $(EXTRA_HOST_FLAGS) ; do \
31749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31750 done; \
31751 echo "Doing install-html in libcc1" ; \
31752 (cd $(HOST_SUBDIR)/libcc1 && \
31753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31755 "RANLIB=$${RANLIB}" \
31756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31757 install-html) \
31758 || exit 1
31759
31760@endif libcc1
31761
31762.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
31763maybe-installcheck-libcc1:
31764@if libcc1
31765maybe-installcheck-libcc1: installcheck-libcc1
31766
31767installcheck-libcc1: \
31768 configure-libcc1
31769 @: $(MAKE); $(unstage)
31770 @[ -f ./libcc1/Makefile ] || exit 0; \
31771 r=`${PWD_COMMAND}`; export r; \
31772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31773 $(HOST_EXPORTS) \
31774 for flag in $(EXTRA_HOST_FLAGS) ; do \
31775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31776 done; \
31777 echo "Doing installcheck in libcc1" ; \
31778 (cd $(HOST_SUBDIR)/libcc1 && \
31779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31781 "RANLIB=$${RANLIB}" \
31782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31783 installcheck) \
31784 || exit 1
31785
31786@endif libcc1
31787
31788.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
31789maybe-mostlyclean-libcc1:
31790@if libcc1
31791maybe-mostlyclean-libcc1: mostlyclean-libcc1
31792
31793mostlyclean-libcc1:
31794 @: $(MAKE); $(unstage)
31795 @[ -f ./libcc1/Makefile ] || exit 0; \
31796 r=`${PWD_COMMAND}`; export r; \
31797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31798 $(HOST_EXPORTS) \
31799 for flag in $(EXTRA_HOST_FLAGS) ; do \
31800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31801 done; \
31802 echo "Doing mostlyclean in libcc1" ; \
31803 (cd $(HOST_SUBDIR)/libcc1 && \
31804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31806 "RANLIB=$${RANLIB}" \
31807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31808 mostlyclean) \
31809 || exit 1
31810
31811@endif libcc1
31812
31813.PHONY: maybe-clean-libcc1 clean-libcc1
31814maybe-clean-libcc1:
31815@if libcc1
31816maybe-clean-libcc1: clean-libcc1
31817
31818clean-libcc1:
31819 @: $(MAKE); $(unstage)
31820 @[ -f ./libcc1/Makefile ] || exit 0; \
31821 r=`${PWD_COMMAND}`; export r; \
31822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31823 $(HOST_EXPORTS) \
31824 for flag in $(EXTRA_HOST_FLAGS) ; do \
31825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31826 done; \
31827 echo "Doing clean in libcc1" ; \
31828 (cd $(HOST_SUBDIR)/libcc1 && \
31829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31831 "RANLIB=$${RANLIB}" \
31832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31833 clean) \
31834 || exit 1
31835
31836@endif libcc1
31837
31838.PHONY: maybe-distclean-libcc1 distclean-libcc1
31839maybe-distclean-libcc1:
31840@if libcc1
31841maybe-distclean-libcc1: distclean-libcc1
31842
31843distclean-libcc1:
31844 @: $(MAKE); $(unstage)
31845 @[ -f ./libcc1/Makefile ] || exit 0; \
31846 r=`${PWD_COMMAND}`; export r; \
31847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31848 $(HOST_EXPORTS) \
31849 for flag in $(EXTRA_HOST_FLAGS) ; do \
31850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31851 done; \
31852 echo "Doing distclean in libcc1" ; \
31853 (cd $(HOST_SUBDIR)/libcc1 && \
31854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31856 "RANLIB=$${RANLIB}" \
31857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31858 distclean) \
31859 || exit 1
31860
31861@endif libcc1
31862
31863.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
31864maybe-maintainer-clean-libcc1:
31865@if libcc1
31866maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
31867
31868maintainer-clean-libcc1:
31869 @: $(MAKE); $(unstage)
31870 @[ -f ./libcc1/Makefile ] || exit 0; \
31871 r=`${PWD_COMMAND}`; export r; \
31872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31873 $(HOST_EXPORTS) \
31874 for flag in $(EXTRA_HOST_FLAGS) ; do \
31875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31876 done; \
31877 echo "Doing maintainer-clean in libcc1" ; \
31878 (cd $(HOST_SUBDIR)/libcc1 && \
31879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31881 "RANLIB=$${RANLIB}" \
31882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31883 maintainer-clean) \
31884 || exit 1
31885
31886@endif libcc1
31887
31888
31889
31890.PHONY: configure-gotools maybe-configure-gotools
31891maybe-configure-gotools:
31892@if gcc-bootstrap
31893configure-gotools: stage_current
31894@endif gcc-bootstrap
31895@if gotools
31896maybe-configure-gotools: configure-gotools
31897configure-gotools:
31898 @: $(MAKE); $(unstage)
31899 @r=`${PWD_COMMAND}`; export r; \
31900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31901 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
31902 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools ; \
31903 $(HOST_EXPORTS) \
31904 echo Configuring in $(HOST_SUBDIR)/gotools; \
31905 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
31906 case $(srcdir) in \
31907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31908 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
31909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31910 esac; \
31911 module_srcdir=gotools; \
31912 $(SHELL) \
31913 $$s/$$module_srcdir/configure \
31914 --srcdir=$${topdir}/$$module_srcdir \
31915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31916 --target=${target_alias} \
31917 || exit 1
31918@endif gotools
31919
31920
31921
31922
31923
31924.PHONY: all-gotools maybe-all-gotools
31925maybe-all-gotools:
31926@if gcc-bootstrap
31927all-gotools: stage_current
31928@endif gcc-bootstrap
31929@if gotools
31930TARGET-gotools=all
31931maybe-all-gotools: all-gotools
31932all-gotools: configure-gotools
31933 @: $(MAKE); $(unstage)
31934 @r=`${PWD_COMMAND}`; export r; \
31935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31936 $(HOST_EXPORTS) \
31937 (cd $(HOST_SUBDIR)/gotools && \
31938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31939 $(TARGET-gotools))
31940@endif gotools
31941
31942
31943
31944
31945.PHONY: check-gotools maybe-check-gotools
31946maybe-check-gotools:
31947@if gotools
31948maybe-check-gotools: check-gotools
31949
31950check-gotools:
31951 @: $(MAKE); $(unstage)
31952 @r=`${PWD_COMMAND}`; export r; \
31953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31954 $(HOST_EXPORTS) \
31955 (cd $(HOST_SUBDIR)/gotools && \
31956 $(MAKE) $(FLAGS_TO_PASS) check)
31957
31958@endif gotools
31959
31960.PHONY: install-gotools maybe-install-gotools
31961maybe-install-gotools:
31962@if gotools
31963maybe-install-gotools: install-gotools
31964
31965install-gotools: installdirs
31966 @: $(MAKE); $(unstage)
31967 @r=`${PWD_COMMAND}`; export r; \
31968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31969 $(HOST_EXPORTS) \
31970 (cd $(HOST_SUBDIR)/gotools && \
31971 $(MAKE) $(FLAGS_TO_PASS) install)
31972
31973@endif gotools
31974
31975.PHONY: install-strip-gotools maybe-install-strip-gotools
31976maybe-install-strip-gotools:
31977@if gotools
31978maybe-install-strip-gotools: install-strip-gotools
31979
31980install-strip-gotools: installdirs
31981 @: $(MAKE); $(unstage)
31982 @r=`${PWD_COMMAND}`; export r; \
31983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31984 $(HOST_EXPORTS) \
31985 (cd $(HOST_SUBDIR)/gotools && \
31986 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31987
31988@endif gotools
31989
31990# Other targets (info, dvi, pdf, etc.)
31991
31992.PHONY: maybe-info-gotools info-gotools
31993maybe-info-gotools:
31994@if gotools
31995maybe-info-gotools: info-gotools
31996
31997info-gotools: \
31998 configure-gotools
31999 @: $(MAKE); $(unstage)
32000 @[ -f ./gotools/Makefile ] || exit 0; \
32001 r=`${PWD_COMMAND}`; export r; \
32002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32003 $(HOST_EXPORTS) \
32004 for flag in $(EXTRA_HOST_FLAGS) ; do \
32005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32006 done; \
32007 echo "Doing info in gotools" ; \
32008 (cd $(HOST_SUBDIR)/gotools && \
32009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32011 "RANLIB=$${RANLIB}" \
32012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32013 info) \
32014 || exit 1
32015
32016@endif gotools
32017
32018.PHONY: maybe-dvi-gotools dvi-gotools
32019maybe-dvi-gotools:
32020@if gotools
32021maybe-dvi-gotools: dvi-gotools
32022
32023dvi-gotools: \
32024 configure-gotools
32025 @: $(MAKE); $(unstage)
32026 @[ -f ./gotools/Makefile ] || exit 0; \
32027 r=`${PWD_COMMAND}`; export r; \
32028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32029 $(HOST_EXPORTS) \
32030 for flag in $(EXTRA_HOST_FLAGS) ; do \
32031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32032 done; \
32033 echo "Doing dvi in gotools" ; \
32034 (cd $(HOST_SUBDIR)/gotools && \
32035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32037 "RANLIB=$${RANLIB}" \
32038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32039 dvi) \
32040 || exit 1
32041
32042@endif gotools
32043
32044.PHONY: maybe-pdf-gotools pdf-gotools
32045maybe-pdf-gotools:
32046@if gotools
32047maybe-pdf-gotools: pdf-gotools
32048
32049pdf-gotools: \
32050 configure-gotools
32051 @: $(MAKE); $(unstage)
32052 @[ -f ./gotools/Makefile ] || exit 0; \
32053 r=`${PWD_COMMAND}`; export r; \
32054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32055 $(HOST_EXPORTS) \
32056 for flag in $(EXTRA_HOST_FLAGS) ; do \
32057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32058 done; \
32059 echo "Doing pdf in gotools" ; \
32060 (cd $(HOST_SUBDIR)/gotools && \
32061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32063 "RANLIB=$${RANLIB}" \
32064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32065 pdf) \
32066 || exit 1
32067
32068@endif gotools
32069
32070.PHONY: maybe-html-gotools html-gotools
32071maybe-html-gotools:
32072@if gotools
32073maybe-html-gotools: html-gotools
32074
32075html-gotools: \
32076 configure-gotools
32077 @: $(MAKE); $(unstage)
32078 @[ -f ./gotools/Makefile ] || exit 0; \
32079 r=`${PWD_COMMAND}`; export r; \
32080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32081 $(HOST_EXPORTS) \
32082 for flag in $(EXTRA_HOST_FLAGS) ; do \
32083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32084 done; \
32085 echo "Doing html in gotools" ; \
32086 (cd $(HOST_SUBDIR)/gotools && \
32087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32089 "RANLIB=$${RANLIB}" \
32090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32091 html) \
32092 || exit 1
32093
32094@endif gotools
32095
32096.PHONY: maybe-TAGS-gotools TAGS-gotools
32097maybe-TAGS-gotools:
32098@if gotools
32099maybe-TAGS-gotools: TAGS-gotools
32100
32101TAGS-gotools: \
32102 configure-gotools
32103 @: $(MAKE); $(unstage)
32104 @[ -f ./gotools/Makefile ] || exit 0; \
32105 r=`${PWD_COMMAND}`; export r; \
32106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32107 $(HOST_EXPORTS) \
32108 for flag in $(EXTRA_HOST_FLAGS) ; do \
32109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32110 done; \
32111 echo "Doing TAGS in gotools" ; \
32112 (cd $(HOST_SUBDIR)/gotools && \
32113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32115 "RANLIB=$${RANLIB}" \
32116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32117 TAGS) \
32118 || exit 1
32119
32120@endif gotools
32121
32122.PHONY: maybe-install-info-gotools install-info-gotools
32123maybe-install-info-gotools:
32124@if gotools
32125maybe-install-info-gotools: install-info-gotools
32126
32127install-info-gotools: \
32128 configure-gotools \
32129 info-gotools
32130 @: $(MAKE); $(unstage)
32131 @[ -f ./gotools/Makefile ] || exit 0; \
32132 r=`${PWD_COMMAND}`; export r; \
32133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32134 $(HOST_EXPORTS) \
32135 for flag in $(EXTRA_HOST_FLAGS) ; do \
32136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32137 done; \
32138 echo "Doing install-info in gotools" ; \
32139 (cd $(HOST_SUBDIR)/gotools && \
32140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32142 "RANLIB=$${RANLIB}" \
32143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32144 install-info) \
32145 || exit 1
32146
32147@endif gotools
32148
32149.PHONY: maybe-install-pdf-gotools install-pdf-gotools
32150maybe-install-pdf-gotools:
32151@if gotools
32152maybe-install-pdf-gotools: install-pdf-gotools
32153
32154install-pdf-gotools: \
32155 configure-gotools \
32156 pdf-gotools
32157 @: $(MAKE); $(unstage)
32158 @[ -f ./gotools/Makefile ] || exit 0; \
32159 r=`${PWD_COMMAND}`; export r; \
32160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32161 $(HOST_EXPORTS) \
32162 for flag in $(EXTRA_HOST_FLAGS) ; do \
32163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32164 done; \
32165 echo "Doing install-pdf in gotools" ; \
32166 (cd $(HOST_SUBDIR)/gotools && \
32167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32169 "RANLIB=$${RANLIB}" \
32170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32171 install-pdf) \
32172 || exit 1
32173
32174@endif gotools
32175
32176.PHONY: maybe-install-html-gotools install-html-gotools
32177maybe-install-html-gotools:
32178@if gotools
32179maybe-install-html-gotools: install-html-gotools
32180
32181install-html-gotools: \
32182 configure-gotools \
32183 html-gotools
32184 @: $(MAKE); $(unstage)
32185 @[ -f ./gotools/Makefile ] || exit 0; \
32186 r=`${PWD_COMMAND}`; export r; \
32187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32188 $(HOST_EXPORTS) \
32189 for flag in $(EXTRA_HOST_FLAGS) ; do \
32190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32191 done; \
32192 echo "Doing install-html in gotools" ; \
32193 (cd $(HOST_SUBDIR)/gotools && \
32194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32196 "RANLIB=$${RANLIB}" \
32197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32198 install-html) \
32199 || exit 1
32200
32201@endif gotools
32202
32203.PHONY: maybe-installcheck-gotools installcheck-gotools
32204maybe-installcheck-gotools:
32205@if gotools
32206maybe-installcheck-gotools: installcheck-gotools
32207
32208installcheck-gotools: \
32209 configure-gotools
32210 @: $(MAKE); $(unstage)
32211 @[ -f ./gotools/Makefile ] || exit 0; \
32212 r=`${PWD_COMMAND}`; export r; \
32213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32214 $(HOST_EXPORTS) \
32215 for flag in $(EXTRA_HOST_FLAGS) ; do \
32216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32217 done; \
32218 echo "Doing installcheck in gotools" ; \
32219 (cd $(HOST_SUBDIR)/gotools && \
32220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32222 "RANLIB=$${RANLIB}" \
32223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32224 installcheck) \
32225 || exit 1
32226
32227@endif gotools
32228
32229.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
32230maybe-mostlyclean-gotools:
32231@if gotools
32232maybe-mostlyclean-gotools: mostlyclean-gotools
32233
32234mostlyclean-gotools:
32235 @: $(MAKE); $(unstage)
32236 @[ -f ./gotools/Makefile ] || exit 0; \
32237 r=`${PWD_COMMAND}`; export r; \
32238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32239 $(HOST_EXPORTS) \
32240 for flag in $(EXTRA_HOST_FLAGS) ; do \
32241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32242 done; \
32243 echo "Doing mostlyclean in gotools" ; \
32244 (cd $(HOST_SUBDIR)/gotools && \
32245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32247 "RANLIB=$${RANLIB}" \
32248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32249 mostlyclean) \
32250 || exit 1
32251
32252@endif gotools
32253
32254.PHONY: maybe-clean-gotools clean-gotools
32255maybe-clean-gotools:
32256@if gotools
32257maybe-clean-gotools: clean-gotools
32258
32259clean-gotools:
32260 @: $(MAKE); $(unstage)
32261 @[ -f ./gotools/Makefile ] || exit 0; \
32262 r=`${PWD_COMMAND}`; export r; \
32263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32264 $(HOST_EXPORTS) \
32265 for flag in $(EXTRA_HOST_FLAGS) ; do \
32266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32267 done; \
32268 echo "Doing clean in gotools" ; \
32269 (cd $(HOST_SUBDIR)/gotools && \
32270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32272 "RANLIB=$${RANLIB}" \
32273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32274 clean) \
32275 || exit 1
32276
32277@endif gotools
32278
32279.PHONY: maybe-distclean-gotools distclean-gotools
32280maybe-distclean-gotools:
32281@if gotools
32282maybe-distclean-gotools: distclean-gotools
32283
32284distclean-gotools:
32285 @: $(MAKE); $(unstage)
32286 @[ -f ./gotools/Makefile ] || exit 0; \
32287 r=`${PWD_COMMAND}`; export r; \
32288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32289 $(HOST_EXPORTS) \
32290 for flag in $(EXTRA_HOST_FLAGS) ; do \
32291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32292 done; \
32293 echo "Doing distclean in gotools" ; \
32294 (cd $(HOST_SUBDIR)/gotools && \
32295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32297 "RANLIB=$${RANLIB}" \
32298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32299 distclean) \
32300 || exit 1
32301
32302@endif gotools
32303
32304.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
32305maybe-maintainer-clean-gotools:
32306@if gotools
32307maybe-maintainer-clean-gotools: maintainer-clean-gotools
32308
32309maintainer-clean-gotools:
32310 @: $(MAKE); $(unstage)
32311 @[ -f ./gotools/Makefile ] || exit 0; \
32312 r=`${PWD_COMMAND}`; export r; \
32313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32314 $(HOST_EXPORTS) \
32315 for flag in $(EXTRA_HOST_FLAGS) ; do \
32316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32317 done; \
32318 echo "Doing maintainer-clean in gotools" ; \
32319 (cd $(HOST_SUBDIR)/gotools && \
32320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32322 "RANLIB=$${RANLIB}" \
32323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32324 maintainer-clean) \
32325 || exit 1
32326
32327@endif gotools
32328
32329
32330
32331# ---------------------------------------
32332# Modules which run on the target machine
32333# ---------------------------------------
32334
32335
32336
32337
32338.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
32339maybe-configure-target-libstdc++-v3:
32340@if gcc-bootstrap
32341configure-target-libstdc++-v3: stage_current
32342@endif gcc-bootstrap
32343@if target-libstdc++-v3
32344maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
32345configure-target-libstdc++-v3:
32346 @r=`${PWD_COMMAND}`; export r; \
32347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32348 echo "Checking multilib configuration for libstdc++-v3..."; \
32349 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32350 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32351 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32352 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32353 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32354 else \
32355 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32356 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32357 fi; \
32358 else \
32359 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32360 fi; \
32361 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32362 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32363 $(RAW_CXX_TARGET_EXPORTS) \
32364 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
32365 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
32366 case $(srcdir) in \
32367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32368 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32370 esac; \
32371 module_srcdir=libstdc++-v3; \
32372 rm -f no-such-file || : ; \
32373 CONFIG_SITE=no-such-file $(SHELL) \
32374 $$s/$$module_srcdir/configure \
32375 --srcdir=$${topdir}/$$module_srcdir \
32376 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32377 --target=${target_alias} \
32378 || exit 1
32379@endif target-libstdc++-v3
32380
32381
32382
32383.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
32384maybe-configure-stage1-target-libstdc++-v3:
32385@if target-libstdc++-v3-bootstrap
32386maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32387configure-stage1-target-libstdc++-v3:
32388 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32389 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32390 @r=`${PWD_COMMAND}`; export r; \
32391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32392 TFLAGS="$(STAGE1_TFLAGS)"; \
32393 echo "Checking multilib configuration for libstdc++-v3..."; \
32394 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32395 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32396 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32397 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32398 else \
32399 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32400 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32401 fi; \
32402 else \
32403 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32404 fi; \
32405 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32406 $(RAW_CXX_TARGET_EXPORTS) \
32407 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32408 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32409 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32410 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32411 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32412 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32413 case $(srcdir) in \
32414 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32415 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32416 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32417 esac; \
32418 module_srcdir=libstdc++-v3; \
32419 $(SHELL) $$s/$$module_srcdir/configure \
32420 --srcdir=$${topdir}/$$module_srcdir \
32421 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32422 --target=${target_alias} \
32423 \
32424 $(STAGE1_CONFIGURE_FLAGS)
32425@endif target-libstdc++-v3-bootstrap
32426
32427.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
32428maybe-configure-stage2-target-libstdc++-v3:
32429@if target-libstdc++-v3-bootstrap
32430maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32431configure-stage2-target-libstdc++-v3:
32432 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32433 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32434 @r=`${PWD_COMMAND}`; export r; \
32435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32436 TFLAGS="$(STAGE2_TFLAGS)"; \
32437 echo "Checking multilib configuration for libstdc++-v3..."; \
32438 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32439 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32440 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32441 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32442 else \
32443 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32444 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32445 fi; \
32446 else \
32447 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32448 fi; \
32449 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32450 $(RAW_CXX_TARGET_EXPORTS) \
32451 \
32452 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32453 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32454 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32455 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32456 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32457 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32458 case $(srcdir) in \
32459 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32460 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32461 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32462 esac; \
32463 module_srcdir=libstdc++-v3; \
32464 $(SHELL) $$s/$$module_srcdir/configure \
32465 --srcdir=$${topdir}/$$module_srcdir \
32466 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32467 --target=${target_alias} \
32468 --with-build-libsubdir=$(HOST_SUBDIR) \
32469 $(STAGE2_CONFIGURE_FLAGS)
32470@endif target-libstdc++-v3-bootstrap
32471
32472.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
32473maybe-configure-stage3-target-libstdc++-v3:
32474@if target-libstdc++-v3-bootstrap
32475maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32476configure-stage3-target-libstdc++-v3:
32477 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32478 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32479 @r=`${PWD_COMMAND}`; export r; \
32480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32481 TFLAGS="$(STAGE3_TFLAGS)"; \
32482 echo "Checking multilib configuration for libstdc++-v3..."; \
32483 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32484 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32485 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32486 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32487 else \
32488 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32489 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32490 fi; \
32491 else \
32492 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32493 fi; \
32494 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32495 $(RAW_CXX_TARGET_EXPORTS) \
32496 \
32497 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32498 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32499 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32500 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32501 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32502 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32503 case $(srcdir) in \
32504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32505 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32507 esac; \
32508 module_srcdir=libstdc++-v3; \
32509 $(SHELL) $$s/$$module_srcdir/configure \
32510 --srcdir=$${topdir}/$$module_srcdir \
32511 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32512 --target=${target_alias} \
32513 --with-build-libsubdir=$(HOST_SUBDIR) \
32514 $(STAGE3_CONFIGURE_FLAGS)
32515@endif target-libstdc++-v3-bootstrap
32516
32517.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
32518maybe-configure-stage4-target-libstdc++-v3:
32519@if target-libstdc++-v3-bootstrap
32520maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32521configure-stage4-target-libstdc++-v3:
32522 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32523 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32524 @r=`${PWD_COMMAND}`; export r; \
32525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32526 TFLAGS="$(STAGE4_TFLAGS)"; \
32527 echo "Checking multilib configuration for libstdc++-v3..."; \
32528 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32529 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32530 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32531 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32532 else \
32533 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32534 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32535 fi; \
32536 else \
32537 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32538 fi; \
32539 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32540 $(RAW_CXX_TARGET_EXPORTS) \
32541 \
32542 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32543 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32544 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32545 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32546 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32547 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32548 case $(srcdir) in \
32549 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32550 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32551 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32552 esac; \
32553 module_srcdir=libstdc++-v3; \
32554 $(SHELL) $$s/$$module_srcdir/configure \
32555 --srcdir=$${topdir}/$$module_srcdir \
32556 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32557 --target=${target_alias} \
32558 --with-build-libsubdir=$(HOST_SUBDIR) \
32559 $(STAGE4_CONFIGURE_FLAGS)
32560@endif target-libstdc++-v3-bootstrap
32561
32562.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
32563maybe-configure-stageprofile-target-libstdc++-v3:
32564@if target-libstdc++-v3-bootstrap
32565maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32566configure-stageprofile-target-libstdc++-v3:
32567 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32568 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32569 @r=`${PWD_COMMAND}`; export r; \
32570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32571 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32572 echo "Checking multilib configuration for libstdc++-v3..."; \
32573 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32574 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32575 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32576 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32577 else \
32578 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32579 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32580 fi; \
32581 else \
32582 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32583 fi; \
32584 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32585 $(RAW_CXX_TARGET_EXPORTS) \
32586 \
32587 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32588 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32589 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32590 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32591 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32592 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32593 case $(srcdir) in \
32594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32595 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32597 esac; \
32598 module_srcdir=libstdc++-v3; \
32599 $(SHELL) $$s/$$module_srcdir/configure \
32600 --srcdir=$${topdir}/$$module_srcdir \
32601 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32602 --target=${target_alias} \
32603 --with-build-libsubdir=$(HOST_SUBDIR) \
32604 $(STAGEprofile_CONFIGURE_FLAGS)
32605@endif target-libstdc++-v3-bootstrap
32606
32607.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
32608maybe-configure-stagefeedback-target-libstdc++-v3:
32609@if target-libstdc++-v3-bootstrap
32610maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
32611configure-stagefeedback-target-libstdc++-v3:
32612 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32613 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32614 @r=`${PWD_COMMAND}`; export r; \
32615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32616 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32617 echo "Checking multilib configuration for libstdc++-v3..."; \
32618 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32619 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32620 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32621 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32622 else \
32623 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32624 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32625 fi; \
32626 else \
32627 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32628 fi; \
32629 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32630 $(RAW_CXX_TARGET_EXPORTS) \
32631 \
32632 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32633 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32634 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32635 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32636 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32637 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32638 case $(srcdir) in \
32639 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32640 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32641 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32642 esac; \
32643 module_srcdir=libstdc++-v3; \
32644 $(SHELL) $$s/$$module_srcdir/configure \
32645 --srcdir=$${topdir}/$$module_srcdir \
32646 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32647 --target=${target_alias} \
32648 --with-build-libsubdir=$(HOST_SUBDIR) \
32649 $(STAGEfeedback_CONFIGURE_FLAGS)
32650@endif target-libstdc++-v3-bootstrap
32651
32652
32653
32654
32655
32656.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
32657maybe-all-target-libstdc++-v3:
32658@if gcc-bootstrap
32659all-target-libstdc++-v3: stage_current
32660@endif gcc-bootstrap
32661@if target-libstdc++-v3
32662TARGET-target-libstdc++-v3=all
32663maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
32664all-target-libstdc++-v3: configure-target-libstdc++-v3
32665 @r=`${PWD_COMMAND}`; export r; \
32666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32667 $(RAW_CXX_TARGET_EXPORTS) \
32668 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32669 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32670 $(TARGET-target-libstdc++-v3))
32671@endif target-libstdc++-v3
32672
32673
32674
32675.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
32676.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
32677maybe-all-stage1-target-libstdc++-v3:
32678maybe-clean-stage1-target-libstdc++-v3:
32679@if target-libstdc++-v3-bootstrap
32680maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
32681all-stage1: all-stage1-target-libstdc++-v3
32682TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32683all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32684 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32685 @r=`${PWD_COMMAND}`; export r; \
32686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32687 TFLAGS="$(STAGE1_TFLAGS)"; \
32688 $(RAW_CXX_TARGET_EXPORTS) \
32689 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32690 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32691 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32692 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32693 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32694 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32695 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32696 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32697 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32698 \
32699 TFLAGS="$(STAGE1_TFLAGS)" \
32700 $(TARGET-stage1-target-libstdc++-v3)
32701
32702maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
32703clean-stage1: clean-stage1-target-libstdc++-v3
32704clean-stage1-target-libstdc++-v3:
32705 @if [ $(current_stage) = stage1 ]; then \
32706 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32707 else \
32708 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
32709 $(MAKE) stage1-start; \
32710 fi; \
32711 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32712 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32713 clean
32714@endif target-libstdc++-v3-bootstrap
32715
32716
32717.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
32718.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
32719maybe-all-stage2-target-libstdc++-v3:
32720maybe-clean-stage2-target-libstdc++-v3:
32721@if target-libstdc++-v3-bootstrap
32722maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
32723all-stage2: all-stage2-target-libstdc++-v3
32724TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32725all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32726 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32727 @r=`${PWD_COMMAND}`; export r; \
32728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32729 TFLAGS="$(STAGE2_TFLAGS)"; \
32730 $(RAW_CXX_TARGET_EXPORTS) \
32731 \
32732 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32733 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32734 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32735 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32736 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32737 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32738 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32739 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32740 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32741 TFLAGS="$(STAGE2_TFLAGS)" \
32742 $(TARGET-stage2-target-libstdc++-v3)
32743
32744maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
32745clean-stage2: clean-stage2-target-libstdc++-v3
32746clean-stage2-target-libstdc++-v3:
32747 @if [ $(current_stage) = stage2 ]; then \
32748 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32749 else \
32750 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
32751 $(MAKE) stage2-start; \
32752 fi; \
32753 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32754 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32755@endif target-libstdc++-v3-bootstrap
32756
32757
32758.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
32759.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
32760maybe-all-stage3-target-libstdc++-v3:
32761maybe-clean-stage3-target-libstdc++-v3:
32762@if target-libstdc++-v3-bootstrap
32763maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
32764all-stage3: all-stage3-target-libstdc++-v3
32765TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32766all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32767 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32768 @r=`${PWD_COMMAND}`; export r; \
32769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32770 TFLAGS="$(STAGE3_TFLAGS)"; \
32771 $(RAW_CXX_TARGET_EXPORTS) \
32772 \
32773 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32774 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32775 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32776 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32777 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32778 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32779 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32780 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32781 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32782 TFLAGS="$(STAGE3_TFLAGS)" \
32783 $(TARGET-stage3-target-libstdc++-v3)
32784
32785maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
32786clean-stage3: clean-stage3-target-libstdc++-v3
32787clean-stage3-target-libstdc++-v3:
32788 @if [ $(current_stage) = stage3 ]; then \
32789 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32790 else \
32791 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
32792 $(MAKE) stage3-start; \
32793 fi; \
32794 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32795 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32796@endif target-libstdc++-v3-bootstrap
32797
32798
32799.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
32800.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
32801maybe-all-stage4-target-libstdc++-v3:
32802maybe-clean-stage4-target-libstdc++-v3:
32803@if target-libstdc++-v3-bootstrap
32804maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
32805all-stage4: all-stage4-target-libstdc++-v3
32806TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32807all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32808 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32809 @r=`${PWD_COMMAND}`; export r; \
32810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32811 TFLAGS="$(STAGE4_TFLAGS)"; \
32812 $(RAW_CXX_TARGET_EXPORTS) \
32813 \
32814 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32815 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32816 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32817 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32818 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32819 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32820 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32821 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32822 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32823 TFLAGS="$(STAGE4_TFLAGS)" \
32824 $(TARGET-stage4-target-libstdc++-v3)
32825
32826maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
32827clean-stage4: clean-stage4-target-libstdc++-v3
32828clean-stage4-target-libstdc++-v3:
32829 @if [ $(current_stage) = stage4 ]; then \
32830 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32831 else \
32832 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
32833 $(MAKE) stage4-start; \
32834 fi; \
32835 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32836 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32837@endif target-libstdc++-v3-bootstrap
32838
32839
32840.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
32841.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
32842maybe-all-stageprofile-target-libstdc++-v3:
32843maybe-clean-stageprofile-target-libstdc++-v3:
32844@if target-libstdc++-v3-bootstrap
32845maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
32846all-stageprofile: all-stageprofile-target-libstdc++-v3
32847TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32848all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32849 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32850 @r=`${PWD_COMMAND}`; export r; \
32851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32852 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32853 $(RAW_CXX_TARGET_EXPORTS) \
32854 \
32855 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32856 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32857 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32858 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32859 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32860 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32861 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32862 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32863 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32864 TFLAGS="$(STAGEprofile_TFLAGS)" \
32865 $(TARGET-stageprofile-target-libstdc++-v3)
32866
32867maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
32868clean-stageprofile: clean-stageprofile-target-libstdc++-v3
32869clean-stageprofile-target-libstdc++-v3:
32870 @if [ $(current_stage) = stageprofile ]; then \
32871 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32872 else \
32873 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
32874 $(MAKE) stageprofile-start; \
32875 fi; \
32876 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32877 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32878@endif target-libstdc++-v3-bootstrap
32879
32880
32881.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
32882.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
32883maybe-all-stagefeedback-target-libstdc++-v3:
32884maybe-clean-stagefeedback-target-libstdc++-v3:
32885@if target-libstdc++-v3-bootstrap
32886maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
32887all-stagefeedback: all-stagefeedback-target-libstdc++-v3
32888TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32889all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
32890 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32891 @r=`${PWD_COMMAND}`; export r; \
32892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32893 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32894 $(RAW_CXX_TARGET_EXPORTS) \
32895 \
32896 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32897 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32898 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32899 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32900 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32901 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32902 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32903 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32904 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32905 TFLAGS="$(STAGEfeedback_TFLAGS)" \
32906 $(TARGET-stagefeedback-target-libstdc++-v3)
32907
32908maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
32909clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
32910clean-stagefeedback-target-libstdc++-v3:
32911 @if [ $(current_stage) = stagefeedback ]; then \
32912 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32913 else \
32914 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
32915 $(MAKE) stagefeedback-start; \
32916 fi; \
32917 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32918 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32919@endif target-libstdc++-v3-bootstrap
32920
32921
32922
32923
32924
32925
32926.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
32927maybe-check-target-libstdc++-v3:
32928@if target-libstdc++-v3
32929maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
32930
32931check-target-libstdc++-v3:
32932 @: $(MAKE); $(unstage)
32933 @r=`${PWD_COMMAND}`; export r; \
32934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32935 $(RAW_CXX_TARGET_EXPORTS) \
32936 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32937 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
32938
32939@endif target-libstdc++-v3
32940
32941.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
32942maybe-install-target-libstdc++-v3:
32943@if target-libstdc++-v3
32944maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
32945
32946install-target-libstdc++-v3: installdirs
32947 @: $(MAKE); $(unstage)
32948 @r=`${PWD_COMMAND}`; export r; \
32949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32950 $(RAW_CXX_TARGET_EXPORTS) \
32951 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32952 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
32953
32954@endif target-libstdc++-v3
32955
32956.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
32957maybe-install-strip-target-libstdc++-v3:
32958@if target-libstdc++-v3
32959maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
32960
32961install-strip-target-libstdc++-v3: installdirs
32962 @: $(MAKE); $(unstage)
32963 @r=`${PWD_COMMAND}`; export r; \
32964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32965 $(RAW_CXX_TARGET_EXPORTS) \
32966 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32967 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
32968
32969@endif target-libstdc++-v3
32970
32971# Other targets (info, dvi, pdf, etc.)
32972
32973.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
32974maybe-info-target-libstdc++-v3:
32975@if target-libstdc++-v3
32976maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
32977
32978info-target-libstdc++-v3: \
32979 configure-target-libstdc++-v3
32980 @: $(MAKE); $(unstage)
32981 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
32982 r=`${PWD_COMMAND}`; export r; \
32983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32984 $(RAW_CXX_TARGET_EXPORTS) \
32985 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
32986 for flag in $(EXTRA_TARGET_FLAGS); do \
32987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32988 done; \
32989 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32992 "RANLIB=$${RANLIB}" \
32993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32994 info) \
32995 || exit 1
32996
32997@endif target-libstdc++-v3
32998
32999.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
33000maybe-dvi-target-libstdc++-v3:
33001@if target-libstdc++-v3
33002maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
33003
33004dvi-target-libstdc++-v3: \
33005 configure-target-libstdc++-v3
33006 @: $(MAKE); $(unstage)
33007 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33008 r=`${PWD_COMMAND}`; export r; \
33009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33010 $(RAW_CXX_TARGET_EXPORTS) \
33011 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33012 for flag in $(EXTRA_TARGET_FLAGS); do \
33013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33014 done; \
33015 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33018 "RANLIB=$${RANLIB}" \
33019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33020 dvi) \
33021 || exit 1
33022
33023@endif target-libstdc++-v3
33024
33025.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
33026maybe-pdf-target-libstdc++-v3:
33027@if target-libstdc++-v3
33028maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
33029
33030pdf-target-libstdc++-v3: \
33031 configure-target-libstdc++-v3
33032 @: $(MAKE); $(unstage)
33033 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33034 r=`${PWD_COMMAND}`; export r; \
33035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33036 $(RAW_CXX_TARGET_EXPORTS) \
33037 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33038 for flag in $(EXTRA_TARGET_FLAGS); do \
33039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33040 done; \
33041 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33044 "RANLIB=$${RANLIB}" \
33045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33046 pdf) \
33047 || exit 1
33048
33049@endif target-libstdc++-v3
33050
33051.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
33052maybe-html-target-libstdc++-v3:
33053@if target-libstdc++-v3
33054maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
33055
33056html-target-libstdc++-v3: \
33057 configure-target-libstdc++-v3
33058 @: $(MAKE); $(unstage)
33059 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33060 r=`${PWD_COMMAND}`; export r; \
33061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33062 $(RAW_CXX_TARGET_EXPORTS) \
33063 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33064 for flag in $(EXTRA_TARGET_FLAGS); do \
33065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33066 done; \
33067 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33070 "RANLIB=$${RANLIB}" \
33071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33072 html) \
33073 || exit 1
33074
33075@endif target-libstdc++-v3
33076
33077.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
33078maybe-TAGS-target-libstdc++-v3:
33079@if target-libstdc++-v3
33080maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
33081
33082TAGS-target-libstdc++-v3: \
33083 configure-target-libstdc++-v3
33084 @: $(MAKE); $(unstage)
33085 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33086 r=`${PWD_COMMAND}`; export r; \
33087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33088 $(RAW_CXX_TARGET_EXPORTS) \
33089 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33090 for flag in $(EXTRA_TARGET_FLAGS); do \
33091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33092 done; \
33093 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33096 "RANLIB=$${RANLIB}" \
33097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33098 TAGS) \
33099 || exit 1
33100
33101@endif target-libstdc++-v3
33102
33103.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
33104maybe-install-info-target-libstdc++-v3:
33105@if target-libstdc++-v3
33106maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
33107
33108install-info-target-libstdc++-v3: \
33109 configure-target-libstdc++-v3 \
33110 info-target-libstdc++-v3
33111 @: $(MAKE); $(unstage)
33112 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33113 r=`${PWD_COMMAND}`; export r; \
33114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33115 $(RAW_CXX_TARGET_EXPORTS) \
33116 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33117 for flag in $(EXTRA_TARGET_FLAGS); do \
33118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33119 done; \
33120 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33123 "RANLIB=$${RANLIB}" \
33124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33125 install-info) \
33126 || exit 1
33127
33128@endif target-libstdc++-v3
33129
33130.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
33131maybe-install-pdf-target-libstdc++-v3:
33132@if target-libstdc++-v3
33133maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
33134
33135install-pdf-target-libstdc++-v3: \
33136 configure-target-libstdc++-v3 \
33137 pdf-target-libstdc++-v3
33138 @: $(MAKE); $(unstage)
33139 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33140 r=`${PWD_COMMAND}`; export r; \
33141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33142 $(RAW_CXX_TARGET_EXPORTS) \
33143 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33144 for flag in $(EXTRA_TARGET_FLAGS); do \
33145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33146 done; \
33147 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33150 "RANLIB=$${RANLIB}" \
33151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33152 install-pdf) \
33153 || exit 1
33154
33155@endif target-libstdc++-v3
33156
33157.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
33158maybe-install-html-target-libstdc++-v3:
33159@if target-libstdc++-v3
33160maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
33161
33162install-html-target-libstdc++-v3: \
33163 configure-target-libstdc++-v3 \
33164 html-target-libstdc++-v3
33165 @: $(MAKE); $(unstage)
33166 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33167 r=`${PWD_COMMAND}`; export r; \
33168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33169 $(RAW_CXX_TARGET_EXPORTS) \
33170 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33171 for flag in $(EXTRA_TARGET_FLAGS); do \
33172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33173 done; \
33174 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33177 "RANLIB=$${RANLIB}" \
33178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33179 install-html) \
33180 || exit 1
33181
33182@endif target-libstdc++-v3
33183
33184.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
33185maybe-installcheck-target-libstdc++-v3:
33186@if target-libstdc++-v3
33187maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
33188
33189installcheck-target-libstdc++-v3: \
33190 configure-target-libstdc++-v3
33191 @: $(MAKE); $(unstage)
33192 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33193 r=`${PWD_COMMAND}`; export r; \
33194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33195 $(RAW_CXX_TARGET_EXPORTS) \
33196 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33197 for flag in $(EXTRA_TARGET_FLAGS); do \
33198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33199 done; \
33200 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33203 "RANLIB=$${RANLIB}" \
33204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33205 installcheck) \
33206 || exit 1
33207
33208@endif target-libstdc++-v3
33209
33210.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
33211maybe-mostlyclean-target-libstdc++-v3:
33212@if target-libstdc++-v3
33213maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
33214
33215mostlyclean-target-libstdc++-v3:
33216 @: $(MAKE); $(unstage)
33217 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33218 r=`${PWD_COMMAND}`; export r; \
33219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33220 $(RAW_CXX_TARGET_EXPORTS) \
33221 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33222 for flag in $(EXTRA_TARGET_FLAGS); do \
33223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33224 done; \
33225 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33228 "RANLIB=$${RANLIB}" \
33229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33230 mostlyclean) \
33231 || exit 1
33232
33233@endif target-libstdc++-v3
33234
33235.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
33236maybe-clean-target-libstdc++-v3:
33237@if target-libstdc++-v3
33238maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
33239
33240clean-target-libstdc++-v3:
33241 @: $(MAKE); $(unstage)
33242 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33243 r=`${PWD_COMMAND}`; export r; \
33244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33245 $(RAW_CXX_TARGET_EXPORTS) \
33246 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33247 for flag in $(EXTRA_TARGET_FLAGS); do \
33248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33249 done; \
33250 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33253 "RANLIB=$${RANLIB}" \
33254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33255 clean) \
33256 || exit 1
33257
33258@endif target-libstdc++-v3
33259
33260.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
33261maybe-distclean-target-libstdc++-v3:
33262@if target-libstdc++-v3
33263maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
33264
33265distclean-target-libstdc++-v3:
33266 @: $(MAKE); $(unstage)
33267 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33268 r=`${PWD_COMMAND}`; export r; \
33269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33270 $(RAW_CXX_TARGET_EXPORTS) \
33271 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33272 for flag in $(EXTRA_TARGET_FLAGS); do \
33273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33274 done; \
33275 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33278 "RANLIB=$${RANLIB}" \
33279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33280 distclean) \
33281 || exit 1
33282
33283@endif target-libstdc++-v3
33284
33285.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
33286maybe-maintainer-clean-target-libstdc++-v3:
33287@if target-libstdc++-v3
33288maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
33289
33290maintainer-clean-target-libstdc++-v3:
33291 @: $(MAKE); $(unstage)
33292 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33293 r=`${PWD_COMMAND}`; export r; \
33294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33295 $(RAW_CXX_TARGET_EXPORTS) \
33296 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33297 for flag in $(EXTRA_TARGET_FLAGS); do \
33298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33299 done; \
33300 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33303 "RANLIB=$${RANLIB}" \
33304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33305 maintainer-clean) \
33306 || exit 1
33307
33308@endif target-libstdc++-v3
33309
33310
33311
33312
33313
33314.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
33315maybe-configure-target-libsanitizer:
33316@if gcc-bootstrap
33317configure-target-libsanitizer: stage_current
33318@endif gcc-bootstrap
33319@if target-libsanitizer
33320maybe-configure-target-libsanitizer: configure-target-libsanitizer
33321configure-target-libsanitizer:
33322 @r=`${PWD_COMMAND}`; export r; \
33323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33324 echo "Checking multilib configuration for libsanitizer..."; \
33325 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33326 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33327 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33328 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33329 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33330 else \
33331 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33332 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33333 fi; \
33334 else \
33335 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33336 fi; \
33337 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33338 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33339 $(RAW_CXX_TARGET_EXPORTS) \
33340 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
33341 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
33342 case $(srcdir) in \
33343 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33344 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33345 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33346 esac; \
33347 module_srcdir=libsanitizer; \
33348 rm -f no-such-file || : ; \
33349 CONFIG_SITE=no-such-file $(SHELL) \
33350 $$s/$$module_srcdir/configure \
33351 --srcdir=$${topdir}/$$module_srcdir \
33352 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33353 --target=${target_alias} \
33354 || exit 1
33355@endif target-libsanitizer
33356
33357
33358
33359.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
33360maybe-configure-stage1-target-libsanitizer:
33361@if target-libsanitizer-bootstrap
33362maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33363configure-stage1-target-libsanitizer:
33364 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33365 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33366 @r=`${PWD_COMMAND}`; export r; \
33367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33368 TFLAGS="$(STAGE1_TFLAGS)"; \
33369 echo "Checking multilib configuration for libsanitizer..."; \
33370 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33371 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33372 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33373 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33374 else \
33375 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33376 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33377 fi; \
33378 else \
33379 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33380 fi; \
33381 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33382 $(RAW_CXX_TARGET_EXPORTS) \
33383 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33384 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33385 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33386 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer ; \
33387 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33388 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33389 case $(srcdir) in \
33390 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33391 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33392 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33393 esac; \
33394 module_srcdir=libsanitizer; \
33395 $(SHELL) $$s/$$module_srcdir/configure \
33396 --srcdir=$${topdir}/$$module_srcdir \
33397 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33398 --target=${target_alias} \
33399 \
33400 $(STAGE1_CONFIGURE_FLAGS)
33401@endif target-libsanitizer-bootstrap
33402
33403.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
33404maybe-configure-stage2-target-libsanitizer:
33405@if target-libsanitizer-bootstrap
33406maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33407configure-stage2-target-libsanitizer:
33408 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33409 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33410 @r=`${PWD_COMMAND}`; export r; \
33411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33412 TFLAGS="$(STAGE2_TFLAGS)"; \
33413 echo "Checking multilib configuration for libsanitizer..."; \
33414 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33415 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33416 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33417 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33418 else \
33419 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33420 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33421 fi; \
33422 else \
33423 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33424 fi; \
33425 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33426 $(RAW_CXX_TARGET_EXPORTS) \
33427 \
33428 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33429 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33430 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33431 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer ; \
33432 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33433 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33434 case $(srcdir) in \
33435 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33436 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33437 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33438 esac; \
33439 module_srcdir=libsanitizer; \
33440 $(SHELL) $$s/$$module_srcdir/configure \
33441 --srcdir=$${topdir}/$$module_srcdir \
33442 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33443 --target=${target_alias} \
33444 --with-build-libsubdir=$(HOST_SUBDIR) \
33445 $(STAGE2_CONFIGURE_FLAGS)
33446@endif target-libsanitizer-bootstrap
33447
33448.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
33449maybe-configure-stage3-target-libsanitizer:
33450@if target-libsanitizer-bootstrap
33451maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33452configure-stage3-target-libsanitizer:
33453 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33454 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33455 @r=`${PWD_COMMAND}`; export r; \
33456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33457 TFLAGS="$(STAGE3_TFLAGS)"; \
33458 echo "Checking multilib configuration for libsanitizer..."; \
33459 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33460 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33461 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33462 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33463 else \
33464 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33465 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33466 fi; \
33467 else \
33468 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33469 fi; \
33470 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33471 $(RAW_CXX_TARGET_EXPORTS) \
33472 \
33473 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33474 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33475 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33476 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer ; \
33477 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33478 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33479 case $(srcdir) in \
33480 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33481 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33482 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33483 esac; \
33484 module_srcdir=libsanitizer; \
33485 $(SHELL) $$s/$$module_srcdir/configure \
33486 --srcdir=$${topdir}/$$module_srcdir \
33487 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33488 --target=${target_alias} \
33489 --with-build-libsubdir=$(HOST_SUBDIR) \
33490 $(STAGE3_CONFIGURE_FLAGS)
33491@endif target-libsanitizer-bootstrap
33492
33493.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
33494maybe-configure-stage4-target-libsanitizer:
33495@if target-libsanitizer-bootstrap
33496maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33497configure-stage4-target-libsanitizer:
33498 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33499 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33500 @r=`${PWD_COMMAND}`; export r; \
33501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33502 TFLAGS="$(STAGE4_TFLAGS)"; \
33503 echo "Checking multilib configuration for libsanitizer..."; \
33504 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33505 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33506 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33507 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33508 else \
33509 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33510 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33511 fi; \
33512 else \
33513 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33514 fi; \
33515 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33516 $(RAW_CXX_TARGET_EXPORTS) \
33517 \
33518 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33519 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33520 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33521 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer ; \
33522 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33523 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33524 case $(srcdir) in \
33525 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33526 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33527 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33528 esac; \
33529 module_srcdir=libsanitizer; \
33530 $(SHELL) $$s/$$module_srcdir/configure \
33531 --srcdir=$${topdir}/$$module_srcdir \
33532 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33533 --target=${target_alias} \
33534 --with-build-libsubdir=$(HOST_SUBDIR) \
33535 $(STAGE4_CONFIGURE_FLAGS)
33536@endif target-libsanitizer-bootstrap
33537
33538.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
33539maybe-configure-stageprofile-target-libsanitizer:
33540@if target-libsanitizer-bootstrap
33541maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
33542configure-stageprofile-target-libsanitizer:
33543 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33544 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33545 @r=`${PWD_COMMAND}`; export r; \
33546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33547 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33548 echo "Checking multilib configuration for libsanitizer..."; \
33549 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33550 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33551 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33552 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33553 else \
33554 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33555 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33556 fi; \
33557 else \
33558 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33559 fi; \
33560 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33561 $(RAW_CXX_TARGET_EXPORTS) \
33562 \
33563 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33564 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33565 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33566 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer ; \
33567 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33568 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33569 case $(srcdir) in \
33570 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33571 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33572 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33573 esac; \
33574 module_srcdir=libsanitizer; \
33575 $(SHELL) $$s/$$module_srcdir/configure \
33576 --srcdir=$${topdir}/$$module_srcdir \
33577 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33578 --target=${target_alias} \
33579 --with-build-libsubdir=$(HOST_SUBDIR) \
33580 $(STAGEprofile_CONFIGURE_FLAGS)
33581@endif target-libsanitizer-bootstrap
33582
33583.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
33584maybe-configure-stagefeedback-target-libsanitizer:
33585@if target-libsanitizer-bootstrap
33586maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
33587configure-stagefeedback-target-libsanitizer:
33588 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33589 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33590 @r=`${PWD_COMMAND}`; export r; \
33591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33592 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33593 echo "Checking multilib configuration for libsanitizer..."; \
33594 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33595 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33596 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33597 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33598 else \
33599 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33600 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33601 fi; \
33602 else \
33603 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33604 fi; \
33605 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33606 $(RAW_CXX_TARGET_EXPORTS) \
33607 \
33608 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33609 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33610 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33611 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer ; \
33612 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33613 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33614 case $(srcdir) in \
33615 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33616 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33617 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33618 esac; \
33619 module_srcdir=libsanitizer; \
33620 $(SHELL) $$s/$$module_srcdir/configure \
33621 --srcdir=$${topdir}/$$module_srcdir \
33622 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33623 --target=${target_alias} \
33624 --with-build-libsubdir=$(HOST_SUBDIR) \
33625 $(STAGEfeedback_CONFIGURE_FLAGS)
33626@endif target-libsanitizer-bootstrap
33627
33628
33629
33630
33631
33632.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
33633maybe-all-target-libsanitizer:
33634@if gcc-bootstrap
33635all-target-libsanitizer: stage_current
33636@endif gcc-bootstrap
33637@if target-libsanitizer
33638TARGET-target-libsanitizer=all
33639maybe-all-target-libsanitizer: all-target-libsanitizer
33640all-target-libsanitizer: configure-target-libsanitizer
33641 @r=`${PWD_COMMAND}`; export r; \
33642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33643 $(RAW_CXX_TARGET_EXPORTS) \
33644 (cd $(TARGET_SUBDIR)/libsanitizer && \
33645 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33646 $(TARGET-target-libsanitizer))
33647@endif target-libsanitizer
33648
33649
33650
33651.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
33652.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
33653maybe-all-stage1-target-libsanitizer:
33654maybe-clean-stage1-target-libsanitizer:
33655@if target-libsanitizer-bootstrap
33656maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
33657all-stage1: all-stage1-target-libsanitizer
33658TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
33659all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33660 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33661 @r=`${PWD_COMMAND}`; export r; \
33662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33663 TFLAGS="$(STAGE1_TFLAGS)"; \
33664 $(RAW_CXX_TARGET_EXPORTS) \
33665 cd $(TARGET_SUBDIR)/libsanitizer && \
33666 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33667 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33668 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33669 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33670 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33671 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33672 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33673 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33674 \
33675 TFLAGS="$(STAGE1_TFLAGS)" \
33676 $(TARGET-stage1-target-libsanitizer)
33677
33678maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
33679clean-stage1: clean-stage1-target-libsanitizer
33680clean-stage1-target-libsanitizer:
33681 @if [ $(current_stage) = stage1 ]; then \
33682 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33683 else \
33684 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
33685 $(MAKE) stage1-start; \
33686 fi; \
33687 cd $(TARGET_SUBDIR)/libsanitizer && \
33688 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33689 clean
33690@endif target-libsanitizer-bootstrap
33691
33692
33693.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
33694.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
33695maybe-all-stage2-target-libsanitizer:
33696maybe-clean-stage2-target-libsanitizer:
33697@if target-libsanitizer-bootstrap
33698maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
33699all-stage2: all-stage2-target-libsanitizer
33700TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
33701all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33702 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33703 @r=`${PWD_COMMAND}`; export r; \
33704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33705 TFLAGS="$(STAGE2_TFLAGS)"; \
33706 $(RAW_CXX_TARGET_EXPORTS) \
33707 \
33708 cd $(TARGET_SUBDIR)/libsanitizer && \
33709 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33710 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33711 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33712 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33713 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33714 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33715 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33716 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33717 TFLAGS="$(STAGE2_TFLAGS)" \
33718 $(TARGET-stage2-target-libsanitizer)
33719
33720maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
33721clean-stage2: clean-stage2-target-libsanitizer
33722clean-stage2-target-libsanitizer:
33723 @if [ $(current_stage) = stage2 ]; then \
33724 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33725 else \
33726 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
33727 $(MAKE) stage2-start; \
33728 fi; \
33729 cd $(TARGET_SUBDIR)/libsanitizer && \
33730 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33731@endif target-libsanitizer-bootstrap
33732
33733
33734.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
33735.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
33736maybe-all-stage3-target-libsanitizer:
33737maybe-clean-stage3-target-libsanitizer:
33738@if target-libsanitizer-bootstrap
33739maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
33740all-stage3: all-stage3-target-libsanitizer
33741TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
33742all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33743 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33744 @r=`${PWD_COMMAND}`; export r; \
33745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33746 TFLAGS="$(STAGE3_TFLAGS)"; \
33747 $(RAW_CXX_TARGET_EXPORTS) \
33748 \
33749 cd $(TARGET_SUBDIR)/libsanitizer && \
33750 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33751 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33752 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33753 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33754 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33755 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33756 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33757 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33758 TFLAGS="$(STAGE3_TFLAGS)" \
33759 $(TARGET-stage3-target-libsanitizer)
33760
33761maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
33762clean-stage3: clean-stage3-target-libsanitizer
33763clean-stage3-target-libsanitizer:
33764 @if [ $(current_stage) = stage3 ]; then \
33765 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33766 else \
33767 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
33768 $(MAKE) stage3-start; \
33769 fi; \
33770 cd $(TARGET_SUBDIR)/libsanitizer && \
33771 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33772@endif target-libsanitizer-bootstrap
33773
33774
33775.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
33776.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
33777maybe-all-stage4-target-libsanitizer:
33778maybe-clean-stage4-target-libsanitizer:
33779@if target-libsanitizer-bootstrap
33780maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
33781all-stage4: all-stage4-target-libsanitizer
33782TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
33783all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33784 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33785 @r=`${PWD_COMMAND}`; export r; \
33786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33787 TFLAGS="$(STAGE4_TFLAGS)"; \
33788 $(RAW_CXX_TARGET_EXPORTS) \
33789 \
33790 cd $(TARGET_SUBDIR)/libsanitizer && \
33791 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33792 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33793 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33794 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
33795 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33796 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33797 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33798 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33799 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 33800 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 33801
1b6c0831
L
33802maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
33803clean-stage4: clean-stage4-target-libsanitizer
33804clean-stage4-target-libsanitizer:
e8a5fa9c 33805 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 33806 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33807 else \
1b6c0831 33808 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33809 $(MAKE) stage4-start; \
33810 fi; \
1b6c0831 33811 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33812 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33813@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33814
33815
1b6c0831
L
33816.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
33817.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
33818maybe-all-stageprofile-target-libsanitizer:
33819maybe-clean-stageprofile-target-libsanitizer:
33820@if target-libsanitizer-bootstrap
33821maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
33822all-stageprofile: all-stageprofile-target-libsanitizer
33823TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
33824all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
33825 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33826 @r=`${PWD_COMMAND}`; export r; \
33827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33828 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33829 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 33830 \
1b6c0831 33831 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
33832 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33833 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33834 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33835 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33836 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33837 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33838 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33839 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33840 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 33841 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 33842
1b6c0831
L
33843maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
33844clean-stageprofile: clean-stageprofile-target-libsanitizer
33845clean-stageprofile-target-libsanitizer:
e8a5fa9c 33846 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 33847 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33848 else \
1b6c0831 33849 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33850 $(MAKE) stageprofile-start; \
33851 fi; \
1b6c0831 33852 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33853 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33854@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33855
33856
1b6c0831
L
33857.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
33858.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
33859maybe-all-stagefeedback-target-libsanitizer:
33860maybe-clean-stagefeedback-target-libsanitizer:
33861@if target-libsanitizer-bootstrap
33862maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
33863all-stagefeedback: all-stagefeedback-target-libsanitizer
33864TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
33865all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
33866 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33867 @r=`${PWD_COMMAND}`; export r; \
33868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33869 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33870 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 33871 \
1b6c0831 33872 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
33873 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33874 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33875 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33876 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33877 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33878 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33879 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33880 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33881 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 33882 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 33883
1b6c0831
L
33884maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
33885clean-stagefeedback: clean-stagefeedback-target-libsanitizer
33886clean-stagefeedback-target-libsanitizer:
e8a5fa9c 33887 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 33888 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33889 else \
1b6c0831 33890 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33891 $(MAKE) stagefeedback-start; \
33892 fi; \
1b6c0831 33893 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33894 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33895@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33896
33897
33898
33899
d545f33b
PB
33900
33901
1b6c0831
L
33902.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
33903maybe-check-target-libsanitizer:
33904@if target-libsanitizer
33905maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 33906
1b6c0831 33907check-target-libsanitizer:
0aed8855 33908 @: $(MAKE); $(unstage)
b40e3958
L
33909 @r=`${PWD_COMMAND}`; export r; \
33910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33911 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33912 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 33913 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 33914
1b6c0831 33915@endif target-libsanitizer
3866be5d 33916
1b6c0831
L
33917.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
33918maybe-install-target-libsanitizer:
33919@if target-libsanitizer
33920maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 33921
1b6c0831 33922install-target-libsanitizer: installdirs
0aed8855 33923 @: $(MAKE); $(unstage)
b40e3958
L
33924 @r=`${PWD_COMMAND}`; export r; \
33925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33926 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33927 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 33928 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 33929
1b6c0831 33930@endif target-libsanitizer
e2b9e2dc 33931
1b6c0831
L
33932.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
33933maybe-install-strip-target-libsanitizer:
33934@if target-libsanitizer
33935maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 33936
1b6c0831 33937install-strip-target-libsanitizer: installdirs
9b980aa1
RW
33938 @: $(MAKE); $(unstage)
33939 @r=`${PWD_COMMAND}`; export r; \
33940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33941 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33942 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
33943 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33944
1b6c0831 33945@endif target-libsanitizer
9b980aa1 33946
56a8fe78 33947# Other targets (info, dvi, pdf, etc.)
3866be5d 33948
1b6c0831
L
33949.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
33950maybe-info-target-libsanitizer:
33951@if target-libsanitizer
33952maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 33953
1b6c0831
L
33954info-target-libsanitizer: \
33955 configure-target-libsanitizer
0aed8855 33956 @: $(MAKE); $(unstage)
1b6c0831 33957 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 33958 r=`${PWD_COMMAND}`; export r; \
b40e3958 33959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33960 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33961 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
33962 for flag in $(EXTRA_TARGET_FLAGS); do \
33963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33964 done; \
1b6c0831 33965 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
33966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33968 "RANLIB=$${RANLIB}" \
0c24b341 33969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 33970 info) \
4fa63067 33971 || exit 1
3866be5d 33972
1b6c0831 33973@endif target-libsanitizer
3866be5d 33974
1b6c0831
L
33975.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
33976maybe-dvi-target-libsanitizer:
33977@if target-libsanitizer
33978maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 33979
1b6c0831
L
33980dvi-target-libsanitizer: \
33981 configure-target-libsanitizer
0aed8855 33982 @: $(MAKE); $(unstage)
1b6c0831 33983 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 33984 r=`${PWD_COMMAND}`; export r; \
b40e3958 33985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33986 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33987 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
33988 for flag in $(EXTRA_TARGET_FLAGS); do \
33989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33990 done; \
1b6c0831 33991 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
33992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33994 "RANLIB=$${RANLIB}" \
0c24b341 33995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 33996 dvi) \
4fa63067 33997 || exit 1
3866be5d 33998
1b6c0831 33999@endif target-libsanitizer
3866be5d 34000
1b6c0831
L
34001.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
34002maybe-pdf-target-libsanitizer:
34003@if target-libsanitizer
34004maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 34005
1b6c0831
L
34006pdf-target-libsanitizer: \
34007 configure-target-libsanitizer
56a8fe78 34008 @: $(MAKE); $(unstage)
1b6c0831 34009 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
56a8fe78
DD
34010 r=`${PWD_COMMAND}`; export r; \
34011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34012 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34013 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer" ; \
56a8fe78
DD
34014 for flag in $(EXTRA_TARGET_FLAGS); do \
34015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34016 done; \
1b6c0831 34017 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
34018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34020 "RANLIB=$${RANLIB}" \
0c24b341 34021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34022 pdf) \
34023 || exit 1
34024
1b6c0831 34025@endif target-libsanitizer
56a8fe78 34026
1b6c0831
L
34027.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
34028maybe-html-target-libsanitizer:
34029@if target-libsanitizer
34030maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 34031
1b6c0831
L
34032html-target-libsanitizer: \
34033 configure-target-libsanitizer
0aed8855 34034 @: $(MAKE); $(unstage)
1b6c0831 34035 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
6d389afc
MS
34036 r=`${PWD_COMMAND}`; export r; \
34037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 34038 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34039 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer" ; \
6d389afc
MS
34040 for flag in $(EXTRA_TARGET_FLAGS); do \
34041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34042 done; \
1b6c0831 34043 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
34044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34046 "RANLIB=$${RANLIB}" \
0c24b341 34047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34048 html) \
34049 || exit 1
34050
1b6c0831 34051@endif target-libsanitizer
6d389afc 34052
1b6c0831
L
34053.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
34054maybe-TAGS-target-libsanitizer:
34055@if target-libsanitizer
34056maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 34057
1b6c0831
L
34058TAGS-target-libsanitizer: \
34059 configure-target-libsanitizer
0aed8855 34060 @: $(MAKE); $(unstage)
1b6c0831 34061 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
b40e3958
L
34062 r=`${PWD_COMMAND}`; export r; \
34063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34064 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34065 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34066 for flag in $(EXTRA_TARGET_FLAGS); do \
34067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34068 done; \
1b6c0831 34069 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34072 "RANLIB=$${RANLIB}" \
0c24b341 34073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34074 TAGS) \
e2b9e2dc
NN
34075 || exit 1
34076
1b6c0831 34077@endif target-libsanitizer
3866be5d 34078
1b6c0831
L
34079.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
34080maybe-install-info-target-libsanitizer:
34081@if target-libsanitizer
34082maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 34083
1b6c0831
L
34084install-info-target-libsanitizer: \
34085 configure-target-libsanitizer \
34086 info-target-libsanitizer
0aed8855 34087 @: $(MAKE); $(unstage)
1b6c0831 34088 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34089 r=`${PWD_COMMAND}`; export r; \
b40e3958 34090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34091 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34092 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34093 for flag in $(EXTRA_TARGET_FLAGS); do \
34094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34095 done; \
1b6c0831 34096 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34099 "RANLIB=$${RANLIB}" \
0c24b341 34100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34101 install-info) \
4fa63067 34102 || exit 1
3866be5d 34103
1b6c0831 34104@endif target-libsanitizer
3866be5d 34105
1b6c0831
L
34106.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
34107maybe-install-pdf-target-libsanitizer:
34108@if target-libsanitizer
34109maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 34110
1b6c0831
L
34111install-pdf-target-libsanitizer: \
34112 configure-target-libsanitizer \
34113 pdf-target-libsanitizer
a3ca38d2 34114 @: $(MAKE); $(unstage)
1b6c0831 34115 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
a3ca38d2
DD
34116 r=`${PWD_COMMAND}`; export r; \
34117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34118 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34119 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer" ; \
a3ca38d2
DD
34120 for flag in $(EXTRA_TARGET_FLAGS); do \
34121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34122 done; \
1b6c0831 34123 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
34124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34126 "RANLIB=$${RANLIB}" \
0c24b341 34127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34128 install-pdf) \
34129 || exit 1
34130
1b6c0831 34131@endif target-libsanitizer
a3ca38d2 34132
1b6c0831
L
34133.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
34134maybe-install-html-target-libsanitizer:
34135@if target-libsanitizer
34136maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 34137
1b6c0831
L
34138install-html-target-libsanitizer: \
34139 configure-target-libsanitizer \
34140 html-target-libsanitizer
108a6f8e 34141 @: $(MAKE); $(unstage)
1b6c0831 34142 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
108a6f8e
CD
34143 r=`${PWD_COMMAND}`; export r; \
34144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34145 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34146 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer" ; \
108a6f8e
CD
34147 for flag in $(EXTRA_TARGET_FLAGS); do \
34148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34149 done; \
1b6c0831 34150 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
34151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34153 "RANLIB=$${RANLIB}" \
0c24b341 34154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34155 install-html) \
34156 || exit 1
34157
1b6c0831 34158@endif target-libsanitizer
108a6f8e 34159
1b6c0831
L
34160.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
34161maybe-installcheck-target-libsanitizer:
34162@if target-libsanitizer
34163maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 34164
1b6c0831
L
34165installcheck-target-libsanitizer: \
34166 configure-target-libsanitizer
0aed8855 34167 @: $(MAKE); $(unstage)
1b6c0831 34168 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34169 r=`${PWD_COMMAND}`; export r; \
b40e3958 34170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34171 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34172 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34173 for flag in $(EXTRA_TARGET_FLAGS); do \
34174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34175 done; \
1b6c0831 34176 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34179 "RANLIB=$${RANLIB}" \
0c24b341 34180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34181 installcheck) \
4fa63067 34182 || exit 1
3866be5d 34183
1b6c0831 34184@endif target-libsanitizer
3866be5d 34185
1b6c0831
L
34186.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
34187maybe-mostlyclean-target-libsanitizer:
34188@if target-libsanitizer
34189maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 34190
1b6c0831 34191mostlyclean-target-libsanitizer:
0aed8855 34192 @: $(MAKE); $(unstage)
1b6c0831 34193 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
b40e3958
L
34194 r=`${PWD_COMMAND}`; export r; \
34195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34196 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34197 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34198 for flag in $(EXTRA_TARGET_FLAGS); do \
34199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34200 done; \
1b6c0831 34201 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34204 "RANLIB=$${RANLIB}" \
0c24b341 34205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34206 mostlyclean) \
e2b9e2dc
NN
34207 || exit 1
34208
1b6c0831 34209@endif target-libsanitizer
4fa63067 34210
1b6c0831
L
34211.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
34212maybe-clean-target-libsanitizer:
34213@if target-libsanitizer
34214maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 34215
1b6c0831 34216clean-target-libsanitizer:
0aed8855 34217 @: $(MAKE); $(unstage)
1b6c0831 34218 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34219 r=`${PWD_COMMAND}`; export r; \
b40e3958 34220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34221 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34222 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34223 for flag in $(EXTRA_TARGET_FLAGS); do \
34224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34225 done; \
1b6c0831 34226 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34229 "RANLIB=$${RANLIB}" \
0c24b341 34230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34231 clean) \
4fa63067 34232 || exit 1
3866be5d 34233
1b6c0831 34234@endif target-libsanitizer
3866be5d 34235
1b6c0831
L
34236.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
34237maybe-distclean-target-libsanitizer:
34238@if target-libsanitizer
34239maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 34240
1b6c0831 34241distclean-target-libsanitizer:
0aed8855 34242 @: $(MAKE); $(unstage)
1b6c0831 34243 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34244 r=`${PWD_COMMAND}`; export r; \
b40e3958 34245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34246 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34247 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34248 for flag in $(EXTRA_TARGET_FLAGS); do \
34249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34250 done; \
1b6c0831 34251 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34254 "RANLIB=$${RANLIB}" \
0c24b341 34255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34256 distclean) \
4fa63067 34257 || exit 1
3866be5d 34258
1b6c0831 34259@endif target-libsanitizer
3866be5d 34260
1b6c0831
L
34261.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
34262maybe-maintainer-clean-target-libsanitizer:
34263@if target-libsanitizer
34264maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 34265
1b6c0831 34266maintainer-clean-target-libsanitizer:
0aed8855 34267 @: $(MAKE); $(unstage)
1b6c0831 34268 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34269 r=`${PWD_COMMAND}`; export r; \
b40e3958 34270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34271 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34272 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34273 for flag in $(EXTRA_TARGET_FLAGS); do \
34274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34275 done; \
1b6c0831 34276 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34279 "RANLIB=$${RANLIB}" \
0c24b341 34280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34281 maintainer-clean) \
4fa63067 34282 || exit 1
3866be5d 34283
1b6c0831 34284@endif target-libsanitizer
3866be5d 34285
4fa63067 34286
4fa63067 34287
a7254363
PB
34288
34289
1b6c0831
L
34290.PHONY: configure-target-libmpx maybe-configure-target-libmpx
34291maybe-configure-target-libmpx:
5286fdef 34292@if gcc-bootstrap
1b6c0831 34293configure-target-libmpx: stage_current
5286fdef 34294@endif gcc-bootstrap
1b6c0831
L
34295@if target-libmpx
34296maybe-configure-target-libmpx: configure-target-libmpx
34297configure-target-libmpx:
5286fdef
L
34298 @r=`${PWD_COMMAND}`; export r; \
34299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34300 echo "Checking multilib configuration for libmpx..."; \
34301 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34302 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34303 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34304 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34305 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 34306 else \
1b6c0831
L
34307 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34308 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
34309 fi; \
34310 else \
1b6c0831 34311 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 34312 fi; \
1b6c0831
L
34313 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34314 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34315 $(NORMAL_TARGET_EXPORTS) \
34316 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
34317 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
34318 case $(srcdir) in \
34319 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34320 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
34321 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34322 esac; \
1b6c0831 34323 module_srcdir=libmpx; \
5286fdef 34324 rm -f no-such-file || : ; \
1b6c0831
L
34325 CONFIG_SITE=no-such-file $(SHELL) \
34326 $$s/$$module_srcdir/configure \
34327 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 34328 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34329 --target=${target_alias} \
5286fdef 34330 || exit 1
1b6c0831 34331@endif target-libmpx
5286fdef
L
34332
34333
34334
1b6c0831
L
34335.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
34336maybe-configure-stage1-target-libmpx:
34337@if target-libmpx-bootstrap
34338maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
34339configure-stage1-target-libmpx:
5eb08693 34340 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 34341 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34342 @r=`${PWD_COMMAND}`; export r; \
34343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34344 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
34345 echo "Checking multilib configuration for libmpx..."; \
34346 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34347 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34348 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34349 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34350 else \
1b6c0831
L
34351 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34352 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34353 fi; \
34354 else \
1b6c0831 34355 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34356 fi; \
1b6c0831
L
34357 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34358 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34359 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34360 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34361 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34362 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx ; \
34363 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34364 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34365 case $(srcdir) in \
34366 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34367 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34368 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34369 esac; \
1b6c0831
L
34370 module_srcdir=libmpx; \
34371 $(SHELL) $$s/$$module_srcdir/configure \
34372 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34373 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34374 --target=${target_alias} \
34375 \
5eb08693 34376 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 34377@endif target-libmpx-bootstrap
5eb08693 34378
1b6c0831
L
34379.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
34380maybe-configure-stage2-target-libmpx:
34381@if target-libmpx-bootstrap
34382maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
34383configure-stage2-target-libmpx:
5eb08693 34384 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 34385 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34386 @r=`${PWD_COMMAND}`; export r; \
34387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34388 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831
L
34389 echo "Checking multilib configuration for libmpx..."; \
34390 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34391 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34392 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34393 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34394 else \
1b6c0831
L
34395 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34396 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34397 fi; \
34398 else \
1b6c0831 34399 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34400 fi; \
1b6c0831
L
34401 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34402 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34403 \
34404 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34405 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34406 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34407 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx ; \
34408 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34409 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34410 case $(srcdir) in \
34411 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34412 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34413 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34414 esac; \
1b6c0831
L
34415 module_srcdir=libmpx; \
34416 $(SHELL) $$s/$$module_srcdir/configure \
34417 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34418 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34419 --target=${target_alias} \
34420 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34421 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 34422@endif target-libmpx-bootstrap
5eb08693 34423
1b6c0831
L
34424.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
34425maybe-configure-stage3-target-libmpx:
34426@if target-libmpx-bootstrap
34427maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
34428configure-stage3-target-libmpx:
5eb08693 34429 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 34430 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34431 @r=`${PWD_COMMAND}`; export r; \
34432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34433 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831
L
34434 echo "Checking multilib configuration for libmpx..."; \
34435 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34436 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34437 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34438 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34439 else \
1b6c0831
L
34440 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34441 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34442 fi; \
34443 else \
1b6c0831 34444 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34445 fi; \
1b6c0831
L
34446 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34447 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34448 \
34449 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34450 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34451 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34452 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx ; \
34453 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34454 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34455 case $(srcdir) in \
34456 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34457 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34458 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34459 esac; \
1b6c0831
L
34460 module_srcdir=libmpx; \
34461 $(SHELL) $$s/$$module_srcdir/configure \
34462 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34463 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34464 --target=${target_alias} \
34465 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34466 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 34467@endif target-libmpx-bootstrap
5eb08693 34468
1b6c0831
L
34469.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
34470maybe-configure-stage4-target-libmpx:
34471@if target-libmpx-bootstrap
34472maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
34473configure-stage4-target-libmpx:
5eb08693 34474 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 34475 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34476 @r=`${PWD_COMMAND}`; export r; \
34477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34478 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831
L
34479 echo "Checking multilib configuration for libmpx..."; \
34480 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34481 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34482 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34483 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34484 else \
1b6c0831
L
34485 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34486 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34487 fi; \
34488 else \
1b6c0831 34489 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34490 fi; \
1b6c0831
L
34491 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34492 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34493 \
34494 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34495 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34496 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34497 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx ; \
34498 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34499 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34500 case $(srcdir) in \
34501 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34502 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34503 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34504 esac; \
1b6c0831
L
34505 module_srcdir=libmpx; \
34506 $(SHELL) $$s/$$module_srcdir/configure \
34507 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34508 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34509 --target=${target_alias} \
34510 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34511 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 34512@endif target-libmpx-bootstrap
5eb08693 34513
1b6c0831
L
34514.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
34515maybe-configure-stageprofile-target-libmpx:
34516@if target-libmpx-bootstrap
34517maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
34518configure-stageprofile-target-libmpx:
5eb08693 34519 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 34520 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34521 @r=`${PWD_COMMAND}`; export r; \
34522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34523 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831
L
34524 echo "Checking multilib configuration for libmpx..."; \
34525 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34526 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34527 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34528 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34529 else \
1b6c0831
L
34530 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34531 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34532 fi; \
34533 else \
1b6c0831 34534 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34535 fi; \
1b6c0831
L
34536 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34537 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34538 \
34539 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34540 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34541 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34542 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx ; \
34543 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34544 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34545 case $(srcdir) in \
34546 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34547 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34548 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34549 esac; \
1b6c0831
L
34550 module_srcdir=libmpx; \
34551 $(SHELL) $$s/$$module_srcdir/configure \
34552 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34553 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34554 --target=${target_alias} \
34555 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34556 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 34557@endif target-libmpx-bootstrap
5eb08693 34558
1b6c0831
L
34559.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
34560maybe-configure-stagefeedback-target-libmpx:
34561@if target-libmpx-bootstrap
34562maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
34563configure-stagefeedback-target-libmpx:
5eb08693 34564 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 34565 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34566 @r=`${PWD_COMMAND}`; export r; \
34567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34568 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831
L
34569 echo "Checking multilib configuration for libmpx..."; \
34570 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34571 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34572 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34573 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34574 else \
1b6c0831
L
34575 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34576 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34577 fi; \
34578 else \
1b6c0831 34579 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34580 fi; \
1b6c0831
L
34581 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34582 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34583 \
34584 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34585 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34586 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34587 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx ; \
34588 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34589 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34590 case $(srcdir) in \
34591 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34592 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34593 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34594 esac; \
1b6c0831
L
34595 module_srcdir=libmpx; \
34596 $(SHELL) $$s/$$module_srcdir/configure \
34597 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34598 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34599 --target=${target_alias} \
34600 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34601 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 34602@endif target-libmpx-bootstrap
5eb08693
L
34603
34604
34605
5286fdef
L
34606
34607
1b6c0831
L
34608.PHONY: all-target-libmpx maybe-all-target-libmpx
34609maybe-all-target-libmpx:
5286fdef 34610@if gcc-bootstrap
1b6c0831 34611all-target-libmpx: stage_current
5286fdef 34612@endif gcc-bootstrap
1b6c0831
L
34613@if target-libmpx
34614TARGET-target-libmpx=all
34615maybe-all-target-libmpx: all-target-libmpx
34616all-target-libmpx: configure-target-libmpx
5286fdef
L
34617 @r=`${PWD_COMMAND}`; export r; \
34618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34619 $(NORMAL_TARGET_EXPORTS) \
34620 (cd $(TARGET_SUBDIR)/libmpx && \
34621 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
34622 $(TARGET-target-libmpx))
34623@endif target-libmpx
5286fdef
L
34624
34625
34626
1b6c0831
L
34627.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
34628.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
34629maybe-all-stage1-target-libmpx:
34630maybe-clean-stage1-target-libmpx:
34631@if target-libmpx-bootstrap
34632maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
34633all-stage1: all-stage1-target-libmpx
34634TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
34635all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
34636 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34637 @r=`${PWD_COMMAND}`; export r; \
34638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34639 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
34640 $(NORMAL_TARGET_EXPORTS) \
34641 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34642 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34643 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34644 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34645 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34646 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34647 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34648 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34649 $(EXTRA_TARGET_FLAGS) \
5eb08693
L
34650 \
34651 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 34652 $(TARGET-stage1-target-libmpx)
5eb08693 34653
1b6c0831
L
34654maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
34655clean-stage1: clean-stage1-target-libmpx
34656clean-stage1-target-libmpx:
5eb08693 34657 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 34658 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34659 else \
1b6c0831 34660 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
34661 $(MAKE) stage1-start; \
34662 fi; \
1b6c0831
L
34663 cd $(TARGET_SUBDIR)/libmpx && \
34664 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 34665 clean
1b6c0831
L
34666@endif target-libmpx-bootstrap
34667
34668
34669.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
34670.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
34671maybe-all-stage2-target-libmpx:
34672maybe-clean-stage2-target-libmpx:
34673@if target-libmpx-bootstrap
34674maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
34675all-stage2: all-stage2-target-libmpx
34676TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
34677all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
34678 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34679 @r=`${PWD_COMMAND}`; export r; \
34680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34681 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 34682 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34683 \
1b6c0831 34684 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34685 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34686 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34687 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34688 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34689 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34690 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34691 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34692 $(EXTRA_TARGET_FLAGS) \
5eb08693 34693 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 34694 $(TARGET-stage2-target-libmpx)
5eb08693 34695
1b6c0831
L
34696maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
34697clean-stage2: clean-stage2-target-libmpx
34698clean-stage2-target-libmpx:
5eb08693 34699 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 34700 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34701 else \
1b6c0831 34702 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
34703 $(MAKE) stage2-start; \
34704 fi; \
1b6c0831
L
34705 cd $(TARGET_SUBDIR)/libmpx && \
34706 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34707@endif target-libmpx-bootstrap
34708
34709
34710.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
34711.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
34712maybe-all-stage3-target-libmpx:
34713maybe-clean-stage3-target-libmpx:
34714@if target-libmpx-bootstrap
34715maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
34716all-stage3: all-stage3-target-libmpx
34717TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
34718all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
34719 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34720 @r=`${PWD_COMMAND}`; export r; \
34721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34722 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 34723 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34724 \
1b6c0831 34725 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34726 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34727 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34728 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34729 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34730 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34731 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34732 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34733 $(EXTRA_TARGET_FLAGS) \
5eb08693 34734 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 34735 $(TARGET-stage3-target-libmpx)
5eb08693 34736
1b6c0831
L
34737maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
34738clean-stage3: clean-stage3-target-libmpx
34739clean-stage3-target-libmpx:
5eb08693 34740 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 34741 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34742 else \
1b6c0831 34743 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
34744 $(MAKE) stage3-start; \
34745 fi; \
1b6c0831
L
34746 cd $(TARGET_SUBDIR)/libmpx && \
34747 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34748@endif target-libmpx-bootstrap
34749
34750
34751.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
34752.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
34753maybe-all-stage4-target-libmpx:
34754maybe-clean-stage4-target-libmpx:
34755@if target-libmpx-bootstrap
34756maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
34757all-stage4: all-stage4-target-libmpx
34758TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
34759all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
34760 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34761 @r=`${PWD_COMMAND}`; export r; \
34762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34763 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 34764 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34765 \
1b6c0831 34766 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34767 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34768 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34769 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34770 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34771 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34772 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34773 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34774 $(EXTRA_TARGET_FLAGS) \
5eb08693 34775 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 34776 $(TARGET-stage4-target-libmpx)
5eb08693 34777
1b6c0831
L
34778maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
34779clean-stage4: clean-stage4-target-libmpx
34780clean-stage4-target-libmpx:
5eb08693 34781 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 34782 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34783 else \
1b6c0831 34784 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
34785 $(MAKE) stage4-start; \
34786 fi; \
1b6c0831
L
34787 cd $(TARGET_SUBDIR)/libmpx && \
34788 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34789@endif target-libmpx-bootstrap
34790
34791
34792.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
34793.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
34794maybe-all-stageprofile-target-libmpx:
34795maybe-clean-stageprofile-target-libmpx:
34796@if target-libmpx-bootstrap
34797maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
34798all-stageprofile: all-stageprofile-target-libmpx
34799TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
34800all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
34801 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34802 @r=`${PWD_COMMAND}`; export r; \
34803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34804 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 34805 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34806 \
1b6c0831 34807 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34808 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34809 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34810 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34811 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34812 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34813 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34814 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34815 $(EXTRA_TARGET_FLAGS) \
5eb08693 34816 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 34817 $(TARGET-stageprofile-target-libmpx)
5eb08693 34818
1b6c0831
L
34819maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
34820clean-stageprofile: clean-stageprofile-target-libmpx
34821clean-stageprofile-target-libmpx:
5eb08693 34822 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 34823 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34824 else \
1b6c0831 34825 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
34826 $(MAKE) stageprofile-start; \
34827 fi; \
1b6c0831
L
34828 cd $(TARGET_SUBDIR)/libmpx && \
34829 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34830@endif target-libmpx-bootstrap
34831
34832
34833.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
34834.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
34835maybe-all-stagefeedback-target-libmpx:
34836maybe-clean-stagefeedback-target-libmpx:
34837@if target-libmpx-bootstrap
34838maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
34839all-stagefeedback: all-stagefeedback-target-libmpx
34840TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
34841all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
34842 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34843 @r=`${PWD_COMMAND}`; export r; \
34844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34845 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 34846 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34847 \
1b6c0831 34848 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34849 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34850 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34851 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34852 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34853 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34854 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34855 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34856 $(EXTRA_TARGET_FLAGS) \
5eb08693 34857 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 34858 $(TARGET-stagefeedback-target-libmpx)
5eb08693 34859
1b6c0831
L
34860maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
34861clean-stagefeedback: clean-stagefeedback-target-libmpx
34862clean-stagefeedback-target-libmpx:
5eb08693 34863 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 34864 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34865 else \
1b6c0831 34866 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
34867 $(MAKE) stagefeedback-start; \
34868 fi; \
1b6c0831
L
34869 cd $(TARGET_SUBDIR)/libmpx && \
34870 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34871@endif target-libmpx-bootstrap
5eb08693
L
34872
34873
34874
34875
5286fdef
L
34876
34877
1b6c0831
L
34878.PHONY: check-target-libmpx maybe-check-target-libmpx
34879maybe-check-target-libmpx:
34880@if target-libmpx
34881maybe-check-target-libmpx: check-target-libmpx
5286fdef 34882
1b6c0831 34883check-target-libmpx:
5286fdef
L
34884 @: $(MAKE); $(unstage)
34885 @r=`${PWD_COMMAND}`; export r; \
34886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34887 $(NORMAL_TARGET_EXPORTS) \
34888 (cd $(TARGET_SUBDIR)/libmpx && \
34889 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 34890
1b6c0831 34891@endif target-libmpx
5286fdef 34892
1b6c0831
L
34893.PHONY: install-target-libmpx maybe-install-target-libmpx
34894maybe-install-target-libmpx:
34895@if target-libmpx
34896maybe-install-target-libmpx: install-target-libmpx
5286fdef 34897
1b6c0831 34898install-target-libmpx: installdirs
5286fdef
L
34899 @: $(MAKE); $(unstage)
34900 @r=`${PWD_COMMAND}`; export r; \
34901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34902 $(NORMAL_TARGET_EXPORTS) \
34903 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34904 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
34905
1b6c0831 34906@endif target-libmpx
5286fdef 34907
1b6c0831
L
34908.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
34909maybe-install-strip-target-libmpx:
34910@if target-libmpx
34911maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 34912
1b6c0831 34913install-strip-target-libmpx: installdirs
5286fdef
L
34914 @: $(MAKE); $(unstage)
34915 @r=`${PWD_COMMAND}`; export r; \
34916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34917 $(NORMAL_TARGET_EXPORTS) \
34918 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34919 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34920
1b6c0831 34921@endif target-libmpx
5286fdef
L
34922
34923# Other targets (info, dvi, pdf, etc.)
34924
1b6c0831
L
34925.PHONY: maybe-info-target-libmpx info-target-libmpx
34926maybe-info-target-libmpx:
34927@if target-libmpx
34928maybe-info-target-libmpx: info-target-libmpx
5286fdef 34929
1b6c0831
L
34930info-target-libmpx: \
34931 configure-target-libmpx
5286fdef 34932 @: $(MAKE); $(unstage)
1b6c0831 34933 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34934 r=`${PWD_COMMAND}`; export r; \
34935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34936 $(NORMAL_TARGET_EXPORTS) \
34937 echo "Doing info in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34938 for flag in $(EXTRA_TARGET_FLAGS); do \
34939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34940 done; \
1b6c0831 34941 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34944 "RANLIB=$${RANLIB}" \
34945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34946 info) \
34947 || exit 1
34948
1b6c0831 34949@endif target-libmpx
5286fdef 34950
1b6c0831
L
34951.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
34952maybe-dvi-target-libmpx:
34953@if target-libmpx
34954maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 34955
1b6c0831
L
34956dvi-target-libmpx: \
34957 configure-target-libmpx
5286fdef 34958 @: $(MAKE); $(unstage)
1b6c0831 34959 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34960 r=`${PWD_COMMAND}`; export r; \
34961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34962 $(NORMAL_TARGET_EXPORTS) \
34963 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34964 for flag in $(EXTRA_TARGET_FLAGS); do \
34965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34966 done; \
1b6c0831 34967 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34970 "RANLIB=$${RANLIB}" \
34971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34972 dvi) \
34973 || exit 1
34974
1b6c0831 34975@endif target-libmpx
5286fdef 34976
1b6c0831
L
34977.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
34978maybe-pdf-target-libmpx:
34979@if target-libmpx
34980maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 34981
1b6c0831
L
34982pdf-target-libmpx: \
34983 configure-target-libmpx
5286fdef 34984 @: $(MAKE); $(unstage)
1b6c0831 34985 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34986 r=`${PWD_COMMAND}`; export r; \
34987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34988 $(NORMAL_TARGET_EXPORTS) \
34989 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34990 for flag in $(EXTRA_TARGET_FLAGS); do \
34991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34992 done; \
1b6c0831 34993 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34996 "RANLIB=$${RANLIB}" \
34997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34998 pdf) \
34999 || exit 1
35000
1b6c0831 35001@endif target-libmpx
5286fdef 35002
1b6c0831
L
35003.PHONY: maybe-html-target-libmpx html-target-libmpx
35004maybe-html-target-libmpx:
35005@if target-libmpx
35006maybe-html-target-libmpx: html-target-libmpx
5286fdef 35007
1b6c0831
L
35008html-target-libmpx: \
35009 configure-target-libmpx
5286fdef 35010 @: $(MAKE); $(unstage)
1b6c0831 35011 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35012 r=`${PWD_COMMAND}`; export r; \
35013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35014 $(NORMAL_TARGET_EXPORTS) \
35015 echo "Doing html in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35016 for flag in $(EXTRA_TARGET_FLAGS); do \
35017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35018 done; \
1b6c0831 35019 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35022 "RANLIB=$${RANLIB}" \
35023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35024 html) \
35025 || exit 1
35026
1b6c0831 35027@endif target-libmpx
5286fdef 35028
1b6c0831
L
35029.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
35030maybe-TAGS-target-libmpx:
35031@if target-libmpx
35032maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 35033
1b6c0831
L
35034TAGS-target-libmpx: \
35035 configure-target-libmpx
5286fdef 35036 @: $(MAKE); $(unstage)
1b6c0831 35037 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35038 r=`${PWD_COMMAND}`; export r; \
35039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35040 $(NORMAL_TARGET_EXPORTS) \
35041 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35042 for flag in $(EXTRA_TARGET_FLAGS); do \
35043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35044 done; \
1b6c0831 35045 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35048 "RANLIB=$${RANLIB}" \
35049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35050 TAGS) \
35051 || exit 1
35052
1b6c0831 35053@endif target-libmpx
5286fdef 35054
1b6c0831
L
35055.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
35056maybe-install-info-target-libmpx:
35057@if target-libmpx
35058maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 35059
1b6c0831
L
35060install-info-target-libmpx: \
35061 configure-target-libmpx \
35062 info-target-libmpx
5286fdef 35063 @: $(MAKE); $(unstage)
1b6c0831 35064 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35065 r=`${PWD_COMMAND}`; export r; \
35066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35067 $(NORMAL_TARGET_EXPORTS) \
35068 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35069 for flag in $(EXTRA_TARGET_FLAGS); do \
35070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35071 done; \
1b6c0831 35072 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35075 "RANLIB=$${RANLIB}" \
35076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35077 install-info) \
35078 || exit 1
35079
1b6c0831 35080@endif target-libmpx
5286fdef 35081
1b6c0831
L
35082.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
35083maybe-install-pdf-target-libmpx:
35084@if target-libmpx
35085maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 35086
1b6c0831
L
35087install-pdf-target-libmpx: \
35088 configure-target-libmpx \
35089 pdf-target-libmpx
5286fdef 35090 @: $(MAKE); $(unstage)
1b6c0831 35091 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35092 r=`${PWD_COMMAND}`; export r; \
35093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35094 $(NORMAL_TARGET_EXPORTS) \
35095 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35096 for flag in $(EXTRA_TARGET_FLAGS); do \
35097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35098 done; \
1b6c0831 35099 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35102 "RANLIB=$${RANLIB}" \
35103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35104 install-pdf) \
35105 || exit 1
35106
1b6c0831 35107@endif target-libmpx
5286fdef 35108
1b6c0831
L
35109.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
35110maybe-install-html-target-libmpx:
35111@if target-libmpx
35112maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 35113
1b6c0831
L
35114install-html-target-libmpx: \
35115 configure-target-libmpx \
35116 html-target-libmpx
5286fdef 35117 @: $(MAKE); $(unstage)
1b6c0831 35118 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35119 r=`${PWD_COMMAND}`; export r; \
35120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35121 $(NORMAL_TARGET_EXPORTS) \
35122 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35123 for flag in $(EXTRA_TARGET_FLAGS); do \
35124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35125 done; \
1b6c0831 35126 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35129 "RANLIB=$${RANLIB}" \
35130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35131 install-html) \
35132 || exit 1
35133
1b6c0831 35134@endif target-libmpx
5286fdef 35135
1b6c0831
L
35136.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
35137maybe-installcheck-target-libmpx:
35138@if target-libmpx
35139maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 35140
1b6c0831
L
35141installcheck-target-libmpx: \
35142 configure-target-libmpx
5286fdef 35143 @: $(MAKE); $(unstage)
1b6c0831 35144 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35145 r=`${PWD_COMMAND}`; export r; \
35146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35147 $(NORMAL_TARGET_EXPORTS) \
35148 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35149 for flag in $(EXTRA_TARGET_FLAGS); do \
35150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35151 done; \
1b6c0831 35152 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35155 "RANLIB=$${RANLIB}" \
35156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35157 installcheck) \
35158 || exit 1
35159
1b6c0831 35160@endif target-libmpx
5286fdef 35161
1b6c0831
L
35162.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
35163maybe-mostlyclean-target-libmpx:
35164@if target-libmpx
35165maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 35166
1b6c0831 35167mostlyclean-target-libmpx:
5286fdef 35168 @: $(MAKE); $(unstage)
1b6c0831 35169 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35170 r=`${PWD_COMMAND}`; export r; \
35171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35172 $(NORMAL_TARGET_EXPORTS) \
35173 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35174 for flag in $(EXTRA_TARGET_FLAGS); do \
35175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35176 done; \
1b6c0831 35177 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35180 "RANLIB=$${RANLIB}" \
35181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35182 mostlyclean) \
35183 || exit 1
35184
1b6c0831 35185@endif target-libmpx
5286fdef 35186
1b6c0831
L
35187.PHONY: maybe-clean-target-libmpx clean-target-libmpx
35188maybe-clean-target-libmpx:
35189@if target-libmpx
35190maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 35191
1b6c0831 35192clean-target-libmpx:
5286fdef 35193 @: $(MAKE); $(unstage)
1b6c0831 35194 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35195 r=`${PWD_COMMAND}`; export r; \
35196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35197 $(NORMAL_TARGET_EXPORTS) \
35198 echo "Doing clean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35199 for flag in $(EXTRA_TARGET_FLAGS); do \
35200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35201 done; \
1b6c0831 35202 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35205 "RANLIB=$${RANLIB}" \
35206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35207 clean) \
35208 || exit 1
35209
1b6c0831 35210@endif target-libmpx
5286fdef 35211
1b6c0831
L
35212.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
35213maybe-distclean-target-libmpx:
35214@if target-libmpx
35215maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 35216
1b6c0831 35217distclean-target-libmpx:
5286fdef 35218 @: $(MAKE); $(unstage)
1b6c0831 35219 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35220 r=`${PWD_COMMAND}`; export r; \
35221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35222 $(NORMAL_TARGET_EXPORTS) \
35223 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35224 for flag in $(EXTRA_TARGET_FLAGS); do \
35225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35226 done; \
1b6c0831 35227 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35230 "RANLIB=$${RANLIB}" \
35231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35232 distclean) \
35233 || exit 1
35234
1b6c0831 35235@endif target-libmpx
5286fdef 35236
1b6c0831
L
35237.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
35238maybe-maintainer-clean-target-libmpx:
35239@if target-libmpx
35240maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 35241
1b6c0831 35242maintainer-clean-target-libmpx:
5286fdef 35243 @: $(MAKE); $(unstage)
1b6c0831 35244 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35245 r=`${PWD_COMMAND}`; export r; \
35246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35247 $(NORMAL_TARGET_EXPORTS) \
35248 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35249 for flag in $(EXTRA_TARGET_FLAGS); do \
35250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35251 done; \
1b6c0831 35252 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35255 "RANLIB=$${RANLIB}" \
35256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35257 maintainer-clean) \
35258 || exit 1
35259
1b6c0831 35260@endif target-libmpx
5286fdef
L
35261
35262
35263
35264
35265
95e43135
JBG
35266.PHONY: configure-target-libvtv maybe-configure-target-libvtv
35267maybe-configure-target-libvtv:
35268@if gcc-bootstrap
35269configure-target-libvtv: stage_current
35270@endif gcc-bootstrap
35271@if target-libvtv
35272maybe-configure-target-libvtv: configure-target-libvtv
35273configure-target-libvtv:
35274 @r=`${PWD_COMMAND}`; export r; \
35275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35276 echo "Checking multilib configuration for libvtv..."; \
35277 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35278 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35279 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35280 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35281 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35282 else \
35283 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35284 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35285 fi; \
35286 else \
35287 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35288 fi; \
35289 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35290 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35291 $(RAW_CXX_TARGET_EXPORTS) \
35292 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
35293 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
35294 case $(srcdir) in \
35295 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35296 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35297 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35298 esac; \
1b6c0831 35299 module_srcdir=libvtv; \
95e43135 35300 rm -f no-such-file || : ; \
1b6c0831
L
35301 CONFIG_SITE=no-such-file $(SHELL) \
35302 $$s/$$module_srcdir/configure \
35303 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35304 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35305 --target=${target_alias} \
95e43135
JBG
35306 || exit 1
35307@endif target-libvtv
35308
35309
35310
35311.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
35312maybe-configure-stage1-target-libvtv:
35313@if target-libvtv-bootstrap
35314maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
35315configure-stage1-target-libvtv:
35316 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35317 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35318 @r=`${PWD_COMMAND}`; export r; \
35319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35320 TFLAGS="$(STAGE1_TFLAGS)"; \
35321 echo "Checking multilib configuration for libvtv..."; \
35322 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35323 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35324 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35325 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35326 else \
35327 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35328 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35329 fi; \
35330 else \
35331 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35332 fi; \
35333 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35334 $(RAW_CXX_TARGET_EXPORTS) \
35335 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35336 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35337 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35338 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv ; \
35339 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35340 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35341 case $(srcdir) in \
35342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35343 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35345 esac; \
1b6c0831
L
35346 module_srcdir=libvtv; \
35347 $(SHELL) $$s/$$module_srcdir/configure \
35348 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35349 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35350 --target=${target_alias} \
35351 \
95e43135
JBG
35352 $(STAGE1_CONFIGURE_FLAGS)
35353@endif target-libvtv-bootstrap
35354
35355.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
35356maybe-configure-stage2-target-libvtv:
35357@if target-libvtv-bootstrap
35358maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
35359configure-stage2-target-libvtv:
35360 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35361 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35362 @r=`${PWD_COMMAND}`; export r; \
35363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35364 TFLAGS="$(STAGE2_TFLAGS)"; \
35365 echo "Checking multilib configuration for libvtv..."; \
35366 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35367 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35368 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35369 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35370 else \
35371 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35372 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35373 fi; \
35374 else \
35375 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35376 fi; \
35377 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35378 $(RAW_CXX_TARGET_EXPORTS) \
35379 \
35380 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35381 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35382 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35383 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv ; \
35384 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35385 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35386 case $(srcdir) in \
35387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35388 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35390 esac; \
1b6c0831
L
35391 module_srcdir=libvtv; \
35392 $(SHELL) $$s/$$module_srcdir/configure \
35393 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35394 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35395 --target=${target_alias} \
35396 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35397 $(STAGE2_CONFIGURE_FLAGS)
35398@endif target-libvtv-bootstrap
35399
35400.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
35401maybe-configure-stage3-target-libvtv:
35402@if target-libvtv-bootstrap
35403maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
35404configure-stage3-target-libvtv:
35405 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35406 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35407 @r=`${PWD_COMMAND}`; export r; \
35408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35409 TFLAGS="$(STAGE3_TFLAGS)"; \
35410 echo "Checking multilib configuration for libvtv..."; \
35411 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35412 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35413 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35414 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35415 else \
35416 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35417 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35418 fi; \
35419 else \
35420 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35421 fi; \
35422 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35423 $(RAW_CXX_TARGET_EXPORTS) \
35424 \
35425 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35426 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35427 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35428 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv ; \
35429 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35430 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35431 case $(srcdir) in \
35432 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35433 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35434 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35435 esac; \
1b6c0831
L
35436 module_srcdir=libvtv; \
35437 $(SHELL) $$s/$$module_srcdir/configure \
35438 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35439 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35440 --target=${target_alias} \
35441 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35442 $(STAGE3_CONFIGURE_FLAGS)
35443@endif target-libvtv-bootstrap
35444
35445.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
35446maybe-configure-stage4-target-libvtv:
35447@if target-libvtv-bootstrap
35448maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
35449configure-stage4-target-libvtv:
35450 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35451 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35452 @r=`${PWD_COMMAND}`; export r; \
35453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35454 TFLAGS="$(STAGE4_TFLAGS)"; \
35455 echo "Checking multilib configuration for libvtv..."; \
35456 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35457 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35458 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35459 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35460 else \
35461 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35462 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35463 fi; \
35464 else \
35465 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35466 fi; \
35467 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35468 $(RAW_CXX_TARGET_EXPORTS) \
35469 \
35470 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35471 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35472 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35473 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv ; \
35474 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35475 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35476 case $(srcdir) in \
35477 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35478 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35479 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35480 esac; \
1b6c0831
L
35481 module_srcdir=libvtv; \
35482 $(SHELL) $$s/$$module_srcdir/configure \
35483 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35484 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35485 --target=${target_alias} \
35486 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35487 $(STAGE4_CONFIGURE_FLAGS)
35488@endif target-libvtv-bootstrap
35489
35490.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
35491maybe-configure-stageprofile-target-libvtv:
35492@if target-libvtv-bootstrap
35493maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35494configure-stageprofile-target-libvtv:
35495 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35496 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35497 @r=`${PWD_COMMAND}`; export r; \
35498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35499 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35500 echo "Checking multilib configuration for libvtv..."; \
35501 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35502 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35503 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35504 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35505 else \
35506 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35507 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35508 fi; \
35509 else \
35510 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35511 fi; \
35512 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35513 $(RAW_CXX_TARGET_EXPORTS) \
35514 \
35515 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35516 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35517 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35518 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv ; \
35519 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35520 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35521 case $(srcdir) in \
35522 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35523 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35524 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35525 esac; \
1b6c0831
L
35526 module_srcdir=libvtv; \
35527 $(SHELL) $$s/$$module_srcdir/configure \
35528 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35529 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35530 --target=${target_alias} \
35531 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35532 $(STAGEprofile_CONFIGURE_FLAGS)
35533@endif target-libvtv-bootstrap
35534
35535.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
35536maybe-configure-stagefeedback-target-libvtv:
35537@if target-libvtv-bootstrap
35538maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35539configure-stagefeedback-target-libvtv:
35540 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35541 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35542 @r=`${PWD_COMMAND}`; export r; \
35543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35544 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35545 echo "Checking multilib configuration for libvtv..."; \
35546 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35547 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35548 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35549 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35550 else \
35551 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35552 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35553 fi; \
35554 else \
35555 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35556 fi; \
35557 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35558 $(RAW_CXX_TARGET_EXPORTS) \
35559 \
35560 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35561 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35562 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35563 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv ; \
35564 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35565 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35566 case $(srcdir) in \
35567 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35568 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35569 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35570 esac; \
1b6c0831
L
35571 module_srcdir=libvtv; \
35572 $(SHELL) $$s/$$module_srcdir/configure \
35573 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35574 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35575 --target=${target_alias} \
35576 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35577 $(STAGEfeedback_CONFIGURE_FLAGS)
35578@endif target-libvtv-bootstrap
35579
35580
35581
35582
35583
35584.PHONY: all-target-libvtv maybe-all-target-libvtv
35585maybe-all-target-libvtv:
35586@if gcc-bootstrap
35587all-target-libvtv: stage_current
35588@endif gcc-bootstrap
35589@if target-libvtv
35590TARGET-target-libvtv=all
35591maybe-all-target-libvtv: all-target-libvtv
35592all-target-libvtv: configure-target-libvtv
35593 @r=`${PWD_COMMAND}`; export r; \
35594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35595 $(RAW_CXX_TARGET_EXPORTS) \
35596 (cd $(TARGET_SUBDIR)/libvtv && \
35597 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35598 $(TARGET-target-libvtv))
35599@endif target-libvtv
35600
35601
35602
35603.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
35604.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
35605maybe-all-stage1-target-libvtv:
35606maybe-clean-stage1-target-libvtv:
35607@if target-libvtv-bootstrap
35608maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
35609all-stage1: all-stage1-target-libvtv
35610TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
35611all-stage1-target-libvtv: configure-stage1-target-libvtv
35612 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35613 @r=`${PWD_COMMAND}`; export r; \
35614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35615 TFLAGS="$(STAGE1_TFLAGS)"; \
35616 $(RAW_CXX_TARGET_EXPORTS) \
35617 cd $(TARGET_SUBDIR)/libvtv && \
35618 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35619 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35620 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35621 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35622 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35623 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35624 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35625 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35626 \
35627 TFLAGS="$(STAGE1_TFLAGS)" \
35628 $(TARGET-stage1-target-libvtv)
35629
35630maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
35631clean-stage1: clean-stage1-target-libvtv
35632clean-stage1-target-libvtv:
35633 @if [ $(current_stage) = stage1 ]; then \
35634 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35635 else \
35636 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
35637 $(MAKE) stage1-start; \
35638 fi; \
35639 cd $(TARGET_SUBDIR)/libvtv && \
35640 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35641 clean
35642@endif target-libvtv-bootstrap
35643
35644
35645.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
35646.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
35647maybe-all-stage2-target-libvtv:
35648maybe-clean-stage2-target-libvtv:
35649@if target-libvtv-bootstrap
35650maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
35651all-stage2: all-stage2-target-libvtv
35652TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
35653all-stage2-target-libvtv: configure-stage2-target-libvtv
35654 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35655 @r=`${PWD_COMMAND}`; export r; \
35656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35657 TFLAGS="$(STAGE2_TFLAGS)"; \
35658 $(RAW_CXX_TARGET_EXPORTS) \
35659 \
35660 cd $(TARGET_SUBDIR)/libvtv && \
35661 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35662 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35663 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35664 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35665 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35666 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35667 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35668 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35669 TFLAGS="$(STAGE2_TFLAGS)" \
35670 $(TARGET-stage2-target-libvtv)
35671
35672maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
35673clean-stage2: clean-stage2-target-libvtv
35674clean-stage2-target-libvtv:
35675 @if [ $(current_stage) = stage2 ]; then \
35676 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35677 else \
35678 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
35679 $(MAKE) stage2-start; \
35680 fi; \
35681 cd $(TARGET_SUBDIR)/libvtv && \
35682 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35683@endif target-libvtv-bootstrap
35684
35685
35686.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
35687.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
35688maybe-all-stage3-target-libvtv:
35689maybe-clean-stage3-target-libvtv:
35690@if target-libvtv-bootstrap
35691maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
35692all-stage3: all-stage3-target-libvtv
35693TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
35694all-stage3-target-libvtv: configure-stage3-target-libvtv
35695 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35696 @r=`${PWD_COMMAND}`; export r; \
35697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35698 TFLAGS="$(STAGE3_TFLAGS)"; \
35699 $(RAW_CXX_TARGET_EXPORTS) \
35700 \
35701 cd $(TARGET_SUBDIR)/libvtv && \
35702 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35703 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35704 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35705 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35706 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35707 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35708 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35709 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35710 TFLAGS="$(STAGE3_TFLAGS)" \
35711 $(TARGET-stage3-target-libvtv)
35712
35713maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
35714clean-stage3: clean-stage3-target-libvtv
35715clean-stage3-target-libvtv:
35716 @if [ $(current_stage) = stage3 ]; then \
35717 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35718 else \
35719 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
35720 $(MAKE) stage3-start; \
35721 fi; \
35722 cd $(TARGET_SUBDIR)/libvtv && \
35723 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35724@endif target-libvtv-bootstrap
35725
35726
35727.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
35728.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
35729maybe-all-stage4-target-libvtv:
35730maybe-clean-stage4-target-libvtv:
35731@if target-libvtv-bootstrap
35732maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
35733all-stage4: all-stage4-target-libvtv
35734TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
35735all-stage4-target-libvtv: configure-stage4-target-libvtv
35736 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35737 @r=`${PWD_COMMAND}`; export r; \
35738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35739 TFLAGS="$(STAGE4_TFLAGS)"; \
35740 $(RAW_CXX_TARGET_EXPORTS) \
35741 \
35742 cd $(TARGET_SUBDIR)/libvtv && \
35743 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35744 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35745 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35746 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35747 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35748 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35749 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35750 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35751 TFLAGS="$(STAGE4_TFLAGS)" \
35752 $(TARGET-stage4-target-libvtv)
35753
35754maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
35755clean-stage4: clean-stage4-target-libvtv
35756clean-stage4-target-libvtv:
35757 @if [ $(current_stage) = stage4 ]; then \
35758 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35759 else \
35760 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
35761 $(MAKE) stage4-start; \
35762 fi; \
35763 cd $(TARGET_SUBDIR)/libvtv && \
35764 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35765@endif target-libvtv-bootstrap
35766
35767
35768.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
35769.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
35770maybe-all-stageprofile-target-libvtv:
35771maybe-clean-stageprofile-target-libvtv:
35772@if target-libvtv-bootstrap
35773maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
35774all-stageprofile: all-stageprofile-target-libvtv
35775TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
35776all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35777 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35778 @r=`${PWD_COMMAND}`; export r; \
35779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35780 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35781 $(RAW_CXX_TARGET_EXPORTS) \
35782 \
35783 cd $(TARGET_SUBDIR)/libvtv && \
35784 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35785 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35786 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35787 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35788 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35789 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35790 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35791 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35792 TFLAGS="$(STAGEprofile_TFLAGS)" \
35793 $(TARGET-stageprofile-target-libvtv)
35794
35795maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
35796clean-stageprofile: clean-stageprofile-target-libvtv
35797clean-stageprofile-target-libvtv:
35798 @if [ $(current_stage) = stageprofile ]; then \
35799 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35800 else \
35801 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
35802 $(MAKE) stageprofile-start; \
35803 fi; \
35804 cd $(TARGET_SUBDIR)/libvtv && \
35805 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35806@endif target-libvtv-bootstrap
35807
35808
35809.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
35810.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
35811maybe-all-stagefeedback-target-libvtv:
35812maybe-clean-stagefeedback-target-libvtv:
35813@if target-libvtv-bootstrap
35814maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
35815all-stagefeedback: all-stagefeedback-target-libvtv
35816TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
35817all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35818 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35819 @r=`${PWD_COMMAND}`; export r; \
35820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35821 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35822 $(RAW_CXX_TARGET_EXPORTS) \
35823 \
35824 cd $(TARGET_SUBDIR)/libvtv && \
35825 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35826 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35827 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35828 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35829 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35830 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35831 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35832 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35833 TFLAGS="$(STAGEfeedback_TFLAGS)" \
35834 $(TARGET-stagefeedback-target-libvtv)
35835
35836maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
35837clean-stagefeedback: clean-stagefeedback-target-libvtv
35838clean-stagefeedback-target-libvtv:
35839 @if [ $(current_stage) = stagefeedback ]; then \
35840 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35841 else \
35842 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
35843 $(MAKE) stagefeedback-start; \
35844 fi; \
35845 cd $(TARGET_SUBDIR)/libvtv && \
35846 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35847@endif target-libvtv-bootstrap
35848
35849
35850
35851
35852
35853
35854.PHONY: check-target-libvtv maybe-check-target-libvtv
35855maybe-check-target-libvtv:
35856@if target-libvtv
35857maybe-check-target-libvtv: check-target-libvtv
35858
35859check-target-libvtv:
35860 @: $(MAKE); $(unstage)
35861 @r=`${PWD_COMMAND}`; export r; \
35862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35863 $(RAW_CXX_TARGET_EXPORTS) \
35864 (cd $(TARGET_SUBDIR)/libvtv && \
35865 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
35866
35867@endif target-libvtv
35868
35869.PHONY: install-target-libvtv maybe-install-target-libvtv
35870maybe-install-target-libvtv:
35871@if target-libvtv
35872maybe-install-target-libvtv: install-target-libvtv
35873
35874install-target-libvtv: installdirs
35875 @: $(MAKE); $(unstage)
35876 @r=`${PWD_COMMAND}`; export r; \
35877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35878 $(RAW_CXX_TARGET_EXPORTS) \
35879 (cd $(TARGET_SUBDIR)/libvtv && \
35880 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35881
35882@endif target-libvtv
35883
35884.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
35885maybe-install-strip-target-libvtv:
35886@if target-libvtv
35887maybe-install-strip-target-libvtv: install-strip-target-libvtv
35888
35889install-strip-target-libvtv: installdirs
35890 @: $(MAKE); $(unstage)
35891 @r=`${PWD_COMMAND}`; export r; \
35892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35893 $(RAW_CXX_TARGET_EXPORTS) \
35894 (cd $(TARGET_SUBDIR)/libvtv && \
35895 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35896
35897@endif target-libvtv
35898
35899# Other targets (info, dvi, pdf, etc.)
35900
35901.PHONY: maybe-info-target-libvtv info-target-libvtv
35902maybe-info-target-libvtv:
35903@if target-libvtv
35904maybe-info-target-libvtv: info-target-libvtv
35905
35906info-target-libvtv: \
35907 configure-target-libvtv
35908 @: $(MAKE); $(unstage)
35909 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35910 r=`${PWD_COMMAND}`; export r; \
35911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35912 $(RAW_CXX_TARGET_EXPORTS) \
35913 echo "Doing info in $(TARGET_SUBDIR)/libvtv" ; \
35914 for flag in $(EXTRA_TARGET_FLAGS); do \
35915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35916 done; \
35917 (cd $(TARGET_SUBDIR)/libvtv && \
35918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35920 "RANLIB=$${RANLIB}" \
35921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35922 info) \
35923 || exit 1
35924
35925@endif target-libvtv
35926
35927.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
35928maybe-dvi-target-libvtv:
35929@if target-libvtv
35930maybe-dvi-target-libvtv: dvi-target-libvtv
35931
35932dvi-target-libvtv: \
35933 configure-target-libvtv
35934 @: $(MAKE); $(unstage)
35935 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35936 r=`${PWD_COMMAND}`; export r; \
35937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35938 $(RAW_CXX_TARGET_EXPORTS) \
35939 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv" ; \
35940 for flag in $(EXTRA_TARGET_FLAGS); do \
35941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35942 done; \
35943 (cd $(TARGET_SUBDIR)/libvtv && \
35944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35946 "RANLIB=$${RANLIB}" \
35947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35948 dvi) \
35949 || exit 1
35950
35951@endif target-libvtv
35952
35953.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
35954maybe-pdf-target-libvtv:
35955@if target-libvtv
35956maybe-pdf-target-libvtv: pdf-target-libvtv
35957
35958pdf-target-libvtv: \
35959 configure-target-libvtv
35960 @: $(MAKE); $(unstage)
35961 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35962 r=`${PWD_COMMAND}`; export r; \
35963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35964 $(RAW_CXX_TARGET_EXPORTS) \
35965 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv" ; \
35966 for flag in $(EXTRA_TARGET_FLAGS); do \
35967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35968 done; \
35969 (cd $(TARGET_SUBDIR)/libvtv && \
35970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35972 "RANLIB=$${RANLIB}" \
35973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35974 pdf) \
35975 || exit 1
35976
35977@endif target-libvtv
35978
35979.PHONY: maybe-html-target-libvtv html-target-libvtv
35980maybe-html-target-libvtv:
35981@if target-libvtv
35982maybe-html-target-libvtv: html-target-libvtv
35983
35984html-target-libvtv: \
35985 configure-target-libvtv
35986 @: $(MAKE); $(unstage)
35987 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35988 r=`${PWD_COMMAND}`; export r; \
35989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35990 $(RAW_CXX_TARGET_EXPORTS) \
35991 echo "Doing html in $(TARGET_SUBDIR)/libvtv" ; \
35992 for flag in $(EXTRA_TARGET_FLAGS); do \
35993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35994 done; \
35995 (cd $(TARGET_SUBDIR)/libvtv && \
35996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35998 "RANLIB=$${RANLIB}" \
35999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36000 html) \
36001 || exit 1
36002
36003@endif target-libvtv
36004
36005.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
36006maybe-TAGS-target-libvtv:
36007@if target-libvtv
36008maybe-TAGS-target-libvtv: TAGS-target-libvtv
36009
36010TAGS-target-libvtv: \
36011 configure-target-libvtv
36012 @: $(MAKE); $(unstage)
36013 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36014 r=`${PWD_COMMAND}`; export r; \
36015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36016 $(RAW_CXX_TARGET_EXPORTS) \
36017 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv" ; \
36018 for flag in $(EXTRA_TARGET_FLAGS); do \
36019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36020 done; \
36021 (cd $(TARGET_SUBDIR)/libvtv && \
36022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36024 "RANLIB=$${RANLIB}" \
36025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36026 TAGS) \
36027 || exit 1
36028
36029@endif target-libvtv
36030
36031.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
36032maybe-install-info-target-libvtv:
36033@if target-libvtv
36034maybe-install-info-target-libvtv: install-info-target-libvtv
36035
36036install-info-target-libvtv: \
36037 configure-target-libvtv \
36038 info-target-libvtv
36039 @: $(MAKE); $(unstage)
36040 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36041 r=`${PWD_COMMAND}`; export r; \
36042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36043 $(RAW_CXX_TARGET_EXPORTS) \
36044 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv" ; \
36045 for flag in $(EXTRA_TARGET_FLAGS); do \
36046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36047 done; \
36048 (cd $(TARGET_SUBDIR)/libvtv && \
36049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36051 "RANLIB=$${RANLIB}" \
36052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36053 install-info) \
36054 || exit 1
36055
36056@endif target-libvtv
36057
36058.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
36059maybe-install-pdf-target-libvtv:
36060@if target-libvtv
36061maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
36062
36063install-pdf-target-libvtv: \
36064 configure-target-libvtv \
36065 pdf-target-libvtv
36066 @: $(MAKE); $(unstage)
36067 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36068 r=`${PWD_COMMAND}`; export r; \
36069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36070 $(RAW_CXX_TARGET_EXPORTS) \
36071 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv" ; \
36072 for flag in $(EXTRA_TARGET_FLAGS); do \
36073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36074 done; \
36075 (cd $(TARGET_SUBDIR)/libvtv && \
36076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36078 "RANLIB=$${RANLIB}" \
36079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36080 install-pdf) \
36081 || exit 1
36082
36083@endif target-libvtv
36084
36085.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
36086maybe-install-html-target-libvtv:
36087@if target-libvtv
36088maybe-install-html-target-libvtv: install-html-target-libvtv
36089
36090install-html-target-libvtv: \
36091 configure-target-libvtv \
36092 html-target-libvtv
36093 @: $(MAKE); $(unstage)
36094 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36095 r=`${PWD_COMMAND}`; export r; \
36096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36097 $(RAW_CXX_TARGET_EXPORTS) \
36098 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv" ; \
36099 for flag in $(EXTRA_TARGET_FLAGS); do \
36100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36101 done; \
36102 (cd $(TARGET_SUBDIR)/libvtv && \
36103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36105 "RANLIB=$${RANLIB}" \
36106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36107 install-html) \
36108 || exit 1
36109
36110@endif target-libvtv
36111
36112.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
36113maybe-installcheck-target-libvtv:
36114@if target-libvtv
36115maybe-installcheck-target-libvtv: installcheck-target-libvtv
36116
36117installcheck-target-libvtv: \
36118 configure-target-libvtv
36119 @: $(MAKE); $(unstage)
36120 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36121 r=`${PWD_COMMAND}`; export r; \
36122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36123 $(RAW_CXX_TARGET_EXPORTS) \
36124 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv" ; \
36125 for flag in $(EXTRA_TARGET_FLAGS); do \
36126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36127 done; \
36128 (cd $(TARGET_SUBDIR)/libvtv && \
36129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36131 "RANLIB=$${RANLIB}" \
36132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36133 installcheck) \
36134 || exit 1
36135
36136@endif target-libvtv
36137
36138.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
36139maybe-mostlyclean-target-libvtv:
36140@if target-libvtv
36141maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
36142
36143mostlyclean-target-libvtv:
36144 @: $(MAKE); $(unstage)
36145 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36146 r=`${PWD_COMMAND}`; export r; \
36147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36148 $(RAW_CXX_TARGET_EXPORTS) \
36149 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv" ; \
36150 for flag in $(EXTRA_TARGET_FLAGS); do \
36151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36152 done; \
36153 (cd $(TARGET_SUBDIR)/libvtv && \
36154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36156 "RANLIB=$${RANLIB}" \
36157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36158 mostlyclean) \
36159 || exit 1
36160
36161@endif target-libvtv
36162
36163.PHONY: maybe-clean-target-libvtv clean-target-libvtv
36164maybe-clean-target-libvtv:
36165@if target-libvtv
36166maybe-clean-target-libvtv: clean-target-libvtv
36167
36168clean-target-libvtv:
36169 @: $(MAKE); $(unstage)
36170 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36171 r=`${PWD_COMMAND}`; export r; \
36172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36173 $(RAW_CXX_TARGET_EXPORTS) \
36174 echo "Doing clean in $(TARGET_SUBDIR)/libvtv" ; \
36175 for flag in $(EXTRA_TARGET_FLAGS); do \
36176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36177 done; \
36178 (cd $(TARGET_SUBDIR)/libvtv && \
36179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36181 "RANLIB=$${RANLIB}" \
36182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36183 clean) \
36184 || exit 1
36185
36186@endif target-libvtv
36187
36188.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
36189maybe-distclean-target-libvtv:
36190@if target-libvtv
36191maybe-distclean-target-libvtv: distclean-target-libvtv
36192
36193distclean-target-libvtv:
36194 @: $(MAKE); $(unstage)
36195 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36196 r=`${PWD_COMMAND}`; export r; \
36197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36198 $(RAW_CXX_TARGET_EXPORTS) \
36199 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv" ; \
36200 for flag in $(EXTRA_TARGET_FLAGS); do \
36201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36202 done; \
36203 (cd $(TARGET_SUBDIR)/libvtv && \
36204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36206 "RANLIB=$${RANLIB}" \
36207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36208 distclean) \
36209 || exit 1
36210
36211@endif target-libvtv
36212
36213.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
36214maybe-maintainer-clean-target-libvtv:
36215@if target-libvtv
36216maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
36217
36218maintainer-clean-target-libvtv:
36219 @: $(MAKE); $(unstage)
36220 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36221 r=`${PWD_COMMAND}`; export r; \
36222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36223 $(RAW_CXX_TARGET_EXPORTS) \
36224 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv" ; \
36225 for flag in $(EXTRA_TARGET_FLAGS); do \
36226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36227 done; \
36228 (cd $(TARGET_SUBDIR)/libvtv && \
36229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36231 "RANLIB=$${RANLIB}" \
36232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36233 maintainer-clean) \
36234 || exit 1
36235
36236@endif target-libvtv
36237
36238
36239
36240
36241
e78e02e6 36242.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
36243maybe-configure-target-libcilkrts:
36244@if gcc-bootstrap
36245configure-target-libcilkrts: stage_current
36246@endif gcc-bootstrap
36247@if target-libcilkrts
36248maybe-configure-target-libcilkrts: configure-target-libcilkrts
36249configure-target-libcilkrts:
36250 @: $(MAKE); $(unstage)
36251 @r=`${PWD_COMMAND}`; export r; \
36252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36253 echo "Checking multilib configuration for libcilkrts..."; \
36254 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
36255 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
36256 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36257 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36258 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
36259 else \
36260 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
36261 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36262 fi; \
36263 else \
36264 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36265 fi; \
36266 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
36267 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
36268 $(NORMAL_TARGET_EXPORTS) \
36269 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
36270 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
36271 case $(srcdir) in \
36272 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36273 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
36274 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36275 esac; \
1b6c0831 36276 module_srcdir=libcilkrts; \
e78e02e6 36277 rm -f no-such-file || : ; \
1b6c0831
L
36278 CONFIG_SITE=no-such-file $(SHELL) \
36279 $$s/$$module_srcdir/configure \
36280 --srcdir=$${topdir}/$$module_srcdir \
e78e02e6 36281 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36282 --target=${target_alias} \
e78e02e6 36283 || exit 1
36284@endif target-libcilkrts
36285
36286
36287
36288
36289
36290.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
36291maybe-all-target-libcilkrts:
36292@if gcc-bootstrap
36293all-target-libcilkrts: stage_current
36294@endif gcc-bootstrap
36295@if target-libcilkrts
36296TARGET-target-libcilkrts=all
36297maybe-all-target-libcilkrts: all-target-libcilkrts
36298all-target-libcilkrts: configure-target-libcilkrts
36299 @: $(MAKE); $(unstage)
36300 @r=`${PWD_COMMAND}`; export r; \
36301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36302 $(NORMAL_TARGET_EXPORTS) \
36303 (cd $(TARGET_SUBDIR)/libcilkrts && \
36304 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36305 $(TARGET-target-libcilkrts))
36306@endif target-libcilkrts
36307
36308
36309
36310
36311
36312.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
36313maybe-check-target-libcilkrts:
36314@if target-libcilkrts
36315maybe-check-target-libcilkrts: check-target-libcilkrts
36316
36317check-target-libcilkrts:
36318 @: $(MAKE); $(unstage)
36319 @r=`${PWD_COMMAND}`; export r; \
36320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36321 $(NORMAL_TARGET_EXPORTS) \
36322 (cd $(TARGET_SUBDIR)/libcilkrts && \
36323 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36324
36325@endif target-libcilkrts
36326
36327.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
36328maybe-install-target-libcilkrts:
36329@if target-libcilkrts
36330maybe-install-target-libcilkrts: install-target-libcilkrts
36331
36332install-target-libcilkrts: installdirs
36333 @: $(MAKE); $(unstage)
36334 @r=`${PWD_COMMAND}`; export r; \
36335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36336 $(NORMAL_TARGET_EXPORTS) \
36337 (cd $(TARGET_SUBDIR)/libcilkrts && \
36338 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36339
36340@endif target-libcilkrts
36341
36342.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
36343maybe-install-strip-target-libcilkrts:
36344@if target-libcilkrts
36345maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
36346
36347install-strip-target-libcilkrts: installdirs
36348 @: $(MAKE); $(unstage)
36349 @r=`${PWD_COMMAND}`; export r; \
36350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36351 $(NORMAL_TARGET_EXPORTS) \
36352 (cd $(TARGET_SUBDIR)/libcilkrts && \
36353 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36354
36355@endif target-libcilkrts
36356
36357# Other targets (info, dvi, pdf, etc.)
36358
36359.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
36360maybe-info-target-libcilkrts:
36361@if target-libcilkrts
36362maybe-info-target-libcilkrts: info-target-libcilkrts
36363
36364info-target-libcilkrts: \
36365 configure-target-libcilkrts
36366 @: $(MAKE); $(unstage)
36367 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36368 r=`${PWD_COMMAND}`; export r; \
36369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36370 $(NORMAL_TARGET_EXPORTS) \
36371 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts" ; \
36372 for flag in $(EXTRA_TARGET_FLAGS); do \
36373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36374 done; \
36375 (cd $(TARGET_SUBDIR)/libcilkrts && \
36376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36378 "RANLIB=$${RANLIB}" \
36379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36380 info) \
36381 || exit 1
36382
36383@endif target-libcilkrts
36384
36385.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
36386maybe-dvi-target-libcilkrts:
36387@if target-libcilkrts
36388maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
36389
36390dvi-target-libcilkrts: \
36391 configure-target-libcilkrts
36392 @: $(MAKE); $(unstage)
36393 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36394 r=`${PWD_COMMAND}`; export r; \
36395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36396 $(NORMAL_TARGET_EXPORTS) \
36397 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts" ; \
36398 for flag in $(EXTRA_TARGET_FLAGS); do \
36399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36400 done; \
36401 (cd $(TARGET_SUBDIR)/libcilkrts && \
36402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36404 "RANLIB=$${RANLIB}" \
36405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36406 dvi) \
36407 || exit 1
36408
36409@endif target-libcilkrts
36410
36411.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
36412maybe-pdf-target-libcilkrts:
36413@if target-libcilkrts
36414maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
36415
36416pdf-target-libcilkrts: \
36417 configure-target-libcilkrts
36418 @: $(MAKE); $(unstage)
36419 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36420 r=`${PWD_COMMAND}`; export r; \
36421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36422 $(NORMAL_TARGET_EXPORTS) \
36423 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts" ; \
36424 for flag in $(EXTRA_TARGET_FLAGS); do \
36425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36426 done; \
36427 (cd $(TARGET_SUBDIR)/libcilkrts && \
36428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36430 "RANLIB=$${RANLIB}" \
36431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36432 pdf) \
36433 || exit 1
36434
36435@endif target-libcilkrts
36436
36437.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
36438maybe-html-target-libcilkrts:
36439@if target-libcilkrts
36440maybe-html-target-libcilkrts: html-target-libcilkrts
36441
36442html-target-libcilkrts: \
36443 configure-target-libcilkrts
36444 @: $(MAKE); $(unstage)
36445 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36446 r=`${PWD_COMMAND}`; export r; \
36447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36448 $(NORMAL_TARGET_EXPORTS) \
36449 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts" ; \
36450 for flag in $(EXTRA_TARGET_FLAGS); do \
36451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36452 done; \
36453 (cd $(TARGET_SUBDIR)/libcilkrts && \
36454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36456 "RANLIB=$${RANLIB}" \
36457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36458 html) \
36459 || exit 1
36460
36461@endif target-libcilkrts
36462
36463.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
36464maybe-TAGS-target-libcilkrts:
36465@if target-libcilkrts
36466maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
36467
36468TAGS-target-libcilkrts: \
36469 configure-target-libcilkrts
36470 @: $(MAKE); $(unstage)
36471 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36472 r=`${PWD_COMMAND}`; export r; \
36473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36474 $(NORMAL_TARGET_EXPORTS) \
36475 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts" ; \
36476 for flag in $(EXTRA_TARGET_FLAGS); do \
36477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36478 done; \
36479 (cd $(TARGET_SUBDIR)/libcilkrts && \
36480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36482 "RANLIB=$${RANLIB}" \
36483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36484 TAGS) \
36485 || exit 1
36486
36487@endif target-libcilkrts
36488
36489.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
36490maybe-install-info-target-libcilkrts:
36491@if target-libcilkrts
36492maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
36493
36494install-info-target-libcilkrts: \
36495 configure-target-libcilkrts \
36496 info-target-libcilkrts
36497 @: $(MAKE); $(unstage)
36498 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36499 r=`${PWD_COMMAND}`; export r; \
36500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36501 $(NORMAL_TARGET_EXPORTS) \
36502 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts" ; \
36503 for flag in $(EXTRA_TARGET_FLAGS); do \
36504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36505 done; \
36506 (cd $(TARGET_SUBDIR)/libcilkrts && \
36507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36509 "RANLIB=$${RANLIB}" \
36510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36511 install-info) \
36512 || exit 1
36513
36514@endif target-libcilkrts
36515
36516.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
36517maybe-install-pdf-target-libcilkrts:
36518@if target-libcilkrts
36519maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
36520
36521install-pdf-target-libcilkrts: \
36522 configure-target-libcilkrts \
36523 pdf-target-libcilkrts
36524 @: $(MAKE); $(unstage)
36525 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36526 r=`${PWD_COMMAND}`; export r; \
36527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36528 $(NORMAL_TARGET_EXPORTS) \
36529 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts" ; \
36530 for flag in $(EXTRA_TARGET_FLAGS); do \
36531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36532 done; \
36533 (cd $(TARGET_SUBDIR)/libcilkrts && \
36534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36536 "RANLIB=$${RANLIB}" \
36537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36538 install-pdf) \
36539 || exit 1
36540
36541@endif target-libcilkrts
36542
36543.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
36544maybe-install-html-target-libcilkrts:
36545@if target-libcilkrts
36546maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
36547
36548install-html-target-libcilkrts: \
36549 configure-target-libcilkrts \
36550 html-target-libcilkrts
36551 @: $(MAKE); $(unstage)
36552 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36553 r=`${PWD_COMMAND}`; export r; \
36554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36555 $(NORMAL_TARGET_EXPORTS) \
36556 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts" ; \
36557 for flag in $(EXTRA_TARGET_FLAGS); do \
36558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36559 done; \
36560 (cd $(TARGET_SUBDIR)/libcilkrts && \
36561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36563 "RANLIB=$${RANLIB}" \
36564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36565 install-html) \
36566 || exit 1
36567
36568@endif target-libcilkrts
36569
36570.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
36571maybe-installcheck-target-libcilkrts:
36572@if target-libcilkrts
36573maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
36574
36575installcheck-target-libcilkrts: \
36576 configure-target-libcilkrts
36577 @: $(MAKE); $(unstage)
36578 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36579 r=`${PWD_COMMAND}`; export r; \
36580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36581 $(NORMAL_TARGET_EXPORTS) \
36582 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts" ; \
36583 for flag in $(EXTRA_TARGET_FLAGS); do \
36584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36585 done; \
36586 (cd $(TARGET_SUBDIR)/libcilkrts && \
36587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36589 "RANLIB=$${RANLIB}" \
36590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36591 installcheck) \
36592 || exit 1
36593
36594@endif target-libcilkrts
36595
36596.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
36597maybe-mostlyclean-target-libcilkrts:
36598@if target-libcilkrts
36599maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
36600
36601mostlyclean-target-libcilkrts:
36602 @: $(MAKE); $(unstage)
36603 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36604 r=`${PWD_COMMAND}`; export r; \
36605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36606 $(NORMAL_TARGET_EXPORTS) \
36607 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts" ; \
36608 for flag in $(EXTRA_TARGET_FLAGS); do \
36609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36610 done; \
36611 (cd $(TARGET_SUBDIR)/libcilkrts && \
36612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36614 "RANLIB=$${RANLIB}" \
36615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36616 mostlyclean) \
36617 || exit 1
36618
36619@endif target-libcilkrts
36620
36621.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
36622maybe-clean-target-libcilkrts:
36623@if target-libcilkrts
36624maybe-clean-target-libcilkrts: clean-target-libcilkrts
36625
36626clean-target-libcilkrts:
36627 @: $(MAKE); $(unstage)
36628 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36629 r=`${PWD_COMMAND}`; export r; \
36630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36631 $(NORMAL_TARGET_EXPORTS) \
36632 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts" ; \
36633 for flag in $(EXTRA_TARGET_FLAGS); do \
36634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36635 done; \
36636 (cd $(TARGET_SUBDIR)/libcilkrts && \
36637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36639 "RANLIB=$${RANLIB}" \
36640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36641 clean) \
36642 || exit 1
36643
36644@endif target-libcilkrts
36645
36646.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
36647maybe-distclean-target-libcilkrts:
36648@if target-libcilkrts
36649maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
36650
36651distclean-target-libcilkrts:
36652 @: $(MAKE); $(unstage)
36653 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36654 r=`${PWD_COMMAND}`; export r; \
36655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36656 $(NORMAL_TARGET_EXPORTS) \
36657 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts" ; \
36658 for flag in $(EXTRA_TARGET_FLAGS); do \
36659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36660 done; \
36661 (cd $(TARGET_SUBDIR)/libcilkrts && \
36662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36664 "RANLIB=$${RANLIB}" \
36665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36666 distclean) \
36667 || exit 1
36668
36669@endif target-libcilkrts
36670
36671.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
36672maybe-maintainer-clean-target-libcilkrts:
36673@if target-libcilkrts
36674maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
36675
36676maintainer-clean-target-libcilkrts:
36677 @: $(MAKE); $(unstage)
36678 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36679 r=`${PWD_COMMAND}`; export r; \
36680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36681 $(NORMAL_TARGET_EXPORTS) \
36682 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts" ; \
36683 for flag in $(EXTRA_TARGET_FLAGS); do \
36684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36685 done; \
36686 (cd $(TARGET_SUBDIR)/libcilkrts && \
36687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36689 "RANLIB=$${RANLIB}" \
36690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36691 maintainer-clean) \
36692 || exit 1
36693
36694@endif target-libcilkrts
36695
36696
36697
36698
36699
1b6c0831
L
36700.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
36701maybe-configure-target-liboffloadmic:
36702@if gcc-bootstrap
36703configure-target-liboffloadmic: stage_current
36704@endif gcc-bootstrap
36705@if target-liboffloadmic
36706maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
36707configure-target-liboffloadmic:
36708 @: $(MAKE); $(unstage)
36709 @r=`${PWD_COMMAND}`; export r; \
36710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36711 echo "Checking multilib configuration for liboffloadmic..."; \
36712 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic ; \
36713 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null ; \
36714 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
36715 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
36716 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
36717 else \
36718 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
36719 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
36720 fi; \
36721 else \
36722 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
36723 fi; \
36724 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
36725 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic ; \
36726 $(NORMAL_TARGET_EXPORTS) \
36727 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
36728 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
36729 case $(srcdir) in \
36730 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36731 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
36732 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36733 esac; \
36734 module_srcdir=liboffloadmic; \
36735 rm -f no-such-file || : ; \
36736 CONFIG_SITE=no-such-file $(SHELL) \
36737 $$s/$$module_srcdir/configure \
36738 --srcdir=$${topdir}/$$module_srcdir \
36739 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36740 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
36741 || exit 1
36742@endif target-liboffloadmic
36743
36744
36745
36746
36747
36748.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
36749maybe-all-target-liboffloadmic:
36750@if gcc-bootstrap
36751all-target-liboffloadmic: stage_current
36752@endif gcc-bootstrap
36753@if target-liboffloadmic
36754TARGET-target-liboffloadmic=all
36755maybe-all-target-liboffloadmic: all-target-liboffloadmic
36756all-target-liboffloadmic: configure-target-liboffloadmic
36757 @: $(MAKE); $(unstage)
36758 @r=`${PWD_COMMAND}`; export r; \
36759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36760 $(NORMAL_TARGET_EXPORTS) \
36761 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36762 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36763 $(TARGET-target-liboffloadmic))
36764@endif target-liboffloadmic
36765
36766
36767
36768
36769
36770.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
36771maybe-check-target-liboffloadmic:
36772@if target-liboffloadmic
36773maybe-check-target-liboffloadmic: check-target-liboffloadmic
36774
36775check-target-liboffloadmic:
36776 @: $(MAKE); $(unstage)
36777 @r=`${PWD_COMMAND}`; export r; \
36778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36779 $(NORMAL_TARGET_EXPORTS) \
36780 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36781 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36782
36783@endif target-liboffloadmic
36784
36785.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
36786maybe-install-target-liboffloadmic:
36787@if target-liboffloadmic
36788maybe-install-target-liboffloadmic: install-target-liboffloadmic
36789
36790install-target-liboffloadmic: installdirs
36791 @: $(MAKE); $(unstage)
36792 @r=`${PWD_COMMAND}`; export r; \
36793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36794 $(NORMAL_TARGET_EXPORTS) \
36795 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36796 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36797
36798@endif target-liboffloadmic
36799
36800.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
36801maybe-install-strip-target-liboffloadmic:
36802@if target-liboffloadmic
36803maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
36804
36805install-strip-target-liboffloadmic: installdirs
36806 @: $(MAKE); $(unstage)
36807 @r=`${PWD_COMMAND}`; export r; \
36808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36809 $(NORMAL_TARGET_EXPORTS) \
36810 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36811 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36812
36813@endif target-liboffloadmic
36814
36815# Other targets (info, dvi, pdf, etc.)
36816
36817.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
36818maybe-info-target-liboffloadmic:
36819@if target-liboffloadmic
36820maybe-info-target-liboffloadmic: info-target-liboffloadmic
36821
36822info-target-liboffloadmic: \
36823 configure-target-liboffloadmic
36824 @: $(MAKE); $(unstage)
36825 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36826 r=`${PWD_COMMAND}`; export r; \
36827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36828 $(NORMAL_TARGET_EXPORTS) \
36829 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic" ; \
36830 for flag in $(EXTRA_TARGET_FLAGS); do \
36831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36832 done; \
36833 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36836 "RANLIB=$${RANLIB}" \
36837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36838 info) \
36839 || exit 1
36840
36841@endif target-liboffloadmic
36842
36843.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
36844maybe-dvi-target-liboffloadmic:
36845@if target-liboffloadmic
36846maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
36847
36848dvi-target-liboffloadmic: \
36849 configure-target-liboffloadmic
36850 @: $(MAKE); $(unstage)
36851 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36852 r=`${PWD_COMMAND}`; export r; \
36853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36854 $(NORMAL_TARGET_EXPORTS) \
36855 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic" ; \
36856 for flag in $(EXTRA_TARGET_FLAGS); do \
36857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36858 done; \
36859 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36862 "RANLIB=$${RANLIB}" \
36863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36864 dvi) \
36865 || exit 1
36866
36867@endif target-liboffloadmic
36868
36869.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
36870maybe-pdf-target-liboffloadmic:
36871@if target-liboffloadmic
36872maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
36873
36874pdf-target-liboffloadmic: \
36875 configure-target-liboffloadmic
36876 @: $(MAKE); $(unstage)
36877 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36878 r=`${PWD_COMMAND}`; export r; \
36879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36880 $(NORMAL_TARGET_EXPORTS) \
36881 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic" ; \
36882 for flag in $(EXTRA_TARGET_FLAGS); do \
36883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36884 done; \
36885 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36888 "RANLIB=$${RANLIB}" \
36889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36890 pdf) \
36891 || exit 1
36892
36893@endif target-liboffloadmic
36894
36895.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
36896maybe-html-target-liboffloadmic:
36897@if target-liboffloadmic
36898maybe-html-target-liboffloadmic: html-target-liboffloadmic
36899
36900html-target-liboffloadmic: \
36901 configure-target-liboffloadmic
36902 @: $(MAKE); $(unstage)
36903 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36904 r=`${PWD_COMMAND}`; export r; \
36905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36906 $(NORMAL_TARGET_EXPORTS) \
36907 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic" ; \
36908 for flag in $(EXTRA_TARGET_FLAGS); do \
36909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36910 done; \
36911 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36914 "RANLIB=$${RANLIB}" \
36915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36916 html) \
36917 || exit 1
36918
36919@endif target-liboffloadmic
36920
36921.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
36922maybe-TAGS-target-liboffloadmic:
36923@if target-liboffloadmic
36924maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
36925
36926TAGS-target-liboffloadmic: \
36927 configure-target-liboffloadmic
36928 @: $(MAKE); $(unstage)
36929 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36930 r=`${PWD_COMMAND}`; export r; \
36931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36932 $(NORMAL_TARGET_EXPORTS) \
36933 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic" ; \
36934 for flag in $(EXTRA_TARGET_FLAGS); do \
36935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36936 done; \
36937 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36940 "RANLIB=$${RANLIB}" \
36941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36942 TAGS) \
36943 || exit 1
36944
36945@endif target-liboffloadmic
36946
36947.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
36948maybe-install-info-target-liboffloadmic:
36949@if target-liboffloadmic
36950maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
36951
36952install-info-target-liboffloadmic: \
36953 configure-target-liboffloadmic \
36954 info-target-liboffloadmic
36955 @: $(MAKE); $(unstage)
36956 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36957 r=`${PWD_COMMAND}`; export r; \
36958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36959 $(NORMAL_TARGET_EXPORTS) \
36960 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic" ; \
36961 for flag in $(EXTRA_TARGET_FLAGS); do \
36962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36963 done; \
36964 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36967 "RANLIB=$${RANLIB}" \
36968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36969 install-info) \
36970 || exit 1
36971
36972@endif target-liboffloadmic
36973
36974.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
36975maybe-install-pdf-target-liboffloadmic:
36976@if target-liboffloadmic
36977maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
36978
36979install-pdf-target-liboffloadmic: \
36980 configure-target-liboffloadmic \
36981 pdf-target-liboffloadmic
36982 @: $(MAKE); $(unstage)
36983 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36984 r=`${PWD_COMMAND}`; export r; \
36985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36986 $(NORMAL_TARGET_EXPORTS) \
36987 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic" ; \
36988 for flag in $(EXTRA_TARGET_FLAGS); do \
36989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36990 done; \
36991 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36994 "RANLIB=$${RANLIB}" \
36995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36996 install-pdf) \
36997 || exit 1
36998
36999@endif target-liboffloadmic
37000
37001.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
37002maybe-install-html-target-liboffloadmic:
37003@if target-liboffloadmic
37004maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
37005
37006install-html-target-liboffloadmic: \
37007 configure-target-liboffloadmic \
37008 html-target-liboffloadmic
37009 @: $(MAKE); $(unstage)
37010 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37011 r=`${PWD_COMMAND}`; export r; \
37012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37013 $(NORMAL_TARGET_EXPORTS) \
37014 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic" ; \
37015 for flag in $(EXTRA_TARGET_FLAGS); do \
37016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37017 done; \
37018 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37021 "RANLIB=$${RANLIB}" \
37022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37023 install-html) \
37024 || exit 1
37025
37026@endif target-liboffloadmic
37027
37028.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
37029maybe-installcheck-target-liboffloadmic:
37030@if target-liboffloadmic
37031maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
37032
37033installcheck-target-liboffloadmic: \
37034 configure-target-liboffloadmic
37035 @: $(MAKE); $(unstage)
37036 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37037 r=`${PWD_COMMAND}`; export r; \
37038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37039 $(NORMAL_TARGET_EXPORTS) \
37040 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic" ; \
37041 for flag in $(EXTRA_TARGET_FLAGS); do \
37042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37043 done; \
37044 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37047 "RANLIB=$${RANLIB}" \
37048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37049 installcheck) \
37050 || exit 1
37051
37052@endif target-liboffloadmic
37053
37054.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
37055maybe-mostlyclean-target-liboffloadmic:
37056@if target-liboffloadmic
37057maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
37058
37059mostlyclean-target-liboffloadmic:
37060 @: $(MAKE); $(unstage)
37061 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37062 r=`${PWD_COMMAND}`; export r; \
37063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37064 $(NORMAL_TARGET_EXPORTS) \
37065 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37066 for flag in $(EXTRA_TARGET_FLAGS); do \
37067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37068 done; \
37069 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37072 "RANLIB=$${RANLIB}" \
37073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37074 mostlyclean) \
37075 || exit 1
37076
37077@endif target-liboffloadmic
37078
37079.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
37080maybe-clean-target-liboffloadmic:
37081@if target-liboffloadmic
37082maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
37083
37084clean-target-liboffloadmic:
37085 @: $(MAKE); $(unstage)
37086 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37087 r=`${PWD_COMMAND}`; export r; \
37088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37089 $(NORMAL_TARGET_EXPORTS) \
37090 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37091 for flag in $(EXTRA_TARGET_FLAGS); do \
37092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37093 done; \
37094 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37097 "RANLIB=$${RANLIB}" \
37098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37099 clean) \
37100 || exit 1
37101
37102@endif target-liboffloadmic
37103
37104.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
37105maybe-distclean-target-liboffloadmic:
37106@if target-liboffloadmic
37107maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
37108
37109distclean-target-liboffloadmic:
37110 @: $(MAKE); $(unstage)
37111 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37112 r=`${PWD_COMMAND}`; export r; \
37113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37114 $(NORMAL_TARGET_EXPORTS) \
37115 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37116 for flag in $(EXTRA_TARGET_FLAGS); do \
37117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37118 done; \
37119 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37122 "RANLIB=$${RANLIB}" \
37123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37124 distclean) \
37125 || exit 1
37126
37127@endif target-liboffloadmic
37128
37129.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
37130maybe-maintainer-clean-target-liboffloadmic:
37131@if target-liboffloadmic
37132maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
37133
37134maintainer-clean-target-liboffloadmic:
37135 @: $(MAKE); $(unstage)
37136 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37137 r=`${PWD_COMMAND}`; export r; \
37138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37139 $(NORMAL_TARGET_EXPORTS) \
37140 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37141 for flag in $(EXTRA_TARGET_FLAGS); do \
37142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37143 done; \
37144 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37147 "RANLIB=$${RANLIB}" \
37148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37149 maintainer-clean) \
37150 || exit 1
37151
37152@endif target-liboffloadmic
37153
37154
37155
37156
37157
a90ef4bf
JM
37158.PHONY: configure-target-libssp maybe-configure-target-libssp
37159maybe-configure-target-libssp:
4f0ef2d8 37160@if gcc-bootstrap
a90ef4bf 37161configure-target-libssp: stage_current
4f0ef2d8 37162@endif gcc-bootstrap
a90ef4bf
JM
37163@if target-libssp
37164maybe-configure-target-libssp: configure-target-libssp
37165configure-target-libssp:
0aed8855
PB
37166 @: $(MAKE); $(unstage)
37167 @r=`${PWD_COMMAND}`; export r; \
37168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
37169 echo "Checking multilib configuration for libssp..."; \
37170 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
37171 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
37172 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
37173 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
37174 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 37175 else \
a90ef4bf
JM
37176 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
37177 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
37178 fi; \
37179 else \
a90ef4bf 37180 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 37181 fi; \
a90ef4bf
JM
37182 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
37183 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
1f53ca9a 37184 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37185 echo Configuring in $(TARGET_SUBDIR)/libssp; \
37186 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 37187 case $(srcdir) in \
b00612cc 37188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37189 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 37190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 37191 esac; \
1b6c0831 37192 module_srcdir=libssp; \
4b1cb4fe 37193 rm -f no-such-file || : ; \
1b6c0831
L
37194 CONFIG_SITE=no-such-file $(SHELL) \
37195 $$s/$$module_srcdir/configure \
37196 --srcdir=$${topdir}/$$module_srcdir \
4b900473 37197 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37198 --target=${target_alias} \
4b1cb4fe 37199 || exit 1
a90ef4bf 37200@endif target-libssp
4b1cb4fe 37201
a7254363
PB
37202
37203
d545f33b
PB
37204
37205
a90ef4bf
JM
37206.PHONY: all-target-libssp maybe-all-target-libssp
37207maybe-all-target-libssp:
4f0ef2d8 37208@if gcc-bootstrap
a90ef4bf 37209all-target-libssp: stage_current
4f0ef2d8 37210@endif gcc-bootstrap
a90ef4bf
JM
37211@if target-libssp
37212TARGET-target-libssp=all
37213maybe-all-target-libssp: all-target-libssp
37214all-target-libssp: configure-target-libssp
0aed8855 37215 @: $(MAKE); $(unstage)
4b1cb4fe
DD
37216 @r=`${PWD_COMMAND}`; export r; \
37217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37218 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37219 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 37220 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37221 $(TARGET-target-libssp))
37222@endif target-libssp
4b1cb4fe 37223
a7254363
PB
37224
37225
d545f33b
PB
37226
37227
a90ef4bf
JM
37228.PHONY: check-target-libssp maybe-check-target-libssp
37229maybe-check-target-libssp:
37230@if target-libssp
37231maybe-check-target-libssp: check-target-libssp
4b1cb4fe 37232
a90ef4bf 37233check-target-libssp:
0aed8855 37234 @: $(MAKE); $(unstage)
b40e3958
L
37235 @r=`${PWD_COMMAND}`; export r; \
37236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37237 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37238 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37239 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 37240
a90ef4bf 37241@endif target-libssp
3866be5d 37242
a90ef4bf
JM
37243.PHONY: install-target-libssp maybe-install-target-libssp
37244maybe-install-target-libssp:
37245@if target-libssp
37246maybe-install-target-libssp: install-target-libssp
e2b9e2dc 37247
a90ef4bf 37248install-target-libssp: installdirs
0aed8855 37249 @: $(MAKE); $(unstage)
b40e3958
L
37250 @r=`${PWD_COMMAND}`; export r; \
37251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37252 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37253 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37254 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37255
a90ef4bf 37256@endif target-libssp
3866be5d 37257
a90ef4bf
JM
37258.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
37259maybe-install-strip-target-libssp:
37260@if target-libssp
37261maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 37262
a90ef4bf 37263install-strip-target-libssp: installdirs
9b980aa1
RW
37264 @: $(MAKE); $(unstage)
37265 @r=`${PWD_COMMAND}`; export r; \
37266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37267 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37268 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
37269 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37270
a90ef4bf 37271@endif target-libssp
9b980aa1 37272
56a8fe78 37273# Other targets (info, dvi, pdf, etc.)
3866be5d 37274
a90ef4bf
JM
37275.PHONY: maybe-info-target-libssp info-target-libssp
37276maybe-info-target-libssp:
37277@if target-libssp
37278maybe-info-target-libssp: info-target-libssp
3866be5d 37279
a90ef4bf
JM
37280info-target-libssp: \
37281 configure-target-libssp
0aed8855 37282 @: $(MAKE); $(unstage)
a90ef4bf 37283 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067
NN
37284 r=`${PWD_COMMAND}`; export r; \
37285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37286 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37287 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37288 for flag in $(EXTRA_TARGET_FLAGS); do \
37289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37290 done; \
a90ef4bf 37291 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37294 "RANLIB=$${RANLIB}" \
0c24b341 37295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37296 info) \
4fa63067 37297 || exit 1
16ae0395 37298
a90ef4bf 37299@endif target-libssp
3866be5d 37300
a90ef4bf
JM
37301.PHONY: maybe-dvi-target-libssp dvi-target-libssp
37302maybe-dvi-target-libssp:
37303@if target-libssp
37304maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 37305
a90ef4bf
JM
37306dvi-target-libssp: \
37307 configure-target-libssp
0aed8855 37308 @: $(MAKE); $(unstage)
a90ef4bf 37309 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37310 r=`${PWD_COMMAND}`; export r; \
37311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37312 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37313 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37314 for flag in $(EXTRA_TARGET_FLAGS); do \
37315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37316 done; \
a90ef4bf 37317 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37320 "RANLIB=$${RANLIB}" \
0c24b341 37321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37322 dvi) \
e2b9e2dc
NN
37323 || exit 1
37324
a90ef4bf 37325@endif target-libssp
3866be5d 37326
a90ef4bf
JM
37327.PHONY: maybe-pdf-target-libssp pdf-target-libssp
37328maybe-pdf-target-libssp:
37329@if target-libssp
37330maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 37331
a90ef4bf
JM
37332pdf-target-libssp: \
37333 configure-target-libssp
56a8fe78 37334 @: $(MAKE); $(unstage)
a90ef4bf 37335 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
56a8fe78
DD
37336 r=`${PWD_COMMAND}`; export r; \
37337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37338 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37339 echo "Doing pdf in $(TARGET_SUBDIR)/libssp" ; \
56a8fe78
DD
37340 for flag in $(EXTRA_TARGET_FLAGS); do \
37341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37342 done; \
a90ef4bf 37343 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
37344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37346 "RANLIB=$${RANLIB}" \
0c24b341 37347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37348 pdf) \
37349 || exit 1
37350
a90ef4bf 37351@endif target-libssp
a3ca38d2 37352
a90ef4bf
JM
37353.PHONY: maybe-html-target-libssp html-target-libssp
37354maybe-html-target-libssp:
37355@if target-libssp
37356maybe-html-target-libssp: html-target-libssp
108a6f8e 37357
a90ef4bf
JM
37358html-target-libssp: \
37359 configure-target-libssp
108a6f8e 37360 @: $(MAKE); $(unstage)
a90ef4bf 37361 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
108a6f8e
CD
37362 r=`${PWD_COMMAND}`; export r; \
37363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37364 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37365 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
108a6f8e
CD
37366 for flag in $(EXTRA_TARGET_FLAGS); do \
37367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37368 done; \
a90ef4bf 37369 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
37370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37372 "RANLIB=$${RANLIB}" \
0c24b341 37373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37374 html) \
108a6f8e
CD
37375 || exit 1
37376
a90ef4bf 37377@endif target-libssp
108a6f8e 37378
a90ef4bf
JM
37379.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
37380maybe-TAGS-target-libssp:
37381@if target-libssp
37382maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 37383
a90ef4bf
JM
37384TAGS-target-libssp: \
37385 configure-target-libssp
0aed8855 37386 @: $(MAKE); $(unstage)
a90ef4bf 37387 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37388 r=`${PWD_COMMAND}`; export r; \
37389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37390 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37391 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37392 for flag in $(EXTRA_TARGET_FLAGS); do \
37393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37394 done; \
a90ef4bf 37395 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37398 "RANLIB=$${RANLIB}" \
0c24b341 37399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37400 TAGS) \
e2b9e2dc
NN
37401 || exit 1
37402
a90ef4bf 37403@endif target-libssp
3866be5d 37404
a90ef4bf
JM
37405.PHONY: maybe-install-info-target-libssp install-info-target-libssp
37406maybe-install-info-target-libssp:
37407@if target-libssp
37408maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 37409
a90ef4bf
JM
37410install-info-target-libssp: \
37411 configure-target-libssp \
37412 info-target-libssp
0aed8855 37413 @: $(MAKE); $(unstage)
a90ef4bf 37414 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37415 r=`${PWD_COMMAND}`; export r; \
b40e3958 37416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37417 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37418 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37419 for flag in $(EXTRA_TARGET_FLAGS); do \
37420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37421 done; \
a90ef4bf 37422 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37425 "RANLIB=$${RANLIB}" \
0c24b341 37426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37427 install-info) \
4fa63067 37428 || exit 1
3866be5d 37429
a90ef4bf 37430@endif target-libssp
3866be5d 37431
a90ef4bf
JM
37432.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
37433maybe-install-pdf-target-libssp:
37434@if target-libssp
37435maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 37436
a90ef4bf
JM
37437install-pdf-target-libssp: \
37438 configure-target-libssp \
37439 pdf-target-libssp
0aed8855 37440 @: $(MAKE); $(unstage)
a90ef4bf 37441 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37442 r=`${PWD_COMMAND}`; export r; \
b40e3958 37443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37444 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37445 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37446 for flag in $(EXTRA_TARGET_FLAGS); do \
37447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37448 done; \
a90ef4bf 37449 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37452 "RANLIB=$${RANLIB}" \
0c24b341 37453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37454 install-pdf) \
4fa63067 37455 || exit 1
3866be5d 37456
a90ef4bf 37457@endif target-libssp
3866be5d 37458
a90ef4bf
JM
37459.PHONY: maybe-install-html-target-libssp install-html-target-libssp
37460maybe-install-html-target-libssp:
37461@if target-libssp
37462maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 37463
a90ef4bf
JM
37464install-html-target-libssp: \
37465 configure-target-libssp \
37466 html-target-libssp
0aed8855 37467 @: $(MAKE); $(unstage)
a90ef4bf 37468 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37469 r=`${PWD_COMMAND}`; export r; \
37470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37471 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37472 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37473 for flag in $(EXTRA_TARGET_FLAGS); do \
37474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37475 done; \
a90ef4bf 37476 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37479 "RANLIB=$${RANLIB}" \
0c24b341 37480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37481 install-html) \
e2b9e2dc
NN
37482 || exit 1
37483
a90ef4bf 37484@endif target-libssp
3866be5d 37485
a90ef4bf
JM
37486.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
37487maybe-installcheck-target-libssp:
37488@if target-libssp
37489maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 37490
a90ef4bf
JM
37491installcheck-target-libssp: \
37492 configure-target-libssp
0aed8855 37493 @: $(MAKE); $(unstage)
a90ef4bf 37494 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37495 r=`${PWD_COMMAND}`; export r; \
b40e3958 37496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37497 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37498 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37499 for flag in $(EXTRA_TARGET_FLAGS); do \
37500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37501 done; \
a90ef4bf 37502 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37505 "RANLIB=$${RANLIB}" \
0c24b341 37506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37507 installcheck) \
6aa8ef82 37508 || exit 1
6aa8ef82 37509
a90ef4bf 37510@endif target-libssp
6aa8ef82 37511
a90ef4bf
JM
37512.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
37513maybe-mostlyclean-target-libssp:
37514@if target-libssp
37515maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 37516
a90ef4bf
JM
37517mostlyclean-target-libssp:
37518 @: $(MAKE); $(unstage)
37519 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37520 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37522 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37523 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
37524 for flag in $(EXTRA_TARGET_FLAGS); do \
37525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37526 done; \
37527 (cd $(TARGET_SUBDIR)/libssp && \
37528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37530 "RANLIB=$${RANLIB}" \
37531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37532 mostlyclean) \
37533 || exit 1
6aa8ef82 37534
a90ef4bf 37535@endif target-libssp
6aa8ef82 37536
a90ef4bf
JM
37537.PHONY: maybe-clean-target-libssp clean-target-libssp
37538maybe-clean-target-libssp:
37539@if target-libssp
37540maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 37541
a90ef4bf
JM
37542clean-target-libssp:
37543 @: $(MAKE); $(unstage)
37544 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37545 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37547 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37548 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
37549 for flag in $(EXTRA_TARGET_FLAGS); do \
37550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37551 done; \
37552 (cd $(TARGET_SUBDIR)/libssp && \
37553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37555 "RANLIB=$${RANLIB}" \
37556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37557 clean) \
37558 || exit 1
6aa8ef82 37559
a90ef4bf 37560@endif target-libssp
6aa8ef82 37561
a90ef4bf
JM
37562.PHONY: maybe-distclean-target-libssp distclean-target-libssp
37563maybe-distclean-target-libssp:
37564@if target-libssp
37565maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 37566
a90ef4bf
JM
37567distclean-target-libssp:
37568 @: $(MAKE); $(unstage)
37569 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37570 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37572 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37573 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
37574 for flag in $(EXTRA_TARGET_FLAGS); do \
37575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37576 done; \
37577 (cd $(TARGET_SUBDIR)/libssp && \
37578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37580 "RANLIB=$${RANLIB}" \
37581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37582 distclean) \
37583 || exit 1
6aa8ef82 37584
a90ef4bf 37585@endif target-libssp
6aa8ef82 37586
a90ef4bf
JM
37587.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
37588maybe-maintainer-clean-target-libssp:
37589@if target-libssp
37590maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 37591
a90ef4bf
JM
37592maintainer-clean-target-libssp:
37593 @: $(MAKE); $(unstage)
37594 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37595 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37597 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37598 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
37599 for flag in $(EXTRA_TARGET_FLAGS); do \
37600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37601 done; \
37602 (cd $(TARGET_SUBDIR)/libssp && \
37603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37605 "RANLIB=$${RANLIB}" \
37606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37607 maintainer-clean) \
37608 || exit 1
6aa8ef82 37609
a90ef4bf 37610@endif target-libssp
6aa8ef82
DJ
37611
37612
a90ef4bf
JM
37613
37614
37615
37616.PHONY: configure-target-newlib maybe-configure-target-newlib
37617maybe-configure-target-newlib:
37618@if gcc-bootstrap
37619configure-target-newlib: stage_current
37620@endif gcc-bootstrap
37621@if target-newlib
37622maybe-configure-target-newlib: configure-target-newlib
37623configure-target-newlib:
37624 @: $(MAKE); $(unstage)
6aa8ef82
DJ
37625 @r=`${PWD_COMMAND}`; export r; \
37626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
37627 echo "Checking multilib configuration for newlib..."; \
37628 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
37629 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
37630 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
37631 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
37632 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
37633 else \
37634 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
37635 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
37636 fi; \
6aa8ef82 37637 else \
a90ef4bf 37638 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 37639 fi; \
a90ef4bf
JM
37640 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
37641 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
37642 $(NORMAL_TARGET_EXPORTS) \
37643 echo Configuring in $(TARGET_SUBDIR)/newlib; \
37644 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
37645 case $(srcdir) in \
37646 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37647 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
37648 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37649 esac; \
1b6c0831 37650 module_srcdir=newlib; \
a90ef4bf 37651 rm -f no-such-file || : ; \
1b6c0831
L
37652 CONFIG_SITE=no-such-file $(SHELL) \
37653 $$s/$$module_srcdir/configure \
37654 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 37655 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37656 --target=${target_alias} \
a90ef4bf
JM
37657 || exit 1
37658@endif target-newlib
6aa8ef82
DJ
37659
37660
37661
37662
37663
a90ef4bf
JM
37664.PHONY: all-target-newlib maybe-all-target-newlib
37665maybe-all-target-newlib:
37666@if gcc-bootstrap
37667all-target-newlib: stage_current
37668@endif gcc-bootstrap
37669@if target-newlib
37670TARGET-target-newlib=all
37671maybe-all-target-newlib: all-target-newlib
37672all-target-newlib: configure-target-newlib
37673 @: $(MAKE); $(unstage)
37674 @r=`${PWD_COMMAND}`; export r; \
37675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37676 $(NORMAL_TARGET_EXPORTS) \
37677 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 37678 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37679 $(TARGET-target-newlib))
37680@endif target-newlib
6aa8ef82 37681
6aa8ef82 37682
6aa8ef82 37683
6aa8ef82 37684
6aa8ef82 37685
a90ef4bf
JM
37686.PHONY: check-target-newlib maybe-check-target-newlib
37687maybe-check-target-newlib:
37688@if target-newlib
37689maybe-check-target-newlib: check-target-newlib
37690
37691check-target-newlib:
6aa8ef82
DJ
37692 @: $(MAKE); $(unstage)
37693 @r=`${PWD_COMMAND}`; export r; \
37694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37695 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37696 (cd $(TARGET_SUBDIR)/newlib && \
37697 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
37698
37699@endif target-newlib
37700
37701.PHONY: install-target-newlib maybe-install-target-newlib
37702maybe-install-target-newlib:
37703@if target-newlib
37704maybe-install-target-newlib: install-target-newlib
37705
37706install-target-newlib: installdirs
37707 @: $(MAKE); $(unstage)
37708 @r=`${PWD_COMMAND}`; export r; \
37709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37710 $(NORMAL_TARGET_EXPORTS) \
37711 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37712 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37713
a90ef4bf 37714@endif target-newlib
6aa8ef82 37715
a90ef4bf
JM
37716.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
37717maybe-install-strip-target-newlib:
37718@if target-newlib
37719maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 37720
a90ef4bf 37721install-strip-target-newlib: installdirs
9b980aa1
RW
37722 @: $(MAKE); $(unstage)
37723 @r=`${PWD_COMMAND}`; export r; \
37724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37725 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37726 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
37727 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37728
a90ef4bf 37729@endif target-newlib
9b980aa1 37730
6aa8ef82
DJ
37731# Other targets (info, dvi, pdf, etc.)
37732
a90ef4bf
JM
37733.PHONY: maybe-info-target-newlib info-target-newlib
37734maybe-info-target-newlib:
37735@if target-newlib
37736maybe-info-target-newlib: info-target-newlib
6aa8ef82 37737
a90ef4bf
JM
37738info-target-newlib: \
37739 configure-target-newlib
6aa8ef82 37740 @: $(MAKE); $(unstage)
a90ef4bf 37741 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37742 r=`${PWD_COMMAND}`; export r; \
37743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37744 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37745 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37746 for flag in $(EXTRA_TARGET_FLAGS); do \
37747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37748 done; \
a90ef4bf 37749 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37752 "RANLIB=$${RANLIB}" \
0c24b341 37753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37754 info) \
37755 || exit 1
37756
a90ef4bf 37757@endif target-newlib
6aa8ef82 37758
a90ef4bf
JM
37759.PHONY: maybe-dvi-target-newlib dvi-target-newlib
37760maybe-dvi-target-newlib:
37761@if target-newlib
37762maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 37763
a90ef4bf
JM
37764dvi-target-newlib: \
37765 configure-target-newlib
6aa8ef82 37766 @: $(MAKE); $(unstage)
a90ef4bf 37767 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37768 r=`${PWD_COMMAND}`; export r; \
37769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37770 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37771 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37772 for flag in $(EXTRA_TARGET_FLAGS); do \
37773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37774 done; \
a90ef4bf 37775 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37778 "RANLIB=$${RANLIB}" \
0c24b341 37779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37780 dvi) \
37781 || exit 1
37782
a90ef4bf 37783@endif target-newlib
6aa8ef82 37784
a90ef4bf
JM
37785.PHONY: maybe-pdf-target-newlib pdf-target-newlib
37786maybe-pdf-target-newlib:
37787@if target-newlib
37788maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 37789
a90ef4bf
JM
37790pdf-target-newlib: \
37791 configure-target-newlib
6aa8ef82 37792 @: $(MAKE); $(unstage)
a90ef4bf 37793 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37794 r=`${PWD_COMMAND}`; export r; \
37795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37796 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37797 echo "Doing pdf in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37798 for flag in $(EXTRA_TARGET_FLAGS); do \
37799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37800 done; \
a90ef4bf 37801 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37804 "RANLIB=$${RANLIB}" \
0c24b341 37805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37806 pdf) \
37807 || exit 1
37808
a90ef4bf 37809@endif target-newlib
6aa8ef82 37810
a90ef4bf
JM
37811.PHONY: maybe-html-target-newlib html-target-newlib
37812maybe-html-target-newlib:
37813@if target-newlib
37814maybe-html-target-newlib: html-target-newlib
6aa8ef82 37815
a90ef4bf
JM
37816html-target-newlib: \
37817 configure-target-newlib
6aa8ef82 37818 @: $(MAKE); $(unstage)
a90ef4bf 37819 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37820 r=`${PWD_COMMAND}`; export r; \
37821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37822 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37823 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37824 for flag in $(EXTRA_TARGET_FLAGS); do \
37825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37826 done; \
a90ef4bf 37827 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37830 "RANLIB=$${RANLIB}" \
0c24b341 37831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37832 html) \
37833 || exit 1
37834
a90ef4bf 37835@endif target-newlib
6aa8ef82 37836
a90ef4bf
JM
37837.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
37838maybe-TAGS-target-newlib:
37839@if target-newlib
37840maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 37841
a90ef4bf
JM
37842TAGS-target-newlib: \
37843 configure-target-newlib
6aa8ef82 37844 @: $(MAKE); $(unstage)
a90ef4bf 37845 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37846 r=`${PWD_COMMAND}`; export r; \
37847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37848 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37849 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37850 for flag in $(EXTRA_TARGET_FLAGS); do \
37851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37852 done; \
a90ef4bf 37853 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37856 "RANLIB=$${RANLIB}" \
0c24b341 37857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37858 TAGS) \
37859 || exit 1
37860
a90ef4bf 37861@endif target-newlib
6aa8ef82 37862
a90ef4bf
JM
37863.PHONY: maybe-install-info-target-newlib install-info-target-newlib
37864maybe-install-info-target-newlib:
37865@if target-newlib
37866maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 37867
a90ef4bf
JM
37868install-info-target-newlib: \
37869 configure-target-newlib \
37870 info-target-newlib
6aa8ef82 37871 @: $(MAKE); $(unstage)
a90ef4bf 37872 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37873 r=`${PWD_COMMAND}`; export r; \
37874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37875 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37876 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37877 for flag in $(EXTRA_TARGET_FLAGS); do \
37878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37879 done; \
a90ef4bf 37880 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37883 "RANLIB=$${RANLIB}" \
0c24b341 37884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37885 install-info) \
37886 || exit 1
37887
a90ef4bf 37888@endif target-newlib
6aa8ef82 37889
a90ef4bf
JM
37890.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
37891maybe-install-pdf-target-newlib:
37892@if target-newlib
37893maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 37894
a90ef4bf
JM
37895install-pdf-target-newlib: \
37896 configure-target-newlib \
37897 pdf-target-newlib
a3ca38d2 37898 @: $(MAKE); $(unstage)
a90ef4bf 37899 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
a3ca38d2
DD
37900 r=`${PWD_COMMAND}`; export r; \
37901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37902 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37903 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib" ; \
a3ca38d2
DD
37904 for flag in $(EXTRA_TARGET_FLAGS); do \
37905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37906 done; \
a90ef4bf 37907 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
37908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37910 "RANLIB=$${RANLIB}" \
0c24b341 37911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
37912 install-pdf) \
37913 || exit 1
37914
a90ef4bf 37915@endif target-newlib
a3ca38d2 37916
a90ef4bf
JM
37917.PHONY: maybe-install-html-target-newlib install-html-target-newlib
37918maybe-install-html-target-newlib:
37919@if target-newlib
37920maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 37921
a90ef4bf
JM
37922install-html-target-newlib: \
37923 configure-target-newlib \
37924 html-target-newlib
6aa8ef82 37925 @: $(MAKE); $(unstage)
a90ef4bf 37926 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37927 r=`${PWD_COMMAND}`; export r; \
37928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37929 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37930 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37931 for flag in $(EXTRA_TARGET_FLAGS); do \
37932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37933 done; \
a90ef4bf 37934 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37937 "RANLIB=$${RANLIB}" \
0c24b341 37938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37939 install-html) \
37940 || exit 1
37941
a90ef4bf 37942@endif target-newlib
6aa8ef82 37943
a90ef4bf
JM
37944.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
37945maybe-installcheck-target-newlib:
37946@if target-newlib
37947maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 37948
a90ef4bf
JM
37949installcheck-target-newlib: \
37950 configure-target-newlib
6aa8ef82 37951 @: $(MAKE); $(unstage)
a90ef4bf 37952 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37953 r=`${PWD_COMMAND}`; export r; \
37954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37955 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37956 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37957 for flag in $(EXTRA_TARGET_FLAGS); do \
37958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37959 done; \
a90ef4bf 37960 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37963 "RANLIB=$${RANLIB}" \
0c24b341 37964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37965 installcheck) \
37966 || exit 1
37967
a90ef4bf 37968@endif target-newlib
6aa8ef82 37969
a90ef4bf
JM
37970.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
37971maybe-mostlyclean-target-newlib:
37972@if target-newlib
37973maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 37974
a90ef4bf 37975mostlyclean-target-newlib:
6aa8ef82 37976 @: $(MAKE); $(unstage)
a90ef4bf 37977 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37978 r=`${PWD_COMMAND}`; export r; \
37979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37980 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37981 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37982 for flag in $(EXTRA_TARGET_FLAGS); do \
37983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37984 done; \
a90ef4bf 37985 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37988 "RANLIB=$${RANLIB}" \
0c24b341 37989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37990 mostlyclean) \
37991 || exit 1
37992
a90ef4bf 37993@endif target-newlib
6aa8ef82 37994
a90ef4bf
JM
37995.PHONY: maybe-clean-target-newlib clean-target-newlib
37996maybe-clean-target-newlib:
37997@if target-newlib
37998maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 37999
a90ef4bf 38000clean-target-newlib:
6aa8ef82 38001 @: $(MAKE); $(unstage)
a90ef4bf 38002 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
38003 r=`${PWD_COMMAND}`; export r; \
38004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38005 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38006 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38007 for flag in $(EXTRA_TARGET_FLAGS); do \
38008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38009 done; \
a90ef4bf 38010 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38013 "RANLIB=$${RANLIB}" \
0c24b341 38014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38015 clean) \
38016 || exit 1
38017
a90ef4bf 38018@endif target-newlib
6aa8ef82 38019
a90ef4bf
JM
38020.PHONY: maybe-distclean-target-newlib distclean-target-newlib
38021maybe-distclean-target-newlib:
38022@if target-newlib
38023maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 38024
a90ef4bf 38025distclean-target-newlib:
6aa8ef82 38026 @: $(MAKE); $(unstage)
a90ef4bf 38027 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
38028 r=`${PWD_COMMAND}`; export r; \
38029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38030 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38031 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38032 for flag in $(EXTRA_TARGET_FLAGS); do \
38033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38034 done; \
a90ef4bf 38035 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38038 "RANLIB=$${RANLIB}" \
0c24b341 38039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38040 distclean) \
38041 || exit 1
38042
a90ef4bf 38043@endif target-newlib
6aa8ef82 38044
a90ef4bf
JM
38045.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
38046maybe-maintainer-clean-target-newlib:
38047@if target-newlib
38048maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 38049
a90ef4bf 38050maintainer-clean-target-newlib:
6aa8ef82 38051 @: $(MAKE); $(unstage)
a90ef4bf 38052 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
38053 r=`${PWD_COMMAND}`; export r; \
38054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38055 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38056 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38057 for flag in $(EXTRA_TARGET_FLAGS); do \
38058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38059 done; \
a90ef4bf 38060 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38063 "RANLIB=$${RANLIB}" \
0c24b341 38064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38065 maintainer-clean) \
38066 || exit 1
38067
a90ef4bf 38068@endif target-newlib
6aa8ef82
DJ
38069
38070
38071
38072
38073
a90ef4bf
JM
38074.PHONY: configure-target-libgcc maybe-configure-target-libgcc
38075maybe-configure-target-libgcc:
e552509b 38076@if gcc-bootstrap
a90ef4bf 38077configure-target-libgcc: stage_current
e552509b 38078@endif gcc-bootstrap
a90ef4bf
JM
38079@if target-libgcc
38080maybe-configure-target-libgcc: configure-target-libgcc
38081configure-target-libgcc:
e552509b
ILT
38082 @r=`${PWD_COMMAND}`; export r; \
38083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38084 echo "Checking multilib configuration for libgcc..."; \
38085 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38086 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38087 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38088 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38089 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 38090 else \
a90ef4bf
JM
38091 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38092 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
38093 fi; \
38094 else \
a90ef4bf 38095 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 38096 fi; \
a90ef4bf
JM
38097 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
38098 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
e552509b 38099 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38100 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
38101 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
38102 case $(srcdir) in \
38103 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38104 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
38105 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38106 esac; \
1b6c0831 38107 module_srcdir=libgcc; \
e552509b 38108 rm -f no-such-file || : ; \
1b6c0831
L
38109 CONFIG_SITE=no-such-file $(SHELL) \
38110 $$s/$$module_srcdir/configure \
38111 --srcdir=$${topdir}/$$module_srcdir \
e552509b 38112 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38113 --target=${target_alias} \
e552509b 38114 || exit 1
a90ef4bf 38115@endif target-libgcc
e552509b
ILT
38116
38117
e552509b 38118
a90ef4bf
JM
38119.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
38120maybe-configure-stage1-target-libgcc:
38121@if target-libgcc-bootstrap
38122maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
38123configure-stage1-target-libgcc:
38124 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38125 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38126 @r=`${PWD_COMMAND}`; export r; \
38127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38128 TFLAGS="$(STAGE1_TFLAGS)"; \
38129 echo "Checking multilib configuration for libgcc..."; \
38130 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38131 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38132 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38133 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38134 else \
38135 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38136 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38137 fi; \
38138 else \
38139 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38140 fi; \
38141 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38142 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38143 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38144 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38145 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38146 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc ; \
38147 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38148 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38149 case $(srcdir) in \
38150 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38151 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38152 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38153 esac; \
1b6c0831
L
38154 module_srcdir=libgcc; \
38155 $(SHELL) $$s/$$module_srcdir/configure \
38156 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38157 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38158 --target=${target_alias} \
38159 \
a90ef4bf
JM
38160 $(STAGE1_CONFIGURE_FLAGS)
38161@endif target-libgcc-bootstrap
e552509b 38162
a90ef4bf
JM
38163.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
38164maybe-configure-stage2-target-libgcc:
38165@if target-libgcc-bootstrap
38166maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
38167configure-stage2-target-libgcc:
38168 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38169 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38170 @r=`${PWD_COMMAND}`; export r; \
38171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38172 TFLAGS="$(STAGE2_TFLAGS)"; \
38173 echo "Checking multilib configuration for libgcc..."; \
38174 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38175 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38176 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38177 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38178 else \
38179 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38180 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38181 fi; \
38182 else \
38183 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38184 fi; \
38185 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38186 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38187 \
38188 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38189 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38190 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38191 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc ; \
38192 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38193 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38194 case $(srcdir) in \
38195 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38196 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38197 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38198 esac; \
1b6c0831
L
38199 module_srcdir=libgcc; \
38200 $(SHELL) $$s/$$module_srcdir/configure \
38201 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38202 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38203 --target=${target_alias} \
38204 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38205 $(STAGE2_CONFIGURE_FLAGS)
38206@endif target-libgcc-bootstrap
9b980aa1 38207
a90ef4bf
JM
38208.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
38209maybe-configure-stage3-target-libgcc:
38210@if target-libgcc-bootstrap
38211maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
38212configure-stage3-target-libgcc:
38213 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38214 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
38215 @r=`${PWD_COMMAND}`; export r; \
38216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38217 TFLAGS="$(STAGE3_TFLAGS)"; \
38218 echo "Checking multilib configuration for libgcc..."; \
38219 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38220 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38221 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38222 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38223 else \
38224 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38225 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38226 fi; \
38227 else \
38228 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38229 fi; \
38230 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 38231 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38232 \
38233 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38234 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38235 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38236 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc ; \
38237 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38238 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38239 case $(srcdir) in \
38240 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38241 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38242 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38243 esac; \
1b6c0831
L
38244 module_srcdir=libgcc; \
38245 $(SHELL) $$s/$$module_srcdir/configure \
38246 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38247 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38248 --target=${target_alias} \
38249 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38250 $(STAGE3_CONFIGURE_FLAGS)
38251@endif target-libgcc-bootstrap
e552509b 38252
a90ef4bf
JM
38253.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
38254maybe-configure-stage4-target-libgcc:
38255@if target-libgcc-bootstrap
38256maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
38257configure-stage4-target-libgcc:
38258 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38259 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38260 @r=`${PWD_COMMAND}`; export r; \
e552509b 38261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38262 TFLAGS="$(STAGE4_TFLAGS)"; \
38263 echo "Checking multilib configuration for libgcc..."; \
38264 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38265 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38266 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38267 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38268 else \
38269 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38270 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38271 fi; \
38272 else \
38273 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38274 fi; \
38275 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38276 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38277 \
38278 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38279 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38280 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38281 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc ; \
38282 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38283 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38284 case $(srcdir) in \
38285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38286 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38288 esac; \
1b6c0831
L
38289 module_srcdir=libgcc; \
38290 $(SHELL) $$s/$$module_srcdir/configure \
38291 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38292 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38293 --target=${target_alias} \
38294 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38295 $(STAGE4_CONFIGURE_FLAGS)
38296@endif target-libgcc-bootstrap
38297
38298.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
38299maybe-configure-stageprofile-target-libgcc:
38300@if target-libgcc-bootstrap
38301maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38302configure-stageprofile-target-libgcc:
38303 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38304 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38305 @r=`${PWD_COMMAND}`; export r; \
e552509b 38306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38307 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38308 echo "Checking multilib configuration for libgcc..."; \
38309 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38310 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38311 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38312 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38313 else \
38314 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38315 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38316 fi; \
38317 else \
38318 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38319 fi; \
38320 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38321 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38322 \
38323 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38324 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38325 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38326 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc ; \
38327 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38328 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38329 case $(srcdir) in \
38330 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38331 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38332 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38333 esac; \
1b6c0831
L
38334 module_srcdir=libgcc; \
38335 $(SHELL) $$s/$$module_srcdir/configure \
38336 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38337 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38338 --target=${target_alias} \
38339 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38340 $(STAGEprofile_CONFIGURE_FLAGS)
38341@endif target-libgcc-bootstrap
e552509b 38342
a90ef4bf
JM
38343.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
38344maybe-configure-stagefeedback-target-libgcc:
38345@if target-libgcc-bootstrap
38346maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38347configure-stagefeedback-target-libgcc:
38348 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38349 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38350 @r=`${PWD_COMMAND}`; export r; \
e552509b 38351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38352 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38353 echo "Checking multilib configuration for libgcc..."; \
38354 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38355 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38356 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38357 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38358 else \
38359 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38360 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38361 fi; \
38362 else \
38363 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38364 fi; \
38365 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38366 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38367 \
38368 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38369 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38370 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38371 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc ; \
38372 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38373 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38374 case $(srcdir) in \
38375 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38376 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38377 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38378 esac; \
1b6c0831
L
38379 module_srcdir=libgcc; \
38380 $(SHELL) $$s/$$module_srcdir/configure \
38381 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38382 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38383 --target=${target_alias} \
38384 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38385 $(STAGEfeedback_CONFIGURE_FLAGS)
38386@endif target-libgcc-bootstrap
e552509b 38387
e552509b 38388
e552509b 38389
e552509b 38390
e552509b 38391
a90ef4bf
JM
38392.PHONY: all-target-libgcc maybe-all-target-libgcc
38393maybe-all-target-libgcc:
38394@if gcc-bootstrap
38395all-target-libgcc: stage_current
38396@endif gcc-bootstrap
38397@if target-libgcc
38398TARGET-target-libgcc=all
38399maybe-all-target-libgcc: all-target-libgcc
38400all-target-libgcc: configure-target-libgcc
38401 @r=`${PWD_COMMAND}`; export r; \
e552509b 38402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38403 $(NORMAL_TARGET_EXPORTS) \
38404 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38405 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38406 $(TARGET-target-libgcc))
38407@endif target-libgcc
e552509b 38408
e552509b 38409
e552509b 38410
a90ef4bf
JM
38411.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
38412.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
38413maybe-all-stage1-target-libgcc:
38414maybe-clean-stage1-target-libgcc:
38415@if target-libgcc-bootstrap
38416maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
38417all-stage1: all-stage1-target-libgcc
38418TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
38419all-stage1-target-libgcc: configure-stage1-target-libgcc
38420 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38421 @r=`${PWD_COMMAND}`; export r; \
e552509b 38422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38423 TFLAGS="$(STAGE1_TFLAGS)"; \
38424 $(NORMAL_TARGET_EXPORTS) \
38425 cd $(TARGET_SUBDIR)/libgcc && \
38426 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38427 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38428 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38429 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38430 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38431 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38432 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
38433 $(EXTRA_TARGET_FLAGS) \
38434 \
a90ef4bf
JM
38435 TFLAGS="$(STAGE1_TFLAGS)" \
38436 $(TARGET-stage1-target-libgcc)
e552509b 38437
a90ef4bf
JM
38438maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
38439clean-stage1: clean-stage1-target-libgcc
38440clean-stage1-target-libgcc:
38441 @if [ $(current_stage) = stage1 ]; then \
38442 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38443 else \
38444 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
38445 $(MAKE) stage1-start; \
38446 fi; \
38447 cd $(TARGET_SUBDIR)/libgcc && \
38448 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 38449 clean
a90ef4bf 38450@endif target-libgcc-bootstrap
e552509b 38451
e552509b 38452
a90ef4bf
JM
38453.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
38454.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
38455maybe-all-stage2-target-libgcc:
38456maybe-clean-stage2-target-libgcc:
38457@if target-libgcc-bootstrap
38458maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
38459all-stage2: all-stage2-target-libgcc
38460TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
38461all-stage2-target-libgcc: configure-stage2-target-libgcc
38462 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38463 @r=`${PWD_COMMAND}`; export r; \
e552509b 38464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38465 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 38466 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38467 \
38468 cd $(TARGET_SUBDIR)/libgcc && \
38469 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38470 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38471 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38472 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38473 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38474 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38475 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38476 $(EXTRA_TARGET_FLAGS) \
38477 TFLAGS="$(STAGE2_TFLAGS)" \
38478 $(TARGET-stage2-target-libgcc)
e552509b 38479
a90ef4bf
JM
38480maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
38481clean-stage2: clean-stage2-target-libgcc
38482clean-stage2-target-libgcc:
38483 @if [ $(current_stage) = stage2 ]; then \
38484 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38485 else \
38486 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
38487 $(MAKE) stage2-start; \
38488 fi; \
38489 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38490 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38491@endif target-libgcc-bootstrap
e552509b 38492
e552509b 38493
a90ef4bf
JM
38494.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
38495.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
38496maybe-all-stage3-target-libgcc:
38497maybe-clean-stage3-target-libgcc:
38498@if target-libgcc-bootstrap
38499maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
38500all-stage3: all-stage3-target-libgcc
38501TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
38502all-stage3-target-libgcc: configure-stage3-target-libgcc
38503 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38504 @r=`${PWD_COMMAND}`; export r; \
e552509b 38505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38506 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 38507 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38508 \
38509 cd $(TARGET_SUBDIR)/libgcc && \
38510 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38511 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38512 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38513 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38514 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38515 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38516 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38517 $(EXTRA_TARGET_FLAGS) \
38518 TFLAGS="$(STAGE3_TFLAGS)" \
38519 $(TARGET-stage3-target-libgcc)
e552509b 38520
a90ef4bf
JM
38521maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
38522clean-stage3: clean-stage3-target-libgcc
38523clean-stage3-target-libgcc:
38524 @if [ $(current_stage) = stage3 ]; then \
38525 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38526 else \
38527 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
38528 $(MAKE) stage3-start; \
38529 fi; \
38530 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38531 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38532@endif target-libgcc-bootstrap
e552509b 38533
e552509b 38534
a90ef4bf
JM
38535.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
38536.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
38537maybe-all-stage4-target-libgcc:
38538maybe-clean-stage4-target-libgcc:
38539@if target-libgcc-bootstrap
38540maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
38541all-stage4: all-stage4-target-libgcc
38542TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
38543all-stage4-target-libgcc: configure-stage4-target-libgcc
38544 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38545 @r=`${PWD_COMMAND}`; export r; \
e552509b 38546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38547 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 38548 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38549 \
38550 cd $(TARGET_SUBDIR)/libgcc && \
38551 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38552 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38553 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38554 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38555 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38556 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38557 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38558 $(EXTRA_TARGET_FLAGS) \
38559 TFLAGS="$(STAGE4_TFLAGS)" \
38560 $(TARGET-stage4-target-libgcc)
e552509b 38561
a90ef4bf
JM
38562maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
38563clean-stage4: clean-stage4-target-libgcc
38564clean-stage4-target-libgcc:
38565 @if [ $(current_stage) = stage4 ]; then \
38566 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38567 else \
38568 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
38569 $(MAKE) stage4-start; \
38570 fi; \
38571 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38572 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38573@endif target-libgcc-bootstrap
e552509b
ILT
38574
38575
a90ef4bf
JM
38576.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
38577.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
38578maybe-all-stageprofile-target-libgcc:
38579maybe-clean-stageprofile-target-libgcc:
38580@if target-libgcc-bootstrap
38581maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
38582all-stageprofile: all-stageprofile-target-libgcc
38583TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
38584all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38585 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
38586 @r=`${PWD_COMMAND}`; export r; \
38587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38588 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38589 $(NORMAL_TARGET_EXPORTS) \
38590 \
38591 cd $(TARGET_SUBDIR)/libgcc && \
38592 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38593 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38594 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38595 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38596 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38597 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38598 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38599 $(EXTRA_TARGET_FLAGS) \
38600 TFLAGS="$(STAGEprofile_TFLAGS)" \
38601 $(TARGET-stageprofile-target-libgcc)
38602
38603maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
38604clean-stageprofile: clean-stageprofile-target-libgcc
38605clean-stageprofile-target-libgcc:
38606 @if [ $(current_stage) = stageprofile ]; then \
38607 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 38608 else \
a90ef4bf
JM
38609 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
38610 $(MAKE) stageprofile-start; \
c52c6897 38611 fi; \
a90ef4bf 38612 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38613 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38614@endif target-libgcc-bootstrap
d545f33b
PB
38615
38616
a90ef4bf
JM
38617.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
38618.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
38619maybe-all-stagefeedback-target-libgcc:
38620maybe-clean-stagefeedback-target-libgcc:
38621@if target-libgcc-bootstrap
38622maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
38623all-stagefeedback: all-stagefeedback-target-libgcc
38624TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
38625all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38626 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
38627 @r=`${PWD_COMMAND}`; export r; \
38628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38629 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38630 $(NORMAL_TARGET_EXPORTS) \
38631 \
38632 cd $(TARGET_SUBDIR)/libgcc && \
38633 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38634 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38635 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38636 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38637 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38638 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38639 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38640 $(EXTRA_TARGET_FLAGS) \
38641 TFLAGS="$(STAGEfeedback_TFLAGS)" \
38642 $(TARGET-stagefeedback-target-libgcc)
38643
38644maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
38645clean-stagefeedback: clean-stagefeedback-target-libgcc
38646clean-stagefeedback-target-libgcc:
38647 @if [ $(current_stage) = stagefeedback ]; then \
38648 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38649 else \
38650 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
38651 $(MAKE) stagefeedback-start; \
38652 fi; \
38653 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38654 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38655@endif target-libgcc-bootstrap
4b1cb4fe 38656
a7254363
PB
38657
38658
d545f33b
PB
38659
38660
4b1cb4fe 38661
a90ef4bf
JM
38662.PHONY: check-target-libgcc maybe-check-target-libgcc
38663maybe-check-target-libgcc:
38664@if target-libgcc
38665maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 38666
a90ef4bf
JM
38667# Dummy target for uncheckable module.
38668check-target-libgcc:
4b1cb4fe 38669
a90ef4bf 38670@endif target-libgcc
4b1cb4fe 38671
a90ef4bf
JM
38672.PHONY: install-target-libgcc maybe-install-target-libgcc
38673maybe-install-target-libgcc:
38674@if target-libgcc
38675maybe-install-target-libgcc: install-target-libgcc
38676
38677install-target-libgcc: installdirs
0aed8855 38678 @: $(MAKE); $(unstage)
4b1cb4fe
DD
38679 @r=`${PWD_COMMAND}`; export r; \
38680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38681 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38682 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 38683 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 38684
a90ef4bf 38685@endif target-libgcc
4b1cb4fe 38686
a90ef4bf
JM
38687.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
38688maybe-install-strip-target-libgcc:
38689@if target-libgcc
38690maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 38691
a90ef4bf 38692install-strip-target-libgcc: installdirs
9b980aa1
RW
38693 @: $(MAKE); $(unstage)
38694 @r=`${PWD_COMMAND}`; export r; \
38695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38696 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38697 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
38698 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38699
a90ef4bf 38700@endif target-libgcc
9b980aa1 38701
56a8fe78 38702# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 38703
a90ef4bf
JM
38704.PHONY: maybe-info-target-libgcc info-target-libgcc
38705maybe-info-target-libgcc:
38706@if target-libgcc
38707maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 38708
a90ef4bf
JM
38709info-target-libgcc: \
38710 configure-target-libgcc
0aed8855 38711 @: $(MAKE); $(unstage)
a90ef4bf 38712 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38713 r=`${PWD_COMMAND}`; export r; \
38714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38715 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38716 echo "Doing info in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38717 for flag in $(EXTRA_TARGET_FLAGS); do \
38718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38719 done; \
a90ef4bf 38720 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38723 "RANLIB=$${RANLIB}" \
0c24b341 38724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38725 info) \
4b1cb4fe
DD
38726 || exit 1
38727
a90ef4bf 38728@endif target-libgcc
4b1cb4fe 38729
a90ef4bf
JM
38730.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
38731maybe-dvi-target-libgcc:
38732@if target-libgcc
38733maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 38734
a90ef4bf
JM
38735dvi-target-libgcc: \
38736 configure-target-libgcc
0aed8855 38737 @: $(MAKE); $(unstage)
a90ef4bf 38738 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38739 r=`${PWD_COMMAND}`; export r; \
38740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38741 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38742 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38743 for flag in $(EXTRA_TARGET_FLAGS); do \
38744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38745 done; \
a90ef4bf 38746 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38749 "RANLIB=$${RANLIB}" \
0c24b341 38750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38751 dvi) \
4b1cb4fe
DD
38752 || exit 1
38753
a90ef4bf 38754@endif target-libgcc
4b1cb4fe 38755
a90ef4bf
JM
38756.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
38757maybe-pdf-target-libgcc:
38758@if target-libgcc
38759maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 38760
a90ef4bf
JM
38761pdf-target-libgcc: \
38762 configure-target-libgcc
56a8fe78 38763 @: $(MAKE); $(unstage)
a90ef4bf 38764 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
56a8fe78
DD
38765 r=`${PWD_COMMAND}`; export r; \
38766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38767 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38768 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc" ; \
56a8fe78
DD
38769 for flag in $(EXTRA_TARGET_FLAGS); do \
38770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38771 done; \
a90ef4bf 38772 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
38773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38775 "RANLIB=$${RANLIB}" \
0c24b341 38776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
38777 pdf) \
38778 || exit 1
38779
a90ef4bf 38780@endif target-libgcc
56a8fe78 38781
a90ef4bf
JM
38782.PHONY: maybe-html-target-libgcc html-target-libgcc
38783maybe-html-target-libgcc:
38784@if target-libgcc
38785maybe-html-target-libgcc: html-target-libgcc
6d389afc 38786
a90ef4bf
JM
38787html-target-libgcc: \
38788 configure-target-libgcc
0aed8855 38789 @: $(MAKE); $(unstage)
a90ef4bf 38790 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6d389afc
MS
38791 r=`${PWD_COMMAND}`; export r; \
38792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 38793 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38794 echo "Doing html in $(TARGET_SUBDIR)/libgcc" ; \
6d389afc
MS
38795 for flag in $(EXTRA_TARGET_FLAGS); do \
38796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38797 done; \
a90ef4bf 38798 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
38799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38801 "RANLIB=$${RANLIB}" \
0c24b341 38802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
38803 html) \
38804 || exit 1
38805
a90ef4bf 38806@endif target-libgcc
6d389afc 38807
a90ef4bf
JM
38808.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
38809maybe-TAGS-target-libgcc:
38810@if target-libgcc
38811maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 38812
a90ef4bf
JM
38813TAGS-target-libgcc: \
38814 configure-target-libgcc
0aed8855 38815 @: $(MAKE); $(unstage)
a90ef4bf 38816 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38817 r=`${PWD_COMMAND}`; export r; \
38818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38819 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38820 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38821 for flag in $(EXTRA_TARGET_FLAGS); do \
38822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38823 done; \
a90ef4bf 38824 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38827 "RANLIB=$${RANLIB}" \
0c24b341 38828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38829 TAGS) \
4b1cb4fe
DD
38830 || exit 1
38831
a90ef4bf 38832@endif target-libgcc
4b1cb4fe 38833
a90ef4bf
JM
38834.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
38835maybe-install-info-target-libgcc:
38836@if target-libgcc
38837maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 38838
a90ef4bf
JM
38839install-info-target-libgcc: \
38840 configure-target-libgcc \
38841 info-target-libgcc
0aed8855 38842 @: $(MAKE); $(unstage)
a90ef4bf 38843 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38844 r=`${PWD_COMMAND}`; export r; \
38845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38846 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38847 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38848 for flag in $(EXTRA_TARGET_FLAGS); do \
38849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38850 done; \
a90ef4bf 38851 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38854 "RANLIB=$${RANLIB}" \
0c24b341 38855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38856 install-info) \
4b1cb4fe
DD
38857 || exit 1
38858
a90ef4bf 38859@endif target-libgcc
4b1cb4fe 38860
a90ef4bf
JM
38861.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
38862maybe-install-pdf-target-libgcc:
38863@if target-libgcc
38864maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 38865
a90ef4bf
JM
38866install-pdf-target-libgcc: \
38867 configure-target-libgcc \
38868 pdf-target-libgcc
a3ca38d2 38869 @: $(MAKE); $(unstage)
a90ef4bf 38870 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
a3ca38d2
DD
38871 r=`${PWD_COMMAND}`; export r; \
38872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38873 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38874 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc" ; \
a3ca38d2
DD
38875 for flag in $(EXTRA_TARGET_FLAGS); do \
38876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38877 done; \
a90ef4bf 38878 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
38879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38881 "RANLIB=$${RANLIB}" \
0c24b341 38882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38883 install-pdf) \
38884 || exit 1
38885
a90ef4bf 38886@endif target-libgcc
a3ca38d2 38887
a90ef4bf
JM
38888.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
38889maybe-install-html-target-libgcc:
38890@if target-libgcc
38891maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 38892
a90ef4bf
JM
38893install-html-target-libgcc: \
38894 configure-target-libgcc \
38895 html-target-libgcc
108a6f8e 38896 @: $(MAKE); $(unstage)
a90ef4bf 38897 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
108a6f8e
CD
38898 r=`${PWD_COMMAND}`; export r; \
38899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38900 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38901 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc" ; \
108a6f8e
CD
38902 for flag in $(EXTRA_TARGET_FLAGS); do \
38903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38904 done; \
a90ef4bf 38905 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
38906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38908 "RANLIB=$${RANLIB}" \
0c24b341 38909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
38910 install-html) \
38911 || exit 1
38912
a90ef4bf 38913@endif target-libgcc
108a6f8e 38914
a90ef4bf
JM
38915.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
38916maybe-installcheck-target-libgcc:
38917@if target-libgcc
38918maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 38919
a90ef4bf
JM
38920installcheck-target-libgcc: \
38921 configure-target-libgcc
0aed8855 38922 @: $(MAKE); $(unstage)
a90ef4bf 38923 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38924 r=`${PWD_COMMAND}`; export r; \
38925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38926 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38927 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38928 for flag in $(EXTRA_TARGET_FLAGS); do \
38929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38930 done; \
a90ef4bf 38931 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38934 "RANLIB=$${RANLIB}" \
0c24b341 38935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38936 installcheck) \
4b1cb4fe
DD
38937 || exit 1
38938
a90ef4bf 38939@endif target-libgcc
4b1cb4fe 38940
a90ef4bf
JM
38941.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
38942maybe-mostlyclean-target-libgcc:
38943@if target-libgcc
38944maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 38945
a90ef4bf 38946mostlyclean-target-libgcc:
0aed8855 38947 @: $(MAKE); $(unstage)
a90ef4bf 38948 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38949 r=`${PWD_COMMAND}`; export r; \
38950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38951 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38952 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38953 for flag in $(EXTRA_TARGET_FLAGS); do \
38954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38955 done; \
a90ef4bf 38956 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38959 "RANLIB=$${RANLIB}" \
0c24b341 38960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38961 mostlyclean) \
4b1cb4fe
DD
38962 || exit 1
38963
a90ef4bf 38964@endif target-libgcc
4b1cb4fe 38965
a90ef4bf
JM
38966.PHONY: maybe-clean-target-libgcc clean-target-libgcc
38967maybe-clean-target-libgcc:
38968@if target-libgcc
38969maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 38970
a90ef4bf 38971clean-target-libgcc:
0aed8855 38972 @: $(MAKE); $(unstage)
a90ef4bf 38973 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38974 r=`${PWD_COMMAND}`; export r; \
38975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38976 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38977 echo "Doing clean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38978 for flag in $(EXTRA_TARGET_FLAGS); do \
38979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38980 done; \
a90ef4bf 38981 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38984 "RANLIB=$${RANLIB}" \
0c24b341 38985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38986 clean) \
4b1cb4fe
DD
38987 || exit 1
38988
a90ef4bf 38989@endif target-libgcc
4b1cb4fe 38990
a90ef4bf
JM
38991.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
38992maybe-distclean-target-libgcc:
38993@if target-libgcc
38994maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 38995
a90ef4bf 38996distclean-target-libgcc:
0aed8855 38997 @: $(MAKE); $(unstage)
a90ef4bf 38998 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38999 r=`${PWD_COMMAND}`; export r; \
39000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39001 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39002 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
39003 for flag in $(EXTRA_TARGET_FLAGS); do \
39004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39005 done; \
a90ef4bf 39006 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39009 "RANLIB=$${RANLIB}" \
0c24b341 39010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39011 distclean) \
4b1cb4fe
DD
39012 || exit 1
39013
a90ef4bf 39014@endif target-libgcc
4b1cb4fe 39015
a90ef4bf
JM
39016.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
39017maybe-maintainer-clean-target-libgcc:
39018@if target-libgcc
39019maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 39020
a90ef4bf 39021maintainer-clean-target-libgcc:
0aed8855 39022 @: $(MAKE); $(unstage)
a90ef4bf 39023 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
39024 r=`${PWD_COMMAND}`; export r; \
39025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39026 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39027 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
39028 for flag in $(EXTRA_TARGET_FLAGS); do \
39029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39030 done; \
a90ef4bf 39031 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39034 "RANLIB=$${RANLIB}" \
0c24b341 39035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39036 maintainer-clean) \
4b1cb4fe
DD
39037 || exit 1
39038
a90ef4bf 39039@endif target-libgcc
4b1cb4fe
DD
39040
39041
3866be5d 39042
a7254363 39043
e90269c8 39044
2bf680c4
ILT
39045.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
39046maybe-configure-target-libbacktrace:
39047@if gcc-bootstrap
39048configure-target-libbacktrace: stage_current
39049@endif gcc-bootstrap
39050@if target-libbacktrace
39051maybe-configure-target-libbacktrace: configure-target-libbacktrace
39052configure-target-libbacktrace:
39053 @: $(MAKE); $(unstage)
39054 @r=`${PWD_COMMAND}`; export r; \
39055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39056 echo "Checking multilib configuration for libbacktrace..."; \
39057 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace ; \
39058 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null ; \
39059 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39060 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39061 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
39062 else \
39063 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
39064 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39065 fi; \
39066 else \
39067 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39068 fi; \
39069 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
39070 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace ; \
39071 $(NORMAL_TARGET_EXPORTS) \
39072 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
39073 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
39074 case $(srcdir) in \
39075 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39076 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
39077 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39078 esac; \
1b6c0831 39079 module_srcdir=libbacktrace; \
2bf680c4 39080 rm -f no-such-file || : ; \
1b6c0831
L
39081 CONFIG_SITE=no-such-file $(SHELL) \
39082 $$s/$$module_srcdir/configure \
39083 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 39084 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39085 --target=${target_alias} \
2bf680c4
ILT
39086 || exit 1
39087@endif target-libbacktrace
39088
39089
39090
39091
39092
39093.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
39094maybe-all-target-libbacktrace:
39095@if gcc-bootstrap
39096all-target-libbacktrace: stage_current
39097@endif gcc-bootstrap
39098@if target-libbacktrace
39099TARGET-target-libbacktrace=all
39100maybe-all-target-libbacktrace: all-target-libbacktrace
39101all-target-libbacktrace: configure-target-libbacktrace
39102 @: $(MAKE); $(unstage)
39103 @r=`${PWD_COMMAND}`; export r; \
39104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39105 $(NORMAL_TARGET_EXPORTS) \
39106 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 39107 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
39108 $(TARGET-target-libbacktrace))
39109@endif target-libbacktrace
39110
39111
39112
39113
39114
39115.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
39116maybe-check-target-libbacktrace:
39117@if target-libbacktrace
39118maybe-check-target-libbacktrace: check-target-libbacktrace
39119
39120check-target-libbacktrace:
39121 @: $(MAKE); $(unstage)
39122 @r=`${PWD_COMMAND}`; export r; \
39123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39124 $(NORMAL_TARGET_EXPORTS) \
39125 (cd $(TARGET_SUBDIR)/libbacktrace && \
39126 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39127
39128@endif target-libbacktrace
39129
39130.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
39131maybe-install-target-libbacktrace:
39132@if target-libbacktrace
39133maybe-install-target-libbacktrace: install-target-libbacktrace
39134
39135install-target-libbacktrace: installdirs
39136 @: $(MAKE); $(unstage)
39137 @r=`${PWD_COMMAND}`; export r; \
39138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39139 $(NORMAL_TARGET_EXPORTS) \
39140 (cd $(TARGET_SUBDIR)/libbacktrace && \
39141 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39142
39143@endif target-libbacktrace
39144
39145.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
39146maybe-install-strip-target-libbacktrace:
39147@if target-libbacktrace
39148maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
39149
39150install-strip-target-libbacktrace: installdirs
39151 @: $(MAKE); $(unstage)
39152 @r=`${PWD_COMMAND}`; export r; \
39153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39154 $(NORMAL_TARGET_EXPORTS) \
39155 (cd $(TARGET_SUBDIR)/libbacktrace && \
39156 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39157
39158@endif target-libbacktrace
39159
39160# Other targets (info, dvi, pdf, etc.)
39161
39162.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
39163maybe-info-target-libbacktrace:
39164@if target-libbacktrace
39165maybe-info-target-libbacktrace: info-target-libbacktrace
39166
39167info-target-libbacktrace: \
39168 configure-target-libbacktrace
39169 @: $(MAKE); $(unstage)
39170 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39171 r=`${PWD_COMMAND}`; export r; \
39172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39173 $(NORMAL_TARGET_EXPORTS) \
39174 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace" ; \
39175 for flag in $(EXTRA_TARGET_FLAGS); do \
39176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39177 done; \
39178 (cd $(TARGET_SUBDIR)/libbacktrace && \
39179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39181 "RANLIB=$${RANLIB}" \
39182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39183 info) \
39184 || exit 1
39185
39186@endif target-libbacktrace
39187
39188.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
39189maybe-dvi-target-libbacktrace:
39190@if target-libbacktrace
39191maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
39192
39193dvi-target-libbacktrace: \
39194 configure-target-libbacktrace
39195 @: $(MAKE); $(unstage)
39196 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39197 r=`${PWD_COMMAND}`; export r; \
39198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39199 $(NORMAL_TARGET_EXPORTS) \
39200 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace" ; \
39201 for flag in $(EXTRA_TARGET_FLAGS); do \
39202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39203 done; \
39204 (cd $(TARGET_SUBDIR)/libbacktrace && \
39205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39207 "RANLIB=$${RANLIB}" \
39208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39209 dvi) \
39210 || exit 1
39211
39212@endif target-libbacktrace
39213
39214.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
39215maybe-pdf-target-libbacktrace:
39216@if target-libbacktrace
39217maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
39218
39219pdf-target-libbacktrace: \
39220 configure-target-libbacktrace
39221 @: $(MAKE); $(unstage)
39222 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39223 r=`${PWD_COMMAND}`; export r; \
39224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39225 $(NORMAL_TARGET_EXPORTS) \
39226 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace" ; \
39227 for flag in $(EXTRA_TARGET_FLAGS); do \
39228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39229 done; \
39230 (cd $(TARGET_SUBDIR)/libbacktrace && \
39231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39233 "RANLIB=$${RANLIB}" \
39234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39235 pdf) \
39236 || exit 1
39237
39238@endif target-libbacktrace
39239
39240.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
39241maybe-html-target-libbacktrace:
39242@if target-libbacktrace
39243maybe-html-target-libbacktrace: html-target-libbacktrace
39244
39245html-target-libbacktrace: \
39246 configure-target-libbacktrace
39247 @: $(MAKE); $(unstage)
39248 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39249 r=`${PWD_COMMAND}`; export r; \
39250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39251 $(NORMAL_TARGET_EXPORTS) \
39252 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace" ; \
39253 for flag in $(EXTRA_TARGET_FLAGS); do \
39254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39255 done; \
39256 (cd $(TARGET_SUBDIR)/libbacktrace && \
39257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39259 "RANLIB=$${RANLIB}" \
39260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39261 html) \
39262 || exit 1
39263
39264@endif target-libbacktrace
39265
39266.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
39267maybe-TAGS-target-libbacktrace:
39268@if target-libbacktrace
39269maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
39270
39271TAGS-target-libbacktrace: \
39272 configure-target-libbacktrace
39273 @: $(MAKE); $(unstage)
39274 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39275 r=`${PWD_COMMAND}`; export r; \
39276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39277 $(NORMAL_TARGET_EXPORTS) \
39278 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace" ; \
39279 for flag in $(EXTRA_TARGET_FLAGS); do \
39280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39281 done; \
39282 (cd $(TARGET_SUBDIR)/libbacktrace && \
39283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39285 "RANLIB=$${RANLIB}" \
39286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39287 TAGS) \
39288 || exit 1
39289
39290@endif target-libbacktrace
39291
39292.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
39293maybe-install-info-target-libbacktrace:
39294@if target-libbacktrace
39295maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
39296
39297install-info-target-libbacktrace: \
39298 configure-target-libbacktrace \
39299 info-target-libbacktrace
39300 @: $(MAKE); $(unstage)
39301 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39302 r=`${PWD_COMMAND}`; export r; \
39303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39304 $(NORMAL_TARGET_EXPORTS) \
39305 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace" ; \
39306 for flag in $(EXTRA_TARGET_FLAGS); do \
39307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39308 done; \
39309 (cd $(TARGET_SUBDIR)/libbacktrace && \
39310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39312 "RANLIB=$${RANLIB}" \
39313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39314 install-info) \
39315 || exit 1
39316
39317@endif target-libbacktrace
39318
39319.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
39320maybe-install-pdf-target-libbacktrace:
39321@if target-libbacktrace
39322maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
39323
39324install-pdf-target-libbacktrace: \
39325 configure-target-libbacktrace \
39326 pdf-target-libbacktrace
39327 @: $(MAKE); $(unstage)
39328 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39329 r=`${PWD_COMMAND}`; export r; \
39330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39331 $(NORMAL_TARGET_EXPORTS) \
39332 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace" ; \
39333 for flag in $(EXTRA_TARGET_FLAGS); do \
39334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39335 done; \
39336 (cd $(TARGET_SUBDIR)/libbacktrace && \
39337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39339 "RANLIB=$${RANLIB}" \
39340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39341 install-pdf) \
39342 || exit 1
39343
39344@endif target-libbacktrace
39345
39346.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
39347maybe-install-html-target-libbacktrace:
39348@if target-libbacktrace
39349maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
39350
39351install-html-target-libbacktrace: \
39352 configure-target-libbacktrace \
39353 html-target-libbacktrace
39354 @: $(MAKE); $(unstage)
39355 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39356 r=`${PWD_COMMAND}`; export r; \
39357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39358 $(NORMAL_TARGET_EXPORTS) \
39359 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace" ; \
39360 for flag in $(EXTRA_TARGET_FLAGS); do \
39361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39362 done; \
39363 (cd $(TARGET_SUBDIR)/libbacktrace && \
39364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39366 "RANLIB=$${RANLIB}" \
39367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39368 install-html) \
39369 || exit 1
39370
39371@endif target-libbacktrace
39372
39373.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
39374maybe-installcheck-target-libbacktrace:
39375@if target-libbacktrace
39376maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
39377
39378installcheck-target-libbacktrace: \
39379 configure-target-libbacktrace
39380 @: $(MAKE); $(unstage)
39381 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39382 r=`${PWD_COMMAND}`; export r; \
39383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39384 $(NORMAL_TARGET_EXPORTS) \
39385 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace" ; \
39386 for flag in $(EXTRA_TARGET_FLAGS); do \
39387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39388 done; \
39389 (cd $(TARGET_SUBDIR)/libbacktrace && \
39390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39392 "RANLIB=$${RANLIB}" \
39393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39394 installcheck) \
39395 || exit 1
39396
39397@endif target-libbacktrace
39398
39399.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
39400maybe-mostlyclean-target-libbacktrace:
39401@if target-libbacktrace
39402maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
39403
39404mostlyclean-target-libbacktrace:
39405 @: $(MAKE); $(unstage)
39406 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39407 r=`${PWD_COMMAND}`; export r; \
39408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39409 $(NORMAL_TARGET_EXPORTS) \
39410 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace" ; \
39411 for flag in $(EXTRA_TARGET_FLAGS); do \
39412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39413 done; \
39414 (cd $(TARGET_SUBDIR)/libbacktrace && \
39415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39417 "RANLIB=$${RANLIB}" \
39418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39419 mostlyclean) \
39420 || exit 1
39421
39422@endif target-libbacktrace
39423
39424.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
39425maybe-clean-target-libbacktrace:
39426@if target-libbacktrace
39427maybe-clean-target-libbacktrace: clean-target-libbacktrace
39428
39429clean-target-libbacktrace:
39430 @: $(MAKE); $(unstage)
39431 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39432 r=`${PWD_COMMAND}`; export r; \
39433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39434 $(NORMAL_TARGET_EXPORTS) \
39435 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace" ; \
39436 for flag in $(EXTRA_TARGET_FLAGS); do \
39437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39438 done; \
39439 (cd $(TARGET_SUBDIR)/libbacktrace && \
39440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39442 "RANLIB=$${RANLIB}" \
39443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39444 clean) \
39445 || exit 1
39446
39447@endif target-libbacktrace
39448
39449.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
39450maybe-distclean-target-libbacktrace:
39451@if target-libbacktrace
39452maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
39453
39454distclean-target-libbacktrace:
39455 @: $(MAKE); $(unstage)
39456 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39457 r=`${PWD_COMMAND}`; export r; \
39458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39459 $(NORMAL_TARGET_EXPORTS) \
39460 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace" ; \
39461 for flag in $(EXTRA_TARGET_FLAGS); do \
39462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39463 done; \
39464 (cd $(TARGET_SUBDIR)/libbacktrace && \
39465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39467 "RANLIB=$${RANLIB}" \
39468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39469 distclean) \
39470 || exit 1
39471
39472@endif target-libbacktrace
39473
39474.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
39475maybe-maintainer-clean-target-libbacktrace:
39476@if target-libbacktrace
39477maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
39478
39479maintainer-clean-target-libbacktrace:
39480 @: $(MAKE); $(unstage)
39481 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39482 r=`${PWD_COMMAND}`; export r; \
39483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39484 $(NORMAL_TARGET_EXPORTS) \
39485 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace" ; \
39486 for flag in $(EXTRA_TARGET_FLAGS); do \
39487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39488 done; \
39489 (cd $(TARGET_SUBDIR)/libbacktrace && \
39490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39492 "RANLIB=$${RANLIB}" \
39493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39494 maintainer-clean) \
39495 || exit 1
39496
39497@endif target-libbacktrace
39498
39499
39500
39501
39502
a90ef4bf
JM
39503.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
39504maybe-configure-target-libquadmath:
4f0ef2d8 39505@if gcc-bootstrap
a90ef4bf 39506configure-target-libquadmath: stage_current
4f0ef2d8 39507@endif gcc-bootstrap
a90ef4bf
JM
39508@if target-libquadmath
39509maybe-configure-target-libquadmath: configure-target-libquadmath
39510configure-target-libquadmath:
0aed8855
PB
39511 @: $(MAKE); $(unstage)
39512 @r=`${PWD_COMMAND}`; export r; \
39513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39514 echo "Checking multilib configuration for libquadmath..."; \
39515 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
39516 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null ; \
39517 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39518 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39519 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 39520 else \
a90ef4bf
JM
39521 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
39522 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
39523 fi; \
39524 else \
a90ef4bf 39525 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 39526 fi; \
a90ef4bf
JM
39527 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
39528 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
1f53ca9a 39529 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39530 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
39531 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 39532 case $(srcdir) in \
b00612cc 39533 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39534 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 39535 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 39536 esac; \
1b6c0831 39537 module_srcdir=libquadmath; \
4fa63067 39538 rm -f no-such-file || : ; \
1b6c0831
L
39539 CONFIG_SITE=no-such-file $(SHELL) \
39540 $$s/$$module_srcdir/configure \
39541 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39542 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39543 --target=${target_alias} \
e2b9e2dc 39544 || exit 1
a90ef4bf 39545@endif target-libquadmath
e2b9e2dc 39546
a7254363
PB
39547
39548
d545f33b
PB
39549
39550
a90ef4bf
JM
39551.PHONY: all-target-libquadmath maybe-all-target-libquadmath
39552maybe-all-target-libquadmath:
4f0ef2d8 39553@if gcc-bootstrap
a90ef4bf 39554all-target-libquadmath: stage_current
4f0ef2d8 39555@endif gcc-bootstrap
a90ef4bf
JM
39556@if target-libquadmath
39557TARGET-target-libquadmath=all
39558maybe-all-target-libquadmath: all-target-libquadmath
39559all-target-libquadmath: configure-target-libquadmath
0aed8855 39560 @: $(MAKE); $(unstage)
b40e3958
L
39561 @r=`${PWD_COMMAND}`; export r; \
39562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39563 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39564 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 39565 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39566 $(TARGET-target-libquadmath))
39567@endif target-libquadmath
3866be5d 39568
a7254363
PB
39569
39570
d545f33b
PB
39571
39572
a90ef4bf
JM
39573.PHONY: check-target-libquadmath maybe-check-target-libquadmath
39574maybe-check-target-libquadmath:
39575@if target-libquadmath
39576maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 39577
a90ef4bf 39578check-target-libquadmath:
0aed8855 39579 @: $(MAKE); $(unstage)
b40e3958
L
39580 @r=`${PWD_COMMAND}`; export r; \
39581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39582 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39583 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 39584 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 39585
a90ef4bf 39586@endif target-libquadmath
3866be5d 39587
a90ef4bf
JM
39588.PHONY: install-target-libquadmath maybe-install-target-libquadmath
39589maybe-install-target-libquadmath:
39590@if target-libquadmath
39591maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 39592
a90ef4bf 39593install-target-libquadmath: installdirs
0aed8855 39594 @: $(MAKE); $(unstage)
b40e3958
L
39595 @r=`${PWD_COMMAND}`; export r; \
39596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39597 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39598 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 39599 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 39600
a90ef4bf 39601@endif target-libquadmath
3866be5d 39602
a90ef4bf
JM
39603.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
39604maybe-install-strip-target-libquadmath:
39605@if target-libquadmath
39606maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 39607
a90ef4bf 39608install-strip-target-libquadmath: installdirs
9b980aa1
RW
39609 @: $(MAKE); $(unstage)
39610 @r=`${PWD_COMMAND}`; export r; \
39611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39612 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39613 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
39614 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39615
a90ef4bf 39616@endif target-libquadmath
9b980aa1 39617
56a8fe78 39618# Other targets (info, dvi, pdf, etc.)
4fa63067 39619
a90ef4bf
JM
39620.PHONY: maybe-info-target-libquadmath info-target-libquadmath
39621maybe-info-target-libquadmath:
39622@if target-libquadmath
39623maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 39624
a90ef4bf
JM
39625info-target-libquadmath: \
39626 configure-target-libquadmath
0aed8855 39627 @: $(MAKE); $(unstage)
a90ef4bf 39628 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39629 r=`${PWD_COMMAND}`; export r; \
b40e3958 39630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39631 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39632 echo "Doing info in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39633 for flag in $(EXTRA_TARGET_FLAGS); do \
39634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39635 done; \
a90ef4bf 39636 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39639 "RANLIB=$${RANLIB}" \
0c24b341 39640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39641 info) \
4fa63067 39642 || exit 1
3866be5d 39643
a90ef4bf 39644@endif target-libquadmath
3866be5d 39645
a90ef4bf
JM
39646.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
39647maybe-dvi-target-libquadmath:
39648@if target-libquadmath
39649maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 39650
a90ef4bf
JM
39651dvi-target-libquadmath: \
39652 configure-target-libquadmath
0aed8855 39653 @: $(MAKE); $(unstage)
a90ef4bf 39654 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39655 r=`${PWD_COMMAND}`; export r; \
b40e3958 39656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39657 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39658 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39659 for flag in $(EXTRA_TARGET_FLAGS); do \
39660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39661 done; \
a90ef4bf 39662 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39665 "RANLIB=$${RANLIB}" \
0c24b341 39666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39667 dvi) \
4fa63067 39668 || exit 1
3866be5d 39669
a90ef4bf 39670@endif target-libquadmath
3866be5d 39671
a90ef4bf
JM
39672.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
39673maybe-pdf-target-libquadmath:
39674@if target-libquadmath
39675maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 39676
a90ef4bf
JM
39677pdf-target-libquadmath: \
39678 configure-target-libquadmath
56a8fe78 39679 @: $(MAKE); $(unstage)
a90ef4bf 39680 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
56a8fe78
DD
39681 r=`${PWD_COMMAND}`; export r; \
39682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39683 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39684 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath" ; \
56a8fe78
DD
39685 for flag in $(EXTRA_TARGET_FLAGS); do \
39686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39687 done; \
a90ef4bf 39688 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
39689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39691 "RANLIB=$${RANLIB}" \
0c24b341 39692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39693 pdf) \
39694 || exit 1
39695
a90ef4bf 39696@endif target-libquadmath
56a8fe78 39697
a90ef4bf
JM
39698.PHONY: maybe-html-target-libquadmath html-target-libquadmath
39699maybe-html-target-libquadmath:
39700@if target-libquadmath
39701maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 39702
a90ef4bf
JM
39703html-target-libquadmath: \
39704 configure-target-libquadmath
0aed8855 39705 @: $(MAKE); $(unstage)
a90ef4bf 39706 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
6d389afc
MS
39707 r=`${PWD_COMMAND}`; export r; \
39708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 39709 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39710 echo "Doing html in $(TARGET_SUBDIR)/libquadmath" ; \
6d389afc
MS
39711 for flag in $(EXTRA_TARGET_FLAGS); do \
39712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39713 done; \
a90ef4bf 39714 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
39715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39717 "RANLIB=$${RANLIB}" \
0c24b341 39718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39719 html) \
39720 || exit 1
39721
a90ef4bf 39722@endif target-libquadmath
6d389afc 39723
a90ef4bf
JM
39724.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
39725maybe-TAGS-target-libquadmath:
39726@if target-libquadmath
39727maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 39728
a90ef4bf
JM
39729TAGS-target-libquadmath: \
39730 configure-target-libquadmath
0aed8855 39731 @: $(MAKE); $(unstage)
a90ef4bf 39732 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b40e3958
L
39733 r=`${PWD_COMMAND}`; export r; \
39734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39735 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39736 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39737 for flag in $(EXTRA_TARGET_FLAGS); do \
39738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39739 done; \
a90ef4bf 39740 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39743 "RANLIB=$${RANLIB}" \
0c24b341 39744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39745 TAGS) \
e2b9e2dc
NN
39746 || exit 1
39747
a90ef4bf 39748@endif target-libquadmath
4fa63067 39749
a90ef4bf
JM
39750.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
39751maybe-install-info-target-libquadmath:
39752@if target-libquadmath
39753maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 39754
a90ef4bf
JM
39755install-info-target-libquadmath: \
39756 configure-target-libquadmath \
39757 info-target-libquadmath
0aed8855 39758 @: $(MAKE); $(unstage)
a90ef4bf 39759 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39760 r=`${PWD_COMMAND}`; export r; \
b40e3958 39761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39762 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39763 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39764 for flag in $(EXTRA_TARGET_FLAGS); do \
39765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39766 done; \
a90ef4bf 39767 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39770 "RANLIB=$${RANLIB}" \
0c24b341 39771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39772 install-info) \
4fa63067 39773 || exit 1
3866be5d 39774
a90ef4bf 39775@endif target-libquadmath
3866be5d 39776
a90ef4bf
JM
39777.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
39778maybe-install-pdf-target-libquadmath:
39779@if target-libquadmath
39780maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 39781
a90ef4bf
JM
39782install-pdf-target-libquadmath: \
39783 configure-target-libquadmath \
39784 pdf-target-libquadmath
a3ca38d2 39785 @: $(MAKE); $(unstage)
a90ef4bf 39786 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
a3ca38d2
DD
39787 r=`${PWD_COMMAND}`; export r; \
39788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39789 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39790 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath" ; \
a3ca38d2
DD
39791 for flag in $(EXTRA_TARGET_FLAGS); do \
39792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39793 done; \
a90ef4bf 39794 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
39795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39797 "RANLIB=$${RANLIB}" \
0c24b341 39798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39799 install-pdf) \
39800 || exit 1
39801
a90ef4bf 39802@endif target-libquadmath
a3ca38d2 39803
a90ef4bf
JM
39804.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
39805maybe-install-html-target-libquadmath:
39806@if target-libquadmath
39807maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 39808
a90ef4bf
JM
39809install-html-target-libquadmath: \
39810 configure-target-libquadmath \
39811 html-target-libquadmath
108a6f8e 39812 @: $(MAKE); $(unstage)
a90ef4bf 39813 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
108a6f8e
CD
39814 r=`${PWD_COMMAND}`; export r; \
39815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39816 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39817 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath" ; \
108a6f8e
CD
39818 for flag in $(EXTRA_TARGET_FLAGS); do \
39819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39820 done; \
a90ef4bf 39821 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
39822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39824 "RANLIB=$${RANLIB}" \
0c24b341 39825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39826 install-html) \
39827 || exit 1
39828
a90ef4bf 39829@endif target-libquadmath
108a6f8e 39830
a90ef4bf
JM
39831.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
39832maybe-installcheck-target-libquadmath:
39833@if target-libquadmath
39834maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 39835
a90ef4bf
JM
39836installcheck-target-libquadmath: \
39837 configure-target-libquadmath
0aed8855 39838 @: $(MAKE); $(unstage)
a90ef4bf 39839 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39840 r=`${PWD_COMMAND}`; export r; \
b40e3958 39841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39842 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39843 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39844 for flag in $(EXTRA_TARGET_FLAGS); do \
39845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39846 done; \
a90ef4bf 39847 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39850 "RANLIB=$${RANLIB}" \
0c24b341 39851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39852 installcheck) \
4fa63067 39853 || exit 1
3866be5d 39854
a90ef4bf 39855@endif target-libquadmath
3866be5d 39856
a90ef4bf
JM
39857.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
39858maybe-mostlyclean-target-libquadmath:
39859@if target-libquadmath
39860maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 39861
a90ef4bf 39862mostlyclean-target-libquadmath:
0aed8855 39863 @: $(MAKE); $(unstage)
a90ef4bf 39864 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39865 r=`${PWD_COMMAND}`; export r; \
b40e3958 39866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39867 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39868 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39869 for flag in $(EXTRA_TARGET_FLAGS); do \
39870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39871 done; \
a90ef4bf 39872 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39875 "RANLIB=$${RANLIB}" \
0c24b341 39876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39877 mostlyclean) \
4fa63067 39878 || exit 1
3866be5d 39879
a90ef4bf 39880@endif target-libquadmath
3866be5d 39881
a90ef4bf
JM
39882.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
39883maybe-clean-target-libquadmath:
39884@if target-libquadmath
39885maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 39886
a90ef4bf 39887clean-target-libquadmath:
0aed8855 39888 @: $(MAKE); $(unstage)
a90ef4bf 39889 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b40e3958
L
39890 r=`${PWD_COMMAND}`; export r; \
39891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39892 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39893 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39894 for flag in $(EXTRA_TARGET_FLAGS); do \
39895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39896 done; \
a90ef4bf 39897 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39900 "RANLIB=$${RANLIB}" \
0c24b341 39901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39902 clean) \
e2b9e2dc
NN
39903 || exit 1
39904
a90ef4bf 39905@endif target-libquadmath
3866be5d 39906
a90ef4bf
JM
39907.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
39908maybe-distclean-target-libquadmath:
39909@if target-libquadmath
39910maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 39911
a90ef4bf 39912distclean-target-libquadmath:
0aed8855 39913 @: $(MAKE); $(unstage)
a90ef4bf 39914 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39915 r=`${PWD_COMMAND}`; export r; \
b40e3958 39916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39917 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39918 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39919 for flag in $(EXTRA_TARGET_FLAGS); do \
39920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39921 done; \
a90ef4bf 39922 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39925 "RANLIB=$${RANLIB}" \
0c24b341 39926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39927 distclean) \
4fa63067 39928 || exit 1
3866be5d 39929
a90ef4bf 39930@endif target-libquadmath
3866be5d 39931
a90ef4bf
JM
39932.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
39933maybe-maintainer-clean-target-libquadmath:
39934@if target-libquadmath
39935maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 39936
a90ef4bf 39937maintainer-clean-target-libquadmath:
0aed8855 39938 @: $(MAKE); $(unstage)
a90ef4bf 39939 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39940 r=`${PWD_COMMAND}`; export r; \
b40e3958 39941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39942 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39943 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39944 for flag in $(EXTRA_TARGET_FLAGS); do \
39945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39946 done; \
a90ef4bf 39947 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39950 "RANLIB=$${RANLIB}" \
0c24b341 39951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39952 maintainer-clean) \
4fa63067 39953 || exit 1
3866be5d 39954
a90ef4bf 39955@endif target-libquadmath
3866be5d 39956
4fa63067 39957
4fa63067 39958
a7254363 39959
e90269c8 39960
a90ef4bf
JM
39961.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
39962maybe-configure-target-libgfortran:
e552509b 39963@if gcc-bootstrap
a90ef4bf 39964configure-target-libgfortran: stage_current
e552509b 39965@endif gcc-bootstrap
a90ef4bf
JM
39966@if target-libgfortran
39967maybe-configure-target-libgfortran: configure-target-libgfortran
39968configure-target-libgfortran:
e552509b
ILT
39969 @: $(MAKE); $(unstage)
39970 @r=`${PWD_COMMAND}`; export r; \
39971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39972 echo "Checking multilib configuration for libgfortran..."; \
39973 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
39974 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
39975 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
39976 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
39977 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 39978 else \
a90ef4bf
JM
39979 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
39980 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
39981 fi; \
39982 else \
a90ef4bf 39983 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 39984 fi; \
a90ef4bf
JM
39985 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
39986 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
e552509b 39987 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39988 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
39989 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
39990 case $(srcdir) in \
39991 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39992 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
39993 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39994 esac; \
1b6c0831 39995 module_srcdir=libgfortran; \
e552509b 39996 rm -f no-such-file || : ; \
1b6c0831
L
39997 CONFIG_SITE=no-such-file $(SHELL) \
39998 $$s/$$module_srcdir/configure \
39999 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40000 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40001 --target=${target_alias} \
e552509b 40002 || exit 1
a90ef4bf 40003@endif target-libgfortran
e552509b
ILT
40004
40005
40006
40007
40008
a90ef4bf
JM
40009.PHONY: all-target-libgfortran maybe-all-target-libgfortran
40010maybe-all-target-libgfortran:
e552509b 40011@if gcc-bootstrap
a90ef4bf 40012all-target-libgfortran: stage_current
e552509b 40013@endif gcc-bootstrap
a90ef4bf
JM
40014@if target-libgfortran
40015TARGET-target-libgfortran=all
40016maybe-all-target-libgfortran: all-target-libgfortran
40017all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
40018 @: $(MAKE); $(unstage)
40019 @r=`${PWD_COMMAND}`; export r; \
40020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40021 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40022 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 40023 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40024 $(TARGET-target-libgfortran))
40025@endif target-libgfortran
e552509b
ILT
40026
40027
40028
40029
40030
a90ef4bf
JM
40031.PHONY: check-target-libgfortran maybe-check-target-libgfortran
40032maybe-check-target-libgfortran:
40033@if target-libgfortran
40034maybe-check-target-libgfortran: check-target-libgfortran
e552509b 40035
a90ef4bf 40036check-target-libgfortran:
e552509b
ILT
40037 @: $(MAKE); $(unstage)
40038 @r=`${PWD_COMMAND}`; export r; \
40039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40040 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40041 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40042 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40043
a90ef4bf 40044@endif target-libgfortran
e552509b 40045
a90ef4bf
JM
40046.PHONY: install-target-libgfortran maybe-install-target-libgfortran
40047maybe-install-target-libgfortran:
40048@if target-libgfortran
40049maybe-install-target-libgfortran: install-target-libgfortran
e552509b 40050
a90ef4bf 40051install-target-libgfortran: installdirs
e552509b
ILT
40052 @: $(MAKE); $(unstage)
40053 @r=`${PWD_COMMAND}`; export r; \
40054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40055 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40056 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40057 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40058
a90ef4bf 40059@endif target-libgfortran
e552509b 40060
a90ef4bf
JM
40061.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
40062maybe-install-strip-target-libgfortran:
40063@if target-libgfortran
40064maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 40065
a90ef4bf 40066install-strip-target-libgfortran: installdirs
9b980aa1
RW
40067 @: $(MAKE); $(unstage)
40068 @r=`${PWD_COMMAND}`; export r; \
40069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40070 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40071 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
40072 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40073
a90ef4bf 40074@endif target-libgfortran
9b980aa1 40075
e552509b
ILT
40076# Other targets (info, dvi, pdf, etc.)
40077
a90ef4bf
JM
40078.PHONY: maybe-info-target-libgfortran info-target-libgfortran
40079maybe-info-target-libgfortran:
40080@if target-libgfortran
40081maybe-info-target-libgfortran: info-target-libgfortran
e552509b 40082
a90ef4bf
JM
40083info-target-libgfortran: \
40084 configure-target-libgfortran
e552509b 40085 @: $(MAKE); $(unstage)
a90ef4bf 40086 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40087 r=`${PWD_COMMAND}`; export r; \
40088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40089 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40090 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40091 for flag in $(EXTRA_TARGET_FLAGS); do \
40092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40093 done; \
a90ef4bf 40094 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40097 "RANLIB=$${RANLIB}" \
40098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40099 info) \
40100 || exit 1
40101
a90ef4bf 40102@endif target-libgfortran
e552509b 40103
a90ef4bf
JM
40104.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
40105maybe-dvi-target-libgfortran:
40106@if target-libgfortran
40107maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 40108
a90ef4bf
JM
40109dvi-target-libgfortran: \
40110 configure-target-libgfortran
e552509b 40111 @: $(MAKE); $(unstage)
a90ef4bf 40112 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40113 r=`${PWD_COMMAND}`; export r; \
40114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40115 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40116 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40117 for flag in $(EXTRA_TARGET_FLAGS); do \
40118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40119 done; \
a90ef4bf 40120 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40123 "RANLIB=$${RANLIB}" \
40124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40125 dvi) \
40126 || exit 1
40127
a90ef4bf 40128@endif target-libgfortran
e552509b 40129
a90ef4bf
JM
40130.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
40131maybe-pdf-target-libgfortran:
40132@if target-libgfortran
40133maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 40134
a90ef4bf
JM
40135pdf-target-libgfortran: \
40136 configure-target-libgfortran
e552509b 40137 @: $(MAKE); $(unstage)
a90ef4bf 40138 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40139 r=`${PWD_COMMAND}`; export r; \
40140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40141 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40142 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40143 for flag in $(EXTRA_TARGET_FLAGS); do \
40144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40145 done; \
a90ef4bf 40146 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40149 "RANLIB=$${RANLIB}" \
40150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40151 pdf) \
40152 || exit 1
40153
a90ef4bf 40154@endif target-libgfortran
e552509b 40155
a90ef4bf
JM
40156.PHONY: maybe-html-target-libgfortran html-target-libgfortran
40157maybe-html-target-libgfortran:
40158@if target-libgfortran
40159maybe-html-target-libgfortran: html-target-libgfortran
e552509b 40160
a90ef4bf
JM
40161html-target-libgfortran: \
40162 configure-target-libgfortran
e552509b 40163 @: $(MAKE); $(unstage)
a90ef4bf 40164 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40165 r=`${PWD_COMMAND}`; export r; \
40166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40167 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40168 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40169 for flag in $(EXTRA_TARGET_FLAGS); do \
40170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40171 done; \
a90ef4bf 40172 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40175 "RANLIB=$${RANLIB}" \
40176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40177 html) \
40178 || exit 1
40179
a90ef4bf 40180@endif target-libgfortran
e552509b 40181
a90ef4bf
JM
40182.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
40183maybe-TAGS-target-libgfortran:
40184@if target-libgfortran
40185maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 40186
a90ef4bf
JM
40187TAGS-target-libgfortran: \
40188 configure-target-libgfortran
e552509b 40189 @: $(MAKE); $(unstage)
a90ef4bf 40190 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40191 r=`${PWD_COMMAND}`; export r; \
40192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40193 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40194 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40195 for flag in $(EXTRA_TARGET_FLAGS); do \
40196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40197 done; \
a90ef4bf 40198 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40201 "RANLIB=$${RANLIB}" \
40202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40203 TAGS) \
40204 || exit 1
40205
a90ef4bf 40206@endif target-libgfortran
e552509b 40207
a90ef4bf
JM
40208.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
40209maybe-install-info-target-libgfortran:
40210@if target-libgfortran
40211maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 40212
a90ef4bf
JM
40213install-info-target-libgfortran: \
40214 configure-target-libgfortran \
40215 info-target-libgfortran
e552509b 40216 @: $(MAKE); $(unstage)
a90ef4bf 40217 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40218 r=`${PWD_COMMAND}`; export r; \
40219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40220 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40221 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40222 for flag in $(EXTRA_TARGET_FLAGS); do \
40223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40224 done; \
a90ef4bf 40225 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40228 "RANLIB=$${RANLIB}" \
40229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40230 install-info) \
40231 || exit 1
40232
a90ef4bf 40233@endif target-libgfortran
e552509b 40234
a90ef4bf
JM
40235.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
40236maybe-install-pdf-target-libgfortran:
40237@if target-libgfortran
40238maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 40239
a90ef4bf
JM
40240install-pdf-target-libgfortran: \
40241 configure-target-libgfortran \
40242 pdf-target-libgfortran
e552509b 40243 @: $(MAKE); $(unstage)
a90ef4bf 40244 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40245 r=`${PWD_COMMAND}`; export r; \
40246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40247 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40248 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40249 for flag in $(EXTRA_TARGET_FLAGS); do \
40250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40251 done; \
a90ef4bf 40252 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40255 "RANLIB=$${RANLIB}" \
40256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40257 install-pdf) \
40258 || exit 1
40259
a90ef4bf 40260@endif target-libgfortran
e552509b 40261
a90ef4bf
JM
40262.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
40263maybe-install-html-target-libgfortran:
40264@if target-libgfortran
40265maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 40266
a90ef4bf
JM
40267install-html-target-libgfortran: \
40268 configure-target-libgfortran \
40269 html-target-libgfortran
e552509b 40270 @: $(MAKE); $(unstage)
a90ef4bf 40271 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40272 r=`${PWD_COMMAND}`; export r; \
40273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40274 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40275 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40276 for flag in $(EXTRA_TARGET_FLAGS); do \
40277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40278 done; \
a90ef4bf 40279 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40282 "RANLIB=$${RANLIB}" \
40283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40284 install-html) \
40285 || exit 1
40286
a90ef4bf 40287@endif target-libgfortran
e552509b 40288
a90ef4bf
JM
40289.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
40290maybe-installcheck-target-libgfortran:
40291@if target-libgfortran
40292maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 40293
a90ef4bf
JM
40294installcheck-target-libgfortran: \
40295 configure-target-libgfortran
e552509b 40296 @: $(MAKE); $(unstage)
a90ef4bf 40297 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40298 r=`${PWD_COMMAND}`; export r; \
40299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40300 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40301 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40302 for flag in $(EXTRA_TARGET_FLAGS); do \
40303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40304 done; \
a90ef4bf 40305 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40308 "RANLIB=$${RANLIB}" \
40309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40310 installcheck) \
40311 || exit 1
40312
a90ef4bf 40313@endif target-libgfortran
e552509b 40314
a90ef4bf
JM
40315.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
40316maybe-mostlyclean-target-libgfortran:
40317@if target-libgfortran
40318maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 40319
a90ef4bf 40320mostlyclean-target-libgfortran:
e552509b 40321 @: $(MAKE); $(unstage)
a90ef4bf 40322 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40323 r=`${PWD_COMMAND}`; export r; \
40324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40325 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40326 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40327 for flag in $(EXTRA_TARGET_FLAGS); do \
40328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40329 done; \
a90ef4bf 40330 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40333 "RANLIB=$${RANLIB}" \
40334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40335 mostlyclean) \
40336 || exit 1
40337
a90ef4bf 40338@endif target-libgfortran
e552509b 40339
a90ef4bf
JM
40340.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
40341maybe-clean-target-libgfortran:
40342@if target-libgfortran
40343maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 40344
a90ef4bf 40345clean-target-libgfortran:
e552509b 40346 @: $(MAKE); $(unstage)
a90ef4bf 40347 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40348 r=`${PWD_COMMAND}`; export r; \
40349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40350 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40351 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40352 for flag in $(EXTRA_TARGET_FLAGS); do \
40353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40354 done; \
a90ef4bf 40355 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40358 "RANLIB=$${RANLIB}" \
40359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40360 clean) \
40361 || exit 1
40362
a90ef4bf 40363@endif target-libgfortran
e552509b 40364
a90ef4bf
JM
40365.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
40366maybe-distclean-target-libgfortran:
40367@if target-libgfortran
40368maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 40369
a90ef4bf 40370distclean-target-libgfortran:
e552509b 40371 @: $(MAKE); $(unstage)
a90ef4bf 40372 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40373 r=`${PWD_COMMAND}`; export r; \
40374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40375 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40376 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40377 for flag in $(EXTRA_TARGET_FLAGS); do \
40378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40379 done; \
a90ef4bf 40380 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40383 "RANLIB=$${RANLIB}" \
40384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40385 distclean) \
40386 || exit 1
40387
a90ef4bf 40388@endif target-libgfortran
e552509b 40389
a90ef4bf
JM
40390.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
40391maybe-maintainer-clean-target-libgfortran:
40392@if target-libgfortran
40393maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 40394
a90ef4bf 40395maintainer-clean-target-libgfortran:
e552509b 40396 @: $(MAKE); $(unstage)
a90ef4bf 40397 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40398 r=`${PWD_COMMAND}`; export r; \
40399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40400 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40401 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40402 for flag in $(EXTRA_TARGET_FLAGS); do \
40403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40404 done; \
a90ef4bf 40405 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40408 "RANLIB=$${RANLIB}" \
40409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40410 maintainer-clean) \
40411 || exit 1
40412
a90ef4bf 40413@endif target-libgfortran
e552509b
ILT
40414
40415
40416
40417
40418
a90ef4bf
JM
40419.PHONY: configure-target-libobjc maybe-configure-target-libobjc
40420maybe-configure-target-libobjc:
4f0ef2d8 40421@if gcc-bootstrap
a90ef4bf 40422configure-target-libobjc: stage_current
4f0ef2d8 40423@endif gcc-bootstrap
a90ef4bf
JM
40424@if target-libobjc
40425maybe-configure-target-libobjc: configure-target-libobjc
40426configure-target-libobjc:
0aed8855
PB
40427 @: $(MAKE); $(unstage)
40428 @r=`${PWD_COMMAND}`; export r; \
40429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40430 echo "Checking multilib configuration for libobjc..."; \
40431 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
40432 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
40433 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40434 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40435 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 40436 else \
a90ef4bf
JM
40437 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
40438 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
40439 fi; \
40440 else \
a90ef4bf 40441 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 40442 fi; \
a90ef4bf
JM
40443 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
40444 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
1f53ca9a 40445 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40446 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
40447 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 40448 case $(srcdir) in \
b00612cc 40449 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40450 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 40451 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 40452 esac; \
1b6c0831 40453 module_srcdir=libobjc; \
4fa63067 40454 rm -f no-such-file || : ; \
1b6c0831
L
40455 CONFIG_SITE=no-such-file $(SHELL) \
40456 $$s/$$module_srcdir/configure \
40457 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40458 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40459 --target=${target_alias} \
e2b9e2dc 40460 || exit 1
a90ef4bf 40461@endif target-libobjc
e2b9e2dc 40462
a7254363
PB
40463
40464
d545f33b
PB
40465
40466
a90ef4bf
JM
40467.PHONY: all-target-libobjc maybe-all-target-libobjc
40468maybe-all-target-libobjc:
4f0ef2d8 40469@if gcc-bootstrap
a90ef4bf 40470all-target-libobjc: stage_current
4f0ef2d8 40471@endif gcc-bootstrap
a90ef4bf
JM
40472@if target-libobjc
40473TARGET-target-libobjc=all
40474maybe-all-target-libobjc: all-target-libobjc
40475all-target-libobjc: configure-target-libobjc
0aed8855 40476 @: $(MAKE); $(unstage)
b40e3958
L
40477 @r=`${PWD_COMMAND}`; export r; \
40478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40479 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40480 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 40481 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40482 $(TARGET-target-libobjc))
40483@endif target-libobjc
3866be5d 40484
a7254363
PB
40485
40486
d545f33b
PB
40487
40488
a90ef4bf
JM
40489.PHONY: check-target-libobjc maybe-check-target-libobjc
40490maybe-check-target-libobjc:
40491@if target-libobjc
40492maybe-check-target-libobjc: check-target-libobjc
3866be5d 40493
a90ef4bf
JM
40494check-target-libobjc:
40495 @: $(MAKE); $(unstage)
40496 @r=`${PWD_COMMAND}`; export r; \
40497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40498 $(NORMAL_TARGET_EXPORTS) \
40499 (cd $(TARGET_SUBDIR)/libobjc && \
40500 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 40501
a90ef4bf 40502@endif target-libobjc
4fa63067 40503
a90ef4bf
JM
40504.PHONY: install-target-libobjc maybe-install-target-libobjc
40505maybe-install-target-libobjc:
40506@if target-libobjc
40507maybe-install-target-libobjc: install-target-libobjc
4fa63067 40508
a90ef4bf 40509install-target-libobjc: installdirs
0aed8855 40510 @: $(MAKE); $(unstage)
b40e3958
L
40511 @r=`${PWD_COMMAND}`; export r; \
40512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40513 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40514 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 40515 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40516
a90ef4bf 40517@endif target-libobjc
3866be5d 40518
a90ef4bf
JM
40519.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
40520maybe-install-strip-target-libobjc:
40521@if target-libobjc
40522maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 40523
a90ef4bf 40524install-strip-target-libobjc: installdirs
9b980aa1
RW
40525 @: $(MAKE); $(unstage)
40526 @r=`${PWD_COMMAND}`; export r; \
40527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40528 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40529 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
40530 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40531
a90ef4bf 40532@endif target-libobjc
9b980aa1 40533
56a8fe78 40534# Other targets (info, dvi, pdf, etc.)
16ae0395 40535
a90ef4bf
JM
40536.PHONY: maybe-info-target-libobjc info-target-libobjc
40537maybe-info-target-libobjc:
40538@if target-libobjc
40539maybe-info-target-libobjc: info-target-libobjc
6d389afc 40540
a90ef4bf
JM
40541info-target-libobjc: \
40542 configure-target-libobjc
0aed8855 40543 @: $(MAKE); $(unstage)
a90ef4bf 40544 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
6d389afc
MS
40545 r=`${PWD_COMMAND}`; export r; \
40546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40547 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40548 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
6d389afc
MS
40549 for flag in $(EXTRA_TARGET_FLAGS); do \
40550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40551 done; \
a90ef4bf 40552 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
40553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40555 "RANLIB=$${RANLIB}" \
0c24b341 40556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40557 info) \
40558 || exit 1
40559
a90ef4bf 40560@endif target-libobjc
6d389afc 40561
a90ef4bf
JM
40562.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
40563maybe-dvi-target-libobjc:
40564@if target-libobjc
40565maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 40566
a90ef4bf
JM
40567dvi-target-libobjc: \
40568 configure-target-libobjc
0aed8855 40569 @: $(MAKE); $(unstage)
a90ef4bf 40570 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40571 r=`${PWD_COMMAND}`; export r; \
b40e3958 40572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40573 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40574 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40575 for flag in $(EXTRA_TARGET_FLAGS); do \
40576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40577 done; \
a90ef4bf 40578 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40581 "RANLIB=$${RANLIB}" \
0c24b341 40582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 40583 dvi) \
4fa63067 40584 || exit 1
3866be5d 40585
a90ef4bf 40586@endif target-libobjc
3866be5d 40587
a90ef4bf
JM
40588.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
40589maybe-pdf-target-libobjc:
40590@if target-libobjc
40591maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 40592
a90ef4bf
JM
40593pdf-target-libobjc: \
40594 configure-target-libobjc
56a8fe78 40595 @: $(MAKE); $(unstage)
a90ef4bf 40596 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
56a8fe78
DD
40597 r=`${PWD_COMMAND}`; export r; \
40598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40599 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40600 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc" ; \
56a8fe78
DD
40601 for flag in $(EXTRA_TARGET_FLAGS); do \
40602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40603 done; \
a90ef4bf 40604 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
40605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40607 "RANLIB=$${RANLIB}" \
0c24b341 40608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40609 pdf) \
40610 || exit 1
40611
a90ef4bf 40612@endif target-libobjc
56a8fe78 40613
a90ef4bf
JM
40614.PHONY: maybe-html-target-libobjc html-target-libobjc
40615maybe-html-target-libobjc:
40616@if target-libobjc
40617maybe-html-target-libobjc: html-target-libobjc
4fa63067 40618
a90ef4bf
JM
40619html-target-libobjc: \
40620 configure-target-libobjc
0aed8855 40621 @: $(MAKE); $(unstage)
a90ef4bf 40622 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
b40e3958
L
40623 r=`${PWD_COMMAND}`; export r; \
40624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40625 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40626 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40627 for flag in $(EXTRA_TARGET_FLAGS); do \
40628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40629 done; \
a90ef4bf 40630 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40633 "RANLIB=$${RANLIB}" \
0c24b341 40634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 40635 html) \
e2b9e2dc
NN
40636 || exit 1
40637
a90ef4bf 40638@endif target-libobjc
4fa63067 40639
a90ef4bf
JM
40640.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
40641maybe-TAGS-target-libobjc:
40642@if target-libobjc
40643maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 40644
a90ef4bf
JM
40645TAGS-target-libobjc: \
40646 configure-target-libobjc
0aed8855 40647 @: $(MAKE); $(unstage)
a90ef4bf 40648 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40649 r=`${PWD_COMMAND}`; export r; \
b40e3958 40650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40651 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40652 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40653 for flag in $(EXTRA_TARGET_FLAGS); do \
40654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40655 done; \
a90ef4bf 40656 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40659 "RANLIB=$${RANLIB}" \
0c24b341 40660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40661 TAGS) \
4fa63067 40662 || exit 1
3866be5d 40663
a90ef4bf 40664@endif target-libobjc
3866be5d 40665
a90ef4bf
JM
40666.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
40667maybe-install-info-target-libobjc:
40668@if target-libobjc
40669maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 40670
a90ef4bf
JM
40671install-info-target-libobjc: \
40672 configure-target-libobjc \
40673 info-target-libobjc
0aed8855 40674 @: $(MAKE); $(unstage)
a90ef4bf 40675 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067
NN
40676 r=`${PWD_COMMAND}`; export r; \
40677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40678 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40679 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40680 for flag in $(EXTRA_TARGET_FLAGS); do \
40681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40682 done; \
a90ef4bf 40683 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40686 "RANLIB=$${RANLIB}" \
0c24b341 40687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40688 install-info) \
4fa63067 40689 || exit 1
3866be5d 40690
a90ef4bf 40691@endif target-libobjc
16ae0395 40692
a90ef4bf
JM
40693.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
40694maybe-install-pdf-target-libobjc:
40695@if target-libobjc
40696maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 40697
a90ef4bf
JM
40698install-pdf-target-libobjc: \
40699 configure-target-libobjc \
40700 pdf-target-libobjc
a3ca38d2 40701 @: $(MAKE); $(unstage)
a90ef4bf 40702 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
a3ca38d2
DD
40703 r=`${PWD_COMMAND}`; export r; \
40704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40705 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40706 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc" ; \
a3ca38d2
DD
40707 for flag in $(EXTRA_TARGET_FLAGS); do \
40708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40709 done; \
a90ef4bf 40710 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
40711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40713 "RANLIB=$${RANLIB}" \
0c24b341 40714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40715 install-pdf) \
40716 || exit 1
40717
a90ef4bf 40718@endif target-libobjc
a3ca38d2 40719
a90ef4bf
JM
40720.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
40721maybe-install-html-target-libobjc:
40722@if target-libobjc
40723maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 40724
a90ef4bf
JM
40725install-html-target-libobjc: \
40726 configure-target-libobjc \
40727 html-target-libobjc
108a6f8e 40728 @: $(MAKE); $(unstage)
a90ef4bf 40729 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
108a6f8e
CD
40730 r=`${PWD_COMMAND}`; export r; \
40731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40732 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40733 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
108a6f8e
CD
40734 for flag in $(EXTRA_TARGET_FLAGS); do \
40735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40736 done; \
a90ef4bf 40737 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
40738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40740 "RANLIB=$${RANLIB}" \
0c24b341 40741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40742 install-html) \
40743 || exit 1
40744
a90ef4bf 40745@endif target-libobjc
108a6f8e 40746
a90ef4bf
JM
40747.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
40748maybe-installcheck-target-libobjc:
40749@if target-libobjc
40750maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 40751
a90ef4bf
JM
40752installcheck-target-libobjc: \
40753 configure-target-libobjc
0aed8855 40754 @: $(MAKE); $(unstage)
a90ef4bf 40755 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40756 r=`${PWD_COMMAND}`; export r; \
b40e3958 40757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40758 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40759 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40760 for flag in $(EXTRA_TARGET_FLAGS); do \
40761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40762 done; \
a90ef4bf 40763 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40766 "RANLIB=$${RANLIB}" \
0c24b341 40767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40768 installcheck) \
4fa63067 40769 || exit 1
3866be5d 40770
a90ef4bf 40771@endif target-libobjc
3866be5d 40772
a90ef4bf
JM
40773.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
40774maybe-mostlyclean-target-libobjc:
40775@if target-libobjc
40776maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 40777
a90ef4bf
JM
40778mostlyclean-target-libobjc:
40779 @: $(MAKE); $(unstage)
40780 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40781 r=`${PWD_COMMAND}`; export r; \
40782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40783 $(NORMAL_TARGET_EXPORTS) \
40784 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
40785 for flag in $(EXTRA_TARGET_FLAGS); do \
40786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40787 done; \
40788 (cd $(TARGET_SUBDIR)/libobjc && \
40789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40791 "RANLIB=$${RANLIB}" \
40792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40793 mostlyclean) \
40794 || exit 1
4fa63067 40795
a90ef4bf 40796@endif target-libobjc
4fa63067 40797
a90ef4bf
JM
40798.PHONY: maybe-clean-target-libobjc clean-target-libobjc
40799maybe-clean-target-libobjc:
40800@if target-libobjc
40801maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 40802
a90ef4bf
JM
40803clean-target-libobjc:
40804 @: $(MAKE); $(unstage)
40805 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40806 r=`${PWD_COMMAND}`; export r; \
40807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40808 $(NORMAL_TARGET_EXPORTS) \
40809 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
40810 for flag in $(EXTRA_TARGET_FLAGS); do \
40811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40812 done; \
40813 (cd $(TARGET_SUBDIR)/libobjc && \
40814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40816 "RANLIB=$${RANLIB}" \
40817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40818 clean) \
40819 || exit 1
4fa63067 40820
a90ef4bf 40821@endif target-libobjc
4fa63067 40822
a90ef4bf
JM
40823.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
40824maybe-distclean-target-libobjc:
40825@if target-libobjc
40826maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 40827
a90ef4bf
JM
40828distclean-target-libobjc:
40829 @: $(MAKE); $(unstage)
40830 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40831 r=`${PWD_COMMAND}`; export r; \
40832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40833 $(NORMAL_TARGET_EXPORTS) \
40834 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
40835 for flag in $(EXTRA_TARGET_FLAGS); do \
40836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40837 done; \
40838 (cd $(TARGET_SUBDIR)/libobjc && \
40839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40841 "RANLIB=$${RANLIB}" \
40842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40843 distclean) \
40844 || exit 1
4fa63067 40845
a90ef4bf 40846@endif target-libobjc
4fa63067 40847
a90ef4bf
JM
40848.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
40849maybe-maintainer-clean-target-libobjc:
40850@if target-libobjc
40851maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 40852
a90ef4bf
JM
40853maintainer-clean-target-libobjc:
40854 @: $(MAKE); $(unstage)
40855 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40856 r=`${PWD_COMMAND}`; export r; \
40857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40858 $(NORMAL_TARGET_EXPORTS) \
40859 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
40860 for flag in $(EXTRA_TARGET_FLAGS); do \
40861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40862 done; \
40863 (cd $(TARGET_SUBDIR)/libobjc && \
40864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40866 "RANLIB=$${RANLIB}" \
40867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40868 maintainer-clean) \
40869 || exit 1
4fa63067 40870
a90ef4bf 40871@endif target-libobjc
4fa63067
NN
40872
40873
4fa63067 40874
4fa63067 40875
a7254363 40876
a90ef4bf
JM
40877.PHONY: configure-target-libgo maybe-configure-target-libgo
40878maybe-configure-target-libgo:
4f0ef2d8 40879@if gcc-bootstrap
a90ef4bf 40880configure-target-libgo: stage_current
4f0ef2d8 40881@endif gcc-bootstrap
a90ef4bf
JM
40882@if target-libgo
40883maybe-configure-target-libgo: configure-target-libgo
40884configure-target-libgo:
0aed8855
PB
40885 @: $(MAKE); $(unstage)
40886 @r=`${PWD_COMMAND}`; export r; \
40887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40888 echo "Checking multilib configuration for libgo..."; \
40889 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
40890 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null ; \
40891 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
40892 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
40893 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 40894 else \
a90ef4bf
JM
40895 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
40896 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
40897 fi; \
40898 else \
a90ef4bf 40899 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 40900 fi; \
a90ef4bf
JM
40901 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
40902 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
1f53ca9a 40903 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40904 echo Configuring in $(TARGET_SUBDIR)/libgo; \
40905 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 40906 case $(srcdir) in \
b00612cc 40907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40908 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 40909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 40910 esac; \
1b6c0831 40911 module_srcdir=libgo; \
4fa63067 40912 rm -f no-such-file || : ; \
1b6c0831
L
40913 CONFIG_SITE=no-such-file $(SHELL) \
40914 $$s/$$module_srcdir/configure \
40915 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40916 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40917 --target=${target_alias} \
e2b9e2dc 40918 || exit 1
a90ef4bf 40919@endif target-libgo
e2b9e2dc 40920
a7254363
PB
40921
40922
d545f33b
PB
40923
40924
a90ef4bf
JM
40925.PHONY: all-target-libgo maybe-all-target-libgo
40926maybe-all-target-libgo:
4f0ef2d8 40927@if gcc-bootstrap
a90ef4bf 40928all-target-libgo: stage_current
4f0ef2d8 40929@endif gcc-bootstrap
a90ef4bf
JM
40930@if target-libgo
40931TARGET-target-libgo=all
40932maybe-all-target-libgo: all-target-libgo
40933all-target-libgo: configure-target-libgo
0aed8855 40934 @: $(MAKE); $(unstage)
b40e3958
L
40935 @r=`${PWD_COMMAND}`; export r; \
40936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40937 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40938 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 40939 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40940 $(TARGET-target-libgo))
40941@endif target-libgo
3866be5d 40942
a7254363
PB
40943
40944
d545f33b
PB
40945
40946
a90ef4bf
JM
40947.PHONY: check-target-libgo maybe-check-target-libgo
40948maybe-check-target-libgo:
40949@if target-libgo
40950maybe-check-target-libgo: check-target-libgo
3866be5d 40951
a90ef4bf 40952check-target-libgo:
0aed8855 40953 @: $(MAKE); $(unstage)
4fa63067
NN
40954 @r=`${PWD_COMMAND}`; export r; \
40955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40956 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40957 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 40958 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40959
a90ef4bf 40960@endif target-libgo
3866be5d 40961
a90ef4bf
JM
40962.PHONY: install-target-libgo maybe-install-target-libgo
40963maybe-install-target-libgo:
40964@if target-libgo
40965maybe-install-target-libgo: install-target-libgo
16ae0395 40966
a90ef4bf 40967install-target-libgo: installdirs
0aed8855 40968 @: $(MAKE); $(unstage)
4fa63067
NN
40969 @r=`${PWD_COMMAND}`; export r; \
40970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40971 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40972 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 40973 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40974
a90ef4bf 40975@endif target-libgo
3866be5d 40976
a90ef4bf
JM
40977.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
40978maybe-install-strip-target-libgo:
40979@if target-libgo
40980maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 40981
a90ef4bf 40982install-strip-target-libgo: installdirs
9b980aa1
RW
40983 @: $(MAKE); $(unstage)
40984 @r=`${PWD_COMMAND}`; export r; \
40985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40986 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40987 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
40988 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40989
a90ef4bf 40990@endif target-libgo
9b980aa1 40991
56a8fe78 40992# Other targets (info, dvi, pdf, etc.)
4fa63067 40993
a90ef4bf
JM
40994.PHONY: maybe-info-target-libgo info-target-libgo
40995maybe-info-target-libgo:
40996@if target-libgo
40997maybe-info-target-libgo: info-target-libgo
4fa63067 40998
a90ef4bf
JM
40999info-target-libgo: \
41000 configure-target-libgo
0aed8855 41001 @: $(MAKE); $(unstage)
a90ef4bf 41002 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
41003 r=`${PWD_COMMAND}`; export r; \
41004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41005 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41006 echo "Doing info in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41007 for flag in $(EXTRA_TARGET_FLAGS); do \
41008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41009 done; \
a90ef4bf 41010 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41013 "RANLIB=$${RANLIB}" \
0c24b341 41014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41015 info) \
e2b9e2dc
NN
41016 || exit 1
41017
a90ef4bf 41018@endif target-libgo
3866be5d 41019
a90ef4bf
JM
41020.PHONY: maybe-dvi-target-libgo dvi-target-libgo
41021maybe-dvi-target-libgo:
41022@if target-libgo
41023maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 41024
a90ef4bf
JM
41025dvi-target-libgo: \
41026 configure-target-libgo
0aed8855 41027 @: $(MAKE); $(unstage)
a90ef4bf 41028 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41029 r=`${PWD_COMMAND}`; export r; \
b40e3958 41030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41031 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41032 echo "Doing dvi in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41033 for flag in $(EXTRA_TARGET_FLAGS); do \
41034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41035 done; \
a90ef4bf 41036 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41039 "RANLIB=$${RANLIB}" \
0c24b341 41040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41041 dvi) \
4fa63067 41042 || exit 1
3866be5d 41043
a90ef4bf 41044@endif target-libgo
3866be5d 41045
a90ef4bf
JM
41046.PHONY: maybe-pdf-target-libgo pdf-target-libgo
41047maybe-pdf-target-libgo:
41048@if target-libgo
41049maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 41050
a90ef4bf
JM
41051pdf-target-libgo: \
41052 configure-target-libgo
56a8fe78 41053 @: $(MAKE); $(unstage)
a90ef4bf 41054 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
56a8fe78
DD
41055 r=`${PWD_COMMAND}`; export r; \
41056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41057 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41058 echo "Doing pdf in $(TARGET_SUBDIR)/libgo" ; \
56a8fe78
DD
41059 for flag in $(EXTRA_TARGET_FLAGS); do \
41060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41061 done; \
a90ef4bf 41062 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
41063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41065 "RANLIB=$${RANLIB}" \
0c24b341 41066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41067 pdf) \
41068 || exit 1
41069
a90ef4bf 41070@endif target-libgo
56a8fe78 41071
a90ef4bf
JM
41072.PHONY: maybe-html-target-libgo html-target-libgo
41073maybe-html-target-libgo:
41074@if target-libgo
41075maybe-html-target-libgo: html-target-libgo
6d389afc 41076
a90ef4bf
JM
41077html-target-libgo: \
41078 configure-target-libgo
0aed8855 41079 @: $(MAKE); $(unstage)
a90ef4bf 41080 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
6d389afc
MS
41081 r=`${PWD_COMMAND}`; export r; \
41082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41083 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41084 echo "Doing html in $(TARGET_SUBDIR)/libgo" ; \
6d389afc
MS
41085 for flag in $(EXTRA_TARGET_FLAGS); do \
41086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41087 done; \
a90ef4bf 41088 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
41089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41091 "RANLIB=$${RANLIB}" \
0c24b341 41092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41093 html) \
41094 || exit 1
41095
a90ef4bf 41096@endif target-libgo
6d389afc 41097
a90ef4bf
JM
41098.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
41099maybe-TAGS-target-libgo:
41100@if target-libgo
41101maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 41102
a90ef4bf
JM
41103TAGS-target-libgo: \
41104 configure-target-libgo
0aed8855 41105 @: $(MAKE); $(unstage)
a90ef4bf 41106 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41107 r=`${PWD_COMMAND}`; export r; \
b40e3958 41108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41109 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41110 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41111 for flag in $(EXTRA_TARGET_FLAGS); do \
41112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41113 done; \
a90ef4bf 41114 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41117 "RANLIB=$${RANLIB}" \
0c24b341 41118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41119 TAGS) \
4fa63067 41120 || exit 1
3866be5d 41121
a90ef4bf 41122@endif target-libgo
3866be5d 41123
a90ef4bf
JM
41124.PHONY: maybe-install-info-target-libgo install-info-target-libgo
41125maybe-install-info-target-libgo:
41126@if target-libgo
41127maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 41128
a90ef4bf
JM
41129install-info-target-libgo: \
41130 configure-target-libgo \
41131 info-target-libgo
0aed8855 41132 @: $(MAKE); $(unstage)
a90ef4bf 41133 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
41134 r=`${PWD_COMMAND}`; export r; \
41135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41136 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41137 echo "Doing install-info in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41138 for flag in $(EXTRA_TARGET_FLAGS); do \
41139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41140 done; \
a90ef4bf 41141 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41144 "RANLIB=$${RANLIB}" \
0c24b341 41145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41146 install-info) \
e2b9e2dc
NN
41147 || exit 1
41148
a90ef4bf 41149@endif target-libgo
4fa63067 41150
a90ef4bf
JM
41151.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
41152maybe-install-pdf-target-libgo:
41153@if target-libgo
41154maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 41155
a90ef4bf
JM
41156install-pdf-target-libgo: \
41157 configure-target-libgo \
41158 pdf-target-libgo
a3ca38d2 41159 @: $(MAKE); $(unstage)
a90ef4bf 41160 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
a3ca38d2
DD
41161 r=`${PWD_COMMAND}`; export r; \
41162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41163 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41164 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo" ; \
a3ca38d2
DD
41165 for flag in $(EXTRA_TARGET_FLAGS); do \
41166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41167 done; \
a90ef4bf 41168 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
41169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41171 "RANLIB=$${RANLIB}" \
0c24b341 41172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41173 install-pdf) \
41174 || exit 1
41175
a90ef4bf 41176@endif target-libgo
a3ca38d2 41177
a90ef4bf
JM
41178.PHONY: maybe-install-html-target-libgo install-html-target-libgo
41179maybe-install-html-target-libgo:
41180@if target-libgo
41181maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 41182
a90ef4bf
JM
41183install-html-target-libgo: \
41184 configure-target-libgo \
41185 html-target-libgo
108a6f8e 41186 @: $(MAKE); $(unstage)
a90ef4bf 41187 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
108a6f8e
CD
41188 r=`${PWD_COMMAND}`; export r; \
41189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41190 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41191 echo "Doing install-html in $(TARGET_SUBDIR)/libgo" ; \
108a6f8e
CD
41192 for flag in $(EXTRA_TARGET_FLAGS); do \
41193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41194 done; \
a90ef4bf 41195 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
41196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41198 "RANLIB=$${RANLIB}" \
0c24b341 41199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41200 install-html) \
41201 || exit 1
41202
a90ef4bf 41203@endif target-libgo
108a6f8e 41204
a90ef4bf
JM
41205.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
41206maybe-installcheck-target-libgo:
41207@if target-libgo
41208maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 41209
a90ef4bf
JM
41210installcheck-target-libgo: \
41211 configure-target-libgo
0aed8855 41212 @: $(MAKE); $(unstage)
a90ef4bf 41213 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41214 r=`${PWD_COMMAND}`; export r; \
b40e3958 41215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41216 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41217 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41218 for flag in $(EXTRA_TARGET_FLAGS); do \
41219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41220 done; \
a90ef4bf 41221 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41224 "RANLIB=$${RANLIB}" \
0c24b341 41225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41226 installcheck) \
4fa63067 41227 || exit 1
3866be5d 41228
a90ef4bf 41229@endif target-libgo
3866be5d 41230
a90ef4bf
JM
41231.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
41232maybe-mostlyclean-target-libgo:
41233@if target-libgo
41234maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 41235
a90ef4bf 41236mostlyclean-target-libgo:
0aed8855 41237 @: $(MAKE); $(unstage)
a90ef4bf 41238 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41239 r=`${PWD_COMMAND}`; export r; \
b40e3958 41240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41241 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41242 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41243 for flag in $(EXTRA_TARGET_FLAGS); do \
41244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41245 done; \
a90ef4bf 41246 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41249 "RANLIB=$${RANLIB}" \
0c24b341 41250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41251 mostlyclean) \
4fa63067 41252 || exit 1
3866be5d 41253
a90ef4bf 41254@endif target-libgo
3866be5d 41255
a90ef4bf
JM
41256.PHONY: maybe-clean-target-libgo clean-target-libgo
41257maybe-clean-target-libgo:
41258@if target-libgo
41259maybe-clean-target-libgo: clean-target-libgo
16ae0395 41260
a90ef4bf 41261clean-target-libgo:
0aed8855 41262 @: $(MAKE); $(unstage)
a90ef4bf 41263 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41264 r=`${PWD_COMMAND}`; export r; \
b40e3958 41265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41266 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41267 echo "Doing clean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41268 for flag in $(EXTRA_TARGET_FLAGS); do \
41269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41270 done; \
a90ef4bf 41271 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41274 "RANLIB=$${RANLIB}" \
0c24b341 41275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41276 clean) \
4fa63067 41277 || exit 1
3866be5d 41278
a90ef4bf 41279@endif target-libgo
3866be5d 41280
a90ef4bf
JM
41281.PHONY: maybe-distclean-target-libgo distclean-target-libgo
41282maybe-distclean-target-libgo:
41283@if target-libgo
41284maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 41285
a90ef4bf 41286distclean-target-libgo:
0aed8855 41287 @: $(MAKE); $(unstage)
a90ef4bf 41288 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
41289 r=`${PWD_COMMAND}`; export r; \
41290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41291 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41292 echo "Doing distclean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41293 for flag in $(EXTRA_TARGET_FLAGS); do \
41294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41295 done; \
a90ef4bf 41296 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41299 "RANLIB=$${RANLIB}" \
0c24b341 41300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41301 distclean) \
e2b9e2dc
NN
41302 || exit 1
41303
a90ef4bf 41304@endif target-libgo
3866be5d 41305
a90ef4bf
JM
41306.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
41307maybe-maintainer-clean-target-libgo:
41308@if target-libgo
41309maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 41310
a90ef4bf 41311maintainer-clean-target-libgo:
0aed8855 41312 @: $(MAKE); $(unstage)
a90ef4bf 41313 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41314 r=`${PWD_COMMAND}`; export r; \
b40e3958 41315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41316 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41317 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41318 for flag in $(EXTRA_TARGET_FLAGS); do \
41319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41320 done; \
a90ef4bf 41321 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41324 "RANLIB=$${RANLIB}" \
0c24b341 41325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41326 maintainer-clean) \
4fa63067 41327 || exit 1
3866be5d 41328
a90ef4bf 41329@endif target-libgo
3866be5d 41330
16ae0395 41331
3866be5d 41332
e90269c8 41333
a7254363 41334
a90ef4bf
JM
41335.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
41336maybe-configure-target-libtermcap:
4f0ef2d8 41337@if gcc-bootstrap
a90ef4bf 41338configure-target-libtermcap: stage_current
4f0ef2d8 41339@endif gcc-bootstrap
a90ef4bf
JM
41340@if target-libtermcap
41341maybe-configure-target-libtermcap: configure-target-libtermcap
41342configure-target-libtermcap:
0aed8855
PB
41343 @: $(MAKE); $(unstage)
41344 @r=`${PWD_COMMAND}`; export r; \
41345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41346 echo "Checking multilib configuration for libtermcap..."; \
41347 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
41348 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
41349 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41350 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41351 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 41352 else \
a90ef4bf
JM
41353 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
41354 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
41355 fi; \
41356 else \
a90ef4bf 41357 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 41358 fi; \
a90ef4bf
JM
41359 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
41360 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
1f53ca9a 41361 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41362 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
41363 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 41364 case $(srcdir) in \
b00612cc 41365 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41366 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 41367 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41368 esac; \
1b6c0831 41369 module_srcdir=libtermcap; \
4fa63067 41370 rm -f no-such-file || : ; \
1b6c0831
L
41371 CONFIG_SITE=no-such-file $(SHELL) \
41372 $$s/$$module_srcdir/configure \
41373 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41374 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41375 --target=${target_alias} \
e2b9e2dc 41376 || exit 1
a90ef4bf 41377@endif target-libtermcap
e2b9e2dc 41378
a7254363
PB
41379
41380
d545f33b
PB
41381
41382
a90ef4bf
JM
41383.PHONY: all-target-libtermcap maybe-all-target-libtermcap
41384maybe-all-target-libtermcap:
4f0ef2d8 41385@if gcc-bootstrap
a90ef4bf 41386all-target-libtermcap: stage_current
4f0ef2d8 41387@endif gcc-bootstrap
a90ef4bf
JM
41388@if target-libtermcap
41389TARGET-target-libtermcap=all
41390maybe-all-target-libtermcap: all-target-libtermcap
41391all-target-libtermcap: configure-target-libtermcap
0aed8855 41392 @: $(MAKE); $(unstage)
b40e3958
L
41393 @r=`${PWD_COMMAND}`; export r; \
41394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41395 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41396 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 41397 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41398 $(TARGET-target-libtermcap))
41399@endif target-libtermcap
e393202e 41400
a7254363
PB
41401
41402
d545f33b
PB
41403
41404
a90ef4bf
JM
41405.PHONY: check-target-libtermcap maybe-check-target-libtermcap
41406maybe-check-target-libtermcap:
41407@if target-libtermcap
41408maybe-check-target-libtermcap: check-target-libtermcap
e393202e 41409
4fa63067 41410# Dummy target for uncheckable module.
a90ef4bf 41411check-target-libtermcap:
e393202e 41412
a90ef4bf 41413@endif target-libtermcap
e393202e 41414
a90ef4bf
JM
41415.PHONY: install-target-libtermcap maybe-install-target-libtermcap
41416maybe-install-target-libtermcap:
41417@if target-libtermcap
41418maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 41419
a90ef4bf 41420install-target-libtermcap: installdirs
0aed8855 41421 @: $(MAKE); $(unstage)
b40e3958
L
41422 @r=`${PWD_COMMAND}`; export r; \
41423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41424 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41425 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 41426 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 41427
a90ef4bf 41428@endif target-libtermcap
56a8fe78 41429
a90ef4bf
JM
41430.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
41431maybe-install-strip-target-libtermcap:
41432@if target-libtermcap
41433maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 41434
a90ef4bf 41435install-strip-target-libtermcap: installdirs
0aed8855 41436 @: $(MAKE); $(unstage)
a90ef4bf 41437 @r=`${PWD_COMMAND}`; export r; \
6d389afc 41438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41439 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41440 (cd $(TARGET_SUBDIR)/libtermcap && \
41441 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 41442
a90ef4bf 41443@endif target-libtermcap
6d389afc 41444
a90ef4bf 41445# Other targets (info, dvi, pdf, etc.)
16ae0395 41446
a90ef4bf
JM
41447.PHONY: maybe-info-target-libtermcap info-target-libtermcap
41448maybe-info-target-libtermcap:
41449@if target-libtermcap
41450maybe-info-target-libtermcap: info-target-libtermcap
41451
41452info-target-libtermcap: \
41453 configure-target-libtermcap
0aed8855 41454 @: $(MAKE); $(unstage)
a90ef4bf 41455 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41456 r=`${PWD_COMMAND}`; export r; \
b40e3958 41457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41458 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41459 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41460 for flag in $(EXTRA_TARGET_FLAGS); do \
41461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41462 done; \
a90ef4bf 41463 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41466 "RANLIB=$${RANLIB}" \
0c24b341 41467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41468 info) \
4fa63067 41469 || exit 1
ce5b542e 41470
a90ef4bf 41471@endif target-libtermcap
ce5b542e 41472
a90ef4bf
JM
41473.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
41474maybe-dvi-target-libtermcap:
41475@if target-libtermcap
41476maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 41477
a90ef4bf
JM
41478dvi-target-libtermcap: \
41479 configure-target-libtermcap
0aed8855 41480 @: $(MAKE); $(unstage)
a90ef4bf 41481 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
41482 r=`${PWD_COMMAND}`; export r; \
41483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41484 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41485 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41486 for flag in $(EXTRA_TARGET_FLAGS); do \
41487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41488 done; \
a90ef4bf 41489 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41492 "RANLIB=$${RANLIB}" \
0c24b341 41493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41494 dvi) \
e2b9e2dc
NN
41495 || exit 1
41496
a90ef4bf 41497@endif target-libtermcap
e393202e 41498
a90ef4bf
JM
41499.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
41500maybe-pdf-target-libtermcap:
41501@if target-libtermcap
41502maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 41503
a90ef4bf
JM
41504pdf-target-libtermcap: \
41505 configure-target-libtermcap
a3ca38d2 41506 @: $(MAKE); $(unstage)
a90ef4bf 41507 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
a3ca38d2
DD
41508 r=`${PWD_COMMAND}`; export r; \
41509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41510 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41511 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap" ; \
a3ca38d2
DD
41512 for flag in $(EXTRA_TARGET_FLAGS); do \
41513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41514 done; \
a90ef4bf 41515 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
41516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41518 "RANLIB=$${RANLIB}" \
0c24b341 41519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41520 pdf) \
a3ca38d2
DD
41521 || exit 1
41522
a90ef4bf 41523@endif target-libtermcap
a3ca38d2 41524
a90ef4bf
JM
41525.PHONY: maybe-html-target-libtermcap html-target-libtermcap
41526maybe-html-target-libtermcap:
41527@if target-libtermcap
41528maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 41529
a90ef4bf
JM
41530html-target-libtermcap: \
41531 configure-target-libtermcap
108a6f8e 41532 @: $(MAKE); $(unstage)
a90ef4bf 41533 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
108a6f8e
CD
41534 r=`${PWD_COMMAND}`; export r; \
41535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41536 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41537 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
108a6f8e
CD
41538 for flag in $(EXTRA_TARGET_FLAGS); do \
41539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41540 done; \
a90ef4bf 41541 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
41542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41544 "RANLIB=$${RANLIB}" \
0c24b341 41545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41546 html) \
108a6f8e
CD
41547 || exit 1
41548
a90ef4bf 41549@endif target-libtermcap
108a6f8e 41550
a90ef4bf
JM
41551.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
41552maybe-TAGS-target-libtermcap:
41553@if target-libtermcap
41554maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 41555
a90ef4bf
JM
41556TAGS-target-libtermcap: \
41557 configure-target-libtermcap
0aed8855 41558 @: $(MAKE); $(unstage)
a90ef4bf 41559 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067
NN
41560 r=`${PWD_COMMAND}`; export r; \
41561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41562 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41563 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41564 for flag in $(EXTRA_TARGET_FLAGS); do \
41565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41566 done; \
a90ef4bf 41567 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41570 "RANLIB=$${RANLIB}" \
0c24b341 41571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41572 TAGS) \
4fa63067 41573 || exit 1
3866be5d 41574
a90ef4bf 41575@endif target-libtermcap
3866be5d 41576
a90ef4bf
JM
41577.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
41578maybe-install-info-target-libtermcap:
41579@if target-libtermcap
41580maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 41581
a90ef4bf
JM
41582install-info-target-libtermcap: \
41583 configure-target-libtermcap \
41584 info-target-libtermcap
0aed8855 41585 @: $(MAKE); $(unstage)
a90ef4bf 41586 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41587 r=`${PWD_COMMAND}`; export r; \
b40e3958 41588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41589 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41590 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41591 for flag in $(EXTRA_TARGET_FLAGS); do \
41592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41593 done; \
a90ef4bf 41594 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41597 "RANLIB=$${RANLIB}" \
0c24b341 41598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41599 install-info) \
4fa63067 41600 || exit 1
e393202e 41601
a90ef4bf 41602@endif target-libtermcap
3866be5d 41603
a90ef4bf
JM
41604.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
41605maybe-install-pdf-target-libtermcap:
41606@if target-libtermcap
41607maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 41608
a90ef4bf
JM
41609install-pdf-target-libtermcap: \
41610 configure-target-libtermcap \
41611 pdf-target-libtermcap
0aed8855 41612 @: $(MAKE); $(unstage)
a90ef4bf 41613 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
41614 r=`${PWD_COMMAND}`; export r; \
41615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41616 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41617 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41618 for flag in $(EXTRA_TARGET_FLAGS); do \
41619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41620 done; \
a90ef4bf 41621 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41624 "RANLIB=$${RANLIB}" \
0c24b341 41625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41626 install-pdf) \
e2b9e2dc
NN
41627 || exit 1
41628
a90ef4bf 41629@endif target-libtermcap
e393202e 41630
a90ef4bf
JM
41631.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
41632maybe-install-html-target-libtermcap:
41633@if target-libtermcap
41634maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 41635
a90ef4bf
JM
41636install-html-target-libtermcap: \
41637 configure-target-libtermcap \
41638 html-target-libtermcap
0aed8855 41639 @: $(MAKE); $(unstage)
a90ef4bf 41640 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067
NN
41641 r=`${PWD_COMMAND}`; export r; \
41642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41643 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41644 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41645 for flag in $(EXTRA_TARGET_FLAGS); do \
41646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41647 done; \
a90ef4bf 41648 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41651 "RANLIB=$${RANLIB}" \
0c24b341 41652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41653 install-html) \
4fa63067 41654 || exit 1
3866be5d 41655
a90ef4bf 41656@endif target-libtermcap
3866be5d 41657
a90ef4bf
JM
41658.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
41659maybe-installcheck-target-libtermcap:
41660@if target-libtermcap
41661maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 41662
a90ef4bf
JM
41663installcheck-target-libtermcap: \
41664 configure-target-libtermcap
0aed8855 41665 @: $(MAKE); $(unstage)
a90ef4bf 41666 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41667 r=`${PWD_COMMAND}`; export r; \
b40e3958 41668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41669 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41670 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41671 for flag in $(EXTRA_TARGET_FLAGS); do \
41672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41673 done; \
a90ef4bf 41674 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41677 "RANLIB=$${RANLIB}" \
0c24b341 41678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41679 installcheck) \
4fa63067 41680 || exit 1
3866be5d 41681
a90ef4bf
JM
41682@endif target-libtermcap
41683
41684.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
41685maybe-mostlyclean-target-libtermcap:
41686@if target-libtermcap
41687maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
41688
41689# libtermcap doesn't support mostlyclean.
41690mostlyclean-target-libtermcap:
41691
41692@endif target-libtermcap
3866be5d 41693
a90ef4bf
JM
41694.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
41695maybe-clean-target-libtermcap:
41696@if target-libtermcap
41697maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 41698
a90ef4bf
JM
41699# libtermcap doesn't support clean.
41700clean-target-libtermcap:
15723a45 41701
a90ef4bf 41702@endif target-libtermcap
e90269c8 41703
a90ef4bf
JM
41704.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
41705maybe-distclean-target-libtermcap:
41706@if target-libtermcap
41707maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 41708
a90ef4bf
JM
41709# libtermcap doesn't support distclean.
41710distclean-target-libtermcap:
41711
41712@endif target-libtermcap
41713
41714.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
41715maybe-maintainer-clean-target-libtermcap:
41716@if target-libtermcap
41717maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
41718
41719# libtermcap doesn't support maintainer-clean.
41720maintainer-clean-target-libtermcap:
41721
41722@endif target-libtermcap
41723
41724
41725
41726
41727
41728.PHONY: configure-target-winsup maybe-configure-target-winsup
41729maybe-configure-target-winsup:
4f0ef2d8 41730@if gcc-bootstrap
a90ef4bf 41731configure-target-winsup: stage_current
4f0ef2d8 41732@endif gcc-bootstrap
a90ef4bf
JM
41733@if target-winsup
41734maybe-configure-target-winsup: configure-target-winsup
41735configure-target-winsup:
0aed8855
PB
41736 @: $(MAKE); $(unstage)
41737 @r=`${PWD_COMMAND}`; export r; \
41738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41739 echo "Checking multilib configuration for winsup..."; \
41740 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
41741 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
41742 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
41743 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
41744 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 41745 else \
a90ef4bf
JM
41746 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
41747 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
41748 fi; \
41749 else \
a90ef4bf 41750 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 41751 fi; \
a90ef4bf
JM
41752 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
41753 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
1f53ca9a 41754 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41755 echo Configuring in $(TARGET_SUBDIR)/winsup; \
41756 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 41757 case $(srcdir) in \
b00612cc 41758 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41759 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 41760 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 41761 esac; \
1b6c0831 41762 module_srcdir=winsup; \
bba45b8b 41763 rm -f no-such-file || : ; \
1b6c0831
L
41764 CONFIG_SITE=no-such-file $(SHELL) \
41765 $$s/$$module_srcdir/configure \
41766 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41767 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41768 --target=${target_alias} \
bba45b8b 41769 || exit 1
a90ef4bf 41770@endif target-winsup
e393202e 41771
a7254363
PB
41772
41773
d545f33b
PB
41774
41775
a90ef4bf
JM
41776.PHONY: all-target-winsup maybe-all-target-winsup
41777maybe-all-target-winsup:
4f0ef2d8 41778@if gcc-bootstrap
a90ef4bf 41779all-target-winsup: stage_current
4f0ef2d8 41780@endif gcc-bootstrap
a90ef4bf
JM
41781@if target-winsup
41782TARGET-target-winsup=all
41783maybe-all-target-winsup: all-target-winsup
41784all-target-winsup: configure-target-winsup
0aed8855 41785 @: $(MAKE); $(unstage)
b40e3958
L
41786 @r=`${PWD_COMMAND}`; export r; \
41787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41788 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41789 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 41790 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41791 $(TARGET-target-winsup))
41792@endif target-winsup
e393202e 41793
a7254363
PB
41794
41795
d545f33b
PB
41796
41797
a90ef4bf
JM
41798.PHONY: check-target-winsup maybe-check-target-winsup
41799maybe-check-target-winsup:
41800@if target-winsup
41801maybe-check-target-winsup: check-target-winsup
16ae0395 41802
a90ef4bf 41803check-target-winsup:
0aed8855 41804 @: $(MAKE); $(unstage)
b40e3958
L
41805 @r=`${PWD_COMMAND}`; export r; \
41806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41807 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41808 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 41809 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 41810
a90ef4bf 41811@endif target-winsup
e393202e 41812
a90ef4bf
JM
41813.PHONY: install-target-winsup maybe-install-target-winsup
41814maybe-install-target-winsup:
41815@if target-winsup
41816maybe-install-target-winsup: install-target-winsup
4fa63067 41817
a90ef4bf 41818install-target-winsup: installdirs
0aed8855 41819 @: $(MAKE); $(unstage)
4fa63067
NN
41820 @r=`${PWD_COMMAND}`; export r; \
41821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41822 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41823 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 41824 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 41825
a90ef4bf 41826@endif target-winsup
4fa63067 41827
a90ef4bf
JM
41828.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
41829maybe-install-strip-target-winsup:
41830@if target-winsup
41831maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 41832
a90ef4bf 41833install-strip-target-winsup: installdirs
9b980aa1
RW
41834 @: $(MAKE); $(unstage)
41835 @r=`${PWD_COMMAND}`; export r; \
41836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41837 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41838 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
41839 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41840
a90ef4bf 41841@endif target-winsup
9b980aa1 41842
56a8fe78 41843# Other targets (info, dvi, pdf, etc.)
4fa63067 41844
a90ef4bf
JM
41845.PHONY: maybe-info-target-winsup info-target-winsup
41846maybe-info-target-winsup:
41847@if target-winsup
41848maybe-info-target-winsup: info-target-winsup
4fa63067 41849
a90ef4bf
JM
41850info-target-winsup: \
41851 configure-target-winsup
0aed8855 41852 @: $(MAKE); $(unstage)
a90ef4bf 41853 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41854 r=`${PWD_COMMAND}`; export r; \
41855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41856 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41857 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41858 for flag in $(EXTRA_TARGET_FLAGS); do \
41859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41860 done; \
a90ef4bf 41861 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41864 "RANLIB=$${RANLIB}" \
0c24b341 41865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41866 info) \
4fa63067
NN
41867 || exit 1
41868
a90ef4bf 41869@endif target-winsup
4fa63067 41870
a90ef4bf
JM
41871.PHONY: maybe-dvi-target-winsup dvi-target-winsup
41872maybe-dvi-target-winsup:
41873@if target-winsup
41874maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 41875
a90ef4bf
JM
41876dvi-target-winsup: \
41877 configure-target-winsup
0aed8855 41878 @: $(MAKE); $(unstage)
a90ef4bf 41879 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41880 r=`${PWD_COMMAND}`; export r; \
41881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41882 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41883 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41884 for flag in $(EXTRA_TARGET_FLAGS); do \
41885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41886 done; \
a90ef4bf 41887 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41890 "RANLIB=$${RANLIB}" \
0c24b341 41891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41892 dvi) \
4fa63067
NN
41893 || exit 1
41894
a90ef4bf 41895@endif target-winsup
4fa63067 41896
a90ef4bf
JM
41897.PHONY: maybe-pdf-target-winsup pdf-target-winsup
41898maybe-pdf-target-winsup:
41899@if target-winsup
41900maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 41901
a90ef4bf
JM
41902pdf-target-winsup: \
41903 configure-target-winsup
56a8fe78 41904 @: $(MAKE); $(unstage)
a90ef4bf 41905 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
56a8fe78
DD
41906 r=`${PWD_COMMAND}`; export r; \
41907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41908 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41909 echo "Doing pdf in $(TARGET_SUBDIR)/winsup" ; \
56a8fe78
DD
41910 for flag in $(EXTRA_TARGET_FLAGS); do \
41911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41912 done; \
a90ef4bf 41913 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
41914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41916 "RANLIB=$${RANLIB}" \
0c24b341 41917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41918 pdf) \
41919 || exit 1
41920
a90ef4bf 41921@endif target-winsup
56a8fe78 41922
a90ef4bf
JM
41923.PHONY: maybe-html-target-winsup html-target-winsup
41924maybe-html-target-winsup:
41925@if target-winsup
41926maybe-html-target-winsup: html-target-winsup
6d389afc 41927
a90ef4bf
JM
41928html-target-winsup: \
41929 configure-target-winsup
0aed8855 41930 @: $(MAKE); $(unstage)
a90ef4bf 41931 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
6d389afc
MS
41932 r=`${PWD_COMMAND}`; export r; \
41933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41934 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41935 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
6d389afc
MS
41936 for flag in $(EXTRA_TARGET_FLAGS); do \
41937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41938 done; \
a90ef4bf 41939 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
41940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41942 "RANLIB=$${RANLIB}" \
0c24b341 41943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41944 html) \
41945 || exit 1
41946
a90ef4bf 41947@endif target-winsup
6d389afc 41948
a90ef4bf
JM
41949.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
41950maybe-TAGS-target-winsup:
41951@if target-winsup
41952maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 41953
a90ef4bf
JM
41954TAGS-target-winsup: \
41955 configure-target-winsup
0aed8855 41956 @: $(MAKE); $(unstage)
a90ef4bf 41957 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41958 r=`${PWD_COMMAND}`; export r; \
41959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41960 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41961 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41962 for flag in $(EXTRA_TARGET_FLAGS); do \
41963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41964 done; \
a90ef4bf 41965 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41968 "RANLIB=$${RANLIB}" \
0c24b341 41969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41970 TAGS) \
4fa63067
NN
41971 || exit 1
41972
a90ef4bf 41973@endif target-winsup
4fa63067 41974
a90ef4bf
JM
41975.PHONY: maybe-install-info-target-winsup install-info-target-winsup
41976maybe-install-info-target-winsup:
41977@if target-winsup
41978maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 41979
a90ef4bf
JM
41980install-info-target-winsup: \
41981 configure-target-winsup \
41982 info-target-winsup
0aed8855 41983 @: $(MAKE); $(unstage)
a90ef4bf 41984 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41985 r=`${PWD_COMMAND}`; export r; \
41986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41987 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41988 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41989 for flag in $(EXTRA_TARGET_FLAGS); do \
41990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41991 done; \
a90ef4bf 41992 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41995 "RANLIB=$${RANLIB}" \
0c24b341 41996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41997 install-info) \
4fa63067
NN
41998 || exit 1
41999
a90ef4bf 42000@endif target-winsup
4fa63067 42001
a90ef4bf
JM
42002.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
42003maybe-install-pdf-target-winsup:
42004@if target-winsup
42005maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 42006
a90ef4bf
JM
42007install-pdf-target-winsup: \
42008 configure-target-winsup \
42009 pdf-target-winsup
a3ca38d2 42010 @: $(MAKE); $(unstage)
a90ef4bf 42011 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
a3ca38d2
DD
42012 r=`${PWD_COMMAND}`; export r; \
42013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42014 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42015 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup" ; \
a3ca38d2
DD
42016 for flag in $(EXTRA_TARGET_FLAGS); do \
42017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42018 done; \
a90ef4bf 42019 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
42020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42022 "RANLIB=$${RANLIB}" \
0c24b341 42023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42024 install-pdf) \
42025 || exit 1
42026
a90ef4bf 42027@endif target-winsup
a3ca38d2 42028
a90ef4bf
JM
42029.PHONY: maybe-install-html-target-winsup install-html-target-winsup
42030maybe-install-html-target-winsup:
42031@if target-winsup
42032maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 42033
a90ef4bf
JM
42034install-html-target-winsup: \
42035 configure-target-winsup \
42036 html-target-winsup
108a6f8e 42037 @: $(MAKE); $(unstage)
a90ef4bf 42038 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
108a6f8e
CD
42039 r=`${PWD_COMMAND}`; export r; \
42040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42041 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42042 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
108a6f8e
CD
42043 for flag in $(EXTRA_TARGET_FLAGS); do \
42044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42045 done; \
a90ef4bf 42046 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
42047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42049 "RANLIB=$${RANLIB}" \
0c24b341 42050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42051 install-html) \
42052 || exit 1
42053
a90ef4bf 42054@endif target-winsup
108a6f8e 42055
a90ef4bf
JM
42056.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
42057maybe-installcheck-target-winsup:
42058@if target-winsup
42059maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 42060
a90ef4bf
JM
42061installcheck-target-winsup: \
42062 configure-target-winsup
0aed8855 42063 @: $(MAKE); $(unstage)
a90ef4bf 42064 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42065 r=`${PWD_COMMAND}`; export r; \
42066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42067 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42068 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42069 for flag in $(EXTRA_TARGET_FLAGS); do \
42070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42071 done; \
a90ef4bf 42072 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42075 "RANLIB=$${RANLIB}" \
0c24b341 42076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42077 installcheck) \
4fa63067
NN
42078 || exit 1
42079
a90ef4bf 42080@endif target-winsup
4fa63067 42081
a90ef4bf
JM
42082.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
42083maybe-mostlyclean-target-winsup:
42084@if target-winsup
42085maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 42086
a90ef4bf 42087mostlyclean-target-winsup:
0aed8855 42088 @: $(MAKE); $(unstage)
a90ef4bf 42089 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42090 r=`${PWD_COMMAND}`; export r; \
42091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42092 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42093 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42094 for flag in $(EXTRA_TARGET_FLAGS); do \
42095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42096 done; \
a90ef4bf 42097 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42100 "RANLIB=$${RANLIB}" \
0c24b341 42101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42102 mostlyclean) \
4fa63067
NN
42103 || exit 1
42104
a90ef4bf 42105@endif target-winsup
4fa63067 42106
a90ef4bf
JM
42107.PHONY: maybe-clean-target-winsup clean-target-winsup
42108maybe-clean-target-winsup:
42109@if target-winsup
42110maybe-clean-target-winsup: clean-target-winsup
4fa63067 42111
a90ef4bf 42112clean-target-winsup:
0aed8855 42113 @: $(MAKE); $(unstage)
a90ef4bf 42114 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42115 r=`${PWD_COMMAND}`; export r; \
42116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42117 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42118 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42119 for flag in $(EXTRA_TARGET_FLAGS); do \
42120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42121 done; \
a90ef4bf 42122 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42125 "RANLIB=$${RANLIB}" \
0c24b341 42126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42127 clean) \
4fa63067
NN
42128 || exit 1
42129
a90ef4bf 42130@endif target-winsup
4fa63067 42131
a90ef4bf
JM
42132.PHONY: maybe-distclean-target-winsup distclean-target-winsup
42133maybe-distclean-target-winsup:
42134@if target-winsup
42135maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 42136
a90ef4bf 42137distclean-target-winsup:
0aed8855 42138 @: $(MAKE); $(unstage)
a90ef4bf 42139 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42140 r=`${PWD_COMMAND}`; export r; \
42141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42142 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42143 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42144 for flag in $(EXTRA_TARGET_FLAGS); do \
42145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42146 done; \
a90ef4bf 42147 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42150 "RANLIB=$${RANLIB}" \
0c24b341 42151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42152 distclean) \
4fa63067
NN
42153 || exit 1
42154
a90ef4bf 42155@endif target-winsup
4fa63067 42156
a90ef4bf
JM
42157.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
42158maybe-maintainer-clean-target-winsup:
42159@if target-winsup
42160maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 42161
a90ef4bf 42162maintainer-clean-target-winsup:
0aed8855 42163 @: $(MAKE); $(unstage)
a90ef4bf 42164 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42165 r=`${PWD_COMMAND}`; export r; \
42166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42167 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42168 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42169 for flag in $(EXTRA_TARGET_FLAGS); do \
42170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42171 done; \
a90ef4bf 42172 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42175 "RANLIB=$${RANLIB}" \
0c24b341 42176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42177 maintainer-clean) \
4fa63067 42178 || exit 1
16ae0395 42179
a90ef4bf 42180@endif target-winsup
e393202e
NN
42181
42182
15723a45 42183
e90269c8 42184
a7254363 42185
a90ef4bf
JM
42186.PHONY: configure-target-libgloss maybe-configure-target-libgloss
42187maybe-configure-target-libgloss:
4f0ef2d8 42188@if gcc-bootstrap
a90ef4bf 42189configure-target-libgloss: stage_current
4f0ef2d8 42190@endif gcc-bootstrap
a90ef4bf
JM
42191@if target-libgloss
42192maybe-configure-target-libgloss: configure-target-libgloss
42193configure-target-libgloss:
0aed8855
PB
42194 @: $(MAKE); $(unstage)
42195 @r=`${PWD_COMMAND}`; export r; \
42196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
42197 echo "Checking multilib configuration for libgloss..."; \
42198 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
42199 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
42200 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42201 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42202 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 42203 else \
a90ef4bf
JM
42204 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
42205 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
42206 fi; \
42207 else \
a90ef4bf 42208 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 42209 fi; \
a90ef4bf
JM
42210 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
42211 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
1f53ca9a 42212 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42213 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
42214 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 42215 case $(srcdir) in \
b00612cc 42216 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42217 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 42218 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42219 esac; \
1b6c0831 42220 module_srcdir=libgloss; \
bba45b8b 42221 rm -f no-such-file || : ; \
1b6c0831
L
42222 CONFIG_SITE=no-such-file $(SHELL) \
42223 $$s/$$module_srcdir/configure \
42224 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42225 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42226 --target=${target_alias} \
bba45b8b 42227 || exit 1
a90ef4bf 42228@endif target-libgloss
e393202e 42229
a7254363
PB
42230
42231
d545f33b
PB
42232
42233
a90ef4bf
JM
42234.PHONY: all-target-libgloss maybe-all-target-libgloss
42235maybe-all-target-libgloss:
4f0ef2d8 42236@if gcc-bootstrap
a90ef4bf 42237all-target-libgloss: stage_current
4f0ef2d8 42238@endif gcc-bootstrap
a90ef4bf
JM
42239@if target-libgloss
42240TARGET-target-libgloss=all
42241maybe-all-target-libgloss: all-target-libgloss
42242all-target-libgloss: configure-target-libgloss
0aed8855 42243 @: $(MAKE); $(unstage)
b40e3958
L
42244 @r=`${PWD_COMMAND}`; export r; \
42245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42246 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42247 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 42248 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42249 $(TARGET-target-libgloss))
42250@endif target-libgloss
e393202e 42251
a7254363
PB
42252
42253
d545f33b
PB
42254
42255
a90ef4bf
JM
42256.PHONY: check-target-libgloss maybe-check-target-libgloss
42257maybe-check-target-libgloss:
42258@if target-libgloss
42259maybe-check-target-libgloss: check-target-libgloss
16ae0395 42260
a90ef4bf
JM
42261# Dummy target for uncheckable module.
42262check-target-libgloss:
930314a4 42263
a90ef4bf 42264@endif target-libgloss
e393202e 42265
a90ef4bf
JM
42266.PHONY: install-target-libgloss maybe-install-target-libgloss
42267maybe-install-target-libgloss:
42268@if target-libgloss
42269maybe-install-target-libgloss: install-target-libgloss
4fa63067 42270
a90ef4bf 42271install-target-libgloss: installdirs
0aed8855 42272 @: $(MAKE); $(unstage)
4fa63067
NN
42273 @r=`${PWD_COMMAND}`; export r; \
42274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42275 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42276 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 42277 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42278
a90ef4bf 42279@endif target-libgloss
4fa63067 42280
a90ef4bf
JM
42281.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
42282maybe-install-strip-target-libgloss:
42283@if target-libgloss
42284maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 42285
a90ef4bf 42286install-strip-target-libgloss: installdirs
9b980aa1
RW
42287 @: $(MAKE); $(unstage)
42288 @r=`${PWD_COMMAND}`; export r; \
42289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42290 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42291 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
42292 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42293
a90ef4bf 42294@endif target-libgloss
9b980aa1 42295
56a8fe78 42296# Other targets (info, dvi, pdf, etc.)
4fa63067 42297
a90ef4bf
JM
42298.PHONY: maybe-info-target-libgloss info-target-libgloss
42299maybe-info-target-libgloss:
42300@if target-libgloss
42301maybe-info-target-libgloss: info-target-libgloss
4fa63067 42302
a90ef4bf
JM
42303info-target-libgloss: \
42304 configure-target-libgloss
0aed8855 42305 @: $(MAKE); $(unstage)
a90ef4bf 42306 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42307 r=`${PWD_COMMAND}`; export r; \
42308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42309 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42310 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42311 for flag in $(EXTRA_TARGET_FLAGS); do \
42312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42313 done; \
a90ef4bf 42314 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42317 "RANLIB=$${RANLIB}" \
0c24b341 42318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42319 info) \
4fa63067
NN
42320 || exit 1
42321
a90ef4bf 42322@endif target-libgloss
4fa63067 42323
a90ef4bf
JM
42324.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
42325maybe-dvi-target-libgloss:
42326@if target-libgloss
42327maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 42328
a90ef4bf
JM
42329dvi-target-libgloss: \
42330 configure-target-libgloss
0aed8855 42331 @: $(MAKE); $(unstage)
a90ef4bf 42332 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42333 r=`${PWD_COMMAND}`; export r; \
42334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42335 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42336 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42337 for flag in $(EXTRA_TARGET_FLAGS); do \
42338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42339 done; \
a90ef4bf 42340 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42343 "RANLIB=$${RANLIB}" \
0c24b341 42344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42345 dvi) \
4fa63067
NN
42346 || exit 1
42347
a90ef4bf 42348@endif target-libgloss
4fa63067 42349
a90ef4bf
JM
42350.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
42351maybe-pdf-target-libgloss:
42352@if target-libgloss
42353maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 42354
a90ef4bf
JM
42355pdf-target-libgloss: \
42356 configure-target-libgloss
56a8fe78 42357 @: $(MAKE); $(unstage)
a90ef4bf 42358 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
56a8fe78
DD
42359 r=`${PWD_COMMAND}`; export r; \
42360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42361 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42362 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss" ; \
56a8fe78
DD
42363 for flag in $(EXTRA_TARGET_FLAGS); do \
42364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42365 done; \
a90ef4bf 42366 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
42367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42369 "RANLIB=$${RANLIB}" \
0c24b341 42370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42371 pdf) \
42372 || exit 1
42373
a90ef4bf 42374@endif target-libgloss
56a8fe78 42375
a90ef4bf
JM
42376.PHONY: maybe-html-target-libgloss html-target-libgloss
42377maybe-html-target-libgloss:
42378@if target-libgloss
42379maybe-html-target-libgloss: html-target-libgloss
6d389afc 42380
a90ef4bf
JM
42381html-target-libgloss: \
42382 configure-target-libgloss
0aed8855 42383 @: $(MAKE); $(unstage)
a90ef4bf 42384 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
6d389afc
MS
42385 r=`${PWD_COMMAND}`; export r; \
42386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42387 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42388 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
6d389afc
MS
42389 for flag in $(EXTRA_TARGET_FLAGS); do \
42390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42391 done; \
a90ef4bf 42392 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
42393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42395 "RANLIB=$${RANLIB}" \
0c24b341 42396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42397 html) \
42398 || exit 1
42399
a90ef4bf 42400@endif target-libgloss
6d389afc 42401
a90ef4bf
JM
42402.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
42403maybe-TAGS-target-libgloss:
42404@if target-libgloss
42405maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 42406
a90ef4bf
JM
42407TAGS-target-libgloss: \
42408 configure-target-libgloss
0aed8855 42409 @: $(MAKE); $(unstage)
a90ef4bf 42410 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42411 r=`${PWD_COMMAND}`; export r; \
42412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42413 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42414 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42415 for flag in $(EXTRA_TARGET_FLAGS); do \
42416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42417 done; \
a90ef4bf 42418 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42421 "RANLIB=$${RANLIB}" \
0c24b341 42422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42423 TAGS) \
4fa63067
NN
42424 || exit 1
42425
a90ef4bf 42426@endif target-libgloss
4fa63067 42427
a90ef4bf
JM
42428.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
42429maybe-install-info-target-libgloss:
42430@if target-libgloss
42431maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 42432
a90ef4bf
JM
42433install-info-target-libgloss: \
42434 configure-target-libgloss \
42435 info-target-libgloss
0aed8855 42436 @: $(MAKE); $(unstage)
a90ef4bf 42437 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42438 r=`${PWD_COMMAND}`; export r; \
42439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42440 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42441 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42442 for flag in $(EXTRA_TARGET_FLAGS); do \
42443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42444 done; \
a90ef4bf 42445 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42448 "RANLIB=$${RANLIB}" \
0c24b341 42449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42450 install-info) \
4fa63067
NN
42451 || exit 1
42452
a90ef4bf 42453@endif target-libgloss
4fa63067 42454
a90ef4bf
JM
42455.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
42456maybe-install-pdf-target-libgloss:
42457@if target-libgloss
42458maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 42459
a90ef4bf
JM
42460install-pdf-target-libgloss: \
42461 configure-target-libgloss \
42462 pdf-target-libgloss
a3ca38d2 42463 @: $(MAKE); $(unstage)
a90ef4bf 42464 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
a3ca38d2
DD
42465 r=`${PWD_COMMAND}`; export r; \
42466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42467 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42468 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss" ; \
a3ca38d2
DD
42469 for flag in $(EXTRA_TARGET_FLAGS); do \
42470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42471 done; \
a90ef4bf 42472 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
42473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42475 "RANLIB=$${RANLIB}" \
0c24b341 42476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42477 install-pdf) \
42478 || exit 1
42479
a90ef4bf 42480@endif target-libgloss
a3ca38d2 42481
a90ef4bf
JM
42482.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
42483maybe-install-html-target-libgloss:
42484@if target-libgloss
42485maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 42486
a90ef4bf
JM
42487install-html-target-libgloss: \
42488 configure-target-libgloss \
42489 html-target-libgloss
108a6f8e 42490 @: $(MAKE); $(unstage)
a90ef4bf 42491 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
108a6f8e
CD
42492 r=`${PWD_COMMAND}`; export r; \
42493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42494 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42495 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
108a6f8e
CD
42496 for flag in $(EXTRA_TARGET_FLAGS); do \
42497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42498 done; \
a90ef4bf 42499 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
42500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42502 "RANLIB=$${RANLIB}" \
0c24b341 42503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42504 install-html) \
42505 || exit 1
42506
a90ef4bf 42507@endif target-libgloss
108a6f8e 42508
a90ef4bf
JM
42509.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
42510maybe-installcheck-target-libgloss:
42511@if target-libgloss
42512maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 42513
a90ef4bf
JM
42514installcheck-target-libgloss: \
42515 configure-target-libgloss
0aed8855 42516 @: $(MAKE); $(unstage)
a90ef4bf 42517 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42518 r=`${PWD_COMMAND}`; export r; \
42519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42520 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42521 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42522 for flag in $(EXTRA_TARGET_FLAGS); do \
42523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42524 done; \
a90ef4bf 42525 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42528 "RANLIB=$${RANLIB}" \
0c24b341 42529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42530 installcheck) \
4fa63067
NN
42531 || exit 1
42532
a90ef4bf 42533@endif target-libgloss
4fa63067 42534
a90ef4bf
JM
42535.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
42536maybe-mostlyclean-target-libgloss:
42537@if target-libgloss
42538maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 42539
a90ef4bf 42540mostlyclean-target-libgloss:
0aed8855 42541 @: $(MAKE); $(unstage)
a90ef4bf 42542 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42543 r=`${PWD_COMMAND}`; export r; \
42544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42545 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42546 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42547 for flag in $(EXTRA_TARGET_FLAGS); do \
42548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42549 done; \
a90ef4bf 42550 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42553 "RANLIB=$${RANLIB}" \
0c24b341 42554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42555 mostlyclean) \
4fa63067
NN
42556 || exit 1
42557
a90ef4bf 42558@endif target-libgloss
4fa63067 42559
a90ef4bf
JM
42560.PHONY: maybe-clean-target-libgloss clean-target-libgloss
42561maybe-clean-target-libgloss:
42562@if target-libgloss
42563maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 42564
a90ef4bf 42565clean-target-libgloss:
0aed8855 42566 @: $(MAKE); $(unstage)
a90ef4bf 42567 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42568 r=`${PWD_COMMAND}`; export r; \
42569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42570 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42571 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42572 for flag in $(EXTRA_TARGET_FLAGS); do \
42573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42574 done; \
a90ef4bf 42575 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42578 "RANLIB=$${RANLIB}" \
0c24b341 42579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42580 clean) \
4fa63067
NN
42581 || exit 1
42582
a90ef4bf 42583@endif target-libgloss
4fa63067 42584
a90ef4bf
JM
42585.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
42586maybe-distclean-target-libgloss:
42587@if target-libgloss
42588maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 42589
a90ef4bf 42590distclean-target-libgloss:
0aed8855 42591 @: $(MAKE); $(unstage)
a90ef4bf 42592 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42593 r=`${PWD_COMMAND}`; export r; \
42594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42595 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42596 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42597 for flag in $(EXTRA_TARGET_FLAGS); do \
42598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42599 done; \
a90ef4bf 42600 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42603 "RANLIB=$${RANLIB}" \
0c24b341 42604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42605 distclean) \
4fa63067
NN
42606 || exit 1
42607
a90ef4bf 42608@endif target-libgloss
4fa63067 42609
a90ef4bf
JM
42610.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
42611maybe-maintainer-clean-target-libgloss:
42612@if target-libgloss
42613maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 42614
a90ef4bf 42615maintainer-clean-target-libgloss:
0aed8855 42616 @: $(MAKE); $(unstage)
a90ef4bf 42617 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42618 r=`${PWD_COMMAND}`; export r; \
42619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42620 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42621 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42622 for flag in $(EXTRA_TARGET_FLAGS); do \
42623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42624 done; \
a90ef4bf 42625 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42628 "RANLIB=$${RANLIB}" \
0c24b341 42629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42630 maintainer-clean) \
4fa63067 42631 || exit 1
16ae0395 42632
a90ef4bf 42633@endif target-libgloss
e393202e
NN
42634
42635
15723a45 42636
a7254363
PB
42637
42638
a7254363
PB
42639.PHONY: configure-target-libffi maybe-configure-target-libffi
42640maybe-configure-target-libffi:
4f0ef2d8
CD
42641@if gcc-bootstrap
42642configure-target-libffi: stage_current
42643@endif gcc-bootstrap
a7254363
PB
42644@if target-libffi
42645maybe-configure-target-libffi: configure-target-libffi
c52c6897 42646configure-target-libffi:
0aed8855
PB
42647 @: $(MAKE); $(unstage)
42648 @r=`${PWD_COMMAND}`; export r; \
42649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42650 echo "Checking multilib configuration for libffi..."; \
42651 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
42652 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
42653 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
42654 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
42655 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
42656 else \
42657 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
42658 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
42659 fi; \
42660 else \
42661 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
42662 fi; \
42663 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
4fa63067 42664 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
1f53ca9a 42665 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42666 echo Configuring in $(TARGET_SUBDIR)/libffi; \
42667 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 42668 case $(srcdir) in \
b00612cc
PB
42669 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42670 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
42671 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42672 esac; \
1b6c0831 42673 module_srcdir=libffi; \
bba45b8b 42674 rm -f no-such-file || : ; \
1b6c0831
L
42675 CONFIG_SITE=no-such-file $(SHELL) \
42676 $$s/$$module_srcdir/configure \
42677 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42678 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42679 --target=${target_alias} \
bba45b8b 42680 || exit 1
6bd3dfaa 42681@endif target-libffi
e393202e 42682
a7254363
PB
42683
42684
d545f33b
PB
42685
42686
4fa63067
NN
42687.PHONY: all-target-libffi maybe-all-target-libffi
42688maybe-all-target-libffi:
4f0ef2d8
CD
42689@if gcc-bootstrap
42690all-target-libffi: stage_current
42691@endif gcc-bootstrap
6bd3dfaa 42692@if target-libffi
72b2455a 42693TARGET-target-libffi=all
6bd3dfaa 42694maybe-all-target-libffi: all-target-libffi
4fa63067 42695all-target-libffi: configure-target-libffi
0aed8855 42696 @: $(MAKE); $(unstage)
b40e3958
L
42697 @r=`${PWD_COMMAND}`; export r; \
42698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42699 $(NORMAL_TARGET_EXPORTS) \
4fa63067 42700 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 42701 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 42702 $(TARGET-target-libffi))
6bd3dfaa 42703@endif target-libffi
e393202e 42704
a7254363
PB
42705
42706
d545f33b
PB
42707
42708
4fa63067
NN
42709.PHONY: check-target-libffi maybe-check-target-libffi
42710maybe-check-target-libffi:
6bd3dfaa
PB
42711@if target-libffi
42712maybe-check-target-libffi: check-target-libffi
16ae0395 42713
4fa63067 42714check-target-libffi:
0aed8855 42715 @: $(MAKE); $(unstage)
b40e3958
L
42716 @r=`${PWD_COMMAND}`; export r; \
42717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42718 $(NORMAL_TARGET_EXPORTS) \
4fa63067 42719 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 42720 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 42721
6bd3dfaa 42722@endif target-libffi
e393202e 42723
4fa63067
NN
42724.PHONY: install-target-libffi maybe-install-target-libffi
42725maybe-install-target-libffi:
6bd3dfaa
PB
42726@if target-libffi
42727maybe-install-target-libffi: install-target-libffi
16ae0395 42728
b836cb18
JBG
42729# Dummy target for uninstallable.
42730install-target-libffi:
e393202e 42731
6bd3dfaa 42732@endif target-libffi
e393202e 42733
9b980aa1
RW
42734.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
42735maybe-install-strip-target-libffi:
42736@if target-libffi
42737maybe-install-strip-target-libffi: install-strip-target-libffi
42738
b836cb18
JBG
42739# Dummy target for uninstallable.
42740install-strip-target-libffi:
9b980aa1
RW
42741
42742@endif target-libffi
42743
56a8fe78 42744# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
42745
42746.PHONY: maybe-info-target-libffi info-target-libffi
42747maybe-info-target-libffi:
6bd3dfaa
PB
42748@if target-libffi
42749maybe-info-target-libffi: info-target-libffi
4fa63067
NN
42750
42751info-target-libffi: \
42752 configure-target-libffi
0aed8855 42753 @: $(MAKE); $(unstage)
4fa63067
NN
42754 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42755 r=`${PWD_COMMAND}`; export r; \
42756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42757 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42758 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
42759 for flag in $(EXTRA_TARGET_FLAGS); do \
42760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42761 done; \
42762 (cd $(TARGET_SUBDIR)/libffi && \
42763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42765 "RANLIB=$${RANLIB}" \
0c24b341 42766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42767 info) \
4fa63067
NN
42768 || exit 1
42769
6bd3dfaa 42770@endif target-libffi
4fa63067
NN
42771
42772.PHONY: maybe-dvi-target-libffi dvi-target-libffi
42773maybe-dvi-target-libffi:
6bd3dfaa
PB
42774@if target-libffi
42775maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
42776
42777dvi-target-libffi: \
42778 configure-target-libffi
0aed8855 42779 @: $(MAKE); $(unstage)
4fa63067
NN
42780 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42781 r=`${PWD_COMMAND}`; export r; \
42782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42783 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42784 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
42785 for flag in $(EXTRA_TARGET_FLAGS); do \
42786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42787 done; \
42788 (cd $(TARGET_SUBDIR)/libffi && \
42789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42791 "RANLIB=$${RANLIB}" \
0c24b341 42792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42793 dvi) \
4fa63067
NN
42794 || exit 1
42795
6bd3dfaa 42796@endif target-libffi
4fa63067 42797
56a8fe78
DD
42798.PHONY: maybe-pdf-target-libffi pdf-target-libffi
42799maybe-pdf-target-libffi:
42800@if target-libffi
42801maybe-pdf-target-libffi: pdf-target-libffi
42802
42803pdf-target-libffi: \
42804 configure-target-libffi
42805 @: $(MAKE); $(unstage)
42806 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42807 r=`${PWD_COMMAND}`; export r; \
42808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42809 $(NORMAL_TARGET_EXPORTS) \
42810 echo "Doing pdf in $(TARGET_SUBDIR)/libffi" ; \
42811 for flag in $(EXTRA_TARGET_FLAGS); do \
42812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42813 done; \
42814 (cd $(TARGET_SUBDIR)/libffi && \
42815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42817 "RANLIB=$${RANLIB}" \
0c24b341 42818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42819 pdf) \
42820 || exit 1
42821
42822@endif target-libffi
42823
6d389afc
MS
42824.PHONY: maybe-html-target-libffi html-target-libffi
42825maybe-html-target-libffi:
42826@if target-libffi
42827maybe-html-target-libffi: html-target-libffi
42828
42829html-target-libffi: \
42830 configure-target-libffi
0aed8855 42831 @: $(MAKE); $(unstage)
6d389afc
MS
42832 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42833 r=`${PWD_COMMAND}`; export r; \
42834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
42835 $(NORMAL_TARGET_EXPORTS) \
42836 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
42837 for flag in $(EXTRA_TARGET_FLAGS); do \
42838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42839 done; \
42840 (cd $(TARGET_SUBDIR)/libffi && \
42841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42843 "RANLIB=$${RANLIB}" \
0c24b341 42844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42845 html) \
42846 || exit 1
42847
42848@endif target-libffi
42849
4fa63067
NN
42850.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
42851maybe-TAGS-target-libffi:
6bd3dfaa
PB
42852@if target-libffi
42853maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
42854
42855TAGS-target-libffi: \
42856 configure-target-libffi
0aed8855 42857 @: $(MAKE); $(unstage)
4fa63067
NN
42858 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42859 r=`${PWD_COMMAND}`; export r; \
42860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42861 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42862 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
42863 for flag in $(EXTRA_TARGET_FLAGS); do \
42864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42865 done; \
42866 (cd $(TARGET_SUBDIR)/libffi && \
42867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42869 "RANLIB=$${RANLIB}" \
0c24b341 42870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42871 TAGS) \
4fa63067
NN
42872 || exit 1
42873
6bd3dfaa 42874@endif target-libffi
4fa63067
NN
42875
42876.PHONY: maybe-install-info-target-libffi install-info-target-libffi
42877maybe-install-info-target-libffi:
6bd3dfaa
PB
42878@if target-libffi
42879maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
42880
42881install-info-target-libffi: \
42882 configure-target-libffi \
42883 info-target-libffi
0aed8855 42884 @: $(MAKE); $(unstage)
4fa63067
NN
42885 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42886 r=`${PWD_COMMAND}`; export r; \
42887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42888 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42889 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
42890 for flag in $(EXTRA_TARGET_FLAGS); do \
42891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42892 done; \
42893 (cd $(TARGET_SUBDIR)/libffi && \
42894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42896 "RANLIB=$${RANLIB}" \
0c24b341 42897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42898 install-info) \
4fa63067
NN
42899 || exit 1
42900
6bd3dfaa 42901@endif target-libffi
4fa63067 42902
a3ca38d2
DD
42903.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
42904maybe-install-pdf-target-libffi:
42905@if target-libffi
42906maybe-install-pdf-target-libffi: install-pdf-target-libffi
42907
42908install-pdf-target-libffi: \
42909 configure-target-libffi \
42910 pdf-target-libffi
42911 @: $(MAKE); $(unstage)
42912 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42913 r=`${PWD_COMMAND}`; export r; \
42914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42915 $(NORMAL_TARGET_EXPORTS) \
42916 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi" ; \
42917 for flag in $(EXTRA_TARGET_FLAGS); do \
42918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42919 done; \
42920 (cd $(TARGET_SUBDIR)/libffi && \
42921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42923 "RANLIB=$${RANLIB}" \
0c24b341 42924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42925 install-pdf) \
42926 || exit 1
42927
42928@endif target-libffi
42929
108a6f8e
CD
42930.PHONY: maybe-install-html-target-libffi install-html-target-libffi
42931maybe-install-html-target-libffi:
42932@if target-libffi
42933maybe-install-html-target-libffi: install-html-target-libffi
42934
42935install-html-target-libffi: \
42936 configure-target-libffi \
42937 html-target-libffi
42938 @: $(MAKE); $(unstage)
42939 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42940 r=`${PWD_COMMAND}`; export r; \
42941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42942 $(NORMAL_TARGET_EXPORTS) \
42943 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
42944 for flag in $(EXTRA_TARGET_FLAGS); do \
42945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42946 done; \
42947 (cd $(TARGET_SUBDIR)/libffi && \
42948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42950 "RANLIB=$${RANLIB}" \
0c24b341 42951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42952 install-html) \
42953 || exit 1
42954
42955@endif target-libffi
42956
4fa63067
NN
42957.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
42958maybe-installcheck-target-libffi:
6bd3dfaa
PB
42959@if target-libffi
42960maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
42961
42962installcheck-target-libffi: \
42963 configure-target-libffi
0aed8855 42964 @: $(MAKE); $(unstage)
4fa63067
NN
42965 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42966 r=`${PWD_COMMAND}`; export r; \
42967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42968 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42969 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
42970 for flag in $(EXTRA_TARGET_FLAGS); do \
42971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42972 done; \
42973 (cd $(TARGET_SUBDIR)/libffi && \
42974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42976 "RANLIB=$${RANLIB}" \
0c24b341 42977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42978 installcheck) \
4fa63067
NN
42979 || exit 1
42980
6bd3dfaa 42981@endif target-libffi
4fa63067
NN
42982
42983.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
42984maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
42985@if target-libffi
42986maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
42987
42988mostlyclean-target-libffi:
0aed8855 42989 @: $(MAKE); $(unstage)
4fa63067
NN
42990 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42991 r=`${PWD_COMMAND}`; export r; \
42992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42993 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42994 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
42995 for flag in $(EXTRA_TARGET_FLAGS); do \
42996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42997 done; \
42998 (cd $(TARGET_SUBDIR)/libffi && \
42999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43001 "RANLIB=$${RANLIB}" \
0c24b341 43002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43003 mostlyclean) \
4fa63067
NN
43004 || exit 1
43005
6bd3dfaa 43006@endif target-libffi
4fa63067
NN
43007
43008.PHONY: maybe-clean-target-libffi clean-target-libffi
43009maybe-clean-target-libffi:
6bd3dfaa
PB
43010@if target-libffi
43011maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
43012
43013clean-target-libffi:
0aed8855 43014 @: $(MAKE); $(unstage)
4fa63067
NN
43015 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43016 r=`${PWD_COMMAND}`; export r; \
43017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43018 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43019 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
43020 for flag in $(EXTRA_TARGET_FLAGS); do \
43021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43022 done; \
43023 (cd $(TARGET_SUBDIR)/libffi && \
43024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43026 "RANLIB=$${RANLIB}" \
0c24b341 43027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43028 clean) \
4fa63067
NN
43029 || exit 1
43030
6bd3dfaa 43031@endif target-libffi
4fa63067
NN
43032
43033.PHONY: maybe-distclean-target-libffi distclean-target-libffi
43034maybe-distclean-target-libffi:
6bd3dfaa
PB
43035@if target-libffi
43036maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
43037
43038distclean-target-libffi:
0aed8855 43039 @: $(MAKE); $(unstage)
4fa63067
NN
43040 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43041 r=`${PWD_COMMAND}`; export r; \
43042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43043 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43044 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
43045 for flag in $(EXTRA_TARGET_FLAGS); do \
43046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43047 done; \
43048 (cd $(TARGET_SUBDIR)/libffi && \
43049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43051 "RANLIB=$${RANLIB}" \
0c24b341 43052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43053 distclean) \
4fa63067
NN
43054 || exit 1
43055
6bd3dfaa 43056@endif target-libffi
4fa63067
NN
43057
43058.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
43059maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
43060@if target-libffi
43061maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
43062
43063maintainer-clean-target-libffi:
0aed8855 43064 @: $(MAKE); $(unstage)
4fa63067
NN
43065 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43066 r=`${PWD_COMMAND}`; export r; \
43067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43068 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43069 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
43070 for flag in $(EXTRA_TARGET_FLAGS); do \
43071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43072 done; \
43073 (cd $(TARGET_SUBDIR)/libffi && \
43074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43076 "RANLIB=$${RANLIB}" \
0c24b341 43077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43078 maintainer-clean) \
4fa63067
NN
43079 || exit 1
43080
6bd3dfaa 43081@endif target-libffi
4fa63067
NN
43082
43083
15723a45 43084
a7254363 43085
15723a45 43086
a7254363
PB
43087.PHONY: configure-target-libjava maybe-configure-target-libjava
43088maybe-configure-target-libjava:
4f0ef2d8
CD
43089@if gcc-bootstrap
43090configure-target-libjava: stage_current
43091@endif gcc-bootstrap
a7254363
PB
43092@if target-libjava
43093maybe-configure-target-libjava: configure-target-libjava
c52c6897 43094configure-target-libjava:
0aed8855
PB
43095 @: $(MAKE); $(unstage)
43096 @r=`${PWD_COMMAND}`; export r; \
43097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43098 echo "Checking multilib configuration for libjava..."; \
43099 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
43100 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
43101 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
43102 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
43103 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
43104 else \
43105 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
43106 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
43107 fi; \
43108 else \
43109 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
c52c6897
PB
43110 fi; \
43111 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
4fa63067 43112 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
1f53ca9a 43113 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43114 echo Configuring in $(TARGET_SUBDIR)/libjava; \
43115 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b 43116 case $(srcdir) in \
b00612cc
PB
43117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43118 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
43119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43120 esac; \
1b6c0831 43121 module_srcdir=libjava; \
bba45b8b 43122 rm -f no-such-file || : ; \
1b6c0831
L
43123 CONFIG_SITE=no-such-file $(SHELL) \
43124 $$s/$$module_srcdir/configure \
43125 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43126 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43127 --target=${target_alias} $(EXTRA_CONFIGARGS_LIBJAVA) \
bba45b8b 43128 || exit 1
6bd3dfaa 43129@endif target-libjava
e393202e 43130
a7254363
PB
43131
43132
d545f33b
PB
43133
43134
4fa63067
NN
43135.PHONY: all-target-libjava maybe-all-target-libjava
43136maybe-all-target-libjava:
4f0ef2d8
CD
43137@if gcc-bootstrap
43138all-target-libjava: stage_current
43139@endif gcc-bootstrap
6bd3dfaa 43140@if target-libjava
72b2455a 43141TARGET-target-libjava=all
6bd3dfaa 43142maybe-all-target-libjava: all-target-libjava
4fa63067 43143all-target-libjava: configure-target-libjava
0aed8855 43144 @: $(MAKE); $(unstage)
b40e3958
L
43145 @r=`${PWD_COMMAND}`; export r; \
43146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43147 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43148 (cd $(TARGET_SUBDIR)/libjava && \
b3676d82 43149 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 43150 $(TARGET-target-libjava))
6bd3dfaa 43151@endif target-libjava
e393202e 43152
a7254363
PB
43153
43154
d545f33b
PB
43155
43156
4fa63067
NN
43157.PHONY: check-target-libjava maybe-check-target-libjava
43158maybe-check-target-libjava:
6bd3dfaa
PB
43159@if target-libjava
43160maybe-check-target-libjava: check-target-libjava
16ae0395 43161
4fa63067 43162check-target-libjava:
0aed8855 43163 @: $(MAKE); $(unstage)
4fa63067
NN
43164 @r=`${PWD_COMMAND}`; export r; \
43165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43166 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43167 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43168 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 43169
6bd3dfaa 43170@endif target-libjava
930314a4 43171
4fa63067
NN
43172.PHONY: install-target-libjava maybe-install-target-libjava
43173maybe-install-target-libjava:
6bd3dfaa
PB
43174@if target-libjava
43175maybe-install-target-libjava: install-target-libjava
16ae0395 43176
4fa63067 43177install-target-libjava: installdirs
0aed8855 43178 @: $(MAKE); $(unstage)
b40e3958
L
43179 @r=`${PWD_COMMAND}`; export r; \
43180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43181 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43182 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43183 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43184
6bd3dfaa 43185@endif target-libjava
e393202e 43186
9b980aa1
RW
43187.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
43188maybe-install-strip-target-libjava:
43189@if target-libjava
43190maybe-install-strip-target-libjava: install-strip-target-libjava
43191
43192install-strip-target-libjava: installdirs
43193 @: $(MAKE); $(unstage)
43194 @r=`${PWD_COMMAND}`; export r; \
43195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43196 $(RAW_CXX_TARGET_EXPORTS) \
43197 (cd $(TARGET_SUBDIR)/libjava && \
43198 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43199
43200@endif target-libjava
43201
56a8fe78 43202# Other targets (info, dvi, pdf, etc.)
15723a45 43203
4fa63067
NN
43204.PHONY: maybe-info-target-libjava info-target-libjava
43205maybe-info-target-libjava:
6bd3dfaa
PB
43206@if target-libjava
43207maybe-info-target-libjava: info-target-libjava
15723a45 43208
4fa63067
NN
43209info-target-libjava: \
43210 configure-target-libjava
0aed8855 43211 @: $(MAKE); $(unstage)
4fa63067 43212 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
43213 r=`${PWD_COMMAND}`; export r; \
43214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43215 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43216 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
43217 for flag in $(EXTRA_TARGET_FLAGS); do \
43218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43219 done; \
43220 (cd $(TARGET_SUBDIR)/libjava && \
43221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43223 "RANLIB=$${RANLIB}" \
0c24b341 43224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43225 info) \
bba45b8b 43226 || exit 1
e393202e 43227
6bd3dfaa 43228@endif target-libjava
4fa63067
NN
43229
43230.PHONY: maybe-dvi-target-libjava dvi-target-libjava
43231maybe-dvi-target-libjava:
6bd3dfaa
PB
43232@if target-libjava
43233maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
43234
43235dvi-target-libjava: \
43236 configure-target-libjava
0aed8855 43237 @: $(MAKE); $(unstage)
4fa63067
NN
43238 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43239 r=`${PWD_COMMAND}`; export r; \
b40e3958 43240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43241 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43242 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
43243 for flag in $(EXTRA_TARGET_FLAGS); do \
43244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43245 done; \
43246 (cd $(TARGET_SUBDIR)/libjava && \
43247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43249 "RANLIB=$${RANLIB}" \
0c24b341 43250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43251 dvi) \
4fa63067 43252 || exit 1
e393202e 43253
6bd3dfaa 43254@endif target-libjava
16ae0395 43255
56a8fe78
DD
43256.PHONY: maybe-pdf-target-libjava pdf-target-libjava
43257maybe-pdf-target-libjava:
43258@if target-libjava
43259maybe-pdf-target-libjava: pdf-target-libjava
43260
43261pdf-target-libjava: \
43262 configure-target-libjava
43263 @: $(MAKE); $(unstage)
43264 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43265 r=`${PWD_COMMAND}`; export r; \
43266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43267 $(RAW_CXX_TARGET_EXPORTS) \
43268 echo "Doing pdf in $(TARGET_SUBDIR)/libjava" ; \
43269 for flag in $(EXTRA_TARGET_FLAGS); do \
43270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43271 done; \
43272 (cd $(TARGET_SUBDIR)/libjava && \
43273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43275 "RANLIB=$${RANLIB}" \
0c24b341 43276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43277 pdf) \
43278 || exit 1
43279
43280@endif target-libjava
43281
6d389afc
MS
43282.PHONY: maybe-html-target-libjava html-target-libjava
43283maybe-html-target-libjava:
43284@if target-libjava
43285maybe-html-target-libjava: html-target-libjava
43286
43287html-target-libjava: \
43288 configure-target-libjava
0aed8855 43289 @: $(MAKE); $(unstage)
6d389afc
MS
43290 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43291 r=`${PWD_COMMAND}`; export r; \
43292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
43293 $(RAW_CXX_TARGET_EXPORTS) \
43294 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
43295 for flag in $(EXTRA_TARGET_FLAGS); do \
43296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43297 done; \
43298 (cd $(TARGET_SUBDIR)/libjava && \
43299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43301 "RANLIB=$${RANLIB}" \
0c24b341 43302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43303 html) \
43304 || exit 1
43305
43306@endif target-libjava
43307
4fa63067
NN
43308.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
43309maybe-TAGS-target-libjava:
6bd3dfaa
PB
43310@if target-libjava
43311maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
43312
43313TAGS-target-libjava: \
43314 configure-target-libjava
0aed8855 43315 @: $(MAKE); $(unstage)
4fa63067
NN
43316 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43317 r=`${PWD_COMMAND}`; export r; \
b40e3958 43318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43319 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43320 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
43321 for flag in $(EXTRA_TARGET_FLAGS); do \
43322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43323 done; \
43324 (cd $(TARGET_SUBDIR)/libjava && \
43325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43327 "RANLIB=$${RANLIB}" \
0c24b341 43328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43329 TAGS) \
4fa63067 43330 || exit 1
e393202e 43331
6bd3dfaa 43332@endif target-libjava
930314a4 43333
4fa63067
NN
43334.PHONY: maybe-install-info-target-libjava install-info-target-libjava
43335maybe-install-info-target-libjava:
6bd3dfaa
PB
43336@if target-libjava
43337maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 43338
4fa63067
NN
43339install-info-target-libjava: \
43340 configure-target-libjava \
43341 info-target-libjava
0aed8855 43342 @: $(MAKE); $(unstage)
4fa63067
NN
43343 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43344 r=`${PWD_COMMAND}`; export r; \
b40e3958 43345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43346 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43347 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
43348 for flag in $(EXTRA_TARGET_FLAGS); do \
43349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43350 done; \
43351 (cd $(TARGET_SUBDIR)/libjava && \
43352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43354 "RANLIB=$${RANLIB}" \
0c24b341 43355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43356 install-info) \
4fa63067 43357 || exit 1
e393202e 43358
6bd3dfaa 43359@endif target-libjava
e393202e 43360
a3ca38d2
DD
43361.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
43362maybe-install-pdf-target-libjava:
43363@if target-libjava
43364maybe-install-pdf-target-libjava: install-pdf-target-libjava
43365
43366install-pdf-target-libjava: \
43367 configure-target-libjava \
43368 pdf-target-libjava
43369 @: $(MAKE); $(unstage)
43370 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43371 r=`${PWD_COMMAND}`; export r; \
43372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43373 $(RAW_CXX_TARGET_EXPORTS) \
43374 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava" ; \
43375 for flag in $(EXTRA_TARGET_FLAGS); do \
43376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43377 done; \
43378 (cd $(TARGET_SUBDIR)/libjava && \
43379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43381 "RANLIB=$${RANLIB}" \
0c24b341 43382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43383 install-pdf) \
43384 || exit 1
43385
43386@endif target-libjava
43387
108a6f8e
CD
43388.PHONY: maybe-install-html-target-libjava install-html-target-libjava
43389maybe-install-html-target-libjava:
43390@if target-libjava
43391maybe-install-html-target-libjava: install-html-target-libjava
43392
43393install-html-target-libjava: \
43394 configure-target-libjava \
43395 html-target-libjava
43396 @: $(MAKE); $(unstage)
43397 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43398 r=`${PWD_COMMAND}`; export r; \
43399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43400 $(RAW_CXX_TARGET_EXPORTS) \
43401 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
43402 for flag in $(EXTRA_TARGET_FLAGS); do \
43403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43404 done; \
43405 (cd $(TARGET_SUBDIR)/libjava && \
43406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43408 "RANLIB=$${RANLIB}" \
0c24b341 43409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43410 install-html) \
43411 || exit 1
43412
43413@endif target-libjava
43414
4fa63067
NN
43415.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
43416maybe-installcheck-target-libjava:
6bd3dfaa
PB
43417@if target-libjava
43418maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 43419
4fa63067
NN
43420installcheck-target-libjava: \
43421 configure-target-libjava
0aed8855 43422 @: $(MAKE); $(unstage)
4fa63067
NN
43423 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43424 r=`${PWD_COMMAND}`; export r; \
43425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43426 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43427 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
43428 for flag in $(EXTRA_TARGET_FLAGS); do \
43429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43430 done; \
43431 (cd $(TARGET_SUBDIR)/libjava && \
43432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43434 "RANLIB=$${RANLIB}" \
0c24b341 43435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43436 installcheck) \
4fa63067 43437 || exit 1
15723a45 43438
6bd3dfaa 43439@endif target-libjava
4fa63067
NN
43440
43441.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
43442maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
43443@if target-libjava
43444maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
43445
43446mostlyclean-target-libjava:
0aed8855 43447 @: $(MAKE); $(unstage)
4fa63067
NN
43448 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43449 r=`${PWD_COMMAND}`; export r; \
43450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43451 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43452 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
43453 for flag in $(EXTRA_TARGET_FLAGS); do \
43454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43455 done; \
43456 (cd $(TARGET_SUBDIR)/libjava && \
43457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43459 "RANLIB=$${RANLIB}" \
0c24b341 43460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43461 mostlyclean) \
4fa63067
NN
43462 || exit 1
43463
6bd3dfaa 43464@endif target-libjava
4fa63067
NN
43465
43466.PHONY: maybe-clean-target-libjava clean-target-libjava
43467maybe-clean-target-libjava:
6bd3dfaa
PB
43468@if target-libjava
43469maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
43470
43471clean-target-libjava:
0aed8855 43472 @: $(MAKE); $(unstage)
4fa63067 43473 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
43474 r=`${PWD_COMMAND}`; export r; \
43475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43476 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43477 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
43478 for flag in $(EXTRA_TARGET_FLAGS); do \
43479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43480 done; \
43481 (cd $(TARGET_SUBDIR)/libjava && \
43482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43484 "RANLIB=$${RANLIB}" \
0c24b341 43485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43486 clean) \
bba45b8b 43487 || exit 1
e393202e 43488
6bd3dfaa 43489@endif target-libjava
e393202e 43490
4fa63067
NN
43491.PHONY: maybe-distclean-target-libjava distclean-target-libjava
43492maybe-distclean-target-libjava:
6bd3dfaa
PB
43493@if target-libjava
43494maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 43495
4fa63067 43496distclean-target-libjava:
0aed8855 43497 @: $(MAKE); $(unstage)
4fa63067
NN
43498 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43499 r=`${PWD_COMMAND}`; export r; \
43500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43501 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43502 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
43503 for flag in $(EXTRA_TARGET_FLAGS); do \
43504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43505 done; \
43506 (cd $(TARGET_SUBDIR)/libjava && \
43507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43509 "RANLIB=$${RANLIB}" \
0c24b341 43510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43511 distclean) \
4fa63067 43512 || exit 1
3866be5d 43513
6bd3dfaa 43514@endif target-libjava
930314a4 43515
4fa63067
NN
43516.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
43517maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
43518@if target-libjava
43519maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 43520
4fa63067 43521maintainer-clean-target-libjava:
0aed8855 43522 @: $(MAKE); $(unstage)
4fa63067
NN
43523 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43524 r=`${PWD_COMMAND}`; export r; \
b40e3958 43525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43526 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43527 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
43528 for flag in $(EXTRA_TARGET_FLAGS); do \
43529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43530 done; \
43531 (cd $(TARGET_SUBDIR)/libjava && \
43532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43534 "RANLIB=$${RANLIB}" \
0c24b341 43535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43536 maintainer-clean) \
4fa63067 43537 || exit 1
e393202e 43538
6bd3dfaa 43539@endif target-libjava
e393202e 43540
4fa63067 43541
15723a45 43542
a7254363 43543
e90269c8 43544
a7254363
PB
43545.PHONY: configure-target-zlib maybe-configure-target-zlib
43546maybe-configure-target-zlib:
4f0ef2d8
CD
43547@if gcc-bootstrap
43548configure-target-zlib: stage_current
43549@endif gcc-bootstrap
a7254363
PB
43550@if target-zlib
43551maybe-configure-target-zlib: configure-target-zlib
c52c6897 43552configure-target-zlib:
0aed8855
PB
43553 @: $(MAKE); $(unstage)
43554 @r=`${PWD_COMMAND}`; export r; \
43555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43556 echo "Checking multilib configuration for zlib..."; \
43557 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
43558 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
43559 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
43560 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
43561 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
43562 else \
43563 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
43564 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
43565 fi; \
43566 else \
43567 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
43568 fi; \
43569 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
4fa63067 43570 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
1f53ca9a 43571 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43572 echo Configuring in $(TARGET_SUBDIR)/zlib; \
43573 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 43574 case $(srcdir) in \
b00612cc
PB
43575 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43576 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
43577 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43578 esac; \
1b6c0831 43579 module_srcdir=zlib; \
bba45b8b 43580 rm -f no-such-file || : ; \
1b6c0831
L
43581 CONFIG_SITE=no-such-file $(SHELL) \
43582 $$s/$$module_srcdir/configure \
43583 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43584 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43585 --target=${target_alias} \
bba45b8b 43586 || exit 1
6bd3dfaa 43587@endif target-zlib
e393202e 43588
a7254363
PB
43589
43590
d545f33b
PB
43591
43592
4fa63067
NN
43593.PHONY: all-target-zlib maybe-all-target-zlib
43594maybe-all-target-zlib:
4f0ef2d8
CD
43595@if gcc-bootstrap
43596all-target-zlib: stage_current
43597@endif gcc-bootstrap
6bd3dfaa 43598@if target-zlib
72b2455a 43599TARGET-target-zlib=all
6bd3dfaa 43600maybe-all-target-zlib: all-target-zlib
4fa63067 43601all-target-zlib: configure-target-zlib
0aed8855 43602 @: $(MAKE); $(unstage)
b40e3958
L
43603 @r=`${PWD_COMMAND}`; export r; \
43604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43605 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43606 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 43607 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 43608 $(TARGET-target-zlib))
6bd3dfaa 43609@endif target-zlib
e393202e 43610
a7254363
PB
43611
43612
d545f33b
PB
43613
43614
4fa63067
NN
43615.PHONY: check-target-zlib maybe-check-target-zlib
43616maybe-check-target-zlib:
6bd3dfaa
PB
43617@if target-zlib
43618maybe-check-target-zlib: check-target-zlib
16ae0395 43619
4fa63067 43620check-target-zlib:
0aed8855 43621 @: $(MAKE); $(unstage)
b40e3958
L
43622 @r=`${PWD_COMMAND}`; export r; \
43623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43624 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43625 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 43626 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 43627
6bd3dfaa 43628@endif target-zlib
930314a4 43629
4fa63067
NN
43630.PHONY: install-target-zlib maybe-install-target-zlib
43631maybe-install-target-zlib:
6bd3dfaa
PB
43632@if target-zlib
43633maybe-install-target-zlib: install-target-zlib
16ae0395 43634
4fa63067 43635install-target-zlib: installdirs
0aed8855 43636 @: $(MAKE); $(unstage)
b40e3958
L
43637 @r=`${PWD_COMMAND}`; export r; \
43638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43639 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43640 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 43641 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43642
6bd3dfaa 43643@endif target-zlib
e393202e 43644
9b980aa1
RW
43645.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
43646maybe-install-strip-target-zlib:
43647@if target-zlib
43648maybe-install-strip-target-zlib: install-strip-target-zlib
43649
43650install-strip-target-zlib: installdirs
43651 @: $(MAKE); $(unstage)
43652 @r=`${PWD_COMMAND}`; export r; \
43653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43654 $(NORMAL_TARGET_EXPORTS) \
43655 (cd $(TARGET_SUBDIR)/zlib && \
43656 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43657
43658@endif target-zlib
43659
56a8fe78 43660# Other targets (info, dvi, pdf, etc.)
15723a45 43661
4fa63067
NN
43662.PHONY: maybe-info-target-zlib info-target-zlib
43663maybe-info-target-zlib:
6bd3dfaa
PB
43664@if target-zlib
43665maybe-info-target-zlib: info-target-zlib
15723a45 43666
4fa63067
NN
43667info-target-zlib: \
43668 configure-target-zlib
0aed8855 43669 @: $(MAKE); $(unstage)
4fa63067 43670 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43671 r=`${PWD_COMMAND}`; export r; \
43672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43673 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43674 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
43675 for flag in $(EXTRA_TARGET_FLAGS); do \
43676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43677 done; \
43678 (cd $(TARGET_SUBDIR)/zlib && \
43679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43681 "RANLIB=$${RANLIB}" \
0c24b341 43682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43683 info) \
bba45b8b 43684 || exit 1
e393202e 43685
6bd3dfaa 43686@endif target-zlib
e393202e 43687
4fa63067
NN
43688.PHONY: maybe-dvi-target-zlib dvi-target-zlib
43689maybe-dvi-target-zlib:
6bd3dfaa
PB
43690@if target-zlib
43691maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 43692
4fa63067
NN
43693dvi-target-zlib: \
43694 configure-target-zlib
0aed8855 43695 @: $(MAKE); $(unstage)
4fa63067
NN
43696 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43697 r=`${PWD_COMMAND}`; export r; \
b40e3958 43698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43699 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43700 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
43701 for flag in $(EXTRA_TARGET_FLAGS); do \
43702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43703 done; \
43704 (cd $(TARGET_SUBDIR)/zlib && \
43705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43707 "RANLIB=$${RANLIB}" \
0c24b341 43708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43709 dvi) \
4fa63067 43710 || exit 1
e393202e 43711
6bd3dfaa 43712@endif target-zlib
930314a4 43713
56a8fe78
DD
43714.PHONY: maybe-pdf-target-zlib pdf-target-zlib
43715maybe-pdf-target-zlib:
43716@if target-zlib
43717maybe-pdf-target-zlib: pdf-target-zlib
43718
43719pdf-target-zlib: \
43720 configure-target-zlib
43721 @: $(MAKE); $(unstage)
43722 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43723 r=`${PWD_COMMAND}`; export r; \
43724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43725 $(NORMAL_TARGET_EXPORTS) \
43726 echo "Doing pdf in $(TARGET_SUBDIR)/zlib" ; \
43727 for flag in $(EXTRA_TARGET_FLAGS); do \
43728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43729 done; \
43730 (cd $(TARGET_SUBDIR)/zlib && \
43731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43733 "RANLIB=$${RANLIB}" \
0c24b341 43734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43735 pdf) \
43736 || exit 1
43737
43738@endif target-zlib
43739
6d389afc
MS
43740.PHONY: maybe-html-target-zlib html-target-zlib
43741maybe-html-target-zlib:
43742@if target-zlib
43743maybe-html-target-zlib: html-target-zlib
43744
43745html-target-zlib: \
43746 configure-target-zlib
0aed8855 43747 @: $(MAKE); $(unstage)
6d389afc
MS
43748 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43749 r=`${PWD_COMMAND}`; export r; \
43750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
43751 $(NORMAL_TARGET_EXPORTS) \
43752 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
43753 for flag in $(EXTRA_TARGET_FLAGS); do \
43754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43755 done; \
43756 (cd $(TARGET_SUBDIR)/zlib && \
43757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43759 "RANLIB=$${RANLIB}" \
0c24b341 43760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43761 html) \
43762 || exit 1
43763
43764@endif target-zlib
43765
4fa63067
NN
43766.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
43767maybe-TAGS-target-zlib:
6bd3dfaa
PB
43768@if target-zlib
43769maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 43770
4fa63067
NN
43771TAGS-target-zlib: \
43772 configure-target-zlib
0aed8855 43773 @: $(MAKE); $(unstage)
4fa63067
NN
43774 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43775 r=`${PWD_COMMAND}`; export r; \
b40e3958 43776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43777 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43778 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
43779 for flag in $(EXTRA_TARGET_FLAGS); do \
43780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43781 done; \
43782 (cd $(TARGET_SUBDIR)/zlib && \
43783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43785 "RANLIB=$${RANLIB}" \
0c24b341 43786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43787 TAGS) \
4fa63067 43788 || exit 1
e393202e 43789
6bd3dfaa 43790@endif target-zlib
15723a45 43791
4fa63067
NN
43792.PHONY: maybe-install-info-target-zlib install-info-target-zlib
43793maybe-install-info-target-zlib:
6bd3dfaa
PB
43794@if target-zlib
43795maybe-install-info-target-zlib: install-info-target-zlib
15723a45 43796
4fa63067
NN
43797install-info-target-zlib: \
43798 configure-target-zlib \
43799 info-target-zlib
0aed8855 43800 @: $(MAKE); $(unstage)
4fa63067 43801 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43802 r=`${PWD_COMMAND}`; export r; \
43803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43804 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43805 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
43806 for flag in $(EXTRA_TARGET_FLAGS); do \
43807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43808 done; \
43809 (cd $(TARGET_SUBDIR)/zlib && \
43810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43812 "RANLIB=$${RANLIB}" \
0c24b341 43813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43814 install-info) \
bba45b8b 43815 || exit 1
e393202e 43816
6bd3dfaa 43817@endif target-zlib
16ae0395 43818
a3ca38d2
DD
43819.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
43820maybe-install-pdf-target-zlib:
43821@if target-zlib
43822maybe-install-pdf-target-zlib: install-pdf-target-zlib
43823
43824install-pdf-target-zlib: \
43825 configure-target-zlib \
43826 pdf-target-zlib
43827 @: $(MAKE); $(unstage)
43828 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43829 r=`${PWD_COMMAND}`; export r; \
43830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43831 $(NORMAL_TARGET_EXPORTS) \
43832 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib" ; \
43833 for flag in $(EXTRA_TARGET_FLAGS); do \
43834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43835 done; \
43836 (cd $(TARGET_SUBDIR)/zlib && \
43837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43839 "RANLIB=$${RANLIB}" \
0c24b341 43840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43841 install-pdf) \
43842 || exit 1
43843
43844@endif target-zlib
43845
108a6f8e
CD
43846.PHONY: maybe-install-html-target-zlib install-html-target-zlib
43847maybe-install-html-target-zlib:
43848@if target-zlib
43849maybe-install-html-target-zlib: install-html-target-zlib
43850
43851install-html-target-zlib: \
43852 configure-target-zlib \
43853 html-target-zlib
43854 @: $(MAKE); $(unstage)
43855 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43856 r=`${PWD_COMMAND}`; export r; \
43857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43858 $(NORMAL_TARGET_EXPORTS) \
43859 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
43860 for flag in $(EXTRA_TARGET_FLAGS); do \
43861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43862 done; \
43863 (cd $(TARGET_SUBDIR)/zlib && \
43864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43866 "RANLIB=$${RANLIB}" \
0c24b341 43867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43868 install-html) \
43869 || exit 1
43870
43871@endif target-zlib
43872
4fa63067
NN
43873.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
43874maybe-installcheck-target-zlib:
6bd3dfaa
PB
43875@if target-zlib
43876maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 43877
4fa63067
NN
43878installcheck-target-zlib: \
43879 configure-target-zlib
0aed8855 43880 @: $(MAKE); $(unstage)
4fa63067
NN
43881 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43882 r=`${PWD_COMMAND}`; export r; \
43883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43884 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43885 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
43886 for flag in $(EXTRA_TARGET_FLAGS); do \
43887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43888 done; \
43889 (cd $(TARGET_SUBDIR)/zlib && \
43890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43892 "RANLIB=$${RANLIB}" \
0c24b341 43893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43894 installcheck) \
4fa63067 43895 || exit 1
e393202e 43896
6bd3dfaa 43897@endif target-zlib
16ae0395 43898
4fa63067
NN
43899.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
43900maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
43901@if target-zlib
43902maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 43903
4fa63067 43904mostlyclean-target-zlib:
0aed8855 43905 @: $(MAKE); $(unstage)
4fa63067
NN
43906 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43907 r=`${PWD_COMMAND}`; export r; \
43908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43909 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43910 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
43911 for flag in $(EXTRA_TARGET_FLAGS); do \
43912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43913 done; \
43914 (cd $(TARGET_SUBDIR)/zlib && \
43915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43917 "RANLIB=$${RANLIB}" \
0c24b341 43918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43919 mostlyclean) \
4fa63067 43920 || exit 1
e393202e 43921
6bd3dfaa 43922@endif target-zlib
15723a45 43923
4fa63067
NN
43924.PHONY: maybe-clean-target-zlib clean-target-zlib
43925maybe-clean-target-zlib:
6bd3dfaa
PB
43926@if target-zlib
43927maybe-clean-target-zlib: clean-target-zlib
15723a45 43928
4fa63067 43929clean-target-zlib:
0aed8855 43930 @: $(MAKE); $(unstage)
4fa63067 43931 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43932 r=`${PWD_COMMAND}`; export r; \
43933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43934 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43935 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
43936 for flag in $(EXTRA_TARGET_FLAGS); do \
43937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43938 done; \
43939 (cd $(TARGET_SUBDIR)/zlib && \
43940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43942 "RANLIB=$${RANLIB}" \
0c24b341 43943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43944 clean) \
bba45b8b 43945 || exit 1
e393202e 43946
6bd3dfaa 43947@endif target-zlib
e393202e 43948
4fa63067
NN
43949.PHONY: maybe-distclean-target-zlib distclean-target-zlib
43950maybe-distclean-target-zlib:
6bd3dfaa
PB
43951@if target-zlib
43952maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 43953
4fa63067 43954distclean-target-zlib:
0aed8855 43955 @: $(MAKE); $(unstage)
4fa63067
NN
43956 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43957 r=`${PWD_COMMAND}`; export r; \
b40e3958 43958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43959 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43960 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
43961 for flag in $(EXTRA_TARGET_FLAGS); do \
43962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43963 done; \
43964 (cd $(TARGET_SUBDIR)/zlib && \
43965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43967 "RANLIB=$${RANLIB}" \
0c24b341 43968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43969 distclean) \
4fa63067 43970 || exit 1
e393202e 43971
6bd3dfaa 43972@endif target-zlib
e393202e 43973
4fa63067
NN
43974.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
43975maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
43976@if target-zlib
43977maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 43978
4fa63067 43979maintainer-clean-target-zlib:
0aed8855 43980 @: $(MAKE); $(unstage)
4fa63067
NN
43981 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43982 r=`${PWD_COMMAND}`; export r; \
b40e3958 43983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43984 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43985 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
43986 for flag in $(EXTRA_TARGET_FLAGS); do \
43987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43988 done; \
43989 (cd $(TARGET_SUBDIR)/zlib && \
43990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43992 "RANLIB=$${RANLIB}" \
0c24b341 43993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43994 maintainer-clean) \
4fa63067 43995 || exit 1
e393202e 43996
6bd3dfaa 43997@endif target-zlib
930314a4 43998
4fa63067 43999
15723a45 44000
a7254363 44001
e90269c8 44002
a7254363
PB
44003.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
44004maybe-configure-target-boehm-gc:
4f0ef2d8
CD
44005@if gcc-bootstrap
44006configure-target-boehm-gc: stage_current
44007@endif gcc-bootstrap
a7254363
PB
44008@if target-boehm-gc
44009maybe-configure-target-boehm-gc: configure-target-boehm-gc
c52c6897 44010configure-target-boehm-gc:
0aed8855
PB
44011 @: $(MAKE); $(unstage)
44012 @r=`${PWD_COMMAND}`; export r; \
44013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44014 echo "Checking multilib configuration for boehm-gc..."; \
44015 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
44016 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
44017 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44018 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44019 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
44020 else \
44021 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
44022 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
44023 fi; \
44024 else \
44025 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
c52c6897
PB
44026 fi; \
44027 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
4fa63067 44028 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
1f53ca9a 44029 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44030 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
44031 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b 44032 case $(srcdir) in \
b00612cc
PB
44033 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44034 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
44035 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44036 esac; \
1b6c0831 44037 module_srcdir=boehm-gc; \
bba45b8b 44038 rm -f no-such-file || : ; \
1b6c0831
L
44039 CONFIG_SITE=no-such-file $(SHELL) \
44040 $$s/$$module_srcdir/configure \
44041 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44042 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44043 --target=${target_alias} \
bba45b8b 44044 || exit 1
6bd3dfaa 44045@endif target-boehm-gc
e393202e 44046
a7254363
PB
44047
44048
d545f33b
PB
44049
44050
4fa63067
NN
44051.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
44052maybe-all-target-boehm-gc:
4f0ef2d8
CD
44053@if gcc-bootstrap
44054all-target-boehm-gc: stage_current
44055@endif gcc-bootstrap
6bd3dfaa 44056@if target-boehm-gc
72b2455a 44057TARGET-target-boehm-gc=all
6bd3dfaa 44058maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 44059all-target-boehm-gc: configure-target-boehm-gc
0aed8855 44060 @: $(MAKE); $(unstage)
b40e3958
L
44061 @r=`${PWD_COMMAND}`; export r; \
44062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44063 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44064 (cd $(TARGET_SUBDIR)/boehm-gc && \
b3676d82 44065 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44066 $(TARGET-target-boehm-gc))
6bd3dfaa 44067@endif target-boehm-gc
e393202e 44068
a7254363
PB
44069
44070
d545f33b
PB
44071
44072
4fa63067
NN
44073.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
44074maybe-check-target-boehm-gc:
6bd3dfaa
PB
44075@if target-boehm-gc
44076maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 44077
4fa63067 44078check-target-boehm-gc:
0aed8855 44079 @: $(MAKE); $(unstage)
b40e3958
L
44080 @r=`${PWD_COMMAND}`; export r; \
44081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44082 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44083 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44084 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44085
6bd3dfaa 44086@endif target-boehm-gc
930314a4 44087
4fa63067
NN
44088.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
44089maybe-install-target-boehm-gc:
6bd3dfaa
PB
44090@if target-boehm-gc
44091maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 44092
4fa63067 44093install-target-boehm-gc: installdirs
0aed8855 44094 @: $(MAKE); $(unstage)
b40e3958
L
44095 @r=`${PWD_COMMAND}`; export r; \
44096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44097 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44098 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44099 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44100
6bd3dfaa 44101@endif target-boehm-gc
e393202e 44102
9b980aa1
RW
44103.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
44104maybe-install-strip-target-boehm-gc:
44105@if target-boehm-gc
44106maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
44107
44108install-strip-target-boehm-gc: installdirs
44109 @: $(MAKE); $(unstage)
44110 @r=`${PWD_COMMAND}`; export r; \
44111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44112 $(NORMAL_TARGET_EXPORTS) \
44113 (cd $(TARGET_SUBDIR)/boehm-gc && \
44114 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44115
44116@endif target-boehm-gc
44117
56a8fe78 44118# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44119
44120.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
44121maybe-info-target-boehm-gc:
6bd3dfaa
PB
44122@if target-boehm-gc
44123maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
44124
44125info-target-boehm-gc: \
44126 configure-target-boehm-gc
0aed8855 44127 @: $(MAKE); $(unstage)
4fa63067
NN
44128 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44129 r=`${PWD_COMMAND}`; export r; \
44130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44131 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44132 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
44133 for flag in $(EXTRA_TARGET_FLAGS); do \
44134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44135 done; \
44136 (cd $(TARGET_SUBDIR)/boehm-gc && \
44137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44139 "RANLIB=$${RANLIB}" \
0c24b341 44140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44141 info) \
4fa63067
NN
44142 || exit 1
44143
6bd3dfaa 44144@endif target-boehm-gc
4fa63067
NN
44145
44146.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
44147maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
44148@if target-boehm-gc
44149maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
44150
44151dvi-target-boehm-gc: \
44152 configure-target-boehm-gc
0aed8855 44153 @: $(MAKE); $(unstage)
4fa63067
NN
44154 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44155 r=`${PWD_COMMAND}`; export r; \
44156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44157 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44158 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
44159 for flag in $(EXTRA_TARGET_FLAGS); do \
44160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44161 done; \
44162 (cd $(TARGET_SUBDIR)/boehm-gc && \
44163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44165 "RANLIB=$${RANLIB}" \
0c24b341 44166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44167 dvi) \
4fa63067
NN
44168 || exit 1
44169
6bd3dfaa 44170@endif target-boehm-gc
4fa63067 44171
56a8fe78
DD
44172.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
44173maybe-pdf-target-boehm-gc:
44174@if target-boehm-gc
44175maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
44176
44177pdf-target-boehm-gc: \
44178 configure-target-boehm-gc
44179 @: $(MAKE); $(unstage)
44180 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44181 r=`${PWD_COMMAND}`; export r; \
44182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44183 $(NORMAL_TARGET_EXPORTS) \
44184 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
44185 for flag in $(EXTRA_TARGET_FLAGS); do \
44186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44187 done; \
44188 (cd $(TARGET_SUBDIR)/boehm-gc && \
44189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44191 "RANLIB=$${RANLIB}" \
0c24b341 44192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44193 pdf) \
44194 || exit 1
44195
44196@endif target-boehm-gc
44197
6d389afc
MS
44198.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
44199maybe-html-target-boehm-gc:
44200@if target-boehm-gc
44201maybe-html-target-boehm-gc: html-target-boehm-gc
44202
44203html-target-boehm-gc: \
44204 configure-target-boehm-gc
0aed8855 44205 @: $(MAKE); $(unstage)
6d389afc
MS
44206 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44207 r=`${PWD_COMMAND}`; export r; \
44208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
44209 $(NORMAL_TARGET_EXPORTS) \
44210 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
44211 for flag in $(EXTRA_TARGET_FLAGS); do \
44212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44213 done; \
44214 (cd $(TARGET_SUBDIR)/boehm-gc && \
44215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44217 "RANLIB=$${RANLIB}" \
0c24b341 44218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44219 html) \
44220 || exit 1
44221
44222@endif target-boehm-gc
44223
4fa63067
NN
44224.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
44225maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
44226@if target-boehm-gc
44227maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
44228
44229TAGS-target-boehm-gc: \
44230 configure-target-boehm-gc
0aed8855 44231 @: $(MAKE); $(unstage)
4fa63067
NN
44232 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44233 r=`${PWD_COMMAND}`; export r; \
44234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44235 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44236 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
44237 for flag in $(EXTRA_TARGET_FLAGS); do \
44238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44239 done; \
44240 (cd $(TARGET_SUBDIR)/boehm-gc && \
44241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44243 "RANLIB=$${RANLIB}" \
0c24b341 44244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44245 TAGS) \
4fa63067
NN
44246 || exit 1
44247
6bd3dfaa 44248@endif target-boehm-gc
4fa63067
NN
44249
44250.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
44251maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
44252@if target-boehm-gc
44253maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
44254
44255install-info-target-boehm-gc: \
44256 configure-target-boehm-gc \
44257 info-target-boehm-gc
0aed8855 44258 @: $(MAKE); $(unstage)
4fa63067
NN
44259 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44260 r=`${PWD_COMMAND}`; export r; \
44261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44262 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44263 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
44264 for flag in $(EXTRA_TARGET_FLAGS); do \
44265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44266 done; \
44267 (cd $(TARGET_SUBDIR)/boehm-gc && \
44268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44270 "RANLIB=$${RANLIB}" \
0c24b341 44271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44272 install-info) \
4fa63067
NN
44273 || exit 1
44274
6bd3dfaa 44275@endif target-boehm-gc
4fa63067 44276
a3ca38d2
DD
44277.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
44278maybe-install-pdf-target-boehm-gc:
44279@if target-boehm-gc
44280maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
44281
44282install-pdf-target-boehm-gc: \
44283 configure-target-boehm-gc \
44284 pdf-target-boehm-gc
44285 @: $(MAKE); $(unstage)
44286 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44287 r=`${PWD_COMMAND}`; export r; \
44288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44289 $(NORMAL_TARGET_EXPORTS) \
44290 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
44291 for flag in $(EXTRA_TARGET_FLAGS); do \
44292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44293 done; \
44294 (cd $(TARGET_SUBDIR)/boehm-gc && \
44295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44297 "RANLIB=$${RANLIB}" \
0c24b341 44298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44299 install-pdf) \
44300 || exit 1
44301
44302@endif target-boehm-gc
44303
108a6f8e
CD
44304.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
44305maybe-install-html-target-boehm-gc:
44306@if target-boehm-gc
44307maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
44308
44309install-html-target-boehm-gc: \
44310 configure-target-boehm-gc \
44311 html-target-boehm-gc
44312 @: $(MAKE); $(unstage)
44313 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44314 r=`${PWD_COMMAND}`; export r; \
44315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44316 $(NORMAL_TARGET_EXPORTS) \
44317 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
44318 for flag in $(EXTRA_TARGET_FLAGS); do \
44319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44320 done; \
44321 (cd $(TARGET_SUBDIR)/boehm-gc && \
44322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44324 "RANLIB=$${RANLIB}" \
0c24b341 44325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44326 install-html) \
44327 || exit 1
44328
44329@endif target-boehm-gc
44330
4fa63067
NN
44331.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
44332maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
44333@if target-boehm-gc
44334maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
44335
44336installcheck-target-boehm-gc: \
44337 configure-target-boehm-gc
0aed8855 44338 @: $(MAKE); $(unstage)
4fa63067
NN
44339 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44340 r=`${PWD_COMMAND}`; export r; \
44341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44342 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44343 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
44344 for flag in $(EXTRA_TARGET_FLAGS); do \
44345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44346 done; \
44347 (cd $(TARGET_SUBDIR)/boehm-gc && \
44348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44350 "RANLIB=$${RANLIB}" \
0c24b341 44351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44352 installcheck) \
4fa63067
NN
44353 || exit 1
44354
6bd3dfaa 44355@endif target-boehm-gc
4fa63067
NN
44356
44357.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
44358maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
44359@if target-boehm-gc
44360maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
44361
44362mostlyclean-target-boehm-gc:
0aed8855 44363 @: $(MAKE); $(unstage)
4fa63067
NN
44364 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44365 r=`${PWD_COMMAND}`; export r; \
44366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44367 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44368 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
44369 for flag in $(EXTRA_TARGET_FLAGS); do \
44370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44371 done; \
44372 (cd $(TARGET_SUBDIR)/boehm-gc && \
44373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44375 "RANLIB=$${RANLIB}" \
0c24b341 44376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44377 mostlyclean) \
4fa63067
NN
44378 || exit 1
44379
6bd3dfaa 44380@endif target-boehm-gc
4fa63067
NN
44381
44382.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
44383maybe-clean-target-boehm-gc:
6bd3dfaa
PB
44384@if target-boehm-gc
44385maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
44386
44387clean-target-boehm-gc:
0aed8855 44388 @: $(MAKE); $(unstage)
4fa63067
NN
44389 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44390 r=`${PWD_COMMAND}`; export r; \
44391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44392 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44393 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
44394 for flag in $(EXTRA_TARGET_FLAGS); do \
44395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44396 done; \
44397 (cd $(TARGET_SUBDIR)/boehm-gc && \
44398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44400 "RANLIB=$${RANLIB}" \
0c24b341 44401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44402 clean) \
4fa63067
NN
44403 || exit 1
44404
6bd3dfaa 44405@endif target-boehm-gc
4fa63067
NN
44406
44407.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
44408maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
44409@if target-boehm-gc
44410maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
44411
44412distclean-target-boehm-gc:
0aed8855 44413 @: $(MAKE); $(unstage)
4fa63067
NN
44414 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44415 r=`${PWD_COMMAND}`; export r; \
44416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44417 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44418 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
44419 for flag in $(EXTRA_TARGET_FLAGS); do \
44420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44421 done; \
44422 (cd $(TARGET_SUBDIR)/boehm-gc && \
44423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44425 "RANLIB=$${RANLIB}" \
0c24b341 44426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44427 distclean) \
4fa63067
NN
44428 || exit 1
44429
6bd3dfaa 44430@endif target-boehm-gc
4fa63067
NN
44431
44432.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
44433maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
44434@if target-boehm-gc
44435maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
44436
44437maintainer-clean-target-boehm-gc:
0aed8855 44438 @: $(MAKE); $(unstage)
4fa63067
NN
44439 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44440 r=`${PWD_COMMAND}`; export r; \
44441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44442 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44443 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
44444 for flag in $(EXTRA_TARGET_FLAGS); do \
44445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44446 done; \
44447 (cd $(TARGET_SUBDIR)/boehm-gc && \
44448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44450 "RANLIB=$${RANLIB}" \
0c24b341 44451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44452 maintainer-clean) \
4fa63067
NN
44453 || exit 1
44454
6bd3dfaa 44455@endif target-boehm-gc
4fa63067
NN
44456
44457
15723a45 44458
15723a45 44459
a7254363 44460
a7254363
PB
44461.PHONY: configure-target-rda maybe-configure-target-rda
44462maybe-configure-target-rda:
4f0ef2d8
CD
44463@if gcc-bootstrap
44464configure-target-rda: stage_current
44465@endif gcc-bootstrap
a7254363
PB
44466@if target-rda
44467maybe-configure-target-rda: configure-target-rda
c52c6897 44468configure-target-rda:
0aed8855
PB
44469 @: $(MAKE); $(unstage)
44470 @r=`${PWD_COMMAND}`; export r; \
44471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44472 echo "Checking multilib configuration for rda..."; \
44473 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
44474 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
44475 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
44476 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
44477 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
44478 else \
44479 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
44480 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
44481 fi; \
44482 else \
44483 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
44484 fi; \
44485 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
4fa63067 44486 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
1f53ca9a 44487 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44488 echo Configuring in $(TARGET_SUBDIR)/rda; \
44489 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 44490 case $(srcdir) in \
b00612cc
PB
44491 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44492 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
44493 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44494 esac; \
1b6c0831 44495 module_srcdir=rda; \
bba45b8b 44496 rm -f no-such-file || : ; \
1b6c0831
L
44497 CONFIG_SITE=no-such-file $(SHELL) \
44498 $$s/$$module_srcdir/configure \
44499 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44500 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44501 --target=${target_alias} \
bba45b8b 44502 || exit 1
6bd3dfaa 44503@endif target-rda
49b7683b 44504
a7254363
PB
44505
44506
d545f33b
PB
44507
44508
4fa63067
NN
44509.PHONY: all-target-rda maybe-all-target-rda
44510maybe-all-target-rda:
4f0ef2d8
CD
44511@if gcc-bootstrap
44512all-target-rda: stage_current
44513@endif gcc-bootstrap
6bd3dfaa 44514@if target-rda
72b2455a 44515TARGET-target-rda=all
6bd3dfaa 44516maybe-all-target-rda: all-target-rda
4fa63067 44517all-target-rda: configure-target-rda
0aed8855 44518 @: $(MAKE); $(unstage)
b40e3958
L
44519 @r=`${PWD_COMMAND}`; export r; \
44520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44521 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44522 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 44523 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44524 $(TARGET-target-rda))
6bd3dfaa 44525@endif target-rda
252b5132 44526
a7254363
PB
44527
44528
d545f33b
PB
44529
44530
4fa63067
NN
44531.PHONY: check-target-rda maybe-check-target-rda
44532maybe-check-target-rda:
6bd3dfaa
PB
44533@if target-rda
44534maybe-check-target-rda: check-target-rda
16ae0395 44535
4fa63067 44536check-target-rda:
0aed8855 44537 @: $(MAKE); $(unstage)
b40e3958
L
44538 @r=`${PWD_COMMAND}`; export r; \
44539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44540 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44541 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44542 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 44543
6bd3dfaa 44544@endif target-rda
930314a4 44545
4fa63067
NN
44546.PHONY: install-target-rda maybe-install-target-rda
44547maybe-install-target-rda:
6bd3dfaa
PB
44548@if target-rda
44549maybe-install-target-rda: install-target-rda
16ae0395 44550
4fa63067 44551install-target-rda: installdirs
0aed8855 44552 @: $(MAKE); $(unstage)
b40e3958
L
44553 @r=`${PWD_COMMAND}`; export r; \
44554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44555 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44556 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44557 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44558
6bd3dfaa 44559@endif target-rda
e393202e 44560
9b980aa1
RW
44561.PHONY: install-strip-target-rda maybe-install-strip-target-rda
44562maybe-install-strip-target-rda:
44563@if target-rda
44564maybe-install-strip-target-rda: install-strip-target-rda
44565
44566install-strip-target-rda: installdirs
44567 @: $(MAKE); $(unstage)
44568 @r=`${PWD_COMMAND}`; export r; \
44569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44570 $(NORMAL_TARGET_EXPORTS) \
44571 (cd $(TARGET_SUBDIR)/rda && \
44572 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44573
44574@endif target-rda
44575
56a8fe78 44576# Other targets (info, dvi, pdf, etc.)
15723a45 44577
4fa63067
NN
44578.PHONY: maybe-info-target-rda info-target-rda
44579maybe-info-target-rda:
6bd3dfaa
PB
44580@if target-rda
44581maybe-info-target-rda: info-target-rda
15723a45 44582
4fa63067
NN
44583info-target-rda: \
44584 configure-target-rda
0aed8855 44585 @: $(MAKE); $(unstage)
4fa63067 44586 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
44587 r=`${PWD_COMMAND}`; export r; \
44588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44589 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44590 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
44591 for flag in $(EXTRA_TARGET_FLAGS); do \
44592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44593 done; \
44594 (cd $(TARGET_SUBDIR)/rda && \
44595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44597 "RANLIB=$${RANLIB}" \
0c24b341 44598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44599 info) \
bba45b8b 44600 || exit 1
252b5132 44601
6bd3dfaa 44602@endif target-rda
4fa63067
NN
44603
44604.PHONY: maybe-dvi-target-rda dvi-target-rda
44605maybe-dvi-target-rda:
6bd3dfaa
PB
44606@if target-rda
44607maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
44608
44609dvi-target-rda: \
44610 configure-target-rda
0aed8855 44611 @: $(MAKE); $(unstage)
4fa63067
NN
44612 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44613 r=`${PWD_COMMAND}`; export r; \
b40e3958 44614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44615 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44616 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
44617 for flag in $(EXTRA_TARGET_FLAGS); do \
44618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44619 done; \
44620 (cd $(TARGET_SUBDIR)/rda && \
44621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44623 "RANLIB=$${RANLIB}" \
0c24b341 44624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44625 dvi) \
4fa63067 44626 || exit 1
252b5132 44627
6bd3dfaa 44628@endif target-rda
16ae0395 44629
56a8fe78
DD
44630.PHONY: maybe-pdf-target-rda pdf-target-rda
44631maybe-pdf-target-rda:
44632@if target-rda
44633maybe-pdf-target-rda: pdf-target-rda
44634
44635pdf-target-rda: \
44636 configure-target-rda
44637 @: $(MAKE); $(unstage)
44638 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44639 r=`${PWD_COMMAND}`; export r; \
44640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44641 $(NORMAL_TARGET_EXPORTS) \
44642 echo "Doing pdf in $(TARGET_SUBDIR)/rda" ; \
44643 for flag in $(EXTRA_TARGET_FLAGS); do \
44644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44645 done; \
44646 (cd $(TARGET_SUBDIR)/rda && \
44647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44649 "RANLIB=$${RANLIB}" \
0c24b341 44650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44651 pdf) \
44652 || exit 1
44653
44654@endif target-rda
44655
6d389afc
MS
44656.PHONY: maybe-html-target-rda html-target-rda
44657maybe-html-target-rda:
44658@if target-rda
44659maybe-html-target-rda: html-target-rda
44660
44661html-target-rda: \
44662 configure-target-rda
0aed8855 44663 @: $(MAKE); $(unstage)
6d389afc
MS
44664 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44665 r=`${PWD_COMMAND}`; export r; \
44666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
44667 $(NORMAL_TARGET_EXPORTS) \
44668 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
44669 for flag in $(EXTRA_TARGET_FLAGS); do \
44670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44671 done; \
44672 (cd $(TARGET_SUBDIR)/rda && \
44673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44675 "RANLIB=$${RANLIB}" \
0c24b341 44676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44677 html) \
44678 || exit 1
44679
44680@endif target-rda
44681
4fa63067
NN
44682.PHONY: maybe-TAGS-target-rda TAGS-target-rda
44683maybe-TAGS-target-rda:
6bd3dfaa
PB
44684@if target-rda
44685maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
44686
44687TAGS-target-rda: \
44688 configure-target-rda
0aed8855 44689 @: $(MAKE); $(unstage)
4fa63067
NN
44690 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44691 r=`${PWD_COMMAND}`; export r; \
b40e3958 44692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44693 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44694 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
44695 for flag in $(EXTRA_TARGET_FLAGS); do \
44696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44697 done; \
44698 (cd $(TARGET_SUBDIR)/rda && \
44699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44701 "RANLIB=$${RANLIB}" \
0c24b341 44702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44703 TAGS) \
4fa63067 44704 || exit 1
e393202e 44705
6bd3dfaa 44706@endif target-rda
930314a4 44707
4fa63067
NN
44708.PHONY: maybe-install-info-target-rda install-info-target-rda
44709maybe-install-info-target-rda:
6bd3dfaa
PB
44710@if target-rda
44711maybe-install-info-target-rda: install-info-target-rda
16ae0395 44712
4fa63067
NN
44713install-info-target-rda: \
44714 configure-target-rda \
44715 info-target-rda
0aed8855 44716 @: $(MAKE); $(unstage)
4fa63067
NN
44717 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44718 r=`${PWD_COMMAND}`; export r; \
b40e3958 44719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44720 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44721 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
44722 for flag in $(EXTRA_TARGET_FLAGS); do \
44723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44724 done; \
44725 (cd $(TARGET_SUBDIR)/rda && \
44726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44728 "RANLIB=$${RANLIB}" \
0c24b341 44729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44730 install-info) \
4fa63067 44731 || exit 1
252b5132 44732
6bd3dfaa 44733@endif target-rda
e393202e 44734
a3ca38d2
DD
44735.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
44736maybe-install-pdf-target-rda:
44737@if target-rda
44738maybe-install-pdf-target-rda: install-pdf-target-rda
44739
44740install-pdf-target-rda: \
44741 configure-target-rda \
44742 pdf-target-rda
44743 @: $(MAKE); $(unstage)
44744 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44745 r=`${PWD_COMMAND}`; export r; \
44746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44747 $(NORMAL_TARGET_EXPORTS) \
44748 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda" ; \
44749 for flag in $(EXTRA_TARGET_FLAGS); do \
44750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44751 done; \
44752 (cd $(TARGET_SUBDIR)/rda && \
44753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44755 "RANLIB=$${RANLIB}" \
0c24b341 44756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44757 install-pdf) \
44758 || exit 1
44759
44760@endif target-rda
44761
108a6f8e
CD
44762.PHONY: maybe-install-html-target-rda install-html-target-rda
44763maybe-install-html-target-rda:
44764@if target-rda
44765maybe-install-html-target-rda: install-html-target-rda
44766
44767install-html-target-rda: \
44768 configure-target-rda \
44769 html-target-rda
44770 @: $(MAKE); $(unstage)
44771 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44772 r=`${PWD_COMMAND}`; export r; \
44773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44774 $(NORMAL_TARGET_EXPORTS) \
44775 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
44776 for flag in $(EXTRA_TARGET_FLAGS); do \
44777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44778 done; \
44779 (cd $(TARGET_SUBDIR)/rda && \
44780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44782 "RANLIB=$${RANLIB}" \
0c24b341 44783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44784 install-html) \
44785 || exit 1
44786
44787@endif target-rda
44788
4fa63067
NN
44789.PHONY: maybe-installcheck-target-rda installcheck-target-rda
44790maybe-installcheck-target-rda:
6bd3dfaa
PB
44791@if target-rda
44792maybe-installcheck-target-rda: installcheck-target-rda
15723a45 44793
4fa63067
NN
44794installcheck-target-rda: \
44795 configure-target-rda
0aed8855 44796 @: $(MAKE); $(unstage)
4fa63067
NN
44797 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44798 r=`${PWD_COMMAND}`; export r; \
44799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44800 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44801 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
44802 for flag in $(EXTRA_TARGET_FLAGS); do \
44803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44804 done; \
44805 (cd $(TARGET_SUBDIR)/rda && \
44806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44808 "RANLIB=$${RANLIB}" \
0c24b341 44809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44810 installcheck) \
4fa63067 44811 || exit 1
15723a45 44812
6bd3dfaa 44813@endif target-rda
4fa63067
NN
44814
44815.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
44816maybe-mostlyclean-target-rda:
6bd3dfaa
PB
44817@if target-rda
44818maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
44819
44820mostlyclean-target-rda:
0aed8855 44821 @: $(MAKE); $(unstage)
4fa63067 44822 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
44823 r=`${PWD_COMMAND}`; export r; \
44824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44825 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44826 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
44827 for flag in $(EXTRA_TARGET_FLAGS); do \
44828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44829 done; \
44830 (cd $(TARGET_SUBDIR)/rda && \
44831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44833 "RANLIB=$${RANLIB}" \
0c24b341 44834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44835 mostlyclean) \
bba45b8b 44836 || exit 1
252b5132 44837
6bd3dfaa 44838@endif target-rda
4fa63067
NN
44839
44840.PHONY: maybe-clean-target-rda clean-target-rda
44841maybe-clean-target-rda:
6bd3dfaa
PB
44842@if target-rda
44843maybe-clean-target-rda: clean-target-rda
4fa63067
NN
44844
44845clean-target-rda:
0aed8855 44846 @: $(MAKE); $(unstage)
4fa63067
NN
44847 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44848 r=`${PWD_COMMAND}`; export r; \
b40e3958 44849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44850 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44851 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
44852 for flag in $(EXTRA_TARGET_FLAGS); do \
44853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44854 done; \
bba45b8b 44855 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44858 "RANLIB=$${RANLIB}" \
0c24b341 44859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44860 clean) \
4fa63067 44861 || exit 1
252b5132 44862
6bd3dfaa 44863@endif target-rda
16ae0395 44864
4fa63067
NN
44865.PHONY: maybe-distclean-target-rda distclean-target-rda
44866maybe-distclean-target-rda:
6bd3dfaa
PB
44867@if target-rda
44868maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
44869
44870distclean-target-rda:
0aed8855 44871 @: $(MAKE); $(unstage)
4fa63067
NN
44872 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44873 r=`${PWD_COMMAND}`; export r; \
b40e3958 44874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44875 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44876 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
44877 for flag in $(EXTRA_TARGET_FLAGS); do \
44878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44879 done; \
bba45b8b 44880 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44883 "RANLIB=$${RANLIB}" \
0c24b341 44884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44885 distclean) \
4fa63067 44886 || exit 1
252b5132 44887
6bd3dfaa 44888@endif target-rda
930314a4 44889
4fa63067
NN
44890.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
44891maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
44892@if target-rda
44893maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 44894
4fa63067 44895maintainer-clean-target-rda:
0aed8855 44896 @: $(MAKE); $(unstage)
4fa63067
NN
44897 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44898 r=`${PWD_COMMAND}`; export r; \
b40e3958 44899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44900 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44901 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
44902 for flag in $(EXTRA_TARGET_FLAGS); do \
44903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44904 done; \
bba45b8b 44905 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44908 "RANLIB=$${RANLIB}" \
0c24b341 44909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44910 maintainer-clean) \
4fa63067
NN
44911 || exit 1
44912
6bd3dfaa 44913@endif target-rda
252b5132 44914
e393202e 44915
a2592b1b 44916
a7254363
PB
44917
44918
44919.PHONY: configure-target-libada maybe-configure-target-libada
44920maybe-configure-target-libada:
4f0ef2d8
CD
44921@if gcc-bootstrap
44922configure-target-libada: stage_current
44923@endif gcc-bootstrap
a7254363
PB
44924@if target-libada
44925maybe-configure-target-libada: configure-target-libada
c52c6897 44926configure-target-libada:
0aed8855
PB
44927 @: $(MAKE); $(unstage)
44928 @r=`${PWD_COMMAND}`; export r; \
44929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44930 echo "Checking multilib configuration for libada..."; \
44931 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
44932 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
44933 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
44934 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
44935 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
44936 else \
44937 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
44938 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
44939 fi; \
44940 else \
44941 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
44942 fi; \
44943 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
a2592b1b 44944 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
1f53ca9a 44945 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
44946 echo Configuring in $(TARGET_SUBDIR)/libada; \
44947 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
44948 case $(srcdir) in \
b00612cc
PB
44949 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44950 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
44951 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 44952 esac; \
1b6c0831 44953 module_srcdir=libada; \
a2592b1b 44954 rm -f no-such-file || : ; \
1b6c0831
L
44955 CONFIG_SITE=no-such-file $(SHELL) \
44956 $$s/$$module_srcdir/configure \
44957 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44958 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44959 --target=${target_alias} \
a2592b1b 44960 || exit 1
6bd3dfaa 44961@endif target-libada
a2592b1b 44962
a7254363
PB
44963
44964
d545f33b
PB
44965
44966
4fa63067
NN
44967.PHONY: all-target-libada maybe-all-target-libada
44968maybe-all-target-libada:
4f0ef2d8
CD
44969@if gcc-bootstrap
44970all-target-libada: stage_current
44971@endif gcc-bootstrap
6bd3dfaa 44972@if target-libada
72b2455a 44973TARGET-target-libada=all
6bd3dfaa 44974maybe-all-target-libada: all-target-libada
4fa63067 44975all-target-libada: configure-target-libada
0aed8855 44976 @: $(MAKE); $(unstage)
4fa63067
NN
44977 @r=`${PWD_COMMAND}`; export r; \
44978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44979 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44980 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 44981 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44982 $(TARGET-target-libada))
6bd3dfaa 44983@endif target-libada
4fa63067 44984
a7254363
PB
44985
44986
d545f33b
PB
44987
44988
4fa63067
NN
44989.PHONY: check-target-libada maybe-check-target-libada
44990maybe-check-target-libada:
6bd3dfaa
PB
44991@if target-libada
44992maybe-check-target-libada: check-target-libada
4fa63067
NN
44993
44994check-target-libada:
0aed8855 44995 @: $(MAKE); $(unstage)
4fa63067
NN
44996 @r=`${PWD_COMMAND}`; export r; \
44997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44998 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44999 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45000 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45001
6bd3dfaa 45002@endif target-libada
4fa63067
NN
45003
45004.PHONY: install-target-libada maybe-install-target-libada
45005maybe-install-target-libada:
6bd3dfaa
PB
45006@if target-libada
45007maybe-install-target-libada: install-target-libada
4fa63067
NN
45008
45009install-target-libada: installdirs
0aed8855 45010 @: $(MAKE); $(unstage)
4fa63067
NN
45011 @r=`${PWD_COMMAND}`; export r; \
45012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45013 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45014 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45015 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45016
6bd3dfaa 45017@endif target-libada
4fa63067 45018
9b980aa1
RW
45019.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45020maybe-install-strip-target-libada:
45021@if target-libada
45022maybe-install-strip-target-libada: install-strip-target-libada
45023
45024install-strip-target-libada: installdirs
45025 @: $(MAKE); $(unstage)
45026 @r=`${PWD_COMMAND}`; export r; \
45027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45028 $(NORMAL_TARGET_EXPORTS) \
45029 (cd $(TARGET_SUBDIR)/libada && \
45030 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45031
45032@endif target-libada
45033
56a8fe78 45034# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45035
45036.PHONY: maybe-info-target-libada info-target-libada
45037maybe-info-target-libada:
6bd3dfaa
PB
45038@if target-libada
45039maybe-info-target-libada: info-target-libada
4fa63067
NN
45040
45041info-target-libada: \
45042 configure-target-libada
0aed8855 45043 @: $(MAKE); $(unstage)
4fa63067
NN
45044 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45045 r=`${PWD_COMMAND}`; export r; \
45046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45047 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45048 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
45049 for flag in $(EXTRA_TARGET_FLAGS); do \
45050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45051 done; \
45052 (cd $(TARGET_SUBDIR)/libada && \
45053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45055 "RANLIB=$${RANLIB}" \
0c24b341 45056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45057 info) \
4fa63067
NN
45058 || exit 1
45059
6bd3dfaa 45060@endif target-libada
4fa63067
NN
45061
45062.PHONY: maybe-dvi-target-libada dvi-target-libada
45063maybe-dvi-target-libada:
6bd3dfaa
PB
45064@if target-libada
45065maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
45066
45067dvi-target-libada: \
45068 configure-target-libada
0aed8855 45069 @: $(MAKE); $(unstage)
4fa63067
NN
45070 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45071 r=`${PWD_COMMAND}`; export r; \
45072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45073 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45074 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
45075 for flag in $(EXTRA_TARGET_FLAGS); do \
45076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45077 done; \
45078 (cd $(TARGET_SUBDIR)/libada && \
45079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45081 "RANLIB=$${RANLIB}" \
0c24b341 45082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45083 dvi) \
4fa63067
NN
45084 || exit 1
45085
6bd3dfaa 45086@endif target-libada
4fa63067 45087
56a8fe78
DD
45088.PHONY: maybe-pdf-target-libada pdf-target-libada
45089maybe-pdf-target-libada:
45090@if target-libada
45091maybe-pdf-target-libada: pdf-target-libada
45092
45093pdf-target-libada: \
45094 configure-target-libada
45095 @: $(MAKE); $(unstage)
45096 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45097 r=`${PWD_COMMAND}`; export r; \
45098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45099 $(NORMAL_TARGET_EXPORTS) \
45100 echo "Doing pdf in $(TARGET_SUBDIR)/libada" ; \
45101 for flag in $(EXTRA_TARGET_FLAGS); do \
45102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45103 done; \
45104 (cd $(TARGET_SUBDIR)/libada && \
45105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45107 "RANLIB=$${RANLIB}" \
0c24b341 45108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45109 pdf) \
45110 || exit 1
45111
45112@endif target-libada
45113
6d389afc
MS
45114.PHONY: maybe-html-target-libada html-target-libada
45115maybe-html-target-libada:
45116@if target-libada
45117maybe-html-target-libada: html-target-libada
45118
45119html-target-libada: \
45120 configure-target-libada
0aed8855 45121 @: $(MAKE); $(unstage)
6d389afc
MS
45122 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45123 r=`${PWD_COMMAND}`; export r; \
45124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
45125 $(NORMAL_TARGET_EXPORTS) \
45126 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
45127 for flag in $(EXTRA_TARGET_FLAGS); do \
45128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45129 done; \
45130 (cd $(TARGET_SUBDIR)/libada && \
45131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45133 "RANLIB=$${RANLIB}" \
0c24b341 45134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45135 html) \
45136 || exit 1
45137
45138@endif target-libada
45139
4fa63067
NN
45140.PHONY: maybe-TAGS-target-libada TAGS-target-libada
45141maybe-TAGS-target-libada:
6bd3dfaa
PB
45142@if target-libada
45143maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
45144
45145TAGS-target-libada: \
45146 configure-target-libada
0aed8855 45147 @: $(MAKE); $(unstage)
4fa63067
NN
45148 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45149 r=`${PWD_COMMAND}`; export r; \
45150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45151 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45152 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
45153 for flag in $(EXTRA_TARGET_FLAGS); do \
45154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45155 done; \
45156 (cd $(TARGET_SUBDIR)/libada && \
45157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45159 "RANLIB=$${RANLIB}" \
0c24b341 45160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45161 TAGS) \
4fa63067
NN
45162 || exit 1
45163
6bd3dfaa 45164@endif target-libada
4fa63067
NN
45165
45166.PHONY: maybe-install-info-target-libada install-info-target-libada
45167maybe-install-info-target-libada:
6bd3dfaa
PB
45168@if target-libada
45169maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
45170
45171install-info-target-libada: \
45172 configure-target-libada \
45173 info-target-libada
0aed8855 45174 @: $(MAKE); $(unstage)
4fa63067
NN
45175 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45176 r=`${PWD_COMMAND}`; export r; \
45177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45178 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45179 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
45180 for flag in $(EXTRA_TARGET_FLAGS); do \
45181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45182 done; \
45183 (cd $(TARGET_SUBDIR)/libada && \
45184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45186 "RANLIB=$${RANLIB}" \
0c24b341 45187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45188 install-info) \
4fa63067
NN
45189 || exit 1
45190
6bd3dfaa 45191@endif target-libada
4fa63067 45192
a3ca38d2
DD
45193.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
45194maybe-install-pdf-target-libada:
45195@if target-libada
45196maybe-install-pdf-target-libada: install-pdf-target-libada
45197
45198install-pdf-target-libada: \
45199 configure-target-libada \
45200 pdf-target-libada
45201 @: $(MAKE); $(unstage)
45202 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45203 r=`${PWD_COMMAND}`; export r; \
45204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45205 $(NORMAL_TARGET_EXPORTS) \
45206 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada" ; \
45207 for flag in $(EXTRA_TARGET_FLAGS); do \
45208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45209 done; \
45210 (cd $(TARGET_SUBDIR)/libada && \
45211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45213 "RANLIB=$${RANLIB}" \
0c24b341 45214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45215 install-pdf) \
45216 || exit 1
45217
45218@endif target-libada
45219
108a6f8e
CD
45220.PHONY: maybe-install-html-target-libada install-html-target-libada
45221maybe-install-html-target-libada:
45222@if target-libada
45223maybe-install-html-target-libada: install-html-target-libada
45224
45225install-html-target-libada: \
45226 configure-target-libada \
45227 html-target-libada
45228 @: $(MAKE); $(unstage)
45229 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45230 r=`${PWD_COMMAND}`; export r; \
45231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45232 $(NORMAL_TARGET_EXPORTS) \
45233 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
45234 for flag in $(EXTRA_TARGET_FLAGS); do \
45235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45236 done; \
45237 (cd $(TARGET_SUBDIR)/libada && \
45238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45240 "RANLIB=$${RANLIB}" \
0c24b341 45241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45242 install-html) \
45243 || exit 1
45244
45245@endif target-libada
45246
4fa63067
NN
45247.PHONY: maybe-installcheck-target-libada installcheck-target-libada
45248maybe-installcheck-target-libada:
6bd3dfaa
PB
45249@if target-libada
45250maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
45251
45252installcheck-target-libada: \
45253 configure-target-libada
0aed8855 45254 @: $(MAKE); $(unstage)
4fa63067
NN
45255 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45256 r=`${PWD_COMMAND}`; export r; \
45257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45258 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45259 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
45260 for flag in $(EXTRA_TARGET_FLAGS); do \
45261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45262 done; \
45263 (cd $(TARGET_SUBDIR)/libada && \
45264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45266 "RANLIB=$${RANLIB}" \
0c24b341 45267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45268 installcheck) \
4fa63067
NN
45269 || exit 1
45270
6bd3dfaa 45271@endif target-libada
4fa63067
NN
45272
45273.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
45274maybe-mostlyclean-target-libada:
6bd3dfaa
PB
45275@if target-libada
45276maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
45277
45278mostlyclean-target-libada:
0aed8855 45279 @: $(MAKE); $(unstage)
4fa63067
NN
45280 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45281 r=`${PWD_COMMAND}`; export r; \
45282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45283 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45284 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
45285 for flag in $(EXTRA_TARGET_FLAGS); do \
45286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45287 done; \
45288 (cd $(TARGET_SUBDIR)/libada && \
45289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45291 "RANLIB=$${RANLIB}" \
0c24b341 45292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45293 mostlyclean) \
4fa63067
NN
45294 || exit 1
45295
6bd3dfaa 45296@endif target-libada
4fa63067
NN
45297
45298.PHONY: maybe-clean-target-libada clean-target-libada
45299maybe-clean-target-libada:
6bd3dfaa
PB
45300@if target-libada
45301maybe-clean-target-libada: clean-target-libada
4fa63067
NN
45302
45303clean-target-libada:
0aed8855 45304 @: $(MAKE); $(unstage)
4fa63067
NN
45305 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45306 r=`${PWD_COMMAND}`; export r; \
45307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45308 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45309 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
45310 for flag in $(EXTRA_TARGET_FLAGS); do \
45311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45312 done; \
45313 (cd $(TARGET_SUBDIR)/libada && \
45314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45316 "RANLIB=$${RANLIB}" \
0c24b341 45317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45318 clean) \
4fa63067
NN
45319 || exit 1
45320
6bd3dfaa 45321@endif target-libada
a2592b1b 45322
4fa63067
NN
45323.PHONY: maybe-distclean-target-libada distclean-target-libada
45324maybe-distclean-target-libada:
6bd3dfaa
PB
45325@if target-libada
45326maybe-distclean-target-libada: distclean-target-libada
a2592b1b 45327
4fa63067 45328distclean-target-libada:
0aed8855 45329 @: $(MAKE); $(unstage)
4fa63067
NN
45330 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45331 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45333 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45334 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
45335 for flag in $(EXTRA_TARGET_FLAGS); do \
45336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45337 done; \
a2592b1b 45338 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45341 "RANLIB=$${RANLIB}" \
0c24b341 45342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45343 distclean) \
4fa63067 45344 || exit 1
a2592b1b 45345
6bd3dfaa 45346@endif target-libada
a2592b1b 45347
4fa63067
NN
45348.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
45349maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
45350@if target-libada
45351maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 45352
4fa63067 45353maintainer-clean-target-libada:
0aed8855 45354 @: $(MAKE); $(unstage)
4fa63067
NN
45355 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45356 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45358 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45359 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
45360 for flag in $(EXTRA_TARGET_FLAGS); do \
45361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45362 done; \
a2592b1b 45363 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45366 "RANLIB=$${RANLIB}" \
0c24b341 45367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45368 maintainer-clean) \
4fa63067
NN
45369 || exit 1
45370
6bd3dfaa 45371@endif target-libada
a2592b1b
DD
45372
45373
e393202e 45374
b3ded179
PB
45375
45376
45377.PHONY: configure-target-libgomp maybe-configure-target-libgomp
45378maybe-configure-target-libgomp:
4f0ef2d8
CD
45379@if gcc-bootstrap
45380configure-target-libgomp: stage_current
45381@endif gcc-bootstrap
b3ded179
PB
45382@if target-libgomp
45383maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 45384configure-target-libgomp:
b3ded179
PB
45385 @r=`${PWD_COMMAND}`; export r; \
45386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45387 echo "Checking multilib configuration for libgomp..."; \
45388 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45389 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45390 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45391 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45392 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45393 else \
45394 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45395 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45396 fi; \
45397 else \
45398 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
45399 fi; \
45400 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
b3ded179 45401 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
1f53ca9a 45402 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
45403 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
45404 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
45405 case $(srcdir) in \
45406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45407 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45409 esac; \
1b6c0831 45410 module_srcdir=libgomp; \
b3ded179 45411 rm -f no-such-file || : ; \
1b6c0831
L
45412 CONFIG_SITE=no-such-file $(SHELL) \
45413 $$s/$$module_srcdir/configure \
45414 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45415 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45416 --target=${target_alias} \
b3ded179
PB
45417 || exit 1
45418@endif target-libgomp
45419
45420
45421
911e63d0
JR
45422.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
45423maybe-configure-stage1-target-libgomp:
45424@if target-libgomp-bootstrap
45425maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
45426configure-stage1-target-libgomp:
45427 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45428 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45429 @r=`${PWD_COMMAND}`; export r; \
45430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45431 TFLAGS="$(STAGE1_TFLAGS)"; \
45432 echo "Checking multilib configuration for libgomp..."; \
45433 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45434 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45435 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45436 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45437 else \
45438 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45439 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45440 fi; \
45441 else \
45442 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45443 fi; \
45444 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45445 $(NORMAL_TARGET_EXPORTS) \
45446 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45447 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45448 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45449 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp ; \
45450 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45451 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45452 case $(srcdir) in \
45453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45454 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45456 esac; \
1b6c0831
L
45457 module_srcdir=libgomp; \
45458 $(SHELL) $$s/$$module_srcdir/configure \
45459 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45460 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45461 --target=${target_alias} \
45462 \
911e63d0
JR
45463 $(STAGE1_CONFIGURE_FLAGS)
45464@endif target-libgomp-bootstrap
45465
45466.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
45467maybe-configure-stage2-target-libgomp:
45468@if target-libgomp-bootstrap
45469maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
45470configure-stage2-target-libgomp:
45471 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45472 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45473 @r=`${PWD_COMMAND}`; export r; \
45474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45475 TFLAGS="$(STAGE2_TFLAGS)"; \
45476 echo "Checking multilib configuration for libgomp..."; \
45477 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45478 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45479 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45480 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45481 else \
45482 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45483 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45484 fi; \
45485 else \
45486 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45487 fi; \
45488 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45489 $(NORMAL_TARGET_EXPORTS) \
45490 \
45491 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45492 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45493 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45494 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp ; \
45495 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45496 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45497 case $(srcdir) in \
45498 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45499 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45500 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45501 esac; \
1b6c0831
L
45502 module_srcdir=libgomp; \
45503 $(SHELL) $$s/$$module_srcdir/configure \
45504 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45505 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45506 --target=${target_alias} \
45507 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45508 $(STAGE2_CONFIGURE_FLAGS)
45509@endif target-libgomp-bootstrap
45510
45511.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
45512maybe-configure-stage3-target-libgomp:
45513@if target-libgomp-bootstrap
45514maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
45515configure-stage3-target-libgomp:
45516 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45517 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45518 @r=`${PWD_COMMAND}`; export r; \
45519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45520 TFLAGS="$(STAGE3_TFLAGS)"; \
45521 echo "Checking multilib configuration for libgomp..."; \
45522 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45523 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45524 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45525 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45526 else \
45527 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45528 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45529 fi; \
45530 else \
45531 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45532 fi; \
45533 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45534 $(NORMAL_TARGET_EXPORTS) \
45535 \
45536 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45537 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45538 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45539 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp ; \
45540 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45541 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45542 case $(srcdir) in \
45543 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45544 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45545 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45546 esac; \
1b6c0831
L
45547 module_srcdir=libgomp; \
45548 $(SHELL) $$s/$$module_srcdir/configure \
45549 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45550 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45551 --target=${target_alias} \
45552 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45553 $(STAGE3_CONFIGURE_FLAGS)
45554@endif target-libgomp-bootstrap
45555
45556.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
45557maybe-configure-stage4-target-libgomp:
45558@if target-libgomp-bootstrap
45559maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
45560configure-stage4-target-libgomp:
45561 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45562 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45563 @r=`${PWD_COMMAND}`; export r; \
45564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45565 TFLAGS="$(STAGE4_TFLAGS)"; \
45566 echo "Checking multilib configuration for libgomp..."; \
45567 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45568 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45569 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45570 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45571 else \
45572 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45573 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45574 fi; \
45575 else \
45576 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45577 fi; \
45578 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45579 $(NORMAL_TARGET_EXPORTS) \
45580 \
45581 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45582 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45583 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45584 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp ; \
45585 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45586 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45587 case $(srcdir) in \
45588 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45589 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45590 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45591 esac; \
1b6c0831
L
45592 module_srcdir=libgomp; \
45593 $(SHELL) $$s/$$module_srcdir/configure \
45594 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45595 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45596 --target=${target_alias} \
45597 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45598 $(STAGE4_CONFIGURE_FLAGS)
45599@endif target-libgomp-bootstrap
45600
45601.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
45602maybe-configure-stageprofile-target-libgomp:
45603@if target-libgomp-bootstrap
45604maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
45605configure-stageprofile-target-libgomp:
45606 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45607 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45608 @r=`${PWD_COMMAND}`; export r; \
45609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45610 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45611 echo "Checking multilib configuration for libgomp..."; \
45612 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45613 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45614 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45615 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45616 else \
45617 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45618 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45619 fi; \
45620 else \
45621 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45622 fi; \
45623 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45624 $(NORMAL_TARGET_EXPORTS) \
45625 \
45626 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45627 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45628 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45629 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp ; \
45630 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45631 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45632 case $(srcdir) in \
45633 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45634 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45635 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45636 esac; \
1b6c0831
L
45637 module_srcdir=libgomp; \
45638 $(SHELL) $$s/$$module_srcdir/configure \
45639 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45640 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45641 --target=${target_alias} \
45642 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45643 $(STAGEprofile_CONFIGURE_FLAGS)
45644@endif target-libgomp-bootstrap
45645
45646.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
45647maybe-configure-stagefeedback-target-libgomp:
45648@if target-libgomp-bootstrap
45649maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
45650configure-stagefeedback-target-libgomp:
45651 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45652 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45653 @r=`${PWD_COMMAND}`; export r; \
45654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45655 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45656 echo "Checking multilib configuration for libgomp..."; \
45657 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45658 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45659 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45660 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45661 else \
45662 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45663 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45664 fi; \
45665 else \
45666 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45667 fi; \
45668 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45669 $(NORMAL_TARGET_EXPORTS) \
45670 \
45671 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45672 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45673 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45674 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp ; \
45675 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45676 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45677 case $(srcdir) in \
45678 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45679 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45680 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45681 esac; \
1b6c0831
L
45682 module_srcdir=libgomp; \
45683 $(SHELL) $$s/$$module_srcdir/configure \
45684 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45685 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45686 --target=${target_alias} \
45687 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45688 $(STAGEfeedback_CONFIGURE_FLAGS)
45689@endif target-libgomp-bootstrap
45690
45691
45692
b3ded179
PB
45693
45694
45695.PHONY: all-target-libgomp maybe-all-target-libgomp
45696maybe-all-target-libgomp:
4f0ef2d8
CD
45697@if gcc-bootstrap
45698all-target-libgomp: stage_current
45699@endif gcc-bootstrap
b3ded179
PB
45700@if target-libgomp
45701TARGET-target-libgomp=all
45702maybe-all-target-libgomp: all-target-libgomp
45703all-target-libgomp: configure-target-libgomp
b3ded179
PB
45704 @r=`${PWD_COMMAND}`; export r; \
45705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45706 $(NORMAL_TARGET_EXPORTS) \
b3ded179 45707 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45708 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45709 $(TARGET-target-libgomp))
b3ded179
PB
45710@endif target-libgomp
45711
45712
45713
911e63d0
JR
45714.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
45715.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
45716maybe-all-stage1-target-libgomp:
45717maybe-clean-stage1-target-libgomp:
45718@if target-libgomp-bootstrap
45719maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
45720all-stage1: all-stage1-target-libgomp
45721TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
45722all-stage1-target-libgomp: configure-stage1-target-libgomp
45723 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45724 @r=`${PWD_COMMAND}`; export r; \
45725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45726 TFLAGS="$(STAGE1_TFLAGS)"; \
45727 $(NORMAL_TARGET_EXPORTS) \
45728 cd $(TARGET_SUBDIR)/libgomp && \
45729 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45730 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45731 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45732 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45733 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45734 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45735 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
45736 $(EXTRA_TARGET_FLAGS) \
45737 \
911e63d0
JR
45738 TFLAGS="$(STAGE1_TFLAGS)" \
45739 $(TARGET-stage1-target-libgomp)
45740
45741maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
45742clean-stage1: clean-stage1-target-libgomp
45743clean-stage1-target-libgomp:
45744 @if [ $(current_stage) = stage1 ]; then \
45745 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45746 else \
45747 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
45748 $(MAKE) stage1-start; \
45749 fi; \
45750 cd $(TARGET_SUBDIR)/libgomp && \
45751 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 45752 clean
911e63d0
JR
45753@endif target-libgomp-bootstrap
45754
45755
45756.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
45757.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
45758maybe-all-stage2-target-libgomp:
45759maybe-clean-stage2-target-libgomp:
45760@if target-libgomp-bootstrap
45761maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
45762all-stage2: all-stage2-target-libgomp
45763TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
45764all-stage2-target-libgomp: configure-stage2-target-libgomp
45765 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45766 @r=`${PWD_COMMAND}`; export r; \
45767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45768 TFLAGS="$(STAGE2_TFLAGS)"; \
45769 $(NORMAL_TARGET_EXPORTS) \
45770 \
45771 cd $(TARGET_SUBDIR)/libgomp && \
45772 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45773 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45774 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45775 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45776 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45777 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45778 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45779 $(EXTRA_TARGET_FLAGS) \
45780 TFLAGS="$(STAGE2_TFLAGS)" \
45781 $(TARGET-stage2-target-libgomp)
45782
45783maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
45784clean-stage2: clean-stage2-target-libgomp
45785clean-stage2-target-libgomp:
45786 @if [ $(current_stage) = stage2 ]; then \
45787 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45788 else \
45789 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
45790 $(MAKE) stage2-start; \
45791 fi; \
45792 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45793 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45794@endif target-libgomp-bootstrap
45795
45796
45797.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
45798.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
45799maybe-all-stage3-target-libgomp:
45800maybe-clean-stage3-target-libgomp:
45801@if target-libgomp-bootstrap
45802maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
45803all-stage3: all-stage3-target-libgomp
45804TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
45805all-stage3-target-libgomp: configure-stage3-target-libgomp
45806 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45807 @r=`${PWD_COMMAND}`; export r; \
45808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45809 TFLAGS="$(STAGE3_TFLAGS)"; \
45810 $(NORMAL_TARGET_EXPORTS) \
45811 \
45812 cd $(TARGET_SUBDIR)/libgomp && \
45813 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45814 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45815 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45816 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45817 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45818 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45819 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45820 $(EXTRA_TARGET_FLAGS) \
45821 TFLAGS="$(STAGE3_TFLAGS)" \
45822 $(TARGET-stage3-target-libgomp)
45823
45824maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
45825clean-stage3: clean-stage3-target-libgomp
45826clean-stage3-target-libgomp:
45827 @if [ $(current_stage) = stage3 ]; then \
45828 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45829 else \
45830 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
45831 $(MAKE) stage3-start; \
45832 fi; \
45833 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45834 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45835@endif target-libgomp-bootstrap
45836
45837
45838.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
45839.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
45840maybe-all-stage4-target-libgomp:
45841maybe-clean-stage4-target-libgomp:
45842@if target-libgomp-bootstrap
45843maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
45844all-stage4: all-stage4-target-libgomp
45845TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
45846all-stage4-target-libgomp: configure-stage4-target-libgomp
45847 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45848 @r=`${PWD_COMMAND}`; export r; \
45849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45850 TFLAGS="$(STAGE4_TFLAGS)"; \
45851 $(NORMAL_TARGET_EXPORTS) \
45852 \
45853 cd $(TARGET_SUBDIR)/libgomp && \
45854 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45855 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45856 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45857 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45858 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45859 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45860 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45861 $(EXTRA_TARGET_FLAGS) \
45862 TFLAGS="$(STAGE4_TFLAGS)" \
45863 $(TARGET-stage4-target-libgomp)
45864
45865maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
45866clean-stage4: clean-stage4-target-libgomp
45867clean-stage4-target-libgomp:
45868 @if [ $(current_stage) = stage4 ]; then \
45869 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45870 else \
45871 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
45872 $(MAKE) stage4-start; \
45873 fi; \
45874 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45875 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45876@endif target-libgomp-bootstrap
45877
45878
45879.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
45880.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
45881maybe-all-stageprofile-target-libgomp:
45882maybe-clean-stageprofile-target-libgomp:
45883@if target-libgomp-bootstrap
45884maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
45885all-stageprofile: all-stageprofile-target-libgomp
45886TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
45887all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
45888 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45889 @r=`${PWD_COMMAND}`; export r; \
45890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45891 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45892 $(NORMAL_TARGET_EXPORTS) \
45893 \
45894 cd $(TARGET_SUBDIR)/libgomp && \
45895 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45896 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45897 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45898 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45899 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45900 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45901 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45902 $(EXTRA_TARGET_FLAGS) \
45903 TFLAGS="$(STAGEprofile_TFLAGS)" \
45904 $(TARGET-stageprofile-target-libgomp)
45905
45906maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
45907clean-stageprofile: clean-stageprofile-target-libgomp
45908clean-stageprofile-target-libgomp:
45909 @if [ $(current_stage) = stageprofile ]; then \
45910 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45911 else \
45912 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
45913 $(MAKE) stageprofile-start; \
45914 fi; \
45915 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45916 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45917@endif target-libgomp-bootstrap
45918
45919
45920.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
45921.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
45922maybe-all-stagefeedback-target-libgomp:
45923maybe-clean-stagefeedback-target-libgomp:
45924@if target-libgomp-bootstrap
45925maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
45926all-stagefeedback: all-stagefeedback-target-libgomp
45927TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
45928all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
45929 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45930 @r=`${PWD_COMMAND}`; export r; \
45931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45932 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45933 $(NORMAL_TARGET_EXPORTS) \
45934 \
45935 cd $(TARGET_SUBDIR)/libgomp && \
45936 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45937 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45938 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45939 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45940 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45941 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45942 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45943 $(EXTRA_TARGET_FLAGS) \
45944 TFLAGS="$(STAGEfeedback_TFLAGS)" \
45945 $(TARGET-stagefeedback-target-libgomp)
45946
45947maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
45948clean-stagefeedback: clean-stagefeedback-target-libgomp
45949clean-stagefeedback-target-libgomp:
45950 @if [ $(current_stage) = stagefeedback ]; then \
45951 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45952 else \
45953 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
45954 $(MAKE) stagefeedback-start; \
45955 fi; \
45956 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45957 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45958@endif target-libgomp-bootstrap
45959
45960
45961
45962
b3ded179
PB
45963
45964
45965.PHONY: check-target-libgomp maybe-check-target-libgomp
45966maybe-check-target-libgomp:
45967@if target-libgomp
45968maybe-check-target-libgomp: check-target-libgomp
45969
45970check-target-libgomp:
45971 @: $(MAKE); $(unstage)
45972 @r=`${PWD_COMMAND}`; export r; \
45973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45974 $(NORMAL_TARGET_EXPORTS) \
45975 (cd $(TARGET_SUBDIR)/libgomp && \
45976 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
45977
45978@endif target-libgomp
45979
45980.PHONY: install-target-libgomp maybe-install-target-libgomp
45981maybe-install-target-libgomp:
45982@if target-libgomp
45983maybe-install-target-libgomp: install-target-libgomp
45984
45985install-target-libgomp: installdirs
45986 @: $(MAKE); $(unstage)
45987 @r=`${PWD_COMMAND}`; export r; \
45988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45989 $(NORMAL_TARGET_EXPORTS) \
45990 (cd $(TARGET_SUBDIR)/libgomp && \
45991 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
45992
45993@endif target-libgomp
45994
9b980aa1
RW
45995.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
45996maybe-install-strip-target-libgomp:
45997@if target-libgomp
45998maybe-install-strip-target-libgomp: install-strip-target-libgomp
45999
46000install-strip-target-libgomp: installdirs
46001 @: $(MAKE); $(unstage)
46002 @r=`${PWD_COMMAND}`; export r; \
46003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46004 $(NORMAL_TARGET_EXPORTS) \
46005 (cd $(TARGET_SUBDIR)/libgomp && \
46006 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46007
46008@endif target-libgomp
46009
56a8fe78 46010# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46011
46012.PHONY: maybe-info-target-libgomp info-target-libgomp
46013maybe-info-target-libgomp:
46014@if target-libgomp
46015maybe-info-target-libgomp: info-target-libgomp
46016
46017info-target-libgomp: \
46018 configure-target-libgomp
46019 @: $(MAKE); $(unstage)
46020 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46021 r=`${PWD_COMMAND}`; export r; \
46022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46023 $(NORMAL_TARGET_EXPORTS) \
46024 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
46025 for flag in $(EXTRA_TARGET_FLAGS); do \
46026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46027 done; \
46028 (cd $(TARGET_SUBDIR)/libgomp && \
46029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46031 "RANLIB=$${RANLIB}" \
0c24b341 46032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46033 info) \
46034 || exit 1
46035
46036@endif target-libgomp
46037
46038.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
46039maybe-dvi-target-libgomp:
46040@if target-libgomp
46041maybe-dvi-target-libgomp: dvi-target-libgomp
46042
46043dvi-target-libgomp: \
46044 configure-target-libgomp
46045 @: $(MAKE); $(unstage)
46046 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46047 r=`${PWD_COMMAND}`; export r; \
46048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46049 $(NORMAL_TARGET_EXPORTS) \
46050 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
46051 for flag in $(EXTRA_TARGET_FLAGS); do \
46052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46053 done; \
46054 (cd $(TARGET_SUBDIR)/libgomp && \
46055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46057 "RANLIB=$${RANLIB}" \
0c24b341 46058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46059 dvi) \
46060 || exit 1
46061
46062@endif target-libgomp
46063
56a8fe78
DD
46064.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
46065maybe-pdf-target-libgomp:
46066@if target-libgomp
46067maybe-pdf-target-libgomp: pdf-target-libgomp
46068
46069pdf-target-libgomp: \
46070 configure-target-libgomp
46071 @: $(MAKE); $(unstage)
46072 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46073 r=`${PWD_COMMAND}`; export r; \
46074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46075 $(NORMAL_TARGET_EXPORTS) \
46076 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp" ; \
46077 for flag in $(EXTRA_TARGET_FLAGS); do \
46078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46079 done; \
46080 (cd $(TARGET_SUBDIR)/libgomp && \
46081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46083 "RANLIB=$${RANLIB}" \
0c24b341 46084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46085 pdf) \
46086 || exit 1
46087
46088@endif target-libgomp
46089
b3ded179
PB
46090.PHONY: maybe-html-target-libgomp html-target-libgomp
46091maybe-html-target-libgomp:
46092@if target-libgomp
46093maybe-html-target-libgomp: html-target-libgomp
46094
46095html-target-libgomp: \
46096 configure-target-libgomp
46097 @: $(MAKE); $(unstage)
46098 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46099 r=`${PWD_COMMAND}`; export r; \
46100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46101 $(NORMAL_TARGET_EXPORTS) \
46102 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
46103 for flag in $(EXTRA_TARGET_FLAGS); do \
46104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46105 done; \
46106 (cd $(TARGET_SUBDIR)/libgomp && \
46107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46109 "RANLIB=$${RANLIB}" \
0c24b341 46110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46111 html) \
46112 || exit 1
46113
46114@endif target-libgomp
46115
46116.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
46117maybe-TAGS-target-libgomp:
46118@if target-libgomp
46119maybe-TAGS-target-libgomp: TAGS-target-libgomp
46120
46121TAGS-target-libgomp: \
46122 configure-target-libgomp
46123 @: $(MAKE); $(unstage)
46124 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46125 r=`${PWD_COMMAND}`; export r; \
46126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46127 $(NORMAL_TARGET_EXPORTS) \
46128 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
46129 for flag in $(EXTRA_TARGET_FLAGS); do \
46130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46131 done; \
46132 (cd $(TARGET_SUBDIR)/libgomp && \
46133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46135 "RANLIB=$${RANLIB}" \
0c24b341 46136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46137 TAGS) \
46138 || exit 1
46139
46140@endif target-libgomp
46141
46142.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
46143maybe-install-info-target-libgomp:
46144@if target-libgomp
46145maybe-install-info-target-libgomp: install-info-target-libgomp
46146
46147install-info-target-libgomp: \
46148 configure-target-libgomp \
46149 info-target-libgomp
46150 @: $(MAKE); $(unstage)
46151 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46152 r=`${PWD_COMMAND}`; export r; \
46153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46154 $(NORMAL_TARGET_EXPORTS) \
46155 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
46156 for flag in $(EXTRA_TARGET_FLAGS); do \
46157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46158 done; \
46159 (cd $(TARGET_SUBDIR)/libgomp && \
46160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46162 "RANLIB=$${RANLIB}" \
0c24b341 46163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46164 install-info) \
46165 || exit 1
46166
46167@endif target-libgomp
46168
a3ca38d2
DD
46169.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
46170maybe-install-pdf-target-libgomp:
46171@if target-libgomp
46172maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
46173
46174install-pdf-target-libgomp: \
46175 configure-target-libgomp \
46176 pdf-target-libgomp
46177 @: $(MAKE); $(unstage)
46178 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46179 r=`${PWD_COMMAND}`; export r; \
46180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46181 $(NORMAL_TARGET_EXPORTS) \
46182 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp" ; \
46183 for flag in $(EXTRA_TARGET_FLAGS); do \
46184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46185 done; \
46186 (cd $(TARGET_SUBDIR)/libgomp && \
46187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46189 "RANLIB=$${RANLIB}" \
0c24b341 46190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46191 install-pdf) \
46192 || exit 1
46193
46194@endif target-libgomp
46195
108a6f8e
CD
46196.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
46197maybe-install-html-target-libgomp:
46198@if target-libgomp
46199maybe-install-html-target-libgomp: install-html-target-libgomp
46200
46201install-html-target-libgomp: \
46202 configure-target-libgomp \
46203 html-target-libgomp
46204 @: $(MAKE); $(unstage)
46205 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46206 r=`${PWD_COMMAND}`; export r; \
46207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46208 $(NORMAL_TARGET_EXPORTS) \
46209 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
46210 for flag in $(EXTRA_TARGET_FLAGS); do \
46211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46212 done; \
46213 (cd $(TARGET_SUBDIR)/libgomp && \
46214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46216 "RANLIB=$${RANLIB}" \
0c24b341 46217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46218 install-html) \
46219 || exit 1
46220
46221@endif target-libgomp
46222
b3ded179
PB
46223.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
46224maybe-installcheck-target-libgomp:
46225@if target-libgomp
46226maybe-installcheck-target-libgomp: installcheck-target-libgomp
46227
46228installcheck-target-libgomp: \
46229 configure-target-libgomp
46230 @: $(MAKE); $(unstage)
46231 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46232 r=`${PWD_COMMAND}`; export r; \
46233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46234 $(NORMAL_TARGET_EXPORTS) \
46235 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
46236 for flag in $(EXTRA_TARGET_FLAGS); do \
46237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46238 done; \
46239 (cd $(TARGET_SUBDIR)/libgomp && \
46240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46242 "RANLIB=$${RANLIB}" \
0c24b341 46243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46244 installcheck) \
46245 || exit 1
46246
46247@endif target-libgomp
46248
46249.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
46250maybe-mostlyclean-target-libgomp:
46251@if target-libgomp
46252maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
46253
46254mostlyclean-target-libgomp:
46255 @: $(MAKE); $(unstage)
46256 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46257 r=`${PWD_COMMAND}`; export r; \
46258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46259 $(NORMAL_TARGET_EXPORTS) \
46260 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
46261 for flag in $(EXTRA_TARGET_FLAGS); do \
46262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46263 done; \
46264 (cd $(TARGET_SUBDIR)/libgomp && \
46265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46267 "RANLIB=$${RANLIB}" \
0c24b341 46268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46269 mostlyclean) \
46270 || exit 1
46271
46272@endif target-libgomp
46273
46274.PHONY: maybe-clean-target-libgomp clean-target-libgomp
46275maybe-clean-target-libgomp:
46276@if target-libgomp
46277maybe-clean-target-libgomp: clean-target-libgomp
46278
46279clean-target-libgomp:
46280 @: $(MAKE); $(unstage)
46281 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46282 r=`${PWD_COMMAND}`; export r; \
46283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46284 $(NORMAL_TARGET_EXPORTS) \
46285 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
46286 for flag in $(EXTRA_TARGET_FLAGS); do \
46287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46288 done; \
46289 (cd $(TARGET_SUBDIR)/libgomp && \
46290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46292 "RANLIB=$${RANLIB}" \
0c24b341 46293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46294 clean) \
46295 || exit 1
46296
46297@endif target-libgomp
46298
46299.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
46300maybe-distclean-target-libgomp:
46301@if target-libgomp
46302maybe-distclean-target-libgomp: distclean-target-libgomp
46303
46304distclean-target-libgomp:
46305 @: $(MAKE); $(unstage)
46306 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46307 r=`${PWD_COMMAND}`; export r; \
46308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46309 $(NORMAL_TARGET_EXPORTS) \
46310 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
46311 for flag in $(EXTRA_TARGET_FLAGS); do \
46312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46313 done; \
46314 (cd $(TARGET_SUBDIR)/libgomp && \
46315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46317 "RANLIB=$${RANLIB}" \
0c24b341 46318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46319 distclean) \
46320 || exit 1
46321
46322@endif target-libgomp
46323
46324.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
46325maybe-maintainer-clean-target-libgomp:
46326@if target-libgomp
46327maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
46328
46329maintainer-clean-target-libgomp:
46330 @: $(MAKE); $(unstage)
46331 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46332 r=`${PWD_COMMAND}`; export r; \
46333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46334 $(NORMAL_TARGET_EXPORTS) \
46335 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
46336 for flag in $(EXTRA_TARGET_FLAGS); do \
46337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46338 done; \
46339 (cd $(TARGET_SUBDIR)/libgomp && \
46340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46342 "RANLIB=$${RANLIB}" \
0c24b341 46343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46344 maintainer-clean) \
46345 || exit 1
46346
46347@endif target-libgomp
46348
46349
46350
7ec59b9e
L
46351
46352
46353.PHONY: configure-target-libitm maybe-configure-target-libitm
46354maybe-configure-target-libitm:
46355@if gcc-bootstrap
46356configure-target-libitm: stage_current
46357@endif gcc-bootstrap
46358@if target-libitm
46359maybe-configure-target-libitm: configure-target-libitm
46360configure-target-libitm:
46361 @: $(MAKE); $(unstage)
46362 @r=`${PWD_COMMAND}`; export r; \
46363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46364 echo "Checking multilib configuration for libitm..."; \
46365 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm ; \
46366 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null ; \
46367 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
46368 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
46369 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
46370 else \
46371 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
46372 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46373 fi; \
46374 else \
46375 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46376 fi; \
46377 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
46378 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm ; \
46379 $(NORMAL_TARGET_EXPORTS) \
46380 echo Configuring in $(TARGET_SUBDIR)/libitm; \
46381 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
46382 case $(srcdir) in \
46383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46384 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
46385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46386 esac; \
1b6c0831 46387 module_srcdir=libitm; \
7ec59b9e 46388 rm -f no-such-file || : ; \
1b6c0831
L
46389 CONFIG_SITE=no-such-file $(SHELL) \
46390 $$s/$$module_srcdir/configure \
46391 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46392 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46393 --target=${target_alias} \
7ec59b9e
L
46394 || exit 1
46395@endif target-libitm
46396
46397
46398
46399
46400
46401.PHONY: all-target-libitm maybe-all-target-libitm
46402maybe-all-target-libitm:
46403@if gcc-bootstrap
46404all-target-libitm: stage_current
46405@endif gcc-bootstrap
46406@if target-libitm
46407TARGET-target-libitm=all
46408maybe-all-target-libitm: all-target-libitm
46409all-target-libitm: configure-target-libitm
46410 @: $(MAKE); $(unstage)
46411 @r=`${PWD_COMMAND}`; export r; \
46412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46413 $(NORMAL_TARGET_EXPORTS) \
46414 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 46415 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46416 $(TARGET-target-libitm))
46417@endif target-libitm
46418
46419
46420
46421
46422
46423.PHONY: check-target-libitm maybe-check-target-libitm
46424maybe-check-target-libitm:
46425@if target-libitm
46426maybe-check-target-libitm: check-target-libitm
46427
46428check-target-libitm:
46429 @: $(MAKE); $(unstage)
46430 @r=`${PWD_COMMAND}`; export r; \
46431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46432 $(NORMAL_TARGET_EXPORTS) \
46433 (cd $(TARGET_SUBDIR)/libitm && \
46434 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46435
46436@endif target-libitm
46437
46438.PHONY: install-target-libitm maybe-install-target-libitm
46439maybe-install-target-libitm:
46440@if target-libitm
46441maybe-install-target-libitm: install-target-libitm
46442
46443install-target-libitm: installdirs
46444 @: $(MAKE); $(unstage)
46445 @r=`${PWD_COMMAND}`; export r; \
46446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46447 $(NORMAL_TARGET_EXPORTS) \
46448 (cd $(TARGET_SUBDIR)/libitm && \
46449 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46450
46451@endif target-libitm
46452
46453.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
46454maybe-install-strip-target-libitm:
46455@if target-libitm
46456maybe-install-strip-target-libitm: install-strip-target-libitm
46457
46458install-strip-target-libitm: installdirs
46459 @: $(MAKE); $(unstage)
46460 @r=`${PWD_COMMAND}`; export r; \
46461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46462 $(NORMAL_TARGET_EXPORTS) \
46463 (cd $(TARGET_SUBDIR)/libitm && \
46464 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46465
46466@endif target-libitm
46467
46468# Other targets (info, dvi, pdf, etc.)
46469
46470.PHONY: maybe-info-target-libitm info-target-libitm
46471maybe-info-target-libitm:
46472@if target-libitm
46473maybe-info-target-libitm: info-target-libitm
46474
46475info-target-libitm: \
46476 configure-target-libitm
46477 @: $(MAKE); $(unstage)
46478 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46479 r=`${PWD_COMMAND}`; export r; \
46480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46481 $(NORMAL_TARGET_EXPORTS) \
46482 echo "Doing info in $(TARGET_SUBDIR)/libitm" ; \
46483 for flag in $(EXTRA_TARGET_FLAGS); do \
46484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46485 done; \
46486 (cd $(TARGET_SUBDIR)/libitm && \
46487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46489 "RANLIB=$${RANLIB}" \
46490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46491 info) \
46492 || exit 1
46493
46494@endif target-libitm
46495
46496.PHONY: maybe-dvi-target-libitm dvi-target-libitm
46497maybe-dvi-target-libitm:
46498@if target-libitm
46499maybe-dvi-target-libitm: dvi-target-libitm
46500
46501dvi-target-libitm: \
46502 configure-target-libitm
46503 @: $(MAKE); $(unstage)
46504 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46505 r=`${PWD_COMMAND}`; export r; \
46506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46507 $(NORMAL_TARGET_EXPORTS) \
46508 echo "Doing dvi in $(TARGET_SUBDIR)/libitm" ; \
46509 for flag in $(EXTRA_TARGET_FLAGS); do \
46510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46511 done; \
46512 (cd $(TARGET_SUBDIR)/libitm && \
46513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46515 "RANLIB=$${RANLIB}" \
46516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46517 dvi) \
46518 || exit 1
46519
46520@endif target-libitm
46521
46522.PHONY: maybe-pdf-target-libitm pdf-target-libitm
46523maybe-pdf-target-libitm:
46524@if target-libitm
46525maybe-pdf-target-libitm: pdf-target-libitm
46526
46527pdf-target-libitm: \
46528 configure-target-libitm
46529 @: $(MAKE); $(unstage)
46530 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46531 r=`${PWD_COMMAND}`; export r; \
46532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46533 $(NORMAL_TARGET_EXPORTS) \
46534 echo "Doing pdf in $(TARGET_SUBDIR)/libitm" ; \
46535 for flag in $(EXTRA_TARGET_FLAGS); do \
46536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46537 done; \
46538 (cd $(TARGET_SUBDIR)/libitm && \
46539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46541 "RANLIB=$${RANLIB}" \
46542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46543 pdf) \
46544 || exit 1
46545
46546@endif target-libitm
46547
46548.PHONY: maybe-html-target-libitm html-target-libitm
46549maybe-html-target-libitm:
46550@if target-libitm
46551maybe-html-target-libitm: html-target-libitm
46552
46553html-target-libitm: \
46554 configure-target-libitm
46555 @: $(MAKE); $(unstage)
46556 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46557 r=`${PWD_COMMAND}`; export r; \
46558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46559 $(NORMAL_TARGET_EXPORTS) \
46560 echo "Doing html in $(TARGET_SUBDIR)/libitm" ; \
46561 for flag in $(EXTRA_TARGET_FLAGS); do \
46562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46563 done; \
46564 (cd $(TARGET_SUBDIR)/libitm && \
46565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46567 "RANLIB=$${RANLIB}" \
46568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46569 html) \
46570 || exit 1
46571
46572@endif target-libitm
46573
46574.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
46575maybe-TAGS-target-libitm:
46576@if target-libitm
46577maybe-TAGS-target-libitm: TAGS-target-libitm
46578
46579TAGS-target-libitm: \
46580 configure-target-libitm
46581 @: $(MAKE); $(unstage)
46582 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46583 r=`${PWD_COMMAND}`; export r; \
46584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46585 $(NORMAL_TARGET_EXPORTS) \
46586 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm" ; \
46587 for flag in $(EXTRA_TARGET_FLAGS); do \
46588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46589 done; \
46590 (cd $(TARGET_SUBDIR)/libitm && \
46591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46593 "RANLIB=$${RANLIB}" \
46594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46595 TAGS) \
46596 || exit 1
46597
46598@endif target-libitm
46599
46600.PHONY: maybe-install-info-target-libitm install-info-target-libitm
46601maybe-install-info-target-libitm:
46602@if target-libitm
46603maybe-install-info-target-libitm: install-info-target-libitm
46604
46605install-info-target-libitm: \
46606 configure-target-libitm \
46607 info-target-libitm
46608 @: $(MAKE); $(unstage)
46609 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46610 r=`${PWD_COMMAND}`; export r; \
46611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46612 $(NORMAL_TARGET_EXPORTS) \
46613 echo "Doing install-info in $(TARGET_SUBDIR)/libitm" ; \
46614 for flag in $(EXTRA_TARGET_FLAGS); do \
46615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46616 done; \
46617 (cd $(TARGET_SUBDIR)/libitm && \
46618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46620 "RANLIB=$${RANLIB}" \
46621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46622 install-info) \
46623 || exit 1
46624
46625@endif target-libitm
46626
46627.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
46628maybe-install-pdf-target-libitm:
46629@if target-libitm
46630maybe-install-pdf-target-libitm: install-pdf-target-libitm
46631
46632install-pdf-target-libitm: \
46633 configure-target-libitm \
46634 pdf-target-libitm
46635 @: $(MAKE); $(unstage)
46636 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46637 r=`${PWD_COMMAND}`; export r; \
46638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46639 $(NORMAL_TARGET_EXPORTS) \
46640 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm" ; \
46641 for flag in $(EXTRA_TARGET_FLAGS); do \
46642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46643 done; \
46644 (cd $(TARGET_SUBDIR)/libitm && \
46645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46647 "RANLIB=$${RANLIB}" \
46648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46649 install-pdf) \
46650 || exit 1
46651
46652@endif target-libitm
46653
46654.PHONY: maybe-install-html-target-libitm install-html-target-libitm
46655maybe-install-html-target-libitm:
46656@if target-libitm
46657maybe-install-html-target-libitm: install-html-target-libitm
46658
46659install-html-target-libitm: \
46660 configure-target-libitm \
46661 html-target-libitm
46662 @: $(MAKE); $(unstage)
46663 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46664 r=`${PWD_COMMAND}`; export r; \
46665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46666 $(NORMAL_TARGET_EXPORTS) \
46667 echo "Doing install-html in $(TARGET_SUBDIR)/libitm" ; \
46668 for flag in $(EXTRA_TARGET_FLAGS); do \
46669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46670 done; \
46671 (cd $(TARGET_SUBDIR)/libitm && \
46672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46674 "RANLIB=$${RANLIB}" \
46675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46676 install-html) \
46677 || exit 1
46678
46679@endif target-libitm
46680
46681.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
46682maybe-installcheck-target-libitm:
46683@if target-libitm
46684maybe-installcheck-target-libitm: installcheck-target-libitm
46685
46686installcheck-target-libitm: \
46687 configure-target-libitm
46688 @: $(MAKE); $(unstage)
46689 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46690 r=`${PWD_COMMAND}`; export r; \
46691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46692 $(NORMAL_TARGET_EXPORTS) \
46693 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm" ; \
46694 for flag in $(EXTRA_TARGET_FLAGS); do \
46695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46696 done; \
46697 (cd $(TARGET_SUBDIR)/libitm && \
46698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46700 "RANLIB=$${RANLIB}" \
46701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46702 installcheck) \
46703 || exit 1
46704
46705@endif target-libitm
46706
46707.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
46708maybe-mostlyclean-target-libitm:
46709@if target-libitm
46710maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
46711
46712mostlyclean-target-libitm:
46713 @: $(MAKE); $(unstage)
46714 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46715 r=`${PWD_COMMAND}`; export r; \
46716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46717 $(NORMAL_TARGET_EXPORTS) \
46718 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm" ; \
46719 for flag in $(EXTRA_TARGET_FLAGS); do \
46720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46721 done; \
46722 (cd $(TARGET_SUBDIR)/libitm && \
46723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46725 "RANLIB=$${RANLIB}" \
46726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46727 mostlyclean) \
46728 || exit 1
46729
46730@endif target-libitm
46731
46732.PHONY: maybe-clean-target-libitm clean-target-libitm
46733maybe-clean-target-libitm:
46734@if target-libitm
46735maybe-clean-target-libitm: clean-target-libitm
46736
46737clean-target-libitm:
46738 @: $(MAKE); $(unstage)
46739 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46740 r=`${PWD_COMMAND}`; export r; \
46741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46742 $(NORMAL_TARGET_EXPORTS) \
46743 echo "Doing clean in $(TARGET_SUBDIR)/libitm" ; \
46744 for flag in $(EXTRA_TARGET_FLAGS); do \
46745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46746 done; \
46747 (cd $(TARGET_SUBDIR)/libitm && \
46748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46750 "RANLIB=$${RANLIB}" \
46751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46752 clean) \
46753 || exit 1
46754
46755@endif target-libitm
46756
46757.PHONY: maybe-distclean-target-libitm distclean-target-libitm
46758maybe-distclean-target-libitm:
46759@if target-libitm
46760maybe-distclean-target-libitm: distclean-target-libitm
46761
46762distclean-target-libitm:
46763 @: $(MAKE); $(unstage)
46764 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46765 r=`${PWD_COMMAND}`; export r; \
46766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46767 $(NORMAL_TARGET_EXPORTS) \
46768 echo "Doing distclean in $(TARGET_SUBDIR)/libitm" ; \
46769 for flag in $(EXTRA_TARGET_FLAGS); do \
46770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46771 done; \
46772 (cd $(TARGET_SUBDIR)/libitm && \
46773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46775 "RANLIB=$${RANLIB}" \
46776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46777 distclean) \
46778 || exit 1
46779
46780@endif target-libitm
46781
46782.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
46783maybe-maintainer-clean-target-libitm:
46784@if target-libitm
46785maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
46786
46787maintainer-clean-target-libitm:
46788 @: $(MAKE); $(unstage)
46789 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46790 r=`${PWD_COMMAND}`; export r; \
46791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46792 $(NORMAL_TARGET_EXPORTS) \
46793 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm" ; \
46794 for flag in $(EXTRA_TARGET_FLAGS); do \
46795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46796 done; \
46797 (cd $(TARGET_SUBDIR)/libitm && \
46798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46800 "RANLIB=$${RANLIB}" \
46801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46802 maintainer-clean) \
46803 || exit 1
46804
46805@endif target-libitm
46806
46807
46808
46809
46810
46811.PHONY: configure-target-libatomic maybe-configure-target-libatomic
46812maybe-configure-target-libatomic:
46813@if gcc-bootstrap
46814configure-target-libatomic: stage_current
46815@endif gcc-bootstrap
46816@if target-libatomic
46817maybe-configure-target-libatomic: configure-target-libatomic
46818configure-target-libatomic:
46819 @: $(MAKE); $(unstage)
46820 @r=`${PWD_COMMAND}`; export r; \
46821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46822 echo "Checking multilib configuration for libatomic..."; \
46823 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
46824 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null ; \
46825 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
46826 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
46827 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
46828 else \
46829 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
46830 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
46831 fi; \
46832 else \
46833 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
46834 fi; \
46835 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
46836 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
46837 $(NORMAL_TARGET_EXPORTS) \
46838 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
46839 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
46840 case $(srcdir) in \
46841 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46842 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
46843 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46844 esac; \
1b6c0831 46845 module_srcdir=libatomic; \
7ec59b9e 46846 rm -f no-such-file || : ; \
1b6c0831
L
46847 CONFIG_SITE=no-such-file $(SHELL) \
46848 $$s/$$module_srcdir/configure \
46849 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46850 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46851 --target=${target_alias} \
7ec59b9e
L
46852 || exit 1
46853@endif target-libatomic
46854
46855
46856
46857
46858
46859.PHONY: all-target-libatomic maybe-all-target-libatomic
46860maybe-all-target-libatomic:
46861@if gcc-bootstrap
46862all-target-libatomic: stage_current
46863@endif gcc-bootstrap
46864@if target-libatomic
46865TARGET-target-libatomic=all
46866maybe-all-target-libatomic: all-target-libatomic
46867all-target-libatomic: configure-target-libatomic
46868 @: $(MAKE); $(unstage)
46869 @r=`${PWD_COMMAND}`; export r; \
46870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46871 $(NORMAL_TARGET_EXPORTS) \
46872 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 46873 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46874 $(TARGET-target-libatomic))
46875@endif target-libatomic
46876
46877
46878
46879
46880
46881.PHONY: check-target-libatomic maybe-check-target-libatomic
46882maybe-check-target-libatomic:
46883@if target-libatomic
46884maybe-check-target-libatomic: check-target-libatomic
46885
46886check-target-libatomic:
46887 @: $(MAKE); $(unstage)
46888 @r=`${PWD_COMMAND}`; export r; \
46889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46890 $(NORMAL_TARGET_EXPORTS) \
46891 (cd $(TARGET_SUBDIR)/libatomic && \
46892 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46893
46894@endif target-libatomic
46895
46896.PHONY: install-target-libatomic maybe-install-target-libatomic
46897maybe-install-target-libatomic:
46898@if target-libatomic
46899maybe-install-target-libatomic: install-target-libatomic
46900
46901install-target-libatomic: installdirs
46902 @: $(MAKE); $(unstage)
46903 @r=`${PWD_COMMAND}`; export r; \
46904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46905 $(NORMAL_TARGET_EXPORTS) \
46906 (cd $(TARGET_SUBDIR)/libatomic && \
46907 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46908
46909@endif target-libatomic
46910
46911.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
46912maybe-install-strip-target-libatomic:
46913@if target-libatomic
46914maybe-install-strip-target-libatomic: install-strip-target-libatomic
46915
46916install-strip-target-libatomic: installdirs
46917 @: $(MAKE); $(unstage)
46918 @r=`${PWD_COMMAND}`; export r; \
46919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46920 $(NORMAL_TARGET_EXPORTS) \
46921 (cd $(TARGET_SUBDIR)/libatomic && \
46922 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46923
46924@endif target-libatomic
46925
46926# Other targets (info, dvi, pdf, etc.)
46927
46928.PHONY: maybe-info-target-libatomic info-target-libatomic
46929maybe-info-target-libatomic:
46930@if target-libatomic
46931maybe-info-target-libatomic: info-target-libatomic
46932
46933info-target-libatomic: \
46934 configure-target-libatomic
46935 @: $(MAKE); $(unstage)
46936 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46937 r=`${PWD_COMMAND}`; export r; \
46938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46939 $(NORMAL_TARGET_EXPORTS) \
46940 echo "Doing info in $(TARGET_SUBDIR)/libatomic" ; \
46941 for flag in $(EXTRA_TARGET_FLAGS); do \
46942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46943 done; \
46944 (cd $(TARGET_SUBDIR)/libatomic && \
46945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46947 "RANLIB=$${RANLIB}" \
46948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46949 info) \
46950 || exit 1
46951
46952@endif target-libatomic
46953
46954.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
46955maybe-dvi-target-libatomic:
46956@if target-libatomic
46957maybe-dvi-target-libatomic: dvi-target-libatomic
46958
46959dvi-target-libatomic: \
46960 configure-target-libatomic
46961 @: $(MAKE); $(unstage)
46962 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46963 r=`${PWD_COMMAND}`; export r; \
46964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46965 $(NORMAL_TARGET_EXPORTS) \
46966 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic" ; \
46967 for flag in $(EXTRA_TARGET_FLAGS); do \
46968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46969 done; \
46970 (cd $(TARGET_SUBDIR)/libatomic && \
46971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46973 "RANLIB=$${RANLIB}" \
46974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46975 dvi) \
46976 || exit 1
46977
46978@endif target-libatomic
46979
46980.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
46981maybe-pdf-target-libatomic:
46982@if target-libatomic
46983maybe-pdf-target-libatomic: pdf-target-libatomic
46984
46985pdf-target-libatomic: \
46986 configure-target-libatomic
46987 @: $(MAKE); $(unstage)
46988 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46989 r=`${PWD_COMMAND}`; export r; \
46990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46991 $(NORMAL_TARGET_EXPORTS) \
46992 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic" ; \
46993 for flag in $(EXTRA_TARGET_FLAGS); do \
46994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46995 done; \
46996 (cd $(TARGET_SUBDIR)/libatomic && \
46997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46999 "RANLIB=$${RANLIB}" \
47000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47001 pdf) \
47002 || exit 1
47003
47004@endif target-libatomic
47005
47006.PHONY: maybe-html-target-libatomic html-target-libatomic
47007maybe-html-target-libatomic:
47008@if target-libatomic
47009maybe-html-target-libatomic: html-target-libatomic
47010
47011html-target-libatomic: \
47012 configure-target-libatomic
47013 @: $(MAKE); $(unstage)
47014 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47015 r=`${PWD_COMMAND}`; export r; \
47016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47017 $(NORMAL_TARGET_EXPORTS) \
47018 echo "Doing html in $(TARGET_SUBDIR)/libatomic" ; \
47019 for flag in $(EXTRA_TARGET_FLAGS); do \
47020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47021 done; \
47022 (cd $(TARGET_SUBDIR)/libatomic && \
47023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47025 "RANLIB=$${RANLIB}" \
47026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47027 html) \
47028 || exit 1
47029
47030@endif target-libatomic
47031
47032.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
47033maybe-TAGS-target-libatomic:
47034@if target-libatomic
47035maybe-TAGS-target-libatomic: TAGS-target-libatomic
47036
47037TAGS-target-libatomic: \
47038 configure-target-libatomic
47039 @: $(MAKE); $(unstage)
47040 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47041 r=`${PWD_COMMAND}`; export r; \
47042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47043 $(NORMAL_TARGET_EXPORTS) \
47044 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic" ; \
47045 for flag in $(EXTRA_TARGET_FLAGS); do \
47046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47047 done; \
47048 (cd $(TARGET_SUBDIR)/libatomic && \
47049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47051 "RANLIB=$${RANLIB}" \
47052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47053 TAGS) \
47054 || exit 1
47055
47056@endif target-libatomic
47057
47058.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
47059maybe-install-info-target-libatomic:
47060@if target-libatomic
47061maybe-install-info-target-libatomic: install-info-target-libatomic
47062
47063install-info-target-libatomic: \
47064 configure-target-libatomic \
47065 info-target-libatomic
47066 @: $(MAKE); $(unstage)
47067 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47068 r=`${PWD_COMMAND}`; export r; \
47069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47070 $(NORMAL_TARGET_EXPORTS) \
47071 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic" ; \
47072 for flag in $(EXTRA_TARGET_FLAGS); do \
47073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47074 done; \
47075 (cd $(TARGET_SUBDIR)/libatomic && \
47076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47078 "RANLIB=$${RANLIB}" \
47079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47080 install-info) \
47081 || exit 1
47082
47083@endif target-libatomic
47084
47085.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
47086maybe-install-pdf-target-libatomic:
47087@if target-libatomic
47088maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
47089
47090install-pdf-target-libatomic: \
47091 configure-target-libatomic \
47092 pdf-target-libatomic
47093 @: $(MAKE); $(unstage)
47094 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47095 r=`${PWD_COMMAND}`; export r; \
47096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47097 $(NORMAL_TARGET_EXPORTS) \
47098 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic" ; \
47099 for flag in $(EXTRA_TARGET_FLAGS); do \
47100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47101 done; \
47102 (cd $(TARGET_SUBDIR)/libatomic && \
47103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47105 "RANLIB=$${RANLIB}" \
47106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47107 install-pdf) \
47108 || exit 1
47109
47110@endif target-libatomic
47111
47112.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
47113maybe-install-html-target-libatomic:
47114@if target-libatomic
47115maybe-install-html-target-libatomic: install-html-target-libatomic
47116
47117install-html-target-libatomic: \
47118 configure-target-libatomic \
47119 html-target-libatomic
47120 @: $(MAKE); $(unstage)
47121 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47122 r=`${PWD_COMMAND}`; export r; \
47123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47124 $(NORMAL_TARGET_EXPORTS) \
47125 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic" ; \
47126 for flag in $(EXTRA_TARGET_FLAGS); do \
47127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47128 done; \
47129 (cd $(TARGET_SUBDIR)/libatomic && \
47130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47132 "RANLIB=$${RANLIB}" \
47133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47134 install-html) \
47135 || exit 1
47136
47137@endif target-libatomic
47138
47139.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
47140maybe-installcheck-target-libatomic:
47141@if target-libatomic
47142maybe-installcheck-target-libatomic: installcheck-target-libatomic
47143
47144installcheck-target-libatomic: \
47145 configure-target-libatomic
47146 @: $(MAKE); $(unstage)
47147 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47148 r=`${PWD_COMMAND}`; export r; \
47149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47150 $(NORMAL_TARGET_EXPORTS) \
47151 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic" ; \
47152 for flag in $(EXTRA_TARGET_FLAGS); do \
47153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47154 done; \
47155 (cd $(TARGET_SUBDIR)/libatomic && \
47156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47158 "RANLIB=$${RANLIB}" \
47159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47160 installcheck) \
47161 || exit 1
47162
47163@endif target-libatomic
47164
47165.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
47166maybe-mostlyclean-target-libatomic:
47167@if target-libatomic
47168maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
47169
47170mostlyclean-target-libatomic:
47171 @: $(MAKE); $(unstage)
47172 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47173 r=`${PWD_COMMAND}`; export r; \
47174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47175 $(NORMAL_TARGET_EXPORTS) \
47176 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic" ; \
47177 for flag in $(EXTRA_TARGET_FLAGS); do \
47178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47179 done; \
47180 (cd $(TARGET_SUBDIR)/libatomic && \
47181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47183 "RANLIB=$${RANLIB}" \
47184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47185 mostlyclean) \
47186 || exit 1
47187
47188@endif target-libatomic
47189
47190.PHONY: maybe-clean-target-libatomic clean-target-libatomic
47191maybe-clean-target-libatomic:
47192@if target-libatomic
47193maybe-clean-target-libatomic: clean-target-libatomic
47194
47195clean-target-libatomic:
47196 @: $(MAKE); $(unstage)
47197 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47198 r=`${PWD_COMMAND}`; export r; \
47199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47200 $(NORMAL_TARGET_EXPORTS) \
47201 echo "Doing clean in $(TARGET_SUBDIR)/libatomic" ; \
47202 for flag in $(EXTRA_TARGET_FLAGS); do \
47203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47204 done; \
47205 (cd $(TARGET_SUBDIR)/libatomic && \
47206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47208 "RANLIB=$${RANLIB}" \
47209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47210 clean) \
47211 || exit 1
47212
47213@endif target-libatomic
47214
47215.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
47216maybe-distclean-target-libatomic:
47217@if target-libatomic
47218maybe-distclean-target-libatomic: distclean-target-libatomic
47219
47220distclean-target-libatomic:
47221 @: $(MAKE); $(unstage)
47222 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47223 r=`${PWD_COMMAND}`; export r; \
47224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47225 $(NORMAL_TARGET_EXPORTS) \
47226 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic" ; \
47227 for flag in $(EXTRA_TARGET_FLAGS); do \
47228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47229 done; \
47230 (cd $(TARGET_SUBDIR)/libatomic && \
47231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47233 "RANLIB=$${RANLIB}" \
47234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47235 distclean) \
47236 || exit 1
47237
47238@endif target-libatomic
47239
47240.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
47241maybe-maintainer-clean-target-libatomic:
47242@if target-libatomic
47243maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
47244
47245maintainer-clean-target-libatomic:
47246 @: $(MAKE); $(unstage)
47247 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47248 r=`${PWD_COMMAND}`; export r; \
47249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47250 $(NORMAL_TARGET_EXPORTS) \
47251 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic" ; \
47252 for flag in $(EXTRA_TARGET_FLAGS); do \
47253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47254 done; \
47255 (cd $(TARGET_SUBDIR)/libatomic && \
47256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47258 "RANLIB=$${RANLIB}" \
47259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47260 maintainer-clean) \
47261 || exit 1
47262
47263@endif target-libatomic
47264
47265
47266
7ec59b9e
L
47267@if target-libgomp
47268.PHONY: check-target-libgomp-c++
47269check-target-libgomp-c++:
47270 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
47271
47272@endif target-libgomp
47273
47274@if target-libitm
47275.PHONY: check-target-libitm-c++
47276check-target-libitm-c++:
47277 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
47278
47279@endif target-libitm
47280
15723a45
NN
47281# ----------
47282# GCC module
47283# ----------
47284
319cab08 47285@if gcc-no-bootstrap
252b5132 47286.PHONY: cross
72b2455a 47287cross: all-build all-gas all-ld
b40e3958
L
47288 @r=`${PWD_COMMAND}`; export r; \
47289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47290 $(HOST_EXPORTS) \
252b5132 47291 echo "Building the C and C++ compiler"; \
5cec67bf 47292 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958
L
47293 @r=`${PWD_COMMAND}`; export r; \
47294 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
252b5132 47295 echo "Building runtime libraries"; \
656fdd47 47296 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 47297@endif gcc-no-bootstrap
252b5132 47298
6bd3dfaa 47299@if gcc
c50523ce
L
47300
47301.PHONY: check-gcc-c check-c
47302check-gcc-c:
47303 r=`${PWD_COMMAND}`; export r; \
47304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47305 $(HOST_EXPORTS) \
47306 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
47307check-c: check-gcc-c
47308
47309.PHONY: check-gcc-c++ check-c++
7d695d07 47310check-gcc-c++:
c50523ce
L
47311 r=`${PWD_COMMAND}`; export r; \
47312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47313 $(HOST_EXPORTS) \
7ec59b9e 47314 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 47315check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
47316
47317.PHONY: check-gcc-fortran check-fortran
47318check-gcc-fortran:
47319 r=`${PWD_COMMAND}`; export r; \
47320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47321 $(HOST_EXPORTS) \
47322 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e552509b 47323check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
c50523ce
L
47324
47325.PHONY: check-gcc-java check-java
47326check-gcc-java:
47327 r=`${PWD_COMMAND}`; export r; \
47328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47329 $(HOST_EXPORTS) \
47330 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
47331check-java: check-gcc-java check-target-libjava
47332
47333.PHONY: check-gcc-ada check-ada
47334check-gcc-ada:
47335 r=`${PWD_COMMAND}`; export r; \
47336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47337 $(HOST_EXPORTS) \
47338 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
47339check-ada: check-gcc-ada check-target-libada
47340
47341.PHONY: check-gcc-objc check-objc
47342check-gcc-objc:
47343 r=`${PWD_COMMAND}`; export r; \
47344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47345 $(HOST_EXPORTS) \
47346 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
47347check-objc: check-gcc-objc check-target-libobjc
47348
47349.PHONY: check-gcc-obj-c++ check-obj-c++
47350check-gcc-obj-c++:
47351 r=`${PWD_COMMAND}`; export r; \
47352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47353 $(HOST_EXPORTS) \
47354 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
47355check-obj-c++: check-gcc-obj-c++
7d695d07 47356
e552509b
ILT
47357.PHONY: check-gcc-go check-go
47358check-gcc-go:
47359 r=`${PWD_COMMAND}`; export r; \
47360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47361 $(HOST_EXPORTS) \
47362 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
47363check-go: check-gcc-go check-target-libgo
47364
252b5132 47365
7ec59b9e
L
47366# The gcc part of install-no-fixedincludes, which relies on an intimate
47367# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
47368.PHONY: gcc-install-no-fixedincludes
47369gcc-install-no-fixedincludes:
15723a45 47370 @if [ -f ./gcc/Makefile ]; then \
b40e3958 47371 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 47372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47373 $(HOST_EXPORTS) \
7ec59b9e
L
47374 (cd ./gcc \
47375 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 47376 else true; fi
6bd3dfaa 47377@endif gcc
4fa63067 47378
b813574b
PB
47379# ---------------------
47380# GCC bootstrap support
47381# ---------------------
4fa63067 47382
b813574b
PB
47383# We track the current stage (the one in 'gcc') in the stage_current file.
47384# stage_last instead tracks the stage that was built last. These targets
47385# are dummy when toplevel bootstrap is not active.
4fa63067 47386
f70224b5 47387# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
47388# there, so $(unstage) should be run at various points. To avoid excessive
47389# recursive invocations of make, we "inline" them using a variable. These
47390# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
47391# to avoid warnings from the GNU Make job server.
f70224b5
PB
47392
47393unstage = :
47394stage = :
c52c6897 47395current_stage = ""
f70224b5 47396
b813574b 47397@if gcc-bootstrap
9daf3993 47398unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 47399stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 47400current_stage = "`cat stage_current 2> /dev/null`"
b813574b 47401@endif gcc-bootstrap
4fa63067 47402
f70224b5
PB
47403.PHONY: unstage stage
47404unstage:
0aed8855 47405 @: $(MAKE); $(unstage)
b813574b 47406stage:
0aed8855 47407 @: $(MAKE); $(stage)
1d39f329 47408
80911fe1
PB
47409# Disable commands for lean bootstrap.
47410LEAN = false
47411
dfdffa2c
PB
47412# We name the build directories for the various stages "stage1-gcc",
47413# "stage2-gcc","stage3-gcc", etc.
47414
47415# Since the 'compare' process will fail (on debugging information) if any
47416# directory names are different, we need to link the gcc directory for
0aed8855 47417# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
47418# the build directories constant as well. For the latter, we use naked names
47419# like 'gcc', because the scripts in that directory assume it. We use
47420# mv on platforms where symlinks to directories do not work or are not
47421# reliable.
47422
1d39f329
NN
47423# 'touch' doesn't work right on some platforms.
47424STAMP = echo timestamp >
47425
dfdffa2c
PB
47426# We only want to compare .o files, so set this!
47427objext = .o
47428
dfdffa2c 47429
319cab08 47430.PHONY: stage1-start stage1-end
dfdffa2c 47431
656fdd47 47432stage1-start::
0aed8855 47433 @: $(MAKE); $(stage); \
b813574b 47434 echo stage1 > stage_current ; \
b00612cc 47435 echo stage1 > stage_last; \
0aed8855 47436 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47437@if bfd
b00612cc
PB
47438 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
47439 mkdir stage1-bfd; \
80911fe1 47440 mv stage1-bfd bfd
72b2455a
PB
47441@endif bfd
47442@if opcodes
b00612cc
PB
47443 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
47444 mkdir stage1-opcodes; \
80911fe1 47445 mv stage1-opcodes opcodes
72b2455a
PB
47446@endif opcodes
47447@if binutils
b00612cc
PB
47448 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
47449 mkdir stage1-binutils; \
80911fe1 47450 mv stage1-binutils binutils
72b2455a 47451@endif binutils
201f096f 47452@if fixincludes
47453 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
47454 mkdir stage1-fixincludes; \
47455 mv stage1-fixincludes fixincludes
47456@endif fixincludes
72b2455a 47457@if gas
b00612cc
PB
47458 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
47459 mkdir stage1-gas; \
80911fe1 47460 mv stage1-gas gas
72b2455a
PB
47461@endif gas
47462@if gcc
b00612cc
PB
47463 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
47464 mkdir stage1-gcc; \
80911fe1 47465 mv stage1-gcc gcc
72b2455a 47466@endif gcc
4b900473
PB
47467@if gmp
47468 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
47469 mkdir stage1-gmp; \
47470 mv stage1-gmp gmp
47471@endif gmp
47472@if mpfr
47473 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
47474 mkdir stage1-mpfr; \
47475 mv stage1-mpfr mpfr
47476@endif mpfr
e8a5fa9c
RW
47477@if mpc
47478 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
47479 mkdir stage1-mpc; \
47480 mv stage1-mpc mpc
47481@endif mpc
7ec59b9e
L
47482@if isl
47483 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
47484 mkdir stage1-isl; \
47485 mv stage1-isl isl
47486@endif isl
1f53ca9a
AO
47487@if libelf
47488 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
47489 mkdir stage1-libelf; \
47490 mv stage1-libelf libelf
47491@endif libelf
93f9b408
ILT
47492@if gold
47493 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
47494 mkdir stage1-gold; \
47495 mv stage1-gold gold
47496@endif gold
72b2455a 47497@if intl
b00612cc
PB
47498 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
47499 mkdir stage1-intl; \
80911fe1 47500 mv stage1-intl intl
72b2455a
PB
47501@endif intl
47502@if ld
b00612cc
PB
47503 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
47504 mkdir stage1-ld; \
80911fe1 47505 mv stage1-ld ld
72b2455a 47506@endif ld
2bf680c4
ILT
47507@if libbacktrace
47508 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
47509 mkdir stage1-libbacktrace; \
47510 mv stage1-libbacktrace libbacktrace
47511@endif libbacktrace
72b2455a 47512@if libcpp
b00612cc
PB
47513 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
47514 mkdir stage1-libcpp; \
80911fe1 47515 mv stage1-libcpp libcpp
72b2455a 47516@endif libcpp
be01d343
PB
47517@if libdecnumber
47518 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
47519 mkdir stage1-libdecnumber; \
80911fe1 47520 mv stage1-libdecnumber libdecnumber
be01d343 47521@endif libdecnumber
72b2455a 47522@if libiberty
b00612cc
PB
47523 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
47524 mkdir stage1-libiberty; \
80911fe1 47525 mv stage1-libiberty libiberty
72b2455a 47526@endif libiberty
1b6c0831
L
47527@if libiberty-linker-plugin
47528 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
47529 mkdir stage1-libiberty-linker-plugin; \
47530 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
47531@endif libiberty-linker-plugin
72b2455a 47532@if zlib
b00612cc
PB
47533 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
47534 mkdir stage1-zlib; \
80911fe1 47535 mv stage1-zlib zlib
72b2455a 47536@endif zlib
700d40ca
ILT
47537@if lto-plugin
47538 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
47539 mkdir stage1-lto-plugin; \
47540 mv stage1-lto-plugin lto-plugin
47541@endif lto-plugin
0aed8855
PB
47542 @[ -d stage1-$(TARGET_SUBDIR) ] || \
47543 mkdir stage1-$(TARGET_SUBDIR); \
80911fe1 47544 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 47545
80911fe1 47546stage1-end::
72b2455a 47547@if bfd
80911fe1
PB
47548 @if test -d $(HOST_SUBDIR)/bfd ; then \
47549 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
0aed8855 47550 fi
72b2455a
PB
47551@endif bfd
47552@if opcodes
80911fe1
PB
47553 @if test -d $(HOST_SUBDIR)/opcodes ; then \
47554 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
0aed8855 47555 fi
72b2455a
PB
47556@endif opcodes
47557@if binutils
80911fe1
PB
47558 @if test -d $(HOST_SUBDIR)/binutils ; then \
47559 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
0aed8855 47560 fi
72b2455a 47561@endif binutils
201f096f 47562@if fixincludes
47563 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
47564 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes ; \
47565 fi
47566@endif fixincludes
72b2455a 47567@if gas
80911fe1
PB
47568 @if test -d $(HOST_SUBDIR)/gas ; then \
47569 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
0aed8855 47570 fi
72b2455a
PB
47571@endif gas
47572@if gcc
80911fe1
PB
47573 @if test -d $(HOST_SUBDIR)/gcc ; then \
47574 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
0aed8855 47575 fi
72b2455a 47576@endif gcc
4b900473
PB
47577@if gmp
47578 @if test -d $(HOST_SUBDIR)/gmp ; then \
47579 cd $(HOST_SUBDIR); mv gmp stage1-gmp ; \
47580 fi
47581@endif gmp
47582@if mpfr
47583 @if test -d $(HOST_SUBDIR)/mpfr ; then \
47584 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr ; \
47585 fi
47586@endif mpfr
e8a5fa9c
RW
47587@if mpc
47588 @if test -d $(HOST_SUBDIR)/mpc ; then \
47589 cd $(HOST_SUBDIR); mv mpc stage1-mpc ; \
47590 fi
47591@endif mpc
7ec59b9e
L
47592@if isl
47593 @if test -d $(HOST_SUBDIR)/isl ; then \
47594 cd $(HOST_SUBDIR); mv isl stage1-isl ; \
e28c595f 47595 fi
7ec59b9e 47596@endif isl
1f53ca9a
AO
47597@if libelf
47598 @if test -d $(HOST_SUBDIR)/libelf ; then \
47599 cd $(HOST_SUBDIR); mv libelf stage1-libelf ; \
47600 fi
47601@endif libelf
93f9b408
ILT
47602@if gold
47603 @if test -d $(HOST_SUBDIR)/gold ; then \
47604 cd $(HOST_SUBDIR); mv gold stage1-gold ; \
47605 fi
47606@endif gold
72b2455a 47607@if intl
80911fe1
PB
47608 @if test -d $(HOST_SUBDIR)/intl ; then \
47609 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
0aed8855 47610 fi
72b2455a
PB
47611@endif intl
47612@if ld
80911fe1
PB
47613 @if test -d $(HOST_SUBDIR)/ld ; then \
47614 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
0aed8855 47615 fi
72b2455a 47616@endif ld
2bf680c4
ILT
47617@if libbacktrace
47618 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
47619 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace ; \
47620 fi
47621@endif libbacktrace
72b2455a 47622@if libcpp
80911fe1
PB
47623 @if test -d $(HOST_SUBDIR)/libcpp ; then \
47624 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
0aed8855 47625 fi
72b2455a 47626@endif libcpp
be01d343 47627@if libdecnumber
80911fe1
PB
47628 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
47629 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
0aed8855 47630 fi
be01d343 47631@endif libdecnumber
72b2455a 47632@if libiberty
80911fe1
PB
47633 @if test -d $(HOST_SUBDIR)/libiberty ; then \
47634 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
0aed8855 47635 fi
72b2455a 47636@endif libiberty
1b6c0831
L
47637@if libiberty-linker-plugin
47638 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
47639 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin ; \
47640 fi
47641@endif libiberty-linker-plugin
72b2455a 47642@if zlib
80911fe1
PB
47643 @if test -d $(HOST_SUBDIR)/zlib ; then \
47644 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
0aed8855 47645 fi
72b2455a 47646@endif zlib
700d40ca
ILT
47647@if lto-plugin
47648 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
47649 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin ; \
47650 fi
47651@endif lto-plugin
0aed8855 47652 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1 47653 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
0aed8855 47654 fi
80911fe1 47655 rm -f stage_current
dfdffa2c 47656
973601e1 47657# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 47658# remade, but not reconfigured. The next stage (if any) will not be
675492f0 47659# reconfigured either.
319cab08 47660.PHONY: stage1-bubble
656fdd47 47661stage1-bubble::
e360f423
PB
47662 @r=`${PWD_COMMAND}`; export r; \
47663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47664 if test -f stage1-lean ; then \
9cb3fa6f
PB
47665 echo Skipping rebuild of stage1 ; \
47666 else \
f70224b5
PB
47667 $(MAKE) stage1-start; \
47668 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 47669 fi
72b2455a 47670
0df3d27f 47671.PHONY: all-stage1 clean-stage1
0df3d27f 47672do-clean: clean-stage1
0df3d27f 47673
72b2455a
PB
47674# FIXME: Will not need to be conditional when toplevel bootstrap is the
47675# only possibility, but now it conflicts with no-bootstrap rules
47676@if gcc-bootstrap
47677
47678
47679
47680
0df3d27f 47681# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 47682
0df3d27f 47683.PHONY: distclean-stage1
72b2455a 47684distclean-stage1::
0aed8855 47685 @: $(MAKE); $(stage)
e00a73e3 47686 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 47687 rm -rf stage1-*
72b2455a
PB
47688
47689
47690@endif gcc-bootstrap
47691
47692
47693.PHONY: stage2-start stage2-end
47694
47695stage2-start::
0aed8855 47696 @: $(MAKE); $(stage); \
72b2455a 47697 echo stage2 > stage_current ; \
b00612cc 47698 echo stage2 > stage_last; \
0aed8855 47699 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47700@if bfd
b00612cc
PB
47701 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
47702 mkdir stage2-bfd; \
80911fe1
PB
47703 mv stage2-bfd bfd ; \
47704 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
47705@endif bfd
47706@if opcodes
b00612cc
PB
47707 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
47708 mkdir stage2-opcodes; \
80911fe1
PB
47709 mv stage2-opcodes opcodes ; \
47710 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
47711@endif opcodes
47712@if binutils
b00612cc
PB
47713 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
47714 mkdir stage2-binutils; \
80911fe1
PB
47715 mv stage2-binutils binutils ; \
47716 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 47717@endif binutils
201f096f 47718@if fixincludes
47719 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
47720 mkdir stage2-fixincludes; \
47721 mv stage2-fixincludes fixincludes ; \
47722 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
47723@endif fixincludes
72b2455a 47724@if gas
b00612cc
PB
47725 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
47726 mkdir stage2-gas; \
80911fe1
PB
47727 mv stage2-gas gas ; \
47728 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
47729@endif gas
47730@if gcc
b00612cc
PB
47731 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
47732 mkdir stage2-gcc; \
80911fe1
PB
47733 mv stage2-gcc gcc ; \
47734 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 47735@endif gcc
4b900473
PB
47736@if gmp
47737 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
47738 mkdir stage2-gmp; \
47739 mv stage2-gmp gmp ; \
47740 mv stage1-gmp prev-gmp || test -f stage1-lean
47741@endif gmp
47742@if mpfr
47743 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
47744 mkdir stage2-mpfr; \
47745 mv stage2-mpfr mpfr ; \
47746 mv stage1-mpfr prev-mpfr || test -f stage1-lean
47747@endif mpfr
e8a5fa9c
RW
47748@if mpc
47749 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
47750 mkdir stage2-mpc; \
47751 mv stage2-mpc mpc ; \
47752 mv stage1-mpc prev-mpc || test -f stage1-lean
47753@endif mpc
7ec59b9e
L
47754@if isl
47755 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
47756 mkdir stage2-isl; \
47757 mv stage2-isl isl ; \
47758 mv stage1-isl prev-isl || test -f stage1-lean
47759@endif isl
1f53ca9a
AO
47760@if libelf
47761 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
47762 mkdir stage2-libelf; \
47763 mv stage2-libelf libelf ; \
47764 mv stage1-libelf prev-libelf || test -f stage1-lean
47765@endif libelf
93f9b408
ILT
47766@if gold
47767 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
47768 mkdir stage2-gold; \
47769 mv stage2-gold gold ; \
47770 mv stage1-gold prev-gold || test -f stage1-lean
47771@endif gold
72b2455a 47772@if intl
b00612cc
PB
47773 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
47774 mkdir stage2-intl; \
80911fe1
PB
47775 mv stage2-intl intl ; \
47776 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
47777@endif intl
47778@if ld
b00612cc
PB
47779 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
47780 mkdir stage2-ld; \
80911fe1
PB
47781 mv stage2-ld ld ; \
47782 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 47783@endif ld
2bf680c4
ILT
47784@if libbacktrace
47785 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
47786 mkdir stage2-libbacktrace; \
47787 mv stage2-libbacktrace libbacktrace ; \
47788 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
47789@endif libbacktrace
72b2455a 47790@if libcpp
b00612cc
PB
47791 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
47792 mkdir stage2-libcpp; \
80911fe1
PB
47793 mv stage2-libcpp libcpp ; \
47794 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 47795@endif libcpp
be01d343
PB
47796@if libdecnumber
47797 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
47798 mkdir stage2-libdecnumber; \
80911fe1
PB
47799 mv stage2-libdecnumber libdecnumber ; \
47800 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 47801@endif libdecnumber
72b2455a 47802@if libiberty
b00612cc
PB
47803 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
47804 mkdir stage2-libiberty; \
80911fe1
PB
47805 mv stage2-libiberty libiberty ; \
47806 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 47807@endif libiberty
1b6c0831
L
47808@if libiberty-linker-plugin
47809 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
47810 mkdir stage2-libiberty-linker-plugin; \
47811 mv stage2-libiberty-linker-plugin libiberty-linker-plugin ; \
47812 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
47813@endif libiberty-linker-plugin
72b2455a 47814@if zlib
b00612cc
PB
47815 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
47816 mkdir stage2-zlib; \
80911fe1
PB
47817 mv stage2-zlib zlib ; \
47818 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 47819@endif zlib
700d40ca
ILT
47820@if lto-plugin
47821 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
47822 mkdir stage2-lto-plugin; \
47823 mv stage2-lto-plugin lto-plugin ; \
47824 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
47825@endif lto-plugin
0aed8855
PB
47826 @[ -d stage2-$(TARGET_SUBDIR) ] || \
47827 mkdir stage2-$(TARGET_SUBDIR); \
80911fe1
PB
47828 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
47829 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 47830
80911fe1 47831stage2-end::
72b2455a 47832@if bfd
80911fe1
PB
47833 @if test -d $(HOST_SUBDIR)/bfd ; then \
47834 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
47835 mv prev-bfd stage1-bfd ; : ; \
0aed8855 47836 fi
72b2455a
PB
47837@endif bfd
47838@if opcodes
80911fe1
PB
47839 @if test -d $(HOST_SUBDIR)/opcodes ; then \
47840 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
47841 mv prev-opcodes stage1-opcodes ; : ; \
0aed8855 47842 fi
72b2455a
PB
47843@endif opcodes
47844@if binutils
80911fe1
PB
47845 @if test -d $(HOST_SUBDIR)/binutils ; then \
47846 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
47847 mv prev-binutils stage1-binutils ; : ; \
0aed8855 47848 fi
72b2455a 47849@endif binutils
201f096f 47850@if fixincludes
47851 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
47852 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes ; \
47853 mv prev-fixincludes stage1-fixincludes ; : ; \
47854 fi
47855@endif fixincludes
72b2455a 47856@if gas
80911fe1
PB
47857 @if test -d $(HOST_SUBDIR)/gas ; then \
47858 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
47859 mv prev-gas stage1-gas ; : ; \
0aed8855 47860 fi
72b2455a
PB
47861@endif gas
47862@if gcc
80911fe1
PB
47863 @if test -d $(HOST_SUBDIR)/gcc ; then \
47864 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
47865 mv prev-gcc stage1-gcc ; : ; \
0aed8855 47866 fi
72b2455a 47867@endif gcc
4b900473
PB
47868@if gmp
47869 @if test -d $(HOST_SUBDIR)/gmp ; then \
47870 cd $(HOST_SUBDIR); mv gmp stage2-gmp ; \
47871 mv prev-gmp stage1-gmp ; : ; \
47872 fi
47873@endif gmp
47874@if mpfr
47875 @if test -d $(HOST_SUBDIR)/mpfr ; then \
47876 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr ; \
47877 mv prev-mpfr stage1-mpfr ; : ; \
47878 fi
47879@endif mpfr
e8a5fa9c
RW
47880@if mpc
47881 @if test -d $(HOST_SUBDIR)/mpc ; then \
47882 cd $(HOST_SUBDIR); mv mpc stage2-mpc ; \
47883 mv prev-mpc stage1-mpc ; : ; \
47884 fi
47885@endif mpc
7ec59b9e
L
47886@if isl
47887 @if test -d $(HOST_SUBDIR)/isl ; then \
47888 cd $(HOST_SUBDIR); mv isl stage2-isl ; \
47889 mv prev-isl stage1-isl ; : ; \
e28c595f 47890 fi
7ec59b9e 47891@endif isl
1f53ca9a
AO
47892@if libelf
47893 @if test -d $(HOST_SUBDIR)/libelf ; then \
47894 cd $(HOST_SUBDIR); mv libelf stage2-libelf ; \
47895 mv prev-libelf stage1-libelf ; : ; \
47896 fi
47897@endif libelf
93f9b408
ILT
47898@if gold
47899 @if test -d $(HOST_SUBDIR)/gold ; then \
47900 cd $(HOST_SUBDIR); mv gold stage2-gold ; \
47901 mv prev-gold stage1-gold ; : ; \
47902 fi
47903@endif gold
72b2455a 47904@if intl
80911fe1
PB
47905 @if test -d $(HOST_SUBDIR)/intl ; then \
47906 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
47907 mv prev-intl stage1-intl ; : ; \
0aed8855 47908 fi
72b2455a
PB
47909@endif intl
47910@if ld
80911fe1
PB
47911 @if test -d $(HOST_SUBDIR)/ld ; then \
47912 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
47913 mv prev-ld stage1-ld ; : ; \
0aed8855 47914 fi
72b2455a 47915@endif ld
2bf680c4
ILT
47916@if libbacktrace
47917 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
47918 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace ; \
47919 mv prev-libbacktrace stage1-libbacktrace ; : ; \
47920 fi
47921@endif libbacktrace
72b2455a 47922@if libcpp
80911fe1
PB
47923 @if test -d $(HOST_SUBDIR)/libcpp ; then \
47924 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
47925 mv prev-libcpp stage1-libcpp ; : ; \
0aed8855 47926 fi
72b2455a 47927@endif libcpp
be01d343 47928@if libdecnumber
80911fe1
PB
47929 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
47930 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
47931 mv prev-libdecnumber stage1-libdecnumber ; : ; \
0aed8855 47932 fi
be01d343 47933@endif libdecnumber
72b2455a 47934@if libiberty
80911fe1
PB
47935 @if test -d $(HOST_SUBDIR)/libiberty ; then \
47936 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
47937 mv prev-libiberty stage1-libiberty ; : ; \
0aed8855 47938 fi
72b2455a 47939@endif libiberty
1b6c0831
L
47940@if libiberty-linker-plugin
47941 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
47942 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin ; \
47943 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin ; : ; \
47944 fi
47945@endif libiberty-linker-plugin
72b2455a 47946@if zlib
80911fe1
PB
47947 @if test -d $(HOST_SUBDIR)/zlib ; then \
47948 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
47949 mv prev-zlib stage1-zlib ; : ; \
0aed8855 47950 fi
72b2455a 47951@endif zlib
700d40ca
ILT
47952@if lto-plugin
47953 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
47954 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin ; \
47955 mv prev-lto-plugin stage1-lto-plugin ; : ; \
47956 fi
47957@endif lto-plugin
0aed8855 47958 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
47959 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
47960 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
0aed8855 47961 fi
80911fe1 47962 rm -f stage_current
72b2455a 47963
973601e1 47964# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 47965# remade, but not reconfigured. The next stage (if any) will not be
675492f0 47966# reconfigured either.
72b2455a
PB
47967.PHONY: stage2-bubble
47968stage2-bubble:: stage1-bubble
e360f423
PB
47969 @r=`${PWD_COMMAND}`; export r; \
47970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47971 if test -f stage2-lean || test -f stage1-lean ; then \
9cb3fa6f
PB
47972 echo Skipping rebuild of stage2 ; \
47973 else \
f70224b5
PB
47974 $(MAKE) stage2-start; \
47975 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 47976 fi
72b2455a 47977
0df3d27f 47978.PHONY: all-stage2 clean-stage2
0df3d27f 47979do-clean: clean-stage2
0df3d27f 47980
72b2455a
PB
47981# FIXME: Will not need to be conditional when toplevel bootstrap is the
47982# only possibility, but now it conflicts with no-bootstrap rules
47983@if gcc-bootstrap
47984
47985
47986
80911fe1 47987.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
47988bootstrap2:
47989 echo stage2 > stage_final
47990 @r=`${PWD_COMMAND}`; export r; \
47991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47992 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 47993 @: $(MAKE); $(unstage)
be01d343
PB
47994 @r=`${PWD_COMMAND}`; export r; \
47995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 47996 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 47997 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 47998
80911fe1
PB
47999bootstrap2-lean:
48000 echo stage2 > stage_final
48001 @r=`${PWD_COMMAND}`; export r; \
48002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48003 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
48004 @: $(MAKE); $(unstage)
48005 @r=`${PWD_COMMAND}`; export r; \
48006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48007 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
48008 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48009
72b2455a 48010
0df3d27f 48011# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48012distclean-stage1:: distclean-stage2
0df3d27f 48013.PHONY: distclean-stage2
72b2455a 48014distclean-stage2::
0aed8855 48015 @: $(MAKE); $(stage)
e00a73e3 48016 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 48017 rm -rf stage2-*
72b2455a
PB
48018
48019
48020@endif gcc-bootstrap
48021
48022
48023.PHONY: stage3-start stage3-end
48024
48025stage3-start::
0aed8855 48026 @: $(MAKE); $(stage); \
72b2455a 48027 echo stage3 > stage_current ; \
b00612cc 48028 echo stage3 > stage_last; \
0aed8855 48029 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48030@if bfd
b00612cc
PB
48031 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
48032 mkdir stage3-bfd; \
80911fe1
PB
48033 mv stage3-bfd bfd ; \
48034 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
48035@endif bfd
48036@if opcodes
b00612cc
PB
48037 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
48038 mkdir stage3-opcodes; \
80911fe1
PB
48039 mv stage3-opcodes opcodes ; \
48040 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
48041@endif opcodes
48042@if binutils
b00612cc
PB
48043 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
48044 mkdir stage3-binutils; \
80911fe1
PB
48045 mv stage3-binutils binutils ; \
48046 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 48047@endif binutils
201f096f 48048@if fixincludes
48049 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
48050 mkdir stage3-fixincludes; \
48051 mv stage3-fixincludes fixincludes ; \
48052 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
48053@endif fixincludes
72b2455a 48054@if gas
b00612cc
PB
48055 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
48056 mkdir stage3-gas; \
80911fe1
PB
48057 mv stage3-gas gas ; \
48058 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
48059@endif gas
48060@if gcc
b00612cc
PB
48061 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
48062 mkdir stage3-gcc; \
80911fe1
PB
48063 mv stage3-gcc gcc ; \
48064 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 48065@endif gcc
4b900473
PB
48066@if gmp
48067 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
48068 mkdir stage3-gmp; \
48069 mv stage3-gmp gmp ; \
48070 mv stage2-gmp prev-gmp || test -f stage2-lean
48071@endif gmp
48072@if mpfr
48073 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
48074 mkdir stage3-mpfr; \
48075 mv stage3-mpfr mpfr ; \
48076 mv stage2-mpfr prev-mpfr || test -f stage2-lean
48077@endif mpfr
e8a5fa9c
RW
48078@if mpc
48079 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
48080 mkdir stage3-mpc; \
48081 mv stage3-mpc mpc ; \
48082 mv stage2-mpc prev-mpc || test -f stage2-lean
48083@endif mpc
7ec59b9e
L
48084@if isl
48085 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
48086 mkdir stage3-isl; \
48087 mv stage3-isl isl ; \
48088 mv stage2-isl prev-isl || test -f stage2-lean
48089@endif isl
1f53ca9a
AO
48090@if libelf
48091 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
48092 mkdir stage3-libelf; \
48093 mv stage3-libelf libelf ; \
48094 mv stage2-libelf prev-libelf || test -f stage2-lean
48095@endif libelf
93f9b408
ILT
48096@if gold
48097 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
48098 mkdir stage3-gold; \
48099 mv stage3-gold gold ; \
48100 mv stage2-gold prev-gold || test -f stage2-lean
48101@endif gold
72b2455a 48102@if intl
b00612cc
PB
48103 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
48104 mkdir stage3-intl; \
80911fe1
PB
48105 mv stage3-intl intl ; \
48106 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
48107@endif intl
48108@if ld
b00612cc
PB
48109 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
48110 mkdir stage3-ld; \
80911fe1
PB
48111 mv stage3-ld ld ; \
48112 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 48113@endif ld
2bf680c4
ILT
48114@if libbacktrace
48115 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
48116 mkdir stage3-libbacktrace; \
48117 mv stage3-libbacktrace libbacktrace ; \
48118 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
48119@endif libbacktrace
72b2455a 48120@if libcpp
b00612cc
PB
48121 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
48122 mkdir stage3-libcpp; \
80911fe1
PB
48123 mv stage3-libcpp libcpp ; \
48124 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 48125@endif libcpp
be01d343
PB
48126@if libdecnumber
48127 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
48128 mkdir stage3-libdecnumber; \
80911fe1
PB
48129 mv stage3-libdecnumber libdecnumber ; \
48130 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 48131@endif libdecnumber
72b2455a 48132@if libiberty
b00612cc
PB
48133 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
48134 mkdir stage3-libiberty; \
80911fe1
PB
48135 mv stage3-libiberty libiberty ; \
48136 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 48137@endif libiberty
1b6c0831
L
48138@if libiberty-linker-plugin
48139 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
48140 mkdir stage3-libiberty-linker-plugin; \
48141 mv stage3-libiberty-linker-plugin libiberty-linker-plugin ; \
48142 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
48143@endif libiberty-linker-plugin
72b2455a 48144@if zlib
b00612cc
PB
48145 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
48146 mkdir stage3-zlib; \
80911fe1
PB
48147 mv stage3-zlib zlib ; \
48148 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 48149@endif zlib
700d40ca
ILT
48150@if lto-plugin
48151 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
48152 mkdir stage3-lto-plugin; \
48153 mv stage3-lto-plugin lto-plugin ; \
48154 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
48155@endif lto-plugin
0aed8855
PB
48156 @[ -d stage3-$(TARGET_SUBDIR) ] || \
48157 mkdir stage3-$(TARGET_SUBDIR); \
80911fe1
PB
48158 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48159 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 48160
80911fe1 48161stage3-end::
72b2455a 48162@if bfd
80911fe1
PB
48163 @if test -d $(HOST_SUBDIR)/bfd ; then \
48164 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
48165 mv prev-bfd stage2-bfd ; : ; \
0aed8855 48166 fi
72b2455a
PB
48167@endif bfd
48168@if opcodes
80911fe1
PB
48169 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48170 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
48171 mv prev-opcodes stage2-opcodes ; : ; \
0aed8855 48172 fi
72b2455a
PB
48173@endif opcodes
48174@if binutils
80911fe1
PB
48175 @if test -d $(HOST_SUBDIR)/binutils ; then \
48176 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
48177 mv prev-binutils stage2-binutils ; : ; \
0aed8855 48178 fi
72b2455a 48179@endif binutils
201f096f 48180@if fixincludes
48181 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48182 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes ; \
48183 mv prev-fixincludes stage2-fixincludes ; : ; \
48184 fi
48185@endif fixincludes
72b2455a 48186@if gas
80911fe1
PB
48187 @if test -d $(HOST_SUBDIR)/gas ; then \
48188 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
48189 mv prev-gas stage2-gas ; : ; \
0aed8855 48190 fi
72b2455a
PB
48191@endif gas
48192@if gcc
80911fe1
PB
48193 @if test -d $(HOST_SUBDIR)/gcc ; then \
48194 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
48195 mv prev-gcc stage2-gcc ; : ; \
0aed8855 48196 fi
72b2455a 48197@endif gcc
4b900473
PB
48198@if gmp
48199 @if test -d $(HOST_SUBDIR)/gmp ; then \
48200 cd $(HOST_SUBDIR); mv gmp stage3-gmp ; \
48201 mv prev-gmp stage2-gmp ; : ; \
48202 fi
48203@endif gmp
48204@if mpfr
48205 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48206 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr ; \
48207 mv prev-mpfr stage2-mpfr ; : ; \
48208 fi
48209@endif mpfr
e8a5fa9c
RW
48210@if mpc
48211 @if test -d $(HOST_SUBDIR)/mpc ; then \
48212 cd $(HOST_SUBDIR); mv mpc stage3-mpc ; \
48213 mv prev-mpc stage2-mpc ; : ; \
48214 fi
48215@endif mpc
7ec59b9e
L
48216@if isl
48217 @if test -d $(HOST_SUBDIR)/isl ; then \
48218 cd $(HOST_SUBDIR); mv isl stage3-isl ; \
48219 mv prev-isl stage2-isl ; : ; \
e28c595f 48220 fi
7ec59b9e 48221@endif isl
1f53ca9a
AO
48222@if libelf
48223 @if test -d $(HOST_SUBDIR)/libelf ; then \
48224 cd $(HOST_SUBDIR); mv libelf stage3-libelf ; \
48225 mv prev-libelf stage2-libelf ; : ; \
48226 fi
48227@endif libelf
93f9b408
ILT
48228@if gold
48229 @if test -d $(HOST_SUBDIR)/gold ; then \
48230 cd $(HOST_SUBDIR); mv gold stage3-gold ; \
48231 mv prev-gold stage2-gold ; : ; \
48232 fi
48233@endif gold
72b2455a 48234@if intl
80911fe1
PB
48235 @if test -d $(HOST_SUBDIR)/intl ; then \
48236 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
48237 mv prev-intl stage2-intl ; : ; \
0aed8855 48238 fi
72b2455a
PB
48239@endif intl
48240@if ld
80911fe1
PB
48241 @if test -d $(HOST_SUBDIR)/ld ; then \
48242 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
48243 mv prev-ld stage2-ld ; : ; \
0aed8855 48244 fi
72b2455a 48245@endif ld
2bf680c4
ILT
48246@if libbacktrace
48247 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
48248 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace ; \
48249 mv prev-libbacktrace stage2-libbacktrace ; : ; \
48250 fi
48251@endif libbacktrace
72b2455a 48252@if libcpp
80911fe1
PB
48253 @if test -d $(HOST_SUBDIR)/libcpp ; then \
48254 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
48255 mv prev-libcpp stage2-libcpp ; : ; \
0aed8855 48256 fi
72b2455a 48257@endif libcpp
be01d343 48258@if libdecnumber
80911fe1
PB
48259 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
48260 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
48261 mv prev-libdecnumber stage2-libdecnumber ; : ; \
0aed8855 48262 fi
be01d343 48263@endif libdecnumber
72b2455a 48264@if libiberty
80911fe1
PB
48265 @if test -d $(HOST_SUBDIR)/libiberty ; then \
48266 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
48267 mv prev-libiberty stage2-libiberty ; : ; \
0aed8855 48268 fi
72b2455a 48269@endif libiberty
1b6c0831
L
48270@if libiberty-linker-plugin
48271 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
48272 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin ; \
48273 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin ; : ; \
48274 fi
48275@endif libiberty-linker-plugin
72b2455a 48276@if zlib
80911fe1
PB
48277 @if test -d $(HOST_SUBDIR)/zlib ; then \
48278 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
48279 mv prev-zlib stage2-zlib ; : ; \
0aed8855 48280 fi
72b2455a 48281@endif zlib
700d40ca
ILT
48282@if lto-plugin
48283 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
48284 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin ; \
48285 mv prev-lto-plugin stage2-lto-plugin ; : ; \
48286 fi
48287@endif lto-plugin
0aed8855 48288 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
48289 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
48290 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
0aed8855 48291 fi
80911fe1 48292 rm -f stage_current
72b2455a 48293
973601e1 48294# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 48295# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48296# reconfigured either.
72b2455a
PB
48297.PHONY: stage3-bubble
48298stage3-bubble:: stage2-bubble
e360f423
PB
48299 @r=`${PWD_COMMAND}`; export r; \
48300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48301 if test -f stage3-lean || test -f stage2-lean ; then \
9cb3fa6f
PB
48302 echo Skipping rebuild of stage3 ; \
48303 else \
f70224b5 48304 $(MAKE) stage3-start; \
80911fe1
PB
48305 if $(LEAN); then \
48306 rm -rf stage1-* ; \
48307 $(STAMP) stage1-lean ; \
48308 fi; \
f70224b5 48309 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 48310 fi
f6d183c0 48311 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 48312
0df3d27f 48313.PHONY: all-stage3 clean-stage3
0df3d27f 48314do-clean: clean-stage3
0df3d27f 48315
d545f33b
PB
48316# FIXME: Will not need to be conditional when toplevel bootstrap is the
48317# only possibility, but now it conflicts with no-bootstrap rules
48318@if gcc-bootstrap
72b2455a 48319
d545f33b 48320compare:
e360f423
PB
48321 @r=`${PWD_COMMAND}`; export r; \
48322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48323 if test -f stage2-lean; then \
d545f33b
PB
48324 echo Cannot compare object files as stage 2 was deleted. ; \
48325 exit 0 ; \
48326 fi; \
0aed8855 48327 : $(MAKE); $(stage); \
d545f33b 48328 rm -f .bad_compare ; \
c52c6897 48329 echo Comparing stages 2 and 3 ; \
fda13ee8
AO
48330 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
48331 files=`find stage3-* -name "*$(objext)" -print | \
48332 sed -n s,^stage$$sed-,,p` ; \
d545f33b 48333 for file in $${files} ; do \
fda13ee8
AO
48334 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
48335 if test ! -f $$f1; then continue; fi; \
8520c408 48336 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
48337 if test $$? -eq 1; then \
48338 case $$file in \
e8a5fa9c 48339 @compare_exclusions@) \
f70224b5
PB
48340 echo warning: $$file differs ;; \
48341 *) \
48342 echo $$file differs >> .bad_compare ;; \
48343 esac ; \
48344 fi ; \
d545f33b
PB
48345 done ; \
48346 if [ -f .bad_compare ]; then \
48347 echo "Bootstrap comparison failure!"; \
48348 cat .bad_compare; \
48349 exit 1; \
48350 else \
c52c6897 48351 echo Comparison successful.; \
d545f33b
PB
48352 fi ; \
48353 $(STAMP) compare
80911fe1
PB
48354 if $(LEAN); then \
48355 rm -rf stage2-*; \
48356 $(STAMP) stage2-lean; \
48357 fi
9cb3fa6f 48358
72b2455a 48359
72b2455a 48360
80911fe1 48361.PHONY: bootstrap bootstrap-lean
be01d343
PB
48362bootstrap:
48363 echo stage3 > stage_final
48364 @r=`${PWD_COMMAND}`; export r; \
48365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48366 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 48367 @: $(MAKE); $(unstage)
be01d343
PB
48368 @r=`${PWD_COMMAND}`; export r; \
48369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48370 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 48371 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48372
80911fe1
PB
48373bootstrap-lean:
48374 echo stage3 > stage_final
48375 @r=`${PWD_COMMAND}`; export r; \
48376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48377 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
48378 @: $(MAKE); $(unstage)
48379 @r=`${PWD_COMMAND}`; export r; \
48380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48381 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
48382 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48383
72b2455a 48384
d545f33b
PB
48385# Rules to wipe a stage and all the following ones, also used for cleanstrap
48386distclean-stage2:: distclean-stage3
48387.PHONY: distclean-stage3
48388distclean-stage3::
0aed8855 48389 @: $(MAKE); $(stage)
e00a73e3 48390 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 48391 rm -rf stage3-* compare
0df3d27f 48392
9cb3fa6f 48393
d545f33b 48394.PHONY: cleanstrap
e00a73e3
PB
48395cleanstrap: do-distclean local-clean
48396 echo stage3 > stage_final
48397 @r=`${PWD_COMMAND}`; export r; \
48398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48399 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
48400 @: $(MAKE); $(unstage)
48401 @r=`${PWD_COMMAND}`; export r; \
48402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48403 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
48404 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48405
48406@endif gcc-bootstrap
48407
48408
72b2455a
PB
48409.PHONY: stage4-start stage4-end
48410
48411stage4-start::
0aed8855 48412 @: $(MAKE); $(stage); \
72b2455a 48413 echo stage4 > stage_current ; \
b00612cc 48414 echo stage4 > stage_last; \
0aed8855 48415 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48416@if bfd
b00612cc
PB
48417 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
48418 mkdir stage4-bfd; \
80911fe1
PB
48419 mv stage4-bfd bfd ; \
48420 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
48421@endif bfd
48422@if opcodes
b00612cc
PB
48423 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
48424 mkdir stage4-opcodes; \
80911fe1
PB
48425 mv stage4-opcodes opcodes ; \
48426 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
48427@endif opcodes
48428@if binutils
b00612cc
PB
48429 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
48430 mkdir stage4-binutils; \
80911fe1
PB
48431 mv stage4-binutils binutils ; \
48432 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 48433@endif binutils
201f096f 48434@if fixincludes
48435 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
48436 mkdir stage4-fixincludes; \
48437 mv stage4-fixincludes fixincludes ; \
48438 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
48439@endif fixincludes
72b2455a 48440@if gas
b00612cc
PB
48441 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
48442 mkdir stage4-gas; \
80911fe1
PB
48443 mv stage4-gas gas ; \
48444 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
48445@endif gas
48446@if gcc
b00612cc
PB
48447 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
48448 mkdir stage4-gcc; \
80911fe1
PB
48449 mv stage4-gcc gcc ; \
48450 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 48451@endif gcc
4b900473
PB
48452@if gmp
48453 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
48454 mkdir stage4-gmp; \
48455 mv stage4-gmp gmp ; \
48456 mv stage3-gmp prev-gmp || test -f stage3-lean
48457@endif gmp
48458@if mpfr
48459 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
48460 mkdir stage4-mpfr; \
48461 mv stage4-mpfr mpfr ; \
48462 mv stage3-mpfr prev-mpfr || test -f stage3-lean
48463@endif mpfr
e8a5fa9c
RW
48464@if mpc
48465 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
48466 mkdir stage4-mpc; \
48467 mv stage4-mpc mpc ; \
48468 mv stage3-mpc prev-mpc || test -f stage3-lean
48469@endif mpc
7ec59b9e
L
48470@if isl
48471 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
48472 mkdir stage4-isl; \
48473 mv stage4-isl isl ; \
48474 mv stage3-isl prev-isl || test -f stage3-lean
48475@endif isl
1f53ca9a
AO
48476@if libelf
48477 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
48478 mkdir stage4-libelf; \
48479 mv stage4-libelf libelf ; \
48480 mv stage3-libelf prev-libelf || test -f stage3-lean
48481@endif libelf
93f9b408
ILT
48482@if gold
48483 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
48484 mkdir stage4-gold; \
48485 mv stage4-gold gold ; \
48486 mv stage3-gold prev-gold || test -f stage3-lean
48487@endif gold
72b2455a 48488@if intl
b00612cc
PB
48489 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
48490 mkdir stage4-intl; \
80911fe1
PB
48491 mv stage4-intl intl ; \
48492 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
48493@endif intl
48494@if ld
b00612cc
PB
48495 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
48496 mkdir stage4-ld; \
80911fe1
PB
48497 mv stage4-ld ld ; \
48498 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 48499@endif ld
2bf680c4
ILT
48500@if libbacktrace
48501 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
48502 mkdir stage4-libbacktrace; \
48503 mv stage4-libbacktrace libbacktrace ; \
48504 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
48505@endif libbacktrace
72b2455a 48506@if libcpp
b00612cc
PB
48507 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
48508 mkdir stage4-libcpp; \
80911fe1
PB
48509 mv stage4-libcpp libcpp ; \
48510 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 48511@endif libcpp
be01d343
PB
48512@if libdecnumber
48513 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
48514 mkdir stage4-libdecnumber; \
80911fe1
PB
48515 mv stage4-libdecnumber libdecnumber ; \
48516 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 48517@endif libdecnumber
72b2455a 48518@if libiberty
b00612cc
PB
48519 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
48520 mkdir stage4-libiberty; \
80911fe1
PB
48521 mv stage4-libiberty libiberty ; \
48522 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 48523@endif libiberty
1b6c0831
L
48524@if libiberty-linker-plugin
48525 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
48526 mkdir stage4-libiberty-linker-plugin; \
48527 mv stage4-libiberty-linker-plugin libiberty-linker-plugin ; \
48528 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
48529@endif libiberty-linker-plugin
72b2455a 48530@if zlib
b00612cc
PB
48531 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
48532 mkdir stage4-zlib; \
80911fe1
PB
48533 mv stage4-zlib zlib ; \
48534 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 48535@endif zlib
700d40ca
ILT
48536@if lto-plugin
48537 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
48538 mkdir stage4-lto-plugin; \
48539 mv stage4-lto-plugin lto-plugin ; \
48540 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
48541@endif lto-plugin
0aed8855
PB
48542 @[ -d stage4-$(TARGET_SUBDIR) ] || \
48543 mkdir stage4-$(TARGET_SUBDIR); \
80911fe1
PB
48544 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48545 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 48546
80911fe1 48547stage4-end::
72b2455a 48548@if bfd
80911fe1
PB
48549 @if test -d $(HOST_SUBDIR)/bfd ; then \
48550 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
48551 mv prev-bfd stage3-bfd ; : ; \
0aed8855 48552 fi
72b2455a
PB
48553@endif bfd
48554@if opcodes
80911fe1
PB
48555 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48556 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
48557 mv prev-opcodes stage3-opcodes ; : ; \
0aed8855 48558 fi
72b2455a
PB
48559@endif opcodes
48560@if binutils
80911fe1
PB
48561 @if test -d $(HOST_SUBDIR)/binutils ; then \
48562 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
48563 mv prev-binutils stage3-binutils ; : ; \
0aed8855 48564 fi
72b2455a 48565@endif binutils
201f096f 48566@if fixincludes
48567 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48568 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes ; \
48569 mv prev-fixincludes stage3-fixincludes ; : ; \
48570 fi
48571@endif fixincludes
72b2455a 48572@if gas
80911fe1
PB
48573 @if test -d $(HOST_SUBDIR)/gas ; then \
48574 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
48575 mv prev-gas stage3-gas ; : ; \
0aed8855 48576 fi
72b2455a
PB
48577@endif gas
48578@if gcc
80911fe1
PB
48579 @if test -d $(HOST_SUBDIR)/gcc ; then \
48580 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
48581 mv prev-gcc stage3-gcc ; : ; \
0aed8855 48582 fi
72b2455a 48583@endif gcc
4b900473
PB
48584@if gmp
48585 @if test -d $(HOST_SUBDIR)/gmp ; then \
48586 cd $(HOST_SUBDIR); mv gmp stage4-gmp ; \
48587 mv prev-gmp stage3-gmp ; : ; \
48588 fi
48589@endif gmp
48590@if mpfr
48591 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48592 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr ; \
48593 mv prev-mpfr stage3-mpfr ; : ; \
48594 fi
48595@endif mpfr
e8a5fa9c
RW
48596@if mpc
48597 @if test -d $(HOST_SUBDIR)/mpc ; then \
48598 cd $(HOST_SUBDIR); mv mpc stage4-mpc ; \
48599 mv prev-mpc stage3-mpc ; : ; \
48600 fi
48601@endif mpc
7ec59b9e
L
48602@if isl
48603 @if test -d $(HOST_SUBDIR)/isl ; then \
48604 cd $(HOST_SUBDIR); mv isl stage4-isl ; \
48605 mv prev-isl stage3-isl ; : ; \
e28c595f 48606 fi
7ec59b9e 48607@endif isl
1f53ca9a
AO
48608@if libelf
48609 @if test -d $(HOST_SUBDIR)/libelf ; then \
48610 cd $(HOST_SUBDIR); mv libelf stage4-libelf ; \
48611 mv prev-libelf stage3-libelf ; : ; \
48612 fi
48613@endif libelf
93f9b408
ILT
48614@if gold
48615 @if test -d $(HOST_SUBDIR)/gold ; then \
48616 cd $(HOST_SUBDIR); mv gold stage4-gold ; \
48617 mv prev-gold stage3-gold ; : ; \
48618 fi
48619@endif gold
72b2455a 48620@if intl
80911fe1
PB
48621 @if test -d $(HOST_SUBDIR)/intl ; then \
48622 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
48623 mv prev-intl stage3-intl ; : ; \
0aed8855 48624 fi
72b2455a
PB
48625@endif intl
48626@if ld
80911fe1
PB
48627 @if test -d $(HOST_SUBDIR)/ld ; then \
48628 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
48629 mv prev-ld stage3-ld ; : ; \
0aed8855 48630 fi
72b2455a 48631@endif ld
2bf680c4
ILT
48632@if libbacktrace
48633 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
48634 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace ; \
48635 mv prev-libbacktrace stage3-libbacktrace ; : ; \
48636 fi
48637@endif libbacktrace
72b2455a 48638@if libcpp
80911fe1
PB
48639 @if test -d $(HOST_SUBDIR)/libcpp ; then \
48640 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
48641 mv prev-libcpp stage3-libcpp ; : ; \
0aed8855 48642 fi
72b2455a 48643@endif libcpp
be01d343 48644@if libdecnumber
80911fe1
PB
48645 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
48646 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
48647 mv prev-libdecnumber stage3-libdecnumber ; : ; \
0aed8855 48648 fi
be01d343 48649@endif libdecnumber
72b2455a 48650@if libiberty
80911fe1
PB
48651 @if test -d $(HOST_SUBDIR)/libiberty ; then \
48652 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
48653 mv prev-libiberty stage3-libiberty ; : ; \
0aed8855 48654 fi
72b2455a 48655@endif libiberty
1b6c0831
L
48656@if libiberty-linker-plugin
48657 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
48658 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin ; \
48659 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin ; : ; \
48660 fi
48661@endif libiberty-linker-plugin
72b2455a 48662@if zlib
80911fe1
PB
48663 @if test -d $(HOST_SUBDIR)/zlib ; then \
48664 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
48665 mv prev-zlib stage3-zlib ; : ; \
0aed8855 48666 fi
72b2455a 48667@endif zlib
700d40ca
ILT
48668@if lto-plugin
48669 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
48670 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin ; \
48671 mv prev-lto-plugin stage3-lto-plugin ; : ; \
48672 fi
48673@endif lto-plugin
0aed8855 48674 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
48675 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
48676 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
0aed8855 48677 fi
80911fe1 48678 rm -f stage_current
72b2455a 48679
973601e1 48680# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 48681# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48682# reconfigured either.
72b2455a
PB
48683.PHONY: stage4-bubble
48684stage4-bubble:: stage3-bubble
e360f423
PB
48685 @r=`${PWD_COMMAND}`; export r; \
48686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48687 if test -f stage4-lean || test -f stage3-lean ; then \
9cb3fa6f
PB
48688 echo Skipping rebuild of stage4 ; \
48689 else \
f70224b5 48690 $(MAKE) stage4-start; \
80911fe1
PB
48691 if $(LEAN); then \
48692 rm -rf stage2-* ; \
48693 $(STAMP) stage2-lean ; \
48694 fi; \
f70224b5 48695 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 48696 fi
f6d183c0 48697 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 48698
0df3d27f 48699.PHONY: all-stage4 clean-stage4
0df3d27f 48700do-clean: clean-stage4
0df3d27f 48701
d545f33b
PB
48702# FIXME: Will not need to be conditional when toplevel bootstrap is the
48703# only possibility, but now it conflicts with no-bootstrap rules
48704@if gcc-bootstrap
72b2455a 48705
d545f33b 48706compare3:
e360f423
PB
48707 @r=`${PWD_COMMAND}`; export r; \
48708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48709 if test -f stage3-lean; then \
d545f33b
PB
48710 echo Cannot compare object files as stage 3 was deleted. ; \
48711 exit 0 ; \
48712 fi; \
0aed8855 48713 : $(MAKE); $(stage); \
d545f33b 48714 rm -f .bad_compare ; \
c52c6897 48715 echo Comparing stages 3 and 4 ; \
fda13ee8
AO
48716 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
48717 files=`find stage4-* -name "*$(objext)" -print | \
48718 sed -n s,^stage$$sed-,,p` ; \
d545f33b 48719 for file in $${files} ; do \
fda13ee8
AO
48720 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
48721 if test ! -f $$f1; then continue; fi; \
8520c408 48722 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
48723 if test $$? -eq 1; then \
48724 case $$file in \
e8a5fa9c 48725 @compare_exclusions@) \
f70224b5
PB
48726 echo warning: $$file differs ;; \
48727 *) \
48728 echo $$file differs >> .bad_compare ;; \
48729 esac ; \
48730 fi ; \
d545f33b
PB
48731 done ; \
48732 if [ -f .bad_compare ]; then \
48733 echo "Bootstrap comparison failure!"; \
48734 cat .bad_compare; \
48735 exit 1; \
48736 else \
c52c6897 48737 echo Comparison successful.; \
d545f33b
PB
48738 fi ; \
48739 $(STAMP) compare3
80911fe1
PB
48740 if $(LEAN); then \
48741 rm -rf stage3-*; \
48742 $(STAMP) stage3-lean; \
48743 fi
9cb3fa6f 48744
72b2455a 48745
72b2455a 48746
80911fe1 48747.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
48748bootstrap4:
48749 echo stage4 > stage_final
48750 @r=`${PWD_COMMAND}`; export r; \
48751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48752 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 48753 @: $(MAKE); $(unstage)
be01d343
PB
48754 @r=`${PWD_COMMAND}`; export r; \
48755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48756 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 48757 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48758
80911fe1
PB
48759bootstrap4-lean:
48760 echo stage4 > stage_final
48761 @r=`${PWD_COMMAND}`; export r; \
48762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48763 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
48764 @: $(MAKE); $(unstage)
48765 @r=`${PWD_COMMAND}`; export r; \
48766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48767 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
48768 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48769
72b2455a 48770
d545f33b
PB
48771# Rules to wipe a stage and all the following ones, also used for cleanstrap
48772distclean-stage3:: distclean-stage4
48773.PHONY: distclean-stage4
48774distclean-stage4::
0aed8855 48775 @: $(MAKE); $(stage)
e00a73e3 48776 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 48777 rm -rf stage4-* compare3
0df3d27f 48778
9cb3fa6f 48779
d545f33b 48780@endif gcc-bootstrap
72b2455a
PB
48781
48782
48783.PHONY: stageprofile-start stageprofile-end
48784
48785stageprofile-start::
0aed8855 48786 @: $(MAKE); $(stage); \
72b2455a 48787 echo stageprofile > stage_current ; \
b00612cc 48788 echo stageprofile > stage_last; \
0aed8855 48789 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48790@if bfd
b00612cc
PB
48791 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
48792 mkdir stageprofile-bfd; \
80911fe1
PB
48793 mv stageprofile-bfd bfd ; \
48794 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48795@endif bfd
48796@if opcodes
b00612cc
PB
48797 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
48798 mkdir stageprofile-opcodes; \
80911fe1
PB
48799 mv stageprofile-opcodes opcodes ; \
48800 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48801@endif opcodes
48802@if binutils
b00612cc
PB
48803 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
48804 mkdir stageprofile-binutils; \
80911fe1
PB
48805 mv stageprofile-binutils binutils ; \
48806 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48807@endif binutils
201f096f 48808@if fixincludes
48809 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
48810 mkdir stageprofile-fixincludes; \
48811 mv stageprofile-fixincludes fixincludes ; \
48812 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48813@endif fixincludes
72b2455a 48814@if gas
b00612cc
PB
48815 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
48816 mkdir stageprofile-gas; \
80911fe1
PB
48817 mv stageprofile-gas gas ; \
48818 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48819@endif gas
48820@if gcc
b00612cc
PB
48821 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
48822 mkdir stageprofile-gcc; \
80911fe1
PB
48823 mv stageprofile-gcc gcc ; \
48824 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48825@endif gcc
4b900473
PB
48826@if gmp
48827 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
48828 mkdir stageprofile-gmp; \
48829 mv stageprofile-gmp gmp ; \
48830 mv stage1-gmp prev-gmp || test -f stage1-lean
48831@endif gmp
48832@if mpfr
48833 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
48834 mkdir stageprofile-mpfr; \
48835 mv stageprofile-mpfr mpfr ; \
48836 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48837@endif mpfr
e8a5fa9c
RW
48838@if mpc
48839 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
48840 mkdir stageprofile-mpc; \
48841 mv stageprofile-mpc mpc ; \
48842 mv stage1-mpc prev-mpc || test -f stage1-lean
48843@endif mpc
7ec59b9e
L
48844@if isl
48845 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
48846 mkdir stageprofile-isl; \
48847 mv stageprofile-isl isl ; \
48848 mv stage1-isl prev-isl || test -f stage1-lean
48849@endif isl
1f53ca9a
AO
48850@if libelf
48851 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
48852 mkdir stageprofile-libelf; \
48853 mv stageprofile-libelf libelf ; \
48854 mv stage1-libelf prev-libelf || test -f stage1-lean
48855@endif libelf
93f9b408
ILT
48856@if gold
48857 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
48858 mkdir stageprofile-gold; \
48859 mv stageprofile-gold gold ; \
48860 mv stage1-gold prev-gold || test -f stage1-lean
48861@endif gold
72b2455a 48862@if intl
b00612cc
PB
48863 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
48864 mkdir stageprofile-intl; \
80911fe1
PB
48865 mv stageprofile-intl intl ; \
48866 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48867@endif intl
48868@if ld
b00612cc
PB
48869 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
48870 mkdir stageprofile-ld; \
80911fe1
PB
48871 mv stageprofile-ld ld ; \
48872 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48873@endif ld
2bf680c4
ILT
48874@if libbacktrace
48875 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
48876 mkdir stageprofile-libbacktrace; \
48877 mv stageprofile-libbacktrace libbacktrace ; \
48878 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48879@endif libbacktrace
72b2455a 48880@if libcpp
b00612cc
PB
48881 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
48882 mkdir stageprofile-libcpp; \
80911fe1
PB
48883 mv stageprofile-libcpp libcpp ; \
48884 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48885@endif libcpp
be01d343
PB
48886@if libdecnumber
48887 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
48888 mkdir stageprofile-libdecnumber; \
80911fe1
PB
48889 mv stageprofile-libdecnumber libdecnumber ; \
48890 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48891@endif libdecnumber
72b2455a 48892@if libiberty
b00612cc
PB
48893 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
48894 mkdir stageprofile-libiberty; \
80911fe1
PB
48895 mv stageprofile-libiberty libiberty ; \
48896 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48897@endif libiberty
1b6c0831
L
48898@if libiberty-linker-plugin
48899 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
48900 mkdir stageprofile-libiberty-linker-plugin; \
48901 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin ; \
48902 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48903@endif libiberty-linker-plugin
72b2455a 48904@if zlib
d545f33b
PB
48905 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
48906 mkdir stageprofile-zlib; \
80911fe1
PB
48907 mv stageprofile-zlib zlib ; \
48908 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 48909@endif zlib
700d40ca
ILT
48910@if lto-plugin
48911 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
48912 mkdir stageprofile-lto-plugin; \
48913 mv stageprofile-lto-plugin lto-plugin ; \
48914 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48915@endif lto-plugin
0aed8855
PB
48916 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
48917 mkdir stageprofile-$(TARGET_SUBDIR); \
80911fe1
PB
48918 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48919 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 48920
80911fe1 48921stageprofile-end::
d545f33b 48922@if bfd
80911fe1
PB
48923 @if test -d $(HOST_SUBDIR)/bfd ; then \
48924 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
48925 mv prev-bfd stage1-bfd ; : ; \
0aed8855 48926 fi
d545f33b
PB
48927@endif bfd
48928@if opcodes
80911fe1
PB
48929 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48930 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
48931 mv prev-opcodes stage1-opcodes ; : ; \
0aed8855 48932 fi
d545f33b
PB
48933@endif opcodes
48934@if binutils
80911fe1
PB
48935 @if test -d $(HOST_SUBDIR)/binutils ; then \
48936 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
48937 mv prev-binutils stage1-binutils ; : ; \
0aed8855 48938 fi
d545f33b 48939@endif binutils
201f096f 48940@if fixincludes
48941 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48942 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes ; \
48943 mv prev-fixincludes stage1-fixincludes ; : ; \
48944 fi
48945@endif fixincludes
d545f33b 48946@if gas
80911fe1
PB
48947 @if test -d $(HOST_SUBDIR)/gas ; then \
48948 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
48949 mv prev-gas stage1-gas ; : ; \
0aed8855 48950 fi
d545f33b
PB
48951@endif gas
48952@if gcc
80911fe1
PB
48953 @if test -d $(HOST_SUBDIR)/gcc ; then \
48954 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
48955 mv prev-gcc stage1-gcc ; : ; \
0aed8855 48956 fi
d545f33b 48957@endif gcc
4b900473
PB
48958@if gmp
48959 @if test -d $(HOST_SUBDIR)/gmp ; then \
48960 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp ; \
48961 mv prev-gmp stage1-gmp ; : ; \
48962 fi
48963@endif gmp
48964@if mpfr
48965 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48966 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr ; \
48967 mv prev-mpfr stage1-mpfr ; : ; \
48968 fi
48969@endif mpfr
e8a5fa9c
RW
48970@if mpc
48971 @if test -d $(HOST_SUBDIR)/mpc ; then \
48972 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc ; \
48973 mv prev-mpc stage1-mpc ; : ; \
48974 fi
48975@endif mpc
7ec59b9e
L
48976@if isl
48977 @if test -d $(HOST_SUBDIR)/isl ; then \
48978 cd $(HOST_SUBDIR); mv isl stageprofile-isl ; \
48979 mv prev-isl stage1-isl ; : ; \
e28c595f 48980 fi
7ec59b9e 48981@endif isl
1f53ca9a
AO
48982@if libelf
48983 @if test -d $(HOST_SUBDIR)/libelf ; then \
48984 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf ; \
48985 mv prev-libelf stage1-libelf ; : ; \
48986 fi
48987@endif libelf
93f9b408
ILT
48988@if gold
48989 @if test -d $(HOST_SUBDIR)/gold ; then \
48990 cd $(HOST_SUBDIR); mv gold stageprofile-gold ; \
48991 mv prev-gold stage1-gold ; : ; \
48992 fi
48993@endif gold
d545f33b 48994@if intl
80911fe1
PB
48995 @if test -d $(HOST_SUBDIR)/intl ; then \
48996 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
48997 mv prev-intl stage1-intl ; : ; \
0aed8855 48998 fi
d545f33b
PB
48999@endif intl
49000@if ld
80911fe1
PB
49001 @if test -d $(HOST_SUBDIR)/ld ; then \
49002 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
49003 mv prev-ld stage1-ld ; : ; \
0aed8855 49004 fi
d545f33b 49005@endif ld
2bf680c4
ILT
49006@if libbacktrace
49007 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
49008 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace ; \
49009 mv prev-libbacktrace stage1-libbacktrace ; : ; \
49010 fi
49011@endif libbacktrace
d545f33b 49012@if libcpp
80911fe1
PB
49013 @if test -d $(HOST_SUBDIR)/libcpp ; then \
49014 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
49015 mv prev-libcpp stage1-libcpp ; : ; \
0aed8855 49016 fi
d545f33b 49017@endif libcpp
be01d343 49018@if libdecnumber
80911fe1
PB
49019 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
49020 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
49021 mv prev-libdecnumber stage1-libdecnumber ; : ; \
0aed8855 49022 fi
be01d343 49023@endif libdecnumber
d545f33b 49024@if libiberty
80911fe1
PB
49025 @if test -d $(HOST_SUBDIR)/libiberty ; then \
49026 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
49027 mv prev-libiberty stage1-libiberty ; : ; \
0aed8855 49028 fi
d545f33b 49029@endif libiberty
1b6c0831
L
49030@if libiberty-linker-plugin
49031 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
49032 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin ; \
49033 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin ; : ; \
49034 fi
49035@endif libiberty-linker-plugin
d545f33b 49036@if zlib
80911fe1
PB
49037 @if test -d $(HOST_SUBDIR)/zlib ; then \
49038 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
49039 mv prev-zlib stage1-zlib ; : ; \
0aed8855 49040 fi
d545f33b 49041@endif zlib
700d40ca
ILT
49042@if lto-plugin
49043 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
49044 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin ; \
49045 mv prev-lto-plugin stage1-lto-plugin ; : ; \
49046 fi
49047@endif lto-plugin
0aed8855 49048 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
49049 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
49050 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
0aed8855 49051 fi
80911fe1 49052 rm -f stage_current
72b2455a 49053
973601e1 49054# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 49055# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49056# reconfigured either.
d545f33b
PB
49057.PHONY: stageprofile-bubble
49058stageprofile-bubble:: stage1-bubble
e360f423
PB
49059 @r=`${PWD_COMMAND}`; export r; \
49060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49061 if test -f stageprofile-lean || test -f stage1-lean ; then \
d545f33b
PB
49062 echo Skipping rebuild of stageprofile ; \
49063 else \
f70224b5
PB
49064 $(MAKE) stageprofile-start; \
49065 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 49066 fi
72b2455a 49067
d545f33b
PB
49068.PHONY: all-stageprofile clean-stageprofile
49069do-clean: clean-stageprofile
0df3d27f 49070
72b2455a
PB
49071# FIXME: Will not need to be conditional when toplevel bootstrap is the
49072# only possibility, but now it conflicts with no-bootstrap rules
49073@if gcc-bootstrap
49074
49075
49076
49077
0df3d27f 49078# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49079distclean-stage1:: distclean-stageprofile
0df3d27f 49080.PHONY: distclean-stageprofile
72b2455a 49081distclean-stageprofile::
0aed8855 49082 @: $(MAKE); $(stage)
e00a73e3 49083 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 49084 rm -rf stageprofile-*
dfdffa2c
PB
49085
49086
72b2455a 49087@endif gcc-bootstrap
dfdffa2c
PB
49088
49089
72b2455a 49090.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 49091
72b2455a 49092stagefeedback-start::
0aed8855 49093 @: $(MAKE); $(stage); \
72b2455a 49094 echo stagefeedback > stage_current ; \
b00612cc 49095 echo stagefeedback > stage_last; \
0aed8855 49096 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49097@if bfd
b00612cc
PB
49098 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
49099 mkdir stagefeedback-bfd; \
80911fe1
PB
49100 mv stagefeedback-bfd bfd ; \
49101 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
49102@endif bfd
49103@if opcodes
b00612cc
PB
49104 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
49105 mkdir stagefeedback-opcodes; \
80911fe1
PB
49106 mv stagefeedback-opcodes opcodes ; \
49107 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
49108@endif opcodes
49109@if binutils
b00612cc
PB
49110 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
49111 mkdir stagefeedback-binutils; \
80911fe1
PB
49112 mv stagefeedback-binutils binutils ; \
49113 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 49114@endif binutils
201f096f 49115@if fixincludes
49116 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
49117 mkdir stagefeedback-fixincludes; \
49118 mv stagefeedback-fixincludes fixincludes ; \
49119 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
49120@endif fixincludes
72b2455a 49121@if gas
b00612cc
PB
49122 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
49123 mkdir stagefeedback-gas; \
80911fe1
PB
49124 mv stagefeedback-gas gas ; \
49125 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
49126@endif gas
49127@if gcc
b00612cc
PB
49128 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
49129 mkdir stagefeedback-gcc; \
80911fe1
PB
49130 mv stagefeedback-gcc gcc ; \
49131 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 49132@endif gcc
4b900473
PB
49133@if gmp
49134 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
49135 mkdir stagefeedback-gmp; \
49136 mv stagefeedback-gmp gmp ; \
49137 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
49138@endif gmp
49139@if mpfr
49140 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
49141 mkdir stagefeedback-mpfr; \
49142 mv stagefeedback-mpfr mpfr ; \
49143 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
49144@endif mpfr
e8a5fa9c
RW
49145@if mpc
49146 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
49147 mkdir stagefeedback-mpc; \
49148 mv stagefeedback-mpc mpc ; \
49149 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
49150@endif mpc
7ec59b9e
L
49151@if isl
49152 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
49153 mkdir stagefeedback-isl; \
49154 mv stagefeedback-isl isl ; \
49155 mv stageprofile-isl prev-isl || test -f stageprofile-lean
49156@endif isl
1f53ca9a
AO
49157@if libelf
49158 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
49159 mkdir stagefeedback-libelf; \
49160 mv stagefeedback-libelf libelf ; \
49161 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
49162@endif libelf
93f9b408
ILT
49163@if gold
49164 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
49165 mkdir stagefeedback-gold; \
49166 mv stagefeedback-gold gold ; \
49167 mv stageprofile-gold prev-gold || test -f stageprofile-lean
49168@endif gold
72b2455a 49169@if intl
b00612cc
PB
49170 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
49171 mkdir stagefeedback-intl; \
80911fe1
PB
49172 mv stagefeedback-intl intl ; \
49173 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
49174@endif intl
49175@if ld
b00612cc
PB
49176 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
49177 mkdir stagefeedback-ld; \
80911fe1
PB
49178 mv stagefeedback-ld ld ; \
49179 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 49180@endif ld
2bf680c4
ILT
49181@if libbacktrace
49182 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
49183 mkdir stagefeedback-libbacktrace; \
49184 mv stagefeedback-libbacktrace libbacktrace ; \
49185 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
49186@endif libbacktrace
72b2455a 49187@if libcpp
b00612cc
PB
49188 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
49189 mkdir stagefeedback-libcpp; \
80911fe1
PB
49190 mv stagefeedback-libcpp libcpp ; \
49191 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 49192@endif libcpp
be01d343
PB
49193@if libdecnumber
49194 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
49195 mkdir stagefeedback-libdecnumber; \
80911fe1
PB
49196 mv stagefeedback-libdecnumber libdecnumber ; \
49197 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 49198@endif libdecnumber
72b2455a 49199@if libiberty
b00612cc
PB
49200 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
49201 mkdir stagefeedback-libiberty; \
80911fe1
PB
49202 mv stagefeedback-libiberty libiberty ; \
49203 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 49204@endif libiberty
1b6c0831
L
49205@if libiberty-linker-plugin
49206 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
49207 mkdir stagefeedback-libiberty-linker-plugin; \
49208 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin ; \
49209 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
49210@endif libiberty-linker-plugin
72b2455a 49211@if zlib
b00612cc
PB
49212 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
49213 mkdir stagefeedback-zlib; \
80911fe1
PB
49214 mv stagefeedback-zlib zlib ; \
49215 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 49216@endif zlib
700d40ca
ILT
49217@if lto-plugin
49218 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
49219 mkdir stagefeedback-lto-plugin; \
49220 mv stagefeedback-lto-plugin lto-plugin ; \
49221 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
49222@endif lto-plugin
0aed8855
PB
49223 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
49224 mkdir stagefeedback-$(TARGET_SUBDIR); \
80911fe1
PB
49225 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
49226 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 49227
80911fe1 49228stagefeedback-end::
72b2455a 49229@if bfd
80911fe1
PB
49230 @if test -d $(HOST_SUBDIR)/bfd ; then \
49231 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
49232 mv prev-bfd stageprofile-bfd ; : ; \
0aed8855 49233 fi
72b2455a
PB
49234@endif bfd
49235@if opcodes
80911fe1
PB
49236 @if test -d $(HOST_SUBDIR)/opcodes ; then \
49237 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
49238 mv prev-opcodes stageprofile-opcodes ; : ; \
0aed8855 49239 fi
72b2455a
PB
49240@endif opcodes
49241@if binutils
80911fe1
PB
49242 @if test -d $(HOST_SUBDIR)/binutils ; then \
49243 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
49244 mv prev-binutils stageprofile-binutils ; : ; \
0aed8855 49245 fi
72b2455a 49246@endif binutils
201f096f 49247@if fixincludes
49248 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
49249 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes ; \
49250 mv prev-fixincludes stageprofile-fixincludes ; : ; \
49251 fi
49252@endif fixincludes
72b2455a 49253@if gas
80911fe1
PB
49254 @if test -d $(HOST_SUBDIR)/gas ; then \
49255 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
49256 mv prev-gas stageprofile-gas ; : ; \
0aed8855 49257 fi
72b2455a
PB
49258@endif gas
49259@if gcc
80911fe1
PB
49260 @if test -d $(HOST_SUBDIR)/gcc ; then \
49261 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
49262 mv prev-gcc stageprofile-gcc ; : ; \
0aed8855 49263 fi
72b2455a 49264@endif gcc
4b900473
PB
49265@if gmp
49266 @if test -d $(HOST_SUBDIR)/gmp ; then \
49267 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp ; \
49268 mv prev-gmp stageprofile-gmp ; : ; \
49269 fi
49270@endif gmp
49271@if mpfr
49272 @if test -d $(HOST_SUBDIR)/mpfr ; then \
49273 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr ; \
49274 mv prev-mpfr stageprofile-mpfr ; : ; \
49275 fi
49276@endif mpfr
e8a5fa9c
RW
49277@if mpc
49278 @if test -d $(HOST_SUBDIR)/mpc ; then \
49279 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc ; \
49280 mv prev-mpc stageprofile-mpc ; : ; \
49281 fi
49282@endif mpc
7ec59b9e
L
49283@if isl
49284 @if test -d $(HOST_SUBDIR)/isl ; then \
49285 cd $(HOST_SUBDIR); mv isl stagefeedback-isl ; \
49286 mv prev-isl stageprofile-isl ; : ; \
e28c595f 49287 fi
7ec59b9e 49288@endif isl
1f53ca9a
AO
49289@if libelf
49290 @if test -d $(HOST_SUBDIR)/libelf ; then \
49291 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf ; \
49292 mv prev-libelf stageprofile-libelf ; : ; \
49293 fi
49294@endif libelf
93f9b408
ILT
49295@if gold
49296 @if test -d $(HOST_SUBDIR)/gold ; then \
49297 cd $(HOST_SUBDIR); mv gold stagefeedback-gold ; \
49298 mv prev-gold stageprofile-gold ; : ; \
49299 fi
49300@endif gold
72b2455a 49301@if intl
80911fe1
PB
49302 @if test -d $(HOST_SUBDIR)/intl ; then \
49303 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
49304 mv prev-intl stageprofile-intl ; : ; \
0aed8855 49305 fi
72b2455a
PB
49306@endif intl
49307@if ld
80911fe1
PB
49308 @if test -d $(HOST_SUBDIR)/ld ; then \
49309 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
49310 mv prev-ld stageprofile-ld ; : ; \
0aed8855 49311 fi
72b2455a 49312@endif ld
2bf680c4
ILT
49313@if libbacktrace
49314 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
49315 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace ; \
49316 mv prev-libbacktrace stageprofile-libbacktrace ; : ; \
49317 fi
49318@endif libbacktrace
72b2455a 49319@if libcpp
80911fe1
PB
49320 @if test -d $(HOST_SUBDIR)/libcpp ; then \
49321 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
49322 mv prev-libcpp stageprofile-libcpp ; : ; \
0aed8855 49323 fi
72b2455a 49324@endif libcpp
be01d343 49325@if libdecnumber
80911fe1
PB
49326 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
49327 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
49328 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
0aed8855 49329 fi
be01d343 49330@endif libdecnumber
72b2455a 49331@if libiberty
80911fe1
PB
49332 @if test -d $(HOST_SUBDIR)/libiberty ; then \
49333 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
49334 mv prev-libiberty stageprofile-libiberty ; : ; \
0aed8855 49335 fi
72b2455a 49336@endif libiberty
1b6c0831
L
49337@if libiberty-linker-plugin
49338 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
49339 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin ; \
49340 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin ; : ; \
49341 fi
49342@endif libiberty-linker-plugin
72b2455a 49343@if zlib
80911fe1
PB
49344 @if test -d $(HOST_SUBDIR)/zlib ; then \
49345 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
49346 mv prev-zlib stageprofile-zlib ; : ; \
0aed8855 49347 fi
72b2455a 49348@endif zlib
700d40ca
ILT
49349@if lto-plugin
49350 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
49351 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin ; \
49352 mv prev-lto-plugin stageprofile-lto-plugin ; : ; \
49353 fi
49354@endif lto-plugin
0aed8855 49355 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
49356 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
49357 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
0aed8855 49358 fi
80911fe1 49359 rm -f stage_current
dfdffa2c 49360
973601e1 49361# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 49362# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49363# reconfigured either.
72b2455a 49364.PHONY: stagefeedback-bubble
7d329e61 49365stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
49366 @r=`${PWD_COMMAND}`; export r; \
49367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49368 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
9cb3fa6f
PB
49369 echo Skipping rebuild of stagefeedback ; \
49370 else \
f70224b5
PB
49371 $(MAKE) stagefeedback-start; \
49372 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 49373 fi
72b2455a 49374
0df3d27f 49375.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 49376do-clean: clean-stagefeedback
0df3d27f 49377
72b2455a
PB
49378# FIXME: Will not need to be conditional when toplevel bootstrap is the
49379# only possibility, but now it conflicts with no-bootstrap rules
49380@if gcc-bootstrap
656fdd47
PB
49381
49382
49383
80911fe1 49384.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
49385profiledbootstrap:
49386 echo stagefeedback > stage_final
49387 @r=`${PWD_COMMAND}`; export r; \
49388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49389 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 49390 @: $(MAKE); $(unstage)
be01d343
PB
49391 @r=`${PWD_COMMAND}`; export r; \
49392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49393 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 49394 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 49395
80911fe1
PB
49396profiledbootstrap-lean:
49397 echo stagefeedback > stage_final
49398 @r=`${PWD_COMMAND}`; export r; \
49399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49400 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
49401 @: $(MAKE); $(unstage)
49402 @r=`${PWD_COMMAND}`; export r; \
49403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49404 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
49405 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49406
656fdd47 49407
0df3d27f 49408# Rules to wipe a stage and all the following ones, also used for cleanstrap
7d329e61 49409distclean-stageprofile:: distclean-stagefeedback
0df3d27f 49410.PHONY: distclean-stagefeedback
656fdd47 49411distclean-stagefeedback::
0aed8855 49412 @: $(MAKE); $(stage)
e00a73e3 49413 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 49414 rm -rf stagefeedback-*
656fdd47
PB
49415
49416
72b2455a 49417@endif gcc-bootstrap
656fdd47
PB
49418
49419
49420
7d329e61
PB
49421stageprofile-end::
49422 $(MAKE) distclean-stagefeedback
656fdd47 49423
7d329e61 49424stagefeedback-start::
656fdd47
PB
49425 @r=`${PWD_COMMAND}`; export r; \
49426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61
PB
49427 for i in prev-*; do \
49428 j=`echo $$i | sed s/^prev-//` ; \
49429 cd $$r/$$i && \
49430 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
49431 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
49432 done
b8908782 49433
0df3d27f 49434@if gcc-bootstrap
0df3d27f 49435do-distclean: distclean-stage1
c52c6897
PB
49436
49437# Provide a GCC build when we're building target libraries. This does
49438# not work as a dependency, just as the minimum necessary to avoid errors.
49439stage_last:
314b2e66
AS
49440 @r=`${PWD_COMMAND}`; export r; \
49441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 49442 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 49443
4f0ef2d8
CD
49444# Same as unstage, but not phony and defaulting to stage1-start. We place
49445# it in the dependency so that for example `make -j3 all-gcc' works.
49446stage_current:
49447 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
49448
c52c6897 49449.PHONY: restrap
266df637 49450restrap::
c52c6897 49451 @: $(MAKE); $(stage)
1b05fbbd 49452 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 49453restrap:: all
c380fdd8 49454@endif gcc-bootstrap
c52c6897 49455
ae831be5
NN
49456# --------------------------------------
49457# Dependencies between different modules
49458# --------------------------------------
252b5132 49459
9e6ce191 49460# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 49461@if gcc-bootstrap
e8a5fa9c
RW
49462configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
49463configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
49464configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
49465configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
49466configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
49467configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
49468configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
49469configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
49470configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
49471configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
49472configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
49473configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
49474configure-stage1-target-libmpx: maybe-all-stage1-gcc
49475configure-stage2-target-libmpx: maybe-all-stage2-gcc
49476configure-stage3-target-libmpx: maybe-all-stage3-gcc
49477configure-stage4-target-libmpx: maybe-all-stage4-gcc
49478configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
49479configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
49480configure-stage1-target-libvtv: maybe-all-stage1-gcc
49481configure-stage2-target-libvtv: maybe-all-stage2-gcc
49482configure-stage3-target-libvtv: maybe-all-stage3-gcc
49483configure-stage4-target-libvtv: maybe-all-stage4-gcc
49484configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
49485configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
522e3d71 49486configure-target-libcilkrts: stage_last
1b6c0831 49487configure-target-liboffloadmic: stage_last
c52c6897 49488configure-target-libssp: stage_last
c52c6897 49489configure-target-newlib: stage_last
6aa8ef82
DJ
49490configure-stage1-target-libgcc: maybe-all-stage1-gcc
49491configure-stage2-target-libgcc: maybe-all-stage2-gcc
49492configure-stage3-target-libgcc: maybe-all-stage3-gcc
49493configure-stage4-target-libgcc: maybe-all-stage4-gcc
49494configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
49495configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 49496configure-target-libbacktrace: stage_last
e552509b 49497configure-target-libquadmath: stage_last
c52c6897
PB
49498configure-target-libgfortran: stage_last
49499configure-target-libobjc: stage_last
e552509b 49500configure-target-libgo: stage_last
c52c6897
PB
49501configure-target-libtermcap: stage_last
49502configure-target-winsup: stage_last
49503configure-target-libgloss: stage_last
c52c6897
PB
49504configure-target-libffi: stage_last
49505configure-target-libjava: stage_last
49506configure-target-zlib: stage_last
49507configure-target-boehm-gc: stage_last
c52c6897
PB
49508configure-target-rda: stage_last
49509configure-target-libada: stage_last
911e63d0
JR
49510configure-stage1-target-libgomp: maybe-all-stage1-gcc
49511configure-stage2-target-libgomp: maybe-all-stage2-gcc
49512configure-stage3-target-libgomp: maybe-all-stage3-gcc
49513configure-stage4-target-libgomp: maybe-all-stage4-gcc
49514configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
49515configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
49516configure-target-libitm: stage_last
49517configure-target-libatomic: stage_last
c52c6897 49518@endif gcc-bootstrap
9e6ce191 49519
c52c6897 49520@if gcc-no-bootstrap
9e6ce191 49521configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 49522configure-target-libsanitizer: maybe-all-gcc
1b6c0831 49523configure-target-libmpx: maybe-all-gcc
95e43135 49524configure-target-libvtv: maybe-all-gcc
e78e02e6 49525configure-target-libcilkrts: maybe-all-gcc
1b6c0831 49526configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 49527configure-target-libssp: maybe-all-gcc
9e6ce191 49528configure-target-newlib: maybe-all-gcc
6aa8ef82 49529configure-target-libgcc: maybe-all-gcc
2bf680c4 49530configure-target-libbacktrace: maybe-all-gcc
e552509b 49531configure-target-libquadmath: maybe-all-gcc
9e6ce191 49532configure-target-libgfortran: maybe-all-gcc
9e6ce191 49533configure-target-libobjc: maybe-all-gcc
e552509b 49534configure-target-libgo: maybe-all-gcc
9e6ce191 49535configure-target-libtermcap: maybe-all-gcc
9e6ce191 49536configure-target-winsup: maybe-all-gcc
9e6ce191 49537configure-target-libgloss: maybe-all-gcc
9e6ce191 49538configure-target-libffi: maybe-all-gcc
9e6ce191 49539configure-target-libjava: maybe-all-gcc
9e6ce191 49540configure-target-zlib: maybe-all-gcc
9e6ce191 49541configure-target-boehm-gc: maybe-all-gcc
9e6ce191 49542configure-target-rda: maybe-all-gcc
9e6ce191 49543configure-target-libada: maybe-all-gcc
b3ded179 49544configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
49545configure-target-libitm: maybe-all-gcc
49546configure-target-libatomic: maybe-all-gcc
c52c6897 49547@endif gcc-no-bootstrap
b3ded179 49548
9e6ce191 49549
ae831be5
NN
49550# There are two types of dependencies here: 'hard' dependencies, where one
49551# module simply won't build without the other; and 'soft' dependencies, where
49552# if the depended-on module is missing, the depending module will do without
49553# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 49554# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
49555# it's safer to use a soft dependency.
49556
9e6ce191
PB
49557
49558
49559
49560
c60fe18b 49561
9e6ce191
PB
49562# With all the machinery above in place, it is pretty easy to generate
49563# dependencies. Host dependencies are a bit more complex because we have
49564# to check for bootstrap/prebootstrap dependencies. To resolve
49565# prebootstrap dependencies, prebootstrap modules are gathered in
49566# a hash table.
6a9cf61e
PB
49567all-build-bison: maybe-all-build-texinfo
49568all-build-flex: maybe-all-build-texinfo
9e6ce191 49569all-build-flex: maybe-all-build-bison
9e6ce191 49570all-build-flex: maybe-all-build-m4
6a9cf61e 49571all-build-libiberty: maybe-all-build-texinfo
9e6ce191 49572all-build-m4: maybe-all-build-texinfo
ee025550 49573all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 49574all-build-libcpp: maybe-all-build-libiberty
9e6ce191
PB
49575configure-gcc: maybe-configure-intl
49576
49577configure-stage1-gcc: maybe-configure-stage1-intl
49578configure-stage2-gcc: maybe-configure-stage2-intl
49579configure-stage3-gcc: maybe-configure-stage3-intl
49580configure-stage4-gcc: maybe-configure-stage4-intl
49581configure-stageprofile-gcc: maybe-configure-stageprofile-intl
49582configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8
L
49583configure-gcc: maybe-all-gmp
49584
49585configure-stage1-gcc: maybe-all-stage1-gmp
49586configure-stage2-gcc: maybe-all-stage2-gmp
49587configure-stage3-gcc: maybe-all-stage3-gmp
49588configure-stage4-gcc: maybe-all-stage4-gmp
49589configure-stageprofile-gcc: maybe-all-stageprofile-gmp
49590configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831
L
49591configure-gcc: maybe-all-mpfr
49592
49593configure-stage1-gcc: maybe-all-stage1-mpfr
49594configure-stage2-gcc: maybe-all-stage2-mpfr
49595configure-stage3-gcc: maybe-all-stage3-mpfr
49596configure-stage4-gcc: maybe-all-stage4-mpfr
49597configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
49598configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
49599configure-gcc: maybe-all-mpc
49600
49601configure-stage1-gcc: maybe-all-stage1-mpc
49602configure-stage2-gcc: maybe-all-stage2-mpc
49603configure-stage3-gcc: maybe-all-stage3-mpc
49604configure-stage4-gcc: maybe-all-stage4-mpc
49605configure-stageprofile-gcc: maybe-all-stageprofile-mpc
49606configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
49607configure-gcc: maybe-all-isl
49608
49609configure-stage1-gcc: maybe-all-stage1-isl
49610configure-stage2-gcc: maybe-all-stage2-isl
49611configure-stage3-gcc: maybe-all-stage3-isl
49612configure-stage4-gcc: maybe-all-stage4-isl
49613configure-stageprofile-gcc: maybe-all-stageprofile-isl
49614configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a
RW
49615configure-gcc: maybe-all-lto-plugin
49616
49617configure-stage1-gcc: maybe-all-stage1-lto-plugin
49618configure-stage2-gcc: maybe-all-stage2-lto-plugin
49619configure-stage3-gcc: maybe-all-stage3-lto-plugin
49620configure-stage4-gcc: maybe-all-stage4-lto-plugin
49621configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
49622configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b
PB
49623configure-gcc: maybe-all-binutils
49624
49625configure-stage1-gcc: maybe-all-stage1-binutils
49626configure-stage2-gcc: maybe-all-stage2-binutils
49627configure-stage3-gcc: maybe-all-stage3-binutils
49628configure-stage4-gcc: maybe-all-stage4-binutils
49629configure-stageprofile-gcc: maybe-all-stageprofile-binutils
49630configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
49631configure-gcc: maybe-all-gas
49632
49633configure-stage1-gcc: maybe-all-stage1-gas
49634configure-stage2-gcc: maybe-all-stage2-gas
49635configure-stage3-gcc: maybe-all-stage3-gas
49636configure-stage4-gcc: maybe-all-stage4-gas
49637configure-stageprofile-gcc: maybe-all-stageprofile-gas
49638configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
49639configure-gcc: maybe-all-ld
49640
49641configure-stage1-gcc: maybe-all-stage1-ld
49642configure-stage2-gcc: maybe-all-stage2-ld
49643configure-stage3-gcc: maybe-all-stage3-ld
49644configure-stage4-gcc: maybe-all-stage4-ld
49645configure-stageprofile-gcc: maybe-all-stageprofile-ld
49646configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408
ILT
49647configure-gcc: maybe-all-gold
49648
49649configure-stage1-gcc: maybe-all-stage1-gold
49650configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 49651configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
49652configure-stage4-gcc: maybe-all-stage4-gold
49653configure-stageprofile-gcc: maybe-all-stageprofile-gold
49654configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480
AO
49655configure-gcc: maybe-all-libelf
49656
49657configure-stage1-gcc: maybe-all-stage1-libelf
49658configure-stage2-gcc: maybe-all-stage2-libelf
49659configure-stage3-gcc: maybe-all-stage3-libelf
49660configure-stage4-gcc: maybe-all-stage4-libelf
49661configure-stageprofile-gcc: maybe-all-stageprofile-libelf
49662configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
9e6ce191
PB
49663all-gcc: all-libiberty
49664
49665all-stage1-gcc: all-stage1-libiberty
49666all-stage2-gcc: all-stage2-libiberty
49667all-stage3-gcc: all-stage3-libiberty
49668all-stage4-gcc: all-stage4-libiberty
49669all-stageprofile-gcc: all-stageprofile-libiberty
49670all-stagefeedback-gcc: all-stagefeedback-libiberty
49671all-gcc: maybe-all-intl
49672
49673all-stage1-gcc: maybe-all-stage1-intl
49674all-stage2-gcc: maybe-all-stage2-intl
49675all-stage3-gcc: maybe-all-stage3-intl
49676all-stage4-gcc: maybe-all-stage4-intl
49677all-stageprofile-gcc: maybe-all-stageprofile-intl
49678all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473
PB
49679all-gcc: maybe-all-mpfr
49680
49681all-stage1-gcc: maybe-all-stage1-mpfr
49682all-stage2-gcc: maybe-all-stage2-mpfr
49683all-stage3-gcc: maybe-all-stage3-mpfr
49684all-stage4-gcc: maybe-all-stage4-mpfr
49685all-stageprofile-gcc: maybe-all-stageprofile-mpfr
49686all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c
RW
49687all-gcc: maybe-all-mpc
49688
49689all-stage1-gcc: maybe-all-stage1-mpc
49690all-stage2-gcc: maybe-all-stage2-mpc
49691all-stage3-gcc: maybe-all-stage3-mpc
49692all-stage4-gcc: maybe-all-stage4-mpc
49693all-stageprofile-gcc: maybe-all-stageprofile-mpc
49694all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831
L
49695all-gcc: maybe-all-isl
49696
49697all-stage1-gcc: maybe-all-stage1-isl
49698all-stage2-gcc: maybe-all-stage2-isl
49699all-stage3-gcc: maybe-all-stage3-isl
49700all-stage4-gcc: maybe-all-stage4-isl
49701all-stageprofile-gcc: maybe-all-stageprofile-isl
49702all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a
PB
49703all-gcc: maybe-all-build-texinfo
49704
49705all-stage1-gcc: maybe-all-build-texinfo
49706all-stage2-gcc: maybe-all-build-texinfo
49707all-stage3-gcc: maybe-all-build-texinfo
49708all-stage4-gcc: maybe-all-build-texinfo
49709all-stageprofile-gcc: maybe-all-build-texinfo
49710all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a
PB
49711all-gcc: maybe-all-build-bison
49712
49713all-stage1-gcc: maybe-all-build-bison
49714all-stage2-gcc: maybe-all-build-bison
49715all-stage3-gcc: maybe-all-build-bison
49716all-stage4-gcc: maybe-all-build-bison
49717all-stageprofile-gcc: maybe-all-build-bison
49718all-stagefeedback-gcc: maybe-all-build-bison
72b2455a
PB
49719all-gcc: maybe-all-build-flex
49720
49721all-stage1-gcc: maybe-all-build-flex
49722all-stage2-gcc: maybe-all-build-flex
49723all-stage3-gcc: maybe-all-build-flex
49724all-stage4-gcc: maybe-all-build-flex
49725all-stageprofile-gcc: maybe-all-build-flex
49726all-stagefeedback-gcc: maybe-all-build-flex
ee025550
PB
49727all-gcc: maybe-all-build-libiberty
49728
49729all-stage1-gcc: maybe-all-build-libiberty
49730all-stage2-gcc: maybe-all-build-libiberty
49731all-stage3-gcc: maybe-all-build-libiberty
49732all-stage4-gcc: maybe-all-build-libiberty
49733all-stageprofile-gcc: maybe-all-build-libiberty
49734all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550
PB
49735all-gcc: maybe-all-build-fixincludes
49736
49737all-stage1-gcc: maybe-all-build-fixincludes
49738all-stage2-gcc: maybe-all-build-fixincludes
49739all-stage3-gcc: maybe-all-build-fixincludes
49740all-stage4-gcc: maybe-all-build-fixincludes
49741all-stageprofile-gcc: maybe-all-build-fixincludes
49742all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831
L
49743all-gcc: maybe-all-build-libcpp
49744
49745all-stage1-gcc: maybe-all-build-libcpp
49746all-stage2-gcc: maybe-all-build-libcpp
49747all-stage3-gcc: maybe-all-build-libcpp
49748all-stage4-gcc: maybe-all-build-libcpp
49749all-stageprofile-gcc: maybe-all-build-libcpp
49750all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191
PB
49751all-gcc: maybe-all-zlib
49752
49753all-stage1-gcc: maybe-all-stage1-zlib
49754all-stage2-gcc: maybe-all-stage2-zlib
49755all-stage3-gcc: maybe-all-stage3-zlib
49756all-stage4-gcc: maybe-all-stage4-zlib
49757all-stageprofile-gcc: maybe-all-stageprofile-zlib
49758all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b
L
49759all-gcc: all-libbacktrace
49760
49761all-stage1-gcc: all-stage1-libbacktrace
49762all-stage2-gcc: all-stage2-libbacktrace
49763all-stage3-gcc: all-stage3-libbacktrace
49764all-stage4-gcc: all-stage4-libbacktrace
49765all-stageprofile-gcc: all-stageprofile-libbacktrace
49766all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191
PB
49767all-gcc: all-libcpp
49768
49769all-stage1-gcc: all-stage1-libcpp
49770all-stage2-gcc: all-stage2-libcpp
49771all-stage3-gcc: all-stage3-libcpp
49772all-stage4-gcc: all-stage4-libcpp
49773all-stageprofile-gcc: all-stageprofile-libcpp
49774all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343
PB
49775all-gcc: all-libdecnumber
49776
49777all-stage1-gcc: all-stage1-libdecnumber
49778all-stage2-gcc: all-stage2-libdecnumber
49779all-stage3-gcc: all-stage3-libdecnumber
49780all-stage4-gcc: all-stage4-libdecnumber
49781all-stageprofile-gcc: all-stageprofile-libdecnumber
49782all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c
GK
49783all-gcc: maybe-all-libiberty
49784
49785all-stage1-gcc: maybe-all-stage1-libiberty
49786all-stage2-gcc: maybe-all-stage2-libiberty
49787all-stage3-gcc: maybe-all-stage3-libiberty
49788all-stage4-gcc: maybe-all-stage4-libiberty
49789all-stageprofile-gcc: maybe-all-stageprofile-libiberty
49790all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
49791all-gcc: maybe-all-fixincludes
201f096f 49792
49793all-stage1-gcc: maybe-all-stage1-fixincludes
49794all-stage2-gcc: maybe-all-stage2-fixincludes
49795all-stage3-gcc: maybe-all-stage3-fixincludes
49796all-stage4-gcc: maybe-all-stage4-fixincludes
49797all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
49798all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a
RW
49799all-gcc: maybe-all-lto-plugin
49800
49801all-stage1-gcc: maybe-all-stage1-lto-plugin
49802all-stage2-gcc: maybe-all-stage2-lto-plugin
49803all-stage3-gcc: maybe-all-stage3-lto-plugin
49804all-stage4-gcc: maybe-all-stage4-lto-plugin
49805all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
49806all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
57eefe4d
RW
49807info-gcc: maybe-all-build-libiberty
49808
49809info-stage1-gcc: maybe-all-build-libiberty
49810info-stage2-gcc: maybe-all-build-libiberty
49811info-stage3-gcc: maybe-all-build-libiberty
49812info-stage4-gcc: maybe-all-build-libiberty
49813info-stageprofile-gcc: maybe-all-build-libiberty
49814info-stagefeedback-gcc: maybe-all-build-libiberty
49815dvi-gcc: maybe-all-build-libiberty
49816
49817dvi-stage1-gcc: maybe-all-build-libiberty
49818dvi-stage2-gcc: maybe-all-build-libiberty
49819dvi-stage3-gcc: maybe-all-build-libiberty
49820dvi-stage4-gcc: maybe-all-build-libiberty
49821dvi-stageprofile-gcc: maybe-all-build-libiberty
49822dvi-stagefeedback-gcc: maybe-all-build-libiberty
49823pdf-gcc: maybe-all-build-libiberty
49824
49825pdf-stage1-gcc: maybe-all-build-libiberty
49826pdf-stage2-gcc: maybe-all-build-libiberty
49827pdf-stage3-gcc: maybe-all-build-libiberty
49828pdf-stage4-gcc: maybe-all-build-libiberty
49829pdf-stageprofile-gcc: maybe-all-build-libiberty
49830pdf-stagefeedback-gcc: maybe-all-build-libiberty
49831html-gcc: maybe-all-build-libiberty
49832
49833html-stage1-gcc: maybe-all-build-libiberty
49834html-stage2-gcc: maybe-all-build-libiberty
49835html-stage3-gcc: maybe-all-build-libiberty
49836html-stage4-gcc: maybe-all-build-libiberty
49837html-stageprofile-gcc: maybe-all-build-libiberty
49838html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 49839install-gcc: maybe-install-fixincludes
8d8eef9a 49840install-gcc: maybe-install-lto-plugin
9b980aa1 49841install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 49842install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191
PB
49843configure-libcpp: configure-libiberty
49844
49845configure-stage1-libcpp: configure-stage1-libiberty
49846configure-stage2-libcpp: configure-stage2-libiberty
49847configure-stage3-libcpp: configure-stage3-libiberty
49848configure-stage4-libcpp: configure-stage4-libiberty
49849configure-stageprofile-libcpp: configure-stageprofile-libiberty
49850configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
49851configure-libcpp: maybe-configure-intl
49852
49853configure-stage1-libcpp: maybe-configure-stage1-intl
49854configure-stage2-libcpp: maybe-configure-stage2-intl
49855configure-stage3-libcpp: maybe-configure-stage3-intl
49856configure-stage4-libcpp: maybe-configure-stage4-intl
49857configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
49858configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
49859all-libcpp: all-libiberty
49860
49861all-stage1-libcpp: all-stage1-libiberty
49862all-stage2-libcpp: all-stage2-libiberty
49863all-stage3-libcpp: all-stage3-libiberty
49864all-stage4-libcpp: all-stage4-libiberty
49865all-stageprofile-libcpp: all-stageprofile-libiberty
49866all-stagefeedback-libcpp: all-stagefeedback-libiberty
49867all-libcpp: maybe-all-intl
49868
49869all-stage1-libcpp: maybe-all-stage1-intl
49870all-stage2-libcpp: maybe-all-stage2-intl
49871all-stage3-libcpp: maybe-all-stage3-intl
49872all-stage4-libcpp: maybe-all-stage4-intl
49873all-stageprofile-libcpp: maybe-all-stageprofile-intl
49874all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
d3ed111c 49875all-fixincludes: maybe-all-libiberty
201f096f 49876
49877all-stage1-fixincludes: maybe-all-stage1-libiberty
49878all-stage2-fixincludes: maybe-all-stage2-libiberty
49879all-stage3-fixincludes: maybe-all-stage3-libiberty
49880all-stage4-fixincludes: maybe-all-stage4-libiberty
49881all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
49882all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 49883all-gnattools: maybe-all-target-libada
50f80006 49884all-gnattools: maybe-all-target-libstdc++-v3
8d8eef9a
RW
49885all-lto-plugin: maybe-all-libiberty
49886
49887all-stage1-lto-plugin: maybe-all-stage1-libiberty
49888all-stage2-lto-plugin: maybe-all-stage2-libiberty
49889all-stage3-lto-plugin: maybe-all-stage3-libiberty
49890all-stage4-lto-plugin: maybe-all-stage4-libiberty
49891all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
49892all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831
L
49893all-lto-plugin: maybe-all-libiberty-linker-plugin
49894
49895all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
49896all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
49897all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
49898all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
49899all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
49900all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
49901configure-libcc1: maybe-configure-gcc
49902all-libcc1: maybe-all-gcc
49903all-gotools: maybe-all-target-libgo
28d9b232 49904all-utils: maybe-all-libiberty
4b900473
PB
49905configure-mpfr: maybe-all-gmp
49906
49907configure-stage1-mpfr: maybe-all-stage1-gmp
49908configure-stage2-mpfr: maybe-all-stage2-gmp
49909configure-stage3-mpfr: maybe-all-stage3-gmp
49910configure-stage4-mpfr: maybe-all-stage4-gmp
49911configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
49912configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c
RW
49913configure-mpc: maybe-all-mpfr
49914
49915configure-stage1-mpc: maybe-all-stage1-mpfr
49916configure-stage2-mpc: maybe-all-stage2-mpfr
49917configure-stage3-mpc: maybe-all-stage3-mpfr
49918configure-stage4-mpc: maybe-all-stage4-mpfr
49919configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
49920configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e
L
49921configure-isl: maybe-all-gmp
49922
49923configure-stage1-isl: maybe-all-stage1-gmp
49924configure-stage2-isl: maybe-all-stage2-gmp
49925configure-stage3-isl: maybe-all-stage3-gmp
49926configure-stage4-isl: maybe-all-stage4-gmp
49927configure-stageprofile-isl: maybe-all-stageprofile-gmp
49928configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
7b3200f9 49929configure-gdb: maybe-all-intl
9e6ce191 49930configure-gdb: maybe-configure-sim
31d99776 49931configure-gdb: maybe-all-bfd
dc448a7b 49932configure-gdb: maybe-all-libiconv
9e6ce191 49933all-gdb: maybe-all-libiberty
dc448a7b 49934all-gdb: maybe-all-libiconv
9e6ce191 49935all-gdb: maybe-all-opcodes
9e6ce191 49936all-gdb: maybe-all-readline
72b2455a 49937all-gdb: maybe-all-build-bison
9e6ce191 49938all-gdb: maybe-all-sim
5074315a 49939all-gdb: maybe-all-libdecnumber
dbbe5f95 49940all-gdb: maybe-all-libtermcap
9e6ce191
PB
49941configure-libgui: maybe-configure-tcl
49942configure-libgui: maybe-configure-tk
49943all-libgui: maybe-all-tcl
49944all-libgui: maybe-all-tk
49945all-libgui: maybe-all-itcl
b4a77b47 49946configure-bfd: configure-libiberty
9e6ce191
PB
49947
49948configure-stage1-bfd: configure-stage1-libiberty
49949configure-stage2-bfd: configure-stage2-libiberty
49950configure-stage3-bfd: configure-stage3-libiberty
49951configure-stage4-bfd: configure-stage4-libiberty
49952configure-stageprofile-bfd: configure-stageprofile-libiberty
49953configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23
DJ
49954configure-bfd: maybe-configure-intl
49955
49956configure-stage1-bfd: maybe-configure-stage1-intl
49957configure-stage2-bfd: maybe-configure-stage2-intl
49958configure-stage3-bfd: maybe-configure-stage3-intl
49959configure-stage4-bfd: maybe-configure-stage4-intl
49960configure-stageprofile-bfd: maybe-configure-stageprofile-intl
49961configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191
PB
49962all-bfd: maybe-all-libiberty
49963
49964all-stage1-bfd: maybe-all-stage1-libiberty
49965all-stage2-bfd: maybe-all-stage2-libiberty
49966all-stage3-bfd: maybe-all-stage3-libiberty
49967all-stage4-bfd: maybe-all-stage4-libiberty
49968all-stageprofile-bfd: maybe-all-stageprofile-libiberty
49969all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
49970all-bfd: maybe-all-intl
49971
49972all-stage1-bfd: maybe-all-stage1-intl
49973all-stage2-bfd: maybe-all-stage2-intl
49974all-stage3-bfd: maybe-all-stage3-intl
49975all-stage4-bfd: maybe-all-stage4-intl
49976all-stageprofile-bfd: maybe-all-stageprofile-intl
49977all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea
L
49978all-bfd: maybe-all-zlib
49979
49980all-stage1-bfd: maybe-all-stage1-zlib
49981all-stage2-bfd: maybe-all-stage2-zlib
49982all-stage3-bfd: maybe-all-stage3-zlib
49983all-stage4-bfd: maybe-all-stage4-zlib
49984all-stageprofile-bfd: maybe-all-stageprofile-zlib
49985all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67
AM
49986configure-opcodes: configure-libiberty
49987
49988configure-stage1-opcodes: configure-stage1-libiberty
49989configure-stage2-opcodes: configure-stage2-libiberty
66775d67 49990configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
49991configure-stage4-opcodes: configure-stage4-libiberty
49992configure-stageprofile-opcodes: configure-stageprofile-libiberty
49993configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
49994all-opcodes: maybe-all-libiberty
49995
49996all-stage1-opcodes: maybe-all-stage1-libiberty
49997all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 49998all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
49999all-stage4-opcodes: maybe-all-stage4-libiberty
50000all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50001all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23
DJ
50002configure-binutils: maybe-configure-intl
50003
50004configure-stage1-binutils: maybe-configure-stage1-intl
50005configure-stage2-binutils: maybe-configure-stage2-intl
50006configure-stage3-binutils: maybe-configure-stage3-intl
50007configure-stage4-binutils: maybe-configure-stage4-intl
50008configure-stageprofile-binutils: maybe-configure-stageprofile-intl
50009configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191
PB
50010all-binutils: maybe-all-libiberty
50011
50012all-stage1-binutils: maybe-all-stage1-libiberty
50013all-stage2-binutils: maybe-all-stage2-libiberty
50014all-stage3-binutils: maybe-all-stage3-libiberty
50015all-stage4-binutils: maybe-all-stage4-libiberty
50016all-stageprofile-binutils: maybe-all-stageprofile-libiberty
50017all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
50018all-binutils: maybe-all-opcodes
50019
50020all-stage1-binutils: maybe-all-stage1-opcodes
50021all-stage2-binutils: maybe-all-stage2-opcodes
50022all-stage3-binutils: maybe-all-stage3-opcodes
50023all-stage4-binutils: maybe-all-stage4-opcodes
50024all-stageprofile-binutils: maybe-all-stageprofile-opcodes
50025all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
50026all-binutils: maybe-all-bfd
50027
50028all-stage1-binutils: maybe-all-stage1-bfd
50029all-stage2-binutils: maybe-all-stage2-bfd
50030all-stage3-binutils: maybe-all-stage3-bfd
50031all-stage4-binutils: maybe-all-stage4-bfd
50032all-stageprofile-binutils: maybe-all-stageprofile-bfd
50033all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
50034all-binutils: maybe-all-build-flex
50035
50036all-stage1-binutils: maybe-all-build-flex
50037all-stage2-binutils: maybe-all-build-flex
50038all-stage3-binutils: maybe-all-build-flex
50039all-stage4-binutils: maybe-all-build-flex
50040all-stageprofile-binutils: maybe-all-build-flex
50041all-stagefeedback-binutils: maybe-all-build-flex
72b2455a
PB
50042all-binutils: maybe-all-build-bison
50043
50044all-stage1-binutils: maybe-all-build-bison
50045all-stage2-binutils: maybe-all-build-bison
50046all-stage3-binutils: maybe-all-build-bison
50047all-stage4-binutils: maybe-all-build-bison
50048all-stageprofile-binutils: maybe-all-build-bison
50049all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191
PB
50050all-binutils: maybe-all-intl
50051
50052all-stage1-binutils: maybe-all-stage1-intl
50053all-stage2-binutils: maybe-all-stage2-intl
50054all-stage3-binutils: maybe-all-stage3-intl
50055all-stage4-binutils: maybe-all-stage4-intl
50056all-stageprofile-binutils: maybe-all-stageprofile-intl
50057all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685
L
50058all-binutils: maybe-all-gas
50059
50060all-stage1-binutils: maybe-all-stage1-gas
50061all-stage2-binutils: maybe-all-stage2-gas
50062all-stage3-binutils: maybe-all-stage3-gas
50063all-stage4-binutils: maybe-all-stage4-gas
50064all-stageprofile-binutils: maybe-all-stageprofile-gas
50065all-stagefeedback-binutils: maybe-all-stagefeedback-gas
ae831be5 50066install-binutils: maybe-install-opcodes
9b980aa1 50067install-strip-binutils: maybe-install-strip-opcodes
cf662e21 50068install-opcodes: maybe-install-bfd
9b980aa1 50069install-strip-opcodes: maybe-install-strip-bfd
20e95c23
DJ
50070configure-gas: maybe-configure-intl
50071
50072configure-stage1-gas: maybe-configure-stage1-intl
50073configure-stage2-gas: maybe-configure-stage2-intl
50074configure-stage3-gas: maybe-configure-stage3-intl
50075configure-stage4-gas: maybe-configure-stage4-intl
50076configure-stageprofile-gas: maybe-configure-stageprofile-intl
50077configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191
PB
50078all-gas: maybe-all-libiberty
50079
50080all-stage1-gas: maybe-all-stage1-libiberty
50081all-stage2-gas: maybe-all-stage2-libiberty
50082all-stage3-gas: maybe-all-stage3-libiberty
50083all-stage4-gas: maybe-all-stage4-libiberty
50084all-stageprofile-gas: maybe-all-stageprofile-libiberty
50085all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
50086all-gas: maybe-all-opcodes
50087
50088all-stage1-gas: maybe-all-stage1-opcodes
50089all-stage2-gas: maybe-all-stage2-opcodes
50090all-stage3-gas: maybe-all-stage3-opcodes
50091all-stage4-gas: maybe-all-stage4-opcodes
50092all-stageprofile-gas: maybe-all-stageprofile-opcodes
50093all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
50094all-gas: maybe-all-bfd
50095
50096all-stage1-gas: maybe-all-stage1-bfd
50097all-stage2-gas: maybe-all-stage2-bfd
50098all-stage3-gas: maybe-all-stage3-bfd
50099all-stage4-gas: maybe-all-stage4-bfd
50100all-stageprofile-gas: maybe-all-stageprofile-bfd
50101all-stagefeedback-gas: maybe-all-stagefeedback-bfd
50102all-gas: maybe-all-intl
50103
50104all-stage1-gas: maybe-all-stage1-intl
50105all-stage2-gas: maybe-all-stage2-intl
50106all-stage3-gas: maybe-all-stage3-intl
50107all-stage4-gas: maybe-all-stage4-intl
50108all-stageprofile-gas: maybe-all-stageprofile-intl
50109all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 50110configure-gprof: maybe-configure-intl
9e6ce191
PB
50111all-gprof: maybe-all-libiberty
50112all-gprof: maybe-all-bfd
50113all-gprof: maybe-all-opcodes
50114all-gprof: maybe-all-intl
0140d685 50115all-gprof: maybe-all-gas
20e95c23
DJ
50116configure-ld: maybe-configure-intl
50117
50118configure-stage1-ld: maybe-configure-stage1-intl
50119configure-stage2-ld: maybe-configure-stage2-intl
50120configure-stage3-ld: maybe-configure-stage3-intl
50121configure-stage4-ld: maybe-configure-stage4-intl
50122configure-stageprofile-ld: maybe-configure-stageprofile-intl
50123configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191
PB
50124all-ld: maybe-all-libiberty
50125
50126all-stage1-ld: maybe-all-stage1-libiberty
50127all-stage2-ld: maybe-all-stage2-libiberty
50128all-stage3-ld: maybe-all-stage3-libiberty
50129all-stage4-ld: maybe-all-stage4-libiberty
50130all-stageprofile-ld: maybe-all-stageprofile-libiberty
50131all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
50132all-ld: maybe-all-bfd
50133
50134all-stage1-ld: maybe-all-stage1-bfd
50135all-stage2-ld: maybe-all-stage2-bfd
50136all-stage3-ld: maybe-all-stage3-bfd
50137all-stage4-ld: maybe-all-stage4-bfd
50138all-stageprofile-ld: maybe-all-stageprofile-bfd
50139all-stagefeedback-ld: maybe-all-stagefeedback-bfd
50140all-ld: maybe-all-opcodes
50141
50142all-stage1-ld: maybe-all-stage1-opcodes
50143all-stage2-ld: maybe-all-stage2-opcodes
50144all-stage3-ld: maybe-all-stage3-opcodes
50145all-stage4-ld: maybe-all-stage4-opcodes
50146all-stageprofile-ld: maybe-all-stageprofile-opcodes
50147all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
50148all-ld: maybe-all-build-bison
50149
50150all-stage1-ld: maybe-all-build-bison
50151all-stage2-ld: maybe-all-build-bison
50152all-stage3-ld: maybe-all-build-bison
50153all-stage4-ld: maybe-all-build-bison
50154all-stageprofile-ld: maybe-all-build-bison
50155all-stagefeedback-ld: maybe-all-build-bison
72b2455a
PB
50156all-ld: maybe-all-build-flex
50157
50158all-stage1-ld: maybe-all-build-flex
50159all-stage2-ld: maybe-all-build-flex
50160all-stage3-ld: maybe-all-build-flex
50161all-stage4-ld: maybe-all-build-flex
50162all-stageprofile-ld: maybe-all-build-flex
50163all-stagefeedback-ld: maybe-all-build-flex
9e6ce191
PB
50164all-ld: maybe-all-intl
50165
50166all-stage1-ld: maybe-all-stage1-intl
50167all-stage2-ld: maybe-all-stage2-intl
50168all-stage3-ld: maybe-all-stage3-intl
50169all-stage4-ld: maybe-all-stage4-intl
50170all-stageprofile-ld: maybe-all-stageprofile-intl
50171all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685
L
50172all-ld: maybe-all-gas
50173
50174all-stage1-ld: maybe-all-stage1-gas
50175all-stage2-ld: maybe-all-stage2-gas
50176all-stage3-ld: maybe-all-stage3-gas
50177all-stage4-ld: maybe-all-stage4-gas
50178all-stageprofile-ld: maybe-all-stageprofile-gas
50179all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403
YS
50180all-ld: maybe-all-binutils
50181
50182all-stage1-ld: maybe-all-stage1-binutils
50183all-stage2-ld: maybe-all-stage2-binutils
50184all-stage3-ld: maybe-all-stage3-binutils
50185all-stage4-ld: maybe-all-stage4-binutils
50186all-stageprofile-ld: maybe-all-stageprofile-binutils
50187all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 50188install-ld: maybe-install-gold
9b980aa1 50189install-strip-ld: maybe-install-strip-gold
93f9b408
ILT
50190configure-gold: maybe-configure-intl
50191
50192configure-stage1-gold: maybe-configure-stage1-intl
50193configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 50194configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
50195configure-stage4-gold: maybe-configure-stage4-intl
50196configure-stageprofile-gold: maybe-configure-stageprofile-intl
50197configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
50198all-gold: maybe-all-libiberty
50199
50200all-stage1-gold: maybe-all-stage1-libiberty
50201all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 50202all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
50203all-stage4-gold: maybe-all-stage4-libiberty
50204all-stageprofile-gold: maybe-all-stageprofile-libiberty
50205all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
50206all-gold: maybe-all-intl
50207
50208all-stage1-gold: maybe-all-stage1-intl
50209all-stage2-gold: maybe-all-stage2-intl
93f9b408 50210all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
50211all-stage4-gold: maybe-all-stage4-intl
50212all-stageprofile-gold: maybe-all-stageprofile-intl
50213all-stagefeedback-gold: maybe-all-stagefeedback-intl
50214all-gold: maybe-all-bfd
50215
50216all-stage1-gold: maybe-all-stage1-bfd
50217all-stage2-gold: maybe-all-stage2-bfd
93f9b408 50218all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
50219all-stage4-gold: maybe-all-stage4-bfd
50220all-stageprofile-gold: maybe-all-stageprofile-bfd
50221all-stagefeedback-gold: maybe-all-stagefeedback-bfd
50222all-gold: maybe-all-build-bison
50223
50224all-stage1-gold: maybe-all-build-bison
50225all-stage2-gold: maybe-all-build-bison
93f9b408 50226all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
50227all-stage4-gold: maybe-all-build-bison
50228all-stageprofile-gold: maybe-all-build-bison
50229all-stagefeedback-gold: maybe-all-build-bison
0140d685
L
50230all-gold: maybe-all-gas
50231
50232all-stage1-gold: maybe-all-stage1-gas
50233all-stage2-gold: maybe-all-stage2-gas
50234all-stage3-gold: maybe-all-stage3-gas
50235all-stage4-gold: maybe-all-stage4-gas
50236all-stageprofile-gold: maybe-all-stageprofile-gas
50237all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97
ILT
50238check-gold: maybe-all-binutils
50239
50240check-stage1-gold: maybe-all-stage1-binutils
50241check-stage2-gold: maybe-all-stage2-binutils
e5164e97 50242check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
50243check-stage4-gold: maybe-all-stage4-binutils
50244check-stageprofile-gold: maybe-all-stageprofile-binutils
50245check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca
ILT
50246check-gold: maybe-all-gas
50247
50248check-stage1-gold: maybe-all-stage1-gas
50249check-stage2-gold: maybe-all-stage2-gas
50250check-stage3-gold: maybe-all-stage3-gas
50251check-stage4-gold: maybe-all-stage4-gas
50252check-stageprofile-gold: maybe-all-stageprofile-gas
50253check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee
JJ
50254configure-opcodes: maybe-configure-intl
50255
50256configure-stage1-opcodes: maybe-configure-stage1-intl
50257configure-stage2-opcodes: maybe-configure-stage2-intl
50258configure-stage3-opcodes: maybe-configure-stage3-intl
50259configure-stage4-opcodes: maybe-configure-stage4-intl
50260configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
50261configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191
PB
50262all-opcodes: maybe-all-bfd
50263
50264all-stage1-opcodes: maybe-all-stage1-bfd
50265all-stage2-opcodes: maybe-all-stage2-bfd
50266all-stage3-opcodes: maybe-all-stage3-bfd
50267all-stage4-opcodes: maybe-all-stage4-bfd
50268all-stageprofile-opcodes: maybe-all-stageprofile-bfd
50269all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
50270all-opcodes: maybe-all-libiberty
50271
50272all-stage1-opcodes: maybe-all-stage1-libiberty
50273all-stage2-opcodes: maybe-all-stage2-libiberty
50274all-stage3-opcodes: maybe-all-stage3-libiberty
50275all-stage4-opcodes: maybe-all-stage4-libiberty
50276all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50277all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee
JJ
50278all-opcodes: maybe-all-intl
50279
50280all-stage1-opcodes: maybe-all-stage1-intl
50281all-stage2-opcodes: maybe-all-stage2-intl
50282all-stage3-opcodes: maybe-all-stage3-intl
50283all-stage4-opcodes: maybe-all-stage4-intl
50284all-stageprofile-opcodes: maybe-all-stageprofile-intl
50285all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
50286all-dejagnu: maybe-all-tcl
50287all-dejagnu: maybe-all-expect
50288all-dejagnu: maybe-all-tk
50289configure-expect: maybe-configure-tcl
50290configure-expect: maybe-configure-tk
50291all-expect: maybe-all-tcl
50292all-expect: maybe-all-tk
50293configure-itcl: maybe-configure-tcl
50294configure-itcl: maybe-configure-tk
50295all-itcl: maybe-all-tcl
50296all-itcl: maybe-all-tk
ae831be5 50297install-itcl: maybe-install-tcl
9b980aa1 50298install-strip-itcl: maybe-install-strip-tcl
b4a77b47 50299configure-tk: maybe-configure-tcl
ae831be5 50300all-tk: maybe-all-tcl
9e6ce191
PB
50301all-sid: maybe-all-libiberty
50302all-sid: maybe-all-bfd
50303all-sid: maybe-all-opcodes
50304all-sid: maybe-all-tcl
50305all-sid: maybe-all-tk
50306install-sid: maybe-install-tcl
9b980aa1 50307install-strip-sid: maybe-install-strip-tcl
9e6ce191 50308install-sid: maybe-install-tk
9b980aa1 50309install-strip-sid: maybe-install-strip-tk
20e95c23
DJ
50310configure-sim: maybe-configure-intl
50311all-sim: maybe-all-intl
9e6ce191
PB
50312all-sim: maybe-all-libiberty
50313all-sim: maybe-all-bfd
50314all-sim: maybe-all-opcodes
50315all-sim: maybe-all-readline
50316all-sim: maybe-configure-gdb
50317all-fastjar: maybe-all-zlib
72b2455a 50318all-fastjar: maybe-all-build-texinfo
9e6ce191 50319all-fastjar: maybe-all-libiberty
9e6ce191 50320all-bison: maybe-all-intl
72b2455a 50321all-bison: maybe-all-build-texinfo
72b2455a 50322all-flex: maybe-all-build-bison
9e6ce191
PB
50323all-flex: maybe-all-intl
50324all-flex: maybe-all-m4
72b2455a 50325all-flex: maybe-all-build-texinfo
9e6ce191 50326all-m4: maybe-all-intl
72b2455a 50327all-m4: maybe-all-build-texinfo
f7c83eac 50328configure-target-boehm-gc: maybe-all-target-libstdc++-v3
b4a77b47 50329configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 50330all-target-fastjar: maybe-all-target-zlib
e552509b
ILT
50331configure-target-libgo: maybe-configure-target-libffi
50332configure-target-libgo: maybe-all-target-libstdc++-v3
8e71395b 50333all-target-libgo: maybe-all-target-libbacktrace
e552509b 50334all-target-libgo: maybe-all-target-libffi
9417cd2f 50335all-target-libgo: maybe-all-target-libatomic
9e6ce191
PB
50336configure-target-libjava: maybe-configure-target-zlib
50337configure-target-libjava: maybe-configure-target-boehm-gc
9e6ce191
PB
50338configure-target-libjava: maybe-configure-target-libffi
50339all-target-libjava: maybe-all-fastjar
50340all-target-libjava: maybe-all-target-zlib
50341all-target-libjava: maybe-all-target-boehm-gc
9e6ce191 50342all-target-libjava: maybe-all-target-libffi
4f0ef2d8 50343configure-target-libobjc: maybe-configure-target-boehm-gc
4f0ef2d8 50344all-target-libobjc: maybe-all-target-boehm-gc
cff87f51 50345configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50346
50347configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50348configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50349configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50350configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50351configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50352configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50353configure-target-liboffloadmic: maybe-configure-target-libgomp
5286fdef 50354configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
50355
50356configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
50357configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
50358configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
50359configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
50360configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
50361configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135
JBG
50362configure-target-libvtv: maybe-all-target-libstdc++-v3
50363
50364configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
50365configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
50366configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
50367configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
50368configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
50369configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0
JR
50370all-target-libstdc++-v3: maybe-configure-target-libgomp
50371
50372all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50373all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50374all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50375all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50376all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50377all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50378all-target-liboffloadmic: maybe-all-target-libgomp
9417cd2f
JBG
50379install-target-libgo: maybe-install-target-libatomic
50380install-target-libgfortran: maybe-install-target-libquadmath
50381install-target-libgfortran: maybe-install-target-libgcc
3dae1673 50382install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 50383install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
50384install-target-libvtv: maybe-install-target-libstdc++-v3
50385install-target-libvtv: maybe-install-target-libgcc
522e3d71 50386install-target-libcilkrts: maybe-install-target-libstdc++-v3
50387install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
50388install-target-liboffloadmic: maybe-install-target-libstdc++-v3
50389install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
50390install-target-libjava: maybe-install-target-libgcc
50391install-target-libitm: maybe-install-target-libgcc
50392install-target-libobjc: maybe-install-target-libgcc
50393install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 50394all-target-libgloss: maybe-all-target-newlib
9e6ce191 50395all-target-winsup: maybe-all-target-libtermcap
c1102ce7
RW
50396configure-target-newlib: maybe-all-binutils
50397configure-target-newlib: maybe-all-ld
e552509b 50398configure-target-libgfortran: maybe-all-target-libquadmath
9e6ce191
PB
50399
50400
6aa8ef82
DJ
50401# Dependencies for target modules on other target modules are
50402# described by lang_env_dependencies; the defaults apply to anything
50403# not mentioned there.
50404
50405
50406@if gcc-bootstrap
e8a5fa9c
RW
50407configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
50408configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
50409configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
50410configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
50411configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
50412configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
50413configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
50414configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
50415configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
50416configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
50417configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
50418configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
50419configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
50420configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
50421configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
50422configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
50423configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
50424configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
50425configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
50426configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
50427configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
50428configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
50429configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
50430configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
50431configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
50432configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
50433configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
50434configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
50435configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
50436configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
50437@endif gcc-bootstrap
50438
50439@if gcc-no-bootstrap
50440configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 50441configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 50442configure-target-libmpx: maybe-all-target-libgcc
95e43135 50443configure-target-libvtv: maybe-all-target-libgcc
522e3d71 50444configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 50445configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 50446configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 50447configure-target-newlib: maybe-all-target-libgcc
2bf680c4 50448configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 50449configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
50450configure-target-libgfortran: maybe-all-target-libgcc
50451configure-target-libobjc: maybe-all-target-libgcc
e552509b 50452configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
50453configure-target-libtermcap: maybe-all-target-libgcc
50454configure-target-winsup: maybe-all-target-libgcc
50455configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82
DJ
50456configure-target-libffi: maybe-all-target-libgcc
50457configure-target-libjava: maybe-all-target-libgcc
50458configure-target-zlib: maybe-all-target-libgcc
50459configure-target-boehm-gc: maybe-all-target-libgcc
6aa8ef82
DJ
50460configure-target-rda: maybe-all-target-libgcc
50461configure-target-libada: maybe-all-target-libgcc
50462configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
50463configure-target-libitm: maybe-all-target-libgcc
50464configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
50465@endif gcc-no-bootstrap
50466
50467
50468configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
50469
5286fdef
L
50470configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
50471
1b6c0831
L
50472configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
50473
95e43135
JBG
50474configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
50475
e78e02e6 50476configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
50477configure-target-libcilkrts: maybe-all-target-libstdc++-v3
50478
1b6c0831
L
50479configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
50480configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
50481
6aa8ef82
DJ
50482configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
50483
50484
50485
2bf680c4
ILT
50486configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
50487
e552509b
ILT
50488configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
50489
6aa8ef82
DJ
50490configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
50491
50492configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
50493
e552509b
ILT
50494configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
50495
6aa8ef82
DJ
50496configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
50497
50498configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
50499
50500
6aa8ef82
DJ
50501configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
50502
50503configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
50504configure-target-libjava: maybe-all-target-libstdc++-v3
50505
50506configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
50507
50508configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
50509
6aa8ef82
DJ
50510configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
50511
50512configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
50513
50514configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
50515
7ec59b9e
L
50516configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
50517configure-target-libitm: maybe-all-target-libstdc++-v3
50518
50519configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
50520
6aa8ef82 50521
907be67c 50522CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 50523GDB_TK = @GDB_TK@
907be67c
DJ
50524INSTALL_GDB_TK = @INSTALL_GDB_TK@
50525configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 50526all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 50527install-gdb: $(INSTALL_GDB_TK)
907a7241 50528
a2cc058a
NN
50529# Serialization dependencies. Host configures don't work well in parallel to
50530# each other, due to contention over config.cache. Target configures and
50531# build configures are similar.
50532@serialization_dependencies@
50533
15723a45
NN
50534# --------------------------------
50535# Regenerating top level configury
50536# --------------------------------
252b5132 50537
14a2a2f1 50538# Rebuilding Makefile.in, using autogen.
43be203f 50539AUTOGEN = autogen
6b784d9f 50540$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 50541 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 50542
a0da8069 50543# Rebuilding Makefile.
43be203f
AO
50544Makefile: $(srcdir)/Makefile.in config.status
50545 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
50546
479759c8 50547config.status: configure
10ecffb9 50548 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 50549
a0da8069 50550# Rebuilding configure.
43be203f 50551AUTOCONF = autoconf
da888c87
PB
50552$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
50553 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
43be203f 50554 cd $(srcdir) && $(AUTOCONF)
252b5132 50555
3728fade
NN
50556# ------------------------------
50557# Special directives to GNU Make
50558# ------------------------------
50559
3728fade
NN
50560# Don't pass command-line variables to submakes.
50561.NOEXPORT:
50562MAKEOVERRIDES=
50563
252b5132 50564# end of Makefile.in
This page took 4.590635 seconds and 4 git commands to generate.