* Makefile.tpl: Fix typo. * Makefile.in: Regenerate.
[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; \
216 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 217 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 218 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 219 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 220 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 221 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
7ec59b9e 222 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
e28c595f
JM
223 CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \
224 CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \
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 \
1f53ca9a
AO
242 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
243 -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
244 -I$$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) \
e8a5fa9c
RW
259 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
260 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
261 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 262
50212802
NN
263# Target libraries are put under this directory:
264TARGET_SUBDIR = @target_subdir@
265# This is set by the configure script to the arguments to use when configuring
266# directories built for the target.
a7254363 267TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 268# This is the list of variables to export in the environment when
f2b2dd91 269# configuring subdirectories for the target system.
378fce5b 270BASE_TARGET_EXPORTS = \
6a9cf61e 271 $(BASE_EXPORTS) \
378fce5b 272 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 273 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
274 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
275 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 276 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 277 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd
AO
278 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
279 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
280 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 281 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
378fce5b 282 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 283 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 284 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 285 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 286 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 287 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
378fce5b 288 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 289 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 290 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 291 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 292 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
293@if gcc-bootstrap
294 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
295@endif gcc-bootstrap
911e63d0
JR
296 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
297 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
298
299RAW_CXX_TARGET_EXPORTS = \
300 $(BASE_TARGET_EXPORTS) \
301 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 302 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
303
304NORMAL_TARGET_EXPORTS = \
305 $(BASE_TARGET_EXPORTS) \
1b05fbbd 306 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 307
4b1cb4fe
DD
308# Where to find GMP
309HOST_GMPLIBS = @gmplibs@
310HOST_GMPINC = @gmpinc@
311
7ec59b9e
L
312# Where to find ISL
313HOST_ISLINC = @islinc@
e28c595f
JM
314
315# Where to find CLOOG
316HOST_CLOOGLIBS = @clooglibs@
317HOST_CLOOGINC = @clooginc@
318
700d40ca
ILT
319# Where to find libelf
320HOST_LIBELFLIBS = @libelflibs@
321HOST_LIBELFINC = @libelfinc@
322
ffdd6afc
ILT
323EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@
324
50212802
NN
325# ----------------------------------------------
326# Programs producing files for the BUILD machine
327# ----------------------------------------------
328
f6c1938b 329SHELL = @SHELL@
50212802
NN
330
331# pwd command to use. Allow user to override default by setting PWDCMD in
332# the environment to account for automounters. The make variable must not
333# be called PWDCMD, otherwise the value set here is passed to make
334# subprocesses and overrides the setting from the user's environment.
b40e3958
L
335# Don't use PWD since it is a common shell environment variable and we
336# don't want to corrupt it.
337PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
338
339# compilers to use to create programs which must be run in the build
340# environment.
b5714970
PB
341AR_FOR_BUILD = @AR_FOR_BUILD@
342AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 343CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 344CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
345CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
346CXX_FOR_BUILD = @CXX_FOR_BUILD@
347DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
348GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
349GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 350GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
351LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
352LD_FOR_BUILD = @LD_FOR_BUILD@
353NM_FOR_BUILD = @NM_FOR_BUILD@
354RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
355WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
356WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
357
358# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
359# here so that they can be overridden by Makefile fragments.
50212802
NN
360BUILD_PREFIX = @BUILD_PREFIX@
361BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 362
0df3d27f
PB
363# Flags to pass to stage2 and later makes. They are defined
364# here so that they can be overridden by Makefile fragments.
365BOOT_CFLAGS= -g -O2
f6d183c0 366BOOT_LDFLAGS=
d7b9dae9 367BOOT_ADAFLAGS= -gnatpg
0df3d27f 368
8e957354
PB
369AWK = @AWK@
370SED = @SED@
be01d343
PB
371BISON = @BISON@
372YACC = @YACC@
373FLEX = @FLEX@
374LEX = @LEX@
375M4 = @M4@
376MAKEINFO = @MAKEINFO@
377EXPECT = @EXPECT@
378RUNTEST = @RUNTEST@
252b5132
RH
379
380# This just becomes part of the MAKEINFO definition passed down to
381# sub-makes. It lets flags be given on the command line while still
382# using the makeinfo from the object tree.
62a3fc85
DD
383# (Default to avoid splitting info files by setting the threshold high.)
384MAKEINFOFLAGS = --split-size=5000000
252b5132 385
50212802
NN
386# ---------------------------------------------
387# Programs producing files for the HOST machine
388# ---------------------------------------------
252b5132 389
50212802 390AS = @AS@
50212802
NN
391AR = @AR@
392AR_FLAGS = rc
50212802 393CC = @CC@
50212802 394CXX = @CXX@
50212802 395DLLTOOL = @DLLTOOL@
50212802 396LD = @LD@
be01d343
PB
397LIPO = @LIPO@
398NM = @NM@
80911fe1 399OBJDUMP = @OBJDUMP@
50212802 400RANLIB = @RANLIB@
b121d7d4 401READELF = @READELF@
be01d343 402STRIP = @STRIP@
50212802 403WINDRES = @WINDRES@
0c24b341 404WINDMC = @WINDMC@
252b5132 405
a0323144
PB
406GNATBIND = @GNATBIND@
407GNATMAKE = @GNATMAKE@
408
be01d343 409CFLAGS = @CFLAGS@
b2edfdd2 410LDFLAGS = @LDFLAGS@
be01d343
PB
411LIBCFLAGS = $(CFLAGS)
412CXXFLAGS = @CXXFLAGS@
413LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e552509b 414GOCFLAGS = $(CFLAGS)
50212802 415
1b05fbbd
AO
416TFLAGS =
417
418# Defaults for all stages; some are overridden below.
419
420STAGE_CFLAGS = $(BOOT_CFLAGS)
421STAGE_TFLAGS = $(TFLAGS)
422STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
423
424
425# Defaults for stage 1; some are overridden below.
426STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
427STAGE1_CXXFLAGS = $(CXXFLAGS)
428@if target-libstdc++-v3-bootstrap
429# Override the above if we're bootstrapping C++.
430STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
431@endif target-libstdc++-v3-bootstrap
1b05fbbd 432STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 433STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
434
435# Defaults for stage 2; some are overridden below.
436STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
437STAGE2_CXXFLAGS = $(CXXFLAGS)
438@if target-libstdc++-v3-bootstrap
439# Override the above if we're bootstrapping C++.
440STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
441@endif target-libstdc++-v3-bootstrap
1b05fbbd 442STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 443STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
444
445# Defaults for stage 3; some are overridden below.
446STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
447STAGE3_CXXFLAGS = $(CXXFLAGS)
448@if target-libstdc++-v3-bootstrap
449# Override the above if we're bootstrapping C++.
450STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
451@endif target-libstdc++-v3-bootstrap
1b05fbbd 452STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 453STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
454
455# Defaults for stage 4; some are overridden below.
456STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
457STAGE4_CXXFLAGS = $(CXXFLAGS)
458@if target-libstdc++-v3-bootstrap
459# Override the above if we're bootstrapping C++.
460STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
461@endif target-libstdc++-v3-bootstrap
1b05fbbd 462STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 463STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
464
465# Defaults for stage profile; some are overridden below.
466STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
467STAGEprofile_CXXFLAGS = $(CXXFLAGS)
468@if target-libstdc++-v3-bootstrap
469# Override the above if we're bootstrapping C++.
470STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
471@endif target-libstdc++-v3-bootstrap
1b05fbbd 472STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 473STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
474
475# Defaults for stage feedback; some are overridden below.
476STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
477STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
478@if target-libstdc++-v3-bootstrap
479# Override the above if we're bootstrapping C++.
480STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
481@endif target-libstdc++-v3-bootstrap
1b05fbbd 482STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 483STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
484
485
8a0d8a5c
PB
486# Only build the C compiler for stage1, because that is the only one that
487# we can guarantee will build with the native compiler, and also it is the
488# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
489# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
490# overrideable (for a bootstrap build stage1 also builds gcc.info).
491
1b05fbbd 492STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
493STAGE1_CHECKING = @stage1_checking@
494STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
495# * We force-disable intermodule optimizations, even if
496# --enable-intermodule was passed, since the installed compiler
497# probably can't handle them. Luckily, autoconf always respects
498# the last argument when conflicting --enable arguments are passed.
499# * Likewise, we force-disable coverage flags, since the installed
500# compiler probably has never heard of them.
880b18d1 501# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 502STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 503 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
504 --disable-build-format-warnings
8a0d8a5c 505
1b05fbbd
AO
506STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
507STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 508
1b05fbbd
AO
509STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
510STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 511
8520c408
AO
512do-compare = @do_compare@
513do-compare3 = $(do-compare)
8520c408 514
50212802
NN
515# -----------------------------------------------
516# Programs producing files for the TARGET machine
517# -----------------------------------------------
0da52010 518
50212802 519AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 520AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 521CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 522
50212802
NN
523# If GCC_FOR_TARGET is not overriden on the command line, then this
524# variable is passed down to the gcc Makefile, where it is used to
525# build libgcc2.a. We define it here so that it can itself be
526# overridden on the command line.
1b05fbbd
AO
527GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
528CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
529RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
530GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
531GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 532GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 533DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 534LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 535
7e0f7140 536LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 537NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 538OBJDUMP_FOR_TARGET=@OBJDUMP_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.
522e3d71 580TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libsanitizer)$(TARGET_LIB_PATH_libvtv)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(TARGET_LIB_PATH_libitm)$(TARGET_LIB_PATH_libatomic)$(HOST_LIB_PATH_gcc)$(HOST_LIB_PATH_libcilkrts)
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
95e43135
JBG
590@if target-libvtv
591TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
592@endif target-libvtv
593
064d0a7c
PB
594@if target-libssp
595TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
596@endif target-libssp
597
b3ded179
PB
598@if target-libgomp
599TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
600@endif target-libgomp
601
522e3d71 602@if target-libcilkrts
603TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
604@endif target-libcilkrts
605
7ec59b9e
L
606@if target-libitm
607TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
608@endif target-libitm
609
610@if target-libatomic
611TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
612@endif target-libatomic
613
e90269c8
PB
614
615
616# This is the list of directories that may be needed in RPATH_ENVVAR
617# so that programs built for the host machine work.
df6795ce 618HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_cloog)$(HOST_LIB_PATH_libelf)
e90269c8
PB
619
620# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
621@if gcc
3bbd2f8f 622HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
623@endif gcc
624
625
4b900473
PB
626@if gmp
627HOST_LIB_PATH_gmp = \
628 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
629@endif gmp
630
631@if mpfr
632HOST_LIB_PATH_mpfr = \
633 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
634@endif mpfr
635
e8a5fa9c
RW
636@if mpc
637HOST_LIB_PATH_mpc = \
638 $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
639@endif mpc
640
7ec59b9e
L
641@if isl
642HOST_LIB_PATH_isl = \
643 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
644@endif isl
e28c595f
JM
645
646@if cloog
647HOST_LIB_PATH_cloog = \
648 $$r/$(HOST_SUBDIR)/cloog/.libs:$$r/$(HOST_SUBDIR)/prev-cloog/.libs:
649@endif cloog
650
1f53ca9a
AO
651@if libelf
652HOST_LIB_PATH_libelf = \
653 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
654@endif libelf
655
e90269c8 656
87cda2cf
AO
657CXX_FOR_TARGET_FLAG_TO_PASS = \
658 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
659@if target-libstdc++-v3
660# CXX_FOR_TARGET is tricky to get right for target libs that require a
661# functional C++ compiler. When we recurse, if we expand
662# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
663# libstdc++ include flags from the script. Instead, we get an
664# -funconfigured-* word, so that we'll get errors if this invalid C++
665# command line is used for anything, but also so that we can use the
666# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
667# don't pass it on, sub-make will use the default definition, that
668# re-expands it at the time of use, so we'll get it right when we need
669# it. One potential exception is the expansion of CXX_FOR_TARGET
670# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
671# really work, for C++ host programs can't depend on the current-stage
672# C++ target library.
673CXX_FOR_TARGET_FLAG_TO_PASS = \
674 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
675@endif target-libstdc++-v3
676
252b5132 677# Flags to pass down to all sub-makes.
252b5132 678BASE_FLAGS_TO_PASS = \
497f816e 679 "DESTDIR=$(DESTDIR)" \
252b5132 680 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 681 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
682 "bindir=$(bindir)" \
683 "datadir=$(datadir)" \
684 "exec_prefix=$(exec_prefix)" \
685 "includedir=$(includedir)" \
108a6f8e
CD
686 "datarootdir=$(datarootdir)" \
687 "docdir=$(docdir)" \
252b5132 688 "infodir=$(infodir)" \
a3ca38d2 689 "pdfdir=$(pdfdir)" \
108a6f8e 690 "htmldir=$(htmldir)" \
252b5132
RH
691 "libdir=$(libdir)" \
692 "libexecdir=$(libexecdir)" \
693 "lispdir=$(lispdir)" \
694 "localstatedir=$(localstatedir)" \
695 "mandir=$(mandir)" \
696 "oldincludedir=$(oldincludedir)" \
697 "prefix=$(prefix)" \
698 "sbindir=$(sbindir)" \
699 "sharedstatedir=$(sharedstatedir)" \
700 "sysconfdir=$(sysconfdir)" \
701 "tooldir=$(tooldir)" \
ba73c63f 702 "build_tooldir=$(build_tooldir)" \
12f0bd74 703 "target_alias=$(target_alias)" \
8e957354 704 "AWK=$(AWK)" \
12f0bd74
NN
705 "BISON=$(BISON)" \
706 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 707 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
708 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
709 "EXPECT=$(EXPECT)" \
6a9cf61e 710 "FLEX=$(FLEX)" \
12f0bd74
NN
711 "INSTALL=$(INSTALL)" \
712 "INSTALL_DATA=$(INSTALL_DATA)" \
713 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
714 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 715 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
716 "LEX=$(LEX)" \
717 "M4=$(M4)" \
718 "MAKE=$(MAKE)" \
719 "RUNTEST=$(RUNTEST)" \
720 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 721 "SED=$(SED)" \
12f0bd74
NN
722 "SHELL=$(SHELL)" \
723 "YACC=$(YACC)" \
c52c6897 724 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 725 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 726 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 727 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
728 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
729 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
730 "CFLAGS=$(CFLAGS)" \
731 "CXXFLAGS=$(CXXFLAGS)" \
732 "LDFLAGS=$(LDFLAGS)" \
733 "LIBCFLAGS=$(LIBCFLAGS)" \
734 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 735 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 736 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
737 "GNATBIND=$(GNATBIND)" \
738 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
739 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
740 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
741 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
742 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 743 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
744 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
745 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 746 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
12f0bd74 747 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
4b1cb4fe 748 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
749 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
750 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 751 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 752 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 753 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
754 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
755 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
756 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 757 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
12f0bd74 758 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 759 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 760 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 761 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 762 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 763 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 764 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 765 "LEAN=$(LEAN)" \
1b05fbbd 766 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 767 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
768 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
769 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 770 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
771 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
772 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 773 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
774 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
775 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 776 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
777 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
778 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 779 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
780 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
781 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 782 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 783 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 784 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 785 "TFLAGS=$(TFLAGS)" \
10ecffb9 786 "CONFIG_SHELL=$(SHELL)" \
12f0bd74 787 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
252b5132 788
55db4b87
PB
789# We leave this in just in case, but it is not needed anymore.
790RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 791
252b5132
RH
792# Flags to pass down to most sub-makes, in which we're building with
793# the host environment.
252b5132
RH
794EXTRA_HOST_FLAGS = \
795 'AR=$(AR)' \
796 'AS=$(AS)' \
797 'CC=$(CC)' \
798 'CXX=$(CXX)' \
799 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd
AO
800 'GCJ=$(GCJ)' \
801 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 802 'GOC=$(GOC)' \
252b5132 803 'LD=$(LD)' \
be01d343 804 'LIPO=$(LIPO)' \
252b5132 805 'NM=$(NM)' \
80911fe1 806 'OBJDUMP=$(OBJDUMP)' \
b9459e83 807 'RANLIB=$(RANLIB)' \
b121d7d4 808 'READELF=$(READELF)' \
be01d343 809 'STRIP=$(STRIP)' \
0c24b341
NC
810 'WINDRES=$(WINDRES)' \
811 'WINDMC=$(WINDMC)'
252b5132
RH
812
813FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
814
b3676d82
EB
815# Flags to pass to stage1 or when not bootstrapping.
816
817STAGE1_FLAGS_TO_PASS = \
818 LDFLAGS="$${LDFLAGS}" \
819 HOST_LIBS="$${HOST_LIBS}"
820
8a0d8a5c
PB
821# Flags to pass to stage2 and later makes.
822
823POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
824 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
825 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
826 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
827 LDFLAGS="$${LDFLAGS}" \
828 HOST_LIBS="$${HOST_LIBS}" \
8a0d8a5c
PB
829 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
830
252b5132 831# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
832# The double $ decreases the length of the command line; those variables
833# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
834# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
835# so we expand them here.
252b5132
RH
836EXTRA_TARGET_FLAGS = \
837 'AR=$$(AR_FOR_TARGET)' \
0aed8855 838 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
839 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
840 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
841 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
842 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 843 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd
AO
844 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
845 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 846 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 847 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 848 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 849 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
850 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
851 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 852 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 853 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
252b5132 854 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 855 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 856 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
857 'WINDMC=$$(WINDMC_FOR_TARGET)' \
858 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
859 "TFLAGS=$$TFLAGS"
252b5132
RH
860
861TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
862
863# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
864# unfortunately needs the native compiler and the target ar and
865# ranlib.
866# If any variables are added here, they must be added to do-*, below.
2a4cbe27 867# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
868# cross-building scheme.
869EXTRA_GCC_FLAGS = \
252b5132 870 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 871 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 872 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 873
f0b24077 874GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 875
1b05fbbd 876@if gcc
96655cc4 877BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
878ifneq ($(BUILD_CONFIG),)
879include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
880endif
881@endif gcc
882
dd12c3a8 883.PHONY: configure-host
b813574b 884configure-host: \
dd12c3a8
NN
885 maybe-configure-bfd \
886 maybe-configure-opcodes \
887 maybe-configure-binutils \
888 maybe-configure-bison \
f9806fa5 889 maybe-configure-cgen \
dd12c3a8 890 maybe-configure-dejagnu \
dd12c3a8
NN
891 maybe-configure-etc \
892 maybe-configure-fastjar \
d3ed111c 893 maybe-configure-fixincludes \
dd12c3a8
NN
894 maybe-configure-flex \
895 maybe-configure-gas \
b813574b 896 maybe-configure-gcc \
4b900473
PB
897 maybe-configure-gmp \
898 maybe-configure-mpfr \
e8a5fa9c 899 maybe-configure-mpc \
7ec59b9e 900 maybe-configure-isl \
e28c595f 901 maybe-configure-cloog \
1f53ca9a 902 maybe-configure-libelf \
93f9b408 903 maybe-configure-gold \
dd12c3a8 904 maybe-configure-gprof \
dd12c3a8
NN
905 maybe-configure-intl \
906 maybe-configure-tcl \
907 maybe-configure-itcl \
908 maybe-configure-ld \
2bf680c4 909 maybe-configure-libbacktrace \
04cf1b77 910 maybe-configure-libcpp \
be01d343 911 maybe-configure-libdecnumber \
dd12c3a8
NN
912 maybe-configure-libgui \
913 maybe-configure-libiberty \
dc448a7b 914 maybe-configure-libiconv \
dd12c3a8 915 maybe-configure-m4 \
dd12c3a8 916 maybe-configure-readline \
dd12c3a8
NN
917 maybe-configure-sid \
918 maybe-configure-sim \
dd12c3a8 919 maybe-configure-texinfo \
dd12c3a8
NN
920 maybe-configure-zlib \
921 maybe-configure-gdb \
922 maybe-configure-expect \
923 maybe-configure-guile \
924 maybe-configure-tk \
dd12c3a8 925 maybe-configure-libtermcap \
b00612cc 926 maybe-configure-utils \
700d40ca
ILT
927 maybe-configure-gnattools \
928 maybe-configure-lto-plugin
dd12c3a8
NN
929.PHONY: configure-target
930configure-target: \
931 maybe-configure-target-libstdc++-v3 \
5286fdef 932 maybe-configure-target-libsanitizer \
95e43135 933 maybe-configure-target-libvtv \
064d0a7c 934 maybe-configure-target-libssp \
dd12c3a8 935 maybe-configure-target-newlib \
6aa8ef82 936 maybe-configure-target-libgcc \
2bf680c4 937 maybe-configure-target-libbacktrace \
e552509b 938 maybe-configure-target-libquadmath \
4b1cb4fe 939 maybe-configure-target-libgfortran \
dd12c3a8 940 maybe-configure-target-libobjc \
e552509b 941 maybe-configure-target-libgo \
dd12c3a8
NN
942 maybe-configure-target-libtermcap \
943 maybe-configure-target-winsup \
944 maybe-configure-target-libgloss \
dd12c3a8
NN
945 maybe-configure-target-libffi \
946 maybe-configure-target-libjava \
947 maybe-configure-target-zlib \
948 maybe-configure-target-boehm-gc \
a2592b1b 949 maybe-configure-target-rda \
b3ded179 950 maybe-configure-target-libada \
522e3d71 951 maybe-configure-target-libcilkrts \
7ec59b9e
L
952 maybe-configure-target-libgomp \
953 maybe-configure-target-libitm \
954 maybe-configure-target-libatomic
252b5132 955
319cab08
PB
956# The target built for a native non-bootstrap build.
957.PHONY: all
f70224b5
PB
958all:
959@if gcc-bootstrap
be01d343 960 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
961 @r=`${PWD_COMMAND}`; export r; \
962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 963 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 964@endif gcc-bootstrap
0aed8855 965 @: $(MAKE); $(unstage)
f70224b5
PB
966 @r=`${PWD_COMMAND}`; export r; \
967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 968@if gcc-bootstrap
b5233201 969 if [ -f stage_last ]; then \
07fc31c9 970 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 971 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 972 else \
1b05fbbd 973@endif gcc-bootstrap
b5233201
AO
974 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
975@if gcc-bootstrap
976 ; \
04ec0acb 977 fi \
b5233201 978@endif gcc-bootstrap
04ec0acb 979 && :
6a9cf61e
PB
980
981.PHONY: all-build
c52c6897
PB
982
983all-build: maybe-all-build-libiberty
984all-build: maybe-all-build-bison
c52c6897
PB
985all-build: maybe-all-build-flex
986all-build: maybe-all-build-m4
987all-build: maybe-all-build-texinfo
988all-build: maybe-all-build-fixincludes
989
dd12c3a8 990.PHONY: all-host
c52c6897 991
c52c6897
PB
992@if bfd-no-bootstrap
993all-host: maybe-all-bfd
994@endif bfd-no-bootstrap
995@if opcodes-no-bootstrap
996all-host: maybe-all-opcodes
997@endif opcodes-no-bootstrap
998@if binutils-no-bootstrap
999all-host: maybe-all-binutils
1000@endif binutils-no-bootstrap
1001all-host: maybe-all-bison
f9806fa5 1002all-host: maybe-all-cgen
c52c6897 1003all-host: maybe-all-dejagnu
c52c6897
PB
1004all-host: maybe-all-etc
1005all-host: maybe-all-fastjar
c52c6897
PB
1006all-host: maybe-all-fixincludes
1007all-host: maybe-all-flex
1008@if gas-no-bootstrap
1009all-host: maybe-all-gas
1010@endif gas-no-bootstrap
1011@if gcc-no-bootstrap
1012all-host: maybe-all-gcc
1013@endif gcc-no-bootstrap
4b900473
PB
1014@if gmp-no-bootstrap
1015all-host: maybe-all-gmp
1016@endif gmp-no-bootstrap
1017@if mpfr-no-bootstrap
1018all-host: maybe-all-mpfr
1019@endif mpfr-no-bootstrap
e8a5fa9c
RW
1020@if mpc-no-bootstrap
1021all-host: maybe-all-mpc
1022@endif mpc-no-bootstrap
7ec59b9e
L
1023@if isl-no-bootstrap
1024all-host: maybe-all-isl
1025@endif isl-no-bootstrap
e28c595f
JM
1026@if cloog-no-bootstrap
1027all-host: maybe-all-cloog
1028@endif cloog-no-bootstrap
1f53ca9a
AO
1029@if libelf-no-bootstrap
1030all-host: maybe-all-libelf
1031@endif libelf-no-bootstrap
93f9b408
ILT
1032@if gold-no-bootstrap
1033all-host: maybe-all-gold
1034@endif gold-no-bootstrap
c52c6897 1035all-host: maybe-all-gprof
c52c6897
PB
1036@if intl-no-bootstrap
1037all-host: maybe-all-intl
1038@endif intl-no-bootstrap
1039all-host: maybe-all-tcl
1040all-host: maybe-all-itcl
1041@if ld-no-bootstrap
1042all-host: maybe-all-ld
1043@endif ld-no-bootstrap
2bf680c4
ILT
1044@if libbacktrace-no-bootstrap
1045all-host: maybe-all-libbacktrace
1046@endif libbacktrace-no-bootstrap
c52c6897
PB
1047@if libcpp-no-bootstrap
1048all-host: maybe-all-libcpp
1049@endif libcpp-no-bootstrap
1050@if libdecnumber-no-bootstrap
1051all-host: maybe-all-libdecnumber
1052@endif libdecnumber-no-bootstrap
1053all-host: maybe-all-libgui
1054@if libiberty-no-bootstrap
1055all-host: maybe-all-libiberty
1056@endif libiberty-no-bootstrap
dc448a7b 1057all-host: maybe-all-libiconv
c52c6897 1058all-host: maybe-all-m4
c52c6897 1059all-host: maybe-all-readline
c52c6897
PB
1060all-host: maybe-all-sid
1061all-host: maybe-all-sim
c52c6897 1062all-host: maybe-all-texinfo
c52c6897
PB
1063@if zlib-no-bootstrap
1064all-host: maybe-all-zlib
1065@endif zlib-no-bootstrap
1066all-host: maybe-all-gdb
1067all-host: maybe-all-expect
1068all-host: maybe-all-guile
1069all-host: maybe-all-tk
1070all-host: maybe-all-libtermcap
1071all-host: maybe-all-utils
1072all-host: maybe-all-gnattools
700d40ca
ILT
1073@if lto-plugin-no-bootstrap
1074all-host: maybe-all-lto-plugin
1075@endif lto-plugin-no-bootstrap
c52c6897 1076
dd12c3a8 1077.PHONY: all-target
c52c6897 1078
e8a5fa9c 1079@if target-libstdc++-v3-no-bootstrap
c52c6897 1080all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1081@endif target-libstdc++-v3-no-bootstrap
5eb08693 1082@if target-libsanitizer-no-bootstrap
5286fdef 1083all-target: maybe-all-target-libsanitizer
5eb08693 1084@endif target-libsanitizer-no-bootstrap
95e43135
JBG
1085@if target-libvtv-no-bootstrap
1086all-target: maybe-all-target-libvtv
1087@endif target-libvtv-no-bootstrap
c52c6897 1088all-target: maybe-all-target-libssp
c52c6897 1089all-target: maybe-all-target-newlib
f86e35b8 1090@if target-libgcc-no-bootstrap
6aa8ef82 1091all-target: maybe-all-target-libgcc
f86e35b8 1092@endif target-libgcc-no-bootstrap
2bf680c4 1093all-target: maybe-all-target-libbacktrace
e552509b 1094all-target: maybe-all-target-libquadmath
c52c6897
PB
1095all-target: maybe-all-target-libgfortran
1096all-target: maybe-all-target-libobjc
e552509b 1097all-target: maybe-all-target-libgo
c52c6897
PB
1098all-target: maybe-all-target-libtermcap
1099all-target: maybe-all-target-winsup
1100all-target: maybe-all-target-libgloss
c52c6897
PB
1101all-target: maybe-all-target-libffi
1102all-target: maybe-all-target-libjava
1103all-target: maybe-all-target-zlib
1104all-target: maybe-all-target-boehm-gc
c52c6897
PB
1105all-target: maybe-all-target-rda
1106all-target: maybe-all-target-libada
911e63d0 1107@if target-libgomp-no-bootstrap
c52c6897 1108all-target: maybe-all-target-libgomp
911e63d0 1109@endif target-libgomp-no-bootstrap
522e3d71 1110all-target: maybe-all-target-libcilkrts
7ec59b9e
L
1111all-target: maybe-all-target-libitm
1112all-target: maybe-all-target-libatomic
252b5132
RH
1113
1114# Do a target for all the subdirectories. A ``make do-X'' will do a
1115# ``make X'' in all subdirectories (because, in general, there is a
1116# dependency (below) of X upon do-X, a ``make X'' will also do this,
1117# but it may do additional work as well).
e393202e 1118
2a4cbe27 1119.PHONY: do-info
f70224b5 1120do-info:
0aed8855 1121 @: $(MAKE); $(unstage)
e360f423
PB
1122 @r=`${PWD_COMMAND}`; export r; \
1123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1124 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1125 info-target
f70224b5 1126
e393202e 1127
2a4cbe27 1128.PHONY: info-host
c52c6897 1129
c52c6897
PB
1130info-host: maybe-info-bfd
1131info-host: maybe-info-opcodes
1132info-host: maybe-info-binutils
1133info-host: maybe-info-bison
f9806fa5 1134info-host: maybe-info-cgen
c52c6897 1135info-host: maybe-info-dejagnu
c52c6897
PB
1136info-host: maybe-info-etc
1137info-host: maybe-info-fastjar
c52c6897
PB
1138info-host: maybe-info-fixincludes
1139info-host: maybe-info-flex
1140info-host: maybe-info-gas
1141info-host: maybe-info-gcc
4b900473
PB
1142info-host: maybe-info-gmp
1143info-host: maybe-info-mpfr
e8a5fa9c 1144info-host: maybe-info-mpc
7ec59b9e 1145info-host: maybe-info-isl
e28c595f 1146info-host: maybe-info-cloog
1f53ca9a 1147info-host: maybe-info-libelf
93f9b408 1148info-host: maybe-info-gold
c52c6897 1149info-host: maybe-info-gprof
c52c6897
PB
1150info-host: maybe-info-intl
1151info-host: maybe-info-tcl
1152info-host: maybe-info-itcl
1153info-host: maybe-info-ld
2bf680c4 1154info-host: maybe-info-libbacktrace
c52c6897
PB
1155info-host: maybe-info-libcpp
1156info-host: maybe-info-libdecnumber
1157info-host: maybe-info-libgui
1158info-host: maybe-info-libiberty
dc448a7b 1159info-host: maybe-info-libiconv
c52c6897 1160info-host: maybe-info-m4
c52c6897 1161info-host: maybe-info-readline
c52c6897
PB
1162info-host: maybe-info-sid
1163info-host: maybe-info-sim
c52c6897 1164info-host: maybe-info-texinfo
c52c6897
PB
1165info-host: maybe-info-zlib
1166info-host: maybe-info-gdb
1167info-host: maybe-info-expect
1168info-host: maybe-info-guile
1169info-host: maybe-info-tk
1170info-host: maybe-info-libtermcap
1171info-host: maybe-info-utils
1172info-host: maybe-info-gnattools
700d40ca 1173info-host: maybe-info-lto-plugin
252b5132 1174
2a4cbe27 1175.PHONY: info-target
c52c6897
PB
1176
1177info-target: maybe-info-target-libstdc++-v3
5286fdef 1178info-target: maybe-info-target-libsanitizer
95e43135 1179info-target: maybe-info-target-libvtv
c52c6897 1180info-target: maybe-info-target-libssp
c52c6897 1181info-target: maybe-info-target-newlib
6aa8ef82 1182info-target: maybe-info-target-libgcc
2bf680c4 1183info-target: maybe-info-target-libbacktrace
e552509b 1184info-target: maybe-info-target-libquadmath
c52c6897
PB
1185info-target: maybe-info-target-libgfortran
1186info-target: maybe-info-target-libobjc
e552509b 1187info-target: maybe-info-target-libgo
c52c6897
PB
1188info-target: maybe-info-target-libtermcap
1189info-target: maybe-info-target-winsup
1190info-target: maybe-info-target-libgloss
c52c6897
PB
1191info-target: maybe-info-target-libffi
1192info-target: maybe-info-target-libjava
1193info-target: maybe-info-target-zlib
1194info-target: maybe-info-target-boehm-gc
c52c6897
PB
1195info-target: maybe-info-target-rda
1196info-target: maybe-info-target-libada
1197info-target: maybe-info-target-libgomp
7ec59b9e
L
1198info-target: maybe-info-target-libitm
1199info-target: maybe-info-target-libatomic
252b5132 1200
4fa63067 1201.PHONY: do-dvi
f70224b5 1202do-dvi:
0aed8855 1203 @: $(MAKE); $(unstage)
e360f423
PB
1204 @r=`${PWD_COMMAND}`; export r; \
1205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1206 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1207 dvi-target
f70224b5 1208
2a4cbe27 1209
4fa63067 1210.PHONY: dvi-host
c52c6897 1211
c52c6897
PB
1212dvi-host: maybe-dvi-bfd
1213dvi-host: maybe-dvi-opcodes
1214dvi-host: maybe-dvi-binutils
1215dvi-host: maybe-dvi-bison
f9806fa5 1216dvi-host: maybe-dvi-cgen
c52c6897 1217dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1218dvi-host: maybe-dvi-etc
1219dvi-host: maybe-dvi-fastjar
c52c6897
PB
1220dvi-host: maybe-dvi-fixincludes
1221dvi-host: maybe-dvi-flex
1222dvi-host: maybe-dvi-gas
1223dvi-host: maybe-dvi-gcc
4b900473
PB
1224dvi-host: maybe-dvi-gmp
1225dvi-host: maybe-dvi-mpfr
e8a5fa9c 1226dvi-host: maybe-dvi-mpc
7ec59b9e 1227dvi-host: maybe-dvi-isl
e28c595f 1228dvi-host: maybe-dvi-cloog
1f53ca9a 1229dvi-host: maybe-dvi-libelf
93f9b408 1230dvi-host: maybe-dvi-gold
c52c6897 1231dvi-host: maybe-dvi-gprof
c52c6897
PB
1232dvi-host: maybe-dvi-intl
1233dvi-host: maybe-dvi-tcl
1234dvi-host: maybe-dvi-itcl
1235dvi-host: maybe-dvi-ld
2bf680c4 1236dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1237dvi-host: maybe-dvi-libcpp
1238dvi-host: maybe-dvi-libdecnumber
1239dvi-host: maybe-dvi-libgui
1240dvi-host: maybe-dvi-libiberty
dc448a7b 1241dvi-host: maybe-dvi-libiconv
c52c6897 1242dvi-host: maybe-dvi-m4
c52c6897 1243dvi-host: maybe-dvi-readline
c52c6897
PB
1244dvi-host: maybe-dvi-sid
1245dvi-host: maybe-dvi-sim
c52c6897 1246dvi-host: maybe-dvi-texinfo
c52c6897
PB
1247dvi-host: maybe-dvi-zlib
1248dvi-host: maybe-dvi-gdb
1249dvi-host: maybe-dvi-expect
1250dvi-host: maybe-dvi-guile
1251dvi-host: maybe-dvi-tk
1252dvi-host: maybe-dvi-libtermcap
1253dvi-host: maybe-dvi-utils
1254dvi-host: maybe-dvi-gnattools
700d40ca 1255dvi-host: maybe-dvi-lto-plugin
2a4cbe27 1256
4fa63067 1257.PHONY: dvi-target
c52c6897
PB
1258
1259dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1260dvi-target: maybe-dvi-target-libsanitizer
95e43135 1261dvi-target: maybe-dvi-target-libvtv
c52c6897 1262dvi-target: maybe-dvi-target-libssp
c52c6897 1263dvi-target: maybe-dvi-target-newlib
6aa8ef82 1264dvi-target: maybe-dvi-target-libgcc
2bf680c4 1265dvi-target: maybe-dvi-target-libbacktrace
e552509b 1266dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1267dvi-target: maybe-dvi-target-libgfortran
1268dvi-target: maybe-dvi-target-libobjc
e552509b 1269dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1270dvi-target: maybe-dvi-target-libtermcap
1271dvi-target: maybe-dvi-target-winsup
1272dvi-target: maybe-dvi-target-libgloss
c52c6897
PB
1273dvi-target: maybe-dvi-target-libffi
1274dvi-target: maybe-dvi-target-libjava
1275dvi-target: maybe-dvi-target-zlib
1276dvi-target: maybe-dvi-target-boehm-gc
c52c6897
PB
1277dvi-target: maybe-dvi-target-rda
1278dvi-target: maybe-dvi-target-libada
1279dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1280dvi-target: maybe-dvi-target-libitm
1281dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1282
56a8fe78
DD
1283.PHONY: do-pdf
1284do-pdf:
1285 @: $(MAKE); $(unstage)
1286 @r=`${PWD_COMMAND}`; export r; \
1287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1288 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1289 pdf-target
1290
1291
1292.PHONY: pdf-host
1293
56a8fe78
DD
1294pdf-host: maybe-pdf-bfd
1295pdf-host: maybe-pdf-opcodes
1296pdf-host: maybe-pdf-binutils
1297pdf-host: maybe-pdf-bison
f9806fa5 1298pdf-host: maybe-pdf-cgen
56a8fe78 1299pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1300pdf-host: maybe-pdf-etc
1301pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1302pdf-host: maybe-pdf-fixincludes
1303pdf-host: maybe-pdf-flex
1304pdf-host: maybe-pdf-gas
1305pdf-host: maybe-pdf-gcc
4b900473
PB
1306pdf-host: maybe-pdf-gmp
1307pdf-host: maybe-pdf-mpfr
e8a5fa9c 1308pdf-host: maybe-pdf-mpc
7ec59b9e 1309pdf-host: maybe-pdf-isl
e28c595f 1310pdf-host: maybe-pdf-cloog
1f53ca9a 1311pdf-host: maybe-pdf-libelf
93f9b408 1312pdf-host: maybe-pdf-gold
56a8fe78 1313pdf-host: maybe-pdf-gprof
56a8fe78
DD
1314pdf-host: maybe-pdf-intl
1315pdf-host: maybe-pdf-tcl
1316pdf-host: maybe-pdf-itcl
1317pdf-host: maybe-pdf-ld
2bf680c4 1318pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1319pdf-host: maybe-pdf-libcpp
1320pdf-host: maybe-pdf-libdecnumber
1321pdf-host: maybe-pdf-libgui
1322pdf-host: maybe-pdf-libiberty
dc448a7b 1323pdf-host: maybe-pdf-libiconv
56a8fe78 1324pdf-host: maybe-pdf-m4
56a8fe78 1325pdf-host: maybe-pdf-readline
56a8fe78
DD
1326pdf-host: maybe-pdf-sid
1327pdf-host: maybe-pdf-sim
56a8fe78 1328pdf-host: maybe-pdf-texinfo
56a8fe78
DD
1329pdf-host: maybe-pdf-zlib
1330pdf-host: maybe-pdf-gdb
1331pdf-host: maybe-pdf-expect
1332pdf-host: maybe-pdf-guile
1333pdf-host: maybe-pdf-tk
1334pdf-host: maybe-pdf-libtermcap
1335pdf-host: maybe-pdf-utils
1336pdf-host: maybe-pdf-gnattools
700d40ca 1337pdf-host: maybe-pdf-lto-plugin
56a8fe78
DD
1338
1339.PHONY: pdf-target
1340
1341pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1342pdf-target: maybe-pdf-target-libsanitizer
95e43135 1343pdf-target: maybe-pdf-target-libvtv
56a8fe78
DD
1344pdf-target: maybe-pdf-target-libssp
1345pdf-target: maybe-pdf-target-newlib
6aa8ef82 1346pdf-target: maybe-pdf-target-libgcc
2bf680c4 1347pdf-target: maybe-pdf-target-libbacktrace
e552509b 1348pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1349pdf-target: maybe-pdf-target-libgfortran
1350pdf-target: maybe-pdf-target-libobjc
e552509b 1351pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1352pdf-target: maybe-pdf-target-libtermcap
1353pdf-target: maybe-pdf-target-winsup
1354pdf-target: maybe-pdf-target-libgloss
56a8fe78
DD
1355pdf-target: maybe-pdf-target-libffi
1356pdf-target: maybe-pdf-target-libjava
1357pdf-target: maybe-pdf-target-zlib
1358pdf-target: maybe-pdf-target-boehm-gc
56a8fe78
DD
1359pdf-target: maybe-pdf-target-rda
1360pdf-target: maybe-pdf-target-libada
1361pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1362pdf-target: maybe-pdf-target-libitm
1363pdf-target: maybe-pdf-target-libatomic
56a8fe78 1364
6d389afc 1365.PHONY: do-html
f70224b5 1366do-html:
0aed8855 1367 @: $(MAKE); $(unstage)
e360f423
PB
1368 @r=`${PWD_COMMAND}`; export r; \
1369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1370 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1371 html-target
f70224b5 1372
6d389afc
MS
1373
1374.PHONY: html-host
c52c6897 1375
c52c6897
PB
1376html-host: maybe-html-bfd
1377html-host: maybe-html-opcodes
1378html-host: maybe-html-binutils
1379html-host: maybe-html-bison
f9806fa5 1380html-host: maybe-html-cgen
c52c6897 1381html-host: maybe-html-dejagnu
c52c6897
PB
1382html-host: maybe-html-etc
1383html-host: maybe-html-fastjar
c52c6897
PB
1384html-host: maybe-html-fixincludes
1385html-host: maybe-html-flex
1386html-host: maybe-html-gas
1387html-host: maybe-html-gcc
4b900473
PB
1388html-host: maybe-html-gmp
1389html-host: maybe-html-mpfr
e8a5fa9c 1390html-host: maybe-html-mpc
7ec59b9e 1391html-host: maybe-html-isl
e28c595f 1392html-host: maybe-html-cloog
1f53ca9a 1393html-host: maybe-html-libelf
93f9b408 1394html-host: maybe-html-gold
c52c6897 1395html-host: maybe-html-gprof
c52c6897
PB
1396html-host: maybe-html-intl
1397html-host: maybe-html-tcl
1398html-host: maybe-html-itcl
1399html-host: maybe-html-ld
2bf680c4 1400html-host: maybe-html-libbacktrace
c52c6897
PB
1401html-host: maybe-html-libcpp
1402html-host: maybe-html-libdecnumber
1403html-host: maybe-html-libgui
1404html-host: maybe-html-libiberty
dc448a7b 1405html-host: maybe-html-libiconv
c52c6897 1406html-host: maybe-html-m4
c52c6897 1407html-host: maybe-html-readline
c52c6897
PB
1408html-host: maybe-html-sid
1409html-host: maybe-html-sim
c52c6897 1410html-host: maybe-html-texinfo
c52c6897
PB
1411html-host: maybe-html-zlib
1412html-host: maybe-html-gdb
1413html-host: maybe-html-expect
1414html-host: maybe-html-guile
1415html-host: maybe-html-tk
1416html-host: maybe-html-libtermcap
1417html-host: maybe-html-utils
1418html-host: maybe-html-gnattools
700d40ca 1419html-host: maybe-html-lto-plugin
6d389afc
MS
1420
1421.PHONY: html-target
c52c6897
PB
1422
1423html-target: maybe-html-target-libstdc++-v3
5286fdef 1424html-target: maybe-html-target-libsanitizer
95e43135 1425html-target: maybe-html-target-libvtv
c52c6897 1426html-target: maybe-html-target-libssp
c52c6897 1427html-target: maybe-html-target-newlib
6aa8ef82 1428html-target: maybe-html-target-libgcc
2bf680c4 1429html-target: maybe-html-target-libbacktrace
e552509b 1430html-target: maybe-html-target-libquadmath
c52c6897
PB
1431html-target: maybe-html-target-libgfortran
1432html-target: maybe-html-target-libobjc
e552509b 1433html-target: maybe-html-target-libgo
c52c6897
PB
1434html-target: maybe-html-target-libtermcap
1435html-target: maybe-html-target-winsup
1436html-target: maybe-html-target-libgloss
c52c6897
PB
1437html-target: maybe-html-target-libffi
1438html-target: maybe-html-target-libjava
1439html-target: maybe-html-target-zlib
1440html-target: maybe-html-target-boehm-gc
c52c6897
PB
1441html-target: maybe-html-target-rda
1442html-target: maybe-html-target-libada
1443html-target: maybe-html-target-libgomp
7ec59b9e
L
1444html-target: maybe-html-target-libitm
1445html-target: maybe-html-target-libatomic
6d389afc 1446
4fa63067 1447.PHONY: do-TAGS
f70224b5 1448do-TAGS:
0aed8855 1449 @: $(MAKE); $(unstage)
e360f423
PB
1450 @r=`${PWD_COMMAND}`; export r; \
1451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1452 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1453 TAGS-target
f70224b5 1454
2a4cbe27 1455
4fa63067 1456.PHONY: TAGS-host
c52c6897 1457
c52c6897
PB
1458TAGS-host: maybe-TAGS-bfd
1459TAGS-host: maybe-TAGS-opcodes
1460TAGS-host: maybe-TAGS-binutils
1461TAGS-host: maybe-TAGS-bison
f9806fa5 1462TAGS-host: maybe-TAGS-cgen
c52c6897 1463TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1464TAGS-host: maybe-TAGS-etc
1465TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1466TAGS-host: maybe-TAGS-fixincludes
1467TAGS-host: maybe-TAGS-flex
1468TAGS-host: maybe-TAGS-gas
1469TAGS-host: maybe-TAGS-gcc
4b900473
PB
1470TAGS-host: maybe-TAGS-gmp
1471TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1472TAGS-host: maybe-TAGS-mpc
7ec59b9e 1473TAGS-host: maybe-TAGS-isl
e28c595f 1474TAGS-host: maybe-TAGS-cloog
1f53ca9a 1475TAGS-host: maybe-TAGS-libelf
93f9b408 1476TAGS-host: maybe-TAGS-gold
c52c6897 1477TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1478TAGS-host: maybe-TAGS-intl
1479TAGS-host: maybe-TAGS-tcl
1480TAGS-host: maybe-TAGS-itcl
1481TAGS-host: maybe-TAGS-ld
2bf680c4 1482TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1483TAGS-host: maybe-TAGS-libcpp
1484TAGS-host: maybe-TAGS-libdecnumber
1485TAGS-host: maybe-TAGS-libgui
1486TAGS-host: maybe-TAGS-libiberty
dc448a7b 1487TAGS-host: maybe-TAGS-libiconv
c52c6897 1488TAGS-host: maybe-TAGS-m4
c52c6897 1489TAGS-host: maybe-TAGS-readline
c52c6897
PB
1490TAGS-host: maybe-TAGS-sid
1491TAGS-host: maybe-TAGS-sim
c52c6897 1492TAGS-host: maybe-TAGS-texinfo
c52c6897
PB
1493TAGS-host: maybe-TAGS-zlib
1494TAGS-host: maybe-TAGS-gdb
1495TAGS-host: maybe-TAGS-expect
1496TAGS-host: maybe-TAGS-guile
1497TAGS-host: maybe-TAGS-tk
1498TAGS-host: maybe-TAGS-libtermcap
1499TAGS-host: maybe-TAGS-utils
1500TAGS-host: maybe-TAGS-gnattools
700d40ca 1501TAGS-host: maybe-TAGS-lto-plugin
2a4cbe27 1502
4fa63067 1503.PHONY: TAGS-target
c52c6897
PB
1504
1505TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1506TAGS-target: maybe-TAGS-target-libsanitizer
95e43135 1507TAGS-target: maybe-TAGS-target-libvtv
c52c6897 1508TAGS-target: maybe-TAGS-target-libssp
c52c6897 1509TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1510TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1511TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1512TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1513TAGS-target: maybe-TAGS-target-libgfortran
1514TAGS-target: maybe-TAGS-target-libobjc
e552509b 1515TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1516TAGS-target: maybe-TAGS-target-libtermcap
1517TAGS-target: maybe-TAGS-target-winsup
1518TAGS-target: maybe-TAGS-target-libgloss
c52c6897
PB
1519TAGS-target: maybe-TAGS-target-libffi
1520TAGS-target: maybe-TAGS-target-libjava
1521TAGS-target: maybe-TAGS-target-zlib
1522TAGS-target: maybe-TAGS-target-boehm-gc
c52c6897
PB
1523TAGS-target: maybe-TAGS-target-rda
1524TAGS-target: maybe-TAGS-target-libada
1525TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1526TAGS-target: maybe-TAGS-target-libitm
1527TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1528
4fa63067 1529.PHONY: do-install-info
f70224b5 1530do-install-info:
0aed8855 1531 @: $(MAKE); $(unstage)
e360f423
PB
1532 @r=`${PWD_COMMAND}`; export r; \
1533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1534 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1535 install-info-target
f70224b5 1536
a2592b1b 1537
4fa63067 1538.PHONY: install-info-host
c52c6897 1539
c52c6897
PB
1540install-info-host: maybe-install-info-bfd
1541install-info-host: maybe-install-info-opcodes
1542install-info-host: maybe-install-info-binutils
1543install-info-host: maybe-install-info-bison
f9806fa5 1544install-info-host: maybe-install-info-cgen
c52c6897 1545install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1546install-info-host: maybe-install-info-etc
1547install-info-host: maybe-install-info-fastjar
c52c6897
PB
1548install-info-host: maybe-install-info-fixincludes
1549install-info-host: maybe-install-info-flex
1550install-info-host: maybe-install-info-gas
1551install-info-host: maybe-install-info-gcc
4b900473
PB
1552install-info-host: maybe-install-info-gmp
1553install-info-host: maybe-install-info-mpfr
e8a5fa9c 1554install-info-host: maybe-install-info-mpc
7ec59b9e 1555install-info-host: maybe-install-info-isl
e28c595f 1556install-info-host: maybe-install-info-cloog
1f53ca9a 1557install-info-host: maybe-install-info-libelf
93f9b408 1558install-info-host: maybe-install-info-gold
c52c6897 1559install-info-host: maybe-install-info-gprof
c52c6897
PB
1560install-info-host: maybe-install-info-intl
1561install-info-host: maybe-install-info-tcl
1562install-info-host: maybe-install-info-itcl
1563install-info-host: maybe-install-info-ld
2bf680c4 1564install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1565install-info-host: maybe-install-info-libcpp
1566install-info-host: maybe-install-info-libdecnumber
1567install-info-host: maybe-install-info-libgui
1568install-info-host: maybe-install-info-libiberty
dc448a7b 1569install-info-host: maybe-install-info-libiconv
c52c6897 1570install-info-host: maybe-install-info-m4
c52c6897 1571install-info-host: maybe-install-info-readline
c52c6897
PB
1572install-info-host: maybe-install-info-sid
1573install-info-host: maybe-install-info-sim
c52c6897 1574install-info-host: maybe-install-info-texinfo
c52c6897
PB
1575install-info-host: maybe-install-info-zlib
1576install-info-host: maybe-install-info-gdb
1577install-info-host: maybe-install-info-expect
1578install-info-host: maybe-install-info-guile
1579install-info-host: maybe-install-info-tk
1580install-info-host: maybe-install-info-libtermcap
1581install-info-host: maybe-install-info-utils
1582install-info-host: maybe-install-info-gnattools
700d40ca 1583install-info-host: maybe-install-info-lto-plugin
a2592b1b 1584
4fa63067 1585.PHONY: install-info-target
c52c6897
PB
1586
1587install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1588install-info-target: maybe-install-info-target-libsanitizer
95e43135 1589install-info-target: maybe-install-info-target-libvtv
c52c6897 1590install-info-target: maybe-install-info-target-libssp
c52c6897 1591install-info-target: maybe-install-info-target-newlib
6aa8ef82 1592install-info-target: maybe-install-info-target-libgcc
2bf680c4 1593install-info-target: maybe-install-info-target-libbacktrace
e552509b 1594install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1595install-info-target: maybe-install-info-target-libgfortran
1596install-info-target: maybe-install-info-target-libobjc
e552509b 1597install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1598install-info-target: maybe-install-info-target-libtermcap
1599install-info-target: maybe-install-info-target-winsup
1600install-info-target: maybe-install-info-target-libgloss
c52c6897
PB
1601install-info-target: maybe-install-info-target-libffi
1602install-info-target: maybe-install-info-target-libjava
1603install-info-target: maybe-install-info-target-zlib
1604install-info-target: maybe-install-info-target-boehm-gc
c52c6897
PB
1605install-info-target: maybe-install-info-target-rda
1606install-info-target: maybe-install-info-target-libada
1607install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1608install-info-target: maybe-install-info-target-libitm
1609install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1610
a3ca38d2
DD
1611.PHONY: do-install-pdf
1612do-install-pdf:
1613 @: $(MAKE); $(unstage)
1614 @r=`${PWD_COMMAND}`; export r; \
1615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1616 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1617 install-pdf-target
1618
1619
1620.PHONY: install-pdf-host
1621
a3ca38d2
DD
1622install-pdf-host: maybe-install-pdf-bfd
1623install-pdf-host: maybe-install-pdf-opcodes
1624install-pdf-host: maybe-install-pdf-binutils
1625install-pdf-host: maybe-install-pdf-bison
f9806fa5 1626install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1627install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1628install-pdf-host: maybe-install-pdf-etc
1629install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1630install-pdf-host: maybe-install-pdf-fixincludes
1631install-pdf-host: maybe-install-pdf-flex
1632install-pdf-host: maybe-install-pdf-gas
1633install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1634install-pdf-host: maybe-install-pdf-gmp
1635install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1636install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1637install-pdf-host: maybe-install-pdf-isl
e28c595f 1638install-pdf-host: maybe-install-pdf-cloog
1f53ca9a 1639install-pdf-host: maybe-install-pdf-libelf
93f9b408 1640install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1641install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1642install-pdf-host: maybe-install-pdf-intl
1643install-pdf-host: maybe-install-pdf-tcl
1644install-pdf-host: maybe-install-pdf-itcl
1645install-pdf-host: maybe-install-pdf-ld
2bf680c4 1646install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1647install-pdf-host: maybe-install-pdf-libcpp
1648install-pdf-host: maybe-install-pdf-libdecnumber
1649install-pdf-host: maybe-install-pdf-libgui
1650install-pdf-host: maybe-install-pdf-libiberty
dc448a7b 1651install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1652install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1653install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1654install-pdf-host: maybe-install-pdf-sid
1655install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1656install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2
DD
1657install-pdf-host: maybe-install-pdf-zlib
1658install-pdf-host: maybe-install-pdf-gdb
1659install-pdf-host: maybe-install-pdf-expect
1660install-pdf-host: maybe-install-pdf-guile
1661install-pdf-host: maybe-install-pdf-tk
1662install-pdf-host: maybe-install-pdf-libtermcap
1663install-pdf-host: maybe-install-pdf-utils
1664install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1665install-pdf-host: maybe-install-pdf-lto-plugin
a3ca38d2
DD
1666
1667.PHONY: install-pdf-target
1668
1669install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1670install-pdf-target: maybe-install-pdf-target-libsanitizer
95e43135 1671install-pdf-target: maybe-install-pdf-target-libvtv
a3ca38d2
DD
1672install-pdf-target: maybe-install-pdf-target-libssp
1673install-pdf-target: maybe-install-pdf-target-newlib
1674install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1675install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1676install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1677install-pdf-target: maybe-install-pdf-target-libgfortran
1678install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1679install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1680install-pdf-target: maybe-install-pdf-target-libtermcap
1681install-pdf-target: maybe-install-pdf-target-winsup
1682install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2
DD
1683install-pdf-target: maybe-install-pdf-target-libffi
1684install-pdf-target: maybe-install-pdf-target-libjava
1685install-pdf-target: maybe-install-pdf-target-zlib
1686install-pdf-target: maybe-install-pdf-target-boehm-gc
a3ca38d2
DD
1687install-pdf-target: maybe-install-pdf-target-rda
1688install-pdf-target: maybe-install-pdf-target-libada
1689install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1690install-pdf-target: maybe-install-pdf-target-libitm
1691install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1692
108a6f8e
CD
1693.PHONY: do-install-html
1694do-install-html:
1695 @: $(MAKE); $(unstage)
1696 @r=`${PWD_COMMAND}`; export r; \
1697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1698 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1699 install-html-target
1700
1701
1702.PHONY: install-html-host
1703
108a6f8e
CD
1704install-html-host: maybe-install-html-bfd
1705install-html-host: maybe-install-html-opcodes
1706install-html-host: maybe-install-html-binutils
1707install-html-host: maybe-install-html-bison
f9806fa5 1708install-html-host: maybe-install-html-cgen
108a6f8e 1709install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1710install-html-host: maybe-install-html-etc
1711install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1712install-html-host: maybe-install-html-fixincludes
1713install-html-host: maybe-install-html-flex
1714install-html-host: maybe-install-html-gas
1715install-html-host: maybe-install-html-gcc
4b900473
PB
1716install-html-host: maybe-install-html-gmp
1717install-html-host: maybe-install-html-mpfr
e8a5fa9c 1718install-html-host: maybe-install-html-mpc
7ec59b9e 1719install-html-host: maybe-install-html-isl
e28c595f 1720install-html-host: maybe-install-html-cloog
1f53ca9a 1721install-html-host: maybe-install-html-libelf
93f9b408 1722install-html-host: maybe-install-html-gold
108a6f8e 1723install-html-host: maybe-install-html-gprof
108a6f8e
CD
1724install-html-host: maybe-install-html-intl
1725install-html-host: maybe-install-html-tcl
1726install-html-host: maybe-install-html-itcl
1727install-html-host: maybe-install-html-ld
2bf680c4 1728install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1729install-html-host: maybe-install-html-libcpp
1730install-html-host: maybe-install-html-libdecnumber
1731install-html-host: maybe-install-html-libgui
1732install-html-host: maybe-install-html-libiberty
dc448a7b 1733install-html-host: maybe-install-html-libiconv
108a6f8e 1734install-html-host: maybe-install-html-m4
108a6f8e 1735install-html-host: maybe-install-html-readline
108a6f8e
CD
1736install-html-host: maybe-install-html-sid
1737install-html-host: maybe-install-html-sim
108a6f8e 1738install-html-host: maybe-install-html-texinfo
108a6f8e
CD
1739install-html-host: maybe-install-html-zlib
1740install-html-host: maybe-install-html-gdb
1741install-html-host: maybe-install-html-expect
1742install-html-host: maybe-install-html-guile
1743install-html-host: maybe-install-html-tk
1744install-html-host: maybe-install-html-libtermcap
1745install-html-host: maybe-install-html-utils
1746install-html-host: maybe-install-html-gnattools
700d40ca 1747install-html-host: maybe-install-html-lto-plugin
108a6f8e
CD
1748
1749.PHONY: install-html-target
1750
1751install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1752install-html-target: maybe-install-html-target-libsanitizer
95e43135 1753install-html-target: maybe-install-html-target-libvtv
108a6f8e 1754install-html-target: maybe-install-html-target-libssp
108a6f8e 1755install-html-target: maybe-install-html-target-newlib
6aa8ef82 1756install-html-target: maybe-install-html-target-libgcc
2bf680c4 1757install-html-target: maybe-install-html-target-libbacktrace
e552509b 1758install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1759install-html-target: maybe-install-html-target-libgfortran
1760install-html-target: maybe-install-html-target-libobjc
e552509b 1761install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1762install-html-target: maybe-install-html-target-libtermcap
1763install-html-target: maybe-install-html-target-winsup
1764install-html-target: maybe-install-html-target-libgloss
108a6f8e
CD
1765install-html-target: maybe-install-html-target-libffi
1766install-html-target: maybe-install-html-target-libjava
1767install-html-target: maybe-install-html-target-zlib
1768install-html-target: maybe-install-html-target-boehm-gc
108a6f8e
CD
1769install-html-target: maybe-install-html-target-rda
1770install-html-target: maybe-install-html-target-libada
1771install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1772install-html-target: maybe-install-html-target-libitm
1773install-html-target: maybe-install-html-target-libatomic
108a6f8e 1774
2a4cbe27 1775.PHONY: do-installcheck
f70224b5 1776do-installcheck:
0aed8855 1777 @: $(MAKE); $(unstage)
e360f423
PB
1778 @r=`${PWD_COMMAND}`; export r; \
1779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1780 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1781 installcheck-target
f70224b5 1782
2a4cbe27
NN
1783
1784.PHONY: installcheck-host
c52c6897 1785
c52c6897
PB
1786installcheck-host: maybe-installcheck-bfd
1787installcheck-host: maybe-installcheck-opcodes
1788installcheck-host: maybe-installcheck-binutils
1789installcheck-host: maybe-installcheck-bison
f9806fa5 1790installcheck-host: maybe-installcheck-cgen
c52c6897 1791installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1792installcheck-host: maybe-installcheck-etc
1793installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1794installcheck-host: maybe-installcheck-fixincludes
1795installcheck-host: maybe-installcheck-flex
1796installcheck-host: maybe-installcheck-gas
1797installcheck-host: maybe-installcheck-gcc
4b900473
PB
1798installcheck-host: maybe-installcheck-gmp
1799installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1800installcheck-host: maybe-installcheck-mpc
7ec59b9e 1801installcheck-host: maybe-installcheck-isl
e28c595f 1802installcheck-host: maybe-installcheck-cloog
1f53ca9a 1803installcheck-host: maybe-installcheck-libelf
93f9b408 1804installcheck-host: maybe-installcheck-gold
c52c6897 1805installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1806installcheck-host: maybe-installcheck-intl
1807installcheck-host: maybe-installcheck-tcl
1808installcheck-host: maybe-installcheck-itcl
1809installcheck-host: maybe-installcheck-ld
2bf680c4 1810installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1811installcheck-host: maybe-installcheck-libcpp
1812installcheck-host: maybe-installcheck-libdecnumber
1813installcheck-host: maybe-installcheck-libgui
1814installcheck-host: maybe-installcheck-libiberty
dc448a7b 1815installcheck-host: maybe-installcheck-libiconv
c52c6897 1816installcheck-host: maybe-installcheck-m4
c52c6897 1817installcheck-host: maybe-installcheck-readline
c52c6897
PB
1818installcheck-host: maybe-installcheck-sid
1819installcheck-host: maybe-installcheck-sim
c52c6897 1820installcheck-host: maybe-installcheck-texinfo
c52c6897
PB
1821installcheck-host: maybe-installcheck-zlib
1822installcheck-host: maybe-installcheck-gdb
1823installcheck-host: maybe-installcheck-expect
1824installcheck-host: maybe-installcheck-guile
1825installcheck-host: maybe-installcheck-tk
1826installcheck-host: maybe-installcheck-libtermcap
1827installcheck-host: maybe-installcheck-utils
1828installcheck-host: maybe-installcheck-gnattools
700d40ca 1829installcheck-host: maybe-installcheck-lto-plugin
2a4cbe27
NN
1830
1831.PHONY: installcheck-target
c52c6897
PB
1832
1833installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1834installcheck-target: maybe-installcheck-target-libsanitizer
95e43135 1835installcheck-target: maybe-installcheck-target-libvtv
c52c6897 1836installcheck-target: maybe-installcheck-target-libssp
c52c6897 1837installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1838installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1839installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1840installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1841installcheck-target: maybe-installcheck-target-libgfortran
1842installcheck-target: maybe-installcheck-target-libobjc
e552509b 1843installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1844installcheck-target: maybe-installcheck-target-libtermcap
1845installcheck-target: maybe-installcheck-target-winsup
1846installcheck-target: maybe-installcheck-target-libgloss
c52c6897
PB
1847installcheck-target: maybe-installcheck-target-libffi
1848installcheck-target: maybe-installcheck-target-libjava
1849installcheck-target: maybe-installcheck-target-zlib
1850installcheck-target: maybe-installcheck-target-boehm-gc
c52c6897
PB
1851installcheck-target: maybe-installcheck-target-rda
1852installcheck-target: maybe-installcheck-target-libada
1853installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1854installcheck-target: maybe-installcheck-target-libitm
1855installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1856
4fa63067 1857.PHONY: do-mostlyclean
f70224b5 1858do-mostlyclean:
0aed8855 1859 @: $(MAKE); $(unstage)
e360f423
PB
1860 @r=`${PWD_COMMAND}`; export r; \
1861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1862 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1863 mostlyclean-target
f70224b5 1864
2a4cbe27 1865
4fa63067 1866.PHONY: mostlyclean-host
c52c6897 1867
c52c6897
PB
1868mostlyclean-host: maybe-mostlyclean-bfd
1869mostlyclean-host: maybe-mostlyclean-opcodes
1870mostlyclean-host: maybe-mostlyclean-binutils
1871mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1872mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1873mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1874mostlyclean-host: maybe-mostlyclean-etc
1875mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1876mostlyclean-host: maybe-mostlyclean-fixincludes
1877mostlyclean-host: maybe-mostlyclean-flex
1878mostlyclean-host: maybe-mostlyclean-gas
1879mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1880mostlyclean-host: maybe-mostlyclean-gmp
1881mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1882mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1883mostlyclean-host: maybe-mostlyclean-isl
e28c595f 1884mostlyclean-host: maybe-mostlyclean-cloog
1f53ca9a 1885mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1886mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1887mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1888mostlyclean-host: maybe-mostlyclean-intl
1889mostlyclean-host: maybe-mostlyclean-tcl
1890mostlyclean-host: maybe-mostlyclean-itcl
1891mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1892mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1893mostlyclean-host: maybe-mostlyclean-libcpp
1894mostlyclean-host: maybe-mostlyclean-libdecnumber
1895mostlyclean-host: maybe-mostlyclean-libgui
1896mostlyclean-host: maybe-mostlyclean-libiberty
dc448a7b 1897mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1898mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1899mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1900mostlyclean-host: maybe-mostlyclean-sid
1901mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1902mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897
PB
1903mostlyclean-host: maybe-mostlyclean-zlib
1904mostlyclean-host: maybe-mostlyclean-gdb
1905mostlyclean-host: maybe-mostlyclean-expect
1906mostlyclean-host: maybe-mostlyclean-guile
1907mostlyclean-host: maybe-mostlyclean-tk
1908mostlyclean-host: maybe-mostlyclean-libtermcap
1909mostlyclean-host: maybe-mostlyclean-utils
1910mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1911mostlyclean-host: maybe-mostlyclean-lto-plugin
2a4cbe27 1912
4fa63067 1913.PHONY: mostlyclean-target
c52c6897
PB
1914
1915mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 1916mostlyclean-target: maybe-mostlyclean-target-libsanitizer
95e43135 1917mostlyclean-target: maybe-mostlyclean-target-libvtv
c52c6897 1918mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 1919mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 1920mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 1921mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 1922mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
1923mostlyclean-target: maybe-mostlyclean-target-libgfortran
1924mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 1925mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
1926mostlyclean-target: maybe-mostlyclean-target-libtermcap
1927mostlyclean-target: maybe-mostlyclean-target-winsup
1928mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897
PB
1929mostlyclean-target: maybe-mostlyclean-target-libffi
1930mostlyclean-target: maybe-mostlyclean-target-libjava
1931mostlyclean-target: maybe-mostlyclean-target-zlib
1932mostlyclean-target: maybe-mostlyclean-target-boehm-gc
c52c6897
PB
1933mostlyclean-target: maybe-mostlyclean-target-rda
1934mostlyclean-target: maybe-mostlyclean-target-libada
1935mostlyclean-target: maybe-mostlyclean-target-libgomp
522e3d71 1936mostlyclean-target: maybe-mostlyclean-target-libcilkrts
7ec59b9e
L
1937mostlyclean-target: maybe-mostlyclean-target-libitm
1938mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 1939
4fa63067 1940.PHONY: do-clean
f70224b5 1941do-clean:
0aed8855 1942 @: $(MAKE); $(unstage)
e360f423
PB
1943 @r=`${PWD_COMMAND}`; export r; \
1944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1945 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 1946 clean-target
f70224b5 1947
2a4cbe27 1948
4fa63067 1949.PHONY: clean-host
c52c6897 1950
c52c6897
PB
1951clean-host: maybe-clean-bfd
1952clean-host: maybe-clean-opcodes
1953clean-host: maybe-clean-binutils
1954clean-host: maybe-clean-bison
f9806fa5 1955clean-host: maybe-clean-cgen
c52c6897 1956clean-host: maybe-clean-dejagnu
c52c6897
PB
1957clean-host: maybe-clean-etc
1958clean-host: maybe-clean-fastjar
c52c6897
PB
1959clean-host: maybe-clean-fixincludes
1960clean-host: maybe-clean-flex
1961clean-host: maybe-clean-gas
1962clean-host: maybe-clean-gcc
4b900473
PB
1963clean-host: maybe-clean-gmp
1964clean-host: maybe-clean-mpfr
e8a5fa9c 1965clean-host: maybe-clean-mpc
7ec59b9e 1966clean-host: maybe-clean-isl
e28c595f 1967clean-host: maybe-clean-cloog
1f53ca9a 1968clean-host: maybe-clean-libelf
93f9b408 1969clean-host: maybe-clean-gold
c52c6897 1970clean-host: maybe-clean-gprof
c52c6897
PB
1971clean-host: maybe-clean-intl
1972clean-host: maybe-clean-tcl
1973clean-host: maybe-clean-itcl
1974clean-host: maybe-clean-ld
2bf680c4 1975clean-host: maybe-clean-libbacktrace
c52c6897
PB
1976clean-host: maybe-clean-libcpp
1977clean-host: maybe-clean-libdecnumber
1978clean-host: maybe-clean-libgui
1979clean-host: maybe-clean-libiberty
dc448a7b 1980clean-host: maybe-clean-libiconv
c52c6897 1981clean-host: maybe-clean-m4
c52c6897 1982clean-host: maybe-clean-readline
c52c6897
PB
1983clean-host: maybe-clean-sid
1984clean-host: maybe-clean-sim
c52c6897 1985clean-host: maybe-clean-texinfo
c52c6897
PB
1986clean-host: maybe-clean-zlib
1987clean-host: maybe-clean-gdb
1988clean-host: maybe-clean-expect
1989clean-host: maybe-clean-guile
1990clean-host: maybe-clean-tk
1991clean-host: maybe-clean-libtermcap
1992clean-host: maybe-clean-utils
1993clean-host: maybe-clean-gnattools
700d40ca 1994clean-host: maybe-clean-lto-plugin
2a4cbe27 1995
4fa63067 1996.PHONY: clean-target
c52c6897
PB
1997
1998clean-target: maybe-clean-target-libstdc++-v3
5286fdef 1999clean-target: maybe-clean-target-libsanitizer
95e43135 2000clean-target: maybe-clean-target-libvtv
c52c6897 2001clean-target: maybe-clean-target-libssp
c52c6897 2002clean-target: maybe-clean-target-newlib
6aa8ef82 2003clean-target: maybe-clean-target-libgcc
2bf680c4 2004clean-target: maybe-clean-target-libbacktrace
e552509b 2005clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2006clean-target: maybe-clean-target-libgfortran
2007clean-target: maybe-clean-target-libobjc
e552509b 2008clean-target: maybe-clean-target-libgo
c52c6897
PB
2009clean-target: maybe-clean-target-libtermcap
2010clean-target: maybe-clean-target-winsup
2011clean-target: maybe-clean-target-libgloss
c52c6897
PB
2012clean-target: maybe-clean-target-libffi
2013clean-target: maybe-clean-target-libjava
2014clean-target: maybe-clean-target-zlib
2015clean-target: maybe-clean-target-boehm-gc
c52c6897
PB
2016clean-target: maybe-clean-target-rda
2017clean-target: maybe-clean-target-libada
2018clean-target: maybe-clean-target-libgomp
522e3d71 2019clean-target: maybe-clean-target-libcilkrts
7ec59b9e
L
2020clean-target: maybe-clean-target-libitm
2021clean-target: maybe-clean-target-libatomic
2a4cbe27 2022
4fa63067 2023.PHONY: do-distclean
f70224b5 2024do-distclean:
0aed8855 2025 @: $(MAKE); $(unstage)
e360f423
PB
2026 @r=`${PWD_COMMAND}`; export r; \
2027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2028 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2029 distclean-target
f70224b5 2030
2a4cbe27 2031
4fa63067 2032.PHONY: distclean-host
c52c6897 2033
c52c6897
PB
2034distclean-host: maybe-distclean-bfd
2035distclean-host: maybe-distclean-opcodes
2036distclean-host: maybe-distclean-binutils
2037distclean-host: maybe-distclean-bison
f9806fa5 2038distclean-host: maybe-distclean-cgen
c52c6897 2039distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2040distclean-host: maybe-distclean-etc
2041distclean-host: maybe-distclean-fastjar
c52c6897
PB
2042distclean-host: maybe-distclean-fixincludes
2043distclean-host: maybe-distclean-flex
2044distclean-host: maybe-distclean-gas
2045distclean-host: maybe-distclean-gcc
4b900473
PB
2046distclean-host: maybe-distclean-gmp
2047distclean-host: maybe-distclean-mpfr
e8a5fa9c 2048distclean-host: maybe-distclean-mpc
7ec59b9e 2049distclean-host: maybe-distclean-isl
e28c595f 2050distclean-host: maybe-distclean-cloog
1f53ca9a 2051distclean-host: maybe-distclean-libelf
93f9b408 2052distclean-host: maybe-distclean-gold
c52c6897 2053distclean-host: maybe-distclean-gprof
c52c6897
PB
2054distclean-host: maybe-distclean-intl
2055distclean-host: maybe-distclean-tcl
2056distclean-host: maybe-distclean-itcl
2057distclean-host: maybe-distclean-ld
2bf680c4 2058distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2059distclean-host: maybe-distclean-libcpp
2060distclean-host: maybe-distclean-libdecnumber
2061distclean-host: maybe-distclean-libgui
2062distclean-host: maybe-distclean-libiberty
dc448a7b 2063distclean-host: maybe-distclean-libiconv
c52c6897 2064distclean-host: maybe-distclean-m4
c52c6897 2065distclean-host: maybe-distclean-readline
c52c6897
PB
2066distclean-host: maybe-distclean-sid
2067distclean-host: maybe-distclean-sim
c52c6897 2068distclean-host: maybe-distclean-texinfo
c52c6897
PB
2069distclean-host: maybe-distclean-zlib
2070distclean-host: maybe-distclean-gdb
2071distclean-host: maybe-distclean-expect
2072distclean-host: maybe-distclean-guile
2073distclean-host: maybe-distclean-tk
2074distclean-host: maybe-distclean-libtermcap
2075distclean-host: maybe-distclean-utils
2076distclean-host: maybe-distclean-gnattools
700d40ca 2077distclean-host: maybe-distclean-lto-plugin
2a4cbe27 2078
4fa63067 2079.PHONY: distclean-target
c52c6897
PB
2080
2081distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2082distclean-target: maybe-distclean-target-libsanitizer
95e43135 2083distclean-target: maybe-distclean-target-libvtv
c52c6897 2084distclean-target: maybe-distclean-target-libssp
c52c6897 2085distclean-target: maybe-distclean-target-newlib
6aa8ef82 2086distclean-target: maybe-distclean-target-libgcc
2bf680c4 2087distclean-target: maybe-distclean-target-libbacktrace
e552509b 2088distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2089distclean-target: maybe-distclean-target-libgfortran
2090distclean-target: maybe-distclean-target-libobjc
e552509b 2091distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2092distclean-target: maybe-distclean-target-libtermcap
2093distclean-target: maybe-distclean-target-winsup
2094distclean-target: maybe-distclean-target-libgloss
c52c6897
PB
2095distclean-target: maybe-distclean-target-libffi
2096distclean-target: maybe-distclean-target-libjava
2097distclean-target: maybe-distclean-target-zlib
2098distclean-target: maybe-distclean-target-boehm-gc
c52c6897
PB
2099distclean-target: maybe-distclean-target-rda
2100distclean-target: maybe-distclean-target-libada
2101distclean-target: maybe-distclean-target-libgomp
522e3d71 2102distclean-target: maybe-distclean-target-libcilkrts
7ec59b9e
L
2103distclean-target: maybe-distclean-target-libitm
2104distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2105
4fa63067 2106.PHONY: do-maintainer-clean
f70224b5 2107do-maintainer-clean:
0aed8855 2108 @: $(MAKE); $(unstage)
e360f423
PB
2109 @r=`${PWD_COMMAND}`; export r; \
2110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2111 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2112 maintainer-clean-target
f70224b5 2113
2a4cbe27 2114
4fa63067 2115.PHONY: maintainer-clean-host
c52c6897 2116
c52c6897
PB
2117maintainer-clean-host: maybe-maintainer-clean-bfd
2118maintainer-clean-host: maybe-maintainer-clean-opcodes
2119maintainer-clean-host: maybe-maintainer-clean-binutils
2120maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2121maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2122maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2123maintainer-clean-host: maybe-maintainer-clean-etc
2124maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2125maintainer-clean-host: maybe-maintainer-clean-fixincludes
2126maintainer-clean-host: maybe-maintainer-clean-flex
2127maintainer-clean-host: maybe-maintainer-clean-gas
2128maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2129maintainer-clean-host: maybe-maintainer-clean-gmp
2130maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2131maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2132maintainer-clean-host: maybe-maintainer-clean-isl
e28c595f 2133maintainer-clean-host: maybe-maintainer-clean-cloog
1f53ca9a 2134maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2135maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2136maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2137maintainer-clean-host: maybe-maintainer-clean-intl
2138maintainer-clean-host: maybe-maintainer-clean-tcl
2139maintainer-clean-host: maybe-maintainer-clean-itcl
2140maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2141maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2142maintainer-clean-host: maybe-maintainer-clean-libcpp
2143maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2144maintainer-clean-host: maybe-maintainer-clean-libgui
2145maintainer-clean-host: maybe-maintainer-clean-libiberty
dc448a7b 2146maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2147maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2148maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2149maintainer-clean-host: maybe-maintainer-clean-sid
2150maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2151maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897
PB
2152maintainer-clean-host: maybe-maintainer-clean-zlib
2153maintainer-clean-host: maybe-maintainer-clean-gdb
2154maintainer-clean-host: maybe-maintainer-clean-expect
2155maintainer-clean-host: maybe-maintainer-clean-guile
2156maintainer-clean-host: maybe-maintainer-clean-tk
2157maintainer-clean-host: maybe-maintainer-clean-libtermcap
2158maintainer-clean-host: maybe-maintainer-clean-utils
2159maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2160maintainer-clean-host: maybe-maintainer-clean-lto-plugin
2a4cbe27 2161
4fa63067 2162.PHONY: maintainer-clean-target
c52c6897
PB
2163
2164maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2165maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
95e43135 2166maintainer-clean-target: maybe-maintainer-clean-target-libvtv
c52c6897 2167maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2168maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2169maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2170maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2171maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2172maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2173maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2174maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2175maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2176maintainer-clean-target: maybe-maintainer-clean-target-winsup
2177maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897
PB
2178maintainer-clean-target: maybe-maintainer-clean-target-libffi
2179maintainer-clean-target: maybe-maintainer-clean-target-libjava
2180maintainer-clean-target: maybe-maintainer-clean-target-zlib
2181maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
c52c6897
PB
2182maintainer-clean-target: maybe-maintainer-clean-target-rda
2183maintainer-clean-target: maybe-maintainer-clean-target-libada
2184maintainer-clean-target: maybe-maintainer-clean-target-libgomp
522e3d71 2185maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
7ec59b9e
L
2186maintainer-clean-target: maybe-maintainer-clean-target-libitm
2187maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2188
2a4cbe27 2189
4fa63067 2190# Here are the targets which correspond to the do-X targets.
2a4cbe27 2191
a3ca38d2
DD
2192.PHONY: info installcheck dvi pdf html
2193.PHONY: install-info install-pdf install-html
4fa63067
NN
2194.PHONY: clean distclean mostlyclean maintainer-clean realclean
2195.PHONY: local-clean local-distclean local-maintainer-clean
2196info: do-info
2197installcheck: do-installcheck
2198dvi: do-dvi
56a8fe78 2199pdf: do-pdf
6d389afc 2200html: do-html
2a4cbe27 2201
4fa63067
NN
2202# Make sure makeinfo is built before we do a `make info', if we're
2203# in fact building texinfo.
2204do-info: maybe-all-texinfo
2a4cbe27 2205
4fa63067 2206install-info: do-install-info dir.info
b40e3958 2207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067
NN
2208 if [ -f dir.info ] ; then \
2209 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2210 else true ; fi
2a4cbe27 2211
a3ca38d2
DD
2212install-pdf: do-install-pdf
2213
108a6f8e
CD
2214install-html: do-install-html
2215
4fa63067
NN
2216local-clean:
2217 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2218
4fa63067
NN
2219local-distclean:
2220 -rm -f Makefile config.status config.cache mh-frag mt-frag
0aed8855 2221 -rm -f maybedep.tmp serdep.tmp
4fa63067
NN
2222 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2223 rm -rf $(TARGET_SUBDIR); \
2224 else true; fi
2225 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2226 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2227 rm -rf $(HOST_SUBDIR); \
2228 else true; fi
4fa63067
NN
2229 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2230 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2231 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2232 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2233 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
18fa8f9c 2234 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2235
4fa63067
NN
2236local-maintainer-clean:
2237 @echo "This command is intended for maintainers to use;"
2238 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2239
4fa63067
NN
2240clean: do-clean local-clean
2241mostlyclean: do-mostlyclean local-clean
2242distclean: do-distclean local-clean local-distclean
2243maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2244maintainer-clean: local-distclean
2245realclean: maintainer-clean
2a4cbe27 2246
4fa63067 2247# Check target.
2a4cbe27 2248
4fa63067
NN
2249.PHONY: check do-check
2250check: do-check
2a4cbe27 2251
4fa63067 2252# Only include modules actually being configured and built.
f70224b5
PB
2253.PHONY: check-host
2254check-host: \
4fa63067
NN
2255 maybe-check-bfd \
2256 maybe-check-opcodes \
2257 maybe-check-binutils \
2258 maybe-check-bison \
f9806fa5 2259 maybe-check-cgen \
4fa63067 2260 maybe-check-dejagnu \
4fa63067
NN
2261 maybe-check-etc \
2262 maybe-check-fastjar \
d3ed111c 2263 maybe-check-fixincludes \
4fa63067
NN
2264 maybe-check-flex \
2265 maybe-check-gas \
b813574b 2266 maybe-check-gcc \
4b900473
PB
2267 maybe-check-gmp \
2268 maybe-check-mpfr \
e8a5fa9c 2269 maybe-check-mpc \
7ec59b9e 2270 maybe-check-isl \
e28c595f 2271 maybe-check-cloog \
1f53ca9a 2272 maybe-check-libelf \
93f9b408 2273 maybe-check-gold \
4fa63067 2274 maybe-check-gprof \
4fa63067
NN
2275 maybe-check-intl \
2276 maybe-check-tcl \
2277 maybe-check-itcl \
2278 maybe-check-ld \
2bf680c4 2279 maybe-check-libbacktrace \
04cf1b77 2280 maybe-check-libcpp \
be01d343 2281 maybe-check-libdecnumber \
4fa63067
NN
2282 maybe-check-libgui \
2283 maybe-check-libiberty \
dc448a7b 2284 maybe-check-libiconv \
4fa63067 2285 maybe-check-m4 \
4fa63067 2286 maybe-check-readline \
4fa63067
NN
2287 maybe-check-sid \
2288 maybe-check-sim \
4fa63067 2289 maybe-check-texinfo \
4fa63067
NN
2290 maybe-check-zlib \
2291 maybe-check-gdb \
2292 maybe-check-expect \
2293 maybe-check-guile \
2294 maybe-check-tk \
4fa63067
NN
2295 maybe-check-libtermcap \
2296 maybe-check-utils \
700d40ca
ILT
2297 maybe-check-gnattools \
2298 maybe-check-lto-plugin
f70224b5
PB
2299
2300.PHONY: check-target
2301check-target: \
4fa63067 2302 maybe-check-target-libstdc++-v3 \
5286fdef 2303 maybe-check-target-libsanitizer \
95e43135 2304 maybe-check-target-libvtv \
064d0a7c 2305 maybe-check-target-libssp \
4fa63067 2306 maybe-check-target-newlib \
6aa8ef82 2307 maybe-check-target-libgcc \
2bf680c4 2308 maybe-check-target-libbacktrace \
e552509b 2309 maybe-check-target-libquadmath \
4b1cb4fe 2310 maybe-check-target-libgfortran \
4fa63067 2311 maybe-check-target-libobjc \
e552509b 2312 maybe-check-target-libgo \
4fa63067
NN
2313 maybe-check-target-libtermcap \
2314 maybe-check-target-winsup \
2315 maybe-check-target-libgloss \
4fa63067
NN
2316 maybe-check-target-libffi \
2317 maybe-check-target-libjava \
2318 maybe-check-target-zlib \
2319 maybe-check-target-boehm-gc \
4fa63067 2320 maybe-check-target-rda \
b3ded179 2321 maybe-check-target-libada \
7ec59b9e
L
2322 maybe-check-target-libgomp \
2323 maybe-check-target-libitm \
2324 maybe-check-target-libatomic
f70224b5
PB
2325
2326do-check:
0aed8855 2327 @: $(MAKE); $(unstage)
e360f423
PB
2328 @r=`${PWD_COMMAND}`; export r; \
2329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2330 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2331
4fa63067 2332# Automated reporting of test results.
2a4cbe27 2333
4fa63067
NN
2334warning.log: build.log
2335 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2336
4fa63067
NN
2337mail-report.log:
2338 if test x'$(BOOT_CFLAGS)' != x''; then \
2339 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2340 fi; \
2341 $(srcdir)/contrib/test_summary -t >$@
2342 chmod +x $@
2343 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2344
4fa63067
NN
2345mail-report-with-warnings.log: warning.log
2346 if test x'$(BOOT_CFLAGS)' != x''; then \
2347 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2348 fi; \
2349 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2350 chmod +x $@
2351 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2352
4fa63067 2353# Installation targets.
2a4cbe27 2354
4fa63067 2355.PHONY: install uninstall
f70224b5 2356install:
0aed8855 2357 @: $(MAKE); $(unstage)
e360f423
PB
2358 @r=`${PWD_COMMAND}`; export r; \
2359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2360 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2361
4fa63067
NN
2362.PHONY: install-host-nogcc
2363install-host-nogcc: \
4fa63067
NN
2364 maybe-install-bfd \
2365 maybe-install-opcodes \
2366 maybe-install-binutils \
2367 maybe-install-bison \
f9806fa5 2368 maybe-install-cgen \
4fa63067 2369 maybe-install-dejagnu \
4fa63067
NN
2370 maybe-install-etc \
2371 maybe-install-fastjar \
d3ed111c 2372 maybe-install-fixincludes \
4fa63067
NN
2373 maybe-install-flex \
2374 maybe-install-gas \
4b900473
PB
2375 maybe-install-gmp \
2376 maybe-install-mpfr \
e8a5fa9c 2377 maybe-install-mpc \
7ec59b9e 2378 maybe-install-isl \
e28c595f 2379 maybe-install-cloog \
1f53ca9a 2380 maybe-install-libelf \
93f9b408 2381 maybe-install-gold \
4fa63067 2382 maybe-install-gprof \
4fa63067
NN
2383 maybe-install-intl \
2384 maybe-install-tcl \
2385 maybe-install-itcl \
2386 maybe-install-ld \
2bf680c4 2387 maybe-install-libbacktrace \
04cf1b77 2388 maybe-install-libcpp \
be01d343 2389 maybe-install-libdecnumber \
4fa63067
NN
2390 maybe-install-libgui \
2391 maybe-install-libiberty \
dc448a7b 2392 maybe-install-libiconv \
4fa63067 2393 maybe-install-m4 \
4fa63067 2394 maybe-install-readline \
4fa63067
NN
2395 maybe-install-sid \
2396 maybe-install-sim \
4fa63067 2397 maybe-install-texinfo \
4fa63067
NN
2398 maybe-install-zlib \
2399 maybe-install-gdb \
2400 maybe-install-expect \
2401 maybe-install-guile \
2402 maybe-install-tk \
4fa63067 2403 maybe-install-libtermcap \
b00612cc 2404 maybe-install-utils \
700d40ca
ILT
2405 maybe-install-gnattools \
2406 maybe-install-lto-plugin
2a4cbe27 2407
4fa63067 2408.PHONY: install-host
b813574b 2409install-host: \
4fa63067
NN
2410 maybe-install-bfd \
2411 maybe-install-opcodes \
2412 maybe-install-binutils \
2413 maybe-install-bison \
f9806fa5 2414 maybe-install-cgen \
4fa63067 2415 maybe-install-dejagnu \
4fa63067
NN
2416 maybe-install-etc \
2417 maybe-install-fastjar \
d3ed111c 2418 maybe-install-fixincludes \
4fa63067
NN
2419 maybe-install-flex \
2420 maybe-install-gas \
b813574b 2421 maybe-install-gcc \
4b900473
PB
2422 maybe-install-gmp \
2423 maybe-install-mpfr \
e8a5fa9c 2424 maybe-install-mpc \
7ec59b9e 2425 maybe-install-isl \
e28c595f 2426 maybe-install-cloog \
1f53ca9a 2427 maybe-install-libelf \
93f9b408 2428 maybe-install-gold \
4fa63067 2429 maybe-install-gprof \
4fa63067
NN
2430 maybe-install-intl \
2431 maybe-install-tcl \
2432 maybe-install-itcl \
2433 maybe-install-ld \
2bf680c4 2434 maybe-install-libbacktrace \
04cf1b77 2435 maybe-install-libcpp \
be01d343 2436 maybe-install-libdecnumber \
4fa63067
NN
2437 maybe-install-libgui \
2438 maybe-install-libiberty \
dc448a7b 2439 maybe-install-libiconv \
4fa63067 2440 maybe-install-m4 \
4fa63067 2441 maybe-install-readline \
4fa63067
NN
2442 maybe-install-sid \
2443 maybe-install-sim \
4fa63067 2444 maybe-install-texinfo \
4fa63067
NN
2445 maybe-install-zlib \
2446 maybe-install-gdb \
2447 maybe-install-expect \
2448 maybe-install-guile \
2449 maybe-install-tk \
4fa63067 2450 maybe-install-libtermcap \
b00612cc 2451 maybe-install-utils \
700d40ca
ILT
2452 maybe-install-gnattools \
2453 maybe-install-lto-plugin
2a4cbe27 2454
4fa63067
NN
2455.PHONY: install-target
2456install-target: \
2457 maybe-install-target-libstdc++-v3 \
5286fdef 2458 maybe-install-target-libsanitizer \
95e43135 2459 maybe-install-target-libvtv \
064d0a7c 2460 maybe-install-target-libssp \
4fa63067 2461 maybe-install-target-newlib \
6aa8ef82 2462 maybe-install-target-libgcc \
2bf680c4 2463 maybe-install-target-libbacktrace \
e552509b 2464 maybe-install-target-libquadmath \
4b1cb4fe 2465 maybe-install-target-libgfortran \
4fa63067 2466 maybe-install-target-libobjc \
e552509b 2467 maybe-install-target-libgo \
4fa63067
NN
2468 maybe-install-target-libtermcap \
2469 maybe-install-target-winsup \
2470 maybe-install-target-libgloss \
4fa63067
NN
2471 maybe-install-target-libffi \
2472 maybe-install-target-libjava \
2473 maybe-install-target-zlib \
2474 maybe-install-target-boehm-gc \
4fa63067 2475 maybe-install-target-rda \
b3ded179 2476 maybe-install-target-libada \
7ec59b9e 2477 maybe-install-target-libgomp \
522e3d71 2478 maybe-install-target-libcilkrts \
7ec59b9e
L
2479 maybe-install-target-libitm \
2480 maybe-install-target-libatomic
2a4cbe27 2481
4fa63067
NN
2482uninstall:
2483 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2484
4fa63067
NN
2485.PHONY: install.all
2486install.all: install-no-fixedincludes
2487 @if [ -f ./gcc/Makefile ] ; then \
2488 r=`${PWD_COMMAND}` ; export r ; \
0aed8855 2489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2490 $(HOST_EXPORTS) \
4fa63067
NN
2491 (cd ./gcc && \
2492 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2493 else \
2494 true ; \
2495 fi
2a4cbe27 2496
7ec59b9e
L
2497# install-no-fixedincludes is used to allow the elaboration of binary packages
2498# suitable for distribution, where we cannot include the fixed system header
2499# files.
4fa63067
NN
2500.PHONY: install-no-fixedincludes
2501install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2502 install-target gcc-install-no-fixedincludes
2a4cbe27 2503
9b980aa1
RW
2504.PHONY: install-strip
2505install-strip:
2506 @: $(MAKE); $(unstage)
2507 @r=`${PWD_COMMAND}`; export r; \
2508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2509 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2510
2511.PHONY: install-strip-host
2512install-strip-host: \
9b980aa1
RW
2513 maybe-install-strip-bfd \
2514 maybe-install-strip-opcodes \
2515 maybe-install-strip-binutils \
2516 maybe-install-strip-bison \
9b980aa1
RW
2517 maybe-install-strip-cgen \
2518 maybe-install-strip-dejagnu \
9b980aa1
RW
2519 maybe-install-strip-etc \
2520 maybe-install-strip-fastjar \
9b980aa1
RW
2521 maybe-install-strip-fixincludes \
2522 maybe-install-strip-flex \
2523 maybe-install-strip-gas \
2524 maybe-install-strip-gcc \
9b980aa1
RW
2525 maybe-install-strip-gmp \
2526 maybe-install-strip-mpfr \
2527 maybe-install-strip-mpc \
7ec59b9e 2528 maybe-install-strip-isl \
9b980aa1
RW
2529 maybe-install-strip-cloog \
2530 maybe-install-strip-libelf \
9b980aa1
RW
2531 maybe-install-strip-gold \
2532 maybe-install-strip-gprof \
9b980aa1
RW
2533 maybe-install-strip-intl \
2534 maybe-install-strip-tcl \
2535 maybe-install-strip-itcl \
2536 maybe-install-strip-ld \
2bf680c4 2537 maybe-install-strip-libbacktrace \
9b980aa1
RW
2538 maybe-install-strip-libcpp \
2539 maybe-install-strip-libdecnumber \
2540 maybe-install-strip-libgui \
2541 maybe-install-strip-libiberty \
2542 maybe-install-strip-libiconv \
9b980aa1 2543 maybe-install-strip-m4 \
9b980aa1 2544 maybe-install-strip-readline \
9b980aa1
RW
2545 maybe-install-strip-sid \
2546 maybe-install-strip-sim \
9b980aa1 2547 maybe-install-strip-texinfo \
9b980aa1
RW
2548 maybe-install-strip-zlib \
2549 maybe-install-strip-gdb \
2550 maybe-install-strip-expect \
2551 maybe-install-strip-guile \
2552 maybe-install-strip-tk \
2553 maybe-install-strip-libtermcap \
2554 maybe-install-strip-utils \
2555 maybe-install-strip-gnattools \
2556 maybe-install-strip-lto-plugin
2557
2558.PHONY: install-strip-target
2559install-strip-target: \
2560 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2561 maybe-install-strip-target-libsanitizer \
95e43135 2562 maybe-install-strip-target-libvtv \
9b980aa1
RW
2563 maybe-install-strip-target-libssp \
2564 maybe-install-strip-target-newlib \
2565 maybe-install-strip-target-libgcc \
2bf680c4 2566 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2567 maybe-install-strip-target-libquadmath \
2568 maybe-install-strip-target-libgfortran \
2569 maybe-install-strip-target-libobjc \
2570 maybe-install-strip-target-libgo \
2571 maybe-install-strip-target-libtermcap \
2572 maybe-install-strip-target-winsup \
2573 maybe-install-strip-target-libgloss \
9b980aa1
RW
2574 maybe-install-strip-target-libffi \
2575 maybe-install-strip-target-libjava \
2576 maybe-install-strip-target-zlib \
2577 maybe-install-strip-target-boehm-gc \
9b980aa1
RW
2578 maybe-install-strip-target-rda \
2579 maybe-install-strip-target-libada \
522e3d71 2580 maybe-install-strip-target-libcilkrts \
7ec59b9e
L
2581 maybe-install-strip-target-libgomp \
2582 maybe-install-strip-target-libitm \
2583 maybe-install-strip-target-libatomic
9b980aa1
RW
2584
2585
4fa63067 2586### other supporting targets
2a4cbe27 2587
4fa63067
NN
2588MAKEDIRS= \
2589 $(DESTDIR)$(prefix) \
2590 $(DESTDIR)$(exec_prefix)
2591.PHONY: installdirs
2592installdirs: mkinstalldirs
2593 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2594
4fa63067
NN
2595dir.info: do-install-info
2596 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2597 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2598 mv -f dir.info.new dir.info ; \
2599 else true ; \
2600 fi
2a4cbe27 2601
4fa63067
NN
2602dist:
2603 @echo "Building a full distribution of this tree isn't done"
2604 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2605
4fa63067 2606etags tags: TAGS
2a4cbe27 2607
4fa63067
NN
2608# Right now this just builds TAGS in each subdirectory. emacs19 has the
2609# ability to use several tags files at once, so there is probably no need
2610# to combine them into one big TAGS file (like CVS 1.3 does). We could
2611# (if we felt like it) have this Makefile write a piece of elisp which
2612# the user could load to tell emacs19 where all the TAGS files we just
2613# built are.
2614TAGS: do-TAGS
2a4cbe27 2615
a7254363
PB
2616# ------------------------------------
2617# Macros for configure and all targets
2618# ------------------------------------
2619
2620
2621
2622
2623
4fa63067
NN
2624# --------------------------------------
2625# Modules which run on the build machine
2626# --------------------------------------
2627
a7254363 2628
4fa63067
NN
2629.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2630maybe-configure-build-libiberty:
4f0ef2d8
CD
2631@if gcc-bootstrap
2632configure-build-libiberty: stage_current
2633@endif gcc-bootstrap
6bd3dfaa
PB
2634@if build-libiberty
2635maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2636configure-build-libiberty:
0aed8855 2637 @: $(MAKE); $(unstage)
c52c6897 2638 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2640 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2641 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
1f53ca9a 2642 $(BUILD_EXPORTS) \
4fa63067
NN
2643 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2644 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2645 case $(srcdir) in \
b00612cc
PB
2646 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2647 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2648 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2649 esac; \
b00612cc
PB
2650 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2651 libsrcdir="$$s/libiberty"; \
4fa63067
NN
2652 rm -f no-such-file || : ; \
2653 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
2654 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2655 --target=${target_alias} $${srcdiroption} \
2a4cbe27 2656 || exit 1
6bd3dfaa 2657@endif build-libiberty
2a4cbe27 2658
a7254363
PB
2659
2660
d545f33b
PB
2661
2662
4fa63067
NN
2663.PHONY: all-build-libiberty maybe-all-build-libiberty
2664maybe-all-build-libiberty:
4f0ef2d8
CD
2665@if gcc-bootstrap
2666all-build-libiberty: stage_current
2667@endif gcc-bootstrap
6bd3dfaa 2668@if build-libiberty
72b2455a 2669TARGET-build-libiberty=all
6bd3dfaa 2670maybe-all-build-libiberty: all-build-libiberty
4fa63067 2671all-build-libiberty: configure-build-libiberty
0aed8855 2672 @: $(MAKE); $(unstage)
4fa63067 2673 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2675 $(BUILD_EXPORTS) \
72b2455a 2676 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2677 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2678 $(TARGET-build-libiberty))
6bd3dfaa 2679@endif build-libiberty
2a4cbe27 2680
a7254363
PB
2681
2682
d545f33b
PB
2683
2684
6a9cf61e
PB
2685.PHONY: configure-build-bison maybe-configure-build-bison
2686maybe-configure-build-bison:
4f0ef2d8
CD
2687@if gcc-bootstrap
2688configure-build-bison: stage_current
2689@endif gcc-bootstrap
6a9cf61e
PB
2690@if build-bison
2691maybe-configure-build-bison: configure-build-bison
c52c6897 2692configure-build-bison:
0aed8855 2693 @: $(MAKE); $(unstage)
c52c6897 2694 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2696 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2697 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
1f53ca9a 2698 $(BUILD_EXPORTS) \
6a9cf61e
PB
2699 echo Configuring in $(BUILD_SUBDIR)/bison; \
2700 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2701 case $(srcdir) in \
b00612cc
PB
2702 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2703 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2704 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2705 esac; \
b00612cc
PB
2706 srcdiroption="--srcdir=$${topdir}/bison"; \
2707 libsrcdir="$$s/bison"; \
6a9cf61e
PB
2708 rm -f no-such-file || : ; \
2709 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
2710 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2711 --target=${target_alias} $${srcdiroption} \
6a9cf61e
PB
2712 || exit 1
2713@endif build-bison
2714
a7254363
PB
2715
2716
d545f33b
PB
2717
2718
6a9cf61e
PB
2719.PHONY: all-build-bison maybe-all-build-bison
2720maybe-all-build-bison:
4f0ef2d8
CD
2721@if gcc-bootstrap
2722all-build-bison: stage_current
2723@endif gcc-bootstrap
6a9cf61e 2724@if build-bison
72b2455a 2725TARGET-build-bison=all
6a9cf61e
PB
2726maybe-all-build-bison: all-build-bison
2727all-build-bison: configure-build-bison
0aed8855 2728 @: $(MAKE); $(unstage)
6a9cf61e
PB
2729 @r=`${PWD_COMMAND}`; export r; \
2730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2731 $(BUILD_EXPORTS) \
72b2455a 2732 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2733 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2734 $(TARGET-build-bison))
6a9cf61e
PB
2735@endif build-bison
2736
a7254363
PB
2737
2738
d545f33b
PB
2739
2740
6a9cf61e
PB
2741.PHONY: configure-build-flex maybe-configure-build-flex
2742maybe-configure-build-flex:
4f0ef2d8
CD
2743@if gcc-bootstrap
2744configure-build-flex: stage_current
2745@endif gcc-bootstrap
6a9cf61e
PB
2746@if build-flex
2747maybe-configure-build-flex: configure-build-flex
c52c6897 2748configure-build-flex:
0aed8855 2749 @: $(MAKE); $(unstage)
c52c6897 2750 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2752 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2753 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
1f53ca9a 2754 $(BUILD_EXPORTS) \
6a9cf61e
PB
2755 echo Configuring in $(BUILD_SUBDIR)/flex; \
2756 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2757 case $(srcdir) in \
b00612cc
PB
2758 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2759 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2760 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2761 esac; \
b00612cc
PB
2762 srcdiroption="--srcdir=$${topdir}/flex"; \
2763 libsrcdir="$$s/flex"; \
6a9cf61e
PB
2764 rm -f no-such-file || : ; \
2765 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
2766 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2767 --target=${target_alias} $${srcdiroption} \
6a9cf61e
PB
2768 || exit 1
2769@endif build-flex
2770
a7254363
PB
2771
2772
d545f33b
PB
2773
2774
6a9cf61e
PB
2775.PHONY: all-build-flex maybe-all-build-flex
2776maybe-all-build-flex:
4f0ef2d8
CD
2777@if gcc-bootstrap
2778all-build-flex: stage_current
2779@endif gcc-bootstrap
6a9cf61e 2780@if build-flex
72b2455a 2781TARGET-build-flex=all
6a9cf61e
PB
2782maybe-all-build-flex: all-build-flex
2783all-build-flex: configure-build-flex
0aed8855 2784 @: $(MAKE); $(unstage)
6a9cf61e
PB
2785 @r=`${PWD_COMMAND}`; export r; \
2786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2787 $(BUILD_EXPORTS) \
72b2455a 2788 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2789 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2790 $(TARGET-build-flex))
6a9cf61e
PB
2791@endif build-flex
2792
a7254363
PB
2793
2794
d545f33b
PB
2795
2796
6a9cf61e
PB
2797.PHONY: configure-build-m4 maybe-configure-build-m4
2798maybe-configure-build-m4:
4f0ef2d8
CD
2799@if gcc-bootstrap
2800configure-build-m4: stage_current
2801@endif gcc-bootstrap
6a9cf61e
PB
2802@if build-m4
2803maybe-configure-build-m4: configure-build-m4
c52c6897 2804configure-build-m4:
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)/m4/Makefile || exit 0; \
2809 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
1f53ca9a 2810 $(BUILD_EXPORTS) \
6a9cf61e
PB
2811 echo Configuring in $(BUILD_SUBDIR)/m4; \
2812 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2813 case $(srcdir) in \
b00612cc
PB
2814 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2815 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2816 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2817 esac; \
b00612cc
PB
2818 srcdiroption="--srcdir=$${topdir}/m4"; \
2819 libsrcdir="$$s/m4"; \
6a9cf61e
PB
2820 rm -f no-such-file || : ; \
2821 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
2822 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2823 --target=${target_alias} $${srcdiroption} \
6a9cf61e
PB
2824 || exit 1
2825@endif build-m4
2826
a7254363
PB
2827
2828
d545f33b
PB
2829
2830
6a9cf61e
PB
2831.PHONY: all-build-m4 maybe-all-build-m4
2832maybe-all-build-m4:
4f0ef2d8
CD
2833@if gcc-bootstrap
2834all-build-m4: stage_current
2835@endif gcc-bootstrap
6a9cf61e 2836@if build-m4
72b2455a 2837TARGET-build-m4=all
6a9cf61e
PB
2838maybe-all-build-m4: all-build-m4
2839all-build-m4: configure-build-m4
0aed8855 2840 @: $(MAKE); $(unstage)
6a9cf61e
PB
2841 @r=`${PWD_COMMAND}`; export r; \
2842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2843 $(BUILD_EXPORTS) \
72b2455a 2844 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2845 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2846 $(TARGET-build-m4))
6a9cf61e
PB
2847@endif build-m4
2848
a7254363
PB
2849
2850
d545f33b
PB
2851
2852
6a9cf61e
PB
2853.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2854maybe-configure-build-texinfo:
4f0ef2d8
CD
2855@if gcc-bootstrap
2856configure-build-texinfo: stage_current
2857@endif gcc-bootstrap
6a9cf61e
PB
2858@if build-texinfo
2859maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 2860configure-build-texinfo:
0aed8855 2861 @: $(MAKE); $(unstage)
c52c6897 2862 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2864 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2865 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
1f53ca9a 2866 $(BUILD_EXPORTS) \
6a9cf61e
PB
2867 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2868 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2869 case $(srcdir) in \
b00612cc
PB
2870 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2871 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2872 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2873 esac; \
b00612cc
PB
2874 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2875 libsrcdir="$$s/texinfo"; \
6a9cf61e
PB
2876 rm -f no-such-file || : ; \
2877 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
2878 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2879 --target=${target_alias} $${srcdiroption} \
6a9cf61e
PB
2880 || exit 1
2881@endif build-texinfo
2882
a7254363
PB
2883
2884
d545f33b
PB
2885
2886
6a9cf61e
PB
2887.PHONY: all-build-texinfo maybe-all-build-texinfo
2888maybe-all-build-texinfo:
4f0ef2d8
CD
2889@if gcc-bootstrap
2890all-build-texinfo: stage_current
2891@endif gcc-bootstrap
6a9cf61e 2892@if build-texinfo
72b2455a 2893TARGET-build-texinfo=all
6a9cf61e
PB
2894maybe-all-build-texinfo: all-build-texinfo
2895all-build-texinfo: configure-build-texinfo
0aed8855 2896 @: $(MAKE); $(unstage)
6a9cf61e
PB
2897 @r=`${PWD_COMMAND}`; export r; \
2898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2899 $(BUILD_EXPORTS) \
72b2455a 2900 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 2901 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2902 $(TARGET-build-texinfo))
6a9cf61e
PB
2903@endif build-texinfo
2904
a7254363
PB
2905
2906
d545f33b
PB
2907
2908
ee025550
PB
2909.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2910maybe-configure-build-fixincludes:
4f0ef2d8
CD
2911@if gcc-bootstrap
2912configure-build-fixincludes: stage_current
2913@endif gcc-bootstrap
ee025550
PB
2914@if build-fixincludes
2915maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 2916configure-build-fixincludes:
0aed8855 2917 @: $(MAKE); $(unstage)
c52c6897 2918 @r=`${PWD_COMMAND}`; export r; \
ee025550 2919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2920 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2921 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
1f53ca9a 2922 $(BUILD_EXPORTS) \
ee025550
PB
2923 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2924 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2925 case $(srcdir) in \
b00612cc
PB
2926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2927 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 2929 esac; \
b00612cc
PB
2930 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2931 libsrcdir="$$s/fixincludes"; \
ee025550
PB
2932 rm -f no-such-file || : ; \
2933 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
2934 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
2935 --target=${target_alias} $${srcdiroption} \
ee025550
PB
2936 || exit 1
2937@endif build-fixincludes
2938
a7254363
PB
2939
2940
d545f33b
PB
2941
2942
ee025550
PB
2943.PHONY: all-build-fixincludes maybe-all-build-fixincludes
2944maybe-all-build-fixincludes:
4f0ef2d8
CD
2945@if gcc-bootstrap
2946all-build-fixincludes: stage_current
2947@endif gcc-bootstrap
ee025550
PB
2948@if build-fixincludes
2949TARGET-build-fixincludes=all
2950maybe-all-build-fixincludes: all-build-fixincludes
2951all-build-fixincludes: configure-build-fixincludes
0aed8855 2952 @: $(MAKE); $(unstage)
ee025550
PB
2953 @r=`${PWD_COMMAND}`; export r; \
2954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2955 $(BUILD_EXPORTS) \
ee025550 2956 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 2957 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2958 $(TARGET-build-fixincludes))
ee025550
PB
2959@endif build-fixincludes
2960
2a4cbe27 2961
a7254363 2962
d545f33b
PB
2963
2964
4fa63067
NN
2965# --------------------------------------
2966# Modules which run on the host machine
2967# --------------------------------------
2a4cbe27 2968
a7254363 2969
a90ef4bf
JM
2970.PHONY: configure-bfd maybe-configure-bfd
2971maybe-configure-bfd:
4f0ef2d8 2972@if gcc-bootstrap
a90ef4bf 2973configure-bfd: stage_current
4f0ef2d8 2974@endif gcc-bootstrap
a90ef4bf
JM
2975@if bfd
2976maybe-configure-bfd: configure-bfd
2977configure-bfd:
c52c6897 2978 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
2980 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
2981 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
1f53ca9a 2982 $(HOST_EXPORTS) \
a90ef4bf
JM
2983 echo Configuring in $(HOST_SUBDIR)/bfd; \
2984 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 2985 case $(srcdir) in \
b00612cc 2986 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 2987 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 2988 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2989 esac; \
a90ef4bf
JM
2990 srcdiroption="--srcdir=$${topdir}/bfd"; \
2991 libsrcdir="$$s/bfd"; \
4fa63067 2992 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
2993 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
2994 --target=${target_alias} $${srcdiroption} \
2a4cbe27 2995 || exit 1
a90ef4bf 2996@endif bfd
a7254363 2997
d545f33b
PB
2998
2999
a90ef4bf
JM
3000.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3001maybe-configure-stage1-bfd:
3002@if bfd-bootstrap
3003maybe-configure-stage1-bfd: configure-stage1-bfd
3004configure-stage1-bfd:
3005 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3006 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3007 @r=`${PWD_COMMAND}`; export r; \
3008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3009 TFLAGS="$(STAGE1_TFLAGS)"; \
3010 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3011 $(HOST_EXPORTS) \
3012 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3013 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3014 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
3015 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
3016 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3017 cd $(HOST_SUBDIR)/bfd || exit 1; \
3018 case $(srcdir) in \
3019 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3020 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3021 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3022 esac; \
3023 srcdiroption="--srcdir=$${topdir}/bfd"; \
3024 libsrcdir="$$s/bfd"; \
3025 $(SHELL) $${libsrcdir}/configure \
3026 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3027 --target=${target_alias} $${srcdiroption} \
3028 $(STAGE1_CONFIGURE_FLAGS)
3029@endif bfd-bootstrap
2a4cbe27 3030
a90ef4bf
JM
3031.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3032maybe-configure-stage2-bfd:
3033@if bfd-bootstrap
3034maybe-configure-stage2-bfd: configure-stage2-bfd
3035configure-stage2-bfd:
3036 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3037 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3038 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3040 TFLAGS="$(STAGE2_TFLAGS)"; \
3041 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3042 $(HOST_EXPORTS) \
a90ef4bf
JM
3043 $(POSTSTAGE1_HOST_EXPORTS) \
3044 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3045 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3046 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
3047 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
3048 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3049 cd $(HOST_SUBDIR)/bfd || exit 1; \
3050 case $(srcdir) in \
3051 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3052 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3053 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3054 esac; \
3055 srcdiroption="--srcdir=$${topdir}/bfd"; \
3056 libsrcdir="$$s/bfd"; \
3057 $(SHELL) $${libsrcdir}/configure \
3058 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3059 --target=${target_alias} $${srcdiroption} \
3060 --with-build-libsubdir=$(HOST_SUBDIR) \
3061 $(STAGE2_CONFIGURE_FLAGS)
3062@endif bfd-bootstrap
2a4cbe27 3063
a90ef4bf
JM
3064.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3065maybe-configure-stage3-bfd:
3066@if bfd-bootstrap
3067maybe-configure-stage3-bfd: configure-stage3-bfd
3068configure-stage3-bfd:
3069 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3070 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3071 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3073 TFLAGS="$(STAGE3_TFLAGS)"; \
3074 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3075 $(HOST_EXPORTS) \
a90ef4bf
JM
3076 $(POSTSTAGE1_HOST_EXPORTS) \
3077 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3078 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3079 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
3080 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
3081 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3082 cd $(HOST_SUBDIR)/bfd || exit 1; \
3083 case $(srcdir) in \
3084 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3085 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3086 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3087 esac; \
3088 srcdiroption="--srcdir=$${topdir}/bfd"; \
3089 libsrcdir="$$s/bfd"; \
3090 $(SHELL) $${libsrcdir}/configure \
3091 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3092 --target=${target_alias} $${srcdiroption} \
3093 --with-build-libsubdir=$(HOST_SUBDIR) \
3094 $(STAGE3_CONFIGURE_FLAGS)
3095@endif bfd-bootstrap
9b980aa1 3096
a90ef4bf
JM
3097.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3098maybe-configure-stage4-bfd:
3099@if bfd-bootstrap
3100maybe-configure-stage4-bfd: configure-stage4-bfd
3101configure-stage4-bfd:
3102 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3103 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3104 @r=`${PWD_COMMAND}`; export r; \
3105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3106 TFLAGS="$(STAGE4_TFLAGS)"; \
3107 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3108 $(HOST_EXPORTS) \
a90ef4bf
JM
3109 $(POSTSTAGE1_HOST_EXPORTS) \
3110 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3111 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3112 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
3113 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
3114 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3115 cd $(HOST_SUBDIR)/bfd || exit 1; \
3116 case $(srcdir) in \
3117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3118 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3120 esac; \
3121 srcdiroption="--srcdir=$${topdir}/bfd"; \
3122 libsrcdir="$$s/bfd"; \
3123 $(SHELL) $${libsrcdir}/configure \
3124 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3125 --target=${target_alias} $${srcdiroption} \
3126 --with-build-libsubdir=$(HOST_SUBDIR) \
3127 $(STAGE4_CONFIGURE_FLAGS)
3128@endif bfd-bootstrap
4fa63067 3129
a90ef4bf
JM
3130.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3131maybe-configure-stageprofile-bfd:
3132@if bfd-bootstrap
3133maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3134configure-stageprofile-bfd:
3135 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3136 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3137 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3139 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3140 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3141 $(HOST_EXPORTS) \
a90ef4bf
JM
3142 $(POSTSTAGE1_HOST_EXPORTS) \
3143 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3144 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3145 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
3146 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
3147 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3148 cd $(HOST_SUBDIR)/bfd || exit 1; \
3149 case $(srcdir) in \
3150 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3151 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3152 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3153 esac; \
3154 srcdiroption="--srcdir=$${topdir}/bfd"; \
3155 libsrcdir="$$s/bfd"; \
3156 $(SHELL) $${libsrcdir}/configure \
3157 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3158 --target=${target_alias} $${srcdiroption} \
3159 --with-build-libsubdir=$(HOST_SUBDIR) \
3160 $(STAGEprofile_CONFIGURE_FLAGS)
3161@endif bfd-bootstrap
2a4cbe27 3162
a90ef4bf
JM
3163.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3164maybe-configure-stagefeedback-bfd:
3165@if bfd-bootstrap
3166maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3167configure-stagefeedback-bfd:
3168 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3169 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3170 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3172 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3173 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3174 $(HOST_EXPORTS) \
a90ef4bf
JM
3175 $(POSTSTAGE1_HOST_EXPORTS) \
3176 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3177 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3178 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
3179 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
3180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3181 cd $(HOST_SUBDIR)/bfd || exit 1; \
3182 case $(srcdir) in \
3183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3184 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3186 esac; \
3187 srcdiroption="--srcdir=$${topdir}/bfd"; \
3188 libsrcdir="$$s/bfd"; \
3189 $(SHELL) $${libsrcdir}/configure \
3190 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3191 --target=${target_alias} $${srcdiroption} \
3192 --with-build-libsubdir=$(HOST_SUBDIR) \
3193 $(STAGEfeedback_CONFIGURE_FLAGS)
3194@endif bfd-bootstrap
2a4cbe27 3195
56a8fe78 3196
56a8fe78 3197
56a8fe78 3198
6d389afc 3199
a90ef4bf
JM
3200.PHONY: all-bfd maybe-all-bfd
3201maybe-all-bfd:
3202@if gcc-bootstrap
3203all-bfd: stage_current
3204@endif gcc-bootstrap
3205@if bfd
3206TARGET-bfd=all
3207maybe-all-bfd: all-bfd
3208all-bfd: configure-bfd
3209 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3211 $(HOST_EXPORTS) \
3212 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3213 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3214 $(TARGET-bfd))
3215@endif bfd
6d389afc 3216
6d389afc 3217
2a4cbe27 3218
a90ef4bf
JM
3219.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3220.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3221maybe-all-stage1-bfd:
3222maybe-clean-stage1-bfd:
3223@if bfd-bootstrap
3224maybe-all-stage1-bfd: all-stage1-bfd
3225all-stage1: all-stage1-bfd
3226TARGET-stage1-bfd = $(TARGET-bfd)
3227all-stage1-bfd: configure-stage1-bfd
3228 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3229 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3231 TFLAGS="$(STAGE1_TFLAGS)"; \
3232 $(HOST_EXPORTS) \
3233 cd $(HOST_SUBDIR)/bfd && \
3234 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3235 CFLAGS="$(STAGE1_CFLAGS)" \
3236 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3237 LIBCFLAGS="$(LIBCFLAGS)" \
3238 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3239 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3240 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3241 $(EXTRA_HOST_FLAGS) \
3242 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3243 TFLAGS="$(STAGE1_TFLAGS)" \
3244 $(TARGET-stage1-bfd)
2a4cbe27 3245
a90ef4bf
JM
3246maybe-clean-stage1-bfd: clean-stage1-bfd
3247clean-stage1: clean-stage1-bfd
3248clean-stage1-bfd:
3249 @if [ $(current_stage) = stage1 ]; then \
3250 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3251 else \
3252 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3253 $(MAKE) stage1-start; \
3254 fi; \
3255 cd $(HOST_SUBDIR)/bfd && \
3256 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3257 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3258@endif bfd-bootstrap
2a4cbe27 3259
2a4cbe27 3260
a90ef4bf
JM
3261.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3262.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3263maybe-all-stage2-bfd:
3264maybe-clean-stage2-bfd:
3265@if bfd-bootstrap
3266maybe-all-stage2-bfd: all-stage2-bfd
3267all-stage2: all-stage2-bfd
3268TARGET-stage2-bfd = $(TARGET-bfd)
3269all-stage2-bfd: configure-stage2-bfd
3270 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3271 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3273 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3274 $(HOST_EXPORTS) \
a90ef4bf
JM
3275 $(POSTSTAGE1_HOST_EXPORTS) \
3276 cd $(HOST_SUBDIR)/bfd && \
3277 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3278 CFLAGS="$(STAGE2_CFLAGS)" \
3279 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3280 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3281 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3282 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3283 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3284 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3285 TFLAGS="$(STAGE2_TFLAGS)" \
3286 $(TARGET-stage2-bfd)
2a4cbe27 3287
a90ef4bf
JM
3288maybe-clean-stage2-bfd: clean-stage2-bfd
3289clean-stage2: clean-stage2-bfd
3290clean-stage2-bfd:
3291 @if [ $(current_stage) = stage2 ]; then \
3292 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3293 else \
3294 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3295 $(MAKE) stage2-start; \
3296 fi; \
3297 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3298 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3299@endif bfd-bootstrap
2a4cbe27 3300
a3ca38d2 3301
a90ef4bf
JM
3302.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3303.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3304maybe-all-stage3-bfd:
3305maybe-clean-stage3-bfd:
3306@if bfd-bootstrap
3307maybe-all-stage3-bfd: all-stage3-bfd
3308all-stage3: all-stage3-bfd
3309TARGET-stage3-bfd = $(TARGET-bfd)
3310all-stage3-bfd: configure-stage3-bfd
3311 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3312 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3314 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3315 $(HOST_EXPORTS) \
a90ef4bf
JM
3316 $(POSTSTAGE1_HOST_EXPORTS) \
3317 cd $(HOST_SUBDIR)/bfd && \
3318 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3319 CFLAGS="$(STAGE3_CFLAGS)" \
3320 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3321 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3322 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3323 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3324 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3325 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3326 TFLAGS="$(STAGE3_TFLAGS)" \
3327 $(TARGET-stage3-bfd)
a3ca38d2 3328
a90ef4bf
JM
3329maybe-clean-stage3-bfd: clean-stage3-bfd
3330clean-stage3: clean-stage3-bfd
3331clean-stage3-bfd:
3332 @if [ $(current_stage) = stage3 ]; then \
3333 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3334 else \
3335 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3336 $(MAKE) stage3-start; \
3337 fi; \
3338 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3339 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3340@endif bfd-bootstrap
a3ca38d2 3341
108a6f8e 3342
a90ef4bf
JM
3343.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3344.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3345maybe-all-stage4-bfd:
3346maybe-clean-stage4-bfd:
3347@if bfd-bootstrap
3348maybe-all-stage4-bfd: all-stage4-bfd
3349all-stage4: all-stage4-bfd
3350TARGET-stage4-bfd = $(TARGET-bfd)
3351all-stage4-bfd: configure-stage4-bfd
3352 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3353 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3355 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3356 $(HOST_EXPORTS) \
a90ef4bf
JM
3357 $(POSTSTAGE1_HOST_EXPORTS) \
3358 cd $(HOST_SUBDIR)/bfd && \
3359 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3360 CFLAGS="$(STAGE4_CFLAGS)" \
3361 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3362 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3363 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3364 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3365 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3366 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3367 TFLAGS="$(STAGE4_TFLAGS)" \
3368 $(TARGET-stage4-bfd)
108a6f8e 3369
a90ef4bf
JM
3370maybe-clean-stage4-bfd: clean-stage4-bfd
3371clean-stage4: clean-stage4-bfd
3372clean-stage4-bfd:
3373 @if [ $(current_stage) = stage4 ]; then \
3374 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3375 else \
3376 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3377 $(MAKE) stage4-start; \
3378 fi; \
3379 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3380 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3381@endif bfd-bootstrap
108a6f8e 3382
2a4cbe27 3383
a90ef4bf
JM
3384.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3385.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3386maybe-all-stageprofile-bfd:
3387maybe-clean-stageprofile-bfd:
3388@if bfd-bootstrap
3389maybe-all-stageprofile-bfd: all-stageprofile-bfd
3390all-stageprofile: all-stageprofile-bfd
3391TARGET-stageprofile-bfd = $(TARGET-bfd)
3392all-stageprofile-bfd: configure-stageprofile-bfd
3393 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3394 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3396 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3397 $(HOST_EXPORTS) \
a90ef4bf
JM
3398 $(POSTSTAGE1_HOST_EXPORTS) \
3399 cd $(HOST_SUBDIR)/bfd && \
3400 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3401 CFLAGS="$(STAGEprofile_CFLAGS)" \
3402 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3403 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3404 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3405 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3406 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3407 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3408 TFLAGS="$(STAGEprofile_TFLAGS)" \
3409 $(TARGET-stageprofile-bfd)
2a4cbe27 3410
a90ef4bf
JM
3411maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3412clean-stageprofile: clean-stageprofile-bfd
3413clean-stageprofile-bfd:
3414 @if [ $(current_stage) = stageprofile ]; then \
3415 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3416 else \
3417 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3418 $(MAKE) stageprofile-start; \
3419 fi; \
3420 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3421 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3422@endif bfd-bootstrap
2a4cbe27 3423
a7254363 3424
a90ef4bf
JM
3425.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3426.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3427maybe-all-stagefeedback-bfd:
3428maybe-clean-stagefeedback-bfd:
3429@if bfd-bootstrap
3430maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3431all-stagefeedback: all-stagefeedback-bfd
3432TARGET-stagefeedback-bfd = $(TARGET-bfd)
3433all-stagefeedback-bfd: configure-stagefeedback-bfd
3434 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3435 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3437 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3438 $(HOST_EXPORTS) \
3439 $(POSTSTAGE1_HOST_EXPORTS) \
3440 cd $(HOST_SUBDIR)/bfd && \
3441 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3442 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3443 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3444 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3445 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3446 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3447 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3448 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3449 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3450 $(TARGET-stagefeedback-bfd)
d545f33b 3451
a90ef4bf
JM
3452maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3453clean-stagefeedback: clean-stagefeedback-bfd
3454clean-stagefeedback-bfd:
3455 @if [ $(current_stage) = stagefeedback ]; then \
3456 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3457 else \
3458 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3459 $(MAKE) stagefeedback-start; \
3460 fi; \
3461 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3462 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3463@endif bfd-bootstrap
d545f33b 3464
2a4cbe27 3465
a7254363 3466
d545f33b
PB
3467
3468
a90ef4bf
JM
3469.PHONY: check-bfd maybe-check-bfd
3470maybe-check-bfd:
3471@if bfd
3472maybe-check-bfd: check-bfd
2a4cbe27 3473
a90ef4bf 3474check-bfd:
0aed8855 3475 @: $(MAKE); $(unstage)
4fa63067 3476 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3478 $(HOST_EXPORTS) \
a90ef4bf 3479 (cd $(HOST_SUBDIR)/bfd && \
b00612cc 3480 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 3481
a90ef4bf 3482@endif bfd
2a4cbe27 3483
a90ef4bf
JM
3484.PHONY: install-bfd maybe-install-bfd
3485maybe-install-bfd:
3486@if bfd
3487maybe-install-bfd: install-bfd
2a4cbe27 3488
a90ef4bf 3489install-bfd: installdirs
0aed8855 3490 @: $(MAKE); $(unstage)
4fa63067 3491 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3493 $(HOST_EXPORTS) \
a90ef4bf 3494 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3495 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3496
a90ef4bf 3497@endif bfd
2a4cbe27 3498
a90ef4bf
JM
3499.PHONY: install-strip-bfd maybe-install-strip-bfd
3500maybe-install-strip-bfd:
3501@if bfd
3502maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3503
a90ef4bf 3504install-strip-bfd: installdirs
9b980aa1
RW
3505 @: $(MAKE); $(unstage)
3506 @r=`${PWD_COMMAND}`; export r; \
3507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3508 $(HOST_EXPORTS) \
a90ef4bf 3509 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3510 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3511
a90ef4bf 3512@endif bfd
9b980aa1 3513
56a8fe78 3514# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3515
a90ef4bf
JM
3516.PHONY: maybe-info-bfd info-bfd
3517maybe-info-bfd:
3518@if bfd
3519maybe-info-bfd: info-bfd
4fa63067 3520
a90ef4bf
JM
3521info-bfd: \
3522 configure-bfd
3523 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3524 r=`${PWD_COMMAND}`; export r; \
3525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3526 $(HOST_EXPORTS) \
b813574b 3527 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3529 done; \
a90ef4bf
JM
3530 echo "Doing info in bfd" ; \
3531 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3534 "RANLIB=$${RANLIB}" \
0c24b341 3535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3536 info) \
2a4cbe27
NN
3537 || exit 1
3538
a90ef4bf 3539@endif bfd
2a4cbe27 3540
a90ef4bf
JM
3541.PHONY: maybe-dvi-bfd dvi-bfd
3542maybe-dvi-bfd:
3543@if bfd
3544maybe-dvi-bfd: dvi-bfd
2a4cbe27 3545
a90ef4bf
JM
3546dvi-bfd: \
3547 configure-bfd
3548 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3549 r=`${PWD_COMMAND}`; export r; \
3550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3551 $(HOST_EXPORTS) \
b813574b 3552 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3554 done; \
a90ef4bf
JM
3555 echo "Doing dvi in bfd" ; \
3556 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3559 "RANLIB=$${RANLIB}" \
0c24b341 3560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3561 dvi) \
2a4cbe27
NN
3562 || exit 1
3563
a90ef4bf 3564@endif bfd
2a4cbe27 3565
a90ef4bf
JM
3566.PHONY: maybe-pdf-bfd pdf-bfd
3567maybe-pdf-bfd:
3568@if bfd
3569maybe-pdf-bfd: pdf-bfd
56a8fe78 3570
a90ef4bf
JM
3571pdf-bfd: \
3572 configure-bfd
3573 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3574 r=`${PWD_COMMAND}`; export r; \
3575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3576 $(HOST_EXPORTS) \
3577 for flag in $(EXTRA_HOST_FLAGS) ; do \
3578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3579 done; \
a90ef4bf
JM
3580 echo "Doing pdf in bfd" ; \
3581 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3584 "RANLIB=$${RANLIB}" \
0c24b341 3585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3586 pdf) \
3587 || exit 1
3588
a90ef4bf 3589@endif bfd
56a8fe78 3590
a90ef4bf
JM
3591.PHONY: maybe-html-bfd html-bfd
3592maybe-html-bfd:
3593@if bfd
3594maybe-html-bfd: html-bfd
6d389afc 3595
a90ef4bf
JM
3596html-bfd: \
3597 configure-bfd
3598 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3599 r=`${PWD_COMMAND}`; export r; \
3600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3601 $(HOST_EXPORTS) \
3602 for flag in $(EXTRA_HOST_FLAGS) ; do \
3603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3604 done; \
a90ef4bf
JM
3605 echo "Doing html in bfd" ; \
3606 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3609 "RANLIB=$${RANLIB}" \
0c24b341 3610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3611 html) \
3612 || exit 1
3613
a90ef4bf 3614@endif bfd
6d389afc 3615
a90ef4bf
JM
3616.PHONY: maybe-TAGS-bfd TAGS-bfd
3617maybe-TAGS-bfd:
3618@if bfd
3619maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3620
a90ef4bf
JM
3621TAGS-bfd: \
3622 configure-bfd
3623 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3624 r=`${PWD_COMMAND}`; export r; \
3625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3626 $(HOST_EXPORTS) \
b813574b 3627 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3629 done; \
a90ef4bf
JM
3630 echo "Doing TAGS in bfd" ; \
3631 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3634 "RANLIB=$${RANLIB}" \
0c24b341 3635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3636 TAGS) \
2a4cbe27
NN
3637 || exit 1
3638
a90ef4bf 3639@endif bfd
2a4cbe27 3640
a90ef4bf
JM
3641.PHONY: maybe-install-info-bfd install-info-bfd
3642maybe-install-info-bfd:
3643@if bfd
3644maybe-install-info-bfd: install-info-bfd
2a4cbe27 3645
a90ef4bf
JM
3646install-info-bfd: \
3647 configure-bfd \
3648 info-bfd
3649 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3650 r=`${PWD_COMMAND}`; export r; \
3651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3652 $(HOST_EXPORTS) \
b813574b 3653 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3655 done; \
a90ef4bf
JM
3656 echo "Doing install-info in bfd" ; \
3657 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3660 "RANLIB=$${RANLIB}" \
0c24b341 3661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3662 install-info) \
2a4cbe27
NN
3663 || exit 1
3664
a90ef4bf 3665@endif bfd
2a4cbe27 3666
a90ef4bf
JM
3667.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3668maybe-install-pdf-bfd:
3669@if bfd
3670maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3671
a90ef4bf
JM
3672install-pdf-bfd: \
3673 configure-bfd \
3674 pdf-bfd
3675 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3676 r=`${PWD_COMMAND}`; export r; \
3677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3678 $(HOST_EXPORTS) \
3679 for flag in $(EXTRA_HOST_FLAGS) ; do \
3680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3681 done; \
a90ef4bf
JM
3682 echo "Doing install-pdf in bfd" ; \
3683 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3686 "RANLIB=$${RANLIB}" \
0c24b341 3687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3688 install-pdf) \
3689 || exit 1
3690
a90ef4bf 3691@endif bfd
a3ca38d2 3692
a90ef4bf
JM
3693.PHONY: maybe-install-html-bfd install-html-bfd
3694maybe-install-html-bfd:
3695@if bfd
3696maybe-install-html-bfd: install-html-bfd
108a6f8e 3697
a90ef4bf
JM
3698install-html-bfd: \
3699 configure-bfd \
3700 html-bfd
3701 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3702 r=`${PWD_COMMAND}`; export r; \
3703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3704 $(HOST_EXPORTS) \
3705 for flag in $(EXTRA_HOST_FLAGS) ; do \
3706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3707 done; \
a90ef4bf
JM
3708 echo "Doing install-html in bfd" ; \
3709 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3712 "RANLIB=$${RANLIB}" \
0c24b341 3713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3714 install-html) \
3715 || exit 1
3716
a90ef4bf 3717@endif bfd
108a6f8e 3718
a90ef4bf
JM
3719.PHONY: maybe-installcheck-bfd installcheck-bfd
3720maybe-installcheck-bfd:
3721@if bfd
3722maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3723
a90ef4bf
JM
3724installcheck-bfd: \
3725 configure-bfd
3726 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3727 r=`${PWD_COMMAND}`; export r; \
3728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3729 $(HOST_EXPORTS) \
b813574b 3730 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3732 done; \
a90ef4bf
JM
3733 echo "Doing installcheck in bfd" ; \
3734 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3737 "RANLIB=$${RANLIB}" \
0c24b341 3738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3739 installcheck) \
2a4cbe27
NN
3740 || exit 1
3741
a90ef4bf 3742@endif bfd
2a4cbe27 3743
a90ef4bf
JM
3744.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3745maybe-mostlyclean-bfd:
3746@if bfd
3747maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3748
a90ef4bf
JM
3749mostlyclean-bfd:
3750 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3751 r=`${PWD_COMMAND}`; export r; \
3752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3753 $(HOST_EXPORTS) \
b813574b 3754 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3756 done; \
a90ef4bf
JM
3757 echo "Doing mostlyclean in bfd" ; \
3758 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3761 "RANLIB=$${RANLIB}" \
0c24b341 3762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3763 mostlyclean) \
2a4cbe27
NN
3764 || exit 1
3765
a90ef4bf 3766@endif bfd
2a4cbe27 3767
a90ef4bf
JM
3768.PHONY: maybe-clean-bfd clean-bfd
3769maybe-clean-bfd:
3770@if bfd
3771maybe-clean-bfd: clean-bfd
2a4cbe27 3772
a90ef4bf
JM
3773clean-bfd:
3774 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3775 r=`${PWD_COMMAND}`; export r; \
3776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3777 $(HOST_EXPORTS) \
b813574b 3778 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3780 done; \
a90ef4bf
JM
3781 echo "Doing clean in bfd" ; \
3782 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
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}" \
b813574b 3787 clean) \
2a4cbe27
NN
3788 || exit 1
3789
a90ef4bf 3790@endif bfd
2a4cbe27 3791
a90ef4bf
JM
3792.PHONY: maybe-distclean-bfd distclean-bfd
3793maybe-distclean-bfd:
3794@if bfd
3795maybe-distclean-bfd: distclean-bfd
2a4cbe27 3796
a90ef4bf
JM
3797distclean-bfd:
3798 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3799 r=`${PWD_COMMAND}`; export r; \
3800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3801 $(HOST_EXPORTS) \
b813574b 3802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3804 done; \
a90ef4bf
JM
3805 echo "Doing distclean in bfd" ; \
3806 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3809 "RANLIB=$${RANLIB}" \
0c24b341 3810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3811 distclean) \
2a4cbe27
NN
3812 || exit 1
3813
a90ef4bf 3814@endif bfd
2a4cbe27 3815
a90ef4bf
JM
3816.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3817maybe-maintainer-clean-bfd:
3818@if bfd
3819maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 3820
a90ef4bf
JM
3821maintainer-clean-bfd:
3822 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3823 r=`${PWD_COMMAND}`; export r; \
3824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3825 $(HOST_EXPORTS) \
b813574b 3826 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3828 done; \
a90ef4bf
JM
3829 echo "Doing maintainer-clean in bfd" ; \
3830 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3833 "RANLIB=$${RANLIB}" \
0c24b341 3834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3835 maintainer-clean) \
2a4cbe27
NN
3836 || exit 1
3837
a90ef4bf 3838@endif bfd
2a4cbe27 3839
2a4cbe27 3840
a7254363 3841
a90ef4bf
JM
3842.PHONY: configure-opcodes maybe-configure-opcodes
3843maybe-configure-opcodes:
4f0ef2d8 3844@if gcc-bootstrap
a90ef4bf 3845configure-opcodes: stage_current
4f0ef2d8 3846@endif gcc-bootstrap
a90ef4bf
JM
3847@if opcodes
3848maybe-configure-opcodes: configure-opcodes
3849configure-opcodes:
c52c6897 3850 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3852 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3853 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
1f53ca9a 3854 $(HOST_EXPORTS) \
a90ef4bf
JM
3855 echo Configuring in $(HOST_SUBDIR)/opcodes; \
3856 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 3857 case $(srcdir) in \
b00612cc 3858 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3859 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 3860 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3861 esac; \
a90ef4bf
JM
3862 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3863 libsrcdir="$$s/opcodes"; \
4fa63067 3864 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
3865 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3866 --target=${target_alias} $${srcdiroption} \
2a4cbe27 3867 || exit 1
a90ef4bf 3868@endif opcodes
a7254363 3869
d545f33b
PB
3870
3871
a90ef4bf
JM
3872.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
3873maybe-configure-stage1-opcodes:
3874@if opcodes-bootstrap
3875maybe-configure-stage1-opcodes: configure-stage1-opcodes
3876configure-stage1-opcodes:
3877 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3878 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
3879 @r=`${PWD_COMMAND}`; export r; \
3880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3881 TFLAGS="$(STAGE1_TFLAGS)"; \
3882 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
3883 $(HOST_EXPORTS) \
3884 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3885 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3886 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
3887 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
3888 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3889 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3890 case $(srcdir) in \
3891 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3892 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3893 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3894 esac; \
3895 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3896 libsrcdir="$$s/opcodes"; \
3897 $(SHELL) $${libsrcdir}/configure \
3898 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3899 --target=${target_alias} $${srcdiroption} \
3900 $(STAGE1_CONFIGURE_FLAGS)
3901@endif opcodes-bootstrap
2a4cbe27 3902
a90ef4bf
JM
3903.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
3904maybe-configure-stage2-opcodes:
3905@if opcodes-bootstrap
3906maybe-configure-stage2-opcodes: configure-stage2-opcodes
3907configure-stage2-opcodes:
3908 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3909 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 3910 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3912 TFLAGS="$(STAGE2_TFLAGS)"; \
3913 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 3914 $(HOST_EXPORTS) \
a90ef4bf
JM
3915 $(POSTSTAGE1_HOST_EXPORTS) \
3916 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3917 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3918 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
3919 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
3920 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3921 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3922 case $(srcdir) in \
3923 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3924 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3925 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3926 esac; \
3927 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3928 libsrcdir="$$s/opcodes"; \
3929 $(SHELL) $${libsrcdir}/configure \
3930 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3931 --target=${target_alias} $${srcdiroption} \
3932 --with-build-libsubdir=$(HOST_SUBDIR) \
3933 $(STAGE2_CONFIGURE_FLAGS)
3934@endif opcodes-bootstrap
2a4cbe27 3935
a90ef4bf
JM
3936.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
3937maybe-configure-stage3-opcodes:
3938@if opcodes-bootstrap
3939maybe-configure-stage3-opcodes: configure-stage3-opcodes
3940configure-stage3-opcodes:
3941 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3942 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
3943 @r=`${PWD_COMMAND}`; export r; \
3944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3945 TFLAGS="$(STAGE3_TFLAGS)"; \
3946 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 3947 $(HOST_EXPORTS) \
a90ef4bf
JM
3948 $(POSTSTAGE1_HOST_EXPORTS) \
3949 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3950 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3951 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
3952 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
3953 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3954 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3955 case $(srcdir) in \
3956 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3957 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3958 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3959 esac; \
3960 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3961 libsrcdir="$$s/opcodes"; \
3962 $(SHELL) $${libsrcdir}/configure \
3963 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3964 --target=${target_alias} $${srcdiroption} \
3965 --with-build-libsubdir=$(HOST_SUBDIR) \
3966 $(STAGE3_CONFIGURE_FLAGS)
3967@endif opcodes-bootstrap
9b980aa1 3968
a90ef4bf
JM
3969.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
3970maybe-configure-stage4-opcodes:
3971@if opcodes-bootstrap
3972maybe-configure-stage4-opcodes: configure-stage4-opcodes
3973configure-stage4-opcodes:
3974 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3975 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
3976 @r=`${PWD_COMMAND}`; export r; \
3977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3978 TFLAGS="$(STAGE4_TFLAGS)"; \
3979 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 3980 $(HOST_EXPORTS) \
a90ef4bf
JM
3981 $(POSTSTAGE1_HOST_EXPORTS) \
3982 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3983 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3984 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
3985 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
3986 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
3987 cd $(HOST_SUBDIR)/opcodes || exit 1; \
3988 case $(srcdir) in \
3989 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3990 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
3991 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3992 esac; \
3993 srcdiroption="--srcdir=$${topdir}/opcodes"; \
3994 libsrcdir="$$s/opcodes"; \
3995 $(SHELL) $${libsrcdir}/configure \
3996 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3997 --target=${target_alias} $${srcdiroption} \
3998 --with-build-libsubdir=$(HOST_SUBDIR) \
3999 $(STAGE4_CONFIGURE_FLAGS)
4000@endif opcodes-bootstrap
4fa63067 4001
a90ef4bf
JM
4002.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4003maybe-configure-stageprofile-opcodes:
4004@if opcodes-bootstrap
4005maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4006configure-stageprofile-opcodes:
4007 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4008 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4009 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4011 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4012 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4013 $(HOST_EXPORTS) \
a90ef4bf
JM
4014 $(POSTSTAGE1_HOST_EXPORTS) \
4015 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4016 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4017 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
4018 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
4019 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4020 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4021 case $(srcdir) in \
4022 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4023 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4024 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4025 esac; \
4026 srcdiroption="--srcdir=$${topdir}/opcodes"; \
4027 libsrcdir="$$s/opcodes"; \
4028 $(SHELL) $${libsrcdir}/configure \
4029 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4030 --target=${target_alias} $${srcdiroption} \
4031 --with-build-libsubdir=$(HOST_SUBDIR) \
4032 $(STAGEprofile_CONFIGURE_FLAGS)
4033@endif opcodes-bootstrap
4034
4035.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4036maybe-configure-stagefeedback-opcodes:
4037@if opcodes-bootstrap
4038maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4039configure-stagefeedback-opcodes:
4040 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4041 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4042 @r=`${PWD_COMMAND}`; export r; \
4043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4044 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4045 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4046 $(HOST_EXPORTS) \
4047 $(POSTSTAGE1_HOST_EXPORTS) \
4048 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4049 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4050 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
4051 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
4052 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4053 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4054 case $(srcdir) in \
4055 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4056 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4057 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4058 esac; \
4059 srcdiroption="--srcdir=$${topdir}/opcodes"; \
4060 libsrcdir="$$s/opcodes"; \
4061 $(SHELL) $${libsrcdir}/configure \
4062 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4063 --target=${target_alias} $${srcdiroption} \
4064 --with-build-libsubdir=$(HOST_SUBDIR) \
4065 $(STAGEfeedback_CONFIGURE_FLAGS)
4066@endif opcodes-bootstrap
4067
4068
4069
4070
4071
4072.PHONY: all-opcodes maybe-all-opcodes
4073maybe-all-opcodes:
4074@if gcc-bootstrap
4075all-opcodes: stage_current
4076@endif gcc-bootstrap
4077@if opcodes
4078TARGET-opcodes=all
4079maybe-all-opcodes: all-opcodes
4080all-opcodes: configure-opcodes
4081 @r=`${PWD_COMMAND}`; export r; \
4082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4083 $(HOST_EXPORTS) \
4084 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4085 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4086 $(TARGET-opcodes))
4087@endif opcodes
4088
4089
4090
4091.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4092.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4093maybe-all-stage1-opcodes:
4094maybe-clean-stage1-opcodes:
4095@if opcodes-bootstrap
4096maybe-all-stage1-opcodes: all-stage1-opcodes
4097all-stage1: all-stage1-opcodes
4098TARGET-stage1-opcodes = $(TARGET-opcodes)
4099all-stage1-opcodes: configure-stage1-opcodes
4100 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4101 @r=`${PWD_COMMAND}`; export r; \
4102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4103 TFLAGS="$(STAGE1_TFLAGS)"; \
4104 $(HOST_EXPORTS) \
4105 cd $(HOST_SUBDIR)/opcodes && \
4106 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4107 CFLAGS="$(STAGE1_CFLAGS)" \
4108 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4109 LIBCFLAGS="$(LIBCFLAGS)" \
4110 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4111 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4112 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4113 $(EXTRA_HOST_FLAGS) \
4114 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4115 TFLAGS="$(STAGE1_TFLAGS)" \
4116 $(TARGET-stage1-opcodes)
4117
4118maybe-clean-stage1-opcodes: clean-stage1-opcodes
4119clean-stage1: clean-stage1-opcodes
4120clean-stage1-opcodes:
4121 @if [ $(current_stage) = stage1 ]; then \
4122 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4123 else \
4124 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4125 $(MAKE) stage1-start; \
4126 fi; \
4127 cd $(HOST_SUBDIR)/opcodes && \
4128 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4129 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4130@endif opcodes-bootstrap
4131
4132
4133.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4134.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4135maybe-all-stage2-opcodes:
4136maybe-clean-stage2-opcodes:
4137@if opcodes-bootstrap
4138maybe-all-stage2-opcodes: all-stage2-opcodes
4139all-stage2: all-stage2-opcodes
4140TARGET-stage2-opcodes = $(TARGET-opcodes)
4141all-stage2-opcodes: configure-stage2-opcodes
4142 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4143 @r=`${PWD_COMMAND}`; export r; \
4144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4145 TFLAGS="$(STAGE2_TFLAGS)"; \
4146 $(HOST_EXPORTS) \
4147 $(POSTSTAGE1_HOST_EXPORTS) \
4148 cd $(HOST_SUBDIR)/opcodes && \
4149 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4150 CFLAGS="$(STAGE2_CFLAGS)" \
4151 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4152 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4153 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4154 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4155 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4156 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4157 TFLAGS="$(STAGE2_TFLAGS)" \
4158 $(TARGET-stage2-opcodes)
4159
4160maybe-clean-stage2-opcodes: clean-stage2-opcodes
4161clean-stage2: clean-stage2-opcodes
4162clean-stage2-opcodes:
4163 @if [ $(current_stage) = stage2 ]; then \
4164 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4165 else \
4166 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4167 $(MAKE) stage2-start; \
4168 fi; \
4169 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4170 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4171@endif opcodes-bootstrap
4172
4173
4174.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4175.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4176maybe-all-stage3-opcodes:
4177maybe-clean-stage3-opcodes:
4178@if opcodes-bootstrap
4179maybe-all-stage3-opcodes: all-stage3-opcodes
4180all-stage3: all-stage3-opcodes
4181TARGET-stage3-opcodes = $(TARGET-opcodes)
4182all-stage3-opcodes: configure-stage3-opcodes
4183 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4184 @r=`${PWD_COMMAND}`; export r; \
4185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4186 TFLAGS="$(STAGE3_TFLAGS)"; \
4187 $(HOST_EXPORTS) \
4188 $(POSTSTAGE1_HOST_EXPORTS) \
4189 cd $(HOST_SUBDIR)/opcodes && \
4190 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4191 CFLAGS="$(STAGE3_CFLAGS)" \
4192 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4193 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4194 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4195 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4196 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4197 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4198 TFLAGS="$(STAGE3_TFLAGS)" \
4199 $(TARGET-stage3-opcodes)
4200
4201maybe-clean-stage3-opcodes: clean-stage3-opcodes
4202clean-stage3: clean-stage3-opcodes
4203clean-stage3-opcodes:
4204 @if [ $(current_stage) = stage3 ]; then \
4205 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4206 else \
4207 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4208 $(MAKE) stage3-start; \
4209 fi; \
4210 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4211 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4212@endif opcodes-bootstrap
4213
4214
4215.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4216.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4217maybe-all-stage4-opcodes:
4218maybe-clean-stage4-opcodes:
4219@if opcodes-bootstrap
4220maybe-all-stage4-opcodes: all-stage4-opcodes
4221all-stage4: all-stage4-opcodes
4222TARGET-stage4-opcodes = $(TARGET-opcodes)
4223all-stage4-opcodes: configure-stage4-opcodes
4224 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4225 @r=`${PWD_COMMAND}`; export r; \
4226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4227 TFLAGS="$(STAGE4_TFLAGS)"; \
4228 $(HOST_EXPORTS) \
4229 $(POSTSTAGE1_HOST_EXPORTS) \
4230 cd $(HOST_SUBDIR)/opcodes && \
4231 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4232 CFLAGS="$(STAGE4_CFLAGS)" \
4233 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4234 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4235 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4236 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4237 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4238 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4239 TFLAGS="$(STAGE4_TFLAGS)" \
4240 $(TARGET-stage4-opcodes)
4241
4242maybe-clean-stage4-opcodes: clean-stage4-opcodes
4243clean-stage4: clean-stage4-opcodes
4244clean-stage4-opcodes:
4245 @if [ $(current_stage) = stage4 ]; then \
4246 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4247 else \
4248 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4249 $(MAKE) stage4-start; \
4250 fi; \
4251 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4252 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4253@endif opcodes-bootstrap
4254
4255
4256.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4257.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4258maybe-all-stageprofile-opcodes:
4259maybe-clean-stageprofile-opcodes:
4260@if opcodes-bootstrap
4261maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4262all-stageprofile: all-stageprofile-opcodes
4263TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4264all-stageprofile-opcodes: configure-stageprofile-opcodes
4265 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4266 @r=`${PWD_COMMAND}`; export r; \
4267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4268 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4269 $(HOST_EXPORTS) \
4270 $(POSTSTAGE1_HOST_EXPORTS) \
4271 cd $(HOST_SUBDIR)/opcodes && \
4272 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4273 CFLAGS="$(STAGEprofile_CFLAGS)" \
4274 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4275 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4276 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4277 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4278 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4279 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4280 TFLAGS="$(STAGEprofile_TFLAGS)" \
4281 $(TARGET-stageprofile-opcodes)
4282
4283maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4284clean-stageprofile: clean-stageprofile-opcodes
4285clean-stageprofile-opcodes:
4286 @if [ $(current_stage) = stageprofile ]; then \
4287 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4288 else \
4289 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4290 $(MAKE) stageprofile-start; \
4291 fi; \
4292 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4293 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4294@endif opcodes-bootstrap
4295
4296
4297.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4298.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4299maybe-all-stagefeedback-opcodes:
4300maybe-clean-stagefeedback-opcodes:
4301@if opcodes-bootstrap
4302maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4303all-stagefeedback: all-stagefeedback-opcodes
4304TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4305all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4306 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4307 @r=`${PWD_COMMAND}`; export r; \
4308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4309 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4310 $(HOST_EXPORTS) \
4311 $(POSTSTAGE1_HOST_EXPORTS) \
4312 cd $(HOST_SUBDIR)/opcodes && \
4313 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4314 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4315 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4316 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4317 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4318 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4319 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4320 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4321 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4322 $(TARGET-stagefeedback-opcodes)
4323
4324maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4325clean-stagefeedback: clean-stagefeedback-opcodes
4326clean-stagefeedback-opcodes:
4327 @if [ $(current_stage) = stagefeedback ]; then \
4328 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4329 else \
4330 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4331 $(MAKE) stagefeedback-start; \
4332 fi; \
4333 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4334 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4335@endif opcodes-bootstrap
4336
4337
4338
4339
4340
4341.PHONY: check-opcodes maybe-check-opcodes
4342maybe-check-opcodes:
4343@if opcodes
4344maybe-check-opcodes: check-opcodes
4345
4346check-opcodes:
0aed8855 4347 @: $(MAKE); $(unstage)
a90ef4bf 4348 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4350 $(HOST_EXPORTS) \
a90ef4bf
JM
4351 (cd $(HOST_SUBDIR)/opcodes && \
4352 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 4353
a90ef4bf 4354@endif opcodes
2a4cbe27 4355
a90ef4bf
JM
4356.PHONY: install-opcodes maybe-install-opcodes
4357maybe-install-opcodes:
4358@if opcodes
4359maybe-install-opcodes: install-opcodes
56a8fe78 4360
a90ef4bf 4361install-opcodes: installdirs
56a8fe78 4362 @: $(MAKE); $(unstage)
a90ef4bf 4363 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4365 $(HOST_EXPORTS) \
a90ef4bf
JM
4366 (cd $(HOST_SUBDIR)/opcodes && \
4367 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4368
a90ef4bf 4369@endif opcodes
56a8fe78 4370
a90ef4bf
JM
4371.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4372maybe-install-strip-opcodes:
4373@if opcodes
4374maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4375
a90ef4bf 4376install-strip-opcodes: installdirs
0aed8855 4377 @: $(MAKE); $(unstage)
a90ef4bf
JM
4378 @r=`${PWD_COMMAND}`; export r; \
4379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4380 $(HOST_EXPORTS) \
4381 (cd $(HOST_SUBDIR)/opcodes && \
4382 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4383
4384@endif opcodes
4385
4386# Other targets (info, dvi, pdf, etc.)
4387
4388.PHONY: maybe-info-opcodes info-opcodes
4389maybe-info-opcodes:
4390@if opcodes
4391maybe-info-opcodes: info-opcodes
4392
4393info-opcodes: \
4394 configure-opcodes
4395 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4396 r=`${PWD_COMMAND}`; export r; \
4397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4398 $(HOST_EXPORTS) \
4399 for flag in $(EXTRA_HOST_FLAGS) ; do \
4400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4401 done; \
a90ef4bf
JM
4402 echo "Doing info in opcodes" ; \
4403 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4406 "RANLIB=$${RANLIB}" \
0c24b341 4407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4408 info) \
6d389afc
MS
4409 || exit 1
4410
a90ef4bf 4411@endif opcodes
6d389afc 4412
a90ef4bf
JM
4413.PHONY: maybe-dvi-opcodes dvi-opcodes
4414maybe-dvi-opcodes:
4415@if opcodes
4416maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4417
a90ef4bf
JM
4418dvi-opcodes: \
4419 configure-opcodes
4420 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4421 r=`${PWD_COMMAND}`; export r; \
4422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4423 $(HOST_EXPORTS) \
b813574b 4424 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4426 done; \
a90ef4bf
JM
4427 echo "Doing dvi in opcodes" ; \
4428 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4431 "RANLIB=$${RANLIB}" \
0c24b341 4432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4433 dvi) \
2a4cbe27
NN
4434 || exit 1
4435
a90ef4bf 4436@endif opcodes
2a4cbe27 4437
a90ef4bf
JM
4438.PHONY: maybe-pdf-opcodes pdf-opcodes
4439maybe-pdf-opcodes:
4440@if opcodes
4441maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4442
a90ef4bf
JM
4443pdf-opcodes: \
4444 configure-opcodes
4445 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4446 r=`${PWD_COMMAND}`; export r; \
4447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4448 $(HOST_EXPORTS) \
b813574b 4449 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4451 done; \
a90ef4bf
JM
4452 echo "Doing pdf in opcodes" ; \
4453 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4456 "RANLIB=$${RANLIB}" \
0c24b341 4457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4458 pdf) \
2a4cbe27
NN
4459 || exit 1
4460
a90ef4bf 4461@endif opcodes
2a4cbe27 4462
a90ef4bf
JM
4463.PHONY: maybe-html-opcodes html-opcodes
4464maybe-html-opcodes:
4465@if opcodes
4466maybe-html-opcodes: html-opcodes
a3ca38d2 4467
a90ef4bf
JM
4468html-opcodes: \
4469 configure-opcodes
4470 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4471 r=`${PWD_COMMAND}`; export r; \
4472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4473 $(HOST_EXPORTS) \
4474 for flag in $(EXTRA_HOST_FLAGS) ; do \
4475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4476 done; \
a90ef4bf
JM
4477 echo "Doing html in opcodes" ; \
4478 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4481 "RANLIB=$${RANLIB}" \
0c24b341 4482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4483 html) \
a3ca38d2
DD
4484 || exit 1
4485
a90ef4bf 4486@endif opcodes
a3ca38d2 4487
a90ef4bf
JM
4488.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4489maybe-TAGS-opcodes:
4490@if opcodes
4491maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4492
a90ef4bf
JM
4493TAGS-opcodes: \
4494 configure-opcodes
4495 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4496 r=`${PWD_COMMAND}`; export r; \
4497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4498 $(HOST_EXPORTS) \
4499 for flag in $(EXTRA_HOST_FLAGS) ; do \
4500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4501 done; \
a90ef4bf
JM
4502 echo "Doing TAGS in opcodes" ; \
4503 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4506 "RANLIB=$${RANLIB}" \
0c24b341 4507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4508 TAGS) \
108a6f8e
CD
4509 || exit 1
4510
a90ef4bf 4511@endif opcodes
108a6f8e 4512
a90ef4bf
JM
4513.PHONY: maybe-install-info-opcodes install-info-opcodes
4514maybe-install-info-opcodes:
4515@if opcodes
4516maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4517
a90ef4bf
JM
4518install-info-opcodes: \
4519 configure-opcodes \
4520 info-opcodes
4521 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4522 r=`${PWD_COMMAND}`; export r; \
4523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4524 $(HOST_EXPORTS) \
b813574b 4525 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4527 done; \
a90ef4bf
JM
4528 echo "Doing install-info in opcodes" ; \
4529 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4532 "RANLIB=$${RANLIB}" \
0c24b341 4533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4534 install-info) \
2a4cbe27
NN
4535 || exit 1
4536
a90ef4bf 4537@endif opcodes
2a4cbe27 4538
a90ef4bf
JM
4539.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4540maybe-install-pdf-opcodes:
4541@if opcodes
4542maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4543
a90ef4bf
JM
4544install-pdf-opcodes: \
4545 configure-opcodes \
4546 pdf-opcodes
4547 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4548 r=`${PWD_COMMAND}`; export r; \
4549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4550 $(HOST_EXPORTS) \
b813574b 4551 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4553 done; \
a90ef4bf
JM
4554 echo "Doing install-pdf in opcodes" ; \
4555 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4558 "RANLIB=$${RANLIB}" \
0c24b341 4559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4560 install-pdf) \
2a4cbe27
NN
4561 || exit 1
4562
a90ef4bf 4563@endif opcodes
2a4cbe27 4564
a90ef4bf
JM
4565.PHONY: maybe-install-html-opcodes install-html-opcodes
4566maybe-install-html-opcodes:
4567@if opcodes
4568maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4569
a90ef4bf
JM
4570install-html-opcodes: \
4571 configure-opcodes \
4572 html-opcodes
4573 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4574 r=`${PWD_COMMAND}`; export r; \
4575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4576 $(HOST_EXPORTS) \
b813574b 4577 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4579 done; \
a90ef4bf
JM
4580 echo "Doing install-html in opcodes" ; \
4581 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
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 install-html) \
2a4cbe27
NN
4587 || exit 1
4588
a90ef4bf 4589@endif opcodes
2a4cbe27 4590
a90ef4bf
JM
4591.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4592maybe-installcheck-opcodes:
4593@if opcodes
4594maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4595
a90ef4bf
JM
4596installcheck-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 installcheck 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 installcheck) \
2a4cbe27
NN
4612 || exit 1
4613
a90ef4bf 4614@endif opcodes
2a4cbe27 4615
a90ef4bf
JM
4616.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4617maybe-mostlyclean-opcodes:
4618@if opcodes
4619maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4620
a90ef4bf
JM
4621mostlyclean-opcodes:
4622 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4623 r=`${PWD_COMMAND}`; export r; \
4624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4625 $(HOST_EXPORTS) \
b813574b 4626 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4628 done; \
a90ef4bf
JM
4629 echo "Doing mostlyclean in opcodes" ; \
4630 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4633 "RANLIB=$${RANLIB}" \
0c24b341 4634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4635 mostlyclean) \
2a4cbe27
NN
4636 || exit 1
4637
a90ef4bf 4638@endif opcodes
2a4cbe27 4639
a90ef4bf
JM
4640.PHONY: maybe-clean-opcodes clean-opcodes
4641maybe-clean-opcodes:
4642@if opcodes
4643maybe-clean-opcodes: clean-opcodes
2a4cbe27 4644
a90ef4bf
JM
4645clean-opcodes:
4646 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4647 r=`${PWD_COMMAND}`; export r; \
4648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4649 $(HOST_EXPORTS) \
b813574b 4650 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4652 done; \
a90ef4bf
JM
4653 echo "Doing clean in opcodes" ; \
4654 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4657 "RANLIB=$${RANLIB}" \
0c24b341 4658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4659 clean) \
2a4cbe27
NN
4660 || exit 1
4661
a90ef4bf 4662@endif opcodes
2a4cbe27 4663
a90ef4bf
JM
4664.PHONY: maybe-distclean-opcodes distclean-opcodes
4665maybe-distclean-opcodes:
4666@if opcodes
4667maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4668
a90ef4bf
JM
4669distclean-opcodes:
4670 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4671 r=`${PWD_COMMAND}`; export r; \
4672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4673 $(HOST_EXPORTS) \
b813574b 4674 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4676 done; \
a90ef4bf
JM
4677 echo "Doing distclean in opcodes" ; \
4678 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4681 "RANLIB=$${RANLIB}" \
0c24b341 4682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4683 distclean) \
2a4cbe27
NN
4684 || exit 1
4685
a90ef4bf 4686@endif opcodes
2a4cbe27 4687
a90ef4bf
JM
4688.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4689maybe-maintainer-clean-opcodes:
4690@if opcodes
4691maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4692
a90ef4bf
JM
4693maintainer-clean-opcodes:
4694 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4695 r=`${PWD_COMMAND}`; export r; \
4696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4697 $(HOST_EXPORTS) \
b813574b 4698 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4700 done; \
a90ef4bf
JM
4701 echo "Doing maintainer-clean in opcodes" ; \
4702 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4705 "RANLIB=$${RANLIB}" \
0c24b341 4706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4707 maintainer-clean) \
2a4cbe27
NN
4708 || exit 1
4709
a90ef4bf 4710@endif opcodes
2a4cbe27 4711
2a4cbe27 4712
a7254363 4713
a90ef4bf
JM
4714.PHONY: configure-binutils maybe-configure-binutils
4715maybe-configure-binutils:
4f0ef2d8 4716@if gcc-bootstrap
a90ef4bf 4717configure-binutils: stage_current
4f0ef2d8 4718@endif gcc-bootstrap
a90ef4bf
JM
4719@if binutils
4720maybe-configure-binutils: configure-binutils
4721configure-binutils:
c52c6897
PB
4722 @r=`${PWD_COMMAND}`; export r; \
4723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4724 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
4725 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
1f53ca9a 4726 $(HOST_EXPORTS) \
a90ef4bf
JM
4727 echo Configuring in $(HOST_SUBDIR)/binutils; \
4728 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4729 case $(srcdir) in \
b00612cc 4730 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4731 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4732 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4733 esac; \
a90ef4bf
JM
4734 srcdiroption="--srcdir=$${topdir}/binutils"; \
4735 libsrcdir="$$s/binutils"; \
4fa63067 4736 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
4737 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4738 --target=${target_alias} $${srcdiroption} \
2a4cbe27 4739 || exit 1
a90ef4bf 4740@endif binutils
2a4cbe27 4741
a7254363
PB
4742
4743
a90ef4bf
JM
4744.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4745maybe-configure-stage1-binutils:
4746@if binutils-bootstrap
4747maybe-configure-stage1-binutils: configure-stage1-binutils
4748configure-stage1-binutils:
c52c6897 4749 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4750 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4751 @r=`${PWD_COMMAND}`; export r; \
4752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4753 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4754 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4755 $(HOST_EXPORTS) \
8ee82aff 4756 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4757 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4758 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4759 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
4760 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4761 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4762 case $(srcdir) in \
4763 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4764 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4765 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4766 esac; \
a90ef4bf
JM
4767 srcdiroption="--srcdir=$${topdir}/binutils"; \
4768 libsrcdir="$$s/binutils"; \
d545f33b 4769 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
4770 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4771 --target=${target_alias} $${srcdiroption} \
1b05fbbd 4772 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4773@endif binutils-bootstrap
d545f33b 4774
a90ef4bf
JM
4775.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4776maybe-configure-stage2-binutils:
4777@if binutils-bootstrap
4778maybe-configure-stage2-binutils: configure-stage2-binutils
4779configure-stage2-binutils:
c52c6897 4780 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 4781 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4782 @r=`${PWD_COMMAND}`; export r; \
4783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4784 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 4785 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4786 $(HOST_EXPORTS) \
1b05fbbd 4787 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4788 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4789 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4790 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4791 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
4792 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4793 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4794 case $(srcdir) in \
4795 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4796 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4797 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4798 esac; \
a90ef4bf
JM
4799 srcdiroption="--srcdir=$${topdir}/binutils"; \
4800 libsrcdir="$$s/binutils"; \
d545f33b 4801 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
4802 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4803 --target=${target_alias} $${srcdiroption} \
c1cb7e02 4804 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 4805 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 4806@endif binutils-bootstrap
8520c408 4807
a90ef4bf
JM
4808.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
4809maybe-configure-stage3-binutils:
4810@if binutils-bootstrap
4811maybe-configure-stage3-binutils: configure-stage3-binutils
4812configure-stage3-binutils:
c52c6897 4813 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 4814 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4815 @r=`${PWD_COMMAND}`; export r; \
4816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4817 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 4818 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4819 $(HOST_EXPORTS) \
1b05fbbd 4820 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4821 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4822 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4823 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4824 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
4825 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4826 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4827 case $(srcdir) in \
4828 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4829 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4830 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4831 esac; \
a90ef4bf
JM
4832 srcdiroption="--srcdir=$${topdir}/binutils"; \
4833 libsrcdir="$$s/binutils"; \
d545f33b 4834 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
4835 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4836 --target=${target_alias} $${srcdiroption} \
c1cb7e02 4837 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 4838 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 4839@endif binutils-bootstrap
8520c408 4840
a90ef4bf
JM
4841.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
4842maybe-configure-stage4-binutils:
4843@if binutils-bootstrap
4844maybe-configure-stage4-binutils: configure-stage4-binutils
4845configure-stage4-binutils:
c52c6897 4846 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 4847 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4848 @r=`${PWD_COMMAND}`; export r; \
4849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4850 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 4851 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4852 $(HOST_EXPORTS) \
1b05fbbd 4853 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4854 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4855 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4856 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4857 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
4858 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4859 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4860 case $(srcdir) in \
4861 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4862 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4863 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4864 esac; \
a90ef4bf
JM
4865 srcdiroption="--srcdir=$${topdir}/binutils"; \
4866 libsrcdir="$$s/binutils"; \
d545f33b 4867 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
4868 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4869 --target=${target_alias} $${srcdiroption} \
c1cb7e02 4870 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 4871 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 4872@endif binutils-bootstrap
d545f33b 4873
a90ef4bf
JM
4874.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
4875maybe-configure-stageprofile-binutils:
4876@if binutils-bootstrap
4877maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
4878configure-stageprofile-binutils:
c52c6897 4879 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 4880 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4881 @r=`${PWD_COMMAND}`; export r; \
4882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4883 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 4884 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4885 $(HOST_EXPORTS) \
1b05fbbd
AO
4886 $(POSTSTAGE1_HOST_EXPORTS) \
4887 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4888 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4889 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4890 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
4891 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4892 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4893 case $(srcdir) in \
4894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4895 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4897 esac; \
a90ef4bf
JM
4898 srcdiroption="--srcdir=$${topdir}/binutils"; \
4899 libsrcdir="$$s/binutils"; \
d545f33b 4900 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
4901 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4902 --target=${target_alias} $${srcdiroption} \
c1cb7e02 4903 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 4904 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 4905@endif binutils-bootstrap
d545f33b 4906
a90ef4bf
JM
4907.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
4908maybe-configure-stagefeedback-binutils:
4909@if binutils-bootstrap
4910maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
4911configure-stagefeedback-binutils:
c52c6897 4912 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 4913 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4914 @r=`${PWD_COMMAND}`; export r; \
4915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4916 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 4917 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4918 $(HOST_EXPORTS) \
1b05fbbd
AO
4919 $(POSTSTAGE1_HOST_EXPORTS) \
4920 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4921 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4922 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4923 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
4924 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4925 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4926 case $(srcdir) in \
4927 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4928 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4929 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4930 esac; \
a90ef4bf
JM
4931 srcdiroption="--srcdir=$${topdir}/binutils"; \
4932 libsrcdir="$$s/binutils"; \
d545f33b 4933 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
4934 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4935 --target=${target_alias} $${srcdiroption} \
c1cb7e02 4936 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 4937 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 4938@endif binutils-bootstrap
d545f33b
PB
4939
4940
4941
4942
4943
a90ef4bf
JM
4944.PHONY: all-binutils maybe-all-binutils
4945maybe-all-binutils:
4f0ef2d8 4946@if gcc-bootstrap
a90ef4bf 4947all-binutils: stage_current
4f0ef2d8 4948@endif gcc-bootstrap
a90ef4bf
JM
4949@if binutils
4950TARGET-binutils=all
4951maybe-all-binutils: all-binutils
4952all-binutils: configure-binutils
c52c6897 4953 @r=`${PWD_COMMAND}`; export r; \
4fa63067 4954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 4955 $(HOST_EXPORTS) \
a90ef4bf 4956 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 4957 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4958 $(TARGET-binutils))
4959@endif binutils
2a4cbe27 4960
a7254363 4961
d545f33b 4962
a90ef4bf
JM
4963.PHONY: all-stage1-binutils maybe-all-stage1-binutils
4964.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
4965maybe-all-stage1-binutils:
4966maybe-clean-stage1-binutils:
4967@if binutils-bootstrap
4968maybe-all-stage1-binutils: all-stage1-binutils
4969all-stage1: all-stage1-binutils
4970TARGET-stage1-binutils = $(TARGET-binutils)
4971all-stage1-binutils: configure-stage1-binutils
c52c6897 4972 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
4973 @r=`${PWD_COMMAND}`; export r; \
4974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4975 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 4976 $(HOST_EXPORTS) \
a90ef4bf 4977 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 4978 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 4979 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 4980 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
4981 LIBCFLAGS="$(LIBCFLAGS)" \
4982 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4983 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4984 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4985 $(EXTRA_HOST_FLAGS) \
4986 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 4987 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 4988 $(TARGET-stage1-binutils)
d545f33b 4989
a90ef4bf
JM
4990maybe-clean-stage1-binutils: clean-stage1-binutils
4991clean-stage1: clean-stage1-binutils
4992clean-stage1-binutils:
9dbaa842 4993 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 4994 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 4995 else \
a90ef4bf 4996 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
4997 $(MAKE) stage1-start; \
4998 fi; \
a90ef4bf 4999 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5000 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5001 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5002@endif binutils-bootstrap
d545f33b
PB
5003
5004
a90ef4bf
JM
5005.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5006.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5007maybe-all-stage2-binutils:
5008maybe-clean-stage2-binutils:
5009@if binutils-bootstrap
5010maybe-all-stage2-binutils: all-stage2-binutils
5011all-stage2: all-stage2-binutils
5012TARGET-stage2-binutils = $(TARGET-binutils)
5013all-stage2-binutils: configure-stage2-binutils
c52c6897 5014 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5015 @r=`${PWD_COMMAND}`; export r; \
5016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5017 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5018 $(HOST_EXPORTS) \
1f53ca9a 5019 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5020 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5021 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5022 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5023 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5024 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5025 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5026 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5027 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5028 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5029 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5030 $(TARGET-stage2-binutils)
d545f33b 5031
a90ef4bf
JM
5032maybe-clean-stage2-binutils: clean-stage2-binutils
5033clean-stage2: clean-stage2-binutils
5034clean-stage2-binutils:
9dbaa842 5035 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5036 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5037 else \
a90ef4bf 5038 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5039 $(MAKE) stage2-start; \
5040 fi; \
a90ef4bf 5041 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5042 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5043@endif binutils-bootstrap
d545f33b
PB
5044
5045
a90ef4bf
JM
5046.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5047.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5048maybe-all-stage3-binutils:
5049maybe-clean-stage3-binutils:
5050@if binutils-bootstrap
5051maybe-all-stage3-binutils: all-stage3-binutils
5052all-stage3: all-stage3-binutils
5053TARGET-stage3-binutils = $(TARGET-binutils)
5054all-stage3-binutils: configure-stage3-binutils
c52c6897 5055 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5056 @r=`${PWD_COMMAND}`; export r; \
5057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5058 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5059 $(HOST_EXPORTS) \
1f53ca9a 5060 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5061 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5062 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5063 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5064 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5065 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5066 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5067 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5068 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5069 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5070 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5071 $(TARGET-stage3-binutils)
d545f33b 5072
a90ef4bf
JM
5073maybe-clean-stage3-binutils: clean-stage3-binutils
5074clean-stage3: clean-stage3-binutils
5075clean-stage3-binutils:
9dbaa842 5076 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5077 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5078 else \
a90ef4bf 5079 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5080 $(MAKE) stage3-start; \
5081 fi; \
a90ef4bf 5082 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5083 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5084@endif binutils-bootstrap
d545f33b
PB
5085
5086
a90ef4bf
JM
5087.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5088.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5089maybe-all-stage4-binutils:
5090maybe-clean-stage4-binutils:
5091@if binutils-bootstrap
5092maybe-all-stage4-binutils: all-stage4-binutils
5093all-stage4: all-stage4-binutils
5094TARGET-stage4-binutils = $(TARGET-binutils)
5095all-stage4-binutils: configure-stage4-binutils
c52c6897 5096 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5097 @r=`${PWD_COMMAND}`; export r; \
5098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5099 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5100 $(HOST_EXPORTS) \
1f53ca9a 5101 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5102 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5103 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5104 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5105 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5106 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5107 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5108 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5109 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5110 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5111 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5112 $(TARGET-stage4-binutils)
d545f33b 5113
a90ef4bf
JM
5114maybe-clean-stage4-binutils: clean-stage4-binutils
5115clean-stage4: clean-stage4-binutils
5116clean-stage4-binutils:
9dbaa842 5117 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5118 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5119 else \
a90ef4bf 5120 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5121 $(MAKE) stage4-start; \
5122 fi; \
a90ef4bf 5123 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5124 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5125@endif binutils-bootstrap
d545f33b
PB
5126
5127
a90ef4bf
JM
5128.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5129.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5130maybe-all-stageprofile-binutils:
5131maybe-clean-stageprofile-binutils:
5132@if binutils-bootstrap
5133maybe-all-stageprofile-binutils: all-stageprofile-binutils
5134all-stageprofile: all-stageprofile-binutils
5135TARGET-stageprofile-binutils = $(TARGET-binutils)
5136all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5137 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5138 @r=`${PWD_COMMAND}`; export r; \
5139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5140 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5141 $(HOST_EXPORTS) \
1f53ca9a 5142 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5143 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5144 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5145 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5146 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5147 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5148 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5149 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5150 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5151 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5152 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5153 $(TARGET-stageprofile-binutils)
d545f33b 5154
a90ef4bf
JM
5155maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5156clean-stageprofile: clean-stageprofile-binutils
5157clean-stageprofile-binutils:
9dbaa842 5158 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5159 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5160 else \
a90ef4bf 5161 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5162 $(MAKE) stageprofile-start; \
5163 fi; \
a90ef4bf 5164 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5165 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5166@endif binutils-bootstrap
d545f33b
PB
5167
5168
a90ef4bf
JM
5169.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5170.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5171maybe-all-stagefeedback-binutils:
5172maybe-clean-stagefeedback-binutils:
5173@if binutils-bootstrap
5174maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5175all-stagefeedback: all-stagefeedback-binutils
5176TARGET-stagefeedback-binutils = $(TARGET-binutils)
5177all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5178 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5179 @r=`${PWD_COMMAND}`; export r; \
5180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5181 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5182 $(HOST_EXPORTS) \
1f53ca9a 5183 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5184 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5185 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5186 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5187 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5188 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5189 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5190 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5191 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5192 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5193 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5194 $(TARGET-stagefeedback-binutils)
d545f33b 5195
a90ef4bf
JM
5196maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5197clean-stagefeedback: clean-stagefeedback-binutils
5198clean-stagefeedback-binutils:
9dbaa842 5199 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5200 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5201 else \
a90ef4bf 5202 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5203 $(MAKE) stagefeedback-start; \
5204 fi; \
a90ef4bf 5205 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5206 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5207@endif binutils-bootstrap
d545f33b
PB
5208
5209
5210
5211
5212
a90ef4bf
JM
5213.PHONY: check-binutils maybe-check-binutils
5214maybe-check-binutils:
5215@if binutils
5216maybe-check-binutils: check-binutils
2a4cbe27 5217
a90ef4bf 5218check-binutils:
0aed8855 5219 @: $(MAKE); $(unstage)
4fa63067 5220 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5222 $(HOST_EXPORTS) \
a90ef4bf 5223 (cd $(HOST_SUBDIR)/binutils && \
b00612cc 5224 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 5225
a90ef4bf 5226@endif binutils
2a4cbe27 5227
a90ef4bf
JM
5228.PHONY: install-binutils maybe-install-binutils
5229maybe-install-binutils:
5230@if binutils
5231maybe-install-binutils: install-binutils
2a4cbe27 5232
a90ef4bf 5233install-binutils: installdirs
0aed8855 5234 @: $(MAKE); $(unstage)
4fa63067 5235 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5237 $(HOST_EXPORTS) \
a90ef4bf 5238 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5239 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5240
a90ef4bf 5241@endif binutils
2a4cbe27 5242
a90ef4bf
JM
5243.PHONY: install-strip-binutils maybe-install-strip-binutils
5244maybe-install-strip-binutils:
5245@if binutils
5246maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5247
a90ef4bf 5248install-strip-binutils: installdirs
9b980aa1
RW
5249 @: $(MAKE); $(unstage)
5250 @r=`${PWD_COMMAND}`; export r; \
5251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5252 $(HOST_EXPORTS) \
a90ef4bf 5253 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5254 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5255
a90ef4bf 5256@endif binutils
9b980aa1 5257
56a8fe78 5258# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5259
a90ef4bf
JM
5260.PHONY: maybe-info-binutils info-binutils
5261maybe-info-binutils:
5262@if binutils
5263maybe-info-binutils: info-binutils
4fa63067 5264
a90ef4bf
JM
5265info-binutils: \
5266 configure-binutils
5267 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5268 r=`${PWD_COMMAND}`; export r; \
5269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5270 $(HOST_EXPORTS) \
b813574b 5271 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5273 done; \
a90ef4bf
JM
5274 echo "Doing info in binutils" ; \
5275 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5278 "RANLIB=$${RANLIB}" \
0c24b341 5279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5280 info) \
2a4cbe27
NN
5281 || exit 1
5282
a90ef4bf 5283@endif binutils
2a4cbe27 5284
a90ef4bf
JM
5285.PHONY: maybe-dvi-binutils dvi-binutils
5286maybe-dvi-binutils:
5287@if binutils
5288maybe-dvi-binutils: dvi-binutils
2a4cbe27 5289
a90ef4bf
JM
5290dvi-binutils: \
5291 configure-binutils
5292 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5293 r=`${PWD_COMMAND}`; export r; \
5294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5295 $(HOST_EXPORTS) \
b813574b 5296 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5298 done; \
a90ef4bf
JM
5299 echo "Doing dvi in binutils" ; \
5300 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5303 "RANLIB=$${RANLIB}" \
0c24b341 5304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5305 dvi) \
2a4cbe27
NN
5306 || exit 1
5307
a90ef4bf 5308@endif binutils
2a4cbe27 5309
a90ef4bf
JM
5310.PHONY: maybe-pdf-binutils pdf-binutils
5311maybe-pdf-binutils:
5312@if binutils
5313maybe-pdf-binutils: pdf-binutils
56a8fe78 5314
a90ef4bf
JM
5315pdf-binutils: \
5316 configure-binutils
5317 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5318 r=`${PWD_COMMAND}`; export r; \
5319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5320 $(HOST_EXPORTS) \
5321 for flag in $(EXTRA_HOST_FLAGS) ; do \
5322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5323 done; \
a90ef4bf
JM
5324 echo "Doing pdf in binutils" ; \
5325 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5328 "RANLIB=$${RANLIB}" \
0c24b341 5329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5330 pdf) \
5331 || exit 1
5332
a90ef4bf 5333@endif binutils
56a8fe78 5334
a90ef4bf
JM
5335.PHONY: maybe-html-binutils html-binutils
5336maybe-html-binutils:
5337@if binutils
5338maybe-html-binutils: html-binutils
6d389afc 5339
a90ef4bf
JM
5340html-binutils: \
5341 configure-binutils
5342 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5343 r=`${PWD_COMMAND}`; export r; \
5344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5345 $(HOST_EXPORTS) \
5346 for flag in $(EXTRA_HOST_FLAGS) ; do \
5347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5348 done; \
a90ef4bf
JM
5349 echo "Doing html in binutils" ; \
5350 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5353 "RANLIB=$${RANLIB}" \
0c24b341 5354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5355 html) \
5356 || exit 1
5357
a90ef4bf 5358@endif binutils
6d389afc 5359
a90ef4bf
JM
5360.PHONY: maybe-TAGS-binutils TAGS-binutils
5361maybe-TAGS-binutils:
5362@if binutils
5363maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5364
a90ef4bf
JM
5365TAGS-binutils: \
5366 configure-binutils
5367 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5368 r=`${PWD_COMMAND}`; export r; \
5369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5370 $(HOST_EXPORTS) \
b813574b 5371 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5373 done; \
a90ef4bf
JM
5374 echo "Doing TAGS in binutils" ; \
5375 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5378 "RANLIB=$${RANLIB}" \
0c24b341 5379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5380 TAGS) \
2a4cbe27
NN
5381 || exit 1
5382
a90ef4bf 5383@endif binutils
2a4cbe27 5384
a90ef4bf
JM
5385.PHONY: maybe-install-info-binutils install-info-binutils
5386maybe-install-info-binutils:
5387@if binutils
5388maybe-install-info-binutils: install-info-binutils
2a4cbe27 5389
a90ef4bf
JM
5390install-info-binutils: \
5391 configure-binutils \
5392 info-binutils
5393 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5394 r=`${PWD_COMMAND}`; export r; \
5395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5396 $(HOST_EXPORTS) \
b813574b 5397 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5399 done; \
a90ef4bf
JM
5400 echo "Doing install-info in binutils" ; \
5401 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5404 "RANLIB=$${RANLIB}" \
0c24b341 5405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5406 install-info) \
2a4cbe27
NN
5407 || exit 1
5408
a90ef4bf 5409@endif binutils
2a4cbe27 5410
a90ef4bf
JM
5411.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5412maybe-install-pdf-binutils:
5413@if binutils
5414maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5415
a90ef4bf
JM
5416install-pdf-binutils: \
5417 configure-binutils \
5418 pdf-binutils
5419 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5420 r=`${PWD_COMMAND}`; export r; \
5421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5422 $(HOST_EXPORTS) \
5423 for flag in $(EXTRA_HOST_FLAGS) ; do \
5424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5425 done; \
a90ef4bf
JM
5426 echo "Doing install-pdf in binutils" ; \
5427 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5430 "RANLIB=$${RANLIB}" \
0c24b341 5431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5432 install-pdf) \
5433 || exit 1
5434
a90ef4bf 5435@endif binutils
a3ca38d2 5436
a90ef4bf
JM
5437.PHONY: maybe-install-html-binutils install-html-binutils
5438maybe-install-html-binutils:
5439@if binutils
5440maybe-install-html-binutils: install-html-binutils
108a6f8e 5441
a90ef4bf
JM
5442install-html-binutils: \
5443 configure-binutils \
5444 html-binutils
5445 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5446 r=`${PWD_COMMAND}`; export r; \
5447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5448 $(HOST_EXPORTS) \
5449 for flag in $(EXTRA_HOST_FLAGS) ; do \
5450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5451 done; \
a90ef4bf
JM
5452 echo "Doing install-html in binutils" ; \
5453 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5456 "RANLIB=$${RANLIB}" \
0c24b341 5457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5458 install-html) \
5459 || exit 1
5460
a90ef4bf 5461@endif binutils
108a6f8e 5462
a90ef4bf
JM
5463.PHONY: maybe-installcheck-binutils installcheck-binutils
5464maybe-installcheck-binutils:
5465@if binutils
5466maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5467
a90ef4bf
JM
5468installcheck-binutils: \
5469 configure-binutils
5470 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5471 r=`${PWD_COMMAND}`; export r; \
5472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5473 $(HOST_EXPORTS) \
b813574b 5474 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5476 done; \
a90ef4bf
JM
5477 echo "Doing installcheck in binutils" ; \
5478 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5481 "RANLIB=$${RANLIB}" \
0c24b341 5482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5483 installcheck) \
2a4cbe27
NN
5484 || exit 1
5485
a90ef4bf 5486@endif binutils
2a4cbe27 5487
a90ef4bf
JM
5488.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5489maybe-mostlyclean-binutils:
5490@if binutils
5491maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5492
a90ef4bf
JM
5493mostlyclean-binutils:
5494 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5495 r=`${PWD_COMMAND}`; export r; \
5496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5497 $(HOST_EXPORTS) \
b813574b 5498 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5500 done; \
a90ef4bf
JM
5501 echo "Doing mostlyclean in binutils" ; \
5502 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5505 "RANLIB=$${RANLIB}" \
0c24b341 5506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5507 mostlyclean) \
2a4cbe27
NN
5508 || exit 1
5509
a90ef4bf 5510@endif binutils
2a4cbe27 5511
a90ef4bf
JM
5512.PHONY: maybe-clean-binutils clean-binutils
5513maybe-clean-binutils:
5514@if binutils
5515maybe-clean-binutils: clean-binutils
2a4cbe27 5516
a90ef4bf
JM
5517clean-binutils:
5518 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5519 r=`${PWD_COMMAND}`; export r; \
5520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5521 $(HOST_EXPORTS) \
b813574b 5522 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5524 done; \
a90ef4bf
JM
5525 echo "Doing clean in binutils" ; \
5526 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5529 "RANLIB=$${RANLIB}" \
0c24b341 5530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5531 clean) \
2a4cbe27
NN
5532 || exit 1
5533
a90ef4bf 5534@endif binutils
2a4cbe27 5535
a90ef4bf
JM
5536.PHONY: maybe-distclean-binutils distclean-binutils
5537maybe-distclean-binutils:
5538@if binutils
5539maybe-distclean-binutils: distclean-binutils
2a4cbe27 5540
a90ef4bf
JM
5541distclean-binutils:
5542 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5543 r=`${PWD_COMMAND}`; export r; \
5544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5545 $(HOST_EXPORTS) \
b813574b 5546 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5548 done; \
a90ef4bf
JM
5549 echo "Doing distclean in binutils" ; \
5550 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5553 "RANLIB=$${RANLIB}" \
0c24b341 5554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5555 distclean) \
2a4cbe27
NN
5556 || exit 1
5557
a90ef4bf 5558@endif binutils
2a4cbe27 5559
a90ef4bf
JM
5560.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5561maybe-maintainer-clean-binutils:
5562@if binutils
5563maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5564
a90ef4bf
JM
5565maintainer-clean-binutils:
5566 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5567 r=`${PWD_COMMAND}`; export r; \
5568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5569 $(HOST_EXPORTS) \
b813574b 5570 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5572 done; \
a90ef4bf
JM
5573 echo "Doing maintainer-clean in binutils" ; \
5574 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5577 "RANLIB=$${RANLIB}" \
0c24b341 5578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5579 maintainer-clean) \
a2592b1b
DD
5580 || exit 1
5581
a90ef4bf 5582@endif binutils
a2592b1b 5583
2a4cbe27 5584
a7254363 5585
a90ef4bf
JM
5586.PHONY: configure-bison maybe-configure-bison
5587maybe-configure-bison:
4f0ef2d8 5588@if gcc-bootstrap
a90ef4bf 5589configure-bison: stage_current
4f0ef2d8 5590@endif gcc-bootstrap
a90ef4bf
JM
5591@if bison
5592maybe-configure-bison: configure-bison
5593configure-bison:
5594 @: $(MAKE); $(unstage)
c52c6897
PB
5595 @r=`${PWD_COMMAND}`; export r; \
5596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5597 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
5598 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
1f53ca9a 5599 $(HOST_EXPORTS) \
a90ef4bf
JM
5600 echo Configuring in $(HOST_SUBDIR)/bison; \
5601 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5602 case $(srcdir) in \
b00612cc 5603 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5604 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5605 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5606 esac; \
a90ef4bf
JM
5607 srcdiroption="--srcdir=$${topdir}/bison"; \
5608 libsrcdir="$$s/bison"; \
4fa63067 5609 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
5610 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5611 --target=${target_alias} $${srcdiroption} \
4fa63067 5612 || exit 1
a90ef4bf 5613@endif bison
2a4cbe27 5614
a7254363
PB
5615
5616
d545f33b 5617
8520c408 5618
a90ef4bf
JM
5619.PHONY: all-bison maybe-all-bison
5620maybe-all-bison:
5621@if gcc-bootstrap
5622all-bison: stage_current
5623@endif gcc-bootstrap
5624@if bison
5625TARGET-bison=all
5626maybe-all-bison: all-bison
5627all-bison: configure-bison
5628 @: $(MAKE); $(unstage)
c52c6897
PB
5629 @r=`${PWD_COMMAND}`; export r; \
5630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5631 $(HOST_EXPORTS) \
5632 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5633 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5634 $(TARGET-bison))
5635@endif bison
8520c408 5636
d545f33b 5637
d545f33b 5638
d545f33b 5639
a90ef4bf
JM
5640.PHONY: check-bison maybe-check-bison
5641maybe-check-bison:
5642@if bison
5643maybe-check-bison: check-bison
d545f33b 5644
a90ef4bf
JM
5645# This module is only tested in a native toolchain.
5646check-bison:
5647 @: $(MAKE); $(unstage)
5648 @if [ '$(host)' = '$(target)' ] ; then \
5649 r=`${PWD_COMMAND}`; export r; \
5650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5651 $(HOST_EXPORTS) \
5652 (cd $(HOST_SUBDIR)/bison && \
5653 $(MAKE) $(FLAGS_TO_PASS) check); \
5654 fi
d545f33b 5655
a90ef4bf 5656@endif bison
d545f33b 5657
a90ef4bf
JM
5658.PHONY: install-bison maybe-install-bison
5659maybe-install-bison:
5660@if bison
5661maybe-install-bison: install-bison
d545f33b 5662
a90ef4bf
JM
5663install-bison: installdirs
5664 @: $(MAKE); $(unstage)
c52c6897 5665 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5667 $(HOST_EXPORTS) \
5668 (cd $(HOST_SUBDIR)/bison && \
5669 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5670
a90ef4bf 5671@endif bison
a7254363 5672
a90ef4bf
JM
5673.PHONY: install-strip-bison maybe-install-strip-bison
5674maybe-install-strip-bison:
5675@if bison
5676maybe-install-strip-bison: install-strip-bison
d545f33b 5677
a90ef4bf
JM
5678install-strip-bison: installdirs
5679 @: $(MAKE); $(unstage)
d545f33b
PB
5680 @r=`${PWD_COMMAND}`; export r; \
5681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5682 $(HOST_EXPORTS) \
5683 (cd $(HOST_SUBDIR)/bison && \
5684 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5685
a90ef4bf 5686@endif bison
d545f33b 5687
a90ef4bf 5688# Other targets (info, dvi, pdf, etc.)
d545f33b 5689
a90ef4bf
JM
5690.PHONY: maybe-info-bison info-bison
5691maybe-info-bison:
5692@if bison
5693maybe-info-bison: info-bison
5694
5695info-bison: \
5696 configure-bison
5697 @: $(MAKE); $(unstage)
5698 @[ -f ./bison/Makefile ] || exit 0; \
5699 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5701 $(HOST_EXPORTS) \
a90ef4bf
JM
5702 for flag in $(EXTRA_HOST_FLAGS) ; do \
5703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5704 done; \
5705 echo "Doing info in bison" ; \
5706 (cd $(HOST_SUBDIR)/bison && \
5707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5709 "RANLIB=$${RANLIB}" \
5710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5711 info) \
5712 || exit 1
d545f33b 5713
a90ef4bf 5714@endif bison
d545f33b 5715
a90ef4bf
JM
5716.PHONY: maybe-dvi-bison dvi-bison
5717maybe-dvi-bison:
5718@if bison
5719maybe-dvi-bison: dvi-bison
d545f33b 5720
a90ef4bf
JM
5721dvi-bison: \
5722 configure-bison
5723 @: $(MAKE); $(unstage)
5724 @[ -f ./bison/Makefile ] || exit 0; \
5725 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5727 $(HOST_EXPORTS) \
a90ef4bf
JM
5728 for flag in $(EXTRA_HOST_FLAGS) ; do \
5729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5730 done; \
5731 echo "Doing dvi in bison" ; \
5732 (cd $(HOST_SUBDIR)/bison && \
5733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5735 "RANLIB=$${RANLIB}" \
5736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5737 dvi) \
5738 || exit 1
d545f33b 5739
a90ef4bf 5740@endif bison
d545f33b 5741
a90ef4bf
JM
5742.PHONY: maybe-pdf-bison pdf-bison
5743maybe-pdf-bison:
5744@if bison
5745maybe-pdf-bison: pdf-bison
d545f33b 5746
a90ef4bf
JM
5747pdf-bison: \
5748 configure-bison
5749 @: $(MAKE); $(unstage)
5750 @[ -f ./bison/Makefile ] || exit 0; \
5751 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5753 $(HOST_EXPORTS) \
a90ef4bf
JM
5754 for flag in $(EXTRA_HOST_FLAGS) ; do \
5755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5756 done; \
5757 echo "Doing pdf in bison" ; \
5758 (cd $(HOST_SUBDIR)/bison && \
5759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5761 "RANLIB=$${RANLIB}" \
5762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5763 pdf) \
5764 || exit 1
d545f33b 5765
a90ef4bf 5766@endif bison
d545f33b 5767
a90ef4bf
JM
5768.PHONY: maybe-html-bison html-bison
5769maybe-html-bison:
5770@if bison
5771maybe-html-bison: html-bison
d545f33b 5772
a90ef4bf
JM
5773html-bison: \
5774 configure-bison
5775 @: $(MAKE); $(unstage)
5776 @[ -f ./bison/Makefile ] || exit 0; \
5777 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5779 $(HOST_EXPORTS) \
a90ef4bf
JM
5780 for flag in $(EXTRA_HOST_FLAGS) ; do \
5781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5782 done; \
5783 echo "Doing html in bison" ; \
5784 (cd $(HOST_SUBDIR)/bison && \
5785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5787 "RANLIB=$${RANLIB}" \
5788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5789 html) \
5790 || exit 1
d545f33b 5791
a90ef4bf 5792@endif bison
2a4cbe27 5793
a90ef4bf
JM
5794.PHONY: maybe-TAGS-bison TAGS-bison
5795maybe-TAGS-bison:
5796@if bison
5797maybe-TAGS-bison: TAGS-bison
2a4cbe27 5798
a90ef4bf
JM
5799TAGS-bison: \
5800 configure-bison
0aed8855 5801 @: $(MAKE); $(unstage)
a90ef4bf
JM
5802 @[ -f ./bison/Makefile ] || exit 0; \
5803 r=`${PWD_COMMAND}`; export r; \
4fa63067 5804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5805 $(HOST_EXPORTS) \
a90ef4bf
JM
5806 for flag in $(EXTRA_HOST_FLAGS) ; do \
5807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5808 done; \
5809 echo "Doing TAGS in bison" ; \
5810 (cd $(HOST_SUBDIR)/bison && \
5811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5813 "RANLIB=$${RANLIB}" \
5814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5815 TAGS) \
5816 || exit 1
4fa63067 5817
a90ef4bf 5818@endif bison
4fa63067 5819
a90ef4bf
JM
5820.PHONY: maybe-install-info-bison install-info-bison
5821maybe-install-info-bison:
5822@if bison
5823maybe-install-info-bison: install-info-bison
9b980aa1 5824
a90ef4bf
JM
5825install-info-bison: \
5826 configure-bison \
5827 info-bison
9b980aa1 5828 @: $(MAKE); $(unstage)
a90ef4bf 5829 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
5830 r=`${PWD_COMMAND}`; export r; \
5831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5832 $(HOST_EXPORTS) \
b813574b 5833 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5835 done; \
a90ef4bf
JM
5836 echo "Doing install-info in bison" ; \
5837 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
5838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5840 "RANLIB=$${RANLIB}" \
0c24b341 5841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5842 install-info) \
2a4cbe27
NN
5843 || exit 1
5844
a90ef4bf 5845@endif bison
2a4cbe27 5846
a90ef4bf
JM
5847.PHONY: maybe-install-pdf-bison install-pdf-bison
5848maybe-install-pdf-bison:
5849@if bison
5850maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 5851
a90ef4bf
JM
5852install-pdf-bison: \
5853 configure-bison \
5854 pdf-bison
5855 @: $(MAKE); $(unstage)
5856 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
5857 r=`${PWD_COMMAND}`; export r; \
5858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5859 $(HOST_EXPORTS) \
b813574b 5860 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5862 done; \
a90ef4bf
JM
5863 echo "Doing install-pdf in bison" ; \
5864 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
5865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5867 "RANLIB=$${RANLIB}" \
0c24b341 5868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5869 install-pdf) \
2a4cbe27
NN
5870 || exit 1
5871
a90ef4bf 5872@endif bison
2a4cbe27 5873
a90ef4bf
JM
5874.PHONY: maybe-install-html-bison install-html-bison
5875maybe-install-html-bison:
5876@if bison
5877maybe-install-html-bison: install-html-bison
56a8fe78 5878
a90ef4bf
JM
5879install-html-bison: \
5880 configure-bison \
5881 html-bison
5882 @: $(MAKE); $(unstage)
5883 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
5884 r=`${PWD_COMMAND}`; export r; \
5885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5886 $(HOST_EXPORTS) \
5887 for flag in $(EXTRA_HOST_FLAGS) ; do \
5888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5889 done; \
a90ef4bf
JM
5890 echo "Doing install-html in bison" ; \
5891 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
5892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5894 "RANLIB=$${RANLIB}" \
0c24b341 5895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5896 install-html) \
56a8fe78
DD
5897 || exit 1
5898
a90ef4bf 5899@endif bison
56a8fe78 5900
a90ef4bf
JM
5901.PHONY: maybe-installcheck-bison installcheck-bison
5902maybe-installcheck-bison:
5903@if bison
5904maybe-installcheck-bison: installcheck-bison
6d389afc 5905
a90ef4bf
JM
5906installcheck-bison: \
5907 configure-bison
5908 @: $(MAKE); $(unstage)
5909 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
5910 r=`${PWD_COMMAND}`; export r; \
5911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5912 $(HOST_EXPORTS) \
5913 for flag in $(EXTRA_HOST_FLAGS) ; do \
5914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5915 done; \
a90ef4bf
JM
5916 echo "Doing installcheck in bison" ; \
5917 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
5918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5920 "RANLIB=$${RANLIB}" \
0c24b341 5921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5922 installcheck) \
6d389afc
MS
5923 || exit 1
5924
a90ef4bf 5925@endif bison
6d389afc 5926
a90ef4bf
JM
5927.PHONY: maybe-mostlyclean-bison mostlyclean-bison
5928maybe-mostlyclean-bison:
5929@if bison
5930maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 5931
a90ef4bf
JM
5932mostlyclean-bison:
5933 @: $(MAKE); $(unstage)
5934 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
5935 r=`${PWD_COMMAND}`; export r; \
5936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5937 $(HOST_EXPORTS) \
b813574b 5938 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5940 done; \
a90ef4bf
JM
5941 echo "Doing mostlyclean in bison" ; \
5942 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
5943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5945 "RANLIB=$${RANLIB}" \
0c24b341 5946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5947 mostlyclean) \
2a4cbe27
NN
5948 || exit 1
5949
a90ef4bf 5950@endif bison
2a4cbe27 5951
a90ef4bf
JM
5952.PHONY: maybe-clean-bison clean-bison
5953maybe-clean-bison:
5954@if bison
5955maybe-clean-bison: clean-bison
2a4cbe27 5956
a90ef4bf
JM
5957clean-bison:
5958 @: $(MAKE); $(unstage)
5959 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
5960 r=`${PWD_COMMAND}`; export r; \
5961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5962 $(HOST_EXPORTS) \
b813574b 5963 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5965 done; \
a90ef4bf
JM
5966 echo "Doing clean in bison" ; \
5967 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
5968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5970 "RANLIB=$${RANLIB}" \
0c24b341 5971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5972 clean) \
2a4cbe27
NN
5973 || exit 1
5974
a90ef4bf 5975@endif bison
2a4cbe27 5976
a90ef4bf
JM
5977.PHONY: maybe-distclean-bison distclean-bison
5978maybe-distclean-bison:
5979@if bison
5980maybe-distclean-bison: distclean-bison
a3ca38d2 5981
a90ef4bf
JM
5982distclean-bison:
5983 @: $(MAKE); $(unstage)
5984 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
5985 r=`${PWD_COMMAND}`; export r; \
5986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5987 $(HOST_EXPORTS) \
5988 for flag in $(EXTRA_HOST_FLAGS) ; do \
5989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5990 done; \
a90ef4bf
JM
5991 echo "Doing distclean in bison" ; \
5992 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
5993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5995 "RANLIB=$${RANLIB}" \
0c24b341 5996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5997 distclean) \
a3ca38d2
DD
5998 || exit 1
5999
a90ef4bf 6000@endif bison
a3ca38d2 6001
a90ef4bf
JM
6002.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6003maybe-maintainer-clean-bison:
6004@if bison
6005maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6006
a90ef4bf
JM
6007maintainer-clean-bison:
6008 @: $(MAKE); $(unstage)
6009 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6010 r=`${PWD_COMMAND}`; export r; \
6011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6012 $(HOST_EXPORTS) \
6013 for flag in $(EXTRA_HOST_FLAGS) ; do \
6014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6015 done; \
a90ef4bf
JM
6016 echo "Doing maintainer-clean in bison" ; \
6017 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6020 "RANLIB=$${RANLIB}" \
0c24b341 6021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6022 maintainer-clean) \
108a6f8e
CD
6023 || exit 1
6024
a90ef4bf 6025@endif bison
108a6f8e 6026
2a4cbe27 6027
a90ef4bf
JM
6028
6029.PHONY: configure-cgen maybe-configure-cgen
6030maybe-configure-cgen:
6031@if gcc-bootstrap
6032configure-cgen: stage_current
6033@endif gcc-bootstrap
6034@if cgen
6035maybe-configure-cgen: configure-cgen
6036configure-cgen:
6037 @: $(MAKE); $(unstage)
6038 @r=`${PWD_COMMAND}`; export r; \
6039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6040 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
6041 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen ; \
6042 $(HOST_EXPORTS) \
6043 echo Configuring in $(HOST_SUBDIR)/cgen; \
6044 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6045 case $(srcdir) in \
6046 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6047 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6048 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6049 esac; \
6050 srcdiroption="--srcdir=$${topdir}/cgen"; \
6051 libsrcdir="$$s/cgen"; \
6052 $(SHELL) $${libsrcdir}/configure \
6053 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6054 --target=${target_alias} $${srcdiroption} \
6055 || exit 1
6056@endif cgen
6057
6058
6059
6060
6061
6062.PHONY: all-cgen maybe-all-cgen
6063maybe-all-cgen:
6064@if gcc-bootstrap
6065all-cgen: stage_current
6066@endif gcc-bootstrap
6067@if cgen
6068TARGET-cgen=all
6069maybe-all-cgen: all-cgen
6070all-cgen: configure-cgen
6071 @: $(MAKE); $(unstage)
6072 @r=`${PWD_COMMAND}`; export r; \
6073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6074 $(HOST_EXPORTS) \
6075 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6076 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6077 $(TARGET-cgen))
6078@endif cgen
6079
6080
6081
6082
6083.PHONY: check-cgen maybe-check-cgen
6084maybe-check-cgen:
6085@if cgen
6086maybe-check-cgen: check-cgen
6087
6088check-cgen:
6089 @: $(MAKE); $(unstage)
6090 @r=`${PWD_COMMAND}`; export r; \
6091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6092 $(HOST_EXPORTS) \
6093 (cd $(HOST_SUBDIR)/cgen && \
6094 $(MAKE) $(FLAGS_TO_PASS) check)
6095
6096@endif cgen
6097
6098.PHONY: install-cgen maybe-install-cgen
6099maybe-install-cgen:
6100@if cgen
6101maybe-install-cgen: install-cgen
6102
6103install-cgen: installdirs
6104 @: $(MAKE); $(unstage)
6105 @r=`${PWD_COMMAND}`; export r; \
6106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6107 $(HOST_EXPORTS) \
6108 (cd $(HOST_SUBDIR)/cgen && \
6109 $(MAKE) $(FLAGS_TO_PASS) install)
6110
6111@endif cgen
6112
6113.PHONY: install-strip-cgen maybe-install-strip-cgen
6114maybe-install-strip-cgen:
6115@if cgen
6116maybe-install-strip-cgen: install-strip-cgen
6117
6118install-strip-cgen: installdirs
6119 @: $(MAKE); $(unstage)
6120 @r=`${PWD_COMMAND}`; export r; \
6121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6122 $(HOST_EXPORTS) \
6123 (cd $(HOST_SUBDIR)/cgen && \
6124 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6125
6126@endif cgen
6127
6128# Other targets (info, dvi, pdf, etc.)
6129
6130.PHONY: maybe-info-cgen info-cgen
6131maybe-info-cgen:
6132@if cgen
6133maybe-info-cgen: info-cgen
6134
6135info-cgen: \
6136 configure-cgen
6137 @: $(MAKE); $(unstage)
6138 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6139 r=`${PWD_COMMAND}`; export r; \
6140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6141 $(HOST_EXPORTS) \
b813574b 6142 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6144 done; \
a90ef4bf
JM
6145 echo "Doing info in cgen" ; \
6146 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6149 "RANLIB=$${RANLIB}" \
0c24b341 6150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6151 info) \
2a4cbe27
NN
6152 || exit 1
6153
a90ef4bf 6154@endif cgen
2a4cbe27 6155
a90ef4bf
JM
6156.PHONY: maybe-dvi-cgen dvi-cgen
6157maybe-dvi-cgen:
6158@if cgen
6159maybe-dvi-cgen: dvi-cgen
2a4cbe27 6160
a90ef4bf
JM
6161dvi-cgen: \
6162 configure-cgen
6163 @: $(MAKE); $(unstage)
6164 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6165 r=`${PWD_COMMAND}`; export r; \
6166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6167 $(HOST_EXPORTS) \
b813574b 6168 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6170 done; \
a90ef4bf
JM
6171 echo "Doing dvi in cgen" ; \
6172 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6175 "RANLIB=$${RANLIB}" \
0c24b341 6176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6177 dvi) \
2a4cbe27
NN
6178 || exit 1
6179
a90ef4bf 6180@endif cgen
2a4cbe27 6181
a90ef4bf
JM
6182.PHONY: maybe-pdf-cgen pdf-cgen
6183maybe-pdf-cgen:
6184@if cgen
6185maybe-pdf-cgen: pdf-cgen
2a4cbe27 6186
a90ef4bf
JM
6187pdf-cgen: \
6188 configure-cgen
6189 @: $(MAKE); $(unstage)
6190 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6191 r=`${PWD_COMMAND}`; export r; \
6192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6193 $(HOST_EXPORTS) \
b813574b 6194 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6196 done; \
a90ef4bf
JM
6197 echo "Doing pdf in cgen" ; \
6198 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
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 pdf) \
2a4cbe27
NN
6204 || exit 1
6205
a90ef4bf 6206@endif cgen
2a4cbe27 6207
a90ef4bf
JM
6208.PHONY: maybe-html-cgen html-cgen
6209maybe-html-cgen:
6210@if cgen
6211maybe-html-cgen: html-cgen
2a4cbe27 6212
a90ef4bf
JM
6213html-cgen: \
6214 configure-cgen
6215 @: $(MAKE); $(unstage)
6216 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6217 r=`${PWD_COMMAND}`; export r; \
6218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6219 $(HOST_EXPORTS) \
b813574b 6220 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6222 done; \
a90ef4bf
JM
6223 echo "Doing html in cgen" ; \
6224 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6227 "RANLIB=$${RANLIB}" \
0c24b341 6228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6229 html) \
2a4cbe27
NN
6230 || exit 1
6231
a90ef4bf 6232@endif cgen
2a4cbe27 6233
a90ef4bf
JM
6234.PHONY: maybe-TAGS-cgen TAGS-cgen
6235maybe-TAGS-cgen:
6236@if cgen
6237maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6238
a90ef4bf
JM
6239TAGS-cgen: \
6240 configure-cgen
6241 @: $(MAKE); $(unstage)
6242 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6243 r=`${PWD_COMMAND}`; export r; \
6244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6245 $(HOST_EXPORTS) \
b813574b 6246 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6248 done; \
a90ef4bf
JM
6249 echo "Doing TAGS in cgen" ; \
6250 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6253 "RANLIB=$${RANLIB}" \
0c24b341 6254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6255 TAGS) \
2a4cbe27
NN
6256 || exit 1
6257
a90ef4bf 6258@endif cgen
2a4cbe27 6259
a90ef4bf
JM
6260.PHONY: maybe-install-info-cgen install-info-cgen
6261maybe-install-info-cgen:
6262@if cgen
6263maybe-install-info-cgen: install-info-cgen
2a4cbe27 6264
a90ef4bf
JM
6265install-info-cgen: \
6266 configure-cgen \
6267 info-cgen
6268 @: $(MAKE); $(unstage)
6269 @[ -f ./cgen/Makefile ] || exit 0; \
6270 r=`${PWD_COMMAND}`; export r; \
6271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6272 $(HOST_EXPORTS) \
6273 for flag in $(EXTRA_HOST_FLAGS) ; do \
6274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6275 done; \
6276 echo "Doing install-info in cgen" ; \
6277 (cd $(HOST_SUBDIR)/cgen && \
6278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6280 "RANLIB=$${RANLIB}" \
6281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6282 install-info) \
6283 || exit 1
a7254363 6284
a90ef4bf
JM
6285@endif cgen
6286
6287.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6288maybe-install-pdf-cgen:
6289@if cgen
6290maybe-install-pdf-cgen: install-pdf-cgen
6291
6292install-pdf-cgen: \
6293 configure-cgen \
6294 pdf-cgen
6295 @: $(MAKE); $(unstage)
6296 @[ -f ./cgen/Makefile ] || exit 0; \
6297 r=`${PWD_COMMAND}`; export r; \
c52c6897 6298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6299 $(HOST_EXPORTS) \
6300 for flag in $(EXTRA_HOST_FLAGS) ; do \
6301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6302 done; \
6303 echo "Doing install-pdf in cgen" ; \
6304 (cd $(HOST_SUBDIR)/cgen && \
6305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6307 "RANLIB=$${RANLIB}" \
6308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6309 install-pdf) \
2a4cbe27
NN
6310 || exit 1
6311
a90ef4bf 6312@endif cgen
a7254363 6313
a90ef4bf
JM
6314.PHONY: maybe-install-html-cgen install-html-cgen
6315maybe-install-html-cgen:
6316@if cgen
6317maybe-install-html-cgen: install-html-cgen
a7254363 6318
a90ef4bf
JM
6319install-html-cgen: \
6320 configure-cgen \
6321 html-cgen
6322 @: $(MAKE); $(unstage)
6323 @[ -f ./cgen/Makefile ] || exit 0; \
6324 r=`${PWD_COMMAND}`; export r; \
c52c6897 6325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6326 $(HOST_EXPORTS) \
a90ef4bf
JM
6327 for flag in $(EXTRA_HOST_FLAGS) ; do \
6328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6329 done; \
6330 echo "Doing install-html in cgen" ; \
6331 (cd $(HOST_SUBDIR)/cgen && \
6332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6334 "RANLIB=$${RANLIB}" \
6335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6336 install-html) \
6337 || exit 1
d545f33b 6338
a90ef4bf
JM
6339@endif cgen
6340
6341.PHONY: maybe-installcheck-cgen installcheck-cgen
6342maybe-installcheck-cgen:
6343@if cgen
6344maybe-installcheck-cgen: installcheck-cgen
6345
6346installcheck-cgen: \
6347 configure-cgen
6348 @: $(MAKE); $(unstage)
6349 @[ -f ./cgen/Makefile ] || exit 0; \
6350 r=`${PWD_COMMAND}`; export r; \
c52c6897 6351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6352 $(HOST_EXPORTS) \
a90ef4bf
JM
6353 for flag in $(EXTRA_HOST_FLAGS) ; do \
6354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6355 done; \
6356 echo "Doing installcheck in cgen" ; \
6357 (cd $(HOST_SUBDIR)/cgen && \
6358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6360 "RANLIB=$${RANLIB}" \
6361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6362 installcheck) \
6363 || exit 1
8520c408 6364
a90ef4bf
JM
6365@endif cgen
6366
6367.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6368maybe-mostlyclean-cgen:
6369@if cgen
6370maybe-mostlyclean-cgen: mostlyclean-cgen
6371
6372mostlyclean-cgen:
6373 @: $(MAKE); $(unstage)
6374 @[ -f ./cgen/Makefile ] || exit 0; \
6375 r=`${PWD_COMMAND}`; export r; \
c52c6897 6376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6377 $(HOST_EXPORTS) \
a90ef4bf
JM
6378 for flag in $(EXTRA_HOST_FLAGS) ; do \
6379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6380 done; \
6381 echo "Doing mostlyclean in cgen" ; \
6382 (cd $(HOST_SUBDIR)/cgen && \
6383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6385 "RANLIB=$${RANLIB}" \
6386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6387 mostlyclean) \
6388 || exit 1
8520c408 6389
a90ef4bf
JM
6390@endif cgen
6391
6392.PHONY: maybe-clean-cgen clean-cgen
6393maybe-clean-cgen:
6394@if cgen
6395maybe-clean-cgen: clean-cgen
6396
6397clean-cgen:
6398 @: $(MAKE); $(unstage)
6399 @[ -f ./cgen/Makefile ] || exit 0; \
6400 r=`${PWD_COMMAND}`; export r; \
c52c6897 6401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6402 $(HOST_EXPORTS) \
a90ef4bf
JM
6403 for flag in $(EXTRA_HOST_FLAGS) ; do \
6404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6405 done; \
6406 echo "Doing clean in cgen" ; \
6407 (cd $(HOST_SUBDIR)/cgen && \
6408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6410 "RANLIB=$${RANLIB}" \
6411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6412 clean) \
6413 || exit 1
d545f33b 6414
a90ef4bf
JM
6415@endif cgen
6416
6417.PHONY: maybe-distclean-cgen distclean-cgen
6418maybe-distclean-cgen:
6419@if cgen
6420maybe-distclean-cgen: distclean-cgen
6421
6422distclean-cgen:
6423 @: $(MAKE); $(unstage)
6424 @[ -f ./cgen/Makefile ] || exit 0; \
6425 r=`${PWD_COMMAND}`; export r; \
c52c6897 6426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6427 $(HOST_EXPORTS) \
a90ef4bf
JM
6428 for flag in $(EXTRA_HOST_FLAGS) ; do \
6429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6430 done; \
6431 echo "Doing distclean in cgen" ; \
6432 (cd $(HOST_SUBDIR)/cgen && \
6433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6435 "RANLIB=$${RANLIB}" \
6436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6437 distclean) \
6438 || exit 1
d545f33b 6439
a90ef4bf
JM
6440@endif cgen
6441
6442.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6443maybe-maintainer-clean-cgen:
6444@if cgen
6445maybe-maintainer-clean-cgen: maintainer-clean-cgen
6446
6447maintainer-clean-cgen:
6448 @: $(MAKE); $(unstage)
6449 @[ -f ./cgen/Makefile ] || exit 0; \
6450 r=`${PWD_COMMAND}`; export r; \
c52c6897 6451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6452 $(HOST_EXPORTS) \
a90ef4bf
JM
6453 for flag in $(EXTRA_HOST_FLAGS) ; do \
6454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6455 done; \
6456 echo "Doing maintainer-clean in cgen" ; \
6457 (cd $(HOST_SUBDIR)/cgen && \
6458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6460 "RANLIB=$${RANLIB}" \
6461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6462 maintainer-clean) \
6463 || exit 1
6464
6465@endif cgen
6466
6467
6468
6469.PHONY: configure-dejagnu maybe-configure-dejagnu
6470maybe-configure-dejagnu:
6471@if gcc-bootstrap
6472configure-dejagnu: stage_current
6473@endif gcc-bootstrap
6474@if dejagnu
6475maybe-configure-dejagnu: configure-dejagnu
6476configure-dejagnu:
6477 @: $(MAKE); $(unstage)
6478 @r=`${PWD_COMMAND}`; export r; \
6479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6480 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
6481 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
6482 $(HOST_EXPORTS) \
6483 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6484 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6485 case $(srcdir) in \
6486 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6487 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6488 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6489 esac; \
a90ef4bf
JM
6490 srcdiroption="--srcdir=$${topdir}/dejagnu"; \
6491 libsrcdir="$$s/dejagnu"; \
d545f33b 6492 $(SHELL) $${libsrcdir}/configure \
4b900473 6493 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf
JM
6494 --target=${target_alias} $${srcdiroption} \
6495 || exit 1
6496@endif dejagnu
d545f33b
PB
6497
6498
6499
6500
6501
a90ef4bf
JM
6502.PHONY: all-dejagnu maybe-all-dejagnu
6503maybe-all-dejagnu:
4f0ef2d8 6504@if gcc-bootstrap
a90ef4bf 6505all-dejagnu: stage_current
4f0ef2d8 6506@endif gcc-bootstrap
a90ef4bf
JM
6507@if dejagnu
6508TARGET-dejagnu=all
6509maybe-all-dejagnu: all-dejagnu
6510all-dejagnu: configure-dejagnu
6511 @: $(MAKE); $(unstage)
c52c6897 6512 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6514 $(HOST_EXPORTS) \
a90ef4bf 6515 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6516 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6517 $(TARGET-dejagnu))
6518@endif dejagnu
4fa63067 6519
a7254363 6520
4fa63067 6521
a90ef4bf
JM
6522
6523.PHONY: check-dejagnu maybe-check-dejagnu
6524maybe-check-dejagnu:
6525@if dejagnu
6526maybe-check-dejagnu: check-dejagnu
6527
6528check-dejagnu:
6529 @: $(MAKE); $(unstage)
4fa63067
NN
6530 @r=`${PWD_COMMAND}`; export r; \
6531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6532 $(HOST_EXPORTS) \
6533 (cd $(HOST_SUBDIR)/dejagnu && \
6534 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6535
a90ef4bf 6536@endif dejagnu
2a4cbe27 6537
a90ef4bf
JM
6538.PHONY: install-dejagnu maybe-install-dejagnu
6539maybe-install-dejagnu:
6540@if dejagnu
6541maybe-install-dejagnu: install-dejagnu
2a4cbe27 6542
a90ef4bf
JM
6543install-dejagnu: installdirs
6544 @: $(MAKE); $(unstage)
4fa63067 6545 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6547 $(HOST_EXPORTS) \
a90ef4bf
JM
6548 (cd $(HOST_SUBDIR)/dejagnu && \
6549 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6550
a90ef4bf 6551@endif dejagnu
d545f33b 6552
a90ef4bf
JM
6553.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6554maybe-install-strip-dejagnu:
6555@if dejagnu
6556maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6557
a90ef4bf 6558install-strip-dejagnu: installdirs
9b980aa1
RW
6559 @: $(MAKE); $(unstage)
6560 @r=`${PWD_COMMAND}`; export r; \
6561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6562 $(HOST_EXPORTS) \
a90ef4bf 6563 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6564 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6565
a90ef4bf 6566@endif dejagnu
9b980aa1 6567
56a8fe78 6568# Other targets (info, dvi, pdf, etc.)
d545f33b 6569
a90ef4bf
JM
6570.PHONY: maybe-info-dejagnu info-dejagnu
6571maybe-info-dejagnu:
6572@if dejagnu
6573maybe-info-dejagnu: info-dejagnu
d545f33b 6574
a90ef4bf
JM
6575info-dejagnu: \
6576 configure-dejagnu
6577 @: $(MAKE); $(unstage)
6578 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6579 r=`${PWD_COMMAND}`; export r; \
6580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6581 $(HOST_EXPORTS) \
6582 for flag in $(EXTRA_HOST_FLAGS) ; do \
6583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6584 done; \
a90ef4bf
JM
6585 echo "Doing info in dejagnu" ; \
6586 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6589 "RANLIB=$${RANLIB}" \
0c24b341 6590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6591 info) \
6592 || exit 1
6593
a90ef4bf 6594@endif dejagnu
d545f33b 6595
a90ef4bf
JM
6596.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6597maybe-dvi-dejagnu:
6598@if dejagnu
6599maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6600
a90ef4bf
JM
6601dvi-dejagnu: \
6602 configure-dejagnu
6603 @: $(MAKE); $(unstage)
6604 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6605 r=`${PWD_COMMAND}`; export r; \
6606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6607 $(HOST_EXPORTS) \
6608 for flag in $(EXTRA_HOST_FLAGS) ; do \
6609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6610 done; \
a90ef4bf
JM
6611 echo "Doing dvi in dejagnu" ; \
6612 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6615 "RANLIB=$${RANLIB}" \
0c24b341 6616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6617 dvi) \
2a4cbe27
NN
6618 || exit 1
6619
a90ef4bf 6620@endif dejagnu
2a4cbe27 6621
a90ef4bf
JM
6622.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6623maybe-pdf-dejagnu:
6624@if dejagnu
6625maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6626
a90ef4bf
JM
6627pdf-dejagnu: \
6628 configure-dejagnu
6629 @: $(MAKE); $(unstage)
6630 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6631 r=`${PWD_COMMAND}`; export r; \
6632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6633 $(HOST_EXPORTS) \
6634 for flag in $(EXTRA_HOST_FLAGS) ; do \
6635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6636 done; \
a90ef4bf
JM
6637 echo "Doing pdf in dejagnu" ; \
6638 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6641 "RANLIB=$${RANLIB}" \
0c24b341 6642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6643 pdf) \
6644 || exit 1
6645
a90ef4bf 6646@endif dejagnu
56a8fe78 6647
a90ef4bf
JM
6648.PHONY: maybe-html-dejagnu html-dejagnu
6649maybe-html-dejagnu:
6650@if dejagnu
6651maybe-html-dejagnu: html-dejagnu
6d389afc 6652
a90ef4bf
JM
6653html-dejagnu: \
6654 configure-dejagnu
6655 @: $(MAKE); $(unstage)
6656 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6657 r=`${PWD_COMMAND}`; export r; \
6658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6659 $(HOST_EXPORTS) \
6660 for flag in $(EXTRA_HOST_FLAGS) ; do \
6661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6662 done; \
a90ef4bf
JM
6663 echo "Doing html in dejagnu" ; \
6664 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6667 "RANLIB=$${RANLIB}" \
0c24b341 6668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6669 html) \
6670 || exit 1
6671
a90ef4bf 6672@endif dejagnu
6d389afc 6673
a90ef4bf
JM
6674.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6675maybe-TAGS-dejagnu:
6676@if dejagnu
6677maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6678
a90ef4bf
JM
6679TAGS-dejagnu: \
6680 configure-dejagnu
6681 @: $(MAKE); $(unstage)
6682 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6683 r=`${PWD_COMMAND}`; export r; \
6684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6685 $(HOST_EXPORTS) \
b813574b 6686 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6688 done; \
a90ef4bf
JM
6689 echo "Doing TAGS in dejagnu" ; \
6690 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6693 "RANLIB=$${RANLIB}" \
0c24b341 6694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6695 TAGS) \
2a4cbe27
NN
6696 || exit 1
6697
a90ef4bf 6698@endif dejagnu
2a4cbe27 6699
a90ef4bf
JM
6700.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6701maybe-install-info-dejagnu:
6702@if dejagnu
6703maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6704
a90ef4bf
JM
6705install-info-dejagnu: \
6706 configure-dejagnu \
6707 info-dejagnu
6708 @: $(MAKE); $(unstage)
6709 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6710 r=`${PWD_COMMAND}`; export r; \
6711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6712 $(HOST_EXPORTS) \
b813574b 6713 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6715 done; \
a90ef4bf
JM
6716 echo "Doing install-info in dejagnu" ; \
6717 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6720 "RANLIB=$${RANLIB}" \
0c24b341 6721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6722 install-info) \
2a4cbe27
NN
6723 || exit 1
6724
a90ef4bf 6725@endif dejagnu
2a4cbe27 6726
a90ef4bf
JM
6727.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6728maybe-install-pdf-dejagnu:
6729@if dejagnu
6730maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6731
a90ef4bf
JM
6732install-pdf-dejagnu: \
6733 configure-dejagnu \
6734 pdf-dejagnu
6735 @: $(MAKE); $(unstage)
6736 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6737 r=`${PWD_COMMAND}`; export r; \
6738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6739 $(HOST_EXPORTS) \
6740 for flag in $(EXTRA_HOST_FLAGS) ; do \
6741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6742 done; \
a90ef4bf
JM
6743 echo "Doing install-pdf in dejagnu" ; \
6744 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6747 "RANLIB=$${RANLIB}" \
0c24b341 6748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6749 install-pdf) \
6750 || exit 1
6751
a90ef4bf 6752@endif dejagnu
a3ca38d2 6753
a90ef4bf
JM
6754.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6755maybe-install-html-dejagnu:
6756@if dejagnu
6757maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6758
a90ef4bf
JM
6759install-html-dejagnu: \
6760 configure-dejagnu \
6761 html-dejagnu
6762 @: $(MAKE); $(unstage)
6763 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6764 r=`${PWD_COMMAND}`; export r; \
6765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6766 $(HOST_EXPORTS) \
6767 for flag in $(EXTRA_HOST_FLAGS) ; do \
6768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6769 done; \
a90ef4bf
JM
6770 echo "Doing install-html in dejagnu" ; \
6771 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
6772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6774 "RANLIB=$${RANLIB}" \
0c24b341 6775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6776 install-html) \
6777 || exit 1
6778
a90ef4bf 6779@endif dejagnu
108a6f8e 6780
a90ef4bf
JM
6781.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6782maybe-installcheck-dejagnu:
6783@if dejagnu
6784maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 6785
a90ef4bf
JM
6786installcheck-dejagnu: \
6787 configure-dejagnu
6788 @: $(MAKE); $(unstage)
6789 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6790 r=`${PWD_COMMAND}`; export r; \
6791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6792 $(HOST_EXPORTS) \
b813574b 6793 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6795 done; \
a90ef4bf
JM
6796 echo "Doing installcheck in dejagnu" ; \
6797 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6800 "RANLIB=$${RANLIB}" \
0c24b341 6801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6802 installcheck) \
2a4cbe27
NN
6803 || exit 1
6804
a90ef4bf 6805@endif dejagnu
2a4cbe27 6806
a90ef4bf
JM
6807.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
6808maybe-mostlyclean-dejagnu:
6809@if dejagnu
6810maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 6811
a90ef4bf
JM
6812mostlyclean-dejagnu:
6813 @: $(MAKE); $(unstage)
6814 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6815 r=`${PWD_COMMAND}`; export r; \
6816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6817 $(HOST_EXPORTS) \
b813574b 6818 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6820 done; \
a90ef4bf
JM
6821 echo "Doing mostlyclean in dejagnu" ; \
6822 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6825 "RANLIB=$${RANLIB}" \
0c24b341 6826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6827 mostlyclean) \
2a4cbe27
NN
6828 || exit 1
6829
a90ef4bf 6830@endif dejagnu
2a4cbe27 6831
a90ef4bf
JM
6832.PHONY: maybe-clean-dejagnu clean-dejagnu
6833maybe-clean-dejagnu:
6834@if dejagnu
6835maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 6836
a90ef4bf
JM
6837clean-dejagnu:
6838 @: $(MAKE); $(unstage)
6839 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6840 r=`${PWD_COMMAND}`; export r; \
6841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6842 $(HOST_EXPORTS) \
b813574b 6843 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6845 done; \
a90ef4bf
JM
6846 echo "Doing clean in dejagnu" ; \
6847 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
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}" \
b813574b 6852 clean) \
2a4cbe27
NN
6853 || exit 1
6854
a90ef4bf 6855@endif dejagnu
2a4cbe27 6856
a90ef4bf
JM
6857.PHONY: maybe-distclean-dejagnu distclean-dejagnu
6858maybe-distclean-dejagnu:
6859@if dejagnu
6860maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 6861
a90ef4bf
JM
6862distclean-dejagnu:
6863 @: $(MAKE); $(unstage)
6864 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6865 r=`${PWD_COMMAND}`; export r; \
6866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6867 $(HOST_EXPORTS) \
b813574b 6868 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6870 done; \
a90ef4bf
JM
6871 echo "Doing distclean in dejagnu" ; \
6872 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6875 "RANLIB=$${RANLIB}" \
0c24b341 6876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6877 distclean) \
2a4cbe27
NN
6878 || exit 1
6879
a90ef4bf 6880@endif dejagnu
2a4cbe27 6881
a90ef4bf
JM
6882.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
6883maybe-maintainer-clean-dejagnu:
6884@if dejagnu
6885maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 6886
a90ef4bf
JM
6887maintainer-clean-dejagnu:
6888 @: $(MAKE); $(unstage)
6889 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6890 r=`${PWD_COMMAND}`; export r; \
6891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6892 $(HOST_EXPORTS) \
b813574b 6893 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6895 done; \
a90ef4bf
JM
6896 echo "Doing maintainer-clean in dejagnu" ; \
6897 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6900 "RANLIB=$${RANLIB}" \
0c24b341 6901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6902 maintainer-clean) \
2a4cbe27
NN
6903 || exit 1
6904
a90ef4bf 6905@endif dejagnu
2a4cbe27 6906
2a4cbe27 6907
a7254363 6908
a90ef4bf
JM
6909.PHONY: configure-etc maybe-configure-etc
6910maybe-configure-etc:
4f0ef2d8 6911@if gcc-bootstrap
a90ef4bf 6912configure-etc: stage_current
4f0ef2d8 6913@endif gcc-bootstrap
a90ef4bf
JM
6914@if etc
6915maybe-configure-etc: configure-etc
6916configure-etc:
0aed8855 6917 @: $(MAKE); $(unstage)
c52c6897 6918 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6920 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
6921 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
1f53ca9a 6922 $(HOST_EXPORTS) \
a90ef4bf
JM
6923 echo Configuring in $(HOST_SUBDIR)/etc; \
6924 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 6925 case $(srcdir) in \
b00612cc 6926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6927 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 6928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 6929 esac; \
a90ef4bf
JM
6930 srcdiroption="--srcdir=$${topdir}/etc"; \
6931 libsrcdir="$$s/etc"; \
4fa63067 6932 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
6933 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
6934 --target=${target_alias} $${srcdiroption} \
2a4cbe27 6935 || exit 1
a90ef4bf 6936@endif etc
2a4cbe27 6937
a7254363
PB
6938
6939
d545f33b
PB
6940
6941
a90ef4bf
JM
6942.PHONY: all-etc maybe-all-etc
6943maybe-all-etc:
4f0ef2d8 6944@if gcc-bootstrap
a90ef4bf 6945all-etc: stage_current
4f0ef2d8 6946@endif gcc-bootstrap
a90ef4bf
JM
6947@if etc
6948TARGET-etc=all
6949maybe-all-etc: all-etc
6950all-etc: configure-etc
0aed8855 6951 @: $(MAKE); $(unstage)
4fa63067
NN
6952 @r=`${PWD_COMMAND}`; export r; \
6953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6954 $(HOST_EXPORTS) \
a90ef4bf 6955 (cd $(HOST_SUBDIR)/etc && \
b3676d82 6956 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6957 $(TARGET-etc))
6958@endif etc
2a4cbe27 6959
a7254363 6960
d545f33b
PB
6961
6962
a90ef4bf
JM
6963.PHONY: check-etc maybe-check-etc
6964maybe-check-etc:
6965@if etc
6966maybe-check-etc: check-etc
2a4cbe27 6967
a90ef4bf 6968check-etc:
0aed8855 6969 @: $(MAKE); $(unstage)
a90ef4bf
JM
6970 @r=`${PWD_COMMAND}`; export r; \
6971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6972 $(HOST_EXPORTS) \
6973 (cd $(HOST_SUBDIR)/etc && \
6974 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 6975
a90ef4bf 6976@endif etc
4fa63067 6977
a90ef4bf
JM
6978.PHONY: install-etc maybe-install-etc
6979maybe-install-etc:
6980@if etc
6981maybe-install-etc: install-etc
4fa63067 6982
a90ef4bf 6983install-etc: installdirs
0aed8855 6984 @: $(MAKE); $(unstage)
4fa63067 6985 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6987 $(HOST_EXPORTS) \
a90ef4bf 6988 (cd $(HOST_SUBDIR)/etc && \
2da12f12 6989 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6990
a90ef4bf 6991@endif etc
2a4cbe27 6992
a90ef4bf
JM
6993.PHONY: install-strip-etc maybe-install-strip-etc
6994maybe-install-strip-etc:
6995@if etc
6996maybe-install-strip-etc: install-strip-etc
9b980aa1 6997
a90ef4bf 6998install-strip-etc: installdirs
9b980aa1
RW
6999 @: $(MAKE); $(unstage)
7000 @r=`${PWD_COMMAND}`; export r; \
7001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7002 $(HOST_EXPORTS) \
a90ef4bf 7003 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7004 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7005
a90ef4bf 7006@endif etc
9b980aa1 7007
56a8fe78 7008# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7009
a90ef4bf
JM
7010.PHONY: maybe-info-etc info-etc
7011maybe-info-etc:
7012@if etc
7013maybe-info-etc: info-etc
4fa63067 7014
a90ef4bf
JM
7015info-etc: \
7016 configure-etc
0aed8855 7017 @: $(MAKE); $(unstage)
a90ef4bf 7018 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7019 r=`${PWD_COMMAND}`; export r; \
7020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7021 $(HOST_EXPORTS) \
b813574b 7022 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7024 done; \
a90ef4bf
JM
7025 echo "Doing info in etc" ; \
7026 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7029 "RANLIB=$${RANLIB}" \
0c24b341 7030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7031 info) \
2a4cbe27
NN
7032 || exit 1
7033
a90ef4bf 7034@endif etc
2a4cbe27 7035
a90ef4bf
JM
7036.PHONY: maybe-dvi-etc dvi-etc
7037maybe-dvi-etc:
7038@if etc
7039maybe-dvi-etc: dvi-etc
2a4cbe27 7040
a90ef4bf
JM
7041dvi-etc: \
7042 configure-etc
0aed8855 7043 @: $(MAKE); $(unstage)
a90ef4bf 7044 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7045 r=`${PWD_COMMAND}`; export r; \
7046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7047 $(HOST_EXPORTS) \
b813574b 7048 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7050 done; \
a90ef4bf
JM
7051 echo "Doing dvi in etc" ; \
7052 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7055 "RANLIB=$${RANLIB}" \
0c24b341 7056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7057 dvi) \
2a4cbe27
NN
7058 || exit 1
7059
a90ef4bf 7060@endif etc
2a4cbe27 7061
a90ef4bf
JM
7062.PHONY: maybe-pdf-etc pdf-etc
7063maybe-pdf-etc:
7064@if etc
7065maybe-pdf-etc: pdf-etc
56a8fe78 7066
a90ef4bf
JM
7067pdf-etc: \
7068 configure-etc
56a8fe78 7069 @: $(MAKE); $(unstage)
a90ef4bf 7070 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7071 r=`${PWD_COMMAND}`; export r; \
7072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7073 $(HOST_EXPORTS) \
7074 for flag in $(EXTRA_HOST_FLAGS) ; do \
7075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7076 done; \
a90ef4bf
JM
7077 echo "Doing pdf in etc" ; \
7078 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7081 "RANLIB=$${RANLIB}" \
0c24b341 7082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7083 pdf) \
7084 || exit 1
7085
a90ef4bf 7086@endif etc
56a8fe78 7087
a90ef4bf
JM
7088.PHONY: maybe-html-etc html-etc
7089maybe-html-etc:
7090@if etc
7091maybe-html-etc: html-etc
6d389afc 7092
a90ef4bf
JM
7093html-etc: \
7094 configure-etc
0aed8855 7095 @: $(MAKE); $(unstage)
a90ef4bf 7096 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7097 r=`${PWD_COMMAND}`; export r; \
7098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7099 $(HOST_EXPORTS) \
7100 for flag in $(EXTRA_HOST_FLAGS) ; do \
7101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7102 done; \
a90ef4bf
JM
7103 echo "Doing html in etc" ; \
7104 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7107 "RANLIB=$${RANLIB}" \
0c24b341 7108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7109 html) \
7110 || exit 1
7111
a90ef4bf 7112@endif etc
6d389afc 7113
a90ef4bf
JM
7114.PHONY: maybe-TAGS-etc TAGS-etc
7115maybe-TAGS-etc:
7116@if etc
7117maybe-TAGS-etc: TAGS-etc
2a4cbe27 7118
a90ef4bf
JM
7119TAGS-etc: \
7120 configure-etc
0aed8855 7121 @: $(MAKE); $(unstage)
a90ef4bf 7122 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7123 r=`${PWD_COMMAND}`; export r; \
7124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7125 $(HOST_EXPORTS) \
b813574b 7126 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7128 done; \
a90ef4bf
JM
7129 echo "Doing TAGS in etc" ; \
7130 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7133 "RANLIB=$${RANLIB}" \
0c24b341 7134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7135 TAGS) \
2a4cbe27
NN
7136 || exit 1
7137
a90ef4bf 7138@endif etc
2a4cbe27 7139
a90ef4bf
JM
7140.PHONY: maybe-install-info-etc install-info-etc
7141maybe-install-info-etc:
7142@if etc
7143maybe-install-info-etc: install-info-etc
2a4cbe27 7144
a90ef4bf
JM
7145install-info-etc: \
7146 configure-etc \
7147 info-etc
0aed8855 7148 @: $(MAKE); $(unstage)
a90ef4bf 7149 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7150 r=`${PWD_COMMAND}`; export r; \
7151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7152 $(HOST_EXPORTS) \
b813574b 7153 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7155 done; \
a90ef4bf
JM
7156 echo "Doing install-info in etc" ; \
7157 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7160 "RANLIB=$${RANLIB}" \
0c24b341 7161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7162 install-info) \
2a4cbe27
NN
7163 || exit 1
7164
a90ef4bf 7165@endif etc
2a4cbe27 7166
a90ef4bf
JM
7167.PHONY: maybe-install-pdf-etc install-pdf-etc
7168maybe-install-pdf-etc:
7169@if etc
7170maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7171
a90ef4bf
JM
7172install-pdf-etc: \
7173 configure-etc \
7174 pdf-etc
a3ca38d2 7175 @: $(MAKE); $(unstage)
a90ef4bf 7176 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7177 r=`${PWD_COMMAND}`; export r; \
7178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7179 $(HOST_EXPORTS) \
7180 for flag in $(EXTRA_HOST_FLAGS) ; do \
7181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7182 done; \
a90ef4bf
JM
7183 echo "Doing install-pdf in etc" ; \
7184 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7187 "RANLIB=$${RANLIB}" \
0c24b341 7188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7189 install-pdf) \
7190 || exit 1
7191
a90ef4bf 7192@endif etc
a3ca38d2 7193
a90ef4bf
JM
7194.PHONY: maybe-install-html-etc install-html-etc
7195maybe-install-html-etc:
7196@if etc
7197maybe-install-html-etc: install-html-etc
108a6f8e 7198
a90ef4bf
JM
7199install-html-etc: \
7200 configure-etc \
7201 html-etc
108a6f8e 7202 @: $(MAKE); $(unstage)
a90ef4bf 7203 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7204 r=`${PWD_COMMAND}`; export r; \
7205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7206 $(HOST_EXPORTS) \
7207 for flag in $(EXTRA_HOST_FLAGS) ; do \
7208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7209 done; \
a90ef4bf
JM
7210 echo "Doing install-html in etc" ; \
7211 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7214 "RANLIB=$${RANLIB}" \
0c24b341 7215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7216 install-html) \
7217 || exit 1
7218
a90ef4bf 7219@endif etc
108a6f8e 7220
a90ef4bf
JM
7221.PHONY: maybe-installcheck-etc installcheck-etc
7222maybe-installcheck-etc:
7223@if etc
7224maybe-installcheck-etc: installcheck-etc
2a4cbe27 7225
a90ef4bf
JM
7226installcheck-etc: \
7227 configure-etc
0aed8855 7228 @: $(MAKE); $(unstage)
a90ef4bf 7229 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7230 r=`${PWD_COMMAND}`; export r; \
7231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7232 $(HOST_EXPORTS) \
b813574b 7233 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7235 done; \
a90ef4bf
JM
7236 echo "Doing installcheck in etc" ; \
7237 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7240 "RANLIB=$${RANLIB}" \
0c24b341 7241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7242 installcheck) \
2a4cbe27
NN
7243 || exit 1
7244
a90ef4bf 7245@endif etc
2a4cbe27 7246
a90ef4bf
JM
7247.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7248maybe-mostlyclean-etc:
7249@if etc
7250maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7251
a90ef4bf 7252mostlyclean-etc:
0aed8855 7253 @: $(MAKE); $(unstage)
a90ef4bf 7254 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7255 r=`${PWD_COMMAND}`; export r; \
7256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7257 $(HOST_EXPORTS) \
b813574b 7258 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7260 done; \
a90ef4bf
JM
7261 echo "Doing mostlyclean in etc" ; \
7262 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
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}" \
b813574b 7267 mostlyclean) \
2a4cbe27
NN
7268 || exit 1
7269
a90ef4bf 7270@endif etc
2a4cbe27 7271
a90ef4bf
JM
7272.PHONY: maybe-clean-etc clean-etc
7273maybe-clean-etc:
7274@if etc
7275maybe-clean-etc: clean-etc
2a4cbe27 7276
a90ef4bf 7277clean-etc:
0aed8855 7278 @: $(MAKE); $(unstage)
a90ef4bf 7279 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7280 r=`${PWD_COMMAND}`; export r; \
7281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7282 $(HOST_EXPORTS) \
b813574b 7283 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7285 done; \
a90ef4bf
JM
7286 echo "Doing clean in etc" ; \
7287 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7290 "RANLIB=$${RANLIB}" \
0c24b341 7291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7292 clean) \
2a4cbe27
NN
7293 || exit 1
7294
a90ef4bf 7295@endif etc
2a4cbe27 7296
a90ef4bf
JM
7297.PHONY: maybe-distclean-etc distclean-etc
7298maybe-distclean-etc:
7299@if etc
7300maybe-distclean-etc: distclean-etc
2a4cbe27 7301
a90ef4bf 7302distclean-etc:
0aed8855 7303 @: $(MAKE); $(unstage)
a90ef4bf 7304 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7305 r=`${PWD_COMMAND}`; export r; \
7306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7307 $(HOST_EXPORTS) \
b813574b 7308 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7310 done; \
a90ef4bf
JM
7311 echo "Doing distclean in etc" ; \
7312 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7315 "RANLIB=$${RANLIB}" \
0c24b341 7316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7317 distclean) \
2a4cbe27
NN
7318 || exit 1
7319
a90ef4bf 7320@endif etc
2a4cbe27 7321
a90ef4bf
JM
7322.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7323maybe-maintainer-clean-etc:
7324@if etc
7325maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7326
a90ef4bf 7327maintainer-clean-etc:
0aed8855 7328 @: $(MAKE); $(unstage)
a90ef4bf 7329 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7330 r=`${PWD_COMMAND}`; export r; \
7331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7332 $(HOST_EXPORTS) \
b813574b 7333 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7335 done; \
a90ef4bf
JM
7336 echo "Doing maintainer-clean in etc" ; \
7337 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7340 "RANLIB=$${RANLIB}" \
0c24b341 7341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7342 maintainer-clean) \
2a4cbe27
NN
7343 || exit 1
7344
a90ef4bf 7345@endif etc
2a4cbe27 7346
2a4cbe27 7347
a7254363 7348
a90ef4bf
JM
7349.PHONY: configure-fastjar maybe-configure-fastjar
7350maybe-configure-fastjar:
4f0ef2d8 7351@if gcc-bootstrap
a90ef4bf 7352configure-fastjar: stage_current
4f0ef2d8 7353@endif gcc-bootstrap
a90ef4bf
JM
7354@if fastjar
7355maybe-configure-fastjar: configure-fastjar
7356configure-fastjar:
0aed8855 7357 @: $(MAKE); $(unstage)
c52c6897 7358 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7360 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
7361 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
1f53ca9a 7362 $(HOST_EXPORTS) \
a90ef4bf
JM
7363 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7364 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7365 case $(srcdir) in \
b00612cc 7366 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7367 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7368 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7369 esac; \
a90ef4bf
JM
7370 srcdiroption="--srcdir=$${topdir}/fastjar"; \
7371 libsrcdir="$$s/fastjar"; \
4fa63067 7372 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
7373 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7374 --target=${target_alias} $${srcdiroption} \
4fa63067 7375 || exit 1
a90ef4bf 7376@endif fastjar
4fa63067 7377
a7254363
PB
7378
7379
d545f33b
PB
7380
7381
a90ef4bf
JM
7382.PHONY: all-fastjar maybe-all-fastjar
7383maybe-all-fastjar:
4f0ef2d8 7384@if gcc-bootstrap
a90ef4bf 7385all-fastjar: stage_current
4f0ef2d8 7386@endif gcc-bootstrap
a90ef4bf
JM
7387@if fastjar
7388TARGET-fastjar=all
7389maybe-all-fastjar: all-fastjar
7390all-fastjar: configure-fastjar
0aed8855 7391 @: $(MAKE); $(unstage)
4fa63067
NN
7392 @r=`${PWD_COMMAND}`; export r; \
7393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7394 $(HOST_EXPORTS) \
a90ef4bf 7395 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7396 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7397 $(TARGET-fastjar))
7398@endif fastjar
4fa63067 7399
a7254363 7400
d545f33b
PB
7401
7402
a90ef4bf
JM
7403.PHONY: check-fastjar maybe-check-fastjar
7404maybe-check-fastjar:
7405@if fastjar
7406maybe-check-fastjar: check-fastjar
4fa63067
NN
7407
7408# This module is only tested in a native toolchain.
a90ef4bf 7409check-fastjar:
0aed8855 7410 @: $(MAKE); $(unstage)
4fa63067
NN
7411 @if [ '$(host)' = '$(target)' ] ; then \
7412 r=`${PWD_COMMAND}`; export r; \
7413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7414 $(HOST_EXPORTS) \
a90ef4bf 7415 (cd $(HOST_SUBDIR)/fastjar && \
4cfaf6d5 7416 $(MAKE) $(FLAGS_TO_PASS) check); \
4fa63067
NN
7417 fi
7418
a90ef4bf 7419@endif fastjar
4fa63067 7420
a90ef4bf
JM
7421.PHONY: install-fastjar maybe-install-fastjar
7422maybe-install-fastjar:
7423@if fastjar
7424maybe-install-fastjar: install-fastjar
4fa63067 7425
a90ef4bf 7426install-fastjar: installdirs
0aed8855 7427 @: $(MAKE); $(unstage)
4fa63067
NN
7428 @r=`${PWD_COMMAND}`; export r; \
7429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7430 $(HOST_EXPORTS) \
a90ef4bf 7431 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7432 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7433
a90ef4bf 7434@endif fastjar
4fa63067 7435
a90ef4bf
JM
7436.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7437maybe-install-strip-fastjar:
7438@if fastjar
7439maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7440
a90ef4bf 7441install-strip-fastjar: installdirs
9b980aa1
RW
7442 @: $(MAKE); $(unstage)
7443 @r=`${PWD_COMMAND}`; export r; \
7444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7445 $(HOST_EXPORTS) \
a90ef4bf 7446 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7447 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7448
a90ef4bf 7449@endif fastjar
9b980aa1 7450
56a8fe78 7451# Other targets (info, dvi, pdf, etc.)
4fa63067 7452
a90ef4bf
JM
7453.PHONY: maybe-info-fastjar info-fastjar
7454maybe-info-fastjar:
7455@if fastjar
7456maybe-info-fastjar: info-fastjar
4fa63067 7457
a90ef4bf
JM
7458info-fastjar: \
7459 configure-fastjar
0aed8855 7460 @: $(MAKE); $(unstage)
a90ef4bf 7461 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7462 r=`${PWD_COMMAND}`; export r; \
7463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7464 $(HOST_EXPORTS) \
b813574b 7465 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7467 done; \
a90ef4bf
JM
7468 echo "Doing info in fastjar" ; \
7469 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7472 "RANLIB=$${RANLIB}" \
0c24b341 7473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7474 info) \
2a4cbe27
NN
7475 || exit 1
7476
a90ef4bf 7477@endif fastjar
2a4cbe27 7478
a90ef4bf
JM
7479.PHONY: maybe-dvi-fastjar dvi-fastjar
7480maybe-dvi-fastjar:
7481@if fastjar
7482maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7483
a90ef4bf
JM
7484dvi-fastjar: \
7485 configure-fastjar
0aed8855 7486 @: $(MAKE); $(unstage)
a90ef4bf 7487 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7488 r=`${PWD_COMMAND}`; export r; \
7489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7490 $(HOST_EXPORTS) \
b813574b 7491 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7493 done; \
a90ef4bf
JM
7494 echo "Doing dvi in fastjar" ; \
7495 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7498 "RANLIB=$${RANLIB}" \
0c24b341 7499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7500 dvi) \
2a4cbe27
NN
7501 || exit 1
7502
a90ef4bf 7503@endif fastjar
2a4cbe27 7504
a90ef4bf
JM
7505.PHONY: maybe-pdf-fastjar pdf-fastjar
7506maybe-pdf-fastjar:
7507@if fastjar
7508maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7509
a90ef4bf
JM
7510pdf-fastjar: \
7511 configure-fastjar
56a8fe78 7512 @: $(MAKE); $(unstage)
a90ef4bf 7513 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7514 r=`${PWD_COMMAND}`; export r; \
7515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7516 $(HOST_EXPORTS) \
7517 for flag in $(EXTRA_HOST_FLAGS) ; do \
7518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7519 done; \
a90ef4bf
JM
7520 echo "Doing pdf in fastjar" ; \
7521 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
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}" \
56a8fe78
DD
7526 pdf) \
7527 || exit 1
7528
a90ef4bf 7529@endif fastjar
56a8fe78 7530
a90ef4bf
JM
7531.PHONY: maybe-html-fastjar html-fastjar
7532maybe-html-fastjar:
7533@if fastjar
7534maybe-html-fastjar: html-fastjar
6d389afc 7535
a90ef4bf
JM
7536html-fastjar: \
7537 configure-fastjar
0aed8855 7538 @: $(MAKE); $(unstage)
a90ef4bf 7539 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7540 r=`${PWD_COMMAND}`; export r; \
7541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7542 $(HOST_EXPORTS) \
7543 for flag in $(EXTRA_HOST_FLAGS) ; do \
7544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7545 done; \
a90ef4bf
JM
7546 echo "Doing html in fastjar" ; \
7547 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7550 "RANLIB=$${RANLIB}" \
0c24b341 7551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7552 html) \
7553 || exit 1
7554
a90ef4bf 7555@endif fastjar
6d389afc 7556
a90ef4bf
JM
7557.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7558maybe-TAGS-fastjar:
7559@if fastjar
7560maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7561
a90ef4bf
JM
7562TAGS-fastjar: \
7563 configure-fastjar
0aed8855 7564 @: $(MAKE); $(unstage)
a90ef4bf 7565 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7566 r=`${PWD_COMMAND}`; export r; \
7567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7568 $(HOST_EXPORTS) \
b813574b 7569 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7571 done; \
a90ef4bf
JM
7572 echo "Doing TAGS in fastjar" ; \
7573 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7576 "RANLIB=$${RANLIB}" \
0c24b341 7577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7578 TAGS) \
2a4cbe27
NN
7579 || exit 1
7580
a90ef4bf 7581@endif fastjar
2a4cbe27 7582
a90ef4bf
JM
7583.PHONY: maybe-install-info-fastjar install-info-fastjar
7584maybe-install-info-fastjar:
7585@if fastjar
7586maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7587
a90ef4bf
JM
7588install-info-fastjar: \
7589 configure-fastjar \
7590 info-fastjar
0aed8855 7591 @: $(MAKE); $(unstage)
a90ef4bf 7592 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7593 r=`${PWD_COMMAND}`; export r; \
7594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7595 $(HOST_EXPORTS) \
b813574b 7596 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7598 done; \
a90ef4bf
JM
7599 echo "Doing install-info in fastjar" ; \
7600 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7603 "RANLIB=$${RANLIB}" \
0c24b341 7604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7605 install-info) \
2a4cbe27
NN
7606 || exit 1
7607
a90ef4bf 7608@endif fastjar
2a4cbe27 7609
a90ef4bf
JM
7610.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7611maybe-install-pdf-fastjar:
7612@if fastjar
7613maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7614
a90ef4bf
JM
7615install-pdf-fastjar: \
7616 configure-fastjar \
7617 pdf-fastjar
a3ca38d2 7618 @: $(MAKE); $(unstage)
a90ef4bf 7619 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7620 r=`${PWD_COMMAND}`; export r; \
7621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7622 $(HOST_EXPORTS) \
7623 for flag in $(EXTRA_HOST_FLAGS) ; do \
7624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7625 done; \
a90ef4bf
JM
7626 echo "Doing install-pdf in fastjar" ; \
7627 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7630 "RANLIB=$${RANLIB}" \
0c24b341 7631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7632 install-pdf) \
7633 || exit 1
7634
a90ef4bf 7635@endif fastjar
a3ca38d2 7636
a90ef4bf
JM
7637.PHONY: maybe-install-html-fastjar install-html-fastjar
7638maybe-install-html-fastjar:
7639@if fastjar
7640maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7641
a90ef4bf
JM
7642install-html-fastjar: \
7643 configure-fastjar \
7644 html-fastjar
108a6f8e 7645 @: $(MAKE); $(unstage)
a90ef4bf 7646 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7647 r=`${PWD_COMMAND}`; export r; \
7648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7649 $(HOST_EXPORTS) \
7650 for flag in $(EXTRA_HOST_FLAGS) ; do \
7651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7652 done; \
a90ef4bf
JM
7653 echo "Doing install-html in fastjar" ; \
7654 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
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}" \
108a6f8e
CD
7659 install-html) \
7660 || exit 1
7661
a90ef4bf 7662@endif fastjar
108a6f8e 7663
a90ef4bf
JM
7664.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7665maybe-installcheck-fastjar:
7666@if fastjar
7667maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7668
a90ef4bf
JM
7669installcheck-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 installcheck 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 installcheck) \
2a4cbe27
NN
7686 || exit 1
7687
a90ef4bf 7688@endif fastjar
2a4cbe27 7689
a90ef4bf
JM
7690.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7691maybe-mostlyclean-fastjar:
7692@if fastjar
7693maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7694
a90ef4bf 7695mostlyclean-fastjar:
0aed8855 7696 @: $(MAKE); $(unstage)
a90ef4bf 7697 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7698 r=`${PWD_COMMAND}`; export r; \
7699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7700 $(HOST_EXPORTS) \
b813574b 7701 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7703 done; \
a90ef4bf
JM
7704 echo "Doing mostlyclean in fastjar" ; \
7705 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7708 "RANLIB=$${RANLIB}" \
0c24b341 7709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7710 mostlyclean) \
2a4cbe27
NN
7711 || exit 1
7712
a90ef4bf 7713@endif fastjar
2a4cbe27 7714
a90ef4bf
JM
7715.PHONY: maybe-clean-fastjar clean-fastjar
7716maybe-clean-fastjar:
7717@if fastjar
7718maybe-clean-fastjar: clean-fastjar
2a4cbe27 7719
a90ef4bf 7720clean-fastjar:
0aed8855 7721 @: $(MAKE); $(unstage)
a90ef4bf 7722 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7723 r=`${PWD_COMMAND}`; export r; \
7724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7725 $(HOST_EXPORTS) \
b813574b 7726 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7728 done; \
a90ef4bf
JM
7729 echo "Doing clean in fastjar" ; \
7730 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7733 "RANLIB=$${RANLIB}" \
0c24b341 7734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7735 clean) \
2a4cbe27
NN
7736 || exit 1
7737
a90ef4bf 7738@endif fastjar
2a4cbe27 7739
a90ef4bf
JM
7740.PHONY: maybe-distclean-fastjar distclean-fastjar
7741maybe-distclean-fastjar:
7742@if fastjar
7743maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7744
a90ef4bf 7745distclean-fastjar:
0aed8855 7746 @: $(MAKE); $(unstage)
a90ef4bf 7747 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7748 r=`${PWD_COMMAND}`; export r; \
7749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7750 $(HOST_EXPORTS) \
b813574b 7751 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7753 done; \
a90ef4bf
JM
7754 echo "Doing distclean in fastjar" ; \
7755 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7758 "RANLIB=$${RANLIB}" \
0c24b341 7759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7760 distclean) \
2a4cbe27
NN
7761 || exit 1
7762
a90ef4bf 7763@endif fastjar
2a4cbe27 7764
a90ef4bf
JM
7765.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7766maybe-maintainer-clean-fastjar:
7767@if fastjar
7768maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7769
7770maintainer-clean-fastjar:
0aed8855 7771 @: $(MAKE); $(unstage)
a90ef4bf 7772 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7773 r=`${PWD_COMMAND}`; export r; \
7774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7775 $(HOST_EXPORTS) \
b813574b 7776 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7778 done; \
a90ef4bf
JM
7779 echo "Doing maintainer-clean in fastjar" ; \
7780 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7783 "RANLIB=$${RANLIB}" \
0c24b341 7784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7785 maintainer-clean) \
2a4cbe27
NN
7786 || exit 1
7787
a90ef4bf 7788@endif fastjar
2a4cbe27 7789
2a4cbe27 7790
a7254363 7791
a90ef4bf
JM
7792.PHONY: configure-fixincludes maybe-configure-fixincludes
7793maybe-configure-fixincludes:
4f0ef2d8 7794@if gcc-bootstrap
a90ef4bf 7795configure-fixincludes: stage_current
4f0ef2d8 7796@endif gcc-bootstrap
a90ef4bf
JM
7797@if fixincludes
7798maybe-configure-fixincludes: configure-fixincludes
7799configure-fixincludes:
0aed8855 7800 @: $(MAKE); $(unstage)
c52c6897 7801 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7803 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
7804 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
1f53ca9a 7805 $(HOST_EXPORTS) \
a90ef4bf
JM
7806 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
7807 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 7808 case $(srcdir) in \
b00612cc 7809 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7810 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 7811 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7812 esac; \
a90ef4bf
JM
7813 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
7814 libsrcdir="$$s/fixincludes"; \
4fa63067 7815 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
7816 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7817 --target=${target_alias} $${srcdiroption} \
4fa63067 7818 || exit 1
a90ef4bf 7819@endif fixincludes
4fa63067 7820
a7254363
PB
7821
7822
d545f33b
PB
7823
7824
a90ef4bf
JM
7825.PHONY: all-fixincludes maybe-all-fixincludes
7826maybe-all-fixincludes:
4f0ef2d8 7827@if gcc-bootstrap
a90ef4bf 7828all-fixincludes: stage_current
4f0ef2d8 7829@endif gcc-bootstrap
a90ef4bf
JM
7830@if fixincludes
7831TARGET-fixincludes=all
7832maybe-all-fixincludes: all-fixincludes
7833all-fixincludes: configure-fixincludes
0aed8855 7834 @: $(MAKE); $(unstage)
4fa63067
NN
7835 @r=`${PWD_COMMAND}`; export r; \
7836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7837 $(HOST_EXPORTS) \
a90ef4bf 7838 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 7839 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7840 $(TARGET-fixincludes))
7841@endif fixincludes
4fa63067 7842
a7254363 7843
d545f33b
PB
7844
7845
a90ef4bf
JM
7846.PHONY: check-fixincludes maybe-check-fixincludes
7847maybe-check-fixincludes:
7848@if fixincludes
7849maybe-check-fixincludes: check-fixincludes
4fa63067 7850
a90ef4bf 7851check-fixincludes:
0aed8855 7852 @: $(MAKE); $(unstage)
4fa63067
NN
7853 @r=`${PWD_COMMAND}`; export r; \
7854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7855 $(HOST_EXPORTS) \
a90ef4bf 7856 (cd $(HOST_SUBDIR)/fixincludes && \
b00612cc 7857 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7858
a90ef4bf 7859@endif fixincludes
4fa63067 7860
a90ef4bf
JM
7861.PHONY: install-fixincludes maybe-install-fixincludes
7862maybe-install-fixincludes:
7863@if fixincludes
7864maybe-install-fixincludes: install-fixincludes
4fa63067 7865
a90ef4bf 7866install-fixincludes: installdirs
0aed8855 7867 @: $(MAKE); $(unstage)
4fa63067
NN
7868 @r=`${PWD_COMMAND}`; export r; \
7869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7870 $(HOST_EXPORTS) \
a90ef4bf 7871 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 7872 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7873
a90ef4bf 7874@endif fixincludes
4fa63067 7875
a90ef4bf
JM
7876.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
7877maybe-install-strip-fixincludes:
7878@if fixincludes
7879maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 7880
a90ef4bf 7881install-strip-fixincludes: installdirs
9b980aa1
RW
7882 @: $(MAKE); $(unstage)
7883 @r=`${PWD_COMMAND}`; export r; \
7884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7885 $(HOST_EXPORTS) \
a90ef4bf 7886 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
7887 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7888
a90ef4bf 7889@endif fixincludes
9b980aa1 7890
56a8fe78 7891# Other targets (info, dvi, pdf, etc.)
4fa63067 7892
a90ef4bf
JM
7893.PHONY: maybe-info-fixincludes info-fixincludes
7894maybe-info-fixincludes:
7895@if fixincludes
7896maybe-info-fixincludes: info-fixincludes
4fa63067 7897
a90ef4bf
JM
7898info-fixincludes: \
7899 configure-fixincludes
0aed8855 7900 @: $(MAKE); $(unstage)
a90ef4bf 7901 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
7902 r=`${PWD_COMMAND}`; export r; \
7903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7904 $(HOST_EXPORTS) \
b813574b 7905 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7907 done; \
a90ef4bf
JM
7908 echo "Doing info in fixincludes" ; \
7909 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
7910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7912 "RANLIB=$${RANLIB}" \
0c24b341 7913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7914 info) \
2a4cbe27
NN
7915 || exit 1
7916
a90ef4bf 7917@endif fixincludes
2a4cbe27 7918
a90ef4bf
JM
7919.PHONY: maybe-dvi-fixincludes dvi-fixincludes
7920maybe-dvi-fixincludes:
7921@if fixincludes
7922maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 7923
a90ef4bf
JM
7924dvi-fixincludes: \
7925 configure-fixincludes
0aed8855 7926 @: $(MAKE); $(unstage)
a90ef4bf 7927 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
7928 r=`${PWD_COMMAND}`; export r; \
7929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7930 $(HOST_EXPORTS) \
b813574b 7931 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7933 done; \
a90ef4bf
JM
7934 echo "Doing dvi in fixincludes" ; \
7935 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
7936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7938 "RANLIB=$${RANLIB}" \
0c24b341 7939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7940 dvi) \
2a4cbe27
NN
7941 || exit 1
7942
a90ef4bf 7943@endif fixincludes
2a4cbe27 7944
a90ef4bf
JM
7945.PHONY: maybe-pdf-fixincludes pdf-fixincludes
7946maybe-pdf-fixincludes:
7947@if fixincludes
7948maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 7949
a90ef4bf
JM
7950pdf-fixincludes: \
7951 configure-fixincludes
56a8fe78 7952 @: $(MAKE); $(unstage)
a90ef4bf 7953 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
7954 r=`${PWD_COMMAND}`; export r; \
7955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7956 $(HOST_EXPORTS) \
7957 for flag in $(EXTRA_HOST_FLAGS) ; do \
7958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7959 done; \
a90ef4bf
JM
7960 echo "Doing pdf in fixincludes" ; \
7961 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
7962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7964 "RANLIB=$${RANLIB}" \
0c24b341 7965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7966 pdf) \
7967 || exit 1
7968
a90ef4bf 7969@endif fixincludes
56a8fe78 7970
a90ef4bf
JM
7971.PHONY: maybe-html-fixincludes html-fixincludes
7972maybe-html-fixincludes:
7973@if fixincludes
7974maybe-html-fixincludes: html-fixincludes
6d389afc 7975
a90ef4bf
JM
7976html-fixincludes: \
7977 configure-fixincludes
0aed8855 7978 @: $(MAKE); $(unstage)
a90ef4bf 7979 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
7980 r=`${PWD_COMMAND}`; export r; \
7981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7982 $(HOST_EXPORTS) \
7983 for flag in $(EXTRA_HOST_FLAGS) ; do \
7984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7985 done; \
a90ef4bf
JM
7986 echo "Doing html in fixincludes" ; \
7987 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
7988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7990 "RANLIB=$${RANLIB}" \
0c24b341 7991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7992 html) \
7993 || exit 1
7994
a90ef4bf 7995@endif fixincludes
6d389afc 7996
a90ef4bf
JM
7997.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
7998maybe-TAGS-fixincludes:
7999@if fixincludes
8000maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8001
a90ef4bf
JM
8002# fixincludes doesn't support TAGS.
8003TAGS-fixincludes:
2a4cbe27 8004
a90ef4bf 8005@endif fixincludes
2a4cbe27 8006
a90ef4bf
JM
8007.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8008maybe-install-info-fixincludes:
8009@if fixincludes
8010maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8011
a90ef4bf
JM
8012install-info-fixincludes: \
8013 configure-fixincludes \
8014 info-fixincludes
0aed8855 8015 @: $(MAKE); $(unstage)
a90ef4bf 8016 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8017 r=`${PWD_COMMAND}`; export r; \
8018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8019 $(HOST_EXPORTS) \
b813574b 8020 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8022 done; \
a90ef4bf
JM
8023 echo "Doing install-info in fixincludes" ; \
8024 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8027 "RANLIB=$${RANLIB}" \
0c24b341 8028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8029 install-info) \
2a4cbe27
NN
8030 || exit 1
8031
a90ef4bf 8032@endif fixincludes
2a4cbe27 8033
a90ef4bf
JM
8034.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8035maybe-install-pdf-fixincludes:
8036@if fixincludes
8037maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8038
a90ef4bf
JM
8039install-pdf-fixincludes: \
8040 configure-fixincludes \
8041 pdf-fixincludes
a3ca38d2 8042 @: $(MAKE); $(unstage)
a90ef4bf 8043 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8044 r=`${PWD_COMMAND}`; export r; \
8045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8046 $(HOST_EXPORTS) \
8047 for flag in $(EXTRA_HOST_FLAGS) ; do \
8048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8049 done; \
a90ef4bf
JM
8050 echo "Doing install-pdf in fixincludes" ; \
8051 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8054 "RANLIB=$${RANLIB}" \
0c24b341 8055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8056 install-pdf) \
8057 || exit 1
8058
a90ef4bf 8059@endif fixincludes
a3ca38d2 8060
a90ef4bf
JM
8061.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8062maybe-install-html-fixincludes:
8063@if fixincludes
8064maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8065
a90ef4bf
JM
8066install-html-fixincludes: \
8067 configure-fixincludes \
8068 html-fixincludes
108a6f8e 8069 @: $(MAKE); $(unstage)
a90ef4bf 8070 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8071 r=`${PWD_COMMAND}`; export r; \
8072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8073 $(HOST_EXPORTS) \
8074 for flag in $(EXTRA_HOST_FLAGS) ; do \
8075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8076 done; \
a90ef4bf
JM
8077 echo "Doing install-html in fixincludes" ; \
8078 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8081 "RANLIB=$${RANLIB}" \
0c24b341 8082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8083 install-html) \
8084 || exit 1
8085
a90ef4bf 8086@endif fixincludes
108a6f8e 8087
a90ef4bf
JM
8088.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8089maybe-installcheck-fixincludes:
8090@if fixincludes
8091maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8092
a90ef4bf
JM
8093installcheck-fixincludes: \
8094 configure-fixincludes
0aed8855 8095 @: $(MAKE); $(unstage)
a90ef4bf 8096 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8097 r=`${PWD_COMMAND}`; export r; \
8098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8099 $(HOST_EXPORTS) \
b813574b 8100 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8102 done; \
a90ef4bf
JM
8103 echo "Doing installcheck in fixincludes" ; \
8104 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8107 "RANLIB=$${RANLIB}" \
0c24b341 8108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8109 installcheck) \
2a4cbe27
NN
8110 || exit 1
8111
a90ef4bf 8112@endif fixincludes
2a4cbe27 8113
a90ef4bf
JM
8114.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8115maybe-mostlyclean-fixincludes:
8116@if fixincludes
8117maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8118
a90ef4bf 8119mostlyclean-fixincludes:
0aed8855 8120 @: $(MAKE); $(unstage)
a90ef4bf 8121 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8122 r=`${PWD_COMMAND}`; export r; \
8123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8124 $(HOST_EXPORTS) \
b813574b 8125 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8127 done; \
a90ef4bf
JM
8128 echo "Doing mostlyclean in fixincludes" ; \
8129 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8132 "RANLIB=$${RANLIB}" \
0c24b341 8133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8134 mostlyclean) \
2a4cbe27
NN
8135 || exit 1
8136
a90ef4bf 8137@endif fixincludes
2a4cbe27 8138
a90ef4bf
JM
8139.PHONY: maybe-clean-fixincludes clean-fixincludes
8140maybe-clean-fixincludes:
8141@if fixincludes
8142maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8143
a90ef4bf 8144clean-fixincludes:
0aed8855 8145 @: $(MAKE); $(unstage)
a90ef4bf 8146 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8147 r=`${PWD_COMMAND}`; export r; \
8148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8149 $(HOST_EXPORTS) \
b813574b 8150 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8152 done; \
a90ef4bf
JM
8153 echo "Doing clean in fixincludes" ; \
8154 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8157 "RANLIB=$${RANLIB}" \
0c24b341 8158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8159 clean) \
2a4cbe27
NN
8160 || exit 1
8161
a90ef4bf 8162@endif fixincludes
2a4cbe27 8163
a90ef4bf
JM
8164.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8165maybe-distclean-fixincludes:
8166@if fixincludes
8167maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8168
a90ef4bf 8169distclean-fixincludes:
0aed8855 8170 @: $(MAKE); $(unstage)
a90ef4bf 8171 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8172 r=`${PWD_COMMAND}`; export r; \
8173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8174 $(HOST_EXPORTS) \
b813574b 8175 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8177 done; \
a90ef4bf
JM
8178 echo "Doing distclean in fixincludes" ; \
8179 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8182 "RANLIB=$${RANLIB}" \
0c24b341 8183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8184 distclean) \
2a4cbe27
NN
8185 || exit 1
8186
a90ef4bf 8187@endif fixincludes
2a4cbe27 8188
a90ef4bf
JM
8189.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8190maybe-maintainer-clean-fixincludes:
8191@if fixincludes
8192maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8193
a90ef4bf 8194maintainer-clean-fixincludes:
0aed8855 8195 @: $(MAKE); $(unstage)
a90ef4bf 8196 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8197 r=`${PWD_COMMAND}`; export r; \
8198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8199 $(HOST_EXPORTS) \
b813574b 8200 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8202 done; \
a90ef4bf
JM
8203 echo "Doing maintainer-clean in fixincludes" ; \
8204 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8207 "RANLIB=$${RANLIB}" \
0c24b341 8208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8209 maintainer-clean) \
2a4cbe27
NN
8210 || exit 1
8211
a90ef4bf 8212@endif fixincludes
2a4cbe27 8213
2a4cbe27 8214
a7254363 8215
a90ef4bf
JM
8216.PHONY: configure-flex maybe-configure-flex
8217maybe-configure-flex:
f9806fa5 8218@if gcc-bootstrap
a90ef4bf 8219configure-flex: stage_current
f9806fa5 8220@endif gcc-bootstrap
a90ef4bf
JM
8221@if flex
8222maybe-configure-flex: configure-flex
8223configure-flex:
f9806fa5
DE
8224 @: $(MAKE); $(unstage)
8225 @r=`${PWD_COMMAND}`; export r; \
8226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8227 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
8228 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
1f53ca9a 8229 $(HOST_EXPORTS) \
a90ef4bf
JM
8230 echo Configuring in $(HOST_SUBDIR)/flex; \
8231 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8232 case $(srcdir) in \
8233 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8234 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8235 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8236 esac; \
a90ef4bf
JM
8237 srcdiroption="--srcdir=$${topdir}/flex"; \
8238 libsrcdir="$$s/flex"; \
f9806fa5
DE
8239 $(SHELL) $${libsrcdir}/configure \
8240 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8241 --target=${target_alias} $${srcdiroption} \
8242 || exit 1
a90ef4bf 8243@endif flex
f9806fa5
DE
8244
8245
8246
8247
8248
a90ef4bf
JM
8249.PHONY: all-flex maybe-all-flex
8250maybe-all-flex:
f9806fa5 8251@if gcc-bootstrap
a90ef4bf 8252all-flex: stage_current
f9806fa5 8253@endif gcc-bootstrap
a90ef4bf
JM
8254@if flex
8255TARGET-flex=all
8256maybe-all-flex: all-flex
8257all-flex: configure-flex
f9806fa5
DE
8258 @: $(MAKE); $(unstage)
8259 @r=`${PWD_COMMAND}`; export r; \
8260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8261 $(HOST_EXPORTS) \
a90ef4bf 8262 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8263 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8264 $(TARGET-flex))
8265@endif flex
f9806fa5
DE
8266
8267
8268
8269
a90ef4bf
JM
8270.PHONY: check-flex maybe-check-flex
8271maybe-check-flex:
8272@if flex
8273maybe-check-flex: check-flex
f9806fa5 8274
a90ef4bf
JM
8275# This module is only tested in a native toolchain.
8276check-flex:
f9806fa5 8277 @: $(MAKE); $(unstage)
a90ef4bf
JM
8278 @if [ '$(host)' = '$(target)' ] ; then \
8279 r=`${PWD_COMMAND}`; export r; \
8280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8281 $(HOST_EXPORTS) \
8282 (cd $(HOST_SUBDIR)/flex && \
8283 $(MAKE) $(FLAGS_TO_PASS) check); \
8284 fi
f9806fa5 8285
a90ef4bf 8286@endif flex
f9806fa5 8287
a90ef4bf
JM
8288.PHONY: install-flex maybe-install-flex
8289maybe-install-flex:
8290@if flex
8291maybe-install-flex: install-flex
f9806fa5 8292
a90ef4bf 8293install-flex: installdirs
f9806fa5
DE
8294 @: $(MAKE); $(unstage)
8295 @r=`${PWD_COMMAND}`; export r; \
8296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8297 $(HOST_EXPORTS) \
a90ef4bf 8298 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8299 $(MAKE) $(FLAGS_TO_PASS) install)
8300
a90ef4bf 8301@endif flex
f9806fa5 8302
a90ef4bf
JM
8303.PHONY: install-strip-flex maybe-install-strip-flex
8304maybe-install-strip-flex:
8305@if flex
8306maybe-install-strip-flex: install-strip-flex
9b980aa1 8307
a90ef4bf 8308install-strip-flex: installdirs
9b980aa1
RW
8309 @: $(MAKE); $(unstage)
8310 @r=`${PWD_COMMAND}`; export r; \
8311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8312 $(HOST_EXPORTS) \
a90ef4bf 8313 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8314 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8315
a90ef4bf 8316@endif flex
9b980aa1 8317
f9806fa5
DE
8318# Other targets (info, dvi, pdf, etc.)
8319
a90ef4bf
JM
8320.PHONY: maybe-info-flex info-flex
8321maybe-info-flex:
8322@if flex
8323maybe-info-flex: info-flex
f9806fa5 8324
a90ef4bf
JM
8325info-flex: \
8326 configure-flex
f9806fa5 8327 @: $(MAKE); $(unstage)
a90ef4bf 8328 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8329 r=`${PWD_COMMAND}`; export r; \
8330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8331 $(HOST_EXPORTS) \
8332 for flag in $(EXTRA_HOST_FLAGS) ; do \
8333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8334 done; \
a90ef4bf
JM
8335 echo "Doing info in flex" ; \
8336 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8339 "RANLIB=$${RANLIB}" \
8340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8341 info) \
8342 || exit 1
8343
a90ef4bf 8344@endif flex
f9806fa5 8345
a90ef4bf
JM
8346.PHONY: maybe-dvi-flex dvi-flex
8347maybe-dvi-flex:
8348@if flex
8349maybe-dvi-flex: dvi-flex
f9806fa5 8350
a90ef4bf
JM
8351dvi-flex: \
8352 configure-flex
f9806fa5 8353 @: $(MAKE); $(unstage)
a90ef4bf 8354 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8355 r=`${PWD_COMMAND}`; export r; \
8356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8357 $(HOST_EXPORTS) \
8358 for flag in $(EXTRA_HOST_FLAGS) ; do \
8359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8360 done; \
a90ef4bf
JM
8361 echo "Doing dvi in flex" ; \
8362 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8365 "RANLIB=$${RANLIB}" \
8366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8367 dvi) \
8368 || exit 1
8369
a90ef4bf 8370@endif flex
f9806fa5 8371
a90ef4bf
JM
8372.PHONY: maybe-pdf-flex pdf-flex
8373maybe-pdf-flex:
8374@if flex
8375maybe-pdf-flex: pdf-flex
f9806fa5 8376
a90ef4bf
JM
8377pdf-flex: \
8378 configure-flex
f9806fa5 8379 @: $(MAKE); $(unstage)
a90ef4bf 8380 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8381 r=`${PWD_COMMAND}`; export r; \
8382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8383 $(HOST_EXPORTS) \
8384 for flag in $(EXTRA_HOST_FLAGS) ; do \
8385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8386 done; \
a90ef4bf
JM
8387 echo "Doing pdf in flex" ; \
8388 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8391 "RANLIB=$${RANLIB}" \
8392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8393 pdf) \
8394 || exit 1
8395
a90ef4bf 8396@endif flex
f9806fa5 8397
a90ef4bf
JM
8398.PHONY: maybe-html-flex html-flex
8399maybe-html-flex:
8400@if flex
8401maybe-html-flex: html-flex
f9806fa5 8402
a90ef4bf
JM
8403html-flex: \
8404 configure-flex
f9806fa5 8405 @: $(MAKE); $(unstage)
a90ef4bf 8406 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8407 r=`${PWD_COMMAND}`; export r; \
8408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8409 $(HOST_EXPORTS) \
8410 for flag in $(EXTRA_HOST_FLAGS) ; do \
8411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8412 done; \
a90ef4bf
JM
8413 echo "Doing html in flex" ; \
8414 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8417 "RANLIB=$${RANLIB}" \
8418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8419 html) \
8420 || exit 1
8421
a90ef4bf 8422@endif flex
f9806fa5 8423
a90ef4bf
JM
8424.PHONY: maybe-TAGS-flex TAGS-flex
8425maybe-TAGS-flex:
8426@if flex
8427maybe-TAGS-flex: TAGS-flex
f9806fa5 8428
a90ef4bf
JM
8429TAGS-flex: \
8430 configure-flex
f9806fa5 8431 @: $(MAKE); $(unstage)
a90ef4bf 8432 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8433 r=`${PWD_COMMAND}`; export r; \
8434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8435 $(HOST_EXPORTS) \
8436 for flag in $(EXTRA_HOST_FLAGS) ; do \
8437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8438 done; \
a90ef4bf
JM
8439 echo "Doing TAGS in flex" ; \
8440 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8443 "RANLIB=$${RANLIB}" \
8444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8445 TAGS) \
8446 || exit 1
8447
a90ef4bf 8448@endif flex
f9806fa5 8449
a90ef4bf
JM
8450.PHONY: maybe-install-info-flex install-info-flex
8451maybe-install-info-flex:
8452@if flex
8453maybe-install-info-flex: install-info-flex
f9806fa5 8454
a90ef4bf
JM
8455install-info-flex: \
8456 configure-flex \
8457 info-flex
f9806fa5 8458 @: $(MAKE); $(unstage)
a90ef4bf 8459 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8460 r=`${PWD_COMMAND}`; export r; \
8461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8462 $(HOST_EXPORTS) \
8463 for flag in $(EXTRA_HOST_FLAGS) ; do \
8464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8465 done; \
a90ef4bf
JM
8466 echo "Doing install-info in flex" ; \
8467 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8470 "RANLIB=$${RANLIB}" \
8471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8472 install-info) \
8473 || exit 1
8474
a90ef4bf 8475@endif flex
f9806fa5 8476
a90ef4bf
JM
8477.PHONY: maybe-install-pdf-flex install-pdf-flex
8478maybe-install-pdf-flex:
8479@if flex
8480maybe-install-pdf-flex: install-pdf-flex
f9806fa5 8481
a90ef4bf
JM
8482install-pdf-flex: \
8483 configure-flex \
8484 pdf-flex
f9806fa5 8485 @: $(MAKE); $(unstage)
a90ef4bf 8486 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8487 r=`${PWD_COMMAND}`; export r; \
8488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8489 $(HOST_EXPORTS) \
8490 for flag in $(EXTRA_HOST_FLAGS) ; do \
8491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8492 done; \
a90ef4bf
JM
8493 echo "Doing install-pdf in flex" ; \
8494 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8497 "RANLIB=$${RANLIB}" \
8498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8499 install-pdf) \
8500 || exit 1
8501
a90ef4bf 8502@endif flex
f9806fa5 8503
a90ef4bf
JM
8504.PHONY: maybe-install-html-flex install-html-flex
8505maybe-install-html-flex:
8506@if flex
8507maybe-install-html-flex: install-html-flex
f9806fa5 8508
a90ef4bf
JM
8509install-html-flex: \
8510 configure-flex \
8511 html-flex
f9806fa5 8512 @: $(MAKE); $(unstage)
a90ef4bf 8513 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8514 r=`${PWD_COMMAND}`; export r; \
8515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8516 $(HOST_EXPORTS) \
8517 for flag in $(EXTRA_HOST_FLAGS) ; do \
8518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8519 done; \
a90ef4bf
JM
8520 echo "Doing install-html in flex" ; \
8521 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8524 "RANLIB=$${RANLIB}" \
8525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8526 install-html) \
8527 || exit 1
8528
a90ef4bf 8529@endif flex
f9806fa5 8530
a90ef4bf
JM
8531.PHONY: maybe-installcheck-flex installcheck-flex
8532maybe-installcheck-flex:
8533@if flex
8534maybe-installcheck-flex: installcheck-flex
f9806fa5 8535
a90ef4bf
JM
8536installcheck-flex: \
8537 configure-flex
f9806fa5 8538 @: $(MAKE); $(unstage)
a90ef4bf 8539 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8540 r=`${PWD_COMMAND}`; export r; \
8541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8542 $(HOST_EXPORTS) \
8543 for flag in $(EXTRA_HOST_FLAGS) ; do \
8544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8545 done; \
a90ef4bf
JM
8546 echo "Doing installcheck in flex" ; \
8547 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8550 "RANLIB=$${RANLIB}" \
8551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8552 installcheck) \
8553 || exit 1
8554
a90ef4bf 8555@endif flex
f9806fa5 8556
a90ef4bf
JM
8557.PHONY: maybe-mostlyclean-flex mostlyclean-flex
8558maybe-mostlyclean-flex:
8559@if flex
8560maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 8561
a90ef4bf 8562mostlyclean-flex:
f9806fa5 8563 @: $(MAKE); $(unstage)
a90ef4bf 8564 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8565 r=`${PWD_COMMAND}`; export r; \
8566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8567 $(HOST_EXPORTS) \
8568 for flag in $(EXTRA_HOST_FLAGS) ; do \
8569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8570 done; \
a90ef4bf
JM
8571 echo "Doing mostlyclean in flex" ; \
8572 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8575 "RANLIB=$${RANLIB}" \
8576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8577 mostlyclean) \
8578 || exit 1
8579
a90ef4bf 8580@endif flex
f9806fa5 8581
a90ef4bf
JM
8582.PHONY: maybe-clean-flex clean-flex
8583maybe-clean-flex:
8584@if flex
8585maybe-clean-flex: clean-flex
f9806fa5 8586
a90ef4bf 8587clean-flex:
f9806fa5 8588 @: $(MAKE); $(unstage)
a90ef4bf 8589 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8590 r=`${PWD_COMMAND}`; export r; \
8591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8592 $(HOST_EXPORTS) \
8593 for flag in $(EXTRA_HOST_FLAGS) ; do \
8594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8595 done; \
a90ef4bf
JM
8596 echo "Doing clean in flex" ; \
8597 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8600 "RANLIB=$${RANLIB}" \
8601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8602 clean) \
8603 || exit 1
8604
a90ef4bf 8605@endif flex
f9806fa5 8606
a90ef4bf
JM
8607.PHONY: maybe-distclean-flex distclean-flex
8608maybe-distclean-flex:
8609@if flex
8610maybe-distclean-flex: distclean-flex
f9806fa5 8611
a90ef4bf 8612distclean-flex:
f9806fa5 8613 @: $(MAKE); $(unstage)
a90ef4bf 8614 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8615 r=`${PWD_COMMAND}`; export r; \
8616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8617 $(HOST_EXPORTS) \
8618 for flag in $(EXTRA_HOST_FLAGS) ; do \
8619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8620 done; \
a90ef4bf
JM
8621 echo "Doing distclean in flex" ; \
8622 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8625 "RANLIB=$${RANLIB}" \
8626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8627 distclean) \
8628 || exit 1
8629
a90ef4bf 8630@endif flex
f9806fa5 8631
a90ef4bf
JM
8632.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
8633maybe-maintainer-clean-flex:
8634@if flex
8635maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 8636
a90ef4bf 8637maintainer-clean-flex:
f9806fa5 8638 @: $(MAKE); $(unstage)
a90ef4bf 8639 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8640 r=`${PWD_COMMAND}`; export r; \
8641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8642 $(HOST_EXPORTS) \
8643 for flag in $(EXTRA_HOST_FLAGS) ; do \
8644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8645 done; \
a90ef4bf
JM
8646 echo "Doing maintainer-clean in flex" ; \
8647 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8650 "RANLIB=$${RANLIB}" \
8651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8652 maintainer-clean) \
8653 || exit 1
8654
a90ef4bf 8655@endif flex
f9806fa5
DE
8656
8657
8658
a90ef4bf
JM
8659.PHONY: configure-gas maybe-configure-gas
8660maybe-configure-gas:
4f0ef2d8 8661@if gcc-bootstrap
a90ef4bf 8662configure-gas: stage_current
4f0ef2d8 8663@endif gcc-bootstrap
a90ef4bf
JM
8664@if gas
8665maybe-configure-gas: configure-gas
8666configure-gas:
c52c6897 8667 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8669 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
8670 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
1f53ca9a 8671 $(HOST_EXPORTS) \
a90ef4bf
JM
8672 echo Configuring in $(HOST_SUBDIR)/gas; \
8673 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 8674 case $(srcdir) in \
b00612cc 8675 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8676 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 8677 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8678 esac; \
a90ef4bf
JM
8679 srcdiroption="--srcdir=$${topdir}/gas"; \
8680 libsrcdir="$$s/gas"; \
4fa63067 8681 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
8682 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8683 --target=${target_alias} $${srcdiroption} \
4fa63067 8684 || exit 1
a90ef4bf 8685@endif gas
a7254363 8686
d545f33b
PB
8687
8688
a90ef4bf
JM
8689.PHONY: configure-stage1-gas maybe-configure-stage1-gas
8690maybe-configure-stage1-gas:
8691@if gas-bootstrap
8692maybe-configure-stage1-gas: configure-stage1-gas
8693configure-stage1-gas:
8694 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8695 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
8696 @r=`${PWD_COMMAND}`; export r; \
8697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8698 TFLAGS="$(STAGE1_TFLAGS)"; \
8699 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
8700 $(HOST_EXPORTS) \
8701 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8702 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8703 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
8704 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
8705 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8706 cd $(HOST_SUBDIR)/gas || exit 1; \
8707 case $(srcdir) in \
8708 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8709 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8710 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8711 esac; \
8712 srcdiroption="--srcdir=$${topdir}/gas"; \
8713 libsrcdir="$$s/gas"; \
8714 $(SHELL) $${libsrcdir}/configure \
8715 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8716 --target=${target_alias} $${srcdiroption} \
8717 $(STAGE1_CONFIGURE_FLAGS)
8718@endif gas-bootstrap
4fa63067 8719
a90ef4bf
JM
8720.PHONY: configure-stage2-gas maybe-configure-stage2-gas
8721maybe-configure-stage2-gas:
8722@if gas-bootstrap
8723maybe-configure-stage2-gas: configure-stage2-gas
8724configure-stage2-gas:
8725 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8726 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
8727 @r=`${PWD_COMMAND}`; export r; \
8728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8729 TFLAGS="$(STAGE2_TFLAGS)"; \
8730 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 8731 $(HOST_EXPORTS) \
a90ef4bf
JM
8732 $(POSTSTAGE1_HOST_EXPORTS) \
8733 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8734 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8735 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
8736 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
8737 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8738 cd $(HOST_SUBDIR)/gas || exit 1; \
8739 case $(srcdir) in \
8740 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8741 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8742 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8743 esac; \
8744 srcdiroption="--srcdir=$${topdir}/gas"; \
8745 libsrcdir="$$s/gas"; \
8746 $(SHELL) $${libsrcdir}/configure \
8747 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8748 --target=${target_alias} $${srcdiroption} \
8749 --with-build-libsubdir=$(HOST_SUBDIR) \
8750 $(STAGE2_CONFIGURE_FLAGS)
8751@endif gas-bootstrap
4fa63067 8752
a90ef4bf
JM
8753.PHONY: configure-stage3-gas maybe-configure-stage3-gas
8754maybe-configure-stage3-gas:
8755@if gas-bootstrap
8756maybe-configure-stage3-gas: configure-stage3-gas
8757configure-stage3-gas:
8758 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8759 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
8760 @r=`${PWD_COMMAND}`; export r; \
8761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8762 TFLAGS="$(STAGE3_TFLAGS)"; \
8763 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 8764 $(HOST_EXPORTS) \
a90ef4bf
JM
8765 $(POSTSTAGE1_HOST_EXPORTS) \
8766 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8767 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8768 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
8769 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
8770 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8771 cd $(HOST_SUBDIR)/gas || exit 1; \
8772 case $(srcdir) in \
8773 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8774 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8775 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8776 esac; \
8777 srcdiroption="--srcdir=$${topdir}/gas"; \
8778 libsrcdir="$$s/gas"; \
8779 $(SHELL) $${libsrcdir}/configure \
8780 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8781 --target=${target_alias} $${srcdiroption} \
8782 --with-build-libsubdir=$(HOST_SUBDIR) \
8783 $(STAGE3_CONFIGURE_FLAGS)
8784@endif gas-bootstrap
9b980aa1 8785
a90ef4bf
JM
8786.PHONY: configure-stage4-gas maybe-configure-stage4-gas
8787maybe-configure-stage4-gas:
8788@if gas-bootstrap
8789maybe-configure-stage4-gas: configure-stage4-gas
8790configure-stage4-gas:
8791 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8792 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
8793 @r=`${PWD_COMMAND}`; export r; \
8794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8795 TFLAGS="$(STAGE4_TFLAGS)"; \
8796 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 8797 $(HOST_EXPORTS) \
a90ef4bf
JM
8798 $(POSTSTAGE1_HOST_EXPORTS) \
8799 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8800 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8801 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
8802 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
8803 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8804 cd $(HOST_SUBDIR)/gas || exit 1; \
8805 case $(srcdir) in \
8806 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8807 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8808 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8809 esac; \
8810 srcdiroption="--srcdir=$${topdir}/gas"; \
8811 libsrcdir="$$s/gas"; \
8812 $(SHELL) $${libsrcdir}/configure \
8813 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8814 --target=${target_alias} $${srcdiroption} \
8815 --with-build-libsubdir=$(HOST_SUBDIR) \
8816 $(STAGE4_CONFIGURE_FLAGS)
8817@endif gas-bootstrap
4fa63067 8818
a90ef4bf
JM
8819.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
8820maybe-configure-stageprofile-gas:
8821@if gas-bootstrap
8822maybe-configure-stageprofile-gas: configure-stageprofile-gas
8823configure-stageprofile-gas:
8824 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8825 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
8826 @r=`${PWD_COMMAND}`; export r; \
b40e3958 8827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8828 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8829 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 8830 $(HOST_EXPORTS) \
a90ef4bf
JM
8831 $(POSTSTAGE1_HOST_EXPORTS) \
8832 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8833 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8834 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
8835 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
8836 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8837 cd $(HOST_SUBDIR)/gas || exit 1; \
8838 case $(srcdir) in \
8839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8840 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8842 esac; \
8843 srcdiroption="--srcdir=$${topdir}/gas"; \
8844 libsrcdir="$$s/gas"; \
8845 $(SHELL) $${libsrcdir}/configure \
8846 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8847 --target=${target_alias} $${srcdiroption} \
8848 --with-build-libsubdir=$(HOST_SUBDIR) \
8849 $(STAGEprofile_CONFIGURE_FLAGS)
8850@endif gas-bootstrap
2a4cbe27 8851
a90ef4bf
JM
8852.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
8853maybe-configure-stagefeedback-gas:
8854@if gas-bootstrap
8855maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
8856configure-stagefeedback-gas:
8857 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8858 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
8859 @r=`${PWD_COMMAND}`; export r; \
b40e3958 8860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8861 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8862 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 8863 $(HOST_EXPORTS) \
a90ef4bf
JM
8864 $(POSTSTAGE1_HOST_EXPORTS) \
8865 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8866 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8867 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
8868 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
8869 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
8870 cd $(HOST_SUBDIR)/gas || exit 1; \
8871 case $(srcdir) in \
8872 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8873 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
8874 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8875 esac; \
8876 srcdiroption="--srcdir=$${topdir}/gas"; \
8877 libsrcdir="$$s/gas"; \
8878 $(SHELL) $${libsrcdir}/configure \
8879 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
8880 --target=${target_alias} $${srcdiroption} \
8881 --with-build-libsubdir=$(HOST_SUBDIR) \
8882 $(STAGEfeedback_CONFIGURE_FLAGS)
8883@endif gas-bootstrap
2a4cbe27 8884
56a8fe78 8885
56a8fe78 8886
56a8fe78 8887
6d389afc 8888
a90ef4bf
JM
8889.PHONY: all-gas maybe-all-gas
8890maybe-all-gas:
8891@if gcc-bootstrap
8892all-gas: stage_current
8893@endif gcc-bootstrap
8894@if gas
8895TARGET-gas=all
8896maybe-all-gas: all-gas
8897all-gas: configure-gas
8898 @r=`${PWD_COMMAND}`; export r; \
6d389afc 8899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8900 $(HOST_EXPORTS) \
8901 (cd $(HOST_SUBDIR)/gas && \
b3676d82 8902 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8903 $(TARGET-gas))
8904@endif gas
6d389afc 8905
6d389afc 8906
2a4cbe27 8907
a90ef4bf
JM
8908.PHONY: all-stage1-gas maybe-all-stage1-gas
8909.PHONY: clean-stage1-gas maybe-clean-stage1-gas
8910maybe-all-stage1-gas:
8911maybe-clean-stage1-gas:
8912@if gas-bootstrap
8913maybe-all-stage1-gas: all-stage1-gas
8914all-stage1: all-stage1-gas
8915TARGET-stage1-gas = $(TARGET-gas)
8916all-stage1-gas: configure-stage1-gas
8917 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8918 @r=`${PWD_COMMAND}`; export r; \
b40e3958 8919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8920 TFLAGS="$(STAGE1_TFLAGS)"; \
8921 $(HOST_EXPORTS) \
8922 cd $(HOST_SUBDIR)/gas && \
8923 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8924 CFLAGS="$(STAGE1_CFLAGS)" \
8925 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8926 LIBCFLAGS="$(LIBCFLAGS)" \
8927 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8928 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8929 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
8930 $(EXTRA_HOST_FLAGS) \
8931 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8932 TFLAGS="$(STAGE1_TFLAGS)" \
8933 $(TARGET-stage1-gas)
2a4cbe27 8934
a90ef4bf
JM
8935maybe-clean-stage1-gas: clean-stage1-gas
8936clean-stage1: clean-stage1-gas
8937clean-stage1-gas:
8938 @if [ $(current_stage) = stage1 ]; then \
8939 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
8940 else \
8941 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
8942 $(MAKE) stage1-start; \
8943 fi; \
8944 cd $(HOST_SUBDIR)/gas && \
8945 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 8946 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 8947@endif gas-bootstrap
2a4cbe27 8948
2a4cbe27 8949
a90ef4bf
JM
8950.PHONY: all-stage2-gas maybe-all-stage2-gas
8951.PHONY: clean-stage2-gas maybe-clean-stage2-gas
8952maybe-all-stage2-gas:
8953maybe-clean-stage2-gas:
8954@if gas-bootstrap
8955maybe-all-stage2-gas: all-stage2-gas
8956all-stage2: all-stage2-gas
8957TARGET-stage2-gas = $(TARGET-gas)
8958all-stage2-gas: configure-stage2-gas
8959 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8960 @r=`${PWD_COMMAND}`; export r; \
b40e3958 8961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8962 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 8963 $(HOST_EXPORTS) \
a90ef4bf
JM
8964 $(POSTSTAGE1_HOST_EXPORTS) \
8965 cd $(HOST_SUBDIR)/gas && \
8966 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8967 CFLAGS="$(STAGE2_CFLAGS)" \
8968 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8969 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8970 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8971 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8972 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8973 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8974 TFLAGS="$(STAGE2_TFLAGS)" \
8975 $(TARGET-stage2-gas)
2a4cbe27 8976
a90ef4bf
JM
8977maybe-clean-stage2-gas: clean-stage2-gas
8978clean-stage2: clean-stage2-gas
8979clean-stage2-gas:
8980 @if [ $(current_stage) = stage2 ]; then \
8981 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
8982 else \
8983 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
8984 $(MAKE) stage2-start; \
8985 fi; \
8986 cd $(HOST_SUBDIR)/gas && \
b3676d82 8987 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 8988@endif gas-bootstrap
2a4cbe27 8989
2a4cbe27 8990
a90ef4bf
JM
8991.PHONY: all-stage3-gas maybe-all-stage3-gas
8992.PHONY: clean-stage3-gas maybe-clean-stage3-gas
8993maybe-all-stage3-gas:
8994maybe-clean-stage3-gas:
8995@if gas-bootstrap
8996maybe-all-stage3-gas: all-stage3-gas
8997all-stage3: all-stage3-gas
8998TARGET-stage3-gas = $(TARGET-gas)
8999all-stage3-gas: configure-stage3-gas
9000 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9001 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9003 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9004 $(HOST_EXPORTS) \
a90ef4bf
JM
9005 $(POSTSTAGE1_HOST_EXPORTS) \
9006 cd $(HOST_SUBDIR)/gas && \
9007 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9008 CFLAGS="$(STAGE3_CFLAGS)" \
9009 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9010 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9011 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9012 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9013 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9014 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9015 TFLAGS="$(STAGE3_TFLAGS)" \
9016 $(TARGET-stage3-gas)
2a4cbe27 9017
a90ef4bf
JM
9018maybe-clean-stage3-gas: clean-stage3-gas
9019clean-stage3: clean-stage3-gas
9020clean-stage3-gas:
9021 @if [ $(current_stage) = stage3 ]; then \
9022 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9023 else \
9024 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9025 $(MAKE) stage3-start; \
9026 fi; \
9027 cd $(HOST_SUBDIR)/gas && \
b3676d82 9028 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9029@endif gas-bootstrap
2a4cbe27 9030
2a4cbe27 9031
a90ef4bf
JM
9032.PHONY: all-stage4-gas maybe-all-stage4-gas
9033.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9034maybe-all-stage4-gas:
9035maybe-clean-stage4-gas:
9036@if gas-bootstrap
9037maybe-all-stage4-gas: all-stage4-gas
9038all-stage4: all-stage4-gas
9039TARGET-stage4-gas = $(TARGET-gas)
9040all-stage4-gas: configure-stage4-gas
9041 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9042 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9044 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9045 $(HOST_EXPORTS) \
a90ef4bf
JM
9046 $(POSTSTAGE1_HOST_EXPORTS) \
9047 cd $(HOST_SUBDIR)/gas && \
9048 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9049 CFLAGS="$(STAGE4_CFLAGS)" \
9050 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9051 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9052 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9053 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9054 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9055 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9056 TFLAGS="$(STAGE4_TFLAGS)" \
9057 $(TARGET-stage4-gas)
2a4cbe27 9058
a90ef4bf
JM
9059maybe-clean-stage4-gas: clean-stage4-gas
9060clean-stage4: clean-stage4-gas
9061clean-stage4-gas:
9062 @if [ $(current_stage) = stage4 ]; then \
9063 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9064 else \
9065 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9066 $(MAKE) stage4-start; \
9067 fi; \
9068 cd $(HOST_SUBDIR)/gas && \
b3676d82 9069 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9070@endif gas-bootstrap
2a4cbe27 9071
2a4cbe27 9072
a90ef4bf
JM
9073.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9074.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9075maybe-all-stageprofile-gas:
9076maybe-clean-stageprofile-gas:
9077@if gas-bootstrap
9078maybe-all-stageprofile-gas: all-stageprofile-gas
9079all-stageprofile: all-stageprofile-gas
9080TARGET-stageprofile-gas = $(TARGET-gas)
9081all-stageprofile-gas: configure-stageprofile-gas
9082 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9083 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9085 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9086 $(HOST_EXPORTS) \
a90ef4bf
JM
9087 $(POSTSTAGE1_HOST_EXPORTS) \
9088 cd $(HOST_SUBDIR)/gas && \
9089 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9090 CFLAGS="$(STAGEprofile_CFLAGS)" \
9091 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9092 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9093 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9094 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9095 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9096 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9097 TFLAGS="$(STAGEprofile_TFLAGS)" \
9098 $(TARGET-stageprofile-gas)
4fa63067 9099
a90ef4bf
JM
9100maybe-clean-stageprofile-gas: clean-stageprofile-gas
9101clean-stageprofile: clean-stageprofile-gas
9102clean-stageprofile-gas:
9103 @if [ $(current_stage) = stageprofile ]; then \
9104 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9105 else \
9106 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9107 $(MAKE) stageprofile-start; \
9108 fi; \
9109 cd $(HOST_SUBDIR)/gas && \
b3676d82 9110 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9111@endif gas-bootstrap
4fa63067 9112
a7254363 9113
a90ef4bf
JM
9114.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9115.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9116maybe-all-stagefeedback-gas:
9117maybe-clean-stagefeedback-gas:
9118@if gas-bootstrap
9119maybe-all-stagefeedback-gas: all-stagefeedback-gas
9120all-stagefeedback: all-stagefeedback-gas
9121TARGET-stagefeedback-gas = $(TARGET-gas)
9122all-stagefeedback-gas: configure-stagefeedback-gas
9123 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9124 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9126 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9127 $(HOST_EXPORTS) \
9128 $(POSTSTAGE1_HOST_EXPORTS) \
9129 cd $(HOST_SUBDIR)/gas && \
9130 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9131 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9132 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9133 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9134 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9135 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9136 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9137 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9138 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9139 $(TARGET-stagefeedback-gas)
d545f33b 9140
a90ef4bf
JM
9141maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9142clean-stagefeedback: clean-stagefeedback-gas
9143clean-stagefeedback-gas:
9144 @if [ $(current_stage) = stagefeedback ]; then \
9145 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9146 else \
9147 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9148 $(MAKE) stagefeedback-start; \
9149 fi; \
9150 cd $(HOST_SUBDIR)/gas && \
b3676d82 9151 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9152@endif gas-bootstrap
d545f33b 9153
2a4cbe27 9154
a7254363 9155
d545f33b
PB
9156
9157
a90ef4bf
JM
9158.PHONY: check-gas maybe-check-gas
9159maybe-check-gas:
9160@if gas
9161maybe-check-gas: check-gas
2a4cbe27 9162
a90ef4bf 9163check-gas:
0aed8855 9164 @: $(MAKE); $(unstage)
4fa63067 9165 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9167 $(HOST_EXPORTS) \
a90ef4bf 9168 (cd $(HOST_SUBDIR)/gas && \
b00612cc 9169 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 9170
a90ef4bf 9171@endif gas
2a4cbe27 9172
a90ef4bf
JM
9173.PHONY: install-gas maybe-install-gas
9174maybe-install-gas:
9175@if gas
9176maybe-install-gas: install-gas
2a4cbe27 9177
a90ef4bf 9178install-gas: installdirs
0aed8855 9179 @: $(MAKE); $(unstage)
4fa63067 9180 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9182 $(HOST_EXPORTS) \
a90ef4bf 9183 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9184 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9185
a90ef4bf 9186@endif gas
2a4cbe27 9187
a90ef4bf
JM
9188.PHONY: install-strip-gas maybe-install-strip-gas
9189maybe-install-strip-gas:
9190@if gas
9191maybe-install-strip-gas: install-strip-gas
9b980aa1 9192
a90ef4bf 9193install-strip-gas: installdirs
9b980aa1
RW
9194 @: $(MAKE); $(unstage)
9195 @r=`${PWD_COMMAND}`; export r; \
9196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9197 $(HOST_EXPORTS) \
a90ef4bf 9198 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9199 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9200
a90ef4bf 9201@endif gas
9b980aa1 9202
56a8fe78 9203# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9204
a90ef4bf
JM
9205.PHONY: maybe-info-gas info-gas
9206maybe-info-gas:
9207@if gas
9208maybe-info-gas: info-gas
2a4cbe27 9209
a90ef4bf
JM
9210info-gas: \
9211 configure-gas
9212 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9213 r=`${PWD_COMMAND}`; export r; \
9214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9215 $(HOST_EXPORTS) \
b813574b 9216 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9218 done; \
a90ef4bf
JM
9219 echo "Doing info in gas" ; \
9220 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9223 "RANLIB=$${RANLIB}" \
0c24b341 9224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9225 info) \
2a4cbe27
NN
9226 || exit 1
9227
a90ef4bf 9228@endif gas
2a4cbe27 9229
a90ef4bf
JM
9230.PHONY: maybe-dvi-gas dvi-gas
9231maybe-dvi-gas:
9232@if gas
9233maybe-dvi-gas: dvi-gas
2a4cbe27 9234
a90ef4bf
JM
9235dvi-gas: \
9236 configure-gas
9237 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9238 r=`${PWD_COMMAND}`; export r; \
9239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9240 $(HOST_EXPORTS) \
b813574b 9241 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9243 done; \
a90ef4bf
JM
9244 echo "Doing dvi in gas" ; \
9245 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9248 "RANLIB=$${RANLIB}" \
0c24b341 9249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9250 dvi) \
2a4cbe27
NN
9251 || exit 1
9252
a90ef4bf 9253@endif gas
2a4cbe27 9254
a90ef4bf
JM
9255.PHONY: maybe-pdf-gas pdf-gas
9256maybe-pdf-gas:
9257@if gas
9258maybe-pdf-gas: pdf-gas
56a8fe78 9259
a90ef4bf
JM
9260pdf-gas: \
9261 configure-gas
9262 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9263 r=`${PWD_COMMAND}`; export r; \
9264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9265 $(HOST_EXPORTS) \
9266 for flag in $(EXTRA_HOST_FLAGS) ; do \
9267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9268 done; \
a90ef4bf
JM
9269 echo "Doing pdf in gas" ; \
9270 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9273 "RANLIB=$${RANLIB}" \
0c24b341 9274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9275 pdf) \
9276 || exit 1
9277
a90ef4bf 9278@endif gas
56a8fe78 9279
a90ef4bf
JM
9280.PHONY: maybe-html-gas html-gas
9281maybe-html-gas:
9282@if gas
9283maybe-html-gas: html-gas
6d389afc 9284
a90ef4bf
JM
9285html-gas: \
9286 configure-gas
9287 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9288 r=`${PWD_COMMAND}`; export r; \
9289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9290 $(HOST_EXPORTS) \
9291 for flag in $(EXTRA_HOST_FLAGS) ; do \
9292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9293 done; \
a90ef4bf
JM
9294 echo "Doing html in gas" ; \
9295 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9298 "RANLIB=$${RANLIB}" \
0c24b341 9299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9300 html) \
9301 || exit 1
9302
a90ef4bf 9303@endif gas
6d389afc 9304
a90ef4bf
JM
9305.PHONY: maybe-TAGS-gas TAGS-gas
9306maybe-TAGS-gas:
9307@if gas
9308maybe-TAGS-gas: TAGS-gas
2a4cbe27 9309
a90ef4bf
JM
9310TAGS-gas: \
9311 configure-gas
9312 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9313 r=`${PWD_COMMAND}`; export r; \
9314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9315 $(HOST_EXPORTS) \
b813574b 9316 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9318 done; \
a90ef4bf
JM
9319 echo "Doing TAGS in gas" ; \
9320 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9323 "RANLIB=$${RANLIB}" \
0c24b341 9324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9325 TAGS) \
2a4cbe27
NN
9326 || exit 1
9327
a90ef4bf 9328@endif gas
2a4cbe27 9329
a90ef4bf
JM
9330.PHONY: maybe-install-info-gas install-info-gas
9331maybe-install-info-gas:
9332@if gas
9333maybe-install-info-gas: install-info-gas
2a4cbe27 9334
a90ef4bf
JM
9335install-info-gas: \
9336 configure-gas \
9337 info-gas
9338 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9339 r=`${PWD_COMMAND}`; export r; \
9340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9341 $(HOST_EXPORTS) \
b813574b 9342 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9344 done; \
a90ef4bf
JM
9345 echo "Doing install-info in gas" ; \
9346 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9349 "RANLIB=$${RANLIB}" \
0c24b341 9350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9351 install-info) \
2a4cbe27
NN
9352 || exit 1
9353
a90ef4bf 9354@endif gas
2a4cbe27 9355
a90ef4bf
JM
9356.PHONY: maybe-install-pdf-gas install-pdf-gas
9357maybe-install-pdf-gas:
9358@if gas
9359maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 9360
a90ef4bf
JM
9361install-pdf-gas: \
9362 configure-gas \
9363 pdf-gas
9364 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
9365 r=`${PWD_COMMAND}`; export r; \
9366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9367 $(HOST_EXPORTS) \
9368 for flag in $(EXTRA_HOST_FLAGS) ; do \
9369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9370 done; \
a90ef4bf
JM
9371 echo "Doing install-pdf in gas" ; \
9372 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
9373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9375 "RANLIB=$${RANLIB}" \
0c24b341 9376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
9377 install-pdf) \
9378 || exit 1
9379
a90ef4bf 9380@endif gas
a3ca38d2 9381
a90ef4bf
JM
9382.PHONY: maybe-install-html-gas install-html-gas
9383maybe-install-html-gas:
9384@if gas
9385maybe-install-html-gas: install-html-gas
108a6f8e 9386
a90ef4bf
JM
9387install-html-gas: \
9388 configure-gas \
9389 html-gas
9390 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
9391 r=`${PWD_COMMAND}`; export r; \
9392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9393 $(HOST_EXPORTS) \
9394 for flag in $(EXTRA_HOST_FLAGS) ; do \
9395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9396 done; \
a90ef4bf
JM
9397 echo "Doing install-html in gas" ; \
9398 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
9399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9401 "RANLIB=$${RANLIB}" \
0c24b341 9402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
9403 install-html) \
9404 || exit 1
9405
a90ef4bf 9406@endif gas
108a6f8e 9407
a90ef4bf
JM
9408.PHONY: maybe-installcheck-gas installcheck-gas
9409maybe-installcheck-gas:
9410@if gas
9411maybe-installcheck-gas: installcheck-gas
2a4cbe27 9412
a90ef4bf
JM
9413installcheck-gas: \
9414 configure-gas
9415 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9416 r=`${PWD_COMMAND}`; export r; \
9417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9418 $(HOST_EXPORTS) \
b813574b 9419 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9421 done; \
a90ef4bf
JM
9422 echo "Doing installcheck in gas" ; \
9423 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9426 "RANLIB=$${RANLIB}" \
0c24b341 9427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9428 installcheck) \
2a4cbe27
NN
9429 || exit 1
9430
a90ef4bf 9431@endif gas
2a4cbe27 9432
a90ef4bf
JM
9433.PHONY: maybe-mostlyclean-gas mostlyclean-gas
9434maybe-mostlyclean-gas:
9435@if gas
9436maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 9437
a90ef4bf
JM
9438mostlyclean-gas:
9439 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9440 r=`${PWD_COMMAND}`; export r; \
9441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9442 $(HOST_EXPORTS) \
b813574b 9443 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9445 done; \
a90ef4bf
JM
9446 echo "Doing mostlyclean in gas" ; \
9447 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9450 "RANLIB=$${RANLIB}" \
0c24b341 9451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9452 mostlyclean) \
2a4cbe27
NN
9453 || exit 1
9454
a90ef4bf 9455@endif gas
2a4cbe27 9456
a90ef4bf
JM
9457.PHONY: maybe-clean-gas clean-gas
9458maybe-clean-gas:
9459@if gas
9460maybe-clean-gas: clean-gas
2a4cbe27 9461
a90ef4bf
JM
9462clean-gas:
9463 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9464 r=`${PWD_COMMAND}`; export r; \
9465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9466 $(HOST_EXPORTS) \
b813574b 9467 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9469 done; \
a90ef4bf
JM
9470 echo "Doing clean in gas" ; \
9471 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9474 "RANLIB=$${RANLIB}" \
0c24b341 9475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9476 clean) \
2a4cbe27
NN
9477 || exit 1
9478
a90ef4bf 9479@endif gas
2a4cbe27 9480
a90ef4bf
JM
9481.PHONY: maybe-distclean-gas distclean-gas
9482maybe-distclean-gas:
9483@if gas
9484maybe-distclean-gas: distclean-gas
2a4cbe27 9485
a90ef4bf
JM
9486distclean-gas:
9487 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9488 r=`${PWD_COMMAND}`; export r; \
9489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9490 $(HOST_EXPORTS) \
b813574b 9491 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9493 done; \
a90ef4bf
JM
9494 echo "Doing distclean in gas" ; \
9495 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9498 "RANLIB=$${RANLIB}" \
0c24b341 9499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9500 distclean) \
2a4cbe27
NN
9501 || exit 1
9502
a90ef4bf 9503@endif gas
2a4cbe27 9504
a90ef4bf
JM
9505.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
9506maybe-maintainer-clean-gas:
9507@if gas
9508maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 9509
a90ef4bf
JM
9510maintainer-clean-gas:
9511 @[ -f ./gas/Makefile ] || exit 0; \
9512 r=`${PWD_COMMAND}`; export r; \
b40e3958 9513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9514 $(HOST_EXPORTS) \
b813574b 9515 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9517 done; \
a90ef4bf
JM
9518 echo "Doing maintainer-clean in gas" ; \
9519 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9522 "RANLIB=$${RANLIB}" \
0c24b341 9523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9524 maintainer-clean) \
2a4cbe27
NN
9525 || exit 1
9526
a90ef4bf 9527@endif gas
2a4cbe27 9528
2a4cbe27 9529
a7254363 9530
a90ef4bf
JM
9531.PHONY: configure-gcc maybe-configure-gcc
9532maybe-configure-gcc:
4f0ef2d8 9533@if gcc-bootstrap
a90ef4bf 9534configure-gcc: stage_current
4f0ef2d8 9535@endif gcc-bootstrap
a90ef4bf
JM
9536@if gcc
9537maybe-configure-gcc: configure-gcc
9538configure-gcc:
c52c6897 9539 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9541 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9542 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
1f53ca9a 9543 $(HOST_EXPORTS) \
a90ef4bf
JM
9544 echo Configuring in $(HOST_SUBDIR)/gcc; \
9545 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 9546 case $(srcdir) in \
b00612cc 9547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9548 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 9549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9550 esac; \
a90ef4bf
JM
9551 srcdiroption="--srcdir=$${topdir}/gcc"; \
9552 libsrcdir="$$s/gcc"; \
4fa63067 9553 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
9554 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9555 --target=${target_alias} $${srcdiroption} \
4fa63067 9556 || exit 1
a90ef4bf 9557@endif gcc
a7254363 9558
d545f33b
PB
9559
9560
a90ef4bf
JM
9561.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
9562maybe-configure-stage1-gcc:
4f0ef2d8 9563@if gcc-bootstrap
a90ef4bf
JM
9564maybe-configure-stage1-gcc: configure-stage1-gcc
9565configure-stage1-gcc:
9566 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9567 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
9568 @r=`${PWD_COMMAND}`; export r; \
9569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9570 TFLAGS="$(STAGE1_TFLAGS)"; \
9571 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9572 $(HOST_EXPORTS) \
9573 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9574 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9575 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
9576 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
9577 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9578 cd $(HOST_SUBDIR)/gcc || exit 1; \
9579 case $(srcdir) in \
9580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9581 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9583 esac; \
9584 srcdiroption="--srcdir=$${topdir}/gcc"; \
9585 libsrcdir="$$s/gcc"; \
9586 $(SHELL) $${libsrcdir}/configure \
9587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9588 --target=${target_alias} $${srcdiroption} \
9589 $(STAGE1_CONFIGURE_FLAGS)
9590@endif gcc-bootstrap
4fa63067 9591
a90ef4bf
JM
9592.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
9593maybe-configure-stage2-gcc:
9594@if gcc-bootstrap
9595maybe-configure-stage2-gcc: configure-stage2-gcc
9596configure-stage2-gcc:
9597 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9598 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 9599 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9601 TFLAGS="$(STAGE2_TFLAGS)"; \
9602 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 9603 $(HOST_EXPORTS) \
a90ef4bf
JM
9604 $(POSTSTAGE1_HOST_EXPORTS) \
9605 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9606 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9607 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
9608 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \
9609 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9610 cd $(HOST_SUBDIR)/gcc || exit 1; \
9611 case $(srcdir) in \
9612 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9613 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9614 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9615 esac; \
9616 srcdiroption="--srcdir=$${topdir}/gcc"; \
9617 libsrcdir="$$s/gcc"; \
9618 $(SHELL) $${libsrcdir}/configure \
9619 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9620 --target=${target_alias} $${srcdiroption} \
9621 --with-build-libsubdir=$(HOST_SUBDIR) \
9622 $(STAGE2_CONFIGURE_FLAGS)
9623@endif gcc-bootstrap
9b980aa1 9624
a90ef4bf
JM
9625.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
9626maybe-configure-stage3-gcc:
9627@if gcc-bootstrap
9628maybe-configure-stage3-gcc: configure-stage3-gcc
9629configure-stage3-gcc:
9630 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9631 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
9632 @r=`${PWD_COMMAND}`; export r; \
9633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9634 TFLAGS="$(STAGE3_TFLAGS)"; \
9635 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 9636 $(HOST_EXPORTS) \
a90ef4bf
JM
9637 $(POSTSTAGE1_HOST_EXPORTS) \
9638 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9639 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9640 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
9641 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
9642 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9643 cd $(HOST_SUBDIR)/gcc || exit 1; \
9644 case $(srcdir) in \
9645 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9646 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9647 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9648 esac; \
9649 srcdiroption="--srcdir=$${topdir}/gcc"; \
9650 libsrcdir="$$s/gcc"; \
9651 $(SHELL) $${libsrcdir}/configure \
9652 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9653 --target=${target_alias} $${srcdiroption} \
9654 --with-build-libsubdir=$(HOST_SUBDIR) \
9655 $(STAGE3_CONFIGURE_FLAGS)
9656@endif gcc-bootstrap
4fa63067 9657
a90ef4bf
JM
9658.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
9659maybe-configure-stage4-gcc:
9660@if gcc-bootstrap
9661maybe-configure-stage4-gcc: configure-stage4-gcc
9662configure-stage4-gcc:
9663 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9664 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9665 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9667 TFLAGS="$(STAGE4_TFLAGS)"; \
9668 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 9669 $(HOST_EXPORTS) \
a90ef4bf
JM
9670 $(POSTSTAGE1_HOST_EXPORTS) \
9671 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9672 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9673 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
9674 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
9675 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9676 cd $(HOST_SUBDIR)/gcc || exit 1; \
9677 case $(srcdir) in \
9678 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9679 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9680 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9681 esac; \
9682 srcdiroption="--srcdir=$${topdir}/gcc"; \
9683 libsrcdir="$$s/gcc"; \
9684 $(SHELL) $${libsrcdir}/configure \
9685 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9686 --target=${target_alias} $${srcdiroption} \
9687 --with-build-libsubdir=$(HOST_SUBDIR) \
9688 $(STAGE4_CONFIGURE_FLAGS)
9689@endif gcc-bootstrap
2a4cbe27 9690
a90ef4bf
JM
9691.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
9692maybe-configure-stageprofile-gcc:
9693@if gcc-bootstrap
9694maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
9695configure-stageprofile-gcc:
9696 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9697 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9698 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9700 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9701 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 9702 $(HOST_EXPORTS) \
a90ef4bf
JM
9703 $(POSTSTAGE1_HOST_EXPORTS) \
9704 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9705 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9706 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
9707 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
9708 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9709 cd $(HOST_SUBDIR)/gcc || exit 1; \
9710 case $(srcdir) in \
9711 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9712 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9713 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9714 esac; \
9715 srcdiroption="--srcdir=$${topdir}/gcc"; \
9716 libsrcdir="$$s/gcc"; \
9717 $(SHELL) $${libsrcdir}/configure \
9718 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9719 --target=${target_alias} $${srcdiroption} \
9720 --with-build-libsubdir=$(HOST_SUBDIR) \
9721 $(STAGEprofile_CONFIGURE_FLAGS)
9722@endif gcc-bootstrap
56a8fe78 9723
a90ef4bf
JM
9724.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
9725maybe-configure-stagefeedback-gcc:
9726@if gcc-bootstrap
9727maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
9728configure-stagefeedback-gcc:
9729 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9730 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9731 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 9732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9733 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9734 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 9735 $(HOST_EXPORTS) \
a90ef4bf
JM
9736 $(POSTSTAGE1_HOST_EXPORTS) \
9737 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9738 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9739 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
9740 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
9741 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
9742 cd $(HOST_SUBDIR)/gcc || exit 1; \
9743 case $(srcdir) in \
9744 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9745 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
9746 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9747 esac; \
9748 srcdiroption="--srcdir=$${topdir}/gcc"; \
9749 libsrcdir="$$s/gcc"; \
9750 $(SHELL) $${libsrcdir}/configure \
9751 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9752 --target=${target_alias} $${srcdiroption} \
9753 --with-build-libsubdir=$(HOST_SUBDIR) \
9754 $(STAGEfeedback_CONFIGURE_FLAGS)
9755@endif gcc-bootstrap
56a8fe78 9756
2a4cbe27 9757
2a4cbe27
NN
9758
9759
2a4cbe27 9760
a90ef4bf
JM
9761.PHONY: all-gcc maybe-all-gcc
9762maybe-all-gcc:
9763@if gcc-bootstrap
9764all-gcc: stage_current
9765@endif gcc-bootstrap
9766@if gcc
9767TARGET-gcc=all
9768maybe-all-gcc: all-gcc
9769all-gcc: configure-gcc
9770 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9772 $(HOST_EXPORTS) \
9773 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 9774 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
9775 $(TARGET-gcc))
9776@endif gcc
6d389afc 9777
6d389afc 9778
6d389afc 9779
a90ef4bf
JM
9780.PHONY: all-stage1-gcc maybe-all-stage1-gcc
9781.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
9782maybe-all-stage1-gcc:
9783maybe-clean-stage1-gcc:
9784@if gcc-bootstrap
9785maybe-all-stage1-gcc: all-stage1-gcc
9786all-stage1: all-stage1-gcc
9787TARGET-stage1-gcc = $(TARGET-gcc)
9788all-stage1-gcc: configure-stage1-gcc
9789 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9790 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9792 TFLAGS="$(STAGE1_TFLAGS)"; \
9793 $(HOST_EXPORTS) \
9794 cd $(HOST_SUBDIR)/gcc && \
9795 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9796 CFLAGS="$(STAGE1_CFLAGS)" \
9797 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9798 LIBCFLAGS="$(LIBCFLAGS)" \
9799 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9800 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9801 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9802 $(EXTRA_HOST_FLAGS) \
9803 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
9804 TFLAGS="$(STAGE1_TFLAGS)" \
9805 $(TARGET-stage1-gcc)
2a4cbe27 9806
a90ef4bf
JM
9807maybe-clean-stage1-gcc: clean-stage1-gcc
9808clean-stage1: clean-stage1-gcc
9809clean-stage1-gcc:
9810 @if [ $(current_stage) = stage1 ]; then \
9811 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9812 else \
9813 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
9814 $(MAKE) stage1-start; \
9815 fi; \
9816 cd $(HOST_SUBDIR)/gcc && \
9817 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9818 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 9819@endif gcc-bootstrap
2a4cbe27 9820
a3ca38d2 9821
a90ef4bf
JM
9822.PHONY: all-stage2-gcc maybe-all-stage2-gcc
9823.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
9824maybe-all-stage2-gcc:
9825maybe-clean-stage2-gcc:
9826@if gcc-bootstrap
9827maybe-all-stage2-gcc: all-stage2-gcc
9828all-stage2: all-stage2-gcc
9829TARGET-stage2-gcc = $(TARGET-gcc)
9830all-stage2-gcc: configure-stage2-gcc
9831 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9832 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 9833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9834 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 9835 $(HOST_EXPORTS) \
a90ef4bf
JM
9836 $(POSTSTAGE1_HOST_EXPORTS) \
9837 cd $(HOST_SUBDIR)/gcc && \
9838 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9839 CFLAGS="$(STAGE2_CFLAGS)" \
9840 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9841 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9842 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9843 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9844 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9845 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9846 TFLAGS="$(STAGE2_TFLAGS)" \
9847 $(TARGET-stage2-gcc)
a3ca38d2 9848
a90ef4bf
JM
9849maybe-clean-stage2-gcc: clean-stage2-gcc
9850clean-stage2: clean-stage2-gcc
9851clean-stage2-gcc:
9852 @if [ $(current_stage) = stage2 ]; then \
9853 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9854 else \
9855 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
9856 $(MAKE) stage2-start; \
9857 fi; \
9858 cd $(HOST_SUBDIR)/gcc && \
b3676d82 9859 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 9860@endif gcc-bootstrap
a3ca38d2 9861
108a6f8e 9862
a90ef4bf
JM
9863.PHONY: all-stage3-gcc maybe-all-stage3-gcc
9864.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
9865maybe-all-stage3-gcc:
9866maybe-clean-stage3-gcc:
9867@if gcc-bootstrap
9868maybe-all-stage3-gcc: all-stage3-gcc
9869all-stage3: all-stage3-gcc
9870TARGET-stage3-gcc = $(TARGET-gcc)
9871all-stage3-gcc: configure-stage3-gcc
9872 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9873 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 9874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9875 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 9876 $(HOST_EXPORTS) \
a90ef4bf
JM
9877 $(POSTSTAGE1_HOST_EXPORTS) \
9878 cd $(HOST_SUBDIR)/gcc && \
9879 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9880 CFLAGS="$(STAGE3_CFLAGS)" \
9881 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9882 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9883 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9884 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9885 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9886 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9887 TFLAGS="$(STAGE3_TFLAGS)" \
9888 $(TARGET-stage3-gcc)
108a6f8e 9889
a90ef4bf
JM
9890maybe-clean-stage3-gcc: clean-stage3-gcc
9891clean-stage3: clean-stage3-gcc
9892clean-stage3-gcc:
9893 @if [ $(current_stage) = stage3 ]; then \
9894 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9895 else \
9896 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
9897 $(MAKE) stage3-start; \
9898 fi; \
9899 cd $(HOST_SUBDIR)/gcc && \
b3676d82 9900 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 9901@endif gcc-bootstrap
108a6f8e 9902
2a4cbe27 9903
a90ef4bf
JM
9904.PHONY: all-stage4-gcc maybe-all-stage4-gcc
9905.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
9906maybe-all-stage4-gcc:
9907maybe-clean-stage4-gcc:
9908@if gcc-bootstrap
9909maybe-all-stage4-gcc: all-stage4-gcc
9910all-stage4: all-stage4-gcc
9911TARGET-stage4-gcc = $(TARGET-gcc)
9912all-stage4-gcc: configure-stage4-gcc
9913 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9914 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9916 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9917 $(HOST_EXPORTS) \
a90ef4bf
JM
9918 $(POSTSTAGE1_HOST_EXPORTS) \
9919 cd $(HOST_SUBDIR)/gcc && \
9920 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9921 CFLAGS="$(STAGE4_CFLAGS)" \
9922 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9923 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9924 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9925 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9926 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9927 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9928 TFLAGS="$(STAGE4_TFLAGS)" \
9929 $(TARGET-stage4-gcc)
2a4cbe27 9930
a90ef4bf
JM
9931maybe-clean-stage4-gcc: clean-stage4-gcc
9932clean-stage4: clean-stage4-gcc
9933clean-stage4-gcc:
9934 @if [ $(current_stage) = stage4 ]; then \
9935 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9936 else \
9937 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
9938 $(MAKE) stage4-start; \
9939 fi; \
9940 cd $(HOST_SUBDIR)/gcc && \
b3676d82 9941 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 9942@endif gcc-bootstrap
2a4cbe27 9943
a2592b1b 9944
a90ef4bf
JM
9945.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
9946.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
9947maybe-all-stageprofile-gcc:
9948maybe-clean-stageprofile-gcc:
9949@if gcc-bootstrap
9950maybe-all-stageprofile-gcc: all-stageprofile-gcc
9951all-stageprofile: all-stageprofile-gcc
9952TARGET-stageprofile-gcc = $(TARGET-gcc)
9953all-stageprofile-gcc: configure-stageprofile-gcc
9954 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9955 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 9956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9957 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9958 $(HOST_EXPORTS) \
a90ef4bf
JM
9959 $(POSTSTAGE1_HOST_EXPORTS) \
9960 cd $(HOST_SUBDIR)/gcc && \
9961 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9962 CFLAGS="$(STAGEprofile_CFLAGS)" \
9963 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9964 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9965 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9966 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9967 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9968 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
9969 TFLAGS="$(STAGEprofile_TFLAGS)" \
9970 $(TARGET-stageprofile-gcc)
2a4cbe27 9971
a90ef4bf
JM
9972maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
9973clean-stageprofile: clean-stageprofile-gcc
9974clean-stageprofile-gcc:
9975 @if [ $(current_stage) = stageprofile ]; then \
9976 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
9977 else \
9978 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
9979 $(MAKE) stageprofile-start; \
9980 fi; \
9981 cd $(HOST_SUBDIR)/gcc && \
b3676d82 9982 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 9983@endif gcc-bootstrap
2a4cbe27 9984
a7254363 9985
a90ef4bf
JM
9986.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
9987.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
9988maybe-all-stagefeedback-gcc:
9989maybe-clean-stagefeedback-gcc:
4f0ef2d8 9990@if gcc-bootstrap
a90ef4bf
JM
9991maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
9992all-stagefeedback: all-stagefeedback-gcc
9993TARGET-stagefeedback-gcc = $(TARGET-gcc)
9994all-stagefeedback-gcc: configure-stagefeedback-gcc
9995 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9996 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9998 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9999 $(HOST_EXPORTS) \
10000 $(POSTSTAGE1_HOST_EXPORTS) \
10001 cd $(HOST_SUBDIR)/gcc && \
10002 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10003 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10004 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10005 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10006 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10007 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10008 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10009 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10010 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10011 $(TARGET-stagefeedback-gcc)
d545f33b 10012
a90ef4bf
JM
10013maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10014clean-stagefeedback: clean-stagefeedback-gcc
10015clean-stagefeedback-gcc:
10016 @if [ $(current_stage) = stagefeedback ]; then \
10017 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10018 else \
10019 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10020 $(MAKE) stagefeedback-start; \
10021 fi; \
10022 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10023 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10024@endif gcc-bootstrap
4fa63067 10025
a7254363 10026
d545f33b
PB
10027
10028
4fa63067 10029
a90ef4bf
JM
10030.PHONY: check-gcc maybe-check-gcc
10031maybe-check-gcc:
10032@if gcc
10033maybe-check-gcc: check-gcc
10034
10035check-gcc:
0aed8855 10036 @: $(MAKE); $(unstage)
4fa63067
NN
10037 @r=`${PWD_COMMAND}`; export r; \
10038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10039 $(HOST_EXPORTS) \
a90ef4bf
JM
10040 (cd $(HOST_SUBDIR)/gcc && \
10041 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
4fa63067 10042
a90ef4bf 10043@endif gcc
4fa63067 10044
a90ef4bf
JM
10045.PHONY: install-gcc maybe-install-gcc
10046maybe-install-gcc:
10047@if gcc
10048maybe-install-gcc: install-gcc
4fa63067 10049
a90ef4bf 10050install-gcc: installdirs
0aed8855 10051 @: $(MAKE); $(unstage)
4fa63067
NN
10052 @r=`${PWD_COMMAND}`; export r; \
10053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10054 $(HOST_EXPORTS) \
a90ef4bf
JM
10055 (cd $(HOST_SUBDIR)/gcc && \
10056 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10057
a90ef4bf 10058@endif gcc
4fa63067 10059
a90ef4bf
JM
10060.PHONY: install-strip-gcc maybe-install-strip-gcc
10061maybe-install-strip-gcc:
10062@if gcc
10063maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10064
a90ef4bf 10065install-strip-gcc: installdirs
9b980aa1
RW
10066 @: $(MAKE); $(unstage)
10067 @r=`${PWD_COMMAND}`; export r; \
10068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10069 $(HOST_EXPORTS) \
a90ef4bf
JM
10070 (cd $(HOST_SUBDIR)/gcc && \
10071 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10072
a90ef4bf 10073@endif gcc
9b980aa1 10074
56a8fe78 10075# Other targets (info, dvi, pdf, etc.)
4fa63067 10076
a90ef4bf
JM
10077.PHONY: maybe-info-gcc info-gcc
10078maybe-info-gcc:
10079@if gcc
10080maybe-info-gcc: info-gcc
4fa63067 10081
a90ef4bf
JM
10082info-gcc: \
10083 configure-gcc
10084 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10085 r=`${PWD_COMMAND}`; export r; \
10086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10087 $(HOST_EXPORTS) \
a90ef4bf 10088 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10090 done; \
a90ef4bf
JM
10091 echo "Doing info in gcc" ; \
10092 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10095 "RANLIB=$${RANLIB}" \
0c24b341 10096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10097 info) \
2a4cbe27
NN
10098 || exit 1
10099
a90ef4bf 10100@endif gcc
2a4cbe27 10101
a90ef4bf
JM
10102.PHONY: maybe-dvi-gcc dvi-gcc
10103maybe-dvi-gcc:
10104@if gcc
10105maybe-dvi-gcc: dvi-gcc
2a4cbe27 10106
a90ef4bf
JM
10107dvi-gcc: \
10108 configure-gcc
10109 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10110 r=`${PWD_COMMAND}`; export r; \
10111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10112 $(HOST_EXPORTS) \
a90ef4bf 10113 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10115 done; \
a90ef4bf
JM
10116 echo "Doing dvi in gcc" ; \
10117 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10120 "RANLIB=$${RANLIB}" \
0c24b341 10121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10122 dvi) \
2a4cbe27
NN
10123 || exit 1
10124
a90ef4bf 10125@endif gcc
2a4cbe27 10126
a90ef4bf
JM
10127.PHONY: maybe-pdf-gcc pdf-gcc
10128maybe-pdf-gcc:
10129@if gcc
10130maybe-pdf-gcc: pdf-gcc
56a8fe78 10131
a90ef4bf
JM
10132pdf-gcc: \
10133 configure-gcc
10134 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10135 r=`${PWD_COMMAND}`; export r; \
10136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10137 $(HOST_EXPORTS) \
a90ef4bf 10138 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10140 done; \
a90ef4bf
JM
10141 echo "Doing pdf in gcc" ; \
10142 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
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}" \
56a8fe78
DD
10147 pdf) \
10148 || exit 1
10149
a90ef4bf 10150@endif gcc
56a8fe78 10151
a90ef4bf
JM
10152.PHONY: maybe-html-gcc html-gcc
10153maybe-html-gcc:
10154@if gcc
10155maybe-html-gcc: html-gcc
6d389afc 10156
a90ef4bf
JM
10157html-gcc: \
10158 configure-gcc
10159 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10160 r=`${PWD_COMMAND}`; export r; \
10161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10162 $(HOST_EXPORTS) \
a90ef4bf 10163 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10165 done; \
a90ef4bf
JM
10166 echo "Doing html in gcc" ; \
10167 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10170 "RANLIB=$${RANLIB}" \
0c24b341 10171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10172 html) \
10173 || exit 1
10174
a90ef4bf 10175@endif gcc
6d389afc 10176
a90ef4bf
JM
10177.PHONY: maybe-TAGS-gcc TAGS-gcc
10178maybe-TAGS-gcc:
10179@if gcc
10180maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10181
a90ef4bf
JM
10182TAGS-gcc: \
10183 configure-gcc
10184 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10185 r=`${PWD_COMMAND}`; export r; \
10186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10187 $(HOST_EXPORTS) \
a90ef4bf 10188 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10190 done; \
a90ef4bf
JM
10191 echo "Doing TAGS in gcc" ; \
10192 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10195 "RANLIB=$${RANLIB}" \
0c24b341 10196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10197 TAGS) \
2a4cbe27
NN
10198 || exit 1
10199
a90ef4bf 10200@endif gcc
2a4cbe27 10201
a90ef4bf
JM
10202.PHONY: maybe-install-info-gcc install-info-gcc
10203maybe-install-info-gcc:
10204@if gcc
10205maybe-install-info-gcc: install-info-gcc
2a4cbe27 10206
a90ef4bf
JM
10207install-info-gcc: \
10208 configure-gcc \
10209 info-gcc
10210 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10211 r=`${PWD_COMMAND}`; export r; \
10212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10213 $(HOST_EXPORTS) \
a90ef4bf 10214 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10216 done; \
a90ef4bf
JM
10217 echo "Doing install-info in gcc" ; \
10218 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10221 "RANLIB=$${RANLIB}" \
0c24b341 10222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10223 install-info) \
2a4cbe27
NN
10224 || exit 1
10225
a90ef4bf 10226@endif gcc
2a4cbe27 10227
a90ef4bf
JM
10228.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10229maybe-install-pdf-gcc:
10230@if gcc
10231maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10232
a90ef4bf
JM
10233install-pdf-gcc: \
10234 configure-gcc \
10235 pdf-gcc
10236 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10237 r=`${PWD_COMMAND}`; export r; \
10238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10239 $(HOST_EXPORTS) \
a90ef4bf 10240 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10242 done; \
a90ef4bf
JM
10243 echo "Doing install-pdf in gcc" ; \
10244 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10247 "RANLIB=$${RANLIB}" \
0c24b341 10248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10249 install-pdf) \
10250 || exit 1
10251
a90ef4bf 10252@endif gcc
a3ca38d2 10253
a90ef4bf
JM
10254.PHONY: maybe-install-html-gcc install-html-gcc
10255maybe-install-html-gcc:
10256@if gcc
10257maybe-install-html-gcc: install-html-gcc
108a6f8e 10258
a90ef4bf
JM
10259install-html-gcc: \
10260 configure-gcc \
10261 html-gcc
10262 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10263 r=`${PWD_COMMAND}`; export r; \
10264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10265 $(HOST_EXPORTS) \
a90ef4bf 10266 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10268 done; \
a90ef4bf
JM
10269 echo "Doing install-html in gcc" ; \
10270 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10273 "RANLIB=$${RANLIB}" \
0c24b341 10274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10275 install-html) \
10276 || exit 1
10277
a90ef4bf 10278@endif gcc
108a6f8e 10279
a90ef4bf
JM
10280.PHONY: maybe-installcheck-gcc installcheck-gcc
10281maybe-installcheck-gcc:
10282@if gcc
10283maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10284
a90ef4bf
JM
10285installcheck-gcc: \
10286 configure-gcc
10287 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10288 r=`${PWD_COMMAND}`; export r; \
10289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10290 $(HOST_EXPORTS) \
a90ef4bf 10291 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10293 done; \
a90ef4bf
JM
10294 echo "Doing installcheck in gcc" ; \
10295 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10298 "RANLIB=$${RANLIB}" \
0c24b341 10299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10300 installcheck) \
2a4cbe27
NN
10301 || exit 1
10302
a90ef4bf 10303@endif gcc
2a4cbe27 10304
a90ef4bf
JM
10305.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10306maybe-mostlyclean-gcc:
10307@if gcc
10308maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 10309
a90ef4bf
JM
10310mostlyclean-gcc:
10311 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10312 r=`${PWD_COMMAND}`; export r; \
10313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10314 $(HOST_EXPORTS) \
a90ef4bf 10315 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10317 done; \
a90ef4bf
JM
10318 echo "Doing mostlyclean in gcc" ; \
10319 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10322 "RANLIB=$${RANLIB}" \
0c24b341 10323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10324 mostlyclean) \
2a4cbe27
NN
10325 || exit 1
10326
a90ef4bf 10327@endif gcc
2a4cbe27 10328
a90ef4bf
JM
10329.PHONY: maybe-clean-gcc clean-gcc
10330maybe-clean-gcc:
10331@if gcc
10332maybe-clean-gcc: clean-gcc
2a4cbe27 10333
a90ef4bf
JM
10334clean-gcc:
10335 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10336 r=`${PWD_COMMAND}`; export r; \
10337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10338 $(HOST_EXPORTS) \
a90ef4bf 10339 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10341 done; \
a90ef4bf
JM
10342 echo "Doing clean in gcc" ; \
10343 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10346 "RANLIB=$${RANLIB}" \
0c24b341 10347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10348 clean) \
2a4cbe27
NN
10349 || exit 1
10350
a90ef4bf 10351@endif gcc
2a4cbe27 10352
a90ef4bf
JM
10353.PHONY: maybe-distclean-gcc distclean-gcc
10354maybe-distclean-gcc:
10355@if gcc
10356maybe-distclean-gcc: distclean-gcc
2a4cbe27 10357
a90ef4bf
JM
10358distclean-gcc:
10359 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10360 r=`${PWD_COMMAND}`; export r; \
10361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10362 $(HOST_EXPORTS) \
a90ef4bf 10363 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10365 done; \
a90ef4bf
JM
10366 echo "Doing distclean in gcc" ; \
10367 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10370 "RANLIB=$${RANLIB}" \
0c24b341 10371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10372 distclean) \
2a4cbe27
NN
10373 || exit 1
10374
a90ef4bf 10375@endif gcc
2a4cbe27 10376
a90ef4bf
JM
10377.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
10378maybe-maintainer-clean-gcc:
10379@if gcc
10380maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 10381
a90ef4bf
JM
10382maintainer-clean-gcc:
10383 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10384 r=`${PWD_COMMAND}`; export r; \
10385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10386 $(HOST_EXPORTS) \
a90ef4bf 10387 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10389 done; \
a90ef4bf
JM
10390 echo "Doing maintainer-clean in gcc" ; \
10391 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10394 "RANLIB=$${RANLIB}" \
0c24b341 10395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10396 maintainer-clean) \
2a4cbe27
NN
10397 || exit 1
10398
a90ef4bf 10399@endif gcc
2a4cbe27 10400
2a4cbe27 10401
a7254363 10402
a90ef4bf
JM
10403.PHONY: configure-gmp maybe-configure-gmp
10404maybe-configure-gmp:
4f0ef2d8 10405@if gcc-bootstrap
a90ef4bf 10406configure-gmp: stage_current
4f0ef2d8 10407@endif gcc-bootstrap
a90ef4bf
JM
10408@if gmp
10409maybe-configure-gmp: configure-gmp
10410configure-gmp:
c52c6897 10411 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10413 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
1f53ca9a 10415 $(HOST_EXPORTS) \
a90ef4bf
JM
10416 echo Configuring in $(HOST_SUBDIR)/gmp; \
10417 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 10418 case $(srcdir) in \
b00612cc 10419 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10420 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 10421 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10422 esac; \
a90ef4bf
JM
10423 srcdiroption="--srcdir=$${topdir}/gmp"; \
10424 libsrcdir="$$s/gmp"; \
4fa63067 10425 $(SHELL) $${libsrcdir}/configure \
a90ef4bf
JM
10426 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10427 --target=none-${host_vendor}-${host_os} $${srcdiroption} --disable-shared \
4fa63067 10428 || exit 1
a90ef4bf 10429@endif gmp
a7254363 10430
d545f33b
PB
10431
10432
a90ef4bf
JM
10433.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
10434maybe-configure-stage1-gmp:
10435@if gmp-bootstrap
10436maybe-configure-stage1-gmp: configure-stage1-gmp
10437configure-stage1-gmp:
10438 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10439 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
10440 @r=`${PWD_COMMAND}`; export r; \
10441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10442 TFLAGS="$(STAGE1_TFLAGS)"; \
10443 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10444 $(HOST_EXPORTS) \
10445 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10446 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10447 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
10448 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp ; \
10449 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10450 cd $(HOST_SUBDIR)/gmp || exit 1; \
10451 case $(srcdir) in \
10452 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10453 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10454 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10455 esac; \
10456 srcdiroption="--srcdir=$${topdir}/gmp"; \
10457 libsrcdir="$$s/gmp"; \
10458 $(SHELL) $${libsrcdir}/configure \
10459 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10460 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10461 $(STAGE1_CONFIGURE_FLAGS) \
10462 --disable-shared
10463@endif gmp-bootstrap
4fa63067 10464
a90ef4bf
JM
10465.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
10466maybe-configure-stage2-gmp:
10467@if gmp-bootstrap
10468maybe-configure-stage2-gmp: configure-stage2-gmp
10469configure-stage2-gmp:
10470 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10471 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
10472 @r=`${PWD_COMMAND}`; export r; \
10473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10474 TFLAGS="$(STAGE2_TFLAGS)"; \
10475 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10476 $(HOST_EXPORTS) \
10477 $(POSTSTAGE1_HOST_EXPORTS) \
10478 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10479 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10480 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
10481 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp ; \
10482 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10483 cd $(HOST_SUBDIR)/gmp || exit 1; \
10484 case $(srcdir) in \
10485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10486 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10488 esac; \
10489 srcdiroption="--srcdir=$${topdir}/gmp"; \
10490 libsrcdir="$$s/gmp"; \
10491 $(SHELL) $${libsrcdir}/configure \
10492 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10493 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10494 --with-build-libsubdir=$(HOST_SUBDIR) \
10495 $(STAGE2_CONFIGURE_FLAGS) \
10496 --disable-shared
10497@endif gmp-bootstrap
4fa63067 10498
a90ef4bf
JM
10499.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
10500maybe-configure-stage3-gmp:
10501@if gmp-bootstrap
10502maybe-configure-stage3-gmp: configure-stage3-gmp
10503configure-stage3-gmp:
10504 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10505 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 10506 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10508 TFLAGS="$(STAGE3_TFLAGS)"; \
10509 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 10510 $(HOST_EXPORTS) \
a90ef4bf
JM
10511 $(POSTSTAGE1_HOST_EXPORTS) \
10512 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10513 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10514 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
10515 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp ; \
10516 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10517 cd $(HOST_SUBDIR)/gmp || exit 1; \
10518 case $(srcdir) in \
10519 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10520 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10521 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10522 esac; \
10523 srcdiroption="--srcdir=$${topdir}/gmp"; \
10524 libsrcdir="$$s/gmp"; \
10525 $(SHELL) $${libsrcdir}/configure \
10526 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10527 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10528 --with-build-libsubdir=$(HOST_SUBDIR) \
10529 $(STAGE3_CONFIGURE_FLAGS) \
10530 --disable-shared
10531@endif gmp-bootstrap
2a4cbe27 10532
a90ef4bf
JM
10533.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
10534maybe-configure-stage4-gmp:
10535@if gmp-bootstrap
10536maybe-configure-stage4-gmp: configure-stage4-gmp
10537configure-stage4-gmp:
10538 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10539 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
10540 @r=`${PWD_COMMAND}`; export r; \
10541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10542 TFLAGS="$(STAGE4_TFLAGS)"; \
10543 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10544 $(HOST_EXPORTS) \
10545 $(POSTSTAGE1_HOST_EXPORTS) \
10546 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10547 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10548 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
10549 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp ; \
10550 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10551 cd $(HOST_SUBDIR)/gmp || exit 1; \
10552 case $(srcdir) in \
10553 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10554 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10555 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10556 esac; \
10557 srcdiroption="--srcdir=$${topdir}/gmp"; \
10558 libsrcdir="$$s/gmp"; \
10559 $(SHELL) $${libsrcdir}/configure \
10560 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10561 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10562 --with-build-libsubdir=$(HOST_SUBDIR) \
10563 $(STAGE4_CONFIGURE_FLAGS) \
10564 --disable-shared
10565@endif gmp-bootstrap
2a4cbe27 10566
a90ef4bf
JM
10567.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
10568maybe-configure-stageprofile-gmp:
10569@if gmp-bootstrap
10570maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
10571configure-stageprofile-gmp:
10572 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10573 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
10574 @r=`${PWD_COMMAND}`; export r; \
10575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10576 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10577 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
10578 $(HOST_EXPORTS) \
10579 $(POSTSTAGE1_HOST_EXPORTS) \
10580 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10581 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10582 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
10583 echo Configuring stage profile in $(HOST_SUBDIR)/gmp ; \
10584 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10585 cd $(HOST_SUBDIR)/gmp || exit 1; \
10586 case $(srcdir) in \
10587 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10588 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10589 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10590 esac; \
10591 srcdiroption="--srcdir=$${topdir}/gmp"; \
10592 libsrcdir="$$s/gmp"; \
10593 $(SHELL) $${libsrcdir}/configure \
10594 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10595 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10596 --with-build-libsubdir=$(HOST_SUBDIR) \
10597 $(STAGEprofile_CONFIGURE_FLAGS) \
10598 --disable-shared
10599@endif gmp-bootstrap
9b980aa1 10600
a90ef4bf
JM
10601.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
10602maybe-configure-stagefeedback-gmp:
10603@if gmp-bootstrap
10604maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
10605configure-stagefeedback-gmp:
10606 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10607 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
10608 @r=`${PWD_COMMAND}`; export r; \
10609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10610 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10611 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 10612 $(HOST_EXPORTS) \
a90ef4bf
JM
10613 $(POSTSTAGE1_HOST_EXPORTS) \
10614 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10615 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10616 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
10617 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp ; \
10618 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
10619 cd $(HOST_SUBDIR)/gmp || exit 1; \
10620 case $(srcdir) in \
10621 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10622 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
10623 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10624 esac; \
10625 srcdiroption="--srcdir=$${topdir}/gmp"; \
10626 libsrcdir="$$s/gmp"; \
10627 $(SHELL) $${libsrcdir}/configure \
10628 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
10629 --target=none-${host_vendor}-${host_os} $${srcdiroption} \
10630 --with-build-libsubdir=$(HOST_SUBDIR) \
10631 $(STAGEfeedback_CONFIGURE_FLAGS) \
10632 --disable-shared
10633@endif gmp-bootstrap
9b980aa1 10634
9b980aa1 10635
2a4cbe27 10636
4fa63067 10637
a90ef4bf
JM
10638
10639.PHONY: all-gmp maybe-all-gmp
10640maybe-all-gmp:
10641@if gcc-bootstrap
10642all-gmp: stage_current
10643@endif gcc-bootstrap
10644@if gmp
10645TARGET-gmp=all
10646maybe-all-gmp: all-gmp
10647all-gmp: configure-gmp
10648 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10650 $(HOST_EXPORTS) \
10651 (cd $(HOST_SUBDIR)/gmp && \
b3676d82 10652 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
10653 $(TARGET-gmp))
10654@endif gmp
2a4cbe27
NN
10655
10656
2a4cbe27 10657
a90ef4bf
JM
10658.PHONY: all-stage1-gmp maybe-all-stage1-gmp
10659.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
10660maybe-all-stage1-gmp:
10661maybe-clean-stage1-gmp:
10662@if gmp-bootstrap
10663maybe-all-stage1-gmp: all-stage1-gmp
10664all-stage1: all-stage1-gmp
10665TARGET-stage1-gmp = $(TARGET-gmp)
10666all-stage1-gmp: configure-stage1-gmp
10667 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10668 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10670 TFLAGS="$(STAGE1_TFLAGS)"; \
10671 $(HOST_EXPORTS) \
10672 cd $(HOST_SUBDIR)/gmp && \
10673 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10674 CFLAGS="$(STAGE1_CFLAGS)" \
10675 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10676 LIBCFLAGS="$(LIBCFLAGS)" \
10677 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10678 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10679 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10680 $(EXTRA_HOST_FLAGS) \
10681 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
10682 TFLAGS="$(STAGE1_TFLAGS)" \
10683 $(TARGET-stage1-gmp)
2a4cbe27 10684
a90ef4bf
JM
10685maybe-clean-stage1-gmp: clean-stage1-gmp
10686clean-stage1: clean-stage1-gmp
10687clean-stage1-gmp:
10688 @if [ $(current_stage) = stage1 ]; then \
10689 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10690 else \
10691 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
10692 $(MAKE) stage1-start; \
10693 fi; \
10694 cd $(HOST_SUBDIR)/gmp && \
10695 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10696 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10697@endif gmp-bootstrap
2a4cbe27 10698
56a8fe78 10699
a90ef4bf
JM
10700.PHONY: all-stage2-gmp maybe-all-stage2-gmp
10701.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
10702maybe-all-stage2-gmp:
10703maybe-clean-stage2-gmp:
10704@if gmp-bootstrap
10705maybe-all-stage2-gmp: all-stage2-gmp
10706all-stage2: all-stage2-gmp
10707TARGET-stage2-gmp = $(TARGET-gmp)
10708all-stage2-gmp: configure-stage2-gmp
10709 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10710 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10712 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 10713 $(HOST_EXPORTS) \
a90ef4bf
JM
10714 $(POSTSTAGE1_HOST_EXPORTS) \
10715 cd $(HOST_SUBDIR)/gmp && \
10716 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10717 CFLAGS="$(STAGE2_CFLAGS)" \
10718 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10719 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10720 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10721 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10722 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10723 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10724 TFLAGS="$(STAGE2_TFLAGS)" \
10725 $(TARGET-stage2-gmp)
56a8fe78 10726
a90ef4bf
JM
10727maybe-clean-stage2-gmp: clean-stage2-gmp
10728clean-stage2: clean-stage2-gmp
10729clean-stage2-gmp:
10730 @if [ $(current_stage) = stage2 ]; then \
10731 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10732 else \
10733 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
10734 $(MAKE) stage2-start; \
10735 fi; \
10736 cd $(HOST_SUBDIR)/gmp && \
b3676d82 10737 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10738@endif gmp-bootstrap
56a8fe78 10739
6d389afc 10740
a90ef4bf
JM
10741.PHONY: all-stage3-gmp maybe-all-stage3-gmp
10742.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
10743maybe-all-stage3-gmp:
10744maybe-clean-stage3-gmp:
10745@if gmp-bootstrap
10746maybe-all-stage3-gmp: all-stage3-gmp
10747all-stage3: all-stage3-gmp
10748TARGET-stage3-gmp = $(TARGET-gmp)
10749all-stage3-gmp: configure-stage3-gmp
10750 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10751 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10753 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 10754 $(HOST_EXPORTS) \
a90ef4bf
JM
10755 $(POSTSTAGE1_HOST_EXPORTS) \
10756 cd $(HOST_SUBDIR)/gmp && \
10757 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10758 CFLAGS="$(STAGE3_CFLAGS)" \
10759 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10760 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10761 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10762 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10763 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10764 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10765 TFLAGS="$(STAGE3_TFLAGS)" \
10766 $(TARGET-stage3-gmp)
6d389afc 10767
a90ef4bf
JM
10768maybe-clean-stage3-gmp: clean-stage3-gmp
10769clean-stage3: clean-stage3-gmp
10770clean-stage3-gmp:
10771 @if [ $(current_stage) = stage3 ]; then \
10772 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10773 else \
10774 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
10775 $(MAKE) stage3-start; \
10776 fi; \
10777 cd $(HOST_SUBDIR)/gmp && \
b3676d82 10778 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10779@endif gmp-bootstrap
6d389afc 10780
2a4cbe27 10781
a90ef4bf
JM
10782.PHONY: all-stage4-gmp maybe-all-stage4-gmp
10783.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
10784maybe-all-stage4-gmp:
10785maybe-clean-stage4-gmp:
10786@if gmp-bootstrap
10787maybe-all-stage4-gmp: all-stage4-gmp
10788all-stage4: all-stage4-gmp
10789TARGET-stage4-gmp = $(TARGET-gmp)
10790all-stage4-gmp: configure-stage4-gmp
10791 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10792 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10794 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10795 $(HOST_EXPORTS) \
a90ef4bf
JM
10796 $(POSTSTAGE1_HOST_EXPORTS) \
10797 cd $(HOST_SUBDIR)/gmp && \
10798 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10799 CFLAGS="$(STAGE4_CFLAGS)" \
10800 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10801 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10802 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10803 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10804 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10805 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10806 TFLAGS="$(STAGE4_TFLAGS)" \
10807 $(TARGET-stage4-gmp)
2a4cbe27 10808
a90ef4bf
JM
10809maybe-clean-stage4-gmp: clean-stage4-gmp
10810clean-stage4: clean-stage4-gmp
10811clean-stage4-gmp:
10812 @if [ $(current_stage) = stage4 ]; then \
10813 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10814 else \
10815 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
10816 $(MAKE) stage4-start; \
10817 fi; \
10818 cd $(HOST_SUBDIR)/gmp && \
b3676d82 10819 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10820@endif gmp-bootstrap
2a4cbe27 10821
2a4cbe27 10822
a90ef4bf
JM
10823.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
10824.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
10825maybe-all-stageprofile-gmp:
10826maybe-clean-stageprofile-gmp:
10827@if gmp-bootstrap
10828maybe-all-stageprofile-gmp: all-stageprofile-gmp
10829all-stageprofile: all-stageprofile-gmp
10830TARGET-stageprofile-gmp = $(TARGET-gmp)
10831all-stageprofile-gmp: configure-stageprofile-gmp
10832 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10833 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10835 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10836 $(HOST_EXPORTS) \
a90ef4bf
JM
10837 $(POSTSTAGE1_HOST_EXPORTS) \
10838 cd $(HOST_SUBDIR)/gmp && \
10839 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10840 CFLAGS="$(STAGEprofile_CFLAGS)" \
10841 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10842 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10843 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10844 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10845 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10846 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10847 TFLAGS="$(STAGEprofile_TFLAGS)" \
10848 $(TARGET-stageprofile-gmp)
2a4cbe27 10849
a90ef4bf
JM
10850maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
10851clean-stageprofile: clean-stageprofile-gmp
10852clean-stageprofile-gmp:
10853 @if [ $(current_stage) = stageprofile ]; then \
10854 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10855 else \
10856 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
10857 $(MAKE) stageprofile-start; \
10858 fi; \
10859 cd $(HOST_SUBDIR)/gmp && \
b3676d82 10860 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10861@endif gmp-bootstrap
2a4cbe27 10862
a7254363 10863
a90ef4bf
JM
10864.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
10865.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
10866maybe-all-stagefeedback-gmp:
10867maybe-clean-stagefeedback-gmp:
10868@if gmp-bootstrap
10869maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
10870all-stagefeedback: all-stagefeedback-gmp
10871TARGET-stagefeedback-gmp = $(TARGET-gmp)
10872all-stagefeedback-gmp: configure-stagefeedback-gmp
10873 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10874 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10876 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10877 $(HOST_EXPORTS) \
10878 $(POSTSTAGE1_HOST_EXPORTS) \
10879 cd $(HOST_SUBDIR)/gmp && \
10880 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10881 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10882 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10883 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10884 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10885 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10886 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10887 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10888 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10889 $(TARGET-stagefeedback-gmp)
d545f33b 10890
a90ef4bf
JM
10891maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
10892clean-stagefeedback: clean-stagefeedback-gmp
10893clean-stagefeedback-gmp:
10894 @if [ $(current_stage) = stagefeedback ]; then \
10895 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
10896 else \
10897 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
10898 $(MAKE) stagefeedback-start; \
10899 fi; \
10900 cd $(HOST_SUBDIR)/gmp && \
b3676d82 10901 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10902@endif gmp-bootstrap
d545f33b 10903
4fa63067 10904
a7254363 10905
d545f33b
PB
10906
10907
a90ef4bf
JM
10908.PHONY: check-gmp maybe-check-gmp
10909maybe-check-gmp:
10910@if gmp
10911maybe-check-gmp: check-gmp
4fa63067 10912
a90ef4bf 10913check-gmp:
0aed8855 10914 @: $(MAKE); $(unstage)
4fa63067
NN
10915 @r=`${PWD_COMMAND}`; export r; \
10916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10917 $(HOST_EXPORTS) \
a90ef4bf 10918 (cd $(HOST_SUBDIR)/gmp && \
b00612cc 10919 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 10920
a90ef4bf 10921@endif gmp
2a4cbe27 10922
a90ef4bf
JM
10923.PHONY: install-gmp maybe-install-gmp
10924maybe-install-gmp:
10925@if gmp
10926maybe-install-gmp: install-gmp
2a4cbe27 10927
a90ef4bf 10928install-gmp:
2a4cbe27 10929
a90ef4bf 10930@endif gmp
2a4cbe27 10931
a90ef4bf
JM
10932.PHONY: install-strip-gmp maybe-install-strip-gmp
10933maybe-install-strip-gmp:
10934@if gmp
10935maybe-install-strip-gmp: install-strip-gmp
9b980aa1 10936
a90ef4bf 10937install-strip-gmp:
9b980aa1 10938
a90ef4bf 10939@endif gmp
9b980aa1 10940
56a8fe78 10941# Other targets (info, dvi, pdf, etc.)
2a4cbe27 10942
a90ef4bf
JM
10943.PHONY: maybe-info-gmp info-gmp
10944maybe-info-gmp:
10945@if gmp
10946maybe-info-gmp: info-gmp
4fa63067 10947
a90ef4bf
JM
10948info-gmp: \
10949 configure-gmp
10950 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
10951 r=`${PWD_COMMAND}`; export r; \
10952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10953 $(HOST_EXPORTS) \
b813574b 10954 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10956 done; \
a90ef4bf
JM
10957 echo "Doing info in gmp" ; \
10958 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
10959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10961 "RANLIB=$${RANLIB}" \
0c24b341 10962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10963 info) \
2a4cbe27
NN
10964 || exit 1
10965
a90ef4bf 10966@endif gmp
2a4cbe27 10967
a90ef4bf
JM
10968.PHONY: maybe-dvi-gmp dvi-gmp
10969maybe-dvi-gmp:
10970@if gmp
10971maybe-dvi-gmp: dvi-gmp
2a4cbe27 10972
a90ef4bf
JM
10973dvi-gmp: \
10974 configure-gmp
10975 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
10976 r=`${PWD_COMMAND}`; export r; \
10977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10978 $(HOST_EXPORTS) \
b813574b 10979 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10981 done; \
a90ef4bf
JM
10982 echo "Doing dvi in gmp" ; \
10983 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
10984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10986 "RANLIB=$${RANLIB}" \
0c24b341 10987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10988 dvi) \
2a4cbe27
NN
10989 || exit 1
10990
a90ef4bf 10991@endif gmp
2a4cbe27 10992
a90ef4bf
JM
10993.PHONY: maybe-pdf-gmp pdf-gmp
10994maybe-pdf-gmp:
10995@if gmp
10996maybe-pdf-gmp: pdf-gmp
56a8fe78 10997
a90ef4bf
JM
10998pdf-gmp: \
10999 configure-gmp
11000 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11001 r=`${PWD_COMMAND}`; export r; \
11002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11003 $(HOST_EXPORTS) \
11004 for flag in $(EXTRA_HOST_FLAGS) ; do \
11005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11006 done; \
a90ef4bf
JM
11007 echo "Doing pdf in gmp" ; \
11008 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11011 "RANLIB=$${RANLIB}" \
0c24b341 11012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11013 pdf) \
11014 || exit 1
11015
a90ef4bf 11016@endif gmp
56a8fe78 11017
a90ef4bf
JM
11018.PHONY: maybe-html-gmp html-gmp
11019maybe-html-gmp:
11020@if gmp
11021maybe-html-gmp: html-gmp
6d389afc 11022
a90ef4bf
JM
11023html-gmp: \
11024 configure-gmp
11025 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11026 r=`${PWD_COMMAND}`; export r; \
11027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11028 $(HOST_EXPORTS) \
11029 for flag in $(EXTRA_HOST_FLAGS) ; do \
11030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11031 done; \
a90ef4bf
JM
11032 echo "Doing html in gmp" ; \
11033 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11036 "RANLIB=$${RANLIB}" \
0c24b341 11037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11038 html) \
11039 || exit 1
11040
a90ef4bf 11041@endif gmp
6d389afc 11042
a90ef4bf
JM
11043.PHONY: maybe-TAGS-gmp TAGS-gmp
11044maybe-TAGS-gmp:
11045@if gmp
11046maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11047
a90ef4bf
JM
11048TAGS-gmp: \
11049 configure-gmp
11050 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11051 r=`${PWD_COMMAND}`; export r; \
11052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11053 $(HOST_EXPORTS) \
b813574b 11054 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11056 done; \
a90ef4bf
JM
11057 echo "Doing TAGS in gmp" ; \
11058 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11061 "RANLIB=$${RANLIB}" \
0c24b341 11062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11063 TAGS) \
2a4cbe27
NN
11064 || exit 1
11065
a90ef4bf 11066@endif gmp
2a4cbe27 11067
a90ef4bf
JM
11068.PHONY: maybe-install-info-gmp install-info-gmp
11069maybe-install-info-gmp:
11070@if gmp
11071maybe-install-info-gmp: install-info-gmp
2a4cbe27 11072
a90ef4bf
JM
11073install-info-gmp: \
11074 configure-gmp \
11075 info-gmp
11076 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11077 r=`${PWD_COMMAND}`; export r; \
11078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11079 $(HOST_EXPORTS) \
b813574b 11080 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11082 done; \
a90ef4bf
JM
11083 echo "Doing install-info in gmp" ; \
11084 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11087 "RANLIB=$${RANLIB}" \
0c24b341 11088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11089 install-info) \
2a4cbe27
NN
11090 || exit 1
11091
a90ef4bf 11092@endif gmp
2a4cbe27 11093
a90ef4bf
JM
11094.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11095maybe-install-pdf-gmp:
11096@if gmp
11097maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11098
a90ef4bf
JM
11099install-pdf-gmp: \
11100 configure-gmp \
11101 pdf-gmp
11102 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11103 r=`${PWD_COMMAND}`; export r; \
11104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11105 $(HOST_EXPORTS) \
11106 for flag in $(EXTRA_HOST_FLAGS) ; do \
11107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11108 done; \
a90ef4bf
JM
11109 echo "Doing install-pdf in gmp" ; \
11110 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11113 "RANLIB=$${RANLIB}" \
0c24b341 11114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11115 install-pdf) \
11116 || exit 1
11117
a90ef4bf 11118@endif gmp
a3ca38d2 11119
a90ef4bf
JM
11120.PHONY: maybe-install-html-gmp install-html-gmp
11121maybe-install-html-gmp:
11122@if gmp
11123maybe-install-html-gmp: install-html-gmp
108a6f8e 11124
a90ef4bf
JM
11125install-html-gmp: \
11126 configure-gmp \
11127 html-gmp
11128 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11129 r=`${PWD_COMMAND}`; export r; \
11130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11131 $(HOST_EXPORTS) \
11132 for flag in $(EXTRA_HOST_FLAGS) ; do \
11133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11134 done; \
a90ef4bf
JM
11135 echo "Doing install-html in gmp" ; \
11136 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11139 "RANLIB=$${RANLIB}" \
0c24b341 11140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11141 install-html) \
11142 || exit 1
11143
a90ef4bf 11144@endif gmp
108a6f8e 11145
a90ef4bf
JM
11146.PHONY: maybe-installcheck-gmp installcheck-gmp
11147maybe-installcheck-gmp:
11148@if gmp
11149maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11150
a90ef4bf
JM
11151installcheck-gmp: \
11152 configure-gmp
11153 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11154 r=`${PWD_COMMAND}`; export r; \
11155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11156 $(HOST_EXPORTS) \
b813574b 11157 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11159 done; \
a90ef4bf
JM
11160 echo "Doing installcheck in gmp" ; \
11161 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11164 "RANLIB=$${RANLIB}" \
0c24b341 11165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11166 installcheck) \
2a4cbe27
NN
11167 || exit 1
11168
a90ef4bf 11169@endif gmp
2a4cbe27 11170
a90ef4bf
JM
11171.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11172maybe-mostlyclean-gmp:
11173@if gmp
11174maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11175
a90ef4bf
JM
11176mostlyclean-gmp:
11177 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11178 r=`${PWD_COMMAND}`; export r; \
11179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11180 $(HOST_EXPORTS) \
b813574b 11181 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11183 done; \
a90ef4bf
JM
11184 echo "Doing mostlyclean in gmp" ; \
11185 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11188 "RANLIB=$${RANLIB}" \
0c24b341 11189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11190 mostlyclean) \
2a4cbe27
NN
11191 || exit 1
11192
a90ef4bf 11193@endif gmp
2a4cbe27 11194
a90ef4bf
JM
11195.PHONY: maybe-clean-gmp clean-gmp
11196maybe-clean-gmp:
11197@if gmp
11198maybe-clean-gmp: clean-gmp
2a4cbe27 11199
a90ef4bf
JM
11200clean-gmp:
11201 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11202 r=`${PWD_COMMAND}`; export r; \
11203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11204 $(HOST_EXPORTS) \
b813574b 11205 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11207 done; \
a90ef4bf
JM
11208 echo "Doing clean in gmp" ; \
11209 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11212 "RANLIB=$${RANLIB}" \
0c24b341 11213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11214 clean) \
2a4cbe27
NN
11215 || exit 1
11216
a90ef4bf 11217@endif gmp
2a4cbe27 11218
a90ef4bf
JM
11219.PHONY: maybe-distclean-gmp distclean-gmp
11220maybe-distclean-gmp:
11221@if gmp
11222maybe-distclean-gmp: distclean-gmp
2a4cbe27 11223
a90ef4bf
JM
11224distclean-gmp:
11225 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11226 r=`${PWD_COMMAND}`; export r; \
11227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11228 $(HOST_EXPORTS) \
b813574b 11229 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11231 done; \
a90ef4bf
JM
11232 echo "Doing distclean in gmp" ; \
11233 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11236 "RANLIB=$${RANLIB}" \
0c24b341 11237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11238 distclean) \
2a4cbe27
NN
11239 || exit 1
11240
a90ef4bf 11241@endif gmp
2a4cbe27 11242
a90ef4bf
JM
11243.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11244maybe-maintainer-clean-gmp:
11245@if gmp
11246maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11247
a90ef4bf
JM
11248maintainer-clean-gmp:
11249 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11250 r=`${PWD_COMMAND}`; export r; \
11251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11252 $(HOST_EXPORTS) \
b813574b 11253 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11255 done; \
a90ef4bf
JM
11256 echo "Doing maintainer-clean in gmp" ; \
11257 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11260 "RANLIB=$${RANLIB}" \
0c24b341 11261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11262 maintainer-clean) \
2a4cbe27
NN
11263 || exit 1
11264
a90ef4bf 11265@endif gmp
2a4cbe27 11266
2a4cbe27 11267
a7254363 11268
a90ef4bf
JM
11269.PHONY: configure-mpfr maybe-configure-mpfr
11270maybe-configure-mpfr:
4f0ef2d8 11271@if gcc-bootstrap
a90ef4bf 11272configure-mpfr: stage_current
4f0ef2d8 11273@endif gcc-bootstrap
a90ef4bf
JM
11274@if mpfr
11275maybe-configure-mpfr: configure-mpfr
11276configure-mpfr:
11277 @r=`${PWD_COMMAND}`; export r; \
11278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11279 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
11280 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
1f53ca9a 11281 $(HOST_EXPORTS) \
a90ef4bf
JM
11282 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11283 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11284 case $(srcdir) in \
b00612cc 11285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11286 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11288 esac; \
a90ef4bf
JM
11289 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11290 libsrcdir="$$s/mpfr"; \
4fa63067 11291 $(SHELL) $${libsrcdir}/configure \
4b900473 11292 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 11293 --target=${target_alias} $${srcdiroption} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11294 || exit 1
a90ef4bf 11295@endif mpfr
d545f33b
PB
11296
11297
2a4cbe27 11298
a90ef4bf
JM
11299.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11300maybe-configure-stage1-mpfr:
11301@if mpfr-bootstrap
11302maybe-configure-stage1-mpfr: configure-stage1-mpfr
11303configure-stage1-mpfr:
11304 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11305 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11306 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11308 TFLAGS="$(STAGE1_TFLAGS)"; \
11309 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11310 $(HOST_EXPORTS) \
a90ef4bf
JM
11311 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11312 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11313 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
11314 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr ; \
11315 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11316 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11317 case $(srcdir) in \
11318 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11319 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11320 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11321 esac; \
11322 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11323 libsrcdir="$$s/mpfr"; \
11324 $(SHELL) $${libsrcdir}/configure \
11325 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11326 --target=${target_alias} $${srcdiroption} \
11327 $(STAGE1_CONFIGURE_FLAGS) \
11328 --disable-shared @extra_mpfr_configure_flags@
11329@endif mpfr-bootstrap
2a4cbe27 11330
a90ef4bf
JM
11331.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
11332maybe-configure-stage2-mpfr:
11333@if mpfr-bootstrap
11334maybe-configure-stage2-mpfr: configure-stage2-mpfr
11335configure-stage2-mpfr:
11336 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11337 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11338 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11340 TFLAGS="$(STAGE2_TFLAGS)"; \
11341 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11342 $(HOST_EXPORTS) \
a90ef4bf
JM
11343 $(POSTSTAGE1_HOST_EXPORTS) \
11344 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11345 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11346 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
11347 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr ; \
11348 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11349 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11350 case $(srcdir) in \
11351 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11352 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11353 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11354 esac; \
11355 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11356 libsrcdir="$$s/mpfr"; \
11357 $(SHELL) $${libsrcdir}/configure \
11358 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11359 --target=${target_alias} $${srcdiroption} \
11360 --with-build-libsubdir=$(HOST_SUBDIR) \
11361 $(STAGE2_CONFIGURE_FLAGS) \
11362 --disable-shared @extra_mpfr_configure_flags@
11363@endif mpfr-bootstrap
9b980aa1 11364
a90ef4bf
JM
11365.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
11366maybe-configure-stage3-mpfr:
11367@if mpfr-bootstrap
11368maybe-configure-stage3-mpfr: configure-stage3-mpfr
11369configure-stage3-mpfr:
11370 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11371 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
11372 @r=`${PWD_COMMAND}`; export r; \
11373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11374 TFLAGS="$(STAGE3_TFLAGS)"; \
11375 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 11376 $(HOST_EXPORTS) \
a90ef4bf
JM
11377 $(POSTSTAGE1_HOST_EXPORTS) \
11378 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11379 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11380 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
11381 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr ; \
11382 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11383 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11384 case $(srcdir) in \
11385 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11386 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11387 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11388 esac; \
11389 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11390 libsrcdir="$$s/mpfr"; \
11391 $(SHELL) $${libsrcdir}/configure \
11392 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11393 --target=${target_alias} $${srcdiroption} \
11394 --with-build-libsubdir=$(HOST_SUBDIR) \
11395 $(STAGE3_CONFIGURE_FLAGS) \
11396 --disable-shared @extra_mpfr_configure_flags@
11397@endif mpfr-bootstrap
2a4cbe27 11398
a90ef4bf
JM
11399.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
11400maybe-configure-stage4-mpfr:
11401@if mpfr-bootstrap
11402maybe-configure-stage4-mpfr: configure-stage4-mpfr
11403configure-stage4-mpfr:
11404 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11405 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
11406 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11408 TFLAGS="$(STAGE4_TFLAGS)"; \
11409 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11410 $(HOST_EXPORTS) \
a90ef4bf
JM
11411 $(POSTSTAGE1_HOST_EXPORTS) \
11412 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11413 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11414 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
11415 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr ; \
11416 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11417 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11418 case $(srcdir) in \
11419 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11420 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11421 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11422 esac; \
11423 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11424 libsrcdir="$$s/mpfr"; \
11425 $(SHELL) $${libsrcdir}/configure \
11426 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11427 --target=${target_alias} $${srcdiroption} \
11428 --with-build-libsubdir=$(HOST_SUBDIR) \
11429 $(STAGE4_CONFIGURE_FLAGS) \
11430 --disable-shared @extra_mpfr_configure_flags@
11431@endif mpfr-bootstrap
2a4cbe27 11432
a90ef4bf
JM
11433.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
11434maybe-configure-stageprofile-mpfr:
11435@if mpfr-bootstrap
11436maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
11437configure-stageprofile-mpfr:
11438 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11439 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
11440 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11442 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11443 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11444 $(HOST_EXPORTS) \
a90ef4bf
JM
11445 $(POSTSTAGE1_HOST_EXPORTS) \
11446 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11447 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11448 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
11449 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr ; \
11450 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11451 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11452 case $(srcdir) in \
11453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11454 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11456 esac; \
11457 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11458 libsrcdir="$$s/mpfr"; \
11459 $(SHELL) $${libsrcdir}/configure \
11460 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11461 --target=${target_alias} $${srcdiroption} \
11462 --with-build-libsubdir=$(HOST_SUBDIR) \
11463 $(STAGEprofile_CONFIGURE_FLAGS) \
11464 --disable-shared @extra_mpfr_configure_flags@
11465@endif mpfr-bootstrap
56a8fe78 11466
a90ef4bf
JM
11467.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
11468maybe-configure-stagefeedback-mpfr:
11469@if mpfr-bootstrap
11470maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
11471configure-stagefeedback-mpfr:
11472 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11473 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
11474 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11476 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11477 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 11478 $(HOST_EXPORTS) \
a90ef4bf
JM
11479 $(POSTSTAGE1_HOST_EXPORTS) \
11480 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11481 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11482 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
11483 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr ; \
11484 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11485 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11486 case $(srcdir) in \
11487 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11488 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11489 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11490 esac; \
11491 srcdiroption="--srcdir=$${topdir}/mpfr"; \
11492 libsrcdir="$$s/mpfr"; \
11493 $(SHELL) $${libsrcdir}/configure \
11494 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11495 --target=${target_alias} $${srcdiroption} \
11496 --with-build-libsubdir=$(HOST_SUBDIR) \
11497 $(STAGEfeedback_CONFIGURE_FLAGS) \
11498 --disable-shared @extra_mpfr_configure_flags@
11499@endif mpfr-bootstrap
56a8fe78 11500
6d389afc 11501
6d389afc 11502
6d389afc 11503
2a4cbe27 11504
a90ef4bf
JM
11505.PHONY: all-mpfr maybe-all-mpfr
11506maybe-all-mpfr:
11507@if gcc-bootstrap
11508all-mpfr: stage_current
11509@endif gcc-bootstrap
11510@if mpfr
11511TARGET-mpfr=all
11512maybe-all-mpfr: all-mpfr
11513all-mpfr: configure-mpfr
11514 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11516 $(HOST_EXPORTS) \
11517 (cd $(HOST_SUBDIR)/mpfr && \
b3676d82 11518 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11519 $(TARGET-mpfr))
11520@endif mpfr
2a4cbe27
NN
11521
11522
2a4cbe27 11523
a90ef4bf
JM
11524.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
11525.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
11526maybe-all-stage1-mpfr:
11527maybe-clean-stage1-mpfr:
11528@if mpfr-bootstrap
11529maybe-all-stage1-mpfr: all-stage1-mpfr
11530all-stage1: all-stage1-mpfr
11531TARGET-stage1-mpfr = $(TARGET-mpfr)
11532all-stage1-mpfr: configure-stage1-mpfr
11533 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11534 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11536 TFLAGS="$(STAGE1_TFLAGS)"; \
11537 $(HOST_EXPORTS) \
11538 cd $(HOST_SUBDIR)/mpfr && \
11539 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11540 CFLAGS="$(STAGE1_CFLAGS)" \
11541 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11542 LIBCFLAGS="$(LIBCFLAGS)" \
11543 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11544 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11545 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
11546 $(EXTRA_HOST_FLAGS) \
11547 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11548 TFLAGS="$(STAGE1_TFLAGS)" \
11549 $(TARGET-stage1-mpfr)
2a4cbe27 11550
a90ef4bf
JM
11551maybe-clean-stage1-mpfr: clean-stage1-mpfr
11552clean-stage1: clean-stage1-mpfr
11553clean-stage1-mpfr:
11554 @if [ $(current_stage) = stage1 ]; then \
11555 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11556 else \
11557 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
11558 $(MAKE) stage1-start; \
11559 fi; \
11560 cd $(HOST_SUBDIR)/mpfr && \
11561 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 11562 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11563@endif mpfr-bootstrap
2a4cbe27 11564
a3ca38d2 11565
a90ef4bf
JM
11566.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
11567.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
11568maybe-all-stage2-mpfr:
11569maybe-clean-stage2-mpfr:
11570@if mpfr-bootstrap
11571maybe-all-stage2-mpfr: all-stage2-mpfr
11572all-stage2: all-stage2-mpfr
11573TARGET-stage2-mpfr = $(TARGET-mpfr)
11574all-stage2-mpfr: configure-stage2-mpfr
11575 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11576 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 11577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11578 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 11579 $(HOST_EXPORTS) \
a90ef4bf
JM
11580 $(POSTSTAGE1_HOST_EXPORTS) \
11581 cd $(HOST_SUBDIR)/mpfr && \
11582 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11583 CFLAGS="$(STAGE2_CFLAGS)" \
11584 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11585 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11586 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11587 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11588 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11589 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11590 TFLAGS="$(STAGE2_TFLAGS)" \
11591 $(TARGET-stage2-mpfr)
a3ca38d2 11592
a90ef4bf
JM
11593maybe-clean-stage2-mpfr: clean-stage2-mpfr
11594clean-stage2: clean-stage2-mpfr
11595clean-stage2-mpfr:
11596 @if [ $(current_stage) = stage2 ]; then \
11597 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11598 else \
11599 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
11600 $(MAKE) stage2-start; \
11601 fi; \
11602 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 11603 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11604@endif mpfr-bootstrap
a3ca38d2 11605
108a6f8e 11606
a90ef4bf
JM
11607.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
11608.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
11609maybe-all-stage3-mpfr:
11610maybe-clean-stage3-mpfr:
11611@if mpfr-bootstrap
11612maybe-all-stage3-mpfr: all-stage3-mpfr
11613all-stage3: all-stage3-mpfr
11614TARGET-stage3-mpfr = $(TARGET-mpfr)
11615all-stage3-mpfr: configure-stage3-mpfr
11616 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11617 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 11618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11619 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 11620 $(HOST_EXPORTS) \
a90ef4bf
JM
11621 $(POSTSTAGE1_HOST_EXPORTS) \
11622 cd $(HOST_SUBDIR)/mpfr && \
11623 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11624 CFLAGS="$(STAGE3_CFLAGS)" \
11625 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11626 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11627 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11628 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11629 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11630 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11631 TFLAGS="$(STAGE3_TFLAGS)" \
11632 $(TARGET-stage3-mpfr)
108a6f8e 11633
a90ef4bf
JM
11634maybe-clean-stage3-mpfr: clean-stage3-mpfr
11635clean-stage3: clean-stage3-mpfr
11636clean-stage3-mpfr:
11637 @if [ $(current_stage) = stage3 ]; then \
11638 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11639 else \
11640 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
11641 $(MAKE) stage3-start; \
11642 fi; \
11643 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 11644 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11645@endif mpfr-bootstrap
108a6f8e 11646
2a4cbe27 11647
a90ef4bf
JM
11648.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
11649.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
11650maybe-all-stage4-mpfr:
11651maybe-clean-stage4-mpfr:
11652@if mpfr-bootstrap
11653maybe-all-stage4-mpfr: all-stage4-mpfr
11654all-stage4: all-stage4-mpfr
11655TARGET-stage4-mpfr = $(TARGET-mpfr)
11656all-stage4-mpfr: configure-stage4-mpfr
11657 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11658 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11660 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11661 $(HOST_EXPORTS) \
a90ef4bf
JM
11662 $(POSTSTAGE1_HOST_EXPORTS) \
11663 cd $(HOST_SUBDIR)/mpfr && \
11664 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11665 CFLAGS="$(STAGE4_CFLAGS)" \
11666 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11667 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11668 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11669 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11670 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11671 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11672 TFLAGS="$(STAGE4_TFLAGS)" \
11673 $(TARGET-stage4-mpfr)
2a4cbe27 11674
a90ef4bf
JM
11675maybe-clean-stage4-mpfr: clean-stage4-mpfr
11676clean-stage4: clean-stage4-mpfr
11677clean-stage4-mpfr:
11678 @if [ $(current_stage) = stage4 ]; then \
11679 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11680 else \
11681 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
11682 $(MAKE) stage4-start; \
11683 fi; \
11684 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 11685 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11686@endif mpfr-bootstrap
2a4cbe27 11687
2a4cbe27 11688
a90ef4bf
JM
11689.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
11690.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
11691maybe-all-stageprofile-mpfr:
11692maybe-clean-stageprofile-mpfr:
11693@if mpfr-bootstrap
11694maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
11695all-stageprofile: all-stageprofile-mpfr
11696TARGET-stageprofile-mpfr = $(TARGET-mpfr)
11697all-stageprofile-mpfr: configure-stageprofile-mpfr
11698 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11699 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11701 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11702 $(HOST_EXPORTS) \
a90ef4bf
JM
11703 $(POSTSTAGE1_HOST_EXPORTS) \
11704 cd $(HOST_SUBDIR)/mpfr && \
11705 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11706 CFLAGS="$(STAGEprofile_CFLAGS)" \
11707 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11708 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11709 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11710 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11711 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11712 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11713 TFLAGS="$(STAGEprofile_TFLAGS)" \
11714 $(TARGET-stageprofile-mpfr)
2a4cbe27 11715
a90ef4bf
JM
11716maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
11717clean-stageprofile: clean-stageprofile-mpfr
11718clean-stageprofile-mpfr:
11719 @if [ $(current_stage) = stageprofile ]; then \
11720 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11721 else \
11722 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
11723 $(MAKE) stageprofile-start; \
11724 fi; \
11725 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 11726 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11727@endif mpfr-bootstrap
2a4cbe27 11728
a7254363 11729
a90ef4bf
JM
11730.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
11731.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
11732maybe-all-stagefeedback-mpfr:
11733maybe-clean-stagefeedback-mpfr:
11734@if mpfr-bootstrap
11735maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
11736all-stagefeedback: all-stagefeedback-mpfr
11737TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
11738all-stagefeedback-mpfr: configure-stagefeedback-mpfr
11739 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11740 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11742 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11743 $(HOST_EXPORTS) \
11744 $(POSTSTAGE1_HOST_EXPORTS) \
11745 cd $(HOST_SUBDIR)/mpfr && \
11746 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11747 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11748 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11749 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11750 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11751 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11752 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11753 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11754 TFLAGS="$(STAGEfeedback_TFLAGS)" \
11755 $(TARGET-stagefeedback-mpfr)
d545f33b 11756
a90ef4bf
JM
11757maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
11758clean-stagefeedback: clean-stagefeedback-mpfr
11759clean-stagefeedback-mpfr:
11760 @if [ $(current_stage) = stagefeedback ]; then \
11761 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
11762 else \
11763 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
11764 $(MAKE) stagefeedback-start; \
11765 fi; \
11766 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 11767 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11768@endif mpfr-bootstrap
d545f33b 11769
2a4cbe27 11770
a7254363 11771
d545f33b
PB
11772
11773
a90ef4bf
JM
11774.PHONY: check-mpfr maybe-check-mpfr
11775maybe-check-mpfr:
11776@if mpfr
11777maybe-check-mpfr: check-mpfr
2a4cbe27 11778
a90ef4bf 11779check-mpfr:
0aed8855 11780 @: $(MAKE); $(unstage)
4fa63067 11781 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11783 $(HOST_EXPORTS) \
a90ef4bf 11784 (cd $(HOST_SUBDIR)/mpfr && \
b00612cc 11785 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 11786
a90ef4bf 11787@endif mpfr
2a4cbe27 11788
a90ef4bf
JM
11789.PHONY: install-mpfr maybe-install-mpfr
11790maybe-install-mpfr:
11791@if mpfr
11792maybe-install-mpfr: install-mpfr
2a4cbe27 11793
a90ef4bf 11794install-mpfr:
4fa63067 11795
a90ef4bf 11796@endif mpfr
4fa63067 11797
a90ef4bf
JM
11798.PHONY: install-strip-mpfr maybe-install-strip-mpfr
11799maybe-install-strip-mpfr:
11800@if mpfr
11801maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 11802
a90ef4bf 11803install-strip-mpfr:
9b980aa1 11804
a90ef4bf 11805@endif mpfr
9b980aa1 11806
56a8fe78 11807# Other targets (info, dvi, pdf, etc.)
4fa63067 11808
a90ef4bf
JM
11809.PHONY: maybe-info-mpfr info-mpfr
11810maybe-info-mpfr:
11811@if mpfr
11812maybe-info-mpfr: info-mpfr
4fa63067 11813
a90ef4bf
JM
11814info-mpfr: \
11815 configure-mpfr
11816 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
11817 r=`${PWD_COMMAND}`; export r; \
11818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11819 $(HOST_EXPORTS) \
b813574b 11820 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11822 done; \
a90ef4bf
JM
11823 echo "Doing info in mpfr" ; \
11824 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
11825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11827 "RANLIB=$${RANLIB}" \
0c24b341 11828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11829 info) \
2a4cbe27
NN
11830 || exit 1
11831
a90ef4bf 11832@endif mpfr
2a4cbe27 11833
a90ef4bf
JM
11834.PHONY: maybe-dvi-mpfr dvi-mpfr
11835maybe-dvi-mpfr:
11836@if mpfr
11837maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 11838
a90ef4bf
JM
11839dvi-mpfr: \
11840 configure-mpfr
11841 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
11842 r=`${PWD_COMMAND}`; export r; \
11843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11844 $(HOST_EXPORTS) \
b813574b 11845 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11847 done; \
a90ef4bf
JM
11848 echo "Doing dvi in mpfr" ; \
11849 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
11850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11852 "RANLIB=$${RANLIB}" \
0c24b341 11853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11854 dvi) \
2a4cbe27
NN
11855 || exit 1
11856
a90ef4bf 11857@endif mpfr
2a4cbe27 11858
a90ef4bf
JM
11859.PHONY: maybe-pdf-mpfr pdf-mpfr
11860maybe-pdf-mpfr:
11861@if mpfr
11862maybe-pdf-mpfr: pdf-mpfr
56a8fe78 11863
a90ef4bf
JM
11864pdf-mpfr: \
11865 configure-mpfr
11866 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
11867 r=`${PWD_COMMAND}`; export r; \
11868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11869 $(HOST_EXPORTS) \
11870 for flag in $(EXTRA_HOST_FLAGS) ; do \
11871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11872 done; \
a90ef4bf
JM
11873 echo "Doing pdf in mpfr" ; \
11874 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
11875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11877 "RANLIB=$${RANLIB}" \
0c24b341 11878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11879 pdf) \
11880 || exit 1
11881
a90ef4bf 11882@endif mpfr
56a8fe78 11883
a90ef4bf
JM
11884.PHONY: maybe-html-mpfr html-mpfr
11885maybe-html-mpfr:
11886@if mpfr
11887maybe-html-mpfr: html-mpfr
6d389afc 11888
a90ef4bf
JM
11889html-mpfr: \
11890 configure-mpfr
11891 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
11892 r=`${PWD_COMMAND}`; export r; \
11893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11894 $(HOST_EXPORTS) \
11895 for flag in $(EXTRA_HOST_FLAGS) ; do \
11896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11897 done; \
a90ef4bf
JM
11898 echo "Doing html in mpfr" ; \
11899 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
11900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11902 "RANLIB=$${RANLIB}" \
0c24b341 11903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11904 html) \
11905 || exit 1
11906
a90ef4bf 11907@endif mpfr
6d389afc 11908
a90ef4bf
JM
11909.PHONY: maybe-TAGS-mpfr TAGS-mpfr
11910maybe-TAGS-mpfr:
11911@if mpfr
11912maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 11913
a90ef4bf
JM
11914TAGS-mpfr: \
11915 configure-mpfr
11916 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
11917 r=`${PWD_COMMAND}`; export r; \
11918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11919 $(HOST_EXPORTS) \
b813574b 11920 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11922 done; \
a90ef4bf
JM
11923 echo "Doing TAGS in mpfr" ; \
11924 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
11925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11927 "RANLIB=$${RANLIB}" \
0c24b341 11928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11929 TAGS) \
2a4cbe27
NN
11930 || exit 1
11931
a90ef4bf 11932@endif mpfr
2a4cbe27 11933
a90ef4bf
JM
11934.PHONY: maybe-install-info-mpfr install-info-mpfr
11935maybe-install-info-mpfr:
11936@if mpfr
11937maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 11938
a90ef4bf
JM
11939install-info-mpfr: \
11940 configure-mpfr \
11941 info-mpfr
11942 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
11943 r=`${PWD_COMMAND}`; export r; \
11944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11945 $(HOST_EXPORTS) \
b813574b 11946 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11948 done; \
a90ef4bf
JM
11949 echo "Doing install-info in mpfr" ; \
11950 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
11951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11953 "RANLIB=$${RANLIB}" \
0c24b341 11954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11955 install-info) \
2a4cbe27
NN
11956 || exit 1
11957
a90ef4bf 11958@endif mpfr
2a4cbe27 11959
a90ef4bf
JM
11960.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
11961maybe-install-pdf-mpfr:
11962@if mpfr
11963maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 11964
a90ef4bf
JM
11965install-pdf-mpfr: \
11966 configure-mpfr \
11967 pdf-mpfr
11968 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
11969 r=`${PWD_COMMAND}`; export r; \
11970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11971 $(HOST_EXPORTS) \
11972 for flag in $(EXTRA_HOST_FLAGS) ; do \
11973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11974 done; \
a90ef4bf
JM
11975 echo "Doing install-pdf in mpfr" ; \
11976 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
11977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11979 "RANLIB=$${RANLIB}" \
0c24b341 11980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11981 install-pdf) \
11982 || exit 1
11983
a90ef4bf 11984@endif mpfr
a3ca38d2 11985
a90ef4bf
JM
11986.PHONY: maybe-install-html-mpfr install-html-mpfr
11987maybe-install-html-mpfr:
11988@if mpfr
11989maybe-install-html-mpfr: install-html-mpfr
108a6f8e 11990
a90ef4bf
JM
11991install-html-mpfr: \
11992 configure-mpfr \
11993 html-mpfr
11994 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
11995 r=`${PWD_COMMAND}`; export r; \
11996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11997 $(HOST_EXPORTS) \
11998 for flag in $(EXTRA_HOST_FLAGS) ; do \
11999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12000 done; \
a90ef4bf
JM
12001 echo "Doing install-html in mpfr" ; \
12002 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12005 "RANLIB=$${RANLIB}" \
0c24b341 12006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12007 install-html) \
12008 || exit 1
12009
a90ef4bf 12010@endif mpfr
108a6f8e 12011
a90ef4bf
JM
12012.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12013maybe-installcheck-mpfr:
12014@if mpfr
12015maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12016
a90ef4bf
JM
12017installcheck-mpfr: \
12018 configure-mpfr
12019 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12020 r=`${PWD_COMMAND}`; export r; \
12021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12022 $(HOST_EXPORTS) \
b813574b 12023 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12025 done; \
a90ef4bf
JM
12026 echo "Doing installcheck in mpfr" ; \
12027 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12030 "RANLIB=$${RANLIB}" \
0c24b341 12031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12032 installcheck) \
2a4cbe27
NN
12033 || exit 1
12034
a90ef4bf 12035@endif mpfr
2a4cbe27 12036
a90ef4bf
JM
12037.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12038maybe-mostlyclean-mpfr:
12039@if mpfr
12040maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12041
a90ef4bf
JM
12042mostlyclean-mpfr:
12043 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12044 r=`${PWD_COMMAND}`; export r; \
12045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12046 $(HOST_EXPORTS) \
b813574b 12047 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12049 done; \
a90ef4bf
JM
12050 echo "Doing mostlyclean in mpfr" ; \
12051 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12054 "RANLIB=$${RANLIB}" \
0c24b341 12055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12056 mostlyclean) \
2a4cbe27
NN
12057 || exit 1
12058
a90ef4bf 12059@endif mpfr
2a4cbe27 12060
a90ef4bf
JM
12061.PHONY: maybe-clean-mpfr clean-mpfr
12062maybe-clean-mpfr:
12063@if mpfr
12064maybe-clean-mpfr: clean-mpfr
2a4cbe27 12065
a90ef4bf
JM
12066clean-mpfr:
12067 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12068 r=`${PWD_COMMAND}`; export r; \
12069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12070 $(HOST_EXPORTS) \
b813574b 12071 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12073 done; \
a90ef4bf
JM
12074 echo "Doing clean in mpfr" ; \
12075 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12078 "RANLIB=$${RANLIB}" \
0c24b341 12079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12080 clean) \
2a4cbe27
NN
12081 || exit 1
12082
a90ef4bf 12083@endif mpfr
2a4cbe27 12084
a90ef4bf
JM
12085.PHONY: maybe-distclean-mpfr distclean-mpfr
12086maybe-distclean-mpfr:
12087@if mpfr
12088maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12089
a90ef4bf
JM
12090distclean-mpfr:
12091 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12092 r=`${PWD_COMMAND}`; export r; \
12093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12094 $(HOST_EXPORTS) \
b813574b 12095 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12097 done; \
a90ef4bf
JM
12098 echo "Doing distclean in mpfr" ; \
12099 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12102 "RANLIB=$${RANLIB}" \
0c24b341 12103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12104 distclean) \
2a4cbe27
NN
12105 || exit 1
12106
a90ef4bf 12107@endif mpfr
2a4cbe27 12108
a90ef4bf
JM
12109.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12110maybe-maintainer-clean-mpfr:
12111@if mpfr
12112maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12113
a90ef4bf
JM
12114maintainer-clean-mpfr:
12115 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12116 r=`${PWD_COMMAND}`; export r; \
12117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12118 $(HOST_EXPORTS) \
b813574b 12119 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12121 done; \
a90ef4bf
JM
12122 echo "Doing maintainer-clean in mpfr" ; \
12123 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12126 "RANLIB=$${RANLIB}" \
0c24b341 12127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12128 maintainer-clean) \
2a4cbe27
NN
12129 || exit 1
12130
a90ef4bf 12131@endif mpfr
2a4cbe27 12132
2a4cbe27 12133
a7254363 12134
a90ef4bf
JM
12135.PHONY: configure-mpc maybe-configure-mpc
12136maybe-configure-mpc:
4f0ef2d8 12137@if gcc-bootstrap
a90ef4bf 12138configure-mpc: stage_current
4f0ef2d8 12139@endif gcc-bootstrap
a90ef4bf
JM
12140@if mpc
12141maybe-configure-mpc: configure-mpc
12142configure-mpc:
c52c6897 12143 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12145 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
1f53ca9a 12147 $(HOST_EXPORTS) \
a90ef4bf
JM
12148 echo Configuring in $(HOST_SUBDIR)/mpc; \
12149 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12150 case $(srcdir) in \
b00612cc 12151 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12152 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12153 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12154 esac; \
a90ef4bf
JM
12155 srcdiroption="--srcdir=$${topdir}/mpc"; \
12156 libsrcdir="$$s/mpc"; \
d3ed111c 12157 $(SHELL) $${libsrcdir}/configure \
4b900473 12158 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 12159 --target=${target_alias} $${srcdiroption} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12160 || exit 1
a90ef4bf 12161@endif mpc
d545f33b
PB
12162
12163
d3ed111c 12164
a90ef4bf
JM
12165.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12166maybe-configure-stage1-mpc:
12167@if mpc-bootstrap
12168maybe-configure-stage1-mpc: configure-stage1-mpc
12169configure-stage1-mpc:
12170 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12171 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12172 @r=`${PWD_COMMAND}`; export r; \
12173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12174 TFLAGS="$(STAGE1_TFLAGS)"; \
12175 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12176 $(HOST_EXPORTS) \
a90ef4bf
JM
12177 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12178 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12179 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
12180 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc ; \
12181 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12182 cd $(HOST_SUBDIR)/mpc || exit 1; \
12183 case $(srcdir) in \
12184 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12185 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12186 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12187 esac; \
12188 srcdiroption="--srcdir=$${topdir}/mpc"; \
12189 libsrcdir="$$s/mpc"; \
12190 $(SHELL) $${libsrcdir}/configure \
12191 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12192 --target=${target_alias} $${srcdiroption} \
12193 $(STAGE1_CONFIGURE_FLAGS) \
12194 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12195@endif mpc-bootstrap
d3ed111c 12196
a90ef4bf
JM
12197.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12198maybe-configure-stage2-mpc:
12199@if mpc-bootstrap
12200maybe-configure-stage2-mpc: configure-stage2-mpc
12201configure-stage2-mpc:
12202 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12203 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12204 @r=`${PWD_COMMAND}`; export r; \
12205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12206 TFLAGS="$(STAGE2_TFLAGS)"; \
12207 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12208 $(HOST_EXPORTS) \
a90ef4bf
JM
12209 $(POSTSTAGE1_HOST_EXPORTS) \
12210 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12211 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12212 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
12213 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc ; \
12214 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12215 cd $(HOST_SUBDIR)/mpc || exit 1; \
12216 case $(srcdir) in \
12217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12218 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12220 esac; \
12221 srcdiroption="--srcdir=$${topdir}/mpc"; \
12222 libsrcdir="$$s/mpc"; \
12223 $(SHELL) $${libsrcdir}/configure \
12224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12225 --target=${target_alias} $${srcdiroption} \
12226 --with-build-libsubdir=$(HOST_SUBDIR) \
12227 $(STAGE2_CONFIGURE_FLAGS) \
12228 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12229@endif mpc-bootstrap
9b980aa1 12230
a90ef4bf
JM
12231.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12232maybe-configure-stage3-mpc:
12233@if mpc-bootstrap
12234maybe-configure-stage3-mpc: configure-stage3-mpc
12235configure-stage3-mpc:
12236 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12237 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12238 @r=`${PWD_COMMAND}`; export r; \
12239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12240 TFLAGS="$(STAGE3_TFLAGS)"; \
12241 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12242 $(HOST_EXPORTS) \
a90ef4bf
JM
12243 $(POSTSTAGE1_HOST_EXPORTS) \
12244 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12245 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12246 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
12247 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc ; \
12248 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12249 cd $(HOST_SUBDIR)/mpc || exit 1; \
12250 case $(srcdir) in \
12251 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12252 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12253 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12254 esac; \
12255 srcdiroption="--srcdir=$${topdir}/mpc"; \
12256 libsrcdir="$$s/mpc"; \
12257 $(SHELL) $${libsrcdir}/configure \
12258 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12259 --target=${target_alias} $${srcdiroption} \
12260 --with-build-libsubdir=$(HOST_SUBDIR) \
12261 $(STAGE3_CONFIGURE_FLAGS) \
12262 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12263@endif mpc-bootstrap
d3ed111c 12264
a90ef4bf
JM
12265.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12266maybe-configure-stage4-mpc:
12267@if mpc-bootstrap
12268maybe-configure-stage4-mpc: configure-stage4-mpc
12269configure-stage4-mpc:
12270 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12271 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12272 @r=`${PWD_COMMAND}`; export r; \
12273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12274 TFLAGS="$(STAGE4_TFLAGS)"; \
12275 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12276 $(HOST_EXPORTS) \
12277 $(POSTSTAGE1_HOST_EXPORTS) \
12278 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12279 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12280 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
12281 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc ; \
12282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12283 cd $(HOST_SUBDIR)/mpc || exit 1; \
12284 case $(srcdir) in \
12285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12286 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12288 esac; \
12289 srcdiroption="--srcdir=$${topdir}/mpc"; \
12290 libsrcdir="$$s/mpc"; \
12291 $(SHELL) $${libsrcdir}/configure \
12292 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12293 --target=${target_alias} $${srcdiroption} \
12294 --with-build-libsubdir=$(HOST_SUBDIR) \
12295 $(STAGE4_CONFIGURE_FLAGS) \
12296 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12297@endif mpc-bootstrap
12298
12299.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12300maybe-configure-stageprofile-mpc:
12301@if mpc-bootstrap
12302maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12303configure-stageprofile-mpc:
12304 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12305 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12306 @r=`${PWD_COMMAND}`; export r; \
12307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12308 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12309 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12310 $(HOST_EXPORTS) \
12311 $(POSTSTAGE1_HOST_EXPORTS) \
12312 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12313 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12314 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
12315 echo Configuring stage profile in $(HOST_SUBDIR)/mpc ; \
12316 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12317 cd $(HOST_SUBDIR)/mpc || exit 1; \
12318 case $(srcdir) in \
12319 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12320 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12321 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12322 esac; \
12323 srcdiroption="--srcdir=$${topdir}/mpc"; \
12324 libsrcdir="$$s/mpc"; \
12325 $(SHELL) $${libsrcdir}/configure \
12326 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12327 --target=${target_alias} $${srcdiroption} \
12328 --with-build-libsubdir=$(HOST_SUBDIR) \
12329 $(STAGEprofile_CONFIGURE_FLAGS) \
12330 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12331@endif mpc-bootstrap
12332
12333.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
12334maybe-configure-stagefeedback-mpc:
12335@if mpc-bootstrap
12336maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
12337configure-stagefeedback-mpc:
12338 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12339 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12340 @r=`${PWD_COMMAND}`; export r; \
12341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12342 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12343 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12344 $(HOST_EXPORTS) \
12345 $(POSTSTAGE1_HOST_EXPORTS) \
12346 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12347 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12348 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
12349 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc ; \
12350 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12351 cd $(HOST_SUBDIR)/mpc || exit 1; \
12352 case $(srcdir) in \
12353 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12354 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12355 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12356 esac; \
12357 srcdiroption="--srcdir=$${topdir}/mpc"; \
12358 libsrcdir="$$s/mpc"; \
12359 $(SHELL) $${libsrcdir}/configure \
12360 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
12361 --target=${target_alias} $${srcdiroption} \
12362 --with-build-libsubdir=$(HOST_SUBDIR) \
12363 $(STAGEfeedback_CONFIGURE_FLAGS) \
12364 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12365@endif mpc-bootstrap
12366
12367
12368
12369
12370
12371.PHONY: all-mpc maybe-all-mpc
12372maybe-all-mpc:
12373@if gcc-bootstrap
12374all-mpc: stage_current
12375@endif gcc-bootstrap
12376@if mpc
12377TARGET-mpc=all
12378maybe-all-mpc: all-mpc
12379all-mpc: configure-mpc
12380 @r=`${PWD_COMMAND}`; export r; \
12381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12382 $(HOST_EXPORTS) \
12383 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 12384 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12385 $(TARGET-mpc))
12386@endif mpc
12387
12388
12389
12390.PHONY: all-stage1-mpc maybe-all-stage1-mpc
12391.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
12392maybe-all-stage1-mpc:
12393maybe-clean-stage1-mpc:
12394@if mpc-bootstrap
12395maybe-all-stage1-mpc: all-stage1-mpc
12396all-stage1: all-stage1-mpc
12397TARGET-stage1-mpc = $(TARGET-mpc)
12398all-stage1-mpc: configure-stage1-mpc
12399 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12400 @r=`${PWD_COMMAND}`; export r; \
12401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12402 TFLAGS="$(STAGE1_TFLAGS)"; \
12403 $(HOST_EXPORTS) \
12404 cd $(HOST_SUBDIR)/mpc && \
12405 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12406 CFLAGS="$(STAGE1_CFLAGS)" \
12407 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12408 LIBCFLAGS="$(LIBCFLAGS)" \
12409 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12410 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12411 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
12412 $(EXTRA_HOST_FLAGS) \
12413 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12414 TFLAGS="$(STAGE1_TFLAGS)" \
12415 $(TARGET-stage1-mpc)
12416
12417maybe-clean-stage1-mpc: clean-stage1-mpc
12418clean-stage1: clean-stage1-mpc
12419clean-stage1-mpc:
12420 @if [ $(current_stage) = stage1 ]; then \
12421 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12422 else \
12423 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
12424 $(MAKE) stage1-start; \
12425 fi; \
12426 cd $(HOST_SUBDIR)/mpc && \
12427 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 12428 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
12429@endif mpc-bootstrap
12430
12431
12432.PHONY: all-stage2-mpc maybe-all-stage2-mpc
12433.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
12434maybe-all-stage2-mpc:
12435maybe-clean-stage2-mpc:
12436@if mpc-bootstrap
12437maybe-all-stage2-mpc: all-stage2-mpc
12438all-stage2: all-stage2-mpc
12439TARGET-stage2-mpc = $(TARGET-mpc)
12440all-stage2-mpc: configure-stage2-mpc
12441 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12442 @r=`${PWD_COMMAND}`; export r; \
12443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12444 TFLAGS="$(STAGE2_TFLAGS)"; \
12445 $(HOST_EXPORTS) \
12446 $(POSTSTAGE1_HOST_EXPORTS) \
12447 cd $(HOST_SUBDIR)/mpc && \
12448 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12449 CFLAGS="$(STAGE2_CFLAGS)" \
12450 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12451 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12452 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12453 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12454 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12455 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12456 TFLAGS="$(STAGE2_TFLAGS)" \
12457 $(TARGET-stage2-mpc)
12458
12459maybe-clean-stage2-mpc: clean-stage2-mpc
12460clean-stage2: clean-stage2-mpc
12461clean-stage2-mpc:
12462 @if [ $(current_stage) = stage2 ]; then \
12463 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12464 else \
12465 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
12466 $(MAKE) stage2-start; \
12467 fi; \
12468 cd $(HOST_SUBDIR)/mpc && \
b3676d82 12469 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
12470@endif mpc-bootstrap
12471
12472
12473.PHONY: all-stage3-mpc maybe-all-stage3-mpc
12474.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
12475maybe-all-stage3-mpc:
12476maybe-clean-stage3-mpc:
12477@if mpc-bootstrap
12478maybe-all-stage3-mpc: all-stage3-mpc
12479all-stage3: all-stage3-mpc
12480TARGET-stage3-mpc = $(TARGET-mpc)
12481all-stage3-mpc: configure-stage3-mpc
12482 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12483 @r=`${PWD_COMMAND}`; export r; \
12484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12485 TFLAGS="$(STAGE3_TFLAGS)"; \
12486 $(HOST_EXPORTS) \
12487 $(POSTSTAGE1_HOST_EXPORTS) \
12488 cd $(HOST_SUBDIR)/mpc && \
12489 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12490 CFLAGS="$(STAGE3_CFLAGS)" \
12491 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12492 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12493 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12494 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12495 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12496 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12497 TFLAGS="$(STAGE3_TFLAGS)" \
12498 $(TARGET-stage3-mpc)
12499
12500maybe-clean-stage3-mpc: clean-stage3-mpc
12501clean-stage3: clean-stage3-mpc
12502clean-stage3-mpc:
12503 @if [ $(current_stage) = stage3 ]; then \
12504 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12505 else \
12506 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
12507 $(MAKE) stage3-start; \
12508 fi; \
12509 cd $(HOST_SUBDIR)/mpc && \
b3676d82 12510 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
12511@endif mpc-bootstrap
12512
12513
12514.PHONY: all-stage4-mpc maybe-all-stage4-mpc
12515.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
12516maybe-all-stage4-mpc:
12517maybe-clean-stage4-mpc:
12518@if mpc-bootstrap
12519maybe-all-stage4-mpc: all-stage4-mpc
12520all-stage4: all-stage4-mpc
12521TARGET-stage4-mpc = $(TARGET-mpc)
12522all-stage4-mpc: configure-stage4-mpc
12523 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12524 @r=`${PWD_COMMAND}`; export r; \
12525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12526 TFLAGS="$(STAGE4_TFLAGS)"; \
12527 $(HOST_EXPORTS) \
12528 $(POSTSTAGE1_HOST_EXPORTS) \
12529 cd $(HOST_SUBDIR)/mpc && \
12530 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12531 CFLAGS="$(STAGE4_CFLAGS)" \
12532 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12533 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12534 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12535 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12536 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12537 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12538 TFLAGS="$(STAGE4_TFLAGS)" \
12539 $(TARGET-stage4-mpc)
12540
12541maybe-clean-stage4-mpc: clean-stage4-mpc
12542clean-stage4: clean-stage4-mpc
12543clean-stage4-mpc:
12544 @if [ $(current_stage) = stage4 ]; then \
12545 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12546 else \
12547 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
12548 $(MAKE) stage4-start; \
12549 fi; \
12550 cd $(HOST_SUBDIR)/mpc && \
b3676d82 12551 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
12552@endif mpc-bootstrap
12553
12554
12555.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
12556.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
12557maybe-all-stageprofile-mpc:
12558maybe-clean-stageprofile-mpc:
12559@if mpc-bootstrap
12560maybe-all-stageprofile-mpc: all-stageprofile-mpc
12561all-stageprofile: all-stageprofile-mpc
12562TARGET-stageprofile-mpc = $(TARGET-mpc)
12563all-stageprofile-mpc: configure-stageprofile-mpc
12564 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12565 @r=`${PWD_COMMAND}`; export r; \
12566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12567 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12568 $(HOST_EXPORTS) \
12569 $(POSTSTAGE1_HOST_EXPORTS) \
12570 cd $(HOST_SUBDIR)/mpc && \
12571 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12572 CFLAGS="$(STAGEprofile_CFLAGS)" \
12573 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12574 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12575 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12576 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12577 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12578 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12579 TFLAGS="$(STAGEprofile_TFLAGS)" \
12580 $(TARGET-stageprofile-mpc)
12581
12582maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
12583clean-stageprofile: clean-stageprofile-mpc
12584clean-stageprofile-mpc:
12585 @if [ $(current_stage) = stageprofile ]; then \
12586 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12587 else \
12588 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
12589 $(MAKE) stageprofile-start; \
12590 fi; \
12591 cd $(HOST_SUBDIR)/mpc && \
b3676d82 12592 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
12593@endif mpc-bootstrap
12594
12595
12596.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
12597.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
12598maybe-all-stagefeedback-mpc:
12599maybe-clean-stagefeedback-mpc:
12600@if mpc-bootstrap
12601maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
12602all-stagefeedback: all-stagefeedback-mpc
12603TARGET-stagefeedback-mpc = $(TARGET-mpc)
12604all-stagefeedback-mpc: configure-stagefeedback-mpc
12605 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12606 @r=`${PWD_COMMAND}`; export r; \
12607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12608 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12609 $(HOST_EXPORTS) \
12610 $(POSTSTAGE1_HOST_EXPORTS) \
12611 cd $(HOST_SUBDIR)/mpc && \
12612 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12613 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12614 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12615 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12616 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12617 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12618 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12619 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12620 TFLAGS="$(STAGEfeedback_TFLAGS)" \
12621 $(TARGET-stagefeedback-mpc)
12622
12623maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
12624clean-stagefeedback: clean-stagefeedback-mpc
12625clean-stagefeedback-mpc:
12626 @if [ $(current_stage) = stagefeedback ]; then \
12627 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
12628 else \
12629 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
12630 $(MAKE) stagefeedback-start; \
12631 fi; \
12632 cd $(HOST_SUBDIR)/mpc && \
b3676d82 12633 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
12634@endif mpc-bootstrap
12635
12636
12637
12638
12639
12640.PHONY: check-mpc maybe-check-mpc
12641maybe-check-mpc:
12642@if mpc
12643maybe-check-mpc: check-mpc
12644
12645check-mpc:
12646 @: $(MAKE); $(unstage)
12647 @r=`${PWD_COMMAND}`; export r; \
12648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12649 $(HOST_EXPORTS) \
12650 (cd $(HOST_SUBDIR)/mpc && \
12651 $(MAKE) $(FLAGS_TO_PASS) check)
12652
12653@endif mpc
12654
12655.PHONY: install-mpc maybe-install-mpc
12656maybe-install-mpc:
12657@if mpc
12658maybe-install-mpc: install-mpc
12659
12660install-mpc:
12661
12662@endif mpc
12663
12664.PHONY: install-strip-mpc maybe-install-strip-mpc
12665maybe-install-strip-mpc:
12666@if mpc
12667maybe-install-strip-mpc: install-strip-mpc
12668
12669install-strip-mpc:
12670
12671@endif mpc
12672
12673# Other targets (info, dvi, pdf, etc.)
12674
12675.PHONY: maybe-info-mpc info-mpc
12676maybe-info-mpc:
12677@if mpc
12678maybe-info-mpc: info-mpc
12679
12680info-mpc: \
12681 configure-mpc
12682 @[ -f ./mpc/Makefile ] || exit 0; \
12683 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
12684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12685 $(HOST_EXPORTS) \
12686 for flag in $(EXTRA_HOST_FLAGS) ; do \
12687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12688 done; \
a90ef4bf
JM
12689 echo "Doing info in mpc" ; \
12690 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
12691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12693 "RANLIB=$${RANLIB}" \
0c24b341 12694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
12695 info) \
12696 || exit 1
d3ed111c 12697
a90ef4bf 12698@endif mpc
d3ed111c 12699
a90ef4bf
JM
12700.PHONY: maybe-dvi-mpc dvi-mpc
12701maybe-dvi-mpc:
12702@if mpc
12703maybe-dvi-mpc: dvi-mpc
d3ed111c 12704
a90ef4bf
JM
12705dvi-mpc: \
12706 configure-mpc
12707 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
12708 r=`${PWD_COMMAND}`; export r; \
12709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12710 $(HOST_EXPORTS) \
12711 for flag in $(EXTRA_HOST_FLAGS) ; do \
12712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12713 done; \
a90ef4bf
JM
12714 echo "Doing dvi in mpc" ; \
12715 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
12716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12718 "RANLIB=$${RANLIB}" \
0c24b341 12719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
12720 dvi) \
12721 || exit 1
d3ed111c 12722
a90ef4bf 12723@endif mpc
d3ed111c 12724
a90ef4bf
JM
12725.PHONY: maybe-pdf-mpc pdf-mpc
12726maybe-pdf-mpc:
12727@if mpc
12728maybe-pdf-mpc: pdf-mpc
56a8fe78 12729
a90ef4bf
JM
12730pdf-mpc: \
12731 configure-mpc
12732 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
12733 r=`${PWD_COMMAND}`; export r; \
12734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12735 $(HOST_EXPORTS) \
12736 for flag in $(EXTRA_HOST_FLAGS) ; do \
12737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12738 done; \
a90ef4bf
JM
12739 echo "Doing pdf in mpc" ; \
12740 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
12741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12743 "RANLIB=$${RANLIB}" \
0c24b341 12744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
12745 pdf) \
12746 || exit 1
56a8fe78 12747
a90ef4bf 12748@endif mpc
56a8fe78 12749
a90ef4bf
JM
12750.PHONY: maybe-html-mpc html-mpc
12751maybe-html-mpc:
12752@if mpc
12753maybe-html-mpc: html-mpc
6d389afc 12754
a90ef4bf
JM
12755html-mpc: \
12756 configure-mpc
12757 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
12758 r=`${PWD_COMMAND}`; export r; \
12759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
12760 $(HOST_EXPORTS) \
12761 for flag in $(EXTRA_HOST_FLAGS) ; do \
12762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12763 done; \
a90ef4bf
JM
12764 echo "Doing html in mpc" ; \
12765 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
12766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12768 "RANLIB=$${RANLIB}" \
0c24b341 12769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12770 html) \
12771 || exit 1
12772
a90ef4bf 12773@endif mpc
d3ed111c 12774
a90ef4bf
JM
12775.PHONY: maybe-TAGS-mpc TAGS-mpc
12776maybe-TAGS-mpc:
12777@if mpc
12778maybe-TAGS-mpc: TAGS-mpc
d3ed111c 12779
a90ef4bf
JM
12780TAGS-mpc: \
12781 configure-mpc
12782 @[ -f ./mpc/Makefile ] || exit 0; \
12783 r=`${PWD_COMMAND}`; export r; \
12784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
12785 $(HOST_EXPORTS) \
12786 for flag in $(EXTRA_HOST_FLAGS) ; do \
12787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12788 done; \
a90ef4bf
JM
12789 echo "Doing TAGS in mpc" ; \
12790 (cd $(HOST_SUBDIR)/mpc && \
12791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12793 "RANLIB=$${RANLIB}" \
12794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
12795 TAGS) \
12796 || exit 1
12797
12798@endif mpc
12799
12800.PHONY: maybe-install-info-mpc install-info-mpc
12801maybe-install-info-mpc:
12802@if mpc
12803maybe-install-info-mpc: install-info-mpc
12804
12805install-info-mpc: \
12806 configure-mpc \
12807 info-mpc
12808 @[ -f ./mpc/Makefile ] || exit 0; \
12809 r=`${PWD_COMMAND}`; export r; \
12810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12811 $(HOST_EXPORTS) \
12812 for flag in $(EXTRA_HOST_FLAGS) ; do \
12813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12814 done; \
12815 echo "Doing install-info in mpc" ; \
12816 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
12817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12819 "RANLIB=$${RANLIB}" \
0c24b341 12820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
12821 install-info) \
12822 || exit 1
d3ed111c 12823
a90ef4bf 12824@endif mpc
d3ed111c 12825
a90ef4bf
JM
12826.PHONY: maybe-install-pdf-mpc install-pdf-mpc
12827maybe-install-pdf-mpc:
12828@if mpc
12829maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 12830
a90ef4bf
JM
12831install-pdf-mpc: \
12832 configure-mpc \
12833 pdf-mpc
12834 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
12835 r=`${PWD_COMMAND}`; export r; \
12836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12837 $(HOST_EXPORTS) \
12838 for flag in $(EXTRA_HOST_FLAGS) ; do \
12839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12840 done; \
a90ef4bf
JM
12841 echo "Doing install-pdf in mpc" ; \
12842 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
12843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12845 "RANLIB=$${RANLIB}" \
0c24b341 12846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
12847 install-pdf) \
12848 || exit 1
a3ca38d2 12849
a90ef4bf 12850@endif mpc
a3ca38d2 12851
a90ef4bf
JM
12852.PHONY: maybe-install-html-mpc install-html-mpc
12853maybe-install-html-mpc:
12854@if mpc
12855maybe-install-html-mpc: install-html-mpc
108a6f8e 12856
a90ef4bf
JM
12857install-html-mpc: \
12858 configure-mpc \
12859 html-mpc
12860 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
12861 r=`${PWD_COMMAND}`; export r; \
12862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12863 $(HOST_EXPORTS) \
12864 for flag in $(EXTRA_HOST_FLAGS) ; do \
12865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12866 done; \
a90ef4bf
JM
12867 echo "Doing install-html in mpc" ; \
12868 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
12869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12871 "RANLIB=$${RANLIB}" \
0c24b341 12872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12873 install-html) \
12874 || exit 1
12875
a90ef4bf 12876@endif mpc
108a6f8e 12877
a90ef4bf
JM
12878.PHONY: maybe-installcheck-mpc installcheck-mpc
12879maybe-installcheck-mpc:
12880@if mpc
12881maybe-installcheck-mpc: installcheck-mpc
d3ed111c 12882
a90ef4bf
JM
12883installcheck-mpc: \
12884 configure-mpc
12885 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
12886 r=`${PWD_COMMAND}`; export r; \
12887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12888 $(HOST_EXPORTS) \
12889 for flag in $(EXTRA_HOST_FLAGS) ; do \
12890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12891 done; \
a90ef4bf
JM
12892 echo "Doing installcheck in mpc" ; \
12893 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
12894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12896 "RANLIB=$${RANLIB}" \
0c24b341 12897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
12898 installcheck) \
12899 || exit 1
d3ed111c 12900
a90ef4bf 12901@endif mpc
d3ed111c 12902
a90ef4bf
JM
12903.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
12904maybe-mostlyclean-mpc:
12905@if mpc
12906maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 12907
a90ef4bf
JM
12908mostlyclean-mpc:
12909 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
12910 r=`${PWD_COMMAND}`; export r; \
12911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
12912 $(HOST_EXPORTS) \
12913 for flag in $(EXTRA_HOST_FLAGS) ; do \
12914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12915 done; \
a90ef4bf
JM
12916 echo "Doing mostlyclean in mpc" ; \
12917 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
12918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12920 "RANLIB=$${RANLIB}" \
0c24b341 12921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
12922 mostlyclean) \
12923 || exit 1
12924
a90ef4bf 12925@endif mpc
d3ed111c 12926
a90ef4bf
JM
12927.PHONY: maybe-clean-mpc clean-mpc
12928maybe-clean-mpc:
12929@if mpc
12930maybe-clean-mpc: clean-mpc
d3ed111c 12931
a90ef4bf
JM
12932clean-mpc:
12933 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
12934 r=`${PWD_COMMAND}`; export r; \
12935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
12936 $(HOST_EXPORTS) \
12937 for flag in $(EXTRA_HOST_FLAGS) ; do \
12938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12939 done; \
a90ef4bf
JM
12940 echo "Doing clean in mpc" ; \
12941 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
12942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12944 "RANLIB=$${RANLIB}" \
0c24b341 12945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
12946 clean) \
12947 || exit 1
12948
a90ef4bf 12949@endif mpc
d3ed111c 12950
a90ef4bf
JM
12951.PHONY: maybe-distclean-mpc distclean-mpc
12952maybe-distclean-mpc:
12953@if mpc
12954maybe-distclean-mpc: distclean-mpc
d3ed111c 12955
a90ef4bf
JM
12956distclean-mpc:
12957 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
12958 r=`${PWD_COMMAND}`; export r; \
12959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
12960 $(HOST_EXPORTS) \
12961 for flag in $(EXTRA_HOST_FLAGS) ; do \
12962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12963 done; \
a90ef4bf
JM
12964 echo "Doing distclean in mpc" ; \
12965 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
12966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12968 "RANLIB=$${RANLIB}" \
0c24b341 12969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
12970 distclean) \
12971 || exit 1
12972
a90ef4bf 12973@endif mpc
d3ed111c 12974
a90ef4bf
JM
12975.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
12976maybe-maintainer-clean-mpc:
12977@if mpc
12978maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 12979
a90ef4bf
JM
12980maintainer-clean-mpc:
12981 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
12982 r=`${PWD_COMMAND}`; export r; \
12983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
12984 $(HOST_EXPORTS) \
12985 for flag in $(EXTRA_HOST_FLAGS) ; do \
12986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12987 done; \
a90ef4bf
JM
12988 echo "Doing maintainer-clean in mpc" ; \
12989 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
12990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12992 "RANLIB=$${RANLIB}" \
0c24b341 12993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
12994 maintainer-clean) \
12995 || exit 1
12996
a90ef4bf 12997@endif mpc
d3ed111c
GK
12998
12999
a7254363 13000
7ec59b9e
L
13001.PHONY: configure-isl maybe-configure-isl
13002maybe-configure-isl:
4f0ef2d8 13003@if gcc-bootstrap
7ec59b9e 13004configure-isl: stage_current
4f0ef2d8 13005@endif gcc-bootstrap
7ec59b9e
L
13006@if isl
13007maybe-configure-isl: configure-isl
13008configure-isl:
c52c6897 13009 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e
L
13011 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
13012 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
1f53ca9a 13013 $(HOST_EXPORTS) \
7ec59b9e
L
13014 echo Configuring in $(HOST_SUBDIR)/isl; \
13015 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13016 case $(srcdir) in \
b00612cc 13017 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13018 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13019 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13020 esac; \
7ec59b9e
L
13021 srcdiroption="--srcdir=$${topdir}/isl"; \
13022 libsrcdir="$$s/isl"; \
4fa63067 13023 $(SHELL) $${libsrcdir}/configure \
4b900473 13024 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7ec59b9e 13025 --target=${target_alias} $${srcdiroption} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13026 || exit 1
7ec59b9e 13027@endif isl
4fa63067 13028
a7254363
PB
13029
13030
7ec59b9e
L
13031.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13032maybe-configure-stage1-isl:
13033@if isl-bootstrap
13034maybe-configure-stage1-isl: configure-stage1-isl
13035configure-stage1-isl:
a90ef4bf 13036 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13037 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13038 @r=`${PWD_COMMAND}`; export r; \
13039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13040 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13041 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13042 $(HOST_EXPORTS) \
13043 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13044 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13045 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13046 echo Configuring stage 1 in $(HOST_SUBDIR)/isl ; \
13047 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13048 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13049 case $(srcdir) in \
13050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13051 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13053 esac; \
7ec59b9e
L
13054 srcdiroption="--srcdir=$${topdir}/isl"; \
13055 libsrcdir="$$s/isl"; \
a90ef4bf
JM
13056 $(SHELL) $${libsrcdir}/configure \
13057 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13058 --target=${target_alias} $${srcdiroption} \
13059 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13060 --disable-shared @extra_isl_gmp_configure_flags@
13061@endif isl-bootstrap
13062
13063.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13064maybe-configure-stage2-isl:
13065@if isl-bootstrap
13066maybe-configure-stage2-isl: configure-stage2-isl
13067configure-stage2-isl:
a90ef4bf 13068 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13069 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13070 @r=`${PWD_COMMAND}`; export r; \
13071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13072 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13073 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13074 $(HOST_EXPORTS) \
13075 $(POSTSTAGE1_HOST_EXPORTS) \
13076 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13077 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13078 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13079 echo Configuring stage 2 in $(HOST_SUBDIR)/isl ; \
13080 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13081 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13082 case $(srcdir) in \
13083 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13084 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13085 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13086 esac; \
7ec59b9e
L
13087 srcdiroption="--srcdir=$${topdir}/isl"; \
13088 libsrcdir="$$s/isl"; \
a90ef4bf
JM
13089 $(SHELL) $${libsrcdir}/configure \
13090 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13091 --target=${target_alias} $${srcdiroption} \
13092 --with-build-libsubdir=$(HOST_SUBDIR) \
13093 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13094 --disable-shared @extra_isl_gmp_configure_flags@
13095@endif isl-bootstrap
13096
13097.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13098maybe-configure-stage3-isl:
13099@if isl-bootstrap
13100maybe-configure-stage3-isl: configure-stage3-isl
13101configure-stage3-isl:
a90ef4bf 13102 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13103 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13104 @r=`${PWD_COMMAND}`; export r; \
13105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13106 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13107 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13108 $(HOST_EXPORTS) \
13109 $(POSTSTAGE1_HOST_EXPORTS) \
13110 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13111 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13112 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13113 echo Configuring stage 3 in $(HOST_SUBDIR)/isl ; \
13114 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13115 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13116 case $(srcdir) in \
13117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13118 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13120 esac; \
7ec59b9e
L
13121 srcdiroption="--srcdir=$${topdir}/isl"; \
13122 libsrcdir="$$s/isl"; \
a90ef4bf
JM
13123 $(SHELL) $${libsrcdir}/configure \
13124 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13125 --target=${target_alias} $${srcdiroption} \
13126 --with-build-libsubdir=$(HOST_SUBDIR) \
13127 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13128 --disable-shared @extra_isl_gmp_configure_flags@
13129@endif isl-bootstrap
13130
13131.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13132maybe-configure-stage4-isl:
13133@if isl-bootstrap
13134maybe-configure-stage4-isl: configure-stage4-isl
13135configure-stage4-isl:
a90ef4bf 13136 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13137 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13138 @r=`${PWD_COMMAND}`; export r; \
13139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13140 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13141 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13142 $(HOST_EXPORTS) \
13143 $(POSTSTAGE1_HOST_EXPORTS) \
13144 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13145 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13146 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13147 echo Configuring stage 4 in $(HOST_SUBDIR)/isl ; \
13148 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13149 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13150 case $(srcdir) in \
13151 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13152 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13153 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13154 esac; \
7ec59b9e
L
13155 srcdiroption="--srcdir=$${topdir}/isl"; \
13156 libsrcdir="$$s/isl"; \
a90ef4bf
JM
13157 $(SHELL) $${libsrcdir}/configure \
13158 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13159 --target=${target_alias} $${srcdiroption} \
13160 --with-build-libsubdir=$(HOST_SUBDIR) \
13161 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13162 --disable-shared @extra_isl_gmp_configure_flags@
13163@endif isl-bootstrap
13164
13165.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13166maybe-configure-stageprofile-isl:
13167@if isl-bootstrap
13168maybe-configure-stageprofile-isl: configure-stageprofile-isl
13169configure-stageprofile-isl:
a90ef4bf 13170 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13171 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13172 @r=`${PWD_COMMAND}`; export r; \
13173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13174 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13175 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13176 $(HOST_EXPORTS) \
13177 $(POSTSTAGE1_HOST_EXPORTS) \
13178 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13179 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13180 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13181 echo Configuring stage profile in $(HOST_SUBDIR)/isl ; \
13182 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13183 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13184 case $(srcdir) in \
13185 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13186 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13187 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13188 esac; \
7ec59b9e
L
13189 srcdiroption="--srcdir=$${topdir}/isl"; \
13190 libsrcdir="$$s/isl"; \
a90ef4bf
JM
13191 $(SHELL) $${libsrcdir}/configure \
13192 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13193 --target=${target_alias} $${srcdiroption} \
13194 --with-build-libsubdir=$(HOST_SUBDIR) \
13195 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13196 --disable-shared @extra_isl_gmp_configure_flags@
13197@endif isl-bootstrap
13198
13199.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13200maybe-configure-stagefeedback-isl:
13201@if isl-bootstrap
13202maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13203configure-stagefeedback-isl:
a90ef4bf 13204 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13205 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13206 @r=`${PWD_COMMAND}`; export r; \
13207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13208 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13209 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13210 $(HOST_EXPORTS) \
13211 $(POSTSTAGE1_HOST_EXPORTS) \
13212 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13213 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13214 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13215 echo Configuring stage feedback in $(HOST_SUBDIR)/isl ; \
13216 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13217 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13218 case $(srcdir) in \
13219 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13220 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13221 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13222 esac; \
7ec59b9e
L
13223 srcdiroption="--srcdir=$${topdir}/isl"; \
13224 libsrcdir="$$s/isl"; \
a90ef4bf
JM
13225 $(SHELL) $${libsrcdir}/configure \
13226 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13227 --target=${target_alias} $${srcdiroption} \
13228 --with-build-libsubdir=$(HOST_SUBDIR) \
13229 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13230 --disable-shared @extra_isl_gmp_configure_flags@
13231@endif isl-bootstrap
d545f33b 13232
4fa63067 13233
4fa63067
NN
13234
13235
4fa63067 13236
7ec59b9e
L
13237.PHONY: all-isl maybe-all-isl
13238maybe-all-isl:
a90ef4bf 13239@if gcc-bootstrap
7ec59b9e 13240all-isl: stage_current
a90ef4bf 13241@endif gcc-bootstrap
7ec59b9e
L
13242@if isl
13243TARGET-isl=all
13244maybe-all-isl: all-isl
13245all-isl: configure-isl
4fa63067
NN
13246 @r=`${PWD_COMMAND}`; export r; \
13247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13248 $(HOST_EXPORTS) \
7ec59b9e 13249 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13250 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13251 $(TARGET-isl))
13252@endif isl
13253
13254
13255
13256.PHONY: all-stage1-isl maybe-all-stage1-isl
13257.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13258maybe-all-stage1-isl:
13259maybe-clean-stage1-isl:
13260@if isl-bootstrap
13261maybe-all-stage1-isl: all-stage1-isl
13262all-stage1: all-stage1-isl
13263TARGET-stage1-isl = $(TARGET-isl)
13264all-stage1-isl: configure-stage1-isl
a90ef4bf 13265 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13266 @r=`${PWD_COMMAND}`; export r; \
13267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13268 TFLAGS="$(STAGE1_TFLAGS)"; \
13269 $(HOST_EXPORTS) \
7ec59b9e 13270 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13271 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13272 CFLAGS="$(STAGE1_CFLAGS)" \
13273 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13274 LIBCFLAGS="$(LIBCFLAGS)" \
13275 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13276 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13277 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13278 $(EXTRA_HOST_FLAGS) \
13279 $(STAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13280 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13281 $(TARGET-stage1-isl)
9b980aa1 13282
7ec59b9e
L
13283maybe-clean-stage1-isl: clean-stage1-isl
13284clean-stage1: clean-stage1-isl
13285clean-stage1-isl:
a90ef4bf 13286 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 13287 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13288 else \
7ec59b9e 13289 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13290 $(MAKE) stage1-start; \
13291 fi; \
7ec59b9e 13292 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 13293 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13294 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13295@endif isl-bootstrap
13296
13297
13298.PHONY: all-stage2-isl maybe-all-stage2-isl
13299.PHONY: clean-stage2-isl maybe-clean-stage2-isl
13300maybe-all-stage2-isl:
13301maybe-clean-stage2-isl:
13302@if isl-bootstrap
13303maybe-all-stage2-isl: all-stage2-isl
13304all-stage2: all-stage2-isl
13305TARGET-stage2-isl = $(TARGET-isl)
13306all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
13307 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13308 @r=`${PWD_COMMAND}`; export r; \
13309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13310 TFLAGS="$(STAGE2_TFLAGS)"; \
13311 $(HOST_EXPORTS) \
13312 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13313 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13314 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13315 CFLAGS="$(STAGE2_CFLAGS)" \
13316 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13317 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13318 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13319 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13320 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13321 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13322 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 13323 $(TARGET-stage2-isl)
a90ef4bf 13324
7ec59b9e
L
13325maybe-clean-stage2-isl: clean-stage2-isl
13326clean-stage2: clean-stage2-isl
13327clean-stage2-isl:
a90ef4bf 13328 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 13329 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13330 else \
7ec59b9e 13331 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13332 $(MAKE) stage2-start; \
13333 fi; \
7ec59b9e 13334 cd $(HOST_SUBDIR)/isl && \
b3676d82 13335 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13336@endif isl-bootstrap
13337
13338
13339.PHONY: all-stage3-isl maybe-all-stage3-isl
13340.PHONY: clean-stage3-isl maybe-clean-stage3-isl
13341maybe-all-stage3-isl:
13342maybe-clean-stage3-isl:
13343@if isl-bootstrap
13344maybe-all-stage3-isl: all-stage3-isl
13345all-stage3: all-stage3-isl
13346TARGET-stage3-isl = $(TARGET-isl)
13347all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
13348 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13349 @r=`${PWD_COMMAND}`; export r; \
13350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13351 TFLAGS="$(STAGE3_TFLAGS)"; \
13352 $(HOST_EXPORTS) \
13353 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13354 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13355 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13356 CFLAGS="$(STAGE3_CFLAGS)" \
13357 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13358 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13359 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13360 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13361 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13362 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13363 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 13364 $(TARGET-stage3-isl)
a90ef4bf 13365
7ec59b9e
L
13366maybe-clean-stage3-isl: clean-stage3-isl
13367clean-stage3: clean-stage3-isl
13368clean-stage3-isl:
a90ef4bf 13369 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 13370 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13371 else \
7ec59b9e 13372 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13373 $(MAKE) stage3-start; \
13374 fi; \
7ec59b9e 13375 cd $(HOST_SUBDIR)/isl && \
b3676d82 13376 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13377@endif isl-bootstrap
13378
13379
13380.PHONY: all-stage4-isl maybe-all-stage4-isl
13381.PHONY: clean-stage4-isl maybe-clean-stage4-isl
13382maybe-all-stage4-isl:
13383maybe-clean-stage4-isl:
13384@if isl-bootstrap
13385maybe-all-stage4-isl: all-stage4-isl
13386all-stage4: all-stage4-isl
13387TARGET-stage4-isl = $(TARGET-isl)
13388all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
13389 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13390 @r=`${PWD_COMMAND}`; export r; \
13391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13392 TFLAGS="$(STAGE4_TFLAGS)"; \
13393 $(HOST_EXPORTS) \
13394 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13395 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13396 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13397 CFLAGS="$(STAGE4_CFLAGS)" \
13398 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13399 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13400 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13401 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13402 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13403 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13404 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 13405 $(TARGET-stage4-isl)
a90ef4bf 13406
7ec59b9e
L
13407maybe-clean-stage4-isl: clean-stage4-isl
13408clean-stage4: clean-stage4-isl
13409clean-stage4-isl:
a90ef4bf 13410 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 13411 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13412 else \
7ec59b9e 13413 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13414 $(MAKE) stage4-start; \
13415 fi; \
7ec59b9e 13416 cd $(HOST_SUBDIR)/isl && \
b3676d82 13417 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13418@endif isl-bootstrap
13419
13420
13421.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
13422.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
13423maybe-all-stageprofile-isl:
13424maybe-clean-stageprofile-isl:
13425@if isl-bootstrap
13426maybe-all-stageprofile-isl: all-stageprofile-isl
13427all-stageprofile: all-stageprofile-isl
13428TARGET-stageprofile-isl = $(TARGET-isl)
13429all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
13430 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13431 @r=`${PWD_COMMAND}`; export r; \
13432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13433 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13434 $(HOST_EXPORTS) \
13435 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13436 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13437 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13438 CFLAGS="$(STAGEprofile_CFLAGS)" \
13439 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13440 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13441 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13442 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13443 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13444 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13445 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 13446 $(TARGET-stageprofile-isl)
a90ef4bf 13447
7ec59b9e
L
13448maybe-clean-stageprofile-isl: clean-stageprofile-isl
13449clean-stageprofile: clean-stageprofile-isl
13450clean-stageprofile-isl:
a90ef4bf 13451 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 13452 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13453 else \
7ec59b9e 13454 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13455 $(MAKE) stageprofile-start; \
13456 fi; \
7ec59b9e 13457 cd $(HOST_SUBDIR)/isl && \
b3676d82 13458 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13459@endif isl-bootstrap
13460
13461
13462.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
13463.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
13464maybe-all-stagefeedback-isl:
13465maybe-clean-stagefeedback-isl:
13466@if isl-bootstrap
13467maybe-all-stagefeedback-isl: all-stagefeedback-isl
13468all-stagefeedback: all-stagefeedback-isl
13469TARGET-stagefeedback-isl = $(TARGET-isl)
13470all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
13471 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13472 @r=`${PWD_COMMAND}`; export r; \
13473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13474 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13475 $(HOST_EXPORTS) \
13476 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13477 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13478 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13479 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13480 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13481 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13482 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13483 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13484 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13485 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13486 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 13487 $(TARGET-stagefeedback-isl)
a90ef4bf 13488
7ec59b9e
L
13489maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
13490clean-stagefeedback: clean-stagefeedback-isl
13491clean-stagefeedback-isl:
a90ef4bf 13492 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 13493 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13494 else \
7ec59b9e 13495 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13496 $(MAKE) stagefeedback-start; \
13497 fi; \
7ec59b9e 13498 cd $(HOST_SUBDIR)/isl && \
b3676d82 13499 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 13500@endif isl-bootstrap
a90ef4bf
JM
13501
13502
13503
13504
13505
7ec59b9e
L
13506.PHONY: check-isl maybe-check-isl
13507maybe-check-isl:
13508@if isl
13509maybe-check-isl: check-isl
a90ef4bf 13510
7ec59b9e 13511check-isl:
0aed8855 13512 @: $(MAKE); $(unstage)
a90ef4bf
JM
13513 @r=`${PWD_COMMAND}`; export r; \
13514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13515 $(HOST_EXPORTS) \
7ec59b9e
L
13516 (cd $(HOST_SUBDIR)/isl && \
13517 $(MAKE) $(FLAGS_TO_PASS) V=1 check)
a90ef4bf 13518
7ec59b9e 13519@endif isl
a90ef4bf 13520
7ec59b9e
L
13521.PHONY: install-isl maybe-install-isl
13522maybe-install-isl:
13523@if isl
13524maybe-install-isl: install-isl
a90ef4bf 13525
7ec59b9e 13526install-isl:
a90ef4bf 13527
7ec59b9e 13528@endif isl
a90ef4bf 13529
7ec59b9e
L
13530.PHONY: install-strip-isl maybe-install-strip-isl
13531maybe-install-strip-isl:
13532@if isl
13533maybe-install-strip-isl: install-strip-isl
a90ef4bf 13534
7ec59b9e 13535install-strip-isl:
a90ef4bf 13536
7ec59b9e 13537@endif isl
a90ef4bf
JM
13538
13539# Other targets (info, dvi, pdf, etc.)
13540
7ec59b9e
L
13541.PHONY: maybe-info-isl info-isl
13542maybe-info-isl:
13543@if isl
13544maybe-info-isl: info-isl
a90ef4bf 13545
7ec59b9e
L
13546info-isl: \
13547 configure-isl
13548 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13549 r=`${PWD_COMMAND}`; export r; \
13550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13551 $(HOST_EXPORTS) \
7ec59b9e 13552 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13554 done; \
7ec59b9e
L
13555 echo "Doing info in isl" ; \
13556 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13559 "RANLIB=$${RANLIB}" \
0c24b341 13560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13561 info) \
2a4cbe27
NN
13562 || exit 1
13563
7ec59b9e 13564@endif isl
2a4cbe27 13565
7ec59b9e
L
13566.PHONY: maybe-dvi-isl dvi-isl
13567maybe-dvi-isl:
13568@if isl
13569maybe-dvi-isl: dvi-isl
2a4cbe27 13570
7ec59b9e
L
13571dvi-isl: \
13572 configure-isl
13573 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13574 r=`${PWD_COMMAND}`; export r; \
13575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13576 $(HOST_EXPORTS) \
7ec59b9e 13577 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13579 done; \
7ec59b9e
L
13580 echo "Doing dvi in isl" ; \
13581 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13584 "RANLIB=$${RANLIB}" \
0c24b341 13585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13586 dvi) \
2a4cbe27
NN
13587 || exit 1
13588
7ec59b9e 13589@endif isl
2a4cbe27 13590
7ec59b9e
L
13591.PHONY: maybe-pdf-isl pdf-isl
13592maybe-pdf-isl:
13593@if isl
13594maybe-pdf-isl: pdf-isl
56a8fe78 13595
7ec59b9e
L
13596pdf-isl: \
13597 configure-isl
13598 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
13599 r=`${PWD_COMMAND}`; export r; \
13600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13601 $(HOST_EXPORTS) \
7ec59b9e 13602 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
13603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13604 done; \
7ec59b9e
L
13605 echo "Doing pdf in isl" ; \
13606 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
13607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13609 "RANLIB=$${RANLIB}" \
0c24b341 13610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
13611 pdf) \
13612 || exit 1
13613
7ec59b9e 13614@endif isl
56a8fe78 13615
7ec59b9e
L
13616.PHONY: maybe-html-isl html-isl
13617maybe-html-isl:
13618@if isl
13619maybe-html-isl: html-isl
6d389afc 13620
7ec59b9e
L
13621html-isl: \
13622 configure-isl
13623 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
13624 r=`${PWD_COMMAND}`; export r; \
13625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 13626 $(HOST_EXPORTS) \
7ec59b9e 13627 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
13628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13629 done; \
7ec59b9e
L
13630 echo "Doing html in isl" ; \
13631 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
13632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13634 "RANLIB=$${RANLIB}" \
0c24b341 13635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13636 html) \
13637 || exit 1
13638
7ec59b9e 13639@endif isl
6d389afc 13640
7ec59b9e
L
13641.PHONY: maybe-TAGS-isl TAGS-isl
13642maybe-TAGS-isl:
13643@if isl
13644maybe-TAGS-isl: TAGS-isl
2a4cbe27 13645
7ec59b9e
L
13646TAGS-isl: \
13647 configure-isl
13648 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13649 r=`${PWD_COMMAND}`; export r; \
13650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13651 $(HOST_EXPORTS) \
7ec59b9e 13652 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13654 done; \
7ec59b9e
L
13655 echo "Doing TAGS in isl" ; \
13656 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13659 "RANLIB=$${RANLIB}" \
0c24b341 13660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13661 TAGS) \
2a4cbe27
NN
13662 || exit 1
13663
7ec59b9e 13664@endif isl
2a4cbe27 13665
7ec59b9e
L
13666.PHONY: maybe-install-info-isl install-info-isl
13667maybe-install-info-isl:
13668@if isl
13669maybe-install-info-isl: install-info-isl
2a4cbe27 13670
7ec59b9e
L
13671install-info-isl: \
13672 configure-isl \
13673 info-isl
13674 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13675 r=`${PWD_COMMAND}`; export r; \
13676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13677 $(HOST_EXPORTS) \
7ec59b9e 13678 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13680 done; \
7ec59b9e
L
13681 echo "Doing install-info in isl" ; \
13682 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13685 "RANLIB=$${RANLIB}" \
0c24b341 13686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13687 install-info) \
2a4cbe27
NN
13688 || exit 1
13689
7ec59b9e 13690@endif isl
2a4cbe27 13691
7ec59b9e
L
13692.PHONY: maybe-install-pdf-isl install-pdf-isl
13693maybe-install-pdf-isl:
13694@if isl
13695maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 13696
7ec59b9e
L
13697install-pdf-isl: \
13698 configure-isl \
13699 pdf-isl
13700 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
13701 r=`${PWD_COMMAND}`; export r; \
13702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13703 $(HOST_EXPORTS) \
7ec59b9e 13704 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
13705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13706 done; \
7ec59b9e
L
13707 echo "Doing install-pdf in isl" ; \
13708 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
13709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13711 "RANLIB=$${RANLIB}" \
0c24b341 13712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
13713 install-pdf) \
13714 || exit 1
13715
7ec59b9e 13716@endif isl
a3ca38d2 13717
7ec59b9e
L
13718.PHONY: maybe-install-html-isl install-html-isl
13719maybe-install-html-isl:
13720@if isl
13721maybe-install-html-isl: install-html-isl
108a6f8e 13722
7ec59b9e
L
13723install-html-isl: \
13724 configure-isl \
13725 html-isl
13726 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
13727 r=`${PWD_COMMAND}`; export r; \
13728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13729 $(HOST_EXPORTS) \
7ec59b9e 13730 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
13731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13732 done; \
7ec59b9e
L
13733 echo "Doing install-html in isl" ; \
13734 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
13735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13737 "RANLIB=$${RANLIB}" \
0c24b341 13738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13739 install-html) \
13740 || exit 1
13741
7ec59b9e 13742@endif isl
108a6f8e 13743
7ec59b9e
L
13744.PHONY: maybe-installcheck-isl installcheck-isl
13745maybe-installcheck-isl:
13746@if isl
13747maybe-installcheck-isl: installcheck-isl
2a4cbe27 13748
7ec59b9e
L
13749installcheck-isl: \
13750 configure-isl
13751 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13752 r=`${PWD_COMMAND}`; export r; \
13753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13754 $(HOST_EXPORTS) \
7ec59b9e 13755 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13757 done; \
7ec59b9e
L
13758 echo "Doing installcheck in isl" ; \
13759 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13762 "RANLIB=$${RANLIB}" \
0c24b341 13763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13764 installcheck) \
2a4cbe27
NN
13765 || exit 1
13766
7ec59b9e 13767@endif isl
2a4cbe27 13768
7ec59b9e
L
13769.PHONY: maybe-mostlyclean-isl mostlyclean-isl
13770maybe-mostlyclean-isl:
13771@if isl
13772maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 13773
7ec59b9e
L
13774mostlyclean-isl:
13775 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13776 r=`${PWD_COMMAND}`; export r; \
13777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13778 $(HOST_EXPORTS) \
7ec59b9e 13779 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13781 done; \
7ec59b9e
L
13782 echo "Doing mostlyclean in isl" ; \
13783 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13786 "RANLIB=$${RANLIB}" \
0c24b341 13787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13788 mostlyclean) \
2a4cbe27
NN
13789 || exit 1
13790
7ec59b9e 13791@endif isl
2a4cbe27 13792
7ec59b9e
L
13793.PHONY: maybe-clean-isl clean-isl
13794maybe-clean-isl:
13795@if isl
13796maybe-clean-isl: clean-isl
2a4cbe27 13797
7ec59b9e
L
13798clean-isl:
13799 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13800 r=`${PWD_COMMAND}`; export r; \
13801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13802 $(HOST_EXPORTS) \
7ec59b9e 13803 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13805 done; \
7ec59b9e
L
13806 echo "Doing clean in isl" ; \
13807 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13810 "RANLIB=$${RANLIB}" \
0c24b341 13811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13812 clean) \
2a4cbe27
NN
13813 || exit 1
13814
7ec59b9e 13815@endif isl
2a4cbe27 13816
7ec59b9e
L
13817.PHONY: maybe-distclean-isl distclean-isl
13818maybe-distclean-isl:
13819@if isl
13820maybe-distclean-isl: distclean-isl
2a4cbe27 13821
7ec59b9e
L
13822distclean-isl:
13823 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13824 r=`${PWD_COMMAND}`; export r; \
13825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13826 $(HOST_EXPORTS) \
7ec59b9e 13827 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13829 done; \
7ec59b9e
L
13830 echo "Doing distclean in isl" ; \
13831 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13834 "RANLIB=$${RANLIB}" \
0c24b341 13835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13836 distclean) \
2a4cbe27
NN
13837 || exit 1
13838
7ec59b9e 13839@endif isl
2a4cbe27 13840
7ec59b9e
L
13841.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
13842maybe-maintainer-clean-isl:
13843@if isl
13844maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 13845
7ec59b9e
L
13846maintainer-clean-isl:
13847 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
13848 r=`${PWD_COMMAND}`; export r; \
13849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13850 $(HOST_EXPORTS) \
7ec59b9e 13851 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
13852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13853 done; \
7ec59b9e
L
13854 echo "Doing maintainer-clean in isl" ; \
13855 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
13856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13858 "RANLIB=$${RANLIB}" \
0c24b341 13859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13860 maintainer-clean) \
2a4cbe27
NN
13861 || exit 1
13862
7ec59b9e 13863@endif isl
2a4cbe27 13864
2a4cbe27 13865
a7254363 13866
a90ef4bf
JM
13867.PHONY: configure-cloog maybe-configure-cloog
13868maybe-configure-cloog:
4f0ef2d8 13869@if gcc-bootstrap
a90ef4bf 13870configure-cloog: stage_current
4f0ef2d8 13871@endif gcc-bootstrap
a90ef4bf
JM
13872@if cloog
13873maybe-configure-cloog: configure-cloog
13874configure-cloog:
c52c6897
PB
13875 @r=`${PWD_COMMAND}`; export r; \
13876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13877 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
13878 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
7ec59b9e 13879 $(HOST_EXPORTS) CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf
JM
13880 echo Configuring in $(HOST_SUBDIR)/cloog; \
13881 cd "$(HOST_SUBDIR)/cloog" || exit 1; \
4fa63067 13882 case $(srcdir) in \
b00612cc 13883 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 13884 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
b00612cc 13885 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13886 esac; \
a90ef4bf
JM
13887 srcdiroption="--srcdir=$${topdir}/cloog"; \
13888 libsrcdir="$$s/cloog"; \
4fa63067 13889 $(SHELL) $${libsrcdir}/configure \
4b900473 13890 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
7ec59b9e 13891 --target=${target_alias} $${srcdiroption} --disable-shared --with-gmp=system --with-bits=gmp --with-isl=system \
4fa63067 13892 || exit 1
a90ef4bf 13893@endif cloog
4fa63067 13894
a7254363
PB
13895
13896
a90ef4bf
JM
13897.PHONY: configure-stage1-cloog maybe-configure-stage1-cloog
13898maybe-configure-stage1-cloog:
13899@if cloog-bootstrap
13900maybe-configure-stage1-cloog: configure-stage1-cloog
13901configure-stage1-cloog:
c52c6897 13902 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 13903 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
c52c6897
PB
13904 @r=`${PWD_COMMAND}`; export r; \
13905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 13906 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 13907 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
1b05fbbd 13908 $(HOST_EXPORTS) \
8ee82aff 13909 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 13910 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
7ec59b9e 13911 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf
JM
13912 echo Configuring stage 1 in $(HOST_SUBDIR)/cloog ; \
13913 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
13914 cd $(HOST_SUBDIR)/cloog || exit 1; \
d545f33b
PB
13915 case $(srcdir) in \
13916 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 13917 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
d545f33b
PB
13918 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13919 esac; \
a90ef4bf
JM
13920 srcdiroption="--srcdir=$${topdir}/cloog"; \
13921 libsrcdir="$$s/cloog"; \
d545f33b 13922 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
13923 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13924 --target=${target_alias} $${srcdiroption} \
a90ef4bf 13925 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e 13926 --disable-shared --with-gmp=system --with-bits=gmp --with-isl=system
a90ef4bf 13927@endif cloog-bootstrap
d545f33b 13928
a90ef4bf
JM
13929.PHONY: configure-stage2-cloog maybe-configure-stage2-cloog
13930maybe-configure-stage2-cloog:
13931@if cloog-bootstrap
13932maybe-configure-stage2-cloog: configure-stage2-cloog
13933configure-stage2-cloog:
c52c6897 13934 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 13935 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
c52c6897
PB
13936 @r=`${PWD_COMMAND}`; export r; \
13937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 13938 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 13939 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
d545f33b 13940 $(HOST_EXPORTS) \
1b05fbbd 13941 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 13942 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 13943 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
7ec59b9e 13944 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf
JM
13945 echo Configuring stage 2 in $(HOST_SUBDIR)/cloog ; \
13946 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
13947 cd $(HOST_SUBDIR)/cloog || exit 1; \
d545f33b
PB
13948 case $(srcdir) in \
13949 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 13950 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
d545f33b
PB
13951 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13952 esac; \
a90ef4bf
JM
13953 srcdiroption="--srcdir=$${topdir}/cloog"; \
13954 libsrcdir="$$s/cloog"; \
d545f33b 13955 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
13956 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13957 --target=${target_alias} $${srcdiroption} \
c1cb7e02 13958 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13959 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e 13960 --disable-shared --with-gmp=system --with-bits=gmp --with-isl=system
a90ef4bf 13961@endif cloog-bootstrap
8520c408 13962
a90ef4bf
JM
13963.PHONY: configure-stage3-cloog maybe-configure-stage3-cloog
13964maybe-configure-stage3-cloog:
13965@if cloog-bootstrap
13966maybe-configure-stage3-cloog: configure-stage3-cloog
13967configure-stage3-cloog:
c52c6897 13968 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 13969 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
c52c6897
PB
13970 @r=`${PWD_COMMAND}`; export r; \
13971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 13972 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 13973 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
d545f33b 13974 $(HOST_EXPORTS) \
1b05fbbd 13975 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 13976 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 13977 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
7ec59b9e 13978 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf
JM
13979 echo Configuring stage 3 in $(HOST_SUBDIR)/cloog ; \
13980 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
13981 cd $(HOST_SUBDIR)/cloog || exit 1; \
d545f33b
PB
13982 case $(srcdir) in \
13983 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 13984 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
d545f33b
PB
13985 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13986 esac; \
a90ef4bf
JM
13987 srcdiroption="--srcdir=$${topdir}/cloog"; \
13988 libsrcdir="$$s/cloog"; \
d545f33b 13989 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
13990 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13991 --target=${target_alias} $${srcdiroption} \
c1cb7e02 13992 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13993 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e 13994 --disable-shared --with-gmp=system --with-bits=gmp --with-isl=system
a90ef4bf 13995@endif cloog-bootstrap
8520c408 13996
a90ef4bf
JM
13997.PHONY: configure-stage4-cloog maybe-configure-stage4-cloog
13998maybe-configure-stage4-cloog:
13999@if cloog-bootstrap
14000maybe-configure-stage4-cloog: configure-stage4-cloog
14001configure-stage4-cloog:
c52c6897 14002 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14003 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
c52c6897
PB
14004 @r=`${PWD_COMMAND}`; export r; \
14005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14006 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14007 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
d545f33b 14008 $(HOST_EXPORTS) \
1b05fbbd 14009 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14010 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 14011 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
7ec59b9e 14012 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf
JM
14013 echo Configuring stage 4 in $(HOST_SUBDIR)/cloog ; \
14014 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
14015 cd $(HOST_SUBDIR)/cloog || exit 1; \
d545f33b
PB
14016 case $(srcdir) in \
14017 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14018 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
d545f33b
PB
14019 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14020 esac; \
a90ef4bf
JM
14021 srcdiroption="--srcdir=$${topdir}/cloog"; \
14022 libsrcdir="$$s/cloog"; \
d545f33b 14023 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14024 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14025 --target=${target_alias} $${srcdiroption} \
c1cb7e02 14026 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 14027 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e 14028 --disable-shared --with-gmp=system --with-bits=gmp --with-isl=system
a90ef4bf 14029@endif cloog-bootstrap
d545f33b 14030
a90ef4bf
JM
14031.PHONY: configure-stageprofile-cloog maybe-configure-stageprofile-cloog
14032maybe-configure-stageprofile-cloog:
14033@if cloog-bootstrap
14034maybe-configure-stageprofile-cloog: configure-stageprofile-cloog
14035configure-stageprofile-cloog:
c52c6897 14036 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14037 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
c52c6897
PB
14038 @r=`${PWD_COMMAND}`; export r; \
14039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14040 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14041 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
d545f33b 14042 $(HOST_EXPORTS) \
1b05fbbd
AO
14043 $(POSTSTAGE1_HOST_EXPORTS) \
14044 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 14045 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
7ec59b9e 14046 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf
JM
14047 echo Configuring stage profile in $(HOST_SUBDIR)/cloog ; \
14048 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
14049 cd $(HOST_SUBDIR)/cloog || exit 1; \
d545f33b
PB
14050 case $(srcdir) in \
14051 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14052 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
d545f33b
PB
14053 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14054 esac; \
a90ef4bf
JM
14055 srcdiroption="--srcdir=$${topdir}/cloog"; \
14056 libsrcdir="$$s/cloog"; \
d545f33b 14057 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14058 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14059 --target=${target_alias} $${srcdiroption} \
c1cb7e02 14060 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 14061 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e 14062 --disable-shared --with-gmp=system --with-bits=gmp --with-isl=system
a90ef4bf 14063@endif cloog-bootstrap
d545f33b 14064
a90ef4bf
JM
14065.PHONY: configure-stagefeedback-cloog maybe-configure-stagefeedback-cloog
14066maybe-configure-stagefeedback-cloog:
14067@if cloog-bootstrap
14068maybe-configure-stagefeedback-cloog: configure-stagefeedback-cloog
14069configure-stagefeedback-cloog:
c52c6897 14070 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14071 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog
c52c6897
PB
14072 @r=`${PWD_COMMAND}`; export r; \
14073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14074 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14075 test ! -f $(HOST_SUBDIR)/cloog/Makefile || exit 0; \
d545f33b 14076 $(HOST_EXPORTS) \
1b05fbbd
AO
14077 $(POSTSTAGE1_HOST_EXPORTS) \
14078 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 14079 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
7ec59b9e 14080 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf
JM
14081 echo Configuring stage feedback in $(HOST_SUBDIR)/cloog ; \
14082 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cloog ; \
14083 cd $(HOST_SUBDIR)/cloog || exit 1; \
d545f33b
PB
14084 case $(srcdir) in \
14085 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14086 *) topdir=`echo $(HOST_SUBDIR)/cloog/ | \
d545f33b
PB
14087 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14088 esac; \
a90ef4bf
JM
14089 srcdiroption="--srcdir=$${topdir}/cloog"; \
14090 libsrcdir="$$s/cloog"; \
d545f33b 14091 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14092 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14093 --target=${target_alias} $${srcdiroption} \
c1cb7e02 14094 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 14095 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e 14096 --disable-shared --with-gmp=system --with-bits=gmp --with-isl=system
a90ef4bf 14097@endif cloog-bootstrap
d545f33b
PB
14098
14099
14100
14101
14102
a90ef4bf
JM
14103.PHONY: all-cloog maybe-all-cloog
14104maybe-all-cloog:
4f0ef2d8 14105@if gcc-bootstrap
a90ef4bf 14106all-cloog: stage_current
4f0ef2d8 14107@endif gcc-bootstrap
a90ef4bf
JM
14108@if cloog
14109TARGET-cloog=all
14110maybe-all-cloog: all-cloog
14111all-cloog: configure-cloog
c52c6897 14112 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 14114 $(HOST_EXPORTS) CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf 14115 (cd $(HOST_SUBDIR)/cloog && \
b3676d82 14116 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 \
a90ef4bf
JM
14117 $(TARGET-cloog))
14118@endif cloog
4fa63067 14119
a7254363 14120
d545f33b 14121
a90ef4bf
JM
14122.PHONY: all-stage1-cloog maybe-all-stage1-cloog
14123.PHONY: clean-stage1-cloog maybe-clean-stage1-cloog
14124maybe-all-stage1-cloog:
14125maybe-clean-stage1-cloog:
14126@if cloog-bootstrap
14127maybe-all-stage1-cloog: all-stage1-cloog
14128all-stage1: all-stage1-cloog
14129TARGET-stage1-cloog = $(TARGET-cloog)
14130all-stage1-cloog: configure-stage1-cloog
c52c6897 14131 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14132 @r=`${PWD_COMMAND}`; export r; \
14133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14134 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 14135 $(HOST_EXPORTS) CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf 14136 cd $(HOST_SUBDIR)/cloog && \
7f6ef0c0 14137 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14138 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14139 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14140 LIBCFLAGS="$(LIBCFLAGS)" \
14141 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14142 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14143 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14144 $(EXTRA_HOST_FLAGS) \
14145 $(STAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 \
1b05fbbd 14146 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14147 $(TARGET-stage1-cloog)
d545f33b 14148
a90ef4bf
JM
14149maybe-clean-stage1-cloog: clean-stage1-cloog
14150clean-stage1: clean-stage1-cloog
14151clean-stage1-cloog:
9dbaa842 14152 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14153 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
9dbaa842 14154 else \
a90ef4bf 14155 [ -f $(HOST_SUBDIR)/stage1-cloog/Makefile ] || exit 0; \
9dbaa842
DD
14156 $(MAKE) stage1-start; \
14157 fi; \
a90ef4bf 14158 cd $(HOST_SUBDIR)/cloog && \
7f6ef0c0 14159 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14160 $(STAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 clean
a90ef4bf 14161@endif cloog-bootstrap
d545f33b
PB
14162
14163
a90ef4bf
JM
14164.PHONY: all-stage2-cloog maybe-all-stage2-cloog
14165.PHONY: clean-stage2-cloog maybe-clean-stage2-cloog
14166maybe-all-stage2-cloog:
14167maybe-clean-stage2-cloog:
14168@if cloog-bootstrap
14169maybe-all-stage2-cloog: all-stage2-cloog
14170all-stage2: all-stage2-cloog
14171TARGET-stage2-cloog = $(TARGET-cloog)
14172all-stage2-cloog: configure-stage2-cloog
c52c6897 14173 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14174 @r=`${PWD_COMMAND}`; export r; \
14175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14176 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14177 $(HOST_EXPORTS) \
7ec59b9e 14178 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf 14179 cd $(HOST_SUBDIR)/cloog && \
7f6ef0c0 14180 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14181 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14182 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14183 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14184 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14185 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14186 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14187 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 \
1b05fbbd 14188 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14189 $(TARGET-stage2-cloog)
d545f33b 14190
a90ef4bf
JM
14191maybe-clean-stage2-cloog: clean-stage2-cloog
14192clean-stage2: clean-stage2-cloog
14193clean-stage2-cloog:
9dbaa842 14194 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14195 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
9dbaa842 14196 else \
a90ef4bf 14197 [ -f $(HOST_SUBDIR)/stage2-cloog/Makefile ] || exit 0; \
9dbaa842
DD
14198 $(MAKE) stage2-start; \
14199 fi; \
a90ef4bf 14200 cd $(HOST_SUBDIR)/cloog && \
b3676d82 14201 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 clean
a90ef4bf 14202@endif cloog-bootstrap
d545f33b
PB
14203
14204
a90ef4bf
JM
14205.PHONY: all-stage3-cloog maybe-all-stage3-cloog
14206.PHONY: clean-stage3-cloog maybe-clean-stage3-cloog
14207maybe-all-stage3-cloog:
14208maybe-clean-stage3-cloog:
14209@if cloog-bootstrap
14210maybe-all-stage3-cloog: all-stage3-cloog
14211all-stage3: all-stage3-cloog
14212TARGET-stage3-cloog = $(TARGET-cloog)
14213all-stage3-cloog: configure-stage3-cloog
c52c6897 14214 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14215 @r=`${PWD_COMMAND}`; export r; \
14216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14217 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14218 $(HOST_EXPORTS) \
7ec59b9e 14219 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf 14220 cd $(HOST_SUBDIR)/cloog && \
7f6ef0c0 14221 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14222 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14223 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14224 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14225 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14226 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14227 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14228 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 \
1b05fbbd 14229 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14230 $(TARGET-stage3-cloog)
d545f33b 14231
a90ef4bf
JM
14232maybe-clean-stage3-cloog: clean-stage3-cloog
14233clean-stage3: clean-stage3-cloog
14234clean-stage3-cloog:
9dbaa842 14235 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14236 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
9dbaa842 14237 else \
a90ef4bf 14238 [ -f $(HOST_SUBDIR)/stage3-cloog/Makefile ] || exit 0; \
9dbaa842
DD
14239 $(MAKE) stage3-start; \
14240 fi; \
a90ef4bf 14241 cd $(HOST_SUBDIR)/cloog && \
b3676d82 14242 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 clean
a90ef4bf 14243@endif cloog-bootstrap
d545f33b
PB
14244
14245
a90ef4bf
JM
14246.PHONY: all-stage4-cloog maybe-all-stage4-cloog
14247.PHONY: clean-stage4-cloog maybe-clean-stage4-cloog
14248maybe-all-stage4-cloog:
14249maybe-clean-stage4-cloog:
14250@if cloog-bootstrap
14251maybe-all-stage4-cloog: all-stage4-cloog
14252all-stage4: all-stage4-cloog
14253TARGET-stage4-cloog = $(TARGET-cloog)
14254all-stage4-cloog: configure-stage4-cloog
c52c6897 14255 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14256 @r=`${PWD_COMMAND}`; export r; \
14257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14258 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14259 $(HOST_EXPORTS) \
7ec59b9e 14260 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf 14261 cd $(HOST_SUBDIR)/cloog && \
7f6ef0c0 14262 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14263 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14264 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14265 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14266 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14267 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14268 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14269 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 \
1b05fbbd 14270 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14271 $(TARGET-stage4-cloog)
d545f33b 14272
a90ef4bf
JM
14273maybe-clean-stage4-cloog: clean-stage4-cloog
14274clean-stage4: clean-stage4-cloog
14275clean-stage4-cloog:
9dbaa842 14276 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 14277 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
9dbaa842 14278 else \
a90ef4bf 14279 [ -f $(HOST_SUBDIR)/stage4-cloog/Makefile ] || exit 0; \
9dbaa842
DD
14280 $(MAKE) stage4-start; \
14281 fi; \
a90ef4bf 14282 cd $(HOST_SUBDIR)/cloog && \
b3676d82 14283 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 clean
a90ef4bf 14284@endif cloog-bootstrap
d545f33b
PB
14285
14286
a90ef4bf
JM
14287.PHONY: all-stageprofile-cloog maybe-all-stageprofile-cloog
14288.PHONY: clean-stageprofile-cloog maybe-clean-stageprofile-cloog
14289maybe-all-stageprofile-cloog:
14290maybe-clean-stageprofile-cloog:
14291@if cloog-bootstrap
14292maybe-all-stageprofile-cloog: all-stageprofile-cloog
14293all-stageprofile: all-stageprofile-cloog
14294TARGET-stageprofile-cloog = $(TARGET-cloog)
14295all-stageprofile-cloog: configure-stageprofile-cloog
c52c6897 14296 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
14297 @r=`${PWD_COMMAND}`; export r; \
14298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14299 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 14300 $(HOST_EXPORTS) \
7ec59b9e 14301 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf 14302 cd $(HOST_SUBDIR)/cloog && \
7f6ef0c0 14303 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14304 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 14305 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
14306 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14307 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14308 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14309 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14310 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 \
1b05fbbd 14311 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 14312 $(TARGET-stageprofile-cloog)
d545f33b 14313
a90ef4bf
JM
14314maybe-clean-stageprofile-cloog: clean-stageprofile-cloog
14315clean-stageprofile: clean-stageprofile-cloog
14316clean-stageprofile-cloog:
9dbaa842 14317 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 14318 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
9dbaa842 14319 else \
a90ef4bf 14320 [ -f $(HOST_SUBDIR)/stageprofile-cloog/Makefile ] || exit 0; \
9dbaa842
DD
14321 $(MAKE) stageprofile-start; \
14322 fi; \
a90ef4bf 14323 cd $(HOST_SUBDIR)/cloog && \
b3676d82 14324 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 clean
a90ef4bf 14325@endif cloog-bootstrap
d545f33b
PB
14326
14327
a90ef4bf
JM
14328.PHONY: all-stagefeedback-cloog maybe-all-stagefeedback-cloog
14329.PHONY: clean-stagefeedback-cloog maybe-clean-stagefeedback-cloog
14330maybe-all-stagefeedback-cloog:
14331maybe-clean-stagefeedback-cloog:
14332@if cloog-bootstrap
14333maybe-all-stagefeedback-cloog: all-stagefeedback-cloog
14334all-stagefeedback: all-stagefeedback-cloog
14335TARGET-stagefeedback-cloog = $(TARGET-cloog)
14336all-stagefeedback-cloog: configure-stagefeedback-cloog
c52c6897 14337 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
14338 @r=`${PWD_COMMAND}`; export r; \
14339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14340 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 14341 $(HOST_EXPORTS) \
7ec59b9e 14342 $(POSTSTAGE1_HOST_EXPORTS) CPPFLAGS="$(HOST_GMPINC) $(HOST_ISLINC) $$CPPFLAGS"; export CPPFLAGS; LDFLAGS="-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/isl/.libs $$LDFLAGS"; export LDFLAGS; \
a90ef4bf 14343 cd $(HOST_SUBDIR)/cloog && \
7f6ef0c0 14344 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14345 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 14346 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
14347 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14348 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14349 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14350 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14351 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 \
1b05fbbd 14352 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 14353 $(TARGET-stagefeedback-cloog)
d545f33b 14354
a90ef4bf
JM
14355maybe-clean-stagefeedback-cloog: clean-stagefeedback-cloog
14356clean-stagefeedback: clean-stagefeedback-cloog
14357clean-stagefeedback-cloog:
9dbaa842 14358 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 14359 [ -f $(HOST_SUBDIR)/cloog/Makefile ] || exit 0; \
9dbaa842 14360 else \
a90ef4bf 14361 [ -f $(HOST_SUBDIR)/stagefeedback-cloog/Makefile ] || exit 0; \
9dbaa842
DD
14362 $(MAKE) stagefeedback-start; \
14363 fi; \
a90ef4bf 14364 cd $(HOST_SUBDIR)/cloog && \
b3676d82 14365 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 clean
a90ef4bf 14366@endif cloog-bootstrap
d545f33b
PB
14367
14368
14369
14370
14371
a90ef4bf
JM
14372.PHONY: check-cloog maybe-check-cloog
14373maybe-check-cloog:
14374@if cloog
14375maybe-check-cloog: check-cloog
4fa63067 14376
a90ef4bf 14377check-cloog:
0aed8855 14378 @: $(MAKE); $(unstage)
4fa63067
NN
14379 @r=`${PWD_COMMAND}`; export r; \
14380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14381 $(HOST_EXPORTS) \
a90ef4bf 14382 (cd $(HOST_SUBDIR)/cloog && \
7ec59b9e 14383 $(MAKE) $(FLAGS_TO_PASS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1 check)
4fa63067 14384
a90ef4bf 14385@endif cloog
4fa63067 14386
a90ef4bf
JM
14387.PHONY: install-cloog maybe-install-cloog
14388maybe-install-cloog:
14389@if cloog
14390maybe-install-cloog: install-cloog
4fa63067 14391
a90ef4bf 14392install-cloog:
4fa63067 14393
a90ef4bf 14394@endif cloog
4fa63067 14395
a90ef4bf
JM
14396.PHONY: install-strip-cloog maybe-install-strip-cloog
14397maybe-install-strip-cloog:
14398@if cloog
14399maybe-install-strip-cloog: install-strip-cloog
9b980aa1 14400
a90ef4bf 14401install-strip-cloog:
9b980aa1 14402
a90ef4bf 14403@endif cloog
9b980aa1 14404
56a8fe78 14405# Other targets (info, dvi, pdf, etc.)
4fa63067 14406
a90ef4bf
JM
14407.PHONY: maybe-info-cloog info-cloog
14408maybe-info-cloog:
14409@if cloog
14410maybe-info-cloog: info-cloog
4fa63067 14411
a90ef4bf
JM
14412info-cloog: \
14413 configure-cloog
14414 @[ -f ./cloog/Makefile ] || exit 0; \
4fa63067
NN
14415 r=`${PWD_COMMAND}`; export r; \
14416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14417 $(HOST_EXPORTS) \
7ec59b9e 14418 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14420 done; \
a90ef4bf
JM
14421 echo "Doing info in cloog" ; \
14422 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14425 "RANLIB=$${RANLIB}" \
0c24b341 14426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14427 info) \
2a4cbe27
NN
14428 || exit 1
14429
a90ef4bf 14430@endif cloog
2a4cbe27 14431
a90ef4bf
JM
14432.PHONY: maybe-dvi-cloog dvi-cloog
14433maybe-dvi-cloog:
14434@if cloog
14435maybe-dvi-cloog: dvi-cloog
2a4cbe27 14436
a90ef4bf
JM
14437dvi-cloog: \
14438 configure-cloog
14439 @[ -f ./cloog/Makefile ] || exit 0; \
b40e3958
L
14440 r=`${PWD_COMMAND}`; export r; \
14441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14442 $(HOST_EXPORTS) \
7ec59b9e 14443 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14445 done; \
a90ef4bf
JM
14446 echo "Doing dvi in cloog" ; \
14447 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14450 "RANLIB=$${RANLIB}" \
0c24b341 14451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14452 dvi) \
2a4cbe27
NN
14453 || exit 1
14454
a90ef4bf 14455@endif cloog
2a4cbe27 14456
a90ef4bf
JM
14457.PHONY: maybe-pdf-cloog pdf-cloog
14458maybe-pdf-cloog:
14459@if cloog
14460maybe-pdf-cloog: pdf-cloog
56a8fe78 14461
a90ef4bf
JM
14462pdf-cloog: \
14463 configure-cloog
14464 @[ -f ./cloog/Makefile ] || exit 0; \
56a8fe78
DD
14465 r=`${PWD_COMMAND}`; export r; \
14466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14467 $(HOST_EXPORTS) \
7ec59b9e 14468 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
56a8fe78
DD
14469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14470 done; \
a90ef4bf
JM
14471 echo "Doing pdf in cloog" ; \
14472 (cd $(HOST_SUBDIR)/cloog && \
56a8fe78
DD
14473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14475 "RANLIB=$${RANLIB}" \
0c24b341 14476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14477 pdf) \
14478 || exit 1
14479
a90ef4bf 14480@endif cloog
56a8fe78 14481
a90ef4bf
JM
14482.PHONY: maybe-html-cloog html-cloog
14483maybe-html-cloog:
14484@if cloog
14485maybe-html-cloog: html-cloog
6d389afc 14486
a90ef4bf
JM
14487html-cloog: \
14488 configure-cloog
14489 @[ -f ./cloog/Makefile ] || exit 0; \
6d389afc
MS
14490 r=`${PWD_COMMAND}`; export r; \
14491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14492 $(HOST_EXPORTS) \
7ec59b9e 14493 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
6d389afc
MS
14494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14495 done; \
a90ef4bf
JM
14496 echo "Doing html in cloog" ; \
14497 (cd $(HOST_SUBDIR)/cloog && \
6d389afc
MS
14498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14500 "RANLIB=$${RANLIB}" \
0c24b341 14501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14502 html) \
14503 || exit 1
14504
a90ef4bf 14505@endif cloog
6d389afc 14506
a90ef4bf
JM
14507.PHONY: maybe-TAGS-cloog TAGS-cloog
14508maybe-TAGS-cloog:
14509@if cloog
14510maybe-TAGS-cloog: TAGS-cloog
2a4cbe27 14511
a90ef4bf
JM
14512TAGS-cloog: \
14513 configure-cloog
14514 @[ -f ./cloog/Makefile ] || exit 0; \
b40e3958
L
14515 r=`${PWD_COMMAND}`; export r; \
14516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14517 $(HOST_EXPORTS) \
7ec59b9e 14518 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14520 done; \
a90ef4bf
JM
14521 echo "Doing TAGS in cloog" ; \
14522 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14525 "RANLIB=$${RANLIB}" \
0c24b341 14526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14527 TAGS) \
2a4cbe27
NN
14528 || exit 1
14529
a90ef4bf 14530@endif cloog
2a4cbe27 14531
a90ef4bf
JM
14532.PHONY: maybe-install-info-cloog install-info-cloog
14533maybe-install-info-cloog:
14534@if cloog
14535maybe-install-info-cloog: install-info-cloog
2a4cbe27 14536
a90ef4bf
JM
14537install-info-cloog: \
14538 configure-cloog \
14539 info-cloog
14540 @[ -f ./cloog/Makefile ] || exit 0; \
b40e3958
L
14541 r=`${PWD_COMMAND}`; export r; \
14542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14543 $(HOST_EXPORTS) \
7ec59b9e 14544 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14546 done; \
a90ef4bf
JM
14547 echo "Doing install-info in cloog" ; \
14548 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14551 "RANLIB=$${RANLIB}" \
0c24b341 14552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14553 install-info) \
2a4cbe27
NN
14554 || exit 1
14555
a90ef4bf 14556@endif cloog
2a4cbe27 14557
a90ef4bf
JM
14558.PHONY: maybe-install-pdf-cloog install-pdf-cloog
14559maybe-install-pdf-cloog:
14560@if cloog
14561maybe-install-pdf-cloog: install-pdf-cloog
a3ca38d2 14562
a90ef4bf
JM
14563install-pdf-cloog: \
14564 configure-cloog \
14565 pdf-cloog
14566 @[ -f ./cloog/Makefile ] || exit 0; \
a3ca38d2
DD
14567 r=`${PWD_COMMAND}`; export r; \
14568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14569 $(HOST_EXPORTS) \
7ec59b9e 14570 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
a3ca38d2
DD
14571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14572 done; \
a90ef4bf
JM
14573 echo "Doing install-pdf in cloog" ; \
14574 (cd $(HOST_SUBDIR)/cloog && \
a3ca38d2
DD
14575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14577 "RANLIB=$${RANLIB}" \
0c24b341 14578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14579 install-pdf) \
14580 || exit 1
14581
a90ef4bf 14582@endif cloog
a3ca38d2 14583
a90ef4bf
JM
14584.PHONY: maybe-install-html-cloog install-html-cloog
14585maybe-install-html-cloog:
14586@if cloog
14587maybe-install-html-cloog: install-html-cloog
108a6f8e 14588
a90ef4bf
JM
14589install-html-cloog: \
14590 configure-cloog \
14591 html-cloog
14592 @[ -f ./cloog/Makefile ] || exit 0; \
108a6f8e
CD
14593 r=`${PWD_COMMAND}`; export r; \
14594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14595 $(HOST_EXPORTS) \
7ec59b9e 14596 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
108a6f8e
CD
14597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14598 done; \
a90ef4bf
JM
14599 echo "Doing install-html in cloog" ; \
14600 (cd $(HOST_SUBDIR)/cloog && \
108a6f8e
CD
14601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14603 "RANLIB=$${RANLIB}" \
0c24b341 14604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14605 install-html) \
14606 || exit 1
14607
a90ef4bf 14608@endif cloog
108a6f8e 14609
a90ef4bf
JM
14610.PHONY: maybe-installcheck-cloog installcheck-cloog
14611maybe-installcheck-cloog:
14612@if cloog
14613maybe-installcheck-cloog: installcheck-cloog
2a4cbe27 14614
a90ef4bf
JM
14615installcheck-cloog: \
14616 configure-cloog
14617 @[ -f ./cloog/Makefile ] || exit 0; \
b40e3958
L
14618 r=`${PWD_COMMAND}`; export r; \
14619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14620 $(HOST_EXPORTS) \
7ec59b9e 14621 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14623 done; \
a90ef4bf
JM
14624 echo "Doing installcheck in cloog" ; \
14625 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14628 "RANLIB=$${RANLIB}" \
0c24b341 14629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14630 installcheck) \
2a4cbe27
NN
14631 || exit 1
14632
a90ef4bf 14633@endif cloog
2a4cbe27 14634
a90ef4bf
JM
14635.PHONY: maybe-mostlyclean-cloog mostlyclean-cloog
14636maybe-mostlyclean-cloog:
14637@if cloog
14638maybe-mostlyclean-cloog: mostlyclean-cloog
2a4cbe27 14639
a90ef4bf
JM
14640mostlyclean-cloog:
14641 @[ -f ./cloog/Makefile ] || exit 0; \
b40e3958
L
14642 r=`${PWD_COMMAND}`; export r; \
14643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14644 $(HOST_EXPORTS) \
7ec59b9e 14645 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14647 done; \
a90ef4bf
JM
14648 echo "Doing mostlyclean in cloog" ; \
14649 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14652 "RANLIB=$${RANLIB}" \
0c24b341 14653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14654 mostlyclean) \
2a4cbe27
NN
14655 || exit 1
14656
a90ef4bf 14657@endif cloog
2a4cbe27 14658
a90ef4bf
JM
14659.PHONY: maybe-clean-cloog clean-cloog
14660maybe-clean-cloog:
14661@if cloog
14662maybe-clean-cloog: clean-cloog
2a4cbe27 14663
a90ef4bf
JM
14664clean-cloog:
14665 @[ -f ./cloog/Makefile ] || exit 0; \
b40e3958
L
14666 r=`${PWD_COMMAND}`; export r; \
14667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14668 $(HOST_EXPORTS) \
7ec59b9e 14669 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14671 done; \
a90ef4bf
JM
14672 echo "Doing clean in cloog" ; \
14673 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14676 "RANLIB=$${RANLIB}" \
0c24b341 14677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14678 clean) \
2a4cbe27
NN
14679 || exit 1
14680
a90ef4bf 14681@endif cloog
2a4cbe27 14682
a90ef4bf
JM
14683.PHONY: maybe-distclean-cloog distclean-cloog
14684maybe-distclean-cloog:
14685@if cloog
14686maybe-distclean-cloog: distclean-cloog
2a4cbe27 14687
a90ef4bf
JM
14688distclean-cloog:
14689 @[ -f ./cloog/Makefile ] || exit 0; \
b40e3958
L
14690 r=`${PWD_COMMAND}`; export r; \
14691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14692 $(HOST_EXPORTS) \
7ec59b9e 14693 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14695 done; \
a90ef4bf
JM
14696 echo "Doing distclean in cloog" ; \
14697 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14700 "RANLIB=$${RANLIB}" \
0c24b341 14701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14702 distclean) \
2a4cbe27
NN
14703 || exit 1
14704
a90ef4bf 14705@endif cloog
2a4cbe27 14706
a90ef4bf
JM
14707.PHONY: maybe-maintainer-clean-cloog maintainer-clean-cloog
14708maybe-maintainer-clean-cloog:
14709@if cloog
14710maybe-maintainer-clean-cloog: maintainer-clean-cloog
2a4cbe27 14711
a90ef4bf
JM
14712maintainer-clean-cloog:
14713 @[ -f ./cloog/Makefile ] || exit 0; \
b40e3958
L
14714 r=`${PWD_COMMAND}`; export r; \
14715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14716 $(HOST_EXPORTS) \
7ec59b9e 14717 for flag in $(EXTRA_HOST_FLAGS) CPPFLAGS="$$CPPFLAGS" LDFLAGS="$$LDFLAGS" V=1; do \
2a4cbe27
NN
14718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14719 done; \
a90ef4bf
JM
14720 echo "Doing maintainer-clean in cloog" ; \
14721 (cd $(HOST_SUBDIR)/cloog && \
2a4cbe27
NN
14722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14724 "RANLIB=$${RANLIB}" \
0c24b341 14725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14726 maintainer-clean) \
2a4cbe27
NN
14727 || exit 1
14728
a90ef4bf 14729@endif cloog
2a4cbe27 14730
2a4cbe27 14731
a7254363 14732
a90ef4bf
JM
14733.PHONY: configure-libelf maybe-configure-libelf
14734maybe-configure-libelf:
c52c6897 14735@if gcc-bootstrap
a90ef4bf 14736configure-libelf: stage_current
c52c6897 14737@endif gcc-bootstrap
a90ef4bf
JM
14738@if libelf
14739maybe-configure-libelf: configure-libelf
14740configure-libelf:
c52c6897
PB
14741 @r=`${PWD_COMMAND}`; export r; \
14742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14743 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
14744 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
1f53ca9a 14745 $(HOST_EXPORTS) \
a90ef4bf
JM
14746 echo Configuring in $(HOST_SUBDIR)/libelf; \
14747 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14748 case $(srcdir) in \
b00612cc 14749 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14750 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14751 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14752 esac; \
a90ef4bf
JM
14753 srcdiroption="--srcdir=$${topdir}/libelf"; \
14754 libsrcdir="$$s/libelf"; \
4fa63067 14755 $(SHELL) $${libsrcdir}/configure \
4b900473 14756 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 14757 --target=${target_alias} $${srcdiroption} --disable-shared \
4fa63067 14758 || exit 1
a90ef4bf 14759@endif libelf
4fa63067 14760
a7254363
PB
14761
14762
a90ef4bf
JM
14763.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14764maybe-configure-stage1-libelf:
14765@if libelf-bootstrap
14766maybe-configure-stage1-libelf: configure-stage1-libelf
14767configure-stage1-libelf:
c52c6897 14768 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14769 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14770 @r=`${PWD_COMMAND}`; export r; \
14771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14772 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14773 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14774 $(HOST_EXPORTS) \
8ee82aff 14775 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14776 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14777 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14778 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf ; \
14779 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14780 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14781 case $(srcdir) in \
14782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14783 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14785 esac; \
a90ef4bf
JM
14786 srcdiroption="--srcdir=$${topdir}/libelf"; \
14787 libsrcdir="$$s/libelf"; \
d545f33b 14788 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14789 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14790 --target=${target_alias} $${srcdiroption} \
a90ef4bf
JM
14791 $(STAGE1_CONFIGURE_FLAGS) \
14792 --disable-shared
14793@endif libelf-bootstrap
d545f33b 14794
a90ef4bf
JM
14795.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14796maybe-configure-stage2-libelf:
14797@if libelf-bootstrap
14798maybe-configure-stage2-libelf: configure-stage2-libelf
14799configure-stage2-libelf:
c52c6897 14800 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14801 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14802 @r=`${PWD_COMMAND}`; export r; \
14803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14804 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14805 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14806 $(HOST_EXPORTS) \
1b05fbbd 14807 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14808 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14809 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14810 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14811 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf ; \
14812 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14813 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14814 case $(srcdir) in \
14815 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14816 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14817 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14818 esac; \
a90ef4bf
JM
14819 srcdiroption="--srcdir=$${topdir}/libelf"; \
14820 libsrcdir="$$s/libelf"; \
d545f33b 14821 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14822 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14823 --target=${target_alias} $${srcdiroption} \
c1cb7e02 14824 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14825 $(STAGE2_CONFIGURE_FLAGS) \
14826 --disable-shared
14827@endif libelf-bootstrap
8520c408 14828
a90ef4bf
JM
14829.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14830maybe-configure-stage3-libelf:
14831@if libelf-bootstrap
14832maybe-configure-stage3-libelf: configure-stage3-libelf
14833configure-stage3-libelf:
c52c6897 14834 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14835 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14836 @r=`${PWD_COMMAND}`; export r; \
14837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14838 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14839 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14840 $(HOST_EXPORTS) \
1b05fbbd 14841 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14842 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14843 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14844 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14845 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf ; \
14846 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14847 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14848 case $(srcdir) in \
14849 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14850 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14851 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14852 esac; \
a90ef4bf
JM
14853 srcdiroption="--srcdir=$${topdir}/libelf"; \
14854 libsrcdir="$$s/libelf"; \
d545f33b 14855 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14856 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14857 --target=${target_alias} $${srcdiroption} \
c1cb7e02 14858 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14859 $(STAGE3_CONFIGURE_FLAGS) \
14860 --disable-shared
14861@endif libelf-bootstrap
8520c408 14862
a90ef4bf
JM
14863.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14864maybe-configure-stage4-libelf:
14865@if libelf-bootstrap
14866maybe-configure-stage4-libelf: configure-stage4-libelf
14867configure-stage4-libelf:
c52c6897 14868 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14869 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14870 @r=`${PWD_COMMAND}`; export r; \
14871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14872 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14873 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14874 $(HOST_EXPORTS) \
1b05fbbd 14875 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14876 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14877 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14878 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14879 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf ; \
14880 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14881 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14882 case $(srcdir) in \
14883 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14884 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14885 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14886 esac; \
a90ef4bf
JM
14887 srcdiroption="--srcdir=$${topdir}/libelf"; \
14888 libsrcdir="$$s/libelf"; \
d545f33b 14889 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14890 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14891 --target=${target_alias} $${srcdiroption} \
c1cb7e02 14892 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14893 $(STAGE4_CONFIGURE_FLAGS) \
14894 --disable-shared
14895@endif libelf-bootstrap
d545f33b 14896
a90ef4bf
JM
14897.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14898maybe-configure-stageprofile-libelf:
14899@if libelf-bootstrap
14900maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14901configure-stageprofile-libelf:
c52c6897 14902 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14903 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14904 @r=`${PWD_COMMAND}`; export r; \
14905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14906 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14907 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14908 $(HOST_EXPORTS) \
1b05fbbd
AO
14909 $(POSTSTAGE1_HOST_EXPORTS) \
14910 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14911 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14912 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14913 echo Configuring stage profile in $(HOST_SUBDIR)/libelf ; \
14914 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14915 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14916 case $(srcdir) in \
14917 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14918 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14919 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14920 esac; \
a90ef4bf
JM
14921 srcdiroption="--srcdir=$${topdir}/libelf"; \
14922 libsrcdir="$$s/libelf"; \
d545f33b 14923 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14924 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14925 --target=${target_alias} $${srcdiroption} \
c1cb7e02 14926 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14927 $(STAGEprofile_CONFIGURE_FLAGS) \
14928 --disable-shared
14929@endif libelf-bootstrap
d545f33b 14930
a90ef4bf
JM
14931.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14932maybe-configure-stagefeedback-libelf:
14933@if libelf-bootstrap
14934maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14935configure-stagefeedback-libelf:
c52c6897 14936 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14937 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14938 @r=`${PWD_COMMAND}`; export r; \
14939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14940 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14941 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14942 $(HOST_EXPORTS) \
1b05fbbd
AO
14943 $(POSTSTAGE1_HOST_EXPORTS) \
14944 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14945 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14946 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14947 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf ; \
14948 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14949 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14950 case $(srcdir) in \
14951 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14952 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14953 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14954 esac; \
a90ef4bf
JM
14955 srcdiroption="--srcdir=$${topdir}/libelf"; \
14956 libsrcdir="$$s/libelf"; \
d545f33b 14957 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
14958 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14959 --target=${target_alias} $${srcdiroption} \
c1cb7e02 14960 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14961 $(STAGEfeedback_CONFIGURE_FLAGS) \
14962 --disable-shared
14963@endif libelf-bootstrap
d545f33b
PB
14964
14965
14966
14967
14968
a90ef4bf
JM
14969.PHONY: all-libelf maybe-all-libelf
14970maybe-all-libelf:
4f0ef2d8 14971@if gcc-bootstrap
a90ef4bf 14972all-libelf: stage_current
4f0ef2d8 14973@endif gcc-bootstrap
a90ef4bf
JM
14974@if libelf
14975TARGET-libelf=all
14976maybe-all-libelf: all-libelf
14977all-libelf: configure-libelf
c52c6897 14978 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14980 $(HOST_EXPORTS) \
a90ef4bf 14981 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14982 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14983 $(TARGET-libelf))
14984@endif libelf
4fa63067 14985
a7254363 14986
d545f33b 14987
a90ef4bf
JM
14988.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14989.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14990maybe-all-stage1-libelf:
14991maybe-clean-stage1-libelf:
14992@if libelf-bootstrap
14993maybe-all-stage1-libelf: all-stage1-libelf
14994all-stage1: all-stage1-libelf
14995TARGET-stage1-libelf = $(TARGET-libelf)
14996all-stage1-libelf: configure-stage1-libelf
c52c6897 14997 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14998 @r=`${PWD_COMMAND}`; export r; \
14999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15000 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 15001 $(HOST_EXPORTS) \
a90ef4bf 15002 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15003 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15004 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 15005 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
15006 LIBCFLAGS="$(LIBCFLAGS)" \
15007 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15008 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15009 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15010 $(EXTRA_HOST_FLAGS) \
15011 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 15012 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 15013 $(TARGET-stage1-libelf)
d545f33b 15014
a90ef4bf
JM
15015maybe-clean-stage1-libelf: clean-stage1-libelf
15016clean-stage1: clean-stage1-libelf
15017clean-stage1-libelf:
9dbaa842 15018 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 15019 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15020 else \
a90ef4bf 15021 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15022 $(MAKE) stage1-start; \
15023 fi; \
a90ef4bf 15024 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15025 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15026 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15027@endif libelf-bootstrap
d545f33b
PB
15028
15029
a90ef4bf
JM
15030.PHONY: all-stage2-libelf maybe-all-stage2-libelf
15031.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
15032maybe-all-stage2-libelf:
15033maybe-clean-stage2-libelf:
15034@if libelf-bootstrap
15035maybe-all-stage2-libelf: all-stage2-libelf
15036all-stage2: all-stage2-libelf
15037TARGET-stage2-libelf = $(TARGET-libelf)
15038all-stage2-libelf: configure-stage2-libelf
c52c6897 15039 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
15040 @r=`${PWD_COMMAND}`; export r; \
15041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15042 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 15043 $(HOST_EXPORTS) \
1f53ca9a 15044 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15045 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15046 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15047 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 15048 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
15049 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15050 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15051 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15052 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15053 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 15054 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 15055 $(TARGET-stage2-libelf)
d545f33b 15056
a90ef4bf
JM
15057maybe-clean-stage2-libelf: clean-stage2-libelf
15058clean-stage2: clean-stage2-libelf
15059clean-stage2-libelf:
9dbaa842 15060 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 15061 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15062 else \
a90ef4bf 15063 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15064 $(MAKE) stage2-start; \
15065 fi; \
a90ef4bf 15066 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15067 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15068@endif libelf-bootstrap
d545f33b
PB
15069
15070
a90ef4bf
JM
15071.PHONY: all-stage3-libelf maybe-all-stage3-libelf
15072.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
15073maybe-all-stage3-libelf:
15074maybe-clean-stage3-libelf:
15075@if libelf-bootstrap
15076maybe-all-stage3-libelf: all-stage3-libelf
15077all-stage3: all-stage3-libelf
15078TARGET-stage3-libelf = $(TARGET-libelf)
15079all-stage3-libelf: configure-stage3-libelf
c52c6897 15080 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
15081 @r=`${PWD_COMMAND}`; export r; \
15082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15083 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 15084 $(HOST_EXPORTS) \
1f53ca9a 15085 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15086 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15087 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15088 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 15089 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
15090 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15091 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15092 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15093 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15094 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 15095 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 15096 $(TARGET-stage3-libelf)
d545f33b 15097
a90ef4bf
JM
15098maybe-clean-stage3-libelf: clean-stage3-libelf
15099clean-stage3: clean-stage3-libelf
15100clean-stage3-libelf:
9dbaa842 15101 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 15102 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15103 else \
a90ef4bf 15104 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15105 $(MAKE) stage3-start; \
15106 fi; \
a90ef4bf 15107 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15108 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15109@endif libelf-bootstrap
d545f33b
PB
15110
15111
a90ef4bf
JM
15112.PHONY: all-stage4-libelf maybe-all-stage4-libelf
15113.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
15114maybe-all-stage4-libelf:
15115maybe-clean-stage4-libelf:
15116@if libelf-bootstrap
15117maybe-all-stage4-libelf: all-stage4-libelf
15118all-stage4: all-stage4-libelf
15119TARGET-stage4-libelf = $(TARGET-libelf)
15120all-stage4-libelf: configure-stage4-libelf
c52c6897 15121 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
15122 @r=`${PWD_COMMAND}`; export r; \
15123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15124 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 15125 $(HOST_EXPORTS) \
1f53ca9a 15126 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15127 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15128 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15129 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 15130 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 15131 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
15132 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15133 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15134 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15135 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 15136 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15137 $(TARGET-stage4-libelf)
d545f33b 15138
a90ef4bf
JM
15139maybe-clean-stage4-libelf: clean-stage4-libelf
15140clean-stage4: clean-stage4-libelf
15141clean-stage4-libelf:
9dbaa842 15142 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 15143 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15144 else \
a90ef4bf 15145 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15146 $(MAKE) stage4-start; \
15147 fi; \
a90ef4bf 15148 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15149 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15150@endif libelf-bootstrap
d545f33b
PB
15151
15152
a90ef4bf
JM
15153.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
15154.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
15155maybe-all-stageprofile-libelf:
15156maybe-clean-stageprofile-libelf:
15157@if libelf-bootstrap
15158maybe-all-stageprofile-libelf: all-stageprofile-libelf
15159all-stageprofile: all-stageprofile-libelf
15160TARGET-stageprofile-libelf = $(TARGET-libelf)
15161all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 15162 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
15163 @r=`${PWD_COMMAND}`; export r; \
15164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15165 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 15166 $(HOST_EXPORTS) \
1f53ca9a 15167 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15168 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15169 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15170 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 15171 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
15172 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15173 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15174 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15175 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15176 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 15177 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15178 $(TARGET-stageprofile-libelf)
d545f33b 15179
a90ef4bf
JM
15180maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
15181clean-stageprofile: clean-stageprofile-libelf
15182clean-stageprofile-libelf:
9dbaa842 15183 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 15184 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15185 else \
a90ef4bf 15186 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15187 $(MAKE) stageprofile-start; \
15188 fi; \
a90ef4bf 15189 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15190 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15191@endif libelf-bootstrap
d545f33b
PB
15192
15193
a90ef4bf
JM
15194.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
15195.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
15196maybe-all-stagefeedback-libelf:
15197maybe-clean-stagefeedback-libelf:
15198@if libelf-bootstrap
15199maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
15200all-stagefeedback: all-stagefeedback-libelf
15201TARGET-stagefeedback-libelf = $(TARGET-libelf)
15202all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 15203 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
15204 @r=`${PWD_COMMAND}`; export r; \
15205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15206 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15207 $(HOST_EXPORTS) \
1f53ca9a 15208 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15209 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15210 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15211 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15212 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15213 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15214 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15215 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15216 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15217 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 15218 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15219 $(TARGET-stagefeedback-libelf)
d545f33b 15220
a90ef4bf
JM
15221maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15222clean-stagefeedback: clean-stagefeedback-libelf
15223clean-stagefeedback-libelf:
9dbaa842 15224 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15225 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15226 else \
a90ef4bf 15227 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15228 $(MAKE) stagefeedback-start; \
15229 fi; \
a90ef4bf 15230 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15231 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15232@endif libelf-bootstrap
d545f33b
PB
15233
15234
15235
15236
15237
a90ef4bf
JM
15238.PHONY: check-libelf maybe-check-libelf
15239maybe-check-libelf:
15240@if libelf
15241maybe-check-libelf: check-libelf
4fa63067 15242
a90ef4bf 15243check-libelf:
0aed8855 15244 @: $(MAKE); $(unstage)
4fa63067
NN
15245 @r=`${PWD_COMMAND}`; export r; \
15246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15247 $(HOST_EXPORTS) \
a90ef4bf
JM
15248 (cd $(HOST_SUBDIR)/libelf && \
15249 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 15250
a90ef4bf 15251@endif libelf
4fa63067 15252
a90ef4bf
JM
15253.PHONY: install-libelf maybe-install-libelf
15254maybe-install-libelf:
15255@if libelf
15256maybe-install-libelf: install-libelf
4fa63067 15257
a90ef4bf 15258install-libelf:
4fa63067 15259
a90ef4bf 15260@endif libelf
4fa63067 15261
a90ef4bf
JM
15262.PHONY: install-strip-libelf maybe-install-strip-libelf
15263maybe-install-strip-libelf:
15264@if libelf
15265maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15266
a90ef4bf 15267install-strip-libelf:
9b980aa1 15268
a90ef4bf 15269@endif libelf
9b980aa1 15270
56a8fe78 15271# Other targets (info, dvi, pdf, etc.)
4fa63067 15272
a90ef4bf
JM
15273.PHONY: maybe-info-libelf info-libelf
15274maybe-info-libelf:
15275@if libelf
15276maybe-info-libelf: info-libelf
4fa63067 15277
a90ef4bf
JM
15278info-libelf: \
15279 configure-libelf
15280 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15281 r=`${PWD_COMMAND}`; export r; \
15282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15283 $(HOST_EXPORTS) \
a90ef4bf 15284 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15286 done; \
a90ef4bf
JM
15287 echo "Doing info in libelf" ; \
15288 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15291 "RANLIB=$${RANLIB}" \
0c24b341 15292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15293 info) \
2a4cbe27
NN
15294 || exit 1
15295
a90ef4bf 15296@endif libelf
2a4cbe27 15297
a90ef4bf
JM
15298.PHONY: maybe-dvi-libelf dvi-libelf
15299maybe-dvi-libelf:
15300@if libelf
15301maybe-dvi-libelf: dvi-libelf
2a4cbe27 15302
a90ef4bf
JM
15303dvi-libelf: \
15304 configure-libelf
15305 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15306 r=`${PWD_COMMAND}`; export r; \
15307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15308 $(HOST_EXPORTS) \
a90ef4bf 15309 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15311 done; \
a90ef4bf
JM
15312 echo "Doing dvi in libelf" ; \
15313 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15316 "RANLIB=$${RANLIB}" \
0c24b341 15317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15318 dvi) \
2a4cbe27
NN
15319 || exit 1
15320
a90ef4bf 15321@endif libelf
2a4cbe27 15322
a90ef4bf
JM
15323.PHONY: maybe-pdf-libelf pdf-libelf
15324maybe-pdf-libelf:
15325@if libelf
15326maybe-pdf-libelf: pdf-libelf
56a8fe78 15327
a90ef4bf
JM
15328pdf-libelf: \
15329 configure-libelf
15330 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15331 r=`${PWD_COMMAND}`; export r; \
15332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15333 $(HOST_EXPORTS) \
a90ef4bf 15334 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15336 done; \
a90ef4bf
JM
15337 echo "Doing pdf in libelf" ; \
15338 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15341 "RANLIB=$${RANLIB}" \
0c24b341 15342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15343 pdf) \
15344 || exit 1
15345
a90ef4bf 15346@endif libelf
56a8fe78 15347
a90ef4bf
JM
15348.PHONY: maybe-html-libelf html-libelf
15349maybe-html-libelf:
15350@if libelf
15351maybe-html-libelf: html-libelf
6d389afc 15352
a90ef4bf
JM
15353html-libelf: \
15354 configure-libelf
15355 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15356 r=`${PWD_COMMAND}`; export r; \
15357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15358 $(HOST_EXPORTS) \
a90ef4bf 15359 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15361 done; \
a90ef4bf
JM
15362 echo "Doing html in libelf" ; \
15363 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15366 "RANLIB=$${RANLIB}" \
0c24b341 15367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15368 html) \
15369 || exit 1
15370
a90ef4bf 15371@endif libelf
6d389afc 15372
a90ef4bf
JM
15373.PHONY: maybe-TAGS-libelf TAGS-libelf
15374maybe-TAGS-libelf:
15375@if libelf
15376maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15377
a90ef4bf
JM
15378TAGS-libelf: \
15379 configure-libelf
15380 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15381 r=`${PWD_COMMAND}`; export r; \
15382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15383 $(HOST_EXPORTS) \
a90ef4bf 15384 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15386 done; \
a90ef4bf
JM
15387 echo "Doing TAGS in libelf" ; \
15388 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15391 "RANLIB=$${RANLIB}" \
0c24b341 15392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15393 TAGS) \
2a4cbe27
NN
15394 || exit 1
15395
a90ef4bf 15396@endif libelf
2a4cbe27 15397
a90ef4bf
JM
15398.PHONY: maybe-install-info-libelf install-info-libelf
15399maybe-install-info-libelf:
15400@if libelf
15401maybe-install-info-libelf: install-info-libelf
a2592b1b 15402
a90ef4bf
JM
15403install-info-libelf: \
15404 configure-libelf \
15405 info-libelf
15406 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15407 r=`${PWD_COMMAND}`; export r; \
15408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15409 $(HOST_EXPORTS) \
a90ef4bf 15410 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15412 done; \
a90ef4bf
JM
15413 echo "Doing install-info in libelf" ; \
15414 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15417 "RANLIB=$${RANLIB}" \
0c24b341 15418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15419 install-info) \
a2592b1b
DD
15420 || exit 1
15421
a90ef4bf 15422@endif libelf
a2592b1b 15423
a90ef4bf
JM
15424.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15425maybe-install-pdf-libelf:
15426@if libelf
15427maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15428
a90ef4bf
JM
15429install-pdf-libelf: \
15430 configure-libelf \
15431 pdf-libelf
15432 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15433 r=`${PWD_COMMAND}`; export r; \
15434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15435 $(HOST_EXPORTS) \
a90ef4bf 15436 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15438 done; \
a90ef4bf
JM
15439 echo "Doing install-pdf in libelf" ; \
15440 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15443 "RANLIB=$${RANLIB}" \
0c24b341 15444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15445 install-pdf) \
15446 || exit 1
15447
a90ef4bf 15448@endif libelf
a3ca38d2 15449
a90ef4bf
JM
15450.PHONY: maybe-install-html-libelf install-html-libelf
15451maybe-install-html-libelf:
15452@if libelf
15453maybe-install-html-libelf: install-html-libelf
108a6f8e 15454
a90ef4bf
JM
15455install-html-libelf: \
15456 configure-libelf \
15457 html-libelf
15458 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15459 r=`${PWD_COMMAND}`; export r; \
15460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15461 $(HOST_EXPORTS) \
a90ef4bf 15462 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15464 done; \
a90ef4bf
JM
15465 echo "Doing install-html in libelf" ; \
15466 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15469 "RANLIB=$${RANLIB}" \
0c24b341 15470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15471 install-html) \
15472 || exit 1
15473
a90ef4bf 15474@endif libelf
108a6f8e 15475
a90ef4bf
JM
15476.PHONY: maybe-installcheck-libelf installcheck-libelf
15477maybe-installcheck-libelf:
15478@if libelf
15479maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15480
a90ef4bf
JM
15481installcheck-libelf: \
15482 configure-libelf
15483 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15484 r=`${PWD_COMMAND}`; export r; \
15485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15486 $(HOST_EXPORTS) \
a90ef4bf 15487 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15489 done; \
a90ef4bf
JM
15490 echo "Doing installcheck in libelf" ; \
15491 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15494 "RANLIB=$${RANLIB}" \
0c24b341 15495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15496 installcheck) \
4fa63067 15497 || exit 1
2a4cbe27 15498
a90ef4bf 15499@endif libelf
4fa63067 15500
a90ef4bf
JM
15501.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15502maybe-mostlyclean-libelf:
15503@if libelf
15504maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15505
a90ef4bf
JM
15506mostlyclean-libelf:
15507 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15508 r=`${PWD_COMMAND}`; export r; \
15509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15510 $(HOST_EXPORTS) \
a90ef4bf 15511 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15513 done; \
a90ef4bf
JM
15514 echo "Doing mostlyclean in libelf" ; \
15515 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15518 "RANLIB=$${RANLIB}" \
0c24b341 15519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15520 mostlyclean) \
2a4cbe27
NN
15521 || exit 1
15522
a90ef4bf 15523@endif libelf
2a4cbe27 15524
a90ef4bf
JM
15525.PHONY: maybe-clean-libelf clean-libelf
15526maybe-clean-libelf:
15527@if libelf
15528maybe-clean-libelf: clean-libelf
2a4cbe27 15529
a90ef4bf
JM
15530clean-libelf:
15531 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15532 r=`${PWD_COMMAND}`; export r; \
15533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15534 $(HOST_EXPORTS) \
a90ef4bf 15535 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15537 done; \
a90ef4bf
JM
15538 echo "Doing clean in libelf" ; \
15539 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15542 "RANLIB=$${RANLIB}" \
0c24b341 15543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15544 clean) \
2a4cbe27
NN
15545 || exit 1
15546
a90ef4bf 15547@endif libelf
2a4cbe27 15548
a90ef4bf
JM
15549.PHONY: maybe-distclean-libelf distclean-libelf
15550maybe-distclean-libelf:
15551@if libelf
15552maybe-distclean-libelf: distclean-libelf
2a4cbe27 15553
a90ef4bf
JM
15554distclean-libelf:
15555 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15556 r=`${PWD_COMMAND}`; export r; \
15557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15558 $(HOST_EXPORTS) \
a90ef4bf 15559 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15561 done; \
a90ef4bf
JM
15562 echo "Doing distclean in libelf" ; \
15563 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15566 "RANLIB=$${RANLIB}" \
0c24b341 15567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15568 distclean) \
2a4cbe27
NN
15569 || exit 1
15570
a90ef4bf 15571@endif libelf
2a4cbe27 15572
a90ef4bf
JM
15573.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15574maybe-maintainer-clean-libelf:
15575@if libelf
15576maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15577
a90ef4bf
JM
15578maintainer-clean-libelf:
15579 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15580 r=`${PWD_COMMAND}`; export r; \
15581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15582 $(HOST_EXPORTS) \
a90ef4bf 15583 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15585 done; \
a90ef4bf
JM
15586 echo "Doing maintainer-clean in libelf" ; \
15587 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15590 "RANLIB=$${RANLIB}" \
0c24b341 15591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15592 maintainer-clean) \
2a4cbe27
NN
15593 || exit 1
15594
a90ef4bf 15595@endif libelf
2a4cbe27 15596
2a4cbe27 15597
a7254363 15598
a90ef4bf
JM
15599.PHONY: configure-gold maybe-configure-gold
15600maybe-configure-gold:
4f0ef2d8 15601@if gcc-bootstrap
a90ef4bf 15602configure-gold: stage_current
4f0ef2d8 15603@endif gcc-bootstrap
a90ef4bf
JM
15604@if gold
15605maybe-configure-gold: configure-gold
15606configure-gold:
c52c6897 15607 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15609 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
1f53ca9a 15611 $(HOST_EXPORTS) \
a90ef4bf
JM
15612 echo Configuring in $(HOST_SUBDIR)/gold; \
15613 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15614 case $(srcdir) in \
b00612cc 15615 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15616 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15617 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15618 esac; \
a90ef4bf
JM
15619 srcdiroption="--srcdir=$${topdir}/gold"; \
15620 libsrcdir="$$s/gold"; \
4fa63067 15621 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
15622 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15623 --target=${target_alias} $${srcdiroption} \
4fa63067 15624 || exit 1
a90ef4bf 15625@endif gold
a7254363 15626
d545f33b
PB
15627
15628
a90ef4bf
JM
15629.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15630maybe-configure-stage1-gold:
15631@if gold-bootstrap
15632maybe-configure-stage1-gold: configure-stage1-gold
15633configure-stage1-gold:
15634 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15635 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15636 @r=`${PWD_COMMAND}`; export r; \
15637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15638 TFLAGS="$(STAGE1_TFLAGS)"; \
15639 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15640 $(HOST_EXPORTS) \
15641 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15642 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15643 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
15644 echo Configuring stage 1 in $(HOST_SUBDIR)/gold ; \
15645 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15646 cd $(HOST_SUBDIR)/gold || exit 1; \
15647 case $(srcdir) in \
15648 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15649 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15650 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15651 esac; \
15652 srcdiroption="--srcdir=$${topdir}/gold"; \
15653 libsrcdir="$$s/gold"; \
15654 $(SHELL) $${libsrcdir}/configure \
15655 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15656 --target=${target_alias} $${srcdiroption} \
15657 $(STAGE1_CONFIGURE_FLAGS)
15658@endif gold-bootstrap
4fa63067 15659
a90ef4bf
JM
15660.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15661maybe-configure-stage2-gold:
15662@if gold-bootstrap
15663maybe-configure-stage2-gold: configure-stage2-gold
15664configure-stage2-gold:
15665 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15666 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15667 @r=`${PWD_COMMAND}`; export r; \
15668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15669 TFLAGS="$(STAGE2_TFLAGS)"; \
15670 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15671 $(HOST_EXPORTS) \
a90ef4bf
JM
15672 $(POSTSTAGE1_HOST_EXPORTS) \
15673 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15674 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15675 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
15676 echo Configuring stage 2 in $(HOST_SUBDIR)/gold ; \
15677 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15678 cd $(HOST_SUBDIR)/gold || exit 1; \
15679 case $(srcdir) in \
15680 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15681 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15682 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15683 esac; \
15684 srcdiroption="--srcdir=$${topdir}/gold"; \
15685 libsrcdir="$$s/gold"; \
15686 $(SHELL) $${libsrcdir}/configure \
15687 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15688 --target=${target_alias} $${srcdiroption} \
15689 --with-build-libsubdir=$(HOST_SUBDIR) \
15690 $(STAGE2_CONFIGURE_FLAGS)
15691@endif gold-bootstrap
4fa63067 15692
a90ef4bf
JM
15693.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15694maybe-configure-stage3-gold:
15695@if gold-bootstrap
15696maybe-configure-stage3-gold: configure-stage3-gold
15697configure-stage3-gold:
15698 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15699 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15700 @r=`${PWD_COMMAND}`; export r; \
15701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15702 TFLAGS="$(STAGE3_TFLAGS)"; \
15703 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15704 $(HOST_EXPORTS) \
a90ef4bf
JM
15705 $(POSTSTAGE1_HOST_EXPORTS) \
15706 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15707 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15708 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
15709 echo Configuring stage 3 in $(HOST_SUBDIR)/gold ; \
15710 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15711 cd $(HOST_SUBDIR)/gold || exit 1; \
15712 case $(srcdir) in \
15713 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15714 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15715 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15716 esac; \
15717 srcdiroption="--srcdir=$${topdir}/gold"; \
15718 libsrcdir="$$s/gold"; \
15719 $(SHELL) $${libsrcdir}/configure \
15720 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15721 --target=${target_alias} $${srcdiroption} \
15722 --with-build-libsubdir=$(HOST_SUBDIR) \
15723 $(STAGE3_CONFIGURE_FLAGS)
15724@endif gold-bootstrap
9b980aa1 15725
a90ef4bf
JM
15726.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15727maybe-configure-stage4-gold:
15728@if gold-bootstrap
15729maybe-configure-stage4-gold: configure-stage4-gold
15730configure-stage4-gold:
15731 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15732 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15733 @r=`${PWD_COMMAND}`; export r; \
15734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15735 TFLAGS="$(STAGE4_TFLAGS)"; \
15736 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15737 $(HOST_EXPORTS) \
a90ef4bf
JM
15738 $(POSTSTAGE1_HOST_EXPORTS) \
15739 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15740 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15741 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
15742 echo Configuring stage 4 in $(HOST_SUBDIR)/gold ; \
15743 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15744 cd $(HOST_SUBDIR)/gold || exit 1; \
15745 case $(srcdir) in \
15746 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15747 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15748 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15749 esac; \
15750 srcdiroption="--srcdir=$${topdir}/gold"; \
15751 libsrcdir="$$s/gold"; \
15752 $(SHELL) $${libsrcdir}/configure \
15753 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15754 --target=${target_alias} $${srcdiroption} \
15755 --with-build-libsubdir=$(HOST_SUBDIR) \
15756 $(STAGE4_CONFIGURE_FLAGS)
15757@endif gold-bootstrap
4fa63067 15758
a90ef4bf
JM
15759.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15760maybe-configure-stageprofile-gold:
15761@if gold-bootstrap
15762maybe-configure-stageprofile-gold: configure-stageprofile-gold
15763configure-stageprofile-gold:
15764 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15765 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15766 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15768 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15769 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15770 $(HOST_EXPORTS) \
a90ef4bf
JM
15771 $(POSTSTAGE1_HOST_EXPORTS) \
15772 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15773 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15774 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
15775 echo Configuring stage profile in $(HOST_SUBDIR)/gold ; \
15776 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15777 cd $(HOST_SUBDIR)/gold || exit 1; \
15778 case $(srcdir) in \
15779 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15780 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15781 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15782 esac; \
15783 srcdiroption="--srcdir=$${topdir}/gold"; \
15784 libsrcdir="$$s/gold"; \
15785 $(SHELL) $${libsrcdir}/configure \
15786 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15787 --target=${target_alias} $${srcdiroption} \
15788 --with-build-libsubdir=$(HOST_SUBDIR) \
15789 $(STAGEprofile_CONFIGURE_FLAGS)
15790@endif gold-bootstrap
2a4cbe27 15791
a90ef4bf
JM
15792.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15793maybe-configure-stagefeedback-gold:
15794@if gold-bootstrap
15795maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15796configure-stagefeedback-gold:
15797 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15798 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15799 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15801 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15802 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15803 $(HOST_EXPORTS) \
a90ef4bf
JM
15804 $(POSTSTAGE1_HOST_EXPORTS) \
15805 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15806 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15807 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
15808 echo Configuring stage feedback in $(HOST_SUBDIR)/gold ; \
15809 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15810 cd $(HOST_SUBDIR)/gold || exit 1; \
15811 case $(srcdir) in \
15812 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15813 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15814 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15815 esac; \
15816 srcdiroption="--srcdir=$${topdir}/gold"; \
15817 libsrcdir="$$s/gold"; \
15818 $(SHELL) $${libsrcdir}/configure \
15819 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15820 --target=${target_alias} $${srcdiroption} \
15821 --with-build-libsubdir=$(HOST_SUBDIR) \
15822 $(STAGEfeedback_CONFIGURE_FLAGS)
15823@endif gold-bootstrap
2a4cbe27 15824
56a8fe78 15825
56a8fe78 15826
56a8fe78 15827
6d389afc 15828
a90ef4bf
JM
15829.PHONY: all-gold maybe-all-gold
15830maybe-all-gold:
15831@if gcc-bootstrap
15832all-gold: stage_current
15833@endif gcc-bootstrap
15834@if gold
15835TARGET-gold=all
15836maybe-all-gold: all-gold
15837all-gold: configure-gold
15838 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15840 $(HOST_EXPORTS) \
15841 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15842 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15843 $(TARGET-gold))
15844@endif gold
6d389afc 15845
6d389afc 15846
2a4cbe27 15847
a90ef4bf
JM
15848.PHONY: all-stage1-gold maybe-all-stage1-gold
15849.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15850maybe-all-stage1-gold:
15851maybe-clean-stage1-gold:
15852@if gold-bootstrap
15853maybe-all-stage1-gold: all-stage1-gold
15854all-stage1: all-stage1-gold
15855TARGET-stage1-gold = $(TARGET-gold)
15856all-stage1-gold: configure-stage1-gold
15857 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15858 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15860 TFLAGS="$(STAGE1_TFLAGS)"; \
15861 $(HOST_EXPORTS) \
15862 cd $(HOST_SUBDIR)/gold && \
15863 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15864 CFLAGS="$(STAGE1_CFLAGS)" \
15865 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15866 LIBCFLAGS="$(LIBCFLAGS)" \
15867 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15868 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15869 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15870 $(EXTRA_HOST_FLAGS) \
15871 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15872 TFLAGS="$(STAGE1_TFLAGS)" \
15873 $(TARGET-stage1-gold)
2a4cbe27 15874
a90ef4bf
JM
15875maybe-clean-stage1-gold: clean-stage1-gold
15876clean-stage1: clean-stage1-gold
15877clean-stage1-gold:
15878 @if [ $(current_stage) = stage1 ]; then \
15879 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15880 else \
15881 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15882 $(MAKE) stage1-start; \
15883 fi; \
15884 cd $(HOST_SUBDIR)/gold && \
15885 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15886 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15887@endif gold-bootstrap
2a4cbe27 15888
2a4cbe27 15889
a90ef4bf
JM
15890.PHONY: all-stage2-gold maybe-all-stage2-gold
15891.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15892maybe-all-stage2-gold:
15893maybe-clean-stage2-gold:
15894@if gold-bootstrap
15895maybe-all-stage2-gold: all-stage2-gold
15896all-stage2: all-stage2-gold
15897TARGET-stage2-gold = $(TARGET-gold)
15898all-stage2-gold: configure-stage2-gold
15899 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15900 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15902 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15903 $(HOST_EXPORTS) \
a90ef4bf
JM
15904 $(POSTSTAGE1_HOST_EXPORTS) \
15905 cd $(HOST_SUBDIR)/gold && \
15906 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15907 CFLAGS="$(STAGE2_CFLAGS)" \
15908 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15909 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15910 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15911 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15912 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15913 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15914 TFLAGS="$(STAGE2_TFLAGS)" \
15915 $(TARGET-stage2-gold)
2a4cbe27 15916
a90ef4bf
JM
15917maybe-clean-stage2-gold: clean-stage2-gold
15918clean-stage2: clean-stage2-gold
15919clean-stage2-gold:
15920 @if [ $(current_stage) = stage2 ]; then \
15921 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15922 else \
15923 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15924 $(MAKE) stage2-start; \
15925 fi; \
15926 cd $(HOST_SUBDIR)/gold && \
b3676d82 15927 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15928@endif gold-bootstrap
2a4cbe27 15929
a3ca38d2 15930
a90ef4bf
JM
15931.PHONY: all-stage3-gold maybe-all-stage3-gold
15932.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15933maybe-all-stage3-gold:
15934maybe-clean-stage3-gold:
15935@if gold-bootstrap
15936maybe-all-stage3-gold: all-stage3-gold
15937all-stage3: all-stage3-gold
15938TARGET-stage3-gold = $(TARGET-gold)
15939all-stage3-gold: configure-stage3-gold
15940 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15941 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15943 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15944 $(HOST_EXPORTS) \
a90ef4bf
JM
15945 $(POSTSTAGE1_HOST_EXPORTS) \
15946 cd $(HOST_SUBDIR)/gold && \
15947 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15948 CFLAGS="$(STAGE3_CFLAGS)" \
15949 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15950 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15951 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15952 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15953 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15954 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15955 TFLAGS="$(STAGE3_TFLAGS)" \
15956 $(TARGET-stage3-gold)
2a4cbe27 15957
a90ef4bf
JM
15958maybe-clean-stage3-gold: clean-stage3-gold
15959clean-stage3: clean-stage3-gold
15960clean-stage3-gold:
15961 @if [ $(current_stage) = stage3 ]; then \
15962 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15963 else \
15964 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15965 $(MAKE) stage3-start; \
15966 fi; \
15967 cd $(HOST_SUBDIR)/gold && \
b3676d82 15968 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15969@endif gold-bootstrap
2a4cbe27 15970
2a4cbe27 15971
a90ef4bf
JM
15972.PHONY: all-stage4-gold maybe-all-stage4-gold
15973.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15974maybe-all-stage4-gold:
15975maybe-clean-stage4-gold:
15976@if gold-bootstrap
15977maybe-all-stage4-gold: all-stage4-gold
15978all-stage4: all-stage4-gold
15979TARGET-stage4-gold = $(TARGET-gold)
15980all-stage4-gold: configure-stage4-gold
15981 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15982 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15984 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15985 $(HOST_EXPORTS) \
a90ef4bf
JM
15986 $(POSTSTAGE1_HOST_EXPORTS) \
15987 cd $(HOST_SUBDIR)/gold && \
15988 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15989 CFLAGS="$(STAGE4_CFLAGS)" \
15990 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15991 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15992 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15993 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15994 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15995 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15996 TFLAGS="$(STAGE4_TFLAGS)" \
15997 $(TARGET-stage4-gold)
2a4cbe27 15998
a90ef4bf
JM
15999maybe-clean-stage4-gold: clean-stage4-gold
16000clean-stage4: clean-stage4-gold
16001clean-stage4-gold:
16002 @if [ $(current_stage) = stage4 ]; then \
16003 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
16004 else \
16005 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
16006 $(MAKE) stage4-start; \
16007 fi; \
16008 cd $(HOST_SUBDIR)/gold && \
b3676d82 16009 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16010@endif gold-bootstrap
2a4cbe27 16011
2a4cbe27 16012
a90ef4bf
JM
16013.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
16014.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
16015maybe-all-stageprofile-gold:
16016maybe-clean-stageprofile-gold:
16017@if gold-bootstrap
16018maybe-all-stageprofile-gold: all-stageprofile-gold
16019all-stageprofile: all-stageprofile-gold
16020TARGET-stageprofile-gold = $(TARGET-gold)
16021all-stageprofile-gold: configure-stageprofile-gold
16022 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
16023 @r=`${PWD_COMMAND}`; export r; \
b40e3958 16024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16025 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 16026 $(HOST_EXPORTS) \
a90ef4bf
JM
16027 $(POSTSTAGE1_HOST_EXPORTS) \
16028 cd $(HOST_SUBDIR)/gold && \
16029 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16030 CFLAGS="$(STAGEprofile_CFLAGS)" \
16031 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
16032 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
16033 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16034 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16035 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16036 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16037 TFLAGS="$(STAGEprofile_TFLAGS)" \
16038 $(TARGET-stageprofile-gold)
2a4cbe27 16039
a90ef4bf
JM
16040maybe-clean-stageprofile-gold: clean-stageprofile-gold
16041clean-stageprofile: clean-stageprofile-gold
16042clean-stageprofile-gold:
16043 @if [ $(current_stage) = stageprofile ]; then \
16044 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
16045 else \
16046 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
16047 $(MAKE) stageprofile-start; \
16048 fi; \
16049 cd $(HOST_SUBDIR)/gold && \
b3676d82 16050 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16051@endif gold-bootstrap
2a4cbe27 16052
a7254363 16053
a90ef4bf
JM
16054.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
16055.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
16056maybe-all-stagefeedback-gold:
16057maybe-clean-stagefeedback-gold:
16058@if gold-bootstrap
16059maybe-all-stagefeedback-gold: all-stagefeedback-gold
16060all-stagefeedback: all-stagefeedback-gold
16061TARGET-stagefeedback-gold = $(TARGET-gold)
16062all-stagefeedback-gold: configure-stagefeedback-gold
16063 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 16064 @r=`${PWD_COMMAND}`; export r; \
4fa63067 16065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16066 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
16067 $(HOST_EXPORTS) \
16068 $(POSTSTAGE1_HOST_EXPORTS) \
16069 cd $(HOST_SUBDIR)/gold && \
16070 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16071 CFLAGS="$(STAGEfeedback_CFLAGS)" \
16072 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
16073 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
16074 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16075 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16076 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16077 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16078 TFLAGS="$(STAGEfeedback_TFLAGS)" \
16079 $(TARGET-stagefeedback-gold)
d545f33b 16080
a90ef4bf
JM
16081maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
16082clean-stagefeedback: clean-stagefeedback-gold
16083clean-stagefeedback-gold:
16084 @if [ $(current_stage) = stagefeedback ]; then \
16085 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
16086 else \
16087 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
16088 $(MAKE) stagefeedback-start; \
16089 fi; \
16090 cd $(HOST_SUBDIR)/gold && \
b3676d82 16091 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16092@endif gold-bootstrap
d545f33b 16093
4fa63067 16094
a7254363 16095
d545f33b
PB
16096
16097
a90ef4bf
JM
16098.PHONY: check-gold maybe-check-gold
16099maybe-check-gold:
16100@if gold
16101maybe-check-gold: check-gold
4fa63067 16102
a90ef4bf 16103check-gold:
0aed8855 16104 @: $(MAKE); $(unstage)
4fa63067
NN
16105 @r=`${PWD_COMMAND}`; export r; \
16106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16107 $(HOST_EXPORTS) \
a90ef4bf 16108 (cd $(HOST_SUBDIR)/gold && \
b00612cc 16109 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 16110
a90ef4bf 16111@endif gold
4fa63067 16112
a90ef4bf
JM
16113.PHONY: install-gold maybe-install-gold
16114maybe-install-gold:
16115@if gold
16116maybe-install-gold: install-gold
4fa63067 16117
a90ef4bf 16118install-gold: installdirs
0aed8855 16119 @: $(MAKE); $(unstage)
4fa63067
NN
16120 @r=`${PWD_COMMAND}`; export r; \
16121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16122 $(HOST_EXPORTS) \
a90ef4bf 16123 (cd $(HOST_SUBDIR)/gold && \
2da12f12 16124 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 16125
a90ef4bf 16126@endif gold
4fa63067 16127
a90ef4bf
JM
16128.PHONY: install-strip-gold maybe-install-strip-gold
16129maybe-install-strip-gold:
16130@if gold
16131maybe-install-strip-gold: install-strip-gold
9b980aa1 16132
a90ef4bf 16133install-strip-gold: installdirs
9b980aa1
RW
16134 @: $(MAKE); $(unstage)
16135 @r=`${PWD_COMMAND}`; export r; \
16136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16137 $(HOST_EXPORTS) \
a90ef4bf 16138 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
16139 $(MAKE) $(FLAGS_TO_PASS) install-strip)
16140
a90ef4bf 16141@endif gold
9b980aa1 16142
56a8fe78 16143# Other targets (info, dvi, pdf, etc.)
4fa63067 16144
a90ef4bf
JM
16145.PHONY: maybe-info-gold info-gold
16146maybe-info-gold:
16147@if gold
16148maybe-info-gold: info-gold
4fa63067 16149
a90ef4bf
JM
16150info-gold: \
16151 configure-gold
16152 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16153 r=`${PWD_COMMAND}`; export r; \
16154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16155 $(HOST_EXPORTS) \
b813574b 16156 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16158 done; \
a90ef4bf
JM
16159 echo "Doing info in gold" ; \
16160 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16163 "RANLIB=$${RANLIB}" \
0c24b341 16164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16165 info) \
2a4cbe27
NN
16166 || exit 1
16167
a90ef4bf 16168@endif gold
2a4cbe27 16169
a90ef4bf
JM
16170.PHONY: maybe-dvi-gold dvi-gold
16171maybe-dvi-gold:
16172@if gold
16173maybe-dvi-gold: dvi-gold
2a4cbe27 16174
a90ef4bf
JM
16175dvi-gold: \
16176 configure-gold
16177 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16178 r=`${PWD_COMMAND}`; export r; \
16179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16180 $(HOST_EXPORTS) \
b813574b 16181 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16183 done; \
a90ef4bf
JM
16184 echo "Doing dvi in gold" ; \
16185 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16188 "RANLIB=$${RANLIB}" \
0c24b341 16189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16190 dvi) \
2a4cbe27
NN
16191 || exit 1
16192
a90ef4bf 16193@endif gold
2a4cbe27 16194
a90ef4bf
JM
16195.PHONY: maybe-pdf-gold pdf-gold
16196maybe-pdf-gold:
16197@if gold
16198maybe-pdf-gold: pdf-gold
56a8fe78 16199
a90ef4bf
JM
16200pdf-gold: \
16201 configure-gold
16202 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
16203 r=`${PWD_COMMAND}`; export r; \
16204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16205 $(HOST_EXPORTS) \
16206 for flag in $(EXTRA_HOST_FLAGS) ; do \
16207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16208 done; \
a90ef4bf
JM
16209 echo "Doing pdf in gold" ; \
16210 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16213 "RANLIB=$${RANLIB}" \
0c24b341 16214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16215 pdf) \
16216 || exit 1
16217
a90ef4bf 16218@endif gold
56a8fe78 16219
a90ef4bf
JM
16220.PHONY: maybe-html-gold html-gold
16221maybe-html-gold:
16222@if gold
16223maybe-html-gold: html-gold
6d389afc 16224
a90ef4bf
JM
16225html-gold: \
16226 configure-gold
16227 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16228 r=`${PWD_COMMAND}`; export r; \
16229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16230 $(HOST_EXPORTS) \
16231 for flag in $(EXTRA_HOST_FLAGS) ; do \
16232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16233 done; \
a90ef4bf
JM
16234 echo "Doing html in gold" ; \
16235 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16238 "RANLIB=$${RANLIB}" \
0c24b341 16239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16240 html) \
16241 || exit 1
16242
a90ef4bf 16243@endif gold
6d389afc 16244
a90ef4bf
JM
16245.PHONY: maybe-TAGS-gold TAGS-gold
16246maybe-TAGS-gold:
16247@if gold
16248maybe-TAGS-gold: TAGS-gold
2a4cbe27 16249
a90ef4bf
JM
16250TAGS-gold: \
16251 configure-gold
16252 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16253 r=`${PWD_COMMAND}`; export r; \
16254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16255 $(HOST_EXPORTS) \
b813574b 16256 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16258 done; \
a90ef4bf
JM
16259 echo "Doing TAGS in gold" ; \
16260 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16263 "RANLIB=$${RANLIB}" \
0c24b341 16264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16265 TAGS) \
2a4cbe27
NN
16266 || exit 1
16267
a90ef4bf 16268@endif gold
2a4cbe27 16269
a90ef4bf
JM
16270.PHONY: maybe-install-info-gold install-info-gold
16271maybe-install-info-gold:
16272@if gold
16273maybe-install-info-gold: install-info-gold
b813574b 16274
a90ef4bf
JM
16275install-info-gold: \
16276 configure-gold \
16277 info-gold
16278 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16279 r=`${PWD_COMMAND}`; export r; \
16280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16281 $(HOST_EXPORTS) \
b813574b 16282 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16284 done; \
a90ef4bf
JM
16285 echo "Doing install-info in gold" ; \
16286 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16289 "RANLIB=$${RANLIB}" \
0c24b341 16290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16291 install-info) \
2a4cbe27
NN
16292 || exit 1
16293
a90ef4bf 16294@endif gold
2a4cbe27 16295
a90ef4bf
JM
16296.PHONY: maybe-install-pdf-gold install-pdf-gold
16297maybe-install-pdf-gold:
16298@if gold
16299maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16300
a90ef4bf
JM
16301install-pdf-gold: \
16302 configure-gold \
16303 pdf-gold
16304 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16305 r=`${PWD_COMMAND}`; export r; \
16306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16307 $(HOST_EXPORTS) \
16308 for flag in $(EXTRA_HOST_FLAGS) ; do \
16309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16310 done; \
a90ef4bf
JM
16311 echo "Doing install-pdf in gold" ; \
16312 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16315 "RANLIB=$${RANLIB}" \
0c24b341 16316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16317 install-pdf) \
16318 || exit 1
16319
a90ef4bf 16320@endif gold
a3ca38d2 16321
a90ef4bf
JM
16322.PHONY: maybe-install-html-gold install-html-gold
16323maybe-install-html-gold:
16324@if gold
16325maybe-install-html-gold: install-html-gold
108a6f8e 16326
a90ef4bf
JM
16327install-html-gold: \
16328 configure-gold \
16329 html-gold
16330 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16331 r=`${PWD_COMMAND}`; export r; \
16332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16333 $(HOST_EXPORTS) \
16334 for flag in $(EXTRA_HOST_FLAGS) ; do \
16335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16336 done; \
a90ef4bf
JM
16337 echo "Doing install-html in gold" ; \
16338 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16341 "RANLIB=$${RANLIB}" \
0c24b341 16342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16343 install-html) \
16344 || exit 1
16345
a90ef4bf 16346@endif gold
108a6f8e 16347
a90ef4bf
JM
16348.PHONY: maybe-installcheck-gold installcheck-gold
16349maybe-installcheck-gold:
16350@if gold
16351maybe-installcheck-gold: installcheck-gold
2a4cbe27 16352
a90ef4bf
JM
16353installcheck-gold: \
16354 configure-gold
16355 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16356 r=`${PWD_COMMAND}`; export r; \
16357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16358 $(HOST_EXPORTS) \
b813574b 16359 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16361 done; \
a90ef4bf
JM
16362 echo "Doing installcheck in gold" ; \
16363 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16366 "RANLIB=$${RANLIB}" \
0c24b341 16367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16368 installcheck) \
2a4cbe27
NN
16369 || exit 1
16370
a90ef4bf 16371@endif gold
2a4cbe27 16372
a90ef4bf
JM
16373.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16374maybe-mostlyclean-gold:
16375@if gold
16376maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16377
a90ef4bf
JM
16378mostlyclean-gold:
16379 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16380 r=`${PWD_COMMAND}`; export r; \
16381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16382 $(HOST_EXPORTS) \
b813574b 16383 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16385 done; \
a90ef4bf
JM
16386 echo "Doing mostlyclean in gold" ; \
16387 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16390 "RANLIB=$${RANLIB}" \
0c24b341 16391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16392 mostlyclean) \
2a4cbe27
NN
16393 || exit 1
16394
a90ef4bf 16395@endif gold
2a4cbe27 16396
a90ef4bf
JM
16397.PHONY: maybe-clean-gold clean-gold
16398maybe-clean-gold:
16399@if gold
16400maybe-clean-gold: clean-gold
2a4cbe27 16401
a90ef4bf
JM
16402clean-gold:
16403 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16404 r=`${PWD_COMMAND}`; export r; \
16405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16406 $(HOST_EXPORTS) \
b813574b 16407 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16409 done; \
a90ef4bf
JM
16410 echo "Doing clean in gold" ; \
16411 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16414 "RANLIB=$${RANLIB}" \
0c24b341 16415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16416 clean) \
2a4cbe27
NN
16417 || exit 1
16418
a90ef4bf 16419@endif gold
2a4cbe27 16420
a90ef4bf
JM
16421.PHONY: maybe-distclean-gold distclean-gold
16422maybe-distclean-gold:
16423@if gold
16424maybe-distclean-gold: distclean-gold
2a4cbe27 16425
a90ef4bf
JM
16426distclean-gold:
16427 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16428 r=`${PWD_COMMAND}`; export r; \
16429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16430 $(HOST_EXPORTS) \
b813574b 16431 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16433 done; \
a90ef4bf
JM
16434 echo "Doing distclean in gold" ; \
16435 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16438 "RANLIB=$${RANLIB}" \
0c24b341 16439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16440 distclean) \
2a4cbe27
NN
16441 || exit 1
16442
a90ef4bf 16443@endif gold
2a4cbe27 16444
a90ef4bf
JM
16445.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16446maybe-maintainer-clean-gold:
16447@if gold
16448maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16449
a90ef4bf
JM
16450maintainer-clean-gold:
16451 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16452 r=`${PWD_COMMAND}`; export r; \
16453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16454 $(HOST_EXPORTS) \
b813574b 16455 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16457 done; \
a90ef4bf
JM
16458 echo "Doing maintainer-clean in gold" ; \
16459 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16462 "RANLIB=$${RANLIB}" \
0c24b341 16463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16464 maintainer-clean) \
4fa63067
NN
16465 || exit 1
16466
a90ef4bf 16467@endif gold
4fa63067
NN
16468
16469
a7254363 16470
a90ef4bf
JM
16471.PHONY: configure-gprof maybe-configure-gprof
16472maybe-configure-gprof:
4b900473 16473@if gcc-bootstrap
a90ef4bf 16474configure-gprof: stage_current
4b900473 16475@endif gcc-bootstrap
a90ef4bf
JM
16476@if gprof
16477maybe-configure-gprof: configure-gprof
16478configure-gprof:
16479 @: $(MAKE); $(unstage)
4b900473
PB
16480 @r=`${PWD_COMMAND}`; export r; \
16481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16482 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
16483 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
1f53ca9a 16484 $(HOST_EXPORTS) \
a90ef4bf
JM
16485 echo Configuring in $(HOST_SUBDIR)/gprof; \
16486 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16487 case $(srcdir) in \
16488 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16489 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16490 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16491 esac; \
a90ef4bf
JM
16492 srcdiroption="--srcdir=$${topdir}/gprof"; \
16493 libsrcdir="$$s/gprof"; \
4b900473 16494 $(SHELL) $${libsrcdir}/configure \
a90ef4bf
JM
16495 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
16496 --target=${target_alias} $${srcdiroption} \
4b900473 16497 || exit 1
a90ef4bf 16498@endif gprof
4b900473
PB
16499
16500
16501
4b900473 16502
a90ef4bf
JM
16503
16504.PHONY: all-gprof maybe-all-gprof
16505maybe-all-gprof:
16506@if gcc-bootstrap
16507all-gprof: stage_current
16508@endif gcc-bootstrap
16509@if gprof
16510TARGET-gprof=all
16511maybe-all-gprof: all-gprof
16512all-gprof: configure-gprof
16513 @: $(MAKE); $(unstage)
4b900473
PB
16514 @r=`${PWD_COMMAND}`; export r; \
16515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16516 $(HOST_EXPORTS) \
a90ef4bf 16517 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16518 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16519 $(TARGET-gprof))
16520@endif gprof
4b900473
PB
16521
16522
4b900473 16523
4b900473 16524
a90ef4bf
JM
16525.PHONY: check-gprof maybe-check-gprof
16526maybe-check-gprof:
16527@if gprof
16528maybe-check-gprof: check-gprof
4b900473 16529
a90ef4bf
JM
16530check-gprof:
16531 @: $(MAKE); $(unstage)
4b900473
PB
16532 @r=`${PWD_COMMAND}`; export r; \
16533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16534 $(HOST_EXPORTS) \
a90ef4bf
JM
16535 (cd $(HOST_SUBDIR)/gprof && \
16536 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16537
a90ef4bf 16538@endif gprof
4b900473 16539
a90ef4bf
JM
16540.PHONY: install-gprof maybe-install-gprof
16541maybe-install-gprof:
16542@if gprof
16543maybe-install-gprof: install-gprof
4b900473 16544
a90ef4bf
JM
16545install-gprof: installdirs
16546 @: $(MAKE); $(unstage)
4b900473
PB
16547 @r=`${PWD_COMMAND}`; export r; \
16548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16549 $(HOST_EXPORTS) \
a90ef4bf
JM
16550 (cd $(HOST_SUBDIR)/gprof && \
16551 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16552
a90ef4bf 16553@endif gprof
4b900473 16554
a90ef4bf
JM
16555.PHONY: install-strip-gprof maybe-install-strip-gprof
16556maybe-install-strip-gprof:
16557@if gprof
16558maybe-install-strip-gprof: install-strip-gprof
4b900473 16559
a90ef4bf 16560install-strip-gprof: installdirs
4b900473
PB
16561 @: $(MAKE); $(unstage)
16562 @r=`${PWD_COMMAND}`; export r; \
16563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16564 $(HOST_EXPORTS) \
a90ef4bf
JM
16565 (cd $(HOST_SUBDIR)/gprof && \
16566 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16567
a90ef4bf 16568@endif gprof
9b980aa1 16569
4b900473
PB
16570# Other targets (info, dvi, pdf, etc.)
16571
a90ef4bf
JM
16572.PHONY: maybe-info-gprof info-gprof
16573maybe-info-gprof:
16574@if gprof
16575maybe-info-gprof: info-gprof
4b900473 16576
a90ef4bf
JM
16577info-gprof: \
16578 configure-gprof
16579 @: $(MAKE); $(unstage)
16580 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16581 r=`${PWD_COMMAND}`; export r; \
16582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16583 $(HOST_EXPORTS) \
16584 for flag in $(EXTRA_HOST_FLAGS) ; do \
16585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16586 done; \
a90ef4bf
JM
16587 echo "Doing info in gprof" ; \
16588 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16591 "RANLIB=$${RANLIB}" \
0c24b341 16592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16593 info) \
16594 || exit 1
16595
a90ef4bf 16596@endif gprof
4b900473 16597
a90ef4bf
JM
16598.PHONY: maybe-dvi-gprof dvi-gprof
16599maybe-dvi-gprof:
16600@if gprof
16601maybe-dvi-gprof: dvi-gprof
4b900473 16602
a90ef4bf
JM
16603dvi-gprof: \
16604 configure-gprof
16605 @: $(MAKE); $(unstage)
16606 @[ -f ./gprof/Makefile ] || exit 0; \
16607 r=`${PWD_COMMAND}`; export r; \
16608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16609 $(HOST_EXPORTS) \
4b900473
PB
16610 for flag in $(EXTRA_HOST_FLAGS) ; do \
16611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16612 done; \
a90ef4bf
JM
16613 echo "Doing dvi in gprof" ; \
16614 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16617 "RANLIB=$${RANLIB}" \
0c24b341 16618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16619 dvi) \
16620 || exit 1
16621
a90ef4bf 16622@endif gprof
4b900473 16623
a90ef4bf
JM
16624.PHONY: maybe-pdf-gprof pdf-gprof
16625maybe-pdf-gprof:
16626@if gprof
16627maybe-pdf-gprof: pdf-gprof
4b900473 16628
a90ef4bf
JM
16629pdf-gprof: \
16630 configure-gprof
16631 @: $(MAKE); $(unstage)
16632 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16633 r=`${PWD_COMMAND}`; export r; \
16634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16635 $(HOST_EXPORTS) \
16636 for flag in $(EXTRA_HOST_FLAGS) ; do \
16637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16638 done; \
a90ef4bf
JM
16639 echo "Doing pdf in gprof" ; \
16640 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16643 "RANLIB=$${RANLIB}" \
0c24b341 16644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16645 pdf) \
16646 || exit 1
16647
a90ef4bf 16648@endif gprof
4b900473 16649
a90ef4bf
JM
16650.PHONY: maybe-html-gprof html-gprof
16651maybe-html-gprof:
16652@if gprof
16653maybe-html-gprof: html-gprof
4b900473 16654
a90ef4bf
JM
16655html-gprof: \
16656 configure-gprof
16657 @: $(MAKE); $(unstage)
16658 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16659 r=`${PWD_COMMAND}`; export r; \
16660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16661 $(HOST_EXPORTS) \
16662 for flag in $(EXTRA_HOST_FLAGS) ; do \
16663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16664 done; \
a90ef4bf
JM
16665 echo "Doing html in gprof" ; \
16666 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16669 "RANLIB=$${RANLIB}" \
0c24b341 16670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16671 html) \
16672 || exit 1
16673
a90ef4bf 16674@endif gprof
4b900473 16675
a90ef4bf
JM
16676.PHONY: maybe-TAGS-gprof TAGS-gprof
16677maybe-TAGS-gprof:
16678@if gprof
16679maybe-TAGS-gprof: TAGS-gprof
4b900473 16680
a90ef4bf
JM
16681TAGS-gprof: \
16682 configure-gprof
16683 @: $(MAKE); $(unstage)
16684 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16685 r=`${PWD_COMMAND}`; export r; \
16686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16687 $(HOST_EXPORTS) \
16688 for flag in $(EXTRA_HOST_FLAGS) ; do \
16689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16690 done; \
a90ef4bf
JM
16691 echo "Doing TAGS in gprof" ; \
16692 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16695 "RANLIB=$${RANLIB}" \
0c24b341 16696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16697 TAGS) \
16698 || exit 1
16699
a90ef4bf 16700@endif gprof
4b900473 16701
a90ef4bf
JM
16702.PHONY: maybe-install-info-gprof install-info-gprof
16703maybe-install-info-gprof:
16704@if gprof
16705maybe-install-info-gprof: install-info-gprof
4b900473 16706
a90ef4bf
JM
16707install-info-gprof: \
16708 configure-gprof \
16709 info-gprof
16710 @: $(MAKE); $(unstage)
16711 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16712 r=`${PWD_COMMAND}`; export r; \
16713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16714 $(HOST_EXPORTS) \
16715 for flag in $(EXTRA_HOST_FLAGS) ; do \
16716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16717 done; \
a90ef4bf
JM
16718 echo "Doing install-info in gprof" ; \
16719 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16722 "RANLIB=$${RANLIB}" \
0c24b341 16723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16724 install-info) \
16725 || exit 1
16726
a90ef4bf 16727@endif gprof
4b900473 16728
a90ef4bf
JM
16729.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16730maybe-install-pdf-gprof:
16731@if gprof
16732maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16733
a90ef4bf
JM
16734install-pdf-gprof: \
16735 configure-gprof \
16736 pdf-gprof
16737 @: $(MAKE); $(unstage)
16738 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16739 r=`${PWD_COMMAND}`; export r; \
16740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16741 $(HOST_EXPORTS) \
16742 for flag in $(EXTRA_HOST_FLAGS) ; do \
16743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16744 done; \
a90ef4bf
JM
16745 echo "Doing install-pdf in gprof" ; \
16746 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16749 "RANLIB=$${RANLIB}" \
0c24b341 16750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16751 install-pdf) \
16752 || exit 1
16753
a90ef4bf 16754@endif gprof
a3ca38d2 16755
a90ef4bf
JM
16756.PHONY: maybe-install-html-gprof install-html-gprof
16757maybe-install-html-gprof:
16758@if gprof
16759maybe-install-html-gprof: install-html-gprof
4b900473 16760
a90ef4bf
JM
16761install-html-gprof: \
16762 configure-gprof \
16763 html-gprof
16764 @: $(MAKE); $(unstage)
16765 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16766 r=`${PWD_COMMAND}`; export r; \
16767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16768 $(HOST_EXPORTS) \
16769 for flag in $(EXTRA_HOST_FLAGS) ; do \
16770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16771 done; \
a90ef4bf
JM
16772 echo "Doing install-html in gprof" ; \
16773 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16776 "RANLIB=$${RANLIB}" \
0c24b341 16777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16778 install-html) \
16779 || exit 1
16780
a90ef4bf 16781@endif gprof
4b900473 16782
a90ef4bf
JM
16783.PHONY: maybe-installcheck-gprof installcheck-gprof
16784maybe-installcheck-gprof:
16785@if gprof
16786maybe-installcheck-gprof: installcheck-gprof
4b900473 16787
a90ef4bf
JM
16788installcheck-gprof: \
16789 configure-gprof
16790 @: $(MAKE); $(unstage)
16791 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16792 r=`${PWD_COMMAND}`; export r; \
16793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16794 $(HOST_EXPORTS) \
16795 for flag in $(EXTRA_HOST_FLAGS) ; do \
16796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16797 done; \
a90ef4bf
JM
16798 echo "Doing installcheck in gprof" ; \
16799 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16802 "RANLIB=$${RANLIB}" \
16803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16804 installcheck) \
16805 || exit 1
16806
a90ef4bf 16807@endif gprof
e28c595f 16808
a90ef4bf
JM
16809.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16810maybe-mostlyclean-gprof:
16811@if gprof
16812maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16813
a90ef4bf
JM
16814mostlyclean-gprof:
16815 @: $(MAKE); $(unstage)
16816 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16817 r=`${PWD_COMMAND}`; export r; \
16818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16819 $(HOST_EXPORTS) \
16820 for flag in $(EXTRA_HOST_FLAGS) ; do \
16821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16822 done; \
a90ef4bf
JM
16823 echo "Doing mostlyclean in gprof" ; \
16824 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16827 "RANLIB=$${RANLIB}" \
16828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16829 mostlyclean) \
16830 || exit 1
16831
a90ef4bf 16832@endif gprof
e28c595f 16833
a90ef4bf
JM
16834.PHONY: maybe-clean-gprof clean-gprof
16835maybe-clean-gprof:
16836@if gprof
16837maybe-clean-gprof: clean-gprof
e28c595f 16838
a90ef4bf
JM
16839clean-gprof:
16840 @: $(MAKE); $(unstage)
16841 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16842 r=`${PWD_COMMAND}`; export r; \
16843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16844 $(HOST_EXPORTS) \
16845 for flag in $(EXTRA_HOST_FLAGS) ; do \
16846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16847 done; \
a90ef4bf
JM
16848 echo "Doing clean in gprof" ; \
16849 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16852 "RANLIB=$${RANLIB}" \
16853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16854 clean) \
16855 || exit 1
16856
a90ef4bf 16857@endif gprof
e28c595f 16858
a90ef4bf
JM
16859.PHONY: maybe-distclean-gprof distclean-gprof
16860maybe-distclean-gprof:
16861@if gprof
16862maybe-distclean-gprof: distclean-gprof
e28c595f 16863
a90ef4bf
JM
16864distclean-gprof:
16865 @: $(MAKE); $(unstage)
16866 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16867 r=`${PWD_COMMAND}`; export r; \
16868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16869 $(HOST_EXPORTS) \
16870 for flag in $(EXTRA_HOST_FLAGS) ; do \
16871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16872 done; \
a90ef4bf
JM
16873 echo "Doing distclean in gprof" ; \
16874 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16877 "RANLIB=$${RANLIB}" \
16878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16879 distclean) \
16880 || exit 1
16881
a90ef4bf 16882@endif gprof
e28c595f 16883
a90ef4bf
JM
16884.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16885maybe-maintainer-clean-gprof:
16886@if gprof
16887maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16888
a90ef4bf
JM
16889maintainer-clean-gprof:
16890 @: $(MAKE); $(unstage)
16891 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16892 r=`${PWD_COMMAND}`; export r; \
16893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16894 $(HOST_EXPORTS) \
16895 for flag in $(EXTRA_HOST_FLAGS) ; do \
16896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16897 done; \
a90ef4bf
JM
16898 echo "Doing maintainer-clean in gprof" ; \
16899 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16902 "RANLIB=$${RANLIB}" \
16903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16904 maintainer-clean) \
16905 || exit 1
16906
a90ef4bf 16907@endif gprof
e28c595f
JM
16908
16909
16910
a90ef4bf
JM
16911.PHONY: configure-intl maybe-configure-intl
16912maybe-configure-intl:
e28c595f 16913@if gcc-bootstrap
a90ef4bf 16914configure-intl: stage_current
e28c595f 16915@endif gcc-bootstrap
a90ef4bf
JM
16916@if intl
16917maybe-configure-intl: configure-intl
16918configure-intl:
e28c595f
JM
16919 @r=`${PWD_COMMAND}`; export r; \
16920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16921 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
16922 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
1f53ca9a 16923 $(HOST_EXPORTS) \
a90ef4bf
JM
16924 echo Configuring in $(HOST_SUBDIR)/intl; \
16925 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16926 case $(srcdir) in \
16927 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16928 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16929 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16930 esac; \
a90ef4bf
JM
16931 srcdiroption="--srcdir=$${topdir}/intl"; \
16932 libsrcdir="$$s/intl"; \
e28c595f 16933 $(SHELL) $${libsrcdir}/configure \
1f53ca9a 16934 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 16935 --target=${target_alias} $${srcdiroption} \
e28c595f 16936 || exit 1
a90ef4bf 16937@endif intl
e28c595f
JM
16938
16939
16940
a90ef4bf
JM
16941.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16942maybe-configure-stage1-intl:
16943@if intl-bootstrap
16944maybe-configure-stage1-intl: configure-stage1-intl
16945configure-stage1-intl:
e28c595f 16946 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16947 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16948 @r=`${PWD_COMMAND}`; export r; \
16949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16950 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16951 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16952 $(HOST_EXPORTS) \
e28c595f 16953 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16954 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16955 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16956 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
16957 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16958 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16959 case $(srcdir) in \
16960 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16961 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16962 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16963 esac; \
a90ef4bf
JM
16964 srcdiroption="--srcdir=$${topdir}/intl"; \
16965 libsrcdir="$$s/intl"; \
e28c595f 16966 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
16967 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
16968 --target=${target_alias} $${srcdiroption} \
a90ef4bf
JM
16969 $(STAGE1_CONFIGURE_FLAGS)
16970@endif intl-bootstrap
e28c595f 16971
a90ef4bf
JM
16972.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16973maybe-configure-stage2-intl:
16974@if intl-bootstrap
16975maybe-configure-stage2-intl: configure-stage2-intl
16976configure-stage2-intl:
e28c595f 16977 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16978 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16979 @r=`${PWD_COMMAND}`; export r; \
16980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16981 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16982 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16983 $(HOST_EXPORTS) \
1b05fbbd 16984 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16985 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16986 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16987 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16988 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
16989 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16990 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16991 case $(srcdir) in \
16992 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16993 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16994 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16995 esac; \
a90ef4bf
JM
16996 srcdiroption="--srcdir=$${topdir}/intl"; \
16997 libsrcdir="$$s/intl"; \
e28c595f 16998 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
16999 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17000 --target=${target_alias} $${srcdiroption} \
e28c595f 17001 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17002 $(STAGE2_CONFIGURE_FLAGS)
17003@endif intl-bootstrap
e28c595f 17004
a90ef4bf
JM
17005.PHONY: configure-stage3-intl maybe-configure-stage3-intl
17006maybe-configure-stage3-intl:
17007@if intl-bootstrap
17008maybe-configure-stage3-intl: configure-stage3-intl
17009configure-stage3-intl:
e28c595f 17010 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 17011 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17012 @r=`${PWD_COMMAND}`; export r; \
17013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17014 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 17015 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17016 $(HOST_EXPORTS) \
1b05fbbd 17017 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 17018 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17019 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
17020 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
17021 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
17022 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
17023 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17024 case $(srcdir) in \
17025 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17026 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17027 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17028 esac; \
a90ef4bf
JM
17029 srcdiroption="--srcdir=$${topdir}/intl"; \
17030 libsrcdir="$$s/intl"; \
e28c595f 17031 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
17032 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17033 --target=${target_alias} $${srcdiroption} \
e28c595f 17034 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17035 $(STAGE3_CONFIGURE_FLAGS)
17036@endif intl-bootstrap
e28c595f 17037
a90ef4bf
JM
17038.PHONY: configure-stage4-intl maybe-configure-stage4-intl
17039maybe-configure-stage4-intl:
17040@if intl-bootstrap
17041maybe-configure-stage4-intl: configure-stage4-intl
17042configure-stage4-intl:
e28c595f 17043 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 17044 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17045 @r=`${PWD_COMMAND}`; export r; \
17046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17047 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 17048 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17049 $(HOST_EXPORTS) \
1b05fbbd 17050 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 17051 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17052 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
17053 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
17054 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
17055 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
17056 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17057 case $(srcdir) in \
17058 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17059 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17060 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17061 esac; \
a90ef4bf
JM
17062 srcdiroption="--srcdir=$${topdir}/intl"; \
17063 libsrcdir="$$s/intl"; \
e28c595f 17064 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
17065 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17066 --target=${target_alias} $${srcdiroption} \
e28c595f 17067 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17068 $(STAGE4_CONFIGURE_FLAGS)
17069@endif intl-bootstrap
e28c595f 17070
a90ef4bf
JM
17071.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
17072maybe-configure-stageprofile-intl:
17073@if intl-bootstrap
17074maybe-configure-stageprofile-intl: configure-stageprofile-intl
17075configure-stageprofile-intl:
e28c595f 17076 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 17077 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17078 @r=`${PWD_COMMAND}`; export r; \
17079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17080 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 17081 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17082 $(HOST_EXPORTS) \
1b05fbbd
AO
17083 $(POSTSTAGE1_HOST_EXPORTS) \
17084 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17085 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
17086 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
17087 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
17088 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
17089 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17090 case $(srcdir) in \
17091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17092 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17094 esac; \
a90ef4bf
JM
17095 srcdiroption="--srcdir=$${topdir}/intl"; \
17096 libsrcdir="$$s/intl"; \
e28c595f 17097 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
17098 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17099 --target=${target_alias} $${srcdiroption} \
e28c595f 17100 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17101 $(STAGEprofile_CONFIGURE_FLAGS)
17102@endif intl-bootstrap
e28c595f 17103
a90ef4bf
JM
17104.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
17105maybe-configure-stagefeedback-intl:
17106@if intl-bootstrap
17107maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
17108configure-stagefeedback-intl:
e28c595f 17109 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 17110 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17111 @r=`${PWD_COMMAND}`; export r; \
17112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17113 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 17114 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17115 $(HOST_EXPORTS) \
1b05fbbd
AO
17116 $(POSTSTAGE1_HOST_EXPORTS) \
17117 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17118 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
17119 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
17120 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
17121 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
17122 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17123 case $(srcdir) in \
17124 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17125 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17126 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17127 esac; \
a90ef4bf
JM
17128 srcdiroption="--srcdir=$${topdir}/intl"; \
17129 libsrcdir="$$s/intl"; \
e28c595f 17130 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
17131 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17132 --target=${target_alias} $${srcdiroption} \
e28c595f 17133 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17134 $(STAGEfeedback_CONFIGURE_FLAGS)
17135@endif intl-bootstrap
e28c595f
JM
17136
17137
17138
17139
17140
a90ef4bf
JM
17141.PHONY: all-intl maybe-all-intl
17142maybe-all-intl:
e28c595f 17143@if gcc-bootstrap
a90ef4bf 17144all-intl: stage_current
e28c595f 17145@endif gcc-bootstrap
a90ef4bf
JM
17146@if intl
17147TARGET-intl=all
17148maybe-all-intl: all-intl
17149all-intl: configure-intl
e28c595f
JM
17150 @r=`${PWD_COMMAND}`; export r; \
17151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 17152 $(HOST_EXPORTS) \
a90ef4bf 17153 (cd $(HOST_SUBDIR)/intl && \
b3676d82 17154 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17155 $(TARGET-intl))
17156@endif intl
e28c595f
JM
17157
17158
17159
a90ef4bf
JM
17160.PHONY: all-stage1-intl maybe-all-stage1-intl
17161.PHONY: clean-stage1-intl maybe-clean-stage1-intl
17162maybe-all-stage1-intl:
17163maybe-clean-stage1-intl:
17164@if intl-bootstrap
17165maybe-all-stage1-intl: all-stage1-intl
17166all-stage1: all-stage1-intl
17167TARGET-stage1-intl = $(TARGET-intl)
17168all-stage1-intl: configure-stage1-intl
e28c595f
JM
17169 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17170 @r=`${PWD_COMMAND}`; export r; \
17171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17172 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 17173 $(HOST_EXPORTS) \
a90ef4bf 17174 cd $(HOST_SUBDIR)/intl && \
e28c595f 17175 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17176 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 17177 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
17178 LIBCFLAGS="$(LIBCFLAGS)" \
17179 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17180 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17181 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
17182 $(EXTRA_HOST_FLAGS) \
17183 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 17184 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 17185 $(TARGET-stage1-intl)
e28c595f 17186
a90ef4bf
JM
17187maybe-clean-stage1-intl: clean-stage1-intl
17188clean-stage1: clean-stage1-intl
17189clean-stage1-intl:
e28c595f 17190 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 17191 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17192 else \
a90ef4bf 17193 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
17194 $(MAKE) stage1-start; \
17195 fi; \
a90ef4bf 17196 cd $(HOST_SUBDIR)/intl && \
e28c595f 17197 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 17198 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17199@endif intl-bootstrap
e28c595f
JM
17200
17201
a90ef4bf
JM
17202.PHONY: all-stage2-intl maybe-all-stage2-intl
17203.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17204maybe-all-stage2-intl:
17205maybe-clean-stage2-intl:
17206@if intl-bootstrap
17207maybe-all-stage2-intl: all-stage2-intl
17208all-stage2: all-stage2-intl
17209TARGET-stage2-intl = $(TARGET-intl)
17210all-stage2-intl: configure-stage2-intl
e28c595f
JM
17211 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17212 @r=`${PWD_COMMAND}`; export r; \
17213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17214 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17215 $(HOST_EXPORTS) \
1f53ca9a 17216 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17217 cd $(HOST_SUBDIR)/intl && \
e28c595f 17218 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17219 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17220 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17221 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17222 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17223 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17224 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17225 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17226 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17227 $(TARGET-stage2-intl)
e28c595f 17228
a90ef4bf
JM
17229maybe-clean-stage2-intl: clean-stage2-intl
17230clean-stage2: clean-stage2-intl
17231clean-stage2-intl:
e28c595f 17232 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17233 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17234 else \
a90ef4bf 17235 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17236 $(MAKE) stage2-start; \
17237 fi; \
a90ef4bf 17238 cd $(HOST_SUBDIR)/intl && \
b3676d82 17239 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17240@endif intl-bootstrap
e28c595f
JM
17241
17242
a90ef4bf
JM
17243.PHONY: all-stage3-intl maybe-all-stage3-intl
17244.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17245maybe-all-stage3-intl:
17246maybe-clean-stage3-intl:
17247@if intl-bootstrap
17248maybe-all-stage3-intl: all-stage3-intl
17249all-stage3: all-stage3-intl
17250TARGET-stage3-intl = $(TARGET-intl)
17251all-stage3-intl: configure-stage3-intl
e28c595f
JM
17252 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17253 @r=`${PWD_COMMAND}`; export r; \
17254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17255 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17256 $(HOST_EXPORTS) \
1f53ca9a 17257 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17258 cd $(HOST_SUBDIR)/intl && \
e28c595f 17259 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17260 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17261 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17262 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17263 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17264 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17265 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17266 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17267 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17268 $(TARGET-stage3-intl)
e28c595f 17269
a90ef4bf
JM
17270maybe-clean-stage3-intl: clean-stage3-intl
17271clean-stage3: clean-stage3-intl
17272clean-stage3-intl:
e28c595f 17273 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17274 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17275 else \
a90ef4bf 17276 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17277 $(MAKE) stage3-start; \
17278 fi; \
a90ef4bf 17279 cd $(HOST_SUBDIR)/intl && \
b3676d82 17280 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17281@endif intl-bootstrap
e28c595f
JM
17282
17283
a90ef4bf
JM
17284.PHONY: all-stage4-intl maybe-all-stage4-intl
17285.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17286maybe-all-stage4-intl:
17287maybe-clean-stage4-intl:
17288@if intl-bootstrap
17289maybe-all-stage4-intl: all-stage4-intl
17290all-stage4: all-stage4-intl
17291TARGET-stage4-intl = $(TARGET-intl)
17292all-stage4-intl: configure-stage4-intl
e28c595f
JM
17293 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17294 @r=`${PWD_COMMAND}`; export r; \
17295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17296 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17297 $(HOST_EXPORTS) \
1f53ca9a 17298 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17299 cd $(HOST_SUBDIR)/intl && \
e28c595f 17300 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17301 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17302 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17303 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17304 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17305 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17306 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17307 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17308 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17309 $(TARGET-stage4-intl)
e28c595f 17310
a90ef4bf
JM
17311maybe-clean-stage4-intl: clean-stage4-intl
17312clean-stage4: clean-stage4-intl
17313clean-stage4-intl:
e28c595f 17314 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17315 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17316 else \
a90ef4bf 17317 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17318 $(MAKE) stage4-start; \
17319 fi; \
a90ef4bf 17320 cd $(HOST_SUBDIR)/intl && \
b3676d82 17321 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17322@endif intl-bootstrap
e28c595f
JM
17323
17324
a90ef4bf
JM
17325.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17326.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17327maybe-all-stageprofile-intl:
17328maybe-clean-stageprofile-intl:
17329@if intl-bootstrap
17330maybe-all-stageprofile-intl: all-stageprofile-intl
17331all-stageprofile: all-stageprofile-intl
17332TARGET-stageprofile-intl = $(TARGET-intl)
17333all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17334 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17335 @r=`${PWD_COMMAND}`; export r; \
17336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17337 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17338 $(HOST_EXPORTS) \
1f53ca9a 17339 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17340 cd $(HOST_SUBDIR)/intl && \
e28c595f 17341 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17342 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17343 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17344 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17345 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17346 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17347 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17348 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17349 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17350 $(TARGET-stageprofile-intl)
e28c595f 17351
a90ef4bf
JM
17352maybe-clean-stageprofile-intl: clean-stageprofile-intl
17353clean-stageprofile: clean-stageprofile-intl
17354clean-stageprofile-intl:
e28c595f 17355 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17356 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17357 else \
a90ef4bf 17358 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17359 $(MAKE) stageprofile-start; \
17360 fi; \
a90ef4bf 17361 cd $(HOST_SUBDIR)/intl && \
b3676d82 17362 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17363@endif intl-bootstrap
e28c595f
JM
17364
17365
a90ef4bf
JM
17366.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17367.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17368maybe-all-stagefeedback-intl:
17369maybe-clean-stagefeedback-intl:
17370@if intl-bootstrap
17371maybe-all-stagefeedback-intl: all-stagefeedback-intl
17372all-stagefeedback: all-stagefeedback-intl
17373TARGET-stagefeedback-intl = $(TARGET-intl)
17374all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17375 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17376 @r=`${PWD_COMMAND}`; export r; \
17377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17378 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17379 $(HOST_EXPORTS) \
1f53ca9a 17380 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17381 cd $(HOST_SUBDIR)/intl && \
e28c595f 17382 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17383 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17384 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17385 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17386 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17387 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17388 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17389 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17390 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17391 $(TARGET-stagefeedback-intl)
e28c595f 17392
a90ef4bf
JM
17393maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17394clean-stagefeedback: clean-stagefeedback-intl
17395clean-stagefeedback-intl:
e28c595f 17396 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17397 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17398 else \
a90ef4bf 17399 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17400 $(MAKE) stagefeedback-start; \
17401 fi; \
a90ef4bf 17402 cd $(HOST_SUBDIR)/intl && \
b3676d82 17403 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17404@endif intl-bootstrap
e28c595f
JM
17405
17406
17407
17408
17409
a90ef4bf
JM
17410.PHONY: check-intl maybe-check-intl
17411maybe-check-intl:
17412@if intl
17413maybe-check-intl: check-intl
e28c595f 17414
a90ef4bf 17415check-intl:
e28c595f
JM
17416 @: $(MAKE); $(unstage)
17417 @r=`${PWD_COMMAND}`; export r; \
17418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17419 $(HOST_EXPORTS) \
a90ef4bf 17420 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17421 $(MAKE) $(FLAGS_TO_PASS) check)
17422
a90ef4bf 17423@endif intl
e28c595f 17424
a90ef4bf
JM
17425.PHONY: install-intl maybe-install-intl
17426maybe-install-intl:
17427@if intl
17428maybe-install-intl: install-intl
e28c595f 17429
a90ef4bf
JM
17430install-intl: installdirs
17431 @: $(MAKE); $(unstage)
17432 @r=`${PWD_COMMAND}`; export r; \
17433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17434 $(HOST_EXPORTS) \
17435 (cd $(HOST_SUBDIR)/intl && \
17436 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17437
a90ef4bf 17438@endif intl
e28c595f 17439
a90ef4bf
JM
17440.PHONY: install-strip-intl maybe-install-strip-intl
17441maybe-install-strip-intl:
17442@if intl
17443maybe-install-strip-intl: install-strip-intl
9b980aa1 17444
a90ef4bf
JM
17445install-strip-intl: installdirs
17446 @: $(MAKE); $(unstage)
17447 @r=`${PWD_COMMAND}`; export r; \
17448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17449 $(HOST_EXPORTS) \
17450 (cd $(HOST_SUBDIR)/intl && \
17451 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17452
a90ef4bf 17453@endif intl
9b980aa1 17454
e28c595f
JM
17455# Other targets (info, dvi, pdf, etc.)
17456
a90ef4bf
JM
17457.PHONY: maybe-info-intl info-intl
17458maybe-info-intl:
17459@if intl
17460maybe-info-intl: info-intl
e28c595f 17461
a90ef4bf
JM
17462info-intl: \
17463 configure-intl
17464 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17465 r=`${PWD_COMMAND}`; export r; \
17466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17467 $(HOST_EXPORTS) \
17468 for flag in $(EXTRA_HOST_FLAGS) ; do \
17469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17470 done; \
a90ef4bf
JM
17471 echo "Doing info in intl" ; \
17472 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17475 "RANLIB=$${RANLIB}" \
17476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17477 info) \
17478 || exit 1
17479
a90ef4bf 17480@endif intl
e28c595f 17481
a90ef4bf
JM
17482.PHONY: maybe-dvi-intl dvi-intl
17483maybe-dvi-intl:
17484@if intl
17485maybe-dvi-intl: dvi-intl
e28c595f 17486
a90ef4bf
JM
17487dvi-intl: \
17488 configure-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 dvi 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 dvi) \
17503 || exit 1
17504
a90ef4bf 17505@endif intl
e28c595f 17506
a90ef4bf
JM
17507.PHONY: maybe-pdf-intl pdf-intl
17508maybe-pdf-intl:
17509@if intl
17510maybe-pdf-intl: pdf-intl
e28c595f 17511
a90ef4bf
JM
17512pdf-intl: \
17513 configure-intl
17514 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17515 r=`${PWD_COMMAND}`; export r; \
17516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17517 $(HOST_EXPORTS) \
17518 for flag in $(EXTRA_HOST_FLAGS) ; do \
17519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17520 done; \
a90ef4bf
JM
17521 echo "Doing pdf in intl" ; \
17522 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17525 "RANLIB=$${RANLIB}" \
17526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17527 pdf) \
17528 || exit 1
17529
a90ef4bf 17530@endif intl
e28c595f 17531
a90ef4bf
JM
17532.PHONY: maybe-html-intl html-intl
17533maybe-html-intl:
17534@if intl
17535maybe-html-intl: html-intl
e28c595f 17536
a90ef4bf
JM
17537html-intl: \
17538 configure-intl
17539 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17540 r=`${PWD_COMMAND}`; export r; \
17541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17542 $(HOST_EXPORTS) \
17543 for flag in $(EXTRA_HOST_FLAGS) ; do \
17544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17545 done; \
a90ef4bf
JM
17546 echo "Doing html in intl" ; \
17547 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17550 "RANLIB=$${RANLIB}" \
17551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17552 html) \
17553 || exit 1
17554
a90ef4bf 17555@endif intl
e28c595f 17556
a90ef4bf
JM
17557.PHONY: maybe-TAGS-intl TAGS-intl
17558maybe-TAGS-intl:
17559@if intl
17560maybe-TAGS-intl: TAGS-intl
e28c595f 17561
a90ef4bf
JM
17562TAGS-intl: \
17563 configure-intl
17564 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17565 r=`${PWD_COMMAND}`; export r; \
17566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17567 $(HOST_EXPORTS) \
17568 for flag in $(EXTRA_HOST_FLAGS) ; do \
17569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17570 done; \
a90ef4bf
JM
17571 echo "Doing TAGS in intl" ; \
17572 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17575 "RANLIB=$${RANLIB}" \
17576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17577 TAGS) \
17578 || exit 1
17579
a90ef4bf 17580@endif intl
e28c595f 17581
a90ef4bf
JM
17582.PHONY: maybe-install-info-intl install-info-intl
17583maybe-install-info-intl:
17584@if intl
17585maybe-install-info-intl: install-info-intl
e28c595f 17586
a90ef4bf
JM
17587install-info-intl: \
17588 configure-intl \
17589 info-intl
17590 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17591 r=`${PWD_COMMAND}`; export r; \
17592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17593 $(HOST_EXPORTS) \
17594 for flag in $(EXTRA_HOST_FLAGS) ; do \
17595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17596 done; \
a90ef4bf
JM
17597 echo "Doing install-info in intl" ; \
17598 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17601 "RANLIB=$${RANLIB}" \
17602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17603 install-info) \
17604 || exit 1
17605
a90ef4bf 17606@endif intl
e28c595f 17607
a90ef4bf
JM
17608.PHONY: maybe-install-pdf-intl install-pdf-intl
17609maybe-install-pdf-intl:
17610@if intl
17611maybe-install-pdf-intl: install-pdf-intl
e28c595f 17612
a90ef4bf
JM
17613install-pdf-intl: \
17614 configure-intl \
17615 pdf-intl
17616 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17617 r=`${PWD_COMMAND}`; export r; \
17618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17619 $(HOST_EXPORTS) \
17620 for flag in $(EXTRA_HOST_FLAGS) ; do \
17621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17622 done; \
a90ef4bf
JM
17623 echo "Doing install-pdf in intl" ; \
17624 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17627 "RANLIB=$${RANLIB}" \
17628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17629 install-pdf) \
17630 || exit 1
17631
a90ef4bf 17632@endif intl
e28c595f 17633
a90ef4bf
JM
17634.PHONY: maybe-install-html-intl install-html-intl
17635maybe-install-html-intl:
17636@if intl
17637maybe-install-html-intl: install-html-intl
e28c595f 17638
a90ef4bf
JM
17639install-html-intl: \
17640 configure-intl \
17641 html-intl
17642 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17643 r=`${PWD_COMMAND}`; export r; \
17644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17645 $(HOST_EXPORTS) \
17646 for flag in $(EXTRA_HOST_FLAGS) ; do \
17647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17648 done; \
a90ef4bf
JM
17649 echo "Doing install-html in intl" ; \
17650 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17653 "RANLIB=$${RANLIB}" \
17654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17655 install-html) \
17656 || exit 1
17657
a90ef4bf 17658@endif intl
e28c595f 17659
a90ef4bf
JM
17660.PHONY: maybe-installcheck-intl installcheck-intl
17661maybe-installcheck-intl:
17662@if intl
17663maybe-installcheck-intl: installcheck-intl
e28c595f 17664
a90ef4bf
JM
17665installcheck-intl: \
17666 configure-intl
17667 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17668 r=`${PWD_COMMAND}`; export r; \
17669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17670 $(HOST_EXPORTS) \
17671 for flag in $(EXTRA_HOST_FLAGS) ; do \
17672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17673 done; \
a90ef4bf
JM
17674 echo "Doing installcheck in intl" ; \
17675 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
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 installcheck) \
17681 || exit 1
17682
a90ef4bf 17683@endif intl
e28c595f 17684
a90ef4bf
JM
17685.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17686maybe-mostlyclean-intl:
17687@if intl
17688maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17689
a90ef4bf
JM
17690mostlyclean-intl:
17691 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17692 r=`${PWD_COMMAND}`; export r; \
17693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17694 $(HOST_EXPORTS) \
17695 for flag in $(EXTRA_HOST_FLAGS) ; do \
17696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17697 done; \
a90ef4bf
JM
17698 echo "Doing mostlyclean in intl" ; \
17699 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17702 "RANLIB=$${RANLIB}" \
17703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17704 mostlyclean) \
17705 || exit 1
17706
a90ef4bf 17707@endif intl
e28c595f 17708
a90ef4bf
JM
17709.PHONY: maybe-clean-intl clean-intl
17710maybe-clean-intl:
17711@if intl
17712maybe-clean-intl: clean-intl
e28c595f 17713
a90ef4bf
JM
17714clean-intl:
17715 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17716 r=`${PWD_COMMAND}`; export r; \
17717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17718 $(HOST_EXPORTS) \
17719 for flag in $(EXTRA_HOST_FLAGS) ; do \
17720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17721 done; \
a90ef4bf
JM
17722 echo "Doing clean in intl" ; \
17723 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17726 "RANLIB=$${RANLIB}" \
17727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17728 clean) \
17729 || exit 1
17730
a90ef4bf 17731@endif intl
e28c595f 17732
a90ef4bf
JM
17733.PHONY: maybe-distclean-intl distclean-intl
17734maybe-distclean-intl:
17735@if intl
17736maybe-distclean-intl: distclean-intl
e28c595f 17737
a90ef4bf
JM
17738distclean-intl:
17739 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17740 r=`${PWD_COMMAND}`; export r; \
17741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17742 $(HOST_EXPORTS) \
17743 for flag in $(EXTRA_HOST_FLAGS) ; do \
17744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17745 done; \
a90ef4bf
JM
17746 echo "Doing distclean in intl" ; \
17747 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17750 "RANLIB=$${RANLIB}" \
17751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17752 distclean) \
17753 || exit 1
17754
a90ef4bf 17755@endif intl
e28c595f 17756
a90ef4bf
JM
17757.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17758maybe-maintainer-clean-intl:
17759@if intl
17760maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17761
a90ef4bf
JM
17762maintainer-clean-intl:
17763 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17764 r=`${PWD_COMMAND}`; export r; \
17765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17766 $(HOST_EXPORTS) \
17767 for flag in $(EXTRA_HOST_FLAGS) ; do \
17768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17769 done; \
a90ef4bf
JM
17770 echo "Doing maintainer-clean in intl" ; \
17771 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17774 "RANLIB=$${RANLIB}" \
17775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17776 maintainer-clean) \
17777 || exit 1
17778
a90ef4bf 17779@endif intl
e28c595f
JM
17780
17781
17782
a90ef4bf
JM
17783.PHONY: configure-tcl maybe-configure-tcl
17784maybe-configure-tcl:
e8a5fa9c 17785@if gcc-bootstrap
a90ef4bf 17786configure-tcl: stage_current
e8a5fa9c 17787@endif gcc-bootstrap
a90ef4bf
JM
17788@if tcl
17789maybe-configure-tcl: configure-tcl
17790configure-tcl:
17791 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17792 @r=`${PWD_COMMAND}`; export r; \
17793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17794 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
17795 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
1f53ca9a 17796 $(HOST_EXPORTS) \
a90ef4bf
JM
17797 echo Configuring in $(HOST_SUBDIR)/tcl; \
17798 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17799 case $(srcdir) in \
17800 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17801 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17802 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17803 esac; \
a90ef4bf
JM
17804 srcdiroption="--srcdir=$${topdir}/tcl"; \
17805 libsrcdir="$$s/tcl"; \
e8a5fa9c
RW
17806 $(SHELL) $${libsrcdir}/configure \
17807 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 17808 --target=${target_alias} $${srcdiroption} \
e8a5fa9c 17809 || exit 1
a90ef4bf 17810@endif tcl
e8a5fa9c
RW
17811
17812
17813
e8a5fa9c 17814
e8a5fa9c 17815
a90ef4bf
JM
17816.PHONY: all-tcl maybe-all-tcl
17817maybe-all-tcl:
17818@if gcc-bootstrap
17819all-tcl: stage_current
17820@endif gcc-bootstrap
17821@if tcl
17822TARGET-tcl=all
17823maybe-all-tcl: all-tcl
17824all-tcl: configure-tcl
17825 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17826 @r=`${PWD_COMMAND}`; export r; \
17827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17828 $(HOST_EXPORTS) \
17829 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17830 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17831 $(TARGET-tcl))
17832@endif tcl
e8a5fa9c 17833
a90ef4bf
JM
17834
17835
17836
17837.PHONY: check-tcl maybe-check-tcl
17838maybe-check-tcl:
17839@if tcl
17840maybe-check-tcl: check-tcl
17841
17842check-tcl:
17843 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17844 @r=`${PWD_COMMAND}`; export r; \
17845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17846 $(HOST_EXPORTS) \
a90ef4bf
JM
17847 (cd $(HOST_SUBDIR)/tcl && \
17848 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17849
a90ef4bf
JM
17850@endif tcl
17851
17852.PHONY: install-tcl maybe-install-tcl
17853maybe-install-tcl:
17854@if tcl
17855maybe-install-tcl: install-tcl
17856
17857install-tcl: installdirs
17858 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17859 @r=`${PWD_COMMAND}`; export r; \
17860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17861 $(HOST_EXPORTS) \
a90ef4bf
JM
17862 (cd $(HOST_SUBDIR)/tcl && \
17863 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17864
a90ef4bf
JM
17865@endif tcl
17866
17867.PHONY: install-strip-tcl maybe-install-strip-tcl
17868maybe-install-strip-tcl:
17869@if tcl
17870maybe-install-strip-tcl: install-strip-tcl
17871
17872install-strip-tcl: installdirs
17873 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17874 @r=`${PWD_COMMAND}`; export r; \
17875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17876 $(HOST_EXPORTS) \
a90ef4bf
JM
17877 (cd $(HOST_SUBDIR)/tcl && \
17878 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17879
a90ef4bf 17880@endif tcl
e8a5fa9c 17881
a90ef4bf 17882# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17883
a90ef4bf
JM
17884.PHONY: maybe-info-tcl info-tcl
17885maybe-info-tcl:
17886@if tcl
17887maybe-info-tcl: info-tcl
e8a5fa9c 17888
a90ef4bf
JM
17889info-tcl: \
17890 configure-tcl
17891 @: $(MAKE); $(unstage)
17892 @[ -f ./tcl/Makefile ] || exit 0; \
17893 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17895 $(HOST_EXPORTS) \
17896 for flag in $(EXTRA_HOST_FLAGS) ; do \
17897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17898 done; \
17899 echo "Doing info in tcl" ; \
17900 (cd $(HOST_SUBDIR)/tcl && \
17901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17903 "RANLIB=$${RANLIB}" \
17904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17905 info) \
17906 || exit 1
e8a5fa9c 17907
a90ef4bf 17908@endif tcl
e8a5fa9c 17909
a90ef4bf
JM
17910.PHONY: maybe-dvi-tcl dvi-tcl
17911maybe-dvi-tcl:
17912@if tcl
17913maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17914
a90ef4bf
JM
17915dvi-tcl: \
17916 configure-tcl
17917 @: $(MAKE); $(unstage)
17918 @[ -f ./tcl/Makefile ] || exit 0; \
17919 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17921 $(HOST_EXPORTS) \
17922 for flag in $(EXTRA_HOST_FLAGS) ; do \
17923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17924 done; \
17925 echo "Doing dvi in tcl" ; \
17926 (cd $(HOST_SUBDIR)/tcl && \
17927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17929 "RANLIB=$${RANLIB}" \
17930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17931 dvi) \
17932 || exit 1
e8a5fa9c 17933
a90ef4bf 17934@endif tcl
e8a5fa9c 17935
a90ef4bf
JM
17936.PHONY: maybe-pdf-tcl pdf-tcl
17937maybe-pdf-tcl:
17938@if tcl
17939maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17940
a90ef4bf
JM
17941pdf-tcl: \
17942 configure-tcl
17943 @: $(MAKE); $(unstage)
17944 @[ -f ./tcl/Makefile ] || exit 0; \
17945 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17947 $(HOST_EXPORTS) \
a90ef4bf
JM
17948 for flag in $(EXTRA_HOST_FLAGS) ; do \
17949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17950 done; \
17951 echo "Doing pdf in tcl" ; \
17952 (cd $(HOST_SUBDIR)/tcl && \
17953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17955 "RANLIB=$${RANLIB}" \
17956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17957 pdf) \
17958 || exit 1
e8a5fa9c 17959
a90ef4bf 17960@endif tcl
e8a5fa9c 17961
a90ef4bf
JM
17962.PHONY: maybe-html-tcl html-tcl
17963maybe-html-tcl:
17964@if tcl
17965maybe-html-tcl: html-tcl
e8a5fa9c 17966
a90ef4bf
JM
17967html-tcl: \
17968 configure-tcl
17969 @: $(MAKE); $(unstage)
17970 @[ -f ./tcl/Makefile ] || exit 0; \
17971 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17973 $(HOST_EXPORTS) \
a90ef4bf
JM
17974 for flag in $(EXTRA_HOST_FLAGS) ; do \
17975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17976 done; \
17977 echo "Doing html in tcl" ; \
17978 (cd $(HOST_SUBDIR)/tcl && \
17979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17981 "RANLIB=$${RANLIB}" \
17982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17983 html) \
17984 || exit 1
e8a5fa9c 17985
a90ef4bf 17986@endif tcl
e8a5fa9c 17987
a90ef4bf
JM
17988.PHONY: maybe-TAGS-tcl TAGS-tcl
17989maybe-TAGS-tcl:
17990@if tcl
17991maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17992
a90ef4bf
JM
17993TAGS-tcl: \
17994 configure-tcl
17995 @: $(MAKE); $(unstage)
17996 @[ -f ./tcl/Makefile ] || exit 0; \
17997 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17999 $(HOST_EXPORTS) \
a90ef4bf
JM
18000 for flag in $(EXTRA_HOST_FLAGS) ; do \
18001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18002 done; \
18003 echo "Doing TAGS in tcl" ; \
18004 (cd $(HOST_SUBDIR)/tcl && \
18005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18007 "RANLIB=$${RANLIB}" \
18008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18009 TAGS) \
18010 || exit 1
e8a5fa9c 18011
a90ef4bf 18012@endif tcl
e8a5fa9c 18013
a90ef4bf
JM
18014.PHONY: maybe-install-info-tcl install-info-tcl
18015maybe-install-info-tcl:
18016@if tcl
18017maybe-install-info-tcl: install-info-tcl
e8a5fa9c 18018
a90ef4bf
JM
18019install-info-tcl: \
18020 configure-tcl \
18021 info-tcl
e8a5fa9c 18022 @: $(MAKE); $(unstage)
a90ef4bf 18023 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18024 r=`${PWD_COMMAND}`; export r; \
18025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18026 $(HOST_EXPORTS) \
18027 for flag in $(EXTRA_HOST_FLAGS) ; do \
18028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18029 done; \
a90ef4bf
JM
18030 echo "Doing install-info in tcl" ; \
18031 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18034 "RANLIB=$${RANLIB}" \
18035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18036 install-info) \
e8a5fa9c
RW
18037 || exit 1
18038
a90ef4bf 18039@endif tcl
e8a5fa9c 18040
a90ef4bf
JM
18041.PHONY: maybe-install-pdf-tcl install-pdf-tcl
18042maybe-install-pdf-tcl:
18043@if tcl
18044maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 18045
a90ef4bf
JM
18046install-pdf-tcl: \
18047 configure-tcl \
18048 pdf-tcl
18049 @: $(MAKE); $(unstage)
18050 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18051 r=`${PWD_COMMAND}`; export r; \
18052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18053 $(HOST_EXPORTS) \
18054 for flag in $(EXTRA_HOST_FLAGS) ; do \
18055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18056 done; \
a90ef4bf
JM
18057 echo "Doing install-pdf in tcl" ; \
18058 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18061 "RANLIB=$${RANLIB}" \
18062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18063 install-pdf) \
e8a5fa9c
RW
18064 || exit 1
18065
a90ef4bf 18066@endif tcl
e8a5fa9c 18067
a90ef4bf
JM
18068.PHONY: maybe-install-html-tcl install-html-tcl
18069maybe-install-html-tcl:
18070@if tcl
18071maybe-install-html-tcl: install-html-tcl
e8a5fa9c 18072
a90ef4bf
JM
18073install-html-tcl: \
18074 configure-tcl \
18075 html-tcl
18076 @: $(MAKE); $(unstage)
18077 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18078 r=`${PWD_COMMAND}`; export r; \
18079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18080 $(HOST_EXPORTS) \
18081 for flag in $(EXTRA_HOST_FLAGS) ; do \
18082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18083 done; \
a90ef4bf
JM
18084 echo "Doing install-html in tcl" ; \
18085 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18088 "RANLIB=$${RANLIB}" \
18089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18090 install-html) \
e8a5fa9c
RW
18091 || exit 1
18092
a90ef4bf 18093@endif tcl
e8a5fa9c 18094
a90ef4bf
JM
18095.PHONY: maybe-installcheck-tcl installcheck-tcl
18096maybe-installcheck-tcl:
18097@if tcl
18098maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 18099
a90ef4bf
JM
18100installcheck-tcl: \
18101 configure-tcl
18102 @: $(MAKE); $(unstage)
18103 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18104 r=`${PWD_COMMAND}`; export r; \
18105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18106 $(HOST_EXPORTS) \
18107 for flag in $(EXTRA_HOST_FLAGS) ; do \
18108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18109 done; \
a90ef4bf
JM
18110 echo "Doing installcheck in tcl" ; \
18111 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18114 "RANLIB=$${RANLIB}" \
18115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18116 installcheck) \
e8a5fa9c
RW
18117 || exit 1
18118
a90ef4bf 18119@endif tcl
e8a5fa9c 18120
a90ef4bf
JM
18121.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
18122maybe-mostlyclean-tcl:
18123@if tcl
18124maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 18125
a90ef4bf
JM
18126# tcl doesn't support mostlyclean.
18127mostlyclean-tcl:
18128
18129@endif tcl
18130
18131.PHONY: maybe-clean-tcl clean-tcl
18132maybe-clean-tcl:
18133@if tcl
18134maybe-clean-tcl: clean-tcl
18135
18136clean-tcl:
18137 @: $(MAKE); $(unstage)
18138 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18139 r=`${PWD_COMMAND}`; export r; \
18140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18141 $(HOST_EXPORTS) \
18142 for flag in $(EXTRA_HOST_FLAGS) ; do \
18143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18144 done; \
a90ef4bf
JM
18145 echo "Doing clean in tcl" ; \
18146 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18149 "RANLIB=$${RANLIB}" \
18150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18151 clean) \
e8a5fa9c
RW
18152 || exit 1
18153
a90ef4bf 18154@endif tcl
e8a5fa9c 18155
a90ef4bf
JM
18156.PHONY: maybe-distclean-tcl distclean-tcl
18157maybe-distclean-tcl:
18158@if tcl
18159maybe-distclean-tcl: distclean-tcl
e8a5fa9c 18160
a90ef4bf
JM
18161distclean-tcl:
18162 @: $(MAKE); $(unstage)
18163 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18164 r=`${PWD_COMMAND}`; export r; \
18165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18166 $(HOST_EXPORTS) \
18167 for flag in $(EXTRA_HOST_FLAGS) ; do \
18168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18169 done; \
a90ef4bf
JM
18170 echo "Doing distclean in tcl" ; \
18171 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18174 "RANLIB=$${RANLIB}" \
18175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18176 distclean) \
e8a5fa9c
RW
18177 || exit 1
18178
a90ef4bf 18179@endif tcl
e8a5fa9c 18180
a90ef4bf
JM
18181.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
18182maybe-maintainer-clean-tcl:
18183@if tcl
18184maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 18185
a90ef4bf
JM
18186maintainer-clean-tcl:
18187 @: $(MAKE); $(unstage)
18188 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18189 r=`${PWD_COMMAND}`; export r; \
18190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18191 $(HOST_EXPORTS) \
18192 for flag in $(EXTRA_HOST_FLAGS) ; do \
18193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18194 done; \
a90ef4bf
JM
18195 echo "Doing maintainer-clean in tcl" ; \
18196 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18199 "RANLIB=$${RANLIB}" \
18200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18201 maintainer-clean) \
e8a5fa9c
RW
18202 || exit 1
18203
a90ef4bf 18204@endif tcl
e8a5fa9c 18205
e8a5fa9c 18206
a90ef4bf
JM
18207
18208.PHONY: configure-itcl maybe-configure-itcl
18209maybe-configure-itcl:
18210@if gcc-bootstrap
18211configure-itcl: stage_current
18212@endif gcc-bootstrap
18213@if itcl
18214maybe-configure-itcl: configure-itcl
18215configure-itcl:
18216 @: $(MAKE); $(unstage)
18217 @r=`${PWD_COMMAND}`; export r; \
18218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18219 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
18220 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
18221 $(HOST_EXPORTS) \
18222 echo Configuring in $(HOST_SUBDIR)/itcl; \
18223 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18224 case $(srcdir) in \
18225 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18226 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18227 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18228 esac; \
18229 srcdiroption="--srcdir=$${topdir}/itcl"; \
18230 libsrcdir="$$s/itcl"; \
18231 $(SHELL) $${libsrcdir}/configure \
18232 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18233 --target=${target_alias} $${srcdiroption} \
18234 || exit 1
18235@endif itcl
18236
18237
18238
18239
18240
18241.PHONY: all-itcl maybe-all-itcl
18242maybe-all-itcl:
18243@if gcc-bootstrap
18244all-itcl: stage_current
18245@endif gcc-bootstrap
18246@if itcl
18247TARGET-itcl=all
18248maybe-all-itcl: all-itcl
18249all-itcl: configure-itcl
18250 @: $(MAKE); $(unstage)
18251 @r=`${PWD_COMMAND}`; export r; \
18252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18253 $(HOST_EXPORTS) \
18254 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18255 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18256 $(TARGET-itcl))
18257@endif itcl
18258
18259
18260
18261
18262.PHONY: check-itcl maybe-check-itcl
18263maybe-check-itcl:
18264@if itcl
18265maybe-check-itcl: check-itcl
18266
18267check-itcl:
18268 @: $(MAKE); $(unstage)
18269 @r=`${PWD_COMMAND}`; export r; \
18270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18271 $(HOST_EXPORTS) \
18272 (cd $(HOST_SUBDIR)/itcl && \
18273 $(MAKE) $(FLAGS_TO_PASS) check)
18274
18275@endif itcl
18276
18277.PHONY: install-itcl maybe-install-itcl
18278maybe-install-itcl:
18279@if itcl
18280maybe-install-itcl: install-itcl
18281
18282install-itcl: installdirs
18283 @: $(MAKE); $(unstage)
18284 @r=`${PWD_COMMAND}`; export r; \
18285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18286 $(HOST_EXPORTS) \
18287 (cd $(HOST_SUBDIR)/itcl && \
18288 $(MAKE) $(FLAGS_TO_PASS) install)
18289
18290@endif itcl
18291
18292.PHONY: install-strip-itcl maybe-install-strip-itcl
18293maybe-install-strip-itcl:
18294@if itcl
18295maybe-install-strip-itcl: install-strip-itcl
18296
18297install-strip-itcl: installdirs
18298 @: $(MAKE); $(unstage)
18299 @r=`${PWD_COMMAND}`; export r; \
18300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18301 $(HOST_EXPORTS) \
18302 (cd $(HOST_SUBDIR)/itcl && \
18303 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18304
18305@endif itcl
18306
18307# Other targets (info, dvi, pdf, etc.)
18308
18309.PHONY: maybe-info-itcl info-itcl
18310maybe-info-itcl:
18311@if itcl
18312maybe-info-itcl: info-itcl
18313
18314info-itcl: \
18315 configure-itcl
18316 @: $(MAKE); $(unstage)
18317 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18318 r=`${PWD_COMMAND}`; export r; \
18319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18320 $(HOST_EXPORTS) \
18321 for flag in $(EXTRA_HOST_FLAGS) ; do \
18322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18323 done; \
a90ef4bf
JM
18324 echo "Doing info in itcl" ; \
18325 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18328 "RANLIB=$${RANLIB}" \
18329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18330 info) \
e8a5fa9c
RW
18331 || exit 1
18332
a90ef4bf 18333@endif itcl
e8a5fa9c 18334
a90ef4bf
JM
18335.PHONY: maybe-dvi-itcl dvi-itcl
18336maybe-dvi-itcl:
18337@if itcl
18338maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18339
a90ef4bf
JM
18340dvi-itcl: \
18341 configure-itcl
18342 @: $(MAKE); $(unstage)
18343 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18344 r=`${PWD_COMMAND}`; export r; \
18345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18346 $(HOST_EXPORTS) \
18347 for flag in $(EXTRA_HOST_FLAGS) ; do \
18348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18349 done; \
a90ef4bf
JM
18350 echo "Doing dvi in itcl" ; \
18351 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18354 "RANLIB=$${RANLIB}" \
18355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18356 dvi) \
e8a5fa9c
RW
18357 || exit 1
18358
a90ef4bf 18359@endif itcl
e8a5fa9c 18360
a90ef4bf
JM
18361.PHONY: maybe-pdf-itcl pdf-itcl
18362maybe-pdf-itcl:
18363@if itcl
18364maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18365
a90ef4bf
JM
18366pdf-itcl: \
18367 configure-itcl
18368 @: $(MAKE); $(unstage)
18369 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18370 r=`${PWD_COMMAND}`; export r; \
18371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18372 $(HOST_EXPORTS) \
18373 for flag in $(EXTRA_HOST_FLAGS) ; do \
18374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18375 done; \
a90ef4bf
JM
18376 echo "Doing pdf in itcl" ; \
18377 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18380 "RANLIB=$${RANLIB}" \
18381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18382 pdf) \
e8a5fa9c
RW
18383 || exit 1
18384
a90ef4bf 18385@endif itcl
e8a5fa9c 18386
a90ef4bf
JM
18387.PHONY: maybe-html-itcl html-itcl
18388maybe-html-itcl:
18389@if itcl
18390maybe-html-itcl: html-itcl
e8a5fa9c 18391
a90ef4bf
JM
18392html-itcl: \
18393 configure-itcl
18394 @: $(MAKE); $(unstage)
18395 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18396 r=`${PWD_COMMAND}`; export r; \
18397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18398 $(HOST_EXPORTS) \
18399 for flag in $(EXTRA_HOST_FLAGS) ; do \
18400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18401 done; \
a90ef4bf
JM
18402 echo "Doing html in itcl" ; \
18403 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18406 "RANLIB=$${RANLIB}" \
18407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18408 html) \
e8a5fa9c
RW
18409 || exit 1
18410
a90ef4bf 18411@endif itcl
e8a5fa9c 18412
a90ef4bf
JM
18413.PHONY: maybe-TAGS-itcl TAGS-itcl
18414maybe-TAGS-itcl:
18415@if itcl
18416maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18417
a90ef4bf
JM
18418TAGS-itcl: \
18419 configure-itcl
18420 @: $(MAKE); $(unstage)
18421 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18422 r=`${PWD_COMMAND}`; export r; \
18423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18424 $(HOST_EXPORTS) \
18425 for flag in $(EXTRA_HOST_FLAGS) ; do \
18426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18427 done; \
a90ef4bf
JM
18428 echo "Doing TAGS in itcl" ; \
18429 (cd $(HOST_SUBDIR)/itcl && \
18430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18432 "RANLIB=$${RANLIB}" \
18433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18434 TAGS) \
18435 || exit 1
18436
18437@endif itcl
18438
18439.PHONY: maybe-install-info-itcl install-info-itcl
18440maybe-install-info-itcl:
18441@if itcl
18442maybe-install-info-itcl: install-info-itcl
18443
18444install-info-itcl: \
18445 configure-itcl \
18446 info-itcl
18447 @: $(MAKE); $(unstage)
18448 @[ -f ./itcl/Makefile ] || exit 0; \
18449 r=`${PWD_COMMAND}`; export r; \
18450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18451 $(HOST_EXPORTS) \
18452 for flag in $(EXTRA_HOST_FLAGS) ; do \
18453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18454 done; \
18455 echo "Doing install-info in itcl" ; \
18456 (cd $(HOST_SUBDIR)/itcl && \
18457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18459 "RANLIB=$${RANLIB}" \
18460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18461 install-info) \
18462 || exit 1
18463
18464@endif itcl
18465
18466.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18467maybe-install-pdf-itcl:
18468@if itcl
18469maybe-install-pdf-itcl: install-pdf-itcl
18470
18471install-pdf-itcl: \
18472 configure-itcl \
18473 pdf-itcl
18474 @: $(MAKE); $(unstage)
18475 @[ -f ./itcl/Makefile ] || exit 0; \
18476 r=`${PWD_COMMAND}`; export r; \
18477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18478 $(HOST_EXPORTS) \
18479 for flag in $(EXTRA_HOST_FLAGS) ; do \
18480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18481 done; \
18482 echo "Doing install-pdf in itcl" ; \
18483 (cd $(HOST_SUBDIR)/itcl && \
18484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18486 "RANLIB=$${RANLIB}" \
18487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18488 install-pdf) \
18489 || exit 1
18490
18491@endif itcl
18492
18493.PHONY: maybe-install-html-itcl install-html-itcl
18494maybe-install-html-itcl:
18495@if itcl
18496maybe-install-html-itcl: install-html-itcl
18497
18498install-html-itcl: \
18499 configure-itcl \
18500 html-itcl
18501 @: $(MAKE); $(unstage)
18502 @[ -f ./itcl/Makefile ] || exit 0; \
18503 r=`${PWD_COMMAND}`; export r; \
18504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18505 $(HOST_EXPORTS) \
18506 for flag in $(EXTRA_HOST_FLAGS) ; do \
18507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18508 done; \
18509 echo "Doing install-html in itcl" ; \
18510 (cd $(HOST_SUBDIR)/itcl && \
18511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18513 "RANLIB=$${RANLIB}" \
18514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18515 install-html) \
18516 || exit 1
18517
18518@endif itcl
18519
18520.PHONY: maybe-installcheck-itcl installcheck-itcl
18521maybe-installcheck-itcl:
18522@if itcl
18523maybe-installcheck-itcl: installcheck-itcl
18524
18525installcheck-itcl: \
18526 configure-itcl
18527 @: $(MAKE); $(unstage)
18528 @[ -f ./itcl/Makefile ] || exit 0; \
18529 r=`${PWD_COMMAND}`; export r; \
18530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18531 $(HOST_EXPORTS) \
18532 for flag in $(EXTRA_HOST_FLAGS) ; do \
18533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18534 done; \
18535 echo "Doing installcheck in itcl" ; \
18536 (cd $(HOST_SUBDIR)/itcl && \
18537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18539 "RANLIB=$${RANLIB}" \
18540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18541 installcheck) \
18542 || exit 1
18543
18544@endif itcl
18545
18546.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18547maybe-mostlyclean-itcl:
18548@if itcl
18549maybe-mostlyclean-itcl: mostlyclean-itcl
18550
18551mostlyclean-itcl:
18552 @: $(MAKE); $(unstage)
18553 @[ -f ./itcl/Makefile ] || exit 0; \
18554 r=`${PWD_COMMAND}`; export r; \
18555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18556 $(HOST_EXPORTS) \
18557 for flag in $(EXTRA_HOST_FLAGS) ; do \
18558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18559 done; \
18560 echo "Doing mostlyclean in itcl" ; \
18561 (cd $(HOST_SUBDIR)/itcl && \
18562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18564 "RANLIB=$${RANLIB}" \
18565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18566 mostlyclean) \
18567 || exit 1
18568
18569@endif itcl
18570
18571.PHONY: maybe-clean-itcl clean-itcl
18572maybe-clean-itcl:
18573@if itcl
18574maybe-clean-itcl: clean-itcl
18575
18576clean-itcl:
18577 @: $(MAKE); $(unstage)
18578 @[ -f ./itcl/Makefile ] || exit 0; \
18579 r=`${PWD_COMMAND}`; export r; \
18580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18581 $(HOST_EXPORTS) \
18582 for flag in $(EXTRA_HOST_FLAGS) ; do \
18583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18584 done; \
18585 echo "Doing clean in itcl" ; \
18586 (cd $(HOST_SUBDIR)/itcl && \
18587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18589 "RANLIB=$${RANLIB}" \
18590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18591 clean) \
18592 || exit 1
18593
18594@endif itcl
18595
18596.PHONY: maybe-distclean-itcl distclean-itcl
18597maybe-distclean-itcl:
18598@if itcl
18599maybe-distclean-itcl: distclean-itcl
18600
18601distclean-itcl:
18602 @: $(MAKE); $(unstage)
18603 @[ -f ./itcl/Makefile ] || exit 0; \
18604 r=`${PWD_COMMAND}`; export r; \
18605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18606 $(HOST_EXPORTS) \
18607 for flag in $(EXTRA_HOST_FLAGS) ; do \
18608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18609 done; \
18610 echo "Doing distclean in itcl" ; \
18611 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18614 "RANLIB=$${RANLIB}" \
18615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18616 distclean) \
18617 || exit 1
18618
a90ef4bf 18619@endif itcl
e8a5fa9c 18620
a90ef4bf
JM
18621.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18622maybe-maintainer-clean-itcl:
18623@if itcl
18624maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18625
a90ef4bf
JM
18626maintainer-clean-itcl:
18627 @: $(MAKE); $(unstage)
18628 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18629 r=`${PWD_COMMAND}`; export r; \
18630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18631 $(HOST_EXPORTS) \
18632 for flag in $(EXTRA_HOST_FLAGS) ; do \
18633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18634 done; \
a90ef4bf
JM
18635 echo "Doing maintainer-clean in itcl" ; \
18636 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18639 "RANLIB=$${RANLIB}" \
18640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18641 maintainer-clean) \
18642 || exit 1
18643
a90ef4bf 18644@endif itcl
e8a5fa9c
RW
18645
18646
18647
a90ef4bf
JM
18648.PHONY: configure-ld maybe-configure-ld
18649maybe-configure-ld:
e28c595f 18650@if gcc-bootstrap
a90ef4bf 18651configure-ld: stage_current
e28c595f 18652@endif gcc-bootstrap
a90ef4bf
JM
18653@if ld
18654maybe-configure-ld: configure-ld
18655configure-ld:
e28c595f
JM
18656 @r=`${PWD_COMMAND}`; export r; \
18657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18658 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
18659 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
1f53ca9a 18660 $(HOST_EXPORTS) \
a90ef4bf
JM
18661 echo Configuring in $(HOST_SUBDIR)/ld; \
18662 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18663 case $(srcdir) in \
18664 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18665 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18666 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18667 esac; \
a90ef4bf
JM
18668 srcdiroption="--srcdir=$${topdir}/ld"; \
18669 libsrcdir="$$s/ld"; \
e28c595f 18670 $(SHELL) $${libsrcdir}/configure \
1f53ca9a 18671 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 18672 --target=${target_alias} $${srcdiroption} \
e28c595f 18673 || exit 1
a90ef4bf 18674@endif ld
e28c595f
JM
18675
18676
18677
a90ef4bf
JM
18678.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18679maybe-configure-stage1-ld:
18680@if ld-bootstrap
18681maybe-configure-stage1-ld: configure-stage1-ld
18682configure-stage1-ld:
e28c595f 18683 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18684 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18685 @r=`${PWD_COMMAND}`; export r; \
18686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18687 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18688 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18689 $(HOST_EXPORTS) \
e28c595f 18690 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18691 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18692 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18693 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
18694 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18695 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18696 case $(srcdir) in \
18697 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18698 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18699 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18700 esac; \
a90ef4bf
JM
18701 srcdiroption="--srcdir=$${topdir}/ld"; \
18702 libsrcdir="$$s/ld"; \
e28c595f 18703 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
18704 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18705 --target=${target_alias} $${srcdiroption} \
a90ef4bf
JM
18706 $(STAGE1_CONFIGURE_FLAGS)
18707@endif ld-bootstrap
e28c595f 18708
a90ef4bf
JM
18709.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18710maybe-configure-stage2-ld:
18711@if ld-bootstrap
18712maybe-configure-stage2-ld: configure-stage2-ld
18713configure-stage2-ld:
e28c595f 18714 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18715 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18716 @r=`${PWD_COMMAND}`; export r; \
18717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18718 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18719 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18720 $(HOST_EXPORTS) \
1b05fbbd 18721 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18722 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18723 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18724 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18725 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
18726 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18727 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18728 case $(srcdir) in \
18729 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18730 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18731 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18732 esac; \
a90ef4bf
JM
18733 srcdiroption="--srcdir=$${topdir}/ld"; \
18734 libsrcdir="$$s/ld"; \
e28c595f 18735 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
18736 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18737 --target=${target_alias} $${srcdiroption} \
e28c595f 18738 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18739 $(STAGE2_CONFIGURE_FLAGS)
18740@endif ld-bootstrap
e28c595f 18741
a90ef4bf
JM
18742.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18743maybe-configure-stage3-ld:
18744@if ld-bootstrap
18745maybe-configure-stage3-ld: configure-stage3-ld
18746configure-stage3-ld:
e28c595f 18747 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18748 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18749 @r=`${PWD_COMMAND}`; export r; \
18750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18751 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18752 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18753 $(HOST_EXPORTS) \
1b05fbbd 18754 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18755 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18756 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18757 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18758 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
18759 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18760 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18761 case $(srcdir) in \
18762 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18763 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18764 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18765 esac; \
a90ef4bf
JM
18766 srcdiroption="--srcdir=$${topdir}/ld"; \
18767 libsrcdir="$$s/ld"; \
e28c595f 18768 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
18769 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18770 --target=${target_alias} $${srcdiroption} \
e28c595f 18771 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18772 $(STAGE3_CONFIGURE_FLAGS)
18773@endif ld-bootstrap
e28c595f 18774
a90ef4bf
JM
18775.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18776maybe-configure-stage4-ld:
18777@if ld-bootstrap
18778maybe-configure-stage4-ld: configure-stage4-ld
18779configure-stage4-ld:
e28c595f 18780 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18781 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18782 @r=`${PWD_COMMAND}`; export r; \
18783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18784 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18785 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18786 $(HOST_EXPORTS) \
1b05fbbd 18787 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18788 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18789 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18790 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18791 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
18792 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18793 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18794 case $(srcdir) in \
18795 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18796 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18797 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18798 esac; \
a90ef4bf
JM
18799 srcdiroption="--srcdir=$${topdir}/ld"; \
18800 libsrcdir="$$s/ld"; \
e28c595f 18801 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
18802 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18803 --target=${target_alias} $${srcdiroption} \
e28c595f 18804 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18805 $(STAGE4_CONFIGURE_FLAGS)
18806@endif ld-bootstrap
e28c595f 18807
a90ef4bf
JM
18808.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18809maybe-configure-stageprofile-ld:
18810@if ld-bootstrap
18811maybe-configure-stageprofile-ld: configure-stageprofile-ld
18812configure-stageprofile-ld:
e28c595f 18813 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18814 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18815 @r=`${PWD_COMMAND}`; export r; \
18816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18817 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18818 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18819 $(HOST_EXPORTS) \
1b05fbbd
AO
18820 $(POSTSTAGE1_HOST_EXPORTS) \
18821 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18822 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18823 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18824 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
18825 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18826 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18827 case $(srcdir) in \
18828 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18829 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18830 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18831 esac; \
a90ef4bf
JM
18832 srcdiroption="--srcdir=$${topdir}/ld"; \
18833 libsrcdir="$$s/ld"; \
e28c595f 18834 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
18835 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18836 --target=${target_alias} $${srcdiroption} \
e28c595f 18837 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18838 $(STAGEprofile_CONFIGURE_FLAGS)
18839@endif ld-bootstrap
e28c595f 18840
a90ef4bf
JM
18841.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18842maybe-configure-stagefeedback-ld:
18843@if ld-bootstrap
18844maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18845configure-stagefeedback-ld:
e28c595f 18846 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18847 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18848 @r=`${PWD_COMMAND}`; export r; \
18849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18850 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18851 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18852 $(HOST_EXPORTS) \
1b05fbbd
AO
18853 $(POSTSTAGE1_HOST_EXPORTS) \
18854 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18855 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18856 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18857 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
18858 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18859 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18860 case $(srcdir) in \
18861 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18862 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18863 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18864 esac; \
a90ef4bf
JM
18865 srcdiroption="--srcdir=$${topdir}/ld"; \
18866 libsrcdir="$$s/ld"; \
e28c595f 18867 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
18868 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18869 --target=${target_alias} $${srcdiroption} \
e28c595f 18870 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18871 $(STAGEfeedback_CONFIGURE_FLAGS)
18872@endif ld-bootstrap
e28c595f
JM
18873
18874
18875
18876
18877
a90ef4bf
JM
18878.PHONY: all-ld maybe-all-ld
18879maybe-all-ld:
e28c595f 18880@if gcc-bootstrap
a90ef4bf 18881all-ld: stage_current
e28c595f 18882@endif gcc-bootstrap
a90ef4bf
JM
18883@if ld
18884TARGET-ld=all
18885maybe-all-ld: all-ld
18886all-ld: configure-ld
e28c595f
JM
18887 @r=`${PWD_COMMAND}`; export r; \
18888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18889 $(HOST_EXPORTS) \
a90ef4bf 18890 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18891 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18892 $(TARGET-ld))
18893@endif ld
e28c595f
JM
18894
18895
18896
a90ef4bf
JM
18897.PHONY: all-stage1-ld maybe-all-stage1-ld
18898.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18899maybe-all-stage1-ld:
18900maybe-clean-stage1-ld:
18901@if ld-bootstrap
18902maybe-all-stage1-ld: all-stage1-ld
18903all-stage1: all-stage1-ld
18904TARGET-stage1-ld = $(TARGET-ld)
18905all-stage1-ld: configure-stage1-ld
e28c595f
JM
18906 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18907 @r=`${PWD_COMMAND}`; export r; \
18908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18909 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18910 $(HOST_EXPORTS) \
a90ef4bf 18911 cd $(HOST_SUBDIR)/ld && \
e28c595f 18912 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18913 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18914 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18915 LIBCFLAGS="$(LIBCFLAGS)" \
18916 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18917 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18918 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18919 $(EXTRA_HOST_FLAGS) \
18920 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 18921 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18922 $(TARGET-stage1-ld)
e28c595f 18923
a90ef4bf
JM
18924maybe-clean-stage1-ld: clean-stage1-ld
18925clean-stage1: clean-stage1-ld
18926clean-stage1-ld:
e28c595f 18927 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18928 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18929 else \
a90ef4bf 18930 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18931 $(MAKE) stage1-start; \
18932 fi; \
a90ef4bf 18933 cd $(HOST_SUBDIR)/ld && \
e28c595f 18934 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18935 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18936@endif ld-bootstrap
e28c595f
JM
18937
18938
a90ef4bf
JM
18939.PHONY: all-stage2-ld maybe-all-stage2-ld
18940.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18941maybe-all-stage2-ld:
18942maybe-clean-stage2-ld:
18943@if ld-bootstrap
18944maybe-all-stage2-ld: all-stage2-ld
18945all-stage2: all-stage2-ld
18946TARGET-stage2-ld = $(TARGET-ld)
18947all-stage2-ld: configure-stage2-ld
e28c595f
JM
18948 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18949 @r=`${PWD_COMMAND}`; export r; \
18950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18951 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18952 $(HOST_EXPORTS) \
1f53ca9a 18953 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18954 cd $(HOST_SUBDIR)/ld && \
e28c595f 18955 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18956 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18957 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18958 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18959 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18960 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18961 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18962 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18963 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18964 $(TARGET-stage2-ld)
e28c595f 18965
a90ef4bf
JM
18966maybe-clean-stage2-ld: clean-stage2-ld
18967clean-stage2: clean-stage2-ld
18968clean-stage2-ld:
e28c595f 18969 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18970 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18971 else \
a90ef4bf 18972 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18973 $(MAKE) stage2-start; \
18974 fi; \
a90ef4bf 18975 cd $(HOST_SUBDIR)/ld && \
b3676d82 18976 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18977@endif ld-bootstrap
e28c595f
JM
18978
18979
a90ef4bf
JM
18980.PHONY: all-stage3-ld maybe-all-stage3-ld
18981.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18982maybe-all-stage3-ld:
18983maybe-clean-stage3-ld:
18984@if ld-bootstrap
18985maybe-all-stage3-ld: all-stage3-ld
18986all-stage3: all-stage3-ld
18987TARGET-stage3-ld = $(TARGET-ld)
18988all-stage3-ld: configure-stage3-ld
e28c595f
JM
18989 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18990 @r=`${PWD_COMMAND}`; export r; \
18991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18992 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18993 $(HOST_EXPORTS) \
1f53ca9a 18994 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18995 cd $(HOST_SUBDIR)/ld && \
e28c595f 18996 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18997 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18998 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18999 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19000 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19001 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19002 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19003 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19004 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 19005 $(TARGET-stage3-ld)
e28c595f 19006
a90ef4bf
JM
19007maybe-clean-stage3-ld: clean-stage3-ld
19008clean-stage3: clean-stage3-ld
19009clean-stage3-ld:
e28c595f 19010 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 19011 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19012 else \
a90ef4bf 19013 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
19014 $(MAKE) stage3-start; \
19015 fi; \
a90ef4bf 19016 cd $(HOST_SUBDIR)/ld && \
b3676d82 19017 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19018@endif ld-bootstrap
e28c595f
JM
19019
19020
a90ef4bf
JM
19021.PHONY: all-stage4-ld maybe-all-stage4-ld
19022.PHONY: clean-stage4-ld maybe-clean-stage4-ld
19023maybe-all-stage4-ld:
19024maybe-clean-stage4-ld:
19025@if ld-bootstrap
19026maybe-all-stage4-ld: all-stage4-ld
19027all-stage4: all-stage4-ld
19028TARGET-stage4-ld = $(TARGET-ld)
19029all-stage4-ld: configure-stage4-ld
e28c595f
JM
19030 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19031 @r=`${PWD_COMMAND}`; export r; \
19032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19033 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 19034 $(HOST_EXPORTS) \
1f53ca9a 19035 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19036 cd $(HOST_SUBDIR)/ld && \
e28c595f 19037 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19038 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 19039 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 19040 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
19041 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19042 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19043 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19044 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19045 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 19046 $(TARGET-stage4-ld)
e28c595f 19047
a90ef4bf
JM
19048maybe-clean-stage4-ld: clean-stage4-ld
19049clean-stage4: clean-stage4-ld
19050clean-stage4-ld:
e28c595f 19051 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 19052 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19053 else \
a90ef4bf 19054 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
19055 $(MAKE) stage4-start; \
19056 fi; \
a90ef4bf 19057 cd $(HOST_SUBDIR)/ld && \
b3676d82 19058 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19059@endif ld-bootstrap
e28c595f
JM
19060
19061
a90ef4bf
JM
19062.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
19063.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
19064maybe-all-stageprofile-ld:
19065maybe-clean-stageprofile-ld:
19066@if ld-bootstrap
19067maybe-all-stageprofile-ld: all-stageprofile-ld
19068all-stageprofile: all-stageprofile-ld
19069TARGET-stageprofile-ld = $(TARGET-ld)
19070all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
19071 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19072 @r=`${PWD_COMMAND}`; export r; \
19073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19074 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 19075 $(HOST_EXPORTS) \
1f53ca9a 19076 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19077 cd $(HOST_SUBDIR)/ld && \
e28c595f 19078 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19079 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 19080 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
19081 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19082 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19083 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19084 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19085 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19086 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 19087 $(TARGET-stageprofile-ld)
e28c595f 19088
a90ef4bf
JM
19089maybe-clean-stageprofile-ld: clean-stageprofile-ld
19090clean-stageprofile: clean-stageprofile-ld
19091clean-stageprofile-ld:
e28c595f 19092 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 19093 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19094 else \
a90ef4bf 19095 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
19096 $(MAKE) stageprofile-start; \
19097 fi; \
a90ef4bf 19098 cd $(HOST_SUBDIR)/ld && \
b3676d82 19099 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19100@endif ld-bootstrap
e28c595f
JM
19101
19102
a90ef4bf
JM
19103.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
19104.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
19105maybe-all-stagefeedback-ld:
19106maybe-clean-stagefeedback-ld:
19107@if ld-bootstrap
19108maybe-all-stagefeedback-ld: all-stagefeedback-ld
19109all-stagefeedback: all-stagefeedback-ld
19110TARGET-stagefeedback-ld = $(TARGET-ld)
19111all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
19112 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19113 @r=`${PWD_COMMAND}`; export r; \
19114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19115 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 19116 $(HOST_EXPORTS) \
1f53ca9a 19117 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19118 cd $(HOST_SUBDIR)/ld && \
e28c595f 19119 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19120 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 19121 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
19122 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19123 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19124 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19125 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19126 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19127 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 19128 $(TARGET-stagefeedback-ld)
e28c595f 19129
a90ef4bf
JM
19130maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
19131clean-stagefeedback: clean-stagefeedback-ld
19132clean-stagefeedback-ld:
e28c595f 19133 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 19134 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19135 else \
a90ef4bf 19136 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
19137 $(MAKE) stagefeedback-start; \
19138 fi; \
a90ef4bf 19139 cd $(HOST_SUBDIR)/ld && \
b3676d82 19140 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19141@endif ld-bootstrap
e28c595f
JM
19142
19143
19144
19145
19146
a90ef4bf
JM
19147.PHONY: check-ld maybe-check-ld
19148maybe-check-ld:
19149@if ld
19150maybe-check-ld: check-ld
e28c595f 19151
a90ef4bf 19152check-ld:
e28c595f
JM
19153 @: $(MAKE); $(unstage)
19154 @r=`${PWD_COMMAND}`; export r; \
19155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19156 $(HOST_EXPORTS) \
a90ef4bf 19157 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19158 $(MAKE) $(FLAGS_TO_PASS) check)
19159
a90ef4bf 19160@endif ld
e28c595f 19161
a90ef4bf
JM
19162.PHONY: install-ld maybe-install-ld
19163maybe-install-ld:
19164@if ld
19165maybe-install-ld: install-ld
e28c595f 19166
a90ef4bf
JM
19167install-ld: installdirs
19168 @: $(MAKE); $(unstage)
19169 @r=`${PWD_COMMAND}`; export r; \
19170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19171 $(HOST_EXPORTS) \
19172 (cd $(HOST_SUBDIR)/ld && \
19173 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 19174
a90ef4bf 19175@endif ld
e28c595f 19176
a90ef4bf
JM
19177.PHONY: install-strip-ld maybe-install-strip-ld
19178maybe-install-strip-ld:
19179@if ld
19180maybe-install-strip-ld: install-strip-ld
9b980aa1 19181
a90ef4bf
JM
19182install-strip-ld: installdirs
19183 @: $(MAKE); $(unstage)
19184 @r=`${PWD_COMMAND}`; export r; \
19185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19186 $(HOST_EXPORTS) \
19187 (cd $(HOST_SUBDIR)/ld && \
19188 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 19189
a90ef4bf 19190@endif ld
9b980aa1 19191
e28c595f
JM
19192# Other targets (info, dvi, pdf, etc.)
19193
a90ef4bf
JM
19194.PHONY: maybe-info-ld info-ld
19195maybe-info-ld:
19196@if ld
19197maybe-info-ld: info-ld
e28c595f 19198
a90ef4bf
JM
19199info-ld: \
19200 configure-ld
19201 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19202 r=`${PWD_COMMAND}`; export r; \
19203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19204 $(HOST_EXPORTS) \
19205 for flag in $(EXTRA_HOST_FLAGS) ; do \
19206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19207 done; \
a90ef4bf
JM
19208 echo "Doing info in ld" ; \
19209 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19212 "RANLIB=$${RANLIB}" \
19213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19214 info) \
19215 || exit 1
19216
a90ef4bf 19217@endif ld
e28c595f 19218
a90ef4bf
JM
19219.PHONY: maybe-dvi-ld dvi-ld
19220maybe-dvi-ld:
19221@if ld
19222maybe-dvi-ld: dvi-ld
e28c595f 19223
a90ef4bf
JM
19224dvi-ld: \
19225 configure-ld
19226 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19227 r=`${PWD_COMMAND}`; export r; \
19228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19229 $(HOST_EXPORTS) \
19230 for flag in $(EXTRA_HOST_FLAGS) ; do \
19231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19232 done; \
a90ef4bf
JM
19233 echo "Doing dvi in ld" ; \
19234 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19237 "RANLIB=$${RANLIB}" \
19238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19239 dvi) \
19240 || exit 1
19241
a90ef4bf 19242@endif ld
e28c595f 19243
a90ef4bf
JM
19244.PHONY: maybe-pdf-ld pdf-ld
19245maybe-pdf-ld:
19246@if ld
19247maybe-pdf-ld: pdf-ld
e28c595f 19248
a90ef4bf
JM
19249pdf-ld: \
19250 configure-ld
19251 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19252 r=`${PWD_COMMAND}`; export r; \
19253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19254 $(HOST_EXPORTS) \
19255 for flag in $(EXTRA_HOST_FLAGS) ; do \
19256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19257 done; \
a90ef4bf
JM
19258 echo "Doing pdf in ld" ; \
19259 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19262 "RANLIB=$${RANLIB}" \
19263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19264 pdf) \
19265 || exit 1
19266
a90ef4bf 19267@endif ld
e28c595f 19268
a90ef4bf
JM
19269.PHONY: maybe-html-ld html-ld
19270maybe-html-ld:
19271@if ld
19272maybe-html-ld: html-ld
e28c595f 19273
a90ef4bf
JM
19274html-ld: \
19275 configure-ld
19276 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19277 r=`${PWD_COMMAND}`; export r; \
19278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19279 $(HOST_EXPORTS) \
19280 for flag in $(EXTRA_HOST_FLAGS) ; do \
19281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19282 done; \
a90ef4bf
JM
19283 echo "Doing html in ld" ; \
19284 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19287 "RANLIB=$${RANLIB}" \
19288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19289 html) \
19290 || exit 1
19291
a90ef4bf 19292@endif ld
e28c595f 19293
a90ef4bf
JM
19294.PHONY: maybe-TAGS-ld TAGS-ld
19295maybe-TAGS-ld:
19296@if ld
19297maybe-TAGS-ld: TAGS-ld
e28c595f 19298
a90ef4bf
JM
19299TAGS-ld: \
19300 configure-ld
19301 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19302 r=`${PWD_COMMAND}`; export r; \
19303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19304 $(HOST_EXPORTS) \
19305 for flag in $(EXTRA_HOST_FLAGS) ; do \
19306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19307 done; \
a90ef4bf
JM
19308 echo "Doing TAGS in ld" ; \
19309 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19312 "RANLIB=$${RANLIB}" \
19313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19314 TAGS) \
19315 || exit 1
19316
a90ef4bf 19317@endif ld
e28c595f 19318
a90ef4bf
JM
19319.PHONY: maybe-install-info-ld install-info-ld
19320maybe-install-info-ld:
19321@if ld
19322maybe-install-info-ld: install-info-ld
e28c595f 19323
a90ef4bf
JM
19324install-info-ld: \
19325 configure-ld \
19326 info-ld
19327 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19328 r=`${PWD_COMMAND}`; export r; \
19329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19330 $(HOST_EXPORTS) \
19331 for flag in $(EXTRA_HOST_FLAGS) ; do \
19332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19333 done; \
a90ef4bf
JM
19334 echo "Doing install-info in ld" ; \
19335 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19338 "RANLIB=$${RANLIB}" \
19339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19340 install-info) \
19341 || exit 1
19342
a90ef4bf 19343@endif ld
e28c595f 19344
a90ef4bf
JM
19345.PHONY: maybe-install-pdf-ld install-pdf-ld
19346maybe-install-pdf-ld:
19347@if ld
19348maybe-install-pdf-ld: install-pdf-ld
e28c595f 19349
a90ef4bf
JM
19350install-pdf-ld: \
19351 configure-ld \
19352 pdf-ld
19353 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19354 r=`${PWD_COMMAND}`; export r; \
19355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19356 $(HOST_EXPORTS) \
19357 for flag in $(EXTRA_HOST_FLAGS) ; do \
19358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19359 done; \
a90ef4bf
JM
19360 echo "Doing install-pdf in ld" ; \
19361 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19364 "RANLIB=$${RANLIB}" \
19365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19366 install-pdf) \
19367 || exit 1
19368
a90ef4bf 19369@endif ld
e28c595f 19370
a90ef4bf
JM
19371.PHONY: maybe-install-html-ld install-html-ld
19372maybe-install-html-ld:
19373@if ld
19374maybe-install-html-ld: install-html-ld
e28c595f 19375
a90ef4bf
JM
19376install-html-ld: \
19377 configure-ld \
19378 html-ld
19379 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19380 r=`${PWD_COMMAND}`; export r; \
19381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19382 $(HOST_EXPORTS) \
19383 for flag in $(EXTRA_HOST_FLAGS) ; do \
19384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19385 done; \
a90ef4bf
JM
19386 echo "Doing install-html in ld" ; \
19387 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19390 "RANLIB=$${RANLIB}" \
19391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19392 install-html) \
19393 || exit 1
19394
a90ef4bf 19395@endif ld
e28c595f 19396
a90ef4bf
JM
19397.PHONY: maybe-installcheck-ld installcheck-ld
19398maybe-installcheck-ld:
19399@if ld
19400maybe-installcheck-ld: installcheck-ld
e28c595f 19401
a90ef4bf
JM
19402installcheck-ld: \
19403 configure-ld
19404 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19405 r=`${PWD_COMMAND}`; export r; \
19406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19407 $(HOST_EXPORTS) \
19408 for flag in $(EXTRA_HOST_FLAGS) ; do \
19409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19410 done; \
a90ef4bf
JM
19411 echo "Doing installcheck in ld" ; \
19412 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19415 "RANLIB=$${RANLIB}" \
0c24b341 19416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19417 installcheck) \
19418 || exit 1
19419
a90ef4bf 19420@endif ld
4b900473 19421
a90ef4bf
JM
19422.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19423maybe-mostlyclean-ld:
19424@if ld
19425maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19426
a90ef4bf
JM
19427mostlyclean-ld:
19428 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19429 r=`${PWD_COMMAND}`; export r; \
19430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19431 $(HOST_EXPORTS) \
19432 for flag in $(EXTRA_HOST_FLAGS) ; do \
19433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19434 done; \
a90ef4bf
JM
19435 echo "Doing mostlyclean in ld" ; \
19436 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19439 "RANLIB=$${RANLIB}" \
0c24b341 19440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19441 mostlyclean) \
19442 || exit 1
19443
a90ef4bf 19444@endif ld
4b900473 19445
a90ef4bf
JM
19446.PHONY: maybe-clean-ld clean-ld
19447maybe-clean-ld:
19448@if ld
19449maybe-clean-ld: clean-ld
4b900473 19450
a90ef4bf
JM
19451clean-ld:
19452 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19453 r=`${PWD_COMMAND}`; export r; \
19454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19455 $(HOST_EXPORTS) \
19456 for flag in $(EXTRA_HOST_FLAGS) ; do \
19457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19458 done; \
a90ef4bf
JM
19459 echo "Doing clean in ld" ; \
19460 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19463 "RANLIB=$${RANLIB}" \
0c24b341 19464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19465 clean) \
19466 || exit 1
19467
a90ef4bf 19468@endif ld
4b900473 19469
a90ef4bf
JM
19470.PHONY: maybe-distclean-ld distclean-ld
19471maybe-distclean-ld:
19472@if ld
19473maybe-distclean-ld: distclean-ld
4b900473 19474
a90ef4bf
JM
19475distclean-ld:
19476 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19477 r=`${PWD_COMMAND}`; export r; \
19478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19479 $(HOST_EXPORTS) \
19480 for flag in $(EXTRA_HOST_FLAGS) ; do \
19481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19482 done; \
a90ef4bf
JM
19483 echo "Doing distclean in ld" ; \
19484 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19487 "RANLIB=$${RANLIB}" \
0c24b341 19488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19489 distclean) \
19490 || exit 1
19491
a90ef4bf 19492@endif ld
4b900473 19493
a90ef4bf
JM
19494.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19495maybe-maintainer-clean-ld:
19496@if ld
19497maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19498
a90ef4bf
JM
19499maintainer-clean-ld:
19500 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19501 r=`${PWD_COMMAND}`; export r; \
19502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19503 $(HOST_EXPORTS) \
19504 for flag in $(EXTRA_HOST_FLAGS) ; do \
19505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19506 done; \
a90ef4bf
JM
19507 echo "Doing maintainer-clean in ld" ; \
19508 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19511 "RANLIB=$${RANLIB}" \
0c24b341 19512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19513 maintainer-clean) \
19514 || exit 1
19515
a90ef4bf 19516@endif ld
4b900473
PB
19517
19518
19519
2bf680c4
ILT
19520.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19521maybe-configure-libbacktrace:
19522@if gcc-bootstrap
19523configure-libbacktrace: stage_current
19524@endif gcc-bootstrap
19525@if libbacktrace
19526maybe-configure-libbacktrace: configure-libbacktrace
19527configure-libbacktrace:
19528 @r=`${PWD_COMMAND}`; export r; \
19529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19530 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19531 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19532 $(HOST_EXPORTS) \
19533 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19534 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19535 case $(srcdir) in \
19536 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19537 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19538 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19539 esac; \
19540 srcdiroption="--srcdir=$${topdir}/libbacktrace"; \
19541 libsrcdir="$$s/libbacktrace"; \
19542 $(SHELL) $${libsrcdir}/configure \
19543 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19544 --target=${target_alias} $${srcdiroption} \
19545 || exit 1
19546@endif libbacktrace
19547
19548
19549
19550.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19551maybe-configure-stage1-libbacktrace:
19552@if libbacktrace-bootstrap
19553maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19554configure-stage1-libbacktrace:
19555 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19556 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19557 @r=`${PWD_COMMAND}`; export r; \
19558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19559 TFLAGS="$(STAGE1_TFLAGS)"; \
19560 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19561 $(HOST_EXPORTS) \
19562 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19563 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19564 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
19565 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace ; \
19566 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19567 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19568 case $(srcdir) in \
19569 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19570 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19571 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19572 esac; \
19573 srcdiroption="--srcdir=$${topdir}/libbacktrace"; \
19574 libsrcdir="$$s/libbacktrace"; \
19575 $(SHELL) $${libsrcdir}/configure \
19576 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19577 --target=${target_alias} $${srcdiroption} \
19578 $(STAGE1_CONFIGURE_FLAGS)
19579@endif libbacktrace-bootstrap
19580
19581.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19582maybe-configure-stage2-libbacktrace:
19583@if libbacktrace-bootstrap
19584maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19585configure-stage2-libbacktrace:
19586 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19587 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19588 @r=`${PWD_COMMAND}`; export r; \
19589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19590 TFLAGS="$(STAGE2_TFLAGS)"; \
19591 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19592 $(HOST_EXPORTS) \
19593 $(POSTSTAGE1_HOST_EXPORTS) \
19594 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19595 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19596 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
19597 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace ; \
19598 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19599 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19600 case $(srcdir) in \
19601 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19602 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19603 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19604 esac; \
19605 srcdiroption="--srcdir=$${topdir}/libbacktrace"; \
19606 libsrcdir="$$s/libbacktrace"; \
19607 $(SHELL) $${libsrcdir}/configure \
19608 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19609 --target=${target_alias} $${srcdiroption} \
19610 --with-build-libsubdir=$(HOST_SUBDIR) \
19611 $(STAGE2_CONFIGURE_FLAGS)
19612@endif libbacktrace-bootstrap
19613
19614.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19615maybe-configure-stage3-libbacktrace:
19616@if libbacktrace-bootstrap
19617maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19618configure-stage3-libbacktrace:
19619 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19620 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19621 @r=`${PWD_COMMAND}`; export r; \
19622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19623 TFLAGS="$(STAGE3_TFLAGS)"; \
19624 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19625 $(HOST_EXPORTS) \
19626 $(POSTSTAGE1_HOST_EXPORTS) \
19627 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19628 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19629 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
19630 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace ; \
19631 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19632 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19633 case $(srcdir) in \
19634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19635 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19637 esac; \
19638 srcdiroption="--srcdir=$${topdir}/libbacktrace"; \
19639 libsrcdir="$$s/libbacktrace"; \
19640 $(SHELL) $${libsrcdir}/configure \
19641 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19642 --target=${target_alias} $${srcdiroption} \
19643 --with-build-libsubdir=$(HOST_SUBDIR) \
19644 $(STAGE3_CONFIGURE_FLAGS)
19645@endif libbacktrace-bootstrap
19646
19647.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19648maybe-configure-stage4-libbacktrace:
19649@if libbacktrace-bootstrap
19650maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19651configure-stage4-libbacktrace:
19652 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19653 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19654 @r=`${PWD_COMMAND}`; export r; \
19655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19656 TFLAGS="$(STAGE4_TFLAGS)"; \
19657 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19658 $(HOST_EXPORTS) \
19659 $(POSTSTAGE1_HOST_EXPORTS) \
19660 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19661 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19662 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
19663 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace ; \
19664 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19665 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19666 case $(srcdir) in \
19667 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19668 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19669 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19670 esac; \
19671 srcdiroption="--srcdir=$${topdir}/libbacktrace"; \
19672 libsrcdir="$$s/libbacktrace"; \
19673 $(SHELL) $${libsrcdir}/configure \
19674 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19675 --target=${target_alias} $${srcdiroption} \
19676 --with-build-libsubdir=$(HOST_SUBDIR) \
19677 $(STAGE4_CONFIGURE_FLAGS)
19678@endif libbacktrace-bootstrap
19679
19680.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19681maybe-configure-stageprofile-libbacktrace:
19682@if libbacktrace-bootstrap
19683maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19684configure-stageprofile-libbacktrace:
19685 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19686 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19687 @r=`${PWD_COMMAND}`; export r; \
19688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19689 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19690 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19691 $(HOST_EXPORTS) \
19692 $(POSTSTAGE1_HOST_EXPORTS) \
19693 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19694 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19695 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
19696 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace ; \
19697 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19698 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19699 case $(srcdir) in \
19700 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19701 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19702 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19703 esac; \
19704 srcdiroption="--srcdir=$${topdir}/libbacktrace"; \
19705 libsrcdir="$$s/libbacktrace"; \
19706 $(SHELL) $${libsrcdir}/configure \
19707 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19708 --target=${target_alias} $${srcdiroption} \
19709 --with-build-libsubdir=$(HOST_SUBDIR) \
19710 $(STAGEprofile_CONFIGURE_FLAGS)
19711@endif libbacktrace-bootstrap
19712
19713.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19714maybe-configure-stagefeedback-libbacktrace:
19715@if libbacktrace-bootstrap
19716maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19717configure-stagefeedback-libbacktrace:
19718 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19719 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19720 @r=`${PWD_COMMAND}`; export r; \
19721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19722 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19723 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19724 $(HOST_EXPORTS) \
19725 $(POSTSTAGE1_HOST_EXPORTS) \
19726 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19727 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19728 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
19729 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace ; \
19730 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19731 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19732 case $(srcdir) in \
19733 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19734 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19735 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19736 esac; \
19737 srcdiroption="--srcdir=$${topdir}/libbacktrace"; \
19738 libsrcdir="$$s/libbacktrace"; \
19739 $(SHELL) $${libsrcdir}/configure \
19740 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19741 --target=${target_alias} $${srcdiroption} \
19742 --with-build-libsubdir=$(HOST_SUBDIR) \
19743 $(STAGEfeedback_CONFIGURE_FLAGS)
19744@endif libbacktrace-bootstrap
19745
19746
19747
19748
19749
19750.PHONY: all-libbacktrace maybe-all-libbacktrace
19751maybe-all-libbacktrace:
19752@if gcc-bootstrap
19753all-libbacktrace: stage_current
19754@endif gcc-bootstrap
19755@if libbacktrace
19756TARGET-libbacktrace=all
19757maybe-all-libbacktrace: all-libbacktrace
19758all-libbacktrace: configure-libbacktrace
19759 @r=`${PWD_COMMAND}`; export r; \
19760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19761 $(HOST_EXPORTS) \
19762 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19763 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19764 $(TARGET-libbacktrace))
19765@endif libbacktrace
19766
19767
19768
19769.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19770.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19771maybe-all-stage1-libbacktrace:
19772maybe-clean-stage1-libbacktrace:
19773@if libbacktrace-bootstrap
19774maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19775all-stage1: all-stage1-libbacktrace
19776TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19777all-stage1-libbacktrace: configure-stage1-libbacktrace
19778 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19779 @r=`${PWD_COMMAND}`; export r; \
19780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19781 TFLAGS="$(STAGE1_TFLAGS)"; \
19782 $(HOST_EXPORTS) \
19783 cd $(HOST_SUBDIR)/libbacktrace && \
19784 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19785 CFLAGS="$(STAGE1_CFLAGS)" \
19786 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19787 LIBCFLAGS="$(LIBCFLAGS)" \
19788 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19789 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19790 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19791 $(EXTRA_HOST_FLAGS) \
19792 $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19793 TFLAGS="$(STAGE1_TFLAGS)" \
19794 $(TARGET-stage1-libbacktrace)
19795
19796maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19797clean-stage1: clean-stage1-libbacktrace
19798clean-stage1-libbacktrace:
19799 @if [ $(current_stage) = stage1 ]; then \
19800 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19801 else \
19802 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19803 $(MAKE) stage1-start; \
19804 fi; \
19805 cd $(HOST_SUBDIR)/libbacktrace && \
19806 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19807 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19808@endif libbacktrace-bootstrap
19809
19810
19811.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19812.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19813maybe-all-stage2-libbacktrace:
19814maybe-clean-stage2-libbacktrace:
19815@if libbacktrace-bootstrap
19816maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19817all-stage2: all-stage2-libbacktrace
19818TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19819all-stage2-libbacktrace: configure-stage2-libbacktrace
19820 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19821 @r=`${PWD_COMMAND}`; export r; \
19822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19823 TFLAGS="$(STAGE2_TFLAGS)"; \
19824 $(HOST_EXPORTS) \
19825 $(POSTSTAGE1_HOST_EXPORTS) \
19826 cd $(HOST_SUBDIR)/libbacktrace && \
19827 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19828 CFLAGS="$(STAGE2_CFLAGS)" \
19829 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19830 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19831 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19832 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19833 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19834 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19835 TFLAGS="$(STAGE2_TFLAGS)" \
19836 $(TARGET-stage2-libbacktrace)
19837
19838maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19839clean-stage2: clean-stage2-libbacktrace
19840clean-stage2-libbacktrace:
19841 @if [ $(current_stage) = stage2 ]; then \
19842 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19843 else \
19844 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19845 $(MAKE) stage2-start; \
19846 fi; \
19847 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19848 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19849@endif libbacktrace-bootstrap
19850
19851
19852.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19853.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19854maybe-all-stage3-libbacktrace:
19855maybe-clean-stage3-libbacktrace:
19856@if libbacktrace-bootstrap
19857maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19858all-stage3: all-stage3-libbacktrace
19859TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19860all-stage3-libbacktrace: configure-stage3-libbacktrace
19861 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19862 @r=`${PWD_COMMAND}`; export r; \
19863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19864 TFLAGS="$(STAGE3_TFLAGS)"; \
19865 $(HOST_EXPORTS) \
19866 $(POSTSTAGE1_HOST_EXPORTS) \
19867 cd $(HOST_SUBDIR)/libbacktrace && \
19868 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19869 CFLAGS="$(STAGE3_CFLAGS)" \
19870 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19871 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19872 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19873 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19874 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19875 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19876 TFLAGS="$(STAGE3_TFLAGS)" \
19877 $(TARGET-stage3-libbacktrace)
19878
19879maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19880clean-stage3: clean-stage3-libbacktrace
19881clean-stage3-libbacktrace:
19882 @if [ $(current_stage) = stage3 ]; then \
19883 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19884 else \
19885 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19886 $(MAKE) stage3-start; \
19887 fi; \
19888 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19889 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19890@endif libbacktrace-bootstrap
19891
19892
19893.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19894.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19895maybe-all-stage4-libbacktrace:
19896maybe-clean-stage4-libbacktrace:
19897@if libbacktrace-bootstrap
19898maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19899all-stage4: all-stage4-libbacktrace
19900TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19901all-stage4-libbacktrace: configure-stage4-libbacktrace
19902 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19903 @r=`${PWD_COMMAND}`; export r; \
19904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19905 TFLAGS="$(STAGE4_TFLAGS)"; \
19906 $(HOST_EXPORTS) \
19907 $(POSTSTAGE1_HOST_EXPORTS) \
19908 cd $(HOST_SUBDIR)/libbacktrace && \
19909 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19910 CFLAGS="$(STAGE4_CFLAGS)" \
19911 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19912 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19913 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19914 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19915 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19916 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19917 TFLAGS="$(STAGE4_TFLAGS)" \
19918 $(TARGET-stage4-libbacktrace)
19919
19920maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19921clean-stage4: clean-stage4-libbacktrace
19922clean-stage4-libbacktrace:
19923 @if [ $(current_stage) = stage4 ]; then \
19924 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19925 else \
19926 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19927 $(MAKE) stage4-start; \
19928 fi; \
19929 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19930 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19931@endif libbacktrace-bootstrap
19932
19933
19934.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19935.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19936maybe-all-stageprofile-libbacktrace:
19937maybe-clean-stageprofile-libbacktrace:
19938@if libbacktrace-bootstrap
19939maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19940all-stageprofile: all-stageprofile-libbacktrace
19941TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19942all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19943 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19944 @r=`${PWD_COMMAND}`; export r; \
19945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19946 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19947 $(HOST_EXPORTS) \
19948 $(POSTSTAGE1_HOST_EXPORTS) \
19949 cd $(HOST_SUBDIR)/libbacktrace && \
19950 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19951 CFLAGS="$(STAGEprofile_CFLAGS)" \
19952 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19953 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19954 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19955 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19956 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19957 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19958 TFLAGS="$(STAGEprofile_TFLAGS)" \
19959 $(TARGET-stageprofile-libbacktrace)
19960
19961maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19962clean-stageprofile: clean-stageprofile-libbacktrace
19963clean-stageprofile-libbacktrace:
19964 @if [ $(current_stage) = stageprofile ]; then \
19965 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19966 else \
19967 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19968 $(MAKE) stageprofile-start; \
19969 fi; \
19970 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19971 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19972@endif libbacktrace-bootstrap
19973
19974
19975.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19976.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19977maybe-all-stagefeedback-libbacktrace:
19978maybe-clean-stagefeedback-libbacktrace:
19979@if libbacktrace-bootstrap
19980maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19981all-stagefeedback: all-stagefeedback-libbacktrace
19982TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19983all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19984 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19985 @r=`${PWD_COMMAND}`; export r; \
19986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19987 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19988 $(HOST_EXPORTS) \
19989 $(POSTSTAGE1_HOST_EXPORTS) \
19990 cd $(HOST_SUBDIR)/libbacktrace && \
19991 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19992 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19993 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19994 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19995 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19996 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19997 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19998 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19999 TFLAGS="$(STAGEfeedback_TFLAGS)" \
20000 $(TARGET-stagefeedback-libbacktrace)
20001
20002maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
20003clean-stagefeedback: clean-stagefeedback-libbacktrace
20004clean-stagefeedback-libbacktrace:
20005 @if [ $(current_stage) = stagefeedback ]; then \
20006 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
20007 else \
20008 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
20009 $(MAKE) stagefeedback-start; \
20010 fi; \
20011 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 20012 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
20013@endif libbacktrace-bootstrap
20014
20015
20016
20017
20018
20019.PHONY: check-libbacktrace maybe-check-libbacktrace
20020maybe-check-libbacktrace:
20021@if libbacktrace
20022maybe-check-libbacktrace: check-libbacktrace
20023
20024check-libbacktrace:
20025 @: $(MAKE); $(unstage)
20026 @r=`${PWD_COMMAND}`; export r; \
20027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20028 $(HOST_EXPORTS) \
20029 (cd $(HOST_SUBDIR)/libbacktrace && \
20030 $(MAKE) $(FLAGS_TO_PASS) check)
20031
20032@endif libbacktrace
20033
20034.PHONY: install-libbacktrace maybe-install-libbacktrace
20035maybe-install-libbacktrace:
20036@if libbacktrace
20037maybe-install-libbacktrace: install-libbacktrace
20038
20039install-libbacktrace: installdirs
20040 @: $(MAKE); $(unstage)
20041 @r=`${PWD_COMMAND}`; export r; \
20042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20043 $(HOST_EXPORTS) \
20044 (cd $(HOST_SUBDIR)/libbacktrace && \
20045 $(MAKE) $(FLAGS_TO_PASS) install)
20046
20047@endif libbacktrace
20048
20049.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
20050maybe-install-strip-libbacktrace:
20051@if libbacktrace
20052maybe-install-strip-libbacktrace: install-strip-libbacktrace
20053
20054install-strip-libbacktrace: installdirs
20055 @: $(MAKE); $(unstage)
20056 @r=`${PWD_COMMAND}`; export r; \
20057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20058 $(HOST_EXPORTS) \
20059 (cd $(HOST_SUBDIR)/libbacktrace && \
20060 $(MAKE) $(FLAGS_TO_PASS) install-strip)
20061
20062@endif libbacktrace
20063
20064# Other targets (info, dvi, pdf, etc.)
20065
20066.PHONY: maybe-info-libbacktrace info-libbacktrace
20067maybe-info-libbacktrace:
20068@if libbacktrace
20069maybe-info-libbacktrace: info-libbacktrace
20070
20071info-libbacktrace: \
20072 configure-libbacktrace
20073 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20074 r=`${PWD_COMMAND}`; export r; \
20075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20076 $(HOST_EXPORTS) \
20077 for flag in $(EXTRA_HOST_FLAGS) ; do \
20078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20079 done; \
20080 echo "Doing info in libbacktrace" ; \
20081 (cd $(HOST_SUBDIR)/libbacktrace && \
20082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20084 "RANLIB=$${RANLIB}" \
20085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20086 info) \
20087 || exit 1
20088
20089@endif libbacktrace
20090
20091.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
20092maybe-dvi-libbacktrace:
20093@if libbacktrace
20094maybe-dvi-libbacktrace: dvi-libbacktrace
20095
20096dvi-libbacktrace: \
20097 configure-libbacktrace
20098 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20099 r=`${PWD_COMMAND}`; export r; \
20100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20101 $(HOST_EXPORTS) \
20102 for flag in $(EXTRA_HOST_FLAGS) ; do \
20103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20104 done; \
20105 echo "Doing dvi in libbacktrace" ; \
20106 (cd $(HOST_SUBDIR)/libbacktrace && \
20107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20109 "RANLIB=$${RANLIB}" \
20110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20111 dvi) \
20112 || exit 1
20113
20114@endif libbacktrace
20115
20116.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
20117maybe-pdf-libbacktrace:
20118@if libbacktrace
20119maybe-pdf-libbacktrace: pdf-libbacktrace
20120
20121pdf-libbacktrace: \
20122 configure-libbacktrace
20123 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20124 r=`${PWD_COMMAND}`; export r; \
20125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20126 $(HOST_EXPORTS) \
20127 for flag in $(EXTRA_HOST_FLAGS) ; do \
20128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20129 done; \
20130 echo "Doing pdf in libbacktrace" ; \
20131 (cd $(HOST_SUBDIR)/libbacktrace && \
20132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20134 "RANLIB=$${RANLIB}" \
20135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20136 pdf) \
20137 || exit 1
20138
20139@endif libbacktrace
20140
20141.PHONY: maybe-html-libbacktrace html-libbacktrace
20142maybe-html-libbacktrace:
20143@if libbacktrace
20144maybe-html-libbacktrace: html-libbacktrace
20145
20146html-libbacktrace: \
20147 configure-libbacktrace
20148 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20149 r=`${PWD_COMMAND}`; export r; \
20150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20151 $(HOST_EXPORTS) \
20152 for flag in $(EXTRA_HOST_FLAGS) ; do \
20153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20154 done; \
20155 echo "Doing html in libbacktrace" ; \
20156 (cd $(HOST_SUBDIR)/libbacktrace && \
20157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20159 "RANLIB=$${RANLIB}" \
20160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20161 html) \
20162 || exit 1
20163
20164@endif libbacktrace
20165
20166.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
20167maybe-TAGS-libbacktrace:
20168@if libbacktrace
20169maybe-TAGS-libbacktrace: TAGS-libbacktrace
20170
20171TAGS-libbacktrace: \
20172 configure-libbacktrace
20173 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20174 r=`${PWD_COMMAND}`; export r; \
20175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20176 $(HOST_EXPORTS) \
20177 for flag in $(EXTRA_HOST_FLAGS) ; do \
20178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20179 done; \
20180 echo "Doing TAGS in libbacktrace" ; \
20181 (cd $(HOST_SUBDIR)/libbacktrace && \
20182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20184 "RANLIB=$${RANLIB}" \
20185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20186 TAGS) \
20187 || exit 1
20188
20189@endif libbacktrace
20190
20191.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
20192maybe-install-info-libbacktrace:
20193@if libbacktrace
20194maybe-install-info-libbacktrace: install-info-libbacktrace
20195
20196install-info-libbacktrace: \
20197 configure-libbacktrace \
20198 info-libbacktrace
20199 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20200 r=`${PWD_COMMAND}`; export r; \
20201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20202 $(HOST_EXPORTS) \
20203 for flag in $(EXTRA_HOST_FLAGS) ; do \
20204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20205 done; \
20206 echo "Doing install-info in libbacktrace" ; \
20207 (cd $(HOST_SUBDIR)/libbacktrace && \
20208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20210 "RANLIB=$${RANLIB}" \
20211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20212 install-info) \
20213 || exit 1
20214
20215@endif libbacktrace
20216
20217.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20218maybe-install-pdf-libbacktrace:
20219@if libbacktrace
20220maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20221
20222install-pdf-libbacktrace: \
20223 configure-libbacktrace \
20224 pdf-libbacktrace
20225 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20226 r=`${PWD_COMMAND}`; export r; \
20227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20228 $(HOST_EXPORTS) \
20229 for flag in $(EXTRA_HOST_FLAGS) ; do \
20230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20231 done; \
20232 echo "Doing install-pdf in libbacktrace" ; \
20233 (cd $(HOST_SUBDIR)/libbacktrace && \
20234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20236 "RANLIB=$${RANLIB}" \
20237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20238 install-pdf) \
20239 || exit 1
20240
20241@endif libbacktrace
20242
20243.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20244maybe-install-html-libbacktrace:
20245@if libbacktrace
20246maybe-install-html-libbacktrace: install-html-libbacktrace
20247
20248install-html-libbacktrace: \
20249 configure-libbacktrace \
20250 html-libbacktrace
20251 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20252 r=`${PWD_COMMAND}`; export r; \
20253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20254 $(HOST_EXPORTS) \
20255 for flag in $(EXTRA_HOST_FLAGS) ; do \
20256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20257 done; \
20258 echo "Doing install-html in libbacktrace" ; \
20259 (cd $(HOST_SUBDIR)/libbacktrace && \
20260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20262 "RANLIB=$${RANLIB}" \
20263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20264 install-html) \
20265 || exit 1
20266
20267@endif libbacktrace
20268
20269.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20270maybe-installcheck-libbacktrace:
20271@if libbacktrace
20272maybe-installcheck-libbacktrace: installcheck-libbacktrace
20273
20274installcheck-libbacktrace: \
20275 configure-libbacktrace
20276 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20277 r=`${PWD_COMMAND}`; export r; \
20278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20279 $(HOST_EXPORTS) \
20280 for flag in $(EXTRA_HOST_FLAGS) ; do \
20281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20282 done; \
20283 echo "Doing installcheck in libbacktrace" ; \
20284 (cd $(HOST_SUBDIR)/libbacktrace && \
20285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20287 "RANLIB=$${RANLIB}" \
20288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20289 installcheck) \
20290 || exit 1
20291
20292@endif libbacktrace
20293
20294.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20295maybe-mostlyclean-libbacktrace:
20296@if libbacktrace
20297maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20298
20299mostlyclean-libbacktrace:
20300 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20301 r=`${PWD_COMMAND}`; export r; \
20302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20303 $(HOST_EXPORTS) \
20304 for flag in $(EXTRA_HOST_FLAGS) ; do \
20305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20306 done; \
20307 echo "Doing mostlyclean in libbacktrace" ; \
20308 (cd $(HOST_SUBDIR)/libbacktrace && \
20309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20311 "RANLIB=$${RANLIB}" \
20312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20313 mostlyclean) \
20314 || exit 1
20315
20316@endif libbacktrace
20317
20318.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20319maybe-clean-libbacktrace:
20320@if libbacktrace
20321maybe-clean-libbacktrace: clean-libbacktrace
20322
20323clean-libbacktrace:
20324 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20325 r=`${PWD_COMMAND}`; export r; \
20326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20327 $(HOST_EXPORTS) \
20328 for flag in $(EXTRA_HOST_FLAGS) ; do \
20329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20330 done; \
20331 echo "Doing clean in libbacktrace" ; \
20332 (cd $(HOST_SUBDIR)/libbacktrace && \
20333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20335 "RANLIB=$${RANLIB}" \
20336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20337 clean) \
20338 || exit 1
20339
20340@endif libbacktrace
20341
20342.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20343maybe-distclean-libbacktrace:
20344@if libbacktrace
20345maybe-distclean-libbacktrace: distclean-libbacktrace
20346
20347distclean-libbacktrace:
20348 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20349 r=`${PWD_COMMAND}`; export r; \
20350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20351 $(HOST_EXPORTS) \
20352 for flag in $(EXTRA_HOST_FLAGS) ; do \
20353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20354 done; \
20355 echo "Doing distclean in libbacktrace" ; \
20356 (cd $(HOST_SUBDIR)/libbacktrace && \
20357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20359 "RANLIB=$${RANLIB}" \
20360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20361 distclean) \
20362 || exit 1
20363
20364@endif libbacktrace
20365
20366.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20367maybe-maintainer-clean-libbacktrace:
20368@if libbacktrace
20369maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20370
20371maintainer-clean-libbacktrace:
20372 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20373 r=`${PWD_COMMAND}`; export r; \
20374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20375 $(HOST_EXPORTS) \
20376 for flag in $(EXTRA_HOST_FLAGS) ; do \
20377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20378 done; \
20379 echo "Doing maintainer-clean in libbacktrace" ; \
20380 (cd $(HOST_SUBDIR)/libbacktrace && \
20381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20383 "RANLIB=$${RANLIB}" \
20384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20385 maintainer-clean) \
20386 || exit 1
20387
20388@endif libbacktrace
20389
20390
20391
a90ef4bf
JM
20392.PHONY: configure-libcpp maybe-configure-libcpp
20393maybe-configure-libcpp:
4b900473 20394@if gcc-bootstrap
a90ef4bf 20395configure-libcpp: stage_current
4b900473 20396@endif gcc-bootstrap
a90ef4bf
JM
20397@if libcpp
20398maybe-configure-libcpp: configure-libcpp
20399configure-libcpp:
4b900473
PB
20400 @r=`${PWD_COMMAND}`; export r; \
20401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20402 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
20403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20404 $(HOST_EXPORTS) \
20405 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20406 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20407 case $(srcdir) in \
20408 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20409 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20410 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20411 esac; \
a90ef4bf
JM
20412 srcdiroption="--srcdir=$${topdir}/libcpp"; \
20413 libsrcdir="$$s/libcpp"; \
4b900473 20414 $(SHELL) $${libsrcdir}/configure \
1f53ca9a 20415 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 20416 --target=${target_alias} $${srcdiroption} \
4b900473 20417 || exit 1
a90ef4bf 20418@endif libcpp
4b900473
PB
20419
20420
20421
a90ef4bf
JM
20422.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20423maybe-configure-stage1-libcpp:
20424@if libcpp-bootstrap
20425maybe-configure-stage1-libcpp: configure-stage1-libcpp
20426configure-stage1-libcpp:
4b900473 20427 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20428 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20429 @r=`${PWD_COMMAND}`; export r; \
20430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20431 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20432 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20433 $(HOST_EXPORTS) \
8ee82aff 20434 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20435 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20436 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
20437 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
20438 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20439 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20440 case $(srcdir) in \
20441 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20442 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20443 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20444 esac; \
a90ef4bf
JM
20445 srcdiroption="--srcdir=$${topdir}/libcpp"; \
20446 libsrcdir="$$s/libcpp"; \
4b900473 20447 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
20448 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20449 --target=${target_alias} $${srcdiroption} \
a90ef4bf
JM
20450 $(STAGE1_CONFIGURE_FLAGS)
20451@endif libcpp-bootstrap
e28c595f 20452
a90ef4bf
JM
20453.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20454maybe-configure-stage2-libcpp:
20455@if libcpp-bootstrap
20456maybe-configure-stage2-libcpp: configure-stage2-libcpp
20457configure-stage2-libcpp:
4b900473 20458 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20459 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20460 @r=`${PWD_COMMAND}`; export r; \
20461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20462 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20463 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20464 $(HOST_EXPORTS) \
1b05fbbd 20465 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20466 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20467 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20468 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
20469 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
20470 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20471 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20472 case $(srcdir) in \
20473 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20474 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20475 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20476 esac; \
a90ef4bf
JM
20477 srcdiroption="--srcdir=$${topdir}/libcpp"; \
20478 libsrcdir="$$s/libcpp"; \
4b900473 20479 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
20480 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20481 --target=${target_alias} $${srcdiroption} \
4b900473 20482 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20483 $(STAGE2_CONFIGURE_FLAGS)
20484@endif libcpp-bootstrap
e28c595f 20485
a90ef4bf
JM
20486.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20487maybe-configure-stage3-libcpp:
20488@if libcpp-bootstrap
20489maybe-configure-stage3-libcpp: configure-stage3-libcpp
20490configure-stage3-libcpp:
4b900473 20491 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20492 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20493 @r=`${PWD_COMMAND}`; export r; \
20494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20495 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20496 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20497 $(HOST_EXPORTS) \
1b05fbbd 20498 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20499 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20500 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20501 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
20502 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
20503 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20504 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20505 case $(srcdir) in \
20506 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20507 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20508 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20509 esac; \
a90ef4bf
JM
20510 srcdiroption="--srcdir=$${topdir}/libcpp"; \
20511 libsrcdir="$$s/libcpp"; \
4b900473 20512 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
20513 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20514 --target=${target_alias} $${srcdiroption} \
4b900473 20515 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20516 $(STAGE3_CONFIGURE_FLAGS)
20517@endif libcpp-bootstrap
e28c595f 20518
a90ef4bf
JM
20519.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20520maybe-configure-stage4-libcpp:
20521@if libcpp-bootstrap
20522maybe-configure-stage4-libcpp: configure-stage4-libcpp
20523configure-stage4-libcpp:
4b900473 20524 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20525 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20526 @r=`${PWD_COMMAND}`; export r; \
20527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20528 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20529 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20530 $(HOST_EXPORTS) \
1b05fbbd 20531 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20532 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20533 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20534 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
20535 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
20536 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20537 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20538 case $(srcdir) in \
20539 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20540 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20541 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20542 esac; \
a90ef4bf
JM
20543 srcdiroption="--srcdir=$${topdir}/libcpp"; \
20544 libsrcdir="$$s/libcpp"; \
4b900473 20545 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
20546 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20547 --target=${target_alias} $${srcdiroption} \
4b900473 20548 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20549 $(STAGE4_CONFIGURE_FLAGS)
20550@endif libcpp-bootstrap
e28c595f 20551
a90ef4bf
JM
20552.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20553maybe-configure-stageprofile-libcpp:
20554@if libcpp-bootstrap
20555maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20556configure-stageprofile-libcpp:
4b900473 20557 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20558 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20559 @r=`${PWD_COMMAND}`; export r; \
20560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20561 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20562 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20563 $(HOST_EXPORTS) \
1b05fbbd
AO
20564 $(POSTSTAGE1_HOST_EXPORTS) \
20565 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20566 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20567 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
20568 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
20569 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20570 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20571 case $(srcdir) in \
20572 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20573 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20574 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20575 esac; \
a90ef4bf
JM
20576 srcdiroption="--srcdir=$${topdir}/libcpp"; \
20577 libsrcdir="$$s/libcpp"; \
4b900473 20578 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
20579 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20580 --target=${target_alias} $${srcdiroption} \
4b900473 20581 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20582 $(STAGEprofile_CONFIGURE_FLAGS)
20583@endif libcpp-bootstrap
e28c595f 20584
a90ef4bf
JM
20585.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20586maybe-configure-stagefeedback-libcpp:
20587@if libcpp-bootstrap
20588maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20589configure-stagefeedback-libcpp:
4b900473 20590 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20591 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20592 @r=`${PWD_COMMAND}`; export r; \
20593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20594 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20595 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20596 $(HOST_EXPORTS) \
1b05fbbd
AO
20597 $(POSTSTAGE1_HOST_EXPORTS) \
20598 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20599 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20600 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
20601 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
20602 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20603 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20604 case $(srcdir) in \
20605 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20606 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20607 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20608 esac; \
a90ef4bf
JM
20609 srcdiroption="--srcdir=$${topdir}/libcpp"; \
20610 libsrcdir="$$s/libcpp"; \
4b900473 20611 $(SHELL) $${libsrcdir}/configure \
1f53ca9a
AO
20612 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20613 --target=${target_alias} $${srcdiroption} \
4b900473 20614 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20615 $(STAGEfeedback_CONFIGURE_FLAGS)
20616@endif libcpp-bootstrap
4b900473
PB
20617
20618
20619
20620
20621
a90ef4bf
JM
20622.PHONY: all-libcpp maybe-all-libcpp
20623maybe-all-libcpp:
4b900473 20624@if gcc-bootstrap
a90ef4bf 20625all-libcpp: stage_current
4b900473 20626@endif gcc-bootstrap
a90ef4bf
JM
20627@if libcpp
20628TARGET-libcpp=all
20629maybe-all-libcpp: all-libcpp
20630all-libcpp: configure-libcpp
4b900473
PB
20631 @r=`${PWD_COMMAND}`; export r; \
20632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20633 $(HOST_EXPORTS) \
20634 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20635 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20636 $(TARGET-libcpp))
20637@endif libcpp
4b900473
PB
20638
20639
20640
a90ef4bf
JM
20641.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20642.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20643maybe-all-stage1-libcpp:
20644maybe-clean-stage1-libcpp:
20645@if libcpp-bootstrap
20646maybe-all-stage1-libcpp: all-stage1-libcpp
20647all-stage1: all-stage1-libcpp
20648TARGET-stage1-libcpp = $(TARGET-libcpp)
20649all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20650 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20651 @r=`${PWD_COMMAND}`; export r; \
20652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20653 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20654 $(HOST_EXPORTS) \
20655 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20656 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20657 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20658 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20659 LIBCFLAGS="$(LIBCFLAGS)" \
20660 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20661 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20662 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20663 $(EXTRA_HOST_FLAGS) \
20664 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 20665 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20666 $(TARGET-stage1-libcpp)
4b900473 20667
a90ef4bf
JM
20668maybe-clean-stage1-libcpp: clean-stage1-libcpp
20669clean-stage1: clean-stage1-libcpp
20670clean-stage1-libcpp:
4b900473 20671 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20672 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20673 else \
a90ef4bf 20674 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20675 $(MAKE) stage1-start; \
20676 fi; \
a90ef4bf 20677 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20678 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20679 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20680@endif libcpp-bootstrap
e28c595f
JM
20681
20682
a90ef4bf
JM
20683.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20684.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20685maybe-all-stage2-libcpp:
20686maybe-clean-stage2-libcpp:
20687@if libcpp-bootstrap
20688maybe-all-stage2-libcpp: all-stage2-libcpp
20689all-stage2: all-stage2-libcpp
20690TARGET-stage2-libcpp = $(TARGET-libcpp)
20691all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20692 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20693 @r=`${PWD_COMMAND}`; export r; \
20694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20695 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20696 $(HOST_EXPORTS) \
a90ef4bf
JM
20697 $(POSTSTAGE1_HOST_EXPORTS) \
20698 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20699 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20700 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20701 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20702 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20703 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20704 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20705 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20706 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20707 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20708 $(TARGET-stage2-libcpp)
4b900473 20709
a90ef4bf
JM
20710maybe-clean-stage2-libcpp: clean-stage2-libcpp
20711clean-stage2: clean-stage2-libcpp
20712clean-stage2-libcpp:
4b900473 20713 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20714 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20715 else \
a90ef4bf 20716 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20717 $(MAKE) stage2-start; \
20718 fi; \
a90ef4bf 20719 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20720 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20721@endif libcpp-bootstrap
e28c595f
JM
20722
20723
a90ef4bf
JM
20724.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20725.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20726maybe-all-stage3-libcpp:
20727maybe-clean-stage3-libcpp:
20728@if libcpp-bootstrap
20729maybe-all-stage3-libcpp: all-stage3-libcpp
20730all-stage3: all-stage3-libcpp
20731TARGET-stage3-libcpp = $(TARGET-libcpp)
20732all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20733 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20734 @r=`${PWD_COMMAND}`; export r; \
20735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20736 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20737 $(HOST_EXPORTS) \
a90ef4bf
JM
20738 $(POSTSTAGE1_HOST_EXPORTS) \
20739 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20740 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20741 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20742 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20743 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20744 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20745 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20746 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20747 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20748 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20749 $(TARGET-stage3-libcpp)
4b900473 20750
a90ef4bf
JM
20751maybe-clean-stage3-libcpp: clean-stage3-libcpp
20752clean-stage3: clean-stage3-libcpp
20753clean-stage3-libcpp:
4b900473 20754 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20755 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20756 else \
a90ef4bf 20757 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20758 $(MAKE) stage3-start; \
20759 fi; \
a90ef4bf 20760 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20761 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20762@endif libcpp-bootstrap
e28c595f
JM
20763
20764
a90ef4bf
JM
20765.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20766.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20767maybe-all-stage4-libcpp:
20768maybe-clean-stage4-libcpp:
20769@if libcpp-bootstrap
20770maybe-all-stage4-libcpp: all-stage4-libcpp
20771all-stage4: all-stage4-libcpp
20772TARGET-stage4-libcpp = $(TARGET-libcpp)
20773all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20774 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20775 @r=`${PWD_COMMAND}`; export r; \
20776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20777 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20778 $(HOST_EXPORTS) \
a90ef4bf
JM
20779 $(POSTSTAGE1_HOST_EXPORTS) \
20780 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20781 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20782 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20783 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20784 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20785 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20786 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20787 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20788 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20789 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20790 $(TARGET-stage4-libcpp)
4b900473 20791
a90ef4bf
JM
20792maybe-clean-stage4-libcpp: clean-stage4-libcpp
20793clean-stage4: clean-stage4-libcpp
20794clean-stage4-libcpp:
4b900473 20795 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20796 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20797 else \
a90ef4bf 20798 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20799 $(MAKE) stage4-start; \
20800 fi; \
a90ef4bf 20801 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20802 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20803@endif libcpp-bootstrap
e28c595f
JM
20804
20805
a90ef4bf
JM
20806.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20807.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20808maybe-all-stageprofile-libcpp:
20809maybe-clean-stageprofile-libcpp:
20810@if libcpp-bootstrap
20811maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20812all-stageprofile: all-stageprofile-libcpp
20813TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20814all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20815 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20816 @r=`${PWD_COMMAND}`; export r; \
20817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20818 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20819 $(HOST_EXPORTS) \
a90ef4bf
JM
20820 $(POSTSTAGE1_HOST_EXPORTS) \
20821 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20822 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20823 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20824 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20825 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20826 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20827 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20828 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20829 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20830 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20831 $(TARGET-stageprofile-libcpp)
4b900473 20832
a90ef4bf
JM
20833maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20834clean-stageprofile: clean-stageprofile-libcpp
20835clean-stageprofile-libcpp:
4b900473 20836 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20837 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20838 else \
a90ef4bf 20839 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20840 $(MAKE) stageprofile-start; \
20841 fi; \
a90ef4bf 20842 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20843 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20844@endif libcpp-bootstrap
e28c595f
JM
20845
20846
a90ef4bf
JM
20847.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20848.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20849maybe-all-stagefeedback-libcpp:
20850maybe-clean-stagefeedback-libcpp:
20851@if libcpp-bootstrap
20852maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20853all-stagefeedback: all-stagefeedback-libcpp
20854TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20855all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20856 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20857 @r=`${PWD_COMMAND}`; export r; \
20858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20859 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20860 $(HOST_EXPORTS) \
a90ef4bf
JM
20861 $(POSTSTAGE1_HOST_EXPORTS) \
20862 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20863 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20864 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20865 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20866 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20867 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20868 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20869 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20870 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20871 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20872 $(TARGET-stagefeedback-libcpp)
4b900473 20873
a90ef4bf
JM
20874maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20875clean-stagefeedback: clean-stagefeedback-libcpp
20876clean-stagefeedback-libcpp:
4b900473 20877 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20878 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20879 else \
a90ef4bf 20880 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20881 $(MAKE) stagefeedback-start; \
20882 fi; \
a90ef4bf 20883 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20884 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20885@endif libcpp-bootstrap
4b900473
PB
20886
20887
20888
20889
20890
a90ef4bf
JM
20891.PHONY: check-libcpp maybe-check-libcpp
20892maybe-check-libcpp:
20893@if libcpp
20894maybe-check-libcpp: check-libcpp
4b900473 20895
a90ef4bf 20896check-libcpp:
4b900473
PB
20897 @: $(MAKE); $(unstage)
20898 @r=`${PWD_COMMAND}`; export r; \
20899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20900 $(HOST_EXPORTS) \
a90ef4bf
JM
20901 (cd $(HOST_SUBDIR)/libcpp && \
20902 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 20903
a90ef4bf 20904@endif libcpp
4b900473 20905
a90ef4bf
JM
20906.PHONY: install-libcpp maybe-install-libcpp
20907maybe-install-libcpp:
20908@if libcpp
20909maybe-install-libcpp: install-libcpp
4b900473 20910
a90ef4bf
JM
20911install-libcpp: installdirs
20912 @: $(MAKE); $(unstage)
20913 @r=`${PWD_COMMAND}`; export r; \
20914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20915 $(HOST_EXPORTS) \
20916 (cd $(HOST_SUBDIR)/libcpp && \
20917 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20918
a90ef4bf 20919@endif libcpp
4b900473 20920
a90ef4bf
JM
20921.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20922maybe-install-strip-libcpp:
20923@if libcpp
20924maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20925
a90ef4bf
JM
20926install-strip-libcpp: installdirs
20927 @: $(MAKE); $(unstage)
20928 @r=`${PWD_COMMAND}`; export r; \
20929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20930 $(HOST_EXPORTS) \
20931 (cd $(HOST_SUBDIR)/libcpp && \
20932 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20933
a90ef4bf 20934@endif libcpp
9b980aa1 20935
4b900473
PB
20936# Other targets (info, dvi, pdf, etc.)
20937
a90ef4bf
JM
20938.PHONY: maybe-info-libcpp info-libcpp
20939maybe-info-libcpp:
20940@if libcpp
20941maybe-info-libcpp: info-libcpp
4b900473 20942
a90ef4bf
JM
20943info-libcpp: \
20944 configure-libcpp
20945 @[ -f ./libcpp/Makefile ] || exit 0; \
20946 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20948 $(HOST_EXPORTS) \
a90ef4bf 20949 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20951 done; \
a90ef4bf
JM
20952 echo "Doing info in libcpp" ; \
20953 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20956 "RANLIB=$${RANLIB}" \
0c24b341 20957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20958 info) \
20959 || exit 1
20960
a90ef4bf 20961@endif libcpp
4b900473 20962
a90ef4bf
JM
20963.PHONY: maybe-dvi-libcpp dvi-libcpp
20964maybe-dvi-libcpp:
20965@if libcpp
20966maybe-dvi-libcpp: dvi-libcpp
4b900473 20967
a90ef4bf
JM
20968dvi-libcpp: \
20969 configure-libcpp
20970 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20971 r=`${PWD_COMMAND}`; export r; \
20972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20973 $(HOST_EXPORTS) \
a90ef4bf 20974 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20976 done; \
a90ef4bf
JM
20977 echo "Doing dvi in libcpp" ; \
20978 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20981 "RANLIB=$${RANLIB}" \
0c24b341 20982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20983 dvi) \
20984 || exit 1
20985
a90ef4bf 20986@endif libcpp
4b900473 20987
a90ef4bf
JM
20988.PHONY: maybe-pdf-libcpp pdf-libcpp
20989maybe-pdf-libcpp:
20990@if libcpp
20991maybe-pdf-libcpp: pdf-libcpp
4b900473 20992
a90ef4bf
JM
20993pdf-libcpp: \
20994 configure-libcpp
20995 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20996 r=`${PWD_COMMAND}`; export r; \
20997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20998 $(HOST_EXPORTS) \
a90ef4bf 20999 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21001 done; \
a90ef4bf
JM
21002 echo "Doing pdf in libcpp" ; \
21003 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21006 "RANLIB=$${RANLIB}" \
0c24b341 21007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21008 pdf) \
21009 || exit 1
21010
a90ef4bf 21011@endif libcpp
4b900473 21012
a90ef4bf
JM
21013.PHONY: maybe-html-libcpp html-libcpp
21014maybe-html-libcpp:
21015@if libcpp
21016maybe-html-libcpp: html-libcpp
4b900473 21017
a90ef4bf
JM
21018html-libcpp: \
21019 configure-libcpp
21020 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21021 r=`${PWD_COMMAND}`; export r; \
21022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21023 $(HOST_EXPORTS) \
a90ef4bf 21024 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21026 done; \
a90ef4bf
JM
21027 echo "Doing html in libcpp" ; \
21028 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21031 "RANLIB=$${RANLIB}" \
0c24b341 21032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21033 html) \
21034 || exit 1
21035
a90ef4bf 21036@endif libcpp
4b900473 21037
a90ef4bf
JM
21038.PHONY: maybe-TAGS-libcpp TAGS-libcpp
21039maybe-TAGS-libcpp:
21040@if libcpp
21041maybe-TAGS-libcpp: TAGS-libcpp
4b900473 21042
a90ef4bf
JM
21043TAGS-libcpp: \
21044 configure-libcpp
21045 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21046 r=`${PWD_COMMAND}`; export r; \
21047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21048 $(HOST_EXPORTS) \
a90ef4bf 21049 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21051 done; \
a90ef4bf
JM
21052 echo "Doing TAGS in libcpp" ; \
21053 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21056 "RANLIB=$${RANLIB}" \
0c24b341 21057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21058 TAGS) \
21059 || exit 1
21060
a90ef4bf 21061@endif libcpp
4b900473 21062
a90ef4bf
JM
21063.PHONY: maybe-install-info-libcpp install-info-libcpp
21064maybe-install-info-libcpp:
21065@if libcpp
21066maybe-install-info-libcpp: install-info-libcpp
4b900473 21067
a90ef4bf
JM
21068install-info-libcpp: \
21069 configure-libcpp \
21070 info-libcpp
21071 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21072 r=`${PWD_COMMAND}`; export r; \
21073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21074 $(HOST_EXPORTS) \
a90ef4bf 21075 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21077 done; \
a90ef4bf
JM
21078 echo "Doing install-info in libcpp" ; \
21079 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21082 "RANLIB=$${RANLIB}" \
0c24b341 21083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21084 install-info) \
21085 || exit 1
21086
a90ef4bf 21087@endif libcpp
4b900473 21088
a90ef4bf
JM
21089.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
21090maybe-install-pdf-libcpp:
21091@if libcpp
21092maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 21093
a90ef4bf
JM
21094install-pdf-libcpp: \
21095 configure-libcpp \
21096 pdf-libcpp
21097 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
21098 r=`${PWD_COMMAND}`; export r; \
21099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21100 $(HOST_EXPORTS) \
a90ef4bf 21101 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
21102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21103 done; \
a90ef4bf
JM
21104 echo "Doing install-pdf in libcpp" ; \
21105 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
21106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21108 "RANLIB=$${RANLIB}" \
0c24b341 21109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
21110 install-pdf) \
21111 || exit 1
21112
a90ef4bf 21113@endif libcpp
a3ca38d2 21114
a90ef4bf
JM
21115.PHONY: maybe-install-html-libcpp install-html-libcpp
21116maybe-install-html-libcpp:
21117@if libcpp
21118maybe-install-html-libcpp: install-html-libcpp
4b900473 21119
a90ef4bf
JM
21120install-html-libcpp: \
21121 configure-libcpp \
21122 html-libcpp
21123 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21124 r=`${PWD_COMMAND}`; export r; \
21125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21126 $(HOST_EXPORTS) \
a90ef4bf 21127 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21129 done; \
a90ef4bf
JM
21130 echo "Doing install-html in libcpp" ; \
21131 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21134 "RANLIB=$${RANLIB}" \
0c24b341 21135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21136 install-html) \
21137 || exit 1
21138
a90ef4bf 21139@endif libcpp
4b900473 21140
a90ef4bf
JM
21141.PHONY: maybe-installcheck-libcpp installcheck-libcpp
21142maybe-installcheck-libcpp:
21143@if libcpp
21144maybe-installcheck-libcpp: installcheck-libcpp
4b900473 21145
a90ef4bf
JM
21146installcheck-libcpp: \
21147 configure-libcpp
21148 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21149 r=`${PWD_COMMAND}`; export r; \
21150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21151 $(HOST_EXPORTS) \
a90ef4bf 21152 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21154 done; \
a90ef4bf
JM
21155 echo "Doing installcheck in libcpp" ; \
21156 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21159 "RANLIB=$${RANLIB}" \
0c24b341 21160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21161 installcheck) \
21162 || exit 1
21163
a90ef4bf 21164@endif libcpp
4b900473 21165
a90ef4bf
JM
21166.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
21167maybe-mostlyclean-libcpp:
21168@if libcpp
21169maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 21170
a90ef4bf
JM
21171mostlyclean-libcpp:
21172 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21173 r=`${PWD_COMMAND}`; export r; \
21174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21175 $(HOST_EXPORTS) \
a90ef4bf 21176 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21178 done; \
a90ef4bf
JM
21179 echo "Doing mostlyclean in libcpp" ; \
21180 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21183 "RANLIB=$${RANLIB}" \
0c24b341 21184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21185 mostlyclean) \
21186 || exit 1
21187
a90ef4bf 21188@endif libcpp
4b900473 21189
a90ef4bf
JM
21190.PHONY: maybe-clean-libcpp clean-libcpp
21191maybe-clean-libcpp:
21192@if libcpp
21193maybe-clean-libcpp: clean-libcpp
4b900473 21194
a90ef4bf
JM
21195clean-libcpp:
21196 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21197 r=`${PWD_COMMAND}`; export r; \
21198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21199 $(HOST_EXPORTS) \
a90ef4bf 21200 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21202 done; \
a90ef4bf
JM
21203 echo "Doing clean in libcpp" ; \
21204 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21207 "RANLIB=$${RANLIB}" \
0c24b341 21208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21209 clean) \
21210 || exit 1
21211
a90ef4bf 21212@endif libcpp
4b900473 21213
a90ef4bf
JM
21214.PHONY: maybe-distclean-libcpp distclean-libcpp
21215maybe-distclean-libcpp:
21216@if libcpp
21217maybe-distclean-libcpp: distclean-libcpp
4b900473 21218
a90ef4bf
JM
21219distclean-libcpp:
21220 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21221 r=`${PWD_COMMAND}`; export r; \
21222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21223 $(HOST_EXPORTS) \
a90ef4bf 21224 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21226 done; \
a90ef4bf
JM
21227 echo "Doing distclean in libcpp" ; \
21228 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21231 "RANLIB=$${RANLIB}" \
0c24b341 21232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21233 distclean) \
21234 || exit 1
21235
a90ef4bf 21236@endif libcpp
4b900473 21237
a90ef4bf
JM
21238.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21239maybe-maintainer-clean-libcpp:
21240@if libcpp
21241maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21242
a90ef4bf
JM
21243maintainer-clean-libcpp:
21244 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21245 r=`${PWD_COMMAND}`; export r; \
21246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21247 $(HOST_EXPORTS) \
a90ef4bf 21248 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21250 done; \
a90ef4bf
JM
21251 echo "Doing maintainer-clean in libcpp" ; \
21252 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21255 "RANLIB=$${RANLIB}" \
0c24b341 21256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21257 maintainer-clean) \
21258 || exit 1
21259
a90ef4bf 21260@endif libcpp
4b900473
PB
21261
21262
21263
a90ef4bf
JM
21264.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21265maybe-configure-libdecnumber:
1f53ca9a 21266@if gcc-bootstrap
a90ef4bf 21267configure-libdecnumber: stage_current
1f53ca9a 21268@endif gcc-bootstrap
a90ef4bf
JM
21269@if libdecnumber
21270maybe-configure-libdecnumber: configure-libdecnumber
21271configure-libdecnumber:
1f53ca9a
AO
21272 @r=`${PWD_COMMAND}`; export r; \
21273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
21274 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
21275 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
1f53ca9a 21276 $(HOST_EXPORTS) \
a90ef4bf
JM
21277 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21278 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21279 case $(srcdir) in \
21280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21281 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21283 esac; \
a90ef4bf
JM
21284 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
21285 libsrcdir="$$s/libdecnumber"; \
1f53ca9a
AO
21286 $(SHELL) $${libsrcdir}/configure \
21287 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 21288 --target=${target_alias} $${srcdiroption} \
1f53ca9a 21289 || exit 1
a90ef4bf 21290@endif libdecnumber
1f53ca9a
AO
21291
21292
21293
a90ef4bf
JM
21294.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21295maybe-configure-stage1-libdecnumber:
21296@if libdecnumber-bootstrap
21297maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21298configure-stage1-libdecnumber:
1f53ca9a 21299 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21300 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21301 @r=`${PWD_COMMAND}`; export r; \
21302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21303 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21304 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21305 $(HOST_EXPORTS) \
21306 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21307 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21308 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21309 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
21310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21311 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21312 case $(srcdir) in \
21313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21314 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21316 esac; \
a90ef4bf
JM
21317 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
21318 libsrcdir="$$s/libdecnumber"; \
1f53ca9a
AO
21319 $(SHELL) $${libsrcdir}/configure \
21320 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21321 --target=${target_alias} $${srcdiroption} \
a90ef4bf
JM
21322 $(STAGE1_CONFIGURE_FLAGS)
21323@endif libdecnumber-bootstrap
1f53ca9a 21324
a90ef4bf
JM
21325.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21326maybe-configure-stage2-libdecnumber:
21327@if libdecnumber-bootstrap
21328maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21329configure-stage2-libdecnumber:
1f53ca9a 21330 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21331 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21332 @r=`${PWD_COMMAND}`; export r; \
21333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21334 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21335 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21336 $(HOST_EXPORTS) \
21337 $(POSTSTAGE1_HOST_EXPORTS) \
21338 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21339 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21340 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21341 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
21342 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21343 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21344 case $(srcdir) in \
21345 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21346 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21347 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21348 esac; \
a90ef4bf
JM
21349 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
21350 libsrcdir="$$s/libdecnumber"; \
1f53ca9a
AO
21351 $(SHELL) $${libsrcdir}/configure \
21352 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21353 --target=${target_alias} $${srcdiroption} \
21354 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21355 $(STAGE2_CONFIGURE_FLAGS)
21356@endif libdecnumber-bootstrap
1f53ca9a 21357
a90ef4bf
JM
21358.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21359maybe-configure-stage3-libdecnumber:
21360@if libdecnumber-bootstrap
21361maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21362configure-stage3-libdecnumber:
1f53ca9a 21363 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21364 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21365 @r=`${PWD_COMMAND}`; export r; \
21366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21367 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21368 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21369 $(HOST_EXPORTS) \
21370 $(POSTSTAGE1_HOST_EXPORTS) \
21371 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21372 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21373 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21374 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
21375 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21376 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21377 case $(srcdir) in \
21378 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21379 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21380 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21381 esac; \
a90ef4bf
JM
21382 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
21383 libsrcdir="$$s/libdecnumber"; \
1f53ca9a
AO
21384 $(SHELL) $${libsrcdir}/configure \
21385 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21386 --target=${target_alias} $${srcdiroption} \
21387 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21388 $(STAGE3_CONFIGURE_FLAGS)
21389@endif libdecnumber-bootstrap
1f53ca9a 21390
a90ef4bf
JM
21391.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21392maybe-configure-stage4-libdecnumber:
21393@if libdecnumber-bootstrap
21394maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21395configure-stage4-libdecnumber:
1f53ca9a 21396 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21397 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21398 @r=`${PWD_COMMAND}`; export r; \
21399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21400 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21401 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21402 $(HOST_EXPORTS) \
21403 $(POSTSTAGE1_HOST_EXPORTS) \
21404 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21405 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21406 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21407 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
21408 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21409 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21410 case $(srcdir) in \
21411 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21412 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21413 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21414 esac; \
a90ef4bf
JM
21415 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
21416 libsrcdir="$$s/libdecnumber"; \
1f53ca9a
AO
21417 $(SHELL) $${libsrcdir}/configure \
21418 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21419 --target=${target_alias} $${srcdiroption} \
21420 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21421 $(STAGE4_CONFIGURE_FLAGS)
21422@endif libdecnumber-bootstrap
1f53ca9a 21423
a90ef4bf
JM
21424.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21425maybe-configure-stageprofile-libdecnumber:
21426@if libdecnumber-bootstrap
21427maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21428configure-stageprofile-libdecnumber:
1f53ca9a 21429 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21430 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21431 @r=`${PWD_COMMAND}`; export r; \
21432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21433 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21434 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21435 $(HOST_EXPORTS) \
21436 $(POSTSTAGE1_HOST_EXPORTS) \
21437 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21438 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21439 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21440 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
21441 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21442 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21443 case $(srcdir) in \
21444 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21445 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21446 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21447 esac; \
a90ef4bf
JM
21448 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
21449 libsrcdir="$$s/libdecnumber"; \
1f53ca9a
AO
21450 $(SHELL) $${libsrcdir}/configure \
21451 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21452 --target=${target_alias} $${srcdiroption} \
21453 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21454 $(STAGEprofile_CONFIGURE_FLAGS)
21455@endif libdecnumber-bootstrap
1f53ca9a 21456
a90ef4bf
JM
21457.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21458maybe-configure-stagefeedback-libdecnumber:
21459@if libdecnumber-bootstrap
21460maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21461configure-stagefeedback-libdecnumber:
1f53ca9a 21462 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21463 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21464 @r=`${PWD_COMMAND}`; export r; \
21465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21466 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21467 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21468 $(HOST_EXPORTS) \
21469 $(POSTSTAGE1_HOST_EXPORTS) \
21470 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21471 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21472 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21473 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
21474 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21475 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21476 case $(srcdir) in \
21477 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21478 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21479 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21480 esac; \
a90ef4bf
JM
21481 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
21482 libsrcdir="$$s/libdecnumber"; \
1f53ca9a
AO
21483 $(SHELL) $${libsrcdir}/configure \
21484 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21485 --target=${target_alias} $${srcdiroption} \
21486 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21487 $(STAGEfeedback_CONFIGURE_FLAGS)
21488@endif libdecnumber-bootstrap
1f53ca9a
AO
21489
21490
21491
21492
21493
a90ef4bf
JM
21494.PHONY: all-libdecnumber maybe-all-libdecnumber
21495maybe-all-libdecnumber:
1f53ca9a 21496@if gcc-bootstrap
a90ef4bf 21497all-libdecnumber: stage_current
1f53ca9a 21498@endif gcc-bootstrap
a90ef4bf
JM
21499@if libdecnumber
21500TARGET-libdecnumber=all
21501maybe-all-libdecnumber: all-libdecnumber
21502all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21503 @r=`${PWD_COMMAND}`; export r; \
21504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21505 $(HOST_EXPORTS) \
a90ef4bf 21506 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21507 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21508 $(TARGET-libdecnumber))
21509@endif libdecnumber
1f53ca9a
AO
21510
21511
21512
a90ef4bf
JM
21513.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21514.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21515maybe-all-stage1-libdecnumber:
21516maybe-clean-stage1-libdecnumber:
21517@if libdecnumber-bootstrap
21518maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21519all-stage1: all-stage1-libdecnumber
21520TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21521all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21522 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21523 @r=`${PWD_COMMAND}`; export r; \
21524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21525 TFLAGS="$(STAGE1_TFLAGS)"; \
21526 $(HOST_EXPORTS) \
a90ef4bf 21527 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21528 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21529 CFLAGS="$(STAGE1_CFLAGS)" \
21530 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21531 LIBCFLAGS="$(LIBCFLAGS)" \
21532 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21533 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21534 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21535 $(EXTRA_HOST_FLAGS) \
21536 $(STAGE1_FLAGS_TO_PASS) \
1f53ca9a 21537 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21538 $(TARGET-stage1-libdecnumber)
1f53ca9a 21539
a90ef4bf
JM
21540maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21541clean-stage1: clean-stage1-libdecnumber
21542clean-stage1-libdecnumber:
1f53ca9a 21543 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21544 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21545 else \
a90ef4bf 21546 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21547 $(MAKE) stage1-start; \
21548 fi; \
a90ef4bf 21549 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21550 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21551 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21552@endif libdecnumber-bootstrap
1f53ca9a
AO
21553
21554
a90ef4bf
JM
21555.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21556.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21557maybe-all-stage2-libdecnumber:
21558maybe-clean-stage2-libdecnumber:
21559@if libdecnumber-bootstrap
21560maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21561all-stage2: all-stage2-libdecnumber
21562TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21563all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21564 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21565 @r=`${PWD_COMMAND}`; export r; \
21566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21567 TFLAGS="$(STAGE2_TFLAGS)"; \
21568 $(HOST_EXPORTS) \
21569 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21570 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21571 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21572 CFLAGS="$(STAGE2_CFLAGS)" \
21573 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21574 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21575 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21576 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21577 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21578 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21579 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21580 $(TARGET-stage2-libdecnumber)
1f53ca9a 21581
a90ef4bf
JM
21582maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21583clean-stage2: clean-stage2-libdecnumber
21584clean-stage2-libdecnumber:
1f53ca9a 21585 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21586 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21587 else \
a90ef4bf 21588 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21589 $(MAKE) stage2-start; \
21590 fi; \
a90ef4bf 21591 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21592 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21593@endif libdecnumber-bootstrap
1f53ca9a
AO
21594
21595
a90ef4bf
JM
21596.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21597.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21598maybe-all-stage3-libdecnumber:
21599maybe-clean-stage3-libdecnumber:
21600@if libdecnumber-bootstrap
21601maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21602all-stage3: all-stage3-libdecnumber
21603TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21604all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21605 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21606 @r=`${PWD_COMMAND}`; export r; \
21607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21608 TFLAGS="$(STAGE3_TFLAGS)"; \
21609 $(HOST_EXPORTS) \
21610 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21611 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21612 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21613 CFLAGS="$(STAGE3_CFLAGS)" \
21614 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21615 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21616 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21617 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21618 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21619 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21620 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21621 $(TARGET-stage3-libdecnumber)
1f53ca9a 21622
a90ef4bf
JM
21623maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21624clean-stage3: clean-stage3-libdecnumber
21625clean-stage3-libdecnumber:
1f53ca9a 21626 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21627 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21628 else \
a90ef4bf 21629 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21630 $(MAKE) stage3-start; \
21631 fi; \
a90ef4bf 21632 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21633 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21634@endif libdecnumber-bootstrap
1f53ca9a
AO
21635
21636
a90ef4bf
JM
21637.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21638.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21639maybe-all-stage4-libdecnumber:
21640maybe-clean-stage4-libdecnumber:
21641@if libdecnumber-bootstrap
21642maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21643all-stage4: all-stage4-libdecnumber
21644TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21645all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21646 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21647 @r=`${PWD_COMMAND}`; export r; \
21648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21649 TFLAGS="$(STAGE4_TFLAGS)"; \
21650 $(HOST_EXPORTS) \
21651 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21652 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21653 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21654 CFLAGS="$(STAGE4_CFLAGS)" \
21655 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21656 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21657 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21658 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21659 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21660 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21661 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21662 $(TARGET-stage4-libdecnumber)
1f53ca9a 21663
a90ef4bf
JM
21664maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21665clean-stage4: clean-stage4-libdecnumber
21666clean-stage4-libdecnumber:
1f53ca9a 21667 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21668 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21669 else \
a90ef4bf 21670 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21671 $(MAKE) stage4-start; \
21672 fi; \
a90ef4bf 21673 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21674 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21675@endif libdecnumber-bootstrap
1f53ca9a
AO
21676
21677
a90ef4bf
JM
21678.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21679.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21680maybe-all-stageprofile-libdecnumber:
21681maybe-clean-stageprofile-libdecnumber:
21682@if libdecnumber-bootstrap
21683maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21684all-stageprofile: all-stageprofile-libdecnumber
21685TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21686all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21687 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21688 @r=`${PWD_COMMAND}`; export r; \
21689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21690 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21691 $(HOST_EXPORTS) \
21692 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21693 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21694 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21695 CFLAGS="$(STAGEprofile_CFLAGS)" \
21696 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21697 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21698 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21699 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21700 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21701 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21702 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21703 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21704
a90ef4bf
JM
21705maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21706clean-stageprofile: clean-stageprofile-libdecnumber
21707clean-stageprofile-libdecnumber:
1f53ca9a 21708 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21709 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21710 else \
a90ef4bf 21711 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21712 $(MAKE) stageprofile-start; \
21713 fi; \
a90ef4bf 21714 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21715 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21716@endif libdecnumber-bootstrap
1f53ca9a
AO
21717
21718
a90ef4bf
JM
21719.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21720.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21721maybe-all-stagefeedback-libdecnumber:
21722maybe-clean-stagefeedback-libdecnumber:
21723@if libdecnumber-bootstrap
21724maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21725all-stagefeedback: all-stagefeedback-libdecnumber
21726TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21727all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21728 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21729 @r=`${PWD_COMMAND}`; export r; \
21730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21731 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21732 $(HOST_EXPORTS) \
21733 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21734 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21735 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21736 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21737 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21738 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21739 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21740 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21741 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21742 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21743 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21744 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21745
a90ef4bf
JM
21746maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21747clean-stagefeedback: clean-stagefeedback-libdecnumber
21748clean-stagefeedback-libdecnumber:
1f53ca9a 21749 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21750 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21751 else \
a90ef4bf 21752 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21753 $(MAKE) stagefeedback-start; \
21754 fi; \
a90ef4bf 21755 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21756 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21757@endif libdecnumber-bootstrap
1f53ca9a
AO
21758
21759
21760
21761
21762
a90ef4bf
JM
21763.PHONY: check-libdecnumber maybe-check-libdecnumber
21764maybe-check-libdecnumber:
21765@if libdecnumber
21766maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21767
a90ef4bf 21768check-libdecnumber:
1f53ca9a
AO
21769 @: $(MAKE); $(unstage)
21770 @r=`${PWD_COMMAND}`; export r; \
21771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21772 $(HOST_EXPORTS) \
a90ef4bf 21773 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21774 $(MAKE) $(FLAGS_TO_PASS) check)
21775
a90ef4bf 21776@endif libdecnumber
1f53ca9a 21777
a90ef4bf
JM
21778.PHONY: install-libdecnumber maybe-install-libdecnumber
21779maybe-install-libdecnumber:
21780@if libdecnumber
21781maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21782
a90ef4bf
JM
21783install-libdecnumber: installdirs
21784 @: $(MAKE); $(unstage)
21785 @r=`${PWD_COMMAND}`; export r; \
21786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21787 $(HOST_EXPORTS) \
21788 (cd $(HOST_SUBDIR)/libdecnumber && \
21789 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21790
a90ef4bf 21791@endif libdecnumber
1f53ca9a 21792
a90ef4bf
JM
21793.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21794maybe-install-strip-libdecnumber:
21795@if libdecnumber
21796maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21797
a90ef4bf
JM
21798install-strip-libdecnumber: installdirs
21799 @: $(MAKE); $(unstage)
21800 @r=`${PWD_COMMAND}`; export r; \
21801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21802 $(HOST_EXPORTS) \
21803 (cd $(HOST_SUBDIR)/libdecnumber && \
21804 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21805
a90ef4bf 21806@endif libdecnumber
9b980aa1 21807
1f53ca9a
AO
21808# Other targets (info, dvi, pdf, etc.)
21809
a90ef4bf
JM
21810.PHONY: maybe-info-libdecnumber info-libdecnumber
21811maybe-info-libdecnumber:
21812@if libdecnumber
21813maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21814
a90ef4bf
JM
21815info-libdecnumber: \
21816 configure-libdecnumber
21817 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21818 r=`${PWD_COMMAND}`; export r; \
21819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21820 $(HOST_EXPORTS) \
21821 for flag in $(EXTRA_HOST_FLAGS) ; do \
21822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21823 done; \
a90ef4bf
JM
21824 echo "Doing info in libdecnumber" ; \
21825 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21828 "RANLIB=$${RANLIB}" \
21829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21830 info) \
21831 || exit 1
21832
a90ef4bf 21833@endif libdecnumber
1f53ca9a 21834
a90ef4bf
JM
21835.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21836maybe-dvi-libdecnumber:
21837@if libdecnumber
21838maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21839
a90ef4bf
JM
21840dvi-libdecnumber: \
21841 configure-libdecnumber
21842 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21843 r=`${PWD_COMMAND}`; export r; \
21844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21845 $(HOST_EXPORTS) \
21846 for flag in $(EXTRA_HOST_FLAGS) ; do \
21847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21848 done; \
a90ef4bf
JM
21849 echo "Doing dvi in libdecnumber" ; \
21850 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21853 "RANLIB=$${RANLIB}" \
21854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21855 dvi) \
21856 || exit 1
21857
a90ef4bf 21858@endif libdecnumber
1f53ca9a 21859
a90ef4bf
JM
21860.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21861maybe-pdf-libdecnumber:
21862@if libdecnumber
21863maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21864
a90ef4bf
JM
21865pdf-libdecnumber: \
21866 configure-libdecnumber
21867 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21868 r=`${PWD_COMMAND}`; export r; \
21869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21870 $(HOST_EXPORTS) \
21871 for flag in $(EXTRA_HOST_FLAGS) ; do \
21872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21873 done; \
a90ef4bf
JM
21874 echo "Doing pdf in libdecnumber" ; \
21875 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21878 "RANLIB=$${RANLIB}" \
21879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21880 pdf) \
21881 || exit 1
21882
a90ef4bf 21883@endif libdecnumber
1f53ca9a 21884
a90ef4bf
JM
21885.PHONY: maybe-html-libdecnumber html-libdecnumber
21886maybe-html-libdecnumber:
21887@if libdecnumber
21888maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21889
a90ef4bf
JM
21890html-libdecnumber: \
21891 configure-libdecnumber
21892 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21893 r=`${PWD_COMMAND}`; export r; \
21894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21895 $(HOST_EXPORTS) \
21896 for flag in $(EXTRA_HOST_FLAGS) ; do \
21897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21898 done; \
a90ef4bf
JM
21899 echo "Doing html in libdecnumber" ; \
21900 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21903 "RANLIB=$${RANLIB}" \
21904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21905 html) \
21906 || exit 1
21907
a90ef4bf 21908@endif libdecnumber
1f53ca9a 21909
a90ef4bf
JM
21910.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21911maybe-TAGS-libdecnumber:
21912@if libdecnumber
21913maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21914
a90ef4bf
JM
21915TAGS-libdecnumber: \
21916 configure-libdecnumber
21917 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21918 r=`${PWD_COMMAND}`; export r; \
21919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21920 $(HOST_EXPORTS) \
21921 for flag in $(EXTRA_HOST_FLAGS) ; do \
21922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21923 done; \
a90ef4bf
JM
21924 echo "Doing TAGS in libdecnumber" ; \
21925 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21928 "RANLIB=$${RANLIB}" \
21929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21930 TAGS) \
21931 || exit 1
21932
a90ef4bf 21933@endif libdecnumber
1f53ca9a 21934
a90ef4bf
JM
21935.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21936maybe-install-info-libdecnumber:
21937@if libdecnumber
21938maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21939
a90ef4bf
JM
21940install-info-libdecnumber: \
21941 configure-libdecnumber \
21942 info-libdecnumber
21943 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21944 r=`${PWD_COMMAND}`; export r; \
21945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21946 $(HOST_EXPORTS) \
21947 for flag in $(EXTRA_HOST_FLAGS) ; do \
21948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21949 done; \
a90ef4bf
JM
21950 echo "Doing install-info in libdecnumber" ; \
21951 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21954 "RANLIB=$${RANLIB}" \
21955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21956 install-info) \
21957 || exit 1
21958
a90ef4bf 21959@endif libdecnumber
1f53ca9a 21960
a90ef4bf
JM
21961.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21962maybe-install-pdf-libdecnumber:
21963@if libdecnumber
21964maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21965
a90ef4bf
JM
21966install-pdf-libdecnumber: \
21967 configure-libdecnumber \
21968 pdf-libdecnumber
21969 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21970 r=`${PWD_COMMAND}`; export r; \
21971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21972 $(HOST_EXPORTS) \
21973 for flag in $(EXTRA_HOST_FLAGS) ; do \
21974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21975 done; \
a90ef4bf
JM
21976 echo "Doing install-pdf in libdecnumber" ; \
21977 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21980 "RANLIB=$${RANLIB}" \
21981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21982 install-pdf) \
21983 || exit 1
21984
a90ef4bf 21985@endif libdecnumber
1f53ca9a 21986
a90ef4bf
JM
21987.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21988maybe-install-html-libdecnumber:
21989@if libdecnumber
21990maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21991
a90ef4bf
JM
21992install-html-libdecnumber: \
21993 configure-libdecnumber \
21994 html-libdecnumber
21995 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21996 r=`${PWD_COMMAND}`; export r; \
21997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21998 $(HOST_EXPORTS) \
21999 for flag in $(EXTRA_HOST_FLAGS) ; do \
22000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22001 done; \
a90ef4bf
JM
22002 echo "Doing install-html in libdecnumber" ; \
22003 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22006 "RANLIB=$${RANLIB}" \
22007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22008 install-html) \
22009 || exit 1
22010
a90ef4bf 22011@endif libdecnumber
1f53ca9a 22012
a90ef4bf
JM
22013.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
22014maybe-installcheck-libdecnumber:
22015@if libdecnumber
22016maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 22017
a90ef4bf
JM
22018installcheck-libdecnumber: \
22019 configure-libdecnumber
22020 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22021 r=`${PWD_COMMAND}`; export r; \
22022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22023 $(HOST_EXPORTS) \
22024 for flag in $(EXTRA_HOST_FLAGS) ; do \
22025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22026 done; \
a90ef4bf
JM
22027 echo "Doing installcheck in libdecnumber" ; \
22028 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22031 "RANLIB=$${RANLIB}" \
22032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22033 installcheck) \
22034 || exit 1
22035
a90ef4bf 22036@endif libdecnumber
1f53ca9a 22037
a90ef4bf
JM
22038.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
22039maybe-mostlyclean-libdecnumber:
22040@if libdecnumber
22041maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 22042
a90ef4bf
JM
22043mostlyclean-libdecnumber:
22044 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22045 r=`${PWD_COMMAND}`; export r; \
22046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22047 $(HOST_EXPORTS) \
22048 for flag in $(EXTRA_HOST_FLAGS) ; do \
22049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22050 done; \
a90ef4bf
JM
22051 echo "Doing mostlyclean in libdecnumber" ; \
22052 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22055 "RANLIB=$${RANLIB}" \
22056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22057 mostlyclean) \
22058 || exit 1
22059
a90ef4bf 22060@endif libdecnumber
1f53ca9a 22061
a90ef4bf
JM
22062.PHONY: maybe-clean-libdecnumber clean-libdecnumber
22063maybe-clean-libdecnumber:
22064@if libdecnumber
22065maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 22066
a90ef4bf
JM
22067clean-libdecnumber:
22068 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22069 r=`${PWD_COMMAND}`; export r; \
22070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22071 $(HOST_EXPORTS) \
22072 for flag in $(EXTRA_HOST_FLAGS) ; do \
22073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22074 done; \
a90ef4bf
JM
22075 echo "Doing clean in libdecnumber" ; \
22076 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22079 "RANLIB=$${RANLIB}" \
22080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22081 clean) \
22082 || exit 1
22083
a90ef4bf 22084@endif libdecnumber
1f53ca9a 22085
a90ef4bf
JM
22086.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
22087maybe-distclean-libdecnumber:
22088@if libdecnumber
22089maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 22090
a90ef4bf
JM
22091distclean-libdecnumber:
22092 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22093 r=`${PWD_COMMAND}`; export r; \
22094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22095 $(HOST_EXPORTS) \
22096 for flag in $(EXTRA_HOST_FLAGS) ; do \
22097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22098 done; \
a90ef4bf
JM
22099 echo "Doing distclean in libdecnumber" ; \
22100 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22103 "RANLIB=$${RANLIB}" \
22104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22105 distclean) \
22106 || exit 1
22107
a90ef4bf 22108@endif libdecnumber
1f53ca9a 22109
a90ef4bf
JM
22110.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
22111maybe-maintainer-clean-libdecnumber:
22112@if libdecnumber
22113maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 22114
a90ef4bf
JM
22115maintainer-clean-libdecnumber:
22116 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22117 r=`${PWD_COMMAND}`; export r; \
22118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22119 $(HOST_EXPORTS) \
22120 for flag in $(EXTRA_HOST_FLAGS) ; do \
22121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22122 done; \
a90ef4bf
JM
22123 echo "Doing maintainer-clean in libdecnumber" ; \
22124 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22127 "RANLIB=$${RANLIB}" \
22128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22129 maintainer-clean) \
22130 || exit 1
22131
a90ef4bf 22132@endif libdecnumber
1f53ca9a
AO
22133
22134
22135
a90ef4bf
JM
22136.PHONY: configure-libgui maybe-configure-libgui
22137maybe-configure-libgui:
4f0ef2d8 22138@if gcc-bootstrap
a90ef4bf 22139configure-libgui: stage_current
4f0ef2d8 22140@endif gcc-bootstrap
a90ef4bf
JM
22141@if libgui
22142maybe-configure-libgui: configure-libgui
22143configure-libgui:
0aed8855 22144 @: $(MAKE); $(unstage)
c52c6897 22145 @r=`${PWD_COMMAND}`; export r; \
4fa63067 22146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
22147 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22148 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
1f53ca9a 22149 $(HOST_EXPORTS) \
a90ef4bf
JM
22150 echo Configuring in $(HOST_SUBDIR)/libgui; \
22151 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 22152 case $(srcdir) in \
b00612cc 22153 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22154 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 22155 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 22156 esac; \
a90ef4bf
JM
22157 srcdiroption="--srcdir=$${topdir}/libgui"; \
22158 libsrcdir="$$s/libgui"; \
4fa63067 22159 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
22160 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22161 --target=${target_alias} $${srcdiroption} \
2a4cbe27 22162 || exit 1
a90ef4bf 22163@endif libgui
2a4cbe27 22164
a7254363
PB
22165
22166
d545f33b
PB
22167
22168
a90ef4bf
JM
22169.PHONY: all-libgui maybe-all-libgui
22170maybe-all-libgui:
4f0ef2d8 22171@if gcc-bootstrap
a90ef4bf 22172all-libgui: stage_current
4f0ef2d8 22173@endif gcc-bootstrap
a90ef4bf
JM
22174@if libgui
22175TARGET-libgui=all
22176maybe-all-libgui: all-libgui
22177all-libgui: configure-libgui
0aed8855 22178 @: $(MAKE); $(unstage)
4fa63067
NN
22179 @r=`${PWD_COMMAND}`; export r; \
22180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22181 $(HOST_EXPORTS) \
a90ef4bf 22182 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 22183 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22184 $(TARGET-libgui))
22185@endif libgui
2a4cbe27 22186
a7254363 22187
d545f33b
PB
22188
22189
a90ef4bf
JM
22190.PHONY: check-libgui maybe-check-libgui
22191maybe-check-libgui:
22192@if libgui
22193maybe-check-libgui: check-libgui
2a4cbe27 22194
a90ef4bf 22195check-libgui:
0aed8855 22196 @: $(MAKE); $(unstage)
4fa63067 22197 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22199 $(HOST_EXPORTS) \
a90ef4bf 22200 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22201 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22202
a90ef4bf 22203@endif libgui
2a4cbe27 22204
a90ef4bf
JM
22205.PHONY: install-libgui maybe-install-libgui
22206maybe-install-libgui:
22207@if libgui
22208maybe-install-libgui: install-libgui
2a4cbe27 22209
a90ef4bf 22210install-libgui: installdirs
0aed8855 22211 @: $(MAKE); $(unstage)
4fa63067 22212 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22214 $(HOST_EXPORTS) \
a90ef4bf 22215 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22216 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22217
a90ef4bf 22218@endif libgui
2a4cbe27 22219
a90ef4bf
JM
22220.PHONY: install-strip-libgui maybe-install-strip-libgui
22221maybe-install-strip-libgui:
22222@if libgui
22223maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22224
a90ef4bf 22225install-strip-libgui: installdirs
9b980aa1
RW
22226 @: $(MAKE); $(unstage)
22227 @r=`${PWD_COMMAND}`; export r; \
22228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22229 $(HOST_EXPORTS) \
a90ef4bf 22230 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22231 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22232
a90ef4bf 22233@endif libgui
9b980aa1 22234
56a8fe78 22235# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22236
a90ef4bf
JM
22237.PHONY: maybe-info-libgui info-libgui
22238maybe-info-libgui:
22239@if libgui
22240maybe-info-libgui: info-libgui
4fa63067 22241
a90ef4bf
JM
22242info-libgui: \
22243 configure-libgui
0aed8855 22244 @: $(MAKE); $(unstage)
a90ef4bf 22245 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22246 r=`${PWD_COMMAND}`; export r; \
22247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22248 $(HOST_EXPORTS) \
b813574b 22249 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22251 done; \
a90ef4bf
JM
22252 echo "Doing info in libgui" ; \
22253 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22256 "RANLIB=$${RANLIB}" \
0c24b341 22257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22258 info) \
2a4cbe27
NN
22259 || exit 1
22260
a90ef4bf 22261@endif libgui
2a4cbe27 22262
a90ef4bf
JM
22263.PHONY: maybe-dvi-libgui dvi-libgui
22264maybe-dvi-libgui:
22265@if libgui
22266maybe-dvi-libgui: dvi-libgui
2a4cbe27 22267
a90ef4bf
JM
22268dvi-libgui: \
22269 configure-libgui
0aed8855 22270 @: $(MAKE); $(unstage)
a90ef4bf 22271 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22272 r=`${PWD_COMMAND}`; export r; \
22273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22274 $(HOST_EXPORTS) \
b813574b 22275 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22277 done; \
a90ef4bf
JM
22278 echo "Doing dvi in libgui" ; \
22279 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22282 "RANLIB=$${RANLIB}" \
0c24b341 22283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22284 dvi) \
2a4cbe27
NN
22285 || exit 1
22286
a90ef4bf 22287@endif libgui
2a4cbe27 22288
a90ef4bf
JM
22289.PHONY: maybe-pdf-libgui pdf-libgui
22290maybe-pdf-libgui:
22291@if libgui
22292maybe-pdf-libgui: pdf-libgui
56a8fe78 22293
a90ef4bf
JM
22294pdf-libgui: \
22295 configure-libgui
56a8fe78 22296 @: $(MAKE); $(unstage)
a90ef4bf 22297 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22298 r=`${PWD_COMMAND}`; export r; \
22299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22300 $(HOST_EXPORTS) \
22301 for flag in $(EXTRA_HOST_FLAGS) ; do \
22302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22303 done; \
a90ef4bf
JM
22304 echo "Doing pdf in libgui" ; \
22305 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22308 "RANLIB=$${RANLIB}" \
0c24b341 22309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22310 pdf) \
22311 || exit 1
22312
a90ef4bf 22313@endif libgui
56a8fe78 22314
a90ef4bf
JM
22315.PHONY: maybe-html-libgui html-libgui
22316maybe-html-libgui:
22317@if libgui
22318maybe-html-libgui: html-libgui
6d389afc 22319
a90ef4bf
JM
22320html-libgui: \
22321 configure-libgui
0aed8855 22322 @: $(MAKE); $(unstage)
a90ef4bf 22323 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22324 r=`${PWD_COMMAND}`; export r; \
22325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22326 $(HOST_EXPORTS) \
22327 for flag in $(EXTRA_HOST_FLAGS) ; do \
22328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22329 done; \
a90ef4bf
JM
22330 echo "Doing html in libgui" ; \
22331 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22334 "RANLIB=$${RANLIB}" \
0c24b341 22335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22336 html) \
22337 || exit 1
22338
a90ef4bf 22339@endif libgui
6d389afc 22340
a90ef4bf
JM
22341.PHONY: maybe-TAGS-libgui TAGS-libgui
22342maybe-TAGS-libgui:
22343@if libgui
22344maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22345
a90ef4bf
JM
22346TAGS-libgui: \
22347 configure-libgui
0aed8855 22348 @: $(MAKE); $(unstage)
a90ef4bf 22349 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22350 r=`${PWD_COMMAND}`; export r; \
22351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22352 $(HOST_EXPORTS) \
b813574b 22353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22355 done; \
a90ef4bf
JM
22356 echo "Doing TAGS in libgui" ; \
22357 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22360 "RANLIB=$${RANLIB}" \
0c24b341 22361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22362 TAGS) \
2a4cbe27
NN
22363 || exit 1
22364
a90ef4bf 22365@endif libgui
2a4cbe27 22366
a90ef4bf
JM
22367.PHONY: maybe-install-info-libgui install-info-libgui
22368maybe-install-info-libgui:
22369@if libgui
22370maybe-install-info-libgui: install-info-libgui
2a4cbe27 22371
a90ef4bf
JM
22372install-info-libgui: \
22373 configure-libgui \
22374 info-libgui
0aed8855 22375 @: $(MAKE); $(unstage)
a90ef4bf 22376 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22377 r=`${PWD_COMMAND}`; export r; \
22378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22379 $(HOST_EXPORTS) \
b813574b 22380 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22382 done; \
a90ef4bf
JM
22383 echo "Doing install-info in libgui" ; \
22384 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22387 "RANLIB=$${RANLIB}" \
0c24b341 22388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22389 install-info) \
2a4cbe27
NN
22390 || exit 1
22391
a90ef4bf 22392@endif libgui
2a4cbe27 22393
a90ef4bf
JM
22394.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22395maybe-install-pdf-libgui:
22396@if libgui
22397maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22398
a90ef4bf
JM
22399install-pdf-libgui: \
22400 configure-libgui \
22401 pdf-libgui
a3ca38d2 22402 @: $(MAKE); $(unstage)
a90ef4bf 22403 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22404 r=`${PWD_COMMAND}`; export r; \
22405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22406 $(HOST_EXPORTS) \
22407 for flag in $(EXTRA_HOST_FLAGS) ; do \
22408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22409 done; \
a90ef4bf
JM
22410 echo "Doing install-pdf in libgui" ; \
22411 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22414 "RANLIB=$${RANLIB}" \
0c24b341 22415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22416 install-pdf) \
22417 || exit 1
22418
a90ef4bf 22419@endif libgui
a3ca38d2 22420
a90ef4bf
JM
22421.PHONY: maybe-install-html-libgui install-html-libgui
22422maybe-install-html-libgui:
22423@if libgui
22424maybe-install-html-libgui: install-html-libgui
108a6f8e 22425
a90ef4bf
JM
22426install-html-libgui: \
22427 configure-libgui \
22428 html-libgui
108a6f8e 22429 @: $(MAKE); $(unstage)
a90ef4bf 22430 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22431 r=`${PWD_COMMAND}`; export r; \
22432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22433 $(HOST_EXPORTS) \
22434 for flag in $(EXTRA_HOST_FLAGS) ; do \
22435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22436 done; \
a90ef4bf
JM
22437 echo "Doing install-html in libgui" ; \
22438 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22441 "RANLIB=$${RANLIB}" \
0c24b341 22442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22443 install-html) \
22444 || exit 1
22445
a90ef4bf 22446@endif libgui
108a6f8e 22447
a90ef4bf
JM
22448.PHONY: maybe-installcheck-libgui installcheck-libgui
22449maybe-installcheck-libgui:
22450@if libgui
22451maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22452
a90ef4bf
JM
22453installcheck-libgui: \
22454 configure-libgui
0aed8855 22455 @: $(MAKE); $(unstage)
a90ef4bf 22456 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22457 r=`${PWD_COMMAND}`; export r; \
22458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22459 $(HOST_EXPORTS) \
b813574b 22460 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22462 done; \
a90ef4bf
JM
22463 echo "Doing installcheck in libgui" ; \
22464 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22467 "RANLIB=$${RANLIB}" \
0c24b341 22468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22469 installcheck) \
2a4cbe27
NN
22470 || exit 1
22471
a90ef4bf 22472@endif libgui
2a4cbe27 22473
a90ef4bf
JM
22474.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22475maybe-mostlyclean-libgui:
22476@if libgui
22477maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22478
a90ef4bf 22479mostlyclean-libgui:
0aed8855 22480 @: $(MAKE); $(unstage)
a90ef4bf 22481 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22482 r=`${PWD_COMMAND}`; export r; \
22483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22484 $(HOST_EXPORTS) \
b813574b 22485 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22487 done; \
a90ef4bf
JM
22488 echo "Doing mostlyclean in libgui" ; \
22489 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22492 "RANLIB=$${RANLIB}" \
0c24b341 22493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22494 mostlyclean) \
2a4cbe27
NN
22495 || exit 1
22496
a90ef4bf 22497@endif libgui
2a4cbe27 22498
a90ef4bf
JM
22499.PHONY: maybe-clean-libgui clean-libgui
22500maybe-clean-libgui:
22501@if libgui
22502maybe-clean-libgui: clean-libgui
2a4cbe27 22503
a90ef4bf 22504clean-libgui:
0aed8855 22505 @: $(MAKE); $(unstage)
a90ef4bf 22506 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22507 r=`${PWD_COMMAND}`; export r; \
22508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22509 $(HOST_EXPORTS) \
b813574b 22510 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22512 done; \
a90ef4bf
JM
22513 echo "Doing clean in libgui" ; \
22514 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22517 "RANLIB=$${RANLIB}" \
0c24b341 22518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22519 clean) \
2a4cbe27
NN
22520 || exit 1
22521
a90ef4bf 22522@endif libgui
2a4cbe27 22523
a90ef4bf
JM
22524.PHONY: maybe-distclean-libgui distclean-libgui
22525maybe-distclean-libgui:
22526@if libgui
22527maybe-distclean-libgui: distclean-libgui
2a4cbe27 22528
a90ef4bf 22529distclean-libgui:
0aed8855 22530 @: $(MAKE); $(unstage)
a90ef4bf 22531 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22532 r=`${PWD_COMMAND}`; export r; \
22533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22534 $(HOST_EXPORTS) \
b813574b 22535 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22537 done; \
a90ef4bf
JM
22538 echo "Doing distclean in libgui" ; \
22539 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22542 "RANLIB=$${RANLIB}" \
0c24b341 22543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22544 distclean) \
2a4cbe27
NN
22545 || exit 1
22546
a90ef4bf 22547@endif libgui
2a4cbe27 22548
a90ef4bf
JM
22549.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22550maybe-maintainer-clean-libgui:
22551@if libgui
22552maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22553
a90ef4bf 22554maintainer-clean-libgui:
0aed8855 22555 @: $(MAKE); $(unstage)
a90ef4bf 22556 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22557 r=`${PWD_COMMAND}`; export r; \
22558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22559 $(HOST_EXPORTS) \
b813574b 22560 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22562 done; \
a90ef4bf
JM
22563 echo "Doing maintainer-clean in libgui" ; \
22564 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22567 "RANLIB=$${RANLIB}" \
0c24b341 22568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22569 maintainer-clean) \
2a4cbe27
NN
22570 || exit 1
22571
a90ef4bf 22572@endif libgui
2a4cbe27 22573
2a4cbe27 22574
a7254363 22575
a90ef4bf
JM
22576.PHONY: configure-libiberty maybe-configure-libiberty
22577maybe-configure-libiberty:
93f9b408 22578@if gcc-bootstrap
a90ef4bf 22579configure-libiberty: stage_current
93f9b408 22580@endif gcc-bootstrap
a90ef4bf
JM
22581@if libiberty
22582maybe-configure-libiberty: configure-libiberty
22583configure-libiberty:
93f9b408
ILT
22584 @r=`${PWD_COMMAND}`; export r; \
22585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
22586 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22587 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
1f53ca9a 22588 $(HOST_EXPORTS) \
a90ef4bf
JM
22589 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22590 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22591 case $(srcdir) in \
22592 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22593 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22594 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22595 esac; \
a90ef4bf
JM
22596 srcdiroption="--srcdir=$${topdir}/libiberty"; \
22597 libsrcdir="$$s/libiberty"; \
93f9b408
ILT
22598 $(SHELL) $${libsrcdir}/configure \
22599 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 22600 --target=${target_alias} $${srcdiroption} @extra_host_libiberty_configure_flags@ \
93f9b408 22601 || exit 1
a90ef4bf 22602@endif libiberty
93f9b408
ILT
22603
22604
22605
a90ef4bf
JM
22606.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22607maybe-configure-stage1-libiberty:
22608@if libiberty-bootstrap
22609maybe-configure-stage1-libiberty: configure-stage1-libiberty
22610configure-stage1-libiberty:
93f9b408 22611 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22612 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22613 @r=`${PWD_COMMAND}`; export r; \
22614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22615 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22616 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22617 $(HOST_EXPORTS) \
93f9b408 22618 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22619 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22620 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22621 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
22622 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22623 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22624 case $(srcdir) in \
22625 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22626 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22627 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22628 esac; \
a90ef4bf
JM
22629 srcdiroption="--srcdir=$${topdir}/libiberty"; \
22630 libsrcdir="$$s/libiberty"; \
93f9b408
ILT
22631 $(SHELL) $${libsrcdir}/configure \
22632 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22633 --target=${target_alias} $${srcdiroption} \
a90ef4bf
JM
22634 $(STAGE1_CONFIGURE_FLAGS) \
22635 @extra_host_libiberty_configure_flags@
22636@endif libiberty-bootstrap
93f9b408 22637
a90ef4bf
JM
22638.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22639maybe-configure-stage2-libiberty:
22640@if libiberty-bootstrap
22641maybe-configure-stage2-libiberty: configure-stage2-libiberty
22642configure-stage2-libiberty:
93f9b408 22643 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22644 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22645 @r=`${PWD_COMMAND}`; export r; \
22646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22647 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22648 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22649 $(HOST_EXPORTS) \
1b05fbbd 22650 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22651 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22652 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22653 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22654 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
22655 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22656 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22657 case $(srcdir) in \
22658 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22659 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22660 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22661 esac; \
a90ef4bf
JM
22662 srcdiroption="--srcdir=$${topdir}/libiberty"; \
22663 libsrcdir="$$s/libiberty"; \
93f9b408
ILT
22664 $(SHELL) $${libsrcdir}/configure \
22665 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22666 --target=${target_alias} $${srcdiroption} \
22667 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22668 $(STAGE2_CONFIGURE_FLAGS) \
22669 @extra_host_libiberty_configure_flags@
22670@endif libiberty-bootstrap
93f9b408 22671
a90ef4bf
JM
22672.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22673maybe-configure-stage3-libiberty:
22674@if libiberty-bootstrap
22675maybe-configure-stage3-libiberty: configure-stage3-libiberty
22676configure-stage3-libiberty:
93f9b408 22677 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22678 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22679 @r=`${PWD_COMMAND}`; export r; \
22680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22681 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22682 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22683 $(HOST_EXPORTS) \
1b05fbbd 22684 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22685 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22686 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22687 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22688 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
22689 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22690 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22691 case $(srcdir) in \
22692 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22693 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22694 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22695 esac; \
a90ef4bf
JM
22696 srcdiroption="--srcdir=$${topdir}/libiberty"; \
22697 libsrcdir="$$s/libiberty"; \
93f9b408
ILT
22698 $(SHELL) $${libsrcdir}/configure \
22699 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22700 --target=${target_alias} $${srcdiroption} \
22701 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22702 $(STAGE3_CONFIGURE_FLAGS) \
22703 @extra_host_libiberty_configure_flags@
22704@endif libiberty-bootstrap
93f9b408 22705
a90ef4bf
JM
22706.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22707maybe-configure-stage4-libiberty:
22708@if libiberty-bootstrap
22709maybe-configure-stage4-libiberty: configure-stage4-libiberty
22710configure-stage4-libiberty:
93f9b408 22711 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22712 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22713 @r=`${PWD_COMMAND}`; export r; \
22714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22715 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22716 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22717 $(HOST_EXPORTS) \
1b05fbbd 22718 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22719 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22720 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22721 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22722 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
22723 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22724 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22725 case $(srcdir) in \
22726 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22727 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22728 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22729 esac; \
a90ef4bf
JM
22730 srcdiroption="--srcdir=$${topdir}/libiberty"; \
22731 libsrcdir="$$s/libiberty"; \
93f9b408
ILT
22732 $(SHELL) $${libsrcdir}/configure \
22733 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22734 --target=${target_alias} $${srcdiroption} \
22735 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22736 $(STAGE4_CONFIGURE_FLAGS) \
22737 @extra_host_libiberty_configure_flags@
22738@endif libiberty-bootstrap
93f9b408 22739
a90ef4bf
JM
22740.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22741maybe-configure-stageprofile-libiberty:
22742@if libiberty-bootstrap
22743maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22744configure-stageprofile-libiberty:
93f9b408 22745 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22746 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22747 @r=`${PWD_COMMAND}`; export r; \
22748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22749 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22750 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22751 $(HOST_EXPORTS) \
1b05fbbd
AO
22752 $(POSTSTAGE1_HOST_EXPORTS) \
22753 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22754 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22755 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22756 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
22757 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22758 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22759 case $(srcdir) in \
22760 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22761 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22762 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22763 esac; \
a90ef4bf
JM
22764 srcdiroption="--srcdir=$${topdir}/libiberty"; \
22765 libsrcdir="$$s/libiberty"; \
93f9b408
ILT
22766 $(SHELL) $${libsrcdir}/configure \
22767 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22768 --target=${target_alias} $${srcdiroption} \
22769 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22770 $(STAGEprofile_CONFIGURE_FLAGS) \
22771 @extra_host_libiberty_configure_flags@
22772@endif libiberty-bootstrap
93f9b408 22773
a90ef4bf
JM
22774.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22775maybe-configure-stagefeedback-libiberty:
22776@if libiberty-bootstrap
22777maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22778configure-stagefeedback-libiberty:
93f9b408 22779 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22780 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22781 @r=`${PWD_COMMAND}`; export r; \
22782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22783 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22784 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22785 $(HOST_EXPORTS) \
1b05fbbd
AO
22786 $(POSTSTAGE1_HOST_EXPORTS) \
22787 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22788 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22789 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22790 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
22791 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22792 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22793 case $(srcdir) in \
22794 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22795 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22796 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22797 esac; \
a90ef4bf
JM
22798 srcdiroption="--srcdir=$${topdir}/libiberty"; \
22799 libsrcdir="$$s/libiberty"; \
93f9b408
ILT
22800 $(SHELL) $${libsrcdir}/configure \
22801 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22802 --target=${target_alias} $${srcdiroption} \
22803 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22804 $(STAGEfeedback_CONFIGURE_FLAGS) \
22805 @extra_host_libiberty_configure_flags@
22806@endif libiberty-bootstrap
93f9b408
ILT
22807
22808
22809
22810
22811
a90ef4bf
JM
22812.PHONY: all-libiberty maybe-all-libiberty
22813maybe-all-libiberty:
93f9b408 22814@if gcc-bootstrap
a90ef4bf 22815all-libiberty: stage_current
93f9b408 22816@endif gcc-bootstrap
a90ef4bf
JM
22817@if libiberty
22818TARGET-libiberty=all
22819maybe-all-libiberty: all-libiberty
22820all-libiberty: configure-libiberty
93f9b408
ILT
22821 @r=`${PWD_COMMAND}`; export r; \
22822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22823 $(HOST_EXPORTS) \
a90ef4bf 22824 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22825 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22826 $(TARGET-libiberty))
22827@endif libiberty
93f9b408
ILT
22828
22829
22830
a90ef4bf
JM
22831.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22832.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22833maybe-all-stage1-libiberty:
22834maybe-clean-stage1-libiberty:
22835@if libiberty-bootstrap
22836maybe-all-stage1-libiberty: all-stage1-libiberty
22837all-stage1: all-stage1-libiberty
22838TARGET-stage1-libiberty = $(TARGET-libiberty)
22839all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22840 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22841 @r=`${PWD_COMMAND}`; export r; \
22842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22843 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22844 $(HOST_EXPORTS) \
a90ef4bf 22845 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22846 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22847 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22848 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22849 LIBCFLAGS="$(LIBCFLAGS)" \
22850 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22851 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22852 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22853 $(EXTRA_HOST_FLAGS) \
22854 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 22855 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22856 $(TARGET-stage1-libiberty)
93f9b408 22857
a90ef4bf
JM
22858maybe-clean-stage1-libiberty: clean-stage1-libiberty
22859clean-stage1: clean-stage1-libiberty
22860clean-stage1-libiberty:
93f9b408 22861 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22862 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22863 else \
a90ef4bf 22864 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22865 $(MAKE) stage1-start; \
22866 fi; \
a90ef4bf 22867 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22868 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22869 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22870@endif libiberty-bootstrap
93f9b408
ILT
22871
22872
a90ef4bf
JM
22873.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22874.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22875maybe-all-stage2-libiberty:
22876maybe-clean-stage2-libiberty:
22877@if libiberty-bootstrap
22878maybe-all-stage2-libiberty: all-stage2-libiberty
22879all-stage2: all-stage2-libiberty
22880TARGET-stage2-libiberty = $(TARGET-libiberty)
22881all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22882 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22883 @r=`${PWD_COMMAND}`; export r; \
22884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22885 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22886 $(HOST_EXPORTS) \
1f53ca9a 22887 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22888 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22889 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22890 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22891 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22892 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22893 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22894 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22895 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22896 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22897 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22898 $(TARGET-stage2-libiberty)
93f9b408 22899
a90ef4bf
JM
22900maybe-clean-stage2-libiberty: clean-stage2-libiberty
22901clean-stage2: clean-stage2-libiberty
22902clean-stage2-libiberty:
93f9b408 22903 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22904 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22905 else \
a90ef4bf 22906 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22907 $(MAKE) stage2-start; \
22908 fi; \
a90ef4bf 22909 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22910 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22911@endif libiberty-bootstrap
93f9b408
ILT
22912
22913
a90ef4bf
JM
22914.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22915.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22916maybe-all-stage3-libiberty:
22917maybe-clean-stage3-libiberty:
22918@if libiberty-bootstrap
22919maybe-all-stage3-libiberty: all-stage3-libiberty
22920all-stage3: all-stage3-libiberty
22921TARGET-stage3-libiberty = $(TARGET-libiberty)
22922all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22923 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22924 @r=`${PWD_COMMAND}`; export r; \
22925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22926 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22927 $(HOST_EXPORTS) \
1f53ca9a 22928 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22929 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22930 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22931 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22932 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22933 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22934 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22935 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22936 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22937 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22938 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22939 $(TARGET-stage3-libiberty)
93f9b408 22940
a90ef4bf
JM
22941maybe-clean-stage3-libiberty: clean-stage3-libiberty
22942clean-stage3: clean-stage3-libiberty
22943clean-stage3-libiberty:
93f9b408 22944 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22945 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22946 else \
a90ef4bf 22947 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22948 $(MAKE) stage3-start; \
22949 fi; \
a90ef4bf 22950 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22951 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22952@endif libiberty-bootstrap
93f9b408
ILT
22953
22954
a90ef4bf
JM
22955.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22956.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22957maybe-all-stage4-libiberty:
22958maybe-clean-stage4-libiberty:
22959@if libiberty-bootstrap
22960maybe-all-stage4-libiberty: all-stage4-libiberty
22961all-stage4: all-stage4-libiberty
22962TARGET-stage4-libiberty = $(TARGET-libiberty)
22963all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22964 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22965 @r=`${PWD_COMMAND}`; export r; \
22966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22967 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22968 $(HOST_EXPORTS) \
1f53ca9a 22969 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22970 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22971 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22972 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22973 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22974 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22975 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22976 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22977 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22978 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22979 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22980 $(TARGET-stage4-libiberty)
93f9b408 22981
a90ef4bf
JM
22982maybe-clean-stage4-libiberty: clean-stage4-libiberty
22983clean-stage4: clean-stage4-libiberty
22984clean-stage4-libiberty:
93f9b408 22985 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22986 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22987 else \
a90ef4bf 22988 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22989 $(MAKE) stage4-start; \
22990 fi; \
a90ef4bf 22991 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22992 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22993@endif libiberty-bootstrap
93f9b408
ILT
22994
22995
a90ef4bf
JM
22996.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22997.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22998maybe-all-stageprofile-libiberty:
22999maybe-clean-stageprofile-libiberty:
23000@if libiberty-bootstrap
23001maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
23002all-stageprofile: all-stageprofile-libiberty
23003TARGET-stageprofile-libiberty = $(TARGET-libiberty)
23004all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
23005 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23006 @r=`${PWD_COMMAND}`; export r; \
23007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 23008 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 23009 $(HOST_EXPORTS) \
1f53ca9a 23010 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 23011 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 23012 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 23013 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 23014 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
23015 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23016 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23017 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23018 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23019 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
23020 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 23021 $(TARGET-stageprofile-libiberty)
93f9b408 23022
a90ef4bf
JM
23023maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
23024clean-stageprofile: clean-stageprofile-libiberty
23025clean-stageprofile-libiberty:
93f9b408 23026 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 23027 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 23028 else \
a90ef4bf 23029 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23030 $(MAKE) stageprofile-start; \
23031 fi; \
a90ef4bf 23032 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 23033 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23034@endif libiberty-bootstrap
93f9b408
ILT
23035
23036
a90ef4bf
JM
23037.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
23038.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
23039maybe-all-stagefeedback-libiberty:
23040maybe-clean-stagefeedback-libiberty:
23041@if libiberty-bootstrap
23042maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
23043all-stagefeedback: all-stagefeedback-libiberty
23044TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
23045all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
23046 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23047 @r=`${PWD_COMMAND}`; export r; \
23048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 23049 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 23050 $(HOST_EXPORTS) \
1f53ca9a 23051 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 23052 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 23053 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 23054 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 23055 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
23056 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23057 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23058 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23059 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23060 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
23061 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 23062 $(TARGET-stagefeedback-libiberty)
93f9b408 23063
a90ef4bf
JM
23064maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
23065clean-stagefeedback: clean-stagefeedback-libiberty
23066clean-stagefeedback-libiberty:
93f9b408 23067 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 23068 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 23069 else \
a90ef4bf 23070 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23071 $(MAKE) stagefeedback-start; \
23072 fi; \
a90ef4bf 23073 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 23074 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23075@endif libiberty-bootstrap
93f9b408
ILT
23076
23077
23078
23079
23080
a90ef4bf
JM
23081.PHONY: check-libiberty maybe-check-libiberty
23082maybe-check-libiberty:
23083@if libiberty
23084maybe-check-libiberty: check-libiberty
93f9b408 23085
a90ef4bf 23086check-libiberty:
93f9b408
ILT
23087 @: $(MAKE); $(unstage)
23088 @r=`${PWD_COMMAND}`; export r; \
23089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23090 $(HOST_EXPORTS) \
a90ef4bf 23091 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23092 $(MAKE) $(FLAGS_TO_PASS) check)
23093
a90ef4bf 23094@endif libiberty
93f9b408 23095
a90ef4bf
JM
23096.PHONY: install-libiberty maybe-install-libiberty
23097maybe-install-libiberty:
23098@if libiberty
23099maybe-install-libiberty: install-libiberty
93f9b408 23100
a90ef4bf 23101install-libiberty: installdirs
93f9b408
ILT
23102 @: $(MAKE); $(unstage)
23103 @r=`${PWD_COMMAND}`; export r; \
23104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23105 $(HOST_EXPORTS) \
a90ef4bf 23106 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23107 $(MAKE) $(FLAGS_TO_PASS) install)
23108
a90ef4bf 23109@endif libiberty
93f9b408 23110
a90ef4bf
JM
23111.PHONY: install-strip-libiberty maybe-install-strip-libiberty
23112maybe-install-strip-libiberty:
23113@if libiberty
23114maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 23115
a90ef4bf 23116install-strip-libiberty: installdirs
9b980aa1
RW
23117 @: $(MAKE); $(unstage)
23118 @r=`${PWD_COMMAND}`; export r; \
23119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23120 $(HOST_EXPORTS) \
a90ef4bf 23121 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
23122 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23123
a90ef4bf 23124@endif libiberty
9b980aa1 23125
93f9b408
ILT
23126# Other targets (info, dvi, pdf, etc.)
23127
a90ef4bf
JM
23128.PHONY: maybe-info-libiberty info-libiberty
23129maybe-info-libiberty:
23130@if libiberty
23131maybe-info-libiberty: info-libiberty
93f9b408 23132
a90ef4bf
JM
23133info-libiberty: \
23134 configure-libiberty
23135 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23136 r=`${PWD_COMMAND}`; export r; \
23137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23138 $(HOST_EXPORTS) \
23139 for flag in $(EXTRA_HOST_FLAGS) ; do \
23140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23141 done; \
a90ef4bf
JM
23142 echo "Doing info in libiberty" ; \
23143 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23146 "RANLIB=$${RANLIB}" \
23147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23148 info) \
23149 || exit 1
23150
a90ef4bf 23151@endif libiberty
93f9b408 23152
a90ef4bf
JM
23153.PHONY: maybe-dvi-libiberty dvi-libiberty
23154maybe-dvi-libiberty:
23155@if libiberty
23156maybe-dvi-libiberty: dvi-libiberty
93f9b408 23157
a90ef4bf
JM
23158dvi-libiberty: \
23159 configure-libiberty
23160 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23161 r=`${PWD_COMMAND}`; export r; \
23162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23163 $(HOST_EXPORTS) \
23164 for flag in $(EXTRA_HOST_FLAGS) ; do \
23165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23166 done; \
a90ef4bf
JM
23167 echo "Doing dvi in libiberty" ; \
23168 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23171 "RANLIB=$${RANLIB}" \
23172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23173 dvi) \
23174 || exit 1
23175
a90ef4bf 23176@endif libiberty
93f9b408 23177
a90ef4bf
JM
23178.PHONY: maybe-pdf-libiberty pdf-libiberty
23179maybe-pdf-libiberty:
23180@if libiberty
23181maybe-pdf-libiberty: pdf-libiberty
93f9b408 23182
a90ef4bf
JM
23183pdf-libiberty: \
23184 configure-libiberty
23185 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23186 r=`${PWD_COMMAND}`; export r; \
23187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23188 $(HOST_EXPORTS) \
23189 for flag in $(EXTRA_HOST_FLAGS) ; do \
23190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23191 done; \
a90ef4bf
JM
23192 echo "Doing pdf in libiberty" ; \
23193 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23196 "RANLIB=$${RANLIB}" \
23197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23198 pdf) \
23199 || exit 1
23200
a90ef4bf 23201@endif libiberty
93f9b408 23202
a90ef4bf
JM
23203.PHONY: maybe-html-libiberty html-libiberty
23204maybe-html-libiberty:
23205@if libiberty
23206maybe-html-libiberty: html-libiberty
93f9b408 23207
a90ef4bf
JM
23208html-libiberty: \
23209 configure-libiberty
23210 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23211 r=`${PWD_COMMAND}`; export r; \
23212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23213 $(HOST_EXPORTS) \
23214 for flag in $(EXTRA_HOST_FLAGS) ; do \
23215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23216 done; \
a90ef4bf
JM
23217 echo "Doing html in libiberty" ; \
23218 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23221 "RANLIB=$${RANLIB}" \
23222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23223 html) \
23224 || exit 1
23225
a90ef4bf 23226@endif libiberty
93f9b408 23227
a90ef4bf
JM
23228.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23229maybe-TAGS-libiberty:
23230@if libiberty
23231maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23232
a90ef4bf
JM
23233TAGS-libiberty: \
23234 configure-libiberty
23235 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23236 r=`${PWD_COMMAND}`; export r; \
23237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23238 $(HOST_EXPORTS) \
23239 for flag in $(EXTRA_HOST_FLAGS) ; do \
23240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23241 done; \
a90ef4bf
JM
23242 echo "Doing TAGS in libiberty" ; \
23243 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23246 "RANLIB=$${RANLIB}" \
23247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23248 TAGS) \
23249 || exit 1
23250
a90ef4bf 23251@endif libiberty
93f9b408 23252
a90ef4bf
JM
23253.PHONY: maybe-install-info-libiberty install-info-libiberty
23254maybe-install-info-libiberty:
23255@if libiberty
23256maybe-install-info-libiberty: install-info-libiberty
93f9b408 23257
a90ef4bf
JM
23258install-info-libiberty: \
23259 configure-libiberty \
23260 info-libiberty
23261 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23262 r=`${PWD_COMMAND}`; export r; \
23263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23264 $(HOST_EXPORTS) \
23265 for flag in $(EXTRA_HOST_FLAGS) ; do \
23266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23267 done; \
a90ef4bf
JM
23268 echo "Doing install-info in libiberty" ; \
23269 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23272 "RANLIB=$${RANLIB}" \
23273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23274 install-info) \
23275 || exit 1
23276
a90ef4bf 23277@endif libiberty
93f9b408 23278
a90ef4bf
JM
23279.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23280maybe-install-pdf-libiberty:
23281@if libiberty
23282maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23283
a90ef4bf
JM
23284install-pdf-libiberty: \
23285 configure-libiberty \
23286 pdf-libiberty
23287 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23288 r=`${PWD_COMMAND}`; export r; \
23289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23290 $(HOST_EXPORTS) \
23291 for flag in $(EXTRA_HOST_FLAGS) ; do \
23292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23293 done; \
a90ef4bf
JM
23294 echo "Doing install-pdf in libiberty" ; \
23295 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23298 "RANLIB=$${RANLIB}" \
23299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23300 install-pdf) \
23301 || exit 1
23302
a90ef4bf 23303@endif libiberty
93f9b408 23304
a90ef4bf
JM
23305.PHONY: maybe-install-html-libiberty install-html-libiberty
23306maybe-install-html-libiberty:
23307@if libiberty
23308maybe-install-html-libiberty: install-html-libiberty
93f9b408 23309
a90ef4bf
JM
23310install-html-libiberty: \
23311 configure-libiberty \
23312 html-libiberty
23313 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23314 r=`${PWD_COMMAND}`; export r; \
23315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23316 $(HOST_EXPORTS) \
23317 for flag in $(EXTRA_HOST_FLAGS) ; do \
23318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23319 done; \
a90ef4bf
JM
23320 echo "Doing install-html in libiberty" ; \
23321 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23324 "RANLIB=$${RANLIB}" \
23325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23326 install-html) \
23327 || exit 1
23328
a90ef4bf 23329@endif libiberty
93f9b408 23330
a90ef4bf
JM
23331.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23332maybe-installcheck-libiberty:
23333@if libiberty
23334maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23335
a90ef4bf
JM
23336installcheck-libiberty: \
23337 configure-libiberty
23338 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23339 r=`${PWD_COMMAND}`; export r; \
23340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23341 $(HOST_EXPORTS) \
23342 for flag in $(EXTRA_HOST_FLAGS) ; do \
23343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23344 done; \
a90ef4bf
JM
23345 echo "Doing installcheck in libiberty" ; \
23346 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23349 "RANLIB=$${RANLIB}" \
23350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23351 installcheck) \
23352 || exit 1
23353
a90ef4bf 23354@endif libiberty
93f9b408 23355
a90ef4bf
JM
23356.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23357maybe-mostlyclean-libiberty:
23358@if libiberty
23359maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23360
a90ef4bf
JM
23361mostlyclean-libiberty:
23362 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23363 r=`${PWD_COMMAND}`; export r; \
23364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23365 $(HOST_EXPORTS) \
23366 for flag in $(EXTRA_HOST_FLAGS) ; do \
23367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23368 done; \
a90ef4bf
JM
23369 echo "Doing mostlyclean in libiberty" ; \
23370 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23373 "RANLIB=$${RANLIB}" \
23374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23375 mostlyclean) \
23376 || exit 1
23377
a90ef4bf 23378@endif libiberty
93f9b408 23379
a90ef4bf
JM
23380.PHONY: maybe-clean-libiberty clean-libiberty
23381maybe-clean-libiberty:
23382@if libiberty
23383maybe-clean-libiberty: clean-libiberty
93f9b408 23384
a90ef4bf
JM
23385clean-libiberty:
23386 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23387 r=`${PWD_COMMAND}`; export r; \
23388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23389 $(HOST_EXPORTS) \
23390 for flag in $(EXTRA_HOST_FLAGS) ; do \
23391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23392 done; \
a90ef4bf
JM
23393 echo "Doing clean in libiberty" ; \
23394 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23397 "RANLIB=$${RANLIB}" \
23398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23399 clean) \
23400 || exit 1
23401
a90ef4bf 23402@endif libiberty
93f9b408 23403
a90ef4bf
JM
23404.PHONY: maybe-distclean-libiberty distclean-libiberty
23405maybe-distclean-libiberty:
23406@if libiberty
23407maybe-distclean-libiberty: distclean-libiberty
93f9b408 23408
a90ef4bf
JM
23409distclean-libiberty:
23410 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23411 r=`${PWD_COMMAND}`; export r; \
23412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23413 $(HOST_EXPORTS) \
23414 for flag in $(EXTRA_HOST_FLAGS) ; do \
23415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23416 done; \
a90ef4bf
JM
23417 echo "Doing distclean in libiberty" ; \
23418 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23421 "RANLIB=$${RANLIB}" \
23422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23423 distclean) \
23424 || exit 1
23425
a90ef4bf 23426@endif libiberty
93f9b408 23427
a90ef4bf
JM
23428.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23429maybe-maintainer-clean-libiberty:
23430@if libiberty
23431maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23432
a90ef4bf
JM
23433maintainer-clean-libiberty:
23434 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23435 r=`${PWD_COMMAND}`; export r; \
23436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23437 $(HOST_EXPORTS) \
23438 for flag in $(EXTRA_HOST_FLAGS) ; do \
23439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23440 done; \
a90ef4bf
JM
23441 echo "Doing maintainer-clean in libiberty" ; \
23442 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23445 "RANLIB=$${RANLIB}" \
23446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23447 maintainer-clean) \
23448 || exit 1
23449
a90ef4bf 23450@endif libiberty
93f9b408
ILT
23451
23452
23453
a90ef4bf
JM
23454.PHONY: configure-libiconv maybe-configure-libiconv
23455maybe-configure-libiconv:
4f0ef2d8 23456@if gcc-bootstrap
a90ef4bf 23457configure-libiconv: stage_current
4f0ef2d8 23458@endif gcc-bootstrap
a90ef4bf
JM
23459@if libiconv
23460maybe-configure-libiconv: configure-libiconv
23461configure-libiconv:
0aed8855 23462 @: $(MAKE); $(unstage)
c52c6897 23463 @r=`${PWD_COMMAND}`; export r; \
b40e3958 23464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
23465 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
23466 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv ; \
1f53ca9a 23467 $(HOST_EXPORTS) \
a90ef4bf
JM
23468 echo Configuring in $(HOST_SUBDIR)/libiconv; \
23469 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 23470 case $(srcdir) in \
b00612cc 23471 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 23472 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 23473 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 23474 esac; \
a90ef4bf
JM
23475 srcdiroption="--srcdir=$${topdir}/libiconv"; \
23476 libsrcdir="$$s/libiconv"; \
4fa63067 23477 $(SHELL) $${libsrcdir}/configure \
4b900473 23478 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 23479 --target=${target_alias} $${srcdiroption} --disable-shared \
2a4cbe27 23480 || exit 1
a90ef4bf 23481@endif libiconv
2a4cbe27 23482
a7254363
PB
23483
23484
d545f33b
PB
23485
23486
a90ef4bf
JM
23487.PHONY: all-libiconv maybe-all-libiconv
23488maybe-all-libiconv:
4f0ef2d8 23489@if gcc-bootstrap
a90ef4bf 23490all-libiconv: stage_current
4f0ef2d8 23491@endif gcc-bootstrap
a90ef4bf
JM
23492@if libiconv
23493TARGET-libiconv=all
23494maybe-all-libiconv: all-libiconv
23495all-libiconv: configure-libiconv
0aed8855 23496 @: $(MAKE); $(unstage)
4fa63067
NN
23497 @r=`${PWD_COMMAND}`; export r; \
23498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 23499 $(HOST_EXPORTS) \
a90ef4bf 23500 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 23501 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
23502 $(TARGET-libiconv))
23503@endif libiconv
2a4cbe27 23504
a7254363 23505
d545f33b
PB
23506
23507
a90ef4bf
JM
23508.PHONY: check-libiconv maybe-check-libiconv
23509maybe-check-libiconv:
23510@if libiconv
23511maybe-check-libiconv: check-libiconv
2a4cbe27 23512
a90ef4bf 23513check-libiconv:
0aed8855 23514 @: $(MAKE); $(unstage)
4fa63067 23515 @r=`${PWD_COMMAND}`; export r; \
b40e3958 23516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23517 $(HOST_EXPORTS) \
a90ef4bf 23518 (cd $(HOST_SUBDIR)/libiconv && \
b00612cc 23519 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 23520
a90ef4bf 23521@endif libiconv
4fa63067 23522
a90ef4bf
JM
23523.PHONY: install-libiconv maybe-install-libiconv
23524maybe-install-libiconv:
23525@if libiconv
23526maybe-install-libiconv: install-libiconv
2a4cbe27 23527
a90ef4bf 23528install-libiconv:
2a4cbe27 23529
a90ef4bf 23530@endif libiconv
9b980aa1 23531
a90ef4bf
JM
23532.PHONY: install-strip-libiconv maybe-install-strip-libiconv
23533maybe-install-strip-libiconv:
23534@if libiconv
23535maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 23536
a90ef4bf
JM
23537install-strip-libiconv:
23538
23539@endif libiconv
9b980aa1 23540
56a8fe78 23541# Other targets (info, dvi, pdf, etc.)
2a4cbe27 23542
a90ef4bf
JM
23543.PHONY: maybe-info-libiconv info-libiconv
23544maybe-info-libiconv:
23545@if libiconv
23546maybe-info-libiconv: info-libiconv
4fa63067 23547
a90ef4bf
JM
23548info-libiconv: \
23549 configure-libiconv
0aed8855 23550 @: $(MAKE); $(unstage)
a90ef4bf 23551 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
23552 r=`${PWD_COMMAND}`; export r; \
23553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23554 $(HOST_EXPORTS) \
b813574b 23555 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23557 done; \
a90ef4bf
JM
23558 echo "Doing info in libiconv" ; \
23559 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
23560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23562 "RANLIB=$${RANLIB}" \
0c24b341 23563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23564 info) \
2a4cbe27
NN
23565 || exit 1
23566
a90ef4bf 23567@endif libiconv
2a4cbe27 23568
a90ef4bf
JM
23569.PHONY: maybe-dvi-libiconv dvi-libiconv
23570maybe-dvi-libiconv:
23571@if libiconv
23572maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 23573
a90ef4bf
JM
23574dvi-libiconv: \
23575 configure-libiconv
0aed8855 23576 @: $(MAKE); $(unstage)
a90ef4bf 23577 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
23578 r=`${PWD_COMMAND}`; export r; \
23579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23580 $(HOST_EXPORTS) \
b813574b 23581 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23583 done; \
a90ef4bf
JM
23584 echo "Doing dvi in libiconv" ; \
23585 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
23586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23588 "RANLIB=$${RANLIB}" \
0c24b341 23589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23590 dvi) \
2a4cbe27
NN
23591 || exit 1
23592
a90ef4bf 23593@endif libiconv
2a4cbe27 23594
a90ef4bf
JM
23595.PHONY: maybe-pdf-libiconv pdf-libiconv
23596maybe-pdf-libiconv:
23597@if libiconv
23598maybe-pdf-libiconv: pdf-libiconv
56a8fe78 23599
a90ef4bf
JM
23600pdf-libiconv: \
23601 configure-libiconv
56a8fe78 23602 @: $(MAKE); $(unstage)
a90ef4bf 23603 @[ -f ./libiconv/Makefile ] || exit 0; \
56a8fe78
DD
23604 r=`${PWD_COMMAND}`; export r; \
23605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23606 $(HOST_EXPORTS) \
23607 for flag in $(EXTRA_HOST_FLAGS) ; do \
23608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23609 done; \
a90ef4bf
JM
23610 echo "Doing pdf in libiconv" ; \
23611 (cd $(HOST_SUBDIR)/libiconv && \
56a8fe78
DD
23612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23614 "RANLIB=$${RANLIB}" \
0c24b341 23615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
23616 pdf) \
23617 || exit 1
23618
a90ef4bf 23619@endif libiconv
56a8fe78 23620
a90ef4bf
JM
23621.PHONY: maybe-html-libiconv html-libiconv
23622maybe-html-libiconv:
23623@if libiconv
23624maybe-html-libiconv: html-libiconv
6d389afc 23625
a90ef4bf
JM
23626html-libiconv: \
23627 configure-libiconv
0aed8855 23628 @: $(MAKE); $(unstage)
a90ef4bf 23629 @[ -f ./libiconv/Makefile ] || exit 0; \
6d389afc
MS
23630 r=`${PWD_COMMAND}`; export r; \
23631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
23632 $(HOST_EXPORTS) \
23633 for flag in $(EXTRA_HOST_FLAGS) ; do \
23634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23635 done; \
a90ef4bf
JM
23636 echo "Doing html in libiconv" ; \
23637 (cd $(HOST_SUBDIR)/libiconv && \
6d389afc
MS
23638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23640 "RANLIB=$${RANLIB}" \
0c24b341 23641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
23642 html) \
23643 || exit 1
23644
a90ef4bf 23645@endif libiconv
6d389afc 23646
a90ef4bf
JM
23647.PHONY: maybe-TAGS-libiconv TAGS-libiconv
23648maybe-TAGS-libiconv:
23649@if libiconv
23650maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 23651
a90ef4bf
JM
23652TAGS-libiconv: \
23653 configure-libiconv
0aed8855 23654 @: $(MAKE); $(unstage)
a90ef4bf 23655 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
23656 r=`${PWD_COMMAND}`; export r; \
23657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23658 $(HOST_EXPORTS) \
b813574b 23659 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23661 done; \
a90ef4bf
JM
23662 echo "Doing TAGS in libiconv" ; \
23663 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
23664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23666 "RANLIB=$${RANLIB}" \
0c24b341 23667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23668 TAGS) \
2a4cbe27
NN
23669 || exit 1
23670
a90ef4bf 23671@endif libiconv
2a4cbe27 23672
a90ef4bf
JM
23673.PHONY: maybe-install-info-libiconv install-info-libiconv
23674maybe-install-info-libiconv:
23675@if libiconv
23676maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 23677
a90ef4bf
JM
23678# libiconv doesn't support install-info.
23679install-info-libiconv:
2a4cbe27 23680
a90ef4bf 23681@endif libiconv
2a4cbe27 23682
a90ef4bf
JM
23683.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
23684maybe-install-pdf-libiconv:
23685@if libiconv
23686maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 23687
a90ef4bf
JM
23688# libiconv doesn't support install-pdf.
23689install-pdf-libiconv:
a3ca38d2 23690
a90ef4bf 23691@endif libiconv
a3ca38d2 23692
a90ef4bf
JM
23693.PHONY: maybe-install-html-libiconv install-html-libiconv
23694maybe-install-html-libiconv:
23695@if libiconv
23696maybe-install-html-libiconv: install-html-libiconv
108a6f8e 23697
a90ef4bf
JM
23698# libiconv doesn't support install-html.
23699install-html-libiconv:
108a6f8e 23700
a90ef4bf 23701@endif libiconv
108a6f8e 23702
a90ef4bf
JM
23703.PHONY: maybe-installcheck-libiconv installcheck-libiconv
23704maybe-installcheck-libiconv:
23705@if libiconv
23706maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 23707
a90ef4bf
JM
23708installcheck-libiconv: \
23709 configure-libiconv
0aed8855 23710 @: $(MAKE); $(unstage)
a90ef4bf 23711 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
23712 r=`${PWD_COMMAND}`; export r; \
23713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23714 $(HOST_EXPORTS) \
b813574b 23715 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23717 done; \
a90ef4bf
JM
23718 echo "Doing installcheck in libiconv" ; \
23719 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
23720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23722 "RANLIB=$${RANLIB}" \
0c24b341 23723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23724 installcheck) \
2a4cbe27
NN
23725 || exit 1
23726
a90ef4bf 23727@endif libiconv
2a4cbe27 23728
a90ef4bf
JM
23729.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
23730maybe-mostlyclean-libiconv:
23731@if libiconv
23732maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 23733
a90ef4bf 23734mostlyclean-libiconv:
0aed8855 23735 @: $(MAKE); $(unstage)
a90ef4bf 23736 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
23737 r=`${PWD_COMMAND}`; export r; \
23738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23739 $(HOST_EXPORTS) \
b813574b 23740 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23742 done; \
a90ef4bf
JM
23743 echo "Doing mostlyclean in libiconv" ; \
23744 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
23745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23747 "RANLIB=$${RANLIB}" \
0c24b341 23748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23749 mostlyclean) \
2a4cbe27
NN
23750 || exit 1
23751
a90ef4bf 23752@endif libiconv
2a4cbe27 23753
a90ef4bf
JM
23754.PHONY: maybe-clean-libiconv clean-libiconv
23755maybe-clean-libiconv:
23756@if libiconv
23757maybe-clean-libiconv: clean-libiconv
2a4cbe27 23758
a90ef4bf 23759clean-libiconv:
0aed8855 23760 @: $(MAKE); $(unstage)
a90ef4bf 23761 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
23762 r=`${PWD_COMMAND}`; export r; \
23763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23764 $(HOST_EXPORTS) \
b813574b 23765 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23767 done; \
a90ef4bf
JM
23768 echo "Doing clean in libiconv" ; \
23769 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
23770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23772 "RANLIB=$${RANLIB}" \
0c24b341 23773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23774 clean) \
2a4cbe27
NN
23775 || exit 1
23776
a90ef4bf 23777@endif libiconv
2a4cbe27 23778
a90ef4bf
JM
23779.PHONY: maybe-distclean-libiconv distclean-libiconv
23780maybe-distclean-libiconv:
23781@if libiconv
23782maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 23783
a90ef4bf 23784distclean-libiconv:
0aed8855 23785 @: $(MAKE); $(unstage)
a90ef4bf 23786 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
23787 r=`${PWD_COMMAND}`; export r; \
23788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23789 $(HOST_EXPORTS) \
b813574b 23790 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23792 done; \
a90ef4bf
JM
23793 echo "Doing distclean in libiconv" ; \
23794 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
23795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23797 "RANLIB=$${RANLIB}" \
0c24b341 23798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23799 distclean) \
2a4cbe27
NN
23800 || exit 1
23801
a90ef4bf 23802@endif libiconv
2a4cbe27 23803
a90ef4bf
JM
23804.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
23805maybe-maintainer-clean-libiconv:
23806@if libiconv
23807maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 23808
a90ef4bf 23809maintainer-clean-libiconv:
0aed8855 23810 @: $(MAKE); $(unstage)
a90ef4bf 23811 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
23812 r=`${PWD_COMMAND}`; export r; \
23813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23814 $(HOST_EXPORTS) \
b813574b 23815 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23817 done; \
a90ef4bf
JM
23818 echo "Doing maintainer-clean in libiconv" ; \
23819 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
23820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23822 "RANLIB=$${RANLIB}" \
0c24b341 23823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23824 maintainer-clean) \
2a4cbe27
NN
23825 || exit 1
23826
a90ef4bf 23827@endif libiconv
2a4cbe27 23828
2a4cbe27 23829
a7254363 23830
a90ef4bf
JM
23831.PHONY: configure-m4 maybe-configure-m4
23832maybe-configure-m4:
4f0ef2d8 23833@if gcc-bootstrap
a90ef4bf 23834configure-m4: stage_current
4f0ef2d8 23835@endif gcc-bootstrap
a90ef4bf
JM
23836@if m4
23837maybe-configure-m4: configure-m4
23838configure-m4:
0aed8855 23839 @: $(MAKE); $(unstage)
c52c6897 23840 @r=`${PWD_COMMAND}`; export r; \
b40e3958 23841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
23842 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
23843 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
1f53ca9a 23844 $(HOST_EXPORTS) \
a90ef4bf
JM
23845 echo Configuring in $(HOST_SUBDIR)/m4; \
23846 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 23847 case $(srcdir) in \
b00612cc 23848 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 23849 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 23850 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 23851 esac; \
a90ef4bf
JM
23852 srcdiroption="--srcdir=$${topdir}/m4"; \
23853 libsrcdir="$$s/m4"; \
4fa63067 23854 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
23855 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23856 --target=${target_alias} $${srcdiroption} \
2a4cbe27 23857 || exit 1
a90ef4bf 23858@endif m4
2a4cbe27 23859
a7254363
PB
23860
23861
d545f33b
PB
23862
23863
a90ef4bf
JM
23864.PHONY: all-m4 maybe-all-m4
23865maybe-all-m4:
4f0ef2d8 23866@if gcc-bootstrap
a90ef4bf 23867all-m4: stage_current
4f0ef2d8 23868@endif gcc-bootstrap
a90ef4bf
JM
23869@if m4
23870TARGET-m4=all
23871maybe-all-m4: all-m4
23872all-m4: configure-m4
0aed8855 23873 @: $(MAKE); $(unstage)
4fa63067
NN
23874 @r=`${PWD_COMMAND}`; export r; \
23875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 23876 $(HOST_EXPORTS) \
a90ef4bf 23877 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 23878 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
23879 $(TARGET-m4))
23880@endif m4
2a4cbe27 23881
a7254363 23882
d545f33b
PB
23883
23884
a90ef4bf
JM
23885.PHONY: check-m4 maybe-check-m4
23886maybe-check-m4:
23887@if m4
23888maybe-check-m4: check-m4
2a4cbe27 23889
a90ef4bf 23890check-m4:
0aed8855 23891 @: $(MAKE); $(unstage)
4fa63067 23892 @r=`${PWD_COMMAND}`; export r; \
b40e3958 23893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23894 $(HOST_EXPORTS) \
a90ef4bf 23895 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 23896 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 23897
a90ef4bf 23898@endif m4
2a4cbe27 23899
a90ef4bf
JM
23900.PHONY: install-m4 maybe-install-m4
23901maybe-install-m4:
23902@if m4
23903maybe-install-m4: install-m4
2a4cbe27 23904
a90ef4bf 23905install-m4: installdirs
0aed8855 23906 @: $(MAKE); $(unstage)
4fa63067 23907 @r=`${PWD_COMMAND}`; export r; \
b40e3958 23908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23909 $(HOST_EXPORTS) \
a90ef4bf 23910 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 23911 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 23912
a90ef4bf 23913@endif m4
2a4cbe27 23914
a90ef4bf
JM
23915.PHONY: install-strip-m4 maybe-install-strip-m4
23916maybe-install-strip-m4:
23917@if m4
23918maybe-install-strip-m4: install-strip-m4
9b980aa1 23919
a90ef4bf 23920install-strip-m4: installdirs
9b980aa1
RW
23921 @: $(MAKE); $(unstage)
23922 @r=`${PWD_COMMAND}`; export r; \
23923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23924 $(HOST_EXPORTS) \
a90ef4bf 23925 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
23926 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23927
a90ef4bf 23928@endif m4
9b980aa1 23929
56a8fe78 23930# Other targets (info, dvi, pdf, etc.)
2a4cbe27 23931
a90ef4bf
JM
23932.PHONY: maybe-info-m4 info-m4
23933maybe-info-m4:
23934@if m4
23935maybe-info-m4: info-m4
4fa63067 23936
a90ef4bf
JM
23937info-m4: \
23938 configure-m4
0aed8855 23939 @: $(MAKE); $(unstage)
a90ef4bf 23940 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
23941 r=`${PWD_COMMAND}`; export r; \
23942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23943 $(HOST_EXPORTS) \
b813574b 23944 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23946 done; \
a90ef4bf
JM
23947 echo "Doing info in m4" ; \
23948 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
23949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23951 "RANLIB=$${RANLIB}" \
0c24b341 23952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23953 info) \
2a4cbe27
NN
23954 || exit 1
23955
a90ef4bf 23956@endif m4
2a4cbe27 23957
a90ef4bf
JM
23958.PHONY: maybe-dvi-m4 dvi-m4
23959maybe-dvi-m4:
23960@if m4
23961maybe-dvi-m4: dvi-m4
2a4cbe27 23962
a90ef4bf
JM
23963dvi-m4: \
23964 configure-m4
0aed8855 23965 @: $(MAKE); $(unstage)
a90ef4bf 23966 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
23967 r=`${PWD_COMMAND}`; export r; \
23968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 23969 $(HOST_EXPORTS) \
b813574b 23970 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
23971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23972 done; \
a90ef4bf
JM
23973 echo "Doing dvi in m4" ; \
23974 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
23975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23977 "RANLIB=$${RANLIB}" \
0c24b341 23978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 23979 dvi) \
2a4cbe27
NN
23980 || exit 1
23981
a90ef4bf 23982@endif m4
2a4cbe27 23983
a90ef4bf
JM
23984.PHONY: maybe-pdf-m4 pdf-m4
23985maybe-pdf-m4:
23986@if m4
23987maybe-pdf-m4: pdf-m4
56a8fe78 23988
a90ef4bf
JM
23989pdf-m4: \
23990 configure-m4
56a8fe78 23991 @: $(MAKE); $(unstage)
a90ef4bf 23992 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
23993 r=`${PWD_COMMAND}`; export r; \
23994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23995 $(HOST_EXPORTS) \
23996 for flag in $(EXTRA_HOST_FLAGS) ; do \
23997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23998 done; \
a90ef4bf
JM
23999 echo "Doing pdf in m4" ; \
24000 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
24001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24003 "RANLIB=$${RANLIB}" \
0c24b341 24004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
24005 pdf) \
24006 || exit 1
24007
a90ef4bf 24008@endif m4
56a8fe78 24009
a90ef4bf
JM
24010.PHONY: maybe-html-m4 html-m4
24011maybe-html-m4:
24012@if m4
24013maybe-html-m4: html-m4
6d389afc 24014
a90ef4bf
JM
24015html-m4: \
24016 configure-m4
0aed8855 24017 @: $(MAKE); $(unstage)
a90ef4bf 24018 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
24019 r=`${PWD_COMMAND}`; export r; \
24020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
24021 $(HOST_EXPORTS) \
24022 for flag in $(EXTRA_HOST_FLAGS) ; do \
24023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24024 done; \
a90ef4bf
JM
24025 echo "Doing html in m4" ; \
24026 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
24027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24029 "RANLIB=$${RANLIB}" \
0c24b341 24030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
24031 html) \
24032 || exit 1
24033
a90ef4bf 24034@endif m4
6d389afc 24035
a90ef4bf
JM
24036.PHONY: maybe-TAGS-m4 TAGS-m4
24037maybe-TAGS-m4:
24038@if m4
24039maybe-TAGS-m4: TAGS-m4
2a4cbe27 24040
a90ef4bf
JM
24041TAGS-m4: \
24042 configure-m4
0aed8855 24043 @: $(MAKE); $(unstage)
a90ef4bf 24044 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24045 r=`${PWD_COMMAND}`; export r; \
24046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24047 $(HOST_EXPORTS) \
b813574b 24048 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24050 done; \
a90ef4bf
JM
24051 echo "Doing TAGS in m4" ; \
24052 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24055 "RANLIB=$${RANLIB}" \
0c24b341 24056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24057 TAGS) \
2a4cbe27
NN
24058 || exit 1
24059
a90ef4bf 24060@endif m4
2a4cbe27 24061
a90ef4bf
JM
24062.PHONY: maybe-install-info-m4 install-info-m4
24063maybe-install-info-m4:
24064@if m4
24065maybe-install-info-m4: install-info-m4
2a4cbe27 24066
a90ef4bf
JM
24067install-info-m4: \
24068 configure-m4 \
24069 info-m4
0aed8855 24070 @: $(MAKE); $(unstage)
a90ef4bf 24071 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24072 r=`${PWD_COMMAND}`; export r; \
24073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24074 $(HOST_EXPORTS) \
b813574b 24075 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24077 done; \
a90ef4bf
JM
24078 echo "Doing install-info in m4" ; \
24079 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24082 "RANLIB=$${RANLIB}" \
0c24b341 24083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24084 install-info) \
2a4cbe27
NN
24085 || exit 1
24086
a90ef4bf 24087@endif m4
2a4cbe27 24088
a90ef4bf
JM
24089.PHONY: maybe-install-pdf-m4 install-pdf-m4
24090maybe-install-pdf-m4:
24091@if m4
24092maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 24093
a90ef4bf
JM
24094install-pdf-m4: \
24095 configure-m4 \
24096 pdf-m4
a3ca38d2 24097 @: $(MAKE); $(unstage)
a90ef4bf 24098 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
24099 r=`${PWD_COMMAND}`; export r; \
24100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24101 $(HOST_EXPORTS) \
24102 for flag in $(EXTRA_HOST_FLAGS) ; do \
24103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24104 done; \
a90ef4bf
JM
24105 echo "Doing install-pdf in m4" ; \
24106 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
24107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24109 "RANLIB=$${RANLIB}" \
0c24b341 24110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
24111 install-pdf) \
24112 || exit 1
24113
a90ef4bf 24114@endif m4
a3ca38d2 24115
a90ef4bf
JM
24116.PHONY: maybe-install-html-m4 install-html-m4
24117maybe-install-html-m4:
24118@if m4
24119maybe-install-html-m4: install-html-m4
108a6f8e 24120
a90ef4bf
JM
24121install-html-m4: \
24122 configure-m4 \
24123 html-m4
108a6f8e 24124 @: $(MAKE); $(unstage)
a90ef4bf 24125 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
24126 r=`${PWD_COMMAND}`; export r; \
24127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24128 $(HOST_EXPORTS) \
24129 for flag in $(EXTRA_HOST_FLAGS) ; do \
24130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24131 done; \
a90ef4bf
JM
24132 echo "Doing install-html in m4" ; \
24133 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
24134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24136 "RANLIB=$${RANLIB}" \
0c24b341 24137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
24138 install-html) \
24139 || exit 1
24140
a90ef4bf 24141@endif m4
108a6f8e 24142
a90ef4bf
JM
24143.PHONY: maybe-installcheck-m4 installcheck-m4
24144maybe-installcheck-m4:
24145@if m4
24146maybe-installcheck-m4: installcheck-m4
2a4cbe27 24147
a90ef4bf
JM
24148installcheck-m4: \
24149 configure-m4
0aed8855 24150 @: $(MAKE); $(unstage)
a90ef4bf 24151 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24152 r=`${PWD_COMMAND}`; export r; \
24153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24154 $(HOST_EXPORTS) \
b813574b 24155 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24157 done; \
a90ef4bf
JM
24158 echo "Doing installcheck in m4" ; \
24159 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24162 "RANLIB=$${RANLIB}" \
0c24b341 24163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24164 installcheck) \
2a4cbe27
NN
24165 || exit 1
24166
a90ef4bf 24167@endif m4
2a4cbe27 24168
a90ef4bf
JM
24169.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
24170maybe-mostlyclean-m4:
24171@if m4
24172maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 24173
a90ef4bf 24174mostlyclean-m4:
0aed8855 24175 @: $(MAKE); $(unstage)
a90ef4bf 24176 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24177 r=`${PWD_COMMAND}`; export r; \
24178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24179 $(HOST_EXPORTS) \
b813574b 24180 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24182 done; \
a90ef4bf
JM
24183 echo "Doing mostlyclean in m4" ; \
24184 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24187 "RANLIB=$${RANLIB}" \
0c24b341 24188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24189 mostlyclean) \
2a4cbe27
NN
24190 || exit 1
24191
a90ef4bf 24192@endif m4
2a4cbe27 24193
a90ef4bf
JM
24194.PHONY: maybe-clean-m4 clean-m4
24195maybe-clean-m4:
24196@if m4
24197maybe-clean-m4: clean-m4
2a4cbe27 24198
a90ef4bf 24199clean-m4:
0aed8855 24200 @: $(MAKE); $(unstage)
a90ef4bf 24201 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24202 r=`${PWD_COMMAND}`; export r; \
24203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24204 $(HOST_EXPORTS) \
b813574b 24205 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24207 done; \
a90ef4bf
JM
24208 echo "Doing clean in m4" ; \
24209 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24212 "RANLIB=$${RANLIB}" \
0c24b341 24213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24214 clean) \
2a4cbe27
NN
24215 || exit 1
24216
a90ef4bf 24217@endif m4
2a4cbe27 24218
a90ef4bf
JM
24219.PHONY: maybe-distclean-m4 distclean-m4
24220maybe-distclean-m4:
24221@if m4
24222maybe-distclean-m4: distclean-m4
2a4cbe27 24223
a90ef4bf 24224distclean-m4:
0aed8855 24225 @: $(MAKE); $(unstage)
a90ef4bf 24226 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24227 r=`${PWD_COMMAND}`; export r; \
24228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24229 $(HOST_EXPORTS) \
b813574b 24230 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24232 done; \
a90ef4bf
JM
24233 echo "Doing distclean in m4" ; \
24234 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24237 "RANLIB=$${RANLIB}" \
0c24b341 24238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24239 distclean) \
2a4cbe27
NN
24240 || exit 1
24241
a90ef4bf 24242@endif m4
2a4cbe27 24243
a90ef4bf
JM
24244.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
24245maybe-maintainer-clean-m4:
24246@if m4
24247maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 24248
a90ef4bf 24249maintainer-clean-m4:
0aed8855 24250 @: $(MAKE); $(unstage)
a90ef4bf 24251 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24252 r=`${PWD_COMMAND}`; export r; \
24253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24254 $(HOST_EXPORTS) \
b813574b 24255 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24257 done; \
a90ef4bf
JM
24258 echo "Doing maintainer-clean in m4" ; \
24259 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24262 "RANLIB=$${RANLIB}" \
0c24b341 24263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24264 maintainer-clean) \
2a4cbe27
NN
24265 || exit 1
24266
a90ef4bf 24267@endif m4
2a4cbe27 24268
2a4cbe27 24269
a7254363 24270
a90ef4bf
JM
24271.PHONY: configure-readline maybe-configure-readline
24272maybe-configure-readline:
4f0ef2d8 24273@if gcc-bootstrap
a90ef4bf 24274configure-readline: stage_current
4f0ef2d8 24275@endif gcc-bootstrap
a90ef4bf
JM
24276@if readline
24277maybe-configure-readline: configure-readline
24278configure-readline:
0aed8855 24279 @: $(MAKE); $(unstage)
c52c6897 24280 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24282 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
24283 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
1f53ca9a 24284 $(HOST_EXPORTS) \
a90ef4bf
JM
24285 echo Configuring in $(HOST_SUBDIR)/readline; \
24286 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 24287 case $(srcdir) in \
b00612cc 24288 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24289 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 24290 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24291 esac; \
a90ef4bf
JM
24292 srcdiroption="--srcdir=$${topdir}/readline"; \
24293 libsrcdir="$$s/readline"; \
4fa63067 24294 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
24295 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24296 --target=${target_alias} $${srcdiroption} \
2a4cbe27 24297 || exit 1
a90ef4bf 24298@endif readline
2a4cbe27 24299
a7254363
PB
24300
24301
d545f33b
PB
24302
24303
a90ef4bf
JM
24304.PHONY: all-readline maybe-all-readline
24305maybe-all-readline:
4f0ef2d8 24306@if gcc-bootstrap
a90ef4bf 24307all-readline: stage_current
4f0ef2d8 24308@endif gcc-bootstrap
a90ef4bf
JM
24309@if readline
24310TARGET-readline=all
24311maybe-all-readline: all-readline
24312all-readline: configure-readline
0aed8855 24313 @: $(MAKE); $(unstage)
4fa63067
NN
24314 @r=`${PWD_COMMAND}`; export r; \
24315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24316 $(HOST_EXPORTS) \
a90ef4bf 24317 (cd $(HOST_SUBDIR)/readline && \
b3676d82 24318 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24319 $(TARGET-readline))
24320@endif readline
2a4cbe27 24321
a7254363 24322
d545f33b
PB
24323
24324
a90ef4bf
JM
24325.PHONY: check-readline maybe-check-readline
24326maybe-check-readline:
24327@if readline
24328maybe-check-readline: check-readline
2a4cbe27 24329
a90ef4bf 24330check-readline:
0aed8855 24331 @: $(MAKE); $(unstage)
4fa63067 24332 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24334 $(HOST_EXPORTS) \
a90ef4bf 24335 (cd $(HOST_SUBDIR)/readline && \
b00612cc 24336 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24337
a90ef4bf 24338@endif readline
2a4cbe27 24339
a90ef4bf
JM
24340.PHONY: install-readline maybe-install-readline
24341maybe-install-readline:
24342@if readline
24343maybe-install-readline: install-readline
2a4cbe27 24344
a90ef4bf 24345install-readline: installdirs
0aed8855 24346 @: $(MAKE); $(unstage)
4fa63067
NN
24347 @r=`${PWD_COMMAND}`; export r; \
24348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24349 $(HOST_EXPORTS) \
a90ef4bf 24350 (cd $(HOST_SUBDIR)/readline && \
2da12f12 24351 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 24352
a90ef4bf 24353@endif readline
9b980aa1 24354
a90ef4bf
JM
24355.PHONY: install-strip-readline maybe-install-strip-readline
24356maybe-install-strip-readline:
24357@if readline
24358maybe-install-strip-readline: install-strip-readline
24359
24360install-strip-readline: installdirs
9b980aa1
RW
24361 @: $(MAKE); $(unstage)
24362 @r=`${PWD_COMMAND}`; export r; \
24363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24364 $(HOST_EXPORTS) \
a90ef4bf 24365 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
24366 $(MAKE) $(FLAGS_TO_PASS) install-strip)
24367
a90ef4bf 24368@endif readline
9b980aa1 24369
56a8fe78 24370# Other targets (info, dvi, pdf, etc.)
4fa63067 24371
a90ef4bf
JM
24372.PHONY: maybe-info-readline info-readline
24373maybe-info-readline:
24374@if readline
24375maybe-info-readline: info-readline
4fa63067 24376
a90ef4bf
JM
24377info-readline: \
24378 configure-readline
0aed8855 24379 @: $(MAKE); $(unstage)
a90ef4bf 24380 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24381 r=`${PWD_COMMAND}`; export r; \
24382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24383 $(HOST_EXPORTS) \
b813574b 24384 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24386 done; \
a90ef4bf
JM
24387 echo "Doing info in readline" ; \
24388 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24391 "RANLIB=$${RANLIB}" \
0c24b341 24392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24393 info) \
2a4cbe27
NN
24394 || exit 1
24395
a90ef4bf 24396@endif readline
2a4cbe27 24397
a90ef4bf
JM
24398.PHONY: maybe-dvi-readline dvi-readline
24399maybe-dvi-readline:
24400@if readline
24401maybe-dvi-readline: dvi-readline
2a4cbe27 24402
a90ef4bf
JM
24403dvi-readline: \
24404 configure-readline
0aed8855 24405 @: $(MAKE); $(unstage)
a90ef4bf 24406 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24407 r=`${PWD_COMMAND}`; export r; \
24408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24409 $(HOST_EXPORTS) \
b813574b 24410 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24412 done; \
a90ef4bf
JM
24413 echo "Doing dvi in readline" ; \
24414 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24417 "RANLIB=$${RANLIB}" \
0c24b341 24418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24419 dvi) \
2a4cbe27
NN
24420 || exit 1
24421
a90ef4bf 24422@endif readline
2a4cbe27 24423
a90ef4bf
JM
24424.PHONY: maybe-pdf-readline pdf-readline
24425maybe-pdf-readline:
24426@if readline
24427maybe-pdf-readline: pdf-readline
56a8fe78 24428
a90ef4bf
JM
24429pdf-readline: \
24430 configure-readline
56a8fe78 24431 @: $(MAKE); $(unstage)
a90ef4bf 24432 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
24433 r=`${PWD_COMMAND}`; export r; \
24434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24435 $(HOST_EXPORTS) \
24436 for flag in $(EXTRA_HOST_FLAGS) ; do \
24437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24438 done; \
a90ef4bf
JM
24439 echo "Doing pdf in readline" ; \
24440 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
24441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24443 "RANLIB=$${RANLIB}" \
0c24b341 24444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
24445 pdf) \
24446 || exit 1
24447
a90ef4bf 24448@endif readline
56a8fe78 24449
a90ef4bf
JM
24450.PHONY: maybe-html-readline html-readline
24451maybe-html-readline:
24452@if readline
24453maybe-html-readline: html-readline
6d389afc 24454
a90ef4bf
JM
24455html-readline: \
24456 configure-readline
0aed8855 24457 @: $(MAKE); $(unstage)
a90ef4bf 24458 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
24459 r=`${PWD_COMMAND}`; export r; \
24460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
24461 $(HOST_EXPORTS) \
24462 for flag in $(EXTRA_HOST_FLAGS) ; do \
24463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24464 done; \
a90ef4bf
JM
24465 echo "Doing html in readline" ; \
24466 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
24467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24469 "RANLIB=$${RANLIB}" \
0c24b341 24470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
24471 html) \
24472 || exit 1
24473
a90ef4bf 24474@endif readline
6d389afc 24475
a90ef4bf
JM
24476.PHONY: maybe-TAGS-readline TAGS-readline
24477maybe-TAGS-readline:
24478@if readline
24479maybe-TAGS-readline: TAGS-readline
2a4cbe27 24480
a90ef4bf
JM
24481TAGS-readline: \
24482 configure-readline
0aed8855 24483 @: $(MAKE); $(unstage)
a90ef4bf 24484 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24485 r=`${PWD_COMMAND}`; export r; \
24486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24487 $(HOST_EXPORTS) \
b813574b 24488 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24490 done; \
a90ef4bf
JM
24491 echo "Doing TAGS in readline" ; \
24492 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24495 "RANLIB=$${RANLIB}" \
0c24b341 24496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24497 TAGS) \
2a4cbe27
NN
24498 || exit 1
24499
a90ef4bf 24500@endif readline
2a4cbe27 24501
a90ef4bf
JM
24502.PHONY: maybe-install-info-readline install-info-readline
24503maybe-install-info-readline:
24504@if readline
24505maybe-install-info-readline: install-info-readline
2a4cbe27 24506
a90ef4bf
JM
24507install-info-readline: \
24508 configure-readline \
24509 info-readline
0aed8855 24510 @: $(MAKE); $(unstage)
a90ef4bf 24511 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24512 r=`${PWD_COMMAND}`; export r; \
24513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24514 $(HOST_EXPORTS) \
b813574b 24515 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24517 done; \
a90ef4bf
JM
24518 echo "Doing install-info in readline" ; \
24519 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24522 "RANLIB=$${RANLIB}" \
0c24b341 24523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24524 install-info) \
2a4cbe27
NN
24525 || exit 1
24526
a90ef4bf 24527@endif readline
2a4cbe27 24528
a90ef4bf
JM
24529.PHONY: maybe-install-pdf-readline install-pdf-readline
24530maybe-install-pdf-readline:
24531@if readline
24532maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 24533
a90ef4bf
JM
24534install-pdf-readline: \
24535 configure-readline \
24536 pdf-readline
a3ca38d2 24537 @: $(MAKE); $(unstage)
a90ef4bf 24538 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
24539 r=`${PWD_COMMAND}`; export r; \
24540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24541 $(HOST_EXPORTS) \
24542 for flag in $(EXTRA_HOST_FLAGS) ; do \
24543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24544 done; \
a90ef4bf
JM
24545 echo "Doing install-pdf in readline" ; \
24546 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
24547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24549 "RANLIB=$${RANLIB}" \
0c24b341 24550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
24551 install-pdf) \
24552 || exit 1
24553
a90ef4bf 24554@endif readline
a3ca38d2 24555
a90ef4bf
JM
24556.PHONY: maybe-install-html-readline install-html-readline
24557maybe-install-html-readline:
24558@if readline
24559maybe-install-html-readline: install-html-readline
108a6f8e 24560
a90ef4bf
JM
24561install-html-readline: \
24562 configure-readline \
24563 html-readline
108a6f8e 24564 @: $(MAKE); $(unstage)
a90ef4bf 24565 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
24566 r=`${PWD_COMMAND}`; export r; \
24567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24568 $(HOST_EXPORTS) \
24569 for flag in $(EXTRA_HOST_FLAGS) ; do \
24570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24571 done; \
a90ef4bf
JM
24572 echo "Doing install-html in readline" ; \
24573 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
24574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24576 "RANLIB=$${RANLIB}" \
0c24b341 24577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
24578 install-html) \
24579 || exit 1
24580
a90ef4bf 24581@endif readline
108a6f8e 24582
a90ef4bf
JM
24583.PHONY: maybe-installcheck-readline installcheck-readline
24584maybe-installcheck-readline:
24585@if readline
24586maybe-installcheck-readline: installcheck-readline
2a4cbe27 24587
a90ef4bf
JM
24588installcheck-readline: \
24589 configure-readline
0aed8855 24590 @: $(MAKE); $(unstage)
a90ef4bf 24591 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24592 r=`${PWD_COMMAND}`; export r; \
24593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24594 $(HOST_EXPORTS) \
b813574b 24595 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24597 done; \
a90ef4bf
JM
24598 echo "Doing installcheck in readline" ; \
24599 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24602 "RANLIB=$${RANLIB}" \
0c24b341 24603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24604 installcheck) \
2a4cbe27
NN
24605 || exit 1
24606
a90ef4bf 24607@endif readline
2a4cbe27 24608
a90ef4bf
JM
24609.PHONY: maybe-mostlyclean-readline mostlyclean-readline
24610maybe-mostlyclean-readline:
24611@if readline
24612maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 24613
a90ef4bf 24614mostlyclean-readline:
0aed8855 24615 @: $(MAKE); $(unstage)
a90ef4bf 24616 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24617 r=`${PWD_COMMAND}`; export r; \
24618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24619 $(HOST_EXPORTS) \
b813574b 24620 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24622 done; \
a90ef4bf
JM
24623 echo "Doing mostlyclean in readline" ; \
24624 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24627 "RANLIB=$${RANLIB}" \
0c24b341 24628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24629 mostlyclean) \
2a4cbe27
NN
24630 || exit 1
24631
a90ef4bf 24632@endif readline
2a4cbe27 24633
a90ef4bf
JM
24634.PHONY: maybe-clean-readline clean-readline
24635maybe-clean-readline:
24636@if readline
24637maybe-clean-readline: clean-readline
2a4cbe27 24638
a90ef4bf 24639clean-readline:
0aed8855 24640 @: $(MAKE); $(unstage)
a90ef4bf 24641 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24642 r=`${PWD_COMMAND}`; export r; \
24643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24644 $(HOST_EXPORTS) \
b813574b 24645 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24647 done; \
a90ef4bf
JM
24648 echo "Doing clean in readline" ; \
24649 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24652 "RANLIB=$${RANLIB}" \
0c24b341 24653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24654 clean) \
2a4cbe27
NN
24655 || exit 1
24656
a90ef4bf 24657@endif readline
2a4cbe27 24658
a90ef4bf
JM
24659.PHONY: maybe-distclean-readline distclean-readline
24660maybe-distclean-readline:
24661@if readline
24662maybe-distclean-readline: distclean-readline
2a4cbe27 24663
a90ef4bf 24664distclean-readline:
0aed8855 24665 @: $(MAKE); $(unstage)
a90ef4bf 24666 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24667 r=`${PWD_COMMAND}`; export r; \
24668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24669 $(HOST_EXPORTS) \
b813574b 24670 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24672 done; \
a90ef4bf
JM
24673 echo "Doing distclean in readline" ; \
24674 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24677 "RANLIB=$${RANLIB}" \
0c24b341 24678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24679 distclean) \
2a4cbe27
NN
24680 || exit 1
24681
a90ef4bf 24682@endif readline
2a4cbe27 24683
a90ef4bf
JM
24684.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
24685maybe-maintainer-clean-readline:
24686@if readline
24687maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 24688
a90ef4bf 24689maintainer-clean-readline:
0aed8855 24690 @: $(MAKE); $(unstage)
a90ef4bf 24691 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
24692 r=`${PWD_COMMAND}`; export r; \
24693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24694 $(HOST_EXPORTS) \
b813574b 24695 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24697 done; \
a90ef4bf
JM
24698 echo "Doing maintainer-clean in readline" ; \
24699 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
24700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24702 "RANLIB=$${RANLIB}" \
0c24b341 24703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24704 maintainer-clean) \
2a4cbe27
NN
24705 || exit 1
24706
a90ef4bf 24707@endif readline
2a4cbe27 24708
2a4cbe27 24709
a7254363 24710
a90ef4bf
JM
24711.PHONY: configure-sid maybe-configure-sid
24712maybe-configure-sid:
4f0ef2d8 24713@if gcc-bootstrap
a90ef4bf 24714configure-sid: stage_current
4f0ef2d8 24715@endif gcc-bootstrap
a90ef4bf
JM
24716@if sid
24717maybe-configure-sid: configure-sid
24718configure-sid:
0aed8855 24719 @: $(MAKE); $(unstage)
c52c6897 24720 @r=`${PWD_COMMAND}`; export r; \
4fa63067 24721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24722 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
24723 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
1f53ca9a 24724 $(HOST_EXPORTS) \
a90ef4bf
JM
24725 echo Configuring in $(HOST_SUBDIR)/sid; \
24726 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 24727 case $(srcdir) in \
b00612cc 24728 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24729 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 24730 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24731 esac; \
a90ef4bf
JM
24732 srcdiroption="--srcdir=$${topdir}/sid"; \
24733 libsrcdir="$$s/sid"; \
4fa63067 24734 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
24735 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24736 --target=${target_alias} $${srcdiroption} \
4fa63067 24737 || exit 1
a90ef4bf 24738@endif sid
2a4cbe27 24739
a7254363
PB
24740
24741
d545f33b
PB
24742
24743
a90ef4bf
JM
24744.PHONY: all-sid maybe-all-sid
24745maybe-all-sid:
4f0ef2d8 24746@if gcc-bootstrap
a90ef4bf 24747all-sid: stage_current
4f0ef2d8 24748@endif gcc-bootstrap
a90ef4bf
JM
24749@if sid
24750TARGET-sid=all
24751maybe-all-sid: all-sid
24752all-sid: configure-sid
0aed8855 24753 @: $(MAKE); $(unstage)
4fa63067
NN
24754 @r=`${PWD_COMMAND}`; export r; \
24755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24756 $(HOST_EXPORTS) \
a90ef4bf 24757 (cd $(HOST_SUBDIR)/sid && \
b3676d82 24758 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24759 $(TARGET-sid))
24760@endif sid
2a4cbe27 24761
a7254363 24762
d545f33b
PB
24763
24764
a90ef4bf
JM
24765.PHONY: check-sid maybe-check-sid
24766maybe-check-sid:
24767@if sid
24768maybe-check-sid: check-sid
2a4cbe27 24769
a90ef4bf 24770check-sid:
0aed8855 24771 @: $(MAKE); $(unstage)
4fa63067 24772 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24774 $(HOST_EXPORTS) \
a90ef4bf 24775 (cd $(HOST_SUBDIR)/sid && \
b00612cc 24776 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24777
a90ef4bf 24778@endif sid
2a4cbe27 24779
a90ef4bf
JM
24780.PHONY: install-sid maybe-install-sid
24781maybe-install-sid:
24782@if sid
24783maybe-install-sid: install-sid
2a4cbe27 24784
a90ef4bf 24785install-sid: installdirs
0aed8855 24786 @: $(MAKE); $(unstage)
4fa63067 24787 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24789 $(HOST_EXPORTS) \
a90ef4bf 24790 (cd $(HOST_SUBDIR)/sid && \
2da12f12 24791 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 24792
a90ef4bf 24793@endif sid
2a4cbe27 24794
a90ef4bf
JM
24795.PHONY: install-strip-sid maybe-install-strip-sid
24796maybe-install-strip-sid:
24797@if sid
24798maybe-install-strip-sid: install-strip-sid
9b980aa1 24799
a90ef4bf 24800install-strip-sid: installdirs
9b980aa1
RW
24801 @: $(MAKE); $(unstage)
24802 @r=`${PWD_COMMAND}`; export r; \
24803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24804 $(HOST_EXPORTS) \
a90ef4bf 24805 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
24806 $(MAKE) $(FLAGS_TO_PASS) install-strip)
24807
a90ef4bf 24808@endif sid
9b980aa1 24809
56a8fe78 24810# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24811
a90ef4bf
JM
24812.PHONY: maybe-info-sid info-sid
24813maybe-info-sid:
24814@if sid
24815maybe-info-sid: info-sid
4fa63067 24816
a90ef4bf
JM
24817info-sid: \
24818 configure-sid
0aed8855 24819 @: $(MAKE); $(unstage)
a90ef4bf 24820 @[ -f ./sid/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 info in sid" ; \
24828 (cd $(HOST_SUBDIR)/sid && \
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 info) \
2a4cbe27
NN
24834 || exit 1
24835
a90ef4bf 24836@endif sid
2a4cbe27 24837
a90ef4bf
JM
24838.PHONY: maybe-dvi-sid dvi-sid
24839maybe-dvi-sid:
24840@if sid
24841maybe-dvi-sid: dvi-sid
2a4cbe27 24842
a90ef4bf
JM
24843dvi-sid: \
24844 configure-sid
0aed8855 24845 @: $(MAKE); $(unstage)
a90ef4bf 24846 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
24847 r=`${PWD_COMMAND}`; export r; \
24848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24849 $(HOST_EXPORTS) \
b813574b 24850 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24852 done; \
a90ef4bf
JM
24853 echo "Doing dvi in sid" ; \
24854 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
24855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24857 "RANLIB=$${RANLIB}" \
0c24b341 24858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24859 dvi) \
2a4cbe27
NN
24860 || exit 1
24861
a90ef4bf 24862@endif sid
2a4cbe27 24863
a90ef4bf
JM
24864.PHONY: maybe-pdf-sid pdf-sid
24865maybe-pdf-sid:
24866@if sid
24867maybe-pdf-sid: pdf-sid
56a8fe78 24868
a90ef4bf
JM
24869pdf-sid: \
24870 configure-sid
56a8fe78 24871 @: $(MAKE); $(unstage)
a90ef4bf 24872 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
24873 r=`${PWD_COMMAND}`; export r; \
24874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24875 $(HOST_EXPORTS) \
24876 for flag in $(EXTRA_HOST_FLAGS) ; do \
24877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24878 done; \
a90ef4bf
JM
24879 echo "Doing pdf in sid" ; \
24880 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
24881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24883 "RANLIB=$${RANLIB}" \
0c24b341 24884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
24885 pdf) \
24886 || exit 1
24887
a90ef4bf 24888@endif sid
56a8fe78 24889
a90ef4bf
JM
24890.PHONY: maybe-html-sid html-sid
24891maybe-html-sid:
24892@if sid
24893maybe-html-sid: html-sid
6d389afc 24894
a90ef4bf
JM
24895html-sid: \
24896 configure-sid
0aed8855 24897 @: $(MAKE); $(unstage)
a90ef4bf 24898 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
24899 r=`${PWD_COMMAND}`; export r; \
24900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
24901 $(HOST_EXPORTS) \
24902 for flag in $(EXTRA_HOST_FLAGS) ; do \
24903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24904 done; \
a90ef4bf
JM
24905 echo "Doing html in sid" ; \
24906 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
24907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24909 "RANLIB=$${RANLIB}" \
0c24b341 24910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
24911 html) \
24912 || exit 1
24913
a90ef4bf 24914@endif sid
6d389afc 24915
a90ef4bf
JM
24916.PHONY: maybe-TAGS-sid TAGS-sid
24917maybe-TAGS-sid:
24918@if sid
24919maybe-TAGS-sid: TAGS-sid
2a4cbe27 24920
a90ef4bf
JM
24921TAGS-sid: \
24922 configure-sid
0aed8855 24923 @: $(MAKE); $(unstage)
a90ef4bf 24924 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
24925 r=`${PWD_COMMAND}`; export r; \
24926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24927 $(HOST_EXPORTS) \
b813574b 24928 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24930 done; \
a90ef4bf
JM
24931 echo "Doing TAGS in sid" ; \
24932 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
24933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24935 "RANLIB=$${RANLIB}" \
0c24b341 24936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24937 TAGS) \
2a4cbe27
NN
24938 || exit 1
24939
a90ef4bf 24940@endif sid
2a4cbe27 24941
a90ef4bf
JM
24942.PHONY: maybe-install-info-sid install-info-sid
24943maybe-install-info-sid:
24944@if sid
24945maybe-install-info-sid: install-info-sid
2a4cbe27 24946
a90ef4bf
JM
24947install-info-sid: \
24948 configure-sid \
24949 info-sid
0aed8855 24950 @: $(MAKE); $(unstage)
a90ef4bf 24951 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
24952 r=`${PWD_COMMAND}`; export r; \
24953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24954 $(HOST_EXPORTS) \
b813574b 24955 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24957 done; \
a90ef4bf
JM
24958 echo "Doing install-info in sid" ; \
24959 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
24960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24962 "RANLIB=$${RANLIB}" \
0c24b341 24963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24964 install-info) \
2a4cbe27
NN
24965 || exit 1
24966
a90ef4bf 24967@endif sid
2a4cbe27 24968
a90ef4bf
JM
24969.PHONY: maybe-install-pdf-sid install-pdf-sid
24970maybe-install-pdf-sid:
24971@if sid
24972maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 24973
a90ef4bf
JM
24974install-pdf-sid: \
24975 configure-sid \
24976 pdf-sid
a3ca38d2 24977 @: $(MAKE); $(unstage)
a90ef4bf 24978 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
24979 r=`${PWD_COMMAND}`; export r; \
24980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24981 $(HOST_EXPORTS) \
24982 for flag in $(EXTRA_HOST_FLAGS) ; do \
24983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24984 done; \
a90ef4bf
JM
24985 echo "Doing install-pdf in sid" ; \
24986 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
24987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24989 "RANLIB=$${RANLIB}" \
0c24b341 24990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
24991 install-pdf) \
24992 || exit 1
24993
a90ef4bf 24994@endif sid
a3ca38d2 24995
a90ef4bf
JM
24996.PHONY: maybe-install-html-sid install-html-sid
24997maybe-install-html-sid:
24998@if sid
24999maybe-install-html-sid: install-html-sid
108a6f8e 25000
a90ef4bf
JM
25001install-html-sid: \
25002 configure-sid \
25003 html-sid
108a6f8e 25004 @: $(MAKE); $(unstage)
a90ef4bf 25005 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
25006 r=`${PWD_COMMAND}`; export r; \
25007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25008 $(HOST_EXPORTS) \
25009 for flag in $(EXTRA_HOST_FLAGS) ; do \
25010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25011 done; \
a90ef4bf
JM
25012 echo "Doing install-html in sid" ; \
25013 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
25014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25016 "RANLIB=$${RANLIB}" \
0c24b341 25017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25018 install-html) \
25019 || exit 1
25020
a90ef4bf 25021@endif sid
108a6f8e 25022
a90ef4bf
JM
25023.PHONY: maybe-installcheck-sid installcheck-sid
25024maybe-installcheck-sid:
25025@if sid
25026maybe-installcheck-sid: installcheck-sid
2a4cbe27 25027
a90ef4bf
JM
25028installcheck-sid: \
25029 configure-sid
0aed8855 25030 @: $(MAKE); $(unstage)
a90ef4bf 25031 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25032 r=`${PWD_COMMAND}`; export r; \
25033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25034 $(HOST_EXPORTS) \
b813574b 25035 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25037 done; \
a90ef4bf
JM
25038 echo "Doing installcheck in sid" ; \
25039 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25042 "RANLIB=$${RANLIB}" \
0c24b341 25043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25044 installcheck) \
2a4cbe27
NN
25045 || exit 1
25046
a90ef4bf 25047@endif sid
2a4cbe27 25048
a90ef4bf
JM
25049.PHONY: maybe-mostlyclean-sid mostlyclean-sid
25050maybe-mostlyclean-sid:
25051@if sid
25052maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 25053
a90ef4bf 25054mostlyclean-sid:
0aed8855 25055 @: $(MAKE); $(unstage)
a90ef4bf 25056 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25057 r=`${PWD_COMMAND}`; export r; \
25058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25059 $(HOST_EXPORTS) \
b813574b 25060 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25062 done; \
a90ef4bf
JM
25063 echo "Doing mostlyclean in sid" ; \
25064 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25067 "RANLIB=$${RANLIB}" \
0c24b341 25068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25069 mostlyclean) \
2a4cbe27
NN
25070 || exit 1
25071
a90ef4bf 25072@endif sid
2a4cbe27 25073
a90ef4bf
JM
25074.PHONY: maybe-clean-sid clean-sid
25075maybe-clean-sid:
25076@if sid
25077maybe-clean-sid: clean-sid
2a4cbe27 25078
a90ef4bf 25079clean-sid:
0aed8855 25080 @: $(MAKE); $(unstage)
a90ef4bf 25081 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25082 r=`${PWD_COMMAND}`; export r; \
25083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25084 $(HOST_EXPORTS) \
b813574b 25085 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25087 done; \
a90ef4bf
JM
25088 echo "Doing clean in sid" ; \
25089 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25092 "RANLIB=$${RANLIB}" \
0c24b341 25093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25094 clean) \
2a4cbe27
NN
25095 || exit 1
25096
a90ef4bf 25097@endif sid
2a4cbe27 25098
a90ef4bf
JM
25099.PHONY: maybe-distclean-sid distclean-sid
25100maybe-distclean-sid:
25101@if sid
25102maybe-distclean-sid: distclean-sid
2a4cbe27 25103
a90ef4bf 25104distclean-sid:
0aed8855 25105 @: $(MAKE); $(unstage)
a90ef4bf 25106 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25107 r=`${PWD_COMMAND}`; export r; \
25108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25109 $(HOST_EXPORTS) \
b813574b 25110 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25112 done; \
a90ef4bf
JM
25113 echo "Doing distclean in sid" ; \
25114 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25117 "RANLIB=$${RANLIB}" \
0c24b341 25118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25119 distclean) \
2a4cbe27
NN
25120 || exit 1
25121
a90ef4bf 25122@endif sid
2a4cbe27 25123
a90ef4bf
JM
25124.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
25125maybe-maintainer-clean-sid:
25126@if sid
25127maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 25128
a90ef4bf 25129maintainer-clean-sid:
0aed8855 25130 @: $(MAKE); $(unstage)
a90ef4bf 25131 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25132 r=`${PWD_COMMAND}`; export r; \
25133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25134 $(HOST_EXPORTS) \
b813574b 25135 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25137 done; \
a90ef4bf
JM
25138 echo "Doing maintainer-clean in sid" ; \
25139 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25142 "RANLIB=$${RANLIB}" \
0c24b341 25143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25144 maintainer-clean) \
2a4cbe27
NN
25145 || exit 1
25146
a90ef4bf 25147@endif sid
2a4cbe27 25148
a2592b1b 25149
a7254363 25150
a90ef4bf
JM
25151.PHONY: configure-sim maybe-configure-sim
25152maybe-configure-sim:
4f0ef2d8 25153@if gcc-bootstrap
a90ef4bf 25154configure-sim: stage_current
4f0ef2d8 25155@endif gcc-bootstrap
a90ef4bf
JM
25156@if sim
25157maybe-configure-sim: configure-sim
25158configure-sim:
25159 @: $(MAKE); $(unstage)
c52c6897
PB
25160 @r=`${PWD_COMMAND}`; export r; \
25161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25162 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
25163 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
1f53ca9a 25164 $(HOST_EXPORTS) \
a90ef4bf
JM
25165 echo Configuring in $(HOST_SUBDIR)/sim; \
25166 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 25167 case $(srcdir) in \
b00612cc 25168 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25169 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 25170 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25171 esac; \
a90ef4bf
JM
25172 srcdiroption="--srcdir=$${topdir}/sim"; \
25173 libsrcdir="$$s/sim"; \
4fa63067 25174 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
25175 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25176 --target=${target_alias} $${srcdiroption} \
a2592b1b 25177 || exit 1
a90ef4bf 25178@endif sim
a2592b1b 25179
a7254363
PB
25180
25181
a90ef4bf
JM
25182
25183
25184.PHONY: all-sim maybe-all-sim
25185maybe-all-sim:
25186@if gcc-bootstrap
25187all-sim: stage_current
25188@endif gcc-bootstrap
25189@if sim
25190TARGET-sim=all
25191maybe-all-sim: all-sim
25192all-sim: configure-sim
25193 @: $(MAKE); $(unstage)
c52c6897
PB
25194 @r=`${PWD_COMMAND}`; export r; \
25195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25196 $(HOST_EXPORTS) \
25197 (cd $(HOST_SUBDIR)/sim && \
b3676d82 25198 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25199 $(TARGET-sim))
25200@endif sim
d545f33b 25201
a90ef4bf
JM
25202
25203
25204
25205.PHONY: check-sim maybe-check-sim
25206maybe-check-sim:
25207@if sim
25208maybe-check-sim: check-sim
25209
25210check-sim:
25211 @: $(MAKE); $(unstage)
c52c6897
PB
25212 @r=`${PWD_COMMAND}`; export r; \
25213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 25214 $(HOST_EXPORTS) \
a90ef4bf
JM
25215 (cd $(HOST_SUBDIR)/sim && \
25216 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 25217
a90ef4bf
JM
25218@endif sim
25219
25220.PHONY: install-sim maybe-install-sim
25221maybe-install-sim:
25222@if sim
25223maybe-install-sim: install-sim
25224
25225install-sim: installdirs
25226 @: $(MAKE); $(unstage)
c52c6897
PB
25227 @r=`${PWD_COMMAND}`; export r; \
25228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 25229 $(HOST_EXPORTS) \
a90ef4bf
JM
25230 (cd $(HOST_SUBDIR)/sim && \
25231 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 25232
a90ef4bf
JM
25233@endif sim
25234
25235.PHONY: install-strip-sim maybe-install-strip-sim
25236maybe-install-strip-sim:
25237@if sim
25238maybe-install-strip-sim: install-strip-sim
25239
25240install-strip-sim: installdirs
25241 @: $(MAKE); $(unstage)
c52c6897
PB
25242 @r=`${PWD_COMMAND}`; export r; \
25243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 25244 $(HOST_EXPORTS) \
a90ef4bf
JM
25245 (cd $(HOST_SUBDIR)/sim && \
25246 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 25247
a90ef4bf 25248@endif sim
9b980aa1 25249
56a8fe78 25250# Other targets (info, dvi, pdf, etc.)
4fa63067 25251
a90ef4bf
JM
25252.PHONY: maybe-info-sim info-sim
25253maybe-info-sim:
25254@if sim
25255maybe-info-sim: info-sim
4fa63067 25256
a90ef4bf
JM
25257info-sim: \
25258 configure-sim
25259 @: $(MAKE); $(unstage)
25260 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25261 r=`${PWD_COMMAND}`; export r; \
25262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25263 $(HOST_EXPORTS) \
b813574b 25264 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25266 done; \
a90ef4bf
JM
25267 echo "Doing info in sim" ; \
25268 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25271 "RANLIB=$${RANLIB}" \
0c24b341 25272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25273 info) \
2a4cbe27
NN
25274 || exit 1
25275
a90ef4bf 25276@endif sim
2a4cbe27 25277
a90ef4bf
JM
25278.PHONY: maybe-dvi-sim dvi-sim
25279maybe-dvi-sim:
25280@if sim
25281maybe-dvi-sim: dvi-sim
2a4cbe27 25282
a90ef4bf
JM
25283dvi-sim: \
25284 configure-sim
25285 @: $(MAKE); $(unstage)
25286 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 25287 r=`${PWD_COMMAND}`; export r; \
b40e3958 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 dvi in sim" ; \
25294 (cd $(HOST_SUBDIR)/sim && \
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 dvi) \
2a4cbe27
NN
25300 || exit 1
25301
a90ef4bf 25302@endif sim
2a4cbe27 25303
a90ef4bf
JM
25304.PHONY: maybe-pdf-sim pdf-sim
25305maybe-pdf-sim:
25306@if sim
25307maybe-pdf-sim: pdf-sim
56a8fe78 25308
a90ef4bf
JM
25309pdf-sim: \
25310 configure-sim
25311 @: $(MAKE); $(unstage)
25312 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
25313 r=`${PWD_COMMAND}`; export r; \
25314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25315 $(HOST_EXPORTS) \
25316 for flag in $(EXTRA_HOST_FLAGS) ; do \
25317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25318 done; \
a90ef4bf
JM
25319 echo "Doing pdf in sim" ; \
25320 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
25321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25323 "RANLIB=$${RANLIB}" \
0c24b341 25324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25325 pdf) \
25326 || exit 1
25327
a90ef4bf 25328@endif sim
56a8fe78 25329
a90ef4bf
JM
25330.PHONY: maybe-html-sim html-sim
25331maybe-html-sim:
25332@if sim
25333maybe-html-sim: html-sim
6d389afc 25334
a90ef4bf
JM
25335html-sim: \
25336 configure-sim
25337 @: $(MAKE); $(unstage)
25338 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
25339 r=`${PWD_COMMAND}`; export r; \
25340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25341 $(HOST_EXPORTS) \
25342 for flag in $(EXTRA_HOST_FLAGS) ; do \
25343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25344 done; \
a90ef4bf
JM
25345 echo "Doing html in sim" ; \
25346 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
25347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25349 "RANLIB=$${RANLIB}" \
0c24b341 25350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25351 html) \
25352 || exit 1
25353
a90ef4bf 25354@endif sim
6d389afc 25355
a90ef4bf
JM
25356.PHONY: maybe-TAGS-sim TAGS-sim
25357maybe-TAGS-sim:
25358@if sim
25359maybe-TAGS-sim: TAGS-sim
2a4cbe27 25360
a90ef4bf
JM
25361TAGS-sim: \
25362 configure-sim
25363 @: $(MAKE); $(unstage)
25364 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25365 r=`${PWD_COMMAND}`; export r; \
25366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25367 $(HOST_EXPORTS) \
b813574b 25368 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25370 done; \
a90ef4bf
JM
25371 echo "Doing TAGS in sim" ; \
25372 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25375 "RANLIB=$${RANLIB}" \
0c24b341 25376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25377 TAGS) \
2a4cbe27
NN
25378 || exit 1
25379
a90ef4bf 25380@endif sim
2a4cbe27 25381
a90ef4bf
JM
25382.PHONY: maybe-install-info-sim install-info-sim
25383maybe-install-info-sim:
25384@if sim
25385maybe-install-info-sim: install-info-sim
2a4cbe27 25386
a90ef4bf
JM
25387install-info-sim: \
25388 configure-sim \
25389 info-sim
25390 @: $(MAKE); $(unstage)
25391 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25392 r=`${PWD_COMMAND}`; export r; \
25393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25394 $(HOST_EXPORTS) \
b813574b 25395 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25397 done; \
a90ef4bf
JM
25398 echo "Doing install-info in sim" ; \
25399 (cd $(HOST_SUBDIR)/sim && \
25400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
25401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25402 "RANLIB=$${RANLIB}" \
0c24b341 25403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25404 install-info) \
2a4cbe27
NN
25405 || exit 1
25406
a90ef4bf 25407@endif sim
2a4cbe27 25408
a90ef4bf
JM
25409.PHONY: maybe-install-pdf-sim install-pdf-sim
25410maybe-install-pdf-sim:
25411@if sim
25412maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 25413
a90ef4bf
JM
25414install-pdf-sim: \
25415 configure-sim \
25416 pdf-sim
25417 @: $(MAKE); $(unstage)
25418 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
25419 r=`${PWD_COMMAND}`; export r; \
25420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25421 $(HOST_EXPORTS) \
25422 for flag in $(EXTRA_HOST_FLAGS) ; do \
25423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25424 done; \
a90ef4bf
JM
25425 echo "Doing install-pdf in sim" ; \
25426 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
25427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25429 "RANLIB=$${RANLIB}" \
0c24b341 25430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25431 install-pdf) \
25432 || exit 1
25433
a90ef4bf 25434@endif sim
a3ca38d2 25435
a90ef4bf
JM
25436.PHONY: maybe-install-html-sim install-html-sim
25437maybe-install-html-sim:
25438@if sim
25439maybe-install-html-sim: install-html-sim
108a6f8e 25440
a90ef4bf
JM
25441install-html-sim: \
25442 configure-sim \
25443 html-sim
25444 @: $(MAKE); $(unstage)
25445 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
25446 r=`${PWD_COMMAND}`; export r; \
25447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25448 $(HOST_EXPORTS) \
25449 for flag in $(EXTRA_HOST_FLAGS) ; do \
25450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25451 done; \
a90ef4bf
JM
25452 echo "Doing install-html in sim" ; \
25453 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
25454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25456 "RANLIB=$${RANLIB}" \
0c24b341 25457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25458 install-html) \
25459 || exit 1
25460
a90ef4bf 25461@endif sim
108a6f8e 25462
a90ef4bf
JM
25463.PHONY: maybe-installcheck-sim installcheck-sim
25464maybe-installcheck-sim:
25465@if sim
25466maybe-installcheck-sim: installcheck-sim
2a4cbe27 25467
a90ef4bf
JM
25468installcheck-sim: \
25469 configure-sim
25470 @: $(MAKE); $(unstage)
25471 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25472 r=`${PWD_COMMAND}`; export r; \
25473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25474 $(HOST_EXPORTS) \
b813574b 25475 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25477 done; \
a90ef4bf
JM
25478 echo "Doing installcheck in sim" ; \
25479 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25482 "RANLIB=$${RANLIB}" \
0c24b341 25483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25484 installcheck) \
2a4cbe27
NN
25485 || exit 1
25486
a90ef4bf 25487@endif sim
2a4cbe27 25488
a90ef4bf
JM
25489.PHONY: maybe-mostlyclean-sim mostlyclean-sim
25490maybe-mostlyclean-sim:
25491@if sim
25492maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 25493
a90ef4bf
JM
25494mostlyclean-sim:
25495 @: $(MAKE); $(unstage)
25496 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
25497 r=`${PWD_COMMAND}`; export r; \
25498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
25499 $(HOST_EXPORTS) \
25500 for flag in $(EXTRA_HOST_FLAGS) ; do \
25501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25502 done; \
a90ef4bf
JM
25503 echo "Doing mostlyclean in sim" ; \
25504 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
25505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25507 "RANLIB=$${RANLIB}" \
0c24b341 25508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
25509 mostlyclean) \
25510 || exit 1
4fa63067 25511
a90ef4bf 25512@endif sim
4fa63067 25513
a90ef4bf
JM
25514.PHONY: maybe-clean-sim clean-sim
25515maybe-clean-sim:
25516@if sim
25517maybe-clean-sim: clean-sim
4fa63067 25518
a90ef4bf
JM
25519clean-sim:
25520 @: $(MAKE); $(unstage)
25521 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25522 r=`${PWD_COMMAND}`; export r; \
25523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25524 $(HOST_EXPORTS) \
b813574b 25525 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25527 done; \
a90ef4bf
JM
25528 echo "Doing clean in sim" ; \
25529 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25532 "RANLIB=$${RANLIB}" \
0c24b341 25533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25534 clean) \
2a4cbe27
NN
25535 || exit 1
25536
a90ef4bf 25537@endif sim
2a4cbe27 25538
a90ef4bf
JM
25539.PHONY: maybe-distclean-sim distclean-sim
25540maybe-distclean-sim:
25541@if sim
25542maybe-distclean-sim: distclean-sim
2a4cbe27 25543
a90ef4bf
JM
25544distclean-sim:
25545 @: $(MAKE); $(unstage)
25546 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25547 r=`${PWD_COMMAND}`; export r; \
25548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25549 $(HOST_EXPORTS) \
b813574b 25550 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25552 done; \
a90ef4bf
JM
25553 echo "Doing distclean in sim" ; \
25554 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25557 "RANLIB=$${RANLIB}" \
0c24b341 25558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25559 distclean) \
2a4cbe27
NN
25560 || exit 1
25561
a90ef4bf 25562@endif sim
2a4cbe27 25563
a90ef4bf
JM
25564.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
25565maybe-maintainer-clean-sim:
25566@if sim
25567maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 25568
a90ef4bf
JM
25569maintainer-clean-sim:
25570 @: $(MAKE); $(unstage)
25571 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25572 r=`${PWD_COMMAND}`; export r; \
25573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25574 $(HOST_EXPORTS) \
b813574b 25575 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25577 done; \
a90ef4bf
JM
25578 echo "Doing maintainer-clean in sim" ; \
25579 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25582 "RANLIB=$${RANLIB}" \
0c24b341 25583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25584 maintainer-clean) \
2a4cbe27
NN
25585 || exit 1
25586
a90ef4bf 25587@endif sim
2a4cbe27 25588
2a4cbe27 25589
a7254363 25590
a90ef4bf
JM
25591.PHONY: configure-texinfo maybe-configure-texinfo
25592maybe-configure-texinfo:
4f0ef2d8 25593@if gcc-bootstrap
a90ef4bf 25594configure-texinfo: stage_current
4f0ef2d8 25595@endif gcc-bootstrap
a90ef4bf
JM
25596@if texinfo
25597maybe-configure-texinfo: configure-texinfo
25598configure-texinfo:
0aed8855 25599 @: $(MAKE); $(unstage)
c52c6897 25600 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25602 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
25603 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
1f53ca9a 25604 $(HOST_EXPORTS) \
a90ef4bf
JM
25605 echo Configuring in $(HOST_SUBDIR)/texinfo; \
25606 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 25607 case $(srcdir) in \
b00612cc 25608 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25609 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 25610 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25611 esac; \
a90ef4bf
JM
25612 srcdiroption="--srcdir=$${topdir}/texinfo"; \
25613 libsrcdir="$$s/texinfo"; \
4fa63067 25614 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
25615 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25616 --target=${target_alias} $${srcdiroption} \
2a4cbe27 25617 || exit 1
a90ef4bf 25618@endif texinfo
2a4cbe27 25619
a7254363
PB
25620
25621
d545f33b
PB
25622
25623
a90ef4bf
JM
25624.PHONY: all-texinfo maybe-all-texinfo
25625maybe-all-texinfo:
4f0ef2d8 25626@if gcc-bootstrap
a90ef4bf 25627all-texinfo: stage_current
4f0ef2d8 25628@endif gcc-bootstrap
a90ef4bf
JM
25629@if texinfo
25630TARGET-texinfo=all
25631maybe-all-texinfo: all-texinfo
25632all-texinfo: configure-texinfo
0aed8855 25633 @: $(MAKE); $(unstage)
4fa63067
NN
25634 @r=`${PWD_COMMAND}`; export r; \
25635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25636 $(HOST_EXPORTS) \
a90ef4bf 25637 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 25638 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25639 $(TARGET-texinfo))
25640@endif texinfo
4fa63067 25641
a7254363 25642
d545f33b
PB
25643
25644
a90ef4bf
JM
25645.PHONY: check-texinfo maybe-check-texinfo
25646maybe-check-texinfo:
25647@if texinfo
25648maybe-check-texinfo: check-texinfo
2a4cbe27 25649
a90ef4bf 25650check-texinfo:
0aed8855 25651 @: $(MAKE); $(unstage)
4fa63067
NN
25652 @r=`${PWD_COMMAND}`; export r; \
25653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25654 $(HOST_EXPORTS) \
a90ef4bf 25655 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 25656 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25657
a90ef4bf 25658@endif texinfo
4fa63067 25659
a90ef4bf
JM
25660.PHONY: install-texinfo maybe-install-texinfo
25661maybe-install-texinfo:
25662@if texinfo
25663maybe-install-texinfo: install-texinfo
4fa63067 25664
a90ef4bf 25665install-texinfo:
4fa63067 25666
a90ef4bf 25667@endif texinfo
4fa63067 25668
a90ef4bf
JM
25669.PHONY: install-strip-texinfo maybe-install-strip-texinfo
25670maybe-install-strip-texinfo:
25671@if texinfo
25672maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 25673
a90ef4bf 25674install-strip-texinfo:
9b980aa1 25675
a90ef4bf 25676@endif texinfo
9b980aa1 25677
56a8fe78 25678# Other targets (info, dvi, pdf, etc.)
4fa63067 25679
a90ef4bf
JM
25680.PHONY: maybe-info-texinfo info-texinfo
25681maybe-info-texinfo:
25682@if texinfo
25683maybe-info-texinfo: info-texinfo
4fa63067 25684
a90ef4bf
JM
25685info-texinfo: \
25686 configure-texinfo
0aed8855 25687 @: $(MAKE); $(unstage)
a90ef4bf 25688 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
25689 r=`${PWD_COMMAND}`; export r; \
25690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25691 $(HOST_EXPORTS) \
b813574b 25692 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25694 done; \
a90ef4bf
JM
25695 echo "Doing info in texinfo" ; \
25696 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
25697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25699 "RANLIB=$${RANLIB}" \
0c24b341 25700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25701 info) \
2a4cbe27
NN
25702 || exit 1
25703
a90ef4bf 25704@endif texinfo
2a4cbe27 25705
a90ef4bf
JM
25706.PHONY: maybe-dvi-texinfo dvi-texinfo
25707maybe-dvi-texinfo:
25708@if texinfo
25709maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 25710
a90ef4bf
JM
25711dvi-texinfo: \
25712 configure-texinfo
0aed8855 25713 @: $(MAKE); $(unstage)
a90ef4bf 25714 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
25715 r=`${PWD_COMMAND}`; export r; \
25716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25717 $(HOST_EXPORTS) \
b813574b 25718 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25720 done; \
a90ef4bf
JM
25721 echo "Doing dvi in texinfo" ; \
25722 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
25723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25725 "RANLIB=$${RANLIB}" \
0c24b341 25726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25727 dvi) \
2a4cbe27
NN
25728 || exit 1
25729
a90ef4bf 25730@endif texinfo
2a4cbe27 25731
a90ef4bf
JM
25732.PHONY: maybe-pdf-texinfo pdf-texinfo
25733maybe-pdf-texinfo:
25734@if texinfo
25735maybe-pdf-texinfo: pdf-texinfo
56a8fe78 25736
a90ef4bf
JM
25737pdf-texinfo: \
25738 configure-texinfo
56a8fe78 25739 @: $(MAKE); $(unstage)
a90ef4bf 25740 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
25741 r=`${PWD_COMMAND}`; export r; \
25742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25743 $(HOST_EXPORTS) \
25744 for flag in $(EXTRA_HOST_FLAGS) ; do \
25745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25746 done; \
a90ef4bf
JM
25747 echo "Doing pdf in texinfo" ; \
25748 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
25749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25751 "RANLIB=$${RANLIB}" \
0c24b341 25752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25753 pdf) \
25754 || exit 1
25755
a90ef4bf 25756@endif texinfo
56a8fe78 25757
a90ef4bf
JM
25758.PHONY: maybe-html-texinfo html-texinfo
25759maybe-html-texinfo:
25760@if texinfo
25761maybe-html-texinfo: html-texinfo
6d389afc 25762
a90ef4bf
JM
25763html-texinfo: \
25764 configure-texinfo
0aed8855 25765 @: $(MAKE); $(unstage)
a90ef4bf 25766 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
25767 r=`${PWD_COMMAND}`; export r; \
25768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25769 $(HOST_EXPORTS) \
25770 for flag in $(EXTRA_HOST_FLAGS) ; do \
25771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25772 done; \
a90ef4bf
JM
25773 echo "Doing html in texinfo" ; \
25774 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
25775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25777 "RANLIB=$${RANLIB}" \
0c24b341 25778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25779 html) \
25780 || exit 1
25781
a90ef4bf 25782@endif texinfo
6d389afc 25783
a90ef4bf
JM
25784.PHONY: maybe-TAGS-texinfo TAGS-texinfo
25785maybe-TAGS-texinfo:
25786@if texinfo
25787maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 25788
a90ef4bf
JM
25789TAGS-texinfo: \
25790 configure-texinfo
0aed8855 25791 @: $(MAKE); $(unstage)
a90ef4bf 25792 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
25793 r=`${PWD_COMMAND}`; export r; \
25794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25795 $(HOST_EXPORTS) \
b813574b 25796 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25798 done; \
a90ef4bf
JM
25799 echo "Doing TAGS in texinfo" ; \
25800 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
25801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25803 "RANLIB=$${RANLIB}" \
0c24b341 25804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25805 TAGS) \
2a4cbe27
NN
25806 || exit 1
25807
a90ef4bf 25808@endif texinfo
2a4cbe27 25809
a90ef4bf
JM
25810.PHONY: maybe-install-info-texinfo install-info-texinfo
25811maybe-install-info-texinfo:
25812@if texinfo
25813maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 25814
a90ef4bf
JM
25815install-info-texinfo: \
25816 configure-texinfo \
25817 info-texinfo
0aed8855 25818 @: $(MAKE); $(unstage)
a90ef4bf 25819 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
25820 r=`${PWD_COMMAND}`; export r; \
25821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25822 $(HOST_EXPORTS) \
b813574b 25823 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25825 done; \
a90ef4bf
JM
25826 echo "Doing install-info in texinfo" ; \
25827 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
25828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25830 "RANLIB=$${RANLIB}" \
0c24b341 25831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25832 install-info) \
2a4cbe27
NN
25833 || exit 1
25834
a90ef4bf 25835@endif texinfo
2a4cbe27 25836
a90ef4bf
JM
25837.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
25838maybe-install-pdf-texinfo:
25839@if texinfo
25840maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 25841
a90ef4bf
JM
25842install-pdf-texinfo: \
25843 configure-texinfo \
25844 pdf-texinfo
a3ca38d2 25845 @: $(MAKE); $(unstage)
a90ef4bf 25846 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
25847 r=`${PWD_COMMAND}`; export r; \
25848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25849 $(HOST_EXPORTS) \
25850 for flag in $(EXTRA_HOST_FLAGS) ; do \
25851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25852 done; \
a90ef4bf
JM
25853 echo "Doing install-pdf in texinfo" ; \
25854 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
25855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25857 "RANLIB=$${RANLIB}" \
0c24b341 25858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25859 install-pdf) \
25860 || exit 1
25861
a90ef4bf 25862@endif texinfo
a3ca38d2 25863
a90ef4bf
JM
25864.PHONY: maybe-install-html-texinfo install-html-texinfo
25865maybe-install-html-texinfo:
25866@if texinfo
25867maybe-install-html-texinfo: install-html-texinfo
108a6f8e 25868
a90ef4bf
JM
25869install-html-texinfo: \
25870 configure-texinfo \
25871 html-texinfo
108a6f8e 25872 @: $(MAKE); $(unstage)
a90ef4bf 25873 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
25874 r=`${PWD_COMMAND}`; export r; \
25875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25876 $(HOST_EXPORTS) \
25877 for flag in $(EXTRA_HOST_FLAGS) ; do \
25878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25879 done; \
a90ef4bf
JM
25880 echo "Doing install-html in texinfo" ; \
25881 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
25882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25884 "RANLIB=$${RANLIB}" \
0c24b341 25885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25886 install-html) \
25887 || exit 1
25888
a90ef4bf 25889@endif texinfo
108a6f8e 25890
a90ef4bf
JM
25891.PHONY: maybe-installcheck-texinfo installcheck-texinfo
25892maybe-installcheck-texinfo:
25893@if texinfo
25894maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 25895
a90ef4bf
JM
25896installcheck-texinfo: \
25897 configure-texinfo
0aed8855 25898 @: $(MAKE); $(unstage)
a90ef4bf 25899 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
25900 r=`${PWD_COMMAND}`; export r; \
25901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25902 $(HOST_EXPORTS) \
b813574b 25903 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25905 done; \
a90ef4bf
JM
25906 echo "Doing installcheck in texinfo" ; \
25907 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
25908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25910 "RANLIB=$${RANLIB}" \
0c24b341 25911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25912 installcheck) \
2a4cbe27
NN
25913 || exit 1
25914
a90ef4bf 25915@endif texinfo
2a4cbe27 25916
a90ef4bf
JM
25917.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
25918maybe-mostlyclean-texinfo:
25919@if texinfo
25920maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 25921
a90ef4bf 25922mostlyclean-texinfo:
0aed8855 25923 @: $(MAKE); $(unstage)
a90ef4bf 25924 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
25925 r=`${PWD_COMMAND}`; export r; \
25926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25927 $(HOST_EXPORTS) \
b813574b 25928 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25930 done; \
a90ef4bf
JM
25931 echo "Doing mostlyclean in texinfo" ; \
25932 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
25933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25935 "RANLIB=$${RANLIB}" \
0c24b341 25936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 25937 mostlyclean) \
2a4cbe27
NN
25938 || exit 1
25939
a90ef4bf 25940@endif texinfo
2a4cbe27 25941
a90ef4bf
JM
25942.PHONY: maybe-clean-texinfo clean-texinfo
25943maybe-clean-texinfo:
25944@if texinfo
25945maybe-clean-texinfo: clean-texinfo
2a4cbe27 25946
a90ef4bf 25947clean-texinfo:
0aed8855 25948 @: $(MAKE); $(unstage)
a90ef4bf 25949 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
25950 r=`${PWD_COMMAND}`; export r; \
25951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25952 $(HOST_EXPORTS) \
b813574b 25953 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25955 done; \
a90ef4bf
JM
25956 echo "Doing clean in texinfo" ; \
25957 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
25958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25960 "RANLIB=$${RANLIB}" \
0c24b341 25961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 25962 clean) \
2a4cbe27
NN
25963 || exit 1
25964
a90ef4bf 25965@endif texinfo
2a4cbe27 25966
a90ef4bf
JM
25967.PHONY: maybe-distclean-texinfo distclean-texinfo
25968maybe-distclean-texinfo:
25969@if texinfo
25970maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 25971
a90ef4bf 25972distclean-texinfo:
0aed8855 25973 @: $(MAKE); $(unstage)
a90ef4bf 25974 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
25975 r=`${PWD_COMMAND}`; export r; \
25976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25977 $(HOST_EXPORTS) \
b813574b 25978 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25980 done; \
a90ef4bf
JM
25981 echo "Doing distclean in texinfo" ; \
25982 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
25983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25985 "RANLIB=$${RANLIB}" \
0c24b341 25986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 25987 distclean) \
2a4cbe27
NN
25988 || exit 1
25989
a90ef4bf 25990@endif texinfo
2a4cbe27 25991
a90ef4bf
JM
25992.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
25993maybe-maintainer-clean-texinfo:
25994@if texinfo
25995maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 25996
a90ef4bf 25997maintainer-clean-texinfo:
0aed8855 25998 @: $(MAKE); $(unstage)
a90ef4bf 25999 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26000 r=`${PWD_COMMAND}`; export r; \
26001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26002 $(HOST_EXPORTS) \
b813574b 26003 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26005 done; \
a90ef4bf
JM
26006 echo "Doing maintainer-clean in texinfo" ; \
26007 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26010 "RANLIB=$${RANLIB}" \
0c24b341 26011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26012 maintainer-clean) \
2a4cbe27
NN
26013 || exit 1
26014
a90ef4bf 26015@endif texinfo
2a4cbe27 26016
2a4cbe27 26017
a7254363 26018
a90ef4bf
JM
26019.PHONY: configure-zlib maybe-configure-zlib
26020maybe-configure-zlib:
4f0ef2d8 26021@if gcc-bootstrap
a90ef4bf 26022configure-zlib: stage_current
4f0ef2d8 26023@endif gcc-bootstrap
a90ef4bf
JM
26024@if zlib
26025maybe-configure-zlib: configure-zlib
26026configure-zlib:
c52c6897
PB
26027 @r=`${PWD_COMMAND}`; export r; \
26028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26029 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
26030 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
1f53ca9a 26031 $(HOST_EXPORTS) \
a90ef4bf
JM
26032 echo Configuring in $(HOST_SUBDIR)/zlib; \
26033 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 26034 case $(srcdir) in \
b00612cc 26035 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26036 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 26037 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 26038 esac; \
a90ef4bf
JM
26039 srcdiroption="--srcdir=$${topdir}/zlib"; \
26040 libsrcdir="$$s/zlib"; \
04cf1b77 26041 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
26042 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26043 --target=${target_alias} $${srcdiroption} \
04cf1b77 26044 || exit 1
a90ef4bf 26045@endif zlib
04cf1b77 26046
a7254363
PB
26047
26048
a90ef4bf
JM
26049.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
26050maybe-configure-stage1-zlib:
26051@if zlib-bootstrap
26052maybe-configure-stage1-zlib: configure-stage1-zlib
26053configure-stage1-zlib:
c52c6897 26054 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 26055 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26056 @r=`${PWD_COMMAND}`; export r; \
26057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26058 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 26059 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 26060 $(HOST_EXPORTS) \
8ee82aff 26061 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26062 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
26063 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26064 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
26065 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26066 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26067 case $(srcdir) in \
26068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26069 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26071 esac; \
a90ef4bf
JM
26072 srcdiroption="--srcdir=$${topdir}/zlib"; \
26073 libsrcdir="$$s/zlib"; \
d545f33b 26074 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
26075 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26076 --target=${target_alias} $${srcdiroption} \
1b05fbbd 26077 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 26078@endif zlib-bootstrap
d545f33b 26079
a90ef4bf
JM
26080.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
26081maybe-configure-stage2-zlib:
26082@if zlib-bootstrap
26083maybe-configure-stage2-zlib: configure-stage2-zlib
26084configure-stage2-zlib:
c52c6897 26085 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 26086 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26087 @r=`${PWD_COMMAND}`; export r; \
26088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26089 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 26090 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26091 $(HOST_EXPORTS) \
1b05fbbd 26092 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26093 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26094 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
26095 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26096 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
26097 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26098 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26099 case $(srcdir) in \
26100 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26101 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26102 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26103 esac; \
a90ef4bf
JM
26104 srcdiroption="--srcdir=$${topdir}/zlib"; \
26105 libsrcdir="$$s/zlib"; \
d545f33b 26106 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
26107 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26108 --target=${target_alias} $${srcdiroption} \
c1cb7e02 26109 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26110 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 26111@endif zlib-bootstrap
8520c408 26112
a90ef4bf
JM
26113.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
26114maybe-configure-stage3-zlib:
26115@if zlib-bootstrap
26116maybe-configure-stage3-zlib: configure-stage3-zlib
26117configure-stage3-zlib:
c52c6897 26118 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 26119 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26120 @r=`${PWD_COMMAND}`; export r; \
26121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26122 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 26123 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26124 $(HOST_EXPORTS) \
1b05fbbd 26125 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26126 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26127 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
26128 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26129 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
26130 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26131 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26132 case $(srcdir) in \
26133 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26134 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26135 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26136 esac; \
a90ef4bf
JM
26137 srcdiroption="--srcdir=$${topdir}/zlib"; \
26138 libsrcdir="$$s/zlib"; \
d545f33b 26139 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
26140 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26141 --target=${target_alias} $${srcdiroption} \
c1cb7e02 26142 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26143 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 26144@endif zlib-bootstrap
8520c408 26145
a90ef4bf
JM
26146.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
26147maybe-configure-stage4-zlib:
26148@if zlib-bootstrap
26149maybe-configure-stage4-zlib: configure-stage4-zlib
26150configure-stage4-zlib:
c52c6897 26151 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 26152 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26153 @r=`${PWD_COMMAND}`; export r; \
26154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26155 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 26156 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26157 $(HOST_EXPORTS) \
1b05fbbd 26158 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26159 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26160 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
26161 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26162 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
26163 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26164 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26165 case $(srcdir) in \
26166 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26167 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26168 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26169 esac; \
a90ef4bf
JM
26170 srcdiroption="--srcdir=$${topdir}/zlib"; \
26171 libsrcdir="$$s/zlib"; \
d545f33b 26172 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
26173 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26174 --target=${target_alias} $${srcdiroption} \
c1cb7e02 26175 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26176 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 26177@endif zlib-bootstrap
d545f33b 26178
a90ef4bf
JM
26179.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
26180maybe-configure-stageprofile-zlib:
26181@if zlib-bootstrap
26182maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
26183configure-stageprofile-zlib:
c52c6897 26184 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 26185 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26186 @r=`${PWD_COMMAND}`; export r; \
26187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26188 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 26189 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26190 $(HOST_EXPORTS) \
1b05fbbd
AO
26191 $(POSTSTAGE1_HOST_EXPORTS) \
26192 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26193 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
26194 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26195 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
26196 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26197 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26198 case $(srcdir) in \
26199 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26200 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26201 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26202 esac; \
a90ef4bf
JM
26203 srcdiroption="--srcdir=$${topdir}/zlib"; \
26204 libsrcdir="$$s/zlib"; \
d545f33b 26205 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
26206 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26207 --target=${target_alias} $${srcdiroption} \
c1cb7e02 26208 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26209 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 26210@endif zlib-bootstrap
d545f33b 26211
a90ef4bf
JM
26212.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
26213maybe-configure-stagefeedback-zlib:
26214@if zlib-bootstrap
26215maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
26216configure-stagefeedback-zlib:
c52c6897 26217 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 26218 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26219 @r=`${PWD_COMMAND}`; export r; \
26220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26221 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 26222 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26223 $(HOST_EXPORTS) \
1b05fbbd
AO
26224 $(POSTSTAGE1_HOST_EXPORTS) \
26225 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26226 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
26227 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26228 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
26229 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26230 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26231 case $(srcdir) in \
26232 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26233 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26234 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26235 esac; \
a90ef4bf
JM
26236 srcdiroption="--srcdir=$${topdir}/zlib"; \
26237 libsrcdir="$$s/zlib"; \
d545f33b 26238 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
26239 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26240 --target=${target_alias} $${srcdiroption} \
c1cb7e02 26241 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 26242 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 26243@endif zlib-bootstrap
d545f33b
PB
26244
26245
26246
26247
26248
a90ef4bf
JM
26249.PHONY: all-zlib maybe-all-zlib
26250maybe-all-zlib:
4f0ef2d8 26251@if gcc-bootstrap
a90ef4bf 26252all-zlib: stage_current
4f0ef2d8 26253@endif gcc-bootstrap
a90ef4bf
JM
26254@if zlib
26255TARGET-zlib=all
26256maybe-all-zlib: all-zlib
26257all-zlib: configure-zlib
c52c6897 26258 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 26259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26260 $(HOST_EXPORTS) \
a90ef4bf 26261 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 26262 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26263 $(TARGET-zlib))
26264@endif zlib
04cf1b77 26265
a7254363 26266
d545f33b 26267
a90ef4bf
JM
26268.PHONY: all-stage1-zlib maybe-all-stage1-zlib
26269.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
26270maybe-all-stage1-zlib:
26271maybe-clean-stage1-zlib:
26272@if zlib-bootstrap
26273maybe-all-stage1-zlib: all-stage1-zlib
26274all-stage1: all-stage1-zlib
26275TARGET-stage1-zlib = $(TARGET-zlib)
26276all-stage1-zlib: configure-stage1-zlib
c52c6897 26277 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
26278 @r=`${PWD_COMMAND}`; export r; \
26279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26280 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 26281 $(HOST_EXPORTS) \
a90ef4bf 26282 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26283 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26284 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 26285 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
26286 LIBCFLAGS="$(LIBCFLAGS)" \
26287 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26288 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26289 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
26290 $(EXTRA_HOST_FLAGS) \
26291 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 26292 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 26293 $(TARGET-stage1-zlib)
d545f33b 26294
a90ef4bf
JM
26295maybe-clean-stage1-zlib: clean-stage1-zlib
26296clean-stage1: clean-stage1-zlib
26297clean-stage1-zlib:
9dbaa842 26298 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 26299 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26300 else \
a90ef4bf 26301 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26302 $(MAKE) stage1-start; \
26303 fi; \
a90ef4bf 26304 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26305 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 26306 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26307@endif zlib-bootstrap
d545f33b
PB
26308
26309
a90ef4bf
JM
26310.PHONY: all-stage2-zlib maybe-all-stage2-zlib
26311.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
26312maybe-all-stage2-zlib:
26313maybe-clean-stage2-zlib:
26314@if zlib-bootstrap
26315maybe-all-stage2-zlib: all-stage2-zlib
26316all-stage2: all-stage2-zlib
26317TARGET-stage2-zlib = $(TARGET-zlib)
26318all-stage2-zlib: configure-stage2-zlib
c52c6897 26319 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
26320 @r=`${PWD_COMMAND}`; export r; \
26321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26322 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 26323 $(HOST_EXPORTS) \
1f53ca9a 26324 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 26325 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26326 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26327 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 26328 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
26329 LIBCFLAGS="$(STAGE2_CFLAGS)" \
26330 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26331 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26332 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26333 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26334 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 26335 $(TARGET-stage2-zlib)
d545f33b 26336
a90ef4bf
JM
26337maybe-clean-stage2-zlib: clean-stage2-zlib
26338clean-stage2: clean-stage2-zlib
26339clean-stage2-zlib:
9dbaa842 26340 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 26341 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26342 else \
a90ef4bf 26343 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26344 $(MAKE) stage2-start; \
26345 fi; \
a90ef4bf 26346 cd $(HOST_SUBDIR)/zlib && \
b3676d82 26347 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26348@endif zlib-bootstrap
d545f33b
PB
26349
26350
a90ef4bf
JM
26351.PHONY: all-stage3-zlib maybe-all-stage3-zlib
26352.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
26353maybe-all-stage3-zlib:
26354maybe-clean-stage3-zlib:
26355@if zlib-bootstrap
26356maybe-all-stage3-zlib: all-stage3-zlib
26357all-stage3: all-stage3-zlib
26358TARGET-stage3-zlib = $(TARGET-zlib)
26359all-stage3-zlib: configure-stage3-zlib
c52c6897 26360 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
26361 @r=`${PWD_COMMAND}`; export r; \
26362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26363 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 26364 $(HOST_EXPORTS) \
1f53ca9a 26365 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 26366 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26367 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26368 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 26369 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
26370 LIBCFLAGS="$(STAGE3_CFLAGS)" \
26371 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26372 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26373 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26374 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26375 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 26376 $(TARGET-stage3-zlib)
d545f33b 26377
a90ef4bf
JM
26378maybe-clean-stage3-zlib: clean-stage3-zlib
26379clean-stage3: clean-stage3-zlib
26380clean-stage3-zlib:
9dbaa842 26381 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 26382 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26383 else \
a90ef4bf 26384 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26385 $(MAKE) stage3-start; \
26386 fi; \
a90ef4bf 26387 cd $(HOST_SUBDIR)/zlib && \
b3676d82 26388 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26389@endif zlib-bootstrap
d545f33b
PB
26390
26391
a90ef4bf
JM
26392.PHONY: all-stage4-zlib maybe-all-stage4-zlib
26393.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
26394maybe-all-stage4-zlib:
26395maybe-clean-stage4-zlib:
26396@if zlib-bootstrap
26397maybe-all-stage4-zlib: all-stage4-zlib
26398all-stage4: all-stage4-zlib
26399TARGET-stage4-zlib = $(TARGET-zlib)
26400all-stage4-zlib: configure-stage4-zlib
c52c6897 26401 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
26402 @r=`${PWD_COMMAND}`; export r; \
26403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26404 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 26405 $(HOST_EXPORTS) \
1f53ca9a 26406 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 26407 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26408 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26409 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 26410 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 26411 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
26412 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26413 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26414 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26415 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26416 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 26417 $(TARGET-stage4-zlib)
d545f33b 26418
a90ef4bf
JM
26419maybe-clean-stage4-zlib: clean-stage4-zlib
26420clean-stage4: clean-stage4-zlib
26421clean-stage4-zlib:
9dbaa842 26422 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 26423 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26424 else \
a90ef4bf 26425 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26426 $(MAKE) stage4-start; \
26427 fi; \
a90ef4bf 26428 cd $(HOST_SUBDIR)/zlib && \
b3676d82 26429 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26430@endif zlib-bootstrap
d545f33b
PB
26431
26432
a90ef4bf
JM
26433.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
26434.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
26435maybe-all-stageprofile-zlib:
26436maybe-clean-stageprofile-zlib:
26437@if zlib-bootstrap
26438maybe-all-stageprofile-zlib: all-stageprofile-zlib
26439all-stageprofile: all-stageprofile-zlib
26440TARGET-stageprofile-zlib = $(TARGET-zlib)
26441all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 26442 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
26443 @r=`${PWD_COMMAND}`; export r; \
26444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26445 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 26446 $(HOST_EXPORTS) \
1f53ca9a 26447 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 26448 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26449 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26450 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 26451 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
26452 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
26453 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26454 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26455 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26456 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26457 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 26458 $(TARGET-stageprofile-zlib)
d545f33b 26459
a90ef4bf
JM
26460maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
26461clean-stageprofile: clean-stageprofile-zlib
26462clean-stageprofile-zlib:
9dbaa842 26463 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 26464 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26465 else \
a90ef4bf 26466 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26467 $(MAKE) stageprofile-start; \
26468 fi; \
a90ef4bf 26469 cd $(HOST_SUBDIR)/zlib && \
b3676d82 26470 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26471@endif zlib-bootstrap
d545f33b
PB
26472
26473
a90ef4bf
JM
26474.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
26475.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
26476maybe-all-stagefeedback-zlib:
26477maybe-clean-stagefeedback-zlib:
26478@if zlib-bootstrap
26479maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
26480all-stagefeedback: all-stagefeedback-zlib
26481TARGET-stagefeedback-zlib = $(TARGET-zlib)
26482all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 26483 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
26484 @r=`${PWD_COMMAND}`; export r; \
26485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26486 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 26487 $(HOST_EXPORTS) \
1f53ca9a 26488 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 26489 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26490 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26491 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 26492 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
26493 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
26494 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26495 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26496 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
26497 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
26498 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 26499 $(TARGET-stagefeedback-zlib)
d545f33b 26500
a90ef4bf
JM
26501maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
26502clean-stagefeedback: clean-stagefeedback-zlib
26503clean-stagefeedback-zlib:
9dbaa842 26504 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 26505 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26506 else \
a90ef4bf 26507 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26508 $(MAKE) stagefeedback-start; \
26509 fi; \
a90ef4bf 26510 cd $(HOST_SUBDIR)/zlib && \
b3676d82 26511 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26512@endif zlib-bootstrap
d545f33b
PB
26513
26514
26515
26516
26517
a90ef4bf
JM
26518.PHONY: check-zlib maybe-check-zlib
26519maybe-check-zlib:
26520@if zlib
26521maybe-check-zlib: check-zlib
04cf1b77 26522
a90ef4bf 26523check-zlib:
04cf1b77 26524
a90ef4bf 26525@endif zlib
04cf1b77 26526
a90ef4bf
JM
26527.PHONY: install-zlib maybe-install-zlib
26528maybe-install-zlib:
26529@if zlib
26530maybe-install-zlib: install-zlib
04cf1b77 26531
a90ef4bf 26532install-zlib:
04cf1b77 26533
a90ef4bf 26534@endif zlib
04cf1b77 26535
a90ef4bf
JM
26536.PHONY: install-strip-zlib maybe-install-strip-zlib
26537maybe-install-strip-zlib:
26538@if zlib
26539maybe-install-strip-zlib: install-strip-zlib
9b980aa1 26540
a90ef4bf 26541install-strip-zlib:
9b980aa1 26542
a90ef4bf 26543@endif zlib
9b980aa1 26544
56a8fe78 26545# Other targets (info, dvi, pdf, etc.)
04cf1b77 26546
a90ef4bf
JM
26547.PHONY: maybe-info-zlib info-zlib
26548maybe-info-zlib:
26549@if zlib
26550maybe-info-zlib: info-zlib
04cf1b77 26551
a90ef4bf
JM
26552info-zlib: \
26553 configure-zlib
26554 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
26555 r=`${PWD_COMMAND}`; export r; \
26556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26557 $(HOST_EXPORTS) \
b813574b 26558 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26560 done; \
a90ef4bf
JM
26561 echo "Doing info in zlib" ; \
26562 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26565 "RANLIB=$${RANLIB}" \
0c24b341 26566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26567 info) \
04cf1b77
PB
26568 || exit 1
26569
a90ef4bf 26570@endif zlib
04cf1b77 26571
a90ef4bf
JM
26572.PHONY: maybe-dvi-zlib dvi-zlib
26573maybe-dvi-zlib:
26574@if zlib
26575maybe-dvi-zlib: dvi-zlib
04cf1b77 26576
a90ef4bf
JM
26577dvi-zlib: \
26578 configure-zlib
26579 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
26580 r=`${PWD_COMMAND}`; export r; \
26581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26582 $(HOST_EXPORTS) \
b813574b 26583 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26585 done; \
a90ef4bf
JM
26586 echo "Doing dvi in zlib" ; \
26587 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26590 "RANLIB=$${RANLIB}" \
0c24b341 26591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26592 dvi) \
04cf1b77
PB
26593 || exit 1
26594
a90ef4bf 26595@endif zlib
04cf1b77 26596
a90ef4bf
JM
26597.PHONY: maybe-pdf-zlib pdf-zlib
26598maybe-pdf-zlib:
26599@if zlib
26600maybe-pdf-zlib: pdf-zlib
56a8fe78 26601
a90ef4bf
JM
26602pdf-zlib: \
26603 configure-zlib
26604 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
26605 r=`${PWD_COMMAND}`; export r; \
26606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26607 $(HOST_EXPORTS) \
26608 for flag in $(EXTRA_HOST_FLAGS) ; do \
26609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26610 done; \
a90ef4bf
JM
26611 echo "Doing pdf in zlib" ; \
26612 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
26613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26615 "RANLIB=$${RANLIB}" \
0c24b341 26616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26617 pdf) \
26618 || exit 1
26619
a90ef4bf 26620@endif zlib
56a8fe78 26621
a90ef4bf
JM
26622.PHONY: maybe-html-zlib html-zlib
26623maybe-html-zlib:
26624@if zlib
26625maybe-html-zlib: html-zlib
6d389afc 26626
a90ef4bf
JM
26627html-zlib: \
26628 configure-zlib
26629 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
26630 r=`${PWD_COMMAND}`; export r; \
26631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26632 $(HOST_EXPORTS) \
26633 for flag in $(EXTRA_HOST_FLAGS) ; do \
26634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26635 done; \
a90ef4bf
JM
26636 echo "Doing html in zlib" ; \
26637 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
26638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26640 "RANLIB=$${RANLIB}" \
0c24b341 26641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26642 html) \
26643 || exit 1
26644
a90ef4bf 26645@endif zlib
6d389afc 26646
a90ef4bf
JM
26647.PHONY: maybe-TAGS-zlib TAGS-zlib
26648maybe-TAGS-zlib:
26649@if zlib
26650maybe-TAGS-zlib: TAGS-zlib
04cf1b77 26651
a90ef4bf
JM
26652TAGS-zlib: \
26653 configure-zlib
26654 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
26655 r=`${PWD_COMMAND}`; export r; \
26656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26657 $(HOST_EXPORTS) \
b813574b 26658 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26660 done; \
a90ef4bf
JM
26661 echo "Doing TAGS in zlib" ; \
26662 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26665 "RANLIB=$${RANLIB}" \
0c24b341 26666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26667 TAGS) \
04cf1b77
PB
26668 || exit 1
26669
a90ef4bf 26670@endif zlib
04cf1b77 26671
a90ef4bf
JM
26672.PHONY: maybe-install-info-zlib install-info-zlib
26673maybe-install-info-zlib:
26674@if zlib
26675maybe-install-info-zlib: install-info-zlib
04cf1b77 26676
a90ef4bf
JM
26677install-info-zlib: \
26678 configure-zlib \
26679 info-zlib
26680 @[ -f ./zlib/Makefile ] || exit 0; \
26681 r=`${PWD_COMMAND}`; export r; \
26682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26683 $(HOST_EXPORTS) \
b813574b 26684 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26686 done; \
a90ef4bf
JM
26687 echo "Doing install-info in zlib" ; \
26688 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26691 "RANLIB=$${RANLIB}" \
0c24b341 26692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26693 install-info) \
04cf1b77
PB
26694 || exit 1
26695
a90ef4bf 26696@endif zlib
04cf1b77 26697
a90ef4bf
JM
26698.PHONY: maybe-install-pdf-zlib install-pdf-zlib
26699maybe-install-pdf-zlib:
26700@if zlib
26701maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 26702
a90ef4bf
JM
26703install-pdf-zlib: \
26704 configure-zlib \
26705 pdf-zlib
26706 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
26707 r=`${PWD_COMMAND}`; export r; \
26708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26709 $(HOST_EXPORTS) \
26710 for flag in $(EXTRA_HOST_FLAGS) ; do \
26711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26712 done; \
a90ef4bf
JM
26713 echo "Doing install-pdf in zlib" ; \
26714 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
26715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26717 "RANLIB=$${RANLIB}" \
0c24b341 26718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26719 install-pdf) \
26720 || exit 1
26721
a90ef4bf 26722@endif zlib
a3ca38d2 26723
a90ef4bf
JM
26724.PHONY: maybe-install-html-zlib install-html-zlib
26725maybe-install-html-zlib:
26726@if zlib
26727maybe-install-html-zlib: install-html-zlib
108a6f8e 26728
a90ef4bf
JM
26729install-html-zlib: \
26730 configure-zlib \
26731 html-zlib
26732 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
26733 r=`${PWD_COMMAND}`; export r; \
26734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26735 $(HOST_EXPORTS) \
26736 for flag in $(EXTRA_HOST_FLAGS) ; do \
26737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26738 done; \
a90ef4bf
JM
26739 echo "Doing install-html in zlib" ; \
26740 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
26741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26743 "RANLIB=$${RANLIB}" \
0c24b341 26744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26745 install-html) \
26746 || exit 1
26747
a90ef4bf 26748@endif zlib
108a6f8e 26749
a90ef4bf
JM
26750.PHONY: maybe-installcheck-zlib installcheck-zlib
26751maybe-installcheck-zlib:
26752@if zlib
26753maybe-installcheck-zlib: installcheck-zlib
04cf1b77 26754
a90ef4bf
JM
26755installcheck-zlib: \
26756 configure-zlib
26757 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
26758 r=`${PWD_COMMAND}`; export r; \
26759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26760 $(HOST_EXPORTS) \
b813574b 26761 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26763 done; \
a90ef4bf
JM
26764 echo "Doing installcheck in zlib" ; \
26765 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26768 "RANLIB=$${RANLIB}" \
0c24b341 26769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26770 installcheck) \
04cf1b77
PB
26771 || exit 1
26772
a90ef4bf 26773@endif zlib
04cf1b77 26774
a90ef4bf
JM
26775.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
26776maybe-mostlyclean-zlib:
26777@if zlib
26778maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 26779
a90ef4bf
JM
26780mostlyclean-zlib:
26781 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
26782 r=`${PWD_COMMAND}`; export r; \
26783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26784 $(HOST_EXPORTS) \
b813574b 26785 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26787 done; \
a90ef4bf
JM
26788 echo "Doing mostlyclean in zlib" ; \
26789 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26792 "RANLIB=$${RANLIB}" \
0c24b341 26793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26794 mostlyclean) \
04cf1b77
PB
26795 || exit 1
26796
a90ef4bf 26797@endif zlib
04cf1b77 26798
a90ef4bf
JM
26799.PHONY: maybe-clean-zlib clean-zlib
26800maybe-clean-zlib:
26801@if zlib
26802maybe-clean-zlib: clean-zlib
04cf1b77 26803
a90ef4bf
JM
26804clean-zlib:
26805 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
26806 r=`${PWD_COMMAND}`; export r; \
26807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26808 $(HOST_EXPORTS) \
b813574b 26809 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26811 done; \
a90ef4bf
JM
26812 echo "Doing clean in zlib" ; \
26813 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26816 "RANLIB=$${RANLIB}" \
0c24b341 26817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26818 clean) \
04cf1b77
PB
26819 || exit 1
26820
a90ef4bf 26821@endif zlib
04cf1b77 26822
a90ef4bf
JM
26823.PHONY: maybe-distclean-zlib distclean-zlib
26824maybe-distclean-zlib:
26825@if zlib
26826maybe-distclean-zlib: distclean-zlib
04cf1b77 26827
a90ef4bf
JM
26828distclean-zlib:
26829 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
26830 r=`${PWD_COMMAND}`; export r; \
26831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26832 $(HOST_EXPORTS) \
b813574b 26833 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26835 done; \
a90ef4bf
JM
26836 echo "Doing distclean in zlib" ; \
26837 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26840 "RANLIB=$${RANLIB}" \
0c24b341 26841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26842 distclean) \
04cf1b77
PB
26843 || exit 1
26844
a90ef4bf 26845@endif zlib
04cf1b77 26846
a90ef4bf
JM
26847.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
26848maybe-maintainer-clean-zlib:
26849@if zlib
26850maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 26851
a90ef4bf
JM
26852maintainer-clean-zlib:
26853 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
26854 r=`${PWD_COMMAND}`; export r; \
26855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26856 $(HOST_EXPORTS) \
b813574b 26857 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
26858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26859 done; \
a90ef4bf
JM
26860 echo "Doing maintainer-clean in zlib" ; \
26861 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
26862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26864 "RANLIB=$${RANLIB}" \
0c24b341 26865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26866 maintainer-clean) \
04cf1b77
PB
26867 || exit 1
26868
a90ef4bf 26869@endif zlib
04cf1b77
PB
26870
26871
a7254363 26872
a90ef4bf
JM
26873.PHONY: configure-gdb maybe-configure-gdb
26874maybe-configure-gdb:
4f0ef2d8 26875@if gcc-bootstrap
a90ef4bf 26876configure-gdb: stage_current
4f0ef2d8 26877@endif gcc-bootstrap
a90ef4bf
JM
26878@if gdb
26879maybe-configure-gdb: configure-gdb
26880configure-gdb:
26881 @: $(MAKE); $(unstage)
c52c6897
PB
26882 @r=`${PWD_COMMAND}`; export r; \
26883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26884 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
26885 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
1f53ca9a 26886 $(HOST_EXPORTS) \
a90ef4bf
JM
26887 echo Configuring in $(HOST_SUBDIR)/gdb; \
26888 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 26889 case $(srcdir) in \
b00612cc 26890 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26891 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 26892 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26893 esac; \
a90ef4bf
JM
26894 srcdiroption="--srcdir=$${topdir}/gdb"; \
26895 libsrcdir="$$s/gdb"; \
4fa63067 26896 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
26897 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26898 --target=${target_alias} $${srcdiroption} \
4fa63067 26899 || exit 1
a90ef4bf 26900@endif gdb
4fa63067 26901
a7254363
PB
26902
26903
d545f33b 26904
8520c408 26905
a90ef4bf
JM
26906.PHONY: all-gdb maybe-all-gdb
26907maybe-all-gdb:
26908@if gcc-bootstrap
26909all-gdb: stage_current
26910@endif gcc-bootstrap
26911@if gdb
26912TARGET-gdb=all
26913maybe-all-gdb: all-gdb
26914all-gdb: configure-gdb
26915 @: $(MAKE); $(unstage)
c52c6897
PB
26916 @r=`${PWD_COMMAND}`; export r; \
26917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26918 $(HOST_EXPORTS) \
26919 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 26920 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26921 $(TARGET-gdb))
26922@endif gdb
8520c408 26923
a90ef4bf
JM
26924
26925
26926
26927.PHONY: check-gdb maybe-check-gdb
26928maybe-check-gdb:
26929@if gdb
26930maybe-check-gdb: check-gdb
26931
26932check-gdb:
26933 @: $(MAKE); $(unstage)
c52c6897
PB
26934 @r=`${PWD_COMMAND}`; export r; \
26935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26936 $(HOST_EXPORTS) \
a90ef4bf
JM
26937 (cd $(HOST_SUBDIR)/gdb && \
26938 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 26939
a90ef4bf
JM
26940@endif gdb
26941
26942.PHONY: install-gdb maybe-install-gdb
26943maybe-install-gdb:
26944@if gdb
26945maybe-install-gdb: install-gdb
26946
26947install-gdb: installdirs
26948 @: $(MAKE); $(unstage)
c52c6897
PB
26949 @r=`${PWD_COMMAND}`; export r; \
26950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26951 $(HOST_EXPORTS) \
a90ef4bf
JM
26952 (cd $(HOST_SUBDIR)/gdb && \
26953 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 26954
a90ef4bf
JM
26955@endif gdb
26956
26957.PHONY: install-strip-gdb maybe-install-strip-gdb
26958maybe-install-strip-gdb:
26959@if gdb
26960maybe-install-strip-gdb: install-strip-gdb
26961
26962install-strip-gdb: installdirs
26963 @: $(MAKE); $(unstage)
c52c6897
PB
26964 @r=`${PWD_COMMAND}`; export r; \
26965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26966 $(HOST_EXPORTS) \
a90ef4bf
JM
26967 (cd $(HOST_SUBDIR)/gdb && \
26968 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26969
a90ef4bf 26970@endif gdb
d545f33b 26971
a90ef4bf 26972# Other targets (info, dvi, pdf, etc.)
d545f33b 26973
a90ef4bf
JM
26974.PHONY: maybe-info-gdb info-gdb
26975maybe-info-gdb:
26976@if gdb
26977maybe-info-gdb: info-gdb
d545f33b 26978
a90ef4bf
JM
26979info-gdb: \
26980 configure-gdb
26981 @: $(MAKE); $(unstage)
26982 @[ -f ./gdb/Makefile ] || exit 0; \
26983 r=`${PWD_COMMAND}`; export r; \
4fa63067 26984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26985 $(HOST_EXPORTS) \
26986 for flag in $(EXTRA_HOST_FLAGS) ; do \
26987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26988 done; \
26989 echo "Doing info in gdb" ; \
26990 (cd $(HOST_SUBDIR)/gdb && \
26991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26993 "RANLIB=$${RANLIB}" \
26994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26995 info) \
26996 || exit 1
4fa63067 26997
a90ef4bf 26998@endif gdb
a7254363 26999
a90ef4bf
JM
27000.PHONY: maybe-dvi-gdb dvi-gdb
27001maybe-dvi-gdb:
27002@if gdb
27003maybe-dvi-gdb: dvi-gdb
d545f33b 27004
a90ef4bf
JM
27005dvi-gdb: \
27006 configure-gdb
27007 @: $(MAKE); $(unstage)
27008 @[ -f ./gdb/Makefile ] || exit 0; \
27009 r=`${PWD_COMMAND}`; export r; \
d545f33b 27010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27011 $(HOST_EXPORTS) \
27012 for flag in $(EXTRA_HOST_FLAGS) ; do \
27013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27014 done; \
27015 echo "Doing dvi in gdb" ; \
27016 (cd $(HOST_SUBDIR)/gdb && \
27017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27019 "RANLIB=$${RANLIB}" \
27020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27021 dvi) \
27022 || exit 1
d545f33b 27023
a90ef4bf 27024@endif gdb
d545f33b 27025
a90ef4bf
JM
27026.PHONY: maybe-pdf-gdb pdf-gdb
27027maybe-pdf-gdb:
27028@if gdb
27029maybe-pdf-gdb: pdf-gdb
d545f33b 27030
a90ef4bf
JM
27031pdf-gdb: \
27032 configure-gdb
9b980aa1 27033 @: $(MAKE); $(unstage)
a90ef4bf 27034 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27035 r=`${PWD_COMMAND}`; export r; \
27036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27037 $(HOST_EXPORTS) \
b813574b 27038 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27040 done; \
a90ef4bf
JM
27041 echo "Doing pdf in gdb" ; \
27042 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27045 "RANLIB=$${RANLIB}" \
0c24b341 27046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27047 pdf) \
2a4cbe27
NN
27048 || exit 1
27049
a90ef4bf 27050@endif gdb
2a4cbe27 27051
a90ef4bf
JM
27052.PHONY: maybe-html-gdb html-gdb
27053maybe-html-gdb:
27054@if gdb
27055maybe-html-gdb: html-gdb
2a4cbe27 27056
a90ef4bf
JM
27057html-gdb: \
27058 configure-gdb
27059 @: $(MAKE); $(unstage)
27060 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27061 r=`${PWD_COMMAND}`; export r; \
27062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27063 $(HOST_EXPORTS) \
b813574b 27064 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27066 done; \
a90ef4bf
JM
27067 echo "Doing html in gdb" ; \
27068 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27071 "RANLIB=$${RANLIB}" \
0c24b341 27072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27073 html) \
2a4cbe27
NN
27074 || exit 1
27075
a90ef4bf 27076@endif gdb
2a4cbe27 27077
a90ef4bf
JM
27078.PHONY: maybe-TAGS-gdb TAGS-gdb
27079maybe-TAGS-gdb:
27080@if gdb
27081maybe-TAGS-gdb: TAGS-gdb
56a8fe78 27082
a90ef4bf
JM
27083TAGS-gdb: \
27084 configure-gdb
27085 @: $(MAKE); $(unstage)
27086 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
27087 r=`${PWD_COMMAND}`; export r; \
27088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27089 $(HOST_EXPORTS) \
27090 for flag in $(EXTRA_HOST_FLAGS) ; do \
27091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27092 done; \
a90ef4bf
JM
27093 echo "Doing TAGS in gdb" ; \
27094 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
27095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27097 "RANLIB=$${RANLIB}" \
0c24b341 27098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27099 TAGS) \
56a8fe78
DD
27100 || exit 1
27101
a90ef4bf 27102@endif gdb
56a8fe78 27103
a90ef4bf
JM
27104.PHONY: maybe-install-info-gdb install-info-gdb
27105maybe-install-info-gdb:
27106@if gdb
27107maybe-install-info-gdb: install-info-gdb
6d389afc 27108
a90ef4bf
JM
27109install-info-gdb: \
27110 configure-gdb \
27111 info-gdb
27112 @: $(MAKE); $(unstage)
27113 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
27114 r=`${PWD_COMMAND}`; export r; \
27115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27116 $(HOST_EXPORTS) \
27117 for flag in $(EXTRA_HOST_FLAGS) ; do \
27118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27119 done; \
a90ef4bf
JM
27120 echo "Doing install-info in gdb" ; \
27121 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
27122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27124 "RANLIB=$${RANLIB}" \
0c24b341 27125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27126 install-info) \
6d389afc
MS
27127 || exit 1
27128
a90ef4bf 27129@endif gdb
6d389afc 27130
a90ef4bf
JM
27131.PHONY: maybe-install-pdf-gdb install-pdf-gdb
27132maybe-install-pdf-gdb:
27133@if gdb
27134maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 27135
a90ef4bf
JM
27136install-pdf-gdb: \
27137 configure-gdb \
27138 pdf-gdb
27139 @: $(MAKE); $(unstage)
27140 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27141 r=`${PWD_COMMAND}`; export r; \
27142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27143 $(HOST_EXPORTS) \
b813574b 27144 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27146 done; \
a90ef4bf
JM
27147 echo "Doing install-pdf in gdb" ; \
27148 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27151 "RANLIB=$${RANLIB}" \
0c24b341 27152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27153 install-pdf) \
2a4cbe27
NN
27154 || exit 1
27155
a90ef4bf 27156@endif gdb
2a4cbe27 27157
a90ef4bf
JM
27158.PHONY: maybe-install-html-gdb install-html-gdb
27159maybe-install-html-gdb:
27160@if gdb
27161maybe-install-html-gdb: install-html-gdb
2a4cbe27 27162
a90ef4bf
JM
27163install-html-gdb: \
27164 configure-gdb \
27165 html-gdb
27166 @: $(MAKE); $(unstage)
27167 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27168 r=`${PWD_COMMAND}`; export r; \
27169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27170 $(HOST_EXPORTS) \
b813574b 27171 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27173 done; \
a90ef4bf
JM
27174 echo "Doing install-html in gdb" ; \
27175 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27178 "RANLIB=$${RANLIB}" \
0c24b341 27179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27180 install-html) \
2a4cbe27
NN
27181 || exit 1
27182
a90ef4bf 27183@endif gdb
2a4cbe27 27184
a90ef4bf
JM
27185.PHONY: maybe-installcheck-gdb installcheck-gdb
27186maybe-installcheck-gdb:
27187@if gdb
27188maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 27189
a90ef4bf
JM
27190installcheck-gdb: \
27191 configure-gdb
27192 @: $(MAKE); $(unstage)
27193 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
27194 r=`${PWD_COMMAND}`; export r; \
27195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27196 $(HOST_EXPORTS) \
27197 for flag in $(EXTRA_HOST_FLAGS) ; do \
27198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27199 done; \
a90ef4bf
JM
27200 echo "Doing installcheck in gdb" ; \
27201 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
27202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27204 "RANLIB=$${RANLIB}" \
0c24b341 27205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27206 installcheck) \
a3ca38d2
DD
27207 || exit 1
27208
a90ef4bf 27209@endif gdb
a3ca38d2 27210
a90ef4bf
JM
27211.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
27212maybe-mostlyclean-gdb:
27213@if gdb
27214maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 27215
a90ef4bf
JM
27216mostlyclean-gdb:
27217 @: $(MAKE); $(unstage)
27218 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
27219 r=`${PWD_COMMAND}`; export r; \
27220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27221 $(HOST_EXPORTS) \
27222 for flag in $(EXTRA_HOST_FLAGS) ; do \
27223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27224 done; \
a90ef4bf
JM
27225 echo "Doing mostlyclean in gdb" ; \
27226 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
27227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27229 "RANLIB=$${RANLIB}" \
0c24b341 27230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27231 mostlyclean) \
108a6f8e
CD
27232 || exit 1
27233
a90ef4bf 27234@endif gdb
108a6f8e 27235
a90ef4bf
JM
27236.PHONY: maybe-clean-gdb clean-gdb
27237maybe-clean-gdb:
27238@if gdb
27239maybe-clean-gdb: clean-gdb
2a4cbe27 27240
a90ef4bf
JM
27241clean-gdb:
27242 @: $(MAKE); $(unstage)
27243 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27244 r=`${PWD_COMMAND}`; export r; \
27245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27246 $(HOST_EXPORTS) \
b813574b 27247 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27249 done; \
a90ef4bf
JM
27250 echo "Doing clean in gdb" ; \
27251 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27254 "RANLIB=$${RANLIB}" \
0c24b341 27255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27256 clean) \
2a4cbe27
NN
27257 || exit 1
27258
a90ef4bf 27259@endif gdb
2a4cbe27 27260
a90ef4bf
JM
27261.PHONY: maybe-distclean-gdb distclean-gdb
27262maybe-distclean-gdb:
27263@if gdb
27264maybe-distclean-gdb: distclean-gdb
2a4cbe27 27265
a90ef4bf
JM
27266distclean-gdb:
27267 @: $(MAKE); $(unstage)
27268 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27269 r=`${PWD_COMMAND}`; export r; \
27270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27271 $(HOST_EXPORTS) \
b813574b 27272 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27274 done; \
a90ef4bf
JM
27275 echo "Doing distclean in gdb" ; \
27276 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27279 "RANLIB=$${RANLIB}" \
0c24b341 27280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27281 distclean) \
2a4cbe27
NN
27282 || exit 1
27283
a90ef4bf 27284@endif gdb
2a4cbe27 27285
a90ef4bf
JM
27286.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
27287maybe-maintainer-clean-gdb:
27288@if gdb
27289maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 27290
a90ef4bf
JM
27291maintainer-clean-gdb:
27292 @: $(MAKE); $(unstage)
27293 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27294 r=`${PWD_COMMAND}`; export r; \
27295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27296 $(HOST_EXPORTS) \
b813574b 27297 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27299 done; \
a90ef4bf
JM
27300 echo "Doing maintainer-clean in gdb" ; \
27301 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27304 "RANLIB=$${RANLIB}" \
0c24b341 27305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27306 maintainer-clean) \
2a4cbe27
NN
27307 || exit 1
27308
a90ef4bf 27309@endif gdb
2a4cbe27 27310
2a4cbe27 27311
a7254363 27312
a90ef4bf
JM
27313.PHONY: configure-expect maybe-configure-expect
27314maybe-configure-expect:
4f0ef2d8 27315@if gcc-bootstrap
a90ef4bf 27316configure-expect: stage_current
4f0ef2d8 27317@endif gcc-bootstrap
a90ef4bf
JM
27318@if expect
27319maybe-configure-expect: configure-expect
27320configure-expect:
27321 @: $(MAKE); $(unstage)
c52c6897
PB
27322 @r=`${PWD_COMMAND}`; export r; \
27323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27324 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
27325 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
1f53ca9a 27326 $(HOST_EXPORTS) \
a90ef4bf
JM
27327 echo Configuring in $(HOST_SUBDIR)/expect; \
27328 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
27329 case $(srcdir) in \
27330 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27331 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
27332 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27333 esac; \
a90ef4bf
JM
27334 srcdiroption="--srcdir=$${topdir}/expect"; \
27335 libsrcdir="$$s/expect"; \
be01d343 27336 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
27337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27338 --target=${target_alias} $${srcdiroption} \
be01d343 27339 || exit 1
a90ef4bf 27340@endif expect
be01d343
PB
27341
27342
27343
be01d343 27344
8520c408 27345
a90ef4bf
JM
27346.PHONY: all-expect maybe-all-expect
27347maybe-all-expect:
27348@if gcc-bootstrap
27349all-expect: stage_current
27350@endif gcc-bootstrap
27351@if expect
27352TARGET-expect=all
27353maybe-all-expect: all-expect
27354all-expect: configure-expect
27355 @: $(MAKE); $(unstage)
c52c6897
PB
27356 @r=`${PWD_COMMAND}`; export r; \
27357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27358 $(HOST_EXPORTS) \
27359 (cd $(HOST_SUBDIR)/expect && \
b3676d82 27360 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27361 $(TARGET-expect))
27362@endif expect
8520c408 27363
a90ef4bf
JM
27364
27365
27366
27367.PHONY: check-expect maybe-check-expect
27368maybe-check-expect:
27369@if expect
27370maybe-check-expect: check-expect
27371
27372check-expect:
27373 @: $(MAKE); $(unstage)
c52c6897
PB
27374 @r=`${PWD_COMMAND}`; export r; \
27375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 27376 $(HOST_EXPORTS) \
a90ef4bf
JM
27377 (cd $(HOST_SUBDIR)/expect && \
27378 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 27379
a90ef4bf
JM
27380@endif expect
27381
27382.PHONY: install-expect maybe-install-expect
27383maybe-install-expect:
27384@if expect
27385maybe-install-expect: install-expect
27386
27387install-expect: installdirs
27388 @: $(MAKE); $(unstage)
c52c6897
PB
27389 @r=`${PWD_COMMAND}`; export r; \
27390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 27391 $(HOST_EXPORTS) \
a90ef4bf
JM
27392 (cd $(HOST_SUBDIR)/expect && \
27393 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 27394
a90ef4bf
JM
27395@endif expect
27396
27397.PHONY: install-strip-expect maybe-install-strip-expect
27398maybe-install-strip-expect:
27399@if expect
27400maybe-install-strip-expect: install-strip-expect
27401
27402install-strip-expect: installdirs
27403 @: $(MAKE); $(unstage)
c52c6897
PB
27404 @r=`${PWD_COMMAND}`; export r; \
27405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 27406 $(HOST_EXPORTS) \
a90ef4bf
JM
27407 (cd $(HOST_SUBDIR)/expect && \
27408 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 27409
a90ef4bf 27410@endif expect
be01d343 27411
a90ef4bf 27412# Other targets (info, dvi, pdf, etc.)
be01d343 27413
a90ef4bf
JM
27414.PHONY: maybe-info-expect info-expect
27415maybe-info-expect:
27416@if expect
27417maybe-info-expect: info-expect
be01d343 27418
a90ef4bf
JM
27419info-expect: \
27420 configure-expect
27421 @: $(MAKE); $(unstage)
27422 @[ -f ./expect/Makefile ] || exit 0; \
27423 r=`${PWD_COMMAND}`; export r; \
be01d343 27424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27425 $(HOST_EXPORTS) \
27426 for flag in $(EXTRA_HOST_FLAGS) ; do \
27427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27428 done; \
27429 echo "Doing info in expect" ; \
27430 (cd $(HOST_SUBDIR)/expect && \
27431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27433 "RANLIB=$${RANLIB}" \
27434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27435 info) \
27436 || exit 1
be01d343 27437
a90ef4bf 27438@endif expect
be01d343 27439
a90ef4bf
JM
27440.PHONY: maybe-dvi-expect dvi-expect
27441maybe-dvi-expect:
27442@if expect
27443maybe-dvi-expect: dvi-expect
be01d343 27444
a90ef4bf
JM
27445dvi-expect: \
27446 configure-expect
27447 @: $(MAKE); $(unstage)
27448 @[ -f ./expect/Makefile ] || exit 0; \
27449 r=`${PWD_COMMAND}`; export r; \
be01d343 27450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27451 $(HOST_EXPORTS) \
27452 for flag in $(EXTRA_HOST_FLAGS) ; do \
27453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27454 done; \
27455 echo "Doing dvi in expect" ; \
27456 (cd $(HOST_SUBDIR)/expect && \
27457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27459 "RANLIB=$${RANLIB}" \
27460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27461 dvi) \
27462 || exit 1
be01d343 27463
a90ef4bf 27464@endif expect
be01d343 27465
a90ef4bf
JM
27466.PHONY: maybe-pdf-expect pdf-expect
27467maybe-pdf-expect:
27468@if expect
27469maybe-pdf-expect: pdf-expect
be01d343 27470
a90ef4bf
JM
27471pdf-expect: \
27472 configure-expect
27473 @: $(MAKE); $(unstage)
27474 @[ -f ./expect/Makefile ] || exit 0; \
27475 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
27476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27477 $(HOST_EXPORTS) \
a90ef4bf
JM
27478 for flag in $(EXTRA_HOST_FLAGS) ; do \
27479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27480 done; \
27481 echo "Doing pdf in expect" ; \
27482 (cd $(HOST_SUBDIR)/expect && \
27483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27485 "RANLIB=$${RANLIB}" \
27486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27487 pdf) \
27488 || exit 1
be01d343 27489
a90ef4bf 27490@endif expect
be01d343 27491
a90ef4bf
JM
27492.PHONY: maybe-html-expect html-expect
27493maybe-html-expect:
27494@if expect
27495maybe-html-expect: html-expect
be01d343 27496
a90ef4bf
JM
27497html-expect: \
27498 configure-expect
27499 @: $(MAKE); $(unstage)
27500 @[ -f ./expect/Makefile ] || exit 0; \
27501 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
27502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27503 $(HOST_EXPORTS) \
a90ef4bf
JM
27504 for flag in $(EXTRA_HOST_FLAGS) ; do \
27505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27506 done; \
27507 echo "Doing html in expect" ; \
27508 (cd $(HOST_SUBDIR)/expect && \
27509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27511 "RANLIB=$${RANLIB}" \
27512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27513 html) \
27514 || exit 1
be01d343 27515
a90ef4bf 27516@endif expect
be01d343 27517
a90ef4bf
JM
27518.PHONY: maybe-TAGS-expect TAGS-expect
27519maybe-TAGS-expect:
27520@if expect
27521maybe-TAGS-expect: TAGS-expect
9b980aa1 27522
a90ef4bf
JM
27523TAGS-expect: \
27524 configure-expect
9b980aa1 27525 @: $(MAKE); $(unstage)
a90ef4bf 27526 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
27527 r=`${PWD_COMMAND}`; export r; \
27528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27529 $(HOST_EXPORTS) \
27530 for flag in $(EXTRA_HOST_FLAGS) ; do \
27531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27532 done; \
a90ef4bf
JM
27533 echo "Doing TAGS in expect" ; \
27534 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
27535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27537 "RANLIB=$${RANLIB}" \
0c24b341 27538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
27539 TAGS) \
27540 || exit 1
27541
a90ef4bf 27542@endif expect
be01d343 27543
a90ef4bf
JM
27544.PHONY: maybe-install-info-expect install-info-expect
27545maybe-install-info-expect:
27546@if expect
27547maybe-install-info-expect: install-info-expect
be01d343 27548
a90ef4bf
JM
27549install-info-expect: \
27550 configure-expect \
27551 info-expect
27552 @: $(MAKE); $(unstage)
27553 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
27554 r=`${PWD_COMMAND}`; export r; \
27555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27556 $(HOST_EXPORTS) \
27557 for flag in $(EXTRA_HOST_FLAGS) ; do \
27558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27559 done; \
a90ef4bf
JM
27560 echo "Doing install-info in expect" ; \
27561 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
27562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27564 "RANLIB=$${RANLIB}" \
0c24b341 27565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
27566 install-info) \
27567 || exit 1
27568
a90ef4bf 27569@endif expect
be01d343 27570
a90ef4bf
JM
27571.PHONY: maybe-install-pdf-expect install-pdf-expect
27572maybe-install-pdf-expect:
27573@if expect
27574maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 27575
a90ef4bf
JM
27576install-pdf-expect: \
27577 configure-expect \
27578 pdf-expect
27579 @: $(MAKE); $(unstage)
27580 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
27581 r=`${PWD_COMMAND}`; export r; \
27582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27583 $(HOST_EXPORTS) \
27584 for flag in $(EXTRA_HOST_FLAGS) ; do \
27585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27586 done; \
a90ef4bf
JM
27587 echo "Doing install-pdf in expect" ; \
27588 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
27589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27591 "RANLIB=$${RANLIB}" \
0c24b341 27592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27593 install-pdf) \
27594 || exit 1
27595
a90ef4bf 27596@endif expect
a3ca38d2 27597
a90ef4bf
JM
27598.PHONY: maybe-install-html-expect install-html-expect
27599maybe-install-html-expect:
27600@if expect
27601maybe-install-html-expect: install-html-expect
108a6f8e 27602
a90ef4bf
JM
27603install-html-expect: \
27604 configure-expect \
27605 html-expect
27606 @: $(MAKE); $(unstage)
27607 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
27608 r=`${PWD_COMMAND}`; export r; \
27609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27610 $(HOST_EXPORTS) \
27611 for flag in $(EXTRA_HOST_FLAGS) ; do \
27612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27613 done; \
a90ef4bf
JM
27614 echo "Doing install-html in expect" ; \
27615 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
27616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27618 "RANLIB=$${RANLIB}" \
0c24b341 27619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27620 install-html) \
27621 || exit 1
27622
a90ef4bf 27623@endif expect
108a6f8e 27624
a90ef4bf
JM
27625.PHONY: maybe-installcheck-expect installcheck-expect
27626maybe-installcheck-expect:
27627@if expect
27628maybe-installcheck-expect: installcheck-expect
be01d343 27629
a90ef4bf
JM
27630installcheck-expect: \
27631 configure-expect
27632 @: $(MAKE); $(unstage)
27633 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
27634 r=`${PWD_COMMAND}`; export r; \
27635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27636 $(HOST_EXPORTS) \
27637 for flag in $(EXTRA_HOST_FLAGS) ; do \
27638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27639 done; \
a90ef4bf
JM
27640 echo "Doing installcheck in expect" ; \
27641 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
27642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27644 "RANLIB=$${RANLIB}" \
0c24b341 27645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
27646 installcheck) \
27647 || exit 1
27648
a90ef4bf 27649@endif expect
be01d343 27650
a90ef4bf
JM
27651.PHONY: maybe-mostlyclean-expect mostlyclean-expect
27652maybe-mostlyclean-expect:
27653@if expect
27654maybe-mostlyclean-expect: mostlyclean-expect
be01d343 27655
a90ef4bf
JM
27656mostlyclean-expect:
27657 @: $(MAKE); $(unstage)
27658 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
27659 r=`${PWD_COMMAND}`; export r; \
27660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27661 $(HOST_EXPORTS) \
27662 for flag in $(EXTRA_HOST_FLAGS) ; do \
27663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27664 done; \
a90ef4bf
JM
27665 echo "Doing mostlyclean in expect" ; \
27666 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
27667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27669 "RANLIB=$${RANLIB}" \
0c24b341 27670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
27671 mostlyclean) \
27672 || exit 1
27673
a90ef4bf 27674@endif expect
be01d343 27675
a90ef4bf
JM
27676.PHONY: maybe-clean-expect clean-expect
27677maybe-clean-expect:
27678@if expect
27679maybe-clean-expect: clean-expect
be01d343 27680
a90ef4bf
JM
27681clean-expect:
27682 @: $(MAKE); $(unstage)
27683 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
27684 r=`${PWD_COMMAND}`; export r; \
27685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27686 $(HOST_EXPORTS) \
27687 for flag in $(EXTRA_HOST_FLAGS) ; do \
27688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27689 done; \
a90ef4bf
JM
27690 echo "Doing clean in expect" ; \
27691 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
27692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27694 "RANLIB=$${RANLIB}" \
0c24b341 27695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
27696 clean) \
27697 || exit 1
27698
a90ef4bf 27699@endif expect
be01d343 27700
a90ef4bf
JM
27701.PHONY: maybe-distclean-expect distclean-expect
27702maybe-distclean-expect:
27703@if expect
27704maybe-distclean-expect: distclean-expect
be01d343 27705
a90ef4bf
JM
27706distclean-expect:
27707 @: $(MAKE); $(unstage)
27708 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
27709 r=`${PWD_COMMAND}`; export r; \
27710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27711 $(HOST_EXPORTS) \
27712 for flag in $(EXTRA_HOST_FLAGS) ; do \
27713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27714 done; \
a90ef4bf
JM
27715 echo "Doing distclean in expect" ; \
27716 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
27717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27719 "RANLIB=$${RANLIB}" \
0c24b341 27720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
27721 distclean) \
27722 || exit 1
27723
a90ef4bf 27724@endif expect
be01d343 27725
a90ef4bf
JM
27726.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
27727maybe-maintainer-clean-expect:
27728@if expect
27729maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 27730
a90ef4bf
JM
27731maintainer-clean-expect:
27732 @: $(MAKE); $(unstage)
27733 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
27734 r=`${PWD_COMMAND}`; export r; \
27735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27736 $(HOST_EXPORTS) \
27737 for flag in $(EXTRA_HOST_FLAGS) ; do \
27738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27739 done; \
a90ef4bf
JM
27740 echo "Doing maintainer-clean in expect" ; \
27741 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
27742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27744 "RANLIB=$${RANLIB}" \
0c24b341 27745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
27746 maintainer-clean) \
27747 || exit 1
27748
a90ef4bf 27749@endif expect
be01d343
PB
27750
27751
27752
a90ef4bf
JM
27753.PHONY: configure-guile maybe-configure-guile
27754maybe-configure-guile:
4f0ef2d8 27755@if gcc-bootstrap
a90ef4bf 27756configure-guile: stage_current
4f0ef2d8 27757@endif gcc-bootstrap
a90ef4bf
JM
27758@if guile
27759maybe-configure-guile: configure-guile
27760configure-guile:
0aed8855 27761 @: $(MAKE); $(unstage)
c52c6897 27762 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 27763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27764 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
27765 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
1f53ca9a 27766 $(HOST_EXPORTS) \
a90ef4bf
JM
27767 echo Configuring in $(HOST_SUBDIR)/guile; \
27768 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 27769 case $(srcdir) in \
b00612cc 27770 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27771 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 27772 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 27773 esac; \
a90ef4bf
JM
27774 srcdiroption="--srcdir=$${topdir}/guile"; \
27775 libsrcdir="$$s/guile"; \
4b1cb4fe 27776 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
27777 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27778 --target=${target_alias} $${srcdiroption} \
4b1cb4fe 27779 || exit 1
a90ef4bf 27780@endif guile
4b1cb4fe 27781
a7254363
PB
27782
27783
d545f33b
PB
27784
27785
a90ef4bf
JM
27786.PHONY: all-guile maybe-all-guile
27787maybe-all-guile:
4f0ef2d8 27788@if gcc-bootstrap
a90ef4bf 27789all-guile: stage_current
4f0ef2d8 27790@endif gcc-bootstrap
a90ef4bf
JM
27791@if guile
27792TARGET-guile=all
27793maybe-all-guile: all-guile
27794all-guile: configure-guile
27795 @: $(MAKE); $(unstage)
4b1cb4fe
DD
27796 @r=`${PWD_COMMAND}`; export r; \
27797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27798 $(HOST_EXPORTS) \
a90ef4bf 27799 (cd $(HOST_SUBDIR)/guile && \
b3676d82 27800 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27801 $(TARGET-guile))
27802@endif guile
4b1cb4fe 27803
a7254363 27804
d545f33b
PB
27805
27806
a90ef4bf
JM
27807.PHONY: check-guile maybe-check-guile
27808maybe-check-guile:
27809@if guile
27810maybe-check-guile: check-guile
4b1cb4fe 27811
a90ef4bf 27812check-guile:
0aed8855 27813 @: $(MAKE); $(unstage)
4b1cb4fe
DD
27814 @r=`${PWD_COMMAND}`; export r; \
27815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27816 $(HOST_EXPORTS) \
a90ef4bf 27817 (cd $(HOST_SUBDIR)/guile && \
b00612cc 27818 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 27819
a90ef4bf 27820@endif guile
4b1cb4fe 27821
a90ef4bf
JM
27822.PHONY: install-guile maybe-install-guile
27823maybe-install-guile:
27824@if guile
27825maybe-install-guile: install-guile
4b1cb4fe 27826
a90ef4bf 27827install-guile: installdirs
0aed8855 27828 @: $(MAKE); $(unstage)
b813574b
PB
27829 @r=`${PWD_COMMAND}`; export r; \
27830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 27831 $(HOST_EXPORTS) \
a90ef4bf 27832 (cd $(HOST_SUBDIR)/guile && \
2da12f12 27833 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 27834
a90ef4bf 27835@endif guile
4b1cb4fe 27836
a90ef4bf
JM
27837.PHONY: install-strip-guile maybe-install-strip-guile
27838maybe-install-strip-guile:
27839@if guile
27840maybe-install-strip-guile: install-strip-guile
9b980aa1 27841
a90ef4bf 27842install-strip-guile: installdirs
9b980aa1
RW
27843 @: $(MAKE); $(unstage)
27844 @r=`${PWD_COMMAND}`; export r; \
27845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27846 $(HOST_EXPORTS) \
a90ef4bf 27847 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
27848 $(MAKE) $(FLAGS_TO_PASS) install-strip)
27849
a90ef4bf 27850@endif guile
9b980aa1 27851
56a8fe78 27852# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 27853
a90ef4bf
JM
27854.PHONY: maybe-info-guile info-guile
27855maybe-info-guile:
27856@if guile
27857maybe-info-guile: info-guile
4b1cb4fe 27858
a90ef4bf
JM
27859info-guile: \
27860 configure-guile
0aed8855 27861 @: $(MAKE); $(unstage)
a90ef4bf 27862 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
27863 r=`${PWD_COMMAND}`; export r; \
27864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27865 $(HOST_EXPORTS) \
b813574b 27866 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
27867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27868 done; \
a90ef4bf
JM
27869 echo "Doing info in guile" ; \
27870 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
27871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27873 "RANLIB=$${RANLIB}" \
0c24b341 27874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27875 info) \
4b1cb4fe
DD
27876 || exit 1
27877
a90ef4bf 27878@endif guile
4b1cb4fe 27879
a90ef4bf
JM
27880.PHONY: maybe-dvi-guile dvi-guile
27881maybe-dvi-guile:
27882@if guile
27883maybe-dvi-guile: dvi-guile
4b1cb4fe 27884
a90ef4bf
JM
27885dvi-guile: \
27886 configure-guile
0aed8855 27887 @: $(MAKE); $(unstage)
a90ef4bf 27888 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
27889 r=`${PWD_COMMAND}`; export r; \
27890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27891 $(HOST_EXPORTS) \
b813574b 27892 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
27893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27894 done; \
a90ef4bf
JM
27895 echo "Doing dvi in guile" ; \
27896 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
27897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27899 "RANLIB=$${RANLIB}" \
0c24b341 27900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27901 dvi) \
4b1cb4fe
DD
27902 || exit 1
27903
a90ef4bf 27904@endif guile
4b1cb4fe 27905
a90ef4bf
JM
27906.PHONY: maybe-pdf-guile pdf-guile
27907maybe-pdf-guile:
27908@if guile
27909maybe-pdf-guile: pdf-guile
56a8fe78 27910
a90ef4bf
JM
27911pdf-guile: \
27912 configure-guile
56a8fe78 27913 @: $(MAKE); $(unstage)
a90ef4bf 27914 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
27915 r=`${PWD_COMMAND}`; export r; \
27916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27917 $(HOST_EXPORTS) \
27918 for flag in $(EXTRA_HOST_FLAGS) ; do \
27919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27920 done; \
a90ef4bf
JM
27921 echo "Doing pdf in guile" ; \
27922 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
27923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27925 "RANLIB=$${RANLIB}" \
0c24b341 27926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27927 pdf) \
27928 || exit 1
27929
a90ef4bf 27930@endif guile
56a8fe78 27931
a90ef4bf
JM
27932.PHONY: maybe-html-guile html-guile
27933maybe-html-guile:
27934@if guile
27935maybe-html-guile: html-guile
6d389afc 27936
a90ef4bf
JM
27937html-guile: \
27938 configure-guile
0aed8855 27939 @: $(MAKE); $(unstage)
a90ef4bf 27940 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
27941 r=`${PWD_COMMAND}`; export r; \
27942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27943 $(HOST_EXPORTS) \
27944 for flag in $(EXTRA_HOST_FLAGS) ; do \
27945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27946 done; \
a90ef4bf
JM
27947 echo "Doing html in guile" ; \
27948 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
27949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27951 "RANLIB=$${RANLIB}" \
0c24b341 27952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27953 html) \
27954 || exit 1
27955
a90ef4bf 27956@endif guile
6d389afc 27957
a90ef4bf
JM
27958.PHONY: maybe-TAGS-guile TAGS-guile
27959maybe-TAGS-guile:
27960@if guile
27961maybe-TAGS-guile: TAGS-guile
4b1cb4fe 27962
a90ef4bf
JM
27963TAGS-guile: \
27964 configure-guile
0aed8855 27965 @: $(MAKE); $(unstage)
a90ef4bf 27966 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
27967 r=`${PWD_COMMAND}`; export r; \
27968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27969 $(HOST_EXPORTS) \
b813574b 27970 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
27971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27972 done; \
a90ef4bf
JM
27973 echo "Doing TAGS in guile" ; \
27974 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
27975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27977 "RANLIB=$${RANLIB}" \
0c24b341 27978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27979 TAGS) \
4b1cb4fe
DD
27980 || exit 1
27981
a90ef4bf 27982@endif guile
4b1cb4fe 27983
a90ef4bf
JM
27984.PHONY: maybe-install-info-guile install-info-guile
27985maybe-install-info-guile:
27986@if guile
27987maybe-install-info-guile: install-info-guile
4b1cb4fe 27988
a90ef4bf
JM
27989install-info-guile: \
27990 configure-guile \
27991 info-guile
0aed8855 27992 @: $(MAKE); $(unstage)
a90ef4bf 27993 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
27994 r=`${PWD_COMMAND}`; export r; \
27995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27996 $(HOST_EXPORTS) \
b813574b 27997 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
27998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27999 done; \
a90ef4bf
JM
28000 echo "Doing install-info in guile" ; \
28001 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28004 "RANLIB=$${RANLIB}" \
0c24b341 28005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28006 install-info) \
4b1cb4fe
DD
28007 || exit 1
28008
a90ef4bf 28009@endif guile
4b1cb4fe 28010
a90ef4bf
JM
28011.PHONY: maybe-install-pdf-guile install-pdf-guile
28012maybe-install-pdf-guile:
28013@if guile
28014maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 28015
a90ef4bf
JM
28016install-pdf-guile: \
28017 configure-guile \
28018 pdf-guile
a3ca38d2 28019 @: $(MAKE); $(unstage)
a90ef4bf 28020 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
28021 r=`${PWD_COMMAND}`; export r; \
28022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28023 $(HOST_EXPORTS) \
28024 for flag in $(EXTRA_HOST_FLAGS) ; do \
28025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28026 done; \
a90ef4bf
JM
28027 echo "Doing install-pdf in guile" ; \
28028 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
28029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28031 "RANLIB=$${RANLIB}" \
0c24b341 28032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28033 install-pdf) \
28034 || exit 1
28035
a90ef4bf 28036@endif guile
a3ca38d2 28037
a90ef4bf
JM
28038.PHONY: maybe-install-html-guile install-html-guile
28039maybe-install-html-guile:
28040@if guile
28041maybe-install-html-guile: install-html-guile
108a6f8e 28042
a90ef4bf
JM
28043install-html-guile: \
28044 configure-guile \
28045 html-guile
108a6f8e 28046 @: $(MAKE); $(unstage)
a90ef4bf 28047 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
28048 r=`${PWD_COMMAND}`; export r; \
28049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28050 $(HOST_EXPORTS) \
28051 for flag in $(EXTRA_HOST_FLAGS) ; do \
28052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28053 done; \
a90ef4bf
JM
28054 echo "Doing install-html in guile" ; \
28055 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
28056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28058 "RANLIB=$${RANLIB}" \
0c24b341 28059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28060 install-html) \
28061 || exit 1
28062
a90ef4bf 28063@endif guile
108a6f8e 28064
a90ef4bf
JM
28065.PHONY: maybe-installcheck-guile installcheck-guile
28066maybe-installcheck-guile:
28067@if guile
28068maybe-installcheck-guile: installcheck-guile
4b1cb4fe 28069
a90ef4bf
JM
28070installcheck-guile: \
28071 configure-guile
0aed8855 28072 @: $(MAKE); $(unstage)
a90ef4bf 28073 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28074 r=`${PWD_COMMAND}`; export r; \
28075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28076 $(HOST_EXPORTS) \
b813574b 28077 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28079 done; \
a90ef4bf
JM
28080 echo "Doing installcheck in guile" ; \
28081 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28084 "RANLIB=$${RANLIB}" \
0c24b341 28085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28086 installcheck) \
4b1cb4fe
DD
28087 || exit 1
28088
a90ef4bf 28089@endif guile
4b1cb4fe 28090
a90ef4bf
JM
28091.PHONY: maybe-mostlyclean-guile mostlyclean-guile
28092maybe-mostlyclean-guile:
28093@if guile
28094maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 28095
a90ef4bf 28096mostlyclean-guile:
0aed8855 28097 @: $(MAKE); $(unstage)
a90ef4bf 28098 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28099 r=`${PWD_COMMAND}`; export r; \
28100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28101 $(HOST_EXPORTS) \
b813574b 28102 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28104 done; \
a90ef4bf
JM
28105 echo "Doing mostlyclean in guile" ; \
28106 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28109 "RANLIB=$${RANLIB}" \
0c24b341 28110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28111 mostlyclean) \
4b1cb4fe
DD
28112 || exit 1
28113
a90ef4bf 28114@endif guile
4b1cb4fe 28115
a90ef4bf
JM
28116.PHONY: maybe-clean-guile clean-guile
28117maybe-clean-guile:
28118@if guile
28119maybe-clean-guile: clean-guile
4b1cb4fe 28120
a90ef4bf 28121clean-guile:
0aed8855 28122 @: $(MAKE); $(unstage)
a90ef4bf 28123 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28124 r=`${PWD_COMMAND}`; export r; \
28125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28126 $(HOST_EXPORTS) \
b813574b 28127 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28129 done; \
a90ef4bf
JM
28130 echo "Doing clean in guile" ; \
28131 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28134 "RANLIB=$${RANLIB}" \
0c24b341 28135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28136 clean) \
4b1cb4fe
DD
28137 || exit 1
28138
a90ef4bf 28139@endif guile
4b1cb4fe 28140
a90ef4bf
JM
28141.PHONY: maybe-distclean-guile distclean-guile
28142maybe-distclean-guile:
28143@if guile
28144maybe-distclean-guile: distclean-guile
4b1cb4fe 28145
a90ef4bf 28146distclean-guile:
0aed8855 28147 @: $(MAKE); $(unstage)
a90ef4bf 28148 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28149 r=`${PWD_COMMAND}`; export r; \
28150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28151 $(HOST_EXPORTS) \
b813574b 28152 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28154 done; \
a90ef4bf
JM
28155 echo "Doing distclean in guile" ; \
28156 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28159 "RANLIB=$${RANLIB}" \
0c24b341 28160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28161 distclean) \
4b1cb4fe
DD
28162 || exit 1
28163
a90ef4bf 28164@endif guile
4b1cb4fe 28165
a90ef4bf
JM
28166.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
28167maybe-maintainer-clean-guile:
28168@if guile
28169maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 28170
a90ef4bf 28171maintainer-clean-guile:
0aed8855 28172 @: $(MAKE); $(unstage)
a90ef4bf 28173 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28174 r=`${PWD_COMMAND}`; export r; \
28175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28176 $(HOST_EXPORTS) \
b813574b 28177 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28179 done; \
a90ef4bf
JM
28180 echo "Doing maintainer-clean in guile" ; \
28181 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28184 "RANLIB=$${RANLIB}" \
0c24b341 28185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28186 maintainer-clean) \
4b1cb4fe
DD
28187 || exit 1
28188
a90ef4bf 28189@endif guile
4b1cb4fe
DD
28190
28191
a7254363 28192
a90ef4bf
JM
28193.PHONY: configure-tk maybe-configure-tk
28194maybe-configure-tk:
4f0ef2d8 28195@if gcc-bootstrap
a90ef4bf 28196configure-tk: stage_current
4f0ef2d8 28197@endif gcc-bootstrap
a90ef4bf
JM
28198@if tk
28199maybe-configure-tk: configure-tk
28200configure-tk:
28201 @: $(MAKE); $(unstage)
c52c6897
PB
28202 @r=`${PWD_COMMAND}`; export r; \
28203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28204 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
28205 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
1f53ca9a 28206 $(HOST_EXPORTS) \
a90ef4bf
JM
28207 echo Configuring in $(HOST_SUBDIR)/tk; \
28208 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 28209 case $(srcdir) in \
b00612cc 28210 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28211 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 28212 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 28213 esac; \
a90ef4bf
JM
28214 srcdiroption="--srcdir=$${topdir}/tk"; \
28215 libsrcdir="$$s/tk"; \
4fa63067 28216 $(SHELL) $${libsrcdir}/configure \
4b900473 28217 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 28218 --target=${target_alias} $${srcdiroption} \
2a4cbe27 28219 || exit 1
a90ef4bf 28220@endif tk
2a4cbe27 28221
a7254363
PB
28222
28223
a90ef4bf
JM
28224
28225
28226.PHONY: all-tk maybe-all-tk
28227maybe-all-tk:
28228@if gcc-bootstrap
28229all-tk: stage_current
28230@endif gcc-bootstrap
28231@if tk
28232TARGET-tk=all
28233maybe-all-tk: all-tk
28234all-tk: configure-tk
28235 @: $(MAKE); $(unstage)
c52c6897
PB
28236 @r=`${PWD_COMMAND}`; export r; \
28237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28238 $(HOST_EXPORTS) \
28239 (cd $(HOST_SUBDIR)/tk && \
b3676d82 28240 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28241 $(TARGET-tk))
28242@endif tk
d545f33b 28243
a90ef4bf
JM
28244
28245
28246
28247.PHONY: check-tk maybe-check-tk
28248maybe-check-tk:
28249@if tk
28250maybe-check-tk: check-tk
28251
28252check-tk:
28253 @: $(MAKE); $(unstage)
c52c6897
PB
28254 @r=`${PWD_COMMAND}`; export r; \
28255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28256 $(HOST_EXPORTS) \
a90ef4bf
JM
28257 (cd $(HOST_SUBDIR)/tk && \
28258 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 28259
a90ef4bf
JM
28260@endif tk
28261
28262.PHONY: install-tk maybe-install-tk
28263maybe-install-tk:
28264@if tk
28265maybe-install-tk: install-tk
28266
28267install-tk: installdirs
28268 @: $(MAKE); $(unstage)
c52c6897
PB
28269 @r=`${PWD_COMMAND}`; export r; \
28270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28271 $(HOST_EXPORTS) \
a90ef4bf
JM
28272 (cd $(HOST_SUBDIR)/tk && \
28273 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 28274
a90ef4bf
JM
28275@endif tk
28276
28277.PHONY: install-strip-tk maybe-install-strip-tk
28278maybe-install-strip-tk:
28279@if tk
28280maybe-install-strip-tk: install-strip-tk
28281
28282install-strip-tk: installdirs
28283 @: $(MAKE); $(unstage)
c52c6897
PB
28284 @r=`${PWD_COMMAND}`; export r; \
28285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28286 $(HOST_EXPORTS) \
a90ef4bf
JM
28287 (cd $(HOST_SUBDIR)/tk && \
28288 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28289
a90ef4bf 28290@endif tk
9b980aa1 28291
56a8fe78 28292# Other targets (info, dvi, pdf, etc.)
2a4cbe27 28293
a90ef4bf
JM
28294.PHONY: maybe-info-tk info-tk
28295maybe-info-tk:
28296@if tk
28297maybe-info-tk: info-tk
4fa63067 28298
a90ef4bf
JM
28299info-tk: \
28300 configure-tk
28301 @: $(MAKE); $(unstage)
28302 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28303 r=`${PWD_COMMAND}`; export r; \
28304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28305 $(HOST_EXPORTS) \
b813574b 28306 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28308 done; \
a90ef4bf
JM
28309 echo "Doing info in tk" ; \
28310 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
28311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28313 "RANLIB=$${RANLIB}" \
0c24b341 28314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
28315 info) \
28316 || exit 1
28317
a90ef4bf 28318@endif tk
6d389afc 28319
a90ef4bf
JM
28320.PHONY: maybe-dvi-tk dvi-tk
28321maybe-dvi-tk:
28322@if tk
28323maybe-dvi-tk: dvi-tk
6d389afc 28324
a90ef4bf
JM
28325dvi-tk: \
28326 configure-tk
28327 @: $(MAKE); $(unstage)
28328 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
28329 r=`${PWD_COMMAND}`; export r; \
28330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28331 $(HOST_EXPORTS) \
28332 for flag in $(EXTRA_HOST_FLAGS) ; do \
28333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28334 done; \
a90ef4bf
JM
28335 echo "Doing dvi in tk" ; \
28336 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28339 "RANLIB=$${RANLIB}" \
0c24b341 28340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 28341 dvi) \
2a4cbe27
NN
28342 || exit 1
28343
a90ef4bf 28344@endif tk
2a4cbe27 28345
a90ef4bf
JM
28346.PHONY: maybe-pdf-tk pdf-tk
28347maybe-pdf-tk:
28348@if tk
28349maybe-pdf-tk: pdf-tk
56a8fe78 28350
a90ef4bf
JM
28351pdf-tk: \
28352 configure-tk
28353 @: $(MAKE); $(unstage)
28354 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
28355 r=`${PWD_COMMAND}`; export r; \
28356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28357 $(HOST_EXPORTS) \
28358 for flag in $(EXTRA_HOST_FLAGS) ; do \
28359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28360 done; \
a90ef4bf
JM
28361 echo "Doing pdf in tk" ; \
28362 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
28363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28365 "RANLIB=$${RANLIB}" \
0c24b341 28366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
28367 pdf) \
28368 || exit 1
28369
a90ef4bf 28370@endif tk
56a8fe78 28371
a90ef4bf
JM
28372.PHONY: maybe-html-tk html-tk
28373maybe-html-tk:
28374@if tk
28375maybe-html-tk: html-tk
2a4cbe27 28376
a90ef4bf
JM
28377html-tk: \
28378 configure-tk
28379 @: $(MAKE); $(unstage)
28380 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28381 r=`${PWD_COMMAND}`; export r; \
28382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28383 $(HOST_EXPORTS) \
b813574b 28384 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28386 done; \
a90ef4bf
JM
28387 echo "Doing html in tk" ; \
28388 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28391 "RANLIB=$${RANLIB}" \
0c24b341 28392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 28393 html) \
2a4cbe27
NN
28394 || exit 1
28395
a90ef4bf 28396@endif tk
2a4cbe27 28397
a90ef4bf
JM
28398.PHONY: maybe-TAGS-tk TAGS-tk
28399maybe-TAGS-tk:
28400@if tk
28401maybe-TAGS-tk: TAGS-tk
2a4cbe27 28402
a90ef4bf
JM
28403TAGS-tk: \
28404 configure-tk
28405 @: $(MAKE); $(unstage)
28406 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28407 r=`${PWD_COMMAND}`; export r; \
28408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28409 $(HOST_EXPORTS) \
b813574b 28410 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28412 done; \
a90ef4bf
JM
28413 echo "Doing TAGS in tk" ; \
28414 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28417 "RANLIB=$${RANLIB}" \
0c24b341 28418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28419 TAGS) \
2a4cbe27
NN
28420 || exit 1
28421
a90ef4bf 28422@endif tk
2a4cbe27 28423
a90ef4bf
JM
28424.PHONY: maybe-install-info-tk install-info-tk
28425maybe-install-info-tk:
28426@if tk
28427maybe-install-info-tk: install-info-tk
2a4cbe27 28428
a90ef4bf
JM
28429install-info-tk: \
28430 configure-tk \
28431 info-tk
28432 @: $(MAKE); $(unstage)
28433 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28434 r=`${PWD_COMMAND}`; export r; \
28435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28436 $(HOST_EXPORTS) \
b813574b 28437 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28439 done; \
a90ef4bf
JM
28440 echo "Doing install-info in tk" ; \
28441 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28444 "RANLIB=$${RANLIB}" \
0c24b341 28445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28446 install-info) \
2a4cbe27
NN
28447 || exit 1
28448
a90ef4bf 28449@endif tk
2a4cbe27 28450
a90ef4bf
JM
28451.PHONY: maybe-install-pdf-tk install-pdf-tk
28452maybe-install-pdf-tk:
28453@if tk
28454maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 28455
a90ef4bf
JM
28456install-pdf-tk: \
28457 configure-tk \
28458 pdf-tk
28459 @: $(MAKE); $(unstage)
28460 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
28461 r=`${PWD_COMMAND}`; export r; \
28462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28463 $(HOST_EXPORTS) \
28464 for flag in $(EXTRA_HOST_FLAGS) ; do \
28465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28466 done; \
a90ef4bf
JM
28467 echo "Doing install-pdf in tk" ; \
28468 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
28469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28471 "RANLIB=$${RANLIB}" \
0c24b341 28472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28473 install-pdf) \
28474 || exit 1
28475
a90ef4bf 28476@endif tk
a3ca38d2 28477
a90ef4bf
JM
28478.PHONY: maybe-install-html-tk install-html-tk
28479maybe-install-html-tk:
28480@if tk
28481maybe-install-html-tk: install-html-tk
108a6f8e 28482
a90ef4bf
JM
28483install-html-tk: \
28484 configure-tk \
28485 html-tk
28486 @: $(MAKE); $(unstage)
28487 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
28488 r=`${PWD_COMMAND}`; export r; \
28489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28490 $(HOST_EXPORTS) \
28491 for flag in $(EXTRA_HOST_FLAGS) ; do \
28492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28493 done; \
a90ef4bf
JM
28494 echo "Doing install-html in tk" ; \
28495 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
28496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28498 "RANLIB=$${RANLIB}" \
0c24b341 28499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28500 install-html) \
28501 || exit 1
28502
a90ef4bf 28503@endif tk
108a6f8e 28504
a90ef4bf
JM
28505.PHONY: maybe-installcheck-tk installcheck-tk
28506maybe-installcheck-tk:
28507@if tk
28508maybe-installcheck-tk: installcheck-tk
2a4cbe27 28509
a90ef4bf
JM
28510installcheck-tk: \
28511 configure-tk
28512 @: $(MAKE); $(unstage)
28513 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28514 r=`${PWD_COMMAND}`; export r; \
28515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28516 $(HOST_EXPORTS) \
b813574b 28517 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28519 done; \
a90ef4bf
JM
28520 echo "Doing installcheck in tk" ; \
28521 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28524 "RANLIB=$${RANLIB}" \
0c24b341 28525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28526 installcheck) \
2a4cbe27
NN
28527 || exit 1
28528
a90ef4bf 28529@endif tk
2a4cbe27 28530
a90ef4bf
JM
28531.PHONY: maybe-mostlyclean-tk mostlyclean-tk
28532maybe-mostlyclean-tk:
28533@if tk
28534maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 28535
a90ef4bf
JM
28536mostlyclean-tk:
28537 @: $(MAKE); $(unstage)
28538 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28539 r=`${PWD_COMMAND}`; export r; \
28540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28541 $(HOST_EXPORTS) \
b813574b 28542 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28544 done; \
a90ef4bf
JM
28545 echo "Doing mostlyclean in tk" ; \
28546 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28549 "RANLIB=$${RANLIB}" \
0c24b341 28550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28551 mostlyclean) \
2a4cbe27
NN
28552 || exit 1
28553
a90ef4bf 28554@endif tk
2a4cbe27 28555
a90ef4bf
JM
28556.PHONY: maybe-clean-tk clean-tk
28557maybe-clean-tk:
28558@if tk
28559maybe-clean-tk: clean-tk
2a4cbe27 28560
a90ef4bf
JM
28561clean-tk:
28562 @: $(MAKE); $(unstage)
28563 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28564 r=`${PWD_COMMAND}`; export r; \
28565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28566 $(HOST_EXPORTS) \
b813574b 28567 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28569 done; \
a90ef4bf
JM
28570 echo "Doing clean in tk" ; \
28571 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28574 "RANLIB=$${RANLIB}" \
0c24b341 28575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28576 clean) \
2a4cbe27
NN
28577 || exit 1
28578
a90ef4bf 28579@endif tk
2a4cbe27 28580
a90ef4bf
JM
28581.PHONY: maybe-distclean-tk distclean-tk
28582maybe-distclean-tk:
28583@if tk
28584maybe-distclean-tk: distclean-tk
2a4cbe27 28585
a90ef4bf
JM
28586distclean-tk:
28587 @: $(MAKE); $(unstage)
28588 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28589 r=`${PWD_COMMAND}`; export r; \
28590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28591 $(HOST_EXPORTS) \
b813574b 28592 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28594 done; \
a90ef4bf
JM
28595 echo "Doing distclean in tk" ; \
28596 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28599 "RANLIB=$${RANLIB}" \
0c24b341 28600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28601 distclean) \
2a4cbe27
NN
28602 || exit 1
28603
a90ef4bf 28604@endif tk
2a4cbe27 28605
a90ef4bf
JM
28606.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
28607maybe-maintainer-clean-tk:
28608@if tk
28609maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 28610
a90ef4bf
JM
28611maintainer-clean-tk:
28612 @: $(MAKE); $(unstage)
28613 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28614 r=`${PWD_COMMAND}`; export r; \
28615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28616 $(HOST_EXPORTS) \
b813574b 28617 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28619 done; \
a90ef4bf
JM
28620 echo "Doing maintainer-clean in tk" ; \
28621 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
28622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28624 "RANLIB=$${RANLIB}" \
0c24b341 28625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28626 maintainer-clean) \
2a4cbe27
NN
28627 || exit 1
28628
a90ef4bf 28629@endif tk
2a4cbe27 28630
2a4cbe27 28631
a7254363 28632
a90ef4bf
JM
28633.PHONY: configure-libtermcap maybe-configure-libtermcap
28634maybe-configure-libtermcap:
dc448a7b 28635@if gcc-bootstrap
a90ef4bf 28636configure-libtermcap: stage_current
dc448a7b 28637@endif gcc-bootstrap
a90ef4bf
JM
28638@if libtermcap
28639maybe-configure-libtermcap: configure-libtermcap
28640configure-libtermcap:
dc448a7b
TT
28641 @: $(MAKE); $(unstage)
28642 @r=`${PWD_COMMAND}`; export r; \
28643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28644 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
28645 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
1f53ca9a 28646 $(HOST_EXPORTS) \
a90ef4bf
JM
28647 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
28648 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
28649 case $(srcdir) in \
28650 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28651 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
28652 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28653 esac; \
a90ef4bf
JM
28654 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
28655 libsrcdir="$$s/libtermcap"; \
dc448a7b
TT
28656 $(SHELL) $${libsrcdir}/configure \
28657 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 28658 --target=${target_alias} $${srcdiroption} \
dc448a7b 28659 || exit 1
a90ef4bf 28660@endif libtermcap
dc448a7b
TT
28661
28662
28663
28664
28665
a90ef4bf
JM
28666.PHONY: all-libtermcap maybe-all-libtermcap
28667maybe-all-libtermcap:
dc448a7b 28668@if gcc-bootstrap
a90ef4bf 28669all-libtermcap: stage_current
dc448a7b 28670@endif gcc-bootstrap
a90ef4bf
JM
28671@if libtermcap
28672TARGET-libtermcap=all
28673maybe-all-libtermcap: all-libtermcap
28674all-libtermcap: configure-libtermcap
dc448a7b
TT
28675 @: $(MAKE); $(unstage)
28676 @r=`${PWD_COMMAND}`; export r; \
28677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 28678 $(HOST_EXPORTS) \
a90ef4bf 28679 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 28680 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28681 $(TARGET-libtermcap))
28682@endif libtermcap
dc448a7b
TT
28683
28684
28685
28686
a90ef4bf
JM
28687.PHONY: check-libtermcap maybe-check-libtermcap
28688maybe-check-libtermcap:
28689@if libtermcap
28690maybe-check-libtermcap: check-libtermcap
dc448a7b 28691
a90ef4bf
JM
28692check-libtermcap:
28693
28694@endif libtermcap
28695
28696.PHONY: install-libtermcap maybe-install-libtermcap
28697maybe-install-libtermcap:
28698@if libtermcap
28699maybe-install-libtermcap: install-libtermcap
28700
28701install-libtermcap: installdirs
dc448a7b
TT
28702 @: $(MAKE); $(unstage)
28703 @r=`${PWD_COMMAND}`; export r; \
28704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28705 $(HOST_EXPORTS) \
a90ef4bf
JM
28706 (cd $(HOST_SUBDIR)/libtermcap && \
28707 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 28708
a90ef4bf 28709@endif libtermcap
dc448a7b 28710
a90ef4bf
JM
28711.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
28712maybe-install-strip-libtermcap:
28713@if libtermcap
28714maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 28715
a90ef4bf
JM
28716install-strip-libtermcap: installdirs
28717 @: $(MAKE); $(unstage)
28718 @r=`${PWD_COMMAND}`; export r; \
28719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28720 $(HOST_EXPORTS) \
28721 (cd $(HOST_SUBDIR)/libtermcap && \
28722 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 28723
a90ef4bf 28724@endif libtermcap
9b980aa1 28725
dc448a7b
TT
28726# Other targets (info, dvi, pdf, etc.)
28727
a90ef4bf
JM
28728.PHONY: maybe-info-libtermcap info-libtermcap
28729maybe-info-libtermcap:
28730@if libtermcap
28731maybe-info-libtermcap: info-libtermcap
dc448a7b 28732
a90ef4bf
JM
28733info-libtermcap: \
28734 configure-libtermcap
dc448a7b 28735 @: $(MAKE); $(unstage)
a90ef4bf 28736 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28737 r=`${PWD_COMMAND}`; export r; \
28738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28739 $(HOST_EXPORTS) \
28740 for flag in $(EXTRA_HOST_FLAGS) ; do \
28741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28742 done; \
a90ef4bf
JM
28743 echo "Doing info in libtermcap" ; \
28744 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28747 "RANLIB=$${RANLIB}" \
28748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28749 info) \
28750 || exit 1
28751
a90ef4bf 28752@endif libtermcap
dc448a7b 28753
a90ef4bf
JM
28754.PHONY: maybe-dvi-libtermcap dvi-libtermcap
28755maybe-dvi-libtermcap:
28756@if libtermcap
28757maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 28758
a90ef4bf
JM
28759dvi-libtermcap: \
28760 configure-libtermcap
dc448a7b 28761 @: $(MAKE); $(unstage)
a90ef4bf 28762 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28763 r=`${PWD_COMMAND}`; export r; \
28764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28765 $(HOST_EXPORTS) \
28766 for flag in $(EXTRA_HOST_FLAGS) ; do \
28767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28768 done; \
a90ef4bf
JM
28769 echo "Doing dvi in libtermcap" ; \
28770 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28773 "RANLIB=$${RANLIB}" \
28774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28775 dvi) \
28776 || exit 1
28777
a90ef4bf 28778@endif libtermcap
dc448a7b 28779
a90ef4bf
JM
28780.PHONY: maybe-pdf-libtermcap pdf-libtermcap
28781maybe-pdf-libtermcap:
28782@if libtermcap
28783maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 28784
a90ef4bf
JM
28785pdf-libtermcap: \
28786 configure-libtermcap
dc448a7b 28787 @: $(MAKE); $(unstage)
a90ef4bf 28788 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28789 r=`${PWD_COMMAND}`; export r; \
28790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28791 $(HOST_EXPORTS) \
28792 for flag in $(EXTRA_HOST_FLAGS) ; do \
28793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28794 done; \
a90ef4bf
JM
28795 echo "Doing pdf in libtermcap" ; \
28796 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28799 "RANLIB=$${RANLIB}" \
28800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28801 pdf) \
28802 || exit 1
28803
a90ef4bf 28804@endif libtermcap
dc448a7b 28805
a90ef4bf
JM
28806.PHONY: maybe-html-libtermcap html-libtermcap
28807maybe-html-libtermcap:
28808@if libtermcap
28809maybe-html-libtermcap: html-libtermcap
dc448a7b 28810
a90ef4bf
JM
28811html-libtermcap: \
28812 configure-libtermcap
dc448a7b 28813 @: $(MAKE); $(unstage)
a90ef4bf 28814 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28815 r=`${PWD_COMMAND}`; export r; \
28816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28817 $(HOST_EXPORTS) \
28818 for flag in $(EXTRA_HOST_FLAGS) ; do \
28819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28820 done; \
a90ef4bf
JM
28821 echo "Doing html in libtermcap" ; \
28822 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28825 "RANLIB=$${RANLIB}" \
28826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28827 html) \
28828 || exit 1
28829
a90ef4bf 28830@endif libtermcap
dc448a7b 28831
a90ef4bf
JM
28832.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
28833maybe-TAGS-libtermcap:
28834@if libtermcap
28835maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 28836
a90ef4bf
JM
28837TAGS-libtermcap: \
28838 configure-libtermcap
dc448a7b 28839 @: $(MAKE); $(unstage)
a90ef4bf 28840 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28841 r=`${PWD_COMMAND}`; export r; \
28842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28843 $(HOST_EXPORTS) \
28844 for flag in $(EXTRA_HOST_FLAGS) ; do \
28845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28846 done; \
a90ef4bf
JM
28847 echo "Doing TAGS in libtermcap" ; \
28848 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28851 "RANLIB=$${RANLIB}" \
28852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28853 TAGS) \
28854 || exit 1
28855
a90ef4bf 28856@endif libtermcap
dc448a7b 28857
a90ef4bf
JM
28858.PHONY: maybe-install-info-libtermcap install-info-libtermcap
28859maybe-install-info-libtermcap:
28860@if libtermcap
28861maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 28862
a90ef4bf
JM
28863install-info-libtermcap: \
28864 configure-libtermcap \
28865 info-libtermcap
dc448a7b 28866 @: $(MAKE); $(unstage)
a90ef4bf 28867 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28868 r=`${PWD_COMMAND}`; export r; \
28869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28870 $(HOST_EXPORTS) \
28871 for flag in $(EXTRA_HOST_FLAGS) ; do \
28872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28873 done; \
a90ef4bf
JM
28874 echo "Doing install-info in libtermcap" ; \
28875 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28878 "RANLIB=$${RANLIB}" \
28879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28880 install-info) \
dc448a7b
TT
28881 || exit 1
28882
a90ef4bf 28883@endif libtermcap
dc448a7b 28884
a90ef4bf
JM
28885.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
28886maybe-install-pdf-libtermcap:
28887@if libtermcap
28888maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 28889
a90ef4bf
JM
28890install-pdf-libtermcap: \
28891 configure-libtermcap \
28892 pdf-libtermcap
dc448a7b 28893 @: $(MAKE); $(unstage)
a90ef4bf 28894 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28895 r=`${PWD_COMMAND}`; export r; \
28896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28897 $(HOST_EXPORTS) \
28898 for flag in $(EXTRA_HOST_FLAGS) ; do \
28899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28900 done; \
a90ef4bf
JM
28901 echo "Doing install-pdf in libtermcap" ; \
28902 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28905 "RANLIB=$${RANLIB}" \
28906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28907 install-pdf) \
dc448a7b
TT
28908 || exit 1
28909
a90ef4bf 28910@endif libtermcap
dc448a7b 28911
a90ef4bf
JM
28912.PHONY: maybe-install-html-libtermcap install-html-libtermcap
28913maybe-install-html-libtermcap:
28914@if libtermcap
28915maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 28916
a90ef4bf
JM
28917install-html-libtermcap: \
28918 configure-libtermcap \
28919 html-libtermcap
dc448a7b 28920 @: $(MAKE); $(unstage)
a90ef4bf 28921 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28922 r=`${PWD_COMMAND}`; export r; \
28923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28924 $(HOST_EXPORTS) \
28925 for flag in $(EXTRA_HOST_FLAGS) ; do \
28926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28927 done; \
a90ef4bf
JM
28928 echo "Doing install-html in libtermcap" ; \
28929 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28932 "RANLIB=$${RANLIB}" \
28933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28934 install-html) \
dc448a7b
TT
28935 || exit 1
28936
a90ef4bf 28937@endif libtermcap
dc448a7b 28938
a90ef4bf
JM
28939.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
28940maybe-installcheck-libtermcap:
28941@if libtermcap
28942maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 28943
a90ef4bf
JM
28944installcheck-libtermcap: \
28945 configure-libtermcap
dc448a7b 28946 @: $(MAKE); $(unstage)
a90ef4bf 28947 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
28948 r=`${PWD_COMMAND}`; export r; \
28949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28950 $(HOST_EXPORTS) \
28951 for flag in $(EXTRA_HOST_FLAGS) ; do \
28952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28953 done; \
a90ef4bf
JM
28954 echo "Doing installcheck in libtermcap" ; \
28955 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
28956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28958 "RANLIB=$${RANLIB}" \
28959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28960 installcheck) \
dc448a7b
TT
28961 || exit 1
28962
a90ef4bf 28963@endif libtermcap
dc448a7b 28964
a90ef4bf
JM
28965.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
28966maybe-mostlyclean-libtermcap:
28967@if libtermcap
28968maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 28969
a90ef4bf
JM
28970# libtermcap doesn't support mostlyclean.
28971mostlyclean-libtermcap:
dc448a7b 28972
a90ef4bf 28973@endif libtermcap
dc448a7b 28974
a90ef4bf
JM
28975.PHONY: maybe-clean-libtermcap clean-libtermcap
28976maybe-clean-libtermcap:
28977@if libtermcap
28978maybe-clean-libtermcap: clean-libtermcap
dc448a7b 28979
a90ef4bf
JM
28980# libtermcap doesn't support clean.
28981clean-libtermcap:
dc448a7b 28982
a90ef4bf
JM
28983@endif libtermcap
28984
28985.PHONY: maybe-distclean-libtermcap distclean-libtermcap
28986maybe-distclean-libtermcap:
28987@if libtermcap
28988maybe-distclean-libtermcap: distclean-libtermcap
28989
28990# libtermcap doesn't support distclean.
28991distclean-libtermcap:
28992
28993@endif libtermcap
28994
28995.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
28996maybe-maintainer-clean-libtermcap:
28997@if libtermcap
28998maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
28999
29000# libtermcap doesn't support maintainer-clean.
29001maintainer-clean-libtermcap:
29002
29003@endif libtermcap
29004
29005
29006
29007.PHONY: configure-utils maybe-configure-utils
29008maybe-configure-utils:
29009@if gcc-bootstrap
29010configure-utils: stage_current
29011@endif gcc-bootstrap
29012@if utils
29013maybe-configure-utils: configure-utils
29014configure-utils:
29015 @: $(MAKE); $(unstage)
c52c6897 29016 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29018 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
29019 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
1f53ca9a 29020 $(HOST_EXPORTS) \
a90ef4bf
JM
29021 echo Configuring in $(HOST_SUBDIR)/utils; \
29022 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 29023 case $(srcdir) in \
b00612cc 29024 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29025 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 29026 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29027 esac; \
a90ef4bf
JM
29028 srcdiroption="--srcdir=$${topdir}/utils"; \
29029 libsrcdir="$$s/utils"; \
4fa63067 29030 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
29031 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29032 --target=${target_alias} $${srcdiroption} \
2a4cbe27 29033 || exit 1
a90ef4bf 29034@endif utils
2a4cbe27 29035
a7254363
PB
29036
29037
d545f33b
PB
29038
29039
a90ef4bf
JM
29040.PHONY: all-utils maybe-all-utils
29041maybe-all-utils:
4f0ef2d8 29042@if gcc-bootstrap
a90ef4bf 29043all-utils: stage_current
4f0ef2d8 29044@endif gcc-bootstrap
a90ef4bf
JM
29045@if utils
29046TARGET-utils=all
29047maybe-all-utils: all-utils
29048all-utils: configure-utils
0aed8855 29049 @: $(MAKE); $(unstage)
4fa63067
NN
29050 @r=`${PWD_COMMAND}`; export r; \
29051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29052 $(HOST_EXPORTS) \
a90ef4bf 29053 (cd $(HOST_SUBDIR)/utils && \
b3676d82 29054 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29055 $(TARGET-utils))
29056@endif utils
2a4cbe27 29057
a7254363 29058
d545f33b
PB
29059
29060
a90ef4bf
JM
29061.PHONY: check-utils maybe-check-utils
29062maybe-check-utils:
29063@if utils
29064maybe-check-utils: check-utils
2a4cbe27 29065
a90ef4bf 29066check-utils:
2a4cbe27 29067
a90ef4bf 29068@endif utils
2a4cbe27 29069
a90ef4bf
JM
29070.PHONY: install-utils maybe-install-utils
29071maybe-install-utils:
29072@if utils
29073maybe-install-utils: install-utils
2a4cbe27 29074
a90ef4bf 29075install-utils: installdirs
0aed8855 29076 @: $(MAKE); $(unstage)
4fa63067 29077 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29079 $(HOST_EXPORTS) \
a90ef4bf 29080 (cd $(HOST_SUBDIR)/utils && \
2da12f12 29081 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 29082
a90ef4bf 29083@endif utils
2a4cbe27 29084
a90ef4bf
JM
29085.PHONY: install-strip-utils maybe-install-strip-utils
29086maybe-install-strip-utils:
29087@if utils
29088maybe-install-strip-utils: install-strip-utils
9b980aa1 29089
a90ef4bf 29090install-strip-utils: installdirs
9b980aa1
RW
29091 @: $(MAKE); $(unstage)
29092 @r=`${PWD_COMMAND}`; export r; \
29093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29094 $(HOST_EXPORTS) \
a90ef4bf 29095 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
29096 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29097
a90ef4bf 29098@endif utils
9b980aa1 29099
56a8fe78 29100# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29101
a90ef4bf
JM
29102.PHONY: maybe-info-utils info-utils
29103maybe-info-utils:
29104@if utils
29105maybe-info-utils: info-utils
4fa63067 29106
a90ef4bf
JM
29107info-utils: \
29108 configure-utils
0aed8855 29109 @: $(MAKE); $(unstage)
a90ef4bf 29110 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29111 r=`${PWD_COMMAND}`; export r; \
29112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29113 $(HOST_EXPORTS) \
b813574b 29114 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29116 done; \
a90ef4bf
JM
29117 echo "Doing info in utils" ; \
29118 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29121 "RANLIB=$${RANLIB}" \
0c24b341 29122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29123 info) \
2a4cbe27
NN
29124 || exit 1
29125
a90ef4bf 29126@endif utils
2a4cbe27 29127
a90ef4bf
JM
29128.PHONY: maybe-dvi-utils dvi-utils
29129maybe-dvi-utils:
29130@if utils
29131maybe-dvi-utils: dvi-utils
2a4cbe27 29132
a90ef4bf
JM
29133dvi-utils: \
29134 configure-utils
0aed8855 29135 @: $(MAKE); $(unstage)
a90ef4bf 29136 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29137 r=`${PWD_COMMAND}`; export r; \
29138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29139 $(HOST_EXPORTS) \
b813574b 29140 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29142 done; \
a90ef4bf
JM
29143 echo "Doing dvi in utils" ; \
29144 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29147 "RANLIB=$${RANLIB}" \
0c24b341 29148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29149 dvi) \
2a4cbe27
NN
29150 || exit 1
29151
a90ef4bf 29152@endif utils
2a4cbe27 29153
a90ef4bf
JM
29154.PHONY: maybe-pdf-utils pdf-utils
29155maybe-pdf-utils:
29156@if utils
29157maybe-pdf-utils: pdf-utils
56a8fe78 29158
a90ef4bf
JM
29159pdf-utils: \
29160 configure-utils
56a8fe78 29161 @: $(MAKE); $(unstage)
a90ef4bf 29162 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
29163 r=`${PWD_COMMAND}`; export r; \
29164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29165 $(HOST_EXPORTS) \
29166 for flag in $(EXTRA_HOST_FLAGS) ; do \
29167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29168 done; \
a90ef4bf
JM
29169 echo "Doing pdf in utils" ; \
29170 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
29171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29173 "RANLIB=$${RANLIB}" \
0c24b341 29174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29175 pdf) \
29176 || exit 1
29177
a90ef4bf 29178@endif utils
56a8fe78 29179
a90ef4bf
JM
29180.PHONY: maybe-html-utils html-utils
29181maybe-html-utils:
29182@if utils
29183maybe-html-utils: html-utils
6d389afc 29184
a90ef4bf
JM
29185html-utils: \
29186 configure-utils
0aed8855 29187 @: $(MAKE); $(unstage)
a90ef4bf 29188 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
29189 r=`${PWD_COMMAND}`; export r; \
29190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29191 $(HOST_EXPORTS) \
29192 for flag in $(EXTRA_HOST_FLAGS) ; do \
29193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29194 done; \
a90ef4bf
JM
29195 echo "Doing html in utils" ; \
29196 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
29197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29199 "RANLIB=$${RANLIB}" \
0c24b341 29200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29201 html) \
29202 || exit 1
29203
a90ef4bf 29204@endif utils
6d389afc 29205
a90ef4bf
JM
29206.PHONY: maybe-TAGS-utils TAGS-utils
29207maybe-TAGS-utils:
29208@if utils
29209maybe-TAGS-utils: TAGS-utils
2a4cbe27 29210
a90ef4bf
JM
29211TAGS-utils: \
29212 configure-utils
0aed8855 29213 @: $(MAKE); $(unstage)
a90ef4bf 29214 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29215 r=`${PWD_COMMAND}`; export r; \
29216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29217 $(HOST_EXPORTS) \
b813574b 29218 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29220 done; \
a90ef4bf
JM
29221 echo "Doing TAGS in utils" ; \
29222 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29225 "RANLIB=$${RANLIB}" \
0c24b341 29226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29227 TAGS) \
2a4cbe27
NN
29228 || exit 1
29229
a90ef4bf 29230@endif utils
2a4cbe27 29231
a90ef4bf
JM
29232.PHONY: maybe-install-info-utils install-info-utils
29233maybe-install-info-utils:
29234@if utils
29235maybe-install-info-utils: install-info-utils
2a4cbe27 29236
a90ef4bf
JM
29237install-info-utils: \
29238 configure-utils \
29239 info-utils
0aed8855 29240 @: $(MAKE); $(unstage)
a90ef4bf 29241 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29242 r=`${PWD_COMMAND}`; export r; \
29243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29244 $(HOST_EXPORTS) \
b813574b 29245 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29247 done; \
a90ef4bf
JM
29248 echo "Doing install-info in utils" ; \
29249 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29252 "RANLIB=$${RANLIB}" \
0c24b341 29253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29254 install-info) \
2a4cbe27
NN
29255 || exit 1
29256
a90ef4bf 29257@endif utils
2a4cbe27 29258
a90ef4bf
JM
29259.PHONY: maybe-install-pdf-utils install-pdf-utils
29260maybe-install-pdf-utils:
29261@if utils
29262maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 29263
a90ef4bf
JM
29264install-pdf-utils: \
29265 configure-utils \
29266 pdf-utils
a3ca38d2 29267 @: $(MAKE); $(unstage)
a90ef4bf 29268 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
29269 r=`${PWD_COMMAND}`; export r; \
29270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29271 $(HOST_EXPORTS) \
29272 for flag in $(EXTRA_HOST_FLAGS) ; do \
29273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29274 done; \
a90ef4bf
JM
29275 echo "Doing install-pdf in utils" ; \
29276 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
29277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29279 "RANLIB=$${RANLIB}" \
0c24b341 29280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29281 install-pdf) \
29282 || exit 1
29283
a90ef4bf 29284@endif utils
a3ca38d2 29285
a90ef4bf
JM
29286.PHONY: maybe-install-html-utils install-html-utils
29287maybe-install-html-utils:
29288@if utils
29289maybe-install-html-utils: install-html-utils
108a6f8e 29290
a90ef4bf
JM
29291install-html-utils: \
29292 configure-utils \
29293 html-utils
108a6f8e 29294 @: $(MAKE); $(unstage)
a90ef4bf 29295 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
29296 r=`${PWD_COMMAND}`; export r; \
29297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29298 $(HOST_EXPORTS) \
29299 for flag in $(EXTRA_HOST_FLAGS) ; do \
29300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29301 done; \
a90ef4bf
JM
29302 echo "Doing install-html in utils" ; \
29303 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
29304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29306 "RANLIB=$${RANLIB}" \
0c24b341 29307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29308 install-html) \
29309 || exit 1
29310
a90ef4bf 29311@endif utils
108a6f8e 29312
a90ef4bf
JM
29313.PHONY: maybe-installcheck-utils installcheck-utils
29314maybe-installcheck-utils:
29315@if utils
29316maybe-installcheck-utils: installcheck-utils
2a4cbe27 29317
a90ef4bf
JM
29318installcheck-utils: \
29319 configure-utils
0aed8855 29320 @: $(MAKE); $(unstage)
a90ef4bf 29321 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29322 r=`${PWD_COMMAND}`; export r; \
29323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29324 $(HOST_EXPORTS) \
b813574b 29325 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29327 done; \
a90ef4bf
JM
29328 echo "Doing installcheck in utils" ; \
29329 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29332 "RANLIB=$${RANLIB}" \
0c24b341 29333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29334 installcheck) \
2a4cbe27
NN
29335 || exit 1
29336
a90ef4bf 29337@endif utils
2a4cbe27 29338
a90ef4bf
JM
29339.PHONY: maybe-mostlyclean-utils mostlyclean-utils
29340maybe-mostlyclean-utils:
29341@if utils
29342maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 29343
a90ef4bf 29344mostlyclean-utils:
0aed8855 29345 @: $(MAKE); $(unstage)
a90ef4bf 29346 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29347 r=`${PWD_COMMAND}`; export r; \
29348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29349 $(HOST_EXPORTS) \
b813574b 29350 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29352 done; \
a90ef4bf
JM
29353 echo "Doing mostlyclean in utils" ; \
29354 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29357 "RANLIB=$${RANLIB}" \
0c24b341 29358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29359 mostlyclean) \
2a4cbe27
NN
29360 || exit 1
29361
a90ef4bf 29362@endif utils
2a4cbe27 29363
a90ef4bf
JM
29364.PHONY: maybe-clean-utils clean-utils
29365maybe-clean-utils:
29366@if utils
29367maybe-clean-utils: clean-utils
2a4cbe27 29368
a90ef4bf 29369clean-utils:
0aed8855 29370 @: $(MAKE); $(unstage)
a90ef4bf 29371 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29372 r=`${PWD_COMMAND}`; export r; \
29373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29374 $(HOST_EXPORTS) \
b813574b 29375 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29377 done; \
a90ef4bf
JM
29378 echo "Doing clean in utils" ; \
29379 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29382 "RANLIB=$${RANLIB}" \
0c24b341 29383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29384 clean) \
2a4cbe27
NN
29385 || exit 1
29386
a90ef4bf 29387@endif utils
2a4cbe27 29388
a90ef4bf
JM
29389.PHONY: maybe-distclean-utils distclean-utils
29390maybe-distclean-utils:
29391@if utils
29392maybe-distclean-utils: distclean-utils
2a4cbe27 29393
a90ef4bf 29394distclean-utils:
0aed8855 29395 @: $(MAKE); $(unstage)
a90ef4bf 29396 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29397 r=`${PWD_COMMAND}`; export r; \
29398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29399 $(HOST_EXPORTS) \
b813574b 29400 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29402 done; \
a90ef4bf
JM
29403 echo "Doing distclean in utils" ; \
29404 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29407 "RANLIB=$${RANLIB}" \
0c24b341 29408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29409 distclean) \
2a4cbe27
NN
29410 || exit 1
29411
a90ef4bf 29412@endif utils
2a4cbe27 29413
a90ef4bf
JM
29414.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
29415maybe-maintainer-clean-utils:
29416@if utils
29417maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 29418
a90ef4bf 29419maintainer-clean-utils:
0aed8855 29420 @: $(MAKE); $(unstage)
a90ef4bf 29421 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29422 r=`${PWD_COMMAND}`; export r; \
29423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29424 $(HOST_EXPORTS) \
b813574b 29425 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29427 done; \
a90ef4bf
JM
29428 echo "Doing maintainer-clean in utils" ; \
29429 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29432 "RANLIB=$${RANLIB}" \
0c24b341 29433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29434 maintainer-clean) \
2a4cbe27
NN
29435 || exit 1
29436
a90ef4bf 29437@endif utils
2a4cbe27 29438
2a4cbe27 29439
a7254363 29440
a90ef4bf
JM
29441.PHONY: configure-gnattools maybe-configure-gnattools
29442maybe-configure-gnattools:
4f0ef2d8 29443@if gcc-bootstrap
a90ef4bf 29444configure-gnattools: stage_current
4f0ef2d8 29445@endif gcc-bootstrap
a90ef4bf
JM
29446@if gnattools
29447maybe-configure-gnattools: configure-gnattools
29448configure-gnattools:
0aed8855 29449 @: $(MAKE); $(unstage)
c52c6897 29450 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29452 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
29453 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
1f53ca9a 29454 $(HOST_EXPORTS) \
a90ef4bf
JM
29455 echo Configuring in $(HOST_SUBDIR)/gnattools; \
29456 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 29457 case $(srcdir) in \
b00612cc 29458 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29459 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 29460 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29461 esac; \
a90ef4bf
JM
29462 srcdiroption="--srcdir=$${topdir}/gnattools"; \
29463 libsrcdir="$$s/gnattools"; \
4fa63067 29464 $(SHELL) $${libsrcdir}/configure \
4b900473
PB
29465 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29466 --target=${target_alias} $${srcdiroption} \
2a4cbe27 29467 || exit 1
a90ef4bf 29468@endif gnattools
2a4cbe27 29469
a7254363
PB
29470
29471
d545f33b
PB
29472
29473
a90ef4bf
JM
29474.PHONY: all-gnattools maybe-all-gnattools
29475maybe-all-gnattools:
4f0ef2d8 29476@if gcc-bootstrap
a90ef4bf 29477all-gnattools: stage_current
4f0ef2d8 29478@endif gcc-bootstrap
a90ef4bf
JM
29479@if gnattools
29480TARGET-gnattools=all
29481maybe-all-gnattools: all-gnattools
29482all-gnattools: configure-gnattools
0aed8855 29483 @: $(MAKE); $(unstage)
4fa63067
NN
29484 @r=`${PWD_COMMAND}`; export r; \
29485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29486 $(HOST_EXPORTS) \
a90ef4bf 29487 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 29488 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29489 $(TARGET-gnattools))
29490@endif gnattools
4fa63067 29491
a7254363 29492
d545f33b
PB
29493
29494
a90ef4bf
JM
29495.PHONY: check-gnattools maybe-check-gnattools
29496maybe-check-gnattools:
29497@if gnattools
29498maybe-check-gnattools: check-gnattools
2a4cbe27 29499
a90ef4bf 29500check-gnattools:
0aed8855 29501 @: $(MAKE); $(unstage)
4fa63067
NN
29502 @r=`${PWD_COMMAND}`; export r; \
29503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29504 $(HOST_EXPORTS) \
a90ef4bf 29505 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 29506 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 29507
a90ef4bf 29508@endif gnattools
4fa63067 29509
a90ef4bf
JM
29510.PHONY: install-gnattools maybe-install-gnattools
29511maybe-install-gnattools:
29512@if gnattools
29513maybe-install-gnattools: install-gnattools
4fa63067 29514
a90ef4bf 29515install-gnattools: installdirs
0aed8855 29516 @: $(MAKE); $(unstage)
4fa63067
NN
29517 @r=`${PWD_COMMAND}`; export r; \
29518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29519 $(HOST_EXPORTS) \
a90ef4bf 29520 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 29521 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 29522
a90ef4bf 29523@endif gnattools
4fa63067 29524
a90ef4bf
JM
29525.PHONY: install-strip-gnattools maybe-install-strip-gnattools
29526maybe-install-strip-gnattools:
29527@if gnattools
29528maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 29529
a90ef4bf 29530install-strip-gnattools: installdirs
9b980aa1
RW
29531 @: $(MAKE); $(unstage)
29532 @r=`${PWD_COMMAND}`; export r; \
29533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29534 $(HOST_EXPORTS) \
a90ef4bf 29535 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
29536 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29537
a90ef4bf 29538@endif gnattools
9b980aa1 29539
56a8fe78 29540# Other targets (info, dvi, pdf, etc.)
4fa63067 29541
a90ef4bf
JM
29542.PHONY: maybe-info-gnattools info-gnattools
29543maybe-info-gnattools:
29544@if gnattools
29545maybe-info-gnattools: info-gnattools
4fa63067 29546
a90ef4bf
JM
29547info-gnattools: \
29548 configure-gnattools
0aed8855 29549 @: $(MAKE); $(unstage)
a90ef4bf 29550 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
29551 r=`${PWD_COMMAND}`; export r; \
29552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29553 $(HOST_EXPORTS) \
b813574b 29554 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29556 done; \
a90ef4bf
JM
29557 echo "Doing info in gnattools" ; \
29558 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
29559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29561 "RANLIB=$${RANLIB}" \
0c24b341 29562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29563 info) \
2a4cbe27
NN
29564 || exit 1
29565
a90ef4bf 29566@endif gnattools
2a4cbe27 29567
a90ef4bf
JM
29568.PHONY: maybe-dvi-gnattools dvi-gnattools
29569maybe-dvi-gnattools:
29570@if gnattools
29571maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 29572
a90ef4bf
JM
29573dvi-gnattools: \
29574 configure-gnattools
0aed8855 29575 @: $(MAKE); $(unstage)
a90ef4bf 29576 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
29577 r=`${PWD_COMMAND}`; export r; \
29578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29579 $(HOST_EXPORTS) \
b813574b 29580 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29582 done; \
a90ef4bf
JM
29583 echo "Doing dvi in gnattools" ; \
29584 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
29585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29587 "RANLIB=$${RANLIB}" \
0c24b341 29588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29589 dvi) \
2a4cbe27
NN
29590 || exit 1
29591
a90ef4bf 29592@endif gnattools
2a4cbe27 29593
a90ef4bf
JM
29594.PHONY: maybe-pdf-gnattools pdf-gnattools
29595maybe-pdf-gnattools:
29596@if gnattools
29597maybe-pdf-gnattools: pdf-gnattools
56a8fe78 29598
a90ef4bf
JM
29599pdf-gnattools: \
29600 configure-gnattools
56a8fe78 29601 @: $(MAKE); $(unstage)
a90ef4bf 29602 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
29603 r=`${PWD_COMMAND}`; export r; \
29604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29605 $(HOST_EXPORTS) \
29606 for flag in $(EXTRA_HOST_FLAGS) ; do \
29607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29608 done; \
a90ef4bf
JM
29609 echo "Doing pdf in gnattools" ; \
29610 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
29611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29613 "RANLIB=$${RANLIB}" \
0c24b341 29614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29615 pdf) \
29616 || exit 1
29617
a90ef4bf 29618@endif gnattools
56a8fe78 29619
a90ef4bf
JM
29620.PHONY: maybe-html-gnattools html-gnattools
29621maybe-html-gnattools:
29622@if gnattools
29623maybe-html-gnattools: html-gnattools
6d389afc 29624
a90ef4bf
JM
29625html-gnattools: \
29626 configure-gnattools
0aed8855 29627 @: $(MAKE); $(unstage)
a90ef4bf 29628 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
29629 r=`${PWD_COMMAND}`; export r; \
29630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29631 $(HOST_EXPORTS) \
29632 for flag in $(EXTRA_HOST_FLAGS) ; do \
29633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29634 done; \
a90ef4bf
JM
29635 echo "Doing html in gnattools" ; \
29636 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
29637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29639 "RANLIB=$${RANLIB}" \
0c24b341 29640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29641 html) \
29642 || exit 1
29643
a90ef4bf 29644@endif gnattools
6d389afc 29645
a90ef4bf
JM
29646.PHONY: maybe-TAGS-gnattools TAGS-gnattools
29647maybe-TAGS-gnattools:
29648@if gnattools
29649maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 29650
a90ef4bf
JM
29651TAGS-gnattools: \
29652 configure-gnattools
0aed8855 29653 @: $(MAKE); $(unstage)
a90ef4bf 29654 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
29655 r=`${PWD_COMMAND}`; export r; \
29656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29657 $(HOST_EXPORTS) \
b813574b 29658 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29660 done; \
a90ef4bf
JM
29661 echo "Doing TAGS in gnattools" ; \
29662 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
29663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29665 "RANLIB=$${RANLIB}" \
0c24b341 29666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29667 TAGS) \
2a4cbe27
NN
29668 || exit 1
29669
a90ef4bf 29670@endif gnattools
2a4cbe27 29671
a90ef4bf
JM
29672.PHONY: maybe-install-info-gnattools install-info-gnattools
29673maybe-install-info-gnattools:
29674@if gnattools
29675maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 29676
a90ef4bf
JM
29677install-info-gnattools: \
29678 configure-gnattools \
29679 info-gnattools
0aed8855 29680 @: $(MAKE); $(unstage)
a90ef4bf 29681 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
29682 r=`${PWD_COMMAND}`; export r; \
29683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29684 $(HOST_EXPORTS) \
b813574b 29685 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29687 done; \
a90ef4bf
JM
29688 echo "Doing install-info in gnattools" ; \
29689 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
29690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29692 "RANLIB=$${RANLIB}" \
0c24b341 29693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29694 install-info) \
2a4cbe27
NN
29695 || exit 1
29696
a90ef4bf 29697@endif gnattools
2a4cbe27 29698
a90ef4bf
JM
29699.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
29700maybe-install-pdf-gnattools:
29701@if gnattools
29702maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 29703
a90ef4bf
JM
29704install-pdf-gnattools: \
29705 configure-gnattools \
29706 pdf-gnattools
a3ca38d2 29707 @: $(MAKE); $(unstage)
a90ef4bf 29708 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
29709 r=`${PWD_COMMAND}`; export r; \
29710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29711 $(HOST_EXPORTS) \
29712 for flag in $(EXTRA_HOST_FLAGS) ; do \
29713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29714 done; \
a90ef4bf
JM
29715 echo "Doing install-pdf in gnattools" ; \
29716 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
29717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29719 "RANLIB=$${RANLIB}" \
0c24b341 29720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29721 install-pdf) \
29722 || exit 1
29723
a90ef4bf 29724@endif gnattools
a3ca38d2 29725
a90ef4bf
JM
29726.PHONY: maybe-install-html-gnattools install-html-gnattools
29727maybe-install-html-gnattools:
29728@if gnattools
29729maybe-install-html-gnattools: install-html-gnattools
108a6f8e 29730
a90ef4bf
JM
29731install-html-gnattools: \
29732 configure-gnattools \
29733 html-gnattools
108a6f8e 29734 @: $(MAKE); $(unstage)
a90ef4bf 29735 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
29736 r=`${PWD_COMMAND}`; export r; \
29737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29738 $(HOST_EXPORTS) \
29739 for flag in $(EXTRA_HOST_FLAGS) ; do \
29740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29741 done; \
a90ef4bf
JM
29742 echo "Doing install-html in gnattools" ; \
29743 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
29744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29746 "RANLIB=$${RANLIB}" \
0c24b341 29747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29748 install-html) \
29749 || exit 1
29750
a90ef4bf 29751@endif gnattools
108a6f8e 29752
a90ef4bf
JM
29753.PHONY: maybe-installcheck-gnattools installcheck-gnattools
29754maybe-installcheck-gnattools:
29755@if gnattools
29756maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 29757
a90ef4bf
JM
29758installcheck-gnattools: \
29759 configure-gnattools
0aed8855 29760 @: $(MAKE); $(unstage)
a90ef4bf 29761 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
29762 r=`${PWD_COMMAND}`; export r; \
29763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29764 $(HOST_EXPORTS) \
b813574b 29765 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29767 done; \
a90ef4bf
JM
29768 echo "Doing installcheck in gnattools" ; \
29769 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
29770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29772 "RANLIB=$${RANLIB}" \
0c24b341 29773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29774 installcheck) \
2a4cbe27
NN
29775 || exit 1
29776
a90ef4bf 29777@endif gnattools
2a4cbe27 29778
a90ef4bf
JM
29779.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
29780maybe-mostlyclean-gnattools:
29781@if gnattools
29782maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 29783
a90ef4bf 29784mostlyclean-gnattools:
0aed8855 29785 @: $(MAKE); $(unstage)
a90ef4bf 29786 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
29787 r=`${PWD_COMMAND}`; export r; \
29788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29789 $(HOST_EXPORTS) \
b813574b 29790 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29792 done; \
a90ef4bf
JM
29793 echo "Doing mostlyclean in gnattools" ; \
29794 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
29795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29797 "RANLIB=$${RANLIB}" \
0c24b341 29798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29799 mostlyclean) \
2a4cbe27
NN
29800 || exit 1
29801
a90ef4bf 29802@endif gnattools
2a4cbe27 29803
a90ef4bf
JM
29804.PHONY: maybe-clean-gnattools clean-gnattools
29805maybe-clean-gnattools:
29806@if gnattools
29807maybe-clean-gnattools: clean-gnattools
2a4cbe27 29808
a90ef4bf 29809clean-gnattools:
0aed8855 29810 @: $(MAKE); $(unstage)
a90ef4bf 29811 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
29812 r=`${PWD_COMMAND}`; export r; \
29813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29814 $(HOST_EXPORTS) \
b813574b 29815 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29817 done; \
a90ef4bf
JM
29818 echo "Doing clean in gnattools" ; \
29819 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
29820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29822 "RANLIB=$${RANLIB}" \
0c24b341 29823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29824 clean) \
2a4cbe27
NN
29825 || exit 1
29826
a90ef4bf 29827@endif gnattools
2a4cbe27 29828
a90ef4bf
JM
29829.PHONY: maybe-distclean-gnattools distclean-gnattools
29830maybe-distclean-gnattools:
29831@if gnattools
29832maybe-distclean-gnattools: distclean-gnattools
a2592b1b 29833
a90ef4bf 29834distclean-gnattools:
0aed8855 29835 @: $(MAKE); $(unstage)
a90ef4bf 29836 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
29837 r=`${PWD_COMMAND}`; export r; \
29838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29839 $(HOST_EXPORTS) \
b813574b 29840 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
29841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29842 done; \
a90ef4bf
JM
29843 echo "Doing distclean in gnattools" ; \
29844 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
29845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29847 "RANLIB=$${RANLIB}" \
0c24b341 29848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29849 distclean) \
a2592b1b
DD
29850 || exit 1
29851
a90ef4bf 29852@endif gnattools
a2592b1b 29853
a90ef4bf
JM
29854.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
29855maybe-maintainer-clean-gnattools:
29856@if gnattools
29857maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 29858
a90ef4bf 29859maintainer-clean-gnattools:
0aed8855 29860 @: $(MAKE); $(unstage)
a90ef4bf 29861 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 29862 r=`${PWD_COMMAND}`; export r; \
b40e3958 29863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29864 $(HOST_EXPORTS) \
b813574b 29865 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
29866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29867 done; \
a90ef4bf
JM
29868 echo "Doing maintainer-clean in gnattools" ; \
29869 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
29870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29872 "RANLIB=$${RANLIB}" \
0c24b341 29873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29874 maintainer-clean) \
4fa63067 29875 || exit 1
252b5132 29876
a90ef4bf 29877@endif gnattools
252b5132 29878
252b5132 29879
a7254363 29880
a90ef4bf
JM
29881.PHONY: configure-lto-plugin maybe-configure-lto-plugin
29882maybe-configure-lto-plugin:
4f0ef2d8 29883@if gcc-bootstrap
a90ef4bf 29884configure-lto-plugin: stage_current
4f0ef2d8 29885@endif gcc-bootstrap
a90ef4bf
JM
29886@if lto-plugin
29887maybe-configure-lto-plugin: configure-lto-plugin
29888configure-lto-plugin:
c52c6897 29889 @r=`${PWD_COMMAND}`; export r; \
b813574b 29890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29891 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
29892 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
1f53ca9a 29893 $(HOST_EXPORTS) \
a90ef4bf
JM
29894 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
29895 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 29896 case $(srcdir) in \
b00612cc 29897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29898 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 29899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29900 esac; \
a90ef4bf
JM
29901 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29902 libsrcdir="$$s/lto-plugin"; \
4fa63067 29903 $(SHELL) $${libsrcdir}/configure \
4b900473 29904 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
a90ef4bf 29905 --target=${target_alias} $${srcdiroption} --enable-shared \
4fa63067 29906 || exit 1
a90ef4bf 29907@endif lto-plugin
a7254363 29908
d545f33b
PB
29909
29910
a90ef4bf
JM
29911.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
29912maybe-configure-stage1-lto-plugin:
29913@if lto-plugin-bootstrap
29914maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
29915configure-stage1-lto-plugin:
29916 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
29917 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
29918 @r=`${PWD_COMMAND}`; export r; \
29919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29920 TFLAGS="$(STAGE1_TFLAGS)"; \
29921 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
29922 $(HOST_EXPORTS) \
29923 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
29924 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
29925 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
29926 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin ; \
29927 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29928 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29929 case $(srcdir) in \
29930 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29931 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29932 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29933 esac; \
29934 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29935 libsrcdir="$$s/lto-plugin"; \
29936 $(SHELL) $${libsrcdir}/configure \
29937 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29938 --target=${target_alias} $${srcdiroption} \
29939 $(STAGE1_CONFIGURE_FLAGS) \
29940 --enable-shared
29941@endif lto-plugin-bootstrap
252b5132 29942
a90ef4bf
JM
29943.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
29944maybe-configure-stage2-lto-plugin:
29945@if lto-plugin-bootstrap
29946maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
29947configure-stage2-lto-plugin:
29948 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
29949 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
29950 @r=`${PWD_COMMAND}`; export r; \
29951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29952 TFLAGS="$(STAGE2_TFLAGS)"; \
29953 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 29954 $(HOST_EXPORTS) \
a90ef4bf
JM
29955 $(POSTSTAGE1_HOST_EXPORTS) \
29956 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
29957 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
29958 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
29959 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin ; \
29960 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29961 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29962 case $(srcdir) in \
29963 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29964 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29965 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29966 esac; \
29967 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
29968 libsrcdir="$$s/lto-plugin"; \
29969 $(SHELL) $${libsrcdir}/configure \
29970 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29971 --target=${target_alias} $${srcdiroption} \
29972 --with-build-libsubdir=$(HOST_SUBDIR) \
29973 $(STAGE2_CONFIGURE_FLAGS) \
29974 --enable-shared
29975@endif lto-plugin-bootstrap
4fa63067 29976
a90ef4bf
JM
29977.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
29978maybe-configure-stage3-lto-plugin:
29979@if lto-plugin-bootstrap
29980maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
29981configure-stage3-lto-plugin:
29982 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
29983 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
29984 @r=`${PWD_COMMAND}`; export r; \
29985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29986 TFLAGS="$(STAGE3_TFLAGS)"; \
29987 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 29988 $(HOST_EXPORTS) \
a90ef4bf
JM
29989 $(POSTSTAGE1_HOST_EXPORTS) \
29990 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
29991 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
29992 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
29993 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin ; \
29994 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
29995 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
29996 case $(srcdir) in \
29997 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29998 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
29999 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30000 esac; \
30001 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
30002 libsrcdir="$$s/lto-plugin"; \
30003 $(SHELL) $${libsrcdir}/configure \
30004 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30005 --target=${target_alias} $${srcdiroption} \
30006 --with-build-libsubdir=$(HOST_SUBDIR) \
30007 $(STAGE3_CONFIGURE_FLAGS) \
30008 --enable-shared
30009@endif lto-plugin-bootstrap
9b980aa1 30010
a90ef4bf
JM
30011.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
30012maybe-configure-stage4-lto-plugin:
30013@if lto-plugin-bootstrap
30014maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
30015configure-stage4-lto-plugin:
30016 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30017 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
30018 @r=`${PWD_COMMAND}`; export r; \
30019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30020 TFLAGS="$(STAGE4_TFLAGS)"; \
30021 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 30022 $(HOST_EXPORTS) \
a90ef4bf
JM
30023 $(POSTSTAGE1_HOST_EXPORTS) \
30024 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
30025 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
30026 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
30027 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin ; \
30028 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30029 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30030 case $(srcdir) in \
30031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30032 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30034 esac; \
30035 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
30036 libsrcdir="$$s/lto-plugin"; \
30037 $(SHELL) $${libsrcdir}/configure \
30038 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30039 --target=${target_alias} $${srcdiroption} \
30040 --with-build-libsubdir=$(HOST_SUBDIR) \
30041 $(STAGE4_CONFIGURE_FLAGS) \
30042 --enable-shared
30043@endif lto-plugin-bootstrap
4fa63067 30044
a90ef4bf
JM
30045.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
30046maybe-configure-stageprofile-lto-plugin:
30047@if lto-plugin-bootstrap
30048maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
30049configure-stageprofile-lto-plugin:
30050 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30051 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
30052 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30054 TFLAGS="$(STAGEprofile_TFLAGS)"; \
30055 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30056 $(HOST_EXPORTS) \
a90ef4bf
JM
30057 $(POSTSTAGE1_HOST_EXPORTS) \
30058 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
30059 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
30060 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
30061 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin ; \
30062 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30063 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30064 case $(srcdir) in \
30065 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30066 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30067 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30068 esac; \
30069 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
30070 libsrcdir="$$s/lto-plugin"; \
30071 $(SHELL) $${libsrcdir}/configure \
30072 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30073 --target=${target_alias} $${srcdiroption} \
30074 --with-build-libsubdir=$(HOST_SUBDIR) \
30075 $(STAGEprofile_CONFIGURE_FLAGS) \
30076 --enable-shared
30077@endif lto-plugin-bootstrap
4fa63067 30078
a90ef4bf
JM
30079.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
30080maybe-configure-stagefeedback-lto-plugin:
30081@if lto-plugin-bootstrap
30082maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
30083configure-stagefeedback-lto-plugin:
30084 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
30085 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
30086 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30088 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
30089 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30090 $(HOST_EXPORTS) \
a90ef4bf
JM
30091 $(POSTSTAGE1_HOST_EXPORTS) \
30092 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
30093 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
30094 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
30095 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin ; \
30096 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30097 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30098 case $(srcdir) in \
30099 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30100 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30101 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30102 esac; \
30103 srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
30104 libsrcdir="$$s/lto-plugin"; \
30105 $(SHELL) $${libsrcdir}/configure \
30106 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
30107 --target=${target_alias} $${srcdiroption} \
30108 --with-build-libsubdir=$(HOST_SUBDIR) \
30109 $(STAGEfeedback_CONFIGURE_FLAGS) \
30110 --enable-shared
30111@endif lto-plugin-bootstrap
252b5132 30112
56a8fe78 30113
56a8fe78 30114
56a8fe78 30115
6d389afc 30116
a90ef4bf
JM
30117.PHONY: all-lto-plugin maybe-all-lto-plugin
30118maybe-all-lto-plugin:
30119@if gcc-bootstrap
30120all-lto-plugin: stage_current
30121@endif gcc-bootstrap
30122@if lto-plugin
30123TARGET-lto-plugin=all
30124maybe-all-lto-plugin: all-lto-plugin
30125all-lto-plugin: configure-lto-plugin
30126 @r=`${PWD_COMMAND}`; export r; \
6d389afc 30127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30128 $(HOST_EXPORTS) \
30129 (cd $(HOST_SUBDIR)/lto-plugin && \
b3676d82 30130 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30131 $(TARGET-lto-plugin))
30132@endif lto-plugin
6d389afc 30133
6d389afc 30134
252b5132 30135
a90ef4bf
JM
30136.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
30137.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
30138maybe-all-stage1-lto-plugin:
30139maybe-clean-stage1-lto-plugin:
30140@if lto-plugin-bootstrap
30141maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
30142all-stage1: all-stage1-lto-plugin
30143TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
30144all-stage1-lto-plugin: configure-stage1-lto-plugin
30145 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30146 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30148 TFLAGS="$(STAGE1_TFLAGS)"; \
30149 $(HOST_EXPORTS) \
30150 cd $(HOST_SUBDIR)/lto-plugin && \
30151 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30152 CFLAGS="$(STAGE1_CFLAGS)" \
30153 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
30154 LIBCFLAGS="$(LIBCFLAGS)" \
30155 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30156 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30157 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
30158 $(EXTRA_HOST_FLAGS) \
30159 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30160 TFLAGS="$(STAGE1_TFLAGS)" \
30161 $(TARGET-stage1-lto-plugin)
3866be5d 30162
a90ef4bf
JM
30163maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
30164clean-stage1: clean-stage1-lto-plugin
30165clean-stage1-lto-plugin:
30166 @if [ $(current_stage) = stage1 ]; then \
30167 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30168 else \
30169 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
30170 $(MAKE) stage1-start; \
30171 fi; \
30172 cd $(HOST_SUBDIR)/lto-plugin && \
30173 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 30174 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 30175@endif lto-plugin-bootstrap
3866be5d 30176
3866be5d 30177
a90ef4bf
JM
30178.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
30179.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
30180maybe-all-stage2-lto-plugin:
30181maybe-clean-stage2-lto-plugin:
30182@if lto-plugin-bootstrap
30183maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
30184all-stage2: all-stage2-lto-plugin
30185TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
30186all-stage2-lto-plugin: configure-stage2-lto-plugin
30187 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30188 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30190 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 30191 $(HOST_EXPORTS) \
a90ef4bf
JM
30192 $(POSTSTAGE1_HOST_EXPORTS) \
30193 cd $(HOST_SUBDIR)/lto-plugin && \
30194 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30195 CFLAGS="$(STAGE2_CFLAGS)" \
30196 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
30197 LIBCFLAGS="$(STAGE2_CFLAGS)" \
30198 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30199 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30200 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30201 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
30202 TFLAGS="$(STAGE2_TFLAGS)" \
30203 $(TARGET-stage2-lto-plugin)
3866be5d 30204
a90ef4bf
JM
30205maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
30206clean-stage2: clean-stage2-lto-plugin
30207clean-stage2-lto-plugin:
30208 @if [ $(current_stage) = stage2 ]; then \
30209 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30210 else \
30211 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
30212 $(MAKE) stage2-start; \
30213 fi; \
30214 cd $(HOST_SUBDIR)/lto-plugin && \
b3676d82 30215 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 30216@endif lto-plugin-bootstrap
3866be5d 30217
a3ca38d2 30218
a90ef4bf
JM
30219.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
30220.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
30221maybe-all-stage3-lto-plugin:
30222maybe-clean-stage3-lto-plugin:
30223@if lto-plugin-bootstrap
30224maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
30225all-stage3: all-stage3-lto-plugin
30226TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
30227all-stage3-lto-plugin: configure-stage3-lto-plugin
30228 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30229 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 30230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30231 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 30232 $(HOST_EXPORTS) \
a90ef4bf
JM
30233 $(POSTSTAGE1_HOST_EXPORTS) \
30234 cd $(HOST_SUBDIR)/lto-plugin && \
30235 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30236 CFLAGS="$(STAGE3_CFLAGS)" \
30237 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
30238 LIBCFLAGS="$(STAGE3_CFLAGS)" \
30239 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30240 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30241 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30242 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
30243 TFLAGS="$(STAGE3_TFLAGS)" \
30244 $(TARGET-stage3-lto-plugin)
a3ca38d2 30245
a90ef4bf
JM
30246maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
30247clean-stage3: clean-stage3-lto-plugin
30248clean-stage3-lto-plugin:
30249 @if [ $(current_stage) = stage3 ]; then \
30250 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30251 else \
30252 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
30253 $(MAKE) stage3-start; \
30254 fi; \
30255 cd $(HOST_SUBDIR)/lto-plugin && \
b3676d82 30256 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 30257@endif lto-plugin-bootstrap
a3ca38d2 30258
108a6f8e 30259
a90ef4bf
JM
30260.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
30261.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
30262maybe-all-stage4-lto-plugin:
30263maybe-clean-stage4-lto-plugin:
30264@if lto-plugin-bootstrap
30265maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
30266all-stage4: all-stage4-lto-plugin
30267TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
30268all-stage4-lto-plugin: configure-stage4-lto-plugin
30269 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30270 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 30271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30272 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 30273 $(HOST_EXPORTS) \
a90ef4bf
JM
30274 $(POSTSTAGE1_HOST_EXPORTS) \
30275 cd $(HOST_SUBDIR)/lto-plugin && \
30276 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30277 CFLAGS="$(STAGE4_CFLAGS)" \
30278 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
30279 LIBCFLAGS="$(STAGE4_CFLAGS)" \
30280 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30281 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30282 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30283 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
30284 TFLAGS="$(STAGE4_TFLAGS)" \
30285 $(TARGET-stage4-lto-plugin)
108a6f8e 30286
a90ef4bf
JM
30287maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
30288clean-stage4: clean-stage4-lto-plugin
30289clean-stage4-lto-plugin:
30290 @if [ $(current_stage) = stage4 ]; then \
30291 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30292 else \
30293 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
30294 $(MAKE) stage4-start; \
30295 fi; \
30296 cd $(HOST_SUBDIR)/lto-plugin && \
b3676d82 30297 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 30298@endif lto-plugin-bootstrap
4fa63067 30299
4fa63067 30300
a90ef4bf
JM
30301.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
30302.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
30303maybe-all-stageprofile-lto-plugin:
30304maybe-clean-stageprofile-lto-plugin:
30305@if lto-plugin-bootstrap
30306maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
30307all-stageprofile: all-stageprofile-lto-plugin
30308TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
30309all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
30310 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30311 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30313 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 30314 $(HOST_EXPORTS) \
a90ef4bf
JM
30315 $(POSTSTAGE1_HOST_EXPORTS) \
30316 cd $(HOST_SUBDIR)/lto-plugin && \
30317 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30318 CFLAGS="$(STAGEprofile_CFLAGS)" \
30319 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
30320 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
30321 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30322 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30323 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30324 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
30325 TFLAGS="$(STAGEprofile_TFLAGS)" \
30326 $(TARGET-stageprofile-lto-plugin)
4fa63067 30327
a90ef4bf
JM
30328maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
30329clean-stageprofile: clean-stageprofile-lto-plugin
30330clean-stageprofile-lto-plugin:
30331 @if [ $(current_stage) = stageprofile ]; then \
30332 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30333 else \
30334 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
30335 $(MAKE) stageprofile-start; \
30336 fi; \
30337 cd $(HOST_SUBDIR)/lto-plugin && \
b3676d82 30338 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 30339@endif lto-plugin-bootstrap
4fa63067 30340
4fa63067 30341
a90ef4bf
JM
30342.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
30343.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
30344maybe-all-stagefeedback-lto-plugin:
30345maybe-clean-stagefeedback-lto-plugin:
30346@if lto-plugin-bootstrap
30347maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
30348all-stagefeedback: all-stagefeedback-lto-plugin
30349TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
30350all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
30351 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
30352 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30354 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 30355 $(HOST_EXPORTS) \
a90ef4bf
JM
30356 $(POSTSTAGE1_HOST_EXPORTS) \
30357 cd $(HOST_SUBDIR)/lto-plugin && \
30358 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30359 CFLAGS="$(STAGEfeedback_CFLAGS)" \
30360 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
30361 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
30362 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30363 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30364 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
30365 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
30366 TFLAGS="$(STAGEfeedback_TFLAGS)" \
30367 $(TARGET-stagefeedback-lto-plugin)
3866be5d 30368
a90ef4bf
JM
30369maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
30370clean-stagefeedback: clean-stagefeedback-lto-plugin
30371clean-stagefeedback-lto-plugin:
30372 @if [ $(current_stage) = stagefeedback ]; then \
30373 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30374 else \
30375 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
30376 $(MAKE) stagefeedback-start; \
30377 fi; \
30378 cd $(HOST_SUBDIR)/lto-plugin && \
b3676d82 30379 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 30380@endif lto-plugin-bootstrap
a7254363 30381
e2b9e2dc 30382
a7254363
PB
30383
30384
d545f33b 30385
a90ef4bf
JM
30386.PHONY: check-lto-plugin maybe-check-lto-plugin
30387maybe-check-lto-plugin:
30388@if lto-plugin
30389maybe-check-lto-plugin: check-lto-plugin
d545f33b 30390
a90ef4bf 30391check-lto-plugin:
0aed8855 30392 @: $(MAKE); $(unstage)
b40e3958
L
30393 @r=`${PWD_COMMAND}`; export r; \
30394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30395 $(HOST_EXPORTS) \
30396 (cd $(HOST_SUBDIR)/lto-plugin && \
30397 $(MAKE) $(FLAGS_TO_PASS) check)
3866be5d 30398
a90ef4bf 30399@endif lto-plugin
3866be5d 30400
a90ef4bf
JM
30401.PHONY: install-lto-plugin maybe-install-lto-plugin
30402maybe-install-lto-plugin:
30403@if lto-plugin
30404maybe-install-lto-plugin: install-lto-plugin
4fa63067 30405
a90ef4bf 30406install-lto-plugin: installdirs
0aed8855 30407 @: $(MAKE); $(unstage)
4fa63067
NN
30408 @r=`${PWD_COMMAND}`; export r; \
30409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30410 $(HOST_EXPORTS) \
a90ef4bf 30411 (cd $(HOST_SUBDIR)/lto-plugin && \
2da12f12 30412 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30413
a90ef4bf 30414@endif lto-plugin
4fa63067 30415
a90ef4bf
JM
30416.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
30417maybe-install-strip-lto-plugin:
30418@if lto-plugin
30419maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 30420
a90ef4bf 30421install-strip-lto-plugin: installdirs
9b980aa1
RW
30422 @: $(MAKE); $(unstage)
30423 @r=`${PWD_COMMAND}`; export r; \
30424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30425 $(HOST_EXPORTS) \
a90ef4bf 30426 (cd $(HOST_SUBDIR)/lto-plugin && \
9b980aa1
RW
30427 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30428
a90ef4bf 30429@endif lto-plugin
9b980aa1 30430
56a8fe78 30431# Other targets (info, dvi, pdf, etc.)
4fa63067 30432
a90ef4bf
JM
30433.PHONY: maybe-info-lto-plugin info-lto-plugin
30434maybe-info-lto-plugin:
30435@if lto-plugin
30436maybe-info-lto-plugin: info-lto-plugin
4fa63067 30437
a90ef4bf
JM
30438info-lto-plugin: \
30439 configure-lto-plugin
30440 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30441 r=`${PWD_COMMAND}`; export r; \
30442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30443 $(HOST_EXPORTS) \
b813574b 30444 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30446 done; \
a90ef4bf
JM
30447 echo "Doing info in lto-plugin" ; \
30448 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30451 "RANLIB=$${RANLIB}" \
0c24b341 30452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30453 info) \
4fa63067
NN
30454 || exit 1
30455
a90ef4bf 30456@endif lto-plugin
4fa63067 30457
a90ef4bf
JM
30458.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
30459maybe-dvi-lto-plugin:
30460@if lto-plugin
30461maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 30462
a90ef4bf
JM
30463dvi-lto-plugin: \
30464 configure-lto-plugin
30465 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30466 r=`${PWD_COMMAND}`; export r; \
30467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30468 $(HOST_EXPORTS) \
b813574b 30469 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30471 done; \
a90ef4bf
JM
30472 echo "Doing dvi in lto-plugin" ; \
30473 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30476 "RANLIB=$${RANLIB}" \
0c24b341 30477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30478 dvi) \
4fa63067
NN
30479 || exit 1
30480
a90ef4bf 30481@endif lto-plugin
4fa63067 30482
a90ef4bf
JM
30483.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
30484maybe-pdf-lto-plugin:
30485@if lto-plugin
30486maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 30487
a90ef4bf
JM
30488pdf-lto-plugin: \
30489 configure-lto-plugin
30490 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
30491 r=`${PWD_COMMAND}`; export r; \
30492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30493 $(HOST_EXPORTS) \
30494 for flag in $(EXTRA_HOST_FLAGS) ; do \
30495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30496 done; \
a90ef4bf
JM
30497 echo "Doing pdf in lto-plugin" ; \
30498 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
30499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30501 "RANLIB=$${RANLIB}" \
0c24b341 30502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30503 pdf) \
30504 || exit 1
30505
a90ef4bf 30506@endif lto-plugin
56a8fe78 30507
a90ef4bf
JM
30508.PHONY: maybe-html-lto-plugin html-lto-plugin
30509maybe-html-lto-plugin:
30510@if lto-plugin
30511maybe-html-lto-plugin: html-lto-plugin
6d389afc 30512
a90ef4bf
JM
30513html-lto-plugin: \
30514 configure-lto-plugin
30515 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
30516 r=`${PWD_COMMAND}`; export r; \
30517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30518 $(HOST_EXPORTS) \
30519 for flag in $(EXTRA_HOST_FLAGS) ; do \
30520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30521 done; \
a90ef4bf
JM
30522 echo "Doing html in lto-plugin" ; \
30523 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
30524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30526 "RANLIB=$${RANLIB}" \
0c24b341 30527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30528 html) \
30529 || exit 1
30530
a90ef4bf 30531@endif lto-plugin
6d389afc 30532
a90ef4bf
JM
30533.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
30534maybe-TAGS-lto-plugin:
30535@if lto-plugin
30536maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 30537
a90ef4bf
JM
30538TAGS-lto-plugin: \
30539 configure-lto-plugin
30540 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30541 r=`${PWD_COMMAND}`; export r; \
30542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30543 $(HOST_EXPORTS) \
b813574b 30544 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30546 done; \
a90ef4bf
JM
30547 echo "Doing TAGS in lto-plugin" ; \
30548 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30551 "RANLIB=$${RANLIB}" \
0c24b341 30552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30553 TAGS) \
4fa63067
NN
30554 || exit 1
30555
a90ef4bf 30556@endif lto-plugin
4fa63067 30557
a90ef4bf
JM
30558.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
30559maybe-install-info-lto-plugin:
30560@if lto-plugin
30561maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 30562
a90ef4bf
JM
30563install-info-lto-plugin: \
30564 configure-lto-plugin \
30565 info-lto-plugin
30566 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30567 r=`${PWD_COMMAND}`; export r; \
30568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30569 $(HOST_EXPORTS) \
b813574b 30570 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30572 done; \
a90ef4bf
JM
30573 echo "Doing install-info in lto-plugin" ; \
30574 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30577 "RANLIB=$${RANLIB}" \
0c24b341 30578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30579 install-info) \
4fa63067
NN
30580 || exit 1
30581
a90ef4bf 30582@endif lto-plugin
4fa63067 30583
a90ef4bf
JM
30584.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
30585maybe-install-pdf-lto-plugin:
30586@if lto-plugin
30587maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 30588
a90ef4bf
JM
30589install-pdf-lto-plugin: \
30590 configure-lto-plugin \
30591 pdf-lto-plugin
30592 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
30593 r=`${PWD_COMMAND}`; export r; \
30594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30595 $(HOST_EXPORTS) \
30596 for flag in $(EXTRA_HOST_FLAGS) ; do \
30597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30598 done; \
a90ef4bf
JM
30599 echo "Doing install-pdf in lto-plugin" ; \
30600 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
30601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30603 "RANLIB=$${RANLIB}" \
0c24b341 30604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30605 install-pdf) \
30606 || exit 1
30607
a90ef4bf 30608@endif lto-plugin
a3ca38d2 30609
a90ef4bf
JM
30610.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
30611maybe-install-html-lto-plugin:
30612@if lto-plugin
30613maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 30614
a90ef4bf
JM
30615install-html-lto-plugin: \
30616 configure-lto-plugin \
30617 html-lto-plugin
30618 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
30619 r=`${PWD_COMMAND}`; export r; \
30620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30621 $(HOST_EXPORTS) \
30622 for flag in $(EXTRA_HOST_FLAGS) ; do \
30623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30624 done; \
a90ef4bf
JM
30625 echo "Doing install-html in lto-plugin" ; \
30626 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
30627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30629 "RANLIB=$${RANLIB}" \
0c24b341 30630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30631 install-html) \
30632 || exit 1
30633
a90ef4bf 30634@endif lto-plugin
108a6f8e 30635
a90ef4bf
JM
30636.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
30637maybe-installcheck-lto-plugin:
30638@if lto-plugin
30639maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 30640
a90ef4bf
JM
30641installcheck-lto-plugin: \
30642 configure-lto-plugin
30643 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30644 r=`${PWD_COMMAND}`; export r; \
30645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30646 $(HOST_EXPORTS) \
b813574b 30647 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30649 done; \
a90ef4bf
JM
30650 echo "Doing installcheck in lto-plugin" ; \
30651 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30654 "RANLIB=$${RANLIB}" \
0c24b341 30655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30656 installcheck) \
4fa63067
NN
30657 || exit 1
30658
a90ef4bf 30659@endif lto-plugin
4fa63067 30660
a90ef4bf
JM
30661.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
30662maybe-mostlyclean-lto-plugin:
30663@if lto-plugin
30664maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 30665
a90ef4bf
JM
30666mostlyclean-lto-plugin:
30667 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30668 r=`${PWD_COMMAND}`; export r; \
30669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30670 $(HOST_EXPORTS) \
b813574b 30671 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30673 done; \
a90ef4bf
JM
30674 echo "Doing mostlyclean in lto-plugin" ; \
30675 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30678 "RANLIB=$${RANLIB}" \
0c24b341 30679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30680 mostlyclean) \
4fa63067
NN
30681 || exit 1
30682
a90ef4bf 30683@endif lto-plugin
4fa63067 30684
a90ef4bf
JM
30685.PHONY: maybe-clean-lto-plugin clean-lto-plugin
30686maybe-clean-lto-plugin:
30687@if lto-plugin
30688maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 30689
a90ef4bf
JM
30690clean-lto-plugin:
30691 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30692 r=`${PWD_COMMAND}`; export r; \
30693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30694 $(HOST_EXPORTS) \
b813574b 30695 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30697 done; \
a90ef4bf
JM
30698 echo "Doing clean in lto-plugin" ; \
30699 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30702 "RANLIB=$${RANLIB}" \
0c24b341 30703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30704 clean) \
4fa63067
NN
30705 || exit 1
30706
a90ef4bf 30707@endif lto-plugin
4fa63067 30708
a90ef4bf
JM
30709.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
30710maybe-distclean-lto-plugin:
30711@if lto-plugin
30712maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 30713
a90ef4bf
JM
30714distclean-lto-plugin:
30715 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30716 r=`${PWD_COMMAND}`; export r; \
30717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30718 $(HOST_EXPORTS) \
b813574b 30719 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30721 done; \
a90ef4bf
JM
30722 echo "Doing distclean in lto-plugin" ; \
30723 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30726 "RANLIB=$${RANLIB}" \
0c24b341 30727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30728 distclean) \
4fa63067
NN
30729 || exit 1
30730
a90ef4bf 30731@endif lto-plugin
4fa63067 30732
a90ef4bf
JM
30733.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
30734maybe-maintainer-clean-lto-plugin:
30735@if lto-plugin
30736maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 30737
a90ef4bf
JM
30738maintainer-clean-lto-plugin:
30739 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
30740 r=`${PWD_COMMAND}`; export r; \
30741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30742 $(HOST_EXPORTS) \
b813574b 30743 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30745 done; \
a90ef4bf
JM
30746 echo "Doing maintainer-clean in lto-plugin" ; \
30747 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
30748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30750 "RANLIB=$${RANLIB}" \
0c24b341 30751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30752 maintainer-clean) \
4fa63067 30753 || exit 1
16ae0395 30754
a90ef4bf
JM
30755@endif lto-plugin
30756
30757
30758
30759# ---------------------------------------
30760# Modules which run on the target machine
30761# ---------------------------------------
30762
3866be5d
NN
30763
30764
a7254363 30765
a90ef4bf
JM
30766.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
30767maybe-configure-target-libstdc++-v3:
4f0ef2d8 30768@if gcc-bootstrap
a90ef4bf 30769configure-target-libstdc++-v3: stage_current
4f0ef2d8 30770@endif gcc-bootstrap
a90ef4bf
JM
30771@if target-libstdc++-v3
30772maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
30773configure-target-libstdc++-v3:
c52c6897 30774 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30776 echo "Checking multilib configuration for libstdc++-v3..."; \
30777 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30778 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30779 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30780 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30781 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30782 else \
30783 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30784 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30785 fi; \
30786 else \
30787 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30788 fi; \
30789 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30790 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30791 $(RAW_CXX_TARGET_EXPORTS) \
30792 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
30793 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
e2b9e2dc 30794 case $(srcdir) in \
b00612cc 30795 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30796 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
b00612cc 30797 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 30798 esac; \
a90ef4bf
JM
30799 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30800 libsrcdir="$$s/libstdc++-v3"; \
30801 rm -f no-such-file || : ; \
30802 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
30803 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
4b900473 30804 --target=${target_alias} $${srcdiroption} \
e2b9e2dc 30805 || exit 1
a90ef4bf 30806@endif target-libstdc++-v3
d545f33b
PB
30807
30808
3866be5d 30809
a90ef4bf
JM
30810.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
30811maybe-configure-stage1-target-libstdc++-v3:
30812@if target-libstdc++-v3-bootstrap
30813maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
30814configure-stage1-target-libstdc++-v3:
30815 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30816 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
b40e3958
L
30817 @r=`${PWD_COMMAND}`; export r; \
30818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30819 TFLAGS="$(STAGE1_TFLAGS)"; \
30820 echo "Checking multilib configuration for libstdc++-v3..."; \
30821 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30822 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30823 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30824 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30825 else \
30826 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30827 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30828 fi; \
30829 else \
30830 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30831 fi; \
30832 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30833 $(RAW_CXX_TARGET_EXPORTS) \
30834 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30835 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
30836 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
30837 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30838 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30839 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30840 case $(srcdir) in \
30841 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30842 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30843 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30844 esac; \
30845 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30846 libsrcdir="$$s/libstdc++-v3"; \
30847 $(SHELL) $${libsrcdir}/configure \
30848 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30849 --target=${target_alias} $${srcdiroption} \
30850 $(STAGE1_CONFIGURE_FLAGS)
30851@endif target-libstdc++-v3-bootstrap
16ae0395 30852
a90ef4bf
JM
30853.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
30854maybe-configure-stage2-target-libstdc++-v3:
30855@if target-libstdc++-v3-bootstrap
30856maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
30857configure-stage2-target-libstdc++-v3:
30858 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30859 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
b40e3958
L
30860 @r=`${PWD_COMMAND}`; export r; \
30861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30862 TFLAGS="$(STAGE2_TFLAGS)"; \
30863 echo "Checking multilib configuration for libstdc++-v3..."; \
30864 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30865 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30866 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30867 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30868 else \
30869 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30870 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30871 fi; \
30872 else \
30873 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30874 fi; \
30875 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30876 $(RAW_CXX_TARGET_EXPORTS) \
30877 \
30878 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30879 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
30880 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
30881 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30882 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30883 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30884 case $(srcdir) in \
30885 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30886 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30887 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30888 esac; \
30889 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30890 libsrcdir="$$s/libstdc++-v3"; \
30891 $(SHELL) $${libsrcdir}/configure \
30892 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30893 --target=${target_alias} $${srcdiroption} \
30894 --with-build-libsubdir=$(HOST_SUBDIR) \
30895 $(STAGE2_CONFIGURE_FLAGS)
30896@endif target-libstdc++-v3-bootstrap
9b980aa1 30897
a90ef4bf
JM
30898.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
30899maybe-configure-stage3-target-libstdc++-v3:
30900@if target-libstdc++-v3-bootstrap
30901maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
30902configure-stage3-target-libstdc++-v3:
30903 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30904 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
e8a5fa9c
RW
30905 @r=`${PWD_COMMAND}`; export r; \
30906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30907 TFLAGS="$(STAGE3_TFLAGS)"; \
30908 echo "Checking multilib configuration for libstdc++-v3..."; \
30909 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30910 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30911 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30912 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30913 else \
30914 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30915 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30916 fi; \
30917 else \
30918 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30919 fi; \
30920 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30921 $(RAW_CXX_TARGET_EXPORTS) \
30922 \
30923 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30924 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f53ca9a 30925 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
e8a5fa9c
RW
30926 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30927 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30928 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30929 case $(srcdir) in \
30930 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30931 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30932 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30933 esac; \
30934 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30935 libsrcdir="$$s/libstdc++-v3"; \
30936 $(SHELL) $${libsrcdir}/configure \
30937 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30938 --target=${target_alias} $${srcdiroption} \
30939 --with-build-libsubdir=$(HOST_SUBDIR) \
30940 $(STAGE3_CONFIGURE_FLAGS)
30941@endif target-libstdc++-v3-bootstrap
30942
30943.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
30944maybe-configure-stage4-target-libstdc++-v3:
30945@if target-libstdc++-v3-bootstrap
30946maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
30947configure-stage4-target-libstdc++-v3:
30948 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30949 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
30950 @r=`${PWD_COMMAND}`; export r; \
30951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30952 TFLAGS="$(STAGE4_TFLAGS)"; \
30953 echo "Checking multilib configuration for libstdc++-v3..."; \
30954 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
30955 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30956 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
30957 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
30958 else \
30959 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
30960 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30961 fi; \
30962 else \
30963 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
30964 fi; \
30965 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
30966 $(RAW_CXX_TARGET_EXPORTS) \
30967 \
30968 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
30969 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f53ca9a 30970 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
e8a5fa9c
RW
30971 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
30972 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
30973 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
30974 case $(srcdir) in \
30975 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30976 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
30977 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30978 esac; \
30979 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
30980 libsrcdir="$$s/libstdc++-v3"; \
30981 $(SHELL) $${libsrcdir}/configure \
30982 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
30983 --target=${target_alias} $${srcdiroption} \
30984 --with-build-libsubdir=$(HOST_SUBDIR) \
30985 $(STAGE4_CONFIGURE_FLAGS)
30986@endif target-libstdc++-v3-bootstrap
30987
30988.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
30989maybe-configure-stageprofile-target-libstdc++-v3:
30990@if target-libstdc++-v3-bootstrap
30991maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
30992configure-stageprofile-target-libstdc++-v3:
30993 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30994 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
30995 @r=`${PWD_COMMAND}`; export r; \
30996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30997 TFLAGS="$(STAGEprofile_TFLAGS)"; \
30998 echo "Checking multilib configuration for libstdc++-v3..."; \
30999 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
31000 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
31001 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
31002 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
31003 else \
31004 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
31005 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
31006 fi; \
31007 else \
31008 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
31009 fi; \
31010 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
31011 $(RAW_CXX_TARGET_EXPORTS) \
31012 \
31013 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
31014 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f53ca9a 31015 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
e8a5fa9c
RW
31016 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3 ; \
31017 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
31018 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
31019 case $(srcdir) in \
31020 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31021 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
31022 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31023 esac; \
31024 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
31025 libsrcdir="$$s/libstdc++-v3"; \
31026 $(SHELL) $${libsrcdir}/configure \
31027 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31028 --target=${target_alias} $${srcdiroption} \
31029 --with-build-libsubdir=$(HOST_SUBDIR) \
31030 $(STAGEprofile_CONFIGURE_FLAGS)
31031@endif target-libstdc++-v3-bootstrap
31032
31033.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
31034maybe-configure-stagefeedback-target-libstdc++-v3:
31035@if target-libstdc++-v3-bootstrap
31036maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
31037configure-stagefeedback-target-libstdc++-v3:
31038 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31039 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
31040 @r=`${PWD_COMMAND}`; export r; \
31041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31042 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31043 echo "Checking multilib configuration for libstdc++-v3..."; \
31044 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
31045 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
31046 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
31047 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
31048 else \
31049 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
31050 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
31051 fi; \
31052 else \
31053 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
31054 fi; \
31055 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
31056 $(RAW_CXX_TARGET_EXPORTS) \
31057 \
31058 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
31059 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1f53ca9a 31060 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
e8a5fa9c
RW
31061 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3 ; \
31062 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
31063 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
31064 case $(srcdir) in \
31065 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31066 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
31067 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31068 esac; \
31069 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
31070 libsrcdir="$$s/libstdc++-v3"; \
31071 $(SHELL) $${libsrcdir}/configure \
31072 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31073 --target=${target_alias} $${srcdiroption} \
31074 --with-build-libsubdir=$(HOST_SUBDIR) \
31075 $(STAGEfeedback_CONFIGURE_FLAGS)
31076@endif target-libstdc++-v3-bootstrap
31077
31078
31079
d545f33b
PB
31080
31081
4fa63067
NN
31082.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
31083maybe-all-target-libstdc++-v3:
4f0ef2d8
CD
31084@if gcc-bootstrap
31085all-target-libstdc++-v3: stage_current
31086@endif gcc-bootstrap
6bd3dfaa 31087@if target-libstdc++-v3
72b2455a 31088TARGET-target-libstdc++-v3=all
6bd3dfaa 31089maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
4fa63067 31090all-target-libstdc++-v3: configure-target-libstdc++-v3
b40e3958
L
31091 @r=`${PWD_COMMAND}`; export r; \
31092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31093 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 31094 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
b3676d82 31095 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 31096 $(TARGET-target-libstdc++-v3))
6bd3dfaa 31097@endif target-libstdc++-v3
3866be5d 31098
a7254363
PB
31099
31100
e8a5fa9c
RW
31101.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
31102.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
31103maybe-all-stage1-target-libstdc++-v3:
31104maybe-clean-stage1-target-libstdc++-v3:
31105@if target-libstdc++-v3-bootstrap
31106maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
31107all-stage1: all-stage1-target-libstdc++-v3
31108TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
31109all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
31110 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31111 @r=`${PWD_COMMAND}`; export r; \
31112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31113 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 31114 $(RAW_CXX_TARGET_EXPORTS) \
e8a5fa9c
RW
31115 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31116 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31117 CFLAGS="$(CFLAGS_FOR_TARGET)" \
31118 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
31119 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
31120 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31121 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31122 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
31123 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
31124 \
e8a5fa9c
RW
31125 TFLAGS="$(STAGE1_TFLAGS)" \
31126 $(TARGET-stage1-target-libstdc++-v3)
31127
31128maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
31129clean-stage1: clean-stage1-target-libstdc++-v3
31130clean-stage1-target-libstdc++-v3:
31131 @if [ $(current_stage) = stage1 ]; then \
31132 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
31133 else \
31134 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
31135 $(MAKE) stage1-start; \
31136 fi; \
31137 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31138 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
b3676d82 31139 clean
e8a5fa9c
RW
31140@endif target-libstdc++-v3-bootstrap
31141
31142
31143.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
31144.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
31145maybe-all-stage2-target-libstdc++-v3:
31146maybe-clean-stage2-target-libstdc++-v3:
31147@if target-libstdc++-v3-bootstrap
31148maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
31149all-stage2: all-stage2-target-libstdc++-v3
31150TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
31151all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
31152 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31153 @r=`${PWD_COMMAND}`; export r; \
31154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31155 TFLAGS="$(STAGE2_TFLAGS)"; \
31156 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 31157 \
e8a5fa9c
RW
31158 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31159 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31160 CFLAGS="$(CFLAGS_FOR_TARGET)" \
31161 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
31162 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
31163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
31166 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
31167 TFLAGS="$(STAGE2_TFLAGS)" \
31168 $(TARGET-stage2-target-libstdc++-v3)
31169
31170maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
31171clean-stage2: clean-stage2-target-libstdc++-v3
31172clean-stage2-target-libstdc++-v3:
31173 @if [ $(current_stage) = stage2 ]; then \
31174 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
31175 else \
31176 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
31177 $(MAKE) stage2-start; \
31178 fi; \
31179 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
b3676d82 31180 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
e8a5fa9c
RW
31181@endif target-libstdc++-v3-bootstrap
31182
31183
31184.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
31185.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
31186maybe-all-stage3-target-libstdc++-v3:
31187maybe-clean-stage3-target-libstdc++-v3:
31188@if target-libstdc++-v3-bootstrap
31189maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
31190all-stage3: all-stage3-target-libstdc++-v3
31191TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
31192all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
31193 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31194 @r=`${PWD_COMMAND}`; export r; \
31195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31196 TFLAGS="$(STAGE3_TFLAGS)"; \
31197 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 31198 \
e8a5fa9c
RW
31199 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31200 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31201 CFLAGS="$(CFLAGS_FOR_TARGET)" \
31202 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
31203 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
31204 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31205 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31206 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
31207 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
31208 TFLAGS="$(STAGE3_TFLAGS)" \
31209 $(TARGET-stage3-target-libstdc++-v3)
31210
31211maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
31212clean-stage3: clean-stage3-target-libstdc++-v3
31213clean-stage3-target-libstdc++-v3:
31214 @if [ $(current_stage) = stage3 ]; then \
31215 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
31216 else \
31217 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
31218 $(MAKE) stage3-start; \
31219 fi; \
31220 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
b3676d82 31221 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
e8a5fa9c
RW
31222@endif target-libstdc++-v3-bootstrap
31223
31224
31225.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
31226.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
31227maybe-all-stage4-target-libstdc++-v3:
31228maybe-clean-stage4-target-libstdc++-v3:
31229@if target-libstdc++-v3-bootstrap
31230maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
31231all-stage4: all-stage4-target-libstdc++-v3
31232TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
31233all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
31234 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31235 @r=`${PWD_COMMAND}`; export r; \
31236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31237 TFLAGS="$(STAGE4_TFLAGS)"; \
31238 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 31239 \
e8a5fa9c
RW
31240 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31241 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31242 CFLAGS="$(CFLAGS_FOR_TARGET)" \
31243 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
31244 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
31245 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31246 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31247 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
31248 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
31249 TFLAGS="$(STAGE4_TFLAGS)" \
31250 $(TARGET-stage4-target-libstdc++-v3)
31251
31252maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
31253clean-stage4: clean-stage4-target-libstdc++-v3
31254clean-stage4-target-libstdc++-v3:
31255 @if [ $(current_stage) = stage4 ]; then \
31256 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
31257 else \
31258 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
31259 $(MAKE) stage4-start; \
31260 fi; \
31261 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
b3676d82 31262 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
e8a5fa9c
RW
31263@endif target-libstdc++-v3-bootstrap
31264
31265
31266.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
31267.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
31268maybe-all-stageprofile-target-libstdc++-v3:
31269maybe-clean-stageprofile-target-libstdc++-v3:
31270@if target-libstdc++-v3-bootstrap
31271maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
31272all-stageprofile: all-stageprofile-target-libstdc++-v3
31273TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
31274all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
31275 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31276 @r=`${PWD_COMMAND}`; export r; \
31277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31278 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31279 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 31280 \
e8a5fa9c
RW
31281 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31282 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31283 CFLAGS="$(CFLAGS_FOR_TARGET)" \
31284 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
31285 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
31286 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31287 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31288 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
31289 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
31290 TFLAGS="$(STAGEprofile_TFLAGS)" \
31291 $(TARGET-stageprofile-target-libstdc++-v3)
31292
31293maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
31294clean-stageprofile: clean-stageprofile-target-libstdc++-v3
31295clean-stageprofile-target-libstdc++-v3:
31296 @if [ $(current_stage) = stageprofile ]; then \
31297 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
31298 else \
31299 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
31300 $(MAKE) stageprofile-start; \
31301 fi; \
31302 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
b3676d82 31303 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
e8a5fa9c
RW
31304@endif target-libstdc++-v3-bootstrap
31305
31306
31307.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
31308.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
31309maybe-all-stagefeedback-target-libstdc++-v3:
31310maybe-clean-stagefeedback-target-libstdc++-v3:
31311@if target-libstdc++-v3-bootstrap
31312maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
31313all-stagefeedback: all-stagefeedback-target-libstdc++-v3
31314TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
31315all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
31316 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31317 @r=`${PWD_COMMAND}`; export r; \
31318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31319 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31320 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 31321 \
e8a5fa9c
RW
31322 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31323 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31324 CFLAGS="$(CFLAGS_FOR_TARGET)" \
31325 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
31326 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
31327 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31328 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31329 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
31330 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
31331 TFLAGS="$(STAGEfeedback_TFLAGS)" \
31332 $(TARGET-stagefeedback-target-libstdc++-v3)
31333
31334maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
31335clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
31336clean-stagefeedback-target-libstdc++-v3:
31337 @if [ $(current_stage) = stagefeedback ]; then \
31338 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
31339 else \
31340 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
31341 $(MAKE) stagefeedback-start; \
31342 fi; \
31343 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
b3676d82 31344 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
e8a5fa9c
RW
31345@endif target-libstdc++-v3-bootstrap
31346
31347
31348
31349
d545f33b
PB
31350
31351
4fa63067
NN
31352.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
31353maybe-check-target-libstdc++-v3:
6bd3dfaa
PB
31354@if target-libstdc++-v3
31355maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
3866be5d 31356
4fa63067 31357check-target-libstdc++-v3:
0aed8855 31358 @: $(MAKE); $(unstage)
b40e3958
L
31359 @r=`${PWD_COMMAND}`; export r; \
31360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31361 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 31362 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
7ffa0b57 31363 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 31364
6bd3dfaa 31365@endif target-libstdc++-v3
3866be5d 31366
4fa63067
NN
31367.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
31368maybe-install-target-libstdc++-v3:
6bd3dfaa
PB
31369@if target-libstdc++-v3
31370maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
16ae0395 31371
4fa63067 31372install-target-libstdc++-v3: installdirs
0aed8855 31373 @: $(MAKE); $(unstage)
b40e3958
L
31374 @r=`${PWD_COMMAND}`; export r; \
31375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31376 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 31377 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
7ffa0b57 31378 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 31379
6bd3dfaa 31380@endif target-libstdc++-v3
e2b9e2dc 31381
9b980aa1
RW
31382.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
31383maybe-install-strip-target-libstdc++-v3:
31384@if target-libstdc++-v3
31385maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
31386
31387install-strip-target-libstdc++-v3: installdirs
31388 @: $(MAKE); $(unstage)
31389 @r=`${PWD_COMMAND}`; export r; \
31390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31391 $(RAW_CXX_TARGET_EXPORTS) \
31392 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31393 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
31394
31395@endif target-libstdc++-v3
31396
56a8fe78 31397# Other targets (info, dvi, pdf, etc.)
3866be5d 31398
4fa63067
NN
31399.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
31400maybe-info-target-libstdc++-v3:
6bd3dfaa
PB
31401@if target-libstdc++-v3
31402maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
3866be5d 31403
4fa63067
NN
31404info-target-libstdc++-v3: \
31405 configure-target-libstdc++-v3
0aed8855 31406 @: $(MAKE); $(unstage)
4fa63067
NN
31407 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31408 r=`${PWD_COMMAND}`; export r; \
b40e3958 31409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31410 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31411 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31412 for flag in $(EXTRA_TARGET_FLAGS); do \
31413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31414 done; \
31415 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31418 "RANLIB=$${RANLIB}" \
0c24b341 31419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31420 info) \
4fa63067 31421 || exit 1
3866be5d 31422
6bd3dfaa 31423@endif target-libstdc++-v3
3866be5d 31424
4fa63067
NN
31425.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
31426maybe-dvi-target-libstdc++-v3:
6bd3dfaa
PB
31427@if target-libstdc++-v3
31428maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
16ae0395 31429
4fa63067
NN
31430dvi-target-libstdc++-v3: \
31431 configure-target-libstdc++-v3
0aed8855 31432 @: $(MAKE); $(unstage)
4fa63067
NN
31433 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31434 r=`${PWD_COMMAND}`; export r; \
b40e3958 31435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31436 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31437 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31438 for flag in $(EXTRA_TARGET_FLAGS); do \
31439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31440 done; \
31441 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31444 "RANLIB=$${RANLIB}" \
0c24b341 31445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31446 dvi) \
4fa63067 31447 || exit 1
3866be5d 31448
6bd3dfaa 31449@endif target-libstdc++-v3
3866be5d 31450
56a8fe78
DD
31451.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
31452maybe-pdf-target-libstdc++-v3:
31453@if target-libstdc++-v3
31454maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
31455
31456pdf-target-libstdc++-v3: \
31457 configure-target-libstdc++-v3
31458 @: $(MAKE); $(unstage)
31459 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31460 r=`${PWD_COMMAND}`; export r; \
31461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31462 $(RAW_CXX_TARGET_EXPORTS) \
31463 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31464 for flag in $(EXTRA_TARGET_FLAGS); do \
31465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31466 done; \
31467 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31470 "RANLIB=$${RANLIB}" \
0c24b341 31471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31472 pdf) \
31473 || exit 1
31474
31475@endif target-libstdc++-v3
31476
6d389afc
MS
31477.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
31478maybe-html-target-libstdc++-v3:
31479@if target-libstdc++-v3
31480maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
31481
31482html-target-libstdc++-v3: \
31483 configure-target-libstdc++-v3
0aed8855 31484 @: $(MAKE); $(unstage)
6d389afc
MS
31485 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31486 r=`${PWD_COMMAND}`; export r; \
31487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31488 $(RAW_CXX_TARGET_EXPORTS) \
31489 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31490 for flag in $(EXTRA_TARGET_FLAGS); do \
31491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31492 done; \
31493 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31496 "RANLIB=$${RANLIB}" \
0c24b341 31497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31498 html) \
31499 || exit 1
31500
31501@endif target-libstdc++-v3
31502
4fa63067
NN
31503.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
31504maybe-TAGS-target-libstdc++-v3:
6bd3dfaa
PB
31505@if target-libstdc++-v3
31506maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
4fa63067
NN
31507
31508TAGS-target-libstdc++-v3: \
31509 configure-target-libstdc++-v3
0aed8855 31510 @: $(MAKE); $(unstage)
4fa63067 31511 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
b40e3958
L
31512 r=`${PWD_COMMAND}`; export r; \
31513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31514 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31515 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31516 for flag in $(EXTRA_TARGET_FLAGS); do \
31517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31518 done; \
31519 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31522 "RANLIB=$${RANLIB}" \
0c24b341 31523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31524 TAGS) \
e2b9e2dc
NN
31525 || exit 1
31526
6bd3dfaa 31527@endif target-libstdc++-v3
3866be5d 31528
4fa63067
NN
31529.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
31530maybe-install-info-target-libstdc++-v3:
6bd3dfaa
PB
31531@if target-libstdc++-v3
31532maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
3866be5d 31533
4fa63067
NN
31534install-info-target-libstdc++-v3: \
31535 configure-target-libstdc++-v3 \
31536 info-target-libstdc++-v3
0aed8855 31537 @: $(MAKE); $(unstage)
4fa63067
NN
31538 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31539 r=`${PWD_COMMAND}`; export r; \
b40e3958 31540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31541 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31542 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31543 for flag in $(EXTRA_TARGET_FLAGS); do \
31544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31545 done; \
31546 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31549 "RANLIB=$${RANLIB}" \
0c24b341 31550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31551 install-info) \
4fa63067 31552 || exit 1
3866be5d 31553
6bd3dfaa 31554@endif target-libstdc++-v3
3866be5d 31555
a3ca38d2
DD
31556.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
31557maybe-install-pdf-target-libstdc++-v3:
31558@if target-libstdc++-v3
31559maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
31560
31561install-pdf-target-libstdc++-v3: \
31562 configure-target-libstdc++-v3 \
31563 pdf-target-libstdc++-v3
31564 @: $(MAKE); $(unstage)
31565 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31566 r=`${PWD_COMMAND}`; export r; \
31567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31568 $(RAW_CXX_TARGET_EXPORTS) \
31569 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31570 for flag in $(EXTRA_TARGET_FLAGS); do \
31571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31572 done; \
31573 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31576 "RANLIB=$${RANLIB}" \
0c24b341 31577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31578 install-pdf) \
31579 || exit 1
31580
31581@endif target-libstdc++-v3
31582
108a6f8e
CD
31583.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
31584maybe-install-html-target-libstdc++-v3:
31585@if target-libstdc++-v3
31586maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
31587
31588install-html-target-libstdc++-v3: \
31589 configure-target-libstdc++-v3 \
31590 html-target-libstdc++-v3
31591 @: $(MAKE); $(unstage)
31592 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31593 r=`${PWD_COMMAND}`; export r; \
31594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31595 $(RAW_CXX_TARGET_EXPORTS) \
31596 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31597 for flag in $(EXTRA_TARGET_FLAGS); do \
31598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31599 done; \
31600 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31603 "RANLIB=$${RANLIB}" \
0c24b341 31604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31605 install-html) \
31606 || exit 1
31607
31608@endif target-libstdc++-v3
31609
4fa63067
NN
31610.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
31611maybe-installcheck-target-libstdc++-v3:
6bd3dfaa
PB
31612@if target-libstdc++-v3
31613maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
16ae0395 31614
4fa63067
NN
31615installcheck-target-libstdc++-v3: \
31616 configure-target-libstdc++-v3
0aed8855 31617 @: $(MAKE); $(unstage)
4fa63067
NN
31618 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31619 r=`${PWD_COMMAND}`; export r; \
b40e3958 31620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31621 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31622 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31623 for flag in $(EXTRA_TARGET_FLAGS); do \
31624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31625 done; \
31626 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31629 "RANLIB=$${RANLIB}" \
0c24b341 31630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31631 installcheck) \
4fa63067 31632 || exit 1
3866be5d 31633
6bd3dfaa 31634@endif target-libstdc++-v3
3866be5d 31635
4fa63067
NN
31636.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
31637maybe-mostlyclean-target-libstdc++-v3:
6bd3dfaa
PB
31638@if target-libstdc++-v3
31639maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
4fa63067
NN
31640
31641mostlyclean-target-libstdc++-v3:
0aed8855 31642 @: $(MAKE); $(unstage)
4fa63067 31643 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
b40e3958
L
31644 r=`${PWD_COMMAND}`; export r; \
31645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31646 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31647 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31648 for flag in $(EXTRA_TARGET_FLAGS); do \
31649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31650 done; \
31651 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31654 "RANLIB=$${RANLIB}" \
0c24b341 31655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31656 mostlyclean) \
e2b9e2dc
NN
31657 || exit 1
31658
6bd3dfaa 31659@endif target-libstdc++-v3
4fa63067
NN
31660
31661.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
31662maybe-clean-target-libstdc++-v3:
6bd3dfaa
PB
31663@if target-libstdc++-v3
31664maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
4fa63067
NN
31665
31666clean-target-libstdc++-v3:
0aed8855 31667 @: $(MAKE); $(unstage)
4fa63067
NN
31668 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31669 r=`${PWD_COMMAND}`; export r; \
b40e3958 31670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31671 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31672 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31673 for flag in $(EXTRA_TARGET_FLAGS); do \
31674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31675 done; \
31676 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31679 "RANLIB=$${RANLIB}" \
0c24b341 31680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31681 clean) \
4fa63067 31682 || exit 1
3866be5d 31683
6bd3dfaa 31684@endif target-libstdc++-v3
3866be5d 31685
4fa63067
NN
31686.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
31687maybe-distclean-target-libstdc++-v3:
6bd3dfaa
PB
31688@if target-libstdc++-v3
31689maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
4fa63067
NN
31690
31691distclean-target-libstdc++-v3:
0aed8855 31692 @: $(MAKE); $(unstage)
4fa63067
NN
31693 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31694 r=`${PWD_COMMAND}`; export r; \
b40e3958 31695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31696 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31697 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31698 for flag in $(EXTRA_TARGET_FLAGS); do \
31699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31700 done; \
31701 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31704 "RANLIB=$${RANLIB}" \
0c24b341 31705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31706 distclean) \
4fa63067 31707 || exit 1
3866be5d 31708
6bd3dfaa 31709@endif target-libstdc++-v3
3866be5d 31710
4fa63067
NN
31711.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
31712maybe-maintainer-clean-target-libstdc++-v3:
6bd3dfaa
PB
31713@if target-libstdc++-v3
31714maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
16ae0395 31715
4fa63067 31716maintainer-clean-target-libstdc++-v3:
0aed8855 31717 @: $(MAKE); $(unstage)
4fa63067
NN
31718 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31719 r=`${PWD_COMMAND}`; export r; \
b40e3958 31720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31721 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
31722 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31723 for flag in $(EXTRA_TARGET_FLAGS); do \
31724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31725 done; \
31726 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31729 "RANLIB=$${RANLIB}" \
0c24b341 31730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 31731 maintainer-clean) \
4fa63067 31732 || exit 1
3866be5d 31733
6bd3dfaa 31734@endif target-libstdc++-v3
3866be5d 31735
4fa63067 31736
4fa63067 31737
a7254363
PB
31738
31739
5286fdef
L
31740.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
31741maybe-configure-target-libsanitizer:
31742@if gcc-bootstrap
31743configure-target-libsanitizer: stage_current
31744@endif gcc-bootstrap
31745@if target-libsanitizer
31746maybe-configure-target-libsanitizer: configure-target-libsanitizer
31747configure-target-libsanitizer:
5286fdef
L
31748 @r=`${PWD_COMMAND}`; export r; \
31749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31750 echo "Checking multilib configuration for libsanitizer..."; \
31751 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
31752 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
31753 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31754 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31755 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
31756 else \
31757 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
31758 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31759 fi; \
31760 else \
31761 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31762 fi; \
31763 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
31764 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
5eb08693 31765 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
31766 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
31767 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
31768 case $(srcdir) in \
31769 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31770 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
31771 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31772 esac; \
31773 srcdiroption="--srcdir=$${topdir}/libsanitizer"; \
31774 libsrcdir="$$s/libsanitizer"; \
31775 rm -f no-such-file || : ; \
31776 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
31777 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31778 --target=${target_alias} $${srcdiroption} \
31779 || exit 1
31780@endif target-libsanitizer
31781
31782
31783
5eb08693
L
31784.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
31785maybe-configure-stage1-target-libsanitizer:
31786@if target-libsanitizer-bootstrap
31787maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
31788configure-stage1-target-libsanitizer:
31789 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31790 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
31791 @r=`${PWD_COMMAND}`; export r; \
31792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31793 TFLAGS="$(STAGE1_TFLAGS)"; \
31794 echo "Checking multilib configuration for libsanitizer..."; \
31795 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
31796 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31797 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31798 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
31799 else \
31800 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
31801 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31802 fi; \
31803 else \
31804 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31805 fi; \
31806 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
31807 $(RAW_CXX_TARGET_EXPORTS) \
31808 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
31809 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
31810 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
31811 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer ; \
31812 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
31813 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
31814 case $(srcdir) in \
31815 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31816 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
31817 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31818 esac; \
31819 srcdiroption="--srcdir=$${topdir}/libsanitizer"; \
31820 libsrcdir="$$s/libsanitizer"; \
31821 $(SHELL) $${libsrcdir}/configure \
31822 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31823 --target=${target_alias} $${srcdiroption} \
31824 $(STAGE1_CONFIGURE_FLAGS)
31825@endif target-libsanitizer-bootstrap
31826
31827.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
31828maybe-configure-stage2-target-libsanitizer:
31829@if target-libsanitizer-bootstrap
31830maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
31831configure-stage2-target-libsanitizer:
31832 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31833 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
31834 @r=`${PWD_COMMAND}`; export r; \
31835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31836 TFLAGS="$(STAGE2_TFLAGS)"; \
31837 echo "Checking multilib configuration for libsanitizer..."; \
31838 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
31839 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31840 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31841 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
31842 else \
31843 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
31844 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31845 fi; \
31846 else \
31847 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31848 fi; \
31849 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
31850 $(RAW_CXX_TARGET_EXPORTS) \
31851 \
31852 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
31853 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
31854 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
31855 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer ; \
31856 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
31857 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
31858 case $(srcdir) in \
31859 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31860 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
31861 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31862 esac; \
31863 srcdiroption="--srcdir=$${topdir}/libsanitizer"; \
31864 libsrcdir="$$s/libsanitizer"; \
31865 $(SHELL) $${libsrcdir}/configure \
31866 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31867 --target=${target_alias} $${srcdiroption} \
31868 --with-build-libsubdir=$(HOST_SUBDIR) \
31869 $(STAGE2_CONFIGURE_FLAGS)
31870@endif target-libsanitizer-bootstrap
31871
31872.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
31873maybe-configure-stage3-target-libsanitizer:
31874@if target-libsanitizer-bootstrap
31875maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
31876configure-stage3-target-libsanitizer:
31877 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31878 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
31879 @r=`${PWD_COMMAND}`; export r; \
31880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31881 TFLAGS="$(STAGE3_TFLAGS)"; \
31882 echo "Checking multilib configuration for libsanitizer..."; \
31883 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
31884 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31885 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31886 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
31887 else \
31888 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
31889 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31890 fi; \
31891 else \
31892 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31893 fi; \
31894 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
31895 $(RAW_CXX_TARGET_EXPORTS) \
31896 \
31897 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
31898 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
31899 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
31900 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer ; \
31901 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
31902 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
31903 case $(srcdir) in \
31904 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31905 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
31906 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31907 esac; \
31908 srcdiroption="--srcdir=$${topdir}/libsanitizer"; \
31909 libsrcdir="$$s/libsanitizer"; \
31910 $(SHELL) $${libsrcdir}/configure \
31911 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31912 --target=${target_alias} $${srcdiroption} \
31913 --with-build-libsubdir=$(HOST_SUBDIR) \
31914 $(STAGE3_CONFIGURE_FLAGS)
31915@endif target-libsanitizer-bootstrap
31916
31917.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
31918maybe-configure-stage4-target-libsanitizer:
31919@if target-libsanitizer-bootstrap
31920maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
31921configure-stage4-target-libsanitizer:
31922 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31923 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
31924 @r=`${PWD_COMMAND}`; export r; \
31925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31926 TFLAGS="$(STAGE4_TFLAGS)"; \
31927 echo "Checking multilib configuration for libsanitizer..."; \
31928 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
31929 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31930 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31931 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
31932 else \
31933 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
31934 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31935 fi; \
31936 else \
31937 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31938 fi; \
31939 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
31940 $(RAW_CXX_TARGET_EXPORTS) \
31941 \
31942 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
31943 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
31944 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
31945 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer ; \
31946 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
31947 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
31948 case $(srcdir) in \
31949 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31950 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
31951 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31952 esac; \
31953 srcdiroption="--srcdir=$${topdir}/libsanitizer"; \
31954 libsrcdir="$$s/libsanitizer"; \
31955 $(SHELL) $${libsrcdir}/configure \
31956 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
31957 --target=${target_alias} $${srcdiroption} \
31958 --with-build-libsubdir=$(HOST_SUBDIR) \
31959 $(STAGE4_CONFIGURE_FLAGS)
31960@endif target-libsanitizer-bootstrap
31961
31962.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
31963maybe-configure-stageprofile-target-libsanitizer:
31964@if target-libsanitizer-bootstrap
31965maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
31966configure-stageprofile-target-libsanitizer:
31967 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31968 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
31969 @r=`${PWD_COMMAND}`; export r; \
31970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31971 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31972 echo "Checking multilib configuration for libsanitizer..."; \
31973 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
31974 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31975 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
31976 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
31977 else \
31978 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
31979 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31980 fi; \
31981 else \
31982 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
31983 fi; \
31984 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
31985 $(RAW_CXX_TARGET_EXPORTS) \
31986 \
31987 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
31988 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
31989 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
31990 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer ; \
31991 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
31992 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
31993 case $(srcdir) in \
31994 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31995 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
31996 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31997 esac; \
31998 srcdiroption="--srcdir=$${topdir}/libsanitizer"; \
31999 libsrcdir="$$s/libsanitizer"; \
32000 $(SHELL) $${libsrcdir}/configure \
32001 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32002 --target=${target_alias} $${srcdiroption} \
32003 --with-build-libsubdir=$(HOST_SUBDIR) \
32004 $(STAGEprofile_CONFIGURE_FLAGS)
32005@endif target-libsanitizer-bootstrap
32006
32007.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
32008maybe-configure-stagefeedback-target-libsanitizer:
32009@if target-libsanitizer-bootstrap
32010maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
32011configure-stagefeedback-target-libsanitizer:
32012 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32013 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
32014 @r=`${PWD_COMMAND}`; export r; \
32015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32016 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32017 echo "Checking multilib configuration for libsanitizer..."; \
32018 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
32019 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
32020 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
32021 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
32022 else \
32023 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
32024 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
32025 fi; \
32026 else \
32027 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
32028 fi; \
32029 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
32030 $(RAW_CXX_TARGET_EXPORTS) \
32031 \
32032 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32033 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32034 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32035 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer ; \
32036 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
32037 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
32038 case $(srcdir) in \
32039 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32040 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
32041 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32042 esac; \
32043 srcdiroption="--srcdir=$${topdir}/libsanitizer"; \
32044 libsrcdir="$$s/libsanitizer"; \
32045 $(SHELL) $${libsrcdir}/configure \
32046 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32047 --target=${target_alias} $${srcdiroption} \
32048 --with-build-libsubdir=$(HOST_SUBDIR) \
32049 $(STAGEfeedback_CONFIGURE_FLAGS)
32050@endif target-libsanitizer-bootstrap
32051
32052
32053
5286fdef
L
32054
32055
32056.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
32057maybe-all-target-libsanitizer:
32058@if gcc-bootstrap
32059all-target-libsanitizer: stage_current
32060@endif gcc-bootstrap
32061@if target-libsanitizer
32062TARGET-target-libsanitizer=all
32063maybe-all-target-libsanitizer: all-target-libsanitizer
32064all-target-libsanitizer: configure-target-libsanitizer
5286fdef
L
32065 @r=`${PWD_COMMAND}`; export r; \
32066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32067 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef 32068 (cd $(TARGET_SUBDIR)/libsanitizer && \
5eb08693 32069 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
5286fdef
L
32070 $(TARGET-target-libsanitizer))
32071@endif target-libsanitizer
32072
32073
32074
5eb08693
L
32075.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
32076.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
32077maybe-all-stage1-target-libsanitizer:
32078maybe-clean-stage1-target-libsanitizer:
32079@if target-libsanitizer-bootstrap
32080maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
32081all-stage1: all-stage1-target-libsanitizer
32082TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
32083all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
32084 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32085 @r=`${PWD_COMMAND}`; export r; \
32086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32087 TFLAGS="$(STAGE1_TFLAGS)"; \
32088 $(RAW_CXX_TARGET_EXPORTS) \
32089 cd $(TARGET_SUBDIR)/libsanitizer && \
32090 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32091 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32092 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32093 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32094 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32095 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32096 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32097 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32098 \
32099 TFLAGS="$(STAGE1_TFLAGS)" \
32100 $(TARGET-stage1-target-libsanitizer)
32101
32102maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
32103clean-stage1: clean-stage1-target-libsanitizer
32104clean-stage1-target-libsanitizer:
32105 @if [ $(current_stage) = stage1 ]; then \
32106 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
32107 else \
32108 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
32109 $(MAKE) stage1-start; \
32110 fi; \
32111 cd $(TARGET_SUBDIR)/libsanitizer && \
32112 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32113 clean
32114@endif target-libsanitizer-bootstrap
32115
32116
32117.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
32118.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
32119maybe-all-stage2-target-libsanitizer:
32120maybe-clean-stage2-target-libsanitizer:
32121@if target-libsanitizer-bootstrap
32122maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
32123all-stage2: all-stage2-target-libsanitizer
32124TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
32125all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
32126 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32127 @r=`${PWD_COMMAND}`; export r; \
32128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32129 TFLAGS="$(STAGE2_TFLAGS)"; \
32130 $(RAW_CXX_TARGET_EXPORTS) \
32131 \
32132 cd $(TARGET_SUBDIR)/libsanitizer && \
32133 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32134 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32135 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32136 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32137 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32138 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32139 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32140 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32141 TFLAGS="$(STAGE2_TFLAGS)" \
32142 $(TARGET-stage2-target-libsanitizer)
32143
32144maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
32145clean-stage2: clean-stage2-target-libsanitizer
32146clean-stage2-target-libsanitizer:
32147 @if [ $(current_stage) = stage2 ]; then \
32148 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
32149 else \
32150 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
32151 $(MAKE) stage2-start; \
32152 fi; \
32153 cd $(TARGET_SUBDIR)/libsanitizer && \
32154 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32155@endif target-libsanitizer-bootstrap
32156
32157
32158.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
32159.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
32160maybe-all-stage3-target-libsanitizer:
32161maybe-clean-stage3-target-libsanitizer:
32162@if target-libsanitizer-bootstrap
32163maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
32164all-stage3: all-stage3-target-libsanitizer
32165TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
32166all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
32167 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32168 @r=`${PWD_COMMAND}`; export r; \
32169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32170 TFLAGS="$(STAGE3_TFLAGS)"; \
32171 $(RAW_CXX_TARGET_EXPORTS) \
32172 \
32173 cd $(TARGET_SUBDIR)/libsanitizer && \
32174 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32175 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32176 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32177 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32178 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32179 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32180 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32181 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32182 TFLAGS="$(STAGE3_TFLAGS)" \
32183 $(TARGET-stage3-target-libsanitizer)
32184
32185maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
32186clean-stage3: clean-stage3-target-libsanitizer
32187clean-stage3-target-libsanitizer:
32188 @if [ $(current_stage) = stage3 ]; then \
32189 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
32190 else \
32191 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
32192 $(MAKE) stage3-start; \
32193 fi; \
32194 cd $(TARGET_SUBDIR)/libsanitizer && \
32195 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32196@endif target-libsanitizer-bootstrap
32197
32198
32199.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
32200.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
32201maybe-all-stage4-target-libsanitizer:
32202maybe-clean-stage4-target-libsanitizer:
32203@if target-libsanitizer-bootstrap
32204maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
32205all-stage4: all-stage4-target-libsanitizer
32206TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
32207all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
32208 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32209 @r=`${PWD_COMMAND}`; export r; \
32210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32211 TFLAGS="$(STAGE4_TFLAGS)"; \
32212 $(RAW_CXX_TARGET_EXPORTS) \
32213 \
32214 cd $(TARGET_SUBDIR)/libsanitizer && \
32215 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32216 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32217 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32218 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32219 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32220 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32221 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32222 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32223 TFLAGS="$(STAGE4_TFLAGS)" \
32224 $(TARGET-stage4-target-libsanitizer)
32225
32226maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
32227clean-stage4: clean-stage4-target-libsanitizer
32228clean-stage4-target-libsanitizer:
32229 @if [ $(current_stage) = stage4 ]; then \
32230 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
32231 else \
32232 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
32233 $(MAKE) stage4-start; \
32234 fi; \
32235 cd $(TARGET_SUBDIR)/libsanitizer && \
32236 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32237@endif target-libsanitizer-bootstrap
32238
32239
32240.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
32241.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
32242maybe-all-stageprofile-target-libsanitizer:
32243maybe-clean-stageprofile-target-libsanitizer:
32244@if target-libsanitizer-bootstrap
32245maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
32246all-stageprofile: all-stageprofile-target-libsanitizer
32247TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
32248all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
32249 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32250 @r=`${PWD_COMMAND}`; export r; \
32251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32252 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32253 $(RAW_CXX_TARGET_EXPORTS) \
32254 \
32255 cd $(TARGET_SUBDIR)/libsanitizer && \
32256 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32257 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32258 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32259 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32260 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32261 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32262 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32263 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32264 TFLAGS="$(STAGEprofile_TFLAGS)" \
32265 $(TARGET-stageprofile-target-libsanitizer)
32266
32267maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
32268clean-stageprofile: clean-stageprofile-target-libsanitizer
32269clean-stageprofile-target-libsanitizer:
32270 @if [ $(current_stage) = stageprofile ]; then \
32271 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
32272 else \
32273 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
32274 $(MAKE) stageprofile-start; \
32275 fi; \
32276 cd $(TARGET_SUBDIR)/libsanitizer && \
32277 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32278@endif target-libsanitizer-bootstrap
32279
32280
32281.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
32282.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
32283maybe-all-stagefeedback-target-libsanitizer:
32284maybe-clean-stagefeedback-target-libsanitizer:
32285@if target-libsanitizer-bootstrap
32286maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
32287all-stagefeedback: all-stagefeedback-target-libsanitizer
32288TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
32289all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
32290 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32291 @r=`${PWD_COMMAND}`; export r; \
32292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32293 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32294 $(RAW_CXX_TARGET_EXPORTS) \
32295 \
32296 cd $(TARGET_SUBDIR)/libsanitizer && \
32297 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32298 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32299 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32300 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32301 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32302 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32303 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32304 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32305 TFLAGS="$(STAGEfeedback_TFLAGS)" \
32306 $(TARGET-stagefeedback-target-libsanitizer)
32307
32308maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
32309clean-stagefeedback: clean-stagefeedback-target-libsanitizer
32310clean-stagefeedback-target-libsanitizer:
32311 @if [ $(current_stage) = stagefeedback ]; then \
32312 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
32313 else \
32314 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
32315 $(MAKE) stagefeedback-start; \
32316 fi; \
32317 cd $(TARGET_SUBDIR)/libsanitizer && \
32318 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32319@endif target-libsanitizer-bootstrap
32320
32321
32322
32323
5286fdef
L
32324
32325
32326.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
32327maybe-check-target-libsanitizer:
32328@if target-libsanitizer
32329maybe-check-target-libsanitizer: check-target-libsanitizer
32330
32331check-target-libsanitizer:
32332 @: $(MAKE); $(unstage)
32333 @r=`${PWD_COMMAND}`; export r; \
32334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32335 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef 32336 (cd $(TARGET_SUBDIR)/libsanitizer && \
5eb08693 32337 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
5286fdef
L
32338
32339@endif target-libsanitizer
32340
32341.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
32342maybe-install-target-libsanitizer:
32343@if target-libsanitizer
32344maybe-install-target-libsanitizer: install-target-libsanitizer
32345
32346install-target-libsanitizer: installdirs
32347 @: $(MAKE); $(unstage)
32348 @r=`${PWD_COMMAND}`; export r; \
32349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32350 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32351 (cd $(TARGET_SUBDIR)/libsanitizer && \
32352 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
32353
32354@endif target-libsanitizer
32355
32356.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
32357maybe-install-strip-target-libsanitizer:
32358@if target-libsanitizer
32359maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
32360
32361install-strip-target-libsanitizer: installdirs
32362 @: $(MAKE); $(unstage)
32363 @r=`${PWD_COMMAND}`; export r; \
32364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32365 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32366 (cd $(TARGET_SUBDIR)/libsanitizer && \
32367 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
32368
32369@endif target-libsanitizer
32370
32371# Other targets (info, dvi, pdf, etc.)
32372
32373.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
32374maybe-info-target-libsanitizer:
32375@if target-libsanitizer
32376maybe-info-target-libsanitizer: info-target-libsanitizer
32377
32378info-target-libsanitizer: \
32379 configure-target-libsanitizer
32380 @: $(MAKE); $(unstage)
32381 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32382 r=`${PWD_COMMAND}`; export r; \
32383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32384 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32385 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer" ; \
32386 for flag in $(EXTRA_TARGET_FLAGS); do \
32387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32388 done; \
32389 (cd $(TARGET_SUBDIR)/libsanitizer && \
32390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32392 "RANLIB=$${RANLIB}" \
32393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32394 info) \
32395 || exit 1
32396
32397@endif target-libsanitizer
32398
32399.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
32400maybe-dvi-target-libsanitizer:
32401@if target-libsanitizer
32402maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
32403
32404dvi-target-libsanitizer: \
32405 configure-target-libsanitizer
32406 @: $(MAKE); $(unstage)
32407 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32408 r=`${PWD_COMMAND}`; export r; \
32409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32410 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32411 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer" ; \
32412 for flag in $(EXTRA_TARGET_FLAGS); do \
32413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32414 done; \
32415 (cd $(TARGET_SUBDIR)/libsanitizer && \
32416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32418 "RANLIB=$${RANLIB}" \
32419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32420 dvi) \
32421 || exit 1
32422
32423@endif target-libsanitizer
32424
32425.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
32426maybe-pdf-target-libsanitizer:
32427@if target-libsanitizer
32428maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
32429
32430pdf-target-libsanitizer: \
32431 configure-target-libsanitizer
32432 @: $(MAKE); $(unstage)
32433 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32434 r=`${PWD_COMMAND}`; export r; \
32435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32436 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32437 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer" ; \
32438 for flag in $(EXTRA_TARGET_FLAGS); do \
32439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32440 done; \
32441 (cd $(TARGET_SUBDIR)/libsanitizer && \
32442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32444 "RANLIB=$${RANLIB}" \
32445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32446 pdf) \
32447 || exit 1
32448
32449@endif target-libsanitizer
32450
32451.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
32452maybe-html-target-libsanitizer:
32453@if target-libsanitizer
32454maybe-html-target-libsanitizer: html-target-libsanitizer
32455
32456html-target-libsanitizer: \
32457 configure-target-libsanitizer
32458 @: $(MAKE); $(unstage)
32459 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32460 r=`${PWD_COMMAND}`; export r; \
32461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32462 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32463 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer" ; \
32464 for flag in $(EXTRA_TARGET_FLAGS); do \
32465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32466 done; \
32467 (cd $(TARGET_SUBDIR)/libsanitizer && \
32468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32470 "RANLIB=$${RANLIB}" \
32471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32472 html) \
32473 || exit 1
32474
32475@endif target-libsanitizer
32476
32477.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
32478maybe-TAGS-target-libsanitizer:
32479@if target-libsanitizer
32480maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
32481
32482TAGS-target-libsanitizer: \
32483 configure-target-libsanitizer
32484 @: $(MAKE); $(unstage)
32485 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32486 r=`${PWD_COMMAND}`; export r; \
32487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32488 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32489 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer" ; \
32490 for flag in $(EXTRA_TARGET_FLAGS); do \
32491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32492 done; \
32493 (cd $(TARGET_SUBDIR)/libsanitizer && \
32494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32496 "RANLIB=$${RANLIB}" \
32497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32498 TAGS) \
32499 || exit 1
32500
32501@endif target-libsanitizer
32502
32503.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
32504maybe-install-info-target-libsanitizer:
32505@if target-libsanitizer
32506maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
32507
32508install-info-target-libsanitizer: \
32509 configure-target-libsanitizer \
32510 info-target-libsanitizer
32511 @: $(MAKE); $(unstage)
32512 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32513 r=`${PWD_COMMAND}`; export r; \
32514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32515 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32516 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer" ; \
32517 for flag in $(EXTRA_TARGET_FLAGS); do \
32518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32519 done; \
32520 (cd $(TARGET_SUBDIR)/libsanitizer && \
32521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32523 "RANLIB=$${RANLIB}" \
32524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32525 install-info) \
32526 || exit 1
32527
32528@endif target-libsanitizer
32529
32530.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
32531maybe-install-pdf-target-libsanitizer:
32532@if target-libsanitizer
32533maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
32534
32535install-pdf-target-libsanitizer: \
32536 configure-target-libsanitizer \
32537 pdf-target-libsanitizer
32538 @: $(MAKE); $(unstage)
32539 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32540 r=`${PWD_COMMAND}`; export r; \
32541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32542 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32543 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer" ; \
32544 for flag in $(EXTRA_TARGET_FLAGS); do \
32545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32546 done; \
32547 (cd $(TARGET_SUBDIR)/libsanitizer && \
32548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32550 "RANLIB=$${RANLIB}" \
32551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32552 install-pdf) \
32553 || exit 1
32554
32555@endif target-libsanitizer
32556
32557.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
32558maybe-install-html-target-libsanitizer:
32559@if target-libsanitizer
32560maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
32561
32562install-html-target-libsanitizer: \
32563 configure-target-libsanitizer \
32564 html-target-libsanitizer
32565 @: $(MAKE); $(unstage)
32566 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32567 r=`${PWD_COMMAND}`; export r; \
32568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32569 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32570 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer" ; \
32571 for flag in $(EXTRA_TARGET_FLAGS); do \
32572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32573 done; \
32574 (cd $(TARGET_SUBDIR)/libsanitizer && \
32575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32577 "RANLIB=$${RANLIB}" \
32578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32579 install-html) \
32580 || exit 1
32581
32582@endif target-libsanitizer
32583
32584.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
32585maybe-installcheck-target-libsanitizer:
32586@if target-libsanitizer
32587maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
32588
32589installcheck-target-libsanitizer: \
32590 configure-target-libsanitizer
32591 @: $(MAKE); $(unstage)
32592 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32593 r=`${PWD_COMMAND}`; export r; \
32594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32595 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32596 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer" ; \
32597 for flag in $(EXTRA_TARGET_FLAGS); do \
32598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32599 done; \
32600 (cd $(TARGET_SUBDIR)/libsanitizer && \
32601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32603 "RANLIB=$${RANLIB}" \
32604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32605 installcheck) \
32606 || exit 1
32607
32608@endif target-libsanitizer
32609
32610.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
32611maybe-mostlyclean-target-libsanitizer:
32612@if target-libsanitizer
32613maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
32614
32615mostlyclean-target-libsanitizer:
32616 @: $(MAKE); $(unstage)
32617 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32618 r=`${PWD_COMMAND}`; export r; \
32619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32620 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32621 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer" ; \
32622 for flag in $(EXTRA_TARGET_FLAGS); do \
32623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32624 done; \
32625 (cd $(TARGET_SUBDIR)/libsanitizer && \
32626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32628 "RANLIB=$${RANLIB}" \
32629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32630 mostlyclean) \
32631 || exit 1
32632
32633@endif target-libsanitizer
32634
32635.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
32636maybe-clean-target-libsanitizer:
32637@if target-libsanitizer
32638maybe-clean-target-libsanitizer: clean-target-libsanitizer
32639
32640clean-target-libsanitizer:
32641 @: $(MAKE); $(unstage)
32642 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32643 r=`${PWD_COMMAND}`; export r; \
32644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32645 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32646 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer" ; \
32647 for flag in $(EXTRA_TARGET_FLAGS); do \
32648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32649 done; \
32650 (cd $(TARGET_SUBDIR)/libsanitizer && \
32651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32653 "RANLIB=$${RANLIB}" \
32654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32655 clean) \
32656 || exit 1
32657
32658@endif target-libsanitizer
32659
32660.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
32661maybe-distclean-target-libsanitizer:
32662@if target-libsanitizer
32663maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
32664
32665distclean-target-libsanitizer:
32666 @: $(MAKE); $(unstage)
32667 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32668 r=`${PWD_COMMAND}`; export r; \
32669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32670 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32671 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer" ; \
32672 for flag in $(EXTRA_TARGET_FLAGS); do \
32673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32674 done; \
32675 (cd $(TARGET_SUBDIR)/libsanitizer && \
32676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32678 "RANLIB=$${RANLIB}" \
32679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32680 distclean) \
32681 || exit 1
32682
32683@endif target-libsanitizer
32684
32685.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
32686maybe-maintainer-clean-target-libsanitizer:
32687@if target-libsanitizer
32688maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
32689
32690maintainer-clean-target-libsanitizer:
32691 @: $(MAKE); $(unstage)
32692 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
32693 r=`${PWD_COMMAND}`; export r; \
32694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5eb08693 32695 $(RAW_CXX_TARGET_EXPORTS) \
5286fdef
L
32696 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer" ; \
32697 for flag in $(EXTRA_TARGET_FLAGS); do \
32698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32699 done; \
32700 (cd $(TARGET_SUBDIR)/libsanitizer && \
32701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32703 "RANLIB=$${RANLIB}" \
32704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32705 maintainer-clean) \
32706 || exit 1
32707
32708@endif target-libsanitizer
32709
32710
32711
32712
32713
95e43135
JBG
32714.PHONY: configure-target-libvtv maybe-configure-target-libvtv
32715maybe-configure-target-libvtv:
32716@if gcc-bootstrap
32717configure-target-libvtv: stage_current
32718@endif gcc-bootstrap
32719@if target-libvtv
32720maybe-configure-target-libvtv: configure-target-libvtv
32721configure-target-libvtv:
32722 @r=`${PWD_COMMAND}`; export r; \
32723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32724 echo "Checking multilib configuration for libvtv..."; \
32725 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
32726 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
32727 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32728 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32729 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
32730 else \
32731 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
32732 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32733 fi; \
32734 else \
32735 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32736 fi; \
32737 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
32738 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
32739 $(RAW_CXX_TARGET_EXPORTS) \
32740 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
32741 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
32742 case $(srcdir) in \
32743 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32744 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
32745 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32746 esac; \
32747 srcdiroption="--srcdir=$${topdir}/libvtv"; \
32748 libsrcdir="$$s/libvtv"; \
32749 rm -f no-such-file || : ; \
32750 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
32751 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32752 --target=${target_alias} $${srcdiroption} \
32753 || exit 1
32754@endif target-libvtv
32755
32756
32757
32758.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
32759maybe-configure-stage1-target-libvtv:
32760@if target-libvtv-bootstrap
32761maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
32762configure-stage1-target-libvtv:
32763 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32764 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
32765 @r=`${PWD_COMMAND}`; export r; \
32766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32767 TFLAGS="$(STAGE1_TFLAGS)"; \
32768 echo "Checking multilib configuration for libvtv..."; \
32769 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
32770 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32771 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32772 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
32773 else \
32774 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
32775 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32776 fi; \
32777 else \
32778 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32779 fi; \
32780 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
32781 $(RAW_CXX_TARGET_EXPORTS) \
32782 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32783 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32784 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32785 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv ; \
32786 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
32787 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
32788 case $(srcdir) in \
32789 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32790 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
32791 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32792 esac; \
32793 srcdiroption="--srcdir=$${topdir}/libvtv"; \
32794 libsrcdir="$$s/libvtv"; \
32795 $(SHELL) $${libsrcdir}/configure \
32796 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32797 --target=${target_alias} $${srcdiroption} \
32798 $(STAGE1_CONFIGURE_FLAGS)
32799@endif target-libvtv-bootstrap
32800
32801.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
32802maybe-configure-stage2-target-libvtv:
32803@if target-libvtv-bootstrap
32804maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
32805configure-stage2-target-libvtv:
32806 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32807 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
32808 @r=`${PWD_COMMAND}`; export r; \
32809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32810 TFLAGS="$(STAGE2_TFLAGS)"; \
32811 echo "Checking multilib configuration for libvtv..."; \
32812 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
32813 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32814 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32815 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
32816 else \
32817 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
32818 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32819 fi; \
32820 else \
32821 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32822 fi; \
32823 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
32824 $(RAW_CXX_TARGET_EXPORTS) \
32825 \
32826 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32827 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32828 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32829 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv ; \
32830 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
32831 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
32832 case $(srcdir) in \
32833 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32834 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
32835 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32836 esac; \
32837 srcdiroption="--srcdir=$${topdir}/libvtv"; \
32838 libsrcdir="$$s/libvtv"; \
32839 $(SHELL) $${libsrcdir}/configure \
32840 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32841 --target=${target_alias} $${srcdiroption} \
32842 --with-build-libsubdir=$(HOST_SUBDIR) \
32843 $(STAGE2_CONFIGURE_FLAGS)
32844@endif target-libvtv-bootstrap
32845
32846.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
32847maybe-configure-stage3-target-libvtv:
32848@if target-libvtv-bootstrap
32849maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
32850configure-stage3-target-libvtv:
32851 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32852 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
32853 @r=`${PWD_COMMAND}`; export r; \
32854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32855 TFLAGS="$(STAGE3_TFLAGS)"; \
32856 echo "Checking multilib configuration for libvtv..."; \
32857 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
32858 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32859 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32860 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
32861 else \
32862 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
32863 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32864 fi; \
32865 else \
32866 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32867 fi; \
32868 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
32869 $(RAW_CXX_TARGET_EXPORTS) \
32870 \
32871 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32872 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32873 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32874 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv ; \
32875 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
32876 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
32877 case $(srcdir) in \
32878 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32879 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
32880 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32881 esac; \
32882 srcdiroption="--srcdir=$${topdir}/libvtv"; \
32883 libsrcdir="$$s/libvtv"; \
32884 $(SHELL) $${libsrcdir}/configure \
32885 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32886 --target=${target_alias} $${srcdiroption} \
32887 --with-build-libsubdir=$(HOST_SUBDIR) \
32888 $(STAGE3_CONFIGURE_FLAGS)
32889@endif target-libvtv-bootstrap
32890
32891.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
32892maybe-configure-stage4-target-libvtv:
32893@if target-libvtv-bootstrap
32894maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
32895configure-stage4-target-libvtv:
32896 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32897 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
32898 @r=`${PWD_COMMAND}`; export r; \
32899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32900 TFLAGS="$(STAGE4_TFLAGS)"; \
32901 echo "Checking multilib configuration for libvtv..."; \
32902 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
32903 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32904 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32905 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
32906 else \
32907 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
32908 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32909 fi; \
32910 else \
32911 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32912 fi; \
32913 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
32914 $(RAW_CXX_TARGET_EXPORTS) \
32915 \
32916 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32917 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32918 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32919 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv ; \
32920 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
32921 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
32922 case $(srcdir) in \
32923 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32924 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
32925 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32926 esac; \
32927 srcdiroption="--srcdir=$${topdir}/libvtv"; \
32928 libsrcdir="$$s/libvtv"; \
32929 $(SHELL) $${libsrcdir}/configure \
32930 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32931 --target=${target_alias} $${srcdiroption} \
32932 --with-build-libsubdir=$(HOST_SUBDIR) \
32933 $(STAGE4_CONFIGURE_FLAGS)
32934@endif target-libvtv-bootstrap
32935
32936.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
32937maybe-configure-stageprofile-target-libvtv:
32938@if target-libvtv-bootstrap
32939maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
32940configure-stageprofile-target-libvtv:
32941 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32942 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
32943 @r=`${PWD_COMMAND}`; export r; \
32944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32945 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32946 echo "Checking multilib configuration for libvtv..."; \
32947 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
32948 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32949 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32950 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
32951 else \
32952 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
32953 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32954 fi; \
32955 else \
32956 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32957 fi; \
32958 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
32959 $(RAW_CXX_TARGET_EXPORTS) \
32960 \
32961 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32962 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32963 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32964 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv ; \
32965 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
32966 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
32967 case $(srcdir) in \
32968 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32969 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
32970 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32971 esac; \
32972 srcdiroption="--srcdir=$${topdir}/libvtv"; \
32973 libsrcdir="$$s/libvtv"; \
32974 $(SHELL) $${libsrcdir}/configure \
32975 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32976 --target=${target_alias} $${srcdiroption} \
32977 --with-build-libsubdir=$(HOST_SUBDIR) \
32978 $(STAGEprofile_CONFIGURE_FLAGS)
32979@endif target-libvtv-bootstrap
32980
32981.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
32982maybe-configure-stagefeedback-target-libvtv:
32983@if target-libvtv-bootstrap
32984maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
32985configure-stagefeedback-target-libvtv:
32986 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32987 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
32988 @r=`${PWD_COMMAND}`; export r; \
32989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32990 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32991 echo "Checking multilib configuration for libvtv..."; \
32992 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
32993 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32994 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
32995 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
32996 else \
32997 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
32998 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
32999 fi; \
33000 else \
33001 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
33002 fi; \
33003 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
33004 $(RAW_CXX_TARGET_EXPORTS) \
33005 \
33006 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33007 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33008 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33009 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv ; \
33010 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
33011 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
33012 case $(srcdir) in \
33013 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33014 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
33015 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33016 esac; \
33017 srcdiroption="--srcdir=$${topdir}/libvtv"; \
33018 libsrcdir="$$s/libvtv"; \
33019 $(SHELL) $${libsrcdir}/configure \
33020 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33021 --target=${target_alias} $${srcdiroption} \
33022 --with-build-libsubdir=$(HOST_SUBDIR) \
33023 $(STAGEfeedback_CONFIGURE_FLAGS)
33024@endif target-libvtv-bootstrap
33025
33026
33027
33028
33029
33030.PHONY: all-target-libvtv maybe-all-target-libvtv
33031maybe-all-target-libvtv:
33032@if gcc-bootstrap
33033all-target-libvtv: stage_current
33034@endif gcc-bootstrap
33035@if target-libvtv
33036TARGET-target-libvtv=all
33037maybe-all-target-libvtv: all-target-libvtv
33038all-target-libvtv: configure-target-libvtv
33039 @r=`${PWD_COMMAND}`; export r; \
33040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33041 $(RAW_CXX_TARGET_EXPORTS) \
33042 (cd $(TARGET_SUBDIR)/libvtv && \
33043 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33044 $(TARGET-target-libvtv))
33045@endif target-libvtv
33046
33047
33048
33049.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
33050.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
33051maybe-all-stage1-target-libvtv:
33052maybe-clean-stage1-target-libvtv:
33053@if target-libvtv-bootstrap
33054maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
33055all-stage1: all-stage1-target-libvtv
33056TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
33057all-stage1-target-libvtv: configure-stage1-target-libvtv
33058 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33059 @r=`${PWD_COMMAND}`; export r; \
33060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33061 TFLAGS="$(STAGE1_TFLAGS)"; \
33062 $(RAW_CXX_TARGET_EXPORTS) \
33063 cd $(TARGET_SUBDIR)/libvtv && \
33064 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33065 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33066 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33067 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33068 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33069 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33070 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33071 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33072 \
33073 TFLAGS="$(STAGE1_TFLAGS)" \
33074 $(TARGET-stage1-target-libvtv)
33075
33076maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
33077clean-stage1: clean-stage1-target-libvtv
33078clean-stage1-target-libvtv:
33079 @if [ $(current_stage) = stage1 ]; then \
33080 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
33081 else \
33082 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
33083 $(MAKE) stage1-start; \
33084 fi; \
33085 cd $(TARGET_SUBDIR)/libvtv && \
33086 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33087 clean
33088@endif target-libvtv-bootstrap
33089
33090
33091.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
33092.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
33093maybe-all-stage2-target-libvtv:
33094maybe-clean-stage2-target-libvtv:
33095@if target-libvtv-bootstrap
33096maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
33097all-stage2: all-stage2-target-libvtv
33098TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
33099all-stage2-target-libvtv: configure-stage2-target-libvtv
33100 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33101 @r=`${PWD_COMMAND}`; export r; \
33102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33103 TFLAGS="$(STAGE2_TFLAGS)"; \
33104 $(RAW_CXX_TARGET_EXPORTS) \
33105 \
33106 cd $(TARGET_SUBDIR)/libvtv && \
33107 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33108 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33109 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33110 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33111 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33112 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33113 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33114 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33115 TFLAGS="$(STAGE2_TFLAGS)" \
33116 $(TARGET-stage2-target-libvtv)
33117
33118maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
33119clean-stage2: clean-stage2-target-libvtv
33120clean-stage2-target-libvtv:
33121 @if [ $(current_stage) = stage2 ]; then \
33122 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
33123 else \
33124 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
33125 $(MAKE) stage2-start; \
33126 fi; \
33127 cd $(TARGET_SUBDIR)/libvtv && \
33128 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33129@endif target-libvtv-bootstrap
33130
33131
33132.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
33133.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
33134maybe-all-stage3-target-libvtv:
33135maybe-clean-stage3-target-libvtv:
33136@if target-libvtv-bootstrap
33137maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
33138all-stage3: all-stage3-target-libvtv
33139TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
33140all-stage3-target-libvtv: configure-stage3-target-libvtv
33141 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33142 @r=`${PWD_COMMAND}`; export r; \
33143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33144 TFLAGS="$(STAGE3_TFLAGS)"; \
33145 $(RAW_CXX_TARGET_EXPORTS) \
33146 \
33147 cd $(TARGET_SUBDIR)/libvtv && \
33148 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33149 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33150 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33151 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33152 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33153 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33154 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33155 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33156 TFLAGS="$(STAGE3_TFLAGS)" \
33157 $(TARGET-stage3-target-libvtv)
33158
33159maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
33160clean-stage3: clean-stage3-target-libvtv
33161clean-stage3-target-libvtv:
33162 @if [ $(current_stage) = stage3 ]; then \
33163 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
33164 else \
33165 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
33166 $(MAKE) stage3-start; \
33167 fi; \
33168 cd $(TARGET_SUBDIR)/libvtv && \
33169 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33170@endif target-libvtv-bootstrap
33171
33172
33173.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
33174.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
33175maybe-all-stage4-target-libvtv:
33176maybe-clean-stage4-target-libvtv:
33177@if target-libvtv-bootstrap
33178maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
33179all-stage4: all-stage4-target-libvtv
33180TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
33181all-stage4-target-libvtv: configure-stage4-target-libvtv
33182 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33183 @r=`${PWD_COMMAND}`; export r; \
33184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33185 TFLAGS="$(STAGE4_TFLAGS)"; \
33186 $(RAW_CXX_TARGET_EXPORTS) \
33187 \
33188 cd $(TARGET_SUBDIR)/libvtv && \
33189 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33190 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33191 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33192 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33193 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33194 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33195 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33196 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33197 TFLAGS="$(STAGE4_TFLAGS)" \
33198 $(TARGET-stage4-target-libvtv)
33199
33200maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
33201clean-stage4: clean-stage4-target-libvtv
33202clean-stage4-target-libvtv:
33203 @if [ $(current_stage) = stage4 ]; then \
33204 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
33205 else \
33206 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
33207 $(MAKE) stage4-start; \
33208 fi; \
33209 cd $(TARGET_SUBDIR)/libvtv && \
33210 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33211@endif target-libvtv-bootstrap
33212
33213
33214.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
33215.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
33216maybe-all-stageprofile-target-libvtv:
33217maybe-clean-stageprofile-target-libvtv:
33218@if target-libvtv-bootstrap
33219maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
33220all-stageprofile: all-stageprofile-target-libvtv
33221TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
33222all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
33223 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33224 @r=`${PWD_COMMAND}`; export r; \
33225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33226 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33227 $(RAW_CXX_TARGET_EXPORTS) \
33228 \
33229 cd $(TARGET_SUBDIR)/libvtv && \
33230 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33231 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33232 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33233 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33234 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33235 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33236 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33237 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33238 TFLAGS="$(STAGEprofile_TFLAGS)" \
33239 $(TARGET-stageprofile-target-libvtv)
33240
33241maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
33242clean-stageprofile: clean-stageprofile-target-libvtv
33243clean-stageprofile-target-libvtv:
33244 @if [ $(current_stage) = stageprofile ]; then \
33245 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
33246 else \
33247 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
33248 $(MAKE) stageprofile-start; \
33249 fi; \
33250 cd $(TARGET_SUBDIR)/libvtv && \
33251 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33252@endif target-libvtv-bootstrap
33253
33254
33255.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
33256.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
33257maybe-all-stagefeedback-target-libvtv:
33258maybe-clean-stagefeedback-target-libvtv:
33259@if target-libvtv-bootstrap
33260maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
33261all-stagefeedback: all-stagefeedback-target-libvtv
33262TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
33263all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
33264 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33265 @r=`${PWD_COMMAND}`; export r; \
33266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33267 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33268 $(RAW_CXX_TARGET_EXPORTS) \
33269 \
33270 cd $(TARGET_SUBDIR)/libvtv && \
33271 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33272 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33273 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33274 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33275 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33276 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33277 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33278 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33279 TFLAGS="$(STAGEfeedback_TFLAGS)" \
33280 $(TARGET-stagefeedback-target-libvtv)
33281
33282maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
33283clean-stagefeedback: clean-stagefeedback-target-libvtv
33284clean-stagefeedback-target-libvtv:
33285 @if [ $(current_stage) = stagefeedback ]; then \
33286 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
33287 else \
33288 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
33289 $(MAKE) stagefeedback-start; \
33290 fi; \
33291 cd $(TARGET_SUBDIR)/libvtv && \
33292 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33293@endif target-libvtv-bootstrap
33294
33295
33296
33297
33298
33299
33300.PHONY: check-target-libvtv maybe-check-target-libvtv
33301maybe-check-target-libvtv:
33302@if target-libvtv
33303maybe-check-target-libvtv: check-target-libvtv
33304
33305check-target-libvtv:
33306 @: $(MAKE); $(unstage)
33307 @r=`${PWD_COMMAND}`; export r; \
33308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33309 $(RAW_CXX_TARGET_EXPORTS) \
33310 (cd $(TARGET_SUBDIR)/libvtv && \
33311 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
33312
33313@endif target-libvtv
33314
33315.PHONY: install-target-libvtv maybe-install-target-libvtv
33316maybe-install-target-libvtv:
33317@if target-libvtv
33318maybe-install-target-libvtv: install-target-libvtv
33319
33320install-target-libvtv: installdirs
33321 @: $(MAKE); $(unstage)
33322 @r=`${PWD_COMMAND}`; export r; \
33323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33324 $(RAW_CXX_TARGET_EXPORTS) \
33325 (cd $(TARGET_SUBDIR)/libvtv && \
33326 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
33327
33328@endif target-libvtv
33329
33330.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
33331maybe-install-strip-target-libvtv:
33332@if target-libvtv
33333maybe-install-strip-target-libvtv: install-strip-target-libvtv
33334
33335install-strip-target-libvtv: installdirs
33336 @: $(MAKE); $(unstage)
33337 @r=`${PWD_COMMAND}`; export r; \
33338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33339 $(RAW_CXX_TARGET_EXPORTS) \
33340 (cd $(TARGET_SUBDIR)/libvtv && \
33341 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33342
33343@endif target-libvtv
33344
33345# Other targets (info, dvi, pdf, etc.)
33346
33347.PHONY: maybe-info-target-libvtv info-target-libvtv
33348maybe-info-target-libvtv:
33349@if target-libvtv
33350maybe-info-target-libvtv: info-target-libvtv
33351
33352info-target-libvtv: \
33353 configure-target-libvtv
33354 @: $(MAKE); $(unstage)
33355 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33356 r=`${PWD_COMMAND}`; export r; \
33357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33358 $(RAW_CXX_TARGET_EXPORTS) \
33359 echo "Doing info in $(TARGET_SUBDIR)/libvtv" ; \
33360 for flag in $(EXTRA_TARGET_FLAGS); do \
33361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33362 done; \
33363 (cd $(TARGET_SUBDIR)/libvtv && \
33364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33366 "RANLIB=$${RANLIB}" \
33367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33368 info) \
33369 || exit 1
33370
33371@endif target-libvtv
33372
33373.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
33374maybe-dvi-target-libvtv:
33375@if target-libvtv
33376maybe-dvi-target-libvtv: dvi-target-libvtv
33377
33378dvi-target-libvtv: \
33379 configure-target-libvtv
33380 @: $(MAKE); $(unstage)
33381 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33382 r=`${PWD_COMMAND}`; export r; \
33383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33384 $(RAW_CXX_TARGET_EXPORTS) \
33385 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv" ; \
33386 for flag in $(EXTRA_TARGET_FLAGS); do \
33387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33388 done; \
33389 (cd $(TARGET_SUBDIR)/libvtv && \
33390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33392 "RANLIB=$${RANLIB}" \
33393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33394 dvi) \
33395 || exit 1
33396
33397@endif target-libvtv
33398
33399.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
33400maybe-pdf-target-libvtv:
33401@if target-libvtv
33402maybe-pdf-target-libvtv: pdf-target-libvtv
33403
33404pdf-target-libvtv: \
33405 configure-target-libvtv
33406 @: $(MAKE); $(unstage)
33407 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33408 r=`${PWD_COMMAND}`; export r; \
33409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33410 $(RAW_CXX_TARGET_EXPORTS) \
33411 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv" ; \
33412 for flag in $(EXTRA_TARGET_FLAGS); do \
33413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33414 done; \
33415 (cd $(TARGET_SUBDIR)/libvtv && \
33416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33418 "RANLIB=$${RANLIB}" \
33419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33420 pdf) \
33421 || exit 1
33422
33423@endif target-libvtv
33424
33425.PHONY: maybe-html-target-libvtv html-target-libvtv
33426maybe-html-target-libvtv:
33427@if target-libvtv
33428maybe-html-target-libvtv: html-target-libvtv
33429
33430html-target-libvtv: \
33431 configure-target-libvtv
33432 @: $(MAKE); $(unstage)
33433 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33434 r=`${PWD_COMMAND}`; export r; \
33435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33436 $(RAW_CXX_TARGET_EXPORTS) \
33437 echo "Doing html in $(TARGET_SUBDIR)/libvtv" ; \
33438 for flag in $(EXTRA_TARGET_FLAGS); do \
33439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33440 done; \
33441 (cd $(TARGET_SUBDIR)/libvtv && \
33442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33444 "RANLIB=$${RANLIB}" \
33445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33446 html) \
33447 || exit 1
33448
33449@endif target-libvtv
33450
33451.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
33452maybe-TAGS-target-libvtv:
33453@if target-libvtv
33454maybe-TAGS-target-libvtv: TAGS-target-libvtv
33455
33456TAGS-target-libvtv: \
33457 configure-target-libvtv
33458 @: $(MAKE); $(unstage)
33459 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33460 r=`${PWD_COMMAND}`; export r; \
33461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33462 $(RAW_CXX_TARGET_EXPORTS) \
33463 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv" ; \
33464 for flag in $(EXTRA_TARGET_FLAGS); do \
33465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33466 done; \
33467 (cd $(TARGET_SUBDIR)/libvtv && \
33468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33470 "RANLIB=$${RANLIB}" \
33471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33472 TAGS) \
33473 || exit 1
33474
33475@endif target-libvtv
33476
33477.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
33478maybe-install-info-target-libvtv:
33479@if target-libvtv
33480maybe-install-info-target-libvtv: install-info-target-libvtv
33481
33482install-info-target-libvtv: \
33483 configure-target-libvtv \
33484 info-target-libvtv
33485 @: $(MAKE); $(unstage)
33486 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33487 r=`${PWD_COMMAND}`; export r; \
33488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33489 $(RAW_CXX_TARGET_EXPORTS) \
33490 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv" ; \
33491 for flag in $(EXTRA_TARGET_FLAGS); do \
33492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33493 done; \
33494 (cd $(TARGET_SUBDIR)/libvtv && \
33495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33497 "RANLIB=$${RANLIB}" \
33498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33499 install-info) \
33500 || exit 1
33501
33502@endif target-libvtv
33503
33504.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
33505maybe-install-pdf-target-libvtv:
33506@if target-libvtv
33507maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
33508
33509install-pdf-target-libvtv: \
33510 configure-target-libvtv \
33511 pdf-target-libvtv
33512 @: $(MAKE); $(unstage)
33513 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33514 r=`${PWD_COMMAND}`; export r; \
33515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33516 $(RAW_CXX_TARGET_EXPORTS) \
33517 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv" ; \
33518 for flag in $(EXTRA_TARGET_FLAGS); do \
33519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33520 done; \
33521 (cd $(TARGET_SUBDIR)/libvtv && \
33522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33524 "RANLIB=$${RANLIB}" \
33525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33526 install-pdf) \
33527 || exit 1
33528
33529@endif target-libvtv
33530
33531.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
33532maybe-install-html-target-libvtv:
33533@if target-libvtv
33534maybe-install-html-target-libvtv: install-html-target-libvtv
33535
33536install-html-target-libvtv: \
33537 configure-target-libvtv \
33538 html-target-libvtv
33539 @: $(MAKE); $(unstage)
33540 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33541 r=`${PWD_COMMAND}`; export r; \
33542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33543 $(RAW_CXX_TARGET_EXPORTS) \
33544 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv" ; \
33545 for flag in $(EXTRA_TARGET_FLAGS); do \
33546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33547 done; \
33548 (cd $(TARGET_SUBDIR)/libvtv && \
33549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33551 "RANLIB=$${RANLIB}" \
33552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33553 install-html) \
33554 || exit 1
33555
33556@endif target-libvtv
33557
33558.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
33559maybe-installcheck-target-libvtv:
33560@if target-libvtv
33561maybe-installcheck-target-libvtv: installcheck-target-libvtv
33562
33563installcheck-target-libvtv: \
33564 configure-target-libvtv
33565 @: $(MAKE); $(unstage)
33566 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33567 r=`${PWD_COMMAND}`; export r; \
33568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33569 $(RAW_CXX_TARGET_EXPORTS) \
33570 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv" ; \
33571 for flag in $(EXTRA_TARGET_FLAGS); do \
33572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33573 done; \
33574 (cd $(TARGET_SUBDIR)/libvtv && \
33575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33577 "RANLIB=$${RANLIB}" \
33578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33579 installcheck) \
33580 || exit 1
33581
33582@endif target-libvtv
33583
33584.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
33585maybe-mostlyclean-target-libvtv:
33586@if target-libvtv
33587maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
33588
33589mostlyclean-target-libvtv:
33590 @: $(MAKE); $(unstage)
33591 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33592 r=`${PWD_COMMAND}`; export r; \
33593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33594 $(RAW_CXX_TARGET_EXPORTS) \
33595 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv" ; \
33596 for flag in $(EXTRA_TARGET_FLAGS); do \
33597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33598 done; \
33599 (cd $(TARGET_SUBDIR)/libvtv && \
33600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33602 "RANLIB=$${RANLIB}" \
33603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33604 mostlyclean) \
33605 || exit 1
33606
33607@endif target-libvtv
33608
33609.PHONY: maybe-clean-target-libvtv clean-target-libvtv
33610maybe-clean-target-libvtv:
33611@if target-libvtv
33612maybe-clean-target-libvtv: clean-target-libvtv
33613
33614clean-target-libvtv:
33615 @: $(MAKE); $(unstage)
33616 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33617 r=`${PWD_COMMAND}`; export r; \
33618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33619 $(RAW_CXX_TARGET_EXPORTS) \
33620 echo "Doing clean in $(TARGET_SUBDIR)/libvtv" ; \
33621 for flag in $(EXTRA_TARGET_FLAGS); do \
33622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33623 done; \
33624 (cd $(TARGET_SUBDIR)/libvtv && \
33625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33627 "RANLIB=$${RANLIB}" \
33628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33629 clean) \
33630 || exit 1
33631
33632@endif target-libvtv
33633
33634.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
33635maybe-distclean-target-libvtv:
33636@if target-libvtv
33637maybe-distclean-target-libvtv: distclean-target-libvtv
33638
33639distclean-target-libvtv:
33640 @: $(MAKE); $(unstage)
33641 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33642 r=`${PWD_COMMAND}`; export r; \
33643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33644 $(RAW_CXX_TARGET_EXPORTS) \
33645 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv" ; \
33646 for flag in $(EXTRA_TARGET_FLAGS); do \
33647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33648 done; \
33649 (cd $(TARGET_SUBDIR)/libvtv && \
33650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33652 "RANLIB=$${RANLIB}" \
33653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33654 distclean) \
33655 || exit 1
33656
33657@endif target-libvtv
33658
33659.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
33660maybe-maintainer-clean-target-libvtv:
33661@if target-libvtv
33662maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
33663
33664maintainer-clean-target-libvtv:
33665 @: $(MAKE); $(unstage)
33666 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
33667 r=`${PWD_COMMAND}`; export r; \
33668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33669 $(RAW_CXX_TARGET_EXPORTS) \
33670 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv" ; \
33671 for flag in $(EXTRA_TARGET_FLAGS); do \
33672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33673 done; \
33674 (cd $(TARGET_SUBDIR)/libvtv && \
33675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33677 "RANLIB=$${RANLIB}" \
33678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33679 maintainer-clean) \
33680 || exit 1
33681
33682@endif target-libvtv
33683
33684
33685
33686
33687
a90ef4bf
JM
33688.PHONY: configure-target-libssp maybe-configure-target-libssp
33689maybe-configure-target-libssp:
4f0ef2d8 33690@if gcc-bootstrap
a90ef4bf 33691configure-target-libssp: stage_current
4f0ef2d8 33692@endif gcc-bootstrap
a90ef4bf
JM
33693@if target-libssp
33694maybe-configure-target-libssp: configure-target-libssp
33695configure-target-libssp:
0aed8855
PB
33696 @: $(MAKE); $(unstage)
33697 @r=`${PWD_COMMAND}`; export r; \
33698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
33699 echo "Checking multilib configuration for libssp..."; \
33700 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
33701 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
33702 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
33703 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
33704 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 33705 else \
a90ef4bf
JM
33706 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
33707 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
33708 fi; \
33709 else \
a90ef4bf 33710 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 33711 fi; \
a90ef4bf
JM
33712 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
33713 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
1f53ca9a 33714 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
33715 echo Configuring in $(TARGET_SUBDIR)/libssp; \
33716 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 33717 case $(srcdir) in \
b00612cc 33718 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 33719 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 33720 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 33721 esac; \
a90ef4bf
JM
33722 srcdiroption="--srcdir=$${topdir}/libssp"; \
33723 libsrcdir="$$s/libssp"; \
4b1cb4fe
DD
33724 rm -f no-such-file || : ; \
33725 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
33726 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33727 --target=${target_alias} $${srcdiroption} \
4b1cb4fe 33728 || exit 1
a90ef4bf 33729@endif target-libssp
4b1cb4fe 33730
a7254363
PB
33731
33732
d545f33b
PB
33733
33734
a90ef4bf
JM
33735.PHONY: all-target-libssp maybe-all-target-libssp
33736maybe-all-target-libssp:
4f0ef2d8 33737@if gcc-bootstrap
a90ef4bf 33738all-target-libssp: stage_current
4f0ef2d8 33739@endif gcc-bootstrap
a90ef4bf
JM
33740@if target-libssp
33741TARGET-target-libssp=all
33742maybe-all-target-libssp: all-target-libssp
33743all-target-libssp: configure-target-libssp
0aed8855 33744 @: $(MAKE); $(unstage)
4b1cb4fe
DD
33745 @r=`${PWD_COMMAND}`; export r; \
33746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 33747 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33748 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 33749 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
33750 $(TARGET-target-libssp))
33751@endif target-libssp
4b1cb4fe 33752
a7254363
PB
33753
33754
d545f33b
PB
33755
33756
a90ef4bf
JM
33757.PHONY: check-target-libssp maybe-check-target-libssp
33758maybe-check-target-libssp:
33759@if target-libssp
33760maybe-check-target-libssp: check-target-libssp
4b1cb4fe 33761
a90ef4bf 33762check-target-libssp:
0aed8855 33763 @: $(MAKE); $(unstage)
b40e3958
L
33764 @r=`${PWD_COMMAND}`; export r; \
33765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33766 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33767 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 33768 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 33769
a90ef4bf 33770@endif target-libssp
3866be5d 33771
a90ef4bf
JM
33772.PHONY: install-target-libssp maybe-install-target-libssp
33773maybe-install-target-libssp:
33774@if target-libssp
33775maybe-install-target-libssp: install-target-libssp
e2b9e2dc 33776
a90ef4bf 33777install-target-libssp: installdirs
0aed8855 33778 @: $(MAKE); $(unstage)
b40e3958
L
33779 @r=`${PWD_COMMAND}`; export r; \
33780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33781 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33782 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 33783 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 33784
a90ef4bf 33785@endif target-libssp
3866be5d 33786
a90ef4bf
JM
33787.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
33788maybe-install-strip-target-libssp:
33789@if target-libssp
33790maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 33791
a90ef4bf 33792install-strip-target-libssp: installdirs
9b980aa1
RW
33793 @: $(MAKE); $(unstage)
33794 @r=`${PWD_COMMAND}`; export r; \
33795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33796 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33797 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
33798 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33799
a90ef4bf 33800@endif target-libssp
9b980aa1 33801
56a8fe78 33802# Other targets (info, dvi, pdf, etc.)
3866be5d 33803
a90ef4bf
JM
33804.PHONY: maybe-info-target-libssp info-target-libssp
33805maybe-info-target-libssp:
33806@if target-libssp
33807maybe-info-target-libssp: info-target-libssp
3866be5d 33808
a90ef4bf
JM
33809info-target-libssp: \
33810 configure-target-libssp
0aed8855 33811 @: $(MAKE); $(unstage)
a90ef4bf 33812 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067
NN
33813 r=`${PWD_COMMAND}`; export r; \
33814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33815 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33816 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
33817 for flag in $(EXTRA_TARGET_FLAGS); do \
33818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33819 done; \
a90ef4bf 33820 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
33821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33823 "RANLIB=$${RANLIB}" \
0c24b341 33824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 33825 info) \
4fa63067 33826 || exit 1
16ae0395 33827
a90ef4bf 33828@endif target-libssp
3866be5d 33829
a90ef4bf
JM
33830.PHONY: maybe-dvi-target-libssp dvi-target-libssp
33831maybe-dvi-target-libssp:
33832@if target-libssp
33833maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 33834
a90ef4bf
JM
33835dvi-target-libssp: \
33836 configure-target-libssp
0aed8855 33837 @: $(MAKE); $(unstage)
a90ef4bf 33838 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
33839 r=`${PWD_COMMAND}`; export r; \
33840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33841 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33842 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
33843 for flag in $(EXTRA_TARGET_FLAGS); do \
33844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33845 done; \
a90ef4bf 33846 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
33847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33849 "RANLIB=$${RANLIB}" \
0c24b341 33850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 33851 dvi) \
e2b9e2dc
NN
33852 || exit 1
33853
a90ef4bf 33854@endif target-libssp
3866be5d 33855
a90ef4bf
JM
33856.PHONY: maybe-pdf-target-libssp pdf-target-libssp
33857maybe-pdf-target-libssp:
33858@if target-libssp
33859maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 33860
a90ef4bf
JM
33861pdf-target-libssp: \
33862 configure-target-libssp
56a8fe78 33863 @: $(MAKE); $(unstage)
a90ef4bf 33864 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
56a8fe78
DD
33865 r=`${PWD_COMMAND}`; export r; \
33866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33867 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33868 echo "Doing pdf in $(TARGET_SUBDIR)/libssp" ; \
56a8fe78
DD
33869 for flag in $(EXTRA_TARGET_FLAGS); do \
33870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33871 done; \
a90ef4bf 33872 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
33873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33875 "RANLIB=$${RANLIB}" \
0c24b341 33876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
33877 pdf) \
33878 || exit 1
33879
a90ef4bf 33880@endif target-libssp
a3ca38d2 33881
a90ef4bf
JM
33882.PHONY: maybe-html-target-libssp html-target-libssp
33883maybe-html-target-libssp:
33884@if target-libssp
33885maybe-html-target-libssp: html-target-libssp
108a6f8e 33886
a90ef4bf
JM
33887html-target-libssp: \
33888 configure-target-libssp
108a6f8e 33889 @: $(MAKE); $(unstage)
a90ef4bf 33890 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
108a6f8e
CD
33891 r=`${PWD_COMMAND}`; export r; \
33892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33893 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33894 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
108a6f8e
CD
33895 for flag in $(EXTRA_TARGET_FLAGS); do \
33896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33897 done; \
a90ef4bf 33898 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
33899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33901 "RANLIB=$${RANLIB}" \
0c24b341 33902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33903 html) \
108a6f8e
CD
33904 || exit 1
33905
a90ef4bf 33906@endif target-libssp
108a6f8e 33907
a90ef4bf
JM
33908.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
33909maybe-TAGS-target-libssp:
33910@if target-libssp
33911maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 33912
a90ef4bf
JM
33913TAGS-target-libssp: \
33914 configure-target-libssp
0aed8855 33915 @: $(MAKE); $(unstage)
a90ef4bf 33916 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
33917 r=`${PWD_COMMAND}`; export r; \
33918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33919 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33920 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
33921 for flag in $(EXTRA_TARGET_FLAGS); do \
33922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33923 done; \
a90ef4bf 33924 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
33925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33927 "RANLIB=$${RANLIB}" \
0c24b341 33928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33929 TAGS) \
e2b9e2dc
NN
33930 || exit 1
33931
a90ef4bf 33932@endif target-libssp
3866be5d 33933
a90ef4bf
JM
33934.PHONY: maybe-install-info-target-libssp install-info-target-libssp
33935maybe-install-info-target-libssp:
33936@if target-libssp
33937maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 33938
a90ef4bf
JM
33939install-info-target-libssp: \
33940 configure-target-libssp \
33941 info-target-libssp
0aed8855 33942 @: $(MAKE); $(unstage)
a90ef4bf 33943 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 33944 r=`${PWD_COMMAND}`; export r; \
b40e3958 33945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33946 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33947 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
33948 for flag in $(EXTRA_TARGET_FLAGS); do \
33949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33950 done; \
a90ef4bf 33951 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
33952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33954 "RANLIB=$${RANLIB}" \
0c24b341 33955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33956 install-info) \
4fa63067 33957 || exit 1
3866be5d 33958
a90ef4bf 33959@endif target-libssp
3866be5d 33960
a90ef4bf
JM
33961.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
33962maybe-install-pdf-target-libssp:
33963@if target-libssp
33964maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 33965
a90ef4bf
JM
33966install-pdf-target-libssp: \
33967 configure-target-libssp \
33968 pdf-target-libssp
0aed8855 33969 @: $(MAKE); $(unstage)
a90ef4bf 33970 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 33971 r=`${PWD_COMMAND}`; export r; \
b40e3958 33972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33973 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 33974 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
33975 for flag in $(EXTRA_TARGET_FLAGS); do \
33976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33977 done; \
a90ef4bf 33978 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
33979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33981 "RANLIB=$${RANLIB}" \
0c24b341 33982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33983 install-pdf) \
4fa63067 33984 || exit 1
3866be5d 33985
a90ef4bf 33986@endif target-libssp
3866be5d 33987
a90ef4bf
JM
33988.PHONY: maybe-install-html-target-libssp install-html-target-libssp
33989maybe-install-html-target-libssp:
33990@if target-libssp
33991maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 33992
a90ef4bf
JM
33993install-html-target-libssp: \
33994 configure-target-libssp \
33995 html-target-libssp
0aed8855 33996 @: $(MAKE); $(unstage)
a90ef4bf 33997 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
33998 r=`${PWD_COMMAND}`; export r; \
33999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34000 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34001 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
34002 for flag in $(EXTRA_TARGET_FLAGS); do \
34003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34004 done; \
a90ef4bf 34005 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
34006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34008 "RANLIB=$${RANLIB}" \
0c24b341 34009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 34010 install-html) \
e2b9e2dc
NN
34011 || exit 1
34012
a90ef4bf 34013@endif target-libssp
3866be5d 34014
a90ef4bf
JM
34015.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
34016maybe-installcheck-target-libssp:
34017@if target-libssp
34018maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 34019
a90ef4bf
JM
34020installcheck-target-libssp: \
34021 configure-target-libssp
0aed8855 34022 @: $(MAKE); $(unstage)
a90ef4bf 34023 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 34024 r=`${PWD_COMMAND}`; export r; \
b40e3958 34025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34026 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34027 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
34028 for flag in $(EXTRA_TARGET_FLAGS); do \
34029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34030 done; \
a90ef4bf 34031 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
34032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34034 "RANLIB=$${RANLIB}" \
0c24b341 34035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 34036 installcheck) \
6aa8ef82 34037 || exit 1
6aa8ef82 34038
a90ef4bf 34039@endif target-libssp
6aa8ef82 34040
a90ef4bf
JM
34041.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
34042maybe-mostlyclean-target-libssp:
34043@if target-libssp
34044maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 34045
a90ef4bf
JM
34046mostlyclean-target-libssp:
34047 @: $(MAKE); $(unstage)
34048 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34049 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
34050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34051 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34052 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
34053 for flag in $(EXTRA_TARGET_FLAGS); do \
34054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34055 done; \
34056 (cd $(TARGET_SUBDIR)/libssp && \
34057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34059 "RANLIB=$${RANLIB}" \
34060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34061 mostlyclean) \
34062 || exit 1
6aa8ef82 34063
a90ef4bf 34064@endif target-libssp
6aa8ef82 34065
a90ef4bf
JM
34066.PHONY: maybe-clean-target-libssp clean-target-libssp
34067maybe-clean-target-libssp:
34068@if target-libssp
34069maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 34070
a90ef4bf
JM
34071clean-target-libssp:
34072 @: $(MAKE); $(unstage)
34073 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34074 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
34075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34076 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34077 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
34078 for flag in $(EXTRA_TARGET_FLAGS); do \
34079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34080 done; \
34081 (cd $(TARGET_SUBDIR)/libssp && \
34082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34084 "RANLIB=$${RANLIB}" \
34085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34086 clean) \
34087 || exit 1
6aa8ef82 34088
a90ef4bf 34089@endif target-libssp
6aa8ef82 34090
a90ef4bf
JM
34091.PHONY: maybe-distclean-target-libssp distclean-target-libssp
34092maybe-distclean-target-libssp:
34093@if target-libssp
34094maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 34095
a90ef4bf
JM
34096distclean-target-libssp:
34097 @: $(MAKE); $(unstage)
34098 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34099 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
34100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34101 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34102 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
34103 for flag in $(EXTRA_TARGET_FLAGS); do \
34104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34105 done; \
34106 (cd $(TARGET_SUBDIR)/libssp && \
34107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34109 "RANLIB=$${RANLIB}" \
34110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34111 distclean) \
34112 || exit 1
6aa8ef82 34113
a90ef4bf 34114@endif target-libssp
6aa8ef82 34115
a90ef4bf
JM
34116.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
34117maybe-maintainer-clean-target-libssp:
34118@if target-libssp
34119maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 34120
a90ef4bf
JM
34121maintainer-clean-target-libssp:
34122 @: $(MAKE); $(unstage)
34123 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34124 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
34125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34126 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34127 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
34128 for flag in $(EXTRA_TARGET_FLAGS); do \
34129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34130 done; \
34131 (cd $(TARGET_SUBDIR)/libssp && \
34132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34134 "RANLIB=$${RANLIB}" \
34135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34136 maintainer-clean) \
34137 || exit 1
6aa8ef82 34138
a90ef4bf 34139@endif target-libssp
6aa8ef82
DJ
34140
34141
a90ef4bf
JM
34142
34143
34144
34145.PHONY: configure-target-newlib maybe-configure-target-newlib
34146maybe-configure-target-newlib:
34147@if gcc-bootstrap
34148configure-target-newlib: stage_current
34149@endif gcc-bootstrap
34150@if target-newlib
34151maybe-configure-target-newlib: configure-target-newlib
34152configure-target-newlib:
34153 @: $(MAKE); $(unstage)
6aa8ef82
DJ
34154 @r=`${PWD_COMMAND}`; export r; \
34155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34156 echo "Checking multilib configuration for newlib..."; \
34157 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
34158 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
34159 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
34160 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
34161 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
34162 else \
34163 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
34164 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
34165 fi; \
6aa8ef82 34166 else \
a90ef4bf 34167 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 34168 fi; \
a90ef4bf
JM
34169 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
34170 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
34171 $(NORMAL_TARGET_EXPORTS) \
34172 echo Configuring in $(TARGET_SUBDIR)/newlib; \
34173 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
34174 case $(srcdir) in \
34175 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34176 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
34177 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34178 esac; \
34179 srcdiroption="--srcdir=$${topdir}/newlib"; \
34180 libsrcdir="$$s/newlib"; \
34181 rm -f no-such-file || : ; \
34182 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
34183 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34184 --target=${target_alias} $${srcdiroption} \
34185 || exit 1
34186@endif target-newlib
6aa8ef82
DJ
34187
34188
34189
34190
34191
a90ef4bf
JM
34192.PHONY: all-target-newlib maybe-all-target-newlib
34193maybe-all-target-newlib:
34194@if gcc-bootstrap
34195all-target-newlib: stage_current
34196@endif gcc-bootstrap
34197@if target-newlib
34198TARGET-target-newlib=all
34199maybe-all-target-newlib: all-target-newlib
34200all-target-newlib: configure-target-newlib
34201 @: $(MAKE); $(unstage)
34202 @r=`${PWD_COMMAND}`; export r; \
34203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34204 $(NORMAL_TARGET_EXPORTS) \
34205 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 34206 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
34207 $(TARGET-target-newlib))
34208@endif target-newlib
6aa8ef82 34209
6aa8ef82 34210
6aa8ef82 34211
6aa8ef82 34212
6aa8ef82 34213
a90ef4bf
JM
34214.PHONY: check-target-newlib maybe-check-target-newlib
34215maybe-check-target-newlib:
34216@if target-newlib
34217maybe-check-target-newlib: check-target-newlib
34218
34219check-target-newlib:
6aa8ef82
DJ
34220 @: $(MAKE); $(unstage)
34221 @r=`${PWD_COMMAND}`; export r; \
34222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34223 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34224 (cd $(TARGET_SUBDIR)/newlib && \
34225 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
34226
34227@endif target-newlib
34228
34229.PHONY: install-target-newlib maybe-install-target-newlib
34230maybe-install-target-newlib:
34231@if target-newlib
34232maybe-install-target-newlib: install-target-newlib
34233
34234install-target-newlib: installdirs
34235 @: $(MAKE); $(unstage)
34236 @r=`${PWD_COMMAND}`; export r; \
34237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34238 $(NORMAL_TARGET_EXPORTS) \
34239 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34240 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
34241
a90ef4bf 34242@endif target-newlib
6aa8ef82 34243
a90ef4bf
JM
34244.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
34245maybe-install-strip-target-newlib:
34246@if target-newlib
34247maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 34248
a90ef4bf 34249install-strip-target-newlib: installdirs
9b980aa1
RW
34250 @: $(MAKE); $(unstage)
34251 @r=`${PWD_COMMAND}`; export r; \
34252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34253 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34254 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
34255 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34256
a90ef4bf 34257@endif target-newlib
9b980aa1 34258
6aa8ef82
DJ
34259# Other targets (info, dvi, pdf, etc.)
34260
a90ef4bf
JM
34261.PHONY: maybe-info-target-newlib info-target-newlib
34262maybe-info-target-newlib:
34263@if target-newlib
34264maybe-info-target-newlib: info-target-newlib
6aa8ef82 34265
a90ef4bf
JM
34266info-target-newlib: \
34267 configure-target-newlib
6aa8ef82 34268 @: $(MAKE); $(unstage)
a90ef4bf 34269 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34270 r=`${PWD_COMMAND}`; export r; \
34271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34272 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34273 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34274 for flag in $(EXTRA_TARGET_FLAGS); do \
34275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34276 done; \
a90ef4bf 34277 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34280 "RANLIB=$${RANLIB}" \
0c24b341 34281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34282 info) \
34283 || exit 1
34284
a90ef4bf 34285@endif target-newlib
6aa8ef82 34286
a90ef4bf
JM
34287.PHONY: maybe-dvi-target-newlib dvi-target-newlib
34288maybe-dvi-target-newlib:
34289@if target-newlib
34290maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 34291
a90ef4bf
JM
34292dvi-target-newlib: \
34293 configure-target-newlib
6aa8ef82 34294 @: $(MAKE); $(unstage)
a90ef4bf 34295 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34296 r=`${PWD_COMMAND}`; export r; \
34297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34298 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34299 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34300 for flag in $(EXTRA_TARGET_FLAGS); do \
34301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34302 done; \
a90ef4bf 34303 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34306 "RANLIB=$${RANLIB}" \
0c24b341 34307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34308 dvi) \
34309 || exit 1
34310
a90ef4bf 34311@endif target-newlib
6aa8ef82 34312
a90ef4bf
JM
34313.PHONY: maybe-pdf-target-newlib pdf-target-newlib
34314maybe-pdf-target-newlib:
34315@if target-newlib
34316maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 34317
a90ef4bf
JM
34318pdf-target-newlib: \
34319 configure-target-newlib
6aa8ef82 34320 @: $(MAKE); $(unstage)
a90ef4bf 34321 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34322 r=`${PWD_COMMAND}`; export r; \
34323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34324 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34325 echo "Doing pdf in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34326 for flag in $(EXTRA_TARGET_FLAGS); do \
34327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34328 done; \
a90ef4bf 34329 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34332 "RANLIB=$${RANLIB}" \
0c24b341 34333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34334 pdf) \
34335 || exit 1
34336
a90ef4bf 34337@endif target-newlib
6aa8ef82 34338
a90ef4bf
JM
34339.PHONY: maybe-html-target-newlib html-target-newlib
34340maybe-html-target-newlib:
34341@if target-newlib
34342maybe-html-target-newlib: html-target-newlib
6aa8ef82 34343
a90ef4bf
JM
34344html-target-newlib: \
34345 configure-target-newlib
6aa8ef82 34346 @: $(MAKE); $(unstage)
a90ef4bf 34347 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34348 r=`${PWD_COMMAND}`; export r; \
34349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34350 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34351 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34352 for flag in $(EXTRA_TARGET_FLAGS); do \
34353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34354 done; \
a90ef4bf 34355 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34358 "RANLIB=$${RANLIB}" \
0c24b341 34359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34360 html) \
34361 || exit 1
34362
a90ef4bf 34363@endif target-newlib
6aa8ef82 34364
a90ef4bf
JM
34365.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
34366maybe-TAGS-target-newlib:
34367@if target-newlib
34368maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 34369
a90ef4bf
JM
34370TAGS-target-newlib: \
34371 configure-target-newlib
6aa8ef82 34372 @: $(MAKE); $(unstage)
a90ef4bf 34373 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34374 r=`${PWD_COMMAND}`; export r; \
34375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34376 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34377 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34378 for flag in $(EXTRA_TARGET_FLAGS); do \
34379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34380 done; \
a90ef4bf 34381 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34384 "RANLIB=$${RANLIB}" \
0c24b341 34385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34386 TAGS) \
34387 || exit 1
34388
a90ef4bf 34389@endif target-newlib
6aa8ef82 34390
a90ef4bf
JM
34391.PHONY: maybe-install-info-target-newlib install-info-target-newlib
34392maybe-install-info-target-newlib:
34393@if target-newlib
34394maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 34395
a90ef4bf
JM
34396install-info-target-newlib: \
34397 configure-target-newlib \
34398 info-target-newlib
6aa8ef82 34399 @: $(MAKE); $(unstage)
a90ef4bf 34400 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34401 r=`${PWD_COMMAND}`; export r; \
34402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34403 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34404 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34405 for flag in $(EXTRA_TARGET_FLAGS); do \
34406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34407 done; \
a90ef4bf 34408 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34411 "RANLIB=$${RANLIB}" \
0c24b341 34412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34413 install-info) \
34414 || exit 1
34415
a90ef4bf 34416@endif target-newlib
6aa8ef82 34417
a90ef4bf
JM
34418.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
34419maybe-install-pdf-target-newlib:
34420@if target-newlib
34421maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 34422
a90ef4bf
JM
34423install-pdf-target-newlib: \
34424 configure-target-newlib \
34425 pdf-target-newlib
a3ca38d2 34426 @: $(MAKE); $(unstage)
a90ef4bf 34427 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
a3ca38d2
DD
34428 r=`${PWD_COMMAND}`; export r; \
34429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34430 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34431 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib" ; \
a3ca38d2
DD
34432 for flag in $(EXTRA_TARGET_FLAGS); do \
34433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34434 done; \
a90ef4bf 34435 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
34436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34438 "RANLIB=$${RANLIB}" \
0c24b341 34439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34440 install-pdf) \
34441 || exit 1
34442
a90ef4bf 34443@endif target-newlib
a3ca38d2 34444
a90ef4bf
JM
34445.PHONY: maybe-install-html-target-newlib install-html-target-newlib
34446maybe-install-html-target-newlib:
34447@if target-newlib
34448maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 34449
a90ef4bf
JM
34450install-html-target-newlib: \
34451 configure-target-newlib \
34452 html-target-newlib
6aa8ef82 34453 @: $(MAKE); $(unstage)
a90ef4bf 34454 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34455 r=`${PWD_COMMAND}`; export r; \
34456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34457 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34458 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34459 for flag in $(EXTRA_TARGET_FLAGS); do \
34460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34461 done; \
a90ef4bf 34462 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34465 "RANLIB=$${RANLIB}" \
0c24b341 34466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34467 install-html) \
34468 || exit 1
34469
a90ef4bf 34470@endif target-newlib
6aa8ef82 34471
a90ef4bf
JM
34472.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
34473maybe-installcheck-target-newlib:
34474@if target-newlib
34475maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 34476
a90ef4bf
JM
34477installcheck-target-newlib: \
34478 configure-target-newlib
6aa8ef82 34479 @: $(MAKE); $(unstage)
a90ef4bf 34480 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34481 r=`${PWD_COMMAND}`; export r; \
34482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34483 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34484 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34485 for flag in $(EXTRA_TARGET_FLAGS); do \
34486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34487 done; \
a90ef4bf 34488 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34491 "RANLIB=$${RANLIB}" \
0c24b341 34492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34493 installcheck) \
34494 || exit 1
34495
a90ef4bf 34496@endif target-newlib
6aa8ef82 34497
a90ef4bf
JM
34498.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
34499maybe-mostlyclean-target-newlib:
34500@if target-newlib
34501maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 34502
a90ef4bf 34503mostlyclean-target-newlib:
6aa8ef82 34504 @: $(MAKE); $(unstage)
a90ef4bf 34505 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34506 r=`${PWD_COMMAND}`; export r; \
34507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34508 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34509 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34510 for flag in $(EXTRA_TARGET_FLAGS); do \
34511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34512 done; \
a90ef4bf 34513 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34516 "RANLIB=$${RANLIB}" \
0c24b341 34517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34518 mostlyclean) \
34519 || exit 1
34520
a90ef4bf 34521@endif target-newlib
6aa8ef82 34522
a90ef4bf
JM
34523.PHONY: maybe-clean-target-newlib clean-target-newlib
34524maybe-clean-target-newlib:
34525@if target-newlib
34526maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 34527
a90ef4bf 34528clean-target-newlib:
6aa8ef82 34529 @: $(MAKE); $(unstage)
a90ef4bf 34530 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34531 r=`${PWD_COMMAND}`; export r; \
34532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34533 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34534 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34535 for flag in $(EXTRA_TARGET_FLAGS); do \
34536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34537 done; \
a90ef4bf 34538 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34541 "RANLIB=$${RANLIB}" \
0c24b341 34542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34543 clean) \
34544 || exit 1
34545
a90ef4bf 34546@endif target-newlib
6aa8ef82 34547
a90ef4bf
JM
34548.PHONY: maybe-distclean-target-newlib distclean-target-newlib
34549maybe-distclean-target-newlib:
34550@if target-newlib
34551maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 34552
a90ef4bf 34553distclean-target-newlib:
6aa8ef82 34554 @: $(MAKE); $(unstage)
a90ef4bf 34555 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34556 r=`${PWD_COMMAND}`; export r; \
34557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34558 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34559 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34560 for flag in $(EXTRA_TARGET_FLAGS); do \
34561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34562 done; \
a90ef4bf 34563 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34566 "RANLIB=$${RANLIB}" \
0c24b341 34567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34568 distclean) \
34569 || exit 1
34570
a90ef4bf 34571@endif target-newlib
6aa8ef82 34572
a90ef4bf
JM
34573.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
34574maybe-maintainer-clean-target-newlib:
34575@if target-newlib
34576maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 34577
a90ef4bf 34578maintainer-clean-target-newlib:
6aa8ef82 34579 @: $(MAKE); $(unstage)
a90ef4bf 34580 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
34581 r=`${PWD_COMMAND}`; export r; \
34582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34583 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 34584 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
34585 for flag in $(EXTRA_TARGET_FLAGS); do \
34586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34587 done; \
a90ef4bf 34588 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
34589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34591 "RANLIB=$${RANLIB}" \
0c24b341 34592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
34593 maintainer-clean) \
34594 || exit 1
34595
a90ef4bf 34596@endif target-newlib
6aa8ef82
DJ
34597
34598
34599
34600
34601
a90ef4bf
JM
34602.PHONY: configure-target-libgcc maybe-configure-target-libgcc
34603maybe-configure-target-libgcc:
e552509b 34604@if gcc-bootstrap
a90ef4bf 34605configure-target-libgcc: stage_current
e552509b 34606@endif gcc-bootstrap
a90ef4bf
JM
34607@if target-libgcc
34608maybe-configure-target-libgcc: configure-target-libgcc
34609configure-target-libgcc:
e552509b
ILT
34610 @r=`${PWD_COMMAND}`; export r; \
34611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34612 echo "Checking multilib configuration for libgcc..."; \
34613 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
34614 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
34615 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34616 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34617 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 34618 else \
a90ef4bf
JM
34619 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
34620 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
34621 fi; \
34622 else \
a90ef4bf 34623 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 34624 fi; \
a90ef4bf
JM
34625 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
34626 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
e552509b 34627 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34628 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
34629 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
34630 case $(srcdir) in \
34631 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 34632 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
34633 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34634 esac; \
a90ef4bf
JM
34635 srcdiroption="--srcdir=$${topdir}/libgcc"; \
34636 libsrcdir="$$s/libgcc"; \
e552509b
ILT
34637 rm -f no-such-file || : ; \
34638 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
34639 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34640 --target=${target_alias} $${srcdiroption} \
34641 || exit 1
a90ef4bf 34642@endif target-libgcc
e552509b
ILT
34643
34644
e552509b 34645
a90ef4bf
JM
34646.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
34647maybe-configure-stage1-target-libgcc:
34648@if target-libgcc-bootstrap
34649maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
34650configure-stage1-target-libgcc:
34651 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34652 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
34653 @r=`${PWD_COMMAND}`; export r; \
34654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34655 TFLAGS="$(STAGE1_TFLAGS)"; \
34656 echo "Checking multilib configuration for libgcc..."; \
34657 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
34658 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34659 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34660 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
34661 else \
34662 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
34663 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34664 fi; \
34665 else \
34666 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34667 fi; \
34668 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 34669 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34670 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34671 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34672 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
34673 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc ; \
34674 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
34675 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
34676 case $(srcdir) in \
34677 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34678 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
34679 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34680 esac; \
34681 srcdiroption="--srcdir=$${topdir}/libgcc"; \
34682 libsrcdir="$$s/libgcc"; \
34683 $(SHELL) $${libsrcdir}/configure \
34684 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34685 --target=${target_alias} $${srcdiroption} \
34686 $(STAGE1_CONFIGURE_FLAGS)
34687@endif target-libgcc-bootstrap
e552509b 34688
a90ef4bf
JM
34689.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
34690maybe-configure-stage2-target-libgcc:
34691@if target-libgcc-bootstrap
34692maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
34693configure-stage2-target-libgcc:
34694 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34695 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
34696 @r=`${PWD_COMMAND}`; export r; \
34697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34698 TFLAGS="$(STAGE2_TFLAGS)"; \
34699 echo "Checking multilib configuration for libgcc..."; \
34700 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
34701 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34702 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34703 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
34704 else \
34705 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
34706 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34707 fi; \
34708 else \
34709 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34710 fi; \
34711 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 34712 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34713 \
34714 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34715 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34716 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
34717 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc ; \
34718 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
34719 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
34720 case $(srcdir) in \
34721 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34722 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
34723 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34724 esac; \
34725 srcdiroption="--srcdir=$${topdir}/libgcc"; \
34726 libsrcdir="$$s/libgcc"; \
34727 $(SHELL) $${libsrcdir}/configure \
34728 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34729 --target=${target_alias} $${srcdiroption} \
34730 --with-build-libsubdir=$(HOST_SUBDIR) \
34731 $(STAGE2_CONFIGURE_FLAGS)
34732@endif target-libgcc-bootstrap
9b980aa1 34733
a90ef4bf
JM
34734.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
34735maybe-configure-stage3-target-libgcc:
34736@if target-libgcc-bootstrap
34737maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
34738configure-stage3-target-libgcc:
34739 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34740 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
34741 @r=`${PWD_COMMAND}`; export r; \
34742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34743 TFLAGS="$(STAGE3_TFLAGS)"; \
34744 echo "Checking multilib configuration for libgcc..."; \
34745 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
34746 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34747 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34748 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
34749 else \
34750 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
34751 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34752 fi; \
34753 else \
34754 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34755 fi; \
34756 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 34757 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34758 \
34759 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34760 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34761 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
34762 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc ; \
34763 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
34764 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
34765 case $(srcdir) in \
34766 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34767 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
34768 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34769 esac; \
34770 srcdiroption="--srcdir=$${topdir}/libgcc"; \
34771 libsrcdir="$$s/libgcc"; \
34772 $(SHELL) $${libsrcdir}/configure \
34773 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34774 --target=${target_alias} $${srcdiroption} \
34775 --with-build-libsubdir=$(HOST_SUBDIR) \
34776 $(STAGE3_CONFIGURE_FLAGS)
34777@endif target-libgcc-bootstrap
e552509b 34778
a90ef4bf
JM
34779.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
34780maybe-configure-stage4-target-libgcc:
34781@if target-libgcc-bootstrap
34782maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
34783configure-stage4-target-libgcc:
34784 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34785 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
34786 @r=`${PWD_COMMAND}`; export r; \
e552509b 34787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34788 TFLAGS="$(STAGE4_TFLAGS)"; \
34789 echo "Checking multilib configuration for libgcc..."; \
34790 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
34791 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34792 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34793 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
34794 else \
34795 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
34796 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34797 fi; \
34798 else \
34799 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34800 fi; \
34801 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 34802 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34803 \
34804 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34805 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34806 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
34807 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc ; \
34808 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
34809 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
34810 case $(srcdir) in \
34811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34812 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
34813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34814 esac; \
34815 srcdiroption="--srcdir=$${topdir}/libgcc"; \
34816 libsrcdir="$$s/libgcc"; \
34817 $(SHELL) $${libsrcdir}/configure \
34818 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34819 --target=${target_alias} $${srcdiroption} \
34820 --with-build-libsubdir=$(HOST_SUBDIR) \
34821 $(STAGE4_CONFIGURE_FLAGS)
34822@endif target-libgcc-bootstrap
34823
34824.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
34825maybe-configure-stageprofile-target-libgcc:
34826@if target-libgcc-bootstrap
34827maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
34828configure-stageprofile-target-libgcc:
34829 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34830 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
34831 @r=`${PWD_COMMAND}`; export r; \
e552509b 34832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34833 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34834 echo "Checking multilib configuration for libgcc..."; \
34835 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
34836 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34837 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34838 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
34839 else \
34840 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
34841 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34842 fi; \
34843 else \
34844 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34845 fi; \
34846 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 34847 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34848 \
34849 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34850 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34851 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
34852 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc ; \
34853 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
34854 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
34855 case $(srcdir) in \
34856 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34857 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
34858 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34859 esac; \
34860 srcdiroption="--srcdir=$${topdir}/libgcc"; \
34861 libsrcdir="$$s/libgcc"; \
34862 $(SHELL) $${libsrcdir}/configure \
34863 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34864 --target=${target_alias} $${srcdiroption} \
34865 --with-build-libsubdir=$(HOST_SUBDIR) \
34866 $(STAGEprofile_CONFIGURE_FLAGS)
34867@endif target-libgcc-bootstrap
e552509b 34868
a90ef4bf
JM
34869.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
34870maybe-configure-stagefeedback-target-libgcc:
34871@if target-libgcc-bootstrap
34872maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
34873configure-stagefeedback-target-libgcc:
34874 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34875 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
34876 @r=`${PWD_COMMAND}`; export r; \
e552509b 34877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34878 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34879 echo "Checking multilib configuration for libgcc..."; \
34880 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
34881 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34882 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
34883 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
34884 else \
34885 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
34886 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34887 fi; \
34888 else \
34889 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
34890 fi; \
34891 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 34892 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34893 \
34894 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34895 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34896 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
34897 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc ; \
34898 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
34899 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
34900 case $(srcdir) in \
34901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34902 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
34903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34904 esac; \
34905 srcdiroption="--srcdir=$${topdir}/libgcc"; \
34906 libsrcdir="$$s/libgcc"; \
34907 $(SHELL) $${libsrcdir}/configure \
34908 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34909 --target=${target_alias} $${srcdiroption} \
34910 --with-build-libsubdir=$(HOST_SUBDIR) \
34911 $(STAGEfeedback_CONFIGURE_FLAGS)
34912@endif target-libgcc-bootstrap
e552509b 34913
e552509b 34914
e552509b 34915
e552509b 34916
e552509b 34917
a90ef4bf
JM
34918.PHONY: all-target-libgcc maybe-all-target-libgcc
34919maybe-all-target-libgcc:
34920@if gcc-bootstrap
34921all-target-libgcc: stage_current
34922@endif gcc-bootstrap
34923@if target-libgcc
34924TARGET-target-libgcc=all
34925maybe-all-target-libgcc: all-target-libgcc
34926all-target-libgcc: configure-target-libgcc
34927 @r=`${PWD_COMMAND}`; export r; \
e552509b 34928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34929 $(NORMAL_TARGET_EXPORTS) \
34930 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 34931 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
34932 $(TARGET-target-libgcc))
34933@endif target-libgcc
e552509b 34934
e552509b 34935
e552509b 34936
a90ef4bf
JM
34937.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
34938.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
34939maybe-all-stage1-target-libgcc:
34940maybe-clean-stage1-target-libgcc:
34941@if target-libgcc-bootstrap
34942maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
34943all-stage1: all-stage1-target-libgcc
34944TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
34945all-stage1-target-libgcc: configure-stage1-target-libgcc
34946 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34947 @r=`${PWD_COMMAND}`; export r; \
e552509b 34948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34949 TFLAGS="$(STAGE1_TFLAGS)"; \
34950 $(NORMAL_TARGET_EXPORTS) \
34951 cd $(TARGET_SUBDIR)/libgcc && \
34952 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34953 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34954 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34955 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34956 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34957 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34958 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
34959 $(EXTRA_TARGET_FLAGS) \
34960 \
a90ef4bf
JM
34961 TFLAGS="$(STAGE1_TFLAGS)" \
34962 $(TARGET-stage1-target-libgcc)
e552509b 34963
a90ef4bf
JM
34964maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
34965clean-stage1: clean-stage1-target-libgcc
34966clean-stage1-target-libgcc:
34967 @if [ $(current_stage) = stage1 ]; then \
34968 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
34969 else \
34970 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
34971 $(MAKE) stage1-start; \
34972 fi; \
34973 cd $(TARGET_SUBDIR)/libgcc && \
34974 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 34975 clean
a90ef4bf 34976@endif target-libgcc-bootstrap
e552509b 34977
e552509b 34978
a90ef4bf
JM
34979.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
34980.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
34981maybe-all-stage2-target-libgcc:
34982maybe-clean-stage2-target-libgcc:
34983@if target-libgcc-bootstrap
34984maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
34985all-stage2: all-stage2-target-libgcc
34986TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
34987all-stage2-target-libgcc: configure-stage2-target-libgcc
34988 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34989 @r=`${PWD_COMMAND}`; export r; \
e552509b 34990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 34991 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 34992 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
34993 \
34994 cd $(TARGET_SUBDIR)/libgcc && \
34995 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34996 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34997 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34998 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34999 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35000 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35001 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35002 $(EXTRA_TARGET_FLAGS) \
35003 TFLAGS="$(STAGE2_TFLAGS)" \
35004 $(TARGET-stage2-target-libgcc)
e552509b 35005
a90ef4bf
JM
35006maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
35007clean-stage2: clean-stage2-target-libgcc
35008clean-stage2-target-libgcc:
35009 @if [ $(current_stage) = stage2 ]; then \
35010 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
35011 else \
35012 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
35013 $(MAKE) stage2-start; \
35014 fi; \
35015 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 35016 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 35017@endif target-libgcc-bootstrap
e552509b 35018
e552509b 35019
a90ef4bf
JM
35020.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
35021.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
35022maybe-all-stage3-target-libgcc:
35023maybe-clean-stage3-target-libgcc:
35024@if target-libgcc-bootstrap
35025maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
35026all-stage3: all-stage3-target-libgcc
35027TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
35028all-stage3-target-libgcc: configure-stage3-target-libgcc
35029 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35030 @r=`${PWD_COMMAND}`; export r; \
e552509b 35031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 35032 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 35033 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
35034 \
35035 cd $(TARGET_SUBDIR)/libgcc && \
35036 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35037 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35038 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35039 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35040 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35041 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35042 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35043 $(EXTRA_TARGET_FLAGS) \
35044 TFLAGS="$(STAGE3_TFLAGS)" \
35045 $(TARGET-stage3-target-libgcc)
e552509b 35046
a90ef4bf
JM
35047maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
35048clean-stage3: clean-stage3-target-libgcc
35049clean-stage3-target-libgcc:
35050 @if [ $(current_stage) = stage3 ]; then \
35051 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
35052 else \
35053 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
35054 $(MAKE) stage3-start; \
35055 fi; \
35056 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 35057 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 35058@endif target-libgcc-bootstrap
e552509b 35059
e552509b 35060
a90ef4bf
JM
35061.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
35062.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
35063maybe-all-stage4-target-libgcc:
35064maybe-clean-stage4-target-libgcc:
35065@if target-libgcc-bootstrap
35066maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
35067all-stage4: all-stage4-target-libgcc
35068TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
35069all-stage4-target-libgcc: configure-stage4-target-libgcc
35070 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35071 @r=`${PWD_COMMAND}`; export r; \
e552509b 35072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 35073 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 35074 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
35075 \
35076 cd $(TARGET_SUBDIR)/libgcc && \
35077 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35078 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35079 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35080 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35081 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35082 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35083 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35084 $(EXTRA_TARGET_FLAGS) \
35085 TFLAGS="$(STAGE4_TFLAGS)" \
35086 $(TARGET-stage4-target-libgcc)
e552509b 35087
a90ef4bf
JM
35088maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
35089clean-stage4: clean-stage4-target-libgcc
35090clean-stage4-target-libgcc:
35091 @if [ $(current_stage) = stage4 ]; then \
35092 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
35093 else \
35094 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
35095 $(MAKE) stage4-start; \
35096 fi; \
35097 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 35098 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 35099@endif target-libgcc-bootstrap
e552509b
ILT
35100
35101
a90ef4bf
JM
35102.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
35103.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
35104maybe-all-stageprofile-target-libgcc:
35105maybe-clean-stageprofile-target-libgcc:
35106@if target-libgcc-bootstrap
35107maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
35108all-stageprofile: all-stageprofile-target-libgcc
35109TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
35110all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
35111 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
35112 @r=`${PWD_COMMAND}`; export r; \
35113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
35114 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35115 $(NORMAL_TARGET_EXPORTS) \
35116 \
35117 cd $(TARGET_SUBDIR)/libgcc && \
35118 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35119 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35120 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35121 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35122 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35123 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35124 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35125 $(EXTRA_TARGET_FLAGS) \
35126 TFLAGS="$(STAGEprofile_TFLAGS)" \
35127 $(TARGET-stageprofile-target-libgcc)
35128
35129maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
35130clean-stageprofile: clean-stageprofile-target-libgcc
35131clean-stageprofile-target-libgcc:
35132 @if [ $(current_stage) = stageprofile ]; then \
35133 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 35134 else \
a90ef4bf
JM
35135 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
35136 $(MAKE) stageprofile-start; \
c52c6897 35137 fi; \
a90ef4bf 35138 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 35139 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 35140@endif target-libgcc-bootstrap
d545f33b
PB
35141
35142
a90ef4bf
JM
35143.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
35144.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
35145maybe-all-stagefeedback-target-libgcc:
35146maybe-clean-stagefeedback-target-libgcc:
35147@if target-libgcc-bootstrap
35148maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
35149all-stagefeedback: all-stagefeedback-target-libgcc
35150TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
35151all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
35152 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
35153 @r=`${PWD_COMMAND}`; export r; \
35154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
35155 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35156 $(NORMAL_TARGET_EXPORTS) \
35157 \
35158 cd $(TARGET_SUBDIR)/libgcc && \
35159 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35160 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35161 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35162 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35166 $(EXTRA_TARGET_FLAGS) \
35167 TFLAGS="$(STAGEfeedback_TFLAGS)" \
35168 $(TARGET-stagefeedback-target-libgcc)
35169
35170maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
35171clean-stagefeedback: clean-stagefeedback-target-libgcc
35172clean-stagefeedback-target-libgcc:
35173 @if [ $(current_stage) = stagefeedback ]; then \
35174 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
35175 else \
35176 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
35177 $(MAKE) stagefeedback-start; \
35178 fi; \
35179 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 35180 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 35181@endif target-libgcc-bootstrap
4b1cb4fe 35182
a7254363
PB
35183
35184
d545f33b
PB
35185
35186
4b1cb4fe 35187
a90ef4bf
JM
35188.PHONY: check-target-libgcc maybe-check-target-libgcc
35189maybe-check-target-libgcc:
35190@if target-libgcc
35191maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 35192
a90ef4bf
JM
35193# Dummy target for uncheckable module.
35194check-target-libgcc:
4b1cb4fe 35195
a90ef4bf 35196@endif target-libgcc
4b1cb4fe 35197
a90ef4bf
JM
35198.PHONY: install-target-libgcc maybe-install-target-libgcc
35199maybe-install-target-libgcc:
35200@if target-libgcc
35201maybe-install-target-libgcc: install-target-libgcc
35202
35203install-target-libgcc: installdirs
0aed8855 35204 @: $(MAKE); $(unstage)
4b1cb4fe
DD
35205 @r=`${PWD_COMMAND}`; export r; \
35206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35207 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35208 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 35209 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 35210
a90ef4bf 35211@endif target-libgcc
4b1cb4fe 35212
a90ef4bf
JM
35213.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
35214maybe-install-strip-target-libgcc:
35215@if target-libgcc
35216maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 35217
a90ef4bf 35218install-strip-target-libgcc: installdirs
9b980aa1
RW
35219 @: $(MAKE); $(unstage)
35220 @r=`${PWD_COMMAND}`; export r; \
35221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35222 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35223 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
35224 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35225
a90ef4bf 35226@endif target-libgcc
9b980aa1 35227
56a8fe78 35228# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 35229
a90ef4bf
JM
35230.PHONY: maybe-info-target-libgcc info-target-libgcc
35231maybe-info-target-libgcc:
35232@if target-libgcc
35233maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 35234
a90ef4bf
JM
35235info-target-libgcc: \
35236 configure-target-libgcc
0aed8855 35237 @: $(MAKE); $(unstage)
a90ef4bf 35238 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35239 r=`${PWD_COMMAND}`; export r; \
35240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35241 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35242 echo "Doing info in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35243 for flag in $(EXTRA_TARGET_FLAGS); do \
35244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35245 done; \
a90ef4bf 35246 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35249 "RANLIB=$${RANLIB}" \
0c24b341 35250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35251 info) \
4b1cb4fe
DD
35252 || exit 1
35253
a90ef4bf 35254@endif target-libgcc
4b1cb4fe 35255
a90ef4bf
JM
35256.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
35257maybe-dvi-target-libgcc:
35258@if target-libgcc
35259maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 35260
a90ef4bf
JM
35261dvi-target-libgcc: \
35262 configure-target-libgcc
0aed8855 35263 @: $(MAKE); $(unstage)
a90ef4bf 35264 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35265 r=`${PWD_COMMAND}`; export r; \
35266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35267 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35268 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35269 for flag in $(EXTRA_TARGET_FLAGS); do \
35270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35271 done; \
a90ef4bf 35272 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35275 "RANLIB=$${RANLIB}" \
0c24b341 35276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35277 dvi) \
4b1cb4fe
DD
35278 || exit 1
35279
a90ef4bf 35280@endif target-libgcc
4b1cb4fe 35281
a90ef4bf
JM
35282.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
35283maybe-pdf-target-libgcc:
35284@if target-libgcc
35285maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 35286
a90ef4bf
JM
35287pdf-target-libgcc: \
35288 configure-target-libgcc
56a8fe78 35289 @: $(MAKE); $(unstage)
a90ef4bf 35290 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
56a8fe78
DD
35291 r=`${PWD_COMMAND}`; export r; \
35292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35293 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35294 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc" ; \
56a8fe78
DD
35295 for flag in $(EXTRA_TARGET_FLAGS); do \
35296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35297 done; \
a90ef4bf 35298 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
35299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35301 "RANLIB=$${RANLIB}" \
0c24b341 35302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
35303 pdf) \
35304 || exit 1
35305
a90ef4bf 35306@endif target-libgcc
56a8fe78 35307
a90ef4bf
JM
35308.PHONY: maybe-html-target-libgcc html-target-libgcc
35309maybe-html-target-libgcc:
35310@if target-libgcc
35311maybe-html-target-libgcc: html-target-libgcc
6d389afc 35312
a90ef4bf
JM
35313html-target-libgcc: \
35314 configure-target-libgcc
0aed8855 35315 @: $(MAKE); $(unstage)
a90ef4bf 35316 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6d389afc
MS
35317 r=`${PWD_COMMAND}`; export r; \
35318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 35319 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35320 echo "Doing html in $(TARGET_SUBDIR)/libgcc" ; \
6d389afc
MS
35321 for flag in $(EXTRA_TARGET_FLAGS); do \
35322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35323 done; \
a90ef4bf 35324 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
35325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35327 "RANLIB=$${RANLIB}" \
0c24b341 35328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
35329 html) \
35330 || exit 1
35331
a90ef4bf 35332@endif target-libgcc
6d389afc 35333
a90ef4bf
JM
35334.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
35335maybe-TAGS-target-libgcc:
35336@if target-libgcc
35337maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 35338
a90ef4bf
JM
35339TAGS-target-libgcc: \
35340 configure-target-libgcc
0aed8855 35341 @: $(MAKE); $(unstage)
a90ef4bf 35342 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35343 r=`${PWD_COMMAND}`; export r; \
35344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35345 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35346 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35347 for flag in $(EXTRA_TARGET_FLAGS); do \
35348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35349 done; \
a90ef4bf 35350 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35353 "RANLIB=$${RANLIB}" \
0c24b341 35354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35355 TAGS) \
4b1cb4fe
DD
35356 || exit 1
35357
a90ef4bf 35358@endif target-libgcc
4b1cb4fe 35359
a90ef4bf
JM
35360.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
35361maybe-install-info-target-libgcc:
35362@if target-libgcc
35363maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 35364
a90ef4bf
JM
35365install-info-target-libgcc: \
35366 configure-target-libgcc \
35367 info-target-libgcc
0aed8855 35368 @: $(MAKE); $(unstage)
a90ef4bf 35369 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35370 r=`${PWD_COMMAND}`; export r; \
35371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35372 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35373 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35374 for flag in $(EXTRA_TARGET_FLAGS); do \
35375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35376 done; \
a90ef4bf 35377 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35380 "RANLIB=$${RANLIB}" \
0c24b341 35381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35382 install-info) \
4b1cb4fe
DD
35383 || exit 1
35384
a90ef4bf 35385@endif target-libgcc
4b1cb4fe 35386
a90ef4bf
JM
35387.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
35388maybe-install-pdf-target-libgcc:
35389@if target-libgcc
35390maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 35391
a90ef4bf
JM
35392install-pdf-target-libgcc: \
35393 configure-target-libgcc \
35394 pdf-target-libgcc
a3ca38d2 35395 @: $(MAKE); $(unstage)
a90ef4bf 35396 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
a3ca38d2
DD
35397 r=`${PWD_COMMAND}`; export r; \
35398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35399 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35400 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc" ; \
a3ca38d2
DD
35401 for flag in $(EXTRA_TARGET_FLAGS); do \
35402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35403 done; \
a90ef4bf 35404 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
35405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35407 "RANLIB=$${RANLIB}" \
0c24b341 35408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
35409 install-pdf) \
35410 || exit 1
35411
a90ef4bf 35412@endif target-libgcc
a3ca38d2 35413
a90ef4bf
JM
35414.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
35415maybe-install-html-target-libgcc:
35416@if target-libgcc
35417maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 35418
a90ef4bf
JM
35419install-html-target-libgcc: \
35420 configure-target-libgcc \
35421 html-target-libgcc
108a6f8e 35422 @: $(MAKE); $(unstage)
a90ef4bf 35423 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
108a6f8e
CD
35424 r=`${PWD_COMMAND}`; export r; \
35425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35426 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35427 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc" ; \
108a6f8e
CD
35428 for flag in $(EXTRA_TARGET_FLAGS); do \
35429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35430 done; \
a90ef4bf 35431 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
35432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35434 "RANLIB=$${RANLIB}" \
0c24b341 35435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
35436 install-html) \
35437 || exit 1
35438
a90ef4bf 35439@endif target-libgcc
108a6f8e 35440
a90ef4bf
JM
35441.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
35442maybe-installcheck-target-libgcc:
35443@if target-libgcc
35444maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 35445
a90ef4bf
JM
35446installcheck-target-libgcc: \
35447 configure-target-libgcc
0aed8855 35448 @: $(MAKE); $(unstage)
a90ef4bf 35449 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35450 r=`${PWD_COMMAND}`; export r; \
35451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35452 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35453 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35454 for flag in $(EXTRA_TARGET_FLAGS); do \
35455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35456 done; \
a90ef4bf 35457 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35460 "RANLIB=$${RANLIB}" \
0c24b341 35461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35462 installcheck) \
4b1cb4fe
DD
35463 || exit 1
35464
a90ef4bf 35465@endif target-libgcc
4b1cb4fe 35466
a90ef4bf
JM
35467.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
35468maybe-mostlyclean-target-libgcc:
35469@if target-libgcc
35470maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 35471
a90ef4bf 35472mostlyclean-target-libgcc:
0aed8855 35473 @: $(MAKE); $(unstage)
a90ef4bf 35474 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35475 r=`${PWD_COMMAND}`; export r; \
35476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35477 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35478 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35479 for flag in $(EXTRA_TARGET_FLAGS); do \
35480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35481 done; \
a90ef4bf 35482 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35485 "RANLIB=$${RANLIB}" \
0c24b341 35486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35487 mostlyclean) \
4b1cb4fe
DD
35488 || exit 1
35489
a90ef4bf 35490@endif target-libgcc
4b1cb4fe 35491
a90ef4bf
JM
35492.PHONY: maybe-clean-target-libgcc clean-target-libgcc
35493maybe-clean-target-libgcc:
35494@if target-libgcc
35495maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 35496
a90ef4bf 35497clean-target-libgcc:
0aed8855 35498 @: $(MAKE); $(unstage)
a90ef4bf 35499 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35500 r=`${PWD_COMMAND}`; export r; \
35501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35502 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35503 echo "Doing clean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35504 for flag in $(EXTRA_TARGET_FLAGS); do \
35505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35506 done; \
a90ef4bf 35507 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35510 "RANLIB=$${RANLIB}" \
0c24b341 35511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35512 clean) \
4b1cb4fe
DD
35513 || exit 1
35514
a90ef4bf 35515@endif target-libgcc
4b1cb4fe 35516
a90ef4bf
JM
35517.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
35518maybe-distclean-target-libgcc:
35519@if target-libgcc
35520maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 35521
a90ef4bf 35522distclean-target-libgcc:
0aed8855 35523 @: $(MAKE); $(unstage)
a90ef4bf 35524 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35525 r=`${PWD_COMMAND}`; export r; \
35526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35527 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35528 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35529 for flag in $(EXTRA_TARGET_FLAGS); do \
35530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35531 done; \
a90ef4bf 35532 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35535 "RANLIB=$${RANLIB}" \
0c24b341 35536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35537 distclean) \
4b1cb4fe
DD
35538 || exit 1
35539
a90ef4bf 35540@endif target-libgcc
4b1cb4fe 35541
a90ef4bf
JM
35542.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
35543maybe-maintainer-clean-target-libgcc:
35544@if target-libgcc
35545maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 35546
a90ef4bf 35547maintainer-clean-target-libgcc:
0aed8855 35548 @: $(MAKE); $(unstage)
a90ef4bf 35549 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
35550 r=`${PWD_COMMAND}`; export r; \
35551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35552 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 35553 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
35554 for flag in $(EXTRA_TARGET_FLAGS); do \
35555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35556 done; \
a90ef4bf 35557 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
35558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35560 "RANLIB=$${RANLIB}" \
0c24b341 35561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35562 maintainer-clean) \
4b1cb4fe
DD
35563 || exit 1
35564
a90ef4bf 35565@endif target-libgcc
4b1cb4fe
DD
35566
35567
3866be5d 35568
a7254363 35569
e90269c8 35570
2bf680c4
ILT
35571.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
35572maybe-configure-target-libbacktrace:
35573@if gcc-bootstrap
35574configure-target-libbacktrace: stage_current
35575@endif gcc-bootstrap
35576@if target-libbacktrace
35577maybe-configure-target-libbacktrace: configure-target-libbacktrace
35578configure-target-libbacktrace:
35579 @: $(MAKE); $(unstage)
35580 @r=`${PWD_COMMAND}`; export r; \
35581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35582 echo "Checking multilib configuration for libbacktrace..."; \
35583 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace ; \
35584 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null ; \
35585 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
35586 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
35587 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
35588 else \
35589 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
35590 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
35591 fi; \
35592 else \
35593 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
35594 fi; \
35595 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
35596 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace ; \
35597 $(NORMAL_TARGET_EXPORTS) \
35598 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
35599 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
35600 case $(srcdir) in \
35601 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35602 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
35603 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35604 esac; \
35605 srcdiroption="--srcdir=$${topdir}/libbacktrace"; \
35606 libsrcdir="$$s/libbacktrace"; \
35607 rm -f no-such-file || : ; \
35608 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
35609 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35610 --target=${target_alias} $${srcdiroption} \
35611 || exit 1
35612@endif target-libbacktrace
35613
35614
35615
35616
35617
35618.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
35619maybe-all-target-libbacktrace:
35620@if gcc-bootstrap
35621all-target-libbacktrace: stage_current
35622@endif gcc-bootstrap
35623@if target-libbacktrace
35624TARGET-target-libbacktrace=all
35625maybe-all-target-libbacktrace: all-target-libbacktrace
35626all-target-libbacktrace: configure-target-libbacktrace
35627 @: $(MAKE); $(unstage)
35628 @r=`${PWD_COMMAND}`; export r; \
35629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35630 $(NORMAL_TARGET_EXPORTS) \
35631 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 35632 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
35633 $(TARGET-target-libbacktrace))
35634@endif target-libbacktrace
35635
35636
35637
35638
35639
35640.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
35641maybe-check-target-libbacktrace:
35642@if target-libbacktrace
35643maybe-check-target-libbacktrace: check-target-libbacktrace
35644
35645check-target-libbacktrace:
35646 @: $(MAKE); $(unstage)
35647 @r=`${PWD_COMMAND}`; export r; \
35648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35649 $(NORMAL_TARGET_EXPORTS) \
35650 (cd $(TARGET_SUBDIR)/libbacktrace && \
35651 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
35652
35653@endif target-libbacktrace
35654
35655.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
35656maybe-install-target-libbacktrace:
35657@if target-libbacktrace
35658maybe-install-target-libbacktrace: install-target-libbacktrace
35659
35660install-target-libbacktrace: installdirs
35661 @: $(MAKE); $(unstage)
35662 @r=`${PWD_COMMAND}`; export r; \
35663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35664 $(NORMAL_TARGET_EXPORTS) \
35665 (cd $(TARGET_SUBDIR)/libbacktrace && \
35666 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35667
35668@endif target-libbacktrace
35669
35670.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
35671maybe-install-strip-target-libbacktrace:
35672@if target-libbacktrace
35673maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
35674
35675install-strip-target-libbacktrace: installdirs
35676 @: $(MAKE); $(unstage)
35677 @r=`${PWD_COMMAND}`; export r; \
35678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35679 $(NORMAL_TARGET_EXPORTS) \
35680 (cd $(TARGET_SUBDIR)/libbacktrace && \
35681 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35682
35683@endif target-libbacktrace
35684
35685# Other targets (info, dvi, pdf, etc.)
35686
35687.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
35688maybe-info-target-libbacktrace:
35689@if target-libbacktrace
35690maybe-info-target-libbacktrace: info-target-libbacktrace
35691
35692info-target-libbacktrace: \
35693 configure-target-libbacktrace
35694 @: $(MAKE); $(unstage)
35695 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35696 r=`${PWD_COMMAND}`; export r; \
35697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35698 $(NORMAL_TARGET_EXPORTS) \
35699 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace" ; \
35700 for flag in $(EXTRA_TARGET_FLAGS); do \
35701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35702 done; \
35703 (cd $(TARGET_SUBDIR)/libbacktrace && \
35704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35706 "RANLIB=$${RANLIB}" \
35707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35708 info) \
35709 || exit 1
35710
35711@endif target-libbacktrace
35712
35713.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
35714maybe-dvi-target-libbacktrace:
35715@if target-libbacktrace
35716maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
35717
35718dvi-target-libbacktrace: \
35719 configure-target-libbacktrace
35720 @: $(MAKE); $(unstage)
35721 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35722 r=`${PWD_COMMAND}`; export r; \
35723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35724 $(NORMAL_TARGET_EXPORTS) \
35725 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace" ; \
35726 for flag in $(EXTRA_TARGET_FLAGS); do \
35727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35728 done; \
35729 (cd $(TARGET_SUBDIR)/libbacktrace && \
35730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35732 "RANLIB=$${RANLIB}" \
35733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35734 dvi) \
35735 || exit 1
35736
35737@endif target-libbacktrace
35738
35739.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
35740maybe-pdf-target-libbacktrace:
35741@if target-libbacktrace
35742maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
35743
35744pdf-target-libbacktrace: \
35745 configure-target-libbacktrace
35746 @: $(MAKE); $(unstage)
35747 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35748 r=`${PWD_COMMAND}`; export r; \
35749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35750 $(NORMAL_TARGET_EXPORTS) \
35751 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace" ; \
35752 for flag in $(EXTRA_TARGET_FLAGS); do \
35753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35754 done; \
35755 (cd $(TARGET_SUBDIR)/libbacktrace && \
35756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35758 "RANLIB=$${RANLIB}" \
35759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35760 pdf) \
35761 || exit 1
35762
35763@endif target-libbacktrace
35764
35765.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
35766maybe-html-target-libbacktrace:
35767@if target-libbacktrace
35768maybe-html-target-libbacktrace: html-target-libbacktrace
35769
35770html-target-libbacktrace: \
35771 configure-target-libbacktrace
35772 @: $(MAKE); $(unstage)
35773 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35774 r=`${PWD_COMMAND}`; export r; \
35775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35776 $(NORMAL_TARGET_EXPORTS) \
35777 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace" ; \
35778 for flag in $(EXTRA_TARGET_FLAGS); do \
35779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35780 done; \
35781 (cd $(TARGET_SUBDIR)/libbacktrace && \
35782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35784 "RANLIB=$${RANLIB}" \
35785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35786 html) \
35787 || exit 1
35788
35789@endif target-libbacktrace
35790
35791.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
35792maybe-TAGS-target-libbacktrace:
35793@if target-libbacktrace
35794maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
35795
35796TAGS-target-libbacktrace: \
35797 configure-target-libbacktrace
35798 @: $(MAKE); $(unstage)
35799 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35800 r=`${PWD_COMMAND}`; export r; \
35801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35802 $(NORMAL_TARGET_EXPORTS) \
35803 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace" ; \
35804 for flag in $(EXTRA_TARGET_FLAGS); do \
35805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35806 done; \
35807 (cd $(TARGET_SUBDIR)/libbacktrace && \
35808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35810 "RANLIB=$${RANLIB}" \
35811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35812 TAGS) \
35813 || exit 1
35814
35815@endif target-libbacktrace
35816
35817.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
35818maybe-install-info-target-libbacktrace:
35819@if target-libbacktrace
35820maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
35821
35822install-info-target-libbacktrace: \
35823 configure-target-libbacktrace \
35824 info-target-libbacktrace
35825 @: $(MAKE); $(unstage)
35826 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35827 r=`${PWD_COMMAND}`; export r; \
35828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35829 $(NORMAL_TARGET_EXPORTS) \
35830 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace" ; \
35831 for flag in $(EXTRA_TARGET_FLAGS); do \
35832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35833 done; \
35834 (cd $(TARGET_SUBDIR)/libbacktrace && \
35835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35837 "RANLIB=$${RANLIB}" \
35838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35839 install-info) \
35840 || exit 1
35841
35842@endif target-libbacktrace
35843
35844.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
35845maybe-install-pdf-target-libbacktrace:
35846@if target-libbacktrace
35847maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
35848
35849install-pdf-target-libbacktrace: \
35850 configure-target-libbacktrace \
35851 pdf-target-libbacktrace
35852 @: $(MAKE); $(unstage)
35853 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35854 r=`${PWD_COMMAND}`; export r; \
35855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35856 $(NORMAL_TARGET_EXPORTS) \
35857 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace" ; \
35858 for flag in $(EXTRA_TARGET_FLAGS); do \
35859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35860 done; \
35861 (cd $(TARGET_SUBDIR)/libbacktrace && \
35862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35864 "RANLIB=$${RANLIB}" \
35865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35866 install-pdf) \
35867 || exit 1
35868
35869@endif target-libbacktrace
35870
35871.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
35872maybe-install-html-target-libbacktrace:
35873@if target-libbacktrace
35874maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
35875
35876install-html-target-libbacktrace: \
35877 configure-target-libbacktrace \
35878 html-target-libbacktrace
35879 @: $(MAKE); $(unstage)
35880 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35881 r=`${PWD_COMMAND}`; export r; \
35882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35883 $(NORMAL_TARGET_EXPORTS) \
35884 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace" ; \
35885 for flag in $(EXTRA_TARGET_FLAGS); do \
35886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35887 done; \
35888 (cd $(TARGET_SUBDIR)/libbacktrace && \
35889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35891 "RANLIB=$${RANLIB}" \
35892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35893 install-html) \
35894 || exit 1
35895
35896@endif target-libbacktrace
35897
35898.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
35899maybe-installcheck-target-libbacktrace:
35900@if target-libbacktrace
35901maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
35902
35903installcheck-target-libbacktrace: \
35904 configure-target-libbacktrace
35905 @: $(MAKE); $(unstage)
35906 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35907 r=`${PWD_COMMAND}`; export r; \
35908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35909 $(NORMAL_TARGET_EXPORTS) \
35910 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace" ; \
35911 for flag in $(EXTRA_TARGET_FLAGS); do \
35912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35913 done; \
35914 (cd $(TARGET_SUBDIR)/libbacktrace && \
35915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35917 "RANLIB=$${RANLIB}" \
35918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35919 installcheck) \
35920 || exit 1
35921
35922@endif target-libbacktrace
35923
35924.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
35925maybe-mostlyclean-target-libbacktrace:
35926@if target-libbacktrace
35927maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
35928
35929mostlyclean-target-libbacktrace:
35930 @: $(MAKE); $(unstage)
35931 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35932 r=`${PWD_COMMAND}`; export r; \
35933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35934 $(NORMAL_TARGET_EXPORTS) \
35935 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace" ; \
35936 for flag in $(EXTRA_TARGET_FLAGS); do \
35937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35938 done; \
35939 (cd $(TARGET_SUBDIR)/libbacktrace && \
35940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35942 "RANLIB=$${RANLIB}" \
35943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35944 mostlyclean) \
35945 || exit 1
35946
35947@endif target-libbacktrace
35948
35949.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
35950maybe-clean-target-libbacktrace:
35951@if target-libbacktrace
35952maybe-clean-target-libbacktrace: clean-target-libbacktrace
35953
35954clean-target-libbacktrace:
35955 @: $(MAKE); $(unstage)
35956 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35957 r=`${PWD_COMMAND}`; export r; \
35958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35959 $(NORMAL_TARGET_EXPORTS) \
35960 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace" ; \
35961 for flag in $(EXTRA_TARGET_FLAGS); do \
35962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35963 done; \
35964 (cd $(TARGET_SUBDIR)/libbacktrace && \
35965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35967 "RANLIB=$${RANLIB}" \
35968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35969 clean) \
35970 || exit 1
35971
35972@endif target-libbacktrace
35973
35974.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
35975maybe-distclean-target-libbacktrace:
35976@if target-libbacktrace
35977maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
35978
35979distclean-target-libbacktrace:
35980 @: $(MAKE); $(unstage)
35981 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
35982 r=`${PWD_COMMAND}`; export r; \
35983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35984 $(NORMAL_TARGET_EXPORTS) \
35985 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace" ; \
35986 for flag in $(EXTRA_TARGET_FLAGS); do \
35987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35988 done; \
35989 (cd $(TARGET_SUBDIR)/libbacktrace && \
35990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35992 "RANLIB=$${RANLIB}" \
35993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35994 distclean) \
35995 || exit 1
35996
35997@endif target-libbacktrace
35998
35999.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
36000maybe-maintainer-clean-target-libbacktrace:
36001@if target-libbacktrace
36002maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
36003
36004maintainer-clean-target-libbacktrace:
36005 @: $(MAKE); $(unstage)
36006 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
36007 r=`${PWD_COMMAND}`; export r; \
36008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36009 $(NORMAL_TARGET_EXPORTS) \
36010 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace" ; \
36011 for flag in $(EXTRA_TARGET_FLAGS); do \
36012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36013 done; \
36014 (cd $(TARGET_SUBDIR)/libbacktrace && \
36015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36017 "RANLIB=$${RANLIB}" \
36018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36019 maintainer-clean) \
36020 || exit 1
36021
36022@endif target-libbacktrace
36023
36024
36025
36026
36027
a90ef4bf
JM
36028.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
36029maybe-configure-target-libquadmath:
4f0ef2d8 36030@if gcc-bootstrap
a90ef4bf 36031configure-target-libquadmath: stage_current
4f0ef2d8 36032@endif gcc-bootstrap
a90ef4bf
JM
36033@if target-libquadmath
36034maybe-configure-target-libquadmath: configure-target-libquadmath
36035configure-target-libquadmath:
0aed8855
PB
36036 @: $(MAKE); $(unstage)
36037 @r=`${PWD_COMMAND}`; export r; \
36038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36039 echo "Checking multilib configuration for libquadmath..."; \
36040 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
36041 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null ; \
36042 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
36043 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
36044 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 36045 else \
a90ef4bf
JM
36046 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
36047 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
36048 fi; \
36049 else \
a90ef4bf 36050 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 36051 fi; \
a90ef4bf
JM
36052 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
36053 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
1f53ca9a 36054 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
36055 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
36056 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 36057 case $(srcdir) in \
b00612cc 36058 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 36059 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 36060 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 36061 esac; \
a90ef4bf
JM
36062 srcdiroption="--srcdir=$${topdir}/libquadmath"; \
36063 libsrcdir="$$s/libquadmath"; \
4fa63067
NN
36064 rm -f no-such-file || : ; \
36065 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
36066 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36067 --target=${target_alias} $${srcdiroption} \
e2b9e2dc 36068 || exit 1
a90ef4bf 36069@endif target-libquadmath
e2b9e2dc 36070
a7254363
PB
36071
36072
d545f33b
PB
36073
36074
a90ef4bf
JM
36075.PHONY: all-target-libquadmath maybe-all-target-libquadmath
36076maybe-all-target-libquadmath:
4f0ef2d8 36077@if gcc-bootstrap
a90ef4bf 36078all-target-libquadmath: stage_current
4f0ef2d8 36079@endif gcc-bootstrap
a90ef4bf
JM
36080@if target-libquadmath
36081TARGET-target-libquadmath=all
36082maybe-all-target-libquadmath: all-target-libquadmath
36083all-target-libquadmath: configure-target-libquadmath
0aed8855 36084 @: $(MAKE); $(unstage)
b40e3958
L
36085 @r=`${PWD_COMMAND}`; export r; \
36086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 36087 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36088 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 36089 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
36090 $(TARGET-target-libquadmath))
36091@endif target-libquadmath
3866be5d 36092
a7254363
PB
36093
36094
d545f33b
PB
36095
36096
a90ef4bf
JM
36097.PHONY: check-target-libquadmath maybe-check-target-libquadmath
36098maybe-check-target-libquadmath:
36099@if target-libquadmath
36100maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 36101
a90ef4bf 36102check-target-libquadmath:
0aed8855 36103 @: $(MAKE); $(unstage)
b40e3958
L
36104 @r=`${PWD_COMMAND}`; export r; \
36105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36106 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36107 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 36108 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 36109
a90ef4bf 36110@endif target-libquadmath
3866be5d 36111
a90ef4bf
JM
36112.PHONY: install-target-libquadmath maybe-install-target-libquadmath
36113maybe-install-target-libquadmath:
36114@if target-libquadmath
36115maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 36116
a90ef4bf 36117install-target-libquadmath: installdirs
0aed8855 36118 @: $(MAKE); $(unstage)
b40e3958
L
36119 @r=`${PWD_COMMAND}`; export r; \
36120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36121 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36122 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 36123 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 36124
a90ef4bf 36125@endif target-libquadmath
3866be5d 36126
a90ef4bf
JM
36127.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
36128maybe-install-strip-target-libquadmath:
36129@if target-libquadmath
36130maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 36131
a90ef4bf 36132install-strip-target-libquadmath: installdirs
9b980aa1
RW
36133 @: $(MAKE); $(unstage)
36134 @r=`${PWD_COMMAND}`; export r; \
36135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36136 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36137 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
36138 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36139
a90ef4bf 36140@endif target-libquadmath
9b980aa1 36141
56a8fe78 36142# Other targets (info, dvi, pdf, etc.)
4fa63067 36143
a90ef4bf
JM
36144.PHONY: maybe-info-target-libquadmath info-target-libquadmath
36145maybe-info-target-libquadmath:
36146@if target-libquadmath
36147maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 36148
a90ef4bf
JM
36149info-target-libquadmath: \
36150 configure-target-libquadmath
0aed8855 36151 @: $(MAKE); $(unstage)
a90ef4bf 36152 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 36153 r=`${PWD_COMMAND}`; export r; \
b40e3958 36154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36155 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36156 echo "Doing info in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36157 for flag in $(EXTRA_TARGET_FLAGS); do \
36158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36159 done; \
a90ef4bf 36160 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36163 "RANLIB=$${RANLIB}" \
0c24b341 36164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36165 info) \
4fa63067 36166 || exit 1
3866be5d 36167
a90ef4bf 36168@endif target-libquadmath
3866be5d 36169
a90ef4bf
JM
36170.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
36171maybe-dvi-target-libquadmath:
36172@if target-libquadmath
36173maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 36174
a90ef4bf
JM
36175dvi-target-libquadmath: \
36176 configure-target-libquadmath
0aed8855 36177 @: $(MAKE); $(unstage)
a90ef4bf 36178 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 36179 r=`${PWD_COMMAND}`; export r; \
b40e3958 36180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36181 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36182 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36183 for flag in $(EXTRA_TARGET_FLAGS); do \
36184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36185 done; \
a90ef4bf 36186 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36189 "RANLIB=$${RANLIB}" \
0c24b341 36190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36191 dvi) \
4fa63067 36192 || exit 1
3866be5d 36193
a90ef4bf 36194@endif target-libquadmath
3866be5d 36195
a90ef4bf
JM
36196.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
36197maybe-pdf-target-libquadmath:
36198@if target-libquadmath
36199maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 36200
a90ef4bf
JM
36201pdf-target-libquadmath: \
36202 configure-target-libquadmath
56a8fe78 36203 @: $(MAKE); $(unstage)
a90ef4bf 36204 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
56a8fe78
DD
36205 r=`${PWD_COMMAND}`; export r; \
36206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36207 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36208 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath" ; \
56a8fe78
DD
36209 for flag in $(EXTRA_TARGET_FLAGS); do \
36210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36211 done; \
a90ef4bf 36212 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
36213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36215 "RANLIB=$${RANLIB}" \
0c24b341 36216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
36217 pdf) \
36218 || exit 1
36219
a90ef4bf 36220@endif target-libquadmath
56a8fe78 36221
a90ef4bf
JM
36222.PHONY: maybe-html-target-libquadmath html-target-libquadmath
36223maybe-html-target-libquadmath:
36224@if target-libquadmath
36225maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 36226
a90ef4bf
JM
36227html-target-libquadmath: \
36228 configure-target-libquadmath
0aed8855 36229 @: $(MAKE); $(unstage)
a90ef4bf 36230 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
6d389afc
MS
36231 r=`${PWD_COMMAND}`; export r; \
36232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 36233 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36234 echo "Doing html in $(TARGET_SUBDIR)/libquadmath" ; \
6d389afc
MS
36235 for flag in $(EXTRA_TARGET_FLAGS); do \
36236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36237 done; \
a90ef4bf 36238 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
36239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36241 "RANLIB=$${RANLIB}" \
0c24b341 36242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
36243 html) \
36244 || exit 1
36245
a90ef4bf 36246@endif target-libquadmath
6d389afc 36247
a90ef4bf
JM
36248.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
36249maybe-TAGS-target-libquadmath:
36250@if target-libquadmath
36251maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 36252
a90ef4bf
JM
36253TAGS-target-libquadmath: \
36254 configure-target-libquadmath
0aed8855 36255 @: $(MAKE); $(unstage)
a90ef4bf 36256 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b40e3958
L
36257 r=`${PWD_COMMAND}`; export r; \
36258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36259 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36260 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36261 for flag in $(EXTRA_TARGET_FLAGS); do \
36262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36263 done; \
a90ef4bf 36264 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36267 "RANLIB=$${RANLIB}" \
0c24b341 36268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36269 TAGS) \
e2b9e2dc
NN
36270 || exit 1
36271
a90ef4bf 36272@endif target-libquadmath
4fa63067 36273
a90ef4bf
JM
36274.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
36275maybe-install-info-target-libquadmath:
36276@if target-libquadmath
36277maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 36278
a90ef4bf
JM
36279install-info-target-libquadmath: \
36280 configure-target-libquadmath \
36281 info-target-libquadmath
0aed8855 36282 @: $(MAKE); $(unstage)
a90ef4bf 36283 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 36284 r=`${PWD_COMMAND}`; export r; \
b40e3958 36285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36286 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36287 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36288 for flag in $(EXTRA_TARGET_FLAGS); do \
36289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36290 done; \
a90ef4bf 36291 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36294 "RANLIB=$${RANLIB}" \
0c24b341 36295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36296 install-info) \
4fa63067 36297 || exit 1
3866be5d 36298
a90ef4bf 36299@endif target-libquadmath
3866be5d 36300
a90ef4bf
JM
36301.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
36302maybe-install-pdf-target-libquadmath:
36303@if target-libquadmath
36304maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 36305
a90ef4bf
JM
36306install-pdf-target-libquadmath: \
36307 configure-target-libquadmath \
36308 pdf-target-libquadmath
a3ca38d2 36309 @: $(MAKE); $(unstage)
a90ef4bf 36310 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
a3ca38d2
DD
36311 r=`${PWD_COMMAND}`; export r; \
36312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36313 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36314 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath" ; \
a3ca38d2
DD
36315 for flag in $(EXTRA_TARGET_FLAGS); do \
36316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36317 done; \
a90ef4bf 36318 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
36319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36321 "RANLIB=$${RANLIB}" \
0c24b341 36322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
36323 install-pdf) \
36324 || exit 1
36325
a90ef4bf 36326@endif target-libquadmath
a3ca38d2 36327
a90ef4bf
JM
36328.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
36329maybe-install-html-target-libquadmath:
36330@if target-libquadmath
36331maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 36332
a90ef4bf
JM
36333install-html-target-libquadmath: \
36334 configure-target-libquadmath \
36335 html-target-libquadmath
108a6f8e 36336 @: $(MAKE); $(unstage)
a90ef4bf 36337 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
108a6f8e
CD
36338 r=`${PWD_COMMAND}`; export r; \
36339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36340 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36341 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath" ; \
108a6f8e
CD
36342 for flag in $(EXTRA_TARGET_FLAGS); do \
36343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36344 done; \
a90ef4bf 36345 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
36346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36348 "RANLIB=$${RANLIB}" \
0c24b341 36349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
36350 install-html) \
36351 || exit 1
36352
a90ef4bf 36353@endif target-libquadmath
108a6f8e 36354
a90ef4bf
JM
36355.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
36356maybe-installcheck-target-libquadmath:
36357@if target-libquadmath
36358maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 36359
a90ef4bf
JM
36360installcheck-target-libquadmath: \
36361 configure-target-libquadmath
0aed8855 36362 @: $(MAKE); $(unstage)
a90ef4bf 36363 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 36364 r=`${PWD_COMMAND}`; export r; \
b40e3958 36365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36366 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36367 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36368 for flag in $(EXTRA_TARGET_FLAGS); do \
36369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36370 done; \
a90ef4bf 36371 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36374 "RANLIB=$${RANLIB}" \
0c24b341 36375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36376 installcheck) \
4fa63067 36377 || exit 1
3866be5d 36378
a90ef4bf 36379@endif target-libquadmath
3866be5d 36380
a90ef4bf
JM
36381.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
36382maybe-mostlyclean-target-libquadmath:
36383@if target-libquadmath
36384maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 36385
a90ef4bf 36386mostlyclean-target-libquadmath:
0aed8855 36387 @: $(MAKE); $(unstage)
a90ef4bf 36388 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 36389 r=`${PWD_COMMAND}`; export r; \
b40e3958 36390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36391 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36392 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36393 for flag in $(EXTRA_TARGET_FLAGS); do \
36394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36395 done; \
a90ef4bf 36396 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36399 "RANLIB=$${RANLIB}" \
0c24b341 36400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36401 mostlyclean) \
4fa63067 36402 || exit 1
3866be5d 36403
a90ef4bf 36404@endif target-libquadmath
3866be5d 36405
a90ef4bf
JM
36406.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
36407maybe-clean-target-libquadmath:
36408@if target-libquadmath
36409maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 36410
a90ef4bf 36411clean-target-libquadmath:
0aed8855 36412 @: $(MAKE); $(unstage)
a90ef4bf 36413 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b40e3958
L
36414 r=`${PWD_COMMAND}`; export r; \
36415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36416 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36417 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36418 for flag in $(EXTRA_TARGET_FLAGS); do \
36419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36420 done; \
a90ef4bf 36421 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36424 "RANLIB=$${RANLIB}" \
0c24b341 36425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36426 clean) \
e2b9e2dc
NN
36427 || exit 1
36428
a90ef4bf 36429@endif target-libquadmath
3866be5d 36430
a90ef4bf
JM
36431.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
36432maybe-distclean-target-libquadmath:
36433@if target-libquadmath
36434maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 36435
a90ef4bf 36436distclean-target-libquadmath:
0aed8855 36437 @: $(MAKE); $(unstage)
a90ef4bf 36438 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 36439 r=`${PWD_COMMAND}`; export r; \
b40e3958 36440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36441 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36442 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36443 for flag in $(EXTRA_TARGET_FLAGS); do \
36444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36445 done; \
a90ef4bf 36446 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36449 "RANLIB=$${RANLIB}" \
0c24b341 36450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36451 distclean) \
4fa63067 36452 || exit 1
3866be5d 36453
a90ef4bf 36454@endif target-libquadmath
3866be5d 36455
a90ef4bf
JM
36456.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
36457maybe-maintainer-clean-target-libquadmath:
36458@if target-libquadmath
36459maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 36460
a90ef4bf 36461maintainer-clean-target-libquadmath:
0aed8855 36462 @: $(MAKE); $(unstage)
a90ef4bf 36463 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 36464 r=`${PWD_COMMAND}`; export r; \
b40e3958 36465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36466 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36467 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
36468 for flag in $(EXTRA_TARGET_FLAGS); do \
36469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36470 done; \
a90ef4bf 36471 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
36472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36474 "RANLIB=$${RANLIB}" \
0c24b341 36475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36476 maintainer-clean) \
4fa63067 36477 || exit 1
3866be5d 36478
a90ef4bf 36479@endif target-libquadmath
3866be5d 36480
4fa63067 36481
4fa63067 36482
a7254363 36483
e90269c8 36484
a90ef4bf
JM
36485.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
36486maybe-configure-target-libgfortran:
e552509b 36487@if gcc-bootstrap
a90ef4bf 36488configure-target-libgfortran: stage_current
e552509b 36489@endif gcc-bootstrap
a90ef4bf
JM
36490@if target-libgfortran
36491maybe-configure-target-libgfortran: configure-target-libgfortran
36492configure-target-libgfortran:
e552509b
ILT
36493 @: $(MAKE); $(unstage)
36494 @r=`${PWD_COMMAND}`; export r; \
36495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36496 echo "Checking multilib configuration for libgfortran..."; \
36497 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
36498 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
36499 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
36500 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
36501 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 36502 else \
a90ef4bf
JM
36503 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
36504 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
36505 fi; \
36506 else \
a90ef4bf 36507 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 36508 fi; \
a90ef4bf
JM
36509 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
36510 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
e552509b 36511 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
36512 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
36513 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
36514 case $(srcdir) in \
36515 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 36516 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
36517 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36518 esac; \
a90ef4bf
JM
36519 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
36520 libsrcdir="$$s/libgfortran"; \
e552509b
ILT
36521 rm -f no-such-file || : ; \
36522 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
36523 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36524 --target=${target_alias} $${srcdiroption} \
36525 || exit 1
a90ef4bf 36526@endif target-libgfortran
e552509b
ILT
36527
36528
36529
36530
36531
a90ef4bf
JM
36532.PHONY: all-target-libgfortran maybe-all-target-libgfortran
36533maybe-all-target-libgfortran:
e552509b 36534@if gcc-bootstrap
a90ef4bf 36535all-target-libgfortran: stage_current
e552509b 36536@endif gcc-bootstrap
a90ef4bf
JM
36537@if target-libgfortran
36538TARGET-target-libgfortran=all
36539maybe-all-target-libgfortran: all-target-libgfortran
36540all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
36541 @: $(MAKE); $(unstage)
36542 @r=`${PWD_COMMAND}`; export r; \
36543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36544 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36545 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 36546 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
36547 $(TARGET-target-libgfortran))
36548@endif target-libgfortran
e552509b
ILT
36549
36550
36551
36552
36553
a90ef4bf
JM
36554.PHONY: check-target-libgfortran maybe-check-target-libgfortran
36555maybe-check-target-libgfortran:
36556@if target-libgfortran
36557maybe-check-target-libgfortran: check-target-libgfortran
e552509b 36558
a90ef4bf 36559check-target-libgfortran:
e552509b
ILT
36560 @: $(MAKE); $(unstage)
36561 @r=`${PWD_COMMAND}`; export r; \
36562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36563 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36564 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36565 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36566
a90ef4bf 36567@endif target-libgfortran
e552509b 36568
a90ef4bf
JM
36569.PHONY: install-target-libgfortran maybe-install-target-libgfortran
36570maybe-install-target-libgfortran:
36571@if target-libgfortran
36572maybe-install-target-libgfortran: install-target-libgfortran
e552509b 36573
a90ef4bf 36574install-target-libgfortran: installdirs
e552509b
ILT
36575 @: $(MAKE); $(unstage)
36576 @r=`${PWD_COMMAND}`; export r; \
36577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36578 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36579 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36580 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36581
a90ef4bf 36582@endif target-libgfortran
e552509b 36583
a90ef4bf
JM
36584.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
36585maybe-install-strip-target-libgfortran:
36586@if target-libgfortran
36587maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 36588
a90ef4bf 36589install-strip-target-libgfortran: installdirs
9b980aa1
RW
36590 @: $(MAKE); $(unstage)
36591 @r=`${PWD_COMMAND}`; export r; \
36592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36593 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36594 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
36595 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36596
a90ef4bf 36597@endif target-libgfortran
9b980aa1 36598
e552509b
ILT
36599# Other targets (info, dvi, pdf, etc.)
36600
a90ef4bf
JM
36601.PHONY: maybe-info-target-libgfortran info-target-libgfortran
36602maybe-info-target-libgfortran:
36603@if target-libgfortran
36604maybe-info-target-libgfortran: info-target-libgfortran
e552509b 36605
a90ef4bf
JM
36606info-target-libgfortran: \
36607 configure-target-libgfortran
e552509b 36608 @: $(MAKE); $(unstage)
a90ef4bf 36609 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36610 r=`${PWD_COMMAND}`; export r; \
36611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36612 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36613 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36614 for flag in $(EXTRA_TARGET_FLAGS); do \
36615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36616 done; \
a90ef4bf 36617 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36620 "RANLIB=$${RANLIB}" \
36621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36622 info) \
36623 || exit 1
36624
a90ef4bf 36625@endif target-libgfortran
e552509b 36626
a90ef4bf
JM
36627.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
36628maybe-dvi-target-libgfortran:
36629@if target-libgfortran
36630maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 36631
a90ef4bf
JM
36632dvi-target-libgfortran: \
36633 configure-target-libgfortran
e552509b 36634 @: $(MAKE); $(unstage)
a90ef4bf 36635 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36636 r=`${PWD_COMMAND}`; export r; \
36637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36638 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36639 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36640 for flag in $(EXTRA_TARGET_FLAGS); do \
36641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36642 done; \
a90ef4bf 36643 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36646 "RANLIB=$${RANLIB}" \
36647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36648 dvi) \
36649 || exit 1
36650
a90ef4bf 36651@endif target-libgfortran
e552509b 36652
a90ef4bf
JM
36653.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
36654maybe-pdf-target-libgfortran:
36655@if target-libgfortran
36656maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 36657
a90ef4bf
JM
36658pdf-target-libgfortran: \
36659 configure-target-libgfortran
e552509b 36660 @: $(MAKE); $(unstage)
a90ef4bf 36661 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36662 r=`${PWD_COMMAND}`; export r; \
36663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36664 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36665 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36666 for flag in $(EXTRA_TARGET_FLAGS); do \
36667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36668 done; \
a90ef4bf 36669 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36672 "RANLIB=$${RANLIB}" \
36673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36674 pdf) \
36675 || exit 1
36676
a90ef4bf 36677@endif target-libgfortran
e552509b 36678
a90ef4bf
JM
36679.PHONY: maybe-html-target-libgfortran html-target-libgfortran
36680maybe-html-target-libgfortran:
36681@if target-libgfortran
36682maybe-html-target-libgfortran: html-target-libgfortran
e552509b 36683
a90ef4bf
JM
36684html-target-libgfortran: \
36685 configure-target-libgfortran
e552509b 36686 @: $(MAKE); $(unstage)
a90ef4bf 36687 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36688 r=`${PWD_COMMAND}`; export r; \
36689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36690 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36691 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36692 for flag in $(EXTRA_TARGET_FLAGS); do \
36693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36694 done; \
a90ef4bf 36695 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36698 "RANLIB=$${RANLIB}" \
36699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36700 html) \
36701 || exit 1
36702
a90ef4bf 36703@endif target-libgfortran
e552509b 36704
a90ef4bf
JM
36705.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
36706maybe-TAGS-target-libgfortran:
36707@if target-libgfortran
36708maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 36709
a90ef4bf
JM
36710TAGS-target-libgfortran: \
36711 configure-target-libgfortran
e552509b 36712 @: $(MAKE); $(unstage)
a90ef4bf 36713 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36714 r=`${PWD_COMMAND}`; export r; \
36715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36716 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36717 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36718 for flag in $(EXTRA_TARGET_FLAGS); do \
36719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36720 done; \
a90ef4bf 36721 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36724 "RANLIB=$${RANLIB}" \
36725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36726 TAGS) \
36727 || exit 1
36728
a90ef4bf 36729@endif target-libgfortran
e552509b 36730
a90ef4bf
JM
36731.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
36732maybe-install-info-target-libgfortran:
36733@if target-libgfortran
36734maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 36735
a90ef4bf
JM
36736install-info-target-libgfortran: \
36737 configure-target-libgfortran \
36738 info-target-libgfortran
e552509b 36739 @: $(MAKE); $(unstage)
a90ef4bf 36740 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36741 r=`${PWD_COMMAND}`; export r; \
36742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36743 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36744 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36745 for flag in $(EXTRA_TARGET_FLAGS); do \
36746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36747 done; \
a90ef4bf 36748 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36751 "RANLIB=$${RANLIB}" \
36752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36753 install-info) \
36754 || exit 1
36755
a90ef4bf 36756@endif target-libgfortran
e552509b 36757
a90ef4bf
JM
36758.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
36759maybe-install-pdf-target-libgfortran:
36760@if target-libgfortran
36761maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 36762
a90ef4bf
JM
36763install-pdf-target-libgfortran: \
36764 configure-target-libgfortran \
36765 pdf-target-libgfortran
e552509b 36766 @: $(MAKE); $(unstage)
a90ef4bf 36767 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36768 r=`${PWD_COMMAND}`; export r; \
36769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36770 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36771 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36772 for flag in $(EXTRA_TARGET_FLAGS); do \
36773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36774 done; \
a90ef4bf 36775 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36778 "RANLIB=$${RANLIB}" \
36779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36780 install-pdf) \
36781 || exit 1
36782
a90ef4bf 36783@endif target-libgfortran
e552509b 36784
a90ef4bf
JM
36785.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
36786maybe-install-html-target-libgfortran:
36787@if target-libgfortran
36788maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 36789
a90ef4bf
JM
36790install-html-target-libgfortran: \
36791 configure-target-libgfortran \
36792 html-target-libgfortran
e552509b 36793 @: $(MAKE); $(unstage)
a90ef4bf 36794 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36795 r=`${PWD_COMMAND}`; export r; \
36796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36797 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36798 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36799 for flag in $(EXTRA_TARGET_FLAGS); do \
36800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36801 done; \
a90ef4bf 36802 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36805 "RANLIB=$${RANLIB}" \
36806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36807 install-html) \
36808 || exit 1
36809
a90ef4bf 36810@endif target-libgfortran
e552509b 36811
a90ef4bf
JM
36812.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
36813maybe-installcheck-target-libgfortran:
36814@if target-libgfortran
36815maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 36816
a90ef4bf
JM
36817installcheck-target-libgfortran: \
36818 configure-target-libgfortran
e552509b 36819 @: $(MAKE); $(unstage)
a90ef4bf 36820 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36821 r=`${PWD_COMMAND}`; export r; \
36822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36823 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36824 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36825 for flag in $(EXTRA_TARGET_FLAGS); do \
36826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36827 done; \
a90ef4bf 36828 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36831 "RANLIB=$${RANLIB}" \
36832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36833 installcheck) \
36834 || exit 1
36835
a90ef4bf 36836@endif target-libgfortran
e552509b 36837
a90ef4bf
JM
36838.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
36839maybe-mostlyclean-target-libgfortran:
36840@if target-libgfortran
36841maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 36842
a90ef4bf 36843mostlyclean-target-libgfortran:
e552509b 36844 @: $(MAKE); $(unstage)
a90ef4bf 36845 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36846 r=`${PWD_COMMAND}`; export r; \
36847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36848 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36849 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36850 for flag in $(EXTRA_TARGET_FLAGS); do \
36851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36852 done; \
a90ef4bf 36853 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36856 "RANLIB=$${RANLIB}" \
36857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36858 mostlyclean) \
36859 || exit 1
36860
a90ef4bf 36861@endif target-libgfortran
e552509b 36862
a90ef4bf
JM
36863.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
36864maybe-clean-target-libgfortran:
36865@if target-libgfortran
36866maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 36867
a90ef4bf 36868clean-target-libgfortran:
e552509b 36869 @: $(MAKE); $(unstage)
a90ef4bf 36870 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36871 r=`${PWD_COMMAND}`; export r; \
36872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36873 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36874 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36875 for flag in $(EXTRA_TARGET_FLAGS); do \
36876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36877 done; \
a90ef4bf 36878 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36881 "RANLIB=$${RANLIB}" \
36882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36883 clean) \
36884 || exit 1
36885
a90ef4bf 36886@endif target-libgfortran
e552509b 36887
a90ef4bf
JM
36888.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
36889maybe-distclean-target-libgfortran:
36890@if target-libgfortran
36891maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 36892
a90ef4bf 36893distclean-target-libgfortran:
e552509b 36894 @: $(MAKE); $(unstage)
a90ef4bf 36895 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36896 r=`${PWD_COMMAND}`; export r; \
36897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36898 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36899 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36900 for flag in $(EXTRA_TARGET_FLAGS); do \
36901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36902 done; \
a90ef4bf 36903 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36906 "RANLIB=$${RANLIB}" \
36907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36908 distclean) \
36909 || exit 1
36910
a90ef4bf 36911@endif target-libgfortran
e552509b 36912
a90ef4bf
JM
36913.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
36914maybe-maintainer-clean-target-libgfortran:
36915@if target-libgfortran
36916maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 36917
a90ef4bf 36918maintainer-clean-target-libgfortran:
e552509b 36919 @: $(MAKE); $(unstage)
a90ef4bf 36920 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
36921 r=`${PWD_COMMAND}`; export r; \
36922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36923 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 36924 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
36925 for flag in $(EXTRA_TARGET_FLAGS); do \
36926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36927 done; \
a90ef4bf 36928 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
36929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36931 "RANLIB=$${RANLIB}" \
36932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36933 maintainer-clean) \
36934 || exit 1
36935
a90ef4bf 36936@endif target-libgfortran
e552509b
ILT
36937
36938
36939
36940
36941
a90ef4bf
JM
36942.PHONY: configure-target-libobjc maybe-configure-target-libobjc
36943maybe-configure-target-libobjc:
4f0ef2d8 36944@if gcc-bootstrap
a90ef4bf 36945configure-target-libobjc: stage_current
4f0ef2d8 36946@endif gcc-bootstrap
a90ef4bf
JM
36947@if target-libobjc
36948maybe-configure-target-libobjc: configure-target-libobjc
36949configure-target-libobjc:
0aed8855
PB
36950 @: $(MAKE); $(unstage)
36951 @r=`${PWD_COMMAND}`; export r; \
36952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36953 echo "Checking multilib configuration for libobjc..."; \
36954 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
36955 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
36956 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
36957 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
36958 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 36959 else \
a90ef4bf
JM
36960 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
36961 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
36962 fi; \
36963 else \
a90ef4bf 36964 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 36965 fi; \
a90ef4bf
JM
36966 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
36967 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
1f53ca9a 36968 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
36969 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
36970 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 36971 case $(srcdir) in \
b00612cc 36972 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 36973 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 36974 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 36975 esac; \
a90ef4bf
JM
36976 srcdiroption="--srcdir=$${topdir}/libobjc"; \
36977 libsrcdir="$$s/libobjc"; \
4fa63067
NN
36978 rm -f no-such-file || : ; \
36979 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
36980 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36981 --target=${target_alias} $${srcdiroption} \
e2b9e2dc 36982 || exit 1
a90ef4bf 36983@endif target-libobjc
e2b9e2dc 36984
a7254363
PB
36985
36986
d545f33b
PB
36987
36988
a90ef4bf
JM
36989.PHONY: all-target-libobjc maybe-all-target-libobjc
36990maybe-all-target-libobjc:
4f0ef2d8 36991@if gcc-bootstrap
a90ef4bf 36992all-target-libobjc: stage_current
4f0ef2d8 36993@endif gcc-bootstrap
a90ef4bf
JM
36994@if target-libobjc
36995TARGET-target-libobjc=all
36996maybe-all-target-libobjc: all-target-libobjc
36997all-target-libobjc: configure-target-libobjc
0aed8855 36998 @: $(MAKE); $(unstage)
b40e3958
L
36999 @r=`${PWD_COMMAND}`; export r; \
37000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37001 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37002 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 37003 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37004 $(TARGET-target-libobjc))
37005@endif target-libobjc
3866be5d 37006
a7254363
PB
37007
37008
d545f33b
PB
37009
37010
a90ef4bf
JM
37011.PHONY: check-target-libobjc maybe-check-target-libobjc
37012maybe-check-target-libobjc:
37013@if target-libobjc
37014maybe-check-target-libobjc: check-target-libobjc
3866be5d 37015
a90ef4bf
JM
37016check-target-libobjc:
37017 @: $(MAKE); $(unstage)
37018 @r=`${PWD_COMMAND}`; export r; \
37019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37020 $(NORMAL_TARGET_EXPORTS) \
37021 (cd $(TARGET_SUBDIR)/libobjc && \
37022 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 37023
a90ef4bf 37024@endif target-libobjc
4fa63067 37025
a90ef4bf
JM
37026.PHONY: install-target-libobjc maybe-install-target-libobjc
37027maybe-install-target-libobjc:
37028@if target-libobjc
37029maybe-install-target-libobjc: install-target-libobjc
4fa63067 37030
a90ef4bf 37031install-target-libobjc: installdirs
0aed8855 37032 @: $(MAKE); $(unstage)
b40e3958
L
37033 @r=`${PWD_COMMAND}`; export r; \
37034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37035 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37036 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 37037 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37038
a90ef4bf 37039@endif target-libobjc
3866be5d 37040
a90ef4bf
JM
37041.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
37042maybe-install-strip-target-libobjc:
37043@if target-libobjc
37044maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 37045
a90ef4bf 37046install-strip-target-libobjc: installdirs
9b980aa1
RW
37047 @: $(MAKE); $(unstage)
37048 @r=`${PWD_COMMAND}`; export r; \
37049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37050 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37051 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
37052 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37053
a90ef4bf 37054@endif target-libobjc
9b980aa1 37055
56a8fe78 37056# Other targets (info, dvi, pdf, etc.)
16ae0395 37057
a90ef4bf
JM
37058.PHONY: maybe-info-target-libobjc info-target-libobjc
37059maybe-info-target-libobjc:
37060@if target-libobjc
37061maybe-info-target-libobjc: info-target-libobjc
6d389afc 37062
a90ef4bf
JM
37063info-target-libobjc: \
37064 configure-target-libobjc
0aed8855 37065 @: $(MAKE); $(unstage)
a90ef4bf 37066 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
6d389afc
MS
37067 r=`${PWD_COMMAND}`; export r; \
37068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 37069 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37070 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
6d389afc
MS
37071 for flag in $(EXTRA_TARGET_FLAGS); do \
37072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37073 done; \
a90ef4bf 37074 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
37075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37077 "RANLIB=$${RANLIB}" \
0c24b341 37078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
37079 info) \
37080 || exit 1
37081
a90ef4bf 37082@endif target-libobjc
6d389afc 37083
a90ef4bf
JM
37084.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
37085maybe-dvi-target-libobjc:
37086@if target-libobjc
37087maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 37088
a90ef4bf
JM
37089dvi-target-libobjc: \
37090 configure-target-libobjc
0aed8855 37091 @: $(MAKE); $(unstage)
a90ef4bf 37092 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 37093 r=`${PWD_COMMAND}`; export r; \
b40e3958 37094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37095 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37096 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
37097 for flag in $(EXTRA_TARGET_FLAGS); do \
37098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37099 done; \
a90ef4bf 37100 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
37101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37103 "RANLIB=$${RANLIB}" \
0c24b341 37104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 37105 dvi) \
4fa63067 37106 || exit 1
3866be5d 37107
a90ef4bf 37108@endif target-libobjc
3866be5d 37109
a90ef4bf
JM
37110.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
37111maybe-pdf-target-libobjc:
37112@if target-libobjc
37113maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 37114
a90ef4bf
JM
37115pdf-target-libobjc: \
37116 configure-target-libobjc
56a8fe78 37117 @: $(MAKE); $(unstage)
a90ef4bf 37118 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
56a8fe78
DD
37119 r=`${PWD_COMMAND}`; export r; \
37120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37121 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37122 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc" ; \
56a8fe78
DD
37123 for flag in $(EXTRA_TARGET_FLAGS); do \
37124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37125 done; \
a90ef4bf 37126 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
37127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37129 "RANLIB=$${RANLIB}" \
0c24b341 37130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37131 pdf) \
37132 || exit 1
37133
a90ef4bf 37134@endif target-libobjc
56a8fe78 37135
a90ef4bf
JM
37136.PHONY: maybe-html-target-libobjc html-target-libobjc
37137maybe-html-target-libobjc:
37138@if target-libobjc
37139maybe-html-target-libobjc: html-target-libobjc
4fa63067 37140
a90ef4bf
JM
37141html-target-libobjc: \
37142 configure-target-libobjc
0aed8855 37143 @: $(MAKE); $(unstage)
a90ef4bf 37144 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
b40e3958
L
37145 r=`${PWD_COMMAND}`; export r; \
37146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37147 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37148 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
37149 for flag in $(EXTRA_TARGET_FLAGS); do \
37150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37151 done; \
a90ef4bf 37152 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
37153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37155 "RANLIB=$${RANLIB}" \
0c24b341 37156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 37157 html) \
e2b9e2dc
NN
37158 || exit 1
37159
a90ef4bf 37160@endif target-libobjc
4fa63067 37161
a90ef4bf
JM
37162.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
37163maybe-TAGS-target-libobjc:
37164@if target-libobjc
37165maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 37166
a90ef4bf
JM
37167TAGS-target-libobjc: \
37168 configure-target-libobjc
0aed8855 37169 @: $(MAKE); $(unstage)
a90ef4bf 37170 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 37171 r=`${PWD_COMMAND}`; export r; \
b40e3958 37172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37173 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37174 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
37175 for flag in $(EXTRA_TARGET_FLAGS); do \
37176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37177 done; \
a90ef4bf 37178 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
37179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37181 "RANLIB=$${RANLIB}" \
0c24b341 37182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37183 TAGS) \
4fa63067 37184 || exit 1
3866be5d 37185
a90ef4bf 37186@endif target-libobjc
3866be5d 37187
a90ef4bf
JM
37188.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
37189maybe-install-info-target-libobjc:
37190@if target-libobjc
37191maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 37192
a90ef4bf
JM
37193install-info-target-libobjc: \
37194 configure-target-libobjc \
37195 info-target-libobjc
0aed8855 37196 @: $(MAKE); $(unstage)
a90ef4bf 37197 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067
NN
37198 r=`${PWD_COMMAND}`; export r; \
37199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37200 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37201 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
37202 for flag in $(EXTRA_TARGET_FLAGS); do \
37203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37204 done; \
a90ef4bf 37205 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
37206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37208 "RANLIB=$${RANLIB}" \
0c24b341 37209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37210 install-info) \
4fa63067 37211 || exit 1
3866be5d 37212
a90ef4bf 37213@endif target-libobjc
16ae0395 37214
a90ef4bf
JM
37215.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
37216maybe-install-pdf-target-libobjc:
37217@if target-libobjc
37218maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 37219
a90ef4bf
JM
37220install-pdf-target-libobjc: \
37221 configure-target-libobjc \
37222 pdf-target-libobjc
a3ca38d2 37223 @: $(MAKE); $(unstage)
a90ef4bf 37224 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
a3ca38d2
DD
37225 r=`${PWD_COMMAND}`; export r; \
37226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37227 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37228 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc" ; \
a3ca38d2
DD
37229 for flag in $(EXTRA_TARGET_FLAGS); do \
37230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37231 done; \
a90ef4bf 37232 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
37233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37235 "RANLIB=$${RANLIB}" \
0c24b341 37236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
37237 install-pdf) \
37238 || exit 1
37239
a90ef4bf 37240@endif target-libobjc
a3ca38d2 37241
a90ef4bf
JM
37242.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
37243maybe-install-html-target-libobjc:
37244@if target-libobjc
37245maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 37246
a90ef4bf
JM
37247install-html-target-libobjc: \
37248 configure-target-libobjc \
37249 html-target-libobjc
108a6f8e 37250 @: $(MAKE); $(unstage)
a90ef4bf 37251 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
108a6f8e
CD
37252 r=`${PWD_COMMAND}`; export r; \
37253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37254 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37255 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
108a6f8e
CD
37256 for flag in $(EXTRA_TARGET_FLAGS); do \
37257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37258 done; \
a90ef4bf 37259 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
37260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37262 "RANLIB=$${RANLIB}" \
0c24b341 37263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
37264 install-html) \
37265 || exit 1
37266
a90ef4bf 37267@endif target-libobjc
108a6f8e 37268
a90ef4bf
JM
37269.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
37270maybe-installcheck-target-libobjc:
37271@if target-libobjc
37272maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 37273
a90ef4bf
JM
37274installcheck-target-libobjc: \
37275 configure-target-libobjc
0aed8855 37276 @: $(MAKE); $(unstage)
a90ef4bf 37277 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 37278 r=`${PWD_COMMAND}`; export r; \
b40e3958 37279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37280 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37281 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
37282 for flag in $(EXTRA_TARGET_FLAGS); do \
37283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37284 done; \
a90ef4bf 37285 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
37286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37288 "RANLIB=$${RANLIB}" \
0c24b341 37289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37290 installcheck) \
4fa63067 37291 || exit 1
3866be5d 37292
a90ef4bf 37293@endif target-libobjc
3866be5d 37294
a90ef4bf
JM
37295.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
37296maybe-mostlyclean-target-libobjc:
37297@if target-libobjc
37298maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 37299
a90ef4bf
JM
37300mostlyclean-target-libobjc:
37301 @: $(MAKE); $(unstage)
37302 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
37303 r=`${PWD_COMMAND}`; export r; \
37304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37305 $(NORMAL_TARGET_EXPORTS) \
37306 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
37307 for flag in $(EXTRA_TARGET_FLAGS); do \
37308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37309 done; \
37310 (cd $(TARGET_SUBDIR)/libobjc && \
37311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37313 "RANLIB=$${RANLIB}" \
37314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37315 mostlyclean) \
37316 || exit 1
4fa63067 37317
a90ef4bf 37318@endif target-libobjc
4fa63067 37319
a90ef4bf
JM
37320.PHONY: maybe-clean-target-libobjc clean-target-libobjc
37321maybe-clean-target-libobjc:
37322@if target-libobjc
37323maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 37324
a90ef4bf
JM
37325clean-target-libobjc:
37326 @: $(MAKE); $(unstage)
37327 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
37328 r=`${PWD_COMMAND}`; export r; \
37329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37330 $(NORMAL_TARGET_EXPORTS) \
37331 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
37332 for flag in $(EXTRA_TARGET_FLAGS); do \
37333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37334 done; \
37335 (cd $(TARGET_SUBDIR)/libobjc && \
37336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37338 "RANLIB=$${RANLIB}" \
37339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37340 clean) \
37341 || exit 1
4fa63067 37342
a90ef4bf 37343@endif target-libobjc
4fa63067 37344
a90ef4bf
JM
37345.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
37346maybe-distclean-target-libobjc:
37347@if target-libobjc
37348maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 37349
a90ef4bf
JM
37350distclean-target-libobjc:
37351 @: $(MAKE); $(unstage)
37352 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
37353 r=`${PWD_COMMAND}`; export r; \
37354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37355 $(NORMAL_TARGET_EXPORTS) \
37356 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
37357 for flag in $(EXTRA_TARGET_FLAGS); do \
37358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37359 done; \
37360 (cd $(TARGET_SUBDIR)/libobjc && \
37361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37363 "RANLIB=$${RANLIB}" \
37364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37365 distclean) \
37366 || exit 1
4fa63067 37367
a90ef4bf 37368@endif target-libobjc
4fa63067 37369
a90ef4bf
JM
37370.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
37371maybe-maintainer-clean-target-libobjc:
37372@if target-libobjc
37373maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 37374
a90ef4bf
JM
37375maintainer-clean-target-libobjc:
37376 @: $(MAKE); $(unstage)
37377 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
37378 r=`${PWD_COMMAND}`; export r; \
37379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37380 $(NORMAL_TARGET_EXPORTS) \
37381 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
37382 for flag in $(EXTRA_TARGET_FLAGS); do \
37383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37384 done; \
37385 (cd $(TARGET_SUBDIR)/libobjc && \
37386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37388 "RANLIB=$${RANLIB}" \
37389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37390 maintainer-clean) \
37391 || exit 1
4fa63067 37392
a90ef4bf 37393@endif target-libobjc
4fa63067
NN
37394
37395
4fa63067 37396
4fa63067 37397
a7254363 37398
a90ef4bf
JM
37399.PHONY: configure-target-libgo maybe-configure-target-libgo
37400maybe-configure-target-libgo:
4f0ef2d8 37401@if gcc-bootstrap
a90ef4bf 37402configure-target-libgo: stage_current
4f0ef2d8 37403@endif gcc-bootstrap
a90ef4bf
JM
37404@if target-libgo
37405maybe-configure-target-libgo: configure-target-libgo
37406configure-target-libgo:
0aed8855
PB
37407 @: $(MAKE); $(unstage)
37408 @r=`${PWD_COMMAND}`; export r; \
37409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
37410 echo "Checking multilib configuration for libgo..."; \
37411 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
37412 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null ; \
37413 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
37414 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
37415 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 37416 else \
a90ef4bf
JM
37417 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
37418 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
37419 fi; \
37420 else \
a90ef4bf 37421 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 37422 fi; \
a90ef4bf
JM
37423 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
37424 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
1f53ca9a 37425 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37426 echo Configuring in $(TARGET_SUBDIR)/libgo; \
37427 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 37428 case $(srcdir) in \
b00612cc 37429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37430 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 37431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf
JM
37432 esac; \
37433 srcdiroption="--srcdir=$${topdir}/libgo"; \
37434 libsrcdir="$$s/libgo"; \
4fa63067
NN
37435 rm -f no-such-file || : ; \
37436 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
37437 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37438 --target=${target_alias} $${srcdiroption} \
e2b9e2dc 37439 || exit 1
a90ef4bf 37440@endif target-libgo
e2b9e2dc 37441
a7254363
PB
37442
37443
d545f33b
PB
37444
37445
a90ef4bf
JM
37446.PHONY: all-target-libgo maybe-all-target-libgo
37447maybe-all-target-libgo:
4f0ef2d8 37448@if gcc-bootstrap
a90ef4bf 37449all-target-libgo: stage_current
4f0ef2d8 37450@endif gcc-bootstrap
a90ef4bf
JM
37451@if target-libgo
37452TARGET-target-libgo=all
37453maybe-all-target-libgo: all-target-libgo
37454all-target-libgo: configure-target-libgo
0aed8855 37455 @: $(MAKE); $(unstage)
b40e3958
L
37456 @r=`${PWD_COMMAND}`; export r; \
37457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37458 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37459 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 37460 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37461 $(TARGET-target-libgo))
37462@endif target-libgo
3866be5d 37463
a7254363
PB
37464
37465
d545f33b
PB
37466
37467
a90ef4bf
JM
37468.PHONY: check-target-libgo maybe-check-target-libgo
37469maybe-check-target-libgo:
37470@if target-libgo
37471maybe-check-target-libgo: check-target-libgo
3866be5d 37472
a90ef4bf 37473check-target-libgo:
0aed8855 37474 @: $(MAKE); $(unstage)
4fa63067
NN
37475 @r=`${PWD_COMMAND}`; export r; \
37476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37477 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37478 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 37479 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 37480
a90ef4bf 37481@endif target-libgo
3866be5d 37482
a90ef4bf
JM
37483.PHONY: install-target-libgo maybe-install-target-libgo
37484maybe-install-target-libgo:
37485@if target-libgo
37486maybe-install-target-libgo: install-target-libgo
16ae0395 37487
a90ef4bf 37488install-target-libgo: installdirs
0aed8855 37489 @: $(MAKE); $(unstage)
4fa63067
NN
37490 @r=`${PWD_COMMAND}`; export r; \
37491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37492 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37493 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 37494 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37495
a90ef4bf 37496@endif target-libgo
3866be5d 37497
a90ef4bf
JM
37498.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
37499maybe-install-strip-target-libgo:
37500@if target-libgo
37501maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 37502
a90ef4bf 37503install-strip-target-libgo: installdirs
9b980aa1
RW
37504 @: $(MAKE); $(unstage)
37505 @r=`${PWD_COMMAND}`; export r; \
37506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37507 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37508 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
37509 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37510
a90ef4bf 37511@endif target-libgo
9b980aa1 37512
56a8fe78 37513# Other targets (info, dvi, pdf, etc.)
4fa63067 37514
a90ef4bf
JM
37515.PHONY: maybe-info-target-libgo info-target-libgo
37516maybe-info-target-libgo:
37517@if target-libgo
37518maybe-info-target-libgo: info-target-libgo
4fa63067 37519
a90ef4bf
JM
37520info-target-libgo: \
37521 configure-target-libgo
0aed8855 37522 @: $(MAKE); $(unstage)
a90ef4bf 37523 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
37524 r=`${PWD_COMMAND}`; export r; \
37525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37526 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37527 echo "Doing info in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37528 for flag in $(EXTRA_TARGET_FLAGS); do \
37529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37530 done; \
a90ef4bf 37531 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37534 "RANLIB=$${RANLIB}" \
0c24b341 37535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37536 info) \
e2b9e2dc
NN
37537 || exit 1
37538
a90ef4bf 37539@endif target-libgo
3866be5d 37540
a90ef4bf
JM
37541.PHONY: maybe-dvi-target-libgo dvi-target-libgo
37542maybe-dvi-target-libgo:
37543@if target-libgo
37544maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 37545
a90ef4bf
JM
37546dvi-target-libgo: \
37547 configure-target-libgo
0aed8855 37548 @: $(MAKE); $(unstage)
a90ef4bf 37549 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 37550 r=`${PWD_COMMAND}`; export r; \
b40e3958 37551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37552 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37553 echo "Doing dvi in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37554 for flag in $(EXTRA_TARGET_FLAGS); do \
37555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37556 done; \
a90ef4bf 37557 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37560 "RANLIB=$${RANLIB}" \
0c24b341 37561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37562 dvi) \
4fa63067 37563 || exit 1
3866be5d 37564
a90ef4bf 37565@endif target-libgo
3866be5d 37566
a90ef4bf
JM
37567.PHONY: maybe-pdf-target-libgo pdf-target-libgo
37568maybe-pdf-target-libgo:
37569@if target-libgo
37570maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 37571
a90ef4bf
JM
37572pdf-target-libgo: \
37573 configure-target-libgo
56a8fe78 37574 @: $(MAKE); $(unstage)
a90ef4bf 37575 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
56a8fe78
DD
37576 r=`${PWD_COMMAND}`; export r; \
37577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37578 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37579 echo "Doing pdf in $(TARGET_SUBDIR)/libgo" ; \
56a8fe78
DD
37580 for flag in $(EXTRA_TARGET_FLAGS); do \
37581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37582 done; \
a90ef4bf 37583 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
37584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37586 "RANLIB=$${RANLIB}" \
0c24b341 37587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37588 pdf) \
37589 || exit 1
37590
a90ef4bf 37591@endif target-libgo
56a8fe78 37592
a90ef4bf
JM
37593.PHONY: maybe-html-target-libgo html-target-libgo
37594maybe-html-target-libgo:
37595@if target-libgo
37596maybe-html-target-libgo: html-target-libgo
6d389afc 37597
a90ef4bf
JM
37598html-target-libgo: \
37599 configure-target-libgo
0aed8855 37600 @: $(MAKE); $(unstage)
a90ef4bf 37601 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
6d389afc
MS
37602 r=`${PWD_COMMAND}`; export r; \
37603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 37604 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37605 echo "Doing html in $(TARGET_SUBDIR)/libgo" ; \
6d389afc
MS
37606 for flag in $(EXTRA_TARGET_FLAGS); do \
37607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37608 done; \
a90ef4bf 37609 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
37610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37612 "RANLIB=$${RANLIB}" \
0c24b341 37613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
37614 html) \
37615 || exit 1
37616
a90ef4bf 37617@endif target-libgo
6d389afc 37618
a90ef4bf
JM
37619.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
37620maybe-TAGS-target-libgo:
37621@if target-libgo
37622maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 37623
a90ef4bf
JM
37624TAGS-target-libgo: \
37625 configure-target-libgo
0aed8855 37626 @: $(MAKE); $(unstage)
a90ef4bf 37627 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 37628 r=`${PWD_COMMAND}`; export r; \
b40e3958 37629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37630 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37631 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37632 for flag in $(EXTRA_TARGET_FLAGS); do \
37633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37634 done; \
a90ef4bf 37635 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37638 "RANLIB=$${RANLIB}" \
0c24b341 37639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37640 TAGS) \
4fa63067 37641 || exit 1
3866be5d 37642
a90ef4bf 37643@endif target-libgo
3866be5d 37644
a90ef4bf
JM
37645.PHONY: maybe-install-info-target-libgo install-info-target-libgo
37646maybe-install-info-target-libgo:
37647@if target-libgo
37648maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 37649
a90ef4bf
JM
37650install-info-target-libgo: \
37651 configure-target-libgo \
37652 info-target-libgo
0aed8855 37653 @: $(MAKE); $(unstage)
a90ef4bf 37654 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
37655 r=`${PWD_COMMAND}`; export r; \
37656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37657 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37658 echo "Doing install-info in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37659 for flag in $(EXTRA_TARGET_FLAGS); do \
37660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37661 done; \
a90ef4bf 37662 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37665 "RANLIB=$${RANLIB}" \
0c24b341 37666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37667 install-info) \
e2b9e2dc
NN
37668 || exit 1
37669
a90ef4bf 37670@endif target-libgo
4fa63067 37671
a90ef4bf
JM
37672.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
37673maybe-install-pdf-target-libgo:
37674@if target-libgo
37675maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 37676
a90ef4bf
JM
37677install-pdf-target-libgo: \
37678 configure-target-libgo \
37679 pdf-target-libgo
a3ca38d2 37680 @: $(MAKE); $(unstage)
a90ef4bf 37681 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
a3ca38d2
DD
37682 r=`${PWD_COMMAND}`; export r; \
37683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37684 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37685 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo" ; \
a3ca38d2
DD
37686 for flag in $(EXTRA_TARGET_FLAGS); do \
37687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37688 done; \
a90ef4bf 37689 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
37690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37692 "RANLIB=$${RANLIB}" \
0c24b341 37693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
37694 install-pdf) \
37695 || exit 1
37696
a90ef4bf 37697@endif target-libgo
a3ca38d2 37698
a90ef4bf
JM
37699.PHONY: maybe-install-html-target-libgo install-html-target-libgo
37700maybe-install-html-target-libgo:
37701@if target-libgo
37702maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 37703
a90ef4bf
JM
37704install-html-target-libgo: \
37705 configure-target-libgo \
37706 html-target-libgo
108a6f8e 37707 @: $(MAKE); $(unstage)
a90ef4bf 37708 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
108a6f8e
CD
37709 r=`${PWD_COMMAND}`; export r; \
37710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37711 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37712 echo "Doing install-html in $(TARGET_SUBDIR)/libgo" ; \
108a6f8e
CD
37713 for flag in $(EXTRA_TARGET_FLAGS); do \
37714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37715 done; \
a90ef4bf 37716 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
37717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37719 "RANLIB=$${RANLIB}" \
0c24b341 37720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
37721 install-html) \
37722 || exit 1
37723
a90ef4bf 37724@endif target-libgo
108a6f8e 37725
a90ef4bf
JM
37726.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
37727maybe-installcheck-target-libgo:
37728@if target-libgo
37729maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 37730
a90ef4bf
JM
37731installcheck-target-libgo: \
37732 configure-target-libgo
0aed8855 37733 @: $(MAKE); $(unstage)
a90ef4bf 37734 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 37735 r=`${PWD_COMMAND}`; export r; \
b40e3958 37736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37737 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37738 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37739 for flag in $(EXTRA_TARGET_FLAGS); do \
37740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37741 done; \
a90ef4bf 37742 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37745 "RANLIB=$${RANLIB}" \
0c24b341 37746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37747 installcheck) \
4fa63067 37748 || exit 1
3866be5d 37749
a90ef4bf 37750@endif target-libgo
3866be5d 37751
a90ef4bf
JM
37752.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
37753maybe-mostlyclean-target-libgo:
37754@if target-libgo
37755maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 37756
a90ef4bf 37757mostlyclean-target-libgo:
0aed8855 37758 @: $(MAKE); $(unstage)
a90ef4bf 37759 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 37760 r=`${PWD_COMMAND}`; export r; \
b40e3958 37761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37762 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37763 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37764 for flag in $(EXTRA_TARGET_FLAGS); do \
37765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37766 done; \
a90ef4bf 37767 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37770 "RANLIB=$${RANLIB}" \
0c24b341 37771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37772 mostlyclean) \
4fa63067 37773 || exit 1
3866be5d 37774
a90ef4bf 37775@endif target-libgo
3866be5d 37776
a90ef4bf
JM
37777.PHONY: maybe-clean-target-libgo clean-target-libgo
37778maybe-clean-target-libgo:
37779@if target-libgo
37780maybe-clean-target-libgo: clean-target-libgo
16ae0395 37781
a90ef4bf 37782clean-target-libgo:
0aed8855 37783 @: $(MAKE); $(unstage)
a90ef4bf 37784 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 37785 r=`${PWD_COMMAND}`; export r; \
b40e3958 37786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37787 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37788 echo "Doing clean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37789 for flag in $(EXTRA_TARGET_FLAGS); do \
37790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37791 done; \
a90ef4bf 37792 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37795 "RANLIB=$${RANLIB}" \
0c24b341 37796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37797 clean) \
4fa63067 37798 || exit 1
3866be5d 37799
a90ef4bf 37800@endif target-libgo
3866be5d 37801
a90ef4bf
JM
37802.PHONY: maybe-distclean-target-libgo distclean-target-libgo
37803maybe-distclean-target-libgo:
37804@if target-libgo
37805maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 37806
a90ef4bf 37807distclean-target-libgo:
0aed8855 37808 @: $(MAKE); $(unstage)
a90ef4bf 37809 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
37810 r=`${PWD_COMMAND}`; export r; \
37811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37812 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37813 echo "Doing distclean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37814 for flag in $(EXTRA_TARGET_FLAGS); do \
37815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37816 done; \
a90ef4bf 37817 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37820 "RANLIB=$${RANLIB}" \
0c24b341 37821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37822 distclean) \
e2b9e2dc
NN
37823 || exit 1
37824
a90ef4bf 37825@endif target-libgo
3866be5d 37826
a90ef4bf
JM
37827.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
37828maybe-maintainer-clean-target-libgo:
37829@if target-libgo
37830maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 37831
a90ef4bf 37832maintainer-clean-target-libgo:
0aed8855 37833 @: $(MAKE); $(unstage)
a90ef4bf 37834 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 37835 r=`${PWD_COMMAND}`; export r; \
b40e3958 37836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37837 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37838 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
37839 for flag in $(EXTRA_TARGET_FLAGS); do \
37840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37841 done; \
a90ef4bf 37842 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
37843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37845 "RANLIB=$${RANLIB}" \
0c24b341 37846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37847 maintainer-clean) \
4fa63067 37848 || exit 1
3866be5d 37849
a90ef4bf 37850@endif target-libgo
3866be5d 37851
16ae0395 37852
3866be5d 37853
e90269c8 37854
a7254363 37855
a90ef4bf
JM
37856.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
37857maybe-configure-target-libtermcap:
4f0ef2d8 37858@if gcc-bootstrap
a90ef4bf 37859configure-target-libtermcap: stage_current
4f0ef2d8 37860@endif gcc-bootstrap
a90ef4bf
JM
37861@if target-libtermcap
37862maybe-configure-target-libtermcap: configure-target-libtermcap
37863configure-target-libtermcap:
0aed8855
PB
37864 @: $(MAKE); $(unstage)
37865 @r=`${PWD_COMMAND}`; export r; \
37866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
37867 echo "Checking multilib configuration for libtermcap..."; \
37868 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
37869 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
37870 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
37871 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
37872 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 37873 else \
a90ef4bf
JM
37874 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
37875 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
37876 fi; \
37877 else \
a90ef4bf 37878 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 37879 fi; \
a90ef4bf
JM
37880 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
37881 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
1f53ca9a 37882 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37883 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
37884 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 37885 case $(srcdir) in \
b00612cc 37886 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37887 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 37888 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 37889 esac; \
a90ef4bf
JM
37890 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
37891 libsrcdir="$$s/libtermcap"; \
4fa63067
NN
37892 rm -f no-such-file || : ; \
37893 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
37894 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37895 --target=${target_alias} $${srcdiroption} \
e2b9e2dc 37896 || exit 1
a90ef4bf 37897@endif target-libtermcap
e2b9e2dc 37898
a7254363
PB
37899
37900
d545f33b
PB
37901
37902
a90ef4bf
JM
37903.PHONY: all-target-libtermcap maybe-all-target-libtermcap
37904maybe-all-target-libtermcap:
4f0ef2d8 37905@if gcc-bootstrap
a90ef4bf 37906all-target-libtermcap: stage_current
4f0ef2d8 37907@endif gcc-bootstrap
a90ef4bf
JM
37908@if target-libtermcap
37909TARGET-target-libtermcap=all
37910maybe-all-target-libtermcap: all-target-libtermcap
37911all-target-libtermcap: configure-target-libtermcap
0aed8855 37912 @: $(MAKE); $(unstage)
b40e3958
L
37913 @r=`${PWD_COMMAND}`; export r; \
37914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37915 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37916 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 37917 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37918 $(TARGET-target-libtermcap))
37919@endif target-libtermcap
e393202e 37920
a7254363
PB
37921
37922
d545f33b
PB
37923
37924
a90ef4bf
JM
37925.PHONY: check-target-libtermcap maybe-check-target-libtermcap
37926maybe-check-target-libtermcap:
37927@if target-libtermcap
37928maybe-check-target-libtermcap: check-target-libtermcap
e393202e 37929
4fa63067 37930# Dummy target for uncheckable module.
a90ef4bf 37931check-target-libtermcap:
e393202e 37932
a90ef4bf 37933@endif target-libtermcap
e393202e 37934
a90ef4bf
JM
37935.PHONY: install-target-libtermcap maybe-install-target-libtermcap
37936maybe-install-target-libtermcap:
37937@if target-libtermcap
37938maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 37939
a90ef4bf 37940install-target-libtermcap: installdirs
0aed8855 37941 @: $(MAKE); $(unstage)
b40e3958
L
37942 @r=`${PWD_COMMAND}`; export r; \
37943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37944 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37945 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 37946 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 37947
a90ef4bf 37948@endif target-libtermcap
56a8fe78 37949
a90ef4bf
JM
37950.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
37951maybe-install-strip-target-libtermcap:
37952@if target-libtermcap
37953maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 37954
a90ef4bf 37955install-strip-target-libtermcap: installdirs
0aed8855 37956 @: $(MAKE); $(unstage)
a90ef4bf 37957 @r=`${PWD_COMMAND}`; export r; \
6d389afc 37958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 37959 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37960 (cd $(TARGET_SUBDIR)/libtermcap && \
37961 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 37962
a90ef4bf 37963@endif target-libtermcap
6d389afc 37964
a90ef4bf 37965# Other targets (info, dvi, pdf, etc.)
16ae0395 37966
a90ef4bf
JM
37967.PHONY: maybe-info-target-libtermcap info-target-libtermcap
37968maybe-info-target-libtermcap:
37969@if target-libtermcap
37970maybe-info-target-libtermcap: info-target-libtermcap
37971
37972info-target-libtermcap: \
37973 configure-target-libtermcap
0aed8855 37974 @: $(MAKE); $(unstage)
a90ef4bf 37975 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 37976 r=`${PWD_COMMAND}`; export r; \
b40e3958 37977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37978 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37979 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
37980 for flag in $(EXTRA_TARGET_FLAGS); do \
37981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37982 done; \
a90ef4bf 37983 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
37984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37986 "RANLIB=$${RANLIB}" \
0c24b341 37987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37988 info) \
4fa63067 37989 || exit 1
ce5b542e 37990
a90ef4bf 37991@endif target-libtermcap
ce5b542e 37992
a90ef4bf
JM
37993.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
37994maybe-dvi-target-libtermcap:
37995@if target-libtermcap
37996maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 37997
a90ef4bf
JM
37998dvi-target-libtermcap: \
37999 configure-target-libtermcap
0aed8855 38000 @: $(MAKE); $(unstage)
a90ef4bf 38001 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
38002 r=`${PWD_COMMAND}`; export r; \
38003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38004 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38005 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
38006 for flag in $(EXTRA_TARGET_FLAGS); do \
38007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38008 done; \
a90ef4bf 38009 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
38010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38012 "RANLIB=$${RANLIB}" \
0c24b341 38013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38014 dvi) \
e2b9e2dc
NN
38015 || exit 1
38016
a90ef4bf 38017@endif target-libtermcap
e393202e 38018
a90ef4bf
JM
38019.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
38020maybe-pdf-target-libtermcap:
38021@if target-libtermcap
38022maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 38023
a90ef4bf
JM
38024pdf-target-libtermcap: \
38025 configure-target-libtermcap
a3ca38d2 38026 @: $(MAKE); $(unstage)
a90ef4bf 38027 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
a3ca38d2
DD
38028 r=`${PWD_COMMAND}`; export r; \
38029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38030 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38031 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap" ; \
a3ca38d2
DD
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)/libtermcap && \
a3ca38d2
DD
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}" \
a90ef4bf 38040 pdf) \
a3ca38d2
DD
38041 || exit 1
38042
a90ef4bf 38043@endif target-libtermcap
a3ca38d2 38044
a90ef4bf
JM
38045.PHONY: maybe-html-target-libtermcap html-target-libtermcap
38046maybe-html-target-libtermcap:
38047@if target-libtermcap
38048maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 38049
a90ef4bf
JM
38050html-target-libtermcap: \
38051 configure-target-libtermcap
108a6f8e 38052 @: $(MAKE); $(unstage)
a90ef4bf 38053 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
108a6f8e
CD
38054 r=`${PWD_COMMAND}`; export r; \
38055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38056 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38057 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
108a6f8e
CD
38058 for flag in $(EXTRA_TARGET_FLAGS); do \
38059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38060 done; \
a90ef4bf 38061 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
38062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38064 "RANLIB=$${RANLIB}" \
0c24b341 38065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38066 html) \
108a6f8e
CD
38067 || exit 1
38068
a90ef4bf 38069@endif target-libtermcap
108a6f8e 38070
a90ef4bf
JM
38071.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
38072maybe-TAGS-target-libtermcap:
38073@if target-libtermcap
38074maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 38075
a90ef4bf
JM
38076TAGS-target-libtermcap: \
38077 configure-target-libtermcap
0aed8855 38078 @: $(MAKE); $(unstage)
a90ef4bf 38079 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067
NN
38080 r=`${PWD_COMMAND}`; export r; \
38081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38082 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38083 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
38084 for flag in $(EXTRA_TARGET_FLAGS); do \
38085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38086 done; \
a90ef4bf 38087 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
38088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38090 "RANLIB=$${RANLIB}" \
0c24b341 38091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38092 TAGS) \
4fa63067 38093 || exit 1
3866be5d 38094
a90ef4bf 38095@endif target-libtermcap
3866be5d 38096
a90ef4bf
JM
38097.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
38098maybe-install-info-target-libtermcap:
38099@if target-libtermcap
38100maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 38101
a90ef4bf
JM
38102install-info-target-libtermcap: \
38103 configure-target-libtermcap \
38104 info-target-libtermcap
0aed8855 38105 @: $(MAKE); $(unstage)
a90ef4bf 38106 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 38107 r=`${PWD_COMMAND}`; export r; \
b40e3958 38108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38109 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38110 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
38111 for flag in $(EXTRA_TARGET_FLAGS); do \
38112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38113 done; \
a90ef4bf 38114 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
38115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38117 "RANLIB=$${RANLIB}" \
0c24b341 38118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38119 install-info) \
4fa63067 38120 || exit 1
e393202e 38121
a90ef4bf 38122@endif target-libtermcap
3866be5d 38123
a90ef4bf
JM
38124.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
38125maybe-install-pdf-target-libtermcap:
38126@if target-libtermcap
38127maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 38128
a90ef4bf
JM
38129install-pdf-target-libtermcap: \
38130 configure-target-libtermcap \
38131 pdf-target-libtermcap
0aed8855 38132 @: $(MAKE); $(unstage)
a90ef4bf 38133 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
38134 r=`${PWD_COMMAND}`; export r; \
38135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38136 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38137 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
38138 for flag in $(EXTRA_TARGET_FLAGS); do \
38139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38140 done; \
a90ef4bf 38141 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
38142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38144 "RANLIB=$${RANLIB}" \
0c24b341 38145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38146 install-pdf) \
e2b9e2dc
NN
38147 || exit 1
38148
a90ef4bf 38149@endif target-libtermcap
e393202e 38150
a90ef4bf
JM
38151.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
38152maybe-install-html-target-libtermcap:
38153@if target-libtermcap
38154maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 38155
a90ef4bf
JM
38156install-html-target-libtermcap: \
38157 configure-target-libtermcap \
38158 html-target-libtermcap
0aed8855 38159 @: $(MAKE); $(unstage)
a90ef4bf 38160 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067
NN
38161 r=`${PWD_COMMAND}`; export r; \
38162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38163 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38164 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
38165 for flag in $(EXTRA_TARGET_FLAGS); do \
38166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38167 done; \
a90ef4bf 38168 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
38169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38171 "RANLIB=$${RANLIB}" \
0c24b341 38172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38173 install-html) \
4fa63067 38174 || exit 1
3866be5d 38175
a90ef4bf 38176@endif target-libtermcap
3866be5d 38177
a90ef4bf
JM
38178.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
38179maybe-installcheck-target-libtermcap:
38180@if target-libtermcap
38181maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 38182
a90ef4bf
JM
38183installcheck-target-libtermcap: \
38184 configure-target-libtermcap
0aed8855 38185 @: $(MAKE); $(unstage)
a90ef4bf 38186 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 38187 r=`${PWD_COMMAND}`; export r; \
b40e3958 38188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38189 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38190 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
38191 for flag in $(EXTRA_TARGET_FLAGS); do \
38192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38193 done; \
a90ef4bf 38194 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
38195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38197 "RANLIB=$${RANLIB}" \
0c24b341 38198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38199 installcheck) \
4fa63067 38200 || exit 1
3866be5d 38201
a90ef4bf
JM
38202@endif target-libtermcap
38203
38204.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
38205maybe-mostlyclean-target-libtermcap:
38206@if target-libtermcap
38207maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
38208
38209# libtermcap doesn't support mostlyclean.
38210mostlyclean-target-libtermcap:
38211
38212@endif target-libtermcap
3866be5d 38213
a90ef4bf
JM
38214.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
38215maybe-clean-target-libtermcap:
38216@if target-libtermcap
38217maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 38218
a90ef4bf
JM
38219# libtermcap doesn't support clean.
38220clean-target-libtermcap:
15723a45 38221
a90ef4bf 38222@endif target-libtermcap
e90269c8 38223
a90ef4bf
JM
38224.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
38225maybe-distclean-target-libtermcap:
38226@if target-libtermcap
38227maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 38228
a90ef4bf
JM
38229# libtermcap doesn't support distclean.
38230distclean-target-libtermcap:
38231
38232@endif target-libtermcap
38233
38234.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
38235maybe-maintainer-clean-target-libtermcap:
38236@if target-libtermcap
38237maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
38238
38239# libtermcap doesn't support maintainer-clean.
38240maintainer-clean-target-libtermcap:
38241
38242@endif target-libtermcap
38243
38244
38245
38246
38247
38248.PHONY: configure-target-winsup maybe-configure-target-winsup
38249maybe-configure-target-winsup:
4f0ef2d8 38250@if gcc-bootstrap
a90ef4bf 38251configure-target-winsup: stage_current
4f0ef2d8 38252@endif gcc-bootstrap
a90ef4bf
JM
38253@if target-winsup
38254maybe-configure-target-winsup: configure-target-winsup
38255configure-target-winsup:
0aed8855
PB
38256 @: $(MAKE); $(unstage)
38257 @r=`${PWD_COMMAND}`; export r; \
38258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38259 echo "Checking multilib configuration for winsup..."; \
38260 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
38261 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
38262 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
38263 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
38264 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 38265 else \
a90ef4bf
JM
38266 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
38267 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
38268 fi; \
38269 else \
a90ef4bf 38270 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 38271 fi; \
a90ef4bf
JM
38272 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
38273 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
1f53ca9a 38274 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38275 echo Configuring in $(TARGET_SUBDIR)/winsup; \
38276 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 38277 case $(srcdir) in \
b00612cc 38278 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38279 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 38280 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 38281 esac; \
a90ef4bf
JM
38282 srcdiroption="--srcdir=$${topdir}/winsup"; \
38283 libsrcdir="$$s/winsup"; \
bba45b8b
NN
38284 rm -f no-such-file || : ; \
38285 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
38286 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38287 --target=${target_alias} $${srcdiroption} \
bba45b8b 38288 || exit 1
a90ef4bf 38289@endif target-winsup
e393202e 38290
a7254363
PB
38291
38292
d545f33b
PB
38293
38294
a90ef4bf
JM
38295.PHONY: all-target-winsup maybe-all-target-winsup
38296maybe-all-target-winsup:
4f0ef2d8 38297@if gcc-bootstrap
a90ef4bf 38298all-target-winsup: stage_current
4f0ef2d8 38299@endif gcc-bootstrap
a90ef4bf
JM
38300@if target-winsup
38301TARGET-target-winsup=all
38302maybe-all-target-winsup: all-target-winsup
38303all-target-winsup: configure-target-winsup
0aed8855 38304 @: $(MAKE); $(unstage)
b40e3958
L
38305 @r=`${PWD_COMMAND}`; export r; \
38306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 38307 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38308 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 38309 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38310 $(TARGET-target-winsup))
38311@endif target-winsup
e393202e 38312
a7254363
PB
38313
38314
d545f33b
PB
38315
38316
a90ef4bf
JM
38317.PHONY: check-target-winsup maybe-check-target-winsup
38318maybe-check-target-winsup:
38319@if target-winsup
38320maybe-check-target-winsup: check-target-winsup
16ae0395 38321
a90ef4bf 38322check-target-winsup:
0aed8855 38323 @: $(MAKE); $(unstage)
b40e3958
L
38324 @r=`${PWD_COMMAND}`; export r; \
38325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38326 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38327 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 38328 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 38329
a90ef4bf 38330@endif target-winsup
e393202e 38331
a90ef4bf
JM
38332.PHONY: install-target-winsup maybe-install-target-winsup
38333maybe-install-target-winsup:
38334@if target-winsup
38335maybe-install-target-winsup: install-target-winsup
4fa63067 38336
a90ef4bf 38337install-target-winsup: installdirs
0aed8855 38338 @: $(MAKE); $(unstage)
4fa63067
NN
38339 @r=`${PWD_COMMAND}`; export r; \
38340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38341 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38342 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 38343 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 38344
a90ef4bf 38345@endif target-winsup
4fa63067 38346
a90ef4bf
JM
38347.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
38348maybe-install-strip-target-winsup:
38349@if target-winsup
38350maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 38351
a90ef4bf 38352install-strip-target-winsup: installdirs
9b980aa1
RW
38353 @: $(MAKE); $(unstage)
38354 @r=`${PWD_COMMAND}`; export r; \
38355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38356 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38357 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
38358 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38359
a90ef4bf 38360@endif target-winsup
9b980aa1 38361
56a8fe78 38362# Other targets (info, dvi, pdf, etc.)
4fa63067 38363
a90ef4bf
JM
38364.PHONY: maybe-info-target-winsup info-target-winsup
38365maybe-info-target-winsup:
38366@if target-winsup
38367maybe-info-target-winsup: info-target-winsup
4fa63067 38368
a90ef4bf
JM
38369info-target-winsup: \
38370 configure-target-winsup
0aed8855 38371 @: $(MAKE); $(unstage)
a90ef4bf 38372 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38373 r=`${PWD_COMMAND}`; export r; \
38374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38375 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38376 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38377 for flag in $(EXTRA_TARGET_FLAGS); do \
38378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38379 done; \
a90ef4bf 38380 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38383 "RANLIB=$${RANLIB}" \
0c24b341 38384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38385 info) \
4fa63067
NN
38386 || exit 1
38387
a90ef4bf 38388@endif target-winsup
4fa63067 38389
a90ef4bf
JM
38390.PHONY: maybe-dvi-target-winsup dvi-target-winsup
38391maybe-dvi-target-winsup:
38392@if target-winsup
38393maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 38394
a90ef4bf
JM
38395dvi-target-winsup: \
38396 configure-target-winsup
0aed8855 38397 @: $(MAKE); $(unstage)
a90ef4bf 38398 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38399 r=`${PWD_COMMAND}`; export r; \
38400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38401 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38402 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38403 for flag in $(EXTRA_TARGET_FLAGS); do \
38404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38405 done; \
a90ef4bf 38406 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38409 "RANLIB=$${RANLIB}" \
0c24b341 38410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38411 dvi) \
4fa63067
NN
38412 || exit 1
38413
a90ef4bf 38414@endif target-winsup
4fa63067 38415
a90ef4bf
JM
38416.PHONY: maybe-pdf-target-winsup pdf-target-winsup
38417maybe-pdf-target-winsup:
38418@if target-winsup
38419maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 38420
a90ef4bf
JM
38421pdf-target-winsup: \
38422 configure-target-winsup
56a8fe78 38423 @: $(MAKE); $(unstage)
a90ef4bf 38424 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
56a8fe78
DD
38425 r=`${PWD_COMMAND}`; export r; \
38426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38427 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38428 echo "Doing pdf in $(TARGET_SUBDIR)/winsup" ; \
56a8fe78
DD
38429 for flag in $(EXTRA_TARGET_FLAGS); do \
38430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38431 done; \
a90ef4bf 38432 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
38433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38435 "RANLIB=$${RANLIB}" \
0c24b341 38436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
38437 pdf) \
38438 || exit 1
38439
a90ef4bf 38440@endif target-winsup
56a8fe78 38441
a90ef4bf
JM
38442.PHONY: maybe-html-target-winsup html-target-winsup
38443maybe-html-target-winsup:
38444@if target-winsup
38445maybe-html-target-winsup: html-target-winsup
6d389afc 38446
a90ef4bf
JM
38447html-target-winsup: \
38448 configure-target-winsup
0aed8855 38449 @: $(MAKE); $(unstage)
a90ef4bf 38450 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
6d389afc
MS
38451 r=`${PWD_COMMAND}`; export r; \
38452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 38453 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38454 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
6d389afc
MS
38455 for flag in $(EXTRA_TARGET_FLAGS); do \
38456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38457 done; \
a90ef4bf 38458 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
38459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38461 "RANLIB=$${RANLIB}" \
0c24b341 38462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
38463 html) \
38464 || exit 1
38465
a90ef4bf 38466@endif target-winsup
6d389afc 38467
a90ef4bf
JM
38468.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
38469maybe-TAGS-target-winsup:
38470@if target-winsup
38471maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 38472
a90ef4bf
JM
38473TAGS-target-winsup: \
38474 configure-target-winsup
0aed8855 38475 @: $(MAKE); $(unstage)
a90ef4bf 38476 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38477 r=`${PWD_COMMAND}`; export r; \
38478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38479 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38480 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38481 for flag in $(EXTRA_TARGET_FLAGS); do \
38482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38483 done; \
a90ef4bf 38484 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38487 "RANLIB=$${RANLIB}" \
0c24b341 38488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38489 TAGS) \
4fa63067
NN
38490 || exit 1
38491
a90ef4bf 38492@endif target-winsup
4fa63067 38493
a90ef4bf
JM
38494.PHONY: maybe-install-info-target-winsup install-info-target-winsup
38495maybe-install-info-target-winsup:
38496@if target-winsup
38497maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 38498
a90ef4bf
JM
38499install-info-target-winsup: \
38500 configure-target-winsup \
38501 info-target-winsup
0aed8855 38502 @: $(MAKE); $(unstage)
a90ef4bf 38503 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38504 r=`${PWD_COMMAND}`; export r; \
38505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38506 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38507 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38508 for flag in $(EXTRA_TARGET_FLAGS); do \
38509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38510 done; \
a90ef4bf 38511 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38514 "RANLIB=$${RANLIB}" \
0c24b341 38515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38516 install-info) \
4fa63067
NN
38517 || exit 1
38518
a90ef4bf 38519@endif target-winsup
4fa63067 38520
a90ef4bf
JM
38521.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
38522maybe-install-pdf-target-winsup:
38523@if target-winsup
38524maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 38525
a90ef4bf
JM
38526install-pdf-target-winsup: \
38527 configure-target-winsup \
38528 pdf-target-winsup
a3ca38d2 38529 @: $(MAKE); $(unstage)
a90ef4bf 38530 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
a3ca38d2
DD
38531 r=`${PWD_COMMAND}`; export r; \
38532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38533 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38534 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup" ; \
a3ca38d2
DD
38535 for flag in $(EXTRA_TARGET_FLAGS); do \
38536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38537 done; \
a90ef4bf 38538 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
38539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38541 "RANLIB=$${RANLIB}" \
0c24b341 38542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38543 install-pdf) \
38544 || exit 1
38545
a90ef4bf 38546@endif target-winsup
a3ca38d2 38547
a90ef4bf
JM
38548.PHONY: maybe-install-html-target-winsup install-html-target-winsup
38549maybe-install-html-target-winsup:
38550@if target-winsup
38551maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 38552
a90ef4bf
JM
38553install-html-target-winsup: \
38554 configure-target-winsup \
38555 html-target-winsup
108a6f8e 38556 @: $(MAKE); $(unstage)
a90ef4bf 38557 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
108a6f8e
CD
38558 r=`${PWD_COMMAND}`; export r; \
38559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38560 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38561 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
108a6f8e
CD
38562 for flag in $(EXTRA_TARGET_FLAGS); do \
38563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38564 done; \
a90ef4bf 38565 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
38566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38568 "RANLIB=$${RANLIB}" \
0c24b341 38569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
38570 install-html) \
38571 || exit 1
38572
a90ef4bf 38573@endif target-winsup
108a6f8e 38574
a90ef4bf
JM
38575.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
38576maybe-installcheck-target-winsup:
38577@if target-winsup
38578maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 38579
a90ef4bf
JM
38580installcheck-target-winsup: \
38581 configure-target-winsup
0aed8855 38582 @: $(MAKE); $(unstage)
a90ef4bf 38583 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38584 r=`${PWD_COMMAND}`; export r; \
38585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38586 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38587 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38588 for flag in $(EXTRA_TARGET_FLAGS); do \
38589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38590 done; \
a90ef4bf 38591 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38594 "RANLIB=$${RANLIB}" \
0c24b341 38595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38596 installcheck) \
4fa63067
NN
38597 || exit 1
38598
a90ef4bf 38599@endif target-winsup
4fa63067 38600
a90ef4bf
JM
38601.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
38602maybe-mostlyclean-target-winsup:
38603@if target-winsup
38604maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 38605
a90ef4bf 38606mostlyclean-target-winsup:
0aed8855 38607 @: $(MAKE); $(unstage)
a90ef4bf 38608 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38609 r=`${PWD_COMMAND}`; export r; \
38610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38611 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38612 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38613 for flag in $(EXTRA_TARGET_FLAGS); do \
38614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38615 done; \
a90ef4bf 38616 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38619 "RANLIB=$${RANLIB}" \
0c24b341 38620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38621 mostlyclean) \
4fa63067
NN
38622 || exit 1
38623
a90ef4bf 38624@endif target-winsup
4fa63067 38625
a90ef4bf
JM
38626.PHONY: maybe-clean-target-winsup clean-target-winsup
38627maybe-clean-target-winsup:
38628@if target-winsup
38629maybe-clean-target-winsup: clean-target-winsup
4fa63067 38630
a90ef4bf 38631clean-target-winsup:
0aed8855 38632 @: $(MAKE); $(unstage)
a90ef4bf 38633 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38634 r=`${PWD_COMMAND}`; export r; \
38635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38636 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38637 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38638 for flag in $(EXTRA_TARGET_FLAGS); do \
38639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38640 done; \
a90ef4bf 38641 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38644 "RANLIB=$${RANLIB}" \
0c24b341 38645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38646 clean) \
4fa63067
NN
38647 || exit 1
38648
a90ef4bf 38649@endif target-winsup
4fa63067 38650
a90ef4bf
JM
38651.PHONY: maybe-distclean-target-winsup distclean-target-winsup
38652maybe-distclean-target-winsup:
38653@if target-winsup
38654maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 38655
a90ef4bf 38656distclean-target-winsup:
0aed8855 38657 @: $(MAKE); $(unstage)
a90ef4bf 38658 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38659 r=`${PWD_COMMAND}`; export r; \
38660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38661 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38662 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38663 for flag in $(EXTRA_TARGET_FLAGS); do \
38664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38665 done; \
a90ef4bf 38666 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38669 "RANLIB=$${RANLIB}" \
0c24b341 38670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38671 distclean) \
4fa63067
NN
38672 || exit 1
38673
a90ef4bf 38674@endif target-winsup
4fa63067 38675
a90ef4bf
JM
38676.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
38677maybe-maintainer-clean-target-winsup:
38678@if target-winsup
38679maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 38680
a90ef4bf 38681maintainer-clean-target-winsup:
0aed8855 38682 @: $(MAKE); $(unstage)
a90ef4bf 38683 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
38684 r=`${PWD_COMMAND}`; export r; \
38685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38686 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38687 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
38688 for flag in $(EXTRA_TARGET_FLAGS); do \
38689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38690 done; \
a90ef4bf 38691 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
38692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38694 "RANLIB=$${RANLIB}" \
0c24b341 38695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38696 maintainer-clean) \
4fa63067 38697 || exit 1
16ae0395 38698
a90ef4bf 38699@endif target-winsup
e393202e
NN
38700
38701
15723a45 38702
e90269c8 38703
a7254363 38704
a90ef4bf
JM
38705.PHONY: configure-target-libgloss maybe-configure-target-libgloss
38706maybe-configure-target-libgloss:
4f0ef2d8 38707@if gcc-bootstrap
a90ef4bf 38708configure-target-libgloss: stage_current
4f0ef2d8 38709@endif gcc-bootstrap
a90ef4bf
JM
38710@if target-libgloss
38711maybe-configure-target-libgloss: configure-target-libgloss
38712configure-target-libgloss:
0aed8855
PB
38713 @: $(MAKE); $(unstage)
38714 @r=`${PWD_COMMAND}`; export r; \
38715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38716 echo "Checking multilib configuration for libgloss..."; \
38717 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
38718 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
38719 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
38720 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
38721 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 38722 else \
a90ef4bf
JM
38723 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
38724 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
38725 fi; \
38726 else \
a90ef4bf 38727 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 38728 fi; \
a90ef4bf
JM
38729 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
38730 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
1f53ca9a 38731 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38732 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
38733 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 38734 case $(srcdir) in \
b00612cc 38735 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38736 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 38737 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 38738 esac; \
a90ef4bf
JM
38739 srcdiroption="--srcdir=$${topdir}/libgloss"; \
38740 libsrcdir="$$s/libgloss"; \
bba45b8b
NN
38741 rm -f no-such-file || : ; \
38742 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
38743 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38744 --target=${target_alias} $${srcdiroption} \
bba45b8b 38745 || exit 1
a90ef4bf 38746@endif target-libgloss
e393202e 38747
a7254363
PB
38748
38749
d545f33b
PB
38750
38751
a90ef4bf
JM
38752.PHONY: all-target-libgloss maybe-all-target-libgloss
38753maybe-all-target-libgloss:
4f0ef2d8 38754@if gcc-bootstrap
a90ef4bf 38755all-target-libgloss: stage_current
4f0ef2d8 38756@endif gcc-bootstrap
a90ef4bf
JM
38757@if target-libgloss
38758TARGET-target-libgloss=all
38759maybe-all-target-libgloss: all-target-libgloss
38760all-target-libgloss: configure-target-libgloss
0aed8855 38761 @: $(MAKE); $(unstage)
b40e3958
L
38762 @r=`${PWD_COMMAND}`; export r; \
38763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 38764 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38765 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 38766 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38767 $(TARGET-target-libgloss))
38768@endif target-libgloss
e393202e 38769
a7254363
PB
38770
38771
d545f33b
PB
38772
38773
a90ef4bf
JM
38774.PHONY: check-target-libgloss maybe-check-target-libgloss
38775maybe-check-target-libgloss:
38776@if target-libgloss
38777maybe-check-target-libgloss: check-target-libgloss
16ae0395 38778
a90ef4bf
JM
38779# Dummy target for uncheckable module.
38780check-target-libgloss:
930314a4 38781
a90ef4bf 38782@endif target-libgloss
e393202e 38783
a90ef4bf
JM
38784.PHONY: install-target-libgloss maybe-install-target-libgloss
38785maybe-install-target-libgloss:
38786@if target-libgloss
38787maybe-install-target-libgloss: install-target-libgloss
4fa63067 38788
a90ef4bf 38789install-target-libgloss: installdirs
0aed8855 38790 @: $(MAKE); $(unstage)
4fa63067
NN
38791 @r=`${PWD_COMMAND}`; export r; \
38792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38793 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38794 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 38795 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 38796
a90ef4bf 38797@endif target-libgloss
4fa63067 38798
a90ef4bf
JM
38799.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
38800maybe-install-strip-target-libgloss:
38801@if target-libgloss
38802maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 38803
a90ef4bf 38804install-strip-target-libgloss: installdirs
9b980aa1
RW
38805 @: $(MAKE); $(unstage)
38806 @r=`${PWD_COMMAND}`; export r; \
38807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38808 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38809 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
38810 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38811
a90ef4bf 38812@endif target-libgloss
9b980aa1 38813
56a8fe78 38814# Other targets (info, dvi, pdf, etc.)
4fa63067 38815
a90ef4bf
JM
38816.PHONY: maybe-info-target-libgloss info-target-libgloss
38817maybe-info-target-libgloss:
38818@if target-libgloss
38819maybe-info-target-libgloss: info-target-libgloss
4fa63067 38820
a90ef4bf
JM
38821info-target-libgloss: \
38822 configure-target-libgloss
0aed8855 38823 @: $(MAKE); $(unstage)
a90ef4bf 38824 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
38825 r=`${PWD_COMMAND}`; export r; \
38826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38827 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38828 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
38829 for flag in $(EXTRA_TARGET_FLAGS); do \
38830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38831 done; \
a90ef4bf 38832 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
38833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38835 "RANLIB=$${RANLIB}" \
0c24b341 38836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38837 info) \
4fa63067
NN
38838 || exit 1
38839
a90ef4bf 38840@endif target-libgloss
4fa63067 38841
a90ef4bf
JM
38842.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
38843maybe-dvi-target-libgloss:
38844@if target-libgloss
38845maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 38846
a90ef4bf
JM
38847dvi-target-libgloss: \
38848 configure-target-libgloss
0aed8855 38849 @: $(MAKE); $(unstage)
a90ef4bf 38850 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
38851 r=`${PWD_COMMAND}`; export r; \
38852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38853 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38854 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
38855 for flag in $(EXTRA_TARGET_FLAGS); do \
38856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38857 done; \
a90ef4bf 38858 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
38859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38861 "RANLIB=$${RANLIB}" \
0c24b341 38862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38863 dvi) \
4fa63067
NN
38864 || exit 1
38865
a90ef4bf 38866@endif target-libgloss
4fa63067 38867
a90ef4bf
JM
38868.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
38869maybe-pdf-target-libgloss:
38870@if target-libgloss
38871maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 38872
a90ef4bf
JM
38873pdf-target-libgloss: \
38874 configure-target-libgloss
56a8fe78 38875 @: $(MAKE); $(unstage)
a90ef4bf 38876 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
56a8fe78
DD
38877 r=`${PWD_COMMAND}`; export r; \
38878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38879 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38880 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss" ; \
56a8fe78
DD
38881 for flag in $(EXTRA_TARGET_FLAGS); do \
38882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38883 done; \
a90ef4bf 38884 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
38885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38887 "RANLIB=$${RANLIB}" \
0c24b341 38888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
38889 pdf) \
38890 || exit 1
38891
a90ef4bf 38892@endif target-libgloss
56a8fe78 38893
a90ef4bf
JM
38894.PHONY: maybe-html-target-libgloss html-target-libgloss
38895maybe-html-target-libgloss:
38896@if target-libgloss
38897maybe-html-target-libgloss: html-target-libgloss
6d389afc 38898
a90ef4bf
JM
38899html-target-libgloss: \
38900 configure-target-libgloss
0aed8855 38901 @: $(MAKE); $(unstage)
a90ef4bf 38902 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
6d389afc
MS
38903 r=`${PWD_COMMAND}`; export r; \
38904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 38905 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38906 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
6d389afc
MS
38907 for flag in $(EXTRA_TARGET_FLAGS); do \
38908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38909 done; \
a90ef4bf 38910 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
38911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38913 "RANLIB=$${RANLIB}" \
0c24b341 38914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
38915 html) \
38916 || exit 1
38917
a90ef4bf 38918@endif target-libgloss
6d389afc 38919
a90ef4bf
JM
38920.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
38921maybe-TAGS-target-libgloss:
38922@if target-libgloss
38923maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 38924
a90ef4bf
JM
38925TAGS-target-libgloss: \
38926 configure-target-libgloss
0aed8855 38927 @: $(MAKE); $(unstage)
a90ef4bf 38928 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
38929 r=`${PWD_COMMAND}`; export r; \
38930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38931 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38932 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
38933 for flag in $(EXTRA_TARGET_FLAGS); do \
38934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38935 done; \
a90ef4bf 38936 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
38937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38939 "RANLIB=$${RANLIB}" \
0c24b341 38940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38941 TAGS) \
4fa63067
NN
38942 || exit 1
38943
a90ef4bf 38944@endif target-libgloss
4fa63067 38945
a90ef4bf
JM
38946.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
38947maybe-install-info-target-libgloss:
38948@if target-libgloss
38949maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 38950
a90ef4bf
JM
38951install-info-target-libgloss: \
38952 configure-target-libgloss \
38953 info-target-libgloss
0aed8855 38954 @: $(MAKE); $(unstage)
a90ef4bf 38955 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
38956 r=`${PWD_COMMAND}`; export r; \
38957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38958 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38959 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
38960 for flag in $(EXTRA_TARGET_FLAGS); do \
38961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38962 done; \
a90ef4bf 38963 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
38964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38966 "RANLIB=$${RANLIB}" \
0c24b341 38967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38968 install-info) \
4fa63067
NN
38969 || exit 1
38970
a90ef4bf 38971@endif target-libgloss
4fa63067 38972
a90ef4bf
JM
38973.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
38974maybe-install-pdf-target-libgloss:
38975@if target-libgloss
38976maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 38977
a90ef4bf
JM
38978install-pdf-target-libgloss: \
38979 configure-target-libgloss \
38980 pdf-target-libgloss
a3ca38d2 38981 @: $(MAKE); $(unstage)
a90ef4bf 38982 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
a3ca38d2
DD
38983 r=`${PWD_COMMAND}`; export r; \
38984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38985 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38986 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss" ; \
a3ca38d2
DD
38987 for flag in $(EXTRA_TARGET_FLAGS); do \
38988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38989 done; \
a90ef4bf 38990 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
38991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38993 "RANLIB=$${RANLIB}" \
0c24b341 38994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38995 install-pdf) \
38996 || exit 1
38997
a90ef4bf 38998@endif target-libgloss
a3ca38d2 38999
a90ef4bf
JM
39000.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
39001maybe-install-html-target-libgloss:
39002@if target-libgloss
39003maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 39004
a90ef4bf
JM
39005install-html-target-libgloss: \
39006 configure-target-libgloss \
39007 html-target-libgloss
108a6f8e 39008 @: $(MAKE); $(unstage)
a90ef4bf 39009 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
108a6f8e
CD
39010 r=`${PWD_COMMAND}`; export r; \
39011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39012 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39013 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
108a6f8e
CD
39014 for flag in $(EXTRA_TARGET_FLAGS); do \
39015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39016 done; \
a90ef4bf 39017 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
39018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39020 "RANLIB=$${RANLIB}" \
0c24b341 39021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39022 install-html) \
39023 || exit 1
39024
a90ef4bf 39025@endif target-libgloss
108a6f8e 39026
a90ef4bf
JM
39027.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
39028maybe-installcheck-target-libgloss:
39029@if target-libgloss
39030maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 39031
a90ef4bf
JM
39032installcheck-target-libgloss: \
39033 configure-target-libgloss
0aed8855 39034 @: $(MAKE); $(unstage)
a90ef4bf 39035 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
39036 r=`${PWD_COMMAND}`; export r; \
39037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39038 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39039 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
39040 for flag in $(EXTRA_TARGET_FLAGS); do \
39041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39042 done; \
a90ef4bf 39043 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
39044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39046 "RANLIB=$${RANLIB}" \
0c24b341 39047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39048 installcheck) \
4fa63067
NN
39049 || exit 1
39050
a90ef4bf 39051@endif target-libgloss
4fa63067 39052
a90ef4bf
JM
39053.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
39054maybe-mostlyclean-target-libgloss:
39055@if target-libgloss
39056maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 39057
a90ef4bf 39058mostlyclean-target-libgloss:
0aed8855 39059 @: $(MAKE); $(unstage)
a90ef4bf 39060 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
39061 r=`${PWD_COMMAND}`; export r; \
39062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39063 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39064 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
39065 for flag in $(EXTRA_TARGET_FLAGS); do \
39066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39067 done; \
a90ef4bf 39068 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
39069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39071 "RANLIB=$${RANLIB}" \
0c24b341 39072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39073 mostlyclean) \
4fa63067
NN
39074 || exit 1
39075
a90ef4bf 39076@endif target-libgloss
4fa63067 39077
a90ef4bf
JM
39078.PHONY: maybe-clean-target-libgloss clean-target-libgloss
39079maybe-clean-target-libgloss:
39080@if target-libgloss
39081maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 39082
a90ef4bf 39083clean-target-libgloss:
0aed8855 39084 @: $(MAKE); $(unstage)
a90ef4bf 39085 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
39086 r=`${PWD_COMMAND}`; export r; \
39087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39088 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39089 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
39090 for flag in $(EXTRA_TARGET_FLAGS); do \
39091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39092 done; \
a90ef4bf 39093 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
39094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39096 "RANLIB=$${RANLIB}" \
0c24b341 39097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39098 clean) \
4fa63067
NN
39099 || exit 1
39100
a90ef4bf 39101@endif target-libgloss
4fa63067 39102
a90ef4bf
JM
39103.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
39104maybe-distclean-target-libgloss:
39105@if target-libgloss
39106maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 39107
a90ef4bf 39108distclean-target-libgloss:
0aed8855 39109 @: $(MAKE); $(unstage)
a90ef4bf 39110 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
39111 r=`${PWD_COMMAND}`; export r; \
39112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39113 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39114 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
39115 for flag in $(EXTRA_TARGET_FLAGS); do \
39116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39117 done; \
a90ef4bf 39118 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
39119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39121 "RANLIB=$${RANLIB}" \
0c24b341 39122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39123 distclean) \
4fa63067
NN
39124 || exit 1
39125
a90ef4bf 39126@endif target-libgloss
4fa63067 39127
a90ef4bf
JM
39128.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
39129maybe-maintainer-clean-target-libgloss:
39130@if target-libgloss
39131maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 39132
a90ef4bf 39133maintainer-clean-target-libgloss:
0aed8855 39134 @: $(MAKE); $(unstage)
a90ef4bf 39135 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
39136 r=`${PWD_COMMAND}`; export r; \
39137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39138 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39139 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
39140 for flag in $(EXTRA_TARGET_FLAGS); do \
39141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39142 done; \
a90ef4bf 39143 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
39144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39146 "RANLIB=$${RANLIB}" \
0c24b341 39147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39148 maintainer-clean) \
4fa63067 39149 || exit 1
16ae0395 39150
a90ef4bf 39151@endif target-libgloss
e393202e
NN
39152
39153
15723a45 39154
a7254363
PB
39155
39156
a7254363
PB
39157.PHONY: configure-target-libffi maybe-configure-target-libffi
39158maybe-configure-target-libffi:
4f0ef2d8
CD
39159@if gcc-bootstrap
39160configure-target-libffi: stage_current
39161@endif gcc-bootstrap
a7254363
PB
39162@if target-libffi
39163maybe-configure-target-libffi: configure-target-libffi
c52c6897 39164configure-target-libffi:
0aed8855
PB
39165 @: $(MAKE); $(unstage)
39166 @r=`${PWD_COMMAND}`; export r; \
39167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39168 echo "Checking multilib configuration for libffi..."; \
39169 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
39170 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
39171 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
39172 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
39173 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
39174 else \
39175 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
39176 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
39177 fi; \
39178 else \
39179 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
39180 fi; \
39181 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
4fa63067 39182 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
1f53ca9a 39183 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39184 echo Configuring in $(TARGET_SUBDIR)/libffi; \
39185 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 39186 case $(srcdir) in \
b00612cc
PB
39187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39188 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
39189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 39190 esac; \
b00612cc
PB
39191 srcdiroption="--srcdir=$${topdir}/libffi"; \
39192 libsrcdir="$$s/libffi"; \
bba45b8b
NN
39193 rm -f no-such-file || : ; \
39194 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
39195 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39196 --target=${target_alias} $${srcdiroption} \
bba45b8b 39197 || exit 1
6bd3dfaa 39198@endif target-libffi
e393202e 39199
a7254363
PB
39200
39201
d545f33b
PB
39202
39203
4fa63067
NN
39204.PHONY: all-target-libffi maybe-all-target-libffi
39205maybe-all-target-libffi:
4f0ef2d8
CD
39206@if gcc-bootstrap
39207all-target-libffi: stage_current
39208@endif gcc-bootstrap
6bd3dfaa 39209@if target-libffi
72b2455a 39210TARGET-target-libffi=all
6bd3dfaa 39211maybe-all-target-libffi: all-target-libffi
4fa63067 39212all-target-libffi: configure-target-libffi
0aed8855 39213 @: $(MAKE); $(unstage)
b40e3958
L
39214 @r=`${PWD_COMMAND}`; export r; \
39215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39216 $(NORMAL_TARGET_EXPORTS) \
4fa63067 39217 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 39218 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 39219 $(TARGET-target-libffi))
6bd3dfaa 39220@endif target-libffi
e393202e 39221
a7254363
PB
39222
39223
d545f33b
PB
39224
39225
4fa63067
NN
39226.PHONY: check-target-libffi maybe-check-target-libffi
39227maybe-check-target-libffi:
6bd3dfaa
PB
39228@if target-libffi
39229maybe-check-target-libffi: check-target-libffi
16ae0395 39230
4fa63067 39231check-target-libffi:
0aed8855 39232 @: $(MAKE); $(unstage)
b40e3958
L
39233 @r=`${PWD_COMMAND}`; export r; \
39234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39235 $(NORMAL_TARGET_EXPORTS) \
4fa63067 39236 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 39237 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 39238
6bd3dfaa 39239@endif target-libffi
e393202e 39240
4fa63067
NN
39241.PHONY: install-target-libffi maybe-install-target-libffi
39242maybe-install-target-libffi:
6bd3dfaa
PB
39243@if target-libffi
39244maybe-install-target-libffi: install-target-libffi
16ae0395 39245
b836cb18
JBG
39246# Dummy target for uninstallable.
39247install-target-libffi:
e393202e 39248
6bd3dfaa 39249@endif target-libffi
e393202e 39250
9b980aa1
RW
39251.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
39252maybe-install-strip-target-libffi:
39253@if target-libffi
39254maybe-install-strip-target-libffi: install-strip-target-libffi
39255
b836cb18
JBG
39256# Dummy target for uninstallable.
39257install-strip-target-libffi:
9b980aa1
RW
39258
39259@endif target-libffi
39260
56a8fe78 39261# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
39262
39263.PHONY: maybe-info-target-libffi info-target-libffi
39264maybe-info-target-libffi:
6bd3dfaa
PB
39265@if target-libffi
39266maybe-info-target-libffi: info-target-libffi
4fa63067
NN
39267
39268info-target-libffi: \
39269 configure-target-libffi
0aed8855 39270 @: $(MAKE); $(unstage)
4fa63067
NN
39271 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39272 r=`${PWD_COMMAND}`; export r; \
39273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39274 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39275 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
39276 for flag in $(EXTRA_TARGET_FLAGS); do \
39277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39278 done; \
39279 (cd $(TARGET_SUBDIR)/libffi && \
39280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39282 "RANLIB=$${RANLIB}" \
0c24b341 39283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39284 info) \
4fa63067
NN
39285 || exit 1
39286
6bd3dfaa 39287@endif target-libffi
4fa63067
NN
39288
39289.PHONY: maybe-dvi-target-libffi dvi-target-libffi
39290maybe-dvi-target-libffi:
6bd3dfaa
PB
39291@if target-libffi
39292maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
39293
39294dvi-target-libffi: \
39295 configure-target-libffi
0aed8855 39296 @: $(MAKE); $(unstage)
4fa63067
NN
39297 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39298 r=`${PWD_COMMAND}`; export r; \
39299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39300 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39301 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
39302 for flag in $(EXTRA_TARGET_FLAGS); do \
39303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39304 done; \
39305 (cd $(TARGET_SUBDIR)/libffi && \
39306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39308 "RANLIB=$${RANLIB}" \
0c24b341 39309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39310 dvi) \
4fa63067
NN
39311 || exit 1
39312
6bd3dfaa 39313@endif target-libffi
4fa63067 39314
56a8fe78
DD
39315.PHONY: maybe-pdf-target-libffi pdf-target-libffi
39316maybe-pdf-target-libffi:
39317@if target-libffi
39318maybe-pdf-target-libffi: pdf-target-libffi
39319
39320pdf-target-libffi: \
39321 configure-target-libffi
39322 @: $(MAKE); $(unstage)
39323 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39324 r=`${PWD_COMMAND}`; export r; \
39325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39326 $(NORMAL_TARGET_EXPORTS) \
39327 echo "Doing pdf in $(TARGET_SUBDIR)/libffi" ; \
39328 for flag in $(EXTRA_TARGET_FLAGS); do \
39329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39330 done; \
39331 (cd $(TARGET_SUBDIR)/libffi && \
39332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39334 "RANLIB=$${RANLIB}" \
0c24b341 39335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39336 pdf) \
39337 || exit 1
39338
39339@endif target-libffi
39340
6d389afc
MS
39341.PHONY: maybe-html-target-libffi html-target-libffi
39342maybe-html-target-libffi:
39343@if target-libffi
39344maybe-html-target-libffi: html-target-libffi
39345
39346html-target-libffi: \
39347 configure-target-libffi
0aed8855 39348 @: $(MAKE); $(unstage)
6d389afc
MS
39349 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39350 r=`${PWD_COMMAND}`; export r; \
39351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
39352 $(NORMAL_TARGET_EXPORTS) \
39353 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
39354 for flag in $(EXTRA_TARGET_FLAGS); do \
39355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39356 done; \
39357 (cd $(TARGET_SUBDIR)/libffi && \
39358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39360 "RANLIB=$${RANLIB}" \
0c24b341 39361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39362 html) \
39363 || exit 1
39364
39365@endif target-libffi
39366
4fa63067
NN
39367.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
39368maybe-TAGS-target-libffi:
6bd3dfaa
PB
39369@if target-libffi
39370maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
39371
39372TAGS-target-libffi: \
39373 configure-target-libffi
0aed8855 39374 @: $(MAKE); $(unstage)
4fa63067
NN
39375 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39376 r=`${PWD_COMMAND}`; export r; \
39377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39378 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39379 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
39380 for flag in $(EXTRA_TARGET_FLAGS); do \
39381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39382 done; \
39383 (cd $(TARGET_SUBDIR)/libffi && \
39384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39386 "RANLIB=$${RANLIB}" \
0c24b341 39387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39388 TAGS) \
4fa63067
NN
39389 || exit 1
39390
6bd3dfaa 39391@endif target-libffi
4fa63067
NN
39392
39393.PHONY: maybe-install-info-target-libffi install-info-target-libffi
39394maybe-install-info-target-libffi:
6bd3dfaa
PB
39395@if target-libffi
39396maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
39397
39398install-info-target-libffi: \
39399 configure-target-libffi \
39400 info-target-libffi
0aed8855 39401 @: $(MAKE); $(unstage)
4fa63067
NN
39402 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39403 r=`${PWD_COMMAND}`; export r; \
39404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39405 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39406 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
39407 for flag in $(EXTRA_TARGET_FLAGS); do \
39408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39409 done; \
39410 (cd $(TARGET_SUBDIR)/libffi && \
39411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39413 "RANLIB=$${RANLIB}" \
0c24b341 39414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39415 install-info) \
4fa63067
NN
39416 || exit 1
39417
6bd3dfaa 39418@endif target-libffi
4fa63067 39419
a3ca38d2
DD
39420.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
39421maybe-install-pdf-target-libffi:
39422@if target-libffi
39423maybe-install-pdf-target-libffi: install-pdf-target-libffi
39424
39425install-pdf-target-libffi: \
39426 configure-target-libffi \
39427 pdf-target-libffi
39428 @: $(MAKE); $(unstage)
39429 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39430 r=`${PWD_COMMAND}`; export r; \
39431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39432 $(NORMAL_TARGET_EXPORTS) \
39433 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi" ; \
39434 for flag in $(EXTRA_TARGET_FLAGS); do \
39435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39436 done; \
39437 (cd $(TARGET_SUBDIR)/libffi && \
39438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39440 "RANLIB=$${RANLIB}" \
0c24b341 39441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39442 install-pdf) \
39443 || exit 1
39444
39445@endif target-libffi
39446
108a6f8e
CD
39447.PHONY: maybe-install-html-target-libffi install-html-target-libffi
39448maybe-install-html-target-libffi:
39449@if target-libffi
39450maybe-install-html-target-libffi: install-html-target-libffi
39451
39452install-html-target-libffi: \
39453 configure-target-libffi \
39454 html-target-libffi
39455 @: $(MAKE); $(unstage)
39456 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39457 r=`${PWD_COMMAND}`; export r; \
39458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39459 $(NORMAL_TARGET_EXPORTS) \
39460 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
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)/libffi && \
39465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39467 "RANLIB=$${RANLIB}" \
0c24b341 39468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39469 install-html) \
39470 || exit 1
39471
39472@endif target-libffi
39473
4fa63067
NN
39474.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
39475maybe-installcheck-target-libffi:
6bd3dfaa
PB
39476@if target-libffi
39477maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
39478
39479installcheck-target-libffi: \
39480 configure-target-libffi
0aed8855 39481 @: $(MAKE); $(unstage)
4fa63067
NN
39482 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39483 r=`${PWD_COMMAND}`; export r; \
39484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39485 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39486 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
39487 for flag in $(EXTRA_TARGET_FLAGS); do \
39488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39489 done; \
39490 (cd $(TARGET_SUBDIR)/libffi && \
39491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39493 "RANLIB=$${RANLIB}" \
0c24b341 39494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39495 installcheck) \
4fa63067
NN
39496 || exit 1
39497
6bd3dfaa 39498@endif target-libffi
4fa63067
NN
39499
39500.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
39501maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
39502@if target-libffi
39503maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
39504
39505mostlyclean-target-libffi:
0aed8855 39506 @: $(MAKE); $(unstage)
4fa63067
NN
39507 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39508 r=`${PWD_COMMAND}`; export r; \
39509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39510 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39511 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
39512 for flag in $(EXTRA_TARGET_FLAGS); do \
39513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39514 done; \
39515 (cd $(TARGET_SUBDIR)/libffi && \
39516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39518 "RANLIB=$${RANLIB}" \
0c24b341 39519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39520 mostlyclean) \
4fa63067
NN
39521 || exit 1
39522
6bd3dfaa 39523@endif target-libffi
4fa63067
NN
39524
39525.PHONY: maybe-clean-target-libffi clean-target-libffi
39526maybe-clean-target-libffi:
6bd3dfaa
PB
39527@if target-libffi
39528maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
39529
39530clean-target-libffi:
0aed8855 39531 @: $(MAKE); $(unstage)
4fa63067
NN
39532 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39533 r=`${PWD_COMMAND}`; export r; \
39534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39535 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39536 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
39537 for flag in $(EXTRA_TARGET_FLAGS); do \
39538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39539 done; \
39540 (cd $(TARGET_SUBDIR)/libffi && \
39541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39543 "RANLIB=$${RANLIB}" \
0c24b341 39544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39545 clean) \
4fa63067
NN
39546 || exit 1
39547
6bd3dfaa 39548@endif target-libffi
4fa63067
NN
39549
39550.PHONY: maybe-distclean-target-libffi distclean-target-libffi
39551maybe-distclean-target-libffi:
6bd3dfaa
PB
39552@if target-libffi
39553maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
39554
39555distclean-target-libffi:
0aed8855 39556 @: $(MAKE); $(unstage)
4fa63067
NN
39557 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39558 r=`${PWD_COMMAND}`; export r; \
39559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39560 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39561 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
39562 for flag in $(EXTRA_TARGET_FLAGS); do \
39563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39564 done; \
39565 (cd $(TARGET_SUBDIR)/libffi && \
39566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39568 "RANLIB=$${RANLIB}" \
0c24b341 39569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39570 distclean) \
4fa63067
NN
39571 || exit 1
39572
6bd3dfaa 39573@endif target-libffi
4fa63067
NN
39574
39575.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
39576maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
39577@if target-libffi
39578maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
39579
39580maintainer-clean-target-libffi:
0aed8855 39581 @: $(MAKE); $(unstage)
4fa63067
NN
39582 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
39583 r=`${PWD_COMMAND}`; export r; \
39584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39585 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
39586 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
39587 for flag in $(EXTRA_TARGET_FLAGS); do \
39588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39589 done; \
39590 (cd $(TARGET_SUBDIR)/libffi && \
39591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39593 "RANLIB=$${RANLIB}" \
0c24b341 39594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39595 maintainer-clean) \
4fa63067
NN
39596 || exit 1
39597
6bd3dfaa 39598@endif target-libffi
4fa63067
NN
39599
39600
15723a45 39601
a7254363 39602
15723a45 39603
a7254363
PB
39604.PHONY: configure-target-libjava maybe-configure-target-libjava
39605maybe-configure-target-libjava:
4f0ef2d8
CD
39606@if gcc-bootstrap
39607configure-target-libjava: stage_current
39608@endif gcc-bootstrap
a7254363
PB
39609@if target-libjava
39610maybe-configure-target-libjava: configure-target-libjava
c52c6897 39611configure-target-libjava:
0aed8855
PB
39612 @: $(MAKE); $(unstage)
39613 @r=`${PWD_COMMAND}`; export r; \
39614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39615 echo "Checking multilib configuration for libjava..."; \
39616 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
39617 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
39618 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
39619 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
39620 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
39621 else \
39622 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
39623 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
39624 fi; \
39625 else \
39626 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
c52c6897
PB
39627 fi; \
39628 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
4fa63067 39629 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
1f53ca9a 39630 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
39631 echo Configuring in $(TARGET_SUBDIR)/libjava; \
39632 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b 39633 case $(srcdir) in \
b00612cc
PB
39634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39635 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
39636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 39637 esac; \
b00612cc
PB
39638 srcdiroption="--srcdir=$${topdir}/libjava"; \
39639 libsrcdir="$$s/libjava"; \
bba45b8b
NN
39640 rm -f no-such-file || : ; \
39641 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473 39642 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
ffdd6afc 39643 --target=${target_alias} $${srcdiroption} $(EXTRA_CONFIGARGS_LIBJAVA) \
bba45b8b 39644 || exit 1
6bd3dfaa 39645@endif target-libjava
e393202e 39646
a7254363
PB
39647
39648
d545f33b
PB
39649
39650
4fa63067
NN
39651.PHONY: all-target-libjava maybe-all-target-libjava
39652maybe-all-target-libjava:
4f0ef2d8
CD
39653@if gcc-bootstrap
39654all-target-libjava: stage_current
39655@endif gcc-bootstrap
6bd3dfaa 39656@if target-libjava
72b2455a 39657TARGET-target-libjava=all
6bd3dfaa 39658maybe-all-target-libjava: all-target-libjava
4fa63067 39659all-target-libjava: configure-target-libjava
0aed8855 39660 @: $(MAKE); $(unstage)
b40e3958
L
39661 @r=`${PWD_COMMAND}`; export r; \
39662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39663 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 39664 (cd $(TARGET_SUBDIR)/libjava && \
b3676d82 39665 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 39666 $(TARGET-target-libjava))
6bd3dfaa 39667@endif target-libjava
e393202e 39668
a7254363
PB
39669
39670
d545f33b
PB
39671
39672
4fa63067
NN
39673.PHONY: check-target-libjava maybe-check-target-libjava
39674maybe-check-target-libjava:
6bd3dfaa
PB
39675@if target-libjava
39676maybe-check-target-libjava: check-target-libjava
16ae0395 39677
4fa63067 39678check-target-libjava:
0aed8855 39679 @: $(MAKE); $(unstage)
4fa63067
NN
39680 @r=`${PWD_COMMAND}`; export r; \
39681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39682 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 39683 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 39684 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 39685
6bd3dfaa 39686@endif target-libjava
930314a4 39687
4fa63067
NN
39688.PHONY: install-target-libjava maybe-install-target-libjava
39689maybe-install-target-libjava:
6bd3dfaa
PB
39690@if target-libjava
39691maybe-install-target-libjava: install-target-libjava
16ae0395 39692
4fa63067 39693install-target-libjava: installdirs
0aed8855 39694 @: $(MAKE); $(unstage)
b40e3958
L
39695 @r=`${PWD_COMMAND}`; export r; \
39696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39697 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 39698 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 39699 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 39700
6bd3dfaa 39701@endif target-libjava
e393202e 39702
9b980aa1
RW
39703.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
39704maybe-install-strip-target-libjava:
39705@if target-libjava
39706maybe-install-strip-target-libjava: install-strip-target-libjava
39707
39708install-strip-target-libjava: installdirs
39709 @: $(MAKE); $(unstage)
39710 @r=`${PWD_COMMAND}`; export r; \
39711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39712 $(RAW_CXX_TARGET_EXPORTS) \
39713 (cd $(TARGET_SUBDIR)/libjava && \
39714 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39715
39716@endif target-libjava
39717
56a8fe78 39718# Other targets (info, dvi, pdf, etc.)
15723a45 39719
4fa63067
NN
39720.PHONY: maybe-info-target-libjava info-target-libjava
39721maybe-info-target-libjava:
6bd3dfaa
PB
39722@if target-libjava
39723maybe-info-target-libjava: info-target-libjava
15723a45 39724
4fa63067
NN
39725info-target-libjava: \
39726 configure-target-libjava
0aed8855 39727 @: $(MAKE); $(unstage)
4fa63067 39728 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
39729 r=`${PWD_COMMAND}`; export r; \
39730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39731 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
39732 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
39733 for flag in $(EXTRA_TARGET_FLAGS); do \
39734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39735 done; \
39736 (cd $(TARGET_SUBDIR)/libjava && \
39737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39739 "RANLIB=$${RANLIB}" \
0c24b341 39740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39741 info) \
bba45b8b 39742 || exit 1
e393202e 39743
6bd3dfaa 39744@endif target-libjava
4fa63067
NN
39745
39746.PHONY: maybe-dvi-target-libjava dvi-target-libjava
39747maybe-dvi-target-libjava:
6bd3dfaa
PB
39748@if target-libjava
39749maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
39750
39751dvi-target-libjava: \
39752 configure-target-libjava
0aed8855 39753 @: $(MAKE); $(unstage)
4fa63067
NN
39754 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39755 r=`${PWD_COMMAND}`; export r; \
b40e3958 39756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39757 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
39758 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
39759 for flag in $(EXTRA_TARGET_FLAGS); do \
39760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39761 done; \
39762 (cd $(TARGET_SUBDIR)/libjava && \
39763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39765 "RANLIB=$${RANLIB}" \
0c24b341 39766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39767 dvi) \
4fa63067 39768 || exit 1
e393202e 39769
6bd3dfaa 39770@endif target-libjava
16ae0395 39771
56a8fe78
DD
39772.PHONY: maybe-pdf-target-libjava pdf-target-libjava
39773maybe-pdf-target-libjava:
39774@if target-libjava
39775maybe-pdf-target-libjava: pdf-target-libjava
39776
39777pdf-target-libjava: \
39778 configure-target-libjava
39779 @: $(MAKE); $(unstage)
39780 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39781 r=`${PWD_COMMAND}`; export r; \
39782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39783 $(RAW_CXX_TARGET_EXPORTS) \
39784 echo "Doing pdf in $(TARGET_SUBDIR)/libjava" ; \
39785 for flag in $(EXTRA_TARGET_FLAGS); do \
39786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39787 done; \
39788 (cd $(TARGET_SUBDIR)/libjava && \
39789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39791 "RANLIB=$${RANLIB}" \
0c24b341 39792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39793 pdf) \
39794 || exit 1
39795
39796@endif target-libjava
39797
6d389afc
MS
39798.PHONY: maybe-html-target-libjava html-target-libjava
39799maybe-html-target-libjava:
39800@if target-libjava
39801maybe-html-target-libjava: html-target-libjava
39802
39803html-target-libjava: \
39804 configure-target-libjava
0aed8855 39805 @: $(MAKE); $(unstage)
6d389afc
MS
39806 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39807 r=`${PWD_COMMAND}`; export r; \
39808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
39809 $(RAW_CXX_TARGET_EXPORTS) \
39810 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
39811 for flag in $(EXTRA_TARGET_FLAGS); do \
39812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39813 done; \
39814 (cd $(TARGET_SUBDIR)/libjava && \
39815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39817 "RANLIB=$${RANLIB}" \
0c24b341 39818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39819 html) \
39820 || exit 1
39821
39822@endif target-libjava
39823
4fa63067
NN
39824.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
39825maybe-TAGS-target-libjava:
6bd3dfaa
PB
39826@if target-libjava
39827maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
39828
39829TAGS-target-libjava: \
39830 configure-target-libjava
0aed8855 39831 @: $(MAKE); $(unstage)
4fa63067
NN
39832 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39833 r=`${PWD_COMMAND}`; export r; \
b40e3958 39834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39835 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
39836 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
39837 for flag in $(EXTRA_TARGET_FLAGS); do \
39838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39839 done; \
39840 (cd $(TARGET_SUBDIR)/libjava && \
39841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39843 "RANLIB=$${RANLIB}" \
0c24b341 39844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39845 TAGS) \
4fa63067 39846 || exit 1
e393202e 39847
6bd3dfaa 39848@endif target-libjava
930314a4 39849
4fa63067
NN
39850.PHONY: maybe-install-info-target-libjava install-info-target-libjava
39851maybe-install-info-target-libjava:
6bd3dfaa
PB
39852@if target-libjava
39853maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 39854
4fa63067
NN
39855install-info-target-libjava: \
39856 configure-target-libjava \
39857 info-target-libjava
0aed8855 39858 @: $(MAKE); $(unstage)
4fa63067
NN
39859 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39860 r=`${PWD_COMMAND}`; export r; \
b40e3958 39861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39862 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
39863 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
39864 for flag in $(EXTRA_TARGET_FLAGS); do \
39865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39866 done; \
39867 (cd $(TARGET_SUBDIR)/libjava && \
39868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39870 "RANLIB=$${RANLIB}" \
0c24b341 39871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39872 install-info) \
4fa63067 39873 || exit 1
e393202e 39874
6bd3dfaa 39875@endif target-libjava
e393202e 39876
a3ca38d2
DD
39877.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
39878maybe-install-pdf-target-libjava:
39879@if target-libjava
39880maybe-install-pdf-target-libjava: install-pdf-target-libjava
39881
39882install-pdf-target-libjava: \
39883 configure-target-libjava \
39884 pdf-target-libjava
39885 @: $(MAKE); $(unstage)
39886 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39887 r=`${PWD_COMMAND}`; export r; \
39888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39889 $(RAW_CXX_TARGET_EXPORTS) \
39890 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava" ; \
39891 for flag in $(EXTRA_TARGET_FLAGS); do \
39892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39893 done; \
39894 (cd $(TARGET_SUBDIR)/libjava && \
39895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39897 "RANLIB=$${RANLIB}" \
0c24b341 39898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39899 install-pdf) \
39900 || exit 1
39901
39902@endif target-libjava
39903
108a6f8e
CD
39904.PHONY: maybe-install-html-target-libjava install-html-target-libjava
39905maybe-install-html-target-libjava:
39906@if target-libjava
39907maybe-install-html-target-libjava: install-html-target-libjava
39908
39909install-html-target-libjava: \
39910 configure-target-libjava \
39911 html-target-libjava
39912 @: $(MAKE); $(unstage)
39913 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39914 r=`${PWD_COMMAND}`; export r; \
39915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39916 $(RAW_CXX_TARGET_EXPORTS) \
39917 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
39918 for flag in $(EXTRA_TARGET_FLAGS); do \
39919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39920 done; \
39921 (cd $(TARGET_SUBDIR)/libjava && \
39922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39924 "RANLIB=$${RANLIB}" \
0c24b341 39925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39926 install-html) \
39927 || exit 1
39928
39929@endif target-libjava
39930
4fa63067
NN
39931.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
39932maybe-installcheck-target-libjava:
6bd3dfaa
PB
39933@if target-libjava
39934maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 39935
4fa63067
NN
39936installcheck-target-libjava: \
39937 configure-target-libjava
0aed8855 39938 @: $(MAKE); $(unstage)
4fa63067
NN
39939 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39940 r=`${PWD_COMMAND}`; export r; \
39941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39942 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
39943 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
39944 for flag in $(EXTRA_TARGET_FLAGS); do \
39945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39946 done; \
39947 (cd $(TARGET_SUBDIR)/libjava && \
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 installcheck) \
4fa63067 39953 || exit 1
15723a45 39954
6bd3dfaa 39955@endif target-libjava
4fa63067
NN
39956
39957.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
39958maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
39959@if target-libjava
39960maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
39961
39962mostlyclean-target-libjava:
0aed8855 39963 @: $(MAKE); $(unstage)
4fa63067
NN
39964 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39965 r=`${PWD_COMMAND}`; export r; \
39966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39967 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
39968 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
39969 for flag in $(EXTRA_TARGET_FLAGS); do \
39970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39971 done; \
39972 (cd $(TARGET_SUBDIR)/libjava && \
39973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39975 "RANLIB=$${RANLIB}" \
0c24b341 39976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39977 mostlyclean) \
4fa63067
NN
39978 || exit 1
39979
6bd3dfaa 39980@endif target-libjava
4fa63067
NN
39981
39982.PHONY: maybe-clean-target-libjava clean-target-libjava
39983maybe-clean-target-libjava:
6bd3dfaa
PB
39984@if target-libjava
39985maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
39986
39987clean-target-libjava:
0aed8855 39988 @: $(MAKE); $(unstage)
4fa63067 39989 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
39990 r=`${PWD_COMMAND}`; export r; \
39991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39992 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
39993 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
39994 for flag in $(EXTRA_TARGET_FLAGS); do \
39995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39996 done; \
39997 (cd $(TARGET_SUBDIR)/libjava && \
39998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40000 "RANLIB=$${RANLIB}" \
0c24b341 40001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40002 clean) \
bba45b8b 40003 || exit 1
e393202e 40004
6bd3dfaa 40005@endif target-libjava
e393202e 40006
4fa63067
NN
40007.PHONY: maybe-distclean-target-libjava distclean-target-libjava
40008maybe-distclean-target-libjava:
6bd3dfaa
PB
40009@if target-libjava
40010maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 40011
4fa63067 40012distclean-target-libjava:
0aed8855 40013 @: $(MAKE); $(unstage)
4fa63067
NN
40014 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
40015 r=`${PWD_COMMAND}`; export r; \
40016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40017 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
40018 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
40019 for flag in $(EXTRA_TARGET_FLAGS); do \
40020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40021 done; \
40022 (cd $(TARGET_SUBDIR)/libjava && \
40023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40025 "RANLIB=$${RANLIB}" \
0c24b341 40026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40027 distclean) \
4fa63067 40028 || exit 1
3866be5d 40029
6bd3dfaa 40030@endif target-libjava
930314a4 40031
4fa63067
NN
40032.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
40033maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
40034@if target-libjava
40035maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 40036
4fa63067 40037maintainer-clean-target-libjava:
0aed8855 40038 @: $(MAKE); $(unstage)
4fa63067
NN
40039 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
40040 r=`${PWD_COMMAND}`; export r; \
b40e3958 40041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40042 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
40043 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
40044 for flag in $(EXTRA_TARGET_FLAGS); do \
40045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40046 done; \
40047 (cd $(TARGET_SUBDIR)/libjava && \
40048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40050 "RANLIB=$${RANLIB}" \
0c24b341 40051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40052 maintainer-clean) \
4fa63067 40053 || exit 1
e393202e 40054
6bd3dfaa 40055@endif target-libjava
e393202e 40056
4fa63067 40057
15723a45 40058
a7254363 40059
e90269c8 40060
a7254363
PB
40061.PHONY: configure-target-zlib maybe-configure-target-zlib
40062maybe-configure-target-zlib:
4f0ef2d8
CD
40063@if gcc-bootstrap
40064configure-target-zlib: stage_current
40065@endif gcc-bootstrap
a7254363
PB
40066@if target-zlib
40067maybe-configure-target-zlib: configure-target-zlib
c52c6897 40068configure-target-zlib:
0aed8855
PB
40069 @: $(MAKE); $(unstage)
40070 @r=`${PWD_COMMAND}`; export r; \
40071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40072 echo "Checking multilib configuration for zlib..."; \
40073 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
40074 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
40075 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
40076 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
40077 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
40078 else \
40079 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
40080 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
40081 fi; \
40082 else \
40083 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
40084 fi; \
40085 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
4fa63067 40086 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
1f53ca9a 40087 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40088 echo Configuring in $(TARGET_SUBDIR)/zlib; \
40089 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 40090 case $(srcdir) in \
b00612cc
PB
40091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40092 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
40093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 40094 esac; \
b00612cc
PB
40095 srcdiroption="--srcdir=$${topdir}/zlib"; \
40096 libsrcdir="$$s/zlib"; \
bba45b8b
NN
40097 rm -f no-such-file || : ; \
40098 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
40099 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40100 --target=${target_alias} $${srcdiroption} \
bba45b8b 40101 || exit 1
6bd3dfaa 40102@endif target-zlib
e393202e 40103
a7254363
PB
40104
40105
d545f33b
PB
40106
40107
4fa63067
NN
40108.PHONY: all-target-zlib maybe-all-target-zlib
40109maybe-all-target-zlib:
4f0ef2d8
CD
40110@if gcc-bootstrap
40111all-target-zlib: stage_current
40112@endif gcc-bootstrap
6bd3dfaa 40113@if target-zlib
72b2455a 40114TARGET-target-zlib=all
6bd3dfaa 40115maybe-all-target-zlib: all-target-zlib
4fa63067 40116all-target-zlib: configure-target-zlib
0aed8855 40117 @: $(MAKE); $(unstage)
b40e3958
L
40118 @r=`${PWD_COMMAND}`; export r; \
40119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40120 $(NORMAL_TARGET_EXPORTS) \
4fa63067 40121 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 40122 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 40123 $(TARGET-target-zlib))
6bd3dfaa 40124@endif target-zlib
e393202e 40125
a7254363
PB
40126
40127
d545f33b
PB
40128
40129
4fa63067
NN
40130.PHONY: check-target-zlib maybe-check-target-zlib
40131maybe-check-target-zlib:
6bd3dfaa
PB
40132@if target-zlib
40133maybe-check-target-zlib: check-target-zlib
16ae0395 40134
4fa63067 40135check-target-zlib:
0aed8855 40136 @: $(MAKE); $(unstage)
b40e3958
L
40137 @r=`${PWD_COMMAND}`; export r; \
40138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40139 $(NORMAL_TARGET_EXPORTS) \
4fa63067 40140 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 40141 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 40142
6bd3dfaa 40143@endif target-zlib
930314a4 40144
4fa63067
NN
40145.PHONY: install-target-zlib maybe-install-target-zlib
40146maybe-install-target-zlib:
6bd3dfaa
PB
40147@if target-zlib
40148maybe-install-target-zlib: install-target-zlib
16ae0395 40149
4fa63067 40150install-target-zlib: installdirs
0aed8855 40151 @: $(MAKE); $(unstage)
b40e3958
L
40152 @r=`${PWD_COMMAND}`; export r; \
40153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40154 $(NORMAL_TARGET_EXPORTS) \
4fa63067 40155 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 40156 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 40157
6bd3dfaa 40158@endif target-zlib
e393202e 40159
9b980aa1
RW
40160.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
40161maybe-install-strip-target-zlib:
40162@if target-zlib
40163maybe-install-strip-target-zlib: install-strip-target-zlib
40164
40165install-strip-target-zlib: installdirs
40166 @: $(MAKE); $(unstage)
40167 @r=`${PWD_COMMAND}`; export r; \
40168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40169 $(NORMAL_TARGET_EXPORTS) \
40170 (cd $(TARGET_SUBDIR)/zlib && \
40171 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40172
40173@endif target-zlib
40174
56a8fe78 40175# Other targets (info, dvi, pdf, etc.)
15723a45 40176
4fa63067
NN
40177.PHONY: maybe-info-target-zlib info-target-zlib
40178maybe-info-target-zlib:
6bd3dfaa
PB
40179@if target-zlib
40180maybe-info-target-zlib: info-target-zlib
15723a45 40181
4fa63067
NN
40182info-target-zlib: \
40183 configure-target-zlib
0aed8855 40184 @: $(MAKE); $(unstage)
4fa63067 40185 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
40186 r=`${PWD_COMMAND}`; export r; \
40187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40188 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40189 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
40190 for flag in $(EXTRA_TARGET_FLAGS); do \
40191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40192 done; \
40193 (cd $(TARGET_SUBDIR)/zlib && \
40194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40196 "RANLIB=$${RANLIB}" \
0c24b341 40197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40198 info) \
bba45b8b 40199 || exit 1
e393202e 40200
6bd3dfaa 40201@endif target-zlib
e393202e 40202
4fa63067
NN
40203.PHONY: maybe-dvi-target-zlib dvi-target-zlib
40204maybe-dvi-target-zlib:
6bd3dfaa
PB
40205@if target-zlib
40206maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 40207
4fa63067
NN
40208dvi-target-zlib: \
40209 configure-target-zlib
0aed8855 40210 @: $(MAKE); $(unstage)
4fa63067
NN
40211 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40212 r=`${PWD_COMMAND}`; export r; \
b40e3958 40213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40214 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40215 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
40216 for flag in $(EXTRA_TARGET_FLAGS); do \
40217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40218 done; \
40219 (cd $(TARGET_SUBDIR)/zlib && \
40220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40222 "RANLIB=$${RANLIB}" \
0c24b341 40223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40224 dvi) \
4fa63067 40225 || exit 1
e393202e 40226
6bd3dfaa 40227@endif target-zlib
930314a4 40228
56a8fe78
DD
40229.PHONY: maybe-pdf-target-zlib pdf-target-zlib
40230maybe-pdf-target-zlib:
40231@if target-zlib
40232maybe-pdf-target-zlib: pdf-target-zlib
40233
40234pdf-target-zlib: \
40235 configure-target-zlib
40236 @: $(MAKE); $(unstage)
40237 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40238 r=`${PWD_COMMAND}`; export r; \
40239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40240 $(NORMAL_TARGET_EXPORTS) \
40241 echo "Doing pdf in $(TARGET_SUBDIR)/zlib" ; \
40242 for flag in $(EXTRA_TARGET_FLAGS); do \
40243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40244 done; \
40245 (cd $(TARGET_SUBDIR)/zlib && \
40246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40248 "RANLIB=$${RANLIB}" \
0c24b341 40249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40250 pdf) \
40251 || exit 1
40252
40253@endif target-zlib
40254
6d389afc
MS
40255.PHONY: maybe-html-target-zlib html-target-zlib
40256maybe-html-target-zlib:
40257@if target-zlib
40258maybe-html-target-zlib: html-target-zlib
40259
40260html-target-zlib: \
40261 configure-target-zlib
0aed8855 40262 @: $(MAKE); $(unstage)
6d389afc
MS
40263 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40264 r=`${PWD_COMMAND}`; export r; \
40265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
40266 $(NORMAL_TARGET_EXPORTS) \
40267 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
40268 for flag in $(EXTRA_TARGET_FLAGS); do \
40269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40270 done; \
40271 (cd $(TARGET_SUBDIR)/zlib && \
40272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40274 "RANLIB=$${RANLIB}" \
0c24b341 40275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40276 html) \
40277 || exit 1
40278
40279@endif target-zlib
40280
4fa63067
NN
40281.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
40282maybe-TAGS-target-zlib:
6bd3dfaa
PB
40283@if target-zlib
40284maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 40285
4fa63067
NN
40286TAGS-target-zlib: \
40287 configure-target-zlib
0aed8855 40288 @: $(MAKE); $(unstage)
4fa63067
NN
40289 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40290 r=`${PWD_COMMAND}`; export r; \
b40e3958 40291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40292 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40293 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
40294 for flag in $(EXTRA_TARGET_FLAGS); do \
40295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40296 done; \
40297 (cd $(TARGET_SUBDIR)/zlib && \
40298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40300 "RANLIB=$${RANLIB}" \
0c24b341 40301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40302 TAGS) \
4fa63067 40303 || exit 1
e393202e 40304
6bd3dfaa 40305@endif target-zlib
15723a45 40306
4fa63067
NN
40307.PHONY: maybe-install-info-target-zlib install-info-target-zlib
40308maybe-install-info-target-zlib:
6bd3dfaa
PB
40309@if target-zlib
40310maybe-install-info-target-zlib: install-info-target-zlib
15723a45 40311
4fa63067
NN
40312install-info-target-zlib: \
40313 configure-target-zlib \
40314 info-target-zlib
0aed8855 40315 @: $(MAKE); $(unstage)
4fa63067 40316 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
40317 r=`${PWD_COMMAND}`; export r; \
40318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40319 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40320 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
40321 for flag in $(EXTRA_TARGET_FLAGS); do \
40322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40323 done; \
40324 (cd $(TARGET_SUBDIR)/zlib && \
40325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40327 "RANLIB=$${RANLIB}" \
0c24b341 40328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40329 install-info) \
bba45b8b 40330 || exit 1
e393202e 40331
6bd3dfaa 40332@endif target-zlib
16ae0395 40333
a3ca38d2
DD
40334.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
40335maybe-install-pdf-target-zlib:
40336@if target-zlib
40337maybe-install-pdf-target-zlib: install-pdf-target-zlib
40338
40339install-pdf-target-zlib: \
40340 configure-target-zlib \
40341 pdf-target-zlib
40342 @: $(MAKE); $(unstage)
40343 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40344 r=`${PWD_COMMAND}`; export r; \
40345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40346 $(NORMAL_TARGET_EXPORTS) \
40347 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib" ; \
40348 for flag in $(EXTRA_TARGET_FLAGS); do \
40349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40350 done; \
40351 (cd $(TARGET_SUBDIR)/zlib && \
40352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40354 "RANLIB=$${RANLIB}" \
0c24b341 40355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40356 install-pdf) \
40357 || exit 1
40358
40359@endif target-zlib
40360
108a6f8e
CD
40361.PHONY: maybe-install-html-target-zlib install-html-target-zlib
40362maybe-install-html-target-zlib:
40363@if target-zlib
40364maybe-install-html-target-zlib: install-html-target-zlib
40365
40366install-html-target-zlib: \
40367 configure-target-zlib \
40368 html-target-zlib
40369 @: $(MAKE); $(unstage)
40370 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40371 r=`${PWD_COMMAND}`; export r; \
40372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40373 $(NORMAL_TARGET_EXPORTS) \
40374 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
40375 for flag in $(EXTRA_TARGET_FLAGS); do \
40376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40377 done; \
40378 (cd $(TARGET_SUBDIR)/zlib && \
40379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40381 "RANLIB=$${RANLIB}" \
0c24b341 40382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40383 install-html) \
40384 || exit 1
40385
40386@endif target-zlib
40387
4fa63067
NN
40388.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
40389maybe-installcheck-target-zlib:
6bd3dfaa
PB
40390@if target-zlib
40391maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 40392
4fa63067
NN
40393installcheck-target-zlib: \
40394 configure-target-zlib
0aed8855 40395 @: $(MAKE); $(unstage)
4fa63067
NN
40396 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40397 r=`${PWD_COMMAND}`; export r; \
40398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40399 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40400 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
40401 for flag in $(EXTRA_TARGET_FLAGS); do \
40402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40403 done; \
40404 (cd $(TARGET_SUBDIR)/zlib && \
40405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40407 "RANLIB=$${RANLIB}" \
0c24b341 40408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40409 installcheck) \
4fa63067 40410 || exit 1
e393202e 40411
6bd3dfaa 40412@endif target-zlib
16ae0395 40413
4fa63067
NN
40414.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
40415maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
40416@if target-zlib
40417maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 40418
4fa63067 40419mostlyclean-target-zlib:
0aed8855 40420 @: $(MAKE); $(unstage)
4fa63067
NN
40421 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40422 r=`${PWD_COMMAND}`; export r; \
40423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40424 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40425 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
40426 for flag in $(EXTRA_TARGET_FLAGS); do \
40427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40428 done; \
40429 (cd $(TARGET_SUBDIR)/zlib && \
40430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40432 "RANLIB=$${RANLIB}" \
0c24b341 40433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40434 mostlyclean) \
4fa63067 40435 || exit 1
e393202e 40436
6bd3dfaa 40437@endif target-zlib
15723a45 40438
4fa63067
NN
40439.PHONY: maybe-clean-target-zlib clean-target-zlib
40440maybe-clean-target-zlib:
6bd3dfaa
PB
40441@if target-zlib
40442maybe-clean-target-zlib: clean-target-zlib
15723a45 40443
4fa63067 40444clean-target-zlib:
0aed8855 40445 @: $(MAKE); $(unstage)
4fa63067 40446 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
40447 r=`${PWD_COMMAND}`; export r; \
40448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40449 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40450 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
40451 for flag in $(EXTRA_TARGET_FLAGS); do \
40452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40453 done; \
40454 (cd $(TARGET_SUBDIR)/zlib && \
40455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40457 "RANLIB=$${RANLIB}" \
0c24b341 40458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40459 clean) \
bba45b8b 40460 || exit 1
e393202e 40461
6bd3dfaa 40462@endif target-zlib
e393202e 40463
4fa63067
NN
40464.PHONY: maybe-distclean-target-zlib distclean-target-zlib
40465maybe-distclean-target-zlib:
6bd3dfaa
PB
40466@if target-zlib
40467maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 40468
4fa63067 40469distclean-target-zlib:
0aed8855 40470 @: $(MAKE); $(unstage)
4fa63067
NN
40471 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40472 r=`${PWD_COMMAND}`; export r; \
b40e3958 40473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40474 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40475 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
40476 for flag in $(EXTRA_TARGET_FLAGS); do \
40477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40478 done; \
40479 (cd $(TARGET_SUBDIR)/zlib && \
40480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40482 "RANLIB=$${RANLIB}" \
0c24b341 40483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40484 distclean) \
4fa63067 40485 || exit 1
e393202e 40486
6bd3dfaa 40487@endif target-zlib
e393202e 40488
4fa63067
NN
40489.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
40490maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
40491@if target-zlib
40492maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 40493
4fa63067 40494maintainer-clean-target-zlib:
0aed8855 40495 @: $(MAKE); $(unstage)
4fa63067
NN
40496 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
40497 r=`${PWD_COMMAND}`; export r; \
b40e3958 40498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40499 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40500 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
40501 for flag in $(EXTRA_TARGET_FLAGS); do \
40502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40503 done; \
40504 (cd $(TARGET_SUBDIR)/zlib && \
40505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40507 "RANLIB=$${RANLIB}" \
0c24b341 40508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40509 maintainer-clean) \
4fa63067 40510 || exit 1
e393202e 40511
6bd3dfaa 40512@endif target-zlib
930314a4 40513
4fa63067 40514
15723a45 40515
a7254363 40516
e90269c8 40517
a7254363
PB
40518.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
40519maybe-configure-target-boehm-gc:
4f0ef2d8
CD
40520@if gcc-bootstrap
40521configure-target-boehm-gc: stage_current
40522@endif gcc-bootstrap
a7254363
PB
40523@if target-boehm-gc
40524maybe-configure-target-boehm-gc: configure-target-boehm-gc
c52c6897 40525configure-target-boehm-gc:
0aed8855
PB
40526 @: $(MAKE); $(unstage)
40527 @r=`${PWD_COMMAND}`; export r; \
40528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40529 echo "Checking multilib configuration for boehm-gc..."; \
40530 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
40531 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
40532 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
40533 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
40534 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
40535 else \
40536 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
40537 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
40538 fi; \
40539 else \
40540 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
c52c6897
PB
40541 fi; \
40542 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
4fa63067 40543 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
1f53ca9a 40544 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40545 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
40546 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b 40547 case $(srcdir) in \
b00612cc
PB
40548 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40549 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
40550 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 40551 esac; \
b00612cc
PB
40552 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
40553 libsrcdir="$$s/boehm-gc"; \
bba45b8b
NN
40554 rm -f no-such-file || : ; \
40555 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
40556 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40557 --target=${target_alias} $${srcdiroption} \
bba45b8b 40558 || exit 1
6bd3dfaa 40559@endif target-boehm-gc
e393202e 40560
a7254363
PB
40561
40562
d545f33b
PB
40563
40564
4fa63067
NN
40565.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
40566maybe-all-target-boehm-gc:
4f0ef2d8
CD
40567@if gcc-bootstrap
40568all-target-boehm-gc: stage_current
40569@endif gcc-bootstrap
6bd3dfaa 40570@if target-boehm-gc
72b2455a 40571TARGET-target-boehm-gc=all
6bd3dfaa 40572maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 40573all-target-boehm-gc: configure-target-boehm-gc
0aed8855 40574 @: $(MAKE); $(unstage)
b40e3958
L
40575 @r=`${PWD_COMMAND}`; export r; \
40576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40577 $(NORMAL_TARGET_EXPORTS) \
4fa63067 40578 (cd $(TARGET_SUBDIR)/boehm-gc && \
b3676d82 40579 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 40580 $(TARGET-target-boehm-gc))
6bd3dfaa 40581@endif target-boehm-gc
e393202e 40582
a7254363
PB
40583
40584
d545f33b
PB
40585
40586
4fa63067
NN
40587.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
40588maybe-check-target-boehm-gc:
6bd3dfaa
PB
40589@if target-boehm-gc
40590maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 40591
4fa63067 40592check-target-boehm-gc:
0aed8855 40593 @: $(MAKE); $(unstage)
b40e3958
L
40594 @r=`${PWD_COMMAND}`; export r; \
40595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40596 $(NORMAL_TARGET_EXPORTS) \
4fa63067 40597 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 40598 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 40599
6bd3dfaa 40600@endif target-boehm-gc
930314a4 40601
4fa63067
NN
40602.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
40603maybe-install-target-boehm-gc:
6bd3dfaa
PB
40604@if target-boehm-gc
40605maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 40606
4fa63067 40607install-target-boehm-gc: installdirs
0aed8855 40608 @: $(MAKE); $(unstage)
b40e3958
L
40609 @r=`${PWD_COMMAND}`; export r; \
40610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40611 $(NORMAL_TARGET_EXPORTS) \
4fa63067 40612 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 40613 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 40614
6bd3dfaa 40615@endif target-boehm-gc
e393202e 40616
9b980aa1
RW
40617.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
40618maybe-install-strip-target-boehm-gc:
40619@if target-boehm-gc
40620maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
40621
40622install-strip-target-boehm-gc: installdirs
40623 @: $(MAKE); $(unstage)
40624 @r=`${PWD_COMMAND}`; export r; \
40625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40626 $(NORMAL_TARGET_EXPORTS) \
40627 (cd $(TARGET_SUBDIR)/boehm-gc && \
40628 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40629
40630@endif target-boehm-gc
40631
56a8fe78 40632# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
40633
40634.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
40635maybe-info-target-boehm-gc:
6bd3dfaa
PB
40636@if target-boehm-gc
40637maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
40638
40639info-target-boehm-gc: \
40640 configure-target-boehm-gc
0aed8855 40641 @: $(MAKE); $(unstage)
4fa63067
NN
40642 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40643 r=`${PWD_COMMAND}`; export r; \
40644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40645 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40646 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
40647 for flag in $(EXTRA_TARGET_FLAGS); do \
40648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40649 done; \
40650 (cd $(TARGET_SUBDIR)/boehm-gc && \
40651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40653 "RANLIB=$${RANLIB}" \
0c24b341 40654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40655 info) \
4fa63067
NN
40656 || exit 1
40657
6bd3dfaa 40658@endif target-boehm-gc
4fa63067
NN
40659
40660.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
40661maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
40662@if target-boehm-gc
40663maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
40664
40665dvi-target-boehm-gc: \
40666 configure-target-boehm-gc
0aed8855 40667 @: $(MAKE); $(unstage)
4fa63067
NN
40668 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40669 r=`${PWD_COMMAND}`; export r; \
40670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40671 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40672 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
40673 for flag in $(EXTRA_TARGET_FLAGS); do \
40674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40675 done; \
40676 (cd $(TARGET_SUBDIR)/boehm-gc && \
40677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40679 "RANLIB=$${RANLIB}" \
0c24b341 40680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40681 dvi) \
4fa63067
NN
40682 || exit 1
40683
6bd3dfaa 40684@endif target-boehm-gc
4fa63067 40685
56a8fe78
DD
40686.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
40687maybe-pdf-target-boehm-gc:
40688@if target-boehm-gc
40689maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
40690
40691pdf-target-boehm-gc: \
40692 configure-target-boehm-gc
40693 @: $(MAKE); $(unstage)
40694 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40695 r=`${PWD_COMMAND}`; export r; \
40696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40697 $(NORMAL_TARGET_EXPORTS) \
40698 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
40699 for flag in $(EXTRA_TARGET_FLAGS); do \
40700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40701 done; \
40702 (cd $(TARGET_SUBDIR)/boehm-gc && \
40703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40705 "RANLIB=$${RANLIB}" \
0c24b341 40706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40707 pdf) \
40708 || exit 1
40709
40710@endif target-boehm-gc
40711
6d389afc
MS
40712.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
40713maybe-html-target-boehm-gc:
40714@if target-boehm-gc
40715maybe-html-target-boehm-gc: html-target-boehm-gc
40716
40717html-target-boehm-gc: \
40718 configure-target-boehm-gc
0aed8855 40719 @: $(MAKE); $(unstage)
6d389afc
MS
40720 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40721 r=`${PWD_COMMAND}`; export r; \
40722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
40723 $(NORMAL_TARGET_EXPORTS) \
40724 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
40725 for flag in $(EXTRA_TARGET_FLAGS); do \
40726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40727 done; \
40728 (cd $(TARGET_SUBDIR)/boehm-gc && \
40729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40731 "RANLIB=$${RANLIB}" \
0c24b341 40732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40733 html) \
40734 || exit 1
40735
40736@endif target-boehm-gc
40737
4fa63067
NN
40738.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
40739maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
40740@if target-boehm-gc
40741maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
40742
40743TAGS-target-boehm-gc: \
40744 configure-target-boehm-gc
0aed8855 40745 @: $(MAKE); $(unstage)
4fa63067
NN
40746 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40747 r=`${PWD_COMMAND}`; export r; \
40748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40749 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40750 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
40751 for flag in $(EXTRA_TARGET_FLAGS); do \
40752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40753 done; \
40754 (cd $(TARGET_SUBDIR)/boehm-gc && \
40755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40757 "RANLIB=$${RANLIB}" \
0c24b341 40758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40759 TAGS) \
4fa63067
NN
40760 || exit 1
40761
6bd3dfaa 40762@endif target-boehm-gc
4fa63067
NN
40763
40764.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
40765maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
40766@if target-boehm-gc
40767maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
40768
40769install-info-target-boehm-gc: \
40770 configure-target-boehm-gc \
40771 info-target-boehm-gc
0aed8855 40772 @: $(MAKE); $(unstage)
4fa63067
NN
40773 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40774 r=`${PWD_COMMAND}`; export r; \
40775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40776 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40777 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
40778 for flag in $(EXTRA_TARGET_FLAGS); do \
40779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40780 done; \
40781 (cd $(TARGET_SUBDIR)/boehm-gc && \
40782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40784 "RANLIB=$${RANLIB}" \
0c24b341 40785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40786 install-info) \
4fa63067
NN
40787 || exit 1
40788
6bd3dfaa 40789@endif target-boehm-gc
4fa63067 40790
a3ca38d2
DD
40791.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
40792maybe-install-pdf-target-boehm-gc:
40793@if target-boehm-gc
40794maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
40795
40796install-pdf-target-boehm-gc: \
40797 configure-target-boehm-gc \
40798 pdf-target-boehm-gc
40799 @: $(MAKE); $(unstage)
40800 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40801 r=`${PWD_COMMAND}`; export r; \
40802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40803 $(NORMAL_TARGET_EXPORTS) \
40804 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
40805 for flag in $(EXTRA_TARGET_FLAGS); do \
40806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40807 done; \
40808 (cd $(TARGET_SUBDIR)/boehm-gc && \
40809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40811 "RANLIB=$${RANLIB}" \
0c24b341 40812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40813 install-pdf) \
40814 || exit 1
40815
40816@endif target-boehm-gc
40817
108a6f8e
CD
40818.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
40819maybe-install-html-target-boehm-gc:
40820@if target-boehm-gc
40821maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
40822
40823install-html-target-boehm-gc: \
40824 configure-target-boehm-gc \
40825 html-target-boehm-gc
40826 @: $(MAKE); $(unstage)
40827 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40828 r=`${PWD_COMMAND}`; export r; \
40829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40830 $(NORMAL_TARGET_EXPORTS) \
40831 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
40832 for flag in $(EXTRA_TARGET_FLAGS); do \
40833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40834 done; \
40835 (cd $(TARGET_SUBDIR)/boehm-gc && \
40836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40838 "RANLIB=$${RANLIB}" \
0c24b341 40839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40840 install-html) \
40841 || exit 1
40842
40843@endif target-boehm-gc
40844
4fa63067
NN
40845.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
40846maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
40847@if target-boehm-gc
40848maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
40849
40850installcheck-target-boehm-gc: \
40851 configure-target-boehm-gc
0aed8855 40852 @: $(MAKE); $(unstage)
4fa63067
NN
40853 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40854 r=`${PWD_COMMAND}`; export r; \
40855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40856 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40857 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
40858 for flag in $(EXTRA_TARGET_FLAGS); do \
40859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40860 done; \
40861 (cd $(TARGET_SUBDIR)/boehm-gc && \
40862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40864 "RANLIB=$${RANLIB}" \
0c24b341 40865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40866 installcheck) \
4fa63067
NN
40867 || exit 1
40868
6bd3dfaa 40869@endif target-boehm-gc
4fa63067
NN
40870
40871.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
40872maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
40873@if target-boehm-gc
40874maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
40875
40876mostlyclean-target-boehm-gc:
0aed8855 40877 @: $(MAKE); $(unstage)
4fa63067
NN
40878 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40879 r=`${PWD_COMMAND}`; export r; \
40880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40881 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40882 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
40883 for flag in $(EXTRA_TARGET_FLAGS); do \
40884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40885 done; \
40886 (cd $(TARGET_SUBDIR)/boehm-gc && \
40887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40889 "RANLIB=$${RANLIB}" \
0c24b341 40890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40891 mostlyclean) \
4fa63067
NN
40892 || exit 1
40893
6bd3dfaa 40894@endif target-boehm-gc
4fa63067
NN
40895
40896.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
40897maybe-clean-target-boehm-gc:
6bd3dfaa
PB
40898@if target-boehm-gc
40899maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
40900
40901clean-target-boehm-gc:
0aed8855 40902 @: $(MAKE); $(unstage)
4fa63067
NN
40903 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40904 r=`${PWD_COMMAND}`; export r; \
40905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40906 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40907 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
40908 for flag in $(EXTRA_TARGET_FLAGS); do \
40909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40910 done; \
40911 (cd $(TARGET_SUBDIR)/boehm-gc && \
40912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40914 "RANLIB=$${RANLIB}" \
0c24b341 40915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40916 clean) \
4fa63067
NN
40917 || exit 1
40918
6bd3dfaa 40919@endif target-boehm-gc
4fa63067
NN
40920
40921.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
40922maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
40923@if target-boehm-gc
40924maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
40925
40926distclean-target-boehm-gc:
0aed8855 40927 @: $(MAKE); $(unstage)
4fa63067
NN
40928 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40929 r=`${PWD_COMMAND}`; export r; \
40930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40931 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40932 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
40933 for flag in $(EXTRA_TARGET_FLAGS); do \
40934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40935 done; \
40936 (cd $(TARGET_SUBDIR)/boehm-gc && \
40937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40939 "RANLIB=$${RANLIB}" \
0c24b341 40940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40941 distclean) \
4fa63067
NN
40942 || exit 1
40943
6bd3dfaa 40944@endif target-boehm-gc
4fa63067
NN
40945
40946.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
40947maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
40948@if target-boehm-gc
40949maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
40950
40951maintainer-clean-target-boehm-gc:
0aed8855 40952 @: $(MAKE); $(unstage)
4fa63067
NN
40953 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40954 r=`${PWD_COMMAND}`; export r; \
40955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40956 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
40957 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
40958 for flag in $(EXTRA_TARGET_FLAGS); do \
40959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40960 done; \
40961 (cd $(TARGET_SUBDIR)/boehm-gc && \
40962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40964 "RANLIB=$${RANLIB}" \
0c24b341 40965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40966 maintainer-clean) \
4fa63067
NN
40967 || exit 1
40968
6bd3dfaa 40969@endif target-boehm-gc
4fa63067
NN
40970
40971
15723a45 40972
15723a45 40973
a7254363 40974
a7254363
PB
40975.PHONY: configure-target-rda maybe-configure-target-rda
40976maybe-configure-target-rda:
4f0ef2d8
CD
40977@if gcc-bootstrap
40978configure-target-rda: stage_current
40979@endif gcc-bootstrap
a7254363
PB
40980@if target-rda
40981maybe-configure-target-rda: configure-target-rda
c52c6897 40982configure-target-rda:
0aed8855
PB
40983 @: $(MAKE); $(unstage)
40984 @r=`${PWD_COMMAND}`; export r; \
40985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40986 echo "Checking multilib configuration for rda..."; \
40987 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
40988 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
40989 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
40990 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
40991 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
40992 else \
40993 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
40994 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
40995 fi; \
40996 else \
40997 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
40998 fi; \
40999 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
4fa63067 41000 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
1f53ca9a 41001 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41002 echo Configuring in $(TARGET_SUBDIR)/rda; \
41003 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 41004 case $(srcdir) in \
b00612cc
PB
41005 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41006 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
41007 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 41008 esac; \
b00612cc
PB
41009 srcdiroption="--srcdir=$${topdir}/rda"; \
41010 libsrcdir="$$s/rda"; \
bba45b8b
NN
41011 rm -f no-such-file || : ; \
41012 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
41013 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
41014 --target=${target_alias} $${srcdiroption} \
bba45b8b 41015 || exit 1
6bd3dfaa 41016@endif target-rda
49b7683b 41017
a7254363
PB
41018
41019
d545f33b
PB
41020
41021
4fa63067
NN
41022.PHONY: all-target-rda maybe-all-target-rda
41023maybe-all-target-rda:
4f0ef2d8
CD
41024@if gcc-bootstrap
41025all-target-rda: stage_current
41026@endif gcc-bootstrap
6bd3dfaa 41027@if target-rda
72b2455a 41028TARGET-target-rda=all
6bd3dfaa 41029maybe-all-target-rda: all-target-rda
4fa63067 41030all-target-rda: configure-target-rda
0aed8855 41031 @: $(MAKE); $(unstage)
b40e3958
L
41032 @r=`${PWD_COMMAND}`; export r; \
41033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41034 $(NORMAL_TARGET_EXPORTS) \
4fa63067 41035 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 41036 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 41037 $(TARGET-target-rda))
6bd3dfaa 41038@endif target-rda
252b5132 41039
a7254363
PB
41040
41041
d545f33b
PB
41042
41043
4fa63067
NN
41044.PHONY: check-target-rda maybe-check-target-rda
41045maybe-check-target-rda:
6bd3dfaa
PB
41046@if target-rda
41047maybe-check-target-rda: check-target-rda
16ae0395 41048
4fa63067 41049check-target-rda:
0aed8855 41050 @: $(MAKE); $(unstage)
b40e3958
L
41051 @r=`${PWD_COMMAND}`; export r; \
41052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41053 $(NORMAL_TARGET_EXPORTS) \
4fa63067 41054 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 41055 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 41056
6bd3dfaa 41057@endif target-rda
930314a4 41058
4fa63067
NN
41059.PHONY: install-target-rda maybe-install-target-rda
41060maybe-install-target-rda:
6bd3dfaa
PB
41061@if target-rda
41062maybe-install-target-rda: install-target-rda
16ae0395 41063
4fa63067 41064install-target-rda: installdirs
0aed8855 41065 @: $(MAKE); $(unstage)
b40e3958
L
41066 @r=`${PWD_COMMAND}`; export r; \
41067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41068 $(NORMAL_TARGET_EXPORTS) \
4fa63067 41069 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 41070 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 41071
6bd3dfaa 41072@endif target-rda
e393202e 41073
9b980aa1
RW
41074.PHONY: install-strip-target-rda maybe-install-strip-target-rda
41075maybe-install-strip-target-rda:
41076@if target-rda
41077maybe-install-strip-target-rda: install-strip-target-rda
41078
41079install-strip-target-rda: installdirs
41080 @: $(MAKE); $(unstage)
41081 @r=`${PWD_COMMAND}`; export r; \
41082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41083 $(NORMAL_TARGET_EXPORTS) \
41084 (cd $(TARGET_SUBDIR)/rda && \
41085 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41086
41087@endif target-rda
41088
56a8fe78 41089# Other targets (info, dvi, pdf, etc.)
15723a45 41090
4fa63067
NN
41091.PHONY: maybe-info-target-rda info-target-rda
41092maybe-info-target-rda:
6bd3dfaa
PB
41093@if target-rda
41094maybe-info-target-rda: info-target-rda
15723a45 41095
4fa63067
NN
41096info-target-rda: \
41097 configure-target-rda
0aed8855 41098 @: $(MAKE); $(unstage)
4fa63067 41099 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
41100 r=`${PWD_COMMAND}`; export r; \
41101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41102 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41103 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
41104 for flag in $(EXTRA_TARGET_FLAGS); do \
41105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41106 done; \
41107 (cd $(TARGET_SUBDIR)/rda && \
41108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41110 "RANLIB=$${RANLIB}" \
0c24b341 41111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41112 info) \
bba45b8b 41113 || exit 1
252b5132 41114
6bd3dfaa 41115@endif target-rda
4fa63067
NN
41116
41117.PHONY: maybe-dvi-target-rda dvi-target-rda
41118maybe-dvi-target-rda:
6bd3dfaa
PB
41119@if target-rda
41120maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
41121
41122dvi-target-rda: \
41123 configure-target-rda
0aed8855 41124 @: $(MAKE); $(unstage)
4fa63067
NN
41125 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41126 r=`${PWD_COMMAND}`; export r; \
b40e3958 41127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41128 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41129 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
41130 for flag in $(EXTRA_TARGET_FLAGS); do \
41131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41132 done; \
41133 (cd $(TARGET_SUBDIR)/rda && \
41134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41136 "RANLIB=$${RANLIB}" \
0c24b341 41137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41138 dvi) \
4fa63067 41139 || exit 1
252b5132 41140
6bd3dfaa 41141@endif target-rda
16ae0395 41142
56a8fe78
DD
41143.PHONY: maybe-pdf-target-rda pdf-target-rda
41144maybe-pdf-target-rda:
41145@if target-rda
41146maybe-pdf-target-rda: pdf-target-rda
41147
41148pdf-target-rda: \
41149 configure-target-rda
41150 @: $(MAKE); $(unstage)
41151 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41152 r=`${PWD_COMMAND}`; export r; \
41153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41154 $(NORMAL_TARGET_EXPORTS) \
41155 echo "Doing pdf in $(TARGET_SUBDIR)/rda" ; \
41156 for flag in $(EXTRA_TARGET_FLAGS); do \
41157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41158 done; \
41159 (cd $(TARGET_SUBDIR)/rda && \
41160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41162 "RANLIB=$${RANLIB}" \
0c24b341 41163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41164 pdf) \
41165 || exit 1
41166
41167@endif target-rda
41168
6d389afc
MS
41169.PHONY: maybe-html-target-rda html-target-rda
41170maybe-html-target-rda:
41171@if target-rda
41172maybe-html-target-rda: html-target-rda
41173
41174html-target-rda: \
41175 configure-target-rda
0aed8855 41176 @: $(MAKE); $(unstage)
6d389afc
MS
41177 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41178 r=`${PWD_COMMAND}`; export r; \
41179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
41180 $(NORMAL_TARGET_EXPORTS) \
41181 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
41182 for flag in $(EXTRA_TARGET_FLAGS); do \
41183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41184 done; \
41185 (cd $(TARGET_SUBDIR)/rda && \
41186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41188 "RANLIB=$${RANLIB}" \
0c24b341 41189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41190 html) \
41191 || exit 1
41192
41193@endif target-rda
41194
4fa63067
NN
41195.PHONY: maybe-TAGS-target-rda TAGS-target-rda
41196maybe-TAGS-target-rda:
6bd3dfaa
PB
41197@if target-rda
41198maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
41199
41200TAGS-target-rda: \
41201 configure-target-rda
0aed8855 41202 @: $(MAKE); $(unstage)
4fa63067
NN
41203 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41204 r=`${PWD_COMMAND}`; export r; \
b40e3958 41205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41206 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41207 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
41208 for flag in $(EXTRA_TARGET_FLAGS); do \
41209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41210 done; \
41211 (cd $(TARGET_SUBDIR)/rda && \
41212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41214 "RANLIB=$${RANLIB}" \
0c24b341 41215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41216 TAGS) \
4fa63067 41217 || exit 1
e393202e 41218
6bd3dfaa 41219@endif target-rda
930314a4 41220
4fa63067
NN
41221.PHONY: maybe-install-info-target-rda install-info-target-rda
41222maybe-install-info-target-rda:
6bd3dfaa
PB
41223@if target-rda
41224maybe-install-info-target-rda: install-info-target-rda
16ae0395 41225
4fa63067
NN
41226install-info-target-rda: \
41227 configure-target-rda \
41228 info-target-rda
0aed8855 41229 @: $(MAKE); $(unstage)
4fa63067
NN
41230 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41231 r=`${PWD_COMMAND}`; export r; \
b40e3958 41232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41233 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41234 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
41235 for flag in $(EXTRA_TARGET_FLAGS); do \
41236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41237 done; \
41238 (cd $(TARGET_SUBDIR)/rda && \
41239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41241 "RANLIB=$${RANLIB}" \
0c24b341 41242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41243 install-info) \
4fa63067 41244 || exit 1
252b5132 41245
6bd3dfaa 41246@endif target-rda
e393202e 41247
a3ca38d2
DD
41248.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
41249maybe-install-pdf-target-rda:
41250@if target-rda
41251maybe-install-pdf-target-rda: install-pdf-target-rda
41252
41253install-pdf-target-rda: \
41254 configure-target-rda \
41255 pdf-target-rda
41256 @: $(MAKE); $(unstage)
41257 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41258 r=`${PWD_COMMAND}`; export r; \
41259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41260 $(NORMAL_TARGET_EXPORTS) \
41261 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda" ; \
41262 for flag in $(EXTRA_TARGET_FLAGS); do \
41263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41264 done; \
41265 (cd $(TARGET_SUBDIR)/rda && \
41266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41268 "RANLIB=$${RANLIB}" \
0c24b341 41269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41270 install-pdf) \
41271 || exit 1
41272
41273@endif target-rda
41274
108a6f8e
CD
41275.PHONY: maybe-install-html-target-rda install-html-target-rda
41276maybe-install-html-target-rda:
41277@if target-rda
41278maybe-install-html-target-rda: install-html-target-rda
41279
41280install-html-target-rda: \
41281 configure-target-rda \
41282 html-target-rda
41283 @: $(MAKE); $(unstage)
41284 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41285 r=`${PWD_COMMAND}`; export r; \
41286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41287 $(NORMAL_TARGET_EXPORTS) \
41288 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
41289 for flag in $(EXTRA_TARGET_FLAGS); do \
41290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41291 done; \
41292 (cd $(TARGET_SUBDIR)/rda && \
41293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41295 "RANLIB=$${RANLIB}" \
0c24b341 41296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41297 install-html) \
41298 || exit 1
41299
41300@endif target-rda
41301
4fa63067
NN
41302.PHONY: maybe-installcheck-target-rda installcheck-target-rda
41303maybe-installcheck-target-rda:
6bd3dfaa
PB
41304@if target-rda
41305maybe-installcheck-target-rda: installcheck-target-rda
15723a45 41306
4fa63067
NN
41307installcheck-target-rda: \
41308 configure-target-rda
0aed8855 41309 @: $(MAKE); $(unstage)
4fa63067
NN
41310 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41311 r=`${PWD_COMMAND}`; export r; \
41312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41313 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41314 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
41315 for flag in $(EXTRA_TARGET_FLAGS); do \
41316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41317 done; \
41318 (cd $(TARGET_SUBDIR)/rda && \
41319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41321 "RANLIB=$${RANLIB}" \
0c24b341 41322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41323 installcheck) \
4fa63067 41324 || exit 1
15723a45 41325
6bd3dfaa 41326@endif target-rda
4fa63067
NN
41327
41328.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
41329maybe-mostlyclean-target-rda:
6bd3dfaa
PB
41330@if target-rda
41331maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
41332
41333mostlyclean-target-rda:
0aed8855 41334 @: $(MAKE); $(unstage)
4fa63067 41335 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
41336 r=`${PWD_COMMAND}`; export r; \
41337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41338 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41339 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
41340 for flag in $(EXTRA_TARGET_FLAGS); do \
41341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41342 done; \
41343 (cd $(TARGET_SUBDIR)/rda && \
41344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41346 "RANLIB=$${RANLIB}" \
0c24b341 41347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41348 mostlyclean) \
bba45b8b 41349 || exit 1
252b5132 41350
6bd3dfaa 41351@endif target-rda
4fa63067
NN
41352
41353.PHONY: maybe-clean-target-rda clean-target-rda
41354maybe-clean-target-rda:
6bd3dfaa
PB
41355@if target-rda
41356maybe-clean-target-rda: clean-target-rda
4fa63067
NN
41357
41358clean-target-rda:
0aed8855 41359 @: $(MAKE); $(unstage)
4fa63067
NN
41360 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41361 r=`${PWD_COMMAND}`; export r; \
b40e3958 41362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41363 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41364 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
41365 for flag in $(EXTRA_TARGET_FLAGS); do \
41366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41367 done; \
bba45b8b 41368 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
41369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41371 "RANLIB=$${RANLIB}" \
0c24b341 41372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41373 clean) \
4fa63067 41374 || exit 1
252b5132 41375
6bd3dfaa 41376@endif target-rda
16ae0395 41377
4fa63067
NN
41378.PHONY: maybe-distclean-target-rda distclean-target-rda
41379maybe-distclean-target-rda:
6bd3dfaa
PB
41380@if target-rda
41381maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
41382
41383distclean-target-rda:
0aed8855 41384 @: $(MAKE); $(unstage)
4fa63067
NN
41385 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41386 r=`${PWD_COMMAND}`; export r; \
b40e3958 41387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41388 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41389 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
41390 for flag in $(EXTRA_TARGET_FLAGS); do \
41391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41392 done; \
bba45b8b 41393 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
41394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41396 "RANLIB=$${RANLIB}" \
0c24b341 41397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41398 distclean) \
4fa63067 41399 || exit 1
252b5132 41400
6bd3dfaa 41401@endif target-rda
930314a4 41402
4fa63067
NN
41403.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
41404maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
41405@if target-rda
41406maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 41407
4fa63067 41408maintainer-clean-target-rda:
0aed8855 41409 @: $(MAKE); $(unstage)
4fa63067
NN
41410 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
41411 r=`${PWD_COMMAND}`; export r; \
b40e3958 41412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41413 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41414 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
41415 for flag in $(EXTRA_TARGET_FLAGS); do \
41416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41417 done; \
bba45b8b 41418 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
41419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41421 "RANLIB=$${RANLIB}" \
0c24b341 41422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41423 maintainer-clean) \
4fa63067
NN
41424 || exit 1
41425
6bd3dfaa 41426@endif target-rda
252b5132 41427
e393202e 41428
a2592b1b 41429
a7254363
PB
41430
41431
41432.PHONY: configure-target-libada maybe-configure-target-libada
41433maybe-configure-target-libada:
4f0ef2d8
CD
41434@if gcc-bootstrap
41435configure-target-libada: stage_current
41436@endif gcc-bootstrap
a7254363
PB
41437@if target-libada
41438maybe-configure-target-libada: configure-target-libada
c52c6897 41439configure-target-libada:
0aed8855
PB
41440 @: $(MAKE); $(unstage)
41441 @r=`${PWD_COMMAND}`; export r; \
41442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41443 echo "Checking multilib configuration for libada..."; \
41444 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
41445 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
41446 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
41447 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
41448 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
41449 else \
41450 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
41451 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
41452 fi; \
41453 else \
41454 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
41455 fi; \
41456 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
a2592b1b 41457 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
1f53ca9a 41458 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
41459 echo Configuring in $(TARGET_SUBDIR)/libada; \
41460 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
41461 case $(srcdir) in \
b00612cc
PB
41462 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41463 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
41464 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 41465 esac; \
b00612cc
PB
41466 srcdiroption="--srcdir=$${topdir}/libada"; \
41467 libsrcdir="$$s/libada"; \
a2592b1b
DD
41468 rm -f no-such-file || : ; \
41469 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
41470 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
41471 --target=${target_alias} $${srcdiroption} \
a2592b1b 41472 || exit 1
6bd3dfaa 41473@endif target-libada
a2592b1b 41474
a7254363
PB
41475
41476
d545f33b
PB
41477
41478
4fa63067
NN
41479.PHONY: all-target-libada maybe-all-target-libada
41480maybe-all-target-libada:
4f0ef2d8
CD
41481@if gcc-bootstrap
41482all-target-libada: stage_current
41483@endif gcc-bootstrap
6bd3dfaa 41484@if target-libada
72b2455a 41485TARGET-target-libada=all
6bd3dfaa 41486maybe-all-target-libada: all-target-libada
4fa63067 41487all-target-libada: configure-target-libada
0aed8855 41488 @: $(MAKE); $(unstage)
4fa63067
NN
41489 @r=`${PWD_COMMAND}`; export r; \
41490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41491 $(NORMAL_TARGET_EXPORTS) \
4fa63067 41492 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 41493 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 41494 $(TARGET-target-libada))
6bd3dfaa 41495@endif target-libada
4fa63067 41496
a7254363
PB
41497
41498
d545f33b
PB
41499
41500
4fa63067
NN
41501.PHONY: check-target-libada maybe-check-target-libada
41502maybe-check-target-libada:
6bd3dfaa
PB
41503@if target-libada
41504maybe-check-target-libada: check-target-libada
4fa63067
NN
41505
41506check-target-libada:
0aed8855 41507 @: $(MAKE); $(unstage)
4fa63067
NN
41508 @r=`${PWD_COMMAND}`; export r; \
41509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41510 $(NORMAL_TARGET_EXPORTS) \
4fa63067 41511 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 41512 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 41513
6bd3dfaa 41514@endif target-libada
4fa63067
NN
41515
41516.PHONY: install-target-libada maybe-install-target-libada
41517maybe-install-target-libada:
6bd3dfaa
PB
41518@if target-libada
41519maybe-install-target-libada: install-target-libada
4fa63067
NN
41520
41521install-target-libada: installdirs
0aed8855 41522 @: $(MAKE); $(unstage)
4fa63067
NN
41523 @r=`${PWD_COMMAND}`; export r; \
41524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41525 $(NORMAL_TARGET_EXPORTS) \
4fa63067 41526 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 41527 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 41528
6bd3dfaa 41529@endif target-libada
4fa63067 41530
9b980aa1
RW
41531.PHONY: install-strip-target-libada maybe-install-strip-target-libada
41532maybe-install-strip-target-libada:
41533@if target-libada
41534maybe-install-strip-target-libada: install-strip-target-libada
41535
41536install-strip-target-libada: installdirs
41537 @: $(MAKE); $(unstage)
41538 @r=`${PWD_COMMAND}`; export r; \
41539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41540 $(NORMAL_TARGET_EXPORTS) \
41541 (cd $(TARGET_SUBDIR)/libada && \
41542 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41543
41544@endif target-libada
41545
56a8fe78 41546# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
41547
41548.PHONY: maybe-info-target-libada info-target-libada
41549maybe-info-target-libada:
6bd3dfaa
PB
41550@if target-libada
41551maybe-info-target-libada: info-target-libada
4fa63067
NN
41552
41553info-target-libada: \
41554 configure-target-libada
0aed8855 41555 @: $(MAKE); $(unstage)
4fa63067
NN
41556 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41557 r=`${PWD_COMMAND}`; export r; \
41558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41559 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41560 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
41561 for flag in $(EXTRA_TARGET_FLAGS); do \
41562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41563 done; \
41564 (cd $(TARGET_SUBDIR)/libada && \
41565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41567 "RANLIB=$${RANLIB}" \
0c24b341 41568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41569 info) \
4fa63067
NN
41570 || exit 1
41571
6bd3dfaa 41572@endif target-libada
4fa63067
NN
41573
41574.PHONY: maybe-dvi-target-libada dvi-target-libada
41575maybe-dvi-target-libada:
6bd3dfaa
PB
41576@if target-libada
41577maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
41578
41579dvi-target-libada: \
41580 configure-target-libada
0aed8855 41581 @: $(MAKE); $(unstage)
4fa63067
NN
41582 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41583 r=`${PWD_COMMAND}`; export r; \
41584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41585 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41586 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
41587 for flag in $(EXTRA_TARGET_FLAGS); do \
41588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41589 done; \
41590 (cd $(TARGET_SUBDIR)/libada && \
41591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41593 "RANLIB=$${RANLIB}" \
0c24b341 41594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41595 dvi) \
4fa63067
NN
41596 || exit 1
41597
6bd3dfaa 41598@endif target-libada
4fa63067 41599
56a8fe78
DD
41600.PHONY: maybe-pdf-target-libada pdf-target-libada
41601maybe-pdf-target-libada:
41602@if target-libada
41603maybe-pdf-target-libada: pdf-target-libada
41604
41605pdf-target-libada: \
41606 configure-target-libada
41607 @: $(MAKE); $(unstage)
41608 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41609 r=`${PWD_COMMAND}`; export r; \
41610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41611 $(NORMAL_TARGET_EXPORTS) \
41612 echo "Doing pdf in $(TARGET_SUBDIR)/libada" ; \
41613 for flag in $(EXTRA_TARGET_FLAGS); do \
41614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41615 done; \
41616 (cd $(TARGET_SUBDIR)/libada && \
41617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41619 "RANLIB=$${RANLIB}" \
0c24b341 41620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41621 pdf) \
41622 || exit 1
41623
41624@endif target-libada
41625
6d389afc
MS
41626.PHONY: maybe-html-target-libada html-target-libada
41627maybe-html-target-libada:
41628@if target-libada
41629maybe-html-target-libada: html-target-libada
41630
41631html-target-libada: \
41632 configure-target-libada
0aed8855 41633 @: $(MAKE); $(unstage)
6d389afc
MS
41634 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41635 r=`${PWD_COMMAND}`; export r; \
41636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
41637 $(NORMAL_TARGET_EXPORTS) \
41638 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
41639 for flag in $(EXTRA_TARGET_FLAGS); do \
41640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41641 done; \
41642 (cd $(TARGET_SUBDIR)/libada && \
41643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41645 "RANLIB=$${RANLIB}" \
0c24b341 41646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41647 html) \
41648 || exit 1
41649
41650@endif target-libada
41651
4fa63067
NN
41652.PHONY: maybe-TAGS-target-libada TAGS-target-libada
41653maybe-TAGS-target-libada:
6bd3dfaa
PB
41654@if target-libada
41655maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
41656
41657TAGS-target-libada: \
41658 configure-target-libada
0aed8855 41659 @: $(MAKE); $(unstage)
4fa63067
NN
41660 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41661 r=`${PWD_COMMAND}`; export r; \
41662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41663 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41664 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
41665 for flag in $(EXTRA_TARGET_FLAGS); do \
41666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41667 done; \
41668 (cd $(TARGET_SUBDIR)/libada && \
41669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41671 "RANLIB=$${RANLIB}" \
0c24b341 41672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41673 TAGS) \
4fa63067
NN
41674 || exit 1
41675
6bd3dfaa 41676@endif target-libada
4fa63067
NN
41677
41678.PHONY: maybe-install-info-target-libada install-info-target-libada
41679maybe-install-info-target-libada:
6bd3dfaa
PB
41680@if target-libada
41681maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
41682
41683install-info-target-libada: \
41684 configure-target-libada \
41685 info-target-libada
0aed8855 41686 @: $(MAKE); $(unstage)
4fa63067
NN
41687 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41688 r=`${PWD_COMMAND}`; export r; \
41689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41690 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41691 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
41692 for flag in $(EXTRA_TARGET_FLAGS); do \
41693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41694 done; \
41695 (cd $(TARGET_SUBDIR)/libada && \
41696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41698 "RANLIB=$${RANLIB}" \
0c24b341 41699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41700 install-info) \
4fa63067
NN
41701 || exit 1
41702
6bd3dfaa 41703@endif target-libada
4fa63067 41704
a3ca38d2
DD
41705.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
41706maybe-install-pdf-target-libada:
41707@if target-libada
41708maybe-install-pdf-target-libada: install-pdf-target-libada
41709
41710install-pdf-target-libada: \
41711 configure-target-libada \
41712 pdf-target-libada
41713 @: $(MAKE); $(unstage)
41714 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41715 r=`${PWD_COMMAND}`; export r; \
41716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41717 $(NORMAL_TARGET_EXPORTS) \
41718 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada" ; \
41719 for flag in $(EXTRA_TARGET_FLAGS); do \
41720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41721 done; \
41722 (cd $(TARGET_SUBDIR)/libada && \
41723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41725 "RANLIB=$${RANLIB}" \
0c24b341 41726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41727 install-pdf) \
41728 || exit 1
41729
41730@endif target-libada
41731
108a6f8e
CD
41732.PHONY: maybe-install-html-target-libada install-html-target-libada
41733maybe-install-html-target-libada:
41734@if target-libada
41735maybe-install-html-target-libada: install-html-target-libada
41736
41737install-html-target-libada: \
41738 configure-target-libada \
41739 html-target-libada
41740 @: $(MAKE); $(unstage)
41741 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41742 r=`${PWD_COMMAND}`; export r; \
41743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41744 $(NORMAL_TARGET_EXPORTS) \
41745 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
41746 for flag in $(EXTRA_TARGET_FLAGS); do \
41747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41748 done; \
41749 (cd $(TARGET_SUBDIR)/libada && \
41750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41752 "RANLIB=$${RANLIB}" \
0c24b341 41753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41754 install-html) \
41755 || exit 1
41756
41757@endif target-libada
41758
4fa63067
NN
41759.PHONY: maybe-installcheck-target-libada installcheck-target-libada
41760maybe-installcheck-target-libada:
6bd3dfaa
PB
41761@if target-libada
41762maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
41763
41764installcheck-target-libada: \
41765 configure-target-libada
0aed8855 41766 @: $(MAKE); $(unstage)
4fa63067
NN
41767 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41768 r=`${PWD_COMMAND}`; export r; \
41769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41770 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41771 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
41772 for flag in $(EXTRA_TARGET_FLAGS); do \
41773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41774 done; \
41775 (cd $(TARGET_SUBDIR)/libada && \
41776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41778 "RANLIB=$${RANLIB}" \
0c24b341 41779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41780 installcheck) \
4fa63067
NN
41781 || exit 1
41782
6bd3dfaa 41783@endif target-libada
4fa63067
NN
41784
41785.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
41786maybe-mostlyclean-target-libada:
6bd3dfaa
PB
41787@if target-libada
41788maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
41789
41790mostlyclean-target-libada:
0aed8855 41791 @: $(MAKE); $(unstage)
4fa63067
NN
41792 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41793 r=`${PWD_COMMAND}`; export r; \
41794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41795 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41796 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
41797 for flag in $(EXTRA_TARGET_FLAGS); do \
41798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41799 done; \
41800 (cd $(TARGET_SUBDIR)/libada && \
41801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41803 "RANLIB=$${RANLIB}" \
0c24b341 41804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41805 mostlyclean) \
4fa63067
NN
41806 || exit 1
41807
6bd3dfaa 41808@endif target-libada
4fa63067
NN
41809
41810.PHONY: maybe-clean-target-libada clean-target-libada
41811maybe-clean-target-libada:
6bd3dfaa
PB
41812@if target-libada
41813maybe-clean-target-libada: clean-target-libada
4fa63067
NN
41814
41815clean-target-libada:
0aed8855 41816 @: $(MAKE); $(unstage)
4fa63067
NN
41817 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41818 r=`${PWD_COMMAND}`; export r; \
41819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41820 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41821 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
41822 for flag in $(EXTRA_TARGET_FLAGS); do \
41823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41824 done; \
41825 (cd $(TARGET_SUBDIR)/libada && \
41826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41828 "RANLIB=$${RANLIB}" \
0c24b341 41829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41830 clean) \
4fa63067
NN
41831 || exit 1
41832
6bd3dfaa 41833@endif target-libada
a2592b1b 41834
4fa63067
NN
41835.PHONY: maybe-distclean-target-libada distclean-target-libada
41836maybe-distclean-target-libada:
6bd3dfaa
PB
41837@if target-libada
41838maybe-distclean-target-libada: distclean-target-libada
a2592b1b 41839
4fa63067 41840distclean-target-libada:
0aed8855 41841 @: $(MAKE); $(unstage)
4fa63067
NN
41842 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41843 r=`${PWD_COMMAND}`; export r; \
a2592b1b 41844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41845 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41846 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
41847 for flag in $(EXTRA_TARGET_FLAGS); do \
41848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41849 done; \
a2592b1b 41850 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
41851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41853 "RANLIB=$${RANLIB}" \
0c24b341 41854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41855 distclean) \
4fa63067 41856 || exit 1
a2592b1b 41857
6bd3dfaa 41858@endif target-libada
a2592b1b 41859
4fa63067
NN
41860.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
41861maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
41862@if target-libada
41863maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 41864
4fa63067 41865maintainer-clean-target-libada:
0aed8855 41866 @: $(MAKE); $(unstage)
4fa63067
NN
41867 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41868 r=`${PWD_COMMAND}`; export r; \
a2592b1b 41869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41870 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
41871 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
41872 for flag in $(EXTRA_TARGET_FLAGS); do \
41873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41874 done; \
a2592b1b 41875 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
41876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41878 "RANLIB=$${RANLIB}" \
0c24b341 41879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41880 maintainer-clean) \
4fa63067
NN
41881 || exit 1
41882
6bd3dfaa 41883@endif target-libada
a2592b1b
DD
41884
41885
522e3d71 41886.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
41887maybe-configure-target-libcilkrts:
41888@if gcc-bootstrap
41889configure-target-libcilkrts: stage_current
41890@endif gcc-bootstrap
41891@if target-libcilkrts
41892maybe-configure-target-libcilkrts: configure-target-libcilkrts
41893configure-target-libcilkrts:
41894 @r=`${PWD_COMMAND}`; export r; \
41895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41896 echo "Checking multilib configuration for libcilkrts...(1)"; \
41897 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
41898 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
41899 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
41900 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
41901 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
41902 else \
41903 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
41904 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
41905 fi; \
41906 else \
41907 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
41908 fi; \
41909 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
41910 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
41911 $(NORMAL_TARGET_EXPORTS) \
41912 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
41913 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
41914 case $(srcdir) in \
41915 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41916 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
41917 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41918 esac; \
41919 srcdiroption="--srcdir=$${topdir}/libcilkrts"; \
41920 libsrcdir="$$s/libcilkrts"; \
41921 rm -f no-such-file || : ; \
41922 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
41923 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
41924 --target=${target_alias} $${srcdiroption} \
41925 || exit 1
41926@endif target-libcilkrts
41927
41928
41929.PHONY: configure-stage1-target-libcilkrts maybe-configure-stage1-target-libcilkrts
41930maybe-configure-stage1-target-libcilkrts:
41931@if target-libcilkrts-bootstrap
41932maybe-configure-stage1-target-libcilkrts: configure-stage1-target-libcilkrts
41933configure-stage1-target-libcilkrts:
41934 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
41935 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts
41936 @r=`${PWD_COMMAND}`; export r; \
41937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41938 TFLAGS="$(STAGE1_TFLAGS)"; \
41939 echo "Checking multilib configuration for libcilkrts...(2)"; \
41940 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
41941 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
41942 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
41943 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
41944 else \
41945 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
41946 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
41947 fi; \
41948 else \
41949 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
41950 fi; \
41951 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
41952 $(NORMAL_TARGET_EXPORTS) \
41953 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41954 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41955 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
41956 echo Configuring stage 1 in $(TARGET_SUBDIR)/libcilkrts ; \
41957 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
41958 cd $(TARGET_SUBDIR)/libcilkrts || exit 1; \
41959 case $(srcdir) in \
41960 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41961 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
41962 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41963 esac; \
41964 srcdiroption="--srcdir=$${topdir}/libcilkrts"; \
41965 libsrcdir="$$s/libcilkrts"; \
41966 $(SHELL) $${libsrcdir}/configure \
41967 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
41968 --target=${target_alias} $${srcdiroption} \
41969 $(STAGE1_CONFIGURE_FLAGS)
41970@endif target-libcilkrts-bootstrap
41971
41972.PHONY: configure-stage2-target-libcilkrts maybe-configure-stage2-target-libcilkrts
41973maybe-configure-stage2-target-libcilkrts:
41974@if target-libcilkrts-bootstrap
41975maybe-configure-stage2-target-libcilkrts: configure-stage2-target-libcilkrts
41976configure-stage2-target-libcilkrts:
41977 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
41978 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts
41979 @r=`${PWD_COMMAND}`; export r; \
41980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41981 TFLAGS="$(STAGE2_TFLAGS)"; \
41982 echo "Checking multilib configuration for libcilkrts...(3)"; \
41983 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
41984 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
41985 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
41986 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
41987 else \
41988 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
41989 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
41990 fi; \
41991 else \
41992 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
41993 fi; \
41994 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
41995 $(NORMAL_TARGET_EXPORTS) \
41996 \
41997 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41998 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41999 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42000 echo Configuring stage 2 in $(TARGET_SUBDIR)/libcilkrts ; \
42001 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
42002 cd $(TARGET_SUBDIR)/libcilkrts || exit 1; \
42003 case $(srcdir) in \
42004 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42005 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
42006 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42007 esac; \
42008 srcdiroption="--srcdir=$${topdir}/libcilkrts"; \
42009 libsrcdir="$$s/libcilkrts"; \
42010 $(SHELL) $${libsrcdir}/configure \
42011 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42012 --target=${target_alias} $${srcdiroption} \
42013 --with-build-libsubdir=$(HOST_SUBDIR) \
42014 $(STAGE2_CONFIGURE_FLAGS)
42015@endif target-libcilkrts-bootstrap
42016
42017.PHONY: configure-stage3-target-libcilkrts maybe-configure-stage3-target-libcilkrts
42018maybe-configure-stage3-target-libcilkrts:
42019@if target-libcilkrts-bootstrap
42020maybe-configure-stage3-target-libcilkrts: configure-stage3-target-libcilkrts
42021configure-stage3-target-libcilkrts:
42022 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
42023 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts
42024 @r=`${PWD_COMMAND}`; export r; \
42025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42026 TFLAGS="$(STAGE3_TFLAGS)"; \
42027 echo "Checking multilib configuration for libcilkrts...(4)"; \
42028 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
42029 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
42030 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
42031 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
42032 else \
42033 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
42034 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
42035 fi; \
42036 else \
42037 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
42038 fi; \
42039 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
42040 $(NORMAL_TARGET_EXPORTS) \
42041 \
42042 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42043 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42044 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42045 echo Configuring stage 3 in $(TARGET_SUBDIR)/libcilkrts ; \
42046 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
42047 cd $(TARGET_SUBDIR)/libcilkrts || exit 1; \
42048 case $(srcdir) in \
42049 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42050 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
42051 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42052 esac; \
42053 srcdiroption="--srcdir=$${topdir}/libcilkrts"; \
42054 libsrcdir="$$s/libcilkrts"; \
42055 $(SHELL) $${libsrcdir}/configure \
42056 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42057 --target=${target_alias} $${srcdiroption} \
42058 --with-build-libsubdir=$(HOST_SUBDIR) \
42059 $(STAGE3_CONFIGURE_FLAGS)
42060@endif target-libcilkrts-bootstrap
42061
42062.PHONY: configure-stage4-target-libcilkrts maybe-configure-stage4-target-libcilkrts
42063maybe-configure-stage4-target-libcilkrts:
42064@if target-libcilkrts-bootstrap
42065maybe-configure-stage4-target-libcilkrts: configure-stage4-target-libcilkrts
42066configure-stage4-target-libcilkrts:
42067 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
42068 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts
42069 @r=`${PWD_COMMAND}`; export r; \
42070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42071 TFLAGS="$(STAGE4_TFLAGS)"; \
42072 echo "Checking multilib configuration for libcilkrts...(4)"; \
42073 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
42074 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
42075 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
42076 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
42077 else \
42078 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
42079 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
42080 fi; \
42081 else \
42082 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
42083 fi; \
42084 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
42085 $(NORMAL_TARGET_EXPORTS) \
42086 \
42087 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42088 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42089 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42090 echo Configuring stage 4 in $(TARGET_SUBDIR)/libcilkrts ; \
42091 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
42092 cd $(TARGET_SUBDIR)/libcilkrts || exit 1; \
42093 case $(srcdir) in \
42094 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42095 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
42096 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42097 esac; \
42098 srcdiroption="--srcdir=$${topdir}/libcilkrts"; \
42099 libsrcdir="$$s/libcilkrts"; \
42100 $(SHELL) $${libsrcdir}/configure \
42101 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42102 --target=${target_alias} $${srcdiroption} \
42103 --with-build-libsubdir=$(HOST_SUBDIR) \
42104 $(STAGE4_CONFIGURE_FLAGS)
42105@endif target-libcilkrts-bootstrap
42106
42107.PHONY: configure-stageprofile-target-libcilkrts maybe-configure-stageprofile-target-libcilkrts
42108maybe-configure-stageprofile-target-libcilkrts:
42109@if target-libcilkrts-bootstrap
42110maybe-configure-stageprofile-target-libcilkrts: configure-stageprofile-target-libcilkrts
42111configure-stageprofile-target-libcilkrts:
42112 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
42113 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts
42114 @r=`${PWD_COMMAND}`; export r; \
42115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42116 TFLAGS="$(STAGEprofile_TFLAGS)"; \
42117 echo "Checking multilib configuration for libcilkrts...(5)"; \
42118 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
42119 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
42120 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
42121 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
42122 else \
42123 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
42124 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
42125 fi; \
42126 else \
42127 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
42128 fi; \
42129 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
42130 $(NORMAL_TARGET_EXPORTS) \
42131 \
42132 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42133 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42134 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42135 echo Configuring stage profile in $(TARGET_SUBDIR)/libcilkrts ; \
42136 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
42137 cd $(TARGET_SUBDIR)/libcilkrts || exit 1; \
42138 case $(srcdir) in \
42139 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42140 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
42141 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42142 esac; \
42143 srcdiroption="--srcdir=$${topdir}/libcilkrts"; \
42144 libsrcdir="$$s/libcilkrts"; \
42145 $(SHELL) $${libsrcdir}/configure \
42146 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42147 --target=${target_alias} $${srcdiroption} \
42148 --with-build-libsubdir=$(HOST_SUBDIR) \
42149 $(STAGEprofile_CONFIGURE_FLAGS)
42150@endif target-libcilkrts-bootstrap
42151
42152.PHONY: configure-stagefeedback-target-libcilkrts maybe-configure-stagefeedback-target-libcilkrts
42153maybe-configure-stagefeedback-target-libcilkrts:
42154@if target-libcilkrts-bootstrap
42155maybe-configure-stagefeedback-target-libcilkrts: configure-stagefeedback-target-libcilkrts
42156configure-stagefeedback-target-libcilkrts:
42157 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
42158 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts
42159 @r=`${PWD_COMMAND}`; export r; \
42160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42161 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
42162 echo "Checking multilib configuration for libcilkrts...(6)"; \
42163 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
42164 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
42165 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
42166 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
42167 else \
42168 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
42169 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
42170 fi; \
42171 else \
42172 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
42173 fi; \
42174 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
42175 $(NORMAL_TARGET_EXPORTS) \
42176 \
42177 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42178 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42179 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42180 echo Configuring stage feedback in $(TARGET_SUBDIR)/libcilkrts ; \
42181 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
42182 cd $(TARGET_SUBDIR)/libcilkrts || exit 1; \
42183 case $(srcdir) in \
42184 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42185 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
42186 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42187 esac; \
42188 srcdiroption="--srcdir=$${topdir}/libcilkrts"; \
42189 libsrcdir="$$s/libcilkrts"; \
42190 $(SHELL) $${libsrcdir}/configure \
42191 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42192 --target=${target_alias} $${srcdiroption} \
42193 --with-build-libsubdir=$(HOST_SUBDIR) \
42194 $(STAGEfeedback_CONFIGURE_FLAGS)
42195@endif target-libcilkrts-bootstrap
42196
42197
42198
42199
42200
42201.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
42202maybe-all-target-libcilkrts:
42203@if gcc-bootstrap
42204all-target-libcilkrts: stage_current
42205@endif gcc-bootstrap
42206@if target-libcilkrts
42207TARGET-target-libcilkrts=all
42208maybe-all-target-libcilkrts: all-target-libcilkrts
42209all-target-libcilkrts: configure-target-libcilkrts
42210 @r=`${PWD_COMMAND}`; export r; \
42211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42212 $(NORMAL_TARGET_EXPORTS) \
42213 (cd $(TARGET_SUBDIR)/libcilkrts && \
42214 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
42215 $(TARGET-target-libcilkrts))
42216@endif target-libcilkrts
42217
42218
42219
42220.PHONY: all-stage1-target-libcilkrts maybe-all-stage1-target-libcilkrts
42221.PHONY: clean-stage1-target-libcilkrts maybe-clean-stage1-target-libcilkrts
42222maybe-all-stage1-target-libcilkrts:
42223maybe-clean-stage1-target-libcilkrts:
42224@if target-libcilkrts-bootstrap
42225maybe-all-stage1-target-libcilkrts: all-stage1-target-libcilkrts
42226all-stage1: all-stage1-target-libcilkrts
42227TARGET-stage1-target-libcilkrts = $(TARGET-target-libcilkrts)
42228all-stage1-target-libcilkrts: configure-stage1-target-libcilkrts
42229 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
42230 @r=`${PWD_COMMAND}`; export r; \
42231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42232 TFLAGS="$(STAGE1_TFLAGS)"; \
42233 $(NORMAL_TARGET_EXPORTS) \
42234 cd $(TARGET_SUBDIR)/libcilkrts && \
42235 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42236 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42237 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42238 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42239 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42240 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42241 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42242 $(EXTRA_TARGET_FLAGS) \
42243 TFLAGS="$(STAGE1_TFLAGS)" \
42244 $(TARGET-stage1-target-libcilkrts)
42245
42246maybe-clean-stage1-target-libcilkrts: clean-stage1-target-libcilkrts
42247clean-stage1: clean-stage1-target-libcilkrts
42248clean-stage1-target-libcilkrts:
42249 @if [ $(current_stage) = stage1 ]; then \
42250 [ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
42251 else \
42252 [ -f $(TARGET_SUBDIR)/stage1-libcilkrts/Makefile ] || exit 0; \
42253 $(MAKE) stage1-start; \
42254 fi; \
42255 cd $(TARGET_SUBDIR)/libcilkrts && \
42256 $(MAKE) $(EXTRA_TARGET_FLAGS) \
42257 clean
42258@endif target-libcilkrts-bootstrap
42259
42260
42261.PHONY: all-stage2-target-libcilkrts maybe-all-stage2-target-libcilkrts
42262.PHONY: clean-stage2-target-libcilkrts maybe-clean-stage2-target-libcilkrts
42263maybe-all-stage2-target-libcilkrts:
42264maybe-clean-stage2-target-libcilkrts:
42265@if target-libcilkrts-bootstrap
42266maybe-all-stage2-target-libcilkrts: all-stage2-target-libcilkrts
42267all-stage2: all-stage2-target-libcilkrts
42268TARGET-stage2-target-libcilkrts = $(TARGET-target-libcilkrts)
42269all-stage2-target-libcilkrts: configure-stage2-target-libcilkrts
42270 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
42271 @r=`${PWD_COMMAND}`; export r; \
42272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42273 TFLAGS="$(STAGE2_TFLAGS)"; \
42274 $(NORMAL_TARGET_EXPORTS) \
42275 \
42276 cd $(TARGET_SUBDIR)/libcilkrts && \
42277 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42278 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42279 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42280 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42281 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42282 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42283 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42284 $(EXTRA_TARGET_FLAGS) \
42285 TFLAGS="$(STAGE2_TFLAGS)" \
42286 $(TARGET-stage2-target-libcilkrts)
42287
42288maybe-clean-stage2-target-libcilkrts: clean-stage2-target-libcilkrts
42289clean-stage2: clean-stage2-target-libcilkrts
42290clean-stage2-target-libcilkrts:
42291 @if [ $(current_stage) = stage2 ]; then \
42292 [ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
42293 else \
42294 [ -f $(TARGET_SUBDIR)/stage2-libcilkrts/Makefile ] || exit 0; \
42295 $(MAKE) stage2-start; \
42296 fi; \
42297 cd $(TARGET_SUBDIR)/libcilkrts && \
42298 $(MAKE) $(EXTRA_TARGET_FLAGS) \
42299 \
42300 clean
42301@endif target-libcilkrts-bootstrap
42302
42303
42304.PHONY: all-stage3-target-libcilkrts maybe-all-stage3-target-libcilkrts
42305.PHONY: clean-stage3-target-libcilkrts maybe-clean-stage3-target-libcilkrts
42306maybe-all-stage3-target-libcilkrts:
42307maybe-clean-stage3-target-libcilkrts:
42308@if target-libcilkrts-bootstrap
42309maybe-all-stage3-target-libcilkrts: all-stage3-target-libcilkrts
42310all-stage3: all-stage3-target-libcilkrts
42311TARGET-stage3-target-libcilkrts = $(TARGET-target-libcilkrts)
42312all-stage3-target-libcilkrts: configure-stage3-target-libcilkrts
42313 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
42314 @r=`${PWD_COMMAND}`; export r; \
42315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42316 TFLAGS="$(STAGE3_TFLAGS)"; \
42317 $(NORMAL_TARGET_EXPORTS) \
42318 \
42319 cd $(TARGET_SUBDIR)/libcilkrts && \
42320 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42321 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42322 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42323 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42324 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42325 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42326 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42327 $(EXTRA_TARGET_FLAGS) \
42328 TFLAGS="$(STAGE3_TFLAGS)" \
42329 $(TARGET-stage3-target-libcilkrts)
42330
42331maybe-clean-stage3-target-libcilkrts: clean-stage3-target-libcilkrts
42332clean-stage3: clean-stage3-target-libcilkrts
42333clean-stage3-target-libcilkrts:
42334 @if [ $(current_stage) = stage3 ]; then \
42335 [ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
42336 else \
42337 [ -f $(TARGET_SUBDIR)/stage3-libcilkrts/Makefile ] || exit 0; \
42338 $(MAKE) stage3-start; \
42339 fi; \
42340 cd $(TARGET_SUBDIR)/libcilkrts && \
42341 $(MAKE) $(EXTRA_TARGET_FLAGS) \
42342 \
42343 clean
42344@endif target-libcilkrts-bootstrap
42345
42346
42347.PHONY: all-stage4-target-libcilkrts maybe-all-stage4-target-libcilkrts
42348.PHONY: clean-stage4-target-libcilkrts maybe-clean-stage4-target-libcilkrts
42349maybe-all-stage4-target-libcilkrts:
42350maybe-clean-stage4-target-libcilkrts:
42351@if target-libcilkrts-bootstrap
42352maybe-all-stage4-target-libcilkrts: all-stage4-target-libcilkrts
42353all-stage4: all-stage4-target-libcilkrts
42354TARGET-stage4-target-libcilkrts = $(TARGET-target-libcilkrts)
42355all-stage4-target-libcilkrts: configure-stage4-target-libcilkrts
42356 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
42357 @r=`${PWD_COMMAND}`; export r; \
42358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42359 TFLAGS="$(STAGE4_TFLAGS)"; \
42360 $(NORMAL_TARGET_EXPORTS) \
42361 \
42362 cd $(TARGET_SUBDIR)/libcilkrts && \
42363 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42364 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42365 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42366 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42367 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42368 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42369 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42370 $(EXTRA_TARGET_FLAGS) \
42371 TFLAGS="$(STAGE4_TFLAGS)" \
42372 $(TARGET-stage4-target-libcilkrts)
42373
42374maybe-clean-stage4-target-libcilkrts: clean-stage4-target-libcilkrts
42375clean-stage4: clean-stage4-target-libcilkrts
42376clean-stage4-target-libcilkrts:
42377 @if [ $(current_stage) = stage4 ]; then \
42378 [ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
42379 else \
42380 [ -f $(TARGET_SUBDIR)/stage4-libcilkrts/Makefile ] || exit 0; \
42381 $(MAKE) stage4-start; \
42382 fi; \
42383 cd $(TARGET_SUBDIR)/libcilkrts && \
42384 $(MAKE) $(EXTRA_TARGET_FLAGS) \
42385 \
42386 clean
42387@endif target-libcilkrts-bootstrap
42388
42389
42390.PHONY: all-stageprofile-target-libcilkrts maybe-all-stageprofile-target-libcilkrts
42391.PHONY: clean-stageprofile-target-libcilkrts maybe-clean-stageprofile-target-libcilkrts
42392maybe-all-stageprofile-target-libcilkrts:
42393maybe-clean-stageprofile-target-libcilkrts:
42394@if target-libcilkrts-bootstrap
42395maybe-all-stageprofile-target-libcilkrts: all-stageprofile-target-libcilkrts
42396all-stageprofile: all-stageprofile-target-libcilkrts
42397TARGET-stageprofile-target-libcilkrts = $(TARGET-target-libcilkrts)
42398all-stageprofile-target-libcilkrts: configure-stageprofile-target-libcilkrts
42399 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
42400 @r=`${PWD_COMMAND}`; export r; \
42401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42402 TFLAGS="$(STAGEprofile_TFLAGS)"; \
42403 $(NORMAL_TARGET_EXPORTS) \
42404 \
42405 cd $(TARGET_SUBDIR)/libcilkrts && \
42406 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42407 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42408 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42409 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42410 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42411 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42412 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42413 $(EXTRA_TARGET_FLAGS) \
42414 TFLAGS="$(STAGEprofile_TFLAGS)" \
42415 $(TARGET-stageprofile-target-libcilkrts)
42416
42417maybe-clean-stageprofile-target-libcilkrts: clean-stageprofile-target-libcilkrts
42418clean-stageprofile: clean-stageprofile-target-libcilkrts
42419clean-stageprofile-target-libcilkrts:
42420 @if [ $(current_stage) = stageprofile ]; then \
42421 [ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
42422 else \
42423 [ -f $(TARGET_SUBDIR)/stageprofile-libcilkrts/Makefile ] || exit 0; \
42424 $(MAKE) stageprofile-start; \
42425 fi; \
42426 cd $(TARGET_SUBDIR)/libcilkrts && \
42427 $(MAKE) $(EXTRA_TARGET_FLAGS) \
42428 \
42429 clean
42430@endif target-libcilkrts-bootstrap
42431
42432
42433.PHONY: all-stagefeedback-target-libcilkrts maybe-all-stagefeedback-target-libcilkrts
42434.PHONY: clean-stagefeedback-target-libcilkrts maybe-clean-stagefeedback-target-libcilkrts
42435maybe-all-stagefeedback-target-libcilkrts:
42436maybe-clean-stagefeedback-target-libcilkrts:
42437@if target-libcilkrts-bootstrap
42438maybe-all-stagefeedback-target-libcilkrts: all-stagefeedback-target-libcilkrts
42439all-stagefeedback: all-stagefeedback-target-libcilkrts
42440TARGET-stagefeedback-target-libcilkrts = $(TARGET-target-libcilkrts)
42441all-stagefeedback-target-libcilkrts: configure-stagefeedback-target-libcilkrts
42442 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
42443 @r=`${PWD_COMMAND}`; export r; \
42444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42445 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
42446 $(NORMAL_TARGET_EXPORTS) \
42447 \
42448 cd $(TARGET_SUBDIR)/libcilkrts && \
42449 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42450 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42451 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42452 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42453 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42454 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42455 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42456 $(EXTRA_TARGET_FLAGS) \
42457 TFLAGS="$(STAGEfeedback_TFLAGS)" \
42458 $(TARGET-stagefeedback-target-libcilkrts)
42459
42460maybe-clean-stagefeedback-target-libcilkrts: clean-stagefeedback-target-libcilkrts
42461clean-stagefeedback: clean-stagefeedback-target-libcilkrts
42462clean-stagefeedback-target-libcilkrts:
42463 @if [ $(current_stage) = stagefeedback ]; then \
42464 [ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
42465 else \
42466 [ -f $(TARGET_SUBDIR)/stagefeedback-libcilkrts/Makefile ] || exit 0; \
42467 $(MAKE) stagefeedback-start; \
42468 fi; \
42469 cd $(TARGET_SUBDIR)/libcilkrts && \
42470 $(MAKE) $(EXTRA_TARGET_FLAGS) \
42471 \
42472 clean
42473@endif target-libcilkrts-bootstrap
42474
42475
42476
42477
42478
42479
42480.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
42481maybe-check-target-libcilkrts:
42482@if target-libcilkrts
42483maybe-check-target-libcilkrts: check-target-libcilkrts
42484
42485check-target-libcilkrts:
42486 @: $(MAKE); $(unstage)
42487 @r=`${PWD_COMMAND}`; export r; \
42488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42489 $(NORMAL_TARGET_EXPORTS) \
42490 (cd $(TARGET_SUBDIR)/libcilkrts && \
42491 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
42492
42493@endif target-libcilkrts
42494
42495.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
42496maybe-install-target-libcilkrts:
42497@if target-libcilkrts
42498maybe-install-target-libcilkrts: install-target-libcilkrts
42499
42500install-target-libcilkrts: installdirs
42501 @: $(MAKE); $(unstage)
42502 @r=`${PWD_COMMAND}`; export r; \
42503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42504 $(NORMAL_TARGET_EXPORTS) \
42505 (cd $(TARGET_SUBDIR)/libcilkrts && \
42506 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
42507
42508@endif target-libcilkrts
42509
42510.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
42511maybe-install-strip-target-libcilkrts:
42512@if target-libcilkrts
42513maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
42514
42515install-strip-target-libcilkrts: installdirs
42516 @: $(MAKE); $(unstage)
42517 @r=`${PWD_COMMAND}`; export r; \
42518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42519 $(NORMAL_TARGET_EXPORTS) \
42520 (cd $(TARGET_SUBDIR)/libcilkrts && \
42521 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42522
42523@endif target-libcilkrts
42524
42525# Other targets (info, dvi, pdf, etc.)
42526
42527.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
42528maybe-info-target-libcilkrts:
42529@if target-libcilkrts
42530maybe-info-target-libcilkrts: info-target-libcilkrts
42531
42532info-target-libcilkrts: \
42533 configure-target-libcilkrts
42534 @: $(MAKE); $(unstage)
42535 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42536 r=`${PWD_COMMAND}`; export r; \
42537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42538 $(NORMAL_TARGET_EXPORTS) \
42539 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts" ; \
42540 for flag in $(EXTRA_TARGET_FLAGS); do \
42541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42542 done; \
42543 (cd $(TARGET_SUBDIR)/libcilkrts && \
42544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42546 "RANLIB=$${RANLIB}" \
42547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42548 info) \
42549 || exit 1
42550
42551@endif target-libcilkrts
42552
42553.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
42554maybe-dvi-target-libcilkrts:
42555@if target-libcilkrts
42556maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
42557
42558dvi-target-libcilkrts: \
42559 configure-target-libcilkrts
42560 @: $(MAKE); $(unstage)
42561 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42562 r=`${PWD_COMMAND}`; export r; \
42563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42564 $(NORMAL_TARGET_EXPORTS) \
42565 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts" ; \
42566 for flag in $(EXTRA_TARGET_FLAGS); do \
42567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42568 done; \
42569 (cd $(TARGET_SUBDIR)/libcilkrts && \
42570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42572 "RANLIB=$${RANLIB}" \
42573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42574 dvi) \
42575 || exit 1
42576
42577@endif target-libcilkrts
42578
42579.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
42580maybe-pdf-target-libcilkrts:
42581@if target-libcilkrts
42582maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
42583
42584pdf-target-libcilkrts: \
42585 configure-target-libcilkrts
42586 @: $(MAKE); $(unstage)
42587 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42588 r=`${PWD_COMMAND}`; export r; \
42589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42590 $(NORMAL_TARGET_EXPORTS) \
42591 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts" ; \
42592 for flag in $(EXTRA_TARGET_FLAGS); do \
42593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42594 done; \
42595 (cd $(TARGET_SUBDIR)/libcilkrts && \
42596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42598 "RANLIB=$${RANLIB}" \
42599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42600 pdf) \
42601 || exit 1
42602
42603@endif target-libcilkrts
42604
42605.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
42606maybe-html-target-libcilkrts:
42607@if target-libcilkrts
42608maybe-html-target-libcilkrts: html-target-libcilkrts
42609
42610html-target-libcilkrts: \
42611 configure-target-libcilkrts
42612 @: $(MAKE); $(unstage)
42613 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42614 r=`${PWD_COMMAND}`; export r; \
42615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42616 $(NORMAL_TARGET_EXPORTS) \
42617 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts" ; \
42618 for flag in $(EXTRA_TARGET_FLAGS); do \
42619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42620 done; \
42621 (cd $(TARGET_SUBDIR)/libcilkrts && \
42622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42624 "RANLIB=$${RANLIB}" \
42625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42626 html) \
42627 || exit 1
42628
42629@endif target-libcilkrts
42630
42631.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
42632maybe-TAGS-target-libcilkrts:
42633@if target-libcilkrts
42634maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
42635
42636TAGS-target-libcilkrts: \
42637 configure-target-libcilkrts
42638 @: $(MAKE); $(unstage)
42639 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42640 r=`${PWD_COMMAND}`; export r; \
42641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42642 $(NORMAL_TARGET_EXPORTS) \
42643 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts" ; \
42644 for flag in $(EXTRA_TARGET_FLAGS); do \
42645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42646 done; \
42647 (cd $(TARGET_SUBDIR)/libcilkrts && \
42648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42650 "RANLIB=$${RANLIB}" \
42651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42652 TAGS) \
42653 || exit 1
42654
42655@endif target-libcilkrts
42656
42657.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
42658maybe-install-info-target-libcilkrts:
42659@if target-libcilkrts
42660maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
42661
42662install-info-target-libcilkrts: \
42663 configure-target-libcilkrts \
42664 info-target-libcilkrts
42665 @: $(MAKE); $(unstage)
42666 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42667 r=`${PWD_COMMAND}`; export r; \
42668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42669 $(NORMAL_TARGET_EXPORTS) \
42670 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts" ; \
42671 for flag in $(EXTRA_TARGET_FLAGS); do \
42672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42673 done; \
42674 (cd $(TARGET_SUBDIR)/libcilkrts && \
42675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42677 "RANLIB=$${RANLIB}" \
42678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42679 install-info) \
42680 || exit 1
42681
42682@endif target-libcilkrts
42683
42684.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
42685maybe-install-pdf-target-libcilkrts:
42686@if target-libcilkrts
42687maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
42688
42689install-pdf-target-libcilkrts: \
42690 configure-target-libcilkrts \
42691 pdf-target-libcilkrts
42692 @: $(MAKE); $(unstage)
42693 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42694 r=`${PWD_COMMAND}`; export r; \
42695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42696 $(NORMAL_TARGET_EXPORTS) \
42697 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts" ; \
42698 for flag in $(EXTRA_TARGET_FLAGS); do \
42699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42700 done; \
42701 (cd $(TARGET_SUBDIR)/libcilkrts && \
42702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42704 "RANLIB=$${RANLIB}" \
42705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42706 install-pdf) \
42707 || exit 1
42708
42709@endif target-libcilkrts
42710
42711.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
42712maybe-install-html-target-libcilkrts:
42713@if target-libcilkrts
42714maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
42715
42716install-html-target-libcilkrts: \
42717 configure-target-libcilkrts \
42718 html-target-libcilkrts
42719 @: $(MAKE); $(unstage)
42720 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42721 r=`${PWD_COMMAND}`; export r; \
42722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42723 $(NORMAL_TARGET_EXPORTS) \
42724 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts" ; \
42725 for flag in $(EXTRA_TARGET_FLAGS); do \
42726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42727 done; \
42728 (cd $(TARGET_SUBDIR)/libcilkrts && \
42729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42731 "RANLIB=$${RANLIB}" \
42732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42733 install-html) \
42734 || exit 1
42735
42736@endif target-libcilkrts
42737
42738.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
42739maybe-installcheck-target-libcilkrts:
42740@if target-libcilkrts
42741maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
42742
42743installcheck-target-libcilkrts: \
42744 configure-target-libcilkrts
42745 @: $(MAKE); $(unstage)
42746 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42747 r=`${PWD_COMMAND}`; export r; \
42748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42749 $(NORMAL_TARGET_EXPORTS) \
42750 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts" ; \
42751 for flag in $(EXTRA_TARGET_FLAGS); do \
42752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42753 done; \
42754 (cd $(TARGET_SUBDIR)/libcilkrts && \
42755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42757 "RANLIB=$${RANLIB}" \
42758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42759 installcheck) \
42760 || exit 1
42761
42762@endif target-libcilkrts
42763
42764.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
42765maybe-mostlyclean-target-libcilkrts:
42766@if target-libcilkrts
42767maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
42768
42769mostlyclean-target-libcilkrts:
42770 @: $(MAKE); $(unstage)
42771 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42772 r=`${PWD_COMMAND}`; export r; \
42773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42774 $(NORMAL_TARGET_EXPORTS) \
42775 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts" ; \
42776 for flag in $(EXTRA_TARGET_FLAGS); do \
42777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42778 done; \
42779 (cd $(TARGET_SUBDIR)/libcilkrts && \
42780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42782 "RANLIB=$${RANLIB}" \
42783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42784 mostlyclean) \
42785 || exit 1
42786
42787@endif target-libcilkrts
42788
42789.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
42790maybe-clean-target-libcilkrts:
42791@if target-libcilkrts
42792maybe-clean-target-libcilkrts: clean-target-libcilkrts
42793
42794clean-target-libcilkrts:
42795 @: $(MAKE); $(unstage)
42796 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42797 r=`${PWD_COMMAND}`; export r; \
42798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42799 $(NORMAL_TARGET_EXPORTS) \
42800 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts" ; \
42801 for flag in $(EXTRA_TARGET_FLAGS); do \
42802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42803 done; \
42804 (cd $(TARGET_SUBDIR)/libcilkrts && \
42805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42807 "RANLIB=$${RANLIB}" \
42808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42809 clean) \
42810 || exit 1
42811
42812@endif target-libcilkrts
42813
42814.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
42815maybe-distclean-target-libcilkrts:
42816@if target-libcilkrts
42817maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
42818
42819distclean-target-libcilkrts:
42820 @: $(MAKE); $(unstage)
42821 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42822 r=`${PWD_COMMAND}`; export r; \
42823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42824 $(NORMAL_TARGET_EXPORTS) \
42825 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts" ; \
42826 for flag in $(EXTRA_TARGET_FLAGS); do \
42827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42828 done; \
42829 (cd $(TARGET_SUBDIR)/libcilkrts && \
42830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42832 "RANLIB=$${RANLIB}" \
42833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42834 distclean) \
42835 || exit 1
42836
42837@endif target-libcilkrts
42838
42839.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
42840maybe-maintainer-clean-target-libcilkrts:
42841@if target-libcilkrts
42842maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
42843
42844maintainer-clean-target-libcilkrts:
42845 @: $(MAKE); $(unstage)
42846 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
42847 r=`${PWD_COMMAND}`; export r; \
42848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42849 $(NORMAL_TARGET_EXPORTS) \
42850 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts" ; \
42851 for flag in $(EXTRA_TARGET_FLAGS); do \
42852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42853 done; \
42854 (cd $(TARGET_SUBDIR)/libcilkrts && \
42855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42857 "RANLIB=$${RANLIB}" \
42858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42859 maintainer-clean) \
42860 || exit 1
42861
42862@endif target-libcilkrts
e393202e 42863
b3ded179
PB
42864
42865
42866.PHONY: configure-target-libgomp maybe-configure-target-libgomp
42867maybe-configure-target-libgomp:
4f0ef2d8
CD
42868@if gcc-bootstrap
42869configure-target-libgomp: stage_current
42870@endif gcc-bootstrap
b3ded179
PB
42871@if target-libgomp
42872maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 42873configure-target-libgomp:
b3ded179
PB
42874 @r=`${PWD_COMMAND}`; export r; \
42875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42876 echo "Checking multilib configuration for libgomp..."; \
42877 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
42878 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
42879 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
42880 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
42881 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
42882 else \
42883 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
42884 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
42885 fi; \
42886 else \
42887 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
42888 fi; \
42889 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
b3ded179 42890 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
1f53ca9a 42891 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
42892 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
42893 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
42894 case $(srcdir) in \
42895 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42896 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
42897 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42898 esac; \
42899 srcdiroption="--srcdir=$${topdir}/libgomp"; \
42900 libsrcdir="$$s/libgomp"; \
42901 rm -f no-such-file || : ; \
42902 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4b900473
PB
42903 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42904 --target=${target_alias} $${srcdiroption} \
b3ded179
PB
42905 || exit 1
42906@endif target-libgomp
42907
42908
42909
911e63d0
JR
42910.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
42911maybe-configure-stage1-target-libgomp:
42912@if target-libgomp-bootstrap
42913maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
42914configure-stage1-target-libgomp:
42915 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
42916 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
42917 @r=`${PWD_COMMAND}`; export r; \
42918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42919 TFLAGS="$(STAGE1_TFLAGS)"; \
42920 echo "Checking multilib configuration for libgomp..."; \
42921 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
42922 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
42923 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
42924 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
42925 else \
42926 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
42927 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
42928 fi; \
42929 else \
42930 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
42931 fi; \
42932 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
42933 $(NORMAL_TARGET_EXPORTS) \
42934 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42935 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42936 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42937 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp ; \
42938 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
42939 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
42940 case $(srcdir) in \
42941 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42942 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
42943 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42944 esac; \
42945 srcdiroption="--srcdir=$${topdir}/libgomp"; \
42946 libsrcdir="$$s/libgomp"; \
42947 $(SHELL) $${libsrcdir}/configure \
42948 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42949 --target=${target_alias} $${srcdiroption} \
42950 $(STAGE1_CONFIGURE_FLAGS)
42951@endif target-libgomp-bootstrap
42952
42953.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
42954maybe-configure-stage2-target-libgomp:
42955@if target-libgomp-bootstrap
42956maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
42957configure-stage2-target-libgomp:
42958 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
42959 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
42960 @r=`${PWD_COMMAND}`; export r; \
42961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42962 TFLAGS="$(STAGE2_TFLAGS)"; \
42963 echo "Checking multilib configuration for libgomp..."; \
42964 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
42965 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
42966 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
42967 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
42968 else \
42969 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
42970 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
42971 fi; \
42972 else \
42973 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
42974 fi; \
42975 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
42976 $(NORMAL_TARGET_EXPORTS) \
42977 \
42978 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42979 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42980 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42981 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp ; \
42982 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
42983 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
42984 case $(srcdir) in \
42985 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42986 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
42987 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42988 esac; \
42989 srcdiroption="--srcdir=$${topdir}/libgomp"; \
42990 libsrcdir="$$s/libgomp"; \
42991 $(SHELL) $${libsrcdir}/configure \
42992 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42993 --target=${target_alias} $${srcdiroption} \
42994 --with-build-libsubdir=$(HOST_SUBDIR) \
42995 $(STAGE2_CONFIGURE_FLAGS)
42996@endif target-libgomp-bootstrap
42997
42998.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
42999maybe-configure-stage3-target-libgomp:
43000@if target-libgomp-bootstrap
43001maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
43002configure-stage3-target-libgomp:
43003 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
43004 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
43005 @r=`${PWD_COMMAND}`; export r; \
43006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43007 TFLAGS="$(STAGE3_TFLAGS)"; \
43008 echo "Checking multilib configuration for libgomp..."; \
43009 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
43010 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
43011 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
43012 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
43013 else \
43014 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
43015 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
43016 fi; \
43017 else \
43018 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
43019 fi; \
43020 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
43021 $(NORMAL_TARGET_EXPORTS) \
43022 \
43023 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43024 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43025 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
43026 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp ; \
43027 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
43028 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
43029 case $(srcdir) in \
43030 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43031 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
43032 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43033 esac; \
43034 srcdiroption="--srcdir=$${topdir}/libgomp"; \
43035 libsrcdir="$$s/libgomp"; \
43036 $(SHELL) $${libsrcdir}/configure \
43037 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43038 --target=${target_alias} $${srcdiroption} \
43039 --with-build-libsubdir=$(HOST_SUBDIR) \
43040 $(STAGE3_CONFIGURE_FLAGS)
43041@endif target-libgomp-bootstrap
43042
43043.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
43044maybe-configure-stage4-target-libgomp:
43045@if target-libgomp-bootstrap
43046maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
43047configure-stage4-target-libgomp:
43048 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
43049 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
43050 @r=`${PWD_COMMAND}`; export r; \
43051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43052 TFLAGS="$(STAGE4_TFLAGS)"; \
43053 echo "Checking multilib configuration for libgomp..."; \
43054 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
43055 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
43056 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
43057 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
43058 else \
43059 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
43060 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
43061 fi; \
43062 else \
43063 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
43064 fi; \
43065 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
43066 $(NORMAL_TARGET_EXPORTS) \
43067 \
43068 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43069 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43070 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
43071 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp ; \
43072 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
43073 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
43074 case $(srcdir) in \
43075 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43076 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
43077 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43078 esac; \
43079 srcdiroption="--srcdir=$${topdir}/libgomp"; \
43080 libsrcdir="$$s/libgomp"; \
43081 $(SHELL) $${libsrcdir}/configure \
43082 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43083 --target=${target_alias} $${srcdiroption} \
43084 --with-build-libsubdir=$(HOST_SUBDIR) \
43085 $(STAGE4_CONFIGURE_FLAGS)
43086@endif target-libgomp-bootstrap
43087
43088.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
43089maybe-configure-stageprofile-target-libgomp:
43090@if target-libgomp-bootstrap
43091maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
43092configure-stageprofile-target-libgomp:
43093 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
43094 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
43095 @r=`${PWD_COMMAND}`; export r; \
43096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43097 TFLAGS="$(STAGEprofile_TFLAGS)"; \
43098 echo "Checking multilib configuration for libgomp..."; \
43099 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
43100 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
43101 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
43102 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
43103 else \
43104 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
43105 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
43106 fi; \
43107 else \
43108 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
43109 fi; \
43110 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
43111 $(NORMAL_TARGET_EXPORTS) \
43112 \
43113 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43114 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43115 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
43116 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp ; \
43117 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
43118 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
43119 case $(srcdir) in \
43120 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43121 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
43122 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43123 esac; \
43124 srcdiroption="--srcdir=$${topdir}/libgomp"; \
43125 libsrcdir="$$s/libgomp"; \
43126 $(SHELL) $${libsrcdir}/configure \
43127 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43128 --target=${target_alias} $${srcdiroption} \
43129 --with-build-libsubdir=$(HOST_SUBDIR) \
43130 $(STAGEprofile_CONFIGURE_FLAGS)
43131@endif target-libgomp-bootstrap
43132
43133.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
43134maybe-configure-stagefeedback-target-libgomp:
43135@if target-libgomp-bootstrap
43136maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
43137configure-stagefeedback-target-libgomp:
43138 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
43139 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
43140 @r=`${PWD_COMMAND}`; export r; \
43141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43142 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
43143 echo "Checking multilib configuration for libgomp..."; \
43144 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
43145 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
43146 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
43147 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
43148 else \
43149 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
43150 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
43151 fi; \
43152 else \
43153 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
43154 fi; \
43155 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
43156 $(NORMAL_TARGET_EXPORTS) \
43157 \
43158 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43159 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43160 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
43161 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp ; \
43162 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
43163 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
43164 case $(srcdir) in \
43165 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43166 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
43167 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43168 esac; \
43169 srcdiroption="--srcdir=$${topdir}/libgomp"; \
43170 libsrcdir="$$s/libgomp"; \
43171 $(SHELL) $${libsrcdir}/configure \
43172 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43173 --target=${target_alias} $${srcdiroption} \
43174 --with-build-libsubdir=$(HOST_SUBDIR) \
43175 $(STAGEfeedback_CONFIGURE_FLAGS)
43176@endif target-libgomp-bootstrap
43177
43178
43179
b3ded179
PB
43180
43181
43182.PHONY: all-target-libgomp maybe-all-target-libgomp
43183maybe-all-target-libgomp:
4f0ef2d8
CD
43184@if gcc-bootstrap
43185all-target-libgomp: stage_current
43186@endif gcc-bootstrap
b3ded179
PB
43187@if target-libgomp
43188TARGET-target-libgomp=all
43189maybe-all-target-libgomp: all-target-libgomp
43190all-target-libgomp: configure-target-libgomp
b3ded179
PB
43191 @r=`${PWD_COMMAND}`; export r; \
43192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43193 $(NORMAL_TARGET_EXPORTS) \
b3ded179 43194 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 43195 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 43196 $(TARGET-target-libgomp))
b3ded179
PB
43197@endif target-libgomp
43198
43199
43200
911e63d0
JR
43201.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
43202.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
43203maybe-all-stage1-target-libgomp:
43204maybe-clean-stage1-target-libgomp:
43205@if target-libgomp-bootstrap
43206maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
43207all-stage1: all-stage1-target-libgomp
43208TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
43209all-stage1-target-libgomp: configure-stage1-target-libgomp
43210 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
43211 @r=`${PWD_COMMAND}`; export r; \
43212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43213 TFLAGS="$(STAGE1_TFLAGS)"; \
43214 $(NORMAL_TARGET_EXPORTS) \
43215 cd $(TARGET_SUBDIR)/libgomp && \
43216 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43217 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43218 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43219 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43220 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43221 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43222 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
43223 $(EXTRA_TARGET_FLAGS) \
43224 \
911e63d0
JR
43225 TFLAGS="$(STAGE1_TFLAGS)" \
43226 $(TARGET-stage1-target-libgomp)
43227
43228maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
43229clean-stage1: clean-stage1-target-libgomp
43230clean-stage1-target-libgomp:
43231 @if [ $(current_stage) = stage1 ]; then \
43232 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
43233 else \
43234 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
43235 $(MAKE) stage1-start; \
43236 fi; \
43237 cd $(TARGET_SUBDIR)/libgomp && \
43238 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 43239 clean
911e63d0
JR
43240@endif target-libgomp-bootstrap
43241
43242
43243.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
43244.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
43245maybe-all-stage2-target-libgomp:
43246maybe-clean-stage2-target-libgomp:
43247@if target-libgomp-bootstrap
43248maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
43249all-stage2: all-stage2-target-libgomp
43250TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
43251all-stage2-target-libgomp: configure-stage2-target-libgomp
43252 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
43253 @r=`${PWD_COMMAND}`; export r; \
43254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43255 TFLAGS="$(STAGE2_TFLAGS)"; \
43256 $(NORMAL_TARGET_EXPORTS) \
43257 \
43258 cd $(TARGET_SUBDIR)/libgomp && \
43259 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43260 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43261 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43262 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43263 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43264 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43265 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43266 $(EXTRA_TARGET_FLAGS) \
43267 TFLAGS="$(STAGE2_TFLAGS)" \
43268 $(TARGET-stage2-target-libgomp)
43269
43270maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
43271clean-stage2: clean-stage2-target-libgomp
43272clean-stage2-target-libgomp:
43273 @if [ $(current_stage) = stage2 ]; then \
43274 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
43275 else \
43276 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
43277 $(MAKE) stage2-start; \
43278 fi; \
43279 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 43280 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
43281@endif target-libgomp-bootstrap
43282
43283
43284.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
43285.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
43286maybe-all-stage3-target-libgomp:
43287maybe-clean-stage3-target-libgomp:
43288@if target-libgomp-bootstrap
43289maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
43290all-stage3: all-stage3-target-libgomp
43291TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
43292all-stage3-target-libgomp: configure-stage3-target-libgomp
43293 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
43294 @r=`${PWD_COMMAND}`; export r; \
43295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43296 TFLAGS="$(STAGE3_TFLAGS)"; \
43297 $(NORMAL_TARGET_EXPORTS) \
43298 \
43299 cd $(TARGET_SUBDIR)/libgomp && \
43300 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43301 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43302 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43303 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43304 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43305 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43306 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43307 $(EXTRA_TARGET_FLAGS) \
43308 TFLAGS="$(STAGE3_TFLAGS)" \
43309 $(TARGET-stage3-target-libgomp)
43310
43311maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
43312clean-stage3: clean-stage3-target-libgomp
43313clean-stage3-target-libgomp:
43314 @if [ $(current_stage) = stage3 ]; then \
43315 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
43316 else \
43317 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
43318 $(MAKE) stage3-start; \
43319 fi; \
43320 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 43321 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
43322@endif target-libgomp-bootstrap
43323
43324
43325.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
43326.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
43327maybe-all-stage4-target-libgomp:
43328maybe-clean-stage4-target-libgomp:
43329@if target-libgomp-bootstrap
43330maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
43331all-stage4: all-stage4-target-libgomp
43332TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
43333all-stage4-target-libgomp: configure-stage4-target-libgomp
43334 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
43335 @r=`${PWD_COMMAND}`; export r; \
43336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43337 TFLAGS="$(STAGE4_TFLAGS)"; \
43338 $(NORMAL_TARGET_EXPORTS) \
43339 \
43340 cd $(TARGET_SUBDIR)/libgomp && \
43341 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43342 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43343 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43344 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43345 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43346 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43347 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43348 $(EXTRA_TARGET_FLAGS) \
43349 TFLAGS="$(STAGE4_TFLAGS)" \
43350 $(TARGET-stage4-target-libgomp)
43351
43352maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
43353clean-stage4: clean-stage4-target-libgomp
43354clean-stage4-target-libgomp:
43355 @if [ $(current_stage) = stage4 ]; then \
43356 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
43357 else \
43358 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
43359 $(MAKE) stage4-start; \
43360 fi; \
43361 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 43362 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
43363@endif target-libgomp-bootstrap
43364
43365
43366.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
43367.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
43368maybe-all-stageprofile-target-libgomp:
43369maybe-clean-stageprofile-target-libgomp:
43370@if target-libgomp-bootstrap
43371maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
43372all-stageprofile: all-stageprofile-target-libgomp
43373TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
43374all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
43375 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
43376 @r=`${PWD_COMMAND}`; export r; \
43377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43378 TFLAGS="$(STAGEprofile_TFLAGS)"; \
43379 $(NORMAL_TARGET_EXPORTS) \
43380 \
43381 cd $(TARGET_SUBDIR)/libgomp && \
43382 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43383 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43384 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43385 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43386 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43387 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43388 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43389 $(EXTRA_TARGET_FLAGS) \
43390 TFLAGS="$(STAGEprofile_TFLAGS)" \
43391 $(TARGET-stageprofile-target-libgomp)
43392
43393maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
43394clean-stageprofile: clean-stageprofile-target-libgomp
43395clean-stageprofile-target-libgomp:
43396 @if [ $(current_stage) = stageprofile ]; then \
43397 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
43398 else \
43399 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
43400 $(MAKE) stageprofile-start; \
43401 fi; \
43402 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 43403 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
43404@endif target-libgomp-bootstrap
43405
43406
43407.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
43408.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
43409maybe-all-stagefeedback-target-libgomp:
43410maybe-clean-stagefeedback-target-libgomp:
43411@if target-libgomp-bootstrap
43412maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
43413all-stagefeedback: all-stagefeedback-target-libgomp
43414TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
43415all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
43416 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
43417 @r=`${PWD_COMMAND}`; export r; \
43418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43419 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
43420 $(NORMAL_TARGET_EXPORTS) \
43421 \
43422 cd $(TARGET_SUBDIR)/libgomp && \
43423 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43424 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43425 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43426 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43427 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43428 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43429 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43430 $(EXTRA_TARGET_FLAGS) \
43431 TFLAGS="$(STAGEfeedback_TFLAGS)" \
43432 $(TARGET-stagefeedback-target-libgomp)
43433
43434maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
43435clean-stagefeedback: clean-stagefeedback-target-libgomp
43436clean-stagefeedback-target-libgomp:
43437 @if [ $(current_stage) = stagefeedback ]; then \
43438 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
43439 else \
43440 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
43441 $(MAKE) stagefeedback-start; \
43442 fi; \
43443 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 43444 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
43445@endif target-libgomp-bootstrap
43446
43447
43448
43449
b3ded179
PB
43450
43451
43452.PHONY: check-target-libgomp maybe-check-target-libgomp
43453maybe-check-target-libgomp:
43454@if target-libgomp
43455maybe-check-target-libgomp: check-target-libgomp
43456
43457check-target-libgomp:
43458 @: $(MAKE); $(unstage)
43459 @r=`${PWD_COMMAND}`; export r; \
43460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43461 $(NORMAL_TARGET_EXPORTS) \
43462 (cd $(TARGET_SUBDIR)/libgomp && \
43463 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
43464
43465@endif target-libgomp
43466
43467.PHONY: install-target-libgomp maybe-install-target-libgomp
43468maybe-install-target-libgomp:
43469@if target-libgomp
43470maybe-install-target-libgomp: install-target-libgomp
43471
43472install-target-libgomp: installdirs
43473 @: $(MAKE); $(unstage)
43474 @r=`${PWD_COMMAND}`; export r; \
43475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43476 $(NORMAL_TARGET_EXPORTS) \
43477 (cd $(TARGET_SUBDIR)/libgomp && \
43478 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
43479
43480@endif target-libgomp
43481
9b980aa1
RW
43482.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
43483maybe-install-strip-target-libgomp:
43484@if target-libgomp
43485maybe-install-strip-target-libgomp: install-strip-target-libgomp
43486
43487install-strip-target-libgomp: installdirs
43488 @: $(MAKE); $(unstage)
43489 @r=`${PWD_COMMAND}`; export r; \
43490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43491 $(NORMAL_TARGET_EXPORTS) \
43492 (cd $(TARGET_SUBDIR)/libgomp && \
43493 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43494
43495@endif target-libgomp
43496
56a8fe78 43497# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
43498
43499.PHONY: maybe-info-target-libgomp info-target-libgomp
43500maybe-info-target-libgomp:
43501@if target-libgomp
43502maybe-info-target-libgomp: info-target-libgomp
43503
43504info-target-libgomp: \
43505 configure-target-libgomp
43506 @: $(MAKE); $(unstage)
43507 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43508 r=`${PWD_COMMAND}`; export r; \
43509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43510 $(NORMAL_TARGET_EXPORTS) \
43511 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
43512 for flag in $(EXTRA_TARGET_FLAGS); do \
43513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43514 done; \
43515 (cd $(TARGET_SUBDIR)/libgomp && \
43516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43518 "RANLIB=$${RANLIB}" \
0c24b341 43519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43520 info) \
43521 || exit 1
43522
43523@endif target-libgomp
43524
43525.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
43526maybe-dvi-target-libgomp:
43527@if target-libgomp
43528maybe-dvi-target-libgomp: dvi-target-libgomp
43529
43530dvi-target-libgomp: \
43531 configure-target-libgomp
43532 @: $(MAKE); $(unstage)
43533 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43534 r=`${PWD_COMMAND}`; export r; \
43535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43536 $(NORMAL_TARGET_EXPORTS) \
43537 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
43538 for flag in $(EXTRA_TARGET_FLAGS); do \
43539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43540 done; \
43541 (cd $(TARGET_SUBDIR)/libgomp && \
43542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43544 "RANLIB=$${RANLIB}" \
0c24b341 43545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43546 dvi) \
43547 || exit 1
43548
43549@endif target-libgomp
43550
56a8fe78
DD
43551.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
43552maybe-pdf-target-libgomp:
43553@if target-libgomp
43554maybe-pdf-target-libgomp: pdf-target-libgomp
43555
43556pdf-target-libgomp: \
43557 configure-target-libgomp
43558 @: $(MAKE); $(unstage)
43559 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43560 r=`${PWD_COMMAND}`; export r; \
43561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43562 $(NORMAL_TARGET_EXPORTS) \
43563 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp" ; \
43564 for flag in $(EXTRA_TARGET_FLAGS); do \
43565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43566 done; \
43567 (cd $(TARGET_SUBDIR)/libgomp && \
43568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43570 "RANLIB=$${RANLIB}" \
0c24b341 43571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43572 pdf) \
43573 || exit 1
43574
43575@endif target-libgomp
43576
b3ded179
PB
43577.PHONY: maybe-html-target-libgomp html-target-libgomp
43578maybe-html-target-libgomp:
43579@if target-libgomp
43580maybe-html-target-libgomp: html-target-libgomp
43581
43582html-target-libgomp: \
43583 configure-target-libgomp
43584 @: $(MAKE); $(unstage)
43585 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43586 r=`${PWD_COMMAND}`; export r; \
43587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43588 $(NORMAL_TARGET_EXPORTS) \
43589 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
43590 for flag in $(EXTRA_TARGET_FLAGS); do \
43591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43592 done; \
43593 (cd $(TARGET_SUBDIR)/libgomp && \
43594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43596 "RANLIB=$${RANLIB}" \
0c24b341 43597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43598 html) \
43599 || exit 1
43600
43601@endif target-libgomp
43602
43603.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
43604maybe-TAGS-target-libgomp:
43605@if target-libgomp
43606maybe-TAGS-target-libgomp: TAGS-target-libgomp
43607
43608TAGS-target-libgomp: \
43609 configure-target-libgomp
43610 @: $(MAKE); $(unstage)
43611 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43612 r=`${PWD_COMMAND}`; export r; \
43613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43614 $(NORMAL_TARGET_EXPORTS) \
43615 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
43616 for flag in $(EXTRA_TARGET_FLAGS); do \
43617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43618 done; \
43619 (cd $(TARGET_SUBDIR)/libgomp && \
43620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43622 "RANLIB=$${RANLIB}" \
0c24b341 43623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43624 TAGS) \
43625 || exit 1
43626
43627@endif target-libgomp
43628
43629.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
43630maybe-install-info-target-libgomp:
43631@if target-libgomp
43632maybe-install-info-target-libgomp: install-info-target-libgomp
43633
43634install-info-target-libgomp: \
43635 configure-target-libgomp \
43636 info-target-libgomp
43637 @: $(MAKE); $(unstage)
43638 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43639 r=`${PWD_COMMAND}`; export r; \
43640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43641 $(NORMAL_TARGET_EXPORTS) \
43642 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
43643 for flag in $(EXTRA_TARGET_FLAGS); do \
43644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43645 done; \
43646 (cd $(TARGET_SUBDIR)/libgomp && \
43647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43649 "RANLIB=$${RANLIB}" \
0c24b341 43650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43651 install-info) \
43652 || exit 1
43653
43654@endif target-libgomp
43655
a3ca38d2
DD
43656.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
43657maybe-install-pdf-target-libgomp:
43658@if target-libgomp
43659maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
43660
43661install-pdf-target-libgomp: \
43662 configure-target-libgomp \
43663 pdf-target-libgomp
43664 @: $(MAKE); $(unstage)
43665 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43666 r=`${PWD_COMMAND}`; export r; \
43667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43668 $(NORMAL_TARGET_EXPORTS) \
43669 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp" ; \
43670 for flag in $(EXTRA_TARGET_FLAGS); do \
43671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43672 done; \
43673 (cd $(TARGET_SUBDIR)/libgomp && \
43674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43676 "RANLIB=$${RANLIB}" \
0c24b341 43677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43678 install-pdf) \
43679 || exit 1
43680
43681@endif target-libgomp
43682
108a6f8e
CD
43683.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
43684maybe-install-html-target-libgomp:
43685@if target-libgomp
43686maybe-install-html-target-libgomp: install-html-target-libgomp
43687
43688install-html-target-libgomp: \
43689 configure-target-libgomp \
43690 html-target-libgomp
43691 @: $(MAKE); $(unstage)
43692 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43693 r=`${PWD_COMMAND}`; export r; \
43694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43695 $(NORMAL_TARGET_EXPORTS) \
43696 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
43697 for flag in $(EXTRA_TARGET_FLAGS); do \
43698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43699 done; \
43700 (cd $(TARGET_SUBDIR)/libgomp && \
43701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43703 "RANLIB=$${RANLIB}" \
0c24b341 43704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43705 install-html) \
43706 || exit 1
43707
43708@endif target-libgomp
43709
b3ded179
PB
43710.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
43711maybe-installcheck-target-libgomp:
43712@if target-libgomp
43713maybe-installcheck-target-libgomp: installcheck-target-libgomp
43714
43715installcheck-target-libgomp: \
43716 configure-target-libgomp
43717 @: $(MAKE); $(unstage)
43718 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43719 r=`${PWD_COMMAND}`; export r; \
43720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43721 $(NORMAL_TARGET_EXPORTS) \
43722 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
43723 for flag in $(EXTRA_TARGET_FLAGS); do \
43724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43725 done; \
43726 (cd $(TARGET_SUBDIR)/libgomp && \
43727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43729 "RANLIB=$${RANLIB}" \
0c24b341 43730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43731 installcheck) \
43732 || exit 1
43733
43734@endif target-libgomp
43735
43736.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
43737maybe-mostlyclean-target-libgomp:
43738@if target-libgomp
43739maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
43740
43741mostlyclean-target-libgomp:
43742 @: $(MAKE); $(unstage)
43743 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43744 r=`${PWD_COMMAND}`; export r; \
43745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43746 $(NORMAL_TARGET_EXPORTS) \
43747 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
43748 for flag in $(EXTRA_TARGET_FLAGS); do \
43749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43750 done; \
43751 (cd $(TARGET_SUBDIR)/libgomp && \
43752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43754 "RANLIB=$${RANLIB}" \
0c24b341 43755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43756 mostlyclean) \
43757 || exit 1
43758
43759@endif target-libgomp
43760
43761.PHONY: maybe-clean-target-libgomp clean-target-libgomp
43762maybe-clean-target-libgomp:
43763@if target-libgomp
43764maybe-clean-target-libgomp: clean-target-libgomp
43765
43766clean-target-libgomp:
43767 @: $(MAKE); $(unstage)
43768 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43769 r=`${PWD_COMMAND}`; export r; \
43770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43771 $(NORMAL_TARGET_EXPORTS) \
43772 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
43773 for flag in $(EXTRA_TARGET_FLAGS); do \
43774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43775 done; \
43776 (cd $(TARGET_SUBDIR)/libgomp && \
43777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43779 "RANLIB=$${RANLIB}" \
0c24b341 43780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43781 clean) \
43782 || exit 1
43783
43784@endif target-libgomp
43785
43786.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
43787maybe-distclean-target-libgomp:
43788@if target-libgomp
43789maybe-distclean-target-libgomp: distclean-target-libgomp
43790
43791distclean-target-libgomp:
43792 @: $(MAKE); $(unstage)
43793 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43794 r=`${PWD_COMMAND}`; export r; \
43795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43796 $(NORMAL_TARGET_EXPORTS) \
43797 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
43798 for flag in $(EXTRA_TARGET_FLAGS); do \
43799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43800 done; \
43801 (cd $(TARGET_SUBDIR)/libgomp && \
43802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43804 "RANLIB=$${RANLIB}" \
0c24b341 43805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43806 distclean) \
43807 || exit 1
43808
43809@endif target-libgomp
43810
43811.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
43812maybe-maintainer-clean-target-libgomp:
43813@if target-libgomp
43814maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
43815
43816maintainer-clean-target-libgomp:
43817 @: $(MAKE); $(unstage)
43818 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
43819 r=`${PWD_COMMAND}`; export r; \
43820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43821 $(NORMAL_TARGET_EXPORTS) \
43822 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
43823 for flag in $(EXTRA_TARGET_FLAGS); do \
43824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43825 done; \
43826 (cd $(TARGET_SUBDIR)/libgomp && \
43827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43829 "RANLIB=$${RANLIB}" \
0c24b341 43830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
43831 maintainer-clean) \
43832 || exit 1
43833
43834@endif target-libgomp
43835
43836
43837
7ec59b9e
L
43838
43839
43840.PHONY: configure-target-libitm maybe-configure-target-libitm
43841maybe-configure-target-libitm:
43842@if gcc-bootstrap
43843configure-target-libitm: stage_current
43844@endif gcc-bootstrap
43845@if target-libitm
43846maybe-configure-target-libitm: configure-target-libitm
43847configure-target-libitm:
43848 @: $(MAKE); $(unstage)
43849 @r=`${PWD_COMMAND}`; export r; \
43850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43851 echo "Checking multilib configuration for libitm..."; \
43852 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm ; \
43853 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null ; \
43854 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
43855 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
43856 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
43857 else \
43858 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
43859 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
43860 fi; \
43861 else \
43862 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
43863 fi; \
43864 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
43865 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm ; \
43866 $(NORMAL_TARGET_EXPORTS) \
43867 echo Configuring in $(TARGET_SUBDIR)/libitm; \
43868 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
43869 case $(srcdir) in \
43870 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43871 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
43872 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43873 esac; \
43874 srcdiroption="--srcdir=$${topdir}/libitm"; \
43875 libsrcdir="$$s/libitm"; \
43876 rm -f no-such-file || : ; \
43877 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
43878 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43879 --target=${target_alias} $${srcdiroption} \
43880 || exit 1
43881@endif target-libitm
43882
43883
43884
43885
43886
43887.PHONY: all-target-libitm maybe-all-target-libitm
43888maybe-all-target-libitm:
43889@if gcc-bootstrap
43890all-target-libitm: stage_current
43891@endif gcc-bootstrap
43892@if target-libitm
43893TARGET-target-libitm=all
43894maybe-all-target-libitm: all-target-libitm
43895all-target-libitm: configure-target-libitm
43896 @: $(MAKE); $(unstage)
43897 @r=`${PWD_COMMAND}`; export r; \
43898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43899 $(NORMAL_TARGET_EXPORTS) \
43900 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 43901 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
43902 $(TARGET-target-libitm))
43903@endif target-libitm
43904
43905
43906
43907
43908
43909.PHONY: check-target-libitm maybe-check-target-libitm
43910maybe-check-target-libitm:
43911@if target-libitm
43912maybe-check-target-libitm: check-target-libitm
43913
43914check-target-libitm:
43915 @: $(MAKE); $(unstage)
43916 @r=`${PWD_COMMAND}`; export r; \
43917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43918 $(NORMAL_TARGET_EXPORTS) \
43919 (cd $(TARGET_SUBDIR)/libitm && \
43920 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
43921
43922@endif target-libitm
43923
43924.PHONY: install-target-libitm maybe-install-target-libitm
43925maybe-install-target-libitm:
43926@if target-libitm
43927maybe-install-target-libitm: install-target-libitm
43928
43929install-target-libitm: installdirs
43930 @: $(MAKE); $(unstage)
43931 @r=`${PWD_COMMAND}`; export r; \
43932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43933 $(NORMAL_TARGET_EXPORTS) \
43934 (cd $(TARGET_SUBDIR)/libitm && \
43935 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
43936
43937@endif target-libitm
43938
43939.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
43940maybe-install-strip-target-libitm:
43941@if target-libitm
43942maybe-install-strip-target-libitm: install-strip-target-libitm
43943
43944install-strip-target-libitm: installdirs
43945 @: $(MAKE); $(unstage)
43946 @r=`${PWD_COMMAND}`; export r; \
43947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43948 $(NORMAL_TARGET_EXPORTS) \
43949 (cd $(TARGET_SUBDIR)/libitm && \
43950 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43951
43952@endif target-libitm
43953
43954# Other targets (info, dvi, pdf, etc.)
43955
43956.PHONY: maybe-info-target-libitm info-target-libitm
43957maybe-info-target-libitm:
43958@if target-libitm
43959maybe-info-target-libitm: info-target-libitm
43960
43961info-target-libitm: \
43962 configure-target-libitm
43963 @: $(MAKE); $(unstage)
43964 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
43965 r=`${PWD_COMMAND}`; export r; \
43966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43967 $(NORMAL_TARGET_EXPORTS) \
43968 echo "Doing info in $(TARGET_SUBDIR)/libitm" ; \
43969 for flag in $(EXTRA_TARGET_FLAGS); do \
43970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43971 done; \
43972 (cd $(TARGET_SUBDIR)/libitm && \
43973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43975 "RANLIB=$${RANLIB}" \
43976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43977 info) \
43978 || exit 1
43979
43980@endif target-libitm
43981
43982.PHONY: maybe-dvi-target-libitm dvi-target-libitm
43983maybe-dvi-target-libitm:
43984@if target-libitm
43985maybe-dvi-target-libitm: dvi-target-libitm
43986
43987dvi-target-libitm: \
43988 configure-target-libitm
43989 @: $(MAKE); $(unstage)
43990 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
43991 r=`${PWD_COMMAND}`; export r; \
43992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43993 $(NORMAL_TARGET_EXPORTS) \
43994 echo "Doing dvi in $(TARGET_SUBDIR)/libitm" ; \
43995 for flag in $(EXTRA_TARGET_FLAGS); do \
43996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43997 done; \
43998 (cd $(TARGET_SUBDIR)/libitm && \
43999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44001 "RANLIB=$${RANLIB}" \
44002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44003 dvi) \
44004 || exit 1
44005
44006@endif target-libitm
44007
44008.PHONY: maybe-pdf-target-libitm pdf-target-libitm
44009maybe-pdf-target-libitm:
44010@if target-libitm
44011maybe-pdf-target-libitm: pdf-target-libitm
44012
44013pdf-target-libitm: \
44014 configure-target-libitm
44015 @: $(MAKE); $(unstage)
44016 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44017 r=`${PWD_COMMAND}`; export r; \
44018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44019 $(NORMAL_TARGET_EXPORTS) \
44020 echo "Doing pdf in $(TARGET_SUBDIR)/libitm" ; \
44021 for flag in $(EXTRA_TARGET_FLAGS); do \
44022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44023 done; \
44024 (cd $(TARGET_SUBDIR)/libitm && \
44025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44027 "RANLIB=$${RANLIB}" \
44028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44029 pdf) \
44030 || exit 1
44031
44032@endif target-libitm
44033
44034.PHONY: maybe-html-target-libitm html-target-libitm
44035maybe-html-target-libitm:
44036@if target-libitm
44037maybe-html-target-libitm: html-target-libitm
44038
44039html-target-libitm: \
44040 configure-target-libitm
44041 @: $(MAKE); $(unstage)
44042 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44043 r=`${PWD_COMMAND}`; export r; \
44044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44045 $(NORMAL_TARGET_EXPORTS) \
44046 echo "Doing html in $(TARGET_SUBDIR)/libitm" ; \
44047 for flag in $(EXTRA_TARGET_FLAGS); do \
44048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44049 done; \
44050 (cd $(TARGET_SUBDIR)/libitm && \
44051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44053 "RANLIB=$${RANLIB}" \
44054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44055 html) \
44056 || exit 1
44057
44058@endif target-libitm
44059
44060.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
44061maybe-TAGS-target-libitm:
44062@if target-libitm
44063maybe-TAGS-target-libitm: TAGS-target-libitm
44064
44065TAGS-target-libitm: \
44066 configure-target-libitm
44067 @: $(MAKE); $(unstage)
44068 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44069 r=`${PWD_COMMAND}`; export r; \
44070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44071 $(NORMAL_TARGET_EXPORTS) \
44072 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm" ; \
44073 for flag in $(EXTRA_TARGET_FLAGS); do \
44074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44075 done; \
44076 (cd $(TARGET_SUBDIR)/libitm && \
44077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44079 "RANLIB=$${RANLIB}" \
44080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44081 TAGS) \
44082 || exit 1
44083
44084@endif target-libitm
44085
44086.PHONY: maybe-install-info-target-libitm install-info-target-libitm
44087maybe-install-info-target-libitm:
44088@if target-libitm
44089maybe-install-info-target-libitm: install-info-target-libitm
44090
44091install-info-target-libitm: \
44092 configure-target-libitm \
44093 info-target-libitm
44094 @: $(MAKE); $(unstage)
44095 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44096 r=`${PWD_COMMAND}`; export r; \
44097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44098 $(NORMAL_TARGET_EXPORTS) \
44099 echo "Doing install-info in $(TARGET_SUBDIR)/libitm" ; \
44100 for flag in $(EXTRA_TARGET_FLAGS); do \
44101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44102 done; \
44103 (cd $(TARGET_SUBDIR)/libitm && \
44104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44106 "RANLIB=$${RANLIB}" \
44107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44108 install-info) \
44109 || exit 1
44110
44111@endif target-libitm
44112
44113.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
44114maybe-install-pdf-target-libitm:
44115@if target-libitm
44116maybe-install-pdf-target-libitm: install-pdf-target-libitm
44117
44118install-pdf-target-libitm: \
44119 configure-target-libitm \
44120 pdf-target-libitm
44121 @: $(MAKE); $(unstage)
44122 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44123 r=`${PWD_COMMAND}`; export r; \
44124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44125 $(NORMAL_TARGET_EXPORTS) \
44126 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm" ; \
44127 for flag in $(EXTRA_TARGET_FLAGS); do \
44128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44129 done; \
44130 (cd $(TARGET_SUBDIR)/libitm && \
44131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44133 "RANLIB=$${RANLIB}" \
44134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44135 install-pdf) \
44136 || exit 1
44137
44138@endif target-libitm
44139
44140.PHONY: maybe-install-html-target-libitm install-html-target-libitm
44141maybe-install-html-target-libitm:
44142@if target-libitm
44143maybe-install-html-target-libitm: install-html-target-libitm
44144
44145install-html-target-libitm: \
44146 configure-target-libitm \
44147 html-target-libitm
44148 @: $(MAKE); $(unstage)
44149 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44150 r=`${PWD_COMMAND}`; export r; \
44151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44152 $(NORMAL_TARGET_EXPORTS) \
44153 echo "Doing install-html in $(TARGET_SUBDIR)/libitm" ; \
44154 for flag in $(EXTRA_TARGET_FLAGS); do \
44155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44156 done; \
44157 (cd $(TARGET_SUBDIR)/libitm && \
44158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44160 "RANLIB=$${RANLIB}" \
44161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44162 install-html) \
44163 || exit 1
44164
44165@endif target-libitm
44166
44167.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
44168maybe-installcheck-target-libitm:
44169@if target-libitm
44170maybe-installcheck-target-libitm: installcheck-target-libitm
44171
44172installcheck-target-libitm: \
44173 configure-target-libitm
44174 @: $(MAKE); $(unstage)
44175 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44176 r=`${PWD_COMMAND}`; export r; \
44177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44178 $(NORMAL_TARGET_EXPORTS) \
44179 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm" ; \
44180 for flag in $(EXTRA_TARGET_FLAGS); do \
44181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44182 done; \
44183 (cd $(TARGET_SUBDIR)/libitm && \
44184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44186 "RANLIB=$${RANLIB}" \
44187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44188 installcheck) \
44189 || exit 1
44190
44191@endif target-libitm
44192
44193.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
44194maybe-mostlyclean-target-libitm:
44195@if target-libitm
44196maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
44197
44198mostlyclean-target-libitm:
44199 @: $(MAKE); $(unstage)
44200 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44201 r=`${PWD_COMMAND}`; export r; \
44202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44203 $(NORMAL_TARGET_EXPORTS) \
44204 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm" ; \
44205 for flag in $(EXTRA_TARGET_FLAGS); do \
44206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44207 done; \
44208 (cd $(TARGET_SUBDIR)/libitm && \
44209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44211 "RANLIB=$${RANLIB}" \
44212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44213 mostlyclean) \
44214 || exit 1
44215
44216@endif target-libitm
44217
44218.PHONY: maybe-clean-target-libitm clean-target-libitm
44219maybe-clean-target-libitm:
44220@if target-libitm
44221maybe-clean-target-libitm: clean-target-libitm
44222
44223clean-target-libitm:
44224 @: $(MAKE); $(unstage)
44225 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44226 r=`${PWD_COMMAND}`; export r; \
44227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44228 $(NORMAL_TARGET_EXPORTS) \
44229 echo "Doing clean in $(TARGET_SUBDIR)/libitm" ; \
44230 for flag in $(EXTRA_TARGET_FLAGS); do \
44231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44232 done; \
44233 (cd $(TARGET_SUBDIR)/libitm && \
44234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44236 "RANLIB=$${RANLIB}" \
44237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44238 clean) \
44239 || exit 1
44240
44241@endif target-libitm
44242
44243.PHONY: maybe-distclean-target-libitm distclean-target-libitm
44244maybe-distclean-target-libitm:
44245@if target-libitm
44246maybe-distclean-target-libitm: distclean-target-libitm
44247
44248distclean-target-libitm:
44249 @: $(MAKE); $(unstage)
44250 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44251 r=`${PWD_COMMAND}`; export r; \
44252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44253 $(NORMAL_TARGET_EXPORTS) \
44254 echo "Doing distclean in $(TARGET_SUBDIR)/libitm" ; \
44255 for flag in $(EXTRA_TARGET_FLAGS); do \
44256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44257 done; \
44258 (cd $(TARGET_SUBDIR)/libitm && \
44259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44261 "RANLIB=$${RANLIB}" \
44262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44263 distclean) \
44264 || exit 1
44265
44266@endif target-libitm
44267
44268.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
44269maybe-maintainer-clean-target-libitm:
44270@if target-libitm
44271maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
44272
44273maintainer-clean-target-libitm:
44274 @: $(MAKE); $(unstage)
44275 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
44276 r=`${PWD_COMMAND}`; export r; \
44277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44278 $(NORMAL_TARGET_EXPORTS) \
44279 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm" ; \
44280 for flag in $(EXTRA_TARGET_FLAGS); do \
44281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44282 done; \
44283 (cd $(TARGET_SUBDIR)/libitm && \
44284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44286 "RANLIB=$${RANLIB}" \
44287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44288 maintainer-clean) \
44289 || exit 1
44290
44291@endif target-libitm
44292
44293
44294
44295
44296
44297.PHONY: configure-target-libatomic maybe-configure-target-libatomic
44298maybe-configure-target-libatomic:
44299@if gcc-bootstrap
44300configure-target-libatomic: stage_current
44301@endif gcc-bootstrap
44302@if target-libatomic
44303maybe-configure-target-libatomic: configure-target-libatomic
44304configure-target-libatomic:
44305 @: $(MAKE); $(unstage)
44306 @r=`${PWD_COMMAND}`; export r; \
44307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44308 echo "Checking multilib configuration for libatomic..."; \
44309 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
44310 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null ; \
44311 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
44312 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
44313 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
44314 else \
44315 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
44316 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
44317 fi; \
44318 else \
44319 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
44320 fi; \
44321 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
44322 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
44323 $(NORMAL_TARGET_EXPORTS) \
44324 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
44325 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
44326 case $(srcdir) in \
44327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44328 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
44329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44330 esac; \
44331 srcdiroption="--srcdir=$${topdir}/libatomic"; \
44332 libsrcdir="$$s/libatomic"; \
44333 rm -f no-such-file || : ; \
44334 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
44335 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44336 --target=${target_alias} $${srcdiroption} \
44337 || exit 1
44338@endif target-libatomic
44339
44340
44341
44342
44343
44344.PHONY: all-target-libatomic maybe-all-target-libatomic
44345maybe-all-target-libatomic:
44346@if gcc-bootstrap
44347all-target-libatomic: stage_current
44348@endif gcc-bootstrap
44349@if target-libatomic
44350TARGET-target-libatomic=all
44351maybe-all-target-libatomic: all-target-libatomic
44352all-target-libatomic: configure-target-libatomic
44353 @: $(MAKE); $(unstage)
44354 @r=`${PWD_COMMAND}`; export r; \
44355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44356 $(NORMAL_TARGET_EXPORTS) \
44357 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 44358 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
44359 $(TARGET-target-libatomic))
44360@endif target-libatomic
44361
44362
44363
44364
44365
44366.PHONY: check-target-libatomic maybe-check-target-libatomic
44367maybe-check-target-libatomic:
44368@if target-libatomic
44369maybe-check-target-libatomic: check-target-libatomic
44370
44371check-target-libatomic:
44372 @: $(MAKE); $(unstage)
44373 @r=`${PWD_COMMAND}`; export r; \
44374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44375 $(NORMAL_TARGET_EXPORTS) \
44376 (cd $(TARGET_SUBDIR)/libatomic && \
44377 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
44378
44379@endif target-libatomic
44380
44381.PHONY: install-target-libatomic maybe-install-target-libatomic
44382maybe-install-target-libatomic:
44383@if target-libatomic
44384maybe-install-target-libatomic: install-target-libatomic
44385
44386install-target-libatomic: installdirs
44387 @: $(MAKE); $(unstage)
44388 @r=`${PWD_COMMAND}`; export r; \
44389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44390 $(NORMAL_TARGET_EXPORTS) \
44391 (cd $(TARGET_SUBDIR)/libatomic && \
44392 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
44393
44394@endif target-libatomic
44395
44396.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
44397maybe-install-strip-target-libatomic:
44398@if target-libatomic
44399maybe-install-strip-target-libatomic: install-strip-target-libatomic
44400
44401install-strip-target-libatomic: installdirs
44402 @: $(MAKE); $(unstage)
44403 @r=`${PWD_COMMAND}`; export r; \
44404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44405 $(NORMAL_TARGET_EXPORTS) \
44406 (cd $(TARGET_SUBDIR)/libatomic && \
44407 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44408
44409@endif target-libatomic
44410
44411# Other targets (info, dvi, pdf, etc.)
44412
44413.PHONY: maybe-info-target-libatomic info-target-libatomic
44414maybe-info-target-libatomic:
44415@if target-libatomic
44416maybe-info-target-libatomic: info-target-libatomic
44417
44418info-target-libatomic: \
44419 configure-target-libatomic
44420 @: $(MAKE); $(unstage)
44421 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44422 r=`${PWD_COMMAND}`; export r; \
44423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44424 $(NORMAL_TARGET_EXPORTS) \
44425 echo "Doing info in $(TARGET_SUBDIR)/libatomic" ; \
44426 for flag in $(EXTRA_TARGET_FLAGS); do \
44427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44428 done; \
44429 (cd $(TARGET_SUBDIR)/libatomic && \
44430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44432 "RANLIB=$${RANLIB}" \
44433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44434 info) \
44435 || exit 1
44436
44437@endif target-libatomic
44438
44439.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
44440maybe-dvi-target-libatomic:
44441@if target-libatomic
44442maybe-dvi-target-libatomic: dvi-target-libatomic
44443
44444dvi-target-libatomic: \
44445 configure-target-libatomic
44446 @: $(MAKE); $(unstage)
44447 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44448 r=`${PWD_COMMAND}`; export r; \
44449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44450 $(NORMAL_TARGET_EXPORTS) \
44451 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic" ; \
44452 for flag in $(EXTRA_TARGET_FLAGS); do \
44453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44454 done; \
44455 (cd $(TARGET_SUBDIR)/libatomic && \
44456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44458 "RANLIB=$${RANLIB}" \
44459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44460 dvi) \
44461 || exit 1
44462
44463@endif target-libatomic
44464
44465.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
44466maybe-pdf-target-libatomic:
44467@if target-libatomic
44468maybe-pdf-target-libatomic: pdf-target-libatomic
44469
44470pdf-target-libatomic: \
44471 configure-target-libatomic
44472 @: $(MAKE); $(unstage)
44473 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44474 r=`${PWD_COMMAND}`; export r; \
44475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44476 $(NORMAL_TARGET_EXPORTS) \
44477 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic" ; \
44478 for flag in $(EXTRA_TARGET_FLAGS); do \
44479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44480 done; \
44481 (cd $(TARGET_SUBDIR)/libatomic && \
44482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44484 "RANLIB=$${RANLIB}" \
44485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44486 pdf) \
44487 || exit 1
44488
44489@endif target-libatomic
44490
44491.PHONY: maybe-html-target-libatomic html-target-libatomic
44492maybe-html-target-libatomic:
44493@if target-libatomic
44494maybe-html-target-libatomic: html-target-libatomic
44495
44496html-target-libatomic: \
44497 configure-target-libatomic
44498 @: $(MAKE); $(unstage)
44499 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44500 r=`${PWD_COMMAND}`; export r; \
44501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44502 $(NORMAL_TARGET_EXPORTS) \
44503 echo "Doing html in $(TARGET_SUBDIR)/libatomic" ; \
44504 for flag in $(EXTRA_TARGET_FLAGS); do \
44505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44506 done; \
44507 (cd $(TARGET_SUBDIR)/libatomic && \
44508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44510 "RANLIB=$${RANLIB}" \
44511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44512 html) \
44513 || exit 1
44514
44515@endif target-libatomic
44516
44517.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
44518maybe-TAGS-target-libatomic:
44519@if target-libatomic
44520maybe-TAGS-target-libatomic: TAGS-target-libatomic
44521
44522TAGS-target-libatomic: \
44523 configure-target-libatomic
44524 @: $(MAKE); $(unstage)
44525 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44526 r=`${PWD_COMMAND}`; export r; \
44527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44528 $(NORMAL_TARGET_EXPORTS) \
44529 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic" ; \
44530 for flag in $(EXTRA_TARGET_FLAGS); do \
44531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44532 done; \
44533 (cd $(TARGET_SUBDIR)/libatomic && \
44534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44536 "RANLIB=$${RANLIB}" \
44537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44538 TAGS) \
44539 || exit 1
44540
44541@endif target-libatomic
44542
44543.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
44544maybe-install-info-target-libatomic:
44545@if target-libatomic
44546maybe-install-info-target-libatomic: install-info-target-libatomic
44547
44548install-info-target-libatomic: \
44549 configure-target-libatomic \
44550 info-target-libatomic
44551 @: $(MAKE); $(unstage)
44552 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44553 r=`${PWD_COMMAND}`; export r; \
44554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44555 $(NORMAL_TARGET_EXPORTS) \
44556 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic" ; \
44557 for flag in $(EXTRA_TARGET_FLAGS); do \
44558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44559 done; \
44560 (cd $(TARGET_SUBDIR)/libatomic && \
44561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44563 "RANLIB=$${RANLIB}" \
44564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44565 install-info) \
44566 || exit 1
44567
44568@endif target-libatomic
44569
44570.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
44571maybe-install-pdf-target-libatomic:
44572@if target-libatomic
44573maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
44574
44575install-pdf-target-libatomic: \
44576 configure-target-libatomic \
44577 pdf-target-libatomic
44578 @: $(MAKE); $(unstage)
44579 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44580 r=`${PWD_COMMAND}`; export r; \
44581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44582 $(NORMAL_TARGET_EXPORTS) \
44583 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic" ; \
44584 for flag in $(EXTRA_TARGET_FLAGS); do \
44585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44586 done; \
44587 (cd $(TARGET_SUBDIR)/libatomic && \
44588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44590 "RANLIB=$${RANLIB}" \
44591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44592 install-pdf) \
44593 || exit 1
44594
44595@endif target-libatomic
44596
44597.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
44598maybe-install-html-target-libatomic:
44599@if target-libatomic
44600maybe-install-html-target-libatomic: install-html-target-libatomic
44601
44602install-html-target-libatomic: \
44603 configure-target-libatomic \
44604 html-target-libatomic
44605 @: $(MAKE); $(unstage)
44606 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44607 r=`${PWD_COMMAND}`; export r; \
44608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44609 $(NORMAL_TARGET_EXPORTS) \
44610 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic" ; \
44611 for flag in $(EXTRA_TARGET_FLAGS); do \
44612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44613 done; \
44614 (cd $(TARGET_SUBDIR)/libatomic && \
44615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44617 "RANLIB=$${RANLIB}" \
44618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44619 install-html) \
44620 || exit 1
44621
44622@endif target-libatomic
44623
44624.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
44625maybe-installcheck-target-libatomic:
44626@if target-libatomic
44627maybe-installcheck-target-libatomic: installcheck-target-libatomic
44628
44629installcheck-target-libatomic: \
44630 configure-target-libatomic
44631 @: $(MAKE); $(unstage)
44632 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44633 r=`${PWD_COMMAND}`; export r; \
44634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44635 $(NORMAL_TARGET_EXPORTS) \
44636 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic" ; \
44637 for flag in $(EXTRA_TARGET_FLAGS); do \
44638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44639 done; \
44640 (cd $(TARGET_SUBDIR)/libatomic && \
44641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44643 "RANLIB=$${RANLIB}" \
44644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44645 installcheck) \
44646 || exit 1
44647
44648@endif target-libatomic
44649
44650.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
44651maybe-mostlyclean-target-libatomic:
44652@if target-libatomic
44653maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
44654
44655mostlyclean-target-libatomic:
44656 @: $(MAKE); $(unstage)
44657 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44658 r=`${PWD_COMMAND}`; export r; \
44659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44660 $(NORMAL_TARGET_EXPORTS) \
44661 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic" ; \
44662 for flag in $(EXTRA_TARGET_FLAGS); do \
44663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44664 done; \
44665 (cd $(TARGET_SUBDIR)/libatomic && \
44666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44668 "RANLIB=$${RANLIB}" \
44669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44670 mostlyclean) \
44671 || exit 1
44672
44673@endif target-libatomic
44674
44675.PHONY: maybe-clean-target-libatomic clean-target-libatomic
44676maybe-clean-target-libatomic:
44677@if target-libatomic
44678maybe-clean-target-libatomic: clean-target-libatomic
44679
44680clean-target-libatomic:
44681 @: $(MAKE); $(unstage)
44682 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44683 r=`${PWD_COMMAND}`; export r; \
44684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44685 $(NORMAL_TARGET_EXPORTS) \
44686 echo "Doing clean in $(TARGET_SUBDIR)/libatomic" ; \
44687 for flag in $(EXTRA_TARGET_FLAGS); do \
44688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44689 done; \
44690 (cd $(TARGET_SUBDIR)/libatomic && \
44691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44693 "RANLIB=$${RANLIB}" \
44694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44695 clean) \
44696 || exit 1
44697
44698@endif target-libatomic
44699
44700.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
44701maybe-distclean-target-libatomic:
44702@if target-libatomic
44703maybe-distclean-target-libatomic: distclean-target-libatomic
44704
44705distclean-target-libatomic:
44706 @: $(MAKE); $(unstage)
44707 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44708 r=`${PWD_COMMAND}`; export r; \
44709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44710 $(NORMAL_TARGET_EXPORTS) \
44711 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic" ; \
44712 for flag in $(EXTRA_TARGET_FLAGS); do \
44713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44714 done; \
44715 (cd $(TARGET_SUBDIR)/libatomic && \
44716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44718 "RANLIB=$${RANLIB}" \
44719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44720 distclean) \
44721 || exit 1
44722
44723@endif target-libatomic
44724
44725.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
44726maybe-maintainer-clean-target-libatomic:
44727@if target-libatomic
44728maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
44729
44730maintainer-clean-target-libatomic:
44731 @: $(MAKE); $(unstage)
44732 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
44733 r=`${PWD_COMMAND}`; export r; \
44734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44735 $(NORMAL_TARGET_EXPORTS) \
44736 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic" ; \
44737 for flag in $(EXTRA_TARGET_FLAGS); do \
44738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44739 done; \
44740 (cd $(TARGET_SUBDIR)/libatomic && \
44741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44743 "RANLIB=$${RANLIB}" \
44744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44745 maintainer-clean) \
44746 || exit 1
44747
44748@endif target-libatomic
44749
44750
44751
7ec59b9e
L
44752@if target-libgomp
44753.PHONY: check-target-libgomp-c++
44754check-target-libgomp-c++:
44755 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
44756
44757@endif target-libgomp
44758
44759@if target-libitm
44760.PHONY: check-target-libitm-c++
44761check-target-libitm-c++:
44762 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
44763
44764@endif target-libitm
44765
15723a45
NN
44766# ----------
44767# GCC module
44768# ----------
44769
319cab08 44770@if gcc-no-bootstrap
252b5132 44771.PHONY: cross
72b2455a 44772cross: all-build all-gas all-ld
b40e3958
L
44773 @r=`${PWD_COMMAND}`; export r; \
44774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 44775 $(HOST_EXPORTS) \
252b5132 44776 echo "Building the C and C++ compiler"; \
5cec67bf 44777 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958
L
44778 @r=`${PWD_COMMAND}`; export r; \
44779 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
252b5132 44780 echo "Building runtime libraries"; \
656fdd47 44781 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 44782@endif gcc-no-bootstrap
252b5132 44783
6bd3dfaa 44784@if gcc
c50523ce
L
44785
44786.PHONY: check-gcc-c check-c
44787check-gcc-c:
44788 r=`${PWD_COMMAND}`; export r; \
44789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44790 $(HOST_EXPORTS) \
44791 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
44792check-c: check-gcc-c
44793
44794.PHONY: check-gcc-c++ check-c++
7d695d07 44795check-gcc-c++:
c50523ce
L
44796 r=`${PWD_COMMAND}`; export r; \
44797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44798 $(HOST_EXPORTS) \
7ec59b9e 44799 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 44800check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
44801
44802.PHONY: check-gcc-fortran check-fortran
44803check-gcc-fortran:
44804 r=`${PWD_COMMAND}`; export r; \
44805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44806 $(HOST_EXPORTS) \
44807 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e552509b 44808check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
c50523ce
L
44809
44810.PHONY: check-gcc-java check-java
44811check-gcc-java:
44812 r=`${PWD_COMMAND}`; export r; \
44813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44814 $(HOST_EXPORTS) \
44815 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
44816check-java: check-gcc-java check-target-libjava
44817
44818.PHONY: check-gcc-ada check-ada
44819check-gcc-ada:
44820 r=`${PWD_COMMAND}`; export r; \
44821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44822 $(HOST_EXPORTS) \
44823 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
44824check-ada: check-gcc-ada check-target-libada
44825
44826.PHONY: check-gcc-objc check-objc
44827check-gcc-objc:
44828 r=`${PWD_COMMAND}`; export r; \
44829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44830 $(HOST_EXPORTS) \
44831 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
44832check-objc: check-gcc-objc check-target-libobjc
44833
44834.PHONY: check-gcc-obj-c++ check-obj-c++
44835check-gcc-obj-c++:
44836 r=`${PWD_COMMAND}`; export r; \
44837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44838 $(HOST_EXPORTS) \
44839 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
44840check-obj-c++: check-gcc-obj-c++
7d695d07 44841
e552509b
ILT
44842.PHONY: check-gcc-go check-go
44843check-gcc-go:
44844 r=`${PWD_COMMAND}`; export r; \
44845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44846 $(HOST_EXPORTS) \
44847 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
44848check-go: check-gcc-go check-target-libgo
44849
252b5132 44850
7ec59b9e
L
44851# The gcc part of install-no-fixedincludes, which relies on an intimate
44852# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
44853.PHONY: gcc-install-no-fixedincludes
44854gcc-install-no-fixedincludes:
15723a45 44855 @if [ -f ./gcc/Makefile ]; then \
b40e3958 44856 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 44857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 44858 $(HOST_EXPORTS) \
7ec59b9e
L
44859 (cd ./gcc \
44860 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 44861 else true; fi
6bd3dfaa 44862@endif gcc
4fa63067 44863
b813574b
PB
44864# ---------------------
44865# GCC bootstrap support
44866# ---------------------
4fa63067 44867
b813574b
PB
44868# We track the current stage (the one in 'gcc') in the stage_current file.
44869# stage_last instead tracks the stage that was built last. These targets
44870# are dummy when toplevel bootstrap is not active.
4fa63067 44871
f70224b5 44872# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
44873# there, so $(unstage) should be run at various points. To avoid excessive
44874# recursive invocations of make, we "inline" them using a variable. These
44875# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
44876# to avoid warnings from the GNU Make job server.
f70224b5
PB
44877
44878unstage = :
44879stage = :
c52c6897 44880current_stage = ""
f70224b5 44881
b813574b 44882@if gcc-bootstrap
9daf3993 44883unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 44884stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 44885current_stage = "`cat stage_current 2> /dev/null`"
b813574b 44886@endif gcc-bootstrap
4fa63067 44887
f70224b5
PB
44888.PHONY: unstage stage
44889unstage:
0aed8855 44890 @: $(MAKE); $(unstage)
b813574b 44891stage:
0aed8855 44892 @: $(MAKE); $(stage)
1d39f329 44893
80911fe1
PB
44894# Disable commands for lean bootstrap.
44895LEAN = false
44896
dfdffa2c
PB
44897# We name the build directories for the various stages "stage1-gcc",
44898# "stage2-gcc","stage3-gcc", etc.
44899
44900# Since the 'compare' process will fail (on debugging information) if any
44901# directory names are different, we need to link the gcc directory for
0aed8855 44902# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
44903# the build directories constant as well. For the latter, we use naked names
44904# like 'gcc', because the scripts in that directory assume it. We use
44905# mv on platforms where symlinks to directories do not work or are not
44906# reliable.
44907
1d39f329
NN
44908# 'touch' doesn't work right on some platforms.
44909STAMP = echo timestamp >
44910
dfdffa2c
PB
44911# We only want to compare .o files, so set this!
44912objext = .o
44913
dfdffa2c 44914
319cab08 44915.PHONY: stage1-start stage1-end
dfdffa2c 44916
656fdd47 44917stage1-start::
0aed8855 44918 @: $(MAKE); $(stage); \
b813574b 44919 echo stage1 > stage_current ; \
b00612cc 44920 echo stage1 > stage_last; \
0aed8855 44921 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 44922@if bfd
b00612cc
PB
44923 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
44924 mkdir stage1-bfd; \
80911fe1 44925 mv stage1-bfd bfd
72b2455a
PB
44926@endif bfd
44927@if opcodes
b00612cc
PB
44928 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
44929 mkdir stage1-opcodes; \
80911fe1 44930 mv stage1-opcodes opcodes
72b2455a
PB
44931@endif opcodes
44932@if binutils
b00612cc
PB
44933 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
44934 mkdir stage1-binutils; \
80911fe1 44935 mv stage1-binutils binutils
72b2455a
PB
44936@endif binutils
44937@if gas
b00612cc
PB
44938 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
44939 mkdir stage1-gas; \
80911fe1 44940 mv stage1-gas gas
72b2455a
PB
44941@endif gas
44942@if gcc
b00612cc
PB
44943 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
44944 mkdir stage1-gcc; \
80911fe1 44945 mv stage1-gcc gcc
72b2455a 44946@endif gcc
4b900473
PB
44947@if gmp
44948 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
44949 mkdir stage1-gmp; \
44950 mv stage1-gmp gmp
44951@endif gmp
44952@if mpfr
44953 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
44954 mkdir stage1-mpfr; \
44955 mv stage1-mpfr mpfr
44956@endif mpfr
e8a5fa9c
RW
44957@if mpc
44958 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
44959 mkdir stage1-mpc; \
44960 mv stage1-mpc mpc
44961@endif mpc
7ec59b9e
L
44962@if isl
44963 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
44964 mkdir stage1-isl; \
44965 mv stage1-isl isl
44966@endif isl
e28c595f
JM
44967@if cloog
44968 @cd $(HOST_SUBDIR); [ -d stage1-cloog ] || \
44969 mkdir stage1-cloog; \
44970 mv stage1-cloog cloog
44971@endif cloog
1f53ca9a
AO
44972@if libelf
44973 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
44974 mkdir stage1-libelf; \
44975 mv stage1-libelf libelf
44976@endif libelf
93f9b408
ILT
44977@if gold
44978 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
44979 mkdir stage1-gold; \
44980 mv stage1-gold gold
44981@endif gold
72b2455a 44982@if intl
b00612cc
PB
44983 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
44984 mkdir stage1-intl; \
80911fe1 44985 mv stage1-intl intl
72b2455a
PB
44986@endif intl
44987@if ld
b00612cc
PB
44988 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
44989 mkdir stage1-ld; \
80911fe1 44990 mv stage1-ld ld
72b2455a 44991@endif ld
2bf680c4
ILT
44992@if libbacktrace
44993 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
44994 mkdir stage1-libbacktrace; \
44995 mv stage1-libbacktrace libbacktrace
44996@endif libbacktrace
72b2455a 44997@if libcpp
b00612cc
PB
44998 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
44999 mkdir stage1-libcpp; \
80911fe1 45000 mv stage1-libcpp libcpp
72b2455a 45001@endif libcpp
be01d343
PB
45002@if libdecnumber
45003 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
45004 mkdir stage1-libdecnumber; \
80911fe1 45005 mv stage1-libdecnumber libdecnumber
be01d343 45006@endif libdecnumber
72b2455a 45007@if libiberty
b00612cc
PB
45008 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
45009 mkdir stage1-libiberty; \
80911fe1 45010 mv stage1-libiberty libiberty
72b2455a
PB
45011@endif libiberty
45012@if zlib
b00612cc
PB
45013 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
45014 mkdir stage1-zlib; \
80911fe1 45015 mv stage1-zlib zlib
72b2455a 45016@endif zlib
700d40ca
ILT
45017@if lto-plugin
45018 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
45019 mkdir stage1-lto-plugin; \
45020 mv stage1-lto-plugin lto-plugin
45021@endif lto-plugin
0aed8855
PB
45022 @[ -d stage1-$(TARGET_SUBDIR) ] || \
45023 mkdir stage1-$(TARGET_SUBDIR); \
80911fe1 45024 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 45025
80911fe1 45026stage1-end::
72b2455a 45027@if bfd
80911fe1
PB
45028 @if test -d $(HOST_SUBDIR)/bfd ; then \
45029 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
0aed8855 45030 fi
72b2455a
PB
45031@endif bfd
45032@if opcodes
80911fe1
PB
45033 @if test -d $(HOST_SUBDIR)/opcodes ; then \
45034 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
0aed8855 45035 fi
72b2455a
PB
45036@endif opcodes
45037@if binutils
80911fe1
PB
45038 @if test -d $(HOST_SUBDIR)/binutils ; then \
45039 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
0aed8855 45040 fi
72b2455a
PB
45041@endif binutils
45042@if gas
80911fe1
PB
45043 @if test -d $(HOST_SUBDIR)/gas ; then \
45044 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
0aed8855 45045 fi
72b2455a
PB
45046@endif gas
45047@if gcc
80911fe1
PB
45048 @if test -d $(HOST_SUBDIR)/gcc ; then \
45049 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
0aed8855 45050 fi
72b2455a 45051@endif gcc
4b900473
PB
45052@if gmp
45053 @if test -d $(HOST_SUBDIR)/gmp ; then \
45054 cd $(HOST_SUBDIR); mv gmp stage1-gmp ; \
45055 fi
45056@endif gmp
45057@if mpfr
45058 @if test -d $(HOST_SUBDIR)/mpfr ; then \
45059 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr ; \
45060 fi
45061@endif mpfr
e8a5fa9c
RW
45062@if mpc
45063 @if test -d $(HOST_SUBDIR)/mpc ; then \
45064 cd $(HOST_SUBDIR); mv mpc stage1-mpc ; \
45065 fi
45066@endif mpc
7ec59b9e
L
45067@if isl
45068 @if test -d $(HOST_SUBDIR)/isl ; then \
45069 cd $(HOST_SUBDIR); mv isl stage1-isl ; \
e28c595f 45070 fi
7ec59b9e 45071@endif isl
e28c595f
JM
45072@if cloog
45073 @if test -d $(HOST_SUBDIR)/cloog ; then \
45074 cd $(HOST_SUBDIR); mv cloog stage1-cloog ; \
45075 fi
45076@endif cloog
1f53ca9a
AO
45077@if libelf
45078 @if test -d $(HOST_SUBDIR)/libelf ; then \
45079 cd $(HOST_SUBDIR); mv libelf stage1-libelf ; \
45080 fi
45081@endif libelf
93f9b408
ILT
45082@if gold
45083 @if test -d $(HOST_SUBDIR)/gold ; then \
45084 cd $(HOST_SUBDIR); mv gold stage1-gold ; \
45085 fi
45086@endif gold
72b2455a 45087@if intl
80911fe1
PB
45088 @if test -d $(HOST_SUBDIR)/intl ; then \
45089 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
0aed8855 45090 fi
72b2455a
PB
45091@endif intl
45092@if ld
80911fe1
PB
45093 @if test -d $(HOST_SUBDIR)/ld ; then \
45094 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
0aed8855 45095 fi
72b2455a 45096@endif ld
2bf680c4
ILT
45097@if libbacktrace
45098 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
45099 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace ; \
45100 fi
45101@endif libbacktrace
72b2455a 45102@if libcpp
80911fe1
PB
45103 @if test -d $(HOST_SUBDIR)/libcpp ; then \
45104 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
0aed8855 45105 fi
72b2455a 45106@endif libcpp
be01d343 45107@if libdecnumber
80911fe1
PB
45108 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
45109 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
0aed8855 45110 fi
be01d343 45111@endif libdecnumber
72b2455a 45112@if libiberty
80911fe1
PB
45113 @if test -d $(HOST_SUBDIR)/libiberty ; then \
45114 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
0aed8855 45115 fi
72b2455a
PB
45116@endif libiberty
45117@if zlib
80911fe1
PB
45118 @if test -d $(HOST_SUBDIR)/zlib ; then \
45119 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
0aed8855 45120 fi
72b2455a 45121@endif zlib
700d40ca
ILT
45122@if lto-plugin
45123 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
45124 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin ; \
45125 fi
45126@endif lto-plugin
0aed8855 45127 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1 45128 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
0aed8855 45129 fi
80911fe1 45130 rm -f stage_current
dfdffa2c 45131
973601e1 45132# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 45133# remade, but not reconfigured. The next stage (if any) will not be
675492f0 45134# reconfigured either.
319cab08 45135.PHONY: stage1-bubble
656fdd47 45136stage1-bubble::
e360f423
PB
45137 @r=`${PWD_COMMAND}`; export r; \
45138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45139 if test -f stage1-lean ; then \
9cb3fa6f
PB
45140 echo Skipping rebuild of stage1 ; \
45141 else \
f70224b5
PB
45142 $(MAKE) stage1-start; \
45143 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 45144 fi
72b2455a 45145
0df3d27f 45146.PHONY: all-stage1 clean-stage1
0df3d27f 45147do-clean: clean-stage1
0df3d27f 45148
72b2455a
PB
45149# FIXME: Will not need to be conditional when toplevel bootstrap is the
45150# only possibility, but now it conflicts with no-bootstrap rules
45151@if gcc-bootstrap
45152
45153
45154
45155
0df3d27f 45156# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 45157
0df3d27f 45158.PHONY: distclean-stage1
72b2455a 45159distclean-stage1::
0aed8855 45160 @: $(MAKE); $(stage)
e00a73e3 45161 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 45162 rm -rf stage1-*
72b2455a
PB
45163
45164
45165@endif gcc-bootstrap
45166
45167
45168.PHONY: stage2-start stage2-end
45169
45170stage2-start::
0aed8855 45171 @: $(MAKE); $(stage); \
72b2455a 45172 echo stage2 > stage_current ; \
b00612cc 45173 echo stage2 > stage_last; \
0aed8855 45174 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 45175@if bfd
b00612cc
PB
45176 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
45177 mkdir stage2-bfd; \
80911fe1
PB
45178 mv stage2-bfd bfd ; \
45179 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
45180@endif bfd
45181@if opcodes
b00612cc
PB
45182 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
45183 mkdir stage2-opcodes; \
80911fe1
PB
45184 mv stage2-opcodes opcodes ; \
45185 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
45186@endif opcodes
45187@if binutils
b00612cc
PB
45188 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
45189 mkdir stage2-binutils; \
80911fe1
PB
45190 mv stage2-binutils binutils ; \
45191 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a
PB
45192@endif binutils
45193@if gas
b00612cc
PB
45194 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
45195 mkdir stage2-gas; \
80911fe1
PB
45196 mv stage2-gas gas ; \
45197 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
45198@endif gas
45199@if gcc
b00612cc
PB
45200 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
45201 mkdir stage2-gcc; \
80911fe1
PB
45202 mv stage2-gcc gcc ; \
45203 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 45204@endif gcc
4b900473
PB
45205@if gmp
45206 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
45207 mkdir stage2-gmp; \
45208 mv stage2-gmp gmp ; \
45209 mv stage1-gmp prev-gmp || test -f stage1-lean
45210@endif gmp
45211@if mpfr
45212 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
45213 mkdir stage2-mpfr; \
45214 mv stage2-mpfr mpfr ; \
45215 mv stage1-mpfr prev-mpfr || test -f stage1-lean
45216@endif mpfr
e8a5fa9c
RW
45217@if mpc
45218 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
45219 mkdir stage2-mpc; \
45220 mv stage2-mpc mpc ; \
45221 mv stage1-mpc prev-mpc || test -f stage1-lean
45222@endif mpc
7ec59b9e
L
45223@if isl
45224 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
45225 mkdir stage2-isl; \
45226 mv stage2-isl isl ; \
45227 mv stage1-isl prev-isl || test -f stage1-lean
45228@endif isl
e28c595f
JM
45229@if cloog
45230 @cd $(HOST_SUBDIR); [ -d stage2-cloog ] || \
45231 mkdir stage2-cloog; \
45232 mv stage2-cloog cloog ; \
45233 mv stage1-cloog prev-cloog || test -f stage1-lean
45234@endif cloog
1f53ca9a
AO
45235@if libelf
45236 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
45237 mkdir stage2-libelf; \
45238 mv stage2-libelf libelf ; \
45239 mv stage1-libelf prev-libelf || test -f stage1-lean
45240@endif libelf
93f9b408
ILT
45241@if gold
45242 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
45243 mkdir stage2-gold; \
45244 mv stage2-gold gold ; \
45245 mv stage1-gold prev-gold || test -f stage1-lean
45246@endif gold
72b2455a 45247@if intl
b00612cc
PB
45248 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
45249 mkdir stage2-intl; \
80911fe1
PB
45250 mv stage2-intl intl ; \
45251 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
45252@endif intl
45253@if ld
b00612cc
PB
45254 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
45255 mkdir stage2-ld; \
80911fe1
PB
45256 mv stage2-ld ld ; \
45257 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 45258@endif ld
2bf680c4
ILT
45259@if libbacktrace
45260 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
45261 mkdir stage2-libbacktrace; \
45262 mv stage2-libbacktrace libbacktrace ; \
45263 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
45264@endif libbacktrace
72b2455a 45265@if libcpp
b00612cc
PB
45266 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
45267 mkdir stage2-libcpp; \
80911fe1
PB
45268 mv stage2-libcpp libcpp ; \
45269 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 45270@endif libcpp
be01d343
PB
45271@if libdecnumber
45272 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
45273 mkdir stage2-libdecnumber; \
80911fe1
PB
45274 mv stage2-libdecnumber libdecnumber ; \
45275 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 45276@endif libdecnumber
72b2455a 45277@if libiberty
b00612cc
PB
45278 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
45279 mkdir stage2-libiberty; \
80911fe1
PB
45280 mv stage2-libiberty libiberty ; \
45281 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a
PB
45282@endif libiberty
45283@if zlib
b00612cc
PB
45284 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
45285 mkdir stage2-zlib; \
80911fe1
PB
45286 mv stage2-zlib zlib ; \
45287 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 45288@endif zlib
700d40ca
ILT
45289@if lto-plugin
45290 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
45291 mkdir stage2-lto-plugin; \
45292 mv stage2-lto-plugin lto-plugin ; \
45293 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
45294@endif lto-plugin
0aed8855
PB
45295 @[ -d stage2-$(TARGET_SUBDIR) ] || \
45296 mkdir stage2-$(TARGET_SUBDIR); \
80911fe1
PB
45297 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
45298 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 45299
80911fe1 45300stage2-end::
72b2455a 45301@if bfd
80911fe1
PB
45302 @if test -d $(HOST_SUBDIR)/bfd ; then \
45303 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
45304 mv prev-bfd stage1-bfd ; : ; \
0aed8855 45305 fi
72b2455a
PB
45306@endif bfd
45307@if opcodes
80911fe1
PB
45308 @if test -d $(HOST_SUBDIR)/opcodes ; then \
45309 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
45310 mv prev-opcodes stage1-opcodes ; : ; \
0aed8855 45311 fi
72b2455a
PB
45312@endif opcodes
45313@if binutils
80911fe1
PB
45314 @if test -d $(HOST_SUBDIR)/binutils ; then \
45315 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
45316 mv prev-binutils stage1-binutils ; : ; \
0aed8855 45317 fi
72b2455a
PB
45318@endif binutils
45319@if gas
80911fe1
PB
45320 @if test -d $(HOST_SUBDIR)/gas ; then \
45321 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
45322 mv prev-gas stage1-gas ; : ; \
0aed8855 45323 fi
72b2455a
PB
45324@endif gas
45325@if gcc
80911fe1
PB
45326 @if test -d $(HOST_SUBDIR)/gcc ; then \
45327 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
45328 mv prev-gcc stage1-gcc ; : ; \
0aed8855 45329 fi
72b2455a 45330@endif gcc
4b900473
PB
45331@if gmp
45332 @if test -d $(HOST_SUBDIR)/gmp ; then \
45333 cd $(HOST_SUBDIR); mv gmp stage2-gmp ; \
45334 mv prev-gmp stage1-gmp ; : ; \
45335 fi
45336@endif gmp
45337@if mpfr
45338 @if test -d $(HOST_SUBDIR)/mpfr ; then \
45339 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr ; \
45340 mv prev-mpfr stage1-mpfr ; : ; \
45341 fi
45342@endif mpfr
e8a5fa9c
RW
45343@if mpc
45344 @if test -d $(HOST_SUBDIR)/mpc ; then \
45345 cd $(HOST_SUBDIR); mv mpc stage2-mpc ; \
45346 mv prev-mpc stage1-mpc ; : ; \
45347 fi
45348@endif mpc
7ec59b9e
L
45349@if isl
45350 @if test -d $(HOST_SUBDIR)/isl ; then \
45351 cd $(HOST_SUBDIR); mv isl stage2-isl ; \
45352 mv prev-isl stage1-isl ; : ; \
e28c595f 45353 fi
7ec59b9e 45354@endif isl
e28c595f
JM
45355@if cloog
45356 @if test -d $(HOST_SUBDIR)/cloog ; then \
45357 cd $(HOST_SUBDIR); mv cloog stage2-cloog ; \
45358 mv prev-cloog stage1-cloog ; : ; \
45359 fi
45360@endif cloog
1f53ca9a
AO
45361@if libelf
45362 @if test -d $(HOST_SUBDIR)/libelf ; then \
45363 cd $(HOST_SUBDIR); mv libelf stage2-libelf ; \
45364 mv prev-libelf stage1-libelf ; : ; \
45365 fi
45366@endif libelf
93f9b408
ILT
45367@if gold
45368 @if test -d $(HOST_SUBDIR)/gold ; then \
45369 cd $(HOST_SUBDIR); mv gold stage2-gold ; \
45370 mv prev-gold stage1-gold ; : ; \
45371 fi
45372@endif gold
72b2455a 45373@if intl
80911fe1
PB
45374 @if test -d $(HOST_SUBDIR)/intl ; then \
45375 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
45376 mv prev-intl stage1-intl ; : ; \
0aed8855 45377 fi
72b2455a
PB
45378@endif intl
45379@if ld
80911fe1
PB
45380 @if test -d $(HOST_SUBDIR)/ld ; then \
45381 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
45382 mv prev-ld stage1-ld ; : ; \
0aed8855 45383 fi
72b2455a 45384@endif ld
2bf680c4
ILT
45385@if libbacktrace
45386 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
45387 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace ; \
45388 mv prev-libbacktrace stage1-libbacktrace ; : ; \
45389 fi
45390@endif libbacktrace
72b2455a 45391@if libcpp
80911fe1
PB
45392 @if test -d $(HOST_SUBDIR)/libcpp ; then \
45393 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
45394 mv prev-libcpp stage1-libcpp ; : ; \
0aed8855 45395 fi
72b2455a 45396@endif libcpp
be01d343 45397@if libdecnumber
80911fe1
PB
45398 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
45399 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
45400 mv prev-libdecnumber stage1-libdecnumber ; : ; \
0aed8855 45401 fi
be01d343 45402@endif libdecnumber
72b2455a 45403@if libiberty
80911fe1
PB
45404 @if test -d $(HOST_SUBDIR)/libiberty ; then \
45405 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
45406 mv prev-libiberty stage1-libiberty ; : ; \
0aed8855 45407 fi
72b2455a
PB
45408@endif libiberty
45409@if zlib
80911fe1
PB
45410 @if test -d $(HOST_SUBDIR)/zlib ; then \
45411 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
45412 mv prev-zlib stage1-zlib ; : ; \
0aed8855 45413 fi
72b2455a 45414@endif zlib
700d40ca
ILT
45415@if lto-plugin
45416 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
45417 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin ; \
45418 mv prev-lto-plugin stage1-lto-plugin ; : ; \
45419 fi
45420@endif lto-plugin
0aed8855 45421 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
45422 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
45423 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
0aed8855 45424 fi
80911fe1 45425 rm -f stage_current
72b2455a 45426
973601e1 45427# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 45428# remade, but not reconfigured. The next stage (if any) will not be
675492f0 45429# reconfigured either.
72b2455a
PB
45430.PHONY: stage2-bubble
45431stage2-bubble:: stage1-bubble
e360f423
PB
45432 @r=`${PWD_COMMAND}`; export r; \
45433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45434 if test -f stage2-lean || test -f stage1-lean ; then \
9cb3fa6f
PB
45435 echo Skipping rebuild of stage2 ; \
45436 else \
f70224b5
PB
45437 $(MAKE) stage2-start; \
45438 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 45439 fi
72b2455a 45440
0df3d27f 45441.PHONY: all-stage2 clean-stage2
0df3d27f 45442do-clean: clean-stage2
0df3d27f 45443
72b2455a
PB
45444# FIXME: Will not need to be conditional when toplevel bootstrap is the
45445# only possibility, but now it conflicts with no-bootstrap rules
45446@if gcc-bootstrap
45447
45448
45449
80911fe1 45450.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
45451bootstrap2:
45452 echo stage2 > stage_final
45453 @r=`${PWD_COMMAND}`; export r; \
45454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45455 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 45456 @: $(MAKE); $(unstage)
be01d343
PB
45457 @r=`${PWD_COMMAND}`; export r; \
45458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 45459 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 45460 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 45461
80911fe1
PB
45462bootstrap2-lean:
45463 echo stage2 > stage_final
45464 @r=`${PWD_COMMAND}`; export r; \
45465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45466 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
45467 @: $(MAKE); $(unstage)
45468 @r=`${PWD_COMMAND}`; export r; \
45469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 45470 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
45471 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45472
72b2455a 45473
0df3d27f 45474# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 45475distclean-stage1:: distclean-stage2
0df3d27f 45476.PHONY: distclean-stage2
72b2455a 45477distclean-stage2::
0aed8855 45478 @: $(MAKE); $(stage)
e00a73e3 45479 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 45480 rm -rf stage2-*
72b2455a
PB
45481
45482
45483@endif gcc-bootstrap
45484
45485
45486.PHONY: stage3-start stage3-end
45487
45488stage3-start::
0aed8855 45489 @: $(MAKE); $(stage); \
72b2455a 45490 echo stage3 > stage_current ; \
b00612cc 45491 echo stage3 > stage_last; \
0aed8855 45492 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 45493@if bfd
b00612cc
PB
45494 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
45495 mkdir stage3-bfd; \
80911fe1
PB
45496 mv stage3-bfd bfd ; \
45497 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
45498@endif bfd
45499@if opcodes
b00612cc
PB
45500 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
45501 mkdir stage3-opcodes; \
80911fe1
PB
45502 mv stage3-opcodes opcodes ; \
45503 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
45504@endif opcodes
45505@if binutils
b00612cc
PB
45506 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
45507 mkdir stage3-binutils; \
80911fe1
PB
45508 mv stage3-binutils binutils ; \
45509 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a
PB
45510@endif binutils
45511@if gas
b00612cc
PB
45512 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
45513 mkdir stage3-gas; \
80911fe1
PB
45514 mv stage3-gas gas ; \
45515 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
45516@endif gas
45517@if gcc
b00612cc
PB
45518 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
45519 mkdir stage3-gcc; \
80911fe1
PB
45520 mv stage3-gcc gcc ; \
45521 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 45522@endif gcc
4b900473
PB
45523@if gmp
45524 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
45525 mkdir stage3-gmp; \
45526 mv stage3-gmp gmp ; \
45527 mv stage2-gmp prev-gmp || test -f stage2-lean
45528@endif gmp
45529@if mpfr
45530 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
45531 mkdir stage3-mpfr; \
45532 mv stage3-mpfr mpfr ; \
45533 mv stage2-mpfr prev-mpfr || test -f stage2-lean
45534@endif mpfr
e8a5fa9c
RW
45535@if mpc
45536 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
45537 mkdir stage3-mpc; \
45538 mv stage3-mpc mpc ; \
45539 mv stage2-mpc prev-mpc || test -f stage2-lean
45540@endif mpc
7ec59b9e
L
45541@if isl
45542 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
45543 mkdir stage3-isl; \
45544 mv stage3-isl isl ; \
45545 mv stage2-isl prev-isl || test -f stage2-lean
45546@endif isl
e28c595f
JM
45547@if cloog
45548 @cd $(HOST_SUBDIR); [ -d stage3-cloog ] || \
45549 mkdir stage3-cloog; \
45550 mv stage3-cloog cloog ; \
45551 mv stage2-cloog prev-cloog || test -f stage2-lean
45552@endif cloog
1f53ca9a
AO
45553@if libelf
45554 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
45555 mkdir stage3-libelf; \
45556 mv stage3-libelf libelf ; \
45557 mv stage2-libelf prev-libelf || test -f stage2-lean
45558@endif libelf
93f9b408
ILT
45559@if gold
45560 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
45561 mkdir stage3-gold; \
45562 mv stage3-gold gold ; \
45563 mv stage2-gold prev-gold || test -f stage2-lean
45564@endif gold
72b2455a 45565@if intl
b00612cc
PB
45566 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
45567 mkdir stage3-intl; \
80911fe1
PB
45568 mv stage3-intl intl ; \
45569 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
45570@endif intl
45571@if ld
b00612cc
PB
45572 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
45573 mkdir stage3-ld; \
80911fe1
PB
45574 mv stage3-ld ld ; \
45575 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 45576@endif ld
2bf680c4
ILT
45577@if libbacktrace
45578 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
45579 mkdir stage3-libbacktrace; \
45580 mv stage3-libbacktrace libbacktrace ; \
45581 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
45582@endif libbacktrace
72b2455a 45583@if libcpp
b00612cc
PB
45584 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
45585 mkdir stage3-libcpp; \
80911fe1
PB
45586 mv stage3-libcpp libcpp ; \
45587 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 45588@endif libcpp
be01d343
PB
45589@if libdecnumber
45590 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
45591 mkdir stage3-libdecnumber; \
80911fe1
PB
45592 mv stage3-libdecnumber libdecnumber ; \
45593 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 45594@endif libdecnumber
72b2455a 45595@if libiberty
b00612cc
PB
45596 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
45597 mkdir stage3-libiberty; \
80911fe1
PB
45598 mv stage3-libiberty libiberty ; \
45599 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a
PB
45600@endif libiberty
45601@if zlib
b00612cc
PB
45602 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
45603 mkdir stage3-zlib; \
80911fe1
PB
45604 mv stage3-zlib zlib ; \
45605 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 45606@endif zlib
700d40ca
ILT
45607@if lto-plugin
45608 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
45609 mkdir stage3-lto-plugin; \
45610 mv stage3-lto-plugin lto-plugin ; \
45611 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
45612@endif lto-plugin
0aed8855
PB
45613 @[ -d stage3-$(TARGET_SUBDIR) ] || \
45614 mkdir stage3-$(TARGET_SUBDIR); \
80911fe1
PB
45615 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
45616 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 45617
80911fe1 45618stage3-end::
72b2455a 45619@if bfd
80911fe1
PB
45620 @if test -d $(HOST_SUBDIR)/bfd ; then \
45621 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
45622 mv prev-bfd stage2-bfd ; : ; \
0aed8855 45623 fi
72b2455a
PB
45624@endif bfd
45625@if opcodes
80911fe1
PB
45626 @if test -d $(HOST_SUBDIR)/opcodes ; then \
45627 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
45628 mv prev-opcodes stage2-opcodes ; : ; \
0aed8855 45629 fi
72b2455a
PB
45630@endif opcodes
45631@if binutils
80911fe1
PB
45632 @if test -d $(HOST_SUBDIR)/binutils ; then \
45633 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
45634 mv prev-binutils stage2-binutils ; : ; \
0aed8855 45635 fi
72b2455a
PB
45636@endif binutils
45637@if gas
80911fe1
PB
45638 @if test -d $(HOST_SUBDIR)/gas ; then \
45639 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
45640 mv prev-gas stage2-gas ; : ; \
0aed8855 45641 fi
72b2455a
PB
45642@endif gas
45643@if gcc
80911fe1
PB
45644 @if test -d $(HOST_SUBDIR)/gcc ; then \
45645 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
45646 mv prev-gcc stage2-gcc ; : ; \
0aed8855 45647 fi
72b2455a 45648@endif gcc
4b900473
PB
45649@if gmp
45650 @if test -d $(HOST_SUBDIR)/gmp ; then \
45651 cd $(HOST_SUBDIR); mv gmp stage3-gmp ; \
45652 mv prev-gmp stage2-gmp ; : ; \
45653 fi
45654@endif gmp
45655@if mpfr
45656 @if test -d $(HOST_SUBDIR)/mpfr ; then \
45657 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr ; \
45658 mv prev-mpfr stage2-mpfr ; : ; \
45659 fi
45660@endif mpfr
e8a5fa9c
RW
45661@if mpc
45662 @if test -d $(HOST_SUBDIR)/mpc ; then \
45663 cd $(HOST_SUBDIR); mv mpc stage3-mpc ; \
45664 mv prev-mpc stage2-mpc ; : ; \
45665 fi
45666@endif mpc
7ec59b9e
L
45667@if isl
45668 @if test -d $(HOST_SUBDIR)/isl ; then \
45669 cd $(HOST_SUBDIR); mv isl stage3-isl ; \
45670 mv prev-isl stage2-isl ; : ; \
e28c595f 45671 fi
7ec59b9e 45672@endif isl
e28c595f
JM
45673@if cloog
45674 @if test -d $(HOST_SUBDIR)/cloog ; then \
45675 cd $(HOST_SUBDIR); mv cloog stage3-cloog ; \
45676 mv prev-cloog stage2-cloog ; : ; \
45677 fi
45678@endif cloog
1f53ca9a
AO
45679@if libelf
45680 @if test -d $(HOST_SUBDIR)/libelf ; then \
45681 cd $(HOST_SUBDIR); mv libelf stage3-libelf ; \
45682 mv prev-libelf stage2-libelf ; : ; \
45683 fi
45684@endif libelf
93f9b408
ILT
45685@if gold
45686 @if test -d $(HOST_SUBDIR)/gold ; then \
45687 cd $(HOST_SUBDIR); mv gold stage3-gold ; \
45688 mv prev-gold stage2-gold ; : ; \
45689 fi
45690@endif gold
72b2455a 45691@if intl
80911fe1
PB
45692 @if test -d $(HOST_SUBDIR)/intl ; then \
45693 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
45694 mv prev-intl stage2-intl ; : ; \
0aed8855 45695 fi
72b2455a
PB
45696@endif intl
45697@if ld
80911fe1
PB
45698 @if test -d $(HOST_SUBDIR)/ld ; then \
45699 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
45700 mv prev-ld stage2-ld ; : ; \
0aed8855 45701 fi
72b2455a 45702@endif ld
2bf680c4
ILT
45703@if libbacktrace
45704 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
45705 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace ; \
45706 mv prev-libbacktrace stage2-libbacktrace ; : ; \
45707 fi
45708@endif libbacktrace
72b2455a 45709@if libcpp
80911fe1
PB
45710 @if test -d $(HOST_SUBDIR)/libcpp ; then \
45711 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
45712 mv prev-libcpp stage2-libcpp ; : ; \
0aed8855 45713 fi
72b2455a 45714@endif libcpp
be01d343 45715@if libdecnumber
80911fe1
PB
45716 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
45717 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
45718 mv prev-libdecnumber stage2-libdecnumber ; : ; \
0aed8855 45719 fi
be01d343 45720@endif libdecnumber
72b2455a 45721@if libiberty
80911fe1
PB
45722 @if test -d $(HOST_SUBDIR)/libiberty ; then \
45723 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
45724 mv prev-libiberty stage2-libiberty ; : ; \
0aed8855 45725 fi
72b2455a
PB
45726@endif libiberty
45727@if zlib
80911fe1
PB
45728 @if test -d $(HOST_SUBDIR)/zlib ; then \
45729 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
45730 mv prev-zlib stage2-zlib ; : ; \
0aed8855 45731 fi
72b2455a 45732@endif zlib
700d40ca
ILT
45733@if lto-plugin
45734 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
45735 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin ; \
45736 mv prev-lto-plugin stage2-lto-plugin ; : ; \
45737 fi
45738@endif lto-plugin
0aed8855 45739 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
45740 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
45741 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
0aed8855 45742 fi
80911fe1 45743 rm -f stage_current
72b2455a 45744
973601e1 45745# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 45746# remade, but not reconfigured. The next stage (if any) will not be
675492f0 45747# reconfigured either.
72b2455a
PB
45748.PHONY: stage3-bubble
45749stage3-bubble:: stage2-bubble
e360f423
PB
45750 @r=`${PWD_COMMAND}`; export r; \
45751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45752 if test -f stage3-lean || test -f stage2-lean ; then \
9cb3fa6f
PB
45753 echo Skipping rebuild of stage3 ; \
45754 else \
f70224b5 45755 $(MAKE) stage3-start; \
80911fe1
PB
45756 if $(LEAN); then \
45757 rm -rf stage1-* ; \
45758 $(STAMP) stage1-lean ; \
45759 fi; \
f70224b5 45760 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 45761 fi
f6d183c0 45762 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 45763
0df3d27f 45764.PHONY: all-stage3 clean-stage3
0df3d27f 45765do-clean: clean-stage3
0df3d27f 45766
d545f33b
PB
45767# FIXME: Will not need to be conditional when toplevel bootstrap is the
45768# only possibility, but now it conflicts with no-bootstrap rules
45769@if gcc-bootstrap
72b2455a 45770
d545f33b 45771compare:
e360f423
PB
45772 @r=`${PWD_COMMAND}`; export r; \
45773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45774 if test -f stage2-lean; then \
d545f33b
PB
45775 echo Cannot compare object files as stage 2 was deleted. ; \
45776 exit 0 ; \
45777 fi; \
0aed8855 45778 : $(MAKE); $(stage); \
d545f33b 45779 rm -f .bad_compare ; \
c52c6897 45780 echo Comparing stages 2 and 3 ; \
fda13ee8
AO
45781 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
45782 files=`find stage3-* -name "*$(objext)" -print | \
45783 sed -n s,^stage$$sed-,,p` ; \
d545f33b 45784 for file in $${files} ; do \
fda13ee8
AO
45785 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
45786 if test ! -f $$f1; then continue; fi; \
8520c408 45787 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
45788 if test $$? -eq 1; then \
45789 case $$file in \
e8a5fa9c 45790 @compare_exclusions@) \
f70224b5
PB
45791 echo warning: $$file differs ;; \
45792 *) \
45793 echo $$file differs >> .bad_compare ;; \
45794 esac ; \
45795 fi ; \
d545f33b
PB
45796 done ; \
45797 if [ -f .bad_compare ]; then \
45798 echo "Bootstrap comparison failure!"; \
45799 cat .bad_compare; \
45800 exit 1; \
45801 else \
c52c6897 45802 echo Comparison successful.; \
d545f33b
PB
45803 fi ; \
45804 $(STAMP) compare
80911fe1
PB
45805 if $(LEAN); then \
45806 rm -rf stage2-*; \
45807 $(STAMP) stage2-lean; \
45808 fi
9cb3fa6f 45809
72b2455a 45810
72b2455a 45811
80911fe1 45812.PHONY: bootstrap bootstrap-lean
be01d343
PB
45813bootstrap:
45814 echo stage3 > stage_final
45815 @r=`${PWD_COMMAND}`; export r; \
45816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45817 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 45818 @: $(MAKE); $(unstage)
be01d343
PB
45819 @r=`${PWD_COMMAND}`; export r; \
45820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 45821 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 45822 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 45823
80911fe1
PB
45824bootstrap-lean:
45825 echo stage3 > stage_final
45826 @r=`${PWD_COMMAND}`; export r; \
45827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45828 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
45829 @: $(MAKE); $(unstage)
45830 @r=`${PWD_COMMAND}`; export r; \
45831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 45832 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
45833 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45834
72b2455a 45835
d545f33b
PB
45836# Rules to wipe a stage and all the following ones, also used for cleanstrap
45837distclean-stage2:: distclean-stage3
45838.PHONY: distclean-stage3
45839distclean-stage3::
0aed8855 45840 @: $(MAKE); $(stage)
e00a73e3 45841 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 45842 rm -rf stage3-* compare
0df3d27f 45843
9cb3fa6f 45844
d545f33b 45845.PHONY: cleanstrap
e00a73e3
PB
45846cleanstrap: do-distclean local-clean
45847 echo stage3 > stage_final
45848 @r=`${PWD_COMMAND}`; export r; \
45849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45850 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
45851 @: $(MAKE); $(unstage)
45852 @r=`${PWD_COMMAND}`; export r; \
45853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 45854 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
45855 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45856
45857@endif gcc-bootstrap
45858
45859
72b2455a
PB
45860.PHONY: stage4-start stage4-end
45861
45862stage4-start::
0aed8855 45863 @: $(MAKE); $(stage); \
72b2455a 45864 echo stage4 > stage_current ; \
b00612cc 45865 echo stage4 > stage_last; \
0aed8855 45866 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 45867@if bfd
b00612cc
PB
45868 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
45869 mkdir stage4-bfd; \
80911fe1
PB
45870 mv stage4-bfd bfd ; \
45871 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
45872@endif bfd
45873@if opcodes
b00612cc
PB
45874 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
45875 mkdir stage4-opcodes; \
80911fe1
PB
45876 mv stage4-opcodes opcodes ; \
45877 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
45878@endif opcodes
45879@if binutils
b00612cc
PB
45880 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
45881 mkdir stage4-binutils; \
80911fe1
PB
45882 mv stage4-binutils binutils ; \
45883 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a
PB
45884@endif binutils
45885@if gas
b00612cc
PB
45886 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
45887 mkdir stage4-gas; \
80911fe1
PB
45888 mv stage4-gas gas ; \
45889 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
45890@endif gas
45891@if gcc
b00612cc
PB
45892 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
45893 mkdir stage4-gcc; \
80911fe1
PB
45894 mv stage4-gcc gcc ; \
45895 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 45896@endif gcc
4b900473
PB
45897@if gmp
45898 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
45899 mkdir stage4-gmp; \
45900 mv stage4-gmp gmp ; \
45901 mv stage3-gmp prev-gmp || test -f stage3-lean
45902@endif gmp
45903@if mpfr
45904 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
45905 mkdir stage4-mpfr; \
45906 mv stage4-mpfr mpfr ; \
45907 mv stage3-mpfr prev-mpfr || test -f stage3-lean
45908@endif mpfr
e8a5fa9c
RW
45909@if mpc
45910 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
45911 mkdir stage4-mpc; \
45912 mv stage4-mpc mpc ; \
45913 mv stage3-mpc prev-mpc || test -f stage3-lean
45914@endif mpc
7ec59b9e
L
45915@if isl
45916 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
45917 mkdir stage4-isl; \
45918 mv stage4-isl isl ; \
45919 mv stage3-isl prev-isl || test -f stage3-lean
45920@endif isl
e28c595f
JM
45921@if cloog
45922 @cd $(HOST_SUBDIR); [ -d stage4-cloog ] || \
45923 mkdir stage4-cloog; \
45924 mv stage4-cloog cloog ; \
45925 mv stage3-cloog prev-cloog || test -f stage3-lean
45926@endif cloog
1f53ca9a
AO
45927@if libelf
45928 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
45929 mkdir stage4-libelf; \
45930 mv stage4-libelf libelf ; \
45931 mv stage3-libelf prev-libelf || test -f stage3-lean
45932@endif libelf
93f9b408
ILT
45933@if gold
45934 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
45935 mkdir stage4-gold; \
45936 mv stage4-gold gold ; \
45937 mv stage3-gold prev-gold || test -f stage3-lean
45938@endif gold
72b2455a 45939@if intl
b00612cc
PB
45940 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
45941 mkdir stage4-intl; \
80911fe1
PB
45942 mv stage4-intl intl ; \
45943 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
45944@endif intl
45945@if ld
b00612cc
PB
45946 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
45947 mkdir stage4-ld; \
80911fe1
PB
45948 mv stage4-ld ld ; \
45949 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 45950@endif ld
2bf680c4
ILT
45951@if libbacktrace
45952 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
45953 mkdir stage4-libbacktrace; \
45954 mv stage4-libbacktrace libbacktrace ; \
45955 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
45956@endif libbacktrace
72b2455a 45957@if libcpp
b00612cc
PB
45958 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
45959 mkdir stage4-libcpp; \
80911fe1
PB
45960 mv stage4-libcpp libcpp ; \
45961 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 45962@endif libcpp
be01d343
PB
45963@if libdecnumber
45964 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
45965 mkdir stage4-libdecnumber; \
80911fe1
PB
45966 mv stage4-libdecnumber libdecnumber ; \
45967 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 45968@endif libdecnumber
72b2455a 45969@if libiberty
b00612cc
PB
45970 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
45971 mkdir stage4-libiberty; \
80911fe1
PB
45972 mv stage4-libiberty libiberty ; \
45973 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a
PB
45974@endif libiberty
45975@if zlib
b00612cc
PB
45976 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
45977 mkdir stage4-zlib; \
80911fe1
PB
45978 mv stage4-zlib zlib ; \
45979 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 45980@endif zlib
700d40ca
ILT
45981@if lto-plugin
45982 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
45983 mkdir stage4-lto-plugin; \
45984 mv stage4-lto-plugin lto-plugin ; \
45985 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
45986@endif lto-plugin
0aed8855
PB
45987 @[ -d stage4-$(TARGET_SUBDIR) ] || \
45988 mkdir stage4-$(TARGET_SUBDIR); \
80911fe1
PB
45989 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
45990 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 45991
80911fe1 45992stage4-end::
72b2455a 45993@if bfd
80911fe1
PB
45994 @if test -d $(HOST_SUBDIR)/bfd ; then \
45995 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
45996 mv prev-bfd stage3-bfd ; : ; \
0aed8855 45997 fi
72b2455a
PB
45998@endif bfd
45999@if opcodes
80911fe1
PB
46000 @if test -d $(HOST_SUBDIR)/opcodes ; then \
46001 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
46002 mv prev-opcodes stage3-opcodes ; : ; \
0aed8855 46003 fi
72b2455a
PB
46004@endif opcodes
46005@if binutils
80911fe1
PB
46006 @if test -d $(HOST_SUBDIR)/binutils ; then \
46007 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
46008 mv prev-binutils stage3-binutils ; : ; \
0aed8855 46009 fi
72b2455a
PB
46010@endif binutils
46011@if gas
80911fe1
PB
46012 @if test -d $(HOST_SUBDIR)/gas ; then \
46013 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
46014 mv prev-gas stage3-gas ; : ; \
0aed8855 46015 fi
72b2455a
PB
46016@endif gas
46017@if gcc
80911fe1
PB
46018 @if test -d $(HOST_SUBDIR)/gcc ; then \
46019 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
46020 mv prev-gcc stage3-gcc ; : ; \
0aed8855 46021 fi
72b2455a 46022@endif gcc
4b900473
PB
46023@if gmp
46024 @if test -d $(HOST_SUBDIR)/gmp ; then \
46025 cd $(HOST_SUBDIR); mv gmp stage4-gmp ; \
46026 mv prev-gmp stage3-gmp ; : ; \
46027 fi
46028@endif gmp
46029@if mpfr
46030 @if test -d $(HOST_SUBDIR)/mpfr ; then \
46031 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr ; \
46032 mv prev-mpfr stage3-mpfr ; : ; \
46033 fi
46034@endif mpfr
e8a5fa9c
RW
46035@if mpc
46036 @if test -d $(HOST_SUBDIR)/mpc ; then \
46037 cd $(HOST_SUBDIR); mv mpc stage4-mpc ; \
46038 mv prev-mpc stage3-mpc ; : ; \
46039 fi
46040@endif mpc
7ec59b9e
L
46041@if isl
46042 @if test -d $(HOST_SUBDIR)/isl ; then \
46043 cd $(HOST_SUBDIR); mv isl stage4-isl ; \
46044 mv prev-isl stage3-isl ; : ; \
e28c595f 46045 fi
7ec59b9e 46046@endif isl
e28c595f
JM
46047@if cloog
46048 @if test -d $(HOST_SUBDIR)/cloog ; then \
46049 cd $(HOST_SUBDIR); mv cloog stage4-cloog ; \
46050 mv prev-cloog stage3-cloog ; : ; \
46051 fi
46052@endif cloog
1f53ca9a
AO
46053@if libelf
46054 @if test -d $(HOST_SUBDIR)/libelf ; then \
46055 cd $(HOST_SUBDIR); mv libelf stage4-libelf ; \
46056 mv prev-libelf stage3-libelf ; : ; \
46057 fi
46058@endif libelf
93f9b408
ILT
46059@if gold
46060 @if test -d $(HOST_SUBDIR)/gold ; then \
46061 cd $(HOST_SUBDIR); mv gold stage4-gold ; \
46062 mv prev-gold stage3-gold ; : ; \
46063 fi
46064@endif gold
72b2455a 46065@if intl
80911fe1
PB
46066 @if test -d $(HOST_SUBDIR)/intl ; then \
46067 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
46068 mv prev-intl stage3-intl ; : ; \
0aed8855 46069 fi
72b2455a
PB
46070@endif intl
46071@if ld
80911fe1
PB
46072 @if test -d $(HOST_SUBDIR)/ld ; then \
46073 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
46074 mv prev-ld stage3-ld ; : ; \
0aed8855 46075 fi
72b2455a 46076@endif ld
2bf680c4
ILT
46077@if libbacktrace
46078 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
46079 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace ; \
46080 mv prev-libbacktrace stage3-libbacktrace ; : ; \
46081 fi
46082@endif libbacktrace
72b2455a 46083@if libcpp
80911fe1
PB
46084 @if test -d $(HOST_SUBDIR)/libcpp ; then \
46085 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
46086 mv prev-libcpp stage3-libcpp ; : ; \
0aed8855 46087 fi
72b2455a 46088@endif libcpp
be01d343 46089@if libdecnumber
80911fe1
PB
46090 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
46091 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
46092 mv prev-libdecnumber stage3-libdecnumber ; : ; \
0aed8855 46093 fi
be01d343 46094@endif libdecnumber
72b2455a 46095@if libiberty
80911fe1
PB
46096 @if test -d $(HOST_SUBDIR)/libiberty ; then \
46097 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
46098 mv prev-libiberty stage3-libiberty ; : ; \
0aed8855 46099 fi
72b2455a
PB
46100@endif libiberty
46101@if zlib
80911fe1
PB
46102 @if test -d $(HOST_SUBDIR)/zlib ; then \
46103 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
46104 mv prev-zlib stage3-zlib ; : ; \
0aed8855 46105 fi
72b2455a 46106@endif zlib
700d40ca
ILT
46107@if lto-plugin
46108 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
46109 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin ; \
46110 mv prev-lto-plugin stage3-lto-plugin ; : ; \
46111 fi
46112@endif lto-plugin
0aed8855 46113 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
46114 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
46115 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
0aed8855 46116 fi
80911fe1 46117 rm -f stage_current
72b2455a 46118
973601e1 46119# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 46120# remade, but not reconfigured. The next stage (if any) will not be
675492f0 46121# reconfigured either.
72b2455a
PB
46122.PHONY: stage4-bubble
46123stage4-bubble:: stage3-bubble
e360f423
PB
46124 @r=`${PWD_COMMAND}`; export r; \
46125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46126 if test -f stage4-lean || test -f stage3-lean ; then \
9cb3fa6f
PB
46127 echo Skipping rebuild of stage4 ; \
46128 else \
f70224b5 46129 $(MAKE) stage4-start; \
80911fe1
PB
46130 if $(LEAN); then \
46131 rm -rf stage2-* ; \
46132 $(STAMP) stage2-lean ; \
46133 fi; \
f70224b5 46134 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 46135 fi
f6d183c0 46136 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 46137
0df3d27f 46138.PHONY: all-stage4 clean-stage4
0df3d27f 46139do-clean: clean-stage4
0df3d27f 46140
d545f33b
PB
46141# FIXME: Will not need to be conditional when toplevel bootstrap is the
46142# only possibility, but now it conflicts with no-bootstrap rules
46143@if gcc-bootstrap
72b2455a 46144
d545f33b 46145compare3:
e360f423
PB
46146 @r=`${PWD_COMMAND}`; export r; \
46147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46148 if test -f stage3-lean; then \
d545f33b
PB
46149 echo Cannot compare object files as stage 3 was deleted. ; \
46150 exit 0 ; \
46151 fi; \
0aed8855 46152 : $(MAKE); $(stage); \
d545f33b 46153 rm -f .bad_compare ; \
c52c6897 46154 echo Comparing stages 3 and 4 ; \
fda13ee8
AO
46155 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
46156 files=`find stage4-* -name "*$(objext)" -print | \
46157 sed -n s,^stage$$sed-,,p` ; \
d545f33b 46158 for file in $${files} ; do \
fda13ee8
AO
46159 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
46160 if test ! -f $$f1; then continue; fi; \
8520c408 46161 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
46162 if test $$? -eq 1; then \
46163 case $$file in \
e8a5fa9c 46164 @compare_exclusions@) \
f70224b5
PB
46165 echo warning: $$file differs ;; \
46166 *) \
46167 echo $$file differs >> .bad_compare ;; \
46168 esac ; \
46169 fi ; \
d545f33b
PB
46170 done ; \
46171 if [ -f .bad_compare ]; then \
46172 echo "Bootstrap comparison failure!"; \
46173 cat .bad_compare; \
46174 exit 1; \
46175 else \
c52c6897 46176 echo Comparison successful.; \
d545f33b
PB
46177 fi ; \
46178 $(STAMP) compare3
80911fe1
PB
46179 if $(LEAN); then \
46180 rm -rf stage3-*; \
46181 $(STAMP) stage3-lean; \
46182 fi
9cb3fa6f 46183
72b2455a 46184
72b2455a 46185
80911fe1 46186.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
46187bootstrap4:
46188 echo stage4 > stage_final
46189 @r=`${PWD_COMMAND}`; export r; \
46190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46191 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 46192 @: $(MAKE); $(unstage)
be01d343
PB
46193 @r=`${PWD_COMMAND}`; export r; \
46194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 46195 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 46196 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 46197
80911fe1
PB
46198bootstrap4-lean:
46199 echo stage4 > stage_final
46200 @r=`${PWD_COMMAND}`; export r; \
46201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46202 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
46203 @: $(MAKE); $(unstage)
46204 @r=`${PWD_COMMAND}`; export r; \
46205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 46206 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
46207 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
46208
72b2455a 46209
d545f33b
PB
46210# Rules to wipe a stage and all the following ones, also used for cleanstrap
46211distclean-stage3:: distclean-stage4
46212.PHONY: distclean-stage4
46213distclean-stage4::
0aed8855 46214 @: $(MAKE); $(stage)
e00a73e3 46215 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 46216 rm -rf stage4-* compare3
0df3d27f 46217
9cb3fa6f 46218
d545f33b 46219@endif gcc-bootstrap
72b2455a
PB
46220
46221
46222.PHONY: stageprofile-start stageprofile-end
46223
46224stageprofile-start::
0aed8855 46225 @: $(MAKE); $(stage); \
72b2455a 46226 echo stageprofile > stage_current ; \
b00612cc 46227 echo stageprofile > stage_last; \
0aed8855 46228 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 46229@if bfd
b00612cc
PB
46230 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
46231 mkdir stageprofile-bfd; \
80911fe1
PB
46232 mv stageprofile-bfd bfd ; \
46233 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
46234@endif bfd
46235@if opcodes
b00612cc
PB
46236 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
46237 mkdir stageprofile-opcodes; \
80911fe1
PB
46238 mv stageprofile-opcodes opcodes ; \
46239 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
46240@endif opcodes
46241@if binutils
b00612cc
PB
46242 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
46243 mkdir stageprofile-binutils; \
80911fe1
PB
46244 mv stageprofile-binutils binutils ; \
46245 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a
PB
46246@endif binutils
46247@if gas
b00612cc
PB
46248 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
46249 mkdir stageprofile-gas; \
80911fe1
PB
46250 mv stageprofile-gas gas ; \
46251 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
46252@endif gas
46253@if gcc
b00612cc
PB
46254 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
46255 mkdir stageprofile-gcc; \
80911fe1
PB
46256 mv stageprofile-gcc gcc ; \
46257 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 46258@endif gcc
4b900473
PB
46259@if gmp
46260 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
46261 mkdir stageprofile-gmp; \
46262 mv stageprofile-gmp gmp ; \
46263 mv stage1-gmp prev-gmp || test -f stage1-lean
46264@endif gmp
46265@if mpfr
46266 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
46267 mkdir stageprofile-mpfr; \
46268 mv stageprofile-mpfr mpfr ; \
46269 mv stage1-mpfr prev-mpfr || test -f stage1-lean
46270@endif mpfr
e8a5fa9c
RW
46271@if mpc
46272 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
46273 mkdir stageprofile-mpc; \
46274 mv stageprofile-mpc mpc ; \
46275 mv stage1-mpc prev-mpc || test -f stage1-lean
46276@endif mpc
7ec59b9e
L
46277@if isl
46278 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
46279 mkdir stageprofile-isl; \
46280 mv stageprofile-isl isl ; \
46281 mv stage1-isl prev-isl || test -f stage1-lean
46282@endif isl
e28c595f
JM
46283@if cloog
46284 @cd $(HOST_SUBDIR); [ -d stageprofile-cloog ] || \
46285 mkdir stageprofile-cloog; \
46286 mv stageprofile-cloog cloog ; \
46287 mv stage1-cloog prev-cloog || test -f stage1-lean
46288@endif cloog
1f53ca9a
AO
46289@if libelf
46290 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
46291 mkdir stageprofile-libelf; \
46292 mv stageprofile-libelf libelf ; \
46293 mv stage1-libelf prev-libelf || test -f stage1-lean
46294@endif libelf
93f9b408
ILT
46295@if gold
46296 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
46297 mkdir stageprofile-gold; \
46298 mv stageprofile-gold gold ; \
46299 mv stage1-gold prev-gold || test -f stage1-lean
46300@endif gold
72b2455a 46301@if intl
b00612cc
PB
46302 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
46303 mkdir stageprofile-intl; \
80911fe1
PB
46304 mv stageprofile-intl intl ; \
46305 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
46306@endif intl
46307@if ld
b00612cc
PB
46308 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
46309 mkdir stageprofile-ld; \
80911fe1
PB
46310 mv stageprofile-ld ld ; \
46311 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 46312@endif ld
2bf680c4
ILT
46313@if libbacktrace
46314 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
46315 mkdir stageprofile-libbacktrace; \
46316 mv stageprofile-libbacktrace libbacktrace ; \
46317 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
46318@endif libbacktrace
72b2455a 46319@if libcpp
b00612cc
PB
46320 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
46321 mkdir stageprofile-libcpp; \
80911fe1
PB
46322 mv stageprofile-libcpp libcpp ; \
46323 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 46324@endif libcpp
be01d343
PB
46325@if libdecnumber
46326 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
46327 mkdir stageprofile-libdecnumber; \
80911fe1
PB
46328 mv stageprofile-libdecnumber libdecnumber ; \
46329 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 46330@endif libdecnumber
72b2455a 46331@if libiberty
b00612cc
PB
46332 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
46333 mkdir stageprofile-libiberty; \
80911fe1
PB
46334 mv stageprofile-libiberty libiberty ; \
46335 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a
PB
46336@endif libiberty
46337@if zlib
d545f33b
PB
46338 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
46339 mkdir stageprofile-zlib; \
80911fe1
PB
46340 mv stageprofile-zlib zlib ; \
46341 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 46342@endif zlib
700d40ca
ILT
46343@if lto-plugin
46344 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
46345 mkdir stageprofile-lto-plugin; \
46346 mv stageprofile-lto-plugin lto-plugin ; \
46347 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
46348@endif lto-plugin
0aed8855
PB
46349 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
46350 mkdir stageprofile-$(TARGET_SUBDIR); \
80911fe1
PB
46351 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
46352 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 46353
80911fe1 46354stageprofile-end::
d545f33b 46355@if bfd
80911fe1
PB
46356 @if test -d $(HOST_SUBDIR)/bfd ; then \
46357 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
46358 mv prev-bfd stage1-bfd ; : ; \
0aed8855 46359 fi
d545f33b
PB
46360@endif bfd
46361@if opcodes
80911fe1
PB
46362 @if test -d $(HOST_SUBDIR)/opcodes ; then \
46363 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
46364 mv prev-opcodes stage1-opcodes ; : ; \
0aed8855 46365 fi
d545f33b
PB
46366@endif opcodes
46367@if binutils
80911fe1
PB
46368 @if test -d $(HOST_SUBDIR)/binutils ; then \
46369 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
46370 mv prev-binutils stage1-binutils ; : ; \
0aed8855 46371 fi
d545f33b
PB
46372@endif binutils
46373@if gas
80911fe1
PB
46374 @if test -d $(HOST_SUBDIR)/gas ; then \
46375 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
46376 mv prev-gas stage1-gas ; : ; \
0aed8855 46377 fi
d545f33b
PB
46378@endif gas
46379@if gcc
80911fe1
PB
46380 @if test -d $(HOST_SUBDIR)/gcc ; then \
46381 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
46382 mv prev-gcc stage1-gcc ; : ; \
0aed8855 46383 fi
d545f33b 46384@endif gcc
4b900473
PB
46385@if gmp
46386 @if test -d $(HOST_SUBDIR)/gmp ; then \
46387 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp ; \
46388 mv prev-gmp stage1-gmp ; : ; \
46389 fi
46390@endif gmp
46391@if mpfr
46392 @if test -d $(HOST_SUBDIR)/mpfr ; then \
46393 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr ; \
46394 mv prev-mpfr stage1-mpfr ; : ; \
46395 fi
46396@endif mpfr
e8a5fa9c
RW
46397@if mpc
46398 @if test -d $(HOST_SUBDIR)/mpc ; then \
46399 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc ; \
46400 mv prev-mpc stage1-mpc ; : ; \
46401 fi
46402@endif mpc
7ec59b9e
L
46403@if isl
46404 @if test -d $(HOST_SUBDIR)/isl ; then \
46405 cd $(HOST_SUBDIR); mv isl stageprofile-isl ; \
46406 mv prev-isl stage1-isl ; : ; \
e28c595f 46407 fi
7ec59b9e 46408@endif isl
e28c595f
JM
46409@if cloog
46410 @if test -d $(HOST_SUBDIR)/cloog ; then \
46411 cd $(HOST_SUBDIR); mv cloog stageprofile-cloog ; \
46412 mv prev-cloog stage1-cloog ; : ; \
46413 fi
46414@endif cloog
1f53ca9a
AO
46415@if libelf
46416 @if test -d $(HOST_SUBDIR)/libelf ; then \
46417 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf ; \
46418 mv prev-libelf stage1-libelf ; : ; \
46419 fi
46420@endif libelf
93f9b408
ILT
46421@if gold
46422 @if test -d $(HOST_SUBDIR)/gold ; then \
46423 cd $(HOST_SUBDIR); mv gold stageprofile-gold ; \
46424 mv prev-gold stage1-gold ; : ; \
46425 fi
46426@endif gold
d545f33b 46427@if intl
80911fe1
PB
46428 @if test -d $(HOST_SUBDIR)/intl ; then \
46429 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
46430 mv prev-intl stage1-intl ; : ; \
0aed8855 46431 fi
d545f33b
PB
46432@endif intl
46433@if ld
80911fe1
PB
46434 @if test -d $(HOST_SUBDIR)/ld ; then \
46435 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
46436 mv prev-ld stage1-ld ; : ; \
0aed8855 46437 fi
d545f33b 46438@endif ld
2bf680c4
ILT
46439@if libbacktrace
46440 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
46441 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace ; \
46442 mv prev-libbacktrace stage1-libbacktrace ; : ; \
46443 fi
46444@endif libbacktrace
d545f33b 46445@if libcpp
80911fe1
PB
46446 @if test -d $(HOST_SUBDIR)/libcpp ; then \
46447 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
46448 mv prev-libcpp stage1-libcpp ; : ; \
0aed8855 46449 fi
d545f33b 46450@endif libcpp
be01d343 46451@if libdecnumber
80911fe1
PB
46452 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
46453 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
46454 mv prev-libdecnumber stage1-libdecnumber ; : ; \
0aed8855 46455 fi
be01d343 46456@endif libdecnumber
d545f33b 46457@if libiberty
80911fe1
PB
46458 @if test -d $(HOST_SUBDIR)/libiberty ; then \
46459 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
46460 mv prev-libiberty stage1-libiberty ; : ; \
0aed8855 46461 fi
d545f33b
PB
46462@endif libiberty
46463@if zlib
80911fe1
PB
46464 @if test -d $(HOST_SUBDIR)/zlib ; then \
46465 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
46466 mv prev-zlib stage1-zlib ; : ; \
0aed8855 46467 fi
d545f33b 46468@endif zlib
700d40ca
ILT
46469@if lto-plugin
46470 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
46471 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin ; \
46472 mv prev-lto-plugin stage1-lto-plugin ; : ; \
46473 fi
46474@endif lto-plugin
0aed8855 46475 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
46476 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
46477 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
0aed8855 46478 fi
80911fe1 46479 rm -f stage_current
72b2455a 46480
973601e1 46481# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 46482# remade, but not reconfigured. The next stage (if any) will not be
675492f0 46483# reconfigured either.
d545f33b
PB
46484.PHONY: stageprofile-bubble
46485stageprofile-bubble:: stage1-bubble
e360f423
PB
46486 @r=`${PWD_COMMAND}`; export r; \
46487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46488 if test -f stageprofile-lean || test -f stage1-lean ; then \
d545f33b
PB
46489 echo Skipping rebuild of stageprofile ; \
46490 else \
f70224b5
PB
46491 $(MAKE) stageprofile-start; \
46492 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 46493 fi
72b2455a 46494
d545f33b
PB
46495.PHONY: all-stageprofile clean-stageprofile
46496do-clean: clean-stageprofile
0df3d27f 46497
72b2455a
PB
46498# FIXME: Will not need to be conditional when toplevel bootstrap is the
46499# only possibility, but now it conflicts with no-bootstrap rules
46500@if gcc-bootstrap
46501
46502
46503
46504
0df3d27f 46505# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 46506distclean-stage1:: distclean-stageprofile
0df3d27f 46507.PHONY: distclean-stageprofile
72b2455a 46508distclean-stageprofile::
0aed8855 46509 @: $(MAKE); $(stage)
e00a73e3 46510 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 46511 rm -rf stageprofile-*
dfdffa2c
PB
46512
46513
72b2455a 46514@endif gcc-bootstrap
dfdffa2c
PB
46515
46516
72b2455a 46517.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 46518
72b2455a 46519stagefeedback-start::
0aed8855 46520 @: $(MAKE); $(stage); \
72b2455a 46521 echo stagefeedback > stage_current ; \
b00612cc 46522 echo stagefeedback > stage_last; \
0aed8855 46523 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 46524@if bfd
b00612cc
PB
46525 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
46526 mkdir stagefeedback-bfd; \
80911fe1
PB
46527 mv stagefeedback-bfd bfd ; \
46528 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
46529@endif bfd
46530@if opcodes
b00612cc
PB
46531 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
46532 mkdir stagefeedback-opcodes; \
80911fe1
PB
46533 mv stagefeedback-opcodes opcodes ; \
46534 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
46535@endif opcodes
46536@if binutils
b00612cc
PB
46537 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
46538 mkdir stagefeedback-binutils; \
80911fe1
PB
46539 mv stagefeedback-binutils binutils ; \
46540 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a
PB
46541@endif binutils
46542@if gas
b00612cc
PB
46543 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
46544 mkdir stagefeedback-gas; \
80911fe1
PB
46545 mv stagefeedback-gas gas ; \
46546 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
46547@endif gas
46548@if gcc
b00612cc
PB
46549 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
46550 mkdir stagefeedback-gcc; \
80911fe1
PB
46551 mv stagefeedback-gcc gcc ; \
46552 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 46553@endif gcc
4b900473
PB
46554@if gmp
46555 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
46556 mkdir stagefeedback-gmp; \
46557 mv stagefeedback-gmp gmp ; \
46558 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
46559@endif gmp
46560@if mpfr
46561 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
46562 mkdir stagefeedback-mpfr; \
46563 mv stagefeedback-mpfr mpfr ; \
46564 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
46565@endif mpfr
e8a5fa9c
RW
46566@if mpc
46567 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
46568 mkdir stagefeedback-mpc; \
46569 mv stagefeedback-mpc mpc ; \
46570 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
46571@endif mpc
7ec59b9e
L
46572@if isl
46573 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
46574 mkdir stagefeedback-isl; \
46575 mv stagefeedback-isl isl ; \
46576 mv stageprofile-isl prev-isl || test -f stageprofile-lean
46577@endif isl
e28c595f
JM
46578@if cloog
46579 @cd $(HOST_SUBDIR); [ -d stagefeedback-cloog ] || \
46580 mkdir stagefeedback-cloog; \
46581 mv stagefeedback-cloog cloog ; \
46582 mv stageprofile-cloog prev-cloog || test -f stageprofile-lean
46583@endif cloog
1f53ca9a
AO
46584@if libelf
46585 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
46586 mkdir stagefeedback-libelf; \
46587 mv stagefeedback-libelf libelf ; \
46588 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
46589@endif libelf
93f9b408
ILT
46590@if gold
46591 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
46592 mkdir stagefeedback-gold; \
46593 mv stagefeedback-gold gold ; \
46594 mv stageprofile-gold prev-gold || test -f stageprofile-lean
46595@endif gold
72b2455a 46596@if intl
b00612cc
PB
46597 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
46598 mkdir stagefeedback-intl; \
80911fe1
PB
46599 mv stagefeedback-intl intl ; \
46600 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
46601@endif intl
46602@if ld
b00612cc
PB
46603 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
46604 mkdir stagefeedback-ld; \
80911fe1
PB
46605 mv stagefeedback-ld ld ; \
46606 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 46607@endif ld
2bf680c4
ILT
46608@if libbacktrace
46609 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
46610 mkdir stagefeedback-libbacktrace; \
46611 mv stagefeedback-libbacktrace libbacktrace ; \
46612 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
46613@endif libbacktrace
72b2455a 46614@if libcpp
b00612cc
PB
46615 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
46616 mkdir stagefeedback-libcpp; \
80911fe1
PB
46617 mv stagefeedback-libcpp libcpp ; \
46618 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 46619@endif libcpp
be01d343
PB
46620@if libdecnumber
46621 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
46622 mkdir stagefeedback-libdecnumber; \
80911fe1
PB
46623 mv stagefeedback-libdecnumber libdecnumber ; \
46624 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 46625@endif libdecnumber
72b2455a 46626@if libiberty
b00612cc
PB
46627 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
46628 mkdir stagefeedback-libiberty; \
80911fe1
PB
46629 mv stagefeedback-libiberty libiberty ; \
46630 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a
PB
46631@endif libiberty
46632@if zlib
b00612cc
PB
46633 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
46634 mkdir stagefeedback-zlib; \
80911fe1
PB
46635 mv stagefeedback-zlib zlib ; \
46636 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 46637@endif zlib
700d40ca
ILT
46638@if lto-plugin
46639 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
46640 mkdir stagefeedback-lto-plugin; \
46641 mv stagefeedback-lto-plugin lto-plugin ; \
46642 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
46643@endif lto-plugin
0aed8855
PB
46644 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
46645 mkdir stagefeedback-$(TARGET_SUBDIR); \
80911fe1
PB
46646 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
46647 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 46648
80911fe1 46649stagefeedback-end::
72b2455a 46650@if bfd
80911fe1
PB
46651 @if test -d $(HOST_SUBDIR)/bfd ; then \
46652 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
46653 mv prev-bfd stageprofile-bfd ; : ; \
0aed8855 46654 fi
72b2455a
PB
46655@endif bfd
46656@if opcodes
80911fe1
PB
46657 @if test -d $(HOST_SUBDIR)/opcodes ; then \
46658 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
46659 mv prev-opcodes stageprofile-opcodes ; : ; \
0aed8855 46660 fi
72b2455a
PB
46661@endif opcodes
46662@if binutils
80911fe1
PB
46663 @if test -d $(HOST_SUBDIR)/binutils ; then \
46664 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
46665 mv prev-binutils stageprofile-binutils ; : ; \
0aed8855 46666 fi
72b2455a
PB
46667@endif binutils
46668@if gas
80911fe1
PB
46669 @if test -d $(HOST_SUBDIR)/gas ; then \
46670 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
46671 mv prev-gas stageprofile-gas ; : ; \
0aed8855 46672 fi
72b2455a
PB
46673@endif gas
46674@if gcc
80911fe1
PB
46675 @if test -d $(HOST_SUBDIR)/gcc ; then \
46676 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
46677 mv prev-gcc stageprofile-gcc ; : ; \
0aed8855 46678 fi
72b2455a 46679@endif gcc
4b900473
PB
46680@if gmp
46681 @if test -d $(HOST_SUBDIR)/gmp ; then \
46682 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp ; \
46683 mv prev-gmp stageprofile-gmp ; : ; \
46684 fi
46685@endif gmp
46686@if mpfr
46687 @if test -d $(HOST_SUBDIR)/mpfr ; then \
46688 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr ; \
46689 mv prev-mpfr stageprofile-mpfr ; : ; \
46690 fi
46691@endif mpfr
e8a5fa9c
RW
46692@if mpc
46693 @if test -d $(HOST_SUBDIR)/mpc ; then \
46694 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc ; \
46695 mv prev-mpc stageprofile-mpc ; : ; \
46696 fi
46697@endif mpc
7ec59b9e
L
46698@if isl
46699 @if test -d $(HOST_SUBDIR)/isl ; then \
46700 cd $(HOST_SUBDIR); mv isl stagefeedback-isl ; \
46701 mv prev-isl stageprofile-isl ; : ; \
e28c595f 46702 fi
7ec59b9e 46703@endif isl
e28c595f
JM
46704@if cloog
46705 @if test -d $(HOST_SUBDIR)/cloog ; then \
46706 cd $(HOST_SUBDIR); mv cloog stagefeedback-cloog ; \
46707 mv prev-cloog stageprofile-cloog ; : ; \
46708 fi
46709@endif cloog
1f53ca9a
AO
46710@if libelf
46711 @if test -d $(HOST_SUBDIR)/libelf ; then \
46712 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf ; \
46713 mv prev-libelf stageprofile-libelf ; : ; \
46714 fi
46715@endif libelf
93f9b408
ILT
46716@if gold
46717 @if test -d $(HOST_SUBDIR)/gold ; then \
46718 cd $(HOST_SUBDIR); mv gold stagefeedback-gold ; \
46719 mv prev-gold stageprofile-gold ; : ; \
46720 fi
46721@endif gold
72b2455a 46722@if intl
80911fe1
PB
46723 @if test -d $(HOST_SUBDIR)/intl ; then \
46724 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
46725 mv prev-intl stageprofile-intl ; : ; \
0aed8855 46726 fi
72b2455a
PB
46727@endif intl
46728@if ld
80911fe1
PB
46729 @if test -d $(HOST_SUBDIR)/ld ; then \
46730 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
46731 mv prev-ld stageprofile-ld ; : ; \
0aed8855 46732 fi
72b2455a 46733@endif ld
2bf680c4
ILT
46734@if libbacktrace
46735 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
46736 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace ; \
46737 mv prev-libbacktrace stageprofile-libbacktrace ; : ; \
46738 fi
46739@endif libbacktrace
72b2455a 46740@if libcpp
80911fe1
PB
46741 @if test -d $(HOST_SUBDIR)/libcpp ; then \
46742 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
46743 mv prev-libcpp stageprofile-libcpp ; : ; \
0aed8855 46744 fi
72b2455a 46745@endif libcpp
be01d343 46746@if libdecnumber
80911fe1
PB
46747 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
46748 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
46749 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
0aed8855 46750 fi
be01d343 46751@endif libdecnumber
72b2455a 46752@if libiberty
80911fe1
PB
46753 @if test -d $(HOST_SUBDIR)/libiberty ; then \
46754 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
46755 mv prev-libiberty stageprofile-libiberty ; : ; \
0aed8855 46756 fi
72b2455a
PB
46757@endif libiberty
46758@if zlib
80911fe1
PB
46759 @if test -d $(HOST_SUBDIR)/zlib ; then \
46760 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
46761 mv prev-zlib stageprofile-zlib ; : ; \
0aed8855 46762 fi
72b2455a 46763@endif zlib
700d40ca
ILT
46764@if lto-plugin
46765 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
46766 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin ; \
46767 mv prev-lto-plugin stageprofile-lto-plugin ; : ; \
46768 fi
46769@endif lto-plugin
0aed8855 46770 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
46771 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
46772 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
0aed8855 46773 fi
80911fe1 46774 rm -f stage_current
dfdffa2c 46775
973601e1 46776# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 46777# remade, but not reconfigured. The next stage (if any) will not be
675492f0 46778# reconfigured either.
72b2455a 46779.PHONY: stagefeedback-bubble
7d329e61 46780stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
46781 @r=`${PWD_COMMAND}`; export r; \
46782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46783 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
9cb3fa6f
PB
46784 echo Skipping rebuild of stagefeedback ; \
46785 else \
f70224b5
PB
46786 $(MAKE) stagefeedback-start; \
46787 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 46788 fi
72b2455a 46789
0df3d27f 46790.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 46791do-clean: clean-stagefeedback
0df3d27f 46792
72b2455a
PB
46793# FIXME: Will not need to be conditional when toplevel bootstrap is the
46794# only possibility, but now it conflicts with no-bootstrap rules
46795@if gcc-bootstrap
656fdd47
PB
46796
46797
46798
80911fe1 46799.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
46800profiledbootstrap:
46801 echo stagefeedback > stage_final
46802 @r=`${PWD_COMMAND}`; export r; \
46803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46804 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 46805 @: $(MAKE); $(unstage)
be01d343
PB
46806 @r=`${PWD_COMMAND}`; export r; \
46807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 46808 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 46809 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 46810
80911fe1
PB
46811profiledbootstrap-lean:
46812 echo stagefeedback > stage_final
46813 @r=`${PWD_COMMAND}`; export r; \
46814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46815 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
46816 @: $(MAKE); $(unstage)
46817 @r=`${PWD_COMMAND}`; export r; \
46818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 46819 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
46820 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
46821
656fdd47 46822
0df3d27f 46823# Rules to wipe a stage and all the following ones, also used for cleanstrap
7d329e61 46824distclean-stageprofile:: distclean-stagefeedback
0df3d27f 46825.PHONY: distclean-stagefeedback
656fdd47 46826distclean-stagefeedback::
0aed8855 46827 @: $(MAKE); $(stage)
e00a73e3 46828 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 46829 rm -rf stagefeedback-*
656fdd47
PB
46830
46831
72b2455a 46832@endif gcc-bootstrap
656fdd47
PB
46833
46834
46835
7d329e61
PB
46836stageprofile-end::
46837 $(MAKE) distclean-stagefeedback
656fdd47 46838
7d329e61 46839stagefeedback-start::
656fdd47
PB
46840 @r=`${PWD_COMMAND}`; export r; \
46841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61
PB
46842 for i in prev-*; do \
46843 j=`echo $$i | sed s/^prev-//` ; \
46844 cd $$r/$$i && \
46845 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
46846 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
46847 done
b8908782 46848
0df3d27f 46849@if gcc-bootstrap
0df3d27f 46850do-distclean: distclean-stage1
c52c6897
PB
46851
46852# Provide a GCC build when we're building target libraries. This does
46853# not work as a dependency, just as the minimum necessary to avoid errors.
46854stage_last:
314b2e66
AS
46855 @r=`${PWD_COMMAND}`; export r; \
46856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 46857 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 46858
4f0ef2d8
CD
46859# Same as unstage, but not phony and defaulting to stage1-start. We place
46860# it in the dependency so that for example `make -j3 all-gcc' works.
46861stage_current:
46862 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
46863
c52c6897 46864.PHONY: restrap
266df637 46865restrap::
c52c6897 46866 @: $(MAKE); $(stage)
1b05fbbd 46867 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 46868restrap:: all
c380fdd8 46869@endif gcc-bootstrap
c52c6897 46870
ae831be5
NN
46871# --------------------------------------
46872# Dependencies between different modules
46873# --------------------------------------
252b5132 46874
9e6ce191 46875# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 46876@if gcc-bootstrap
e8a5fa9c
RW
46877configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
46878configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
46879configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
46880configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
46881configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
46882configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
46883configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
46884configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
46885configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
46886configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
46887configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
46888configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
95e43135
JBG
46889configure-stage1-target-libvtv: maybe-all-stage1-gcc
46890configure-stage2-target-libvtv: maybe-all-stage2-gcc
46891configure-stage3-target-libvtv: maybe-all-stage3-gcc
46892configure-stage4-target-libvtv: maybe-all-stage4-gcc
46893configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
46894configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
522e3d71 46895configure-target-libcilkrts: stage_last
c52c6897 46896configure-target-libssp: stage_last
c52c6897 46897configure-target-newlib: stage_last
6aa8ef82
DJ
46898configure-stage1-target-libgcc: maybe-all-stage1-gcc
46899configure-stage2-target-libgcc: maybe-all-stage2-gcc
46900configure-stage3-target-libgcc: maybe-all-stage3-gcc
46901configure-stage4-target-libgcc: maybe-all-stage4-gcc
46902configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
46903configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 46904configure-target-libbacktrace: stage_last
e552509b 46905configure-target-libquadmath: stage_last
c52c6897
PB
46906configure-target-libgfortran: stage_last
46907configure-target-libobjc: stage_last
e552509b 46908configure-target-libgo: stage_last
c52c6897
PB
46909configure-target-libtermcap: stage_last
46910configure-target-winsup: stage_last
46911configure-target-libgloss: stage_last
c52c6897
PB
46912configure-target-libffi: stage_last
46913configure-target-libjava: stage_last
46914configure-target-zlib: stage_last
46915configure-target-boehm-gc: stage_last
c52c6897
PB
46916configure-target-rda: stage_last
46917configure-target-libada: stage_last
911e63d0
JR
46918configure-stage1-target-libgomp: maybe-all-stage1-gcc
46919configure-stage2-target-libgomp: maybe-all-stage2-gcc
46920configure-stage3-target-libgomp: maybe-all-stage3-gcc
46921configure-stage4-target-libgomp: maybe-all-stage4-gcc
46922configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
46923configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
46924configure-target-libitm: stage_last
46925configure-target-libatomic: stage_last
c52c6897 46926@endif gcc-bootstrap
9e6ce191 46927
c52c6897 46928@if gcc-no-bootstrap
9e6ce191 46929configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 46930configure-target-libsanitizer: maybe-all-gcc
95e43135 46931configure-target-libvtv: maybe-all-gcc
064d0a7c 46932configure-target-libssp: maybe-all-gcc
9e6ce191 46933configure-target-newlib: maybe-all-gcc
6aa8ef82 46934configure-target-libgcc: maybe-all-gcc
2bf680c4 46935configure-target-libbacktrace: maybe-all-gcc
e552509b 46936configure-target-libquadmath: maybe-all-gcc
9e6ce191 46937configure-target-libgfortran: maybe-all-gcc
9e6ce191 46938configure-target-libobjc: maybe-all-gcc
e552509b 46939configure-target-libgo: maybe-all-gcc
9e6ce191 46940configure-target-libtermcap: maybe-all-gcc
9e6ce191 46941configure-target-winsup: maybe-all-gcc
9e6ce191 46942configure-target-libgloss: maybe-all-gcc
9e6ce191 46943configure-target-libffi: maybe-all-gcc
9e6ce191 46944configure-target-libjava: maybe-all-gcc
9e6ce191 46945configure-target-zlib: maybe-all-gcc
9e6ce191 46946configure-target-boehm-gc: maybe-all-gcc
9e6ce191 46947configure-target-rda: maybe-all-gcc
9e6ce191 46948configure-target-libada: maybe-all-gcc
b3ded179 46949configure-target-libgomp: maybe-all-gcc
522e3d71 46950configure-target-libcilkrts: maybe-all-gcc
7ec59b9e
L
46951configure-target-libitm: maybe-all-gcc
46952configure-target-libatomic: maybe-all-gcc
c52c6897 46953@endif gcc-no-bootstrap
b3ded179 46954
9e6ce191 46955
ae831be5
NN
46956# There are two types of dependencies here: 'hard' dependencies, where one
46957# module simply won't build without the other; and 'soft' dependencies, where
46958# if the depended-on module is missing, the depending module will do without
46959# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 46960# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
46961# it's safer to use a soft dependency.
46962
9e6ce191
PB
46963
46964
46965
46966
c60fe18b 46967
9e6ce191
PB
46968# With all the machinery above in place, it is pretty easy to generate
46969# dependencies. Host dependencies are a bit more complex because we have
46970# to check for bootstrap/prebootstrap dependencies. To resolve
46971# prebootstrap dependencies, prebootstrap modules are gathered in
46972# a hash table.
6a9cf61e
PB
46973all-build-bison: maybe-all-build-texinfo
46974all-build-flex: maybe-all-build-texinfo
9e6ce191 46975all-build-flex: maybe-all-build-bison
9e6ce191 46976all-build-flex: maybe-all-build-m4
6a9cf61e 46977all-build-libiberty: maybe-all-build-texinfo
9e6ce191 46978all-build-m4: maybe-all-build-texinfo
ee025550 46979all-build-fixincludes: maybe-all-build-libiberty
9e6ce191
PB
46980configure-gcc: maybe-configure-intl
46981
46982configure-stage1-gcc: maybe-configure-stage1-intl
46983configure-stage2-gcc: maybe-configure-stage2-intl
46984configure-stage3-gcc: maybe-configure-stage3-intl
46985configure-stage4-gcc: maybe-configure-stage4-intl
46986configure-stageprofile-gcc: maybe-configure-stageprofile-intl
46987configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8
L
46988configure-gcc: maybe-all-gmp
46989
46990configure-stage1-gcc: maybe-all-stage1-gmp
46991configure-stage2-gcc: maybe-all-stage2-gmp
46992configure-stage3-gcc: maybe-all-stage3-gmp
46993configure-stage4-gcc: maybe-all-stage4-gmp
46994configure-stageprofile-gcc: maybe-all-stageprofile-gmp
46995configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
8d8eef9a
RW
46996configure-gcc: maybe-all-lto-plugin
46997
46998configure-stage1-gcc: maybe-all-stage1-lto-plugin
46999configure-stage2-gcc: maybe-all-stage2-lto-plugin
47000configure-stage3-gcc: maybe-all-stage3-lto-plugin
47001configure-stage4-gcc: maybe-all-stage4-lto-plugin
47002configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
47003configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b
PB
47004configure-gcc: maybe-all-binutils
47005
47006configure-stage1-gcc: maybe-all-stage1-binutils
47007configure-stage2-gcc: maybe-all-stage2-binutils
47008configure-stage3-gcc: maybe-all-stage3-binutils
47009configure-stage4-gcc: maybe-all-stage4-binutils
47010configure-stageprofile-gcc: maybe-all-stageprofile-binutils
47011configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
47012configure-gcc: maybe-all-gas
47013
47014configure-stage1-gcc: maybe-all-stage1-gas
47015configure-stage2-gcc: maybe-all-stage2-gas
47016configure-stage3-gcc: maybe-all-stage3-gas
47017configure-stage4-gcc: maybe-all-stage4-gas
47018configure-stageprofile-gcc: maybe-all-stageprofile-gas
47019configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
47020configure-gcc: maybe-all-ld
47021
47022configure-stage1-gcc: maybe-all-stage1-ld
47023configure-stage2-gcc: maybe-all-stage2-ld
47024configure-stage3-gcc: maybe-all-stage3-ld
47025configure-stage4-gcc: maybe-all-stage4-ld
47026configure-stageprofile-gcc: maybe-all-stageprofile-ld
47027configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408
ILT
47028configure-gcc: maybe-all-gold
47029
47030configure-stage1-gcc: maybe-all-stage1-gold
47031configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 47032configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
47033configure-stage4-gcc: maybe-all-stage4-gold
47034configure-stageprofile-gcc: maybe-all-stageprofile-gold
47035configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480
AO
47036configure-gcc: maybe-all-libelf
47037
47038configure-stage1-gcc: maybe-all-stage1-libelf
47039configure-stage2-gcc: maybe-all-stage2-libelf
47040configure-stage3-gcc: maybe-all-stage3-libelf
47041configure-stage4-gcc: maybe-all-stage4-libelf
47042configure-stageprofile-gcc: maybe-all-stageprofile-libelf
47043configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
9e6ce191
PB
47044all-gcc: all-libiberty
47045
47046all-stage1-gcc: all-stage1-libiberty
47047all-stage2-gcc: all-stage2-libiberty
47048all-stage3-gcc: all-stage3-libiberty
47049all-stage4-gcc: all-stage4-libiberty
47050all-stageprofile-gcc: all-stageprofile-libiberty
47051all-stagefeedback-gcc: all-stagefeedback-libiberty
47052all-gcc: maybe-all-intl
47053
47054all-stage1-gcc: maybe-all-stage1-intl
47055all-stage2-gcc: maybe-all-stage2-intl
47056all-stage3-gcc: maybe-all-stage3-intl
47057all-stage4-gcc: maybe-all-stage4-intl
47058all-stageprofile-gcc: maybe-all-stageprofile-intl
47059all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473
PB
47060all-gcc: maybe-all-mpfr
47061
47062all-stage1-gcc: maybe-all-stage1-mpfr
47063all-stage2-gcc: maybe-all-stage2-mpfr
47064all-stage3-gcc: maybe-all-stage3-mpfr
47065all-stage4-gcc: maybe-all-stage4-mpfr
47066all-stageprofile-gcc: maybe-all-stageprofile-mpfr
47067all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c
RW
47068all-gcc: maybe-all-mpc
47069
47070all-stage1-gcc: maybe-all-stage1-mpc
47071all-stage2-gcc: maybe-all-stage2-mpc
47072all-stage3-gcc: maybe-all-stage3-mpc
47073all-stage4-gcc: maybe-all-stage4-mpc
47074all-stageprofile-gcc: maybe-all-stageprofile-mpc
47075all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
e28c595f
JM
47076all-gcc: maybe-all-cloog
47077
47078all-stage1-gcc: maybe-all-stage1-cloog
47079all-stage2-gcc: maybe-all-stage2-cloog
e28c595f 47080all-stage3-gcc: maybe-all-stage3-cloog
e28c595f
JM
47081all-stage4-gcc: maybe-all-stage4-cloog
47082all-stageprofile-gcc: maybe-all-stageprofile-cloog
47083all-stagefeedback-gcc: maybe-all-stagefeedback-cloog
72b2455a
PB
47084all-gcc: maybe-all-build-texinfo
47085
47086all-stage1-gcc: maybe-all-build-texinfo
47087all-stage2-gcc: maybe-all-build-texinfo
47088all-stage3-gcc: maybe-all-build-texinfo
47089all-stage4-gcc: maybe-all-build-texinfo
47090all-stageprofile-gcc: maybe-all-build-texinfo
47091all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a
PB
47092all-gcc: maybe-all-build-bison
47093
47094all-stage1-gcc: maybe-all-build-bison
47095all-stage2-gcc: maybe-all-build-bison
47096all-stage3-gcc: maybe-all-build-bison
47097all-stage4-gcc: maybe-all-build-bison
47098all-stageprofile-gcc: maybe-all-build-bison
47099all-stagefeedback-gcc: maybe-all-build-bison
72b2455a
PB
47100all-gcc: maybe-all-build-flex
47101
47102all-stage1-gcc: maybe-all-build-flex
47103all-stage2-gcc: maybe-all-build-flex
47104all-stage3-gcc: maybe-all-build-flex
47105all-stage4-gcc: maybe-all-build-flex
47106all-stageprofile-gcc: maybe-all-build-flex
47107all-stagefeedback-gcc: maybe-all-build-flex
ee025550
PB
47108all-gcc: maybe-all-build-libiberty
47109
47110all-stage1-gcc: maybe-all-build-libiberty
47111all-stage2-gcc: maybe-all-build-libiberty
47112all-stage3-gcc: maybe-all-build-libiberty
47113all-stage4-gcc: maybe-all-build-libiberty
47114all-stageprofile-gcc: maybe-all-build-libiberty
47115all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550
PB
47116all-gcc: maybe-all-build-fixincludes
47117
47118all-stage1-gcc: maybe-all-build-fixincludes
47119all-stage2-gcc: maybe-all-build-fixincludes
47120all-stage3-gcc: maybe-all-build-fixincludes
47121all-stage4-gcc: maybe-all-build-fixincludes
47122all-stageprofile-gcc: maybe-all-build-fixincludes
47123all-stagefeedback-gcc: maybe-all-build-fixincludes
9e6ce191
PB
47124all-gcc: maybe-all-zlib
47125
47126all-stage1-gcc: maybe-all-stage1-zlib
47127all-stage2-gcc: maybe-all-stage2-zlib
47128all-stage3-gcc: maybe-all-stage3-zlib
47129all-stage4-gcc: maybe-all-stage4-zlib
47130all-stageprofile-gcc: maybe-all-stageprofile-zlib
47131all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b
L
47132all-gcc: all-libbacktrace
47133
47134all-stage1-gcc: all-stage1-libbacktrace
47135all-stage2-gcc: all-stage2-libbacktrace
47136all-stage3-gcc: all-stage3-libbacktrace
47137all-stage4-gcc: all-stage4-libbacktrace
47138all-stageprofile-gcc: all-stageprofile-libbacktrace
47139all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191
PB
47140all-gcc: all-libcpp
47141
47142all-stage1-gcc: all-stage1-libcpp
47143all-stage2-gcc: all-stage2-libcpp
47144all-stage3-gcc: all-stage3-libcpp
47145all-stage4-gcc: all-stage4-libcpp
47146all-stageprofile-gcc: all-stageprofile-libcpp
47147all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343
PB
47148all-gcc: all-libdecnumber
47149
47150all-stage1-gcc: all-stage1-libdecnumber
47151all-stage2-gcc: all-stage2-libdecnumber
47152all-stage3-gcc: all-stage3-libdecnumber
47153all-stage4-gcc: all-stage4-libdecnumber
47154all-stageprofile-gcc: all-stageprofile-libdecnumber
47155all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c
GK
47156all-gcc: maybe-all-libiberty
47157
47158all-stage1-gcc: maybe-all-stage1-libiberty
47159all-stage2-gcc: maybe-all-stage2-libiberty
47160all-stage3-gcc: maybe-all-stage3-libiberty
47161all-stage4-gcc: maybe-all-stage4-libiberty
47162all-stageprofile-gcc: maybe-all-stageprofile-libiberty
47163all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
47164all-gcc: maybe-all-fixincludes
8d8eef9a
RW
47165all-gcc: maybe-all-lto-plugin
47166
47167all-stage1-gcc: maybe-all-stage1-lto-plugin
47168all-stage2-gcc: maybe-all-stage2-lto-plugin
47169all-stage3-gcc: maybe-all-stage3-lto-plugin
47170all-stage4-gcc: maybe-all-stage4-lto-plugin
47171all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
47172all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
57eefe4d
RW
47173info-gcc: maybe-all-build-libiberty
47174
47175info-stage1-gcc: maybe-all-build-libiberty
47176info-stage2-gcc: maybe-all-build-libiberty
47177info-stage3-gcc: maybe-all-build-libiberty
47178info-stage4-gcc: maybe-all-build-libiberty
47179info-stageprofile-gcc: maybe-all-build-libiberty
47180info-stagefeedback-gcc: maybe-all-build-libiberty
47181dvi-gcc: maybe-all-build-libiberty
47182
47183dvi-stage1-gcc: maybe-all-build-libiberty
47184dvi-stage2-gcc: maybe-all-build-libiberty
47185dvi-stage3-gcc: maybe-all-build-libiberty
47186dvi-stage4-gcc: maybe-all-build-libiberty
47187dvi-stageprofile-gcc: maybe-all-build-libiberty
47188dvi-stagefeedback-gcc: maybe-all-build-libiberty
47189pdf-gcc: maybe-all-build-libiberty
47190
47191pdf-stage1-gcc: maybe-all-build-libiberty
47192pdf-stage2-gcc: maybe-all-build-libiberty
47193pdf-stage3-gcc: maybe-all-build-libiberty
47194pdf-stage4-gcc: maybe-all-build-libiberty
47195pdf-stageprofile-gcc: maybe-all-build-libiberty
47196pdf-stagefeedback-gcc: maybe-all-build-libiberty
47197html-gcc: maybe-all-build-libiberty
47198
47199html-stage1-gcc: maybe-all-build-libiberty
47200html-stage2-gcc: maybe-all-build-libiberty
47201html-stage3-gcc: maybe-all-build-libiberty
47202html-stage4-gcc: maybe-all-build-libiberty
47203html-stageprofile-gcc: maybe-all-build-libiberty
47204html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 47205install-gcc: maybe-install-fixincludes
8d8eef9a 47206install-gcc: maybe-install-lto-plugin
9b980aa1 47207install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 47208install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191
PB
47209configure-libcpp: configure-libiberty
47210
47211configure-stage1-libcpp: configure-stage1-libiberty
47212configure-stage2-libcpp: configure-stage2-libiberty
47213configure-stage3-libcpp: configure-stage3-libiberty
47214configure-stage4-libcpp: configure-stage4-libiberty
47215configure-stageprofile-libcpp: configure-stageprofile-libiberty
47216configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
47217configure-libcpp: maybe-configure-intl
47218
47219configure-stage1-libcpp: maybe-configure-stage1-intl
47220configure-stage2-libcpp: maybe-configure-stage2-intl
47221configure-stage3-libcpp: maybe-configure-stage3-intl
47222configure-stage4-libcpp: maybe-configure-stage4-intl
47223configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
47224configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
47225all-libcpp: all-libiberty
47226
47227all-stage1-libcpp: all-stage1-libiberty
47228all-stage2-libcpp: all-stage2-libiberty
47229all-stage3-libcpp: all-stage3-libiberty
47230all-stage4-libcpp: all-stage4-libiberty
47231all-stageprofile-libcpp: all-stageprofile-libiberty
47232all-stagefeedback-libcpp: all-stagefeedback-libiberty
47233all-libcpp: maybe-all-intl
47234
47235all-stage1-libcpp: maybe-all-stage1-intl
47236all-stage2-libcpp: maybe-all-stage2-intl
47237all-stage3-libcpp: maybe-all-stage3-intl
47238all-stage4-libcpp: maybe-all-stage4-intl
47239all-stageprofile-libcpp: maybe-all-stageprofile-intl
47240all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
d3ed111c 47241all-fixincludes: maybe-all-libiberty
b00612cc 47242all-gnattools: maybe-all-target-libada
8d8eef9a
RW
47243all-lto-plugin: maybe-all-libiberty
47244
47245all-stage1-lto-plugin: maybe-all-stage1-libiberty
47246all-stage2-lto-plugin: maybe-all-stage2-libiberty
47247all-stage3-lto-plugin: maybe-all-stage3-libiberty
47248all-stage4-lto-plugin: maybe-all-stage4-libiberty
47249all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
47250all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
28d9b232 47251all-utils: maybe-all-libiberty
4b900473
PB
47252configure-mpfr: maybe-all-gmp
47253
47254configure-stage1-mpfr: maybe-all-stage1-gmp
47255configure-stage2-mpfr: maybe-all-stage2-gmp
47256configure-stage3-mpfr: maybe-all-stage3-gmp
47257configure-stage4-mpfr: maybe-all-stage4-gmp
47258configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
47259configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c
RW
47260configure-mpc: maybe-all-mpfr
47261
47262configure-stage1-mpc: maybe-all-stage1-mpfr
47263configure-stage2-mpc: maybe-all-stage2-mpfr
47264configure-stage3-mpc: maybe-all-stage3-mpfr
47265configure-stage4-mpc: maybe-all-stage4-mpfr
47266configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
47267configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e
L
47268configure-isl: maybe-all-gmp
47269
47270configure-stage1-isl: maybe-all-stage1-gmp
47271configure-stage2-isl: maybe-all-stage2-gmp
47272configure-stage3-isl: maybe-all-stage3-gmp
47273configure-stage4-isl: maybe-all-stage4-gmp
47274configure-stageprofile-isl: maybe-all-stageprofile-gmp
47275configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
47276configure-cloog: maybe-all-isl
47277
47278configure-stage1-cloog: maybe-all-stage1-isl
47279configure-stage2-cloog: maybe-all-stage2-isl
47280configure-stage3-cloog: maybe-all-stage3-isl
47281configure-stage4-cloog: maybe-all-stage4-isl
47282configure-stageprofile-cloog: maybe-all-stageprofile-isl
47283configure-stagefeedback-cloog: maybe-all-stagefeedback-isl
47284configure-cloog: maybe-all-gmp
47285
47286configure-stage1-cloog: maybe-all-stage1-gmp
47287configure-stage2-cloog: maybe-all-stage2-gmp
47288configure-stage3-cloog: maybe-all-stage3-gmp
47289configure-stage4-cloog: maybe-all-stage4-gmp
47290configure-stageprofile-cloog: maybe-all-stageprofile-gmp
47291configure-stagefeedback-cloog: maybe-all-stagefeedback-gmp
7b3200f9 47292configure-gdb: maybe-all-intl
9e6ce191 47293configure-gdb: maybe-configure-sim
31d99776 47294configure-gdb: maybe-all-bfd
dc448a7b 47295configure-gdb: maybe-all-libiconv
9e6ce191 47296all-gdb: maybe-all-libiberty
dc448a7b 47297all-gdb: maybe-all-libiconv
9e6ce191 47298all-gdb: maybe-all-opcodes
9e6ce191 47299all-gdb: maybe-all-readline
72b2455a 47300all-gdb: maybe-all-build-bison
9e6ce191 47301all-gdb: maybe-all-sim
5074315a 47302all-gdb: maybe-all-libdecnumber
dbbe5f95 47303all-gdb: maybe-all-libtermcap
9e6ce191
PB
47304configure-libgui: maybe-configure-tcl
47305configure-libgui: maybe-configure-tk
47306all-libgui: maybe-all-tcl
47307all-libgui: maybe-all-tk
47308all-libgui: maybe-all-itcl
b4a77b47 47309configure-bfd: configure-libiberty
9e6ce191
PB
47310
47311configure-stage1-bfd: configure-stage1-libiberty
47312configure-stage2-bfd: configure-stage2-libiberty
47313configure-stage3-bfd: configure-stage3-libiberty
47314configure-stage4-bfd: configure-stage4-libiberty
47315configure-stageprofile-bfd: configure-stageprofile-libiberty
47316configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23
DJ
47317configure-bfd: maybe-configure-intl
47318
47319configure-stage1-bfd: maybe-configure-stage1-intl
47320configure-stage2-bfd: maybe-configure-stage2-intl
47321configure-stage3-bfd: maybe-configure-stage3-intl
47322configure-stage4-bfd: maybe-configure-stage4-intl
47323configure-stageprofile-bfd: maybe-configure-stageprofile-intl
47324configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191
PB
47325all-bfd: maybe-all-libiberty
47326
47327all-stage1-bfd: maybe-all-stage1-libiberty
47328all-stage2-bfd: maybe-all-stage2-libiberty
47329all-stage3-bfd: maybe-all-stage3-libiberty
47330all-stage4-bfd: maybe-all-stage4-libiberty
47331all-stageprofile-bfd: maybe-all-stageprofile-libiberty
47332all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
47333all-bfd: maybe-all-intl
47334
47335all-stage1-bfd: maybe-all-stage1-intl
47336all-stage2-bfd: maybe-all-stage2-intl
47337all-stage3-bfd: maybe-all-stage3-intl
47338all-stage4-bfd: maybe-all-stage4-intl
47339all-stageprofile-bfd: maybe-all-stageprofile-intl
47340all-stagefeedback-bfd: maybe-all-stagefeedback-intl
66775d67
AM
47341configure-opcodes: configure-libiberty
47342
47343configure-stage1-opcodes: configure-stage1-libiberty
47344configure-stage2-opcodes: configure-stage2-libiberty
66775d67 47345configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
47346configure-stage4-opcodes: configure-stage4-libiberty
47347configure-stageprofile-opcodes: configure-stageprofile-libiberty
47348configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
47349all-opcodes: maybe-all-libiberty
47350
47351all-stage1-opcodes: maybe-all-stage1-libiberty
47352all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 47353all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
47354all-stage4-opcodes: maybe-all-stage4-libiberty
47355all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
47356all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23
DJ
47357configure-binutils: maybe-configure-intl
47358
47359configure-stage1-binutils: maybe-configure-stage1-intl
47360configure-stage2-binutils: maybe-configure-stage2-intl
47361configure-stage3-binutils: maybe-configure-stage3-intl
47362configure-stage4-binutils: maybe-configure-stage4-intl
47363configure-stageprofile-binutils: maybe-configure-stageprofile-intl
47364configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191
PB
47365all-binutils: maybe-all-libiberty
47366
47367all-stage1-binutils: maybe-all-stage1-libiberty
47368all-stage2-binutils: maybe-all-stage2-libiberty
47369all-stage3-binutils: maybe-all-stage3-libiberty
47370all-stage4-binutils: maybe-all-stage4-libiberty
47371all-stageprofile-binutils: maybe-all-stageprofile-libiberty
47372all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
47373all-binutils: maybe-all-opcodes
47374
47375all-stage1-binutils: maybe-all-stage1-opcodes
47376all-stage2-binutils: maybe-all-stage2-opcodes
47377all-stage3-binutils: maybe-all-stage3-opcodes
47378all-stage4-binutils: maybe-all-stage4-opcodes
47379all-stageprofile-binutils: maybe-all-stageprofile-opcodes
47380all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
47381all-binutils: maybe-all-bfd
47382
47383all-stage1-binutils: maybe-all-stage1-bfd
47384all-stage2-binutils: maybe-all-stage2-bfd
47385all-stage3-binutils: maybe-all-stage3-bfd
47386all-stage4-binutils: maybe-all-stage4-bfd
47387all-stageprofile-binutils: maybe-all-stageprofile-bfd
47388all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
47389all-binutils: maybe-all-build-flex
47390
47391all-stage1-binutils: maybe-all-build-flex
47392all-stage2-binutils: maybe-all-build-flex
47393all-stage3-binutils: maybe-all-build-flex
47394all-stage4-binutils: maybe-all-build-flex
47395all-stageprofile-binutils: maybe-all-build-flex
47396all-stagefeedback-binutils: maybe-all-build-flex
72b2455a
PB
47397all-binutils: maybe-all-build-bison
47398
47399all-stage1-binutils: maybe-all-build-bison
47400all-stage2-binutils: maybe-all-build-bison
47401all-stage3-binutils: maybe-all-build-bison
47402all-stage4-binutils: maybe-all-build-bison
47403all-stageprofile-binutils: maybe-all-build-bison
47404all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191
PB
47405all-binutils: maybe-all-intl
47406
47407all-stage1-binutils: maybe-all-stage1-intl
47408all-stage2-binutils: maybe-all-stage2-intl
47409all-stage3-binutils: maybe-all-stage3-intl
47410all-stage4-binutils: maybe-all-stage4-intl
47411all-stageprofile-binutils: maybe-all-stageprofile-intl
47412all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685
L
47413all-binutils: maybe-all-gas
47414
47415all-stage1-binutils: maybe-all-stage1-gas
47416all-stage2-binutils: maybe-all-stage2-gas
47417all-stage3-binutils: maybe-all-stage3-gas
47418all-stage4-binutils: maybe-all-stage4-gas
47419all-stageprofile-binutils: maybe-all-stageprofile-gas
47420all-stagefeedback-binutils: maybe-all-stagefeedback-gas
ae831be5 47421install-binutils: maybe-install-opcodes
9b980aa1 47422install-strip-binutils: maybe-install-strip-opcodes
cf662e21 47423install-opcodes: maybe-install-bfd
9b980aa1 47424install-strip-opcodes: maybe-install-strip-bfd
20e95c23
DJ
47425configure-gas: maybe-configure-intl
47426
47427configure-stage1-gas: maybe-configure-stage1-intl
47428configure-stage2-gas: maybe-configure-stage2-intl
47429configure-stage3-gas: maybe-configure-stage3-intl
47430configure-stage4-gas: maybe-configure-stage4-intl
47431configure-stageprofile-gas: maybe-configure-stageprofile-intl
47432configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191
PB
47433all-gas: maybe-all-libiberty
47434
47435all-stage1-gas: maybe-all-stage1-libiberty
47436all-stage2-gas: maybe-all-stage2-libiberty
47437all-stage3-gas: maybe-all-stage3-libiberty
47438all-stage4-gas: maybe-all-stage4-libiberty
47439all-stageprofile-gas: maybe-all-stageprofile-libiberty
47440all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
47441all-gas: maybe-all-opcodes
47442
47443all-stage1-gas: maybe-all-stage1-opcodes
47444all-stage2-gas: maybe-all-stage2-opcodes
47445all-stage3-gas: maybe-all-stage3-opcodes
47446all-stage4-gas: maybe-all-stage4-opcodes
47447all-stageprofile-gas: maybe-all-stageprofile-opcodes
47448all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
47449all-gas: maybe-all-bfd
47450
47451all-stage1-gas: maybe-all-stage1-bfd
47452all-stage2-gas: maybe-all-stage2-bfd
47453all-stage3-gas: maybe-all-stage3-bfd
47454all-stage4-gas: maybe-all-stage4-bfd
47455all-stageprofile-gas: maybe-all-stageprofile-bfd
47456all-stagefeedback-gas: maybe-all-stagefeedback-bfd
47457all-gas: maybe-all-intl
47458
47459all-stage1-gas: maybe-all-stage1-intl
47460all-stage2-gas: maybe-all-stage2-intl
47461all-stage3-gas: maybe-all-stage3-intl
47462all-stage4-gas: maybe-all-stage4-intl
47463all-stageprofile-gas: maybe-all-stageprofile-intl
47464all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 47465configure-gprof: maybe-configure-intl
9e6ce191
PB
47466all-gprof: maybe-all-libiberty
47467all-gprof: maybe-all-bfd
47468all-gprof: maybe-all-opcodes
47469all-gprof: maybe-all-intl
0140d685 47470all-gprof: maybe-all-gas
20e95c23
DJ
47471configure-ld: maybe-configure-intl
47472
47473configure-stage1-ld: maybe-configure-stage1-intl
47474configure-stage2-ld: maybe-configure-stage2-intl
47475configure-stage3-ld: maybe-configure-stage3-intl
47476configure-stage4-ld: maybe-configure-stage4-intl
47477configure-stageprofile-ld: maybe-configure-stageprofile-intl
47478configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191
PB
47479all-ld: maybe-all-libiberty
47480
47481all-stage1-ld: maybe-all-stage1-libiberty
47482all-stage2-ld: maybe-all-stage2-libiberty
47483all-stage3-ld: maybe-all-stage3-libiberty
47484all-stage4-ld: maybe-all-stage4-libiberty
47485all-stageprofile-ld: maybe-all-stageprofile-libiberty
47486all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
47487all-ld: maybe-all-bfd
47488
47489all-stage1-ld: maybe-all-stage1-bfd
47490all-stage2-ld: maybe-all-stage2-bfd
47491all-stage3-ld: maybe-all-stage3-bfd
47492all-stage4-ld: maybe-all-stage4-bfd
47493all-stageprofile-ld: maybe-all-stageprofile-bfd
47494all-stagefeedback-ld: maybe-all-stagefeedback-bfd
47495all-ld: maybe-all-opcodes
47496
47497all-stage1-ld: maybe-all-stage1-opcodes
47498all-stage2-ld: maybe-all-stage2-opcodes
47499all-stage3-ld: maybe-all-stage3-opcodes
47500all-stage4-ld: maybe-all-stage4-opcodes
47501all-stageprofile-ld: maybe-all-stageprofile-opcodes
47502all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
47503all-ld: maybe-all-build-bison
47504
47505all-stage1-ld: maybe-all-build-bison
47506all-stage2-ld: maybe-all-build-bison
47507all-stage3-ld: maybe-all-build-bison
47508all-stage4-ld: maybe-all-build-bison
47509all-stageprofile-ld: maybe-all-build-bison
47510all-stagefeedback-ld: maybe-all-build-bison
72b2455a
PB
47511all-ld: maybe-all-build-flex
47512
47513all-stage1-ld: maybe-all-build-flex
47514all-stage2-ld: maybe-all-build-flex
47515all-stage3-ld: maybe-all-build-flex
47516all-stage4-ld: maybe-all-build-flex
47517all-stageprofile-ld: maybe-all-build-flex
47518all-stagefeedback-ld: maybe-all-build-flex
9e6ce191
PB
47519all-ld: maybe-all-intl
47520
47521all-stage1-ld: maybe-all-stage1-intl
47522all-stage2-ld: maybe-all-stage2-intl
47523all-stage3-ld: maybe-all-stage3-intl
47524all-stage4-ld: maybe-all-stage4-intl
47525all-stageprofile-ld: maybe-all-stageprofile-intl
47526all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685
L
47527all-ld: maybe-all-gas
47528
47529all-stage1-ld: maybe-all-stage1-gas
47530all-stage2-ld: maybe-all-stage2-gas
47531all-stage3-ld: maybe-all-stage3-gas
47532all-stage4-ld: maybe-all-stage4-gas
47533all-stageprofile-ld: maybe-all-stageprofile-gas
47534all-stagefeedback-ld: maybe-all-stagefeedback-gas
e6de499b 47535install-ld: maybe-install-gold
9b980aa1 47536install-strip-ld: maybe-install-strip-gold
93f9b408
ILT
47537configure-gold: maybe-configure-intl
47538
47539configure-stage1-gold: maybe-configure-stage1-intl
47540configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 47541configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
47542configure-stage4-gold: maybe-configure-stage4-intl
47543configure-stageprofile-gold: maybe-configure-stageprofile-intl
47544configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
47545all-gold: maybe-all-libiberty
47546
47547all-stage1-gold: maybe-all-stage1-libiberty
47548all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 47549all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
47550all-stage4-gold: maybe-all-stage4-libiberty
47551all-stageprofile-gold: maybe-all-stageprofile-libiberty
47552all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
47553all-gold: maybe-all-intl
47554
47555all-stage1-gold: maybe-all-stage1-intl
47556all-stage2-gold: maybe-all-stage2-intl
93f9b408 47557all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
47558all-stage4-gold: maybe-all-stage4-intl
47559all-stageprofile-gold: maybe-all-stageprofile-intl
47560all-stagefeedback-gold: maybe-all-stagefeedback-intl
47561all-gold: maybe-all-bfd
47562
47563all-stage1-gold: maybe-all-stage1-bfd
47564all-stage2-gold: maybe-all-stage2-bfd
93f9b408 47565all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
47566all-stage4-gold: maybe-all-stage4-bfd
47567all-stageprofile-gold: maybe-all-stageprofile-bfd
47568all-stagefeedback-gold: maybe-all-stagefeedback-bfd
47569all-gold: maybe-all-build-bison
47570
47571all-stage1-gold: maybe-all-build-bison
47572all-stage2-gold: maybe-all-build-bison
93f9b408 47573all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
47574all-stage4-gold: maybe-all-build-bison
47575all-stageprofile-gold: maybe-all-build-bison
47576all-stagefeedback-gold: maybe-all-build-bison
0140d685
L
47577all-gold: maybe-all-gas
47578
47579all-stage1-gold: maybe-all-stage1-gas
47580all-stage2-gold: maybe-all-stage2-gas
47581all-stage3-gold: maybe-all-stage3-gas
47582all-stage4-gold: maybe-all-stage4-gas
47583all-stageprofile-gold: maybe-all-stageprofile-gas
47584all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97
ILT
47585check-gold: maybe-all-binutils
47586
47587check-stage1-gold: maybe-all-stage1-binutils
47588check-stage2-gold: maybe-all-stage2-binutils
e5164e97 47589check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
47590check-stage4-gold: maybe-all-stage4-binutils
47591check-stageprofile-gold: maybe-all-stageprofile-binutils
47592check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca
ILT
47593check-gold: maybe-all-gas
47594
47595check-stage1-gold: maybe-all-stage1-gas
47596check-stage2-gold: maybe-all-stage2-gas
47597check-stage3-gold: maybe-all-stage3-gas
47598check-stage4-gold: maybe-all-stage4-gas
47599check-stageprofile-gold: maybe-all-stageprofile-gas
47600check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee
JJ
47601configure-opcodes: maybe-configure-intl
47602
47603configure-stage1-opcodes: maybe-configure-stage1-intl
47604configure-stage2-opcodes: maybe-configure-stage2-intl
47605configure-stage3-opcodes: maybe-configure-stage3-intl
47606configure-stage4-opcodes: maybe-configure-stage4-intl
47607configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
47608configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191
PB
47609all-opcodes: maybe-all-bfd
47610
47611all-stage1-opcodes: maybe-all-stage1-bfd
47612all-stage2-opcodes: maybe-all-stage2-bfd
47613all-stage3-opcodes: maybe-all-stage3-bfd
47614all-stage4-opcodes: maybe-all-stage4-bfd
47615all-stageprofile-opcodes: maybe-all-stageprofile-bfd
47616all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
47617all-opcodes: maybe-all-libiberty
47618
47619all-stage1-opcodes: maybe-all-stage1-libiberty
47620all-stage2-opcodes: maybe-all-stage2-libiberty
47621all-stage3-opcodes: maybe-all-stage3-libiberty
47622all-stage4-opcodes: maybe-all-stage4-libiberty
47623all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
47624all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee
JJ
47625all-opcodes: maybe-all-intl
47626
47627all-stage1-opcodes: maybe-all-stage1-intl
47628all-stage2-opcodes: maybe-all-stage2-intl
47629all-stage3-opcodes: maybe-all-stage3-intl
47630all-stage4-opcodes: maybe-all-stage4-intl
47631all-stageprofile-opcodes: maybe-all-stageprofile-intl
47632all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
47633all-dejagnu: maybe-all-tcl
47634all-dejagnu: maybe-all-expect
47635all-dejagnu: maybe-all-tk
47636configure-expect: maybe-configure-tcl
47637configure-expect: maybe-configure-tk
47638all-expect: maybe-all-tcl
47639all-expect: maybe-all-tk
47640configure-itcl: maybe-configure-tcl
47641configure-itcl: maybe-configure-tk
47642all-itcl: maybe-all-tcl
47643all-itcl: maybe-all-tk
ae831be5 47644install-itcl: maybe-install-tcl
9b980aa1 47645install-strip-itcl: maybe-install-strip-tcl
b4a77b47 47646configure-tk: maybe-configure-tcl
ae831be5 47647all-tk: maybe-all-tcl
9e6ce191
PB
47648all-sid: maybe-all-libiberty
47649all-sid: maybe-all-bfd
47650all-sid: maybe-all-opcodes
47651all-sid: maybe-all-tcl
47652all-sid: maybe-all-tk
47653install-sid: maybe-install-tcl
9b980aa1 47654install-strip-sid: maybe-install-strip-tcl
9e6ce191 47655install-sid: maybe-install-tk
9b980aa1 47656install-strip-sid: maybe-install-strip-tk
20e95c23
DJ
47657configure-sim: maybe-configure-intl
47658all-sim: maybe-all-intl
9e6ce191
PB
47659all-sim: maybe-all-libiberty
47660all-sim: maybe-all-bfd
47661all-sim: maybe-all-opcodes
47662all-sim: maybe-all-readline
47663all-sim: maybe-configure-gdb
47664all-fastjar: maybe-all-zlib
72b2455a 47665all-fastjar: maybe-all-build-texinfo
9e6ce191 47666all-fastjar: maybe-all-libiberty
9e6ce191 47667all-bison: maybe-all-intl
72b2455a 47668all-bison: maybe-all-build-texinfo
72b2455a 47669all-flex: maybe-all-build-bison
9e6ce191
PB
47670all-flex: maybe-all-intl
47671all-flex: maybe-all-m4
72b2455a 47672all-flex: maybe-all-build-texinfo
9e6ce191 47673all-m4: maybe-all-intl
72b2455a 47674all-m4: maybe-all-build-texinfo
f7c83eac 47675configure-target-boehm-gc: maybe-all-target-libstdc++-v3
b4a77b47 47676configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 47677all-target-fastjar: maybe-all-target-zlib
e552509b
ILT
47678configure-target-libgo: maybe-configure-target-libffi
47679configure-target-libgo: maybe-all-target-libstdc++-v3
8e71395b 47680all-target-libgo: maybe-all-target-libbacktrace
e552509b 47681all-target-libgo: maybe-all-target-libffi
9417cd2f 47682all-target-libgo: maybe-all-target-libatomic
9e6ce191
PB
47683configure-target-libjava: maybe-configure-target-zlib
47684configure-target-libjava: maybe-configure-target-boehm-gc
9e6ce191
PB
47685configure-target-libjava: maybe-configure-target-libffi
47686all-target-libjava: maybe-all-fastjar
47687all-target-libjava: maybe-all-target-zlib
47688all-target-libjava: maybe-all-target-boehm-gc
9e6ce191 47689all-target-libjava: maybe-all-target-libffi
4f0ef2d8 47690configure-target-libobjc: maybe-configure-target-boehm-gc
4f0ef2d8 47691all-target-libobjc: maybe-all-target-boehm-gc
cff87f51 47692configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
47693
47694configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
47695configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
47696configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
47697configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
47698configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
47699configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
5286fdef 47700configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
47701
47702configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
47703configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
47704configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
47705configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
47706configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
47707configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135
JBG
47708configure-target-libvtv: maybe-all-target-libstdc++-v3
47709
47710configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
47711configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
47712configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
47713configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
47714configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
47715configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
522e3d71 47716configure-target-libcilkrts: maybe-all-target-libstdc++-v3
47717configure-target-libcilkrts: maybe-all-gcc
911e63d0
JR
47718all-target-libstdc++-v3: maybe-configure-target-libgomp
47719
47720all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
47721all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
47722all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
47723all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
47724all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
47725all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
9417cd2f
JBG
47726install-target-libgo: maybe-install-target-libatomic
47727install-target-libgfortran: maybe-install-target-libquadmath
47728install-target-libgfortran: maybe-install-target-libgcc
3dae1673 47729install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 47730install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
47731install-target-libvtv: maybe-install-target-libstdc++-v3
47732install-target-libvtv: maybe-install-target-libgcc
522e3d71 47733install-target-libcilkrts: maybe-install-target-libstdc++-v3
47734install-target-libcilkrts: maybe-install-target-libgcc
9417cd2f
JBG
47735install-target-libjava: maybe-install-target-libgcc
47736install-target-libitm: maybe-install-target-libgcc
47737install-target-libobjc: maybe-install-target-libgcc
47738install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 47739all-target-libgloss: maybe-all-target-newlib
9e6ce191 47740all-target-winsup: maybe-all-target-libtermcap
c1102ce7
RW
47741configure-target-newlib: maybe-all-binutils
47742configure-target-newlib: maybe-all-ld
e552509b 47743configure-target-libgfortran: maybe-all-target-libquadmath
9e6ce191
PB
47744
47745
6aa8ef82
DJ
47746# Dependencies for target modules on other target modules are
47747# described by lang_env_dependencies; the defaults apply to anything
47748# not mentioned there.
47749
47750
47751@if gcc-bootstrap
e8a5fa9c
RW
47752configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
47753configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
47754configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
47755configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
47756configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
47757configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
47758configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
47759configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
47760configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
47761configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
47762configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
47763configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
47764configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
47765configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
47766configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
47767configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
47768configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
47769configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
47770configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
47771configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
47772configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
47773configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
47774configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
47775configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
47776@endif gcc-bootstrap
47777
47778@if gcc-no-bootstrap
47779configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 47780configure-target-libsanitizer: maybe-all-target-libgcc
95e43135 47781configure-target-libvtv: maybe-all-target-libgcc
6aa8ef82 47782configure-target-libssp: maybe-all-target-libgcc
522e3d71 47783configure-target-libcilkrts: maybe-all-target-libgcc
6aa8ef82 47784configure-target-newlib: maybe-all-target-libgcc
2bf680c4 47785configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 47786configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
47787configure-target-libgfortran: maybe-all-target-libgcc
47788configure-target-libobjc: maybe-all-target-libgcc
e552509b 47789configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
47790configure-target-libtermcap: maybe-all-target-libgcc
47791configure-target-winsup: maybe-all-target-libgcc
47792configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82
DJ
47793configure-target-libffi: maybe-all-target-libgcc
47794configure-target-libjava: maybe-all-target-libgcc
47795configure-target-zlib: maybe-all-target-libgcc
47796configure-target-boehm-gc: maybe-all-target-libgcc
6aa8ef82
DJ
47797configure-target-rda: maybe-all-target-libgcc
47798configure-target-libada: maybe-all-target-libgcc
47799configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
47800configure-target-libitm: maybe-all-target-libgcc
47801configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
47802@endif gcc-no-bootstrap
47803
47804
47805configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
47806
5286fdef
L
47807configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
47808
95e43135
JBG
47809configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
47810
6aa8ef82
DJ
47811configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
47812
47813
47814
2bf680c4
ILT
47815configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
47816
e552509b
ILT
47817configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
47818
6aa8ef82
DJ
47819configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
47820
47821configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
47822
e552509b
ILT
47823configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
47824
6aa8ef82
DJ
47825configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
47826
47827configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
47828
47829
6aa8ef82 47830configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
522e3d71 47831configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
47832configure-target-libcilkrts: maybe-all-target-libstdc++-v3
6aa8ef82
DJ
47833
47834configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
47835configure-target-libjava: maybe-all-target-libstdc++-v3
47836
47837configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
47838
47839configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
47840
6aa8ef82
DJ
47841configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
47842
47843configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
47844
47845configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
47846
7ec59b9e
L
47847configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
47848configure-target-libitm: maybe-all-target-libstdc++-v3
47849
47850configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
47851
6aa8ef82 47852
907be67c 47853CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 47854GDB_TK = @GDB_TK@
907be67c
DJ
47855INSTALL_GDB_TK = @INSTALL_GDB_TK@
47856configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 47857all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 47858install-gdb: $(INSTALL_GDB_TK)
907a7241 47859
a2cc058a
NN
47860# Serialization dependencies. Host configures don't work well in parallel to
47861# each other, due to contention over config.cache. Target configures and
47862# build configures are similar.
47863@serialization_dependencies@
47864
15723a45
NN
47865# --------------------------------
47866# Regenerating top level configury
47867# --------------------------------
252b5132 47868
14a2a2f1 47869# Rebuilding Makefile.in, using autogen.
43be203f 47870AUTOGEN = autogen
6b784d9f 47871$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 47872 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 47873
a0da8069 47874# Rebuilding Makefile.
43be203f
AO
47875Makefile: $(srcdir)/Makefile.in config.status
47876 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
47877
479759c8 47878config.status: configure
10ecffb9 47879 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 47880
a0da8069 47881# Rebuilding configure.
43be203f 47882AUTOCONF = autoconf
da888c87
PB
47883$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
47884 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
43be203f 47885 cd $(srcdir) && $(AUTOCONF)
252b5132 47886
3728fade
NN
47887# ------------------------------
47888# Special directives to GNU Make
47889# ------------------------------
47890
3728fade
NN
47891# Don't pass command-line variables to submakes.
47892.NOEXPORT:
47893MAKEOVERRIDES=
47894
252b5132 47895# end of Makefile.in
This page took 4.317212 seconds and 4 git commands to generate.