MIPS/BFD: Correctly handle `bfd_reloc_outofrange' with branches
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
405ea7a0
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
252b5132
RH
3#
4# Makefile for directory with subdirs to build.
5cec67bf 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
52cf9762
NC
6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
7# 2011, 2012, 2013, 2014, 2015, 2016
1b05fbbd 8# Free Software Foundation
252b5132
RH
9#
10# This file is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
e8a5fa9c 12# the Free Software Foundation; either version 3 of the License, or
252b5132
RH
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
e8a5fa9c
RW
21# along with this program; see the file COPYING3. If not see
22# <http://www.gnu.org/licenses/>.
252b5132
RH
23#
24
0bb6ea20
HPN
25# First, test for a proper version of make, but only where one is required.
26
27@if gcc
28ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
29$(error GNU make version 3.80 or newer is required.)
30endif
31@endif gcc
32
50212802
NN
33# -------------------------------
34# Standard Autoconf-set variables
35# -------------------------------
583d52d7 36VPATH=@srcdir@
583d52d7 37
c6b750e1 38build_alias=@build_noncanonical@
4b900473
PB
39build_vendor=@build_vendor@
40build_os=@build_os@
7f121bbf 41build=@build@
c6b750e1 42host_alias=@host_noncanonical@
4b900473
PB
43host_vendor=@host_vendor@
44host_os=@host_os@
7f121bbf 45host=@host@
c6b750e1 46target_alias=@target_noncanonical@
4b900473
PB
47target_vendor=@target_vendor@
48target_os=@target_os@
7f121bbf 49target=@target@
583d52d7 50
50212802 51program_transform_name = @program_transform_name@
403d9505
NN
52
53prefix = @prefix@
54exec_prefix = @exec_prefix@
55
50212802
NN
56srcdir = @srcdir@
57
403d9505
NN
58bindir = @bindir@
59sbindir = @sbindir@
60libexecdir = @libexecdir@
61datadir = @datadir@
62sysconfdir = @sysconfdir@
63sharedstatedir = @sharedstatedir@
64localstatedir = @localstatedir@
65libdir = @libdir@
66includedir = @includedir@
67oldincludedir = @oldincludedir@
68infodir = @infodir@
108a6f8e
CD
69datarootdir = @datarootdir@
70docdir = @docdir@
a3ca38d2 71pdfdir = @pdfdir@
108a6f8e 72htmldir = @htmldir@
403d9505 73mandir = @mandir@
252b5132
RH
74man1dir = $(mandir)/man1
75man2dir = $(mandir)/man2
76man3dir = $(mandir)/man3
77man4dir = $(mandir)/man4
78man5dir = $(mandir)/man5
79man6dir = $(mandir)/man6
80man7dir = $(mandir)/man7
81man8dir = $(mandir)/man8
82man9dir = $(mandir)/man9
d5de0a84 83
e5c3f801
NN
84INSTALL = @INSTALL@
85INSTALL_PROGRAM = @INSTALL_PROGRAM@
86INSTALL_SCRIPT = @INSTALL_SCRIPT@
87INSTALL_DATA = @INSTALL_DATA@
656fdd47
PB
88LN = @LN@
89LN_S = @LN_S@
77d7106f
AM
90MAINT = @MAINT@
91MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
92MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
252b5132 93
50212802
NN
94# -------------------------------------------------
95# Miscellaneous non-standard autoconf-set variables
96# -------------------------------------------------
252b5132 97
50212802
NN
98# The gcc driver likes to know the arguments it was configured with.
99TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
252b5132 100
50212802
NN
101tooldir = @tooldir@
102build_tooldir = @build_tooldir@
252b5132 103
50212802
NN
104# This is the name of the environment variable used for the path to
105# the libraries.
106RPATH_ENVVAR = @RPATH_ENVVAR@
252b5132 107
3bbd2f8f
AL
108# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
109# is used instead of the directory itself to avoid including built
110# executables in PATH.
111GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
112
50212802
NN
113# Build programs are put under this directory.
114BUILD_SUBDIR = @build_subdir@
115# This is set by the configure script to the arguments to use when configuring
116# directories built for the build system.
a7254363 117BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
6a9cf61e 118
e8a5fa9c
RW
119# Linker flags to use on the host, for stage1 or when not
120# bootstrapping.
121STAGE1_LDFLAGS = @stage1_ldflags@
122
123# Libraries to use on the host, for stage1 or when not bootstrapping.
124STAGE1_LIBS = @stage1_libs@
125
126# Linker flags to use for stage2 and later.
127POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
128
129# Libraries to use for stage2 and later.
130POSTSTAGE1_LIBS = @poststage1_libs@
131
6a9cf61e
PB
132# This is the list of variables to export in the environment when
133# configuring any subdirectory. It must also be exported whenever
134# recursing into a build directory in case that directory's Makefile
135# re-runs configure.
136BASE_EXPORTS = \
137 FLEX="$(FLEX)"; export FLEX; \
138 LEX="$(LEX)"; export LEX; \
139 BISON="$(BISON)"; export BISON; \
140 YACC="$(YACC)"; export YACC; \
141 M4="$(M4)"; export M4; \
8e957354
PB
142 SED="$(SED)"; export SED; \
143 AWK="$(AWK)"; export AWK; \
6a9cf61e
PB
144 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
145
378fce5b 146# This is the list of variables to export in the environment when
6a9cf61e 147# configuring subdirectories for the build system.
378fce5b 148BUILD_EXPORTS = \
6a9cf61e 149 $(BASE_EXPORTS) \
378fce5b
DD
150 AR="$(AR_FOR_BUILD)"; export AR; \
151 AS="$(AS_FOR_BUILD)"; export AS; \
152 CC="$(CC_FOR_BUILD)"; export CC; \
153 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
154 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
155 CXX="$(CXX_FOR_BUILD)"; export CXX; \
156 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
157 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
158 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
e552509b
ILT
159 GOC="$(GOC_FOR_BUILD)"; export GOC; \
160 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
378fce5b
DD
161 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
162 LD="$(LD_FOR_BUILD)"; export LD; \
163 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
164 NM="$(NM_FOR_BUILD)"; export NM; \
165 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
0c24b341
NC
166 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
167 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
50212802 168
6641ce42 169# These variables must be set on the make command line for directories
2440009d 170# built for the build system to override those in BASE_FLAGS_TO_PASS.
6641ce42
JM
171EXTRA_BUILD_FLAGS = \
172 CFLAGS="$(CFLAGS_FOR_BUILD)" \
173 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
174
50212802
NN
175# This is the list of directories to built for the host system.
176SUBDIRS = @configdirs@
911e63d0 177TARGET_CONFIGDIRS = @target_configdirs@
50212802
NN
178# This is set by the configure script to the arguments to use when configuring
179# directories built for the host system.
180HOST_CONFIGARGS = @host_configargs@
b00612cc
PB
181# Host programs are put under this directory, which is . except if building
182# with srcdir=..
183HOST_SUBDIR = @host_subdir@
378fce5b 184# This is the list of variables to export in the environment when
be01d343
PB
185# configuring subdirectories for the host system. We need to pass
186# some to the GCC configure because of its hybrid host/target nature.
378fce5b 187HOST_EXPORTS = \
6a9cf61e 188 $(BASE_EXPORTS) \
378fce5b 189 CC="$(CC)"; export CC; \
da888c87 190 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
378fce5b
DD
191 CFLAGS="$(CFLAGS)"; export CFLAGS; \
192 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
193 CXX="$(CXX)"; export CXX; \
194 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1b05fbbd
AO
195 GCJ="$(GCJ)"; export GCJ; \
196 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
9b980aa1 197 GOC="$(GOC)"; export GOC; \
378fce5b
DD
198 AR="$(AR)"; export AR; \
199 AS="$(AS)"; export AS; \
200 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
201 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
202 LD="$(LD)"; export LD; \
e8a5fa9c 203 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
378fce5b
DD
204 NM="$(NM)"; export NM; \
205 RANLIB="$(RANLIB)"; export RANLIB; \
206 WINDRES="$(WINDRES)"; export WINDRES; \
0c24b341 207 WINDMC="$(WINDMC)"; export WINDMC; \
378fce5b 208 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 209 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
b121d7d4 210 READELF="$(READELF)"; export READELF; \
be01d343
PB
211 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
212 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
213 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
214 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
215 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
216 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
6b91c541 217 OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \
be01d343 218 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 219 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 220 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 221 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 222 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 223 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1b6c0831 224 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
7ec59b9e 225 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
52cf9762 226 ISLVER="$(HOST_ISLVER)"; export ISLVER; \
22121df0
L
227 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
228 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
4849dfd8 229 XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \
f70224b5
PB
230@if gcc-bootstrap
231 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
232@endif gcc-bootstrap
e90269c8 233 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
378fce5b 234
1f53ca9a
AO
235POSTSTAGE1_CXX_EXPORT = \
236 CXX='$(CXX)'; export CXX; \
237 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
238@if target-libstdc++-v3-bootstrap
239# Override the above if we're bootstrapping C++.
240POSTSTAGE1_CXX_EXPORT = \
d2489204 241 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
1f53ca9a 242 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
1d14850f 243 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
ffdd6afc 244 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
abca8d87 245 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
246 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
247 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \
ffdd6afc
ILT
248 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
249 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
250 export CXX; \
1f53ca9a
AO
251 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
252@endif target-libstdc++-v3-bootstrap
253
378fce5b 254# Similar, for later GCC stages.
d545f33b 255POSTSTAGE1_HOST_EXPORTS = \
7ffa0b57 256 $(HOST_EXPORTS) \
b00612cc 257 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
1b05fbbd
AO
258 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
259 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
260 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
1f53ca9a 261 $(POSTSTAGE1_CXX_EXPORT) \
1b6c0831 262 $(LTO_EXPORTS) \
e8a5fa9c
RW
263 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
264 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
265 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 266
50212802
NN
267# Target libraries are put under this directory:
268TARGET_SUBDIR = @target_subdir@
269# This is set by the configure script to the arguments to use when configuring
270# directories built for the target.
a7254363 271TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 272# This is the list of variables to export in the environment when
f2b2dd91 273# configuring subdirectories for the target system.
378fce5b 274BASE_TARGET_EXPORTS = \
6a9cf61e 275 $(BASE_EXPORTS) \
378fce5b 276 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 277 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
278 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
279 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 280 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 281 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd
AO
282 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
283 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
284 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 285 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
378fce5b 286 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 287 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 288 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 289 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 290 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 291 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
6b91c541 292 OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \
378fce5b 293 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 294 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 295 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 296 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 297 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
298@if gcc-bootstrap
299 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
300@endif gcc-bootstrap
911e63d0
JR
301 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
302 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
303
304RAW_CXX_TARGET_EXPORTS = \
305 $(BASE_TARGET_EXPORTS) \
306 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 307 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
308
309NORMAL_TARGET_EXPORTS = \
310 $(BASE_TARGET_EXPORTS) \
1b05fbbd 311 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 312
4b1cb4fe
DD
313# Where to find GMP
314HOST_GMPLIBS = @gmplibs@
315HOST_GMPINC = @gmpinc@
316
4849dfd8 317# Where to find isl
1b6c0831 318HOST_ISLLIBS = @isllibs@
7ec59b9e 319HOST_ISLINC = @islinc@
52cf9762 320HOST_ISLVER = @islver@
e28c595f 321
700d40ca
ILT
322# Where to find libelf
323HOST_LIBELFLIBS = @libelflibs@
324HOST_LIBELFINC = @libelfinc@
325
ffdd6afc
ILT
326EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@
327
50212802
NN
328# ----------------------------------------------
329# Programs producing files for the BUILD machine
330# ----------------------------------------------
331
f6c1938b 332SHELL = @SHELL@
50212802
NN
333
334# pwd command to use. Allow user to override default by setting PWDCMD in
335# the environment to account for automounters. The make variable must not
336# be called PWDCMD, otherwise the value set here is passed to make
337# subprocesses and overrides the setting from the user's environment.
b40e3958
L
338# Don't use PWD since it is a common shell environment variable and we
339# don't want to corrupt it.
340PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
341
342# compilers to use to create programs which must be run in the build
343# environment.
b5714970
PB
344AR_FOR_BUILD = @AR_FOR_BUILD@
345AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 346CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 347CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
348CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
349CXX_FOR_BUILD = @CXX_FOR_BUILD@
350DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
351GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
352GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 353GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
354LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
355LD_FOR_BUILD = @LD_FOR_BUILD@
356NM_FOR_BUILD = @NM_FOR_BUILD@
357RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
358WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
359WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
360
361# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
362# here so that they can be overridden by Makefile fragments.
50212802
NN
363BUILD_PREFIX = @BUILD_PREFIX@
364BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 365
0df3d27f
PB
366# Flags to pass to stage2 and later makes. They are defined
367# here so that they can be overridden by Makefile fragments.
368BOOT_CFLAGS= -g -O2
f6d183c0 369BOOT_LDFLAGS=
d7b9dae9 370BOOT_ADAFLAGS= -gnatpg
0df3d27f 371
8e957354
PB
372AWK = @AWK@
373SED = @SED@
be01d343
PB
374BISON = @BISON@
375YACC = @YACC@
376FLEX = @FLEX@
377LEX = @LEX@
378M4 = @M4@
379MAKEINFO = @MAKEINFO@
380EXPECT = @EXPECT@
381RUNTEST = @RUNTEST@
252b5132
RH
382
383# This just becomes part of the MAKEINFO definition passed down to
384# sub-makes. It lets flags be given on the command line while still
385# using the makeinfo from the object tree.
62a3fc85
DD
386# (Default to avoid splitting info files by setting the threshold high.)
387MAKEINFOFLAGS = --split-size=5000000
252b5132 388
50212802
NN
389# ---------------------------------------------
390# Programs producing files for the HOST machine
391# ---------------------------------------------
252b5132 392
50212802 393AS = @AS@
50212802
NN
394AR = @AR@
395AR_FLAGS = rc
50212802 396CC = @CC@
50212802 397CXX = @CXX@
50212802 398DLLTOOL = @DLLTOOL@
50212802 399LD = @LD@
be01d343
PB
400LIPO = @LIPO@
401NM = @NM@
80911fe1 402OBJDUMP = @OBJDUMP@
50212802 403RANLIB = @RANLIB@
b121d7d4 404READELF = @READELF@
be01d343 405STRIP = @STRIP@
50212802 406WINDRES = @WINDRES@
0c24b341 407WINDMC = @WINDMC@
252b5132 408
a0323144
PB
409GNATBIND = @GNATBIND@
410GNATMAKE = @GNATMAKE@
411
be01d343 412CFLAGS = @CFLAGS@
b2edfdd2 413LDFLAGS = @LDFLAGS@
be01d343
PB
414LIBCFLAGS = $(CFLAGS)
415CXXFLAGS = @CXXFLAGS@
416LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e552509b 417GOCFLAGS = $(CFLAGS)
50212802 418
1b05fbbd
AO
419TFLAGS =
420
421# Defaults for all stages; some are overridden below.
422
423STAGE_CFLAGS = $(BOOT_CFLAGS)
424STAGE_TFLAGS = $(TFLAGS)
425STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
426
427
428# Defaults for stage 1; some are overridden below.
429STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
430STAGE1_CXXFLAGS = $(CXXFLAGS)
431@if target-libstdc++-v3-bootstrap
432# Override the above if we're bootstrapping C++.
433STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
434@endif target-libstdc++-v3-bootstrap
1b05fbbd 435STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 436STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
437
438# Defaults for stage 2; some are overridden below.
439STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
440STAGE2_CXXFLAGS = $(CXXFLAGS)
441@if target-libstdc++-v3-bootstrap
442# Override the above if we're bootstrapping C++.
443STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
444@endif target-libstdc++-v3-bootstrap
1b05fbbd 445STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 446STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
447
448# Defaults for stage 3; some are overridden below.
449STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
450STAGE3_CXXFLAGS = $(CXXFLAGS)
451@if target-libstdc++-v3-bootstrap
452# Override the above if we're bootstrapping C++.
453STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
454@endif target-libstdc++-v3-bootstrap
1b05fbbd 455STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 456STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
457
458# Defaults for stage 4; some are overridden below.
459STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
460STAGE4_CXXFLAGS = $(CXXFLAGS)
461@if target-libstdc++-v3-bootstrap
462# Override the above if we're bootstrapping C++.
463STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
464@endif target-libstdc++-v3-bootstrap
1b05fbbd 465STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 466STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
467
468# Defaults for stage profile; some are overridden below.
469STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
470STAGEprofile_CXXFLAGS = $(CXXFLAGS)
471@if target-libstdc++-v3-bootstrap
472# Override the above if we're bootstrapping C++.
473STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
474@endif target-libstdc++-v3-bootstrap
1b05fbbd 475STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 476STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
477
478# Defaults for stage feedback; some are overridden below.
479STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
480STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
481@if target-libstdc++-v3-bootstrap
482# Override the above if we're bootstrapping C++.
483STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
484@endif target-libstdc++-v3-bootstrap
1b05fbbd 485STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 486STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
487
488
22121df0
L
489# By default, C and C++ are the only stage1 languages, because they are the
490# only ones we require to build with the bootstrap compiler, and also the
491# only ones useful for building stage2.
8a0d8a5c 492
1b05fbbd 493STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
494STAGE1_CHECKING = @stage1_checking@
495STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
496# * We force-disable intermodule optimizations, even if
497# --enable-intermodule was passed, since the installed compiler
498# probably can't handle them. Luckily, autoconf always respects
499# the last argument when conflicting --enable arguments are passed.
500# * Likewise, we force-disable coverage flags, since the installed
501# compiler probably has never heard of them.
880b18d1 502# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 503STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 504 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
505 --disable-build-format-warnings
8a0d8a5c 506
1b05fbbd
AO
507STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
508STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 509
1b05fbbd
AO
510STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
511STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 512
8520c408
AO
513do-compare = @do_compare@
514do-compare3 = $(do-compare)
8520c408 515
50212802
NN
516# -----------------------------------------------
517# Programs producing files for the TARGET machine
518# -----------------------------------------------
0da52010 519
50212802 520AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 521AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 522CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 523
50212802
NN
524# If GCC_FOR_TARGET is not overriden on the command line, then this
525# variable is passed down to the gcc Makefile, where it is used to
526# build libgcc2.a. We define it here so that it can itself be
527# overridden on the command line.
1b05fbbd
AO
528GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
529CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
530RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
531GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
532GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 533GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 534DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 535LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 536
7e0f7140 537LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 538NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 539OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 540OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 541RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 542READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 543STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 544WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 545WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 546
be01d343
PB
547COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
548COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
549COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
550
7f6ef0c0
PB
551CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
552CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 553
be01d343
PB
554LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
555LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 556LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 557GOCFLAGS_FOR_TARGET = -O2 -g
50212802 558
1b05fbbd
AO
559FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
560SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
561DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
562
563XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
564
50212802
NN
565# ------------------------------------
566# Miscellaneous targets and flag lists
567# ------------------------------------
568
252b5132
RH
569# The first rule in the file had better be this one. Don't put any above it.
570# This lives here to allow makefile fragments to contain dependencies.
f70224b5 571all:
252b5132 572
252b5132 573#### host and target specific makefile fragments come in here.
a0da8069
NN
574@target_makefile_frag@
575@alphaieee_frag@
576@ospace_frag@
577@host_makefile_frag@
252b5132
RH
578###
579
e90269c8 580# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 581# so that programs built for the target machine work.
1b6c0831 582TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libsanitizer)$(TARGET_LIB_PATH_libmpx)$(TARGET_LIB_PATH_libvtv)$(TARGET_LIB_PATH_libcilkrts)$(TARGET_LIB_PATH_liboffloadmic)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(TARGET_LIB_PATH_libitm)$(TARGET_LIB_PATH_libatomic)$(HOST_LIB_PATH_gcc)
e90269c8
PB
583
584@if target-libstdc++-v3
18a8530e 585TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
586@endif target-libstdc++-v3
587
5286fdef
L
588@if target-libsanitizer
589TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
590@endif target-libsanitizer
591
1b6c0831
L
592@if target-libmpx
593TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
594@endif target-libmpx
595
95e43135
JBG
596@if target-libvtv
597TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
598@endif target-libvtv
599
e78e02e6 600@if target-libcilkrts
601TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
602@endif target-libcilkrts
603
1b6c0831
L
604@if target-liboffloadmic
605TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
606@endif target-liboffloadmic
607
064d0a7c
PB
608@if target-libssp
609TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
610@endif target-libssp
611
b3ded179
PB
612@if target-libgomp
613TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
614@endif target-libgomp
615
7ec59b9e
L
616@if target-libitm
617TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
618@endif target-libitm
619
620@if target-libatomic
621TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
622@endif target-libatomic
623
e90269c8
PB
624
625
626# This is the list of directories that may be needed in RPATH_ENVVAR
627# so that programs built for the host machine work.
1b6c0831 628HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
629
630# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
631@if gcc
3bbd2f8f 632HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
633@endif gcc
634
635
4b900473
PB
636@if gmp
637HOST_LIB_PATH_gmp = \
638 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
639@endif gmp
640
641@if mpfr
642HOST_LIB_PATH_mpfr = \
643 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
644@endif mpfr
645
e8a5fa9c
RW
646@if mpc
647HOST_LIB_PATH_mpc = \
648 $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
649@endif mpc
650
7ec59b9e
L
651@if isl
652HOST_LIB_PATH_isl = \
653 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
654@endif isl
e28c595f 655
1f53ca9a
AO
656@if libelf
657HOST_LIB_PATH_libelf = \
658 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
659@endif libelf
660
e90269c8 661
87cda2cf
AO
662CXX_FOR_TARGET_FLAG_TO_PASS = \
663 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
664@if target-libstdc++-v3
665# CXX_FOR_TARGET is tricky to get right for target libs that require a
666# functional C++ compiler. When we recurse, if we expand
667# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
668# libstdc++ include flags from the script. Instead, we get an
669# -funconfigured-* word, so that we'll get errors if this invalid C++
670# command line is used for anything, but also so that we can use the
671# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
672# don't pass it on, sub-make will use the default definition, that
673# re-expands it at the time of use, so we'll get it right when we need
674# it. One potential exception is the expansion of CXX_FOR_TARGET
675# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
676# really work, for C++ host programs can't depend on the current-stage
677# C++ target library.
678CXX_FOR_TARGET_FLAG_TO_PASS = \
679 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
680@endif target-libstdc++-v3
681
22121df0
L
682# Flags to pass down to all sub-makes. STAGE*FLAGS,
683# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
684# overrideable (for a bootstrap build stage1 also builds gcc.info).
252b5132 685BASE_FLAGS_TO_PASS = \
497f816e 686 "DESTDIR=$(DESTDIR)" \
252b5132 687 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 688 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
689 "bindir=$(bindir)" \
690 "datadir=$(datadir)" \
691 "exec_prefix=$(exec_prefix)" \
692 "includedir=$(includedir)" \
108a6f8e
CD
693 "datarootdir=$(datarootdir)" \
694 "docdir=$(docdir)" \
252b5132 695 "infodir=$(infodir)" \
a3ca38d2 696 "pdfdir=$(pdfdir)" \
108a6f8e 697 "htmldir=$(htmldir)" \
252b5132
RH
698 "libdir=$(libdir)" \
699 "libexecdir=$(libexecdir)" \
700 "lispdir=$(lispdir)" \
701 "localstatedir=$(localstatedir)" \
702 "mandir=$(mandir)" \
703 "oldincludedir=$(oldincludedir)" \
704 "prefix=$(prefix)" \
705 "sbindir=$(sbindir)" \
706 "sharedstatedir=$(sharedstatedir)" \
707 "sysconfdir=$(sysconfdir)" \
708 "tooldir=$(tooldir)" \
ba73c63f 709 "build_tooldir=$(build_tooldir)" \
12f0bd74 710 "target_alias=$(target_alias)" \
8e957354 711 "AWK=$(AWK)" \
12f0bd74
NN
712 "BISON=$(BISON)" \
713 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 714 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
715 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
716 "EXPECT=$(EXPECT)" \
6a9cf61e 717 "FLEX=$(FLEX)" \
12f0bd74
NN
718 "INSTALL=$(INSTALL)" \
719 "INSTALL_DATA=$(INSTALL_DATA)" \
720 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
721 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 722 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
723 "LEX=$(LEX)" \
724 "M4=$(M4)" \
725 "MAKE=$(MAKE)" \
726 "RUNTEST=$(RUNTEST)" \
727 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 728 "SED=$(SED)" \
12f0bd74
NN
729 "SHELL=$(SHELL)" \
730 "YACC=$(YACC)" \
c52c6897 731 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 732 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 733 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 734 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
735 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
736 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
737 "CFLAGS=$(CFLAGS)" \
738 "CXXFLAGS=$(CXXFLAGS)" \
739 "LDFLAGS=$(LDFLAGS)" \
740 "LIBCFLAGS=$(LIBCFLAGS)" \
741 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 742 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 743 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
744 "GNATBIND=$(GNATBIND)" \
745 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
746 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
747 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
748 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
749 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 750 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
751 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
752 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 753 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
12f0bd74 754 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
4b1cb4fe 755 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
756 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
757 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 758 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 759 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 760 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
761 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
762 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
763 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 764 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 765 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 766 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 767 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 768 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 769 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 770 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 771 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 772 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 773 "LEAN=$(LEAN)" \
1b05fbbd 774 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 775 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
776 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
777 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 778 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
779 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
780 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 781 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
782 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
783 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 784 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
785 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
786 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 787 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
788 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
789 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 790 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 791 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 792 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 793 "TFLAGS=$(TFLAGS)" \
10ecffb9 794 "CONFIG_SHELL=$(SHELL)" \
52cf9762
NC
795 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
796 $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
252b5132 797
55db4b87
PB
798# We leave this in just in case, but it is not needed anymore.
799RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 800
252b5132
RH
801# Flags to pass down to most sub-makes, in which we're building with
802# the host environment.
252b5132
RH
803EXTRA_HOST_FLAGS = \
804 'AR=$(AR)' \
805 'AS=$(AS)' \
806 'CC=$(CC)' \
807 'CXX=$(CXX)' \
808 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd
AO
809 'GCJ=$(GCJ)' \
810 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 811 'GOC=$(GOC)' \
252b5132 812 'LD=$(LD)' \
be01d343 813 'LIPO=$(LIPO)' \
252b5132 814 'NM=$(NM)' \
80911fe1 815 'OBJDUMP=$(OBJDUMP)' \
b9459e83 816 'RANLIB=$(RANLIB)' \
b121d7d4 817 'READELF=$(READELF)' \
be01d343 818 'STRIP=$(STRIP)' \
0c24b341
NC
819 'WINDRES=$(WINDRES)' \
820 'WINDMC=$(WINDMC)'
252b5132
RH
821
822FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
823
b3676d82
EB
824# Flags to pass to stage1 or when not bootstrapping.
825
826STAGE1_FLAGS_TO_PASS = \
827 LDFLAGS="$${LDFLAGS}" \
828 HOST_LIBS="$${HOST_LIBS}"
829
8a0d8a5c
PB
830# Flags to pass to stage2 and later makes.
831
832POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
833 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
834 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
835 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
836 LDFLAGS="$${LDFLAGS}" \
837 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 838 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
839 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
840
f91ca6bc
IB
841@if gcc-bootstrap
842EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
843 $(POSTSTAGE1_HOST_EXPORTS) \
22121df0 844 fi;
f91ca6bc
IB
845
846EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
847@endif gcc-bootstrap
848
252b5132 849# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
850# The double $ decreases the length of the command line; those variables
851# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
852# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
853# so we expand them here.
252b5132
RH
854EXTRA_TARGET_FLAGS = \
855 'AR=$$(AR_FOR_TARGET)' \
0aed8855 856 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
857 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
858 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
859 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
860 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
861 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 862 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 863 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd
AO
864 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
865 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 866 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 867 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 868 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 869 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
870 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
871 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 872 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 873 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 874 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 875 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 876 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 877 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
878 'WINDMC=$$(WINDMC_FOR_TARGET)' \
879 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
880 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
881 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 882 "TFLAGS=$$TFLAGS"
252b5132
RH
883
884TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
885
886# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
887# unfortunately needs the native compiler and the target ar and
888# ranlib.
889# If any variables are added here, they must be added to do-*, below.
2a4cbe27 890# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
891# cross-building scheme.
892EXTRA_GCC_FLAGS = \
252b5132 893 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 894 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 895 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 896
f0b24077 897GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 898
1b05fbbd 899@if gcc
96655cc4 900BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
901ifneq ($(BUILD_CONFIG),)
902include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
903endif
904@endif gcc
905
dd12c3a8 906.PHONY: configure-host
b813574b 907configure-host: \
dd12c3a8
NN
908 maybe-configure-bfd \
909 maybe-configure-opcodes \
910 maybe-configure-binutils \
911 maybe-configure-bison \
f9806fa5 912 maybe-configure-cgen \
dd12c3a8 913 maybe-configure-dejagnu \
dd12c3a8
NN
914 maybe-configure-etc \
915 maybe-configure-fastjar \
d3ed111c 916 maybe-configure-fixincludes \
dd12c3a8
NN
917 maybe-configure-flex \
918 maybe-configure-gas \
b813574b 919 maybe-configure-gcc \
4b900473
PB
920 maybe-configure-gmp \
921 maybe-configure-mpfr \
e8a5fa9c 922 maybe-configure-mpc \
7ec59b9e 923 maybe-configure-isl \
1f53ca9a 924 maybe-configure-libelf \
93f9b408 925 maybe-configure-gold \
dd12c3a8 926 maybe-configure-gprof \
dd12c3a8
NN
927 maybe-configure-intl \
928 maybe-configure-tcl \
929 maybe-configure-itcl \
930 maybe-configure-ld \
2bf680c4 931 maybe-configure-libbacktrace \
04cf1b77 932 maybe-configure-libcpp \
be01d343 933 maybe-configure-libdecnumber \
dd12c3a8
NN
934 maybe-configure-libgui \
935 maybe-configure-libiberty \
1b6c0831 936 maybe-configure-libiberty-linker-plugin \
dc448a7b 937 maybe-configure-libiconv \
dd12c3a8 938 maybe-configure-m4 \
dd12c3a8 939 maybe-configure-readline \
dd12c3a8
NN
940 maybe-configure-sid \
941 maybe-configure-sim \
dd12c3a8 942 maybe-configure-texinfo \
dd12c3a8
NN
943 maybe-configure-zlib \
944 maybe-configure-gdb \
945 maybe-configure-expect \
946 maybe-configure-guile \
947 maybe-configure-tk \
dd12c3a8 948 maybe-configure-libtermcap \
b00612cc 949 maybe-configure-utils \
700d40ca 950 maybe-configure-gnattools \
1b6c0831
L
951 maybe-configure-lto-plugin \
952 maybe-configure-libcc1 \
953 maybe-configure-gotools
dd12c3a8
NN
954.PHONY: configure-target
955configure-target: \
956 maybe-configure-target-libstdc++-v3 \
5286fdef 957 maybe-configure-target-libsanitizer \
1b6c0831 958 maybe-configure-target-libmpx \
95e43135 959 maybe-configure-target-libvtv \
e78e02e6 960 maybe-configure-target-libcilkrts \
1b6c0831 961 maybe-configure-target-liboffloadmic \
064d0a7c 962 maybe-configure-target-libssp \
dd12c3a8 963 maybe-configure-target-newlib \
6aa8ef82 964 maybe-configure-target-libgcc \
2bf680c4 965 maybe-configure-target-libbacktrace \
e552509b 966 maybe-configure-target-libquadmath \
4b1cb4fe 967 maybe-configure-target-libgfortran \
dd12c3a8 968 maybe-configure-target-libobjc \
e552509b 969 maybe-configure-target-libgo \
dd12c3a8
NN
970 maybe-configure-target-libtermcap \
971 maybe-configure-target-winsup \
972 maybe-configure-target-libgloss \
dd12c3a8
NN
973 maybe-configure-target-libffi \
974 maybe-configure-target-libjava \
975 maybe-configure-target-zlib \
976 maybe-configure-target-boehm-gc \
a2592b1b 977 maybe-configure-target-rda \
b3ded179 978 maybe-configure-target-libada \
7ec59b9e
L
979 maybe-configure-target-libgomp \
980 maybe-configure-target-libitm \
981 maybe-configure-target-libatomic
252b5132 982
319cab08
PB
983# The target built for a native non-bootstrap build.
984.PHONY: all
f70224b5
PB
985all:
986@if gcc-bootstrap
be01d343 987 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
988 @r=`${PWD_COMMAND}`; export r; \
989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 990 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 991@endif gcc-bootstrap
0aed8855 992 @: $(MAKE); $(unstage)
f70224b5
PB
993 @r=`${PWD_COMMAND}`; export r; \
994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 995@if gcc-bootstrap
b5233201 996 if [ -f stage_last ]; then \
07fc31c9 997 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 998 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 999 else \
1b05fbbd 1000@endif gcc-bootstrap
b5233201
AO
1001 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
1002@if gcc-bootstrap
1003 ; \
04ec0acb 1004 fi \
b5233201 1005@endif gcc-bootstrap
04ec0acb 1006 && :
6a9cf61e
PB
1007
1008.PHONY: all-build
c52c6897
PB
1009
1010all-build: maybe-all-build-libiberty
1011all-build: maybe-all-build-bison
c52c6897
PB
1012all-build: maybe-all-build-flex
1013all-build: maybe-all-build-m4
1014all-build: maybe-all-build-texinfo
1015all-build: maybe-all-build-fixincludes
1b6c0831 1016all-build: maybe-all-build-libcpp
c52c6897 1017
dd12c3a8 1018.PHONY: all-host
c52c6897 1019
c52c6897
PB
1020@if bfd-no-bootstrap
1021all-host: maybe-all-bfd
1022@endif bfd-no-bootstrap
1023@if opcodes-no-bootstrap
1024all-host: maybe-all-opcodes
1025@endif opcodes-no-bootstrap
1026@if binutils-no-bootstrap
1027all-host: maybe-all-binutils
1028@endif binutils-no-bootstrap
1029all-host: maybe-all-bison
f9806fa5 1030all-host: maybe-all-cgen
c52c6897 1031all-host: maybe-all-dejagnu
c52c6897
PB
1032all-host: maybe-all-etc
1033all-host: maybe-all-fastjar
201f096f 1034@if fixincludes-no-bootstrap
c52c6897 1035all-host: maybe-all-fixincludes
201f096f 1036@endif fixincludes-no-bootstrap
c52c6897
PB
1037all-host: maybe-all-flex
1038@if gas-no-bootstrap
1039all-host: maybe-all-gas
1040@endif gas-no-bootstrap
1041@if gcc-no-bootstrap
1042all-host: maybe-all-gcc
1043@endif gcc-no-bootstrap
4b900473
PB
1044@if gmp-no-bootstrap
1045all-host: maybe-all-gmp
1046@endif gmp-no-bootstrap
1047@if mpfr-no-bootstrap
1048all-host: maybe-all-mpfr
1049@endif mpfr-no-bootstrap
e8a5fa9c
RW
1050@if mpc-no-bootstrap
1051all-host: maybe-all-mpc
1052@endif mpc-no-bootstrap
7ec59b9e
L
1053@if isl-no-bootstrap
1054all-host: maybe-all-isl
1055@endif isl-no-bootstrap
1f53ca9a
AO
1056@if libelf-no-bootstrap
1057all-host: maybe-all-libelf
1058@endif libelf-no-bootstrap
93f9b408
ILT
1059@if gold-no-bootstrap
1060all-host: maybe-all-gold
1061@endif gold-no-bootstrap
c52c6897 1062all-host: maybe-all-gprof
c52c6897
PB
1063@if intl-no-bootstrap
1064all-host: maybe-all-intl
1065@endif intl-no-bootstrap
1066all-host: maybe-all-tcl
1067all-host: maybe-all-itcl
1068@if ld-no-bootstrap
1069all-host: maybe-all-ld
1070@endif ld-no-bootstrap
2bf680c4
ILT
1071@if libbacktrace-no-bootstrap
1072all-host: maybe-all-libbacktrace
1073@endif libbacktrace-no-bootstrap
c52c6897
PB
1074@if libcpp-no-bootstrap
1075all-host: maybe-all-libcpp
1076@endif libcpp-no-bootstrap
1077@if libdecnumber-no-bootstrap
1078all-host: maybe-all-libdecnumber
1079@endif libdecnumber-no-bootstrap
1080all-host: maybe-all-libgui
1081@if libiberty-no-bootstrap
1082all-host: maybe-all-libiberty
1083@endif libiberty-no-bootstrap
1b6c0831
L
1084@if libiberty-linker-plugin-no-bootstrap
1085all-host: maybe-all-libiberty-linker-plugin
1086@endif libiberty-linker-plugin-no-bootstrap
016a3251 1087@if libiconv-no-bootstrap
dc448a7b 1088all-host: maybe-all-libiconv
016a3251 1089@endif libiconv-no-bootstrap
c52c6897 1090all-host: maybe-all-m4
c52c6897 1091all-host: maybe-all-readline
c52c6897
PB
1092all-host: maybe-all-sid
1093all-host: maybe-all-sim
c52c6897 1094all-host: maybe-all-texinfo
c52c6897
PB
1095@if zlib-no-bootstrap
1096all-host: maybe-all-zlib
1097@endif zlib-no-bootstrap
1098all-host: maybe-all-gdb
1099all-host: maybe-all-expect
1100all-host: maybe-all-guile
1101all-host: maybe-all-tk
1102all-host: maybe-all-libtermcap
1103all-host: maybe-all-utils
1104all-host: maybe-all-gnattools
700d40ca
ILT
1105@if lto-plugin-no-bootstrap
1106all-host: maybe-all-lto-plugin
1107@endif lto-plugin-no-bootstrap
1b6c0831
L
1108all-host: maybe-all-libcc1
1109all-host: maybe-all-gotools
c52c6897 1110
dd12c3a8 1111.PHONY: all-target
c52c6897 1112
e8a5fa9c 1113@if target-libstdc++-v3-no-bootstrap
c52c6897 1114all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1115@endif target-libstdc++-v3-no-bootstrap
5eb08693 1116@if target-libsanitizer-no-bootstrap
5286fdef 1117all-target: maybe-all-target-libsanitizer
5eb08693 1118@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1119@if target-libmpx-no-bootstrap
1120all-target: maybe-all-target-libmpx
1121@endif target-libmpx-no-bootstrap
95e43135
JBG
1122@if target-libvtv-no-bootstrap
1123all-target: maybe-all-target-libvtv
1124@endif target-libvtv-no-bootstrap
e78e02e6 1125all-target: maybe-all-target-libcilkrts
1b6c0831 1126all-target: maybe-all-target-liboffloadmic
c52c6897 1127all-target: maybe-all-target-libssp
c52c6897 1128all-target: maybe-all-target-newlib
f86e35b8 1129@if target-libgcc-no-bootstrap
6aa8ef82 1130all-target: maybe-all-target-libgcc
f86e35b8 1131@endif target-libgcc-no-bootstrap
2bf680c4 1132all-target: maybe-all-target-libbacktrace
e552509b 1133all-target: maybe-all-target-libquadmath
c52c6897
PB
1134all-target: maybe-all-target-libgfortran
1135all-target: maybe-all-target-libobjc
e552509b 1136all-target: maybe-all-target-libgo
c52c6897
PB
1137all-target: maybe-all-target-libtermcap
1138all-target: maybe-all-target-winsup
1139all-target: maybe-all-target-libgloss
c52c6897
PB
1140all-target: maybe-all-target-libffi
1141all-target: maybe-all-target-libjava
1142all-target: maybe-all-target-zlib
1143all-target: maybe-all-target-boehm-gc
c52c6897
PB
1144all-target: maybe-all-target-rda
1145all-target: maybe-all-target-libada
911e63d0 1146@if target-libgomp-no-bootstrap
c52c6897 1147all-target: maybe-all-target-libgomp
911e63d0 1148@endif target-libgomp-no-bootstrap
7ec59b9e
L
1149all-target: maybe-all-target-libitm
1150all-target: maybe-all-target-libatomic
252b5132
RH
1151
1152# Do a target for all the subdirectories. A ``make do-X'' will do a
1153# ``make X'' in all subdirectories (because, in general, there is a
1154# dependency (below) of X upon do-X, a ``make X'' will also do this,
1155# but it may do additional work as well).
e393202e 1156
2a4cbe27 1157.PHONY: do-info
f70224b5 1158do-info:
0aed8855 1159 @: $(MAKE); $(unstage)
e360f423
PB
1160 @r=`${PWD_COMMAND}`; export r; \
1161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1162 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1163 info-target
f70224b5 1164
e393202e 1165
2a4cbe27 1166.PHONY: info-host
c52c6897 1167
c52c6897
PB
1168info-host: maybe-info-bfd
1169info-host: maybe-info-opcodes
1170info-host: maybe-info-binutils
1171info-host: maybe-info-bison
f9806fa5 1172info-host: maybe-info-cgen
c52c6897 1173info-host: maybe-info-dejagnu
c52c6897
PB
1174info-host: maybe-info-etc
1175info-host: maybe-info-fastjar
c52c6897
PB
1176info-host: maybe-info-fixincludes
1177info-host: maybe-info-flex
1178info-host: maybe-info-gas
1179info-host: maybe-info-gcc
4b900473
PB
1180info-host: maybe-info-gmp
1181info-host: maybe-info-mpfr
e8a5fa9c 1182info-host: maybe-info-mpc
7ec59b9e 1183info-host: maybe-info-isl
1f53ca9a 1184info-host: maybe-info-libelf
93f9b408 1185info-host: maybe-info-gold
c52c6897 1186info-host: maybe-info-gprof
c52c6897
PB
1187info-host: maybe-info-intl
1188info-host: maybe-info-tcl
1189info-host: maybe-info-itcl
1190info-host: maybe-info-ld
2bf680c4 1191info-host: maybe-info-libbacktrace
c52c6897
PB
1192info-host: maybe-info-libcpp
1193info-host: maybe-info-libdecnumber
1194info-host: maybe-info-libgui
1195info-host: maybe-info-libiberty
1b6c0831 1196info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1197info-host: maybe-info-libiconv
c52c6897 1198info-host: maybe-info-m4
c52c6897 1199info-host: maybe-info-readline
c52c6897
PB
1200info-host: maybe-info-sid
1201info-host: maybe-info-sim
c52c6897 1202info-host: maybe-info-texinfo
c52c6897
PB
1203info-host: maybe-info-zlib
1204info-host: maybe-info-gdb
1205info-host: maybe-info-expect
1206info-host: maybe-info-guile
1207info-host: maybe-info-tk
1208info-host: maybe-info-libtermcap
1209info-host: maybe-info-utils
1210info-host: maybe-info-gnattools
700d40ca 1211info-host: maybe-info-lto-plugin
1b6c0831
L
1212info-host: maybe-info-libcc1
1213info-host: maybe-info-gotools
252b5132 1214
2a4cbe27 1215.PHONY: info-target
c52c6897
PB
1216
1217info-target: maybe-info-target-libstdc++-v3
5286fdef 1218info-target: maybe-info-target-libsanitizer
1b6c0831 1219info-target: maybe-info-target-libmpx
95e43135 1220info-target: maybe-info-target-libvtv
e78e02e6 1221info-target: maybe-info-target-libcilkrts
1b6c0831 1222info-target: maybe-info-target-liboffloadmic
c52c6897 1223info-target: maybe-info-target-libssp
c52c6897 1224info-target: maybe-info-target-newlib
6aa8ef82 1225info-target: maybe-info-target-libgcc
2bf680c4 1226info-target: maybe-info-target-libbacktrace
e552509b 1227info-target: maybe-info-target-libquadmath
c52c6897
PB
1228info-target: maybe-info-target-libgfortran
1229info-target: maybe-info-target-libobjc
e552509b 1230info-target: maybe-info-target-libgo
c52c6897
PB
1231info-target: maybe-info-target-libtermcap
1232info-target: maybe-info-target-winsup
1233info-target: maybe-info-target-libgloss
c52c6897
PB
1234info-target: maybe-info-target-libffi
1235info-target: maybe-info-target-libjava
1236info-target: maybe-info-target-zlib
1237info-target: maybe-info-target-boehm-gc
c52c6897
PB
1238info-target: maybe-info-target-rda
1239info-target: maybe-info-target-libada
1240info-target: maybe-info-target-libgomp
7ec59b9e
L
1241info-target: maybe-info-target-libitm
1242info-target: maybe-info-target-libatomic
252b5132 1243
4fa63067 1244.PHONY: do-dvi
f70224b5 1245do-dvi:
0aed8855 1246 @: $(MAKE); $(unstage)
e360f423
PB
1247 @r=`${PWD_COMMAND}`; export r; \
1248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1249 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1250 dvi-target
f70224b5 1251
2a4cbe27 1252
4fa63067 1253.PHONY: dvi-host
c52c6897 1254
c52c6897
PB
1255dvi-host: maybe-dvi-bfd
1256dvi-host: maybe-dvi-opcodes
1257dvi-host: maybe-dvi-binutils
1258dvi-host: maybe-dvi-bison
f9806fa5 1259dvi-host: maybe-dvi-cgen
c52c6897 1260dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1261dvi-host: maybe-dvi-etc
1262dvi-host: maybe-dvi-fastjar
c52c6897
PB
1263dvi-host: maybe-dvi-fixincludes
1264dvi-host: maybe-dvi-flex
1265dvi-host: maybe-dvi-gas
1266dvi-host: maybe-dvi-gcc
4b900473
PB
1267dvi-host: maybe-dvi-gmp
1268dvi-host: maybe-dvi-mpfr
e8a5fa9c 1269dvi-host: maybe-dvi-mpc
7ec59b9e 1270dvi-host: maybe-dvi-isl
1f53ca9a 1271dvi-host: maybe-dvi-libelf
93f9b408 1272dvi-host: maybe-dvi-gold
c52c6897 1273dvi-host: maybe-dvi-gprof
c52c6897
PB
1274dvi-host: maybe-dvi-intl
1275dvi-host: maybe-dvi-tcl
1276dvi-host: maybe-dvi-itcl
1277dvi-host: maybe-dvi-ld
2bf680c4 1278dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1279dvi-host: maybe-dvi-libcpp
1280dvi-host: maybe-dvi-libdecnumber
1281dvi-host: maybe-dvi-libgui
1282dvi-host: maybe-dvi-libiberty
1b6c0831 1283dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1284dvi-host: maybe-dvi-libiconv
c52c6897 1285dvi-host: maybe-dvi-m4
c52c6897 1286dvi-host: maybe-dvi-readline
c52c6897
PB
1287dvi-host: maybe-dvi-sid
1288dvi-host: maybe-dvi-sim
c52c6897 1289dvi-host: maybe-dvi-texinfo
c52c6897
PB
1290dvi-host: maybe-dvi-zlib
1291dvi-host: maybe-dvi-gdb
1292dvi-host: maybe-dvi-expect
1293dvi-host: maybe-dvi-guile
1294dvi-host: maybe-dvi-tk
1295dvi-host: maybe-dvi-libtermcap
1296dvi-host: maybe-dvi-utils
1297dvi-host: maybe-dvi-gnattools
700d40ca 1298dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1299dvi-host: maybe-dvi-libcc1
1300dvi-host: maybe-dvi-gotools
2a4cbe27 1301
4fa63067 1302.PHONY: dvi-target
c52c6897
PB
1303
1304dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1305dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1306dvi-target: maybe-dvi-target-libmpx
95e43135 1307dvi-target: maybe-dvi-target-libvtv
e78e02e6 1308dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1309dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1310dvi-target: maybe-dvi-target-libssp
c52c6897 1311dvi-target: maybe-dvi-target-newlib
6aa8ef82 1312dvi-target: maybe-dvi-target-libgcc
2bf680c4 1313dvi-target: maybe-dvi-target-libbacktrace
e552509b 1314dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1315dvi-target: maybe-dvi-target-libgfortran
1316dvi-target: maybe-dvi-target-libobjc
e552509b 1317dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1318dvi-target: maybe-dvi-target-libtermcap
1319dvi-target: maybe-dvi-target-winsup
1320dvi-target: maybe-dvi-target-libgloss
c52c6897
PB
1321dvi-target: maybe-dvi-target-libffi
1322dvi-target: maybe-dvi-target-libjava
1323dvi-target: maybe-dvi-target-zlib
1324dvi-target: maybe-dvi-target-boehm-gc
c52c6897
PB
1325dvi-target: maybe-dvi-target-rda
1326dvi-target: maybe-dvi-target-libada
1327dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1328dvi-target: maybe-dvi-target-libitm
1329dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1330
56a8fe78
DD
1331.PHONY: do-pdf
1332do-pdf:
1333 @: $(MAKE); $(unstage)
1334 @r=`${PWD_COMMAND}`; export r; \
1335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1336 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1337 pdf-target
1338
1339
1340.PHONY: pdf-host
1341
56a8fe78
DD
1342pdf-host: maybe-pdf-bfd
1343pdf-host: maybe-pdf-opcodes
1344pdf-host: maybe-pdf-binutils
1345pdf-host: maybe-pdf-bison
f9806fa5 1346pdf-host: maybe-pdf-cgen
56a8fe78 1347pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1348pdf-host: maybe-pdf-etc
1349pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1350pdf-host: maybe-pdf-fixincludes
1351pdf-host: maybe-pdf-flex
1352pdf-host: maybe-pdf-gas
1353pdf-host: maybe-pdf-gcc
4b900473
PB
1354pdf-host: maybe-pdf-gmp
1355pdf-host: maybe-pdf-mpfr
e8a5fa9c 1356pdf-host: maybe-pdf-mpc
7ec59b9e 1357pdf-host: maybe-pdf-isl
1f53ca9a 1358pdf-host: maybe-pdf-libelf
93f9b408 1359pdf-host: maybe-pdf-gold
56a8fe78 1360pdf-host: maybe-pdf-gprof
56a8fe78
DD
1361pdf-host: maybe-pdf-intl
1362pdf-host: maybe-pdf-tcl
1363pdf-host: maybe-pdf-itcl
1364pdf-host: maybe-pdf-ld
2bf680c4 1365pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1366pdf-host: maybe-pdf-libcpp
1367pdf-host: maybe-pdf-libdecnumber
1368pdf-host: maybe-pdf-libgui
1369pdf-host: maybe-pdf-libiberty
1b6c0831 1370pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1371pdf-host: maybe-pdf-libiconv
56a8fe78 1372pdf-host: maybe-pdf-m4
56a8fe78 1373pdf-host: maybe-pdf-readline
56a8fe78
DD
1374pdf-host: maybe-pdf-sid
1375pdf-host: maybe-pdf-sim
56a8fe78 1376pdf-host: maybe-pdf-texinfo
56a8fe78
DD
1377pdf-host: maybe-pdf-zlib
1378pdf-host: maybe-pdf-gdb
1379pdf-host: maybe-pdf-expect
1380pdf-host: maybe-pdf-guile
1381pdf-host: maybe-pdf-tk
1382pdf-host: maybe-pdf-libtermcap
1383pdf-host: maybe-pdf-utils
1384pdf-host: maybe-pdf-gnattools
700d40ca 1385pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1386pdf-host: maybe-pdf-libcc1
1387pdf-host: maybe-pdf-gotools
56a8fe78
DD
1388
1389.PHONY: pdf-target
1390
1391pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1392pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1393pdf-target: maybe-pdf-target-libmpx
95e43135 1394pdf-target: maybe-pdf-target-libvtv
e78e02e6 1395pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1396pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1397pdf-target: maybe-pdf-target-libssp
1398pdf-target: maybe-pdf-target-newlib
6aa8ef82 1399pdf-target: maybe-pdf-target-libgcc
2bf680c4 1400pdf-target: maybe-pdf-target-libbacktrace
e552509b 1401pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1402pdf-target: maybe-pdf-target-libgfortran
1403pdf-target: maybe-pdf-target-libobjc
e552509b 1404pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1405pdf-target: maybe-pdf-target-libtermcap
1406pdf-target: maybe-pdf-target-winsup
1407pdf-target: maybe-pdf-target-libgloss
56a8fe78
DD
1408pdf-target: maybe-pdf-target-libffi
1409pdf-target: maybe-pdf-target-libjava
1410pdf-target: maybe-pdf-target-zlib
1411pdf-target: maybe-pdf-target-boehm-gc
56a8fe78
DD
1412pdf-target: maybe-pdf-target-rda
1413pdf-target: maybe-pdf-target-libada
1414pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1415pdf-target: maybe-pdf-target-libitm
1416pdf-target: maybe-pdf-target-libatomic
56a8fe78 1417
6d389afc 1418.PHONY: do-html
f70224b5 1419do-html:
0aed8855 1420 @: $(MAKE); $(unstage)
e360f423
PB
1421 @r=`${PWD_COMMAND}`; export r; \
1422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1423 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1424 html-target
f70224b5 1425
6d389afc
MS
1426
1427.PHONY: html-host
c52c6897 1428
c52c6897
PB
1429html-host: maybe-html-bfd
1430html-host: maybe-html-opcodes
1431html-host: maybe-html-binutils
1432html-host: maybe-html-bison
f9806fa5 1433html-host: maybe-html-cgen
c52c6897 1434html-host: maybe-html-dejagnu
c52c6897
PB
1435html-host: maybe-html-etc
1436html-host: maybe-html-fastjar
c52c6897
PB
1437html-host: maybe-html-fixincludes
1438html-host: maybe-html-flex
1439html-host: maybe-html-gas
1440html-host: maybe-html-gcc
4b900473
PB
1441html-host: maybe-html-gmp
1442html-host: maybe-html-mpfr
e8a5fa9c 1443html-host: maybe-html-mpc
7ec59b9e 1444html-host: maybe-html-isl
1f53ca9a 1445html-host: maybe-html-libelf
93f9b408 1446html-host: maybe-html-gold
c52c6897 1447html-host: maybe-html-gprof
c52c6897
PB
1448html-host: maybe-html-intl
1449html-host: maybe-html-tcl
1450html-host: maybe-html-itcl
1451html-host: maybe-html-ld
2bf680c4 1452html-host: maybe-html-libbacktrace
c52c6897
PB
1453html-host: maybe-html-libcpp
1454html-host: maybe-html-libdecnumber
1455html-host: maybe-html-libgui
1456html-host: maybe-html-libiberty
1b6c0831 1457html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1458html-host: maybe-html-libiconv
c52c6897 1459html-host: maybe-html-m4
c52c6897 1460html-host: maybe-html-readline
c52c6897
PB
1461html-host: maybe-html-sid
1462html-host: maybe-html-sim
c52c6897 1463html-host: maybe-html-texinfo
c52c6897
PB
1464html-host: maybe-html-zlib
1465html-host: maybe-html-gdb
1466html-host: maybe-html-expect
1467html-host: maybe-html-guile
1468html-host: maybe-html-tk
1469html-host: maybe-html-libtermcap
1470html-host: maybe-html-utils
1471html-host: maybe-html-gnattools
700d40ca 1472html-host: maybe-html-lto-plugin
1b6c0831
L
1473html-host: maybe-html-libcc1
1474html-host: maybe-html-gotools
6d389afc
MS
1475
1476.PHONY: html-target
c52c6897
PB
1477
1478html-target: maybe-html-target-libstdc++-v3
5286fdef 1479html-target: maybe-html-target-libsanitizer
1b6c0831 1480html-target: maybe-html-target-libmpx
95e43135 1481html-target: maybe-html-target-libvtv
e78e02e6 1482html-target: maybe-html-target-libcilkrts
1b6c0831 1483html-target: maybe-html-target-liboffloadmic
c52c6897 1484html-target: maybe-html-target-libssp
c52c6897 1485html-target: maybe-html-target-newlib
6aa8ef82 1486html-target: maybe-html-target-libgcc
2bf680c4 1487html-target: maybe-html-target-libbacktrace
e552509b 1488html-target: maybe-html-target-libquadmath
c52c6897
PB
1489html-target: maybe-html-target-libgfortran
1490html-target: maybe-html-target-libobjc
e552509b 1491html-target: maybe-html-target-libgo
c52c6897
PB
1492html-target: maybe-html-target-libtermcap
1493html-target: maybe-html-target-winsup
1494html-target: maybe-html-target-libgloss
c52c6897
PB
1495html-target: maybe-html-target-libffi
1496html-target: maybe-html-target-libjava
1497html-target: maybe-html-target-zlib
1498html-target: maybe-html-target-boehm-gc
c52c6897
PB
1499html-target: maybe-html-target-rda
1500html-target: maybe-html-target-libada
1501html-target: maybe-html-target-libgomp
7ec59b9e
L
1502html-target: maybe-html-target-libitm
1503html-target: maybe-html-target-libatomic
6d389afc 1504
4fa63067 1505.PHONY: do-TAGS
f70224b5 1506do-TAGS:
0aed8855 1507 @: $(MAKE); $(unstage)
e360f423
PB
1508 @r=`${PWD_COMMAND}`; export r; \
1509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1510 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1511 TAGS-target
f70224b5 1512
2a4cbe27 1513
4fa63067 1514.PHONY: TAGS-host
c52c6897 1515
c52c6897
PB
1516TAGS-host: maybe-TAGS-bfd
1517TAGS-host: maybe-TAGS-opcodes
1518TAGS-host: maybe-TAGS-binutils
1519TAGS-host: maybe-TAGS-bison
f9806fa5 1520TAGS-host: maybe-TAGS-cgen
c52c6897 1521TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1522TAGS-host: maybe-TAGS-etc
1523TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1524TAGS-host: maybe-TAGS-fixincludes
1525TAGS-host: maybe-TAGS-flex
1526TAGS-host: maybe-TAGS-gas
1527TAGS-host: maybe-TAGS-gcc
4b900473
PB
1528TAGS-host: maybe-TAGS-gmp
1529TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1530TAGS-host: maybe-TAGS-mpc
7ec59b9e 1531TAGS-host: maybe-TAGS-isl
1f53ca9a 1532TAGS-host: maybe-TAGS-libelf
93f9b408 1533TAGS-host: maybe-TAGS-gold
c52c6897 1534TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1535TAGS-host: maybe-TAGS-intl
1536TAGS-host: maybe-TAGS-tcl
1537TAGS-host: maybe-TAGS-itcl
1538TAGS-host: maybe-TAGS-ld
2bf680c4 1539TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1540TAGS-host: maybe-TAGS-libcpp
1541TAGS-host: maybe-TAGS-libdecnumber
1542TAGS-host: maybe-TAGS-libgui
1543TAGS-host: maybe-TAGS-libiberty
1b6c0831 1544TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1545TAGS-host: maybe-TAGS-libiconv
c52c6897 1546TAGS-host: maybe-TAGS-m4
c52c6897 1547TAGS-host: maybe-TAGS-readline
c52c6897
PB
1548TAGS-host: maybe-TAGS-sid
1549TAGS-host: maybe-TAGS-sim
c52c6897 1550TAGS-host: maybe-TAGS-texinfo
c52c6897
PB
1551TAGS-host: maybe-TAGS-zlib
1552TAGS-host: maybe-TAGS-gdb
1553TAGS-host: maybe-TAGS-expect
1554TAGS-host: maybe-TAGS-guile
1555TAGS-host: maybe-TAGS-tk
1556TAGS-host: maybe-TAGS-libtermcap
1557TAGS-host: maybe-TAGS-utils
1558TAGS-host: maybe-TAGS-gnattools
700d40ca 1559TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1560TAGS-host: maybe-TAGS-libcc1
1561TAGS-host: maybe-TAGS-gotools
2a4cbe27 1562
4fa63067 1563.PHONY: TAGS-target
c52c6897
PB
1564
1565TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1566TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1567TAGS-target: maybe-TAGS-target-libmpx
95e43135 1568TAGS-target: maybe-TAGS-target-libvtv
e78e02e6 1569TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1570TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1571TAGS-target: maybe-TAGS-target-libssp
c52c6897 1572TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1573TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1574TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1575TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1576TAGS-target: maybe-TAGS-target-libgfortran
1577TAGS-target: maybe-TAGS-target-libobjc
e552509b 1578TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1579TAGS-target: maybe-TAGS-target-libtermcap
1580TAGS-target: maybe-TAGS-target-winsup
1581TAGS-target: maybe-TAGS-target-libgloss
c52c6897
PB
1582TAGS-target: maybe-TAGS-target-libffi
1583TAGS-target: maybe-TAGS-target-libjava
1584TAGS-target: maybe-TAGS-target-zlib
1585TAGS-target: maybe-TAGS-target-boehm-gc
c52c6897
PB
1586TAGS-target: maybe-TAGS-target-rda
1587TAGS-target: maybe-TAGS-target-libada
1588TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1589TAGS-target: maybe-TAGS-target-libitm
1590TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1591
4fa63067 1592.PHONY: do-install-info
f70224b5 1593do-install-info:
0aed8855 1594 @: $(MAKE); $(unstage)
e360f423
PB
1595 @r=`${PWD_COMMAND}`; export r; \
1596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1597 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1598 install-info-target
f70224b5 1599
a2592b1b 1600
4fa63067 1601.PHONY: install-info-host
c52c6897 1602
c52c6897
PB
1603install-info-host: maybe-install-info-bfd
1604install-info-host: maybe-install-info-opcodes
1605install-info-host: maybe-install-info-binutils
1606install-info-host: maybe-install-info-bison
f9806fa5 1607install-info-host: maybe-install-info-cgen
c52c6897 1608install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1609install-info-host: maybe-install-info-etc
1610install-info-host: maybe-install-info-fastjar
c52c6897
PB
1611install-info-host: maybe-install-info-fixincludes
1612install-info-host: maybe-install-info-flex
1613install-info-host: maybe-install-info-gas
1614install-info-host: maybe-install-info-gcc
4b900473
PB
1615install-info-host: maybe-install-info-gmp
1616install-info-host: maybe-install-info-mpfr
e8a5fa9c 1617install-info-host: maybe-install-info-mpc
7ec59b9e 1618install-info-host: maybe-install-info-isl
1f53ca9a 1619install-info-host: maybe-install-info-libelf
93f9b408 1620install-info-host: maybe-install-info-gold
c52c6897 1621install-info-host: maybe-install-info-gprof
c52c6897
PB
1622install-info-host: maybe-install-info-intl
1623install-info-host: maybe-install-info-tcl
1624install-info-host: maybe-install-info-itcl
1625install-info-host: maybe-install-info-ld
2bf680c4 1626install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1627install-info-host: maybe-install-info-libcpp
1628install-info-host: maybe-install-info-libdecnumber
1629install-info-host: maybe-install-info-libgui
1630install-info-host: maybe-install-info-libiberty
1b6c0831 1631install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1632install-info-host: maybe-install-info-libiconv
c52c6897 1633install-info-host: maybe-install-info-m4
c52c6897 1634install-info-host: maybe-install-info-readline
c52c6897
PB
1635install-info-host: maybe-install-info-sid
1636install-info-host: maybe-install-info-sim
c52c6897 1637install-info-host: maybe-install-info-texinfo
c52c6897
PB
1638install-info-host: maybe-install-info-zlib
1639install-info-host: maybe-install-info-gdb
1640install-info-host: maybe-install-info-expect
1641install-info-host: maybe-install-info-guile
1642install-info-host: maybe-install-info-tk
1643install-info-host: maybe-install-info-libtermcap
1644install-info-host: maybe-install-info-utils
1645install-info-host: maybe-install-info-gnattools
700d40ca 1646install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1647install-info-host: maybe-install-info-libcc1
1648install-info-host: maybe-install-info-gotools
a2592b1b 1649
4fa63067 1650.PHONY: install-info-target
c52c6897
PB
1651
1652install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1653install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1654install-info-target: maybe-install-info-target-libmpx
95e43135 1655install-info-target: maybe-install-info-target-libvtv
e78e02e6 1656install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1657install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1658install-info-target: maybe-install-info-target-libssp
c52c6897 1659install-info-target: maybe-install-info-target-newlib
6aa8ef82 1660install-info-target: maybe-install-info-target-libgcc
2bf680c4 1661install-info-target: maybe-install-info-target-libbacktrace
e552509b 1662install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1663install-info-target: maybe-install-info-target-libgfortran
1664install-info-target: maybe-install-info-target-libobjc
e552509b 1665install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1666install-info-target: maybe-install-info-target-libtermcap
1667install-info-target: maybe-install-info-target-winsup
1668install-info-target: maybe-install-info-target-libgloss
c52c6897
PB
1669install-info-target: maybe-install-info-target-libffi
1670install-info-target: maybe-install-info-target-libjava
1671install-info-target: maybe-install-info-target-zlib
1672install-info-target: maybe-install-info-target-boehm-gc
c52c6897
PB
1673install-info-target: maybe-install-info-target-rda
1674install-info-target: maybe-install-info-target-libada
1675install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1676install-info-target: maybe-install-info-target-libitm
1677install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1678
a3ca38d2
DD
1679.PHONY: do-install-pdf
1680do-install-pdf:
1681 @: $(MAKE); $(unstage)
1682 @r=`${PWD_COMMAND}`; export r; \
1683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1684 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1685 install-pdf-target
1686
1687
1688.PHONY: install-pdf-host
1689
a3ca38d2
DD
1690install-pdf-host: maybe-install-pdf-bfd
1691install-pdf-host: maybe-install-pdf-opcodes
1692install-pdf-host: maybe-install-pdf-binutils
1693install-pdf-host: maybe-install-pdf-bison
f9806fa5 1694install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1695install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1696install-pdf-host: maybe-install-pdf-etc
1697install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1698install-pdf-host: maybe-install-pdf-fixincludes
1699install-pdf-host: maybe-install-pdf-flex
1700install-pdf-host: maybe-install-pdf-gas
1701install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1702install-pdf-host: maybe-install-pdf-gmp
1703install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1704install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1705install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1706install-pdf-host: maybe-install-pdf-libelf
93f9b408 1707install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1708install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1709install-pdf-host: maybe-install-pdf-intl
1710install-pdf-host: maybe-install-pdf-tcl
1711install-pdf-host: maybe-install-pdf-itcl
1712install-pdf-host: maybe-install-pdf-ld
2bf680c4 1713install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1714install-pdf-host: maybe-install-pdf-libcpp
1715install-pdf-host: maybe-install-pdf-libdecnumber
1716install-pdf-host: maybe-install-pdf-libgui
1717install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1718install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1719install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1720install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1721install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1722install-pdf-host: maybe-install-pdf-sid
1723install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1724install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2
DD
1725install-pdf-host: maybe-install-pdf-zlib
1726install-pdf-host: maybe-install-pdf-gdb
1727install-pdf-host: maybe-install-pdf-expect
1728install-pdf-host: maybe-install-pdf-guile
1729install-pdf-host: maybe-install-pdf-tk
1730install-pdf-host: maybe-install-pdf-libtermcap
1731install-pdf-host: maybe-install-pdf-utils
1732install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1733install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1734install-pdf-host: maybe-install-pdf-libcc1
1735install-pdf-host: maybe-install-pdf-gotools
a3ca38d2
DD
1736
1737.PHONY: install-pdf-target
1738
1739install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1740install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1741install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1742install-pdf-target: maybe-install-pdf-target-libvtv
e78e02e6 1743install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1744install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1745install-pdf-target: maybe-install-pdf-target-libssp
1746install-pdf-target: maybe-install-pdf-target-newlib
1747install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1748install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1749install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1750install-pdf-target: maybe-install-pdf-target-libgfortran
1751install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1752install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1753install-pdf-target: maybe-install-pdf-target-libtermcap
1754install-pdf-target: maybe-install-pdf-target-winsup
1755install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2
DD
1756install-pdf-target: maybe-install-pdf-target-libffi
1757install-pdf-target: maybe-install-pdf-target-libjava
1758install-pdf-target: maybe-install-pdf-target-zlib
1759install-pdf-target: maybe-install-pdf-target-boehm-gc
a3ca38d2
DD
1760install-pdf-target: maybe-install-pdf-target-rda
1761install-pdf-target: maybe-install-pdf-target-libada
1762install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1763install-pdf-target: maybe-install-pdf-target-libitm
1764install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1765
108a6f8e
CD
1766.PHONY: do-install-html
1767do-install-html:
1768 @: $(MAKE); $(unstage)
1769 @r=`${PWD_COMMAND}`; export r; \
1770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1771 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1772 install-html-target
1773
1774
1775.PHONY: install-html-host
1776
108a6f8e
CD
1777install-html-host: maybe-install-html-bfd
1778install-html-host: maybe-install-html-opcodes
1779install-html-host: maybe-install-html-binutils
1780install-html-host: maybe-install-html-bison
f9806fa5 1781install-html-host: maybe-install-html-cgen
108a6f8e 1782install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1783install-html-host: maybe-install-html-etc
1784install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1785install-html-host: maybe-install-html-fixincludes
1786install-html-host: maybe-install-html-flex
1787install-html-host: maybe-install-html-gas
1788install-html-host: maybe-install-html-gcc
4b900473
PB
1789install-html-host: maybe-install-html-gmp
1790install-html-host: maybe-install-html-mpfr
e8a5fa9c 1791install-html-host: maybe-install-html-mpc
7ec59b9e 1792install-html-host: maybe-install-html-isl
1f53ca9a 1793install-html-host: maybe-install-html-libelf
93f9b408 1794install-html-host: maybe-install-html-gold
108a6f8e 1795install-html-host: maybe-install-html-gprof
108a6f8e
CD
1796install-html-host: maybe-install-html-intl
1797install-html-host: maybe-install-html-tcl
1798install-html-host: maybe-install-html-itcl
1799install-html-host: maybe-install-html-ld
2bf680c4 1800install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1801install-html-host: maybe-install-html-libcpp
1802install-html-host: maybe-install-html-libdecnumber
1803install-html-host: maybe-install-html-libgui
1804install-html-host: maybe-install-html-libiberty
1b6c0831 1805install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1806install-html-host: maybe-install-html-libiconv
108a6f8e 1807install-html-host: maybe-install-html-m4
108a6f8e 1808install-html-host: maybe-install-html-readline
108a6f8e
CD
1809install-html-host: maybe-install-html-sid
1810install-html-host: maybe-install-html-sim
108a6f8e 1811install-html-host: maybe-install-html-texinfo
108a6f8e
CD
1812install-html-host: maybe-install-html-zlib
1813install-html-host: maybe-install-html-gdb
1814install-html-host: maybe-install-html-expect
1815install-html-host: maybe-install-html-guile
1816install-html-host: maybe-install-html-tk
1817install-html-host: maybe-install-html-libtermcap
1818install-html-host: maybe-install-html-utils
1819install-html-host: maybe-install-html-gnattools
700d40ca 1820install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1821install-html-host: maybe-install-html-libcc1
1822install-html-host: maybe-install-html-gotools
108a6f8e
CD
1823
1824.PHONY: install-html-target
1825
1826install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1827install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1828install-html-target: maybe-install-html-target-libmpx
95e43135 1829install-html-target: maybe-install-html-target-libvtv
e78e02e6 1830install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1831install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1832install-html-target: maybe-install-html-target-libssp
108a6f8e 1833install-html-target: maybe-install-html-target-newlib
6aa8ef82 1834install-html-target: maybe-install-html-target-libgcc
2bf680c4 1835install-html-target: maybe-install-html-target-libbacktrace
e552509b 1836install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1837install-html-target: maybe-install-html-target-libgfortran
1838install-html-target: maybe-install-html-target-libobjc
e552509b 1839install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1840install-html-target: maybe-install-html-target-libtermcap
1841install-html-target: maybe-install-html-target-winsup
1842install-html-target: maybe-install-html-target-libgloss
108a6f8e
CD
1843install-html-target: maybe-install-html-target-libffi
1844install-html-target: maybe-install-html-target-libjava
1845install-html-target: maybe-install-html-target-zlib
1846install-html-target: maybe-install-html-target-boehm-gc
108a6f8e
CD
1847install-html-target: maybe-install-html-target-rda
1848install-html-target: maybe-install-html-target-libada
1849install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1850install-html-target: maybe-install-html-target-libitm
1851install-html-target: maybe-install-html-target-libatomic
108a6f8e 1852
2a4cbe27 1853.PHONY: do-installcheck
f70224b5 1854do-installcheck:
0aed8855 1855 @: $(MAKE); $(unstage)
e360f423
PB
1856 @r=`${PWD_COMMAND}`; export r; \
1857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1858 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1859 installcheck-target
f70224b5 1860
2a4cbe27
NN
1861
1862.PHONY: installcheck-host
c52c6897 1863
c52c6897
PB
1864installcheck-host: maybe-installcheck-bfd
1865installcheck-host: maybe-installcheck-opcodes
1866installcheck-host: maybe-installcheck-binutils
1867installcheck-host: maybe-installcheck-bison
f9806fa5 1868installcheck-host: maybe-installcheck-cgen
c52c6897 1869installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1870installcheck-host: maybe-installcheck-etc
1871installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1872installcheck-host: maybe-installcheck-fixincludes
1873installcheck-host: maybe-installcheck-flex
1874installcheck-host: maybe-installcheck-gas
1875installcheck-host: maybe-installcheck-gcc
4b900473
PB
1876installcheck-host: maybe-installcheck-gmp
1877installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1878installcheck-host: maybe-installcheck-mpc
7ec59b9e 1879installcheck-host: maybe-installcheck-isl
1f53ca9a 1880installcheck-host: maybe-installcheck-libelf
93f9b408 1881installcheck-host: maybe-installcheck-gold
c52c6897 1882installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1883installcheck-host: maybe-installcheck-intl
1884installcheck-host: maybe-installcheck-tcl
1885installcheck-host: maybe-installcheck-itcl
1886installcheck-host: maybe-installcheck-ld
2bf680c4 1887installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1888installcheck-host: maybe-installcheck-libcpp
1889installcheck-host: maybe-installcheck-libdecnumber
1890installcheck-host: maybe-installcheck-libgui
1891installcheck-host: maybe-installcheck-libiberty
1b6c0831 1892installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1893installcheck-host: maybe-installcheck-libiconv
c52c6897 1894installcheck-host: maybe-installcheck-m4
c52c6897 1895installcheck-host: maybe-installcheck-readline
c52c6897
PB
1896installcheck-host: maybe-installcheck-sid
1897installcheck-host: maybe-installcheck-sim
c52c6897 1898installcheck-host: maybe-installcheck-texinfo
c52c6897
PB
1899installcheck-host: maybe-installcheck-zlib
1900installcheck-host: maybe-installcheck-gdb
1901installcheck-host: maybe-installcheck-expect
1902installcheck-host: maybe-installcheck-guile
1903installcheck-host: maybe-installcheck-tk
1904installcheck-host: maybe-installcheck-libtermcap
1905installcheck-host: maybe-installcheck-utils
1906installcheck-host: maybe-installcheck-gnattools
700d40ca 1907installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1908installcheck-host: maybe-installcheck-libcc1
1909installcheck-host: maybe-installcheck-gotools
2a4cbe27
NN
1910
1911.PHONY: installcheck-target
c52c6897
PB
1912
1913installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1914installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1915installcheck-target: maybe-installcheck-target-libmpx
95e43135 1916installcheck-target: maybe-installcheck-target-libvtv
e78e02e6 1917installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1918installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1919installcheck-target: maybe-installcheck-target-libssp
c52c6897 1920installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1921installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1922installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1923installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1924installcheck-target: maybe-installcheck-target-libgfortran
1925installcheck-target: maybe-installcheck-target-libobjc
e552509b 1926installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1927installcheck-target: maybe-installcheck-target-libtermcap
1928installcheck-target: maybe-installcheck-target-winsup
1929installcheck-target: maybe-installcheck-target-libgloss
c52c6897
PB
1930installcheck-target: maybe-installcheck-target-libffi
1931installcheck-target: maybe-installcheck-target-libjava
1932installcheck-target: maybe-installcheck-target-zlib
1933installcheck-target: maybe-installcheck-target-boehm-gc
c52c6897
PB
1934installcheck-target: maybe-installcheck-target-rda
1935installcheck-target: maybe-installcheck-target-libada
1936installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1937installcheck-target: maybe-installcheck-target-libitm
1938installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1939
4fa63067 1940.PHONY: do-mostlyclean
f70224b5 1941do-mostlyclean:
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) mostlyclean-host \
f70224b5 1946 mostlyclean-target
f70224b5 1947
2a4cbe27 1948
4fa63067 1949.PHONY: mostlyclean-host
c52c6897 1950
c52c6897
PB
1951mostlyclean-host: maybe-mostlyclean-bfd
1952mostlyclean-host: maybe-mostlyclean-opcodes
1953mostlyclean-host: maybe-mostlyclean-binutils
1954mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1955mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1956mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1957mostlyclean-host: maybe-mostlyclean-etc
1958mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1959mostlyclean-host: maybe-mostlyclean-fixincludes
1960mostlyclean-host: maybe-mostlyclean-flex
1961mostlyclean-host: maybe-mostlyclean-gas
1962mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1963mostlyclean-host: maybe-mostlyclean-gmp
1964mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1965mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1966mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1967mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1968mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1969mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1970mostlyclean-host: maybe-mostlyclean-intl
1971mostlyclean-host: maybe-mostlyclean-tcl
1972mostlyclean-host: maybe-mostlyclean-itcl
1973mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1974mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1975mostlyclean-host: maybe-mostlyclean-libcpp
1976mostlyclean-host: maybe-mostlyclean-libdecnumber
1977mostlyclean-host: maybe-mostlyclean-libgui
1978mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1979mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1980mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1981mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1982mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1983mostlyclean-host: maybe-mostlyclean-sid
1984mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1985mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897
PB
1986mostlyclean-host: maybe-mostlyclean-zlib
1987mostlyclean-host: maybe-mostlyclean-gdb
1988mostlyclean-host: maybe-mostlyclean-expect
1989mostlyclean-host: maybe-mostlyclean-guile
1990mostlyclean-host: maybe-mostlyclean-tk
1991mostlyclean-host: maybe-mostlyclean-libtermcap
1992mostlyclean-host: maybe-mostlyclean-utils
1993mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1994mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
1995mostlyclean-host: maybe-mostlyclean-libcc1
1996mostlyclean-host: maybe-mostlyclean-gotools
2a4cbe27 1997
4fa63067 1998.PHONY: mostlyclean-target
c52c6897
PB
1999
2000mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 2001mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 2002mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 2003mostlyclean-target: maybe-mostlyclean-target-libvtv
e78e02e6 2004mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 2005mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2006mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2007mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2008mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2009mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2010mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2011mostlyclean-target: maybe-mostlyclean-target-libgfortran
2012mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2013mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2014mostlyclean-target: maybe-mostlyclean-target-libtermcap
2015mostlyclean-target: maybe-mostlyclean-target-winsup
2016mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897
PB
2017mostlyclean-target: maybe-mostlyclean-target-libffi
2018mostlyclean-target: maybe-mostlyclean-target-libjava
2019mostlyclean-target: maybe-mostlyclean-target-zlib
2020mostlyclean-target: maybe-mostlyclean-target-boehm-gc
c52c6897
PB
2021mostlyclean-target: maybe-mostlyclean-target-rda
2022mostlyclean-target: maybe-mostlyclean-target-libada
2023mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2024mostlyclean-target: maybe-mostlyclean-target-libitm
2025mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2026
4fa63067 2027.PHONY: do-clean
f70224b5 2028do-clean:
0aed8855 2029 @: $(MAKE); $(unstage)
e360f423
PB
2030 @r=`${PWD_COMMAND}`; export r; \
2031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2032 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2033 clean-target
f70224b5 2034
2a4cbe27 2035
4fa63067 2036.PHONY: clean-host
c52c6897 2037
c52c6897
PB
2038clean-host: maybe-clean-bfd
2039clean-host: maybe-clean-opcodes
2040clean-host: maybe-clean-binutils
2041clean-host: maybe-clean-bison
f9806fa5 2042clean-host: maybe-clean-cgen
c52c6897 2043clean-host: maybe-clean-dejagnu
c52c6897
PB
2044clean-host: maybe-clean-etc
2045clean-host: maybe-clean-fastjar
c52c6897
PB
2046clean-host: maybe-clean-fixincludes
2047clean-host: maybe-clean-flex
2048clean-host: maybe-clean-gas
2049clean-host: maybe-clean-gcc
4b900473
PB
2050clean-host: maybe-clean-gmp
2051clean-host: maybe-clean-mpfr
e8a5fa9c 2052clean-host: maybe-clean-mpc
7ec59b9e 2053clean-host: maybe-clean-isl
1f53ca9a 2054clean-host: maybe-clean-libelf
93f9b408 2055clean-host: maybe-clean-gold
c52c6897 2056clean-host: maybe-clean-gprof
c52c6897
PB
2057clean-host: maybe-clean-intl
2058clean-host: maybe-clean-tcl
2059clean-host: maybe-clean-itcl
2060clean-host: maybe-clean-ld
2bf680c4 2061clean-host: maybe-clean-libbacktrace
c52c6897
PB
2062clean-host: maybe-clean-libcpp
2063clean-host: maybe-clean-libdecnumber
2064clean-host: maybe-clean-libgui
2065clean-host: maybe-clean-libiberty
1b6c0831 2066clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2067clean-host: maybe-clean-libiconv
c52c6897 2068clean-host: maybe-clean-m4
c52c6897 2069clean-host: maybe-clean-readline
c52c6897
PB
2070clean-host: maybe-clean-sid
2071clean-host: maybe-clean-sim
c52c6897 2072clean-host: maybe-clean-texinfo
c52c6897
PB
2073clean-host: maybe-clean-zlib
2074clean-host: maybe-clean-gdb
2075clean-host: maybe-clean-expect
2076clean-host: maybe-clean-guile
2077clean-host: maybe-clean-tk
2078clean-host: maybe-clean-libtermcap
2079clean-host: maybe-clean-utils
2080clean-host: maybe-clean-gnattools
700d40ca 2081clean-host: maybe-clean-lto-plugin
1b6c0831
L
2082clean-host: maybe-clean-libcc1
2083clean-host: maybe-clean-gotools
2a4cbe27 2084
4fa63067 2085.PHONY: clean-target
c52c6897
PB
2086
2087clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2088clean-target: maybe-clean-target-libsanitizer
1b6c0831 2089clean-target: maybe-clean-target-libmpx
95e43135 2090clean-target: maybe-clean-target-libvtv
e78e02e6 2091clean-target: maybe-clean-target-libcilkrts
1b6c0831 2092clean-target: maybe-clean-target-liboffloadmic
c52c6897 2093clean-target: maybe-clean-target-libssp
c52c6897 2094clean-target: maybe-clean-target-newlib
6aa8ef82 2095clean-target: maybe-clean-target-libgcc
2bf680c4 2096clean-target: maybe-clean-target-libbacktrace
e552509b 2097clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2098clean-target: maybe-clean-target-libgfortran
2099clean-target: maybe-clean-target-libobjc
e552509b 2100clean-target: maybe-clean-target-libgo
c52c6897
PB
2101clean-target: maybe-clean-target-libtermcap
2102clean-target: maybe-clean-target-winsup
2103clean-target: maybe-clean-target-libgloss
c52c6897
PB
2104clean-target: maybe-clean-target-libffi
2105clean-target: maybe-clean-target-libjava
2106clean-target: maybe-clean-target-zlib
2107clean-target: maybe-clean-target-boehm-gc
c52c6897
PB
2108clean-target: maybe-clean-target-rda
2109clean-target: maybe-clean-target-libada
2110clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2111clean-target: maybe-clean-target-libitm
2112clean-target: maybe-clean-target-libatomic
2a4cbe27 2113
4fa63067 2114.PHONY: do-distclean
f70224b5 2115do-distclean:
0aed8855 2116 @: $(MAKE); $(unstage)
e360f423
PB
2117 @r=`${PWD_COMMAND}`; export r; \
2118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2119 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2120 distclean-target
f70224b5 2121
2a4cbe27 2122
4fa63067 2123.PHONY: distclean-host
c52c6897 2124
c52c6897
PB
2125distclean-host: maybe-distclean-bfd
2126distclean-host: maybe-distclean-opcodes
2127distclean-host: maybe-distclean-binutils
2128distclean-host: maybe-distclean-bison
f9806fa5 2129distclean-host: maybe-distclean-cgen
c52c6897 2130distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2131distclean-host: maybe-distclean-etc
2132distclean-host: maybe-distclean-fastjar
c52c6897
PB
2133distclean-host: maybe-distclean-fixincludes
2134distclean-host: maybe-distclean-flex
2135distclean-host: maybe-distclean-gas
2136distclean-host: maybe-distclean-gcc
4b900473
PB
2137distclean-host: maybe-distclean-gmp
2138distclean-host: maybe-distclean-mpfr
e8a5fa9c 2139distclean-host: maybe-distclean-mpc
7ec59b9e 2140distclean-host: maybe-distclean-isl
1f53ca9a 2141distclean-host: maybe-distclean-libelf
93f9b408 2142distclean-host: maybe-distclean-gold
c52c6897 2143distclean-host: maybe-distclean-gprof
c52c6897
PB
2144distclean-host: maybe-distclean-intl
2145distclean-host: maybe-distclean-tcl
2146distclean-host: maybe-distclean-itcl
2147distclean-host: maybe-distclean-ld
2bf680c4 2148distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2149distclean-host: maybe-distclean-libcpp
2150distclean-host: maybe-distclean-libdecnumber
2151distclean-host: maybe-distclean-libgui
2152distclean-host: maybe-distclean-libiberty
1b6c0831 2153distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2154distclean-host: maybe-distclean-libiconv
c52c6897 2155distclean-host: maybe-distclean-m4
c52c6897 2156distclean-host: maybe-distclean-readline
c52c6897
PB
2157distclean-host: maybe-distclean-sid
2158distclean-host: maybe-distclean-sim
c52c6897 2159distclean-host: maybe-distclean-texinfo
c52c6897
PB
2160distclean-host: maybe-distclean-zlib
2161distclean-host: maybe-distclean-gdb
2162distclean-host: maybe-distclean-expect
2163distclean-host: maybe-distclean-guile
2164distclean-host: maybe-distclean-tk
2165distclean-host: maybe-distclean-libtermcap
2166distclean-host: maybe-distclean-utils
2167distclean-host: maybe-distclean-gnattools
700d40ca 2168distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2169distclean-host: maybe-distclean-libcc1
2170distclean-host: maybe-distclean-gotools
2a4cbe27 2171
4fa63067 2172.PHONY: distclean-target
c52c6897
PB
2173
2174distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2175distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2176distclean-target: maybe-distclean-target-libmpx
95e43135 2177distclean-target: maybe-distclean-target-libvtv
e78e02e6 2178distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2179distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2180distclean-target: maybe-distclean-target-libssp
c52c6897 2181distclean-target: maybe-distclean-target-newlib
6aa8ef82 2182distclean-target: maybe-distclean-target-libgcc
2bf680c4 2183distclean-target: maybe-distclean-target-libbacktrace
e552509b 2184distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2185distclean-target: maybe-distclean-target-libgfortran
2186distclean-target: maybe-distclean-target-libobjc
e552509b 2187distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2188distclean-target: maybe-distclean-target-libtermcap
2189distclean-target: maybe-distclean-target-winsup
2190distclean-target: maybe-distclean-target-libgloss
c52c6897
PB
2191distclean-target: maybe-distclean-target-libffi
2192distclean-target: maybe-distclean-target-libjava
2193distclean-target: maybe-distclean-target-zlib
2194distclean-target: maybe-distclean-target-boehm-gc
c52c6897
PB
2195distclean-target: maybe-distclean-target-rda
2196distclean-target: maybe-distclean-target-libada
2197distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2198distclean-target: maybe-distclean-target-libitm
2199distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2200
4fa63067 2201.PHONY: do-maintainer-clean
f70224b5 2202do-maintainer-clean:
0aed8855 2203 @: $(MAKE); $(unstage)
e360f423
PB
2204 @r=`${PWD_COMMAND}`; export r; \
2205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2206 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2207 maintainer-clean-target
f70224b5 2208
2a4cbe27 2209
4fa63067 2210.PHONY: maintainer-clean-host
c52c6897 2211
c52c6897
PB
2212maintainer-clean-host: maybe-maintainer-clean-bfd
2213maintainer-clean-host: maybe-maintainer-clean-opcodes
2214maintainer-clean-host: maybe-maintainer-clean-binutils
2215maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2216maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2217maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2218maintainer-clean-host: maybe-maintainer-clean-etc
2219maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2220maintainer-clean-host: maybe-maintainer-clean-fixincludes
2221maintainer-clean-host: maybe-maintainer-clean-flex
2222maintainer-clean-host: maybe-maintainer-clean-gas
2223maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2224maintainer-clean-host: maybe-maintainer-clean-gmp
2225maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2226maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2227maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2228maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2229maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2230maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2231maintainer-clean-host: maybe-maintainer-clean-intl
2232maintainer-clean-host: maybe-maintainer-clean-tcl
2233maintainer-clean-host: maybe-maintainer-clean-itcl
2234maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2235maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2236maintainer-clean-host: maybe-maintainer-clean-libcpp
2237maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2238maintainer-clean-host: maybe-maintainer-clean-libgui
2239maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2240maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2241maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2242maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2243maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2244maintainer-clean-host: maybe-maintainer-clean-sid
2245maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2246maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897
PB
2247maintainer-clean-host: maybe-maintainer-clean-zlib
2248maintainer-clean-host: maybe-maintainer-clean-gdb
2249maintainer-clean-host: maybe-maintainer-clean-expect
2250maintainer-clean-host: maybe-maintainer-clean-guile
2251maintainer-clean-host: maybe-maintainer-clean-tk
2252maintainer-clean-host: maybe-maintainer-clean-libtermcap
2253maintainer-clean-host: maybe-maintainer-clean-utils
2254maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2255maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2256maintainer-clean-host: maybe-maintainer-clean-libcc1
2257maintainer-clean-host: maybe-maintainer-clean-gotools
2a4cbe27 2258
4fa63067 2259.PHONY: maintainer-clean-target
c52c6897
PB
2260
2261maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2262maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2263maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2264maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e78e02e6 2265maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2266maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2267maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2268maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2269maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2270maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2271maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2272maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2273maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2274maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2275maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2276maintainer-clean-target: maybe-maintainer-clean-target-winsup
2277maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897
PB
2278maintainer-clean-target: maybe-maintainer-clean-target-libffi
2279maintainer-clean-target: maybe-maintainer-clean-target-libjava
2280maintainer-clean-target: maybe-maintainer-clean-target-zlib
2281maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
c52c6897
PB
2282maintainer-clean-target: maybe-maintainer-clean-target-rda
2283maintainer-clean-target: maybe-maintainer-clean-target-libada
2284maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2285maintainer-clean-target: maybe-maintainer-clean-target-libitm
2286maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2287
2a4cbe27 2288
4fa63067 2289# Here are the targets which correspond to the do-X targets.
2a4cbe27 2290
a3ca38d2
DD
2291.PHONY: info installcheck dvi pdf html
2292.PHONY: install-info install-pdf install-html
4fa63067
NN
2293.PHONY: clean distclean mostlyclean maintainer-clean realclean
2294.PHONY: local-clean local-distclean local-maintainer-clean
2295info: do-info
2296installcheck: do-installcheck
2297dvi: do-dvi
56a8fe78 2298pdf: do-pdf
6d389afc 2299html: do-html
2a4cbe27 2300
4fa63067
NN
2301# Make sure makeinfo is built before we do a `make info', if we're
2302# in fact building texinfo.
2303do-info: maybe-all-texinfo
2a4cbe27 2304
4fa63067 2305install-info: do-install-info dir.info
b40e3958 2306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2307 if [ -f dir.info ]; then \
2308 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2309 else true; fi
2a4cbe27 2310
a3ca38d2
DD
2311install-pdf: do-install-pdf
2312
108a6f8e
CD
2313install-html: do-install-html
2314
4fa63067
NN
2315local-clean:
2316 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2317
4fa63067
NN
2318local-distclean:
2319 -rm -f Makefile config.status config.cache mh-frag mt-frag
bb7dc663 2320 -rm -f maybedep.tmp serdep.tmp stage_final
4fa63067
NN
2321 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2322 rm -rf $(TARGET_SUBDIR); \
2323 else true; fi
2324 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2325 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2326 rm -rf $(HOST_SUBDIR); \
2327 else true; fi
4fa63067
NN
2328 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2329 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2330 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2331 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
bb7dc663
NC
2332 -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
2333 -rmdir texinfo zlib 2>/dev/null
18fa8f9c 2334 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2335
4fa63067
NN
2336local-maintainer-clean:
2337 @echo "This command is intended for maintainers to use;"
2338 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2339
4fa63067
NN
2340clean: do-clean local-clean
2341mostlyclean: do-mostlyclean local-clean
2342distclean: do-distclean local-clean local-distclean
2343maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2344maintainer-clean: local-distclean
2345realclean: maintainer-clean
2a4cbe27 2346
4fa63067 2347# Check target.
2a4cbe27 2348
4fa63067
NN
2349.PHONY: check do-check
2350check: do-check
2a4cbe27 2351
4fa63067 2352# Only include modules actually being configured and built.
f70224b5
PB
2353.PHONY: check-host
2354check-host: \
4fa63067
NN
2355 maybe-check-bfd \
2356 maybe-check-opcodes \
2357 maybe-check-binutils \
2358 maybe-check-bison \
f9806fa5 2359 maybe-check-cgen \
4fa63067 2360 maybe-check-dejagnu \
4fa63067
NN
2361 maybe-check-etc \
2362 maybe-check-fastjar \
d3ed111c 2363 maybe-check-fixincludes \
4fa63067
NN
2364 maybe-check-flex \
2365 maybe-check-gas \
b813574b 2366 maybe-check-gcc \
4b900473
PB
2367 maybe-check-gmp \
2368 maybe-check-mpfr \
e8a5fa9c 2369 maybe-check-mpc \
7ec59b9e 2370 maybe-check-isl \
1f53ca9a 2371 maybe-check-libelf \
93f9b408 2372 maybe-check-gold \
4fa63067 2373 maybe-check-gprof \
4fa63067
NN
2374 maybe-check-intl \
2375 maybe-check-tcl \
2376 maybe-check-itcl \
2377 maybe-check-ld \
2bf680c4 2378 maybe-check-libbacktrace \
04cf1b77 2379 maybe-check-libcpp \
be01d343 2380 maybe-check-libdecnumber \
4fa63067
NN
2381 maybe-check-libgui \
2382 maybe-check-libiberty \
1b6c0831 2383 maybe-check-libiberty-linker-plugin \
dc448a7b 2384 maybe-check-libiconv \
4fa63067 2385 maybe-check-m4 \
4fa63067 2386 maybe-check-readline \
4fa63067
NN
2387 maybe-check-sid \
2388 maybe-check-sim \
4fa63067 2389 maybe-check-texinfo \
4fa63067
NN
2390 maybe-check-zlib \
2391 maybe-check-gdb \
2392 maybe-check-expect \
2393 maybe-check-guile \
2394 maybe-check-tk \
4fa63067
NN
2395 maybe-check-libtermcap \
2396 maybe-check-utils \
700d40ca 2397 maybe-check-gnattools \
1b6c0831
L
2398 maybe-check-lto-plugin \
2399 maybe-check-libcc1 \
2400 maybe-check-gotools
f70224b5
PB
2401
2402.PHONY: check-target
2403check-target: \
4fa63067 2404 maybe-check-target-libstdc++-v3 \
5286fdef 2405 maybe-check-target-libsanitizer \
1b6c0831 2406 maybe-check-target-libmpx \
95e43135 2407 maybe-check-target-libvtv \
e78e02e6 2408 maybe-check-target-libcilkrts \
1b6c0831 2409 maybe-check-target-liboffloadmic \
064d0a7c 2410 maybe-check-target-libssp \
4fa63067 2411 maybe-check-target-newlib \
6aa8ef82 2412 maybe-check-target-libgcc \
2bf680c4 2413 maybe-check-target-libbacktrace \
e552509b 2414 maybe-check-target-libquadmath \
4b1cb4fe 2415 maybe-check-target-libgfortran \
4fa63067 2416 maybe-check-target-libobjc \
e552509b 2417 maybe-check-target-libgo \
4fa63067
NN
2418 maybe-check-target-libtermcap \
2419 maybe-check-target-winsup \
2420 maybe-check-target-libgloss \
4fa63067
NN
2421 maybe-check-target-libffi \
2422 maybe-check-target-libjava \
2423 maybe-check-target-zlib \
2424 maybe-check-target-boehm-gc \
4fa63067 2425 maybe-check-target-rda \
b3ded179 2426 maybe-check-target-libada \
7ec59b9e
L
2427 maybe-check-target-libgomp \
2428 maybe-check-target-libitm \
2429 maybe-check-target-libatomic
f70224b5
PB
2430
2431do-check:
0aed8855 2432 @: $(MAKE); $(unstage)
e360f423
PB
2433 @r=`${PWD_COMMAND}`; export r; \
2434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2435 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2436
4fa63067 2437# Automated reporting of test results.
2a4cbe27 2438
4fa63067
NN
2439warning.log: build.log
2440 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2441
4fa63067
NN
2442mail-report.log:
2443 if test x'$(BOOT_CFLAGS)' != x''; then \
2444 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2445 fi; \
2446 $(srcdir)/contrib/test_summary -t >$@
2447 chmod +x $@
2448 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2449
4fa63067
NN
2450mail-report-with-warnings.log: warning.log
2451 if test x'$(BOOT_CFLAGS)' != x''; then \
2452 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2453 fi; \
2454 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2455 chmod +x $@
2456 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2457
1b6c0831
L
2458# Local Vim config
2459
2460$(srcdir)/.local.vimrc:
22121df0 2461 $(LN_S) contrib/vimrc $@
1b6c0831
L
2462
2463$(srcdir)/.lvimrc:
22121df0 2464 $(LN_S) contrib/vimrc $@
1b6c0831
L
2465
2466vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2467
2468.PHONY: vimrc
2469
4849dfd8
NC
2470# clang-format config
2471
2472$(srcdir)/.clang-format:
2473 $(LN_S) contrib/clang-format $@
2474
2475clang-format: $(srcdir)/.clang-format
2476
2477.PHONY: clang-format
2478
4fa63067 2479# Installation targets.
2a4cbe27 2480
4fa63067 2481.PHONY: install uninstall
f70224b5 2482install:
0aed8855 2483 @: $(MAKE); $(unstage)
e360f423
PB
2484 @r=`${PWD_COMMAND}`; export r; \
2485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2486 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2487
4fa63067
NN
2488.PHONY: install-host-nogcc
2489install-host-nogcc: \
4fa63067
NN
2490 maybe-install-bfd \
2491 maybe-install-opcodes \
2492 maybe-install-binutils \
2493 maybe-install-bison \
f9806fa5 2494 maybe-install-cgen \
4fa63067 2495 maybe-install-dejagnu \
4fa63067
NN
2496 maybe-install-etc \
2497 maybe-install-fastjar \
d3ed111c 2498 maybe-install-fixincludes \
4fa63067
NN
2499 maybe-install-flex \
2500 maybe-install-gas \
4b900473
PB
2501 maybe-install-gmp \
2502 maybe-install-mpfr \
e8a5fa9c 2503 maybe-install-mpc \
7ec59b9e 2504 maybe-install-isl \
1f53ca9a 2505 maybe-install-libelf \
93f9b408 2506 maybe-install-gold \
4fa63067 2507 maybe-install-gprof \
4fa63067
NN
2508 maybe-install-intl \
2509 maybe-install-tcl \
2510 maybe-install-itcl \
2511 maybe-install-ld \
2bf680c4 2512 maybe-install-libbacktrace \
04cf1b77 2513 maybe-install-libcpp \
be01d343 2514 maybe-install-libdecnumber \
4fa63067
NN
2515 maybe-install-libgui \
2516 maybe-install-libiberty \
1b6c0831 2517 maybe-install-libiberty-linker-plugin \
dc448a7b 2518 maybe-install-libiconv \
4fa63067 2519 maybe-install-m4 \
4fa63067 2520 maybe-install-readline \
4fa63067
NN
2521 maybe-install-sid \
2522 maybe-install-sim \
4fa63067 2523 maybe-install-texinfo \
4fa63067
NN
2524 maybe-install-zlib \
2525 maybe-install-gdb \
2526 maybe-install-expect \
2527 maybe-install-guile \
2528 maybe-install-tk \
4fa63067 2529 maybe-install-libtermcap \
b00612cc 2530 maybe-install-utils \
700d40ca 2531 maybe-install-gnattools \
1b6c0831
L
2532 maybe-install-lto-plugin \
2533 maybe-install-libcc1 \
2534 maybe-install-gotools
2a4cbe27 2535
4fa63067 2536.PHONY: install-host
b813574b 2537install-host: \
4fa63067
NN
2538 maybe-install-bfd \
2539 maybe-install-opcodes \
2540 maybe-install-binutils \
2541 maybe-install-bison \
f9806fa5 2542 maybe-install-cgen \
4fa63067 2543 maybe-install-dejagnu \
4fa63067
NN
2544 maybe-install-etc \
2545 maybe-install-fastjar \
d3ed111c 2546 maybe-install-fixincludes \
4fa63067
NN
2547 maybe-install-flex \
2548 maybe-install-gas \
b813574b 2549 maybe-install-gcc \
4b900473
PB
2550 maybe-install-gmp \
2551 maybe-install-mpfr \
e8a5fa9c 2552 maybe-install-mpc \
7ec59b9e 2553 maybe-install-isl \
1f53ca9a 2554 maybe-install-libelf \
93f9b408 2555 maybe-install-gold \
4fa63067 2556 maybe-install-gprof \
4fa63067
NN
2557 maybe-install-intl \
2558 maybe-install-tcl \
2559 maybe-install-itcl \
2560 maybe-install-ld \
2bf680c4 2561 maybe-install-libbacktrace \
04cf1b77 2562 maybe-install-libcpp \
be01d343 2563 maybe-install-libdecnumber \
4fa63067
NN
2564 maybe-install-libgui \
2565 maybe-install-libiberty \
1b6c0831 2566 maybe-install-libiberty-linker-plugin \
dc448a7b 2567 maybe-install-libiconv \
4fa63067 2568 maybe-install-m4 \
4fa63067 2569 maybe-install-readline \
4fa63067
NN
2570 maybe-install-sid \
2571 maybe-install-sim \
4fa63067 2572 maybe-install-texinfo \
4fa63067
NN
2573 maybe-install-zlib \
2574 maybe-install-gdb \
2575 maybe-install-expect \
2576 maybe-install-guile \
2577 maybe-install-tk \
4fa63067 2578 maybe-install-libtermcap \
b00612cc 2579 maybe-install-utils \
700d40ca 2580 maybe-install-gnattools \
1b6c0831
L
2581 maybe-install-lto-plugin \
2582 maybe-install-libcc1 \
2583 maybe-install-gotools
2a4cbe27 2584
4fa63067
NN
2585.PHONY: install-target
2586install-target: \
2587 maybe-install-target-libstdc++-v3 \
5286fdef 2588 maybe-install-target-libsanitizer \
1b6c0831 2589 maybe-install-target-libmpx \
95e43135 2590 maybe-install-target-libvtv \
e78e02e6 2591 maybe-install-target-libcilkrts \
1b6c0831 2592 maybe-install-target-liboffloadmic \
064d0a7c 2593 maybe-install-target-libssp \
4fa63067 2594 maybe-install-target-newlib \
6aa8ef82 2595 maybe-install-target-libgcc \
2bf680c4 2596 maybe-install-target-libbacktrace \
e552509b 2597 maybe-install-target-libquadmath \
4b1cb4fe 2598 maybe-install-target-libgfortran \
4fa63067 2599 maybe-install-target-libobjc \
e552509b 2600 maybe-install-target-libgo \
4fa63067
NN
2601 maybe-install-target-libtermcap \
2602 maybe-install-target-winsup \
2603 maybe-install-target-libgloss \
4fa63067
NN
2604 maybe-install-target-libffi \
2605 maybe-install-target-libjava \
2606 maybe-install-target-zlib \
2607 maybe-install-target-boehm-gc \
4fa63067 2608 maybe-install-target-rda \
b3ded179 2609 maybe-install-target-libada \
7ec59b9e
L
2610 maybe-install-target-libgomp \
2611 maybe-install-target-libitm \
2612 maybe-install-target-libatomic
2a4cbe27 2613
4fa63067
NN
2614uninstall:
2615 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2616
4fa63067
NN
2617.PHONY: install.all
2618install.all: install-no-fixedincludes
22121df0
L
2619 @if [ -f ./gcc/Makefile ]; then \
2620 r=`${PWD_COMMAND}`; export r; \
0aed8855 2621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2622 $(HOST_EXPORTS) \
4fa63067 2623 (cd ./gcc && \
22121df0 2624 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2625 else \
22121df0 2626 true; \
4fa63067 2627 fi
2a4cbe27 2628
7ec59b9e
L
2629# install-no-fixedincludes is used to allow the elaboration of binary packages
2630# suitable for distribution, where we cannot include the fixed system header
2631# files.
4fa63067
NN
2632.PHONY: install-no-fixedincludes
2633install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2634 install-target gcc-install-no-fixedincludes
2a4cbe27 2635
9b980aa1
RW
2636.PHONY: install-strip
2637install-strip:
2638 @: $(MAKE); $(unstage)
2639 @r=`${PWD_COMMAND}`; export r; \
2640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2641 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2642
2643.PHONY: install-strip-host
2644install-strip-host: \
9b980aa1
RW
2645 maybe-install-strip-bfd \
2646 maybe-install-strip-opcodes \
2647 maybe-install-strip-binutils \
2648 maybe-install-strip-bison \
9b980aa1
RW
2649 maybe-install-strip-cgen \
2650 maybe-install-strip-dejagnu \
9b980aa1
RW
2651 maybe-install-strip-etc \
2652 maybe-install-strip-fastjar \
9b980aa1
RW
2653 maybe-install-strip-fixincludes \
2654 maybe-install-strip-flex \
2655 maybe-install-strip-gas \
2656 maybe-install-strip-gcc \
9b980aa1
RW
2657 maybe-install-strip-gmp \
2658 maybe-install-strip-mpfr \
2659 maybe-install-strip-mpc \
7ec59b9e 2660 maybe-install-strip-isl \
9b980aa1 2661 maybe-install-strip-libelf \
9b980aa1
RW
2662 maybe-install-strip-gold \
2663 maybe-install-strip-gprof \
9b980aa1
RW
2664 maybe-install-strip-intl \
2665 maybe-install-strip-tcl \
2666 maybe-install-strip-itcl \
2667 maybe-install-strip-ld \
2bf680c4 2668 maybe-install-strip-libbacktrace \
9b980aa1
RW
2669 maybe-install-strip-libcpp \
2670 maybe-install-strip-libdecnumber \
2671 maybe-install-strip-libgui \
2672 maybe-install-strip-libiberty \
1b6c0831 2673 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2674 maybe-install-strip-libiconv \
9b980aa1 2675 maybe-install-strip-m4 \
9b980aa1 2676 maybe-install-strip-readline \
9b980aa1
RW
2677 maybe-install-strip-sid \
2678 maybe-install-strip-sim \
9b980aa1 2679 maybe-install-strip-texinfo \
9b980aa1
RW
2680 maybe-install-strip-zlib \
2681 maybe-install-strip-gdb \
2682 maybe-install-strip-expect \
2683 maybe-install-strip-guile \
2684 maybe-install-strip-tk \
2685 maybe-install-strip-libtermcap \
2686 maybe-install-strip-utils \
2687 maybe-install-strip-gnattools \
1b6c0831
L
2688 maybe-install-strip-lto-plugin \
2689 maybe-install-strip-libcc1 \
2690 maybe-install-strip-gotools
9b980aa1
RW
2691
2692.PHONY: install-strip-target
2693install-strip-target: \
2694 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2695 maybe-install-strip-target-libsanitizer \
1b6c0831 2696 maybe-install-strip-target-libmpx \
95e43135 2697 maybe-install-strip-target-libvtv \
e78e02e6 2698 maybe-install-strip-target-libcilkrts \
1b6c0831 2699 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2700 maybe-install-strip-target-libssp \
2701 maybe-install-strip-target-newlib \
2702 maybe-install-strip-target-libgcc \
2bf680c4 2703 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2704 maybe-install-strip-target-libquadmath \
2705 maybe-install-strip-target-libgfortran \
2706 maybe-install-strip-target-libobjc \
2707 maybe-install-strip-target-libgo \
2708 maybe-install-strip-target-libtermcap \
2709 maybe-install-strip-target-winsup \
2710 maybe-install-strip-target-libgloss \
9b980aa1
RW
2711 maybe-install-strip-target-libffi \
2712 maybe-install-strip-target-libjava \
2713 maybe-install-strip-target-zlib \
2714 maybe-install-strip-target-boehm-gc \
9b980aa1
RW
2715 maybe-install-strip-target-rda \
2716 maybe-install-strip-target-libada \
7ec59b9e
L
2717 maybe-install-strip-target-libgomp \
2718 maybe-install-strip-target-libitm \
2719 maybe-install-strip-target-libatomic
9b980aa1
RW
2720
2721
4fa63067 2722### other supporting targets
2a4cbe27 2723
4fa63067
NN
2724MAKEDIRS= \
2725 $(DESTDIR)$(prefix) \
2726 $(DESTDIR)$(exec_prefix)
2727.PHONY: installdirs
2728installdirs: mkinstalldirs
2729 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2730
4fa63067 2731dir.info: do-install-info
22121df0
L
2732 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2733 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2734 mv -f dir.info.new dir.info; \
2735 else true; \
4fa63067 2736 fi
2a4cbe27 2737
4fa63067
NN
2738dist:
2739 @echo "Building a full distribution of this tree isn't done"
2740 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2741
4fa63067 2742etags tags: TAGS
2a4cbe27 2743
4fa63067
NN
2744# Right now this just builds TAGS in each subdirectory. emacs19 has the
2745# ability to use several tags files at once, so there is probably no need
2746# to combine them into one big TAGS file (like CVS 1.3 does). We could
2747# (if we felt like it) have this Makefile write a piece of elisp which
2748# the user could load to tell emacs19 where all the TAGS files we just
2749# built are.
2750TAGS: do-TAGS
2a4cbe27 2751
a7254363
PB
2752# ------------------------------------
2753# Macros for configure and all targets
2754# ------------------------------------
2755
2756
2757
2758
2759
4fa63067
NN
2760# --------------------------------------
2761# Modules which run on the build machine
2762# --------------------------------------
2763
a7254363 2764
4fa63067
NN
2765.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2766maybe-configure-build-libiberty:
4f0ef2d8
CD
2767@if gcc-bootstrap
2768configure-build-libiberty: stage_current
2769@endif gcc-bootstrap
6bd3dfaa
PB
2770@if build-libiberty
2771maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2772configure-build-libiberty:
0aed8855 2773 @: $(MAKE); $(unstage)
c52c6897 2774 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2776 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2777 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2778 $(BUILD_EXPORTS) \
4fa63067
NN
2779 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2780 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2781 case $(srcdir) in \
b00612cc
PB
2782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2783 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2785 esac; \
1b6c0831 2786 module_srcdir=libiberty; \
4fa63067 2787 rm -f no-such-file || : ; \
1b6c0831
L
2788 CONFIG_SITE=no-such-file $(SHELL) \
2789 $$s/$$module_srcdir/configure \
2790 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2791 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2792 --target=${target_alias} \
2a4cbe27 2793 || exit 1
6bd3dfaa 2794@endif build-libiberty
2a4cbe27 2795
a7254363
PB
2796
2797
d545f33b
PB
2798
2799
4fa63067
NN
2800.PHONY: all-build-libiberty maybe-all-build-libiberty
2801maybe-all-build-libiberty:
4f0ef2d8
CD
2802@if gcc-bootstrap
2803all-build-libiberty: stage_current
2804@endif gcc-bootstrap
6bd3dfaa 2805@if build-libiberty
72b2455a 2806TARGET-build-libiberty=all
6bd3dfaa 2807maybe-all-build-libiberty: all-build-libiberty
4fa63067 2808all-build-libiberty: configure-build-libiberty
0aed8855 2809 @: $(MAKE); $(unstage)
4fa63067 2810 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2812 $(BUILD_EXPORTS) \
72b2455a 2813 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2815 $(TARGET-build-libiberty))
6bd3dfaa 2816@endif build-libiberty
2a4cbe27 2817
a7254363
PB
2818
2819
d545f33b
PB
2820
2821
6a9cf61e
PB
2822.PHONY: configure-build-bison maybe-configure-build-bison
2823maybe-configure-build-bison:
4f0ef2d8
CD
2824@if gcc-bootstrap
2825configure-build-bison: stage_current
2826@endif gcc-bootstrap
6a9cf61e
PB
2827@if build-bison
2828maybe-configure-build-bison: configure-build-bison
c52c6897 2829configure-build-bison:
0aed8855 2830 @: $(MAKE); $(unstage)
c52c6897 2831 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2833 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2834 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2835 $(BUILD_EXPORTS) \
6a9cf61e
PB
2836 echo Configuring in $(BUILD_SUBDIR)/bison; \
2837 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2838 case $(srcdir) in \
b00612cc
PB
2839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2840 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2842 esac; \
1b6c0831 2843 module_srcdir=bison; \
6a9cf61e 2844 rm -f no-such-file || : ; \
1b6c0831
L
2845 CONFIG_SITE=no-such-file $(SHELL) \
2846 $$s/$$module_srcdir/configure \
2847 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2848 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2849 --target=${target_alias} \
6a9cf61e
PB
2850 || exit 1
2851@endif build-bison
2852
a7254363
PB
2853
2854
d545f33b
PB
2855
2856
6a9cf61e
PB
2857.PHONY: all-build-bison maybe-all-build-bison
2858maybe-all-build-bison:
4f0ef2d8
CD
2859@if gcc-bootstrap
2860all-build-bison: stage_current
2861@endif gcc-bootstrap
6a9cf61e 2862@if build-bison
72b2455a 2863TARGET-build-bison=all
6a9cf61e
PB
2864maybe-all-build-bison: all-build-bison
2865all-build-bison: configure-build-bison
0aed8855 2866 @: $(MAKE); $(unstage)
6a9cf61e
PB
2867 @r=`${PWD_COMMAND}`; export r; \
2868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2869 $(BUILD_EXPORTS) \
72b2455a 2870 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2871 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2872 $(TARGET-build-bison))
6a9cf61e
PB
2873@endif build-bison
2874
a7254363
PB
2875
2876
d545f33b
PB
2877
2878
6a9cf61e
PB
2879.PHONY: configure-build-flex maybe-configure-build-flex
2880maybe-configure-build-flex:
4f0ef2d8
CD
2881@if gcc-bootstrap
2882configure-build-flex: stage_current
2883@endif gcc-bootstrap
6a9cf61e
PB
2884@if build-flex
2885maybe-configure-build-flex: configure-build-flex
c52c6897 2886configure-build-flex:
0aed8855 2887 @: $(MAKE); $(unstage)
c52c6897 2888 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2890 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2891 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2892 $(BUILD_EXPORTS) \
6a9cf61e
PB
2893 echo Configuring in $(BUILD_SUBDIR)/flex; \
2894 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2895 case $(srcdir) in \
b00612cc
PB
2896 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2897 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2898 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2899 esac; \
1b6c0831 2900 module_srcdir=flex; \
6a9cf61e 2901 rm -f no-such-file || : ; \
1b6c0831
L
2902 CONFIG_SITE=no-such-file $(SHELL) \
2903 $$s/$$module_srcdir/configure \
2904 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2905 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2906 --target=${target_alias} \
6a9cf61e
PB
2907 || exit 1
2908@endif build-flex
2909
a7254363
PB
2910
2911
d545f33b
PB
2912
2913
6a9cf61e
PB
2914.PHONY: all-build-flex maybe-all-build-flex
2915maybe-all-build-flex:
4f0ef2d8
CD
2916@if gcc-bootstrap
2917all-build-flex: stage_current
2918@endif gcc-bootstrap
6a9cf61e 2919@if build-flex
72b2455a 2920TARGET-build-flex=all
6a9cf61e
PB
2921maybe-all-build-flex: all-build-flex
2922all-build-flex: configure-build-flex
0aed8855 2923 @: $(MAKE); $(unstage)
6a9cf61e
PB
2924 @r=`${PWD_COMMAND}`; export r; \
2925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2926 $(BUILD_EXPORTS) \
72b2455a 2927 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2928 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2929 $(TARGET-build-flex))
6a9cf61e
PB
2930@endif build-flex
2931
a7254363
PB
2932
2933
d545f33b
PB
2934
2935
6a9cf61e
PB
2936.PHONY: configure-build-m4 maybe-configure-build-m4
2937maybe-configure-build-m4:
4f0ef2d8
CD
2938@if gcc-bootstrap
2939configure-build-m4: stage_current
2940@endif gcc-bootstrap
6a9cf61e
PB
2941@if build-m4
2942maybe-configure-build-m4: configure-build-m4
c52c6897 2943configure-build-m4:
0aed8855 2944 @: $(MAKE); $(unstage)
c52c6897 2945 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2947 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2948 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2949 $(BUILD_EXPORTS) \
6a9cf61e
PB
2950 echo Configuring in $(BUILD_SUBDIR)/m4; \
2951 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2952 case $(srcdir) in \
b00612cc
PB
2953 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2954 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2955 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2956 esac; \
1b6c0831 2957 module_srcdir=m4; \
6a9cf61e 2958 rm -f no-such-file || : ; \
1b6c0831
L
2959 CONFIG_SITE=no-such-file $(SHELL) \
2960 $$s/$$module_srcdir/configure \
2961 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2962 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2963 --target=${target_alias} \
6a9cf61e
PB
2964 || exit 1
2965@endif build-m4
2966
a7254363
PB
2967
2968
d545f33b
PB
2969
2970
6a9cf61e
PB
2971.PHONY: all-build-m4 maybe-all-build-m4
2972maybe-all-build-m4:
4f0ef2d8
CD
2973@if gcc-bootstrap
2974all-build-m4: stage_current
2975@endif gcc-bootstrap
6a9cf61e 2976@if build-m4
72b2455a 2977TARGET-build-m4=all
6a9cf61e
PB
2978maybe-all-build-m4: all-build-m4
2979all-build-m4: configure-build-m4
0aed8855 2980 @: $(MAKE); $(unstage)
6a9cf61e
PB
2981 @r=`${PWD_COMMAND}`; export r; \
2982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2983 $(BUILD_EXPORTS) \
72b2455a 2984 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2985 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2986 $(TARGET-build-m4))
6a9cf61e
PB
2987@endif build-m4
2988
a7254363
PB
2989
2990
d545f33b
PB
2991
2992
6a9cf61e
PB
2993.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2994maybe-configure-build-texinfo:
4f0ef2d8
CD
2995@if gcc-bootstrap
2996configure-build-texinfo: stage_current
2997@endif gcc-bootstrap
6a9cf61e
PB
2998@if build-texinfo
2999maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 3000configure-build-texinfo:
0aed8855 3001 @: $(MAKE); $(unstage)
c52c6897 3002 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3004 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3005 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3006 $(BUILD_EXPORTS) \
6a9cf61e
PB
3007 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3008 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3009 case $(srcdir) in \
b00612cc
PB
3010 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3011 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3012 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3013 esac; \
1b6c0831 3014 module_srcdir=texinfo; \
6a9cf61e 3015 rm -f no-such-file || : ; \
1b6c0831
L
3016 CONFIG_SITE=no-such-file $(SHELL) \
3017 $$s/$$module_srcdir/configure \
3018 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3019 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3020 --target=${target_alias} \
6a9cf61e
PB
3021 || exit 1
3022@endif build-texinfo
3023
a7254363
PB
3024
3025
d545f33b
PB
3026
3027
6a9cf61e
PB
3028.PHONY: all-build-texinfo maybe-all-build-texinfo
3029maybe-all-build-texinfo:
4f0ef2d8
CD
3030@if gcc-bootstrap
3031all-build-texinfo: stage_current
3032@endif gcc-bootstrap
6a9cf61e 3033@if build-texinfo
72b2455a 3034TARGET-build-texinfo=all
6a9cf61e
PB
3035maybe-all-build-texinfo: all-build-texinfo
3036all-build-texinfo: configure-build-texinfo
0aed8855 3037 @: $(MAKE); $(unstage)
6a9cf61e
PB
3038 @r=`${PWD_COMMAND}`; export r; \
3039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3040 $(BUILD_EXPORTS) \
72b2455a 3041 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3042 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3043 $(TARGET-build-texinfo))
6a9cf61e
PB
3044@endif build-texinfo
3045
a7254363
PB
3046
3047
d545f33b
PB
3048
3049
ee025550
PB
3050.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3051maybe-configure-build-fixincludes:
4f0ef2d8
CD
3052@if gcc-bootstrap
3053configure-build-fixincludes: stage_current
3054@endif gcc-bootstrap
ee025550
PB
3055@if build-fixincludes
3056maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3057configure-build-fixincludes:
0aed8855 3058 @: $(MAKE); $(unstage)
c52c6897 3059 @r=`${PWD_COMMAND}`; export r; \
ee025550 3060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3061 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3062 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3063 $(BUILD_EXPORTS) \
ee025550
PB
3064 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3065 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3066 case $(srcdir) in \
b00612cc
PB
3067 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3068 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3069 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3070 esac; \
1b6c0831 3071 module_srcdir=fixincludes; \
ee025550 3072 rm -f no-such-file || : ; \
1b6c0831
L
3073 CONFIG_SITE=no-such-file $(SHELL) \
3074 $$s/$$module_srcdir/configure \
3075 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3076 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3077 --target=${target_alias} \
ee025550
PB
3078 || exit 1
3079@endif build-fixincludes
3080
a7254363
PB
3081
3082
d545f33b
PB
3083
3084
ee025550
PB
3085.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3086maybe-all-build-fixincludes:
4f0ef2d8
CD
3087@if gcc-bootstrap
3088all-build-fixincludes: stage_current
3089@endif gcc-bootstrap
ee025550
PB
3090@if build-fixincludes
3091TARGET-build-fixincludes=all
3092maybe-all-build-fixincludes: all-build-fixincludes
3093all-build-fixincludes: configure-build-fixincludes
0aed8855 3094 @: $(MAKE); $(unstage)
ee025550
PB
3095 @r=`${PWD_COMMAND}`; export r; \
3096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3097 $(BUILD_EXPORTS) \
ee025550 3098 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3099 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3100 $(TARGET-build-fixincludes))
ee025550
PB
3101@endif build-fixincludes
3102
2a4cbe27 3103
a7254363 3104
d545f33b
PB
3105
3106
1b6c0831
L
3107.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3108maybe-configure-build-libcpp:
3109@if gcc-bootstrap
3110configure-build-libcpp: stage_current
3111@endif gcc-bootstrap
3112@if build-libcpp
3113maybe-configure-build-libcpp: configure-build-libcpp
3114configure-build-libcpp:
3115 @: $(MAKE); $(unstage)
3116 @r=`${PWD_COMMAND}`; export r; \
3117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3118 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3119 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3120 $(BUILD_EXPORTS) \
3121 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3122 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3123 case $(srcdir) in \
3124 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3125 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3126 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3127 esac; \
3128 module_srcdir=libcpp; \
3129 rm -f no-such-file || : ; \
3130 CONFIG_SITE=no-such-file $(SHELL) \
3131 $$s/$$module_srcdir/configure \
3132 --srcdir=$${topdir}/$$module_srcdir \
3133 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3134 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3135 || exit 1
3136@endif build-libcpp
3137
3138
3139
3140
3141
3142.PHONY: all-build-libcpp maybe-all-build-libcpp
3143maybe-all-build-libcpp:
3144@if gcc-bootstrap
3145all-build-libcpp: stage_current
3146@endif gcc-bootstrap
3147@if build-libcpp
3148TARGET-build-libcpp=all
3149maybe-all-build-libcpp: all-build-libcpp
3150all-build-libcpp: configure-build-libcpp
3151 @: $(MAKE); $(unstage)
3152 @r=`${PWD_COMMAND}`; export r; \
3153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3154 $(BUILD_EXPORTS) \
3155 (cd $(BUILD_SUBDIR)/libcpp && \
3156 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3157 $(TARGET-build-libcpp))
3158@endif build-libcpp
3159
3160
3161
3162
3163
4fa63067
NN
3164# --------------------------------------
3165# Modules which run on the host machine
3166# --------------------------------------
2a4cbe27 3167
a7254363 3168
a90ef4bf
JM
3169.PHONY: configure-bfd maybe-configure-bfd
3170maybe-configure-bfd:
4f0ef2d8 3171@if gcc-bootstrap
a90ef4bf 3172configure-bfd: stage_current
4f0ef2d8 3173@endif gcc-bootstrap
a90ef4bf
JM
3174@if bfd
3175maybe-configure-bfd: configure-bfd
3176configure-bfd:
c52c6897 3177 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3179 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3181 $(HOST_EXPORTS) \
a90ef4bf
JM
3182 echo Configuring in $(HOST_SUBDIR)/bfd; \
3183 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3184 case $(srcdir) in \
b00612cc 3185 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3186 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3187 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3188 esac; \
1b6c0831
L
3189 module_srcdir=bfd; \
3190 $(SHELL) \
3191 $$s/$$module_srcdir/configure \
3192 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3193 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3194 --target=${target_alias} \
2a4cbe27 3195 || exit 1
a90ef4bf 3196@endif bfd
a7254363 3197
d545f33b
PB
3198
3199
a90ef4bf
JM
3200.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3201maybe-configure-stage1-bfd:
3202@if bfd-bootstrap
3203maybe-configure-stage1-bfd: configure-stage1-bfd
3204configure-stage1-bfd:
3205 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3206 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3207 @r=`${PWD_COMMAND}`; export r; \
3208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3209 TFLAGS="$(STAGE1_TFLAGS)"; \
3210 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3211 $(HOST_EXPORTS) \
3212 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3213 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3214 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3215 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3216 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3217 cd $(HOST_SUBDIR)/bfd || exit 1; \
3218 case $(srcdir) in \
3219 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3220 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3221 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3222 esac; \
1b6c0831
L
3223 module_srcdir=bfd; \
3224 $(SHELL) $$s/$$module_srcdir/configure \
3225 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3226 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3227 --target=${target_alias} \
3228 \
a90ef4bf
JM
3229 $(STAGE1_CONFIGURE_FLAGS)
3230@endif bfd-bootstrap
2a4cbe27 3231
a90ef4bf
JM
3232.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3233maybe-configure-stage2-bfd:
3234@if bfd-bootstrap
3235maybe-configure-stage2-bfd: configure-stage2-bfd
3236configure-stage2-bfd:
3237 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3238 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3239 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3241 TFLAGS="$(STAGE2_TFLAGS)"; \
3242 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3243 $(HOST_EXPORTS) \
a90ef4bf
JM
3244 $(POSTSTAGE1_HOST_EXPORTS) \
3245 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3246 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3247 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3248 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3249 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3250 cd $(HOST_SUBDIR)/bfd || exit 1; \
3251 case $(srcdir) in \
3252 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3253 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3254 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3255 esac; \
1b6c0831
L
3256 module_srcdir=bfd; \
3257 $(SHELL) $$s/$$module_srcdir/configure \
3258 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3259 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3260 --target=${target_alias} \
22121df0 3261 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3262 $(STAGE2_CONFIGURE_FLAGS)
3263@endif bfd-bootstrap
2a4cbe27 3264
a90ef4bf
JM
3265.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3266maybe-configure-stage3-bfd:
3267@if bfd-bootstrap
3268maybe-configure-stage3-bfd: configure-stage3-bfd
3269configure-stage3-bfd:
3270 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3271 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3272 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3274 TFLAGS="$(STAGE3_TFLAGS)"; \
3275 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3276 $(HOST_EXPORTS) \
a90ef4bf
JM
3277 $(POSTSTAGE1_HOST_EXPORTS) \
3278 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3279 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3280 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3281 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3283 cd $(HOST_SUBDIR)/bfd || exit 1; \
3284 case $(srcdir) in \
3285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3286 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3288 esac; \
1b6c0831
L
3289 module_srcdir=bfd; \
3290 $(SHELL) $$s/$$module_srcdir/configure \
3291 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3292 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3293 --target=${target_alias} \
22121df0 3294 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3295 $(STAGE3_CONFIGURE_FLAGS)
3296@endif bfd-bootstrap
9b980aa1 3297
a90ef4bf
JM
3298.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3299maybe-configure-stage4-bfd:
3300@if bfd-bootstrap
3301maybe-configure-stage4-bfd: configure-stage4-bfd
3302configure-stage4-bfd:
3303 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3304 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3305 @r=`${PWD_COMMAND}`; export r; \
3306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3307 TFLAGS="$(STAGE4_TFLAGS)"; \
3308 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3309 $(HOST_EXPORTS) \
a90ef4bf
JM
3310 $(POSTSTAGE1_HOST_EXPORTS) \
3311 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3312 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3313 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3314 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3315 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3316 cd $(HOST_SUBDIR)/bfd || exit 1; \
3317 case $(srcdir) in \
3318 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3319 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3320 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3321 esac; \
1b6c0831
L
3322 module_srcdir=bfd; \
3323 $(SHELL) $$s/$$module_srcdir/configure \
3324 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3325 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3326 --target=${target_alias} \
22121df0 3327 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3328 $(STAGE4_CONFIGURE_FLAGS)
3329@endif bfd-bootstrap
4fa63067 3330
a90ef4bf
JM
3331.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3332maybe-configure-stageprofile-bfd:
3333@if bfd-bootstrap
3334maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3335configure-stageprofile-bfd:
3336 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3337 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3338 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3340 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3341 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3342 $(HOST_EXPORTS) \
a90ef4bf
JM
3343 $(POSTSTAGE1_HOST_EXPORTS) \
3344 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3345 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3346 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3347 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3348 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3349 cd $(HOST_SUBDIR)/bfd || exit 1; \
3350 case $(srcdir) in \
3351 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3352 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3353 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3354 esac; \
1b6c0831
L
3355 module_srcdir=bfd; \
3356 $(SHELL) $$s/$$module_srcdir/configure \
3357 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3358 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3359 --target=${target_alias} \
22121df0 3360 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3361 $(STAGEprofile_CONFIGURE_FLAGS)
3362@endif bfd-bootstrap
2a4cbe27 3363
a90ef4bf
JM
3364.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3365maybe-configure-stagefeedback-bfd:
3366@if bfd-bootstrap
3367maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3368configure-stagefeedback-bfd:
3369 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3370 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3371 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3373 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3374 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3375 $(HOST_EXPORTS) \
a90ef4bf
JM
3376 $(POSTSTAGE1_HOST_EXPORTS) \
3377 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3378 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3379 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3380 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3381 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3382 cd $(HOST_SUBDIR)/bfd || exit 1; \
3383 case $(srcdir) in \
3384 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3385 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3386 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3387 esac; \
1b6c0831
L
3388 module_srcdir=bfd; \
3389 $(SHELL) $$s/$$module_srcdir/configure \
3390 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3391 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3392 --target=${target_alias} \
22121df0 3393 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3394 $(STAGEfeedback_CONFIGURE_FLAGS)
3395@endif bfd-bootstrap
2a4cbe27 3396
56a8fe78 3397
56a8fe78 3398
56a8fe78 3399
6d389afc 3400
a90ef4bf
JM
3401.PHONY: all-bfd maybe-all-bfd
3402maybe-all-bfd:
3403@if gcc-bootstrap
3404all-bfd: stage_current
3405@endif gcc-bootstrap
3406@if bfd
3407TARGET-bfd=all
3408maybe-all-bfd: all-bfd
3409all-bfd: configure-bfd
3410 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3412 $(HOST_EXPORTS) \
3413 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3414 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3415 $(TARGET-bfd))
3416@endif bfd
6d389afc 3417
6d389afc 3418
2a4cbe27 3419
a90ef4bf
JM
3420.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3421.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3422maybe-all-stage1-bfd:
3423maybe-clean-stage1-bfd:
3424@if bfd-bootstrap
3425maybe-all-stage1-bfd: all-stage1-bfd
3426all-stage1: all-stage1-bfd
3427TARGET-stage1-bfd = $(TARGET-bfd)
3428all-stage1-bfd: configure-stage1-bfd
3429 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3430 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3432 TFLAGS="$(STAGE1_TFLAGS)"; \
3433 $(HOST_EXPORTS) \
3434 cd $(HOST_SUBDIR)/bfd && \
3435 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3436 CFLAGS="$(STAGE1_CFLAGS)" \
3437 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3438 LIBCFLAGS="$(LIBCFLAGS)" \
3439 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3440 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3441 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3442 $(EXTRA_HOST_FLAGS) \
3443 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3444 TFLAGS="$(STAGE1_TFLAGS)" \
3445 $(TARGET-stage1-bfd)
2a4cbe27 3446
a90ef4bf
JM
3447maybe-clean-stage1-bfd: clean-stage1-bfd
3448clean-stage1: clean-stage1-bfd
3449clean-stage1-bfd:
3450 @if [ $(current_stage) = stage1 ]; then \
3451 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3452 else \
3453 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3454 $(MAKE) stage1-start; \
3455 fi; \
3456 cd $(HOST_SUBDIR)/bfd && \
3457 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3458 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3459@endif bfd-bootstrap
2a4cbe27 3460
2a4cbe27 3461
a90ef4bf
JM
3462.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3463.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3464maybe-all-stage2-bfd:
3465maybe-clean-stage2-bfd:
3466@if bfd-bootstrap
3467maybe-all-stage2-bfd: all-stage2-bfd
3468all-stage2: all-stage2-bfd
3469TARGET-stage2-bfd = $(TARGET-bfd)
3470all-stage2-bfd: configure-stage2-bfd
3471 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3472 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3474 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3475 $(HOST_EXPORTS) \
a90ef4bf
JM
3476 $(POSTSTAGE1_HOST_EXPORTS) \
3477 cd $(HOST_SUBDIR)/bfd && \
3478 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3479 CFLAGS="$(STAGE2_CFLAGS)" \
3480 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3481 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3482 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3483 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3484 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3485 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3486 TFLAGS="$(STAGE2_TFLAGS)" \
3487 $(TARGET-stage2-bfd)
2a4cbe27 3488
a90ef4bf
JM
3489maybe-clean-stage2-bfd: clean-stage2-bfd
3490clean-stage2: clean-stage2-bfd
3491clean-stage2-bfd:
3492 @if [ $(current_stage) = stage2 ]; then \
3493 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3494 else \
3495 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3496 $(MAKE) stage2-start; \
3497 fi; \
3498 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3499 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3500@endif bfd-bootstrap
2a4cbe27 3501
a3ca38d2 3502
a90ef4bf
JM
3503.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3504.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3505maybe-all-stage3-bfd:
3506maybe-clean-stage3-bfd:
3507@if bfd-bootstrap
3508maybe-all-stage3-bfd: all-stage3-bfd
3509all-stage3: all-stage3-bfd
3510TARGET-stage3-bfd = $(TARGET-bfd)
3511all-stage3-bfd: configure-stage3-bfd
3512 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3513 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3515 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3516 $(HOST_EXPORTS) \
a90ef4bf
JM
3517 $(POSTSTAGE1_HOST_EXPORTS) \
3518 cd $(HOST_SUBDIR)/bfd && \
3519 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3520 CFLAGS="$(STAGE3_CFLAGS)" \
3521 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3522 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3523 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3524 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3525 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3526 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3527 TFLAGS="$(STAGE3_TFLAGS)" \
3528 $(TARGET-stage3-bfd)
a3ca38d2 3529
a90ef4bf
JM
3530maybe-clean-stage3-bfd: clean-stage3-bfd
3531clean-stage3: clean-stage3-bfd
3532clean-stage3-bfd:
3533 @if [ $(current_stage) = stage3 ]; then \
3534 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3535 else \
3536 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3537 $(MAKE) stage3-start; \
3538 fi; \
3539 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3540 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3541@endif bfd-bootstrap
a3ca38d2 3542
108a6f8e 3543
a90ef4bf
JM
3544.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3545.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3546maybe-all-stage4-bfd:
3547maybe-clean-stage4-bfd:
3548@if bfd-bootstrap
3549maybe-all-stage4-bfd: all-stage4-bfd
3550all-stage4: all-stage4-bfd
3551TARGET-stage4-bfd = $(TARGET-bfd)
3552all-stage4-bfd: configure-stage4-bfd
3553 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3554 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3556 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3557 $(HOST_EXPORTS) \
a90ef4bf
JM
3558 $(POSTSTAGE1_HOST_EXPORTS) \
3559 cd $(HOST_SUBDIR)/bfd && \
3560 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3561 CFLAGS="$(STAGE4_CFLAGS)" \
3562 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3563 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3564 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3565 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3566 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3567 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3568 TFLAGS="$(STAGE4_TFLAGS)" \
3569 $(TARGET-stage4-bfd)
108a6f8e 3570
a90ef4bf
JM
3571maybe-clean-stage4-bfd: clean-stage4-bfd
3572clean-stage4: clean-stage4-bfd
3573clean-stage4-bfd:
3574 @if [ $(current_stage) = stage4 ]; then \
3575 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3576 else \
3577 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3578 $(MAKE) stage4-start; \
3579 fi; \
3580 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3581 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3582@endif bfd-bootstrap
108a6f8e 3583
2a4cbe27 3584
a90ef4bf
JM
3585.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3586.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3587maybe-all-stageprofile-bfd:
3588maybe-clean-stageprofile-bfd:
3589@if bfd-bootstrap
3590maybe-all-stageprofile-bfd: all-stageprofile-bfd
3591all-stageprofile: all-stageprofile-bfd
3592TARGET-stageprofile-bfd = $(TARGET-bfd)
3593all-stageprofile-bfd: configure-stageprofile-bfd
3594 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3595 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3597 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3598 $(HOST_EXPORTS) \
a90ef4bf
JM
3599 $(POSTSTAGE1_HOST_EXPORTS) \
3600 cd $(HOST_SUBDIR)/bfd && \
3601 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3602 CFLAGS="$(STAGEprofile_CFLAGS)" \
3603 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3604 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3605 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3606 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3607 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3608 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3609 TFLAGS="$(STAGEprofile_TFLAGS)" \
3610 $(TARGET-stageprofile-bfd)
2a4cbe27 3611
a90ef4bf
JM
3612maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3613clean-stageprofile: clean-stageprofile-bfd
3614clean-stageprofile-bfd:
3615 @if [ $(current_stage) = stageprofile ]; then \
3616 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3617 else \
3618 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3619 $(MAKE) stageprofile-start; \
3620 fi; \
3621 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3622 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3623@endif bfd-bootstrap
2a4cbe27 3624
a7254363 3625
a90ef4bf
JM
3626.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3627.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3628maybe-all-stagefeedback-bfd:
3629maybe-clean-stagefeedback-bfd:
3630@if bfd-bootstrap
3631maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3632all-stagefeedback: all-stagefeedback-bfd
3633TARGET-stagefeedback-bfd = $(TARGET-bfd)
3634all-stagefeedback-bfd: configure-stagefeedback-bfd
3635 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3636 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3638 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3639 $(HOST_EXPORTS) \
3640 $(POSTSTAGE1_HOST_EXPORTS) \
3641 cd $(HOST_SUBDIR)/bfd && \
3642 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3643 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3644 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3645 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3646 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3647 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3648 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3649 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3650 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3651 $(TARGET-stagefeedback-bfd)
d545f33b 3652
a90ef4bf
JM
3653maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3654clean-stagefeedback: clean-stagefeedback-bfd
3655clean-stagefeedback-bfd:
3656 @if [ $(current_stage) = stagefeedback ]; then \
3657 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3658 else \
3659 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3660 $(MAKE) stagefeedback-start; \
3661 fi; \
3662 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3663 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3664@endif bfd-bootstrap
d545f33b 3665
2a4cbe27 3666
a7254363 3667
d545f33b
PB
3668
3669
a90ef4bf
JM
3670.PHONY: check-bfd maybe-check-bfd
3671maybe-check-bfd:
3672@if bfd
3673maybe-check-bfd: check-bfd
2a4cbe27 3674
a90ef4bf 3675check-bfd:
0aed8855 3676 @: $(MAKE); $(unstage)
4fa63067 3677 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3679 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3680 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3681 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3682
a90ef4bf 3683@endif bfd
2a4cbe27 3684
a90ef4bf
JM
3685.PHONY: install-bfd maybe-install-bfd
3686maybe-install-bfd:
3687@if bfd
3688maybe-install-bfd: install-bfd
2a4cbe27 3689
a90ef4bf 3690install-bfd: installdirs
0aed8855 3691 @: $(MAKE); $(unstage)
4fa63067 3692 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3694 $(HOST_EXPORTS) \
a90ef4bf 3695 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3696 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3697
a90ef4bf 3698@endif bfd
2a4cbe27 3699
a90ef4bf
JM
3700.PHONY: install-strip-bfd maybe-install-strip-bfd
3701maybe-install-strip-bfd:
3702@if bfd
3703maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3704
a90ef4bf 3705install-strip-bfd: installdirs
9b980aa1
RW
3706 @: $(MAKE); $(unstage)
3707 @r=`${PWD_COMMAND}`; export r; \
3708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3709 $(HOST_EXPORTS) \
a90ef4bf 3710 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3711 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3712
a90ef4bf 3713@endif bfd
9b980aa1 3714
56a8fe78 3715# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3716
a90ef4bf
JM
3717.PHONY: maybe-info-bfd info-bfd
3718maybe-info-bfd:
3719@if bfd
3720maybe-info-bfd: info-bfd
4fa63067 3721
a90ef4bf
JM
3722info-bfd: \
3723 configure-bfd
3724 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3725 r=`${PWD_COMMAND}`; export r; \
3726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3727 $(HOST_EXPORTS) \
b813574b 3728 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3730 done; \
22121df0 3731 echo "Doing info in bfd"; \
a90ef4bf 3732 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3735 "RANLIB=$${RANLIB}" \
0c24b341 3736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3737 info) \
2a4cbe27
NN
3738 || exit 1
3739
a90ef4bf 3740@endif bfd
2a4cbe27 3741
a90ef4bf
JM
3742.PHONY: maybe-dvi-bfd dvi-bfd
3743maybe-dvi-bfd:
3744@if bfd
3745maybe-dvi-bfd: dvi-bfd
2a4cbe27 3746
a90ef4bf
JM
3747dvi-bfd: \
3748 configure-bfd
3749 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3750 r=`${PWD_COMMAND}`; export r; \
3751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3752 $(HOST_EXPORTS) \
b813574b 3753 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3755 done; \
22121df0 3756 echo "Doing dvi in bfd"; \
a90ef4bf 3757 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3760 "RANLIB=$${RANLIB}" \
0c24b341 3761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3762 dvi) \
2a4cbe27
NN
3763 || exit 1
3764
a90ef4bf 3765@endif bfd
2a4cbe27 3766
a90ef4bf
JM
3767.PHONY: maybe-pdf-bfd pdf-bfd
3768maybe-pdf-bfd:
3769@if bfd
3770maybe-pdf-bfd: pdf-bfd
56a8fe78 3771
a90ef4bf
JM
3772pdf-bfd: \
3773 configure-bfd
3774 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3775 r=`${PWD_COMMAND}`; export r; \
3776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3777 $(HOST_EXPORTS) \
3778 for flag in $(EXTRA_HOST_FLAGS) ; do \
3779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3780 done; \
22121df0 3781 echo "Doing pdf in bfd"; \
a90ef4bf 3782 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
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}" \
56a8fe78
DD
3787 pdf) \
3788 || exit 1
3789
a90ef4bf 3790@endif bfd
56a8fe78 3791
a90ef4bf
JM
3792.PHONY: maybe-html-bfd html-bfd
3793maybe-html-bfd:
3794@if bfd
3795maybe-html-bfd: html-bfd
6d389afc 3796
a90ef4bf
JM
3797html-bfd: \
3798 configure-bfd
3799 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3800 r=`${PWD_COMMAND}`; export r; \
3801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3802 $(HOST_EXPORTS) \
3803 for flag in $(EXTRA_HOST_FLAGS) ; do \
3804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3805 done; \
22121df0 3806 echo "Doing html in bfd"; \
a90ef4bf 3807 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3810 "RANLIB=$${RANLIB}" \
0c24b341 3811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3812 html) \
3813 || exit 1
3814
a90ef4bf 3815@endif bfd
6d389afc 3816
a90ef4bf
JM
3817.PHONY: maybe-TAGS-bfd TAGS-bfd
3818maybe-TAGS-bfd:
3819@if bfd
3820maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3821
a90ef4bf
JM
3822TAGS-bfd: \
3823 configure-bfd
3824 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3825 r=`${PWD_COMMAND}`; export r; \
3826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3827 $(HOST_EXPORTS) \
b813574b 3828 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3830 done; \
22121df0 3831 echo "Doing TAGS in bfd"; \
a90ef4bf 3832 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3835 "RANLIB=$${RANLIB}" \
0c24b341 3836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3837 TAGS) \
2a4cbe27
NN
3838 || exit 1
3839
a90ef4bf 3840@endif bfd
2a4cbe27 3841
a90ef4bf
JM
3842.PHONY: maybe-install-info-bfd install-info-bfd
3843maybe-install-info-bfd:
3844@if bfd
3845maybe-install-info-bfd: install-info-bfd
2a4cbe27 3846
a90ef4bf
JM
3847install-info-bfd: \
3848 configure-bfd \
3849 info-bfd
3850 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3851 r=`${PWD_COMMAND}`; export r; \
3852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3853 $(HOST_EXPORTS) \
b813574b 3854 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3856 done; \
22121df0 3857 echo "Doing install-info in bfd"; \
a90ef4bf 3858 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3861 "RANLIB=$${RANLIB}" \
0c24b341 3862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3863 install-info) \
2a4cbe27
NN
3864 || exit 1
3865
a90ef4bf 3866@endif bfd
2a4cbe27 3867
a90ef4bf
JM
3868.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3869maybe-install-pdf-bfd:
3870@if bfd
3871maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3872
a90ef4bf
JM
3873install-pdf-bfd: \
3874 configure-bfd \
3875 pdf-bfd
3876 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3877 r=`${PWD_COMMAND}`; export r; \
3878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3879 $(HOST_EXPORTS) \
3880 for flag in $(EXTRA_HOST_FLAGS) ; do \
3881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3882 done; \
22121df0 3883 echo "Doing install-pdf in bfd"; \
a90ef4bf 3884 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3887 "RANLIB=$${RANLIB}" \
0c24b341 3888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3889 install-pdf) \
3890 || exit 1
3891
a90ef4bf 3892@endif bfd
a3ca38d2 3893
a90ef4bf
JM
3894.PHONY: maybe-install-html-bfd install-html-bfd
3895maybe-install-html-bfd:
3896@if bfd
3897maybe-install-html-bfd: install-html-bfd
108a6f8e 3898
a90ef4bf
JM
3899install-html-bfd: \
3900 configure-bfd \
3901 html-bfd
3902 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3903 r=`${PWD_COMMAND}`; export r; \
3904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3905 $(HOST_EXPORTS) \
3906 for flag in $(EXTRA_HOST_FLAGS) ; do \
3907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3908 done; \
22121df0 3909 echo "Doing install-html in bfd"; \
a90ef4bf 3910 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3913 "RANLIB=$${RANLIB}" \
0c24b341 3914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3915 install-html) \
3916 || exit 1
3917
a90ef4bf 3918@endif bfd
108a6f8e 3919
a90ef4bf
JM
3920.PHONY: maybe-installcheck-bfd installcheck-bfd
3921maybe-installcheck-bfd:
3922@if bfd
3923maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3924
a90ef4bf
JM
3925installcheck-bfd: \
3926 configure-bfd
3927 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3928 r=`${PWD_COMMAND}`; export r; \
3929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3930 $(HOST_EXPORTS) \
b813574b 3931 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3933 done; \
22121df0 3934 echo "Doing installcheck in bfd"; \
a90ef4bf 3935 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3938 "RANLIB=$${RANLIB}" \
0c24b341 3939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3940 installcheck) \
2a4cbe27
NN
3941 || exit 1
3942
a90ef4bf 3943@endif bfd
2a4cbe27 3944
a90ef4bf
JM
3945.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3946maybe-mostlyclean-bfd:
3947@if bfd
3948maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3949
a90ef4bf
JM
3950mostlyclean-bfd:
3951 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3952 r=`${PWD_COMMAND}`; export r; \
3953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3954 $(HOST_EXPORTS) \
b813574b 3955 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3957 done; \
22121df0 3958 echo "Doing mostlyclean in bfd"; \
a90ef4bf 3959 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3962 "RANLIB=$${RANLIB}" \
0c24b341 3963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3964 mostlyclean) \
2a4cbe27
NN
3965 || exit 1
3966
a90ef4bf 3967@endif bfd
2a4cbe27 3968
a90ef4bf
JM
3969.PHONY: maybe-clean-bfd clean-bfd
3970maybe-clean-bfd:
3971@if bfd
3972maybe-clean-bfd: clean-bfd
2a4cbe27 3973
a90ef4bf
JM
3974clean-bfd:
3975 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3976 r=`${PWD_COMMAND}`; export r; \
3977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3978 $(HOST_EXPORTS) \
b813574b 3979 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3981 done; \
22121df0 3982 echo "Doing clean in bfd"; \
a90ef4bf 3983 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3986 "RANLIB=$${RANLIB}" \
0c24b341 3987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3988 clean) \
2a4cbe27
NN
3989 || exit 1
3990
a90ef4bf 3991@endif bfd
2a4cbe27 3992
a90ef4bf
JM
3993.PHONY: maybe-distclean-bfd distclean-bfd
3994maybe-distclean-bfd:
3995@if bfd
3996maybe-distclean-bfd: distclean-bfd
2a4cbe27 3997
a90ef4bf
JM
3998distclean-bfd:
3999 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4000 r=`${PWD_COMMAND}`; export r; \
4001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4002 $(HOST_EXPORTS) \
b813574b 4003 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4005 done; \
22121df0 4006 echo "Doing distclean in bfd"; \
a90ef4bf 4007 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4010 "RANLIB=$${RANLIB}" \
0c24b341 4011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4012 distclean) \
2a4cbe27
NN
4013 || exit 1
4014
a90ef4bf 4015@endif bfd
2a4cbe27 4016
a90ef4bf
JM
4017.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4018maybe-maintainer-clean-bfd:
4019@if bfd
4020maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4021
a90ef4bf
JM
4022maintainer-clean-bfd:
4023 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4024 r=`${PWD_COMMAND}`; export r; \
4025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4026 $(HOST_EXPORTS) \
b813574b 4027 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4029 done; \
22121df0 4030 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4031 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4034 "RANLIB=$${RANLIB}" \
0c24b341 4035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4036 maintainer-clean) \
2a4cbe27
NN
4037 || exit 1
4038
a90ef4bf 4039@endif bfd
2a4cbe27 4040
2a4cbe27 4041
a7254363 4042
a90ef4bf
JM
4043.PHONY: configure-opcodes maybe-configure-opcodes
4044maybe-configure-opcodes:
4f0ef2d8 4045@if gcc-bootstrap
a90ef4bf 4046configure-opcodes: stage_current
4f0ef2d8 4047@endif gcc-bootstrap
a90ef4bf
JM
4048@if opcodes
4049maybe-configure-opcodes: configure-opcodes
4050configure-opcodes:
c52c6897 4051 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4053 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4054 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4055 $(HOST_EXPORTS) \
a90ef4bf
JM
4056 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4057 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4058 case $(srcdir) in \
b00612cc 4059 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4060 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4061 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4062 esac; \
1b6c0831
L
4063 module_srcdir=opcodes; \
4064 $(SHELL) \
4065 $$s/$$module_srcdir/configure \
4066 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4067 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4068 --target=${target_alias} \
2a4cbe27 4069 || exit 1
a90ef4bf 4070@endif opcodes
a7254363 4071
d545f33b
PB
4072
4073
a90ef4bf
JM
4074.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4075maybe-configure-stage1-opcodes:
4076@if opcodes-bootstrap
4077maybe-configure-stage1-opcodes: configure-stage1-opcodes
4078configure-stage1-opcodes:
4079 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4080 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4081 @r=`${PWD_COMMAND}`; export r; \
4082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4083 TFLAGS="$(STAGE1_TFLAGS)"; \
4084 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4085 $(HOST_EXPORTS) \
4086 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4087 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4088 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4089 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4090 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4091 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4092 case $(srcdir) in \
4093 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4094 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4095 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4096 esac; \
1b6c0831
L
4097 module_srcdir=opcodes; \
4098 $(SHELL) $$s/$$module_srcdir/configure \
4099 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4100 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4101 --target=${target_alias} \
4102 \
a90ef4bf
JM
4103 $(STAGE1_CONFIGURE_FLAGS)
4104@endif opcodes-bootstrap
2a4cbe27 4105
a90ef4bf
JM
4106.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4107maybe-configure-stage2-opcodes:
4108@if opcodes-bootstrap
4109maybe-configure-stage2-opcodes: configure-stage2-opcodes
4110configure-stage2-opcodes:
4111 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4112 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4113 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4115 TFLAGS="$(STAGE2_TFLAGS)"; \
4116 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4117 $(HOST_EXPORTS) \
a90ef4bf
JM
4118 $(POSTSTAGE1_HOST_EXPORTS) \
4119 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4120 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4121 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4122 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4123 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4124 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4125 case $(srcdir) in \
4126 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4127 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4128 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4129 esac; \
1b6c0831
L
4130 module_srcdir=opcodes; \
4131 $(SHELL) $$s/$$module_srcdir/configure \
4132 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4133 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4134 --target=${target_alias} \
22121df0 4135 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4136 $(STAGE2_CONFIGURE_FLAGS)
4137@endif opcodes-bootstrap
2a4cbe27 4138
a90ef4bf
JM
4139.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4140maybe-configure-stage3-opcodes:
4141@if opcodes-bootstrap
4142maybe-configure-stage3-opcodes: configure-stage3-opcodes
4143configure-stage3-opcodes:
4144 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4145 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4146 @r=`${PWD_COMMAND}`; export r; \
4147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4148 TFLAGS="$(STAGE3_TFLAGS)"; \
4149 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4150 $(HOST_EXPORTS) \
a90ef4bf
JM
4151 $(POSTSTAGE1_HOST_EXPORTS) \
4152 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4153 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4154 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4155 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4156 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4157 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4158 case $(srcdir) in \
4159 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4160 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4161 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4162 esac; \
1b6c0831
L
4163 module_srcdir=opcodes; \
4164 $(SHELL) $$s/$$module_srcdir/configure \
4165 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4166 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4167 --target=${target_alias} \
22121df0 4168 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4169 $(STAGE3_CONFIGURE_FLAGS)
4170@endif opcodes-bootstrap
9b980aa1 4171
a90ef4bf
JM
4172.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4173maybe-configure-stage4-opcodes:
4174@if opcodes-bootstrap
4175maybe-configure-stage4-opcodes: configure-stage4-opcodes
4176configure-stage4-opcodes:
4177 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4178 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4179 @r=`${PWD_COMMAND}`; export r; \
4180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4181 TFLAGS="$(STAGE4_TFLAGS)"; \
4182 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4183 $(HOST_EXPORTS) \
a90ef4bf
JM
4184 $(POSTSTAGE1_HOST_EXPORTS) \
4185 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4186 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4187 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4188 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4189 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4190 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4191 case $(srcdir) in \
4192 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4193 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4194 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4195 esac; \
1b6c0831
L
4196 module_srcdir=opcodes; \
4197 $(SHELL) $$s/$$module_srcdir/configure \
4198 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4199 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4200 --target=${target_alias} \
22121df0 4201 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4202 $(STAGE4_CONFIGURE_FLAGS)
4203@endif opcodes-bootstrap
4fa63067 4204
a90ef4bf
JM
4205.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4206maybe-configure-stageprofile-opcodes:
4207@if opcodes-bootstrap
4208maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4209configure-stageprofile-opcodes:
4210 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4211 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4212 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4214 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4215 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4216 $(HOST_EXPORTS) \
a90ef4bf
JM
4217 $(POSTSTAGE1_HOST_EXPORTS) \
4218 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4219 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4220 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4221 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4222 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4223 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4224 case $(srcdir) in \
4225 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4226 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4227 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4228 esac; \
1b6c0831
L
4229 module_srcdir=opcodes; \
4230 $(SHELL) $$s/$$module_srcdir/configure \
4231 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4232 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4233 --target=${target_alias} \
22121df0 4234 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4235 $(STAGEprofile_CONFIGURE_FLAGS)
4236@endif opcodes-bootstrap
4237
4238.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4239maybe-configure-stagefeedback-opcodes:
4240@if opcodes-bootstrap
4241maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4242configure-stagefeedback-opcodes:
4243 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4244 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4245 @r=`${PWD_COMMAND}`; export r; \
4246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4247 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4248 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4249 $(HOST_EXPORTS) \
4250 $(POSTSTAGE1_HOST_EXPORTS) \
4251 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4252 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4253 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4254 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4255 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4256 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4257 case $(srcdir) in \
4258 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4259 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4260 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4261 esac; \
1b6c0831
L
4262 module_srcdir=opcodes; \
4263 $(SHELL) $$s/$$module_srcdir/configure \
4264 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4265 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4266 --target=${target_alias} \
22121df0 4267 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4268 $(STAGEfeedback_CONFIGURE_FLAGS)
4269@endif opcodes-bootstrap
4270
4271
4272
4273
4274
4275.PHONY: all-opcodes maybe-all-opcodes
4276maybe-all-opcodes:
4277@if gcc-bootstrap
4278all-opcodes: stage_current
4279@endif gcc-bootstrap
4280@if opcodes
4281TARGET-opcodes=all
4282maybe-all-opcodes: all-opcodes
4283all-opcodes: configure-opcodes
4284 @r=`${PWD_COMMAND}`; export r; \
4285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4286 $(HOST_EXPORTS) \
4287 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4288 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4289 $(TARGET-opcodes))
4290@endif opcodes
4291
4292
4293
4294.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4295.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4296maybe-all-stage1-opcodes:
4297maybe-clean-stage1-opcodes:
4298@if opcodes-bootstrap
4299maybe-all-stage1-opcodes: all-stage1-opcodes
4300all-stage1: all-stage1-opcodes
4301TARGET-stage1-opcodes = $(TARGET-opcodes)
4302all-stage1-opcodes: configure-stage1-opcodes
4303 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4304 @r=`${PWD_COMMAND}`; export r; \
4305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4306 TFLAGS="$(STAGE1_TFLAGS)"; \
4307 $(HOST_EXPORTS) \
4308 cd $(HOST_SUBDIR)/opcodes && \
4309 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4310 CFLAGS="$(STAGE1_CFLAGS)" \
4311 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4312 LIBCFLAGS="$(LIBCFLAGS)" \
4313 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4314 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4315 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4316 $(EXTRA_HOST_FLAGS) \
4317 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4318 TFLAGS="$(STAGE1_TFLAGS)" \
4319 $(TARGET-stage1-opcodes)
4320
4321maybe-clean-stage1-opcodes: clean-stage1-opcodes
4322clean-stage1: clean-stage1-opcodes
4323clean-stage1-opcodes:
4324 @if [ $(current_stage) = stage1 ]; then \
4325 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4326 else \
4327 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4328 $(MAKE) stage1-start; \
4329 fi; \
4330 cd $(HOST_SUBDIR)/opcodes && \
4331 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4332 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4333@endif opcodes-bootstrap
4334
4335
4336.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4337.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4338maybe-all-stage2-opcodes:
4339maybe-clean-stage2-opcodes:
4340@if opcodes-bootstrap
4341maybe-all-stage2-opcodes: all-stage2-opcodes
4342all-stage2: all-stage2-opcodes
4343TARGET-stage2-opcodes = $(TARGET-opcodes)
4344all-stage2-opcodes: configure-stage2-opcodes
4345 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4346 @r=`${PWD_COMMAND}`; export r; \
4347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4348 TFLAGS="$(STAGE2_TFLAGS)"; \
4349 $(HOST_EXPORTS) \
4350 $(POSTSTAGE1_HOST_EXPORTS) \
4351 cd $(HOST_SUBDIR)/opcodes && \
4352 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4353 CFLAGS="$(STAGE2_CFLAGS)" \
4354 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4355 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4356 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4357 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4358 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4359 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4360 TFLAGS="$(STAGE2_TFLAGS)" \
4361 $(TARGET-stage2-opcodes)
4362
4363maybe-clean-stage2-opcodes: clean-stage2-opcodes
4364clean-stage2: clean-stage2-opcodes
4365clean-stage2-opcodes:
4366 @if [ $(current_stage) = stage2 ]; then \
4367 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4368 else \
4369 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4370 $(MAKE) stage2-start; \
4371 fi; \
4372 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4373 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4374@endif opcodes-bootstrap
4375
4376
4377.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4378.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4379maybe-all-stage3-opcodes:
4380maybe-clean-stage3-opcodes:
4381@if opcodes-bootstrap
4382maybe-all-stage3-opcodes: all-stage3-opcodes
4383all-stage3: all-stage3-opcodes
4384TARGET-stage3-opcodes = $(TARGET-opcodes)
4385all-stage3-opcodes: configure-stage3-opcodes
4386 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4387 @r=`${PWD_COMMAND}`; export r; \
4388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4389 TFLAGS="$(STAGE3_TFLAGS)"; \
4390 $(HOST_EXPORTS) \
4391 $(POSTSTAGE1_HOST_EXPORTS) \
4392 cd $(HOST_SUBDIR)/opcodes && \
4393 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4394 CFLAGS="$(STAGE3_CFLAGS)" \
4395 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4396 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4397 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4398 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4399 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4400 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4401 TFLAGS="$(STAGE3_TFLAGS)" \
4402 $(TARGET-stage3-opcodes)
4403
4404maybe-clean-stage3-opcodes: clean-stage3-opcodes
4405clean-stage3: clean-stage3-opcodes
4406clean-stage3-opcodes:
4407 @if [ $(current_stage) = stage3 ]; then \
4408 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4409 else \
4410 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4411 $(MAKE) stage3-start; \
4412 fi; \
4413 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4414 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4415@endif opcodes-bootstrap
4416
4417
4418.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4419.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4420maybe-all-stage4-opcodes:
4421maybe-clean-stage4-opcodes:
4422@if opcodes-bootstrap
4423maybe-all-stage4-opcodes: all-stage4-opcodes
4424all-stage4: all-stage4-opcodes
4425TARGET-stage4-opcodes = $(TARGET-opcodes)
4426all-stage4-opcodes: configure-stage4-opcodes
4427 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4428 @r=`${PWD_COMMAND}`; export r; \
4429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4430 TFLAGS="$(STAGE4_TFLAGS)"; \
4431 $(HOST_EXPORTS) \
4432 $(POSTSTAGE1_HOST_EXPORTS) \
4433 cd $(HOST_SUBDIR)/opcodes && \
4434 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4435 CFLAGS="$(STAGE4_CFLAGS)" \
4436 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4437 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4438 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4439 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4440 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4441 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4442 TFLAGS="$(STAGE4_TFLAGS)" \
4443 $(TARGET-stage4-opcodes)
4444
4445maybe-clean-stage4-opcodes: clean-stage4-opcodes
4446clean-stage4: clean-stage4-opcodes
4447clean-stage4-opcodes:
4448 @if [ $(current_stage) = stage4 ]; then \
4449 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4450 else \
4451 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4452 $(MAKE) stage4-start; \
4453 fi; \
4454 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4455 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4456@endif opcodes-bootstrap
4457
4458
4459.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4460.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4461maybe-all-stageprofile-opcodes:
4462maybe-clean-stageprofile-opcodes:
4463@if opcodes-bootstrap
4464maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4465all-stageprofile: all-stageprofile-opcodes
4466TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4467all-stageprofile-opcodes: configure-stageprofile-opcodes
4468 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4469 @r=`${PWD_COMMAND}`; export r; \
4470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4471 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4472 $(HOST_EXPORTS) \
4473 $(POSTSTAGE1_HOST_EXPORTS) \
4474 cd $(HOST_SUBDIR)/opcodes && \
4475 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4476 CFLAGS="$(STAGEprofile_CFLAGS)" \
4477 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4478 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4479 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4480 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4481 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4482 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4483 TFLAGS="$(STAGEprofile_TFLAGS)" \
4484 $(TARGET-stageprofile-opcodes)
4485
4486maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4487clean-stageprofile: clean-stageprofile-opcodes
4488clean-stageprofile-opcodes:
4489 @if [ $(current_stage) = stageprofile ]; then \
4490 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4491 else \
4492 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4493 $(MAKE) stageprofile-start; \
4494 fi; \
4495 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4496 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4497@endif opcodes-bootstrap
4498
4499
4500.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4501.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4502maybe-all-stagefeedback-opcodes:
4503maybe-clean-stagefeedback-opcodes:
4504@if opcodes-bootstrap
4505maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4506all-stagefeedback: all-stagefeedback-opcodes
4507TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4508all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4509 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4510 @r=`${PWD_COMMAND}`; export r; \
4511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4512 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4513 $(HOST_EXPORTS) \
4514 $(POSTSTAGE1_HOST_EXPORTS) \
4515 cd $(HOST_SUBDIR)/opcodes && \
4516 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4517 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4518 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4519 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4520 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4521 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4522 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4523 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4524 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4525 $(TARGET-stagefeedback-opcodes)
4526
4527maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4528clean-stagefeedback: clean-stagefeedback-opcodes
4529clean-stagefeedback-opcodes:
4530 @if [ $(current_stage) = stagefeedback ]; then \
4531 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4532 else \
4533 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4534 $(MAKE) stagefeedback-start; \
4535 fi; \
4536 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4537 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4538@endif opcodes-bootstrap
4539
4540
4541
4542
4543
4544.PHONY: check-opcodes maybe-check-opcodes
4545maybe-check-opcodes:
4546@if opcodes
4547maybe-check-opcodes: check-opcodes
4548
4549check-opcodes:
0aed8855 4550 @: $(MAKE); $(unstage)
a90ef4bf 4551 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4553 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4554 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4555 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4556
a90ef4bf 4557@endif opcodes
2a4cbe27 4558
a90ef4bf
JM
4559.PHONY: install-opcodes maybe-install-opcodes
4560maybe-install-opcodes:
4561@if opcodes
4562maybe-install-opcodes: install-opcodes
56a8fe78 4563
a90ef4bf 4564install-opcodes: installdirs
56a8fe78 4565 @: $(MAKE); $(unstage)
a90ef4bf 4566 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4568 $(HOST_EXPORTS) \
a90ef4bf
JM
4569 (cd $(HOST_SUBDIR)/opcodes && \
4570 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4571
a90ef4bf 4572@endif opcodes
56a8fe78 4573
a90ef4bf
JM
4574.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4575maybe-install-strip-opcodes:
4576@if opcodes
4577maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4578
a90ef4bf 4579install-strip-opcodes: installdirs
0aed8855 4580 @: $(MAKE); $(unstage)
a90ef4bf
JM
4581 @r=`${PWD_COMMAND}`; export r; \
4582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4583 $(HOST_EXPORTS) \
4584 (cd $(HOST_SUBDIR)/opcodes && \
4585 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4586
4587@endif opcodes
4588
4589# Other targets (info, dvi, pdf, etc.)
4590
4591.PHONY: maybe-info-opcodes info-opcodes
4592maybe-info-opcodes:
4593@if opcodes
4594maybe-info-opcodes: info-opcodes
4595
4596info-opcodes: \
4597 configure-opcodes
4598 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4599 r=`${PWD_COMMAND}`; export r; \
4600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4601 $(HOST_EXPORTS) \
4602 for flag in $(EXTRA_HOST_FLAGS) ; do \
4603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4604 done; \
22121df0 4605 echo "Doing info in opcodes"; \
a90ef4bf 4606 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
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 info) \
6d389afc
MS
4612 || exit 1
4613
a90ef4bf 4614@endif opcodes
6d389afc 4615
a90ef4bf
JM
4616.PHONY: maybe-dvi-opcodes dvi-opcodes
4617maybe-dvi-opcodes:
4618@if opcodes
4619maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4620
a90ef4bf
JM
4621dvi-opcodes: \
4622 configure-opcodes
4623 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4624 r=`${PWD_COMMAND}`; export r; \
4625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4626 $(HOST_EXPORTS) \
b813574b 4627 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4629 done; \
22121df0 4630 echo "Doing dvi in opcodes"; \
a90ef4bf 4631 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4634 "RANLIB=$${RANLIB}" \
0c24b341 4635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4636 dvi) \
2a4cbe27
NN
4637 || exit 1
4638
a90ef4bf 4639@endif opcodes
2a4cbe27 4640
a90ef4bf
JM
4641.PHONY: maybe-pdf-opcodes pdf-opcodes
4642maybe-pdf-opcodes:
4643@if opcodes
4644maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4645
a90ef4bf
JM
4646pdf-opcodes: \
4647 configure-opcodes
4648 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4649 r=`${PWD_COMMAND}`; export r; \
4650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4651 $(HOST_EXPORTS) \
b813574b 4652 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4654 done; \
22121df0 4655 echo "Doing pdf in opcodes"; \
a90ef4bf 4656 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4659 "RANLIB=$${RANLIB}" \
0c24b341 4660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4661 pdf) \
2a4cbe27
NN
4662 || exit 1
4663
a90ef4bf 4664@endif opcodes
2a4cbe27 4665
a90ef4bf
JM
4666.PHONY: maybe-html-opcodes html-opcodes
4667maybe-html-opcodes:
4668@if opcodes
4669maybe-html-opcodes: html-opcodes
a3ca38d2 4670
a90ef4bf
JM
4671html-opcodes: \
4672 configure-opcodes
4673 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4674 r=`${PWD_COMMAND}`; export r; \
4675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4676 $(HOST_EXPORTS) \
4677 for flag in $(EXTRA_HOST_FLAGS) ; do \
4678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4679 done; \
22121df0 4680 echo "Doing html in opcodes"; \
a90ef4bf 4681 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4684 "RANLIB=$${RANLIB}" \
0c24b341 4685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4686 html) \
a3ca38d2
DD
4687 || exit 1
4688
a90ef4bf 4689@endif opcodes
a3ca38d2 4690
a90ef4bf
JM
4691.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4692maybe-TAGS-opcodes:
4693@if opcodes
4694maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4695
a90ef4bf
JM
4696TAGS-opcodes: \
4697 configure-opcodes
4698 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4699 r=`${PWD_COMMAND}`; export r; \
4700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4701 $(HOST_EXPORTS) \
4702 for flag in $(EXTRA_HOST_FLAGS) ; do \
4703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4704 done; \
22121df0 4705 echo "Doing TAGS in opcodes"; \
a90ef4bf 4706 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4709 "RANLIB=$${RANLIB}" \
0c24b341 4710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4711 TAGS) \
108a6f8e
CD
4712 || exit 1
4713
a90ef4bf 4714@endif opcodes
108a6f8e 4715
a90ef4bf
JM
4716.PHONY: maybe-install-info-opcodes install-info-opcodes
4717maybe-install-info-opcodes:
4718@if opcodes
4719maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4720
a90ef4bf
JM
4721install-info-opcodes: \
4722 configure-opcodes \
4723 info-opcodes
4724 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4725 r=`${PWD_COMMAND}`; export r; \
4726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4727 $(HOST_EXPORTS) \
b813574b 4728 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4730 done; \
22121df0 4731 echo "Doing install-info in opcodes"; \
a90ef4bf 4732 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4735 "RANLIB=$${RANLIB}" \
0c24b341 4736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4737 install-info) \
2a4cbe27
NN
4738 || exit 1
4739
a90ef4bf 4740@endif opcodes
2a4cbe27 4741
a90ef4bf
JM
4742.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4743maybe-install-pdf-opcodes:
4744@if opcodes
4745maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4746
a90ef4bf
JM
4747install-pdf-opcodes: \
4748 configure-opcodes \
4749 pdf-opcodes
4750 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4751 r=`${PWD_COMMAND}`; export r; \
4752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4753 $(HOST_EXPORTS) \
b813574b 4754 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4756 done; \
22121df0 4757 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4758 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4761 "RANLIB=$${RANLIB}" \
0c24b341 4762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4763 install-pdf) \
2a4cbe27
NN
4764 || exit 1
4765
a90ef4bf 4766@endif opcodes
2a4cbe27 4767
a90ef4bf
JM
4768.PHONY: maybe-install-html-opcodes install-html-opcodes
4769maybe-install-html-opcodes:
4770@if opcodes
4771maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4772
a90ef4bf
JM
4773install-html-opcodes: \
4774 configure-opcodes \
4775 html-opcodes
4776 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4777 r=`${PWD_COMMAND}`; export r; \
4778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4779 $(HOST_EXPORTS) \
b813574b 4780 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4782 done; \
22121df0 4783 echo "Doing install-html in opcodes"; \
a90ef4bf 4784 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4787 "RANLIB=$${RANLIB}" \
0c24b341 4788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4789 install-html) \
2a4cbe27
NN
4790 || exit 1
4791
a90ef4bf 4792@endif opcodes
2a4cbe27 4793
a90ef4bf
JM
4794.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4795maybe-installcheck-opcodes:
4796@if opcodes
4797maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4798
a90ef4bf
JM
4799installcheck-opcodes: \
4800 configure-opcodes
4801 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4802 r=`${PWD_COMMAND}`; export r; \
4803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4804 $(HOST_EXPORTS) \
b813574b 4805 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4807 done; \
22121df0 4808 echo "Doing installcheck in opcodes"; \
a90ef4bf 4809 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4812 "RANLIB=$${RANLIB}" \
0c24b341 4813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4814 installcheck) \
2a4cbe27
NN
4815 || exit 1
4816
a90ef4bf 4817@endif opcodes
2a4cbe27 4818
a90ef4bf
JM
4819.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4820maybe-mostlyclean-opcodes:
4821@if opcodes
4822maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4823
a90ef4bf
JM
4824mostlyclean-opcodes:
4825 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4826 r=`${PWD_COMMAND}`; export r; \
4827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4828 $(HOST_EXPORTS) \
b813574b 4829 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4831 done; \
22121df0 4832 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4833 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4836 "RANLIB=$${RANLIB}" \
0c24b341 4837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4838 mostlyclean) \
2a4cbe27
NN
4839 || exit 1
4840
a90ef4bf 4841@endif opcodes
2a4cbe27 4842
a90ef4bf
JM
4843.PHONY: maybe-clean-opcodes clean-opcodes
4844maybe-clean-opcodes:
4845@if opcodes
4846maybe-clean-opcodes: clean-opcodes
2a4cbe27 4847
a90ef4bf
JM
4848clean-opcodes:
4849 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4850 r=`${PWD_COMMAND}`; export r; \
4851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4852 $(HOST_EXPORTS) \
b813574b 4853 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4855 done; \
22121df0 4856 echo "Doing clean in opcodes"; \
a90ef4bf 4857 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4860 "RANLIB=$${RANLIB}" \
0c24b341 4861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4862 clean) \
2a4cbe27
NN
4863 || exit 1
4864
a90ef4bf 4865@endif opcodes
2a4cbe27 4866
a90ef4bf
JM
4867.PHONY: maybe-distclean-opcodes distclean-opcodes
4868maybe-distclean-opcodes:
4869@if opcodes
4870maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4871
a90ef4bf
JM
4872distclean-opcodes:
4873 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4874 r=`${PWD_COMMAND}`; export r; \
4875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4876 $(HOST_EXPORTS) \
b813574b 4877 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4879 done; \
22121df0 4880 echo "Doing distclean in opcodes"; \
a90ef4bf 4881 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4884 "RANLIB=$${RANLIB}" \
0c24b341 4885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4886 distclean) \
2a4cbe27
NN
4887 || exit 1
4888
a90ef4bf 4889@endif opcodes
2a4cbe27 4890
a90ef4bf
JM
4891.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4892maybe-maintainer-clean-opcodes:
4893@if opcodes
4894maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4895
a90ef4bf
JM
4896maintainer-clean-opcodes:
4897 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4898 r=`${PWD_COMMAND}`; export r; \
4899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4900 $(HOST_EXPORTS) \
b813574b 4901 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4903 done; \
22121df0 4904 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4905 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4908 "RANLIB=$${RANLIB}" \
0c24b341 4909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4910 maintainer-clean) \
2a4cbe27
NN
4911 || exit 1
4912
a90ef4bf 4913@endif opcodes
2a4cbe27 4914
2a4cbe27 4915
a7254363 4916
a90ef4bf
JM
4917.PHONY: configure-binutils maybe-configure-binutils
4918maybe-configure-binutils:
4f0ef2d8 4919@if gcc-bootstrap
a90ef4bf 4920configure-binutils: stage_current
4f0ef2d8 4921@endif gcc-bootstrap
a90ef4bf
JM
4922@if binutils
4923maybe-configure-binutils: configure-binutils
4924configure-binutils:
c52c6897
PB
4925 @r=`${PWD_COMMAND}`; export r; \
4926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4927 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4928 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4929 $(HOST_EXPORTS) \
a90ef4bf
JM
4930 echo Configuring in $(HOST_SUBDIR)/binutils; \
4931 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4932 case $(srcdir) in \
b00612cc 4933 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4934 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4935 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4936 esac; \
1b6c0831
L
4937 module_srcdir=binutils; \
4938 $(SHELL) \
4939 $$s/$$module_srcdir/configure \
4940 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4941 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4942 --target=${target_alias} \
2a4cbe27 4943 || exit 1
a90ef4bf 4944@endif binutils
2a4cbe27 4945
a7254363
PB
4946
4947
a90ef4bf
JM
4948.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4949maybe-configure-stage1-binutils:
4950@if binutils-bootstrap
4951maybe-configure-stage1-binutils: configure-stage1-binutils
4952configure-stage1-binutils:
c52c6897 4953 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4954 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4955 @r=`${PWD_COMMAND}`; export r; \
4956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4957 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4958 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4959 $(HOST_EXPORTS) \
8ee82aff 4960 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4961 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4962 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4963 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
4964 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4965 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4966 case $(srcdir) in \
4967 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4968 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4969 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4970 esac; \
1b6c0831
L
4971 module_srcdir=binutils; \
4972 $(SHELL) $$s/$$module_srcdir/configure \
4973 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4974 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4975 --target=${target_alias} \
4976 \
1b05fbbd 4977 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4978@endif binutils-bootstrap
d545f33b 4979
a90ef4bf
JM
4980.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4981maybe-configure-stage2-binutils:
4982@if binutils-bootstrap
4983maybe-configure-stage2-binutils: configure-stage2-binutils
4984configure-stage2-binutils:
c52c6897 4985 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 4986 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4987 @r=`${PWD_COMMAND}`; export r; \
4988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4989 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 4990 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4991 $(HOST_EXPORTS) \
1b05fbbd 4992 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4993 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4994 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4995 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4996 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
4997 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4998 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4999 case $(srcdir) in \
5000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5001 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5003 esac; \
1b6c0831
L
5004 module_srcdir=binutils; \
5005 $(SHELL) $$s/$$module_srcdir/configure \
5006 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5007 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5008 --target=${target_alias} \
22121df0 5009 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5010 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5011@endif binutils-bootstrap
8520c408 5012
a90ef4bf
JM
5013.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5014maybe-configure-stage3-binutils:
5015@if binutils-bootstrap
5016maybe-configure-stage3-binutils: configure-stage3-binutils
5017configure-stage3-binutils:
c52c6897 5018 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5019 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5020 @r=`${PWD_COMMAND}`; export r; \
5021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5022 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5023 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5024 $(HOST_EXPORTS) \
1b05fbbd 5025 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5026 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5027 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5028 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5029 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5030 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5031 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5032 case $(srcdir) in \
5033 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5034 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5035 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5036 esac; \
1b6c0831
L
5037 module_srcdir=binutils; \
5038 $(SHELL) $$s/$$module_srcdir/configure \
5039 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5040 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5041 --target=${target_alias} \
22121df0 5042 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5043 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5044@endif binutils-bootstrap
8520c408 5045
a90ef4bf
JM
5046.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5047maybe-configure-stage4-binutils:
5048@if binutils-bootstrap
5049maybe-configure-stage4-binutils: configure-stage4-binutils
5050configure-stage4-binutils:
c52c6897 5051 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5052 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5053 @r=`${PWD_COMMAND}`; export r; \
5054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5055 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5056 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5057 $(HOST_EXPORTS) \
1b05fbbd 5058 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5059 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5060 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5061 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5062 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5063 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5064 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5065 case $(srcdir) in \
5066 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5067 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5068 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5069 esac; \
1b6c0831
L
5070 module_srcdir=binutils; \
5071 $(SHELL) $$s/$$module_srcdir/configure \
5072 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5073 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5074 --target=${target_alias} \
22121df0 5075 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5076 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5077@endif binutils-bootstrap
d545f33b 5078
a90ef4bf
JM
5079.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5080maybe-configure-stageprofile-binutils:
5081@if binutils-bootstrap
5082maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5083configure-stageprofile-binutils:
c52c6897 5084 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5085 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5086 @r=`${PWD_COMMAND}`; export r; \
5087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5088 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5089 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5090 $(HOST_EXPORTS) \
1b05fbbd
AO
5091 $(POSTSTAGE1_HOST_EXPORTS) \
5092 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5093 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5094 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5095 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5096 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5097 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5098 case $(srcdir) in \
5099 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5100 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5101 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5102 esac; \
1b6c0831
L
5103 module_srcdir=binutils; \
5104 $(SHELL) $$s/$$module_srcdir/configure \
5105 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5106 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5107 --target=${target_alias} \
22121df0 5108 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5109 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5110@endif binutils-bootstrap
d545f33b 5111
a90ef4bf
JM
5112.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5113maybe-configure-stagefeedback-binutils:
5114@if binutils-bootstrap
5115maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5116configure-stagefeedback-binutils:
c52c6897 5117 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5118 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5119 @r=`${PWD_COMMAND}`; export r; \
5120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5121 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5122 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5123 $(HOST_EXPORTS) \
1b05fbbd
AO
5124 $(POSTSTAGE1_HOST_EXPORTS) \
5125 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5126 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5127 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5128 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5129 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5130 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5131 case $(srcdir) in \
5132 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5133 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5134 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5135 esac; \
1b6c0831
L
5136 module_srcdir=binutils; \
5137 $(SHELL) $$s/$$module_srcdir/configure \
5138 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5139 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5140 --target=${target_alias} \
22121df0 5141 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5142 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5143@endif binutils-bootstrap
d545f33b
PB
5144
5145
5146
5147
5148
a90ef4bf
JM
5149.PHONY: all-binutils maybe-all-binutils
5150maybe-all-binutils:
4f0ef2d8 5151@if gcc-bootstrap
a90ef4bf 5152all-binutils: stage_current
4f0ef2d8 5153@endif gcc-bootstrap
a90ef4bf
JM
5154@if binutils
5155TARGET-binutils=all
5156maybe-all-binutils: all-binutils
5157all-binutils: configure-binutils
c52c6897 5158 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5160 $(HOST_EXPORTS) \
a90ef4bf 5161 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5162 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5163 $(TARGET-binutils))
5164@endif binutils
2a4cbe27 5165
a7254363 5166
d545f33b 5167
a90ef4bf
JM
5168.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5169.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5170maybe-all-stage1-binutils:
5171maybe-clean-stage1-binutils:
5172@if binutils-bootstrap
5173maybe-all-stage1-binutils: all-stage1-binutils
5174all-stage1: all-stage1-binutils
5175TARGET-stage1-binutils = $(TARGET-binutils)
5176all-stage1-binutils: configure-stage1-binutils
c52c6897 5177 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5178 @r=`${PWD_COMMAND}`; export r; \
5179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5180 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5181 $(HOST_EXPORTS) \
a90ef4bf 5182 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5183 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5184 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5185 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5186 LIBCFLAGS="$(LIBCFLAGS)" \
5187 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5188 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5189 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5190 $(EXTRA_HOST_FLAGS) \
5191 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 5192 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5193 $(TARGET-stage1-binutils)
d545f33b 5194
a90ef4bf
JM
5195maybe-clean-stage1-binutils: clean-stage1-binutils
5196clean-stage1: clean-stage1-binutils
5197clean-stage1-binutils:
9dbaa842 5198 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5199 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5200 else \
a90ef4bf 5201 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5202 $(MAKE) stage1-start; \
5203 fi; \
a90ef4bf 5204 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5205 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5206 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5207@endif binutils-bootstrap
d545f33b
PB
5208
5209
a90ef4bf
JM
5210.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5211.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5212maybe-all-stage2-binutils:
5213maybe-clean-stage2-binutils:
5214@if binutils-bootstrap
5215maybe-all-stage2-binutils: all-stage2-binutils
5216all-stage2: all-stage2-binutils
5217TARGET-stage2-binutils = $(TARGET-binutils)
5218all-stage2-binutils: configure-stage2-binutils
c52c6897 5219 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5220 @r=`${PWD_COMMAND}`; export r; \
5221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5222 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5223 $(HOST_EXPORTS) \
1f53ca9a 5224 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5225 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5226 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5227 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5228 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5229 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5230 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5231 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5232 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5233 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5234 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5235 $(TARGET-stage2-binutils)
d545f33b 5236
a90ef4bf
JM
5237maybe-clean-stage2-binutils: clean-stage2-binutils
5238clean-stage2: clean-stage2-binutils
5239clean-stage2-binutils:
9dbaa842 5240 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5241 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5242 else \
a90ef4bf 5243 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5244 $(MAKE) stage2-start; \
5245 fi; \
a90ef4bf 5246 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5247 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5248@endif binutils-bootstrap
d545f33b
PB
5249
5250
a90ef4bf
JM
5251.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5252.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5253maybe-all-stage3-binutils:
5254maybe-clean-stage3-binutils:
5255@if binutils-bootstrap
5256maybe-all-stage3-binutils: all-stage3-binutils
5257all-stage3: all-stage3-binutils
5258TARGET-stage3-binutils = $(TARGET-binutils)
5259all-stage3-binutils: configure-stage3-binutils
c52c6897 5260 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5261 @r=`${PWD_COMMAND}`; export r; \
5262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5263 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5264 $(HOST_EXPORTS) \
1f53ca9a 5265 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5266 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5267 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5268 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5269 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5270 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5271 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5272 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5273 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5274 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5275 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5276 $(TARGET-stage3-binutils)
d545f33b 5277
a90ef4bf
JM
5278maybe-clean-stage3-binutils: clean-stage3-binutils
5279clean-stage3: clean-stage3-binutils
5280clean-stage3-binutils:
9dbaa842 5281 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5282 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5283 else \
a90ef4bf 5284 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5285 $(MAKE) stage3-start; \
5286 fi; \
a90ef4bf 5287 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5288 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5289@endif binutils-bootstrap
d545f33b
PB
5290
5291
a90ef4bf
JM
5292.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5293.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5294maybe-all-stage4-binutils:
5295maybe-clean-stage4-binutils:
5296@if binutils-bootstrap
5297maybe-all-stage4-binutils: all-stage4-binutils
5298all-stage4: all-stage4-binutils
5299TARGET-stage4-binutils = $(TARGET-binutils)
5300all-stage4-binutils: configure-stage4-binutils
c52c6897 5301 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5302 @r=`${PWD_COMMAND}`; export r; \
5303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5304 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5305 $(HOST_EXPORTS) \
1f53ca9a 5306 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5307 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5308 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5309 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5310 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5311 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5312 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5313 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5314 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5315 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5316 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5317 $(TARGET-stage4-binutils)
d545f33b 5318
a90ef4bf
JM
5319maybe-clean-stage4-binutils: clean-stage4-binutils
5320clean-stage4: clean-stage4-binutils
5321clean-stage4-binutils:
9dbaa842 5322 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5323 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5324 else \
a90ef4bf 5325 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5326 $(MAKE) stage4-start; \
5327 fi; \
a90ef4bf 5328 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5329 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5330@endif binutils-bootstrap
d545f33b
PB
5331
5332
a90ef4bf
JM
5333.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5334.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5335maybe-all-stageprofile-binutils:
5336maybe-clean-stageprofile-binutils:
5337@if binutils-bootstrap
5338maybe-all-stageprofile-binutils: all-stageprofile-binutils
5339all-stageprofile: all-stageprofile-binutils
5340TARGET-stageprofile-binutils = $(TARGET-binutils)
5341all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5342 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5343 @r=`${PWD_COMMAND}`; export r; \
5344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5345 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5346 $(HOST_EXPORTS) \
1f53ca9a 5347 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5348 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5349 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5350 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5351 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5352 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5353 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5354 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5355 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5356 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5357 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5358 $(TARGET-stageprofile-binutils)
d545f33b 5359
a90ef4bf
JM
5360maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5361clean-stageprofile: clean-stageprofile-binutils
5362clean-stageprofile-binutils:
9dbaa842 5363 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5364 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5365 else \
a90ef4bf 5366 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5367 $(MAKE) stageprofile-start; \
5368 fi; \
a90ef4bf 5369 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5370 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5371@endif binutils-bootstrap
d545f33b
PB
5372
5373
a90ef4bf
JM
5374.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5375.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5376maybe-all-stagefeedback-binutils:
5377maybe-clean-stagefeedback-binutils:
5378@if binutils-bootstrap
5379maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5380all-stagefeedback: all-stagefeedback-binutils
5381TARGET-stagefeedback-binutils = $(TARGET-binutils)
5382all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5383 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5384 @r=`${PWD_COMMAND}`; export r; \
5385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5386 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5387 $(HOST_EXPORTS) \
1f53ca9a 5388 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5389 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5390 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5391 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5392 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5393 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5394 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5395 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5396 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5397 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5398 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5399 $(TARGET-stagefeedback-binutils)
d545f33b 5400
a90ef4bf
JM
5401maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5402clean-stagefeedback: clean-stagefeedback-binutils
5403clean-stagefeedback-binutils:
9dbaa842 5404 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5405 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5406 else \
a90ef4bf 5407 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5408 $(MAKE) stagefeedback-start; \
5409 fi; \
a90ef4bf 5410 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5411 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5412@endif binutils-bootstrap
d545f33b
PB
5413
5414
5415
5416
5417
a90ef4bf
JM
5418.PHONY: check-binutils maybe-check-binutils
5419maybe-check-binutils:
5420@if binutils
5421maybe-check-binutils: check-binutils
2a4cbe27 5422
a90ef4bf 5423check-binutils:
0aed8855 5424 @: $(MAKE); $(unstage)
4fa63067 5425 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5427 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5428 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5429 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5430
a90ef4bf 5431@endif binutils
2a4cbe27 5432
a90ef4bf
JM
5433.PHONY: install-binutils maybe-install-binutils
5434maybe-install-binutils:
5435@if binutils
5436maybe-install-binutils: install-binutils
2a4cbe27 5437
a90ef4bf 5438install-binutils: installdirs
0aed8855 5439 @: $(MAKE); $(unstage)
4fa63067 5440 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5442 $(HOST_EXPORTS) \
a90ef4bf 5443 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5444 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5445
a90ef4bf 5446@endif binutils
2a4cbe27 5447
a90ef4bf
JM
5448.PHONY: install-strip-binutils maybe-install-strip-binutils
5449maybe-install-strip-binutils:
5450@if binutils
5451maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5452
a90ef4bf 5453install-strip-binutils: installdirs
9b980aa1
RW
5454 @: $(MAKE); $(unstage)
5455 @r=`${PWD_COMMAND}`; export r; \
5456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5457 $(HOST_EXPORTS) \
a90ef4bf 5458 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5459 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5460
a90ef4bf 5461@endif binutils
9b980aa1 5462
56a8fe78 5463# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5464
a90ef4bf
JM
5465.PHONY: maybe-info-binutils info-binutils
5466maybe-info-binutils:
5467@if binutils
5468maybe-info-binutils: info-binutils
4fa63067 5469
a90ef4bf
JM
5470info-binutils: \
5471 configure-binutils
5472 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5473 r=`${PWD_COMMAND}`; export r; \
5474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5475 $(HOST_EXPORTS) \
b813574b 5476 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5478 done; \
22121df0 5479 echo "Doing info in binutils"; \
a90ef4bf 5480 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5483 "RANLIB=$${RANLIB}" \
0c24b341 5484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5485 info) \
2a4cbe27
NN
5486 || exit 1
5487
a90ef4bf 5488@endif binutils
2a4cbe27 5489
a90ef4bf
JM
5490.PHONY: maybe-dvi-binutils dvi-binutils
5491maybe-dvi-binutils:
5492@if binutils
5493maybe-dvi-binutils: dvi-binutils
2a4cbe27 5494
a90ef4bf
JM
5495dvi-binutils: \
5496 configure-binutils
5497 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5498 r=`${PWD_COMMAND}`; export r; \
5499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5500 $(HOST_EXPORTS) \
b813574b 5501 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5503 done; \
22121df0 5504 echo "Doing dvi in binutils"; \
a90ef4bf 5505 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5508 "RANLIB=$${RANLIB}" \
0c24b341 5509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5510 dvi) \
2a4cbe27
NN
5511 || exit 1
5512
a90ef4bf 5513@endif binutils
2a4cbe27 5514
a90ef4bf
JM
5515.PHONY: maybe-pdf-binutils pdf-binutils
5516maybe-pdf-binutils:
5517@if binutils
5518maybe-pdf-binutils: pdf-binutils
56a8fe78 5519
a90ef4bf
JM
5520pdf-binutils: \
5521 configure-binutils
5522 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5523 r=`${PWD_COMMAND}`; export r; \
5524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5525 $(HOST_EXPORTS) \
5526 for flag in $(EXTRA_HOST_FLAGS) ; do \
5527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5528 done; \
22121df0 5529 echo "Doing pdf in binutils"; \
a90ef4bf 5530 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5533 "RANLIB=$${RANLIB}" \
0c24b341 5534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5535 pdf) \
5536 || exit 1
5537
a90ef4bf 5538@endif binutils
56a8fe78 5539
a90ef4bf
JM
5540.PHONY: maybe-html-binutils html-binutils
5541maybe-html-binutils:
5542@if binutils
5543maybe-html-binutils: html-binutils
6d389afc 5544
a90ef4bf
JM
5545html-binutils: \
5546 configure-binutils
5547 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5548 r=`${PWD_COMMAND}`; export r; \
5549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5550 $(HOST_EXPORTS) \
5551 for flag in $(EXTRA_HOST_FLAGS) ; do \
5552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5553 done; \
22121df0 5554 echo "Doing html in binutils"; \
a90ef4bf 5555 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5558 "RANLIB=$${RANLIB}" \
0c24b341 5559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5560 html) \
5561 || exit 1
5562
a90ef4bf 5563@endif binutils
6d389afc 5564
a90ef4bf
JM
5565.PHONY: maybe-TAGS-binutils TAGS-binutils
5566maybe-TAGS-binutils:
5567@if binutils
5568maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5569
a90ef4bf
JM
5570TAGS-binutils: \
5571 configure-binutils
5572 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5573 r=`${PWD_COMMAND}`; export r; \
5574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5575 $(HOST_EXPORTS) \
b813574b 5576 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5578 done; \
22121df0 5579 echo "Doing TAGS in binutils"; \
a90ef4bf 5580 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5583 "RANLIB=$${RANLIB}" \
0c24b341 5584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5585 TAGS) \
2a4cbe27
NN
5586 || exit 1
5587
a90ef4bf 5588@endif binutils
2a4cbe27 5589
a90ef4bf
JM
5590.PHONY: maybe-install-info-binutils install-info-binutils
5591maybe-install-info-binutils:
5592@if binutils
5593maybe-install-info-binutils: install-info-binutils
2a4cbe27 5594
a90ef4bf
JM
5595install-info-binutils: \
5596 configure-binutils \
5597 info-binutils
5598 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5599 r=`${PWD_COMMAND}`; export r; \
5600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5601 $(HOST_EXPORTS) \
b813574b 5602 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5604 done; \
22121df0 5605 echo "Doing install-info in binutils"; \
a90ef4bf 5606 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5609 "RANLIB=$${RANLIB}" \
0c24b341 5610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5611 install-info) \
2a4cbe27
NN
5612 || exit 1
5613
a90ef4bf 5614@endif binutils
2a4cbe27 5615
a90ef4bf
JM
5616.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5617maybe-install-pdf-binutils:
5618@if binutils
5619maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5620
a90ef4bf
JM
5621install-pdf-binutils: \
5622 configure-binutils \
5623 pdf-binutils
5624 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5625 r=`${PWD_COMMAND}`; export r; \
5626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5627 $(HOST_EXPORTS) \
5628 for flag in $(EXTRA_HOST_FLAGS) ; do \
5629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5630 done; \
22121df0 5631 echo "Doing install-pdf in binutils"; \
a90ef4bf 5632 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5635 "RANLIB=$${RANLIB}" \
0c24b341 5636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5637 install-pdf) \
5638 || exit 1
5639
a90ef4bf 5640@endif binutils
a3ca38d2 5641
a90ef4bf
JM
5642.PHONY: maybe-install-html-binutils install-html-binutils
5643maybe-install-html-binutils:
5644@if binutils
5645maybe-install-html-binutils: install-html-binutils
108a6f8e 5646
a90ef4bf
JM
5647install-html-binutils: \
5648 configure-binutils \
5649 html-binutils
5650 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5651 r=`${PWD_COMMAND}`; export r; \
5652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5653 $(HOST_EXPORTS) \
5654 for flag in $(EXTRA_HOST_FLAGS) ; do \
5655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5656 done; \
22121df0 5657 echo "Doing install-html in binutils"; \
a90ef4bf 5658 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5661 "RANLIB=$${RANLIB}" \
0c24b341 5662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5663 install-html) \
5664 || exit 1
5665
a90ef4bf 5666@endif binutils
108a6f8e 5667
a90ef4bf
JM
5668.PHONY: maybe-installcheck-binutils installcheck-binutils
5669maybe-installcheck-binutils:
5670@if binutils
5671maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5672
a90ef4bf
JM
5673installcheck-binutils: \
5674 configure-binutils
5675 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5676 r=`${PWD_COMMAND}`; export r; \
5677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5678 $(HOST_EXPORTS) \
b813574b 5679 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5681 done; \
22121df0 5682 echo "Doing installcheck in binutils"; \
a90ef4bf 5683 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5686 "RANLIB=$${RANLIB}" \
0c24b341 5687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5688 installcheck) \
2a4cbe27
NN
5689 || exit 1
5690
a90ef4bf 5691@endif binutils
2a4cbe27 5692
a90ef4bf
JM
5693.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5694maybe-mostlyclean-binutils:
5695@if binutils
5696maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5697
a90ef4bf
JM
5698mostlyclean-binutils:
5699 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5700 r=`${PWD_COMMAND}`; export r; \
5701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5702 $(HOST_EXPORTS) \
b813574b 5703 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5705 done; \
22121df0 5706 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5707 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5710 "RANLIB=$${RANLIB}" \
0c24b341 5711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5712 mostlyclean) \
2a4cbe27
NN
5713 || exit 1
5714
a90ef4bf 5715@endif binutils
2a4cbe27 5716
a90ef4bf
JM
5717.PHONY: maybe-clean-binutils clean-binutils
5718maybe-clean-binutils:
5719@if binutils
5720maybe-clean-binutils: clean-binutils
2a4cbe27 5721
a90ef4bf
JM
5722clean-binutils:
5723 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5724 r=`${PWD_COMMAND}`; export r; \
5725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5726 $(HOST_EXPORTS) \
b813574b 5727 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5729 done; \
22121df0 5730 echo "Doing clean in binutils"; \
a90ef4bf 5731 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5734 "RANLIB=$${RANLIB}" \
0c24b341 5735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5736 clean) \
2a4cbe27
NN
5737 || exit 1
5738
a90ef4bf 5739@endif binutils
2a4cbe27 5740
a90ef4bf
JM
5741.PHONY: maybe-distclean-binutils distclean-binutils
5742maybe-distclean-binutils:
5743@if binutils
5744maybe-distclean-binutils: distclean-binutils
2a4cbe27 5745
a90ef4bf
JM
5746distclean-binutils:
5747 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5748 r=`${PWD_COMMAND}`; export r; \
5749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5750 $(HOST_EXPORTS) \
b813574b 5751 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5753 done; \
22121df0 5754 echo "Doing distclean in binutils"; \
a90ef4bf 5755 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5758 "RANLIB=$${RANLIB}" \
0c24b341 5759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5760 distclean) \
2a4cbe27
NN
5761 || exit 1
5762
a90ef4bf 5763@endif binutils
2a4cbe27 5764
a90ef4bf
JM
5765.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5766maybe-maintainer-clean-binutils:
5767@if binutils
5768maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5769
a90ef4bf
JM
5770maintainer-clean-binutils:
5771 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5772 r=`${PWD_COMMAND}`; export r; \
5773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5774 $(HOST_EXPORTS) \
b813574b 5775 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5777 done; \
22121df0 5778 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5779 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5782 "RANLIB=$${RANLIB}" \
0c24b341 5783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5784 maintainer-clean) \
a2592b1b
DD
5785 || exit 1
5786
a90ef4bf 5787@endif binutils
a2592b1b 5788
2a4cbe27 5789
a7254363 5790
a90ef4bf
JM
5791.PHONY: configure-bison maybe-configure-bison
5792maybe-configure-bison:
4f0ef2d8 5793@if gcc-bootstrap
a90ef4bf 5794configure-bison: stage_current
4f0ef2d8 5795@endif gcc-bootstrap
a90ef4bf
JM
5796@if bison
5797maybe-configure-bison: configure-bison
5798configure-bison:
5799 @: $(MAKE); $(unstage)
c52c6897
PB
5800 @r=`${PWD_COMMAND}`; export r; \
5801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5802 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5803 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5804 $(HOST_EXPORTS) \
a90ef4bf
JM
5805 echo Configuring in $(HOST_SUBDIR)/bison; \
5806 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5807 case $(srcdir) in \
b00612cc 5808 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5809 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5810 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5811 esac; \
1b6c0831
L
5812 module_srcdir=bison; \
5813 $(SHELL) \
5814 $$s/$$module_srcdir/configure \
5815 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5816 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5817 --target=${target_alias} \
4fa63067 5818 || exit 1
a90ef4bf 5819@endif bison
2a4cbe27 5820
a7254363
PB
5821
5822
d545f33b 5823
8520c408 5824
a90ef4bf
JM
5825.PHONY: all-bison maybe-all-bison
5826maybe-all-bison:
5827@if gcc-bootstrap
5828all-bison: stage_current
5829@endif gcc-bootstrap
5830@if bison
5831TARGET-bison=all
5832maybe-all-bison: all-bison
5833all-bison: configure-bison
5834 @: $(MAKE); $(unstage)
c52c6897
PB
5835 @r=`${PWD_COMMAND}`; export r; \
5836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5837 $(HOST_EXPORTS) \
5838 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5839 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5840 $(TARGET-bison))
5841@endif bison
8520c408 5842
d545f33b 5843
d545f33b 5844
d545f33b 5845
a90ef4bf
JM
5846.PHONY: check-bison maybe-check-bison
5847maybe-check-bison:
5848@if bison
5849maybe-check-bison: check-bison
d545f33b 5850
a90ef4bf
JM
5851# This module is only tested in a native toolchain.
5852check-bison:
5853 @: $(MAKE); $(unstage)
22121df0 5854 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5855 r=`${PWD_COMMAND}`; export r; \
5856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5857 $(HOST_EXPORTS) \
a90ef4bf 5858 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5859 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5860 fi
d545f33b 5861
a90ef4bf 5862@endif bison
d545f33b 5863
a90ef4bf
JM
5864.PHONY: install-bison maybe-install-bison
5865maybe-install-bison:
5866@if bison
5867maybe-install-bison: install-bison
d545f33b 5868
a90ef4bf
JM
5869install-bison: installdirs
5870 @: $(MAKE); $(unstage)
c52c6897 5871 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5873 $(HOST_EXPORTS) \
5874 (cd $(HOST_SUBDIR)/bison && \
5875 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5876
a90ef4bf 5877@endif bison
a7254363 5878
a90ef4bf
JM
5879.PHONY: install-strip-bison maybe-install-strip-bison
5880maybe-install-strip-bison:
5881@if bison
5882maybe-install-strip-bison: install-strip-bison
d545f33b 5883
a90ef4bf
JM
5884install-strip-bison: installdirs
5885 @: $(MAKE); $(unstage)
d545f33b
PB
5886 @r=`${PWD_COMMAND}`; export r; \
5887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5888 $(HOST_EXPORTS) \
5889 (cd $(HOST_SUBDIR)/bison && \
5890 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5891
a90ef4bf 5892@endif bison
d545f33b 5893
a90ef4bf 5894# Other targets (info, dvi, pdf, etc.)
d545f33b 5895
a90ef4bf
JM
5896.PHONY: maybe-info-bison info-bison
5897maybe-info-bison:
5898@if bison
5899maybe-info-bison: info-bison
5900
5901info-bison: \
5902 configure-bison
5903 @: $(MAKE); $(unstage)
5904 @[ -f ./bison/Makefile ] || exit 0; \
5905 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5907 $(HOST_EXPORTS) \
a90ef4bf
JM
5908 for flag in $(EXTRA_HOST_FLAGS) ; do \
5909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5910 done; \
22121df0 5911 echo "Doing info in bison"; \
a90ef4bf
JM
5912 (cd $(HOST_SUBDIR)/bison && \
5913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5915 "RANLIB=$${RANLIB}" \
5916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5917 info) \
5918 || exit 1
d545f33b 5919
a90ef4bf 5920@endif bison
d545f33b 5921
a90ef4bf
JM
5922.PHONY: maybe-dvi-bison dvi-bison
5923maybe-dvi-bison:
5924@if bison
5925maybe-dvi-bison: dvi-bison
d545f33b 5926
a90ef4bf
JM
5927dvi-bison: \
5928 configure-bison
5929 @: $(MAKE); $(unstage)
5930 @[ -f ./bison/Makefile ] || exit 0; \
5931 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5933 $(HOST_EXPORTS) \
a90ef4bf
JM
5934 for flag in $(EXTRA_HOST_FLAGS) ; do \
5935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5936 done; \
22121df0 5937 echo "Doing dvi in bison"; \
a90ef4bf
JM
5938 (cd $(HOST_SUBDIR)/bison && \
5939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5941 "RANLIB=$${RANLIB}" \
5942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5943 dvi) \
5944 || exit 1
d545f33b 5945
a90ef4bf 5946@endif bison
d545f33b 5947
a90ef4bf
JM
5948.PHONY: maybe-pdf-bison pdf-bison
5949maybe-pdf-bison:
5950@if bison
5951maybe-pdf-bison: pdf-bison
d545f33b 5952
a90ef4bf
JM
5953pdf-bison: \
5954 configure-bison
5955 @: $(MAKE); $(unstage)
5956 @[ -f ./bison/Makefile ] || exit 0; \
5957 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5959 $(HOST_EXPORTS) \
a90ef4bf
JM
5960 for flag in $(EXTRA_HOST_FLAGS) ; do \
5961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5962 done; \
22121df0 5963 echo "Doing pdf in bison"; \
a90ef4bf
JM
5964 (cd $(HOST_SUBDIR)/bison && \
5965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5967 "RANLIB=$${RANLIB}" \
5968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5969 pdf) \
5970 || exit 1
d545f33b 5971
a90ef4bf 5972@endif bison
d545f33b 5973
a90ef4bf
JM
5974.PHONY: maybe-html-bison html-bison
5975maybe-html-bison:
5976@if bison
5977maybe-html-bison: html-bison
d545f33b 5978
a90ef4bf
JM
5979html-bison: \
5980 configure-bison
5981 @: $(MAKE); $(unstage)
5982 @[ -f ./bison/Makefile ] || exit 0; \
5983 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5985 $(HOST_EXPORTS) \
a90ef4bf
JM
5986 for flag in $(EXTRA_HOST_FLAGS) ; do \
5987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5988 done; \
22121df0 5989 echo "Doing html in bison"; \
a90ef4bf
JM
5990 (cd $(HOST_SUBDIR)/bison && \
5991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5993 "RANLIB=$${RANLIB}" \
5994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5995 html) \
5996 || exit 1
d545f33b 5997
a90ef4bf 5998@endif bison
2a4cbe27 5999
a90ef4bf
JM
6000.PHONY: maybe-TAGS-bison TAGS-bison
6001maybe-TAGS-bison:
6002@if bison
6003maybe-TAGS-bison: TAGS-bison
2a4cbe27 6004
a90ef4bf
JM
6005TAGS-bison: \
6006 configure-bison
0aed8855 6007 @: $(MAKE); $(unstage)
a90ef4bf
JM
6008 @[ -f ./bison/Makefile ] || exit 0; \
6009 r=`${PWD_COMMAND}`; export r; \
4fa63067 6010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6011 $(HOST_EXPORTS) \
a90ef4bf
JM
6012 for flag in $(EXTRA_HOST_FLAGS) ; do \
6013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6014 done; \
22121df0 6015 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6016 (cd $(HOST_SUBDIR)/bison && \
6017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6019 "RANLIB=$${RANLIB}" \
6020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6021 TAGS) \
6022 || exit 1
4fa63067 6023
a90ef4bf 6024@endif bison
4fa63067 6025
a90ef4bf
JM
6026.PHONY: maybe-install-info-bison install-info-bison
6027maybe-install-info-bison:
6028@if bison
6029maybe-install-info-bison: install-info-bison
9b980aa1 6030
a90ef4bf
JM
6031install-info-bison: \
6032 configure-bison \
6033 info-bison
9b980aa1 6034 @: $(MAKE); $(unstage)
a90ef4bf 6035 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6036 r=`${PWD_COMMAND}`; export r; \
6037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6038 $(HOST_EXPORTS) \
b813574b 6039 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6041 done; \
22121df0 6042 echo "Doing install-info in bison"; \
a90ef4bf 6043 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6046 "RANLIB=$${RANLIB}" \
0c24b341 6047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6048 install-info) \
2a4cbe27
NN
6049 || exit 1
6050
a90ef4bf 6051@endif bison
2a4cbe27 6052
a90ef4bf
JM
6053.PHONY: maybe-install-pdf-bison install-pdf-bison
6054maybe-install-pdf-bison:
6055@if bison
6056maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6057
a90ef4bf
JM
6058install-pdf-bison: \
6059 configure-bison \
6060 pdf-bison
6061 @: $(MAKE); $(unstage)
6062 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6063 r=`${PWD_COMMAND}`; export r; \
6064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6065 $(HOST_EXPORTS) \
b813574b 6066 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6068 done; \
22121df0 6069 echo "Doing install-pdf in bison"; \
a90ef4bf 6070 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6073 "RANLIB=$${RANLIB}" \
0c24b341 6074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6075 install-pdf) \
2a4cbe27
NN
6076 || exit 1
6077
a90ef4bf 6078@endif bison
2a4cbe27 6079
a90ef4bf
JM
6080.PHONY: maybe-install-html-bison install-html-bison
6081maybe-install-html-bison:
6082@if bison
6083maybe-install-html-bison: install-html-bison
56a8fe78 6084
a90ef4bf
JM
6085install-html-bison: \
6086 configure-bison \
6087 html-bison
6088 @: $(MAKE); $(unstage)
6089 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6090 r=`${PWD_COMMAND}`; export r; \
6091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6092 $(HOST_EXPORTS) \
6093 for flag in $(EXTRA_HOST_FLAGS) ; do \
6094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6095 done; \
22121df0 6096 echo "Doing install-html in bison"; \
a90ef4bf 6097 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6100 "RANLIB=$${RANLIB}" \
0c24b341 6101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6102 install-html) \
56a8fe78
DD
6103 || exit 1
6104
a90ef4bf 6105@endif bison
56a8fe78 6106
a90ef4bf
JM
6107.PHONY: maybe-installcheck-bison installcheck-bison
6108maybe-installcheck-bison:
6109@if bison
6110maybe-installcheck-bison: installcheck-bison
6d389afc 6111
a90ef4bf
JM
6112installcheck-bison: \
6113 configure-bison
6114 @: $(MAKE); $(unstage)
6115 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6116 r=`${PWD_COMMAND}`; export r; \
6117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6118 $(HOST_EXPORTS) \
6119 for flag in $(EXTRA_HOST_FLAGS) ; do \
6120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6121 done; \
22121df0 6122 echo "Doing installcheck in bison"; \
a90ef4bf 6123 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6126 "RANLIB=$${RANLIB}" \
0c24b341 6127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6128 installcheck) \
6d389afc
MS
6129 || exit 1
6130
a90ef4bf 6131@endif bison
6d389afc 6132
a90ef4bf
JM
6133.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6134maybe-mostlyclean-bison:
6135@if bison
6136maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6137
a90ef4bf
JM
6138mostlyclean-bison:
6139 @: $(MAKE); $(unstage)
6140 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6141 r=`${PWD_COMMAND}`; export r; \
6142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6143 $(HOST_EXPORTS) \
b813574b 6144 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6146 done; \
22121df0 6147 echo "Doing mostlyclean in bison"; \
a90ef4bf 6148 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6151 "RANLIB=$${RANLIB}" \
0c24b341 6152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6153 mostlyclean) \
2a4cbe27
NN
6154 || exit 1
6155
a90ef4bf 6156@endif bison
2a4cbe27 6157
a90ef4bf
JM
6158.PHONY: maybe-clean-bison clean-bison
6159maybe-clean-bison:
6160@if bison
6161maybe-clean-bison: clean-bison
2a4cbe27 6162
a90ef4bf
JM
6163clean-bison:
6164 @: $(MAKE); $(unstage)
6165 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6166 r=`${PWD_COMMAND}`; export r; \
6167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6168 $(HOST_EXPORTS) \
b813574b 6169 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6171 done; \
22121df0 6172 echo "Doing clean in bison"; \
a90ef4bf 6173 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6176 "RANLIB=$${RANLIB}" \
0c24b341 6177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6178 clean) \
2a4cbe27
NN
6179 || exit 1
6180
a90ef4bf 6181@endif bison
2a4cbe27 6182
a90ef4bf
JM
6183.PHONY: maybe-distclean-bison distclean-bison
6184maybe-distclean-bison:
6185@if bison
6186maybe-distclean-bison: distclean-bison
a3ca38d2 6187
a90ef4bf
JM
6188distclean-bison:
6189 @: $(MAKE); $(unstage)
6190 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6191 r=`${PWD_COMMAND}`; export r; \
6192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6193 $(HOST_EXPORTS) \
6194 for flag in $(EXTRA_HOST_FLAGS) ; do \
6195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6196 done; \
22121df0 6197 echo "Doing distclean in bison"; \
a90ef4bf 6198 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
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 distclean) \
a3ca38d2
DD
6204 || exit 1
6205
a90ef4bf 6206@endif bison
a3ca38d2 6207
a90ef4bf
JM
6208.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6209maybe-maintainer-clean-bison:
6210@if bison
6211maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6212
a90ef4bf
JM
6213maintainer-clean-bison:
6214 @: $(MAKE); $(unstage)
6215 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6216 r=`${PWD_COMMAND}`; export r; \
6217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6218 $(HOST_EXPORTS) \
6219 for flag in $(EXTRA_HOST_FLAGS) ; do \
6220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6221 done; \
22121df0 6222 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6223 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6226 "RANLIB=$${RANLIB}" \
0c24b341 6227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6228 maintainer-clean) \
108a6f8e
CD
6229 || exit 1
6230
a90ef4bf 6231@endif bison
108a6f8e 6232
2a4cbe27 6233
a90ef4bf
JM
6234
6235.PHONY: configure-cgen maybe-configure-cgen
6236maybe-configure-cgen:
6237@if gcc-bootstrap
6238configure-cgen: stage_current
6239@endif gcc-bootstrap
6240@if cgen
6241maybe-configure-cgen: configure-cgen
6242configure-cgen:
6243 @: $(MAKE); $(unstage)
6244 @r=`${PWD_COMMAND}`; export r; \
6245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6246 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6247 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6248 $(HOST_EXPORTS) \
6249 echo Configuring in $(HOST_SUBDIR)/cgen; \
6250 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6251 case $(srcdir) in \
6252 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6253 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6254 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6255 esac; \
1b6c0831
L
6256 module_srcdir=cgen; \
6257 $(SHELL) \
6258 $$s/$$module_srcdir/configure \
6259 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6260 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6261 --target=${target_alias} \
a90ef4bf
JM
6262 || exit 1
6263@endif cgen
6264
6265
6266
6267
6268
6269.PHONY: all-cgen maybe-all-cgen
6270maybe-all-cgen:
6271@if gcc-bootstrap
6272all-cgen: stage_current
6273@endif gcc-bootstrap
6274@if cgen
6275TARGET-cgen=all
6276maybe-all-cgen: all-cgen
6277all-cgen: configure-cgen
6278 @: $(MAKE); $(unstage)
6279 @r=`${PWD_COMMAND}`; export r; \
6280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6281 $(HOST_EXPORTS) \
6282 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6283 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6284 $(TARGET-cgen))
6285@endif cgen
6286
6287
6288
6289
6290.PHONY: check-cgen maybe-check-cgen
6291maybe-check-cgen:
6292@if cgen
6293maybe-check-cgen: check-cgen
6294
6295check-cgen:
6296 @: $(MAKE); $(unstage)
6297 @r=`${PWD_COMMAND}`; export r; \
6298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6299 $(HOST_EXPORTS) \
a90ef4bf
JM
6300 (cd $(HOST_SUBDIR)/cgen && \
6301 $(MAKE) $(FLAGS_TO_PASS) check)
6302
6303@endif cgen
6304
6305.PHONY: install-cgen maybe-install-cgen
6306maybe-install-cgen:
6307@if cgen
6308maybe-install-cgen: install-cgen
6309
6310install-cgen: installdirs
6311 @: $(MAKE); $(unstage)
6312 @r=`${PWD_COMMAND}`; export r; \
6313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6314 $(HOST_EXPORTS) \
6315 (cd $(HOST_SUBDIR)/cgen && \
6316 $(MAKE) $(FLAGS_TO_PASS) install)
6317
6318@endif cgen
6319
6320.PHONY: install-strip-cgen maybe-install-strip-cgen
6321maybe-install-strip-cgen:
6322@if cgen
6323maybe-install-strip-cgen: install-strip-cgen
6324
6325install-strip-cgen: installdirs
6326 @: $(MAKE); $(unstage)
6327 @r=`${PWD_COMMAND}`; export r; \
6328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6329 $(HOST_EXPORTS) \
6330 (cd $(HOST_SUBDIR)/cgen && \
6331 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6332
6333@endif cgen
6334
6335# Other targets (info, dvi, pdf, etc.)
6336
6337.PHONY: maybe-info-cgen info-cgen
6338maybe-info-cgen:
6339@if cgen
6340maybe-info-cgen: info-cgen
6341
6342info-cgen: \
6343 configure-cgen
6344 @: $(MAKE); $(unstage)
6345 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6346 r=`${PWD_COMMAND}`; export r; \
6347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6348 $(HOST_EXPORTS) \
b813574b 6349 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6351 done; \
22121df0 6352 echo "Doing info in cgen"; \
a90ef4bf 6353 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6356 "RANLIB=$${RANLIB}" \
0c24b341 6357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6358 info) \
2a4cbe27
NN
6359 || exit 1
6360
a90ef4bf 6361@endif cgen
2a4cbe27 6362
a90ef4bf
JM
6363.PHONY: maybe-dvi-cgen dvi-cgen
6364maybe-dvi-cgen:
6365@if cgen
6366maybe-dvi-cgen: dvi-cgen
2a4cbe27 6367
a90ef4bf
JM
6368dvi-cgen: \
6369 configure-cgen
6370 @: $(MAKE); $(unstage)
6371 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6372 r=`${PWD_COMMAND}`; export r; \
6373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6374 $(HOST_EXPORTS) \
b813574b 6375 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6377 done; \
22121df0 6378 echo "Doing dvi in cgen"; \
a90ef4bf 6379 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6382 "RANLIB=$${RANLIB}" \
0c24b341 6383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6384 dvi) \
2a4cbe27
NN
6385 || exit 1
6386
a90ef4bf 6387@endif cgen
2a4cbe27 6388
a90ef4bf
JM
6389.PHONY: maybe-pdf-cgen pdf-cgen
6390maybe-pdf-cgen:
6391@if cgen
6392maybe-pdf-cgen: pdf-cgen
2a4cbe27 6393
a90ef4bf
JM
6394pdf-cgen: \
6395 configure-cgen
6396 @: $(MAKE); $(unstage)
6397 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6398 r=`${PWD_COMMAND}`; export r; \
6399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6400 $(HOST_EXPORTS) \
b813574b 6401 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6403 done; \
22121df0 6404 echo "Doing pdf in cgen"; \
a90ef4bf 6405 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6408 "RANLIB=$${RANLIB}" \
0c24b341 6409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6410 pdf) \
2a4cbe27
NN
6411 || exit 1
6412
a90ef4bf 6413@endif cgen
2a4cbe27 6414
a90ef4bf
JM
6415.PHONY: maybe-html-cgen html-cgen
6416maybe-html-cgen:
6417@if cgen
6418maybe-html-cgen: html-cgen
2a4cbe27 6419
a90ef4bf
JM
6420html-cgen: \
6421 configure-cgen
6422 @: $(MAKE); $(unstage)
6423 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6424 r=`${PWD_COMMAND}`; export r; \
6425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6426 $(HOST_EXPORTS) \
b813574b 6427 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6429 done; \
22121df0 6430 echo "Doing html in cgen"; \
a90ef4bf 6431 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6434 "RANLIB=$${RANLIB}" \
0c24b341 6435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6436 html) \
2a4cbe27
NN
6437 || exit 1
6438
a90ef4bf 6439@endif cgen
2a4cbe27 6440
a90ef4bf
JM
6441.PHONY: maybe-TAGS-cgen TAGS-cgen
6442maybe-TAGS-cgen:
6443@if cgen
6444maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6445
a90ef4bf
JM
6446TAGS-cgen: \
6447 configure-cgen
6448 @: $(MAKE); $(unstage)
6449 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6450 r=`${PWD_COMMAND}`; export r; \
6451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6452 $(HOST_EXPORTS) \
b813574b 6453 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6455 done; \
22121df0 6456 echo "Doing TAGS in cgen"; \
a90ef4bf 6457 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6460 "RANLIB=$${RANLIB}" \
0c24b341 6461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6462 TAGS) \
2a4cbe27
NN
6463 || exit 1
6464
a90ef4bf 6465@endif cgen
2a4cbe27 6466
a90ef4bf
JM
6467.PHONY: maybe-install-info-cgen install-info-cgen
6468maybe-install-info-cgen:
6469@if cgen
6470maybe-install-info-cgen: install-info-cgen
2a4cbe27 6471
a90ef4bf
JM
6472install-info-cgen: \
6473 configure-cgen \
6474 info-cgen
6475 @: $(MAKE); $(unstage)
6476 @[ -f ./cgen/Makefile ] || exit 0; \
6477 r=`${PWD_COMMAND}`; export r; \
6478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6479 $(HOST_EXPORTS) \
6480 for flag in $(EXTRA_HOST_FLAGS) ; do \
6481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6482 done; \
22121df0 6483 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6484 (cd $(HOST_SUBDIR)/cgen && \
6485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6487 "RANLIB=$${RANLIB}" \
6488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6489 install-info) \
6490 || exit 1
a7254363 6491
a90ef4bf
JM
6492@endif cgen
6493
6494.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6495maybe-install-pdf-cgen:
6496@if cgen
6497maybe-install-pdf-cgen: install-pdf-cgen
6498
6499install-pdf-cgen: \
6500 configure-cgen \
6501 pdf-cgen
6502 @: $(MAKE); $(unstage)
6503 @[ -f ./cgen/Makefile ] || exit 0; \
6504 r=`${PWD_COMMAND}`; export r; \
c52c6897 6505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6506 $(HOST_EXPORTS) \
6507 for flag in $(EXTRA_HOST_FLAGS) ; do \
6508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6509 done; \
22121df0 6510 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6511 (cd $(HOST_SUBDIR)/cgen && \
6512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6514 "RANLIB=$${RANLIB}" \
6515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6516 install-pdf) \
2a4cbe27
NN
6517 || exit 1
6518
a90ef4bf 6519@endif cgen
a7254363 6520
a90ef4bf
JM
6521.PHONY: maybe-install-html-cgen install-html-cgen
6522maybe-install-html-cgen:
6523@if cgen
6524maybe-install-html-cgen: install-html-cgen
a7254363 6525
a90ef4bf
JM
6526install-html-cgen: \
6527 configure-cgen \
6528 html-cgen
6529 @: $(MAKE); $(unstage)
6530 @[ -f ./cgen/Makefile ] || exit 0; \
6531 r=`${PWD_COMMAND}`; export r; \
c52c6897 6532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6533 $(HOST_EXPORTS) \
a90ef4bf
JM
6534 for flag in $(EXTRA_HOST_FLAGS) ; do \
6535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6536 done; \
22121df0 6537 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6538 (cd $(HOST_SUBDIR)/cgen && \
6539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6541 "RANLIB=$${RANLIB}" \
6542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6543 install-html) \
6544 || exit 1
d545f33b 6545
a90ef4bf
JM
6546@endif cgen
6547
6548.PHONY: maybe-installcheck-cgen installcheck-cgen
6549maybe-installcheck-cgen:
6550@if cgen
6551maybe-installcheck-cgen: installcheck-cgen
6552
6553installcheck-cgen: \
6554 configure-cgen
6555 @: $(MAKE); $(unstage)
6556 @[ -f ./cgen/Makefile ] || exit 0; \
6557 r=`${PWD_COMMAND}`; export r; \
c52c6897 6558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6559 $(HOST_EXPORTS) \
a90ef4bf
JM
6560 for flag in $(EXTRA_HOST_FLAGS) ; do \
6561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6562 done; \
22121df0 6563 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6564 (cd $(HOST_SUBDIR)/cgen && \
6565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6567 "RANLIB=$${RANLIB}" \
6568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6569 installcheck) \
6570 || exit 1
8520c408 6571
a90ef4bf
JM
6572@endif cgen
6573
6574.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6575maybe-mostlyclean-cgen:
6576@if cgen
6577maybe-mostlyclean-cgen: mostlyclean-cgen
6578
6579mostlyclean-cgen:
6580 @: $(MAKE); $(unstage)
6581 @[ -f ./cgen/Makefile ] || exit 0; \
6582 r=`${PWD_COMMAND}`; export r; \
c52c6897 6583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6584 $(HOST_EXPORTS) \
a90ef4bf
JM
6585 for flag in $(EXTRA_HOST_FLAGS) ; do \
6586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6587 done; \
22121df0 6588 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6589 (cd $(HOST_SUBDIR)/cgen && \
6590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6592 "RANLIB=$${RANLIB}" \
6593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6594 mostlyclean) \
6595 || exit 1
8520c408 6596
a90ef4bf
JM
6597@endif cgen
6598
6599.PHONY: maybe-clean-cgen clean-cgen
6600maybe-clean-cgen:
6601@if cgen
6602maybe-clean-cgen: clean-cgen
6603
6604clean-cgen:
6605 @: $(MAKE); $(unstage)
6606 @[ -f ./cgen/Makefile ] || exit 0; \
6607 r=`${PWD_COMMAND}`; export r; \
c52c6897 6608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6609 $(HOST_EXPORTS) \
a90ef4bf
JM
6610 for flag in $(EXTRA_HOST_FLAGS) ; do \
6611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6612 done; \
22121df0 6613 echo "Doing clean in cgen"; \
a90ef4bf
JM
6614 (cd $(HOST_SUBDIR)/cgen && \
6615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6617 "RANLIB=$${RANLIB}" \
6618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6619 clean) \
6620 || exit 1
d545f33b 6621
a90ef4bf
JM
6622@endif cgen
6623
6624.PHONY: maybe-distclean-cgen distclean-cgen
6625maybe-distclean-cgen:
6626@if cgen
6627maybe-distclean-cgen: distclean-cgen
6628
6629distclean-cgen:
6630 @: $(MAKE); $(unstage)
6631 @[ -f ./cgen/Makefile ] || exit 0; \
6632 r=`${PWD_COMMAND}`; export r; \
c52c6897 6633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6634 $(HOST_EXPORTS) \
a90ef4bf
JM
6635 for flag in $(EXTRA_HOST_FLAGS) ; do \
6636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6637 done; \
22121df0 6638 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6639 (cd $(HOST_SUBDIR)/cgen && \
6640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6642 "RANLIB=$${RANLIB}" \
6643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6644 distclean) \
6645 || exit 1
d545f33b 6646
a90ef4bf
JM
6647@endif cgen
6648
6649.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6650maybe-maintainer-clean-cgen:
6651@if cgen
6652maybe-maintainer-clean-cgen: maintainer-clean-cgen
6653
6654maintainer-clean-cgen:
6655 @: $(MAKE); $(unstage)
6656 @[ -f ./cgen/Makefile ] || exit 0; \
6657 r=`${PWD_COMMAND}`; export r; \
c52c6897 6658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6659 $(HOST_EXPORTS) \
a90ef4bf
JM
6660 for flag in $(EXTRA_HOST_FLAGS) ; do \
6661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6662 done; \
22121df0 6663 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6664 (cd $(HOST_SUBDIR)/cgen && \
6665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6667 "RANLIB=$${RANLIB}" \
6668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6669 maintainer-clean) \
6670 || exit 1
6671
6672@endif cgen
6673
6674
6675
6676.PHONY: configure-dejagnu maybe-configure-dejagnu
6677maybe-configure-dejagnu:
6678@if gcc-bootstrap
6679configure-dejagnu: stage_current
6680@endif gcc-bootstrap
6681@if dejagnu
6682maybe-configure-dejagnu: configure-dejagnu
6683configure-dejagnu:
6684 @: $(MAKE); $(unstage)
6685 @r=`${PWD_COMMAND}`; export r; \
6686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6687 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6688 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6689 $(HOST_EXPORTS) \
6690 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6691 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6692 case $(srcdir) in \
6693 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6694 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6695 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6696 esac; \
1b6c0831
L
6697 module_srcdir=dejagnu; \
6698 $(SHELL) \
6699 $$s/$$module_srcdir/configure \
6700 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6701 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6702 --target=${target_alias} \
a90ef4bf
JM
6703 || exit 1
6704@endif dejagnu
d545f33b
PB
6705
6706
6707
6708
6709
a90ef4bf
JM
6710.PHONY: all-dejagnu maybe-all-dejagnu
6711maybe-all-dejagnu:
4f0ef2d8 6712@if gcc-bootstrap
a90ef4bf 6713all-dejagnu: stage_current
4f0ef2d8 6714@endif gcc-bootstrap
a90ef4bf
JM
6715@if dejagnu
6716TARGET-dejagnu=all
6717maybe-all-dejagnu: all-dejagnu
6718all-dejagnu: configure-dejagnu
6719 @: $(MAKE); $(unstage)
c52c6897 6720 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6722 $(HOST_EXPORTS) \
a90ef4bf 6723 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6724 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6725 $(TARGET-dejagnu))
6726@endif dejagnu
4fa63067 6727
a7254363 6728
4fa63067 6729
a90ef4bf
JM
6730
6731.PHONY: check-dejagnu maybe-check-dejagnu
6732maybe-check-dejagnu:
6733@if dejagnu
6734maybe-check-dejagnu: check-dejagnu
6735
6736check-dejagnu:
6737 @: $(MAKE); $(unstage)
4fa63067
NN
6738 @r=`${PWD_COMMAND}`; export r; \
6739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6740 $(HOST_EXPORTS) \
a90ef4bf
JM
6741 (cd $(HOST_SUBDIR)/dejagnu && \
6742 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6743
a90ef4bf 6744@endif dejagnu
2a4cbe27 6745
a90ef4bf
JM
6746.PHONY: install-dejagnu maybe-install-dejagnu
6747maybe-install-dejagnu:
6748@if dejagnu
6749maybe-install-dejagnu: install-dejagnu
2a4cbe27 6750
a90ef4bf
JM
6751install-dejagnu: installdirs
6752 @: $(MAKE); $(unstage)
4fa63067 6753 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6755 $(HOST_EXPORTS) \
a90ef4bf
JM
6756 (cd $(HOST_SUBDIR)/dejagnu && \
6757 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6758
a90ef4bf 6759@endif dejagnu
d545f33b 6760
a90ef4bf
JM
6761.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6762maybe-install-strip-dejagnu:
6763@if dejagnu
6764maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6765
a90ef4bf 6766install-strip-dejagnu: installdirs
9b980aa1
RW
6767 @: $(MAKE); $(unstage)
6768 @r=`${PWD_COMMAND}`; export r; \
6769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6770 $(HOST_EXPORTS) \
a90ef4bf 6771 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6772 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6773
a90ef4bf 6774@endif dejagnu
9b980aa1 6775
56a8fe78 6776# Other targets (info, dvi, pdf, etc.)
d545f33b 6777
a90ef4bf
JM
6778.PHONY: maybe-info-dejagnu info-dejagnu
6779maybe-info-dejagnu:
6780@if dejagnu
6781maybe-info-dejagnu: info-dejagnu
d545f33b 6782
a90ef4bf
JM
6783info-dejagnu: \
6784 configure-dejagnu
6785 @: $(MAKE); $(unstage)
6786 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6787 r=`${PWD_COMMAND}`; export r; \
6788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6789 $(HOST_EXPORTS) \
6790 for flag in $(EXTRA_HOST_FLAGS) ; do \
6791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6792 done; \
22121df0 6793 echo "Doing info in dejagnu"; \
a90ef4bf 6794 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6797 "RANLIB=$${RANLIB}" \
0c24b341 6798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6799 info) \
6800 || exit 1
6801
a90ef4bf 6802@endif dejagnu
d545f33b 6803
a90ef4bf
JM
6804.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6805maybe-dvi-dejagnu:
6806@if dejagnu
6807maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6808
a90ef4bf
JM
6809dvi-dejagnu: \
6810 configure-dejagnu
6811 @: $(MAKE); $(unstage)
6812 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6813 r=`${PWD_COMMAND}`; export r; \
6814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6815 $(HOST_EXPORTS) \
6816 for flag in $(EXTRA_HOST_FLAGS) ; do \
6817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6818 done; \
22121df0 6819 echo "Doing dvi in dejagnu"; \
a90ef4bf 6820 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6823 "RANLIB=$${RANLIB}" \
0c24b341 6824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6825 dvi) \
2a4cbe27
NN
6826 || exit 1
6827
a90ef4bf 6828@endif dejagnu
2a4cbe27 6829
a90ef4bf
JM
6830.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6831maybe-pdf-dejagnu:
6832@if dejagnu
6833maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6834
a90ef4bf
JM
6835pdf-dejagnu: \
6836 configure-dejagnu
6837 @: $(MAKE); $(unstage)
6838 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6839 r=`${PWD_COMMAND}`; export r; \
6840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6841 $(HOST_EXPORTS) \
6842 for flag in $(EXTRA_HOST_FLAGS) ; do \
6843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6844 done; \
22121df0 6845 echo "Doing pdf in dejagnu"; \
a90ef4bf 6846 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6849 "RANLIB=$${RANLIB}" \
0c24b341 6850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6851 pdf) \
6852 || exit 1
6853
a90ef4bf 6854@endif dejagnu
56a8fe78 6855
a90ef4bf
JM
6856.PHONY: maybe-html-dejagnu html-dejagnu
6857maybe-html-dejagnu:
6858@if dejagnu
6859maybe-html-dejagnu: html-dejagnu
6d389afc 6860
a90ef4bf
JM
6861html-dejagnu: \
6862 configure-dejagnu
6863 @: $(MAKE); $(unstage)
6864 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6865 r=`${PWD_COMMAND}`; export r; \
6866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6867 $(HOST_EXPORTS) \
6868 for flag in $(EXTRA_HOST_FLAGS) ; do \
6869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6870 done; \
22121df0 6871 echo "Doing html in dejagnu"; \
a90ef4bf 6872 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
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}" \
6d389afc
MS
6877 html) \
6878 || exit 1
6879
a90ef4bf 6880@endif dejagnu
6d389afc 6881
a90ef4bf
JM
6882.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6883maybe-TAGS-dejagnu:
6884@if dejagnu
6885maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6886
a90ef4bf
JM
6887TAGS-dejagnu: \
6888 configure-dejagnu
6889 @: $(MAKE); $(unstage)
6890 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6891 r=`${PWD_COMMAND}`; export r; \
6892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6893 $(HOST_EXPORTS) \
b813574b 6894 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6896 done; \
22121df0 6897 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6898 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6901 "RANLIB=$${RANLIB}" \
0c24b341 6902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6903 TAGS) \
2a4cbe27
NN
6904 || exit 1
6905
a90ef4bf 6906@endif dejagnu
2a4cbe27 6907
a90ef4bf
JM
6908.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6909maybe-install-info-dejagnu:
6910@if dejagnu
6911maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6912
a90ef4bf
JM
6913install-info-dejagnu: \
6914 configure-dejagnu \
6915 info-dejagnu
6916 @: $(MAKE); $(unstage)
6917 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6918 r=`${PWD_COMMAND}`; export r; \
6919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6920 $(HOST_EXPORTS) \
b813574b 6921 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6923 done; \
22121df0 6924 echo "Doing install-info in dejagnu"; \
a90ef4bf 6925 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6928 "RANLIB=$${RANLIB}" \
0c24b341 6929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6930 install-info) \
2a4cbe27
NN
6931 || exit 1
6932
a90ef4bf 6933@endif dejagnu
2a4cbe27 6934
a90ef4bf
JM
6935.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6936maybe-install-pdf-dejagnu:
6937@if dejagnu
6938maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6939
a90ef4bf
JM
6940install-pdf-dejagnu: \
6941 configure-dejagnu \
6942 pdf-dejagnu
6943 @: $(MAKE); $(unstage)
6944 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6945 r=`${PWD_COMMAND}`; export r; \
6946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6947 $(HOST_EXPORTS) \
6948 for flag in $(EXTRA_HOST_FLAGS) ; do \
6949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6950 done; \
22121df0 6951 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 6952 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6955 "RANLIB=$${RANLIB}" \
0c24b341 6956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6957 install-pdf) \
6958 || exit 1
6959
a90ef4bf 6960@endif dejagnu
a3ca38d2 6961
a90ef4bf
JM
6962.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6963maybe-install-html-dejagnu:
6964@if dejagnu
6965maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6966
a90ef4bf
JM
6967install-html-dejagnu: \
6968 configure-dejagnu \
6969 html-dejagnu
6970 @: $(MAKE); $(unstage)
6971 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6972 r=`${PWD_COMMAND}`; export r; \
6973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6974 $(HOST_EXPORTS) \
6975 for flag in $(EXTRA_HOST_FLAGS) ; do \
6976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6977 done; \
22121df0 6978 echo "Doing install-html in dejagnu"; \
a90ef4bf 6979 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
6980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6982 "RANLIB=$${RANLIB}" \
0c24b341 6983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6984 install-html) \
6985 || exit 1
6986
a90ef4bf 6987@endif dejagnu
108a6f8e 6988
a90ef4bf
JM
6989.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6990maybe-installcheck-dejagnu:
6991@if dejagnu
6992maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 6993
a90ef4bf
JM
6994installcheck-dejagnu: \
6995 configure-dejagnu
6996 @: $(MAKE); $(unstage)
6997 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6998 r=`${PWD_COMMAND}`; export r; \
6999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7000 $(HOST_EXPORTS) \
b813574b 7001 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7003 done; \
22121df0 7004 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7005 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7008 "RANLIB=$${RANLIB}" \
0c24b341 7009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7010 installcheck) \
2a4cbe27
NN
7011 || exit 1
7012
a90ef4bf 7013@endif dejagnu
2a4cbe27 7014
a90ef4bf
JM
7015.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7016maybe-mostlyclean-dejagnu:
7017@if dejagnu
7018maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7019
a90ef4bf
JM
7020mostlyclean-dejagnu:
7021 @: $(MAKE); $(unstage)
7022 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7023 r=`${PWD_COMMAND}`; export r; \
7024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7025 $(HOST_EXPORTS) \
b813574b 7026 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7028 done; \
22121df0 7029 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7030 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7033 "RANLIB=$${RANLIB}" \
0c24b341 7034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7035 mostlyclean) \
2a4cbe27
NN
7036 || exit 1
7037
a90ef4bf 7038@endif dejagnu
2a4cbe27 7039
a90ef4bf
JM
7040.PHONY: maybe-clean-dejagnu clean-dejagnu
7041maybe-clean-dejagnu:
7042@if dejagnu
7043maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7044
a90ef4bf
JM
7045clean-dejagnu:
7046 @: $(MAKE); $(unstage)
7047 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7048 r=`${PWD_COMMAND}`; export r; \
7049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7050 $(HOST_EXPORTS) \
b813574b 7051 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7053 done; \
22121df0 7054 echo "Doing clean in dejagnu"; \
a90ef4bf 7055 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7058 "RANLIB=$${RANLIB}" \
0c24b341 7059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7060 clean) \
2a4cbe27
NN
7061 || exit 1
7062
a90ef4bf 7063@endif dejagnu
2a4cbe27 7064
a90ef4bf
JM
7065.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7066maybe-distclean-dejagnu:
7067@if dejagnu
7068maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7069
a90ef4bf
JM
7070distclean-dejagnu:
7071 @: $(MAKE); $(unstage)
7072 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7073 r=`${PWD_COMMAND}`; export r; \
7074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7075 $(HOST_EXPORTS) \
b813574b 7076 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7078 done; \
22121df0 7079 echo "Doing distclean in dejagnu"; \
a90ef4bf 7080 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7083 "RANLIB=$${RANLIB}" \
0c24b341 7084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7085 distclean) \
2a4cbe27
NN
7086 || exit 1
7087
a90ef4bf 7088@endif dejagnu
2a4cbe27 7089
a90ef4bf
JM
7090.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7091maybe-maintainer-clean-dejagnu:
7092@if dejagnu
7093maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7094
a90ef4bf
JM
7095maintainer-clean-dejagnu:
7096 @: $(MAKE); $(unstage)
7097 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7098 r=`${PWD_COMMAND}`; export r; \
7099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7100 $(HOST_EXPORTS) \
b813574b 7101 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7103 done; \
22121df0 7104 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7105 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7108 "RANLIB=$${RANLIB}" \
0c24b341 7109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7110 maintainer-clean) \
2a4cbe27
NN
7111 || exit 1
7112
a90ef4bf 7113@endif dejagnu
2a4cbe27 7114
2a4cbe27 7115
a7254363 7116
a90ef4bf
JM
7117.PHONY: configure-etc maybe-configure-etc
7118maybe-configure-etc:
4f0ef2d8 7119@if gcc-bootstrap
a90ef4bf 7120configure-etc: stage_current
4f0ef2d8 7121@endif gcc-bootstrap
a90ef4bf
JM
7122@if etc
7123maybe-configure-etc: configure-etc
7124configure-etc:
0aed8855 7125 @: $(MAKE); $(unstage)
c52c6897 7126 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7128 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7129 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7130 $(HOST_EXPORTS) \
a90ef4bf
JM
7131 echo Configuring in $(HOST_SUBDIR)/etc; \
7132 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7133 case $(srcdir) in \
b00612cc 7134 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7135 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7136 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7137 esac; \
1b6c0831
L
7138 module_srcdir=etc; \
7139 $(SHELL) \
7140 $$s/$$module_srcdir/configure \
7141 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7142 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7143 --target=${target_alias} \
2a4cbe27 7144 || exit 1
a90ef4bf 7145@endif etc
2a4cbe27 7146
a7254363
PB
7147
7148
d545f33b
PB
7149
7150
a90ef4bf
JM
7151.PHONY: all-etc maybe-all-etc
7152maybe-all-etc:
4f0ef2d8 7153@if gcc-bootstrap
a90ef4bf 7154all-etc: stage_current
4f0ef2d8 7155@endif gcc-bootstrap
a90ef4bf
JM
7156@if etc
7157TARGET-etc=all
7158maybe-all-etc: all-etc
7159all-etc: configure-etc
0aed8855 7160 @: $(MAKE); $(unstage)
4fa63067
NN
7161 @r=`${PWD_COMMAND}`; export r; \
7162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7163 $(HOST_EXPORTS) \
a90ef4bf 7164 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7165 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7166 $(TARGET-etc))
7167@endif etc
2a4cbe27 7168
a7254363 7169
d545f33b
PB
7170
7171
a90ef4bf
JM
7172.PHONY: check-etc maybe-check-etc
7173maybe-check-etc:
7174@if etc
7175maybe-check-etc: check-etc
2a4cbe27 7176
a90ef4bf 7177check-etc:
0aed8855 7178 @: $(MAKE); $(unstage)
a90ef4bf
JM
7179 @r=`${PWD_COMMAND}`; export r; \
7180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7181 $(HOST_EXPORTS) \
a90ef4bf
JM
7182 (cd $(HOST_SUBDIR)/etc && \
7183 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7184
a90ef4bf 7185@endif etc
4fa63067 7186
a90ef4bf
JM
7187.PHONY: install-etc maybe-install-etc
7188maybe-install-etc:
7189@if etc
7190maybe-install-etc: install-etc
4fa63067 7191
a90ef4bf 7192install-etc: installdirs
0aed8855 7193 @: $(MAKE); $(unstage)
4fa63067 7194 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7196 $(HOST_EXPORTS) \
a90ef4bf 7197 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7198 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7199
a90ef4bf 7200@endif etc
2a4cbe27 7201
a90ef4bf
JM
7202.PHONY: install-strip-etc maybe-install-strip-etc
7203maybe-install-strip-etc:
7204@if etc
7205maybe-install-strip-etc: install-strip-etc
9b980aa1 7206
a90ef4bf 7207install-strip-etc: installdirs
9b980aa1
RW
7208 @: $(MAKE); $(unstage)
7209 @r=`${PWD_COMMAND}`; export r; \
7210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7211 $(HOST_EXPORTS) \
a90ef4bf 7212 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7213 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7214
a90ef4bf 7215@endif etc
9b980aa1 7216
56a8fe78 7217# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7218
a90ef4bf
JM
7219.PHONY: maybe-info-etc info-etc
7220maybe-info-etc:
7221@if etc
7222maybe-info-etc: info-etc
4fa63067 7223
a90ef4bf
JM
7224info-etc: \
7225 configure-etc
0aed8855 7226 @: $(MAKE); $(unstage)
a90ef4bf 7227 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7228 r=`${PWD_COMMAND}`; export r; \
7229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7230 $(HOST_EXPORTS) \
b813574b 7231 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7233 done; \
22121df0 7234 echo "Doing info in etc"; \
a90ef4bf 7235 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7238 "RANLIB=$${RANLIB}" \
0c24b341 7239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7240 info) \
2a4cbe27
NN
7241 || exit 1
7242
a90ef4bf 7243@endif etc
2a4cbe27 7244
a90ef4bf
JM
7245.PHONY: maybe-dvi-etc dvi-etc
7246maybe-dvi-etc:
7247@if etc
7248maybe-dvi-etc: dvi-etc
2a4cbe27 7249
a90ef4bf
JM
7250dvi-etc: \
7251 configure-etc
0aed8855 7252 @: $(MAKE); $(unstage)
a90ef4bf 7253 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7254 r=`${PWD_COMMAND}`; export r; \
7255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7256 $(HOST_EXPORTS) \
b813574b 7257 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7259 done; \
22121df0 7260 echo "Doing dvi in etc"; \
a90ef4bf 7261 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7264 "RANLIB=$${RANLIB}" \
0c24b341 7265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7266 dvi) \
2a4cbe27
NN
7267 || exit 1
7268
a90ef4bf 7269@endif etc
2a4cbe27 7270
a90ef4bf
JM
7271.PHONY: maybe-pdf-etc pdf-etc
7272maybe-pdf-etc:
7273@if etc
7274maybe-pdf-etc: pdf-etc
56a8fe78 7275
a90ef4bf
JM
7276pdf-etc: \
7277 configure-etc
56a8fe78 7278 @: $(MAKE); $(unstage)
a90ef4bf 7279 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7280 r=`${PWD_COMMAND}`; export r; \
7281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7282 $(HOST_EXPORTS) \
7283 for flag in $(EXTRA_HOST_FLAGS) ; do \
7284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7285 done; \
22121df0 7286 echo "Doing pdf in etc"; \
a90ef4bf 7287 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
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}" \
56a8fe78
DD
7292 pdf) \
7293 || exit 1
7294
a90ef4bf 7295@endif etc
56a8fe78 7296
a90ef4bf
JM
7297.PHONY: maybe-html-etc html-etc
7298maybe-html-etc:
7299@if etc
7300maybe-html-etc: html-etc
6d389afc 7301
a90ef4bf
JM
7302html-etc: \
7303 configure-etc
0aed8855 7304 @: $(MAKE); $(unstage)
a90ef4bf 7305 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7306 r=`${PWD_COMMAND}`; export r; \
7307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7308 $(HOST_EXPORTS) \
7309 for flag in $(EXTRA_HOST_FLAGS) ; do \
7310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7311 done; \
22121df0 7312 echo "Doing html in etc"; \
a90ef4bf 7313 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7316 "RANLIB=$${RANLIB}" \
0c24b341 7317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7318 html) \
7319 || exit 1
7320
a90ef4bf 7321@endif etc
6d389afc 7322
a90ef4bf
JM
7323.PHONY: maybe-TAGS-etc TAGS-etc
7324maybe-TAGS-etc:
7325@if etc
7326maybe-TAGS-etc: TAGS-etc
2a4cbe27 7327
a90ef4bf
JM
7328TAGS-etc: \
7329 configure-etc
0aed8855 7330 @: $(MAKE); $(unstage)
a90ef4bf 7331 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7332 r=`${PWD_COMMAND}`; export r; \
7333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7334 $(HOST_EXPORTS) \
b813574b 7335 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7337 done; \
22121df0 7338 echo "Doing TAGS in etc"; \
a90ef4bf 7339 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7342 "RANLIB=$${RANLIB}" \
0c24b341 7343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7344 TAGS) \
2a4cbe27
NN
7345 || exit 1
7346
a90ef4bf 7347@endif etc
2a4cbe27 7348
a90ef4bf
JM
7349.PHONY: maybe-install-info-etc install-info-etc
7350maybe-install-info-etc:
7351@if etc
7352maybe-install-info-etc: install-info-etc
2a4cbe27 7353
a90ef4bf
JM
7354install-info-etc: \
7355 configure-etc \
7356 info-etc
0aed8855 7357 @: $(MAKE); $(unstage)
a90ef4bf 7358 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7359 r=`${PWD_COMMAND}`; export r; \
7360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7361 $(HOST_EXPORTS) \
b813574b 7362 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7364 done; \
22121df0 7365 echo "Doing install-info in etc"; \
a90ef4bf 7366 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7369 "RANLIB=$${RANLIB}" \
0c24b341 7370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7371 install-info) \
2a4cbe27
NN
7372 || exit 1
7373
a90ef4bf 7374@endif etc
2a4cbe27 7375
a90ef4bf
JM
7376.PHONY: maybe-install-pdf-etc install-pdf-etc
7377maybe-install-pdf-etc:
7378@if etc
7379maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7380
a90ef4bf
JM
7381install-pdf-etc: \
7382 configure-etc \
7383 pdf-etc
a3ca38d2 7384 @: $(MAKE); $(unstage)
a90ef4bf 7385 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7386 r=`${PWD_COMMAND}`; export r; \
7387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7388 $(HOST_EXPORTS) \
7389 for flag in $(EXTRA_HOST_FLAGS) ; do \
7390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7391 done; \
22121df0 7392 echo "Doing install-pdf in etc"; \
a90ef4bf 7393 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7396 "RANLIB=$${RANLIB}" \
0c24b341 7397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7398 install-pdf) \
7399 || exit 1
7400
a90ef4bf 7401@endif etc
a3ca38d2 7402
a90ef4bf
JM
7403.PHONY: maybe-install-html-etc install-html-etc
7404maybe-install-html-etc:
7405@if etc
7406maybe-install-html-etc: install-html-etc
108a6f8e 7407
a90ef4bf
JM
7408install-html-etc: \
7409 configure-etc \
7410 html-etc
108a6f8e 7411 @: $(MAKE); $(unstage)
a90ef4bf 7412 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7413 r=`${PWD_COMMAND}`; export r; \
7414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7415 $(HOST_EXPORTS) \
7416 for flag in $(EXTRA_HOST_FLAGS) ; do \
7417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7418 done; \
22121df0 7419 echo "Doing install-html in etc"; \
a90ef4bf 7420 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7423 "RANLIB=$${RANLIB}" \
0c24b341 7424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7425 install-html) \
7426 || exit 1
7427
a90ef4bf 7428@endif etc
108a6f8e 7429
a90ef4bf
JM
7430.PHONY: maybe-installcheck-etc installcheck-etc
7431maybe-installcheck-etc:
7432@if etc
7433maybe-installcheck-etc: installcheck-etc
2a4cbe27 7434
a90ef4bf
JM
7435installcheck-etc: \
7436 configure-etc
0aed8855 7437 @: $(MAKE); $(unstage)
a90ef4bf 7438 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7439 r=`${PWD_COMMAND}`; export r; \
7440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7441 $(HOST_EXPORTS) \
b813574b 7442 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7444 done; \
22121df0 7445 echo "Doing installcheck in etc"; \
a90ef4bf 7446 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7449 "RANLIB=$${RANLIB}" \
0c24b341 7450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7451 installcheck) \
2a4cbe27
NN
7452 || exit 1
7453
a90ef4bf 7454@endif etc
2a4cbe27 7455
a90ef4bf
JM
7456.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7457maybe-mostlyclean-etc:
7458@if etc
7459maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7460
a90ef4bf 7461mostlyclean-etc:
0aed8855 7462 @: $(MAKE); $(unstage)
a90ef4bf 7463 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7464 r=`${PWD_COMMAND}`; export r; \
7465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7466 $(HOST_EXPORTS) \
b813574b 7467 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7469 done; \
22121df0 7470 echo "Doing mostlyclean in etc"; \
a90ef4bf 7471 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7474 "RANLIB=$${RANLIB}" \
0c24b341 7475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7476 mostlyclean) \
2a4cbe27
NN
7477 || exit 1
7478
a90ef4bf 7479@endif etc
2a4cbe27 7480
a90ef4bf
JM
7481.PHONY: maybe-clean-etc clean-etc
7482maybe-clean-etc:
7483@if etc
7484maybe-clean-etc: clean-etc
2a4cbe27 7485
a90ef4bf 7486clean-etc:
0aed8855 7487 @: $(MAKE); $(unstage)
a90ef4bf 7488 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7489 r=`${PWD_COMMAND}`; export r; \
7490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7491 $(HOST_EXPORTS) \
b813574b 7492 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7494 done; \
22121df0 7495 echo "Doing clean in etc"; \
a90ef4bf 7496 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7499 "RANLIB=$${RANLIB}" \
0c24b341 7500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7501 clean) \
2a4cbe27
NN
7502 || exit 1
7503
a90ef4bf 7504@endif etc
2a4cbe27 7505
a90ef4bf
JM
7506.PHONY: maybe-distclean-etc distclean-etc
7507maybe-distclean-etc:
7508@if etc
7509maybe-distclean-etc: distclean-etc
2a4cbe27 7510
a90ef4bf 7511distclean-etc:
0aed8855 7512 @: $(MAKE); $(unstage)
a90ef4bf 7513 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7514 r=`${PWD_COMMAND}`; export r; \
7515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7516 $(HOST_EXPORTS) \
b813574b 7517 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7519 done; \
22121df0 7520 echo "Doing distclean in etc"; \
a90ef4bf 7521 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7524 "RANLIB=$${RANLIB}" \
0c24b341 7525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7526 distclean) \
2a4cbe27
NN
7527 || exit 1
7528
a90ef4bf 7529@endif etc
2a4cbe27 7530
a90ef4bf
JM
7531.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7532maybe-maintainer-clean-etc:
7533@if etc
7534maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7535
a90ef4bf 7536maintainer-clean-etc:
0aed8855 7537 @: $(MAKE); $(unstage)
a90ef4bf 7538 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7539 r=`${PWD_COMMAND}`; export r; \
7540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7541 $(HOST_EXPORTS) \
b813574b 7542 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7544 done; \
22121df0 7545 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7546 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7549 "RANLIB=$${RANLIB}" \
0c24b341 7550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7551 maintainer-clean) \
2a4cbe27
NN
7552 || exit 1
7553
a90ef4bf 7554@endif etc
2a4cbe27 7555
2a4cbe27 7556
a7254363 7557
a90ef4bf
JM
7558.PHONY: configure-fastjar maybe-configure-fastjar
7559maybe-configure-fastjar:
4f0ef2d8 7560@if gcc-bootstrap
a90ef4bf 7561configure-fastjar: stage_current
4f0ef2d8 7562@endif gcc-bootstrap
a90ef4bf
JM
7563@if fastjar
7564maybe-configure-fastjar: configure-fastjar
7565configure-fastjar:
0aed8855 7566 @: $(MAKE); $(unstage)
c52c6897 7567 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7569 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7570 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7571 $(HOST_EXPORTS) \
a90ef4bf
JM
7572 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7573 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7574 case $(srcdir) in \
b00612cc 7575 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7576 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7577 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7578 esac; \
1b6c0831
L
7579 module_srcdir=fastjar; \
7580 $(SHELL) \
7581 $$s/$$module_srcdir/configure \
7582 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7583 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7584 --target=${target_alias} \
4fa63067 7585 || exit 1
a90ef4bf 7586@endif fastjar
4fa63067 7587
a7254363
PB
7588
7589
d545f33b
PB
7590
7591
a90ef4bf
JM
7592.PHONY: all-fastjar maybe-all-fastjar
7593maybe-all-fastjar:
4f0ef2d8 7594@if gcc-bootstrap
a90ef4bf 7595all-fastjar: stage_current
4f0ef2d8 7596@endif gcc-bootstrap
a90ef4bf
JM
7597@if fastjar
7598TARGET-fastjar=all
7599maybe-all-fastjar: all-fastjar
7600all-fastjar: configure-fastjar
0aed8855 7601 @: $(MAKE); $(unstage)
4fa63067
NN
7602 @r=`${PWD_COMMAND}`; export r; \
7603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7604 $(HOST_EXPORTS) \
a90ef4bf 7605 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7606 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7607 $(TARGET-fastjar))
7608@endif fastjar
4fa63067 7609
a7254363 7610
d545f33b
PB
7611
7612
a90ef4bf
JM
7613.PHONY: check-fastjar maybe-check-fastjar
7614maybe-check-fastjar:
7615@if fastjar
7616maybe-check-fastjar: check-fastjar
4fa63067
NN
7617
7618# This module is only tested in a native toolchain.
a90ef4bf 7619check-fastjar:
0aed8855 7620 @: $(MAKE); $(unstage)
22121df0 7621 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7622 r=`${PWD_COMMAND}`; export r; \
7623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7624 $(HOST_EXPORTS) \
a90ef4bf 7625 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7626 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7627 fi
7628
a90ef4bf 7629@endif fastjar
4fa63067 7630
a90ef4bf
JM
7631.PHONY: install-fastjar maybe-install-fastjar
7632maybe-install-fastjar:
7633@if fastjar
7634maybe-install-fastjar: install-fastjar
4fa63067 7635
a90ef4bf 7636install-fastjar: installdirs
0aed8855 7637 @: $(MAKE); $(unstage)
4fa63067
NN
7638 @r=`${PWD_COMMAND}`; export r; \
7639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7640 $(HOST_EXPORTS) \
a90ef4bf 7641 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7642 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7643
a90ef4bf 7644@endif fastjar
4fa63067 7645
a90ef4bf
JM
7646.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7647maybe-install-strip-fastjar:
7648@if fastjar
7649maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7650
a90ef4bf 7651install-strip-fastjar: installdirs
9b980aa1
RW
7652 @: $(MAKE); $(unstage)
7653 @r=`${PWD_COMMAND}`; export r; \
7654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7655 $(HOST_EXPORTS) \
a90ef4bf 7656 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7657 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7658
a90ef4bf 7659@endif fastjar
9b980aa1 7660
56a8fe78 7661# Other targets (info, dvi, pdf, etc.)
4fa63067 7662
a90ef4bf
JM
7663.PHONY: maybe-info-fastjar info-fastjar
7664maybe-info-fastjar:
7665@if fastjar
7666maybe-info-fastjar: info-fastjar
4fa63067 7667
a90ef4bf
JM
7668info-fastjar: \
7669 configure-fastjar
0aed8855 7670 @: $(MAKE); $(unstage)
a90ef4bf 7671 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7672 r=`${PWD_COMMAND}`; export r; \
7673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7674 $(HOST_EXPORTS) \
b813574b 7675 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7677 done; \
22121df0 7678 echo "Doing info in fastjar"; \
a90ef4bf 7679 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7682 "RANLIB=$${RANLIB}" \
0c24b341 7683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7684 info) \
2a4cbe27
NN
7685 || exit 1
7686
a90ef4bf 7687@endif fastjar
2a4cbe27 7688
a90ef4bf
JM
7689.PHONY: maybe-dvi-fastjar dvi-fastjar
7690maybe-dvi-fastjar:
7691@if fastjar
7692maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7693
a90ef4bf
JM
7694dvi-fastjar: \
7695 configure-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; \
22121df0 7704 echo "Doing dvi in fastjar"; \
a90ef4bf 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 dvi) \
2a4cbe27
NN
7711 || exit 1
7712
a90ef4bf 7713@endif fastjar
2a4cbe27 7714
a90ef4bf
JM
7715.PHONY: maybe-pdf-fastjar pdf-fastjar
7716maybe-pdf-fastjar:
7717@if fastjar
7718maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7719
a90ef4bf
JM
7720pdf-fastjar: \
7721 configure-fastjar
56a8fe78 7722 @: $(MAKE); $(unstage)
a90ef4bf 7723 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7724 r=`${PWD_COMMAND}`; export r; \
7725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7726 $(HOST_EXPORTS) \
7727 for flag in $(EXTRA_HOST_FLAGS) ; do \
7728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7729 done; \
22121df0 7730 echo "Doing pdf in fastjar"; \
a90ef4bf 7731 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7734 "RANLIB=$${RANLIB}" \
0c24b341 7735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7736 pdf) \
7737 || exit 1
7738
a90ef4bf 7739@endif fastjar
56a8fe78 7740
a90ef4bf
JM
7741.PHONY: maybe-html-fastjar html-fastjar
7742maybe-html-fastjar:
7743@if fastjar
7744maybe-html-fastjar: html-fastjar
6d389afc 7745
a90ef4bf
JM
7746html-fastjar: \
7747 configure-fastjar
0aed8855 7748 @: $(MAKE); $(unstage)
a90ef4bf 7749 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7750 r=`${PWD_COMMAND}`; export r; \
7751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7752 $(HOST_EXPORTS) \
7753 for flag in $(EXTRA_HOST_FLAGS) ; do \
7754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7755 done; \
22121df0 7756 echo "Doing html in fastjar"; \
a90ef4bf 7757 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7760 "RANLIB=$${RANLIB}" \
0c24b341 7761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7762 html) \
7763 || exit 1
7764
a90ef4bf 7765@endif fastjar
6d389afc 7766
a90ef4bf
JM
7767.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7768maybe-TAGS-fastjar:
7769@if fastjar
7770maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7771
a90ef4bf
JM
7772TAGS-fastjar: \
7773 configure-fastjar
0aed8855 7774 @: $(MAKE); $(unstage)
a90ef4bf 7775 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7776 r=`${PWD_COMMAND}`; export r; \
7777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7778 $(HOST_EXPORTS) \
b813574b 7779 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7781 done; \
22121df0 7782 echo "Doing TAGS in fastjar"; \
a90ef4bf 7783 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7786 "RANLIB=$${RANLIB}" \
0c24b341 7787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7788 TAGS) \
2a4cbe27
NN
7789 || exit 1
7790
a90ef4bf 7791@endif fastjar
2a4cbe27 7792
a90ef4bf
JM
7793.PHONY: maybe-install-info-fastjar install-info-fastjar
7794maybe-install-info-fastjar:
7795@if fastjar
7796maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7797
a90ef4bf
JM
7798install-info-fastjar: \
7799 configure-fastjar \
7800 info-fastjar
0aed8855 7801 @: $(MAKE); $(unstage)
a90ef4bf 7802 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7803 r=`${PWD_COMMAND}`; export r; \
7804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7805 $(HOST_EXPORTS) \
b813574b 7806 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7808 done; \
22121df0 7809 echo "Doing install-info in fastjar"; \
a90ef4bf 7810 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7813 "RANLIB=$${RANLIB}" \
0c24b341 7814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7815 install-info) \
2a4cbe27
NN
7816 || exit 1
7817
a90ef4bf 7818@endif fastjar
2a4cbe27 7819
a90ef4bf
JM
7820.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7821maybe-install-pdf-fastjar:
7822@if fastjar
7823maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7824
a90ef4bf
JM
7825install-pdf-fastjar: \
7826 configure-fastjar \
7827 pdf-fastjar
a3ca38d2 7828 @: $(MAKE); $(unstage)
a90ef4bf 7829 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7830 r=`${PWD_COMMAND}`; export r; \
7831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7832 $(HOST_EXPORTS) \
7833 for flag in $(EXTRA_HOST_FLAGS) ; do \
7834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7835 done; \
22121df0 7836 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7837 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7840 "RANLIB=$${RANLIB}" \
0c24b341 7841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7842 install-pdf) \
7843 || exit 1
7844
a90ef4bf 7845@endif fastjar
a3ca38d2 7846
a90ef4bf
JM
7847.PHONY: maybe-install-html-fastjar install-html-fastjar
7848maybe-install-html-fastjar:
7849@if fastjar
7850maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7851
a90ef4bf
JM
7852install-html-fastjar: \
7853 configure-fastjar \
7854 html-fastjar
108a6f8e 7855 @: $(MAKE); $(unstage)
a90ef4bf 7856 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7857 r=`${PWD_COMMAND}`; export r; \
7858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7859 $(HOST_EXPORTS) \
7860 for flag in $(EXTRA_HOST_FLAGS) ; do \
7861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7862 done; \
22121df0 7863 echo "Doing install-html in fastjar"; \
a90ef4bf 7864 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7867 "RANLIB=$${RANLIB}" \
0c24b341 7868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7869 install-html) \
7870 || exit 1
7871
a90ef4bf 7872@endif fastjar
108a6f8e 7873
a90ef4bf
JM
7874.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7875maybe-installcheck-fastjar:
7876@if fastjar
7877maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7878
a90ef4bf
JM
7879installcheck-fastjar: \
7880 configure-fastjar
0aed8855 7881 @: $(MAKE); $(unstage)
a90ef4bf 7882 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7883 r=`${PWD_COMMAND}`; export r; \
7884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7885 $(HOST_EXPORTS) \
b813574b 7886 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7888 done; \
22121df0 7889 echo "Doing installcheck in fastjar"; \
a90ef4bf 7890 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7893 "RANLIB=$${RANLIB}" \
0c24b341 7894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7895 installcheck) \
2a4cbe27
NN
7896 || exit 1
7897
a90ef4bf 7898@endif fastjar
2a4cbe27 7899
a90ef4bf
JM
7900.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7901maybe-mostlyclean-fastjar:
7902@if fastjar
7903maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7904
a90ef4bf 7905mostlyclean-fastjar:
0aed8855 7906 @: $(MAKE); $(unstage)
a90ef4bf 7907 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7908 r=`${PWD_COMMAND}`; export r; \
7909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7910 $(HOST_EXPORTS) \
b813574b 7911 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7913 done; \
22121df0 7914 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7915 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7918 "RANLIB=$${RANLIB}" \
0c24b341 7919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7920 mostlyclean) \
2a4cbe27
NN
7921 || exit 1
7922
a90ef4bf 7923@endif fastjar
2a4cbe27 7924
a90ef4bf
JM
7925.PHONY: maybe-clean-fastjar clean-fastjar
7926maybe-clean-fastjar:
7927@if fastjar
7928maybe-clean-fastjar: clean-fastjar
2a4cbe27 7929
a90ef4bf 7930clean-fastjar:
0aed8855 7931 @: $(MAKE); $(unstage)
a90ef4bf 7932 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7933 r=`${PWD_COMMAND}`; export r; \
7934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7935 $(HOST_EXPORTS) \
b813574b 7936 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7938 done; \
22121df0 7939 echo "Doing clean in fastjar"; \
a90ef4bf 7940 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7943 "RANLIB=$${RANLIB}" \
0c24b341 7944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7945 clean) \
2a4cbe27
NN
7946 || exit 1
7947
a90ef4bf 7948@endif fastjar
2a4cbe27 7949
a90ef4bf
JM
7950.PHONY: maybe-distclean-fastjar distclean-fastjar
7951maybe-distclean-fastjar:
7952@if fastjar
7953maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7954
a90ef4bf 7955distclean-fastjar:
0aed8855 7956 @: $(MAKE); $(unstage)
a90ef4bf 7957 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7958 r=`${PWD_COMMAND}`; export r; \
7959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7960 $(HOST_EXPORTS) \
b813574b 7961 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7963 done; \
22121df0 7964 echo "Doing distclean in fastjar"; \
a90ef4bf 7965 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7968 "RANLIB=$${RANLIB}" \
0c24b341 7969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7970 distclean) \
2a4cbe27
NN
7971 || exit 1
7972
a90ef4bf 7973@endif fastjar
2a4cbe27 7974
a90ef4bf
JM
7975.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7976maybe-maintainer-clean-fastjar:
7977@if fastjar
7978maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7979
7980maintainer-clean-fastjar:
0aed8855 7981 @: $(MAKE); $(unstage)
a90ef4bf 7982 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7983 r=`${PWD_COMMAND}`; export r; \
7984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7985 $(HOST_EXPORTS) \
b813574b 7986 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7988 done; \
22121df0 7989 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 7990 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7993 "RANLIB=$${RANLIB}" \
0c24b341 7994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7995 maintainer-clean) \
2a4cbe27
NN
7996 || exit 1
7997
a90ef4bf 7998@endif fastjar
2a4cbe27 7999
2a4cbe27 8000
a7254363 8001
a90ef4bf
JM
8002.PHONY: configure-fixincludes maybe-configure-fixincludes
8003maybe-configure-fixincludes:
4f0ef2d8 8004@if gcc-bootstrap
a90ef4bf 8005configure-fixincludes: stage_current
4f0ef2d8 8006@endif gcc-bootstrap
a90ef4bf
JM
8007@if fixincludes
8008maybe-configure-fixincludes: configure-fixincludes
8009configure-fixincludes:
c52c6897 8010 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8012 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8013 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8014 $(HOST_EXPORTS) \
a90ef4bf
JM
8015 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8016 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8017 case $(srcdir) in \
b00612cc 8018 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8019 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8020 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8021 esac; \
1b6c0831
L
8022 module_srcdir=fixincludes; \
8023 $(SHELL) \
8024 $$s/$$module_srcdir/configure \
8025 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8026 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8027 --target=${target_alias} \
4fa63067 8028 || exit 1
a90ef4bf 8029@endif fixincludes
4fa63067 8030
a7254363
PB
8031
8032
201f096f 8033.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8034maybe-configure-stage1-fixincludes:
8035@if fixincludes-bootstrap
8036maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8037configure-stage1-fixincludes:
8038 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8039 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8040 @r=`${PWD_COMMAND}`; export r; \
8041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8042 TFLAGS="$(STAGE1_TFLAGS)"; \
8043 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8044 $(HOST_EXPORTS) \
8045 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8046 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8047 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8048 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8049 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8050 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8051 case $(srcdir) in \
8052 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8053 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8054 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8055 esac; \
1b6c0831
L
8056 module_srcdir=fixincludes; \
8057 $(SHELL) $$s/$$module_srcdir/configure \
8058 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8059 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8060 --target=${target_alias} \
8061 \
201f096f 8062 $(STAGE1_CONFIGURE_FLAGS)
8063@endif fixincludes-bootstrap
8064
8065.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8066maybe-configure-stage2-fixincludes:
8067@if fixincludes-bootstrap
8068maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8069configure-stage2-fixincludes:
8070 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8071 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8072 @r=`${PWD_COMMAND}`; export r; \
8073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8074 TFLAGS="$(STAGE2_TFLAGS)"; \
8075 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8076 $(HOST_EXPORTS) \
8077 $(POSTSTAGE1_HOST_EXPORTS) \
8078 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8079 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8080 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8081 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8082 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8083 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8084 case $(srcdir) in \
8085 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8086 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8087 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8088 esac; \
1b6c0831
L
8089 module_srcdir=fixincludes; \
8090 $(SHELL) $$s/$$module_srcdir/configure \
8091 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8092 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8093 --target=${target_alias} \
22121df0 8094 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8095 $(STAGE2_CONFIGURE_FLAGS)
8096@endif fixincludes-bootstrap
8097
8098.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8099maybe-configure-stage3-fixincludes:
8100@if fixincludes-bootstrap
8101maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8102configure-stage3-fixincludes:
8103 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8104 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8105 @r=`${PWD_COMMAND}`; export r; \
8106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8107 TFLAGS="$(STAGE3_TFLAGS)"; \
8108 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8109 $(HOST_EXPORTS) \
8110 $(POSTSTAGE1_HOST_EXPORTS) \
8111 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8112 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8113 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8114 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8115 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8116 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8117 case $(srcdir) in \
8118 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8119 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8120 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8121 esac; \
1b6c0831
L
8122 module_srcdir=fixincludes; \
8123 $(SHELL) $$s/$$module_srcdir/configure \
8124 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8125 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8126 --target=${target_alias} \
22121df0 8127 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8128 $(STAGE3_CONFIGURE_FLAGS)
8129@endif fixincludes-bootstrap
8130
8131.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8132maybe-configure-stage4-fixincludes:
8133@if fixincludes-bootstrap
8134maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8135configure-stage4-fixincludes:
8136 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8137 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8138 @r=`${PWD_COMMAND}`; export r; \
8139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8140 TFLAGS="$(STAGE4_TFLAGS)"; \
8141 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8142 $(HOST_EXPORTS) \
8143 $(POSTSTAGE1_HOST_EXPORTS) \
8144 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8145 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8146 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8147 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8148 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8149 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8150 case $(srcdir) in \
8151 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8152 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8153 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8154 esac; \
1b6c0831
L
8155 module_srcdir=fixincludes; \
8156 $(SHELL) $$s/$$module_srcdir/configure \
8157 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8158 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8159 --target=${target_alias} \
22121df0 8160 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8161 $(STAGE4_CONFIGURE_FLAGS)
8162@endif fixincludes-bootstrap
8163
8164.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8165maybe-configure-stageprofile-fixincludes:
8166@if fixincludes-bootstrap
8167maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8168configure-stageprofile-fixincludes:
8169 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8170 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8171 @r=`${PWD_COMMAND}`; export r; \
8172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8173 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8174 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8175 $(HOST_EXPORTS) \
8176 $(POSTSTAGE1_HOST_EXPORTS) \
8177 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8178 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8179 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8180 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8181 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8182 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8183 case $(srcdir) in \
8184 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8185 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8186 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8187 esac; \
1b6c0831
L
8188 module_srcdir=fixincludes; \
8189 $(SHELL) $$s/$$module_srcdir/configure \
8190 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8191 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8192 --target=${target_alias} \
22121df0 8193 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8194 $(STAGEprofile_CONFIGURE_FLAGS)
8195@endif fixincludes-bootstrap
8196
8197.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8198maybe-configure-stagefeedback-fixincludes:
8199@if fixincludes-bootstrap
8200maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8201configure-stagefeedback-fixincludes:
8202 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8203 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8204 @r=`${PWD_COMMAND}`; export r; \
8205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8206 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8207 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8208 $(HOST_EXPORTS) \
8209 $(POSTSTAGE1_HOST_EXPORTS) \
8210 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8211 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8212 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8213 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8214 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8215 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8216 case $(srcdir) in \
8217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8218 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8220 esac; \
1b6c0831
L
8221 module_srcdir=fixincludes; \
8222 $(SHELL) $$s/$$module_srcdir/configure \
8223 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8225 --target=${target_alias} \
22121df0 8226 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8227 $(STAGEfeedback_CONFIGURE_FLAGS)
8228@endif fixincludes-bootstrap
8229
8230
8231
d545f33b
PB
8232
8233
a90ef4bf
JM
8234.PHONY: all-fixincludes maybe-all-fixincludes
8235maybe-all-fixincludes:
4f0ef2d8 8236@if gcc-bootstrap
a90ef4bf 8237all-fixincludes: stage_current
4f0ef2d8 8238@endif gcc-bootstrap
a90ef4bf
JM
8239@if fixincludes
8240TARGET-fixincludes=all
8241maybe-all-fixincludes: all-fixincludes
8242all-fixincludes: configure-fixincludes
4fa63067
NN
8243 @r=`${PWD_COMMAND}`; export r; \
8244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8245 $(HOST_EXPORTS) \
a90ef4bf 8246 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8247 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8248 $(TARGET-fixincludes))
8249@endif fixincludes
4fa63067 8250
a7254363 8251
d545f33b 8252
201f096f 8253.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8254.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8255maybe-all-stage1-fixincludes:
8256maybe-clean-stage1-fixincludes:
8257@if fixincludes-bootstrap
8258maybe-all-stage1-fixincludes: all-stage1-fixincludes
8259all-stage1: all-stage1-fixincludes
8260TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8261all-stage1-fixincludes: configure-stage1-fixincludes
8262 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8263 @r=`${PWD_COMMAND}`; export r; \
8264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8265 TFLAGS="$(STAGE1_TFLAGS)"; \
8266 $(HOST_EXPORTS) \
8267 cd $(HOST_SUBDIR)/fixincludes && \
8268 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8269 CFLAGS="$(STAGE1_CFLAGS)" \
8270 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8271 LIBCFLAGS="$(LIBCFLAGS)" \
8272 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8273 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8274 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8275 $(EXTRA_HOST_FLAGS) \
8276 $(STAGE1_FLAGS_TO_PASS) \
8277 TFLAGS="$(STAGE1_TFLAGS)" \
8278 $(TARGET-stage1-fixincludes)
8279
8280maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8281clean-stage1: clean-stage1-fixincludes
8282clean-stage1-fixincludes:
8283 @if [ $(current_stage) = stage1 ]; then \
8284 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8285 else \
8286 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8287 $(MAKE) stage1-start; \
8288 fi; \
8289 cd $(HOST_SUBDIR)/fixincludes && \
8290 $(MAKE) $(EXTRA_HOST_FLAGS) \
8291 $(STAGE1_FLAGS_TO_PASS) clean
8292@endif fixincludes-bootstrap
8293
8294
8295.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8296.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8297maybe-all-stage2-fixincludes:
8298maybe-clean-stage2-fixincludes:
8299@if fixincludes-bootstrap
8300maybe-all-stage2-fixincludes: all-stage2-fixincludes
8301all-stage2: all-stage2-fixincludes
8302TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8303all-stage2-fixincludes: configure-stage2-fixincludes
8304 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8305 @r=`${PWD_COMMAND}`; export r; \
8306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8307 TFLAGS="$(STAGE2_TFLAGS)"; \
8308 $(HOST_EXPORTS) \
8309 $(POSTSTAGE1_HOST_EXPORTS) \
8310 cd $(HOST_SUBDIR)/fixincludes && \
8311 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8312 CFLAGS="$(STAGE2_CFLAGS)" \
8313 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8314 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8315 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8316 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8317 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8318 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8319 TFLAGS="$(STAGE2_TFLAGS)" \
8320 $(TARGET-stage2-fixincludes)
8321
8322maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8323clean-stage2: clean-stage2-fixincludes
8324clean-stage2-fixincludes:
8325 @if [ $(current_stage) = stage2 ]; then \
8326 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8327 else \
8328 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8329 $(MAKE) stage2-start; \
8330 fi; \
8331 cd $(HOST_SUBDIR)/fixincludes && \
8332 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8333@endif fixincludes-bootstrap
8334
8335
8336.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8337.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8338maybe-all-stage3-fixincludes:
8339maybe-clean-stage3-fixincludes:
8340@if fixincludes-bootstrap
8341maybe-all-stage3-fixincludes: all-stage3-fixincludes
8342all-stage3: all-stage3-fixincludes
8343TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8344all-stage3-fixincludes: configure-stage3-fixincludes
8345 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8346 @r=`${PWD_COMMAND}`; export r; \
8347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8348 TFLAGS="$(STAGE3_TFLAGS)"; \
8349 $(HOST_EXPORTS) \
8350 $(POSTSTAGE1_HOST_EXPORTS) \
8351 cd $(HOST_SUBDIR)/fixincludes && \
8352 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8353 CFLAGS="$(STAGE3_CFLAGS)" \
8354 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8355 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8356 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8357 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8358 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8359 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8360 TFLAGS="$(STAGE3_TFLAGS)" \
8361 $(TARGET-stage3-fixincludes)
8362
8363maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8364clean-stage3: clean-stage3-fixincludes
8365clean-stage3-fixincludes:
8366 @if [ $(current_stage) = stage3 ]; then \
8367 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8368 else \
8369 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8370 $(MAKE) stage3-start; \
8371 fi; \
8372 cd $(HOST_SUBDIR)/fixincludes && \
8373 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8374@endif fixincludes-bootstrap
8375
8376
8377.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8378.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8379maybe-all-stage4-fixincludes:
8380maybe-clean-stage4-fixincludes:
8381@if fixincludes-bootstrap
8382maybe-all-stage4-fixincludes: all-stage4-fixincludes
8383all-stage4: all-stage4-fixincludes
8384TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8385all-stage4-fixincludes: configure-stage4-fixincludes
8386 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8387 @r=`${PWD_COMMAND}`; export r; \
8388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8389 TFLAGS="$(STAGE4_TFLAGS)"; \
8390 $(HOST_EXPORTS) \
8391 $(POSTSTAGE1_HOST_EXPORTS) \
8392 cd $(HOST_SUBDIR)/fixincludes && \
8393 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8394 CFLAGS="$(STAGE4_CFLAGS)" \
8395 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8396 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8397 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8398 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8399 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8400 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8401 TFLAGS="$(STAGE4_TFLAGS)" \
8402 $(TARGET-stage4-fixincludes)
8403
8404maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8405clean-stage4: clean-stage4-fixincludes
8406clean-stage4-fixincludes:
8407 @if [ $(current_stage) = stage4 ]; then \
8408 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8409 else \
8410 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8411 $(MAKE) stage4-start; \
8412 fi; \
8413 cd $(HOST_SUBDIR)/fixincludes && \
8414 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8415@endif fixincludes-bootstrap
8416
8417
8418.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8419.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8420maybe-all-stageprofile-fixincludes:
8421maybe-clean-stageprofile-fixincludes:
8422@if fixincludes-bootstrap
8423maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8424all-stageprofile: all-stageprofile-fixincludes
8425TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8426all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8427 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8428 @r=`${PWD_COMMAND}`; export r; \
8429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8430 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8431 $(HOST_EXPORTS) \
8432 $(POSTSTAGE1_HOST_EXPORTS) \
8433 cd $(HOST_SUBDIR)/fixincludes && \
8434 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8435 CFLAGS="$(STAGEprofile_CFLAGS)" \
8436 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8437 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8438 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8439 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8440 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8441 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8442 TFLAGS="$(STAGEprofile_TFLAGS)" \
8443 $(TARGET-stageprofile-fixincludes)
8444
8445maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8446clean-stageprofile: clean-stageprofile-fixincludes
8447clean-stageprofile-fixincludes:
8448 @if [ $(current_stage) = stageprofile ]; then \
8449 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8450 else \
8451 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8452 $(MAKE) stageprofile-start; \
8453 fi; \
8454 cd $(HOST_SUBDIR)/fixincludes && \
8455 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8456@endif fixincludes-bootstrap
8457
8458
8459.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8460.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8461maybe-all-stagefeedback-fixincludes:
8462maybe-clean-stagefeedback-fixincludes:
8463@if fixincludes-bootstrap
8464maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8465all-stagefeedback: all-stagefeedback-fixincludes
8466TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8467all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8468 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8469 @r=`${PWD_COMMAND}`; export r; \
8470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8471 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8472 $(HOST_EXPORTS) \
8473 $(POSTSTAGE1_HOST_EXPORTS) \
8474 cd $(HOST_SUBDIR)/fixincludes && \
8475 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8476 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8477 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8478 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8479 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8480 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8481 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8482 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8483 TFLAGS="$(STAGEfeedback_TFLAGS)" \
8484 $(TARGET-stagefeedback-fixincludes)
8485
8486maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8487clean-stagefeedback: clean-stagefeedback-fixincludes
8488clean-stagefeedback-fixincludes:
8489 @if [ $(current_stage) = stagefeedback ]; then \
8490 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8491 else \
8492 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8493 $(MAKE) stagefeedback-start; \
8494 fi; \
8495 cd $(HOST_SUBDIR)/fixincludes && \
8496 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8497@endif fixincludes-bootstrap
8498
8499
8500
8501
d545f33b 8502
a90ef4bf
JM
8503.PHONY: check-fixincludes maybe-check-fixincludes
8504maybe-check-fixincludes:
8505@if fixincludes
8506maybe-check-fixincludes: check-fixincludes
4fa63067 8507
a90ef4bf 8508check-fixincludes:
0aed8855 8509 @: $(MAKE); $(unstage)
4fa63067
NN
8510 @r=`${PWD_COMMAND}`; export r; \
8511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8512 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8513 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8514 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8515
a90ef4bf 8516@endif fixincludes
4fa63067 8517
a90ef4bf
JM
8518.PHONY: install-fixincludes maybe-install-fixincludes
8519maybe-install-fixincludes:
8520@if fixincludes
8521maybe-install-fixincludes: install-fixincludes
4fa63067 8522
a90ef4bf 8523install-fixincludes: installdirs
0aed8855 8524 @: $(MAKE); $(unstage)
4fa63067
NN
8525 @r=`${PWD_COMMAND}`; export r; \
8526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8527 $(HOST_EXPORTS) \
a90ef4bf 8528 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8529 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8530
a90ef4bf 8531@endif fixincludes
4fa63067 8532
a90ef4bf
JM
8533.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8534maybe-install-strip-fixincludes:
8535@if fixincludes
8536maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8537
a90ef4bf 8538install-strip-fixincludes: installdirs
9b980aa1
RW
8539 @: $(MAKE); $(unstage)
8540 @r=`${PWD_COMMAND}`; export r; \
8541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8542 $(HOST_EXPORTS) \
a90ef4bf 8543 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8544 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8545
a90ef4bf 8546@endif fixincludes
9b980aa1 8547
56a8fe78 8548# Other targets (info, dvi, pdf, etc.)
4fa63067 8549
a90ef4bf
JM
8550.PHONY: maybe-info-fixincludes info-fixincludes
8551maybe-info-fixincludes:
8552@if fixincludes
8553maybe-info-fixincludes: info-fixincludes
4fa63067 8554
a90ef4bf
JM
8555info-fixincludes: \
8556 configure-fixincludes
a90ef4bf 8557 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8558 r=`${PWD_COMMAND}`; export r; \
8559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8560 $(HOST_EXPORTS) \
b813574b 8561 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8563 done; \
22121df0 8564 echo "Doing info in fixincludes"; \
a90ef4bf 8565 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8568 "RANLIB=$${RANLIB}" \
0c24b341 8569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8570 info) \
2a4cbe27
NN
8571 || exit 1
8572
a90ef4bf 8573@endif fixincludes
2a4cbe27 8574
a90ef4bf
JM
8575.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8576maybe-dvi-fixincludes:
8577@if fixincludes
8578maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8579
a90ef4bf
JM
8580dvi-fixincludes: \
8581 configure-fixincludes
a90ef4bf 8582 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8583 r=`${PWD_COMMAND}`; export r; \
8584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8585 $(HOST_EXPORTS) \
b813574b 8586 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8588 done; \
22121df0 8589 echo "Doing dvi in fixincludes"; \
a90ef4bf 8590 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8593 "RANLIB=$${RANLIB}" \
0c24b341 8594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8595 dvi) \
2a4cbe27
NN
8596 || exit 1
8597
a90ef4bf 8598@endif fixincludes
2a4cbe27 8599
a90ef4bf
JM
8600.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8601maybe-pdf-fixincludes:
8602@if fixincludes
8603maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8604
a90ef4bf
JM
8605pdf-fixincludes: \
8606 configure-fixincludes
a90ef4bf 8607 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8608 r=`${PWD_COMMAND}`; export r; \
8609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8610 $(HOST_EXPORTS) \
8611 for flag in $(EXTRA_HOST_FLAGS) ; do \
8612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8613 done; \
22121df0 8614 echo "Doing pdf in fixincludes"; \
a90ef4bf 8615 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8618 "RANLIB=$${RANLIB}" \
0c24b341 8619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8620 pdf) \
8621 || exit 1
8622
a90ef4bf 8623@endif fixincludes
56a8fe78 8624
a90ef4bf
JM
8625.PHONY: maybe-html-fixincludes html-fixincludes
8626maybe-html-fixincludes:
8627@if fixincludes
8628maybe-html-fixincludes: html-fixincludes
6d389afc 8629
a90ef4bf
JM
8630html-fixincludes: \
8631 configure-fixincludes
a90ef4bf 8632 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8633 r=`${PWD_COMMAND}`; export r; \
8634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8635 $(HOST_EXPORTS) \
8636 for flag in $(EXTRA_HOST_FLAGS) ; do \
8637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8638 done; \
22121df0 8639 echo "Doing html in fixincludes"; \
a90ef4bf 8640 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8643 "RANLIB=$${RANLIB}" \
0c24b341 8644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8645 html) \
8646 || exit 1
8647
a90ef4bf 8648@endif fixincludes
6d389afc 8649
a90ef4bf
JM
8650.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8651maybe-TAGS-fixincludes:
8652@if fixincludes
8653maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8654
a90ef4bf
JM
8655# fixincludes doesn't support TAGS.
8656TAGS-fixincludes:
2a4cbe27 8657
a90ef4bf 8658@endif fixincludes
2a4cbe27 8659
a90ef4bf
JM
8660.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8661maybe-install-info-fixincludes:
8662@if fixincludes
8663maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8664
a90ef4bf
JM
8665install-info-fixincludes: \
8666 configure-fixincludes \
8667 info-fixincludes
a90ef4bf 8668 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8669 r=`${PWD_COMMAND}`; export r; \
8670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8671 $(HOST_EXPORTS) \
b813574b 8672 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8674 done; \
22121df0 8675 echo "Doing install-info in fixincludes"; \
a90ef4bf 8676 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8679 "RANLIB=$${RANLIB}" \
0c24b341 8680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8681 install-info) \
2a4cbe27
NN
8682 || exit 1
8683
a90ef4bf 8684@endif fixincludes
2a4cbe27 8685
a90ef4bf
JM
8686.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8687maybe-install-pdf-fixincludes:
8688@if fixincludes
8689maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8690
a90ef4bf
JM
8691install-pdf-fixincludes: \
8692 configure-fixincludes \
8693 pdf-fixincludes
a90ef4bf 8694 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8695 r=`${PWD_COMMAND}`; export r; \
8696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8697 $(HOST_EXPORTS) \
8698 for flag in $(EXTRA_HOST_FLAGS) ; do \
8699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8700 done; \
22121df0 8701 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8702 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8705 "RANLIB=$${RANLIB}" \
0c24b341 8706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8707 install-pdf) \
8708 || exit 1
8709
a90ef4bf 8710@endif fixincludes
a3ca38d2 8711
a90ef4bf
JM
8712.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8713maybe-install-html-fixincludes:
8714@if fixincludes
8715maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8716
a90ef4bf
JM
8717install-html-fixincludes: \
8718 configure-fixincludes \
8719 html-fixincludes
a90ef4bf 8720 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8721 r=`${PWD_COMMAND}`; export r; \
8722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8723 $(HOST_EXPORTS) \
8724 for flag in $(EXTRA_HOST_FLAGS) ; do \
8725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8726 done; \
22121df0 8727 echo "Doing install-html in fixincludes"; \
a90ef4bf 8728 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8731 "RANLIB=$${RANLIB}" \
0c24b341 8732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8733 install-html) \
8734 || exit 1
8735
a90ef4bf 8736@endif fixincludes
108a6f8e 8737
a90ef4bf
JM
8738.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8739maybe-installcheck-fixincludes:
8740@if fixincludes
8741maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8742
a90ef4bf
JM
8743installcheck-fixincludes: \
8744 configure-fixincludes
a90ef4bf 8745 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8746 r=`${PWD_COMMAND}`; export r; \
8747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8748 $(HOST_EXPORTS) \
b813574b 8749 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8751 done; \
22121df0 8752 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8753 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8756 "RANLIB=$${RANLIB}" \
0c24b341 8757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8758 installcheck) \
2a4cbe27
NN
8759 || exit 1
8760
a90ef4bf 8761@endif fixincludes
2a4cbe27 8762
a90ef4bf
JM
8763.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8764maybe-mostlyclean-fixincludes:
8765@if fixincludes
8766maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8767
a90ef4bf 8768mostlyclean-fixincludes:
a90ef4bf 8769 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8770 r=`${PWD_COMMAND}`; export r; \
8771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8772 $(HOST_EXPORTS) \
b813574b 8773 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8775 done; \
22121df0 8776 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8777 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8780 "RANLIB=$${RANLIB}" \
0c24b341 8781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8782 mostlyclean) \
2a4cbe27
NN
8783 || exit 1
8784
a90ef4bf 8785@endif fixincludes
2a4cbe27 8786
a90ef4bf
JM
8787.PHONY: maybe-clean-fixincludes clean-fixincludes
8788maybe-clean-fixincludes:
8789@if fixincludes
8790maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8791
a90ef4bf 8792clean-fixincludes:
a90ef4bf 8793 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8794 r=`${PWD_COMMAND}`; export r; \
8795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8796 $(HOST_EXPORTS) \
b813574b 8797 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8799 done; \
22121df0 8800 echo "Doing clean in fixincludes"; \
a90ef4bf 8801 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8804 "RANLIB=$${RANLIB}" \
0c24b341 8805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8806 clean) \
2a4cbe27
NN
8807 || exit 1
8808
a90ef4bf 8809@endif fixincludes
2a4cbe27 8810
a90ef4bf
JM
8811.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8812maybe-distclean-fixincludes:
8813@if fixincludes
8814maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8815
a90ef4bf 8816distclean-fixincludes:
a90ef4bf 8817 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8818 r=`${PWD_COMMAND}`; export r; \
8819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8820 $(HOST_EXPORTS) \
b813574b 8821 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8823 done; \
22121df0 8824 echo "Doing distclean in fixincludes"; \
a90ef4bf 8825 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8828 "RANLIB=$${RANLIB}" \
0c24b341 8829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8830 distclean) \
2a4cbe27
NN
8831 || exit 1
8832
a90ef4bf 8833@endif fixincludes
2a4cbe27 8834
a90ef4bf
JM
8835.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8836maybe-maintainer-clean-fixincludes:
8837@if fixincludes
8838maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8839
a90ef4bf 8840maintainer-clean-fixincludes:
a90ef4bf 8841 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8842 r=`${PWD_COMMAND}`; export r; \
8843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8844 $(HOST_EXPORTS) \
b813574b 8845 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8847 done; \
22121df0 8848 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8849 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8852 "RANLIB=$${RANLIB}" \
0c24b341 8853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8854 maintainer-clean) \
2a4cbe27
NN
8855 || exit 1
8856
a90ef4bf 8857@endif fixincludes
2a4cbe27 8858
2a4cbe27 8859
a7254363 8860
a90ef4bf
JM
8861.PHONY: configure-flex maybe-configure-flex
8862maybe-configure-flex:
f9806fa5 8863@if gcc-bootstrap
a90ef4bf 8864configure-flex: stage_current
f9806fa5 8865@endif gcc-bootstrap
a90ef4bf
JM
8866@if flex
8867maybe-configure-flex: configure-flex
8868configure-flex:
f9806fa5
DE
8869 @: $(MAKE); $(unstage)
8870 @r=`${PWD_COMMAND}`; export r; \
8871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8872 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8873 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8874 $(HOST_EXPORTS) \
a90ef4bf
JM
8875 echo Configuring in $(HOST_SUBDIR)/flex; \
8876 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8877 case $(srcdir) in \
8878 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8879 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8880 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8881 esac; \
1b6c0831
L
8882 module_srcdir=flex; \
8883 $(SHELL) \
8884 $$s/$$module_srcdir/configure \
8885 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8886 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8887 --target=${target_alias} \
f9806fa5 8888 || exit 1
a90ef4bf 8889@endif flex
f9806fa5
DE
8890
8891
8892
8893
8894
a90ef4bf
JM
8895.PHONY: all-flex maybe-all-flex
8896maybe-all-flex:
f9806fa5 8897@if gcc-bootstrap
a90ef4bf 8898all-flex: stage_current
f9806fa5 8899@endif gcc-bootstrap
a90ef4bf
JM
8900@if flex
8901TARGET-flex=all
8902maybe-all-flex: all-flex
8903all-flex: configure-flex
f9806fa5
DE
8904 @: $(MAKE); $(unstage)
8905 @r=`${PWD_COMMAND}`; export r; \
8906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8907 $(HOST_EXPORTS) \
a90ef4bf 8908 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8909 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8910 $(TARGET-flex))
8911@endif flex
f9806fa5
DE
8912
8913
8914
8915
a90ef4bf
JM
8916.PHONY: check-flex maybe-check-flex
8917maybe-check-flex:
8918@if flex
8919maybe-check-flex: check-flex
f9806fa5 8920
a90ef4bf
JM
8921# This module is only tested in a native toolchain.
8922check-flex:
f9806fa5 8923 @: $(MAKE); $(unstage)
22121df0 8924 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8925 r=`${PWD_COMMAND}`; export r; \
8926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8927 $(HOST_EXPORTS) \
a90ef4bf 8928 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8929 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8930 fi
f9806fa5 8931
a90ef4bf 8932@endif flex
f9806fa5 8933
a90ef4bf
JM
8934.PHONY: install-flex maybe-install-flex
8935maybe-install-flex:
8936@if flex
8937maybe-install-flex: install-flex
f9806fa5 8938
a90ef4bf 8939install-flex: installdirs
f9806fa5
DE
8940 @: $(MAKE); $(unstage)
8941 @r=`${PWD_COMMAND}`; export r; \
8942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8943 $(HOST_EXPORTS) \
a90ef4bf 8944 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8945 $(MAKE) $(FLAGS_TO_PASS) install)
8946
a90ef4bf 8947@endif flex
f9806fa5 8948
a90ef4bf
JM
8949.PHONY: install-strip-flex maybe-install-strip-flex
8950maybe-install-strip-flex:
8951@if flex
8952maybe-install-strip-flex: install-strip-flex
9b980aa1 8953
a90ef4bf 8954install-strip-flex: installdirs
9b980aa1
RW
8955 @: $(MAKE); $(unstage)
8956 @r=`${PWD_COMMAND}`; export r; \
8957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8958 $(HOST_EXPORTS) \
a90ef4bf 8959 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8960 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8961
a90ef4bf 8962@endif flex
9b980aa1 8963
f9806fa5
DE
8964# Other targets (info, dvi, pdf, etc.)
8965
a90ef4bf
JM
8966.PHONY: maybe-info-flex info-flex
8967maybe-info-flex:
8968@if flex
8969maybe-info-flex: info-flex
f9806fa5 8970
a90ef4bf
JM
8971info-flex: \
8972 configure-flex
f9806fa5 8973 @: $(MAKE); $(unstage)
a90ef4bf 8974 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8975 r=`${PWD_COMMAND}`; export r; \
8976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8977 $(HOST_EXPORTS) \
8978 for flag in $(EXTRA_HOST_FLAGS) ; do \
8979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8980 done; \
22121df0 8981 echo "Doing info in flex"; \
a90ef4bf 8982 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8985 "RANLIB=$${RANLIB}" \
8986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8987 info) \
8988 || exit 1
8989
a90ef4bf 8990@endif flex
f9806fa5 8991
a90ef4bf
JM
8992.PHONY: maybe-dvi-flex dvi-flex
8993maybe-dvi-flex:
8994@if flex
8995maybe-dvi-flex: dvi-flex
f9806fa5 8996
a90ef4bf
JM
8997dvi-flex: \
8998 configure-flex
f9806fa5 8999 @: $(MAKE); $(unstage)
a90ef4bf 9000 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9001 r=`${PWD_COMMAND}`; export r; \
9002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9003 $(HOST_EXPORTS) \
9004 for flag in $(EXTRA_HOST_FLAGS) ; do \
9005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9006 done; \
22121df0 9007 echo "Doing dvi in flex"; \
a90ef4bf 9008 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9011 "RANLIB=$${RANLIB}" \
9012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9013 dvi) \
9014 || exit 1
9015
a90ef4bf 9016@endif flex
f9806fa5 9017
a90ef4bf
JM
9018.PHONY: maybe-pdf-flex pdf-flex
9019maybe-pdf-flex:
9020@if flex
9021maybe-pdf-flex: pdf-flex
f9806fa5 9022
a90ef4bf
JM
9023pdf-flex: \
9024 configure-flex
f9806fa5 9025 @: $(MAKE); $(unstage)
a90ef4bf 9026 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9027 r=`${PWD_COMMAND}`; export r; \
9028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9029 $(HOST_EXPORTS) \
9030 for flag in $(EXTRA_HOST_FLAGS) ; do \
9031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9032 done; \
22121df0 9033 echo "Doing pdf in flex"; \
a90ef4bf 9034 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9037 "RANLIB=$${RANLIB}" \
9038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9039 pdf) \
9040 || exit 1
9041
a90ef4bf 9042@endif flex
f9806fa5 9043
a90ef4bf
JM
9044.PHONY: maybe-html-flex html-flex
9045maybe-html-flex:
9046@if flex
9047maybe-html-flex: html-flex
f9806fa5 9048
a90ef4bf
JM
9049html-flex: \
9050 configure-flex
f9806fa5 9051 @: $(MAKE); $(unstage)
a90ef4bf 9052 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9053 r=`${PWD_COMMAND}`; export r; \
9054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9055 $(HOST_EXPORTS) \
9056 for flag in $(EXTRA_HOST_FLAGS) ; do \
9057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9058 done; \
22121df0 9059 echo "Doing html in flex"; \
a90ef4bf 9060 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9063 "RANLIB=$${RANLIB}" \
9064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9065 html) \
9066 || exit 1
9067
a90ef4bf 9068@endif flex
f9806fa5 9069
a90ef4bf
JM
9070.PHONY: maybe-TAGS-flex TAGS-flex
9071maybe-TAGS-flex:
9072@if flex
9073maybe-TAGS-flex: TAGS-flex
f9806fa5 9074
a90ef4bf
JM
9075TAGS-flex: \
9076 configure-flex
f9806fa5 9077 @: $(MAKE); $(unstage)
a90ef4bf 9078 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9079 r=`${PWD_COMMAND}`; export r; \
9080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9081 $(HOST_EXPORTS) \
9082 for flag in $(EXTRA_HOST_FLAGS) ; do \
9083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9084 done; \
22121df0 9085 echo "Doing TAGS in flex"; \
a90ef4bf 9086 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9089 "RANLIB=$${RANLIB}" \
9090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9091 TAGS) \
9092 || exit 1
9093
a90ef4bf 9094@endif flex
f9806fa5 9095
a90ef4bf
JM
9096.PHONY: maybe-install-info-flex install-info-flex
9097maybe-install-info-flex:
9098@if flex
9099maybe-install-info-flex: install-info-flex
f9806fa5 9100
a90ef4bf
JM
9101install-info-flex: \
9102 configure-flex \
9103 info-flex
f9806fa5 9104 @: $(MAKE); $(unstage)
a90ef4bf 9105 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9106 r=`${PWD_COMMAND}`; export r; \
9107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9108 $(HOST_EXPORTS) \
9109 for flag in $(EXTRA_HOST_FLAGS) ; do \
9110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9111 done; \
22121df0 9112 echo "Doing install-info in flex"; \
a90ef4bf 9113 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9116 "RANLIB=$${RANLIB}" \
9117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9118 install-info) \
9119 || exit 1
9120
a90ef4bf 9121@endif flex
f9806fa5 9122
a90ef4bf
JM
9123.PHONY: maybe-install-pdf-flex install-pdf-flex
9124maybe-install-pdf-flex:
9125@if flex
9126maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9127
a90ef4bf
JM
9128install-pdf-flex: \
9129 configure-flex \
9130 pdf-flex
f9806fa5 9131 @: $(MAKE); $(unstage)
a90ef4bf 9132 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9133 r=`${PWD_COMMAND}`; export r; \
9134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9135 $(HOST_EXPORTS) \
9136 for flag in $(EXTRA_HOST_FLAGS) ; do \
9137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9138 done; \
22121df0 9139 echo "Doing install-pdf in flex"; \
a90ef4bf 9140 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9143 "RANLIB=$${RANLIB}" \
9144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9145 install-pdf) \
9146 || exit 1
9147
a90ef4bf 9148@endif flex
f9806fa5 9149
a90ef4bf
JM
9150.PHONY: maybe-install-html-flex install-html-flex
9151maybe-install-html-flex:
9152@if flex
9153maybe-install-html-flex: install-html-flex
f9806fa5 9154
a90ef4bf
JM
9155install-html-flex: \
9156 configure-flex \
9157 html-flex
f9806fa5 9158 @: $(MAKE); $(unstage)
a90ef4bf 9159 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9160 r=`${PWD_COMMAND}`; export r; \
9161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9162 $(HOST_EXPORTS) \
9163 for flag in $(EXTRA_HOST_FLAGS) ; do \
9164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9165 done; \
22121df0 9166 echo "Doing install-html in flex"; \
a90ef4bf 9167 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9170 "RANLIB=$${RANLIB}" \
9171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9172 install-html) \
9173 || exit 1
9174
a90ef4bf 9175@endif flex
f9806fa5 9176
a90ef4bf
JM
9177.PHONY: maybe-installcheck-flex installcheck-flex
9178maybe-installcheck-flex:
9179@if flex
9180maybe-installcheck-flex: installcheck-flex
f9806fa5 9181
a90ef4bf
JM
9182installcheck-flex: \
9183 configure-flex
f9806fa5 9184 @: $(MAKE); $(unstage)
a90ef4bf 9185 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9186 r=`${PWD_COMMAND}`; export r; \
9187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9188 $(HOST_EXPORTS) \
9189 for flag in $(EXTRA_HOST_FLAGS) ; do \
9190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9191 done; \
22121df0 9192 echo "Doing installcheck in flex"; \
a90ef4bf 9193 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9196 "RANLIB=$${RANLIB}" \
9197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9198 installcheck) \
9199 || exit 1
9200
a90ef4bf 9201@endif flex
f9806fa5 9202
a90ef4bf
JM
9203.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9204maybe-mostlyclean-flex:
9205@if flex
9206maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9207
a90ef4bf 9208mostlyclean-flex:
f9806fa5 9209 @: $(MAKE); $(unstage)
a90ef4bf 9210 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9211 r=`${PWD_COMMAND}`; export r; \
9212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9213 $(HOST_EXPORTS) \
9214 for flag in $(EXTRA_HOST_FLAGS) ; do \
9215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9216 done; \
22121df0 9217 echo "Doing mostlyclean in flex"; \
a90ef4bf 9218 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9221 "RANLIB=$${RANLIB}" \
9222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9223 mostlyclean) \
9224 || exit 1
9225
a90ef4bf 9226@endif flex
f9806fa5 9227
a90ef4bf
JM
9228.PHONY: maybe-clean-flex clean-flex
9229maybe-clean-flex:
9230@if flex
9231maybe-clean-flex: clean-flex
f9806fa5 9232
a90ef4bf 9233clean-flex:
f9806fa5 9234 @: $(MAKE); $(unstage)
a90ef4bf 9235 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9236 r=`${PWD_COMMAND}`; export r; \
9237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9238 $(HOST_EXPORTS) \
9239 for flag in $(EXTRA_HOST_FLAGS) ; do \
9240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9241 done; \
22121df0 9242 echo "Doing clean in flex"; \
a90ef4bf 9243 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9246 "RANLIB=$${RANLIB}" \
9247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9248 clean) \
9249 || exit 1
9250
a90ef4bf 9251@endif flex
f9806fa5 9252
a90ef4bf
JM
9253.PHONY: maybe-distclean-flex distclean-flex
9254maybe-distclean-flex:
9255@if flex
9256maybe-distclean-flex: distclean-flex
f9806fa5 9257
a90ef4bf 9258distclean-flex:
f9806fa5 9259 @: $(MAKE); $(unstage)
a90ef4bf 9260 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9261 r=`${PWD_COMMAND}`; export r; \
9262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9263 $(HOST_EXPORTS) \
9264 for flag in $(EXTRA_HOST_FLAGS) ; do \
9265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9266 done; \
22121df0 9267 echo "Doing distclean in flex"; \
a90ef4bf 9268 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9271 "RANLIB=$${RANLIB}" \
9272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9273 distclean) \
9274 || exit 1
9275
a90ef4bf 9276@endif flex
f9806fa5 9277
a90ef4bf
JM
9278.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9279maybe-maintainer-clean-flex:
9280@if flex
9281maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9282
a90ef4bf 9283maintainer-clean-flex:
f9806fa5 9284 @: $(MAKE); $(unstage)
a90ef4bf 9285 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9286 r=`${PWD_COMMAND}`; export r; \
9287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9288 $(HOST_EXPORTS) \
9289 for flag in $(EXTRA_HOST_FLAGS) ; do \
9290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9291 done; \
22121df0 9292 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9293 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9296 "RANLIB=$${RANLIB}" \
9297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9298 maintainer-clean) \
9299 || exit 1
9300
a90ef4bf 9301@endif flex
f9806fa5
DE
9302
9303
9304
a90ef4bf
JM
9305.PHONY: configure-gas maybe-configure-gas
9306maybe-configure-gas:
4f0ef2d8 9307@if gcc-bootstrap
a90ef4bf 9308configure-gas: stage_current
4f0ef2d8 9309@endif gcc-bootstrap
a90ef4bf
JM
9310@if gas
9311maybe-configure-gas: configure-gas
9312configure-gas:
c52c6897 9313 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9315 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9316 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9317 $(HOST_EXPORTS) \
a90ef4bf
JM
9318 echo Configuring in $(HOST_SUBDIR)/gas; \
9319 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9320 case $(srcdir) in \
b00612cc 9321 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9322 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9323 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9324 esac; \
1b6c0831
L
9325 module_srcdir=gas; \
9326 $(SHELL) \
9327 $$s/$$module_srcdir/configure \
9328 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9329 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9330 --target=${target_alias} \
4fa63067 9331 || exit 1
a90ef4bf 9332@endif gas
a7254363 9333
d545f33b
PB
9334
9335
a90ef4bf
JM
9336.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9337maybe-configure-stage1-gas:
9338@if gas-bootstrap
9339maybe-configure-stage1-gas: configure-stage1-gas
9340configure-stage1-gas:
9341 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9342 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9343 @r=`${PWD_COMMAND}`; export r; \
9344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9345 TFLAGS="$(STAGE1_TFLAGS)"; \
9346 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9347 $(HOST_EXPORTS) \
9348 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9349 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9350 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9351 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9352 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9353 cd $(HOST_SUBDIR)/gas || exit 1; \
9354 case $(srcdir) in \
9355 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9356 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9357 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9358 esac; \
1b6c0831
L
9359 module_srcdir=gas; \
9360 $(SHELL) $$s/$$module_srcdir/configure \
9361 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9362 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9363 --target=${target_alias} \
9364 \
a90ef4bf
JM
9365 $(STAGE1_CONFIGURE_FLAGS)
9366@endif gas-bootstrap
4fa63067 9367
a90ef4bf
JM
9368.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9369maybe-configure-stage2-gas:
9370@if gas-bootstrap
9371maybe-configure-stage2-gas: configure-stage2-gas
9372configure-stage2-gas:
9373 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9374 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9375 @r=`${PWD_COMMAND}`; export r; \
9376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9377 TFLAGS="$(STAGE2_TFLAGS)"; \
9378 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9379 $(HOST_EXPORTS) \
a90ef4bf
JM
9380 $(POSTSTAGE1_HOST_EXPORTS) \
9381 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9382 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9383 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9384 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9385 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9386 cd $(HOST_SUBDIR)/gas || exit 1; \
9387 case $(srcdir) in \
9388 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9389 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9390 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9391 esac; \
1b6c0831
L
9392 module_srcdir=gas; \
9393 $(SHELL) $$s/$$module_srcdir/configure \
9394 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9395 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9396 --target=${target_alias} \
22121df0 9397 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9398 $(STAGE2_CONFIGURE_FLAGS)
9399@endif gas-bootstrap
4fa63067 9400
a90ef4bf
JM
9401.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9402maybe-configure-stage3-gas:
9403@if gas-bootstrap
9404maybe-configure-stage3-gas: configure-stage3-gas
9405configure-stage3-gas:
9406 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9407 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9408 @r=`${PWD_COMMAND}`; export r; \
9409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9410 TFLAGS="$(STAGE3_TFLAGS)"; \
9411 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9412 $(HOST_EXPORTS) \
a90ef4bf
JM
9413 $(POSTSTAGE1_HOST_EXPORTS) \
9414 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9415 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9416 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9417 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9418 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9419 cd $(HOST_SUBDIR)/gas || exit 1; \
9420 case $(srcdir) in \
9421 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9422 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9423 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9424 esac; \
1b6c0831
L
9425 module_srcdir=gas; \
9426 $(SHELL) $$s/$$module_srcdir/configure \
9427 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9428 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9429 --target=${target_alias} \
22121df0 9430 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9431 $(STAGE3_CONFIGURE_FLAGS)
9432@endif gas-bootstrap
9b980aa1 9433
a90ef4bf
JM
9434.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9435maybe-configure-stage4-gas:
9436@if gas-bootstrap
9437maybe-configure-stage4-gas: configure-stage4-gas
9438configure-stage4-gas:
9439 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9440 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9441 @r=`${PWD_COMMAND}`; export r; \
9442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9443 TFLAGS="$(STAGE4_TFLAGS)"; \
9444 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9445 $(HOST_EXPORTS) \
a90ef4bf
JM
9446 $(POSTSTAGE1_HOST_EXPORTS) \
9447 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9448 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9449 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9450 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9451 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9452 cd $(HOST_SUBDIR)/gas || exit 1; \
9453 case $(srcdir) in \
9454 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9455 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9456 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9457 esac; \
1b6c0831
L
9458 module_srcdir=gas; \
9459 $(SHELL) $$s/$$module_srcdir/configure \
9460 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9461 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9462 --target=${target_alias} \
22121df0 9463 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9464 $(STAGE4_CONFIGURE_FLAGS)
9465@endif gas-bootstrap
4fa63067 9466
a90ef4bf
JM
9467.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9468maybe-configure-stageprofile-gas:
9469@if gas-bootstrap
9470maybe-configure-stageprofile-gas: configure-stageprofile-gas
9471configure-stageprofile-gas:
9472 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9473 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9474 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9476 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9477 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9478 $(HOST_EXPORTS) \
a90ef4bf
JM
9479 $(POSTSTAGE1_HOST_EXPORTS) \
9480 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9481 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9482 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9483 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9484 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9485 cd $(HOST_SUBDIR)/gas || exit 1; \
9486 case $(srcdir) in \
9487 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9488 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9489 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9490 esac; \
1b6c0831
L
9491 module_srcdir=gas; \
9492 $(SHELL) $$s/$$module_srcdir/configure \
9493 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9494 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9495 --target=${target_alias} \
22121df0 9496 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9497 $(STAGEprofile_CONFIGURE_FLAGS)
9498@endif gas-bootstrap
2a4cbe27 9499
a90ef4bf
JM
9500.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9501maybe-configure-stagefeedback-gas:
9502@if gas-bootstrap
9503maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9504configure-stagefeedback-gas:
9505 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9506 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9507 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9509 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9510 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9511 $(HOST_EXPORTS) \
a90ef4bf
JM
9512 $(POSTSTAGE1_HOST_EXPORTS) \
9513 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9514 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9515 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9516 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9517 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9518 cd $(HOST_SUBDIR)/gas || exit 1; \
9519 case $(srcdir) in \
9520 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9521 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9522 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9523 esac; \
1b6c0831
L
9524 module_srcdir=gas; \
9525 $(SHELL) $$s/$$module_srcdir/configure \
9526 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9527 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9528 --target=${target_alias} \
22121df0 9529 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9530 $(STAGEfeedback_CONFIGURE_FLAGS)
9531@endif gas-bootstrap
2a4cbe27 9532
56a8fe78 9533
56a8fe78 9534
56a8fe78 9535
6d389afc 9536
a90ef4bf
JM
9537.PHONY: all-gas maybe-all-gas
9538maybe-all-gas:
9539@if gcc-bootstrap
9540all-gas: stage_current
9541@endif gcc-bootstrap
9542@if gas
9543TARGET-gas=all
9544maybe-all-gas: all-gas
9545all-gas: configure-gas
9546 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9548 $(HOST_EXPORTS) \
9549 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9550 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9551 $(TARGET-gas))
9552@endif gas
6d389afc 9553
6d389afc 9554
2a4cbe27 9555
a90ef4bf
JM
9556.PHONY: all-stage1-gas maybe-all-stage1-gas
9557.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9558maybe-all-stage1-gas:
9559maybe-clean-stage1-gas:
9560@if gas-bootstrap
9561maybe-all-stage1-gas: all-stage1-gas
9562all-stage1: all-stage1-gas
9563TARGET-stage1-gas = $(TARGET-gas)
9564all-stage1-gas: configure-stage1-gas
9565 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9566 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9568 TFLAGS="$(STAGE1_TFLAGS)"; \
9569 $(HOST_EXPORTS) \
9570 cd $(HOST_SUBDIR)/gas && \
9571 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9572 CFLAGS="$(STAGE1_CFLAGS)" \
9573 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9574 LIBCFLAGS="$(LIBCFLAGS)" \
9575 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9576 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9577 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9578 $(EXTRA_HOST_FLAGS) \
9579 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9580 TFLAGS="$(STAGE1_TFLAGS)" \
9581 $(TARGET-stage1-gas)
2a4cbe27 9582
a90ef4bf
JM
9583maybe-clean-stage1-gas: clean-stage1-gas
9584clean-stage1: clean-stage1-gas
9585clean-stage1-gas:
9586 @if [ $(current_stage) = stage1 ]; then \
9587 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9588 else \
9589 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9590 $(MAKE) stage1-start; \
9591 fi; \
9592 cd $(HOST_SUBDIR)/gas && \
9593 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9594 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9595@endif gas-bootstrap
2a4cbe27 9596
2a4cbe27 9597
a90ef4bf
JM
9598.PHONY: all-stage2-gas maybe-all-stage2-gas
9599.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9600maybe-all-stage2-gas:
9601maybe-clean-stage2-gas:
9602@if gas-bootstrap
9603maybe-all-stage2-gas: all-stage2-gas
9604all-stage2: all-stage2-gas
9605TARGET-stage2-gas = $(TARGET-gas)
9606all-stage2-gas: configure-stage2-gas
9607 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9608 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9610 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9611 $(HOST_EXPORTS) \
a90ef4bf
JM
9612 $(POSTSTAGE1_HOST_EXPORTS) \
9613 cd $(HOST_SUBDIR)/gas && \
9614 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9615 CFLAGS="$(STAGE2_CFLAGS)" \
9616 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9617 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9618 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9619 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9620 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9621 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9622 TFLAGS="$(STAGE2_TFLAGS)" \
9623 $(TARGET-stage2-gas)
2a4cbe27 9624
a90ef4bf
JM
9625maybe-clean-stage2-gas: clean-stage2-gas
9626clean-stage2: clean-stage2-gas
9627clean-stage2-gas:
9628 @if [ $(current_stage) = stage2 ]; then \
9629 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9630 else \
9631 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9632 $(MAKE) stage2-start; \
9633 fi; \
9634 cd $(HOST_SUBDIR)/gas && \
b3676d82 9635 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9636@endif gas-bootstrap
2a4cbe27 9637
2a4cbe27 9638
a90ef4bf
JM
9639.PHONY: all-stage3-gas maybe-all-stage3-gas
9640.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9641maybe-all-stage3-gas:
9642maybe-clean-stage3-gas:
9643@if gas-bootstrap
9644maybe-all-stage3-gas: all-stage3-gas
9645all-stage3: all-stage3-gas
9646TARGET-stage3-gas = $(TARGET-gas)
9647all-stage3-gas: configure-stage3-gas
9648 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9649 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9651 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9652 $(HOST_EXPORTS) \
a90ef4bf
JM
9653 $(POSTSTAGE1_HOST_EXPORTS) \
9654 cd $(HOST_SUBDIR)/gas && \
9655 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9656 CFLAGS="$(STAGE3_CFLAGS)" \
9657 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9658 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9659 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9660 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9661 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9662 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9663 TFLAGS="$(STAGE3_TFLAGS)" \
9664 $(TARGET-stage3-gas)
2a4cbe27 9665
a90ef4bf
JM
9666maybe-clean-stage3-gas: clean-stage3-gas
9667clean-stage3: clean-stage3-gas
9668clean-stage3-gas:
9669 @if [ $(current_stage) = stage3 ]; then \
9670 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9671 else \
9672 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9673 $(MAKE) stage3-start; \
9674 fi; \
9675 cd $(HOST_SUBDIR)/gas && \
b3676d82 9676 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9677@endif gas-bootstrap
2a4cbe27 9678
2a4cbe27 9679
a90ef4bf
JM
9680.PHONY: all-stage4-gas maybe-all-stage4-gas
9681.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9682maybe-all-stage4-gas:
9683maybe-clean-stage4-gas:
9684@if gas-bootstrap
9685maybe-all-stage4-gas: all-stage4-gas
9686all-stage4: all-stage4-gas
9687TARGET-stage4-gas = $(TARGET-gas)
9688all-stage4-gas: configure-stage4-gas
9689 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9690 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9692 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9693 $(HOST_EXPORTS) \
a90ef4bf
JM
9694 $(POSTSTAGE1_HOST_EXPORTS) \
9695 cd $(HOST_SUBDIR)/gas && \
9696 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9697 CFLAGS="$(STAGE4_CFLAGS)" \
9698 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9699 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9700 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9701 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9702 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9703 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9704 TFLAGS="$(STAGE4_TFLAGS)" \
9705 $(TARGET-stage4-gas)
2a4cbe27 9706
a90ef4bf
JM
9707maybe-clean-stage4-gas: clean-stage4-gas
9708clean-stage4: clean-stage4-gas
9709clean-stage4-gas:
9710 @if [ $(current_stage) = stage4 ]; then \
9711 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9712 else \
9713 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9714 $(MAKE) stage4-start; \
9715 fi; \
9716 cd $(HOST_SUBDIR)/gas && \
b3676d82 9717 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9718@endif gas-bootstrap
2a4cbe27 9719
2a4cbe27 9720
a90ef4bf
JM
9721.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9722.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9723maybe-all-stageprofile-gas:
9724maybe-clean-stageprofile-gas:
9725@if gas-bootstrap
9726maybe-all-stageprofile-gas: all-stageprofile-gas
9727all-stageprofile: all-stageprofile-gas
9728TARGET-stageprofile-gas = $(TARGET-gas)
9729all-stageprofile-gas: configure-stageprofile-gas
9730 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9731 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9733 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9734 $(HOST_EXPORTS) \
a90ef4bf
JM
9735 $(POSTSTAGE1_HOST_EXPORTS) \
9736 cd $(HOST_SUBDIR)/gas && \
9737 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9738 CFLAGS="$(STAGEprofile_CFLAGS)" \
9739 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9740 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9741 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9742 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9743 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9744 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9745 TFLAGS="$(STAGEprofile_TFLAGS)" \
9746 $(TARGET-stageprofile-gas)
4fa63067 9747
a90ef4bf
JM
9748maybe-clean-stageprofile-gas: clean-stageprofile-gas
9749clean-stageprofile: clean-stageprofile-gas
9750clean-stageprofile-gas:
9751 @if [ $(current_stage) = stageprofile ]; then \
9752 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9753 else \
9754 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9755 $(MAKE) stageprofile-start; \
9756 fi; \
9757 cd $(HOST_SUBDIR)/gas && \
b3676d82 9758 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9759@endif gas-bootstrap
4fa63067 9760
a7254363 9761
a90ef4bf
JM
9762.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9763.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9764maybe-all-stagefeedback-gas:
9765maybe-clean-stagefeedback-gas:
9766@if gas-bootstrap
9767maybe-all-stagefeedback-gas: all-stagefeedback-gas
9768all-stagefeedback: all-stagefeedback-gas
9769TARGET-stagefeedback-gas = $(TARGET-gas)
9770all-stagefeedback-gas: configure-stagefeedback-gas
9771 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9772 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9774 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9775 $(HOST_EXPORTS) \
9776 $(POSTSTAGE1_HOST_EXPORTS) \
9777 cd $(HOST_SUBDIR)/gas && \
9778 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9779 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9780 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9781 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9782 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9783 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9784 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9785 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9786 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9787 $(TARGET-stagefeedback-gas)
d545f33b 9788
a90ef4bf
JM
9789maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9790clean-stagefeedback: clean-stagefeedback-gas
9791clean-stagefeedback-gas:
9792 @if [ $(current_stage) = stagefeedback ]; then \
9793 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9794 else \
9795 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9796 $(MAKE) stagefeedback-start; \
9797 fi; \
9798 cd $(HOST_SUBDIR)/gas && \
b3676d82 9799 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9800@endif gas-bootstrap
d545f33b 9801
2a4cbe27 9802
a7254363 9803
d545f33b
PB
9804
9805
a90ef4bf
JM
9806.PHONY: check-gas maybe-check-gas
9807maybe-check-gas:
9808@if gas
9809maybe-check-gas: check-gas
2a4cbe27 9810
a90ef4bf 9811check-gas:
0aed8855 9812 @: $(MAKE); $(unstage)
4fa63067 9813 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9815 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9816 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9817 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9818
a90ef4bf 9819@endif gas
2a4cbe27 9820
a90ef4bf
JM
9821.PHONY: install-gas maybe-install-gas
9822maybe-install-gas:
9823@if gas
9824maybe-install-gas: install-gas
2a4cbe27 9825
a90ef4bf 9826install-gas: installdirs
0aed8855 9827 @: $(MAKE); $(unstage)
4fa63067 9828 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9830 $(HOST_EXPORTS) \
a90ef4bf 9831 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9832 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9833
a90ef4bf 9834@endif gas
2a4cbe27 9835
a90ef4bf
JM
9836.PHONY: install-strip-gas maybe-install-strip-gas
9837maybe-install-strip-gas:
9838@if gas
9839maybe-install-strip-gas: install-strip-gas
9b980aa1 9840
a90ef4bf 9841install-strip-gas: installdirs
9b980aa1
RW
9842 @: $(MAKE); $(unstage)
9843 @r=`${PWD_COMMAND}`; export r; \
9844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9845 $(HOST_EXPORTS) \
a90ef4bf 9846 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9847 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9848
a90ef4bf 9849@endif gas
9b980aa1 9850
56a8fe78 9851# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9852
a90ef4bf
JM
9853.PHONY: maybe-info-gas info-gas
9854maybe-info-gas:
9855@if gas
9856maybe-info-gas: info-gas
2a4cbe27 9857
a90ef4bf
JM
9858info-gas: \
9859 configure-gas
9860 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9861 r=`${PWD_COMMAND}`; export r; \
9862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9863 $(HOST_EXPORTS) \
b813574b 9864 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9866 done; \
22121df0 9867 echo "Doing info in gas"; \
a90ef4bf 9868 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9871 "RANLIB=$${RANLIB}" \
0c24b341 9872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9873 info) \
2a4cbe27
NN
9874 || exit 1
9875
a90ef4bf 9876@endif gas
2a4cbe27 9877
a90ef4bf
JM
9878.PHONY: maybe-dvi-gas dvi-gas
9879maybe-dvi-gas:
9880@if gas
9881maybe-dvi-gas: dvi-gas
2a4cbe27 9882
a90ef4bf
JM
9883dvi-gas: \
9884 configure-gas
9885 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9886 r=`${PWD_COMMAND}`; export r; \
9887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9888 $(HOST_EXPORTS) \
b813574b 9889 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9891 done; \
22121df0 9892 echo "Doing dvi in gas"; \
a90ef4bf 9893 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9896 "RANLIB=$${RANLIB}" \
0c24b341 9897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9898 dvi) \
2a4cbe27
NN
9899 || exit 1
9900
a90ef4bf 9901@endif gas
2a4cbe27 9902
a90ef4bf
JM
9903.PHONY: maybe-pdf-gas pdf-gas
9904maybe-pdf-gas:
9905@if gas
9906maybe-pdf-gas: pdf-gas
56a8fe78 9907
a90ef4bf
JM
9908pdf-gas: \
9909 configure-gas
9910 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9911 r=`${PWD_COMMAND}`; export r; \
9912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9913 $(HOST_EXPORTS) \
9914 for flag in $(EXTRA_HOST_FLAGS) ; do \
9915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9916 done; \
22121df0 9917 echo "Doing pdf in gas"; \
a90ef4bf 9918 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9921 "RANLIB=$${RANLIB}" \
0c24b341 9922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9923 pdf) \
9924 || exit 1
9925
a90ef4bf 9926@endif gas
56a8fe78 9927
a90ef4bf
JM
9928.PHONY: maybe-html-gas html-gas
9929maybe-html-gas:
9930@if gas
9931maybe-html-gas: html-gas
6d389afc 9932
a90ef4bf
JM
9933html-gas: \
9934 configure-gas
9935 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9936 r=`${PWD_COMMAND}`; export r; \
9937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9938 $(HOST_EXPORTS) \
9939 for flag in $(EXTRA_HOST_FLAGS) ; do \
9940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9941 done; \
22121df0 9942 echo "Doing html in gas"; \
a90ef4bf 9943 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9946 "RANLIB=$${RANLIB}" \
0c24b341 9947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9948 html) \
9949 || exit 1
9950
a90ef4bf 9951@endif gas
6d389afc 9952
a90ef4bf
JM
9953.PHONY: maybe-TAGS-gas TAGS-gas
9954maybe-TAGS-gas:
9955@if gas
9956maybe-TAGS-gas: TAGS-gas
2a4cbe27 9957
a90ef4bf
JM
9958TAGS-gas: \
9959 configure-gas
9960 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9961 r=`${PWD_COMMAND}`; export r; \
9962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9963 $(HOST_EXPORTS) \
b813574b 9964 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9966 done; \
22121df0 9967 echo "Doing TAGS in gas"; \
a90ef4bf 9968 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9971 "RANLIB=$${RANLIB}" \
0c24b341 9972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9973 TAGS) \
2a4cbe27
NN
9974 || exit 1
9975
a90ef4bf 9976@endif gas
2a4cbe27 9977
a90ef4bf
JM
9978.PHONY: maybe-install-info-gas install-info-gas
9979maybe-install-info-gas:
9980@if gas
9981maybe-install-info-gas: install-info-gas
2a4cbe27 9982
a90ef4bf
JM
9983install-info-gas: \
9984 configure-gas \
9985 info-gas
9986 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9987 r=`${PWD_COMMAND}`; export r; \
9988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9989 $(HOST_EXPORTS) \
b813574b 9990 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9992 done; \
22121df0 9993 echo "Doing install-info in gas"; \
a90ef4bf 9994 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9997 "RANLIB=$${RANLIB}" \
0c24b341 9998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9999 install-info) \
2a4cbe27
NN
10000 || exit 1
10001
a90ef4bf 10002@endif gas
2a4cbe27 10003
a90ef4bf
JM
10004.PHONY: maybe-install-pdf-gas install-pdf-gas
10005maybe-install-pdf-gas:
10006@if gas
10007maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10008
a90ef4bf
JM
10009install-pdf-gas: \
10010 configure-gas \
10011 pdf-gas
10012 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10013 r=`${PWD_COMMAND}`; export r; \
10014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10015 $(HOST_EXPORTS) \
10016 for flag in $(EXTRA_HOST_FLAGS) ; do \
10017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10018 done; \
22121df0 10019 echo "Doing install-pdf in gas"; \
a90ef4bf 10020 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10023 "RANLIB=$${RANLIB}" \
0c24b341 10024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10025 install-pdf) \
10026 || exit 1
10027
a90ef4bf 10028@endif gas
a3ca38d2 10029
a90ef4bf
JM
10030.PHONY: maybe-install-html-gas install-html-gas
10031maybe-install-html-gas:
10032@if gas
10033maybe-install-html-gas: install-html-gas
108a6f8e 10034
a90ef4bf
JM
10035install-html-gas: \
10036 configure-gas \
10037 html-gas
10038 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10039 r=`${PWD_COMMAND}`; export r; \
10040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10041 $(HOST_EXPORTS) \
10042 for flag in $(EXTRA_HOST_FLAGS) ; do \
10043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10044 done; \
22121df0 10045 echo "Doing install-html in gas"; \
a90ef4bf 10046 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10049 "RANLIB=$${RANLIB}" \
0c24b341 10050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10051 install-html) \
10052 || exit 1
10053
a90ef4bf 10054@endif gas
108a6f8e 10055
a90ef4bf
JM
10056.PHONY: maybe-installcheck-gas installcheck-gas
10057maybe-installcheck-gas:
10058@if gas
10059maybe-installcheck-gas: installcheck-gas
2a4cbe27 10060
a90ef4bf
JM
10061installcheck-gas: \
10062 configure-gas
10063 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10064 r=`${PWD_COMMAND}`; export r; \
10065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10066 $(HOST_EXPORTS) \
b813574b 10067 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10069 done; \
22121df0 10070 echo "Doing installcheck in gas"; \
a90ef4bf 10071 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10074 "RANLIB=$${RANLIB}" \
0c24b341 10075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10076 installcheck) \
2a4cbe27
NN
10077 || exit 1
10078
a90ef4bf 10079@endif gas
2a4cbe27 10080
a90ef4bf
JM
10081.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10082maybe-mostlyclean-gas:
10083@if gas
10084maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10085
a90ef4bf
JM
10086mostlyclean-gas:
10087 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10088 r=`${PWD_COMMAND}`; export r; \
10089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10090 $(HOST_EXPORTS) \
b813574b 10091 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10093 done; \
22121df0 10094 echo "Doing mostlyclean in gas"; \
a90ef4bf 10095 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10098 "RANLIB=$${RANLIB}" \
0c24b341 10099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10100 mostlyclean) \
2a4cbe27
NN
10101 || exit 1
10102
a90ef4bf 10103@endif gas
2a4cbe27 10104
a90ef4bf
JM
10105.PHONY: maybe-clean-gas clean-gas
10106maybe-clean-gas:
10107@if gas
10108maybe-clean-gas: clean-gas
2a4cbe27 10109
a90ef4bf
JM
10110clean-gas:
10111 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10112 r=`${PWD_COMMAND}`; export r; \
10113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10114 $(HOST_EXPORTS) \
b813574b 10115 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10117 done; \
22121df0 10118 echo "Doing clean in gas"; \
a90ef4bf 10119 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10122 "RANLIB=$${RANLIB}" \
0c24b341 10123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10124 clean) \
2a4cbe27
NN
10125 || exit 1
10126
a90ef4bf 10127@endif gas
2a4cbe27 10128
a90ef4bf
JM
10129.PHONY: maybe-distclean-gas distclean-gas
10130maybe-distclean-gas:
10131@if gas
10132maybe-distclean-gas: distclean-gas
2a4cbe27 10133
a90ef4bf
JM
10134distclean-gas:
10135 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10136 r=`${PWD_COMMAND}`; export r; \
10137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10138 $(HOST_EXPORTS) \
b813574b 10139 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10141 done; \
22121df0 10142 echo "Doing distclean in gas"; \
a90ef4bf 10143 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10146 "RANLIB=$${RANLIB}" \
0c24b341 10147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10148 distclean) \
2a4cbe27
NN
10149 || exit 1
10150
a90ef4bf 10151@endif gas
2a4cbe27 10152
a90ef4bf
JM
10153.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10154maybe-maintainer-clean-gas:
10155@if gas
10156maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10157
a90ef4bf
JM
10158maintainer-clean-gas:
10159 @[ -f ./gas/Makefile ] || exit 0; \
10160 r=`${PWD_COMMAND}`; export r; \
b40e3958 10161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10162 $(HOST_EXPORTS) \
b813574b 10163 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10165 done; \
22121df0 10166 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10167 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
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}" \
b813574b 10172 maintainer-clean) \
2a4cbe27
NN
10173 || exit 1
10174
a90ef4bf 10175@endif gas
2a4cbe27 10176
2a4cbe27 10177
a7254363 10178
a90ef4bf
JM
10179.PHONY: configure-gcc maybe-configure-gcc
10180maybe-configure-gcc:
4f0ef2d8 10181@if gcc-bootstrap
a90ef4bf 10182configure-gcc: stage_current
4f0ef2d8 10183@endif gcc-bootstrap
a90ef4bf
JM
10184@if gcc
10185maybe-configure-gcc: configure-gcc
10186configure-gcc:
c52c6897 10187 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10189 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10190 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10191 $(HOST_EXPORTS) \
a90ef4bf
JM
10192 echo Configuring in $(HOST_SUBDIR)/gcc; \
10193 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10194 case $(srcdir) in \
b00612cc 10195 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10196 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10197 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10198 esac; \
1b6c0831
L
10199 module_srcdir=gcc; \
10200 $(SHELL) \
10201 $$s/$$module_srcdir/configure \
10202 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10203 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10204 --target=${target_alias} \
4fa63067 10205 || exit 1
a90ef4bf 10206@endif gcc
a7254363 10207
d545f33b
PB
10208
10209
a90ef4bf
JM
10210.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10211maybe-configure-stage1-gcc:
4f0ef2d8 10212@if gcc-bootstrap
a90ef4bf
JM
10213maybe-configure-stage1-gcc: configure-stage1-gcc
10214configure-stage1-gcc:
10215 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10216 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10217 @r=`${PWD_COMMAND}`; export r; \
10218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10219 TFLAGS="$(STAGE1_TFLAGS)"; \
10220 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10221 $(HOST_EXPORTS) \
10222 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10223 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10224 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10225 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10226 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10227 cd $(HOST_SUBDIR)/gcc || exit 1; \
10228 case $(srcdir) in \
10229 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10230 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10231 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10232 esac; \
1b6c0831
L
10233 module_srcdir=gcc; \
10234 $(SHELL) $$s/$$module_srcdir/configure \
10235 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10236 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10237 --target=${target_alias} \
10238 \
a90ef4bf
JM
10239 $(STAGE1_CONFIGURE_FLAGS)
10240@endif gcc-bootstrap
4fa63067 10241
a90ef4bf
JM
10242.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10243maybe-configure-stage2-gcc:
10244@if gcc-bootstrap
10245maybe-configure-stage2-gcc: configure-stage2-gcc
10246configure-stage2-gcc:
10247 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10248 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10249 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10251 TFLAGS="$(STAGE2_TFLAGS)"; \
10252 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10253 $(HOST_EXPORTS) \
a90ef4bf
JM
10254 $(POSTSTAGE1_HOST_EXPORTS) \
10255 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10256 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10257 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10258 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10259 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10260 cd $(HOST_SUBDIR)/gcc || exit 1; \
10261 case $(srcdir) in \
10262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10263 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10265 esac; \
1b6c0831
L
10266 module_srcdir=gcc; \
10267 $(SHELL) $$s/$$module_srcdir/configure \
10268 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10269 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10270 --target=${target_alias} \
22121df0 10271 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10272 $(STAGE2_CONFIGURE_FLAGS)
10273@endif gcc-bootstrap
9b980aa1 10274
a90ef4bf
JM
10275.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10276maybe-configure-stage3-gcc:
10277@if gcc-bootstrap
10278maybe-configure-stage3-gcc: configure-stage3-gcc
10279configure-stage3-gcc:
10280 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10281 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10282 @r=`${PWD_COMMAND}`; export r; \
10283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10284 TFLAGS="$(STAGE3_TFLAGS)"; \
10285 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10286 $(HOST_EXPORTS) \
a90ef4bf
JM
10287 $(POSTSTAGE1_HOST_EXPORTS) \
10288 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10289 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10290 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10291 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10292 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10293 cd $(HOST_SUBDIR)/gcc || exit 1; \
10294 case $(srcdir) in \
10295 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10296 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10297 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10298 esac; \
1b6c0831
L
10299 module_srcdir=gcc; \
10300 $(SHELL) $$s/$$module_srcdir/configure \
10301 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10302 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10303 --target=${target_alias} \
22121df0 10304 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10305 $(STAGE3_CONFIGURE_FLAGS)
10306@endif gcc-bootstrap
4fa63067 10307
a90ef4bf
JM
10308.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10309maybe-configure-stage4-gcc:
10310@if gcc-bootstrap
10311maybe-configure-stage4-gcc: configure-stage4-gcc
10312configure-stage4-gcc:
10313 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10314 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10315 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10317 TFLAGS="$(STAGE4_TFLAGS)"; \
10318 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10319 $(HOST_EXPORTS) \
a90ef4bf
JM
10320 $(POSTSTAGE1_HOST_EXPORTS) \
10321 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10322 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10323 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10324 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10325 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10326 cd $(HOST_SUBDIR)/gcc || exit 1; \
10327 case $(srcdir) in \
10328 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10329 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10330 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10331 esac; \
1b6c0831
L
10332 module_srcdir=gcc; \
10333 $(SHELL) $$s/$$module_srcdir/configure \
10334 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10335 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10336 --target=${target_alias} \
22121df0 10337 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10338 $(STAGE4_CONFIGURE_FLAGS)
10339@endif gcc-bootstrap
2a4cbe27 10340
a90ef4bf
JM
10341.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10342maybe-configure-stageprofile-gcc:
10343@if gcc-bootstrap
10344maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10345configure-stageprofile-gcc:
10346 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10347 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10348 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10350 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10351 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10352 $(HOST_EXPORTS) \
a90ef4bf
JM
10353 $(POSTSTAGE1_HOST_EXPORTS) \
10354 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10355 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10356 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10357 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10358 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10359 cd $(HOST_SUBDIR)/gcc || exit 1; \
10360 case $(srcdir) in \
10361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10362 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10364 esac; \
1b6c0831
L
10365 module_srcdir=gcc; \
10366 $(SHELL) $$s/$$module_srcdir/configure \
10367 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10368 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10369 --target=${target_alias} \
22121df0 10370 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10371 $(STAGEprofile_CONFIGURE_FLAGS)
10372@endif gcc-bootstrap
56a8fe78 10373
a90ef4bf
JM
10374.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10375maybe-configure-stagefeedback-gcc:
10376@if gcc-bootstrap
10377maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10378configure-stagefeedback-gcc:
10379 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10380 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10381 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10383 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10384 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10385 $(HOST_EXPORTS) \
a90ef4bf
JM
10386 $(POSTSTAGE1_HOST_EXPORTS) \
10387 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10388 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10389 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10390 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10391 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10392 cd $(HOST_SUBDIR)/gcc || exit 1; \
10393 case $(srcdir) in \
10394 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10395 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10396 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10397 esac; \
1b6c0831
L
10398 module_srcdir=gcc; \
10399 $(SHELL) $$s/$$module_srcdir/configure \
10400 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10401 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10402 --target=${target_alias} \
22121df0 10403 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10404 $(STAGEfeedback_CONFIGURE_FLAGS)
10405@endif gcc-bootstrap
56a8fe78 10406
2a4cbe27 10407
2a4cbe27
NN
10408
10409
2a4cbe27 10410
a90ef4bf
JM
10411.PHONY: all-gcc maybe-all-gcc
10412maybe-all-gcc:
10413@if gcc-bootstrap
10414all-gcc: stage_current
10415@endif gcc-bootstrap
10416@if gcc
10417TARGET-gcc=all
10418maybe-all-gcc: all-gcc
10419all-gcc: configure-gcc
10420 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10422 $(HOST_EXPORTS) \
10423 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10424 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10425 $(TARGET-gcc))
10426@endif gcc
6d389afc 10427
6d389afc 10428
6d389afc 10429
a90ef4bf
JM
10430.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10431.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10432maybe-all-stage1-gcc:
10433maybe-clean-stage1-gcc:
10434@if gcc-bootstrap
10435maybe-all-stage1-gcc: all-stage1-gcc
10436all-stage1: all-stage1-gcc
10437TARGET-stage1-gcc = $(TARGET-gcc)
10438all-stage1-gcc: configure-stage1-gcc
10439 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10440 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10442 TFLAGS="$(STAGE1_TFLAGS)"; \
10443 $(HOST_EXPORTS) \
10444 cd $(HOST_SUBDIR)/gcc && \
10445 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10446 CFLAGS="$(STAGE1_CFLAGS)" \
10447 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10448 LIBCFLAGS="$(LIBCFLAGS)" \
10449 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10450 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10451 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10452 $(EXTRA_HOST_FLAGS) \
10453 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10454 TFLAGS="$(STAGE1_TFLAGS)" \
10455 $(TARGET-stage1-gcc)
2a4cbe27 10456
a90ef4bf
JM
10457maybe-clean-stage1-gcc: clean-stage1-gcc
10458clean-stage1: clean-stage1-gcc
10459clean-stage1-gcc:
10460 @if [ $(current_stage) = stage1 ]; then \
10461 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10462 else \
10463 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10464 $(MAKE) stage1-start; \
10465 fi; \
10466 cd $(HOST_SUBDIR)/gcc && \
10467 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10468 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10469@endif gcc-bootstrap
2a4cbe27 10470
a3ca38d2 10471
a90ef4bf
JM
10472.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10473.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10474maybe-all-stage2-gcc:
10475maybe-clean-stage2-gcc:
10476@if gcc-bootstrap
10477maybe-all-stage2-gcc: all-stage2-gcc
10478all-stage2: all-stage2-gcc
10479TARGET-stage2-gcc = $(TARGET-gcc)
10480all-stage2-gcc: configure-stage2-gcc
10481 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10482 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10484 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10485 $(HOST_EXPORTS) \
a90ef4bf
JM
10486 $(POSTSTAGE1_HOST_EXPORTS) \
10487 cd $(HOST_SUBDIR)/gcc && \
10488 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10489 CFLAGS="$(STAGE2_CFLAGS)" \
10490 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10491 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10492 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10493 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10494 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10495 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10496 TFLAGS="$(STAGE2_TFLAGS)" \
10497 $(TARGET-stage2-gcc)
a3ca38d2 10498
a90ef4bf
JM
10499maybe-clean-stage2-gcc: clean-stage2-gcc
10500clean-stage2: clean-stage2-gcc
10501clean-stage2-gcc:
10502 @if [ $(current_stage) = stage2 ]; then \
10503 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10504 else \
10505 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10506 $(MAKE) stage2-start; \
10507 fi; \
10508 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10509 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10510@endif gcc-bootstrap
a3ca38d2 10511
108a6f8e 10512
a90ef4bf
JM
10513.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10514.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10515maybe-all-stage3-gcc:
10516maybe-clean-stage3-gcc:
10517@if gcc-bootstrap
10518maybe-all-stage3-gcc: all-stage3-gcc
10519all-stage3: all-stage3-gcc
10520TARGET-stage3-gcc = $(TARGET-gcc)
10521all-stage3-gcc: configure-stage3-gcc
10522 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10523 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10525 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10526 $(HOST_EXPORTS) \
a90ef4bf
JM
10527 $(POSTSTAGE1_HOST_EXPORTS) \
10528 cd $(HOST_SUBDIR)/gcc && \
10529 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10530 CFLAGS="$(STAGE3_CFLAGS)" \
10531 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10532 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10533 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10534 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10535 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10536 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10537 TFLAGS="$(STAGE3_TFLAGS)" \
10538 $(TARGET-stage3-gcc)
108a6f8e 10539
a90ef4bf
JM
10540maybe-clean-stage3-gcc: clean-stage3-gcc
10541clean-stage3: clean-stage3-gcc
10542clean-stage3-gcc:
10543 @if [ $(current_stage) = stage3 ]; then \
10544 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10545 else \
10546 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10547 $(MAKE) stage3-start; \
10548 fi; \
10549 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10550 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10551@endif gcc-bootstrap
108a6f8e 10552
2a4cbe27 10553
a90ef4bf
JM
10554.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10555.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10556maybe-all-stage4-gcc:
10557maybe-clean-stage4-gcc:
10558@if gcc-bootstrap
10559maybe-all-stage4-gcc: all-stage4-gcc
10560all-stage4: all-stage4-gcc
10561TARGET-stage4-gcc = $(TARGET-gcc)
10562all-stage4-gcc: configure-stage4-gcc
10563 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10564 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10566 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10567 $(HOST_EXPORTS) \
a90ef4bf
JM
10568 $(POSTSTAGE1_HOST_EXPORTS) \
10569 cd $(HOST_SUBDIR)/gcc && \
10570 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10571 CFLAGS="$(STAGE4_CFLAGS)" \
10572 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10573 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10574 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10575 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10576 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10577 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10578 TFLAGS="$(STAGE4_TFLAGS)" \
10579 $(TARGET-stage4-gcc)
2a4cbe27 10580
a90ef4bf
JM
10581maybe-clean-stage4-gcc: clean-stage4-gcc
10582clean-stage4: clean-stage4-gcc
10583clean-stage4-gcc:
10584 @if [ $(current_stage) = stage4 ]; then \
10585 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10586 else \
10587 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10588 $(MAKE) stage4-start; \
10589 fi; \
10590 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10591 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10592@endif gcc-bootstrap
2a4cbe27 10593
a2592b1b 10594
a90ef4bf
JM
10595.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10596.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10597maybe-all-stageprofile-gcc:
10598maybe-clean-stageprofile-gcc:
10599@if gcc-bootstrap
10600maybe-all-stageprofile-gcc: all-stageprofile-gcc
10601all-stageprofile: all-stageprofile-gcc
10602TARGET-stageprofile-gcc = $(TARGET-gcc)
10603all-stageprofile-gcc: configure-stageprofile-gcc
10604 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10605 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10607 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10608 $(HOST_EXPORTS) \
a90ef4bf
JM
10609 $(POSTSTAGE1_HOST_EXPORTS) \
10610 cd $(HOST_SUBDIR)/gcc && \
10611 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10612 CFLAGS="$(STAGEprofile_CFLAGS)" \
10613 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10614 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10615 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10616 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10617 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10618 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10619 TFLAGS="$(STAGEprofile_TFLAGS)" \
10620 $(TARGET-stageprofile-gcc)
2a4cbe27 10621
a90ef4bf
JM
10622maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10623clean-stageprofile: clean-stageprofile-gcc
10624clean-stageprofile-gcc:
10625 @if [ $(current_stage) = stageprofile ]; then \
10626 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10627 else \
10628 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10629 $(MAKE) stageprofile-start; \
10630 fi; \
10631 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10632 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10633@endif gcc-bootstrap
2a4cbe27 10634
a7254363 10635
a90ef4bf
JM
10636.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10637.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10638maybe-all-stagefeedback-gcc:
10639maybe-clean-stagefeedback-gcc:
4f0ef2d8 10640@if gcc-bootstrap
a90ef4bf
JM
10641maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10642all-stagefeedback: all-stagefeedback-gcc
10643TARGET-stagefeedback-gcc = $(TARGET-gcc)
10644all-stagefeedback-gcc: configure-stagefeedback-gcc
10645 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10646 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10648 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10649 $(HOST_EXPORTS) \
10650 $(POSTSTAGE1_HOST_EXPORTS) \
10651 cd $(HOST_SUBDIR)/gcc && \
10652 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10653 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10654 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10655 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10656 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10657 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10658 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10659 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10660 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10661 $(TARGET-stagefeedback-gcc)
d545f33b 10662
a90ef4bf
JM
10663maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10664clean-stagefeedback: clean-stagefeedback-gcc
10665clean-stagefeedback-gcc:
10666 @if [ $(current_stage) = stagefeedback ]; then \
10667 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10668 else \
10669 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10670 $(MAKE) stagefeedback-start; \
10671 fi; \
10672 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10673 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10674@endif gcc-bootstrap
4fa63067 10675
a7254363 10676
d545f33b
PB
10677
10678
4fa63067 10679
a90ef4bf
JM
10680.PHONY: check-gcc maybe-check-gcc
10681maybe-check-gcc:
10682@if gcc
10683maybe-check-gcc: check-gcc
10684
10685check-gcc:
0aed8855 10686 @: $(MAKE); $(unstage)
4fa63067
NN
10687 @r=`${PWD_COMMAND}`; export r; \
10688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10689 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10690 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10691 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10692
a90ef4bf 10693@endif gcc
4fa63067 10694
a90ef4bf
JM
10695.PHONY: install-gcc maybe-install-gcc
10696maybe-install-gcc:
10697@if gcc
10698maybe-install-gcc: install-gcc
4fa63067 10699
a90ef4bf 10700install-gcc: installdirs
0aed8855 10701 @: $(MAKE); $(unstage)
4fa63067
NN
10702 @r=`${PWD_COMMAND}`; export r; \
10703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10704 $(HOST_EXPORTS) \
a90ef4bf
JM
10705 (cd $(HOST_SUBDIR)/gcc && \
10706 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10707
a90ef4bf 10708@endif gcc
4fa63067 10709
a90ef4bf
JM
10710.PHONY: install-strip-gcc maybe-install-strip-gcc
10711maybe-install-strip-gcc:
10712@if gcc
10713maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10714
a90ef4bf 10715install-strip-gcc: installdirs
9b980aa1
RW
10716 @: $(MAKE); $(unstage)
10717 @r=`${PWD_COMMAND}`; export r; \
10718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10719 $(HOST_EXPORTS) \
a90ef4bf
JM
10720 (cd $(HOST_SUBDIR)/gcc && \
10721 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10722
a90ef4bf 10723@endif gcc
9b980aa1 10724
56a8fe78 10725# Other targets (info, dvi, pdf, etc.)
4fa63067 10726
a90ef4bf
JM
10727.PHONY: maybe-info-gcc info-gcc
10728maybe-info-gcc:
10729@if gcc
10730maybe-info-gcc: info-gcc
4fa63067 10731
a90ef4bf
JM
10732info-gcc: \
10733 configure-gcc
10734 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10735 r=`${PWD_COMMAND}`; export r; \
10736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10737 $(HOST_EXPORTS) \
a90ef4bf 10738 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10740 done; \
22121df0 10741 echo "Doing info in gcc"; \
a90ef4bf 10742 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10745 "RANLIB=$${RANLIB}" \
0c24b341 10746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10747 info) \
2a4cbe27
NN
10748 || exit 1
10749
a90ef4bf 10750@endif gcc
2a4cbe27 10751
a90ef4bf
JM
10752.PHONY: maybe-dvi-gcc dvi-gcc
10753maybe-dvi-gcc:
10754@if gcc
10755maybe-dvi-gcc: dvi-gcc
2a4cbe27 10756
a90ef4bf
JM
10757dvi-gcc: \
10758 configure-gcc
10759 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10760 r=`${PWD_COMMAND}`; export r; \
10761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10762 $(HOST_EXPORTS) \
a90ef4bf 10763 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10765 done; \
22121df0 10766 echo "Doing dvi in gcc"; \
a90ef4bf 10767 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10770 "RANLIB=$${RANLIB}" \
0c24b341 10771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10772 dvi) \
2a4cbe27
NN
10773 || exit 1
10774
a90ef4bf 10775@endif gcc
2a4cbe27 10776
a90ef4bf
JM
10777.PHONY: maybe-pdf-gcc pdf-gcc
10778maybe-pdf-gcc:
10779@if gcc
10780maybe-pdf-gcc: pdf-gcc
56a8fe78 10781
a90ef4bf
JM
10782pdf-gcc: \
10783 configure-gcc
10784 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10785 r=`${PWD_COMMAND}`; export r; \
10786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10787 $(HOST_EXPORTS) \
a90ef4bf 10788 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10790 done; \
22121df0 10791 echo "Doing pdf in gcc"; \
a90ef4bf 10792 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10795 "RANLIB=$${RANLIB}" \
0c24b341 10796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10797 pdf) \
10798 || exit 1
10799
a90ef4bf 10800@endif gcc
56a8fe78 10801
a90ef4bf
JM
10802.PHONY: maybe-html-gcc html-gcc
10803maybe-html-gcc:
10804@if gcc
10805maybe-html-gcc: html-gcc
6d389afc 10806
a90ef4bf
JM
10807html-gcc: \
10808 configure-gcc
10809 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10810 r=`${PWD_COMMAND}`; export r; \
10811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10812 $(HOST_EXPORTS) \
a90ef4bf 10813 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10815 done; \
22121df0 10816 echo "Doing html in gcc"; \
a90ef4bf 10817 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10820 "RANLIB=$${RANLIB}" \
0c24b341 10821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10822 html) \
10823 || exit 1
10824
a90ef4bf 10825@endif gcc
6d389afc 10826
a90ef4bf
JM
10827.PHONY: maybe-TAGS-gcc TAGS-gcc
10828maybe-TAGS-gcc:
10829@if gcc
10830maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10831
a90ef4bf
JM
10832TAGS-gcc: \
10833 configure-gcc
10834 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10835 r=`${PWD_COMMAND}`; export r; \
10836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10837 $(HOST_EXPORTS) \
a90ef4bf 10838 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10840 done; \
22121df0 10841 echo "Doing TAGS in gcc"; \
a90ef4bf 10842 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10845 "RANLIB=$${RANLIB}" \
0c24b341 10846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10847 TAGS) \
2a4cbe27
NN
10848 || exit 1
10849
a90ef4bf 10850@endif gcc
2a4cbe27 10851
a90ef4bf
JM
10852.PHONY: maybe-install-info-gcc install-info-gcc
10853maybe-install-info-gcc:
10854@if gcc
10855maybe-install-info-gcc: install-info-gcc
2a4cbe27 10856
a90ef4bf
JM
10857install-info-gcc: \
10858 configure-gcc \
10859 info-gcc
10860 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10861 r=`${PWD_COMMAND}`; export r; \
10862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10863 $(HOST_EXPORTS) \
a90ef4bf 10864 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10866 done; \
22121df0 10867 echo "Doing install-info in gcc"; \
a90ef4bf 10868 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10871 "RANLIB=$${RANLIB}" \
0c24b341 10872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10873 install-info) \
2a4cbe27
NN
10874 || exit 1
10875
a90ef4bf 10876@endif gcc
2a4cbe27 10877
a90ef4bf
JM
10878.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10879maybe-install-pdf-gcc:
10880@if gcc
10881maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10882
a90ef4bf
JM
10883install-pdf-gcc: \
10884 configure-gcc \
10885 pdf-gcc
10886 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10887 r=`${PWD_COMMAND}`; export r; \
10888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10889 $(HOST_EXPORTS) \
a90ef4bf 10890 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10892 done; \
22121df0 10893 echo "Doing install-pdf in gcc"; \
a90ef4bf 10894 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10897 "RANLIB=$${RANLIB}" \
0c24b341 10898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10899 install-pdf) \
10900 || exit 1
10901
a90ef4bf 10902@endif gcc
a3ca38d2 10903
a90ef4bf
JM
10904.PHONY: maybe-install-html-gcc install-html-gcc
10905maybe-install-html-gcc:
10906@if gcc
10907maybe-install-html-gcc: install-html-gcc
108a6f8e 10908
a90ef4bf
JM
10909install-html-gcc: \
10910 configure-gcc \
10911 html-gcc
10912 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10913 r=`${PWD_COMMAND}`; export r; \
10914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10915 $(HOST_EXPORTS) \
a90ef4bf 10916 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10918 done; \
22121df0 10919 echo "Doing install-html in gcc"; \
a90ef4bf 10920 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10923 "RANLIB=$${RANLIB}" \
0c24b341 10924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10925 install-html) \
10926 || exit 1
10927
a90ef4bf 10928@endif gcc
108a6f8e 10929
a90ef4bf
JM
10930.PHONY: maybe-installcheck-gcc installcheck-gcc
10931maybe-installcheck-gcc:
10932@if gcc
10933maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10934
a90ef4bf
JM
10935installcheck-gcc: \
10936 configure-gcc
10937 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10938 r=`${PWD_COMMAND}`; export r; \
10939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10940 $(HOST_EXPORTS) \
a90ef4bf 10941 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10943 done; \
22121df0 10944 echo "Doing installcheck in gcc"; \
a90ef4bf 10945 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10948 "RANLIB=$${RANLIB}" \
0c24b341 10949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10950 installcheck) \
2a4cbe27
NN
10951 || exit 1
10952
a90ef4bf 10953@endif gcc
2a4cbe27 10954
a90ef4bf
JM
10955.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10956maybe-mostlyclean-gcc:
10957@if gcc
10958maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 10959
a90ef4bf
JM
10960mostlyclean-gcc:
10961 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10962 r=`${PWD_COMMAND}`; export r; \
10963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10964 $(HOST_EXPORTS) \
a90ef4bf 10965 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10967 done; \
22121df0 10968 echo "Doing mostlyclean in gcc"; \
a90ef4bf 10969 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10972 "RANLIB=$${RANLIB}" \
0c24b341 10973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10974 mostlyclean) \
2a4cbe27
NN
10975 || exit 1
10976
a90ef4bf 10977@endif gcc
2a4cbe27 10978
a90ef4bf
JM
10979.PHONY: maybe-clean-gcc clean-gcc
10980maybe-clean-gcc:
10981@if gcc
10982maybe-clean-gcc: clean-gcc
2a4cbe27 10983
a90ef4bf
JM
10984clean-gcc:
10985 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10986 r=`${PWD_COMMAND}`; export r; \
10987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10988 $(HOST_EXPORTS) \
a90ef4bf 10989 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10991 done; \
22121df0 10992 echo "Doing clean in gcc"; \
a90ef4bf 10993 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10996 "RANLIB=$${RANLIB}" \
0c24b341 10997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10998 clean) \
2a4cbe27
NN
10999 || exit 1
11000
a90ef4bf 11001@endif gcc
2a4cbe27 11002
a90ef4bf
JM
11003.PHONY: maybe-distclean-gcc distclean-gcc
11004maybe-distclean-gcc:
11005@if gcc
11006maybe-distclean-gcc: distclean-gcc
2a4cbe27 11007
a90ef4bf
JM
11008distclean-gcc:
11009 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11010 r=`${PWD_COMMAND}`; export r; \
11011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11012 $(HOST_EXPORTS) \
a90ef4bf 11013 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11015 done; \
22121df0 11016 echo "Doing distclean in gcc"; \
a90ef4bf 11017 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11020 "RANLIB=$${RANLIB}" \
0c24b341 11021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11022 distclean) \
2a4cbe27
NN
11023 || exit 1
11024
a90ef4bf 11025@endif gcc
2a4cbe27 11026
a90ef4bf
JM
11027.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11028maybe-maintainer-clean-gcc:
11029@if gcc
11030maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11031
a90ef4bf
JM
11032maintainer-clean-gcc:
11033 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11034 r=`${PWD_COMMAND}`; export r; \
11035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11036 $(HOST_EXPORTS) \
a90ef4bf 11037 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11039 done; \
22121df0 11040 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11041 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11044 "RANLIB=$${RANLIB}" \
0c24b341 11045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11046 maintainer-clean) \
2a4cbe27
NN
11047 || exit 1
11048
a90ef4bf 11049@endif gcc
2a4cbe27 11050
2a4cbe27 11051
a7254363 11052
a90ef4bf
JM
11053.PHONY: configure-gmp maybe-configure-gmp
11054maybe-configure-gmp:
4f0ef2d8 11055@if gcc-bootstrap
a90ef4bf 11056configure-gmp: stage_current
4f0ef2d8 11057@endif gcc-bootstrap
a90ef4bf
JM
11058@if gmp
11059maybe-configure-gmp: configure-gmp
11060configure-gmp:
c52c6897 11061 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11063 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11064 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11065 $(HOST_EXPORTS) \
a90ef4bf
JM
11066 echo Configuring in $(HOST_SUBDIR)/gmp; \
11067 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11068 case $(srcdir) in \
b00612cc 11069 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11070 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11071 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11072 esac; \
1b6c0831
L
11073 module_srcdir=gmp; \
11074 $(SHELL) \
11075 $$s/$$module_srcdir/configure \
11076 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11077 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11078 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11079 || exit 1
a90ef4bf 11080@endif gmp
a7254363 11081
d545f33b
PB
11082
11083
a90ef4bf
JM
11084.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11085maybe-configure-stage1-gmp:
11086@if gmp-bootstrap
11087maybe-configure-stage1-gmp: configure-stage1-gmp
11088configure-stage1-gmp:
11089 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11090 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11091 @r=`${PWD_COMMAND}`; export r; \
11092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11093 TFLAGS="$(STAGE1_TFLAGS)"; \
11094 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11095 $(HOST_EXPORTS) \
11096 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11097 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11098 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11099 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11100 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11101 cd $(HOST_SUBDIR)/gmp || exit 1; \
11102 case $(srcdir) in \
11103 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11104 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11105 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11106 esac; \
1b6c0831
L
11107 module_srcdir=gmp; \
11108 $(SHELL) $$s/$$module_srcdir/configure \
11109 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11110 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11111 --target=none-${host_vendor}-${host_os} \
11112 \
a90ef4bf 11113 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11114 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11115@endif gmp-bootstrap
4fa63067 11116
a90ef4bf
JM
11117.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11118maybe-configure-stage2-gmp:
11119@if gmp-bootstrap
11120maybe-configure-stage2-gmp: configure-stage2-gmp
11121configure-stage2-gmp:
11122 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11123 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11124 @r=`${PWD_COMMAND}`; export r; \
11125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11126 TFLAGS="$(STAGE2_TFLAGS)"; \
11127 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11128 $(HOST_EXPORTS) \
11129 $(POSTSTAGE1_HOST_EXPORTS) \
11130 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11131 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11132 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11133 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11135 cd $(HOST_SUBDIR)/gmp || exit 1; \
11136 case $(srcdir) in \
11137 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11138 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11139 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11140 esac; \
1b6c0831
L
11141 module_srcdir=gmp; \
11142 $(SHELL) $$s/$$module_srcdir/configure \
11143 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11144 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11145 --target=none-${host_vendor}-${host_os} \
22121df0 11146 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11147 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11148 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11149@endif gmp-bootstrap
4fa63067 11150
a90ef4bf
JM
11151.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11152maybe-configure-stage3-gmp:
11153@if gmp-bootstrap
11154maybe-configure-stage3-gmp: configure-stage3-gmp
11155configure-stage3-gmp:
11156 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11157 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11158 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11160 TFLAGS="$(STAGE3_TFLAGS)"; \
11161 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11162 $(HOST_EXPORTS) \
a90ef4bf
JM
11163 $(POSTSTAGE1_HOST_EXPORTS) \
11164 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11165 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11166 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11167 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11168 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11169 cd $(HOST_SUBDIR)/gmp || exit 1; \
11170 case $(srcdir) in \
11171 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11172 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11173 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11174 esac; \
1b6c0831
L
11175 module_srcdir=gmp; \
11176 $(SHELL) $$s/$$module_srcdir/configure \
11177 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11178 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11179 --target=none-${host_vendor}-${host_os} \
22121df0 11180 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11181 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11182 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11183@endif gmp-bootstrap
2a4cbe27 11184
a90ef4bf
JM
11185.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11186maybe-configure-stage4-gmp:
11187@if gmp-bootstrap
11188maybe-configure-stage4-gmp: configure-stage4-gmp
11189configure-stage4-gmp:
11190 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11191 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11192 @r=`${PWD_COMMAND}`; export r; \
11193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11194 TFLAGS="$(STAGE4_TFLAGS)"; \
11195 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11196 $(HOST_EXPORTS) \
11197 $(POSTSTAGE1_HOST_EXPORTS) \
11198 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11199 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11200 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11201 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11202 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11203 cd $(HOST_SUBDIR)/gmp || exit 1; \
11204 case $(srcdir) in \
11205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11206 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11208 esac; \
1b6c0831
L
11209 module_srcdir=gmp; \
11210 $(SHELL) $$s/$$module_srcdir/configure \
11211 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11212 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11213 --target=none-${host_vendor}-${host_os} \
22121df0 11214 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11215 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11216 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11217@endif gmp-bootstrap
2a4cbe27 11218
a90ef4bf
JM
11219.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11220maybe-configure-stageprofile-gmp:
11221@if gmp-bootstrap
11222maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11223configure-stageprofile-gmp:
11224 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11225 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11226 @r=`${PWD_COMMAND}`; export r; \
11227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11228 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11229 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11230 $(HOST_EXPORTS) \
11231 $(POSTSTAGE1_HOST_EXPORTS) \
11232 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11233 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11234 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11235 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11236 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11237 cd $(HOST_SUBDIR)/gmp || exit 1; \
11238 case $(srcdir) in \
11239 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11240 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11241 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11242 esac; \
1b6c0831
L
11243 module_srcdir=gmp; \
11244 $(SHELL) $$s/$$module_srcdir/configure \
11245 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11246 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11247 --target=none-${host_vendor}-${host_os} \
22121df0 11248 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11249 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11250 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11251@endif gmp-bootstrap
9b980aa1 11252
a90ef4bf
JM
11253.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11254maybe-configure-stagefeedback-gmp:
11255@if gmp-bootstrap
11256maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11257configure-stagefeedback-gmp:
11258 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11259 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11260 @r=`${PWD_COMMAND}`; export r; \
11261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11262 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11263 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11264 $(HOST_EXPORTS) \
a90ef4bf
JM
11265 $(POSTSTAGE1_HOST_EXPORTS) \
11266 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11267 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11268 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11269 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11270 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11271 cd $(HOST_SUBDIR)/gmp || exit 1; \
11272 case $(srcdir) in \
11273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11274 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11276 esac; \
1b6c0831
L
11277 module_srcdir=gmp; \
11278 $(SHELL) $$s/$$module_srcdir/configure \
11279 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11280 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11281 --target=none-${host_vendor}-${host_os} \
22121df0 11282 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11283 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11284 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11285@endif gmp-bootstrap
9b980aa1 11286
9b980aa1 11287
2a4cbe27 11288
4fa63067 11289
a90ef4bf
JM
11290
11291.PHONY: all-gmp maybe-all-gmp
11292maybe-all-gmp:
11293@if gcc-bootstrap
11294all-gmp: stage_current
11295@endif gcc-bootstrap
11296@if gmp
11297TARGET-gmp=all
11298maybe-all-gmp: all-gmp
11299all-gmp: configure-gmp
11300 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11302 $(HOST_EXPORTS) \
11303 (cd $(HOST_SUBDIR)/gmp && \
b3676d82 11304 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11305 $(TARGET-gmp))
11306@endif gmp
2a4cbe27
NN
11307
11308
2a4cbe27 11309
a90ef4bf
JM
11310.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11311.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11312maybe-all-stage1-gmp:
11313maybe-clean-stage1-gmp:
11314@if gmp-bootstrap
11315maybe-all-stage1-gmp: all-stage1-gmp
11316all-stage1: all-stage1-gmp
11317TARGET-stage1-gmp = $(TARGET-gmp)
11318all-stage1-gmp: configure-stage1-gmp
11319 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11320 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11322 TFLAGS="$(STAGE1_TFLAGS)"; \
11323 $(HOST_EXPORTS) \
11324 cd $(HOST_SUBDIR)/gmp && \
11325 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11326 CFLAGS="$(STAGE1_CFLAGS)" \
11327 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11328 LIBCFLAGS="$(LIBCFLAGS)" \
11329 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11330 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11331 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
11332 $(EXTRA_HOST_FLAGS) \
11333 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11334 TFLAGS="$(STAGE1_TFLAGS)" \
11335 $(TARGET-stage1-gmp)
2a4cbe27 11336
a90ef4bf
JM
11337maybe-clean-stage1-gmp: clean-stage1-gmp
11338clean-stage1: clean-stage1-gmp
11339clean-stage1-gmp:
11340 @if [ $(current_stage) = stage1 ]; then \
11341 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11342 else \
11343 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11344 $(MAKE) stage1-start; \
11345 fi; \
11346 cd $(HOST_SUBDIR)/gmp && \
11347 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 11348 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11349@endif gmp-bootstrap
2a4cbe27 11350
56a8fe78 11351
a90ef4bf
JM
11352.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11353.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11354maybe-all-stage2-gmp:
11355maybe-clean-stage2-gmp:
11356@if gmp-bootstrap
11357maybe-all-stage2-gmp: all-stage2-gmp
11358all-stage2: all-stage2-gmp
11359TARGET-stage2-gmp = $(TARGET-gmp)
11360all-stage2-gmp: configure-stage2-gmp
11361 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11362 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11364 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11365 $(HOST_EXPORTS) \
a90ef4bf
JM
11366 $(POSTSTAGE1_HOST_EXPORTS) \
11367 cd $(HOST_SUBDIR)/gmp && \
11368 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11369 CFLAGS="$(STAGE2_CFLAGS)" \
11370 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11371 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11372 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11373 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11374 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11375 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11376 TFLAGS="$(STAGE2_TFLAGS)" \
11377 $(TARGET-stage2-gmp)
56a8fe78 11378
a90ef4bf
JM
11379maybe-clean-stage2-gmp: clean-stage2-gmp
11380clean-stage2: clean-stage2-gmp
11381clean-stage2-gmp:
11382 @if [ $(current_stage) = stage2 ]; then \
11383 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11384 else \
11385 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11386 $(MAKE) stage2-start; \
11387 fi; \
11388 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11389 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11390@endif gmp-bootstrap
56a8fe78 11391
6d389afc 11392
a90ef4bf
JM
11393.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11394.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11395maybe-all-stage3-gmp:
11396maybe-clean-stage3-gmp:
11397@if gmp-bootstrap
11398maybe-all-stage3-gmp: all-stage3-gmp
11399all-stage3: all-stage3-gmp
11400TARGET-stage3-gmp = $(TARGET-gmp)
11401all-stage3-gmp: configure-stage3-gmp
11402 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11403 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11405 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11406 $(HOST_EXPORTS) \
a90ef4bf
JM
11407 $(POSTSTAGE1_HOST_EXPORTS) \
11408 cd $(HOST_SUBDIR)/gmp && \
11409 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11410 CFLAGS="$(STAGE3_CFLAGS)" \
11411 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11412 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11413 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11414 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11415 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11416 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11417 TFLAGS="$(STAGE3_TFLAGS)" \
11418 $(TARGET-stage3-gmp)
6d389afc 11419
a90ef4bf
JM
11420maybe-clean-stage3-gmp: clean-stage3-gmp
11421clean-stage3: clean-stage3-gmp
11422clean-stage3-gmp:
11423 @if [ $(current_stage) = stage3 ]; then \
11424 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11425 else \
11426 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11427 $(MAKE) stage3-start; \
11428 fi; \
11429 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11430 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11431@endif gmp-bootstrap
6d389afc 11432
2a4cbe27 11433
a90ef4bf
JM
11434.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11435.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11436maybe-all-stage4-gmp:
11437maybe-clean-stage4-gmp:
11438@if gmp-bootstrap
11439maybe-all-stage4-gmp: all-stage4-gmp
11440all-stage4: all-stage4-gmp
11441TARGET-stage4-gmp = $(TARGET-gmp)
11442all-stage4-gmp: configure-stage4-gmp
11443 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11444 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11446 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11447 $(HOST_EXPORTS) \
a90ef4bf
JM
11448 $(POSTSTAGE1_HOST_EXPORTS) \
11449 cd $(HOST_SUBDIR)/gmp && \
11450 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11451 CFLAGS="$(STAGE4_CFLAGS)" \
11452 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11453 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11454 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11455 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11456 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11457 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11458 TFLAGS="$(STAGE4_TFLAGS)" \
11459 $(TARGET-stage4-gmp)
2a4cbe27 11460
a90ef4bf
JM
11461maybe-clean-stage4-gmp: clean-stage4-gmp
11462clean-stage4: clean-stage4-gmp
11463clean-stage4-gmp:
11464 @if [ $(current_stage) = stage4 ]; then \
11465 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11466 else \
11467 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11468 $(MAKE) stage4-start; \
11469 fi; \
11470 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11471 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11472@endif gmp-bootstrap
2a4cbe27 11473
2a4cbe27 11474
a90ef4bf
JM
11475.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11476.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11477maybe-all-stageprofile-gmp:
11478maybe-clean-stageprofile-gmp:
11479@if gmp-bootstrap
11480maybe-all-stageprofile-gmp: all-stageprofile-gmp
11481all-stageprofile: all-stageprofile-gmp
11482TARGET-stageprofile-gmp = $(TARGET-gmp)
11483all-stageprofile-gmp: configure-stageprofile-gmp
11484 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11485 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11487 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11488 $(HOST_EXPORTS) \
a90ef4bf
JM
11489 $(POSTSTAGE1_HOST_EXPORTS) \
11490 cd $(HOST_SUBDIR)/gmp && \
11491 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11492 CFLAGS="$(STAGEprofile_CFLAGS)" \
11493 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11494 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11495 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11496 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11497 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11498 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11499 TFLAGS="$(STAGEprofile_TFLAGS)" \
11500 $(TARGET-stageprofile-gmp)
2a4cbe27 11501
a90ef4bf
JM
11502maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11503clean-stageprofile: clean-stageprofile-gmp
11504clean-stageprofile-gmp:
11505 @if [ $(current_stage) = stageprofile ]; then \
11506 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11507 else \
11508 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11509 $(MAKE) stageprofile-start; \
11510 fi; \
11511 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11512 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11513@endif gmp-bootstrap
2a4cbe27 11514
a7254363 11515
a90ef4bf
JM
11516.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11517.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11518maybe-all-stagefeedback-gmp:
11519maybe-clean-stagefeedback-gmp:
11520@if gmp-bootstrap
11521maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11522all-stagefeedback: all-stagefeedback-gmp
11523TARGET-stagefeedback-gmp = $(TARGET-gmp)
11524all-stagefeedback-gmp: configure-stagefeedback-gmp
11525 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11526 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11528 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11529 $(HOST_EXPORTS) \
11530 $(POSTSTAGE1_HOST_EXPORTS) \
11531 cd $(HOST_SUBDIR)/gmp && \
11532 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11533 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11534 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11535 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11536 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11537 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11538 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11539 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11540 TFLAGS="$(STAGEfeedback_TFLAGS)" \
11541 $(TARGET-stagefeedback-gmp)
d545f33b 11542
a90ef4bf
JM
11543maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11544clean-stagefeedback: clean-stagefeedback-gmp
11545clean-stagefeedback-gmp:
11546 @if [ $(current_stage) = stagefeedback ]; then \
11547 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11548 else \
11549 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11550 $(MAKE) stagefeedback-start; \
11551 fi; \
11552 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11553 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11554@endif gmp-bootstrap
d545f33b 11555
4fa63067 11556
a7254363 11557
d545f33b
PB
11558
11559
a90ef4bf
JM
11560.PHONY: check-gmp maybe-check-gmp
11561maybe-check-gmp:
11562@if gmp
11563maybe-check-gmp: check-gmp
4fa63067 11564
a90ef4bf 11565check-gmp:
0aed8855 11566 @: $(MAKE); $(unstage)
4fa63067
NN
11567 @r=`${PWD_COMMAND}`; export r; \
11568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11569 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11570 (cd $(HOST_SUBDIR)/gmp && \
f91ca6bc 11571 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11572
a90ef4bf 11573@endif gmp
2a4cbe27 11574
a90ef4bf
JM
11575.PHONY: install-gmp maybe-install-gmp
11576maybe-install-gmp:
11577@if gmp
11578maybe-install-gmp: install-gmp
2a4cbe27 11579
a90ef4bf 11580install-gmp:
2a4cbe27 11581
a90ef4bf 11582@endif gmp
2a4cbe27 11583
a90ef4bf
JM
11584.PHONY: install-strip-gmp maybe-install-strip-gmp
11585maybe-install-strip-gmp:
11586@if gmp
11587maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11588
a90ef4bf 11589install-strip-gmp:
9b980aa1 11590
a90ef4bf 11591@endif gmp
9b980aa1 11592
56a8fe78 11593# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11594
a90ef4bf
JM
11595.PHONY: maybe-info-gmp info-gmp
11596maybe-info-gmp:
11597@if gmp
11598maybe-info-gmp: info-gmp
4fa63067 11599
a90ef4bf
JM
11600info-gmp: \
11601 configure-gmp
11602 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11603 r=`${PWD_COMMAND}`; export r; \
11604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11605 $(HOST_EXPORTS) \
b813574b 11606 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11608 done; \
22121df0 11609 echo "Doing info in gmp"; \
a90ef4bf 11610 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11613 "RANLIB=$${RANLIB}" \
0c24b341 11614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11615 info) \
2a4cbe27
NN
11616 || exit 1
11617
a90ef4bf 11618@endif gmp
2a4cbe27 11619
a90ef4bf
JM
11620.PHONY: maybe-dvi-gmp dvi-gmp
11621maybe-dvi-gmp:
11622@if gmp
11623maybe-dvi-gmp: dvi-gmp
2a4cbe27 11624
a90ef4bf
JM
11625dvi-gmp: \
11626 configure-gmp
11627 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11628 r=`${PWD_COMMAND}`; export r; \
11629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11630 $(HOST_EXPORTS) \
b813574b 11631 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11633 done; \
22121df0 11634 echo "Doing dvi in gmp"; \
a90ef4bf 11635 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11638 "RANLIB=$${RANLIB}" \
0c24b341 11639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11640 dvi) \
2a4cbe27
NN
11641 || exit 1
11642
a90ef4bf 11643@endif gmp
2a4cbe27 11644
a90ef4bf
JM
11645.PHONY: maybe-pdf-gmp pdf-gmp
11646maybe-pdf-gmp:
11647@if gmp
11648maybe-pdf-gmp: pdf-gmp
56a8fe78 11649
a90ef4bf
JM
11650pdf-gmp: \
11651 configure-gmp
11652 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11653 r=`${PWD_COMMAND}`; export r; \
11654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11655 $(HOST_EXPORTS) \
11656 for flag in $(EXTRA_HOST_FLAGS) ; do \
11657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11658 done; \
22121df0 11659 echo "Doing pdf in gmp"; \
a90ef4bf 11660 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11663 "RANLIB=$${RANLIB}" \
0c24b341 11664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11665 pdf) \
11666 || exit 1
11667
a90ef4bf 11668@endif gmp
56a8fe78 11669
a90ef4bf
JM
11670.PHONY: maybe-html-gmp html-gmp
11671maybe-html-gmp:
11672@if gmp
11673maybe-html-gmp: html-gmp
6d389afc 11674
a90ef4bf
JM
11675html-gmp: \
11676 configure-gmp
11677 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11678 r=`${PWD_COMMAND}`; export r; \
11679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11680 $(HOST_EXPORTS) \
11681 for flag in $(EXTRA_HOST_FLAGS) ; do \
11682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11683 done; \
22121df0 11684 echo "Doing html in gmp"; \
a90ef4bf 11685 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11688 "RANLIB=$${RANLIB}" \
0c24b341 11689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11690 html) \
11691 || exit 1
11692
a90ef4bf 11693@endif gmp
6d389afc 11694
a90ef4bf
JM
11695.PHONY: maybe-TAGS-gmp TAGS-gmp
11696maybe-TAGS-gmp:
11697@if gmp
11698maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11699
a90ef4bf
JM
11700TAGS-gmp: \
11701 configure-gmp
11702 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11703 r=`${PWD_COMMAND}`; export r; \
11704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11705 $(HOST_EXPORTS) \
b813574b 11706 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11708 done; \
22121df0 11709 echo "Doing TAGS in gmp"; \
a90ef4bf 11710 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11713 "RANLIB=$${RANLIB}" \
0c24b341 11714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11715 TAGS) \
2a4cbe27
NN
11716 || exit 1
11717
a90ef4bf 11718@endif gmp
2a4cbe27 11719
a90ef4bf
JM
11720.PHONY: maybe-install-info-gmp install-info-gmp
11721maybe-install-info-gmp:
11722@if gmp
11723maybe-install-info-gmp: install-info-gmp
2a4cbe27 11724
a90ef4bf
JM
11725install-info-gmp: \
11726 configure-gmp \
11727 info-gmp
11728 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11729 r=`${PWD_COMMAND}`; export r; \
11730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11731 $(HOST_EXPORTS) \
b813574b 11732 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11734 done; \
22121df0 11735 echo "Doing install-info in gmp"; \
a90ef4bf 11736 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11739 "RANLIB=$${RANLIB}" \
0c24b341 11740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11741 install-info) \
2a4cbe27
NN
11742 || exit 1
11743
a90ef4bf 11744@endif gmp
2a4cbe27 11745
a90ef4bf
JM
11746.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11747maybe-install-pdf-gmp:
11748@if gmp
11749maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11750
a90ef4bf
JM
11751install-pdf-gmp: \
11752 configure-gmp \
11753 pdf-gmp
11754 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11755 r=`${PWD_COMMAND}`; export r; \
11756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11757 $(HOST_EXPORTS) \
11758 for flag in $(EXTRA_HOST_FLAGS) ; do \
11759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11760 done; \
22121df0 11761 echo "Doing install-pdf in gmp"; \
a90ef4bf 11762 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11765 "RANLIB=$${RANLIB}" \
0c24b341 11766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11767 install-pdf) \
11768 || exit 1
11769
a90ef4bf 11770@endif gmp
a3ca38d2 11771
a90ef4bf
JM
11772.PHONY: maybe-install-html-gmp install-html-gmp
11773maybe-install-html-gmp:
11774@if gmp
11775maybe-install-html-gmp: install-html-gmp
108a6f8e 11776
a90ef4bf
JM
11777install-html-gmp: \
11778 configure-gmp \
11779 html-gmp
11780 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11781 r=`${PWD_COMMAND}`; export r; \
11782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11783 $(HOST_EXPORTS) \
11784 for flag in $(EXTRA_HOST_FLAGS) ; do \
11785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11786 done; \
22121df0 11787 echo "Doing install-html in gmp"; \
a90ef4bf 11788 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11791 "RANLIB=$${RANLIB}" \
0c24b341 11792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11793 install-html) \
11794 || exit 1
11795
a90ef4bf 11796@endif gmp
108a6f8e 11797
a90ef4bf
JM
11798.PHONY: maybe-installcheck-gmp installcheck-gmp
11799maybe-installcheck-gmp:
11800@if gmp
11801maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11802
a90ef4bf
JM
11803installcheck-gmp: \
11804 configure-gmp
11805 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11806 r=`${PWD_COMMAND}`; export r; \
11807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11808 $(HOST_EXPORTS) \
b813574b 11809 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11811 done; \
22121df0 11812 echo "Doing installcheck in gmp"; \
a90ef4bf 11813 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11816 "RANLIB=$${RANLIB}" \
0c24b341 11817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11818 installcheck) \
2a4cbe27
NN
11819 || exit 1
11820
a90ef4bf 11821@endif gmp
2a4cbe27 11822
a90ef4bf
JM
11823.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11824maybe-mostlyclean-gmp:
11825@if gmp
11826maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11827
a90ef4bf
JM
11828mostlyclean-gmp:
11829 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11830 r=`${PWD_COMMAND}`; export r; \
11831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11832 $(HOST_EXPORTS) \
b813574b 11833 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11835 done; \
22121df0 11836 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11837 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11840 "RANLIB=$${RANLIB}" \
0c24b341 11841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11842 mostlyclean) \
2a4cbe27
NN
11843 || exit 1
11844
a90ef4bf 11845@endif gmp
2a4cbe27 11846
a90ef4bf
JM
11847.PHONY: maybe-clean-gmp clean-gmp
11848maybe-clean-gmp:
11849@if gmp
11850maybe-clean-gmp: clean-gmp
2a4cbe27 11851
a90ef4bf
JM
11852clean-gmp:
11853 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11854 r=`${PWD_COMMAND}`; export r; \
11855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11856 $(HOST_EXPORTS) \
b813574b 11857 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11859 done; \
22121df0 11860 echo "Doing clean in gmp"; \
a90ef4bf 11861 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11864 "RANLIB=$${RANLIB}" \
0c24b341 11865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11866 clean) \
2a4cbe27
NN
11867 || exit 1
11868
a90ef4bf 11869@endif gmp
2a4cbe27 11870
a90ef4bf
JM
11871.PHONY: maybe-distclean-gmp distclean-gmp
11872maybe-distclean-gmp:
11873@if gmp
11874maybe-distclean-gmp: distclean-gmp
2a4cbe27 11875
a90ef4bf
JM
11876distclean-gmp:
11877 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11878 r=`${PWD_COMMAND}`; export r; \
11879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11880 $(HOST_EXPORTS) \
b813574b 11881 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11883 done; \
22121df0 11884 echo "Doing distclean in gmp"; \
a90ef4bf 11885 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11888 "RANLIB=$${RANLIB}" \
0c24b341 11889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11890 distclean) \
2a4cbe27
NN
11891 || exit 1
11892
a90ef4bf 11893@endif gmp
2a4cbe27 11894
a90ef4bf
JM
11895.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11896maybe-maintainer-clean-gmp:
11897@if gmp
11898maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11899
a90ef4bf
JM
11900maintainer-clean-gmp:
11901 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11902 r=`${PWD_COMMAND}`; export r; \
11903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11904 $(HOST_EXPORTS) \
b813574b 11905 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11907 done; \
22121df0 11908 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11909 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11912 "RANLIB=$${RANLIB}" \
0c24b341 11913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11914 maintainer-clean) \
2a4cbe27
NN
11915 || exit 1
11916
a90ef4bf 11917@endif gmp
2a4cbe27 11918
2a4cbe27 11919
a7254363 11920
a90ef4bf
JM
11921.PHONY: configure-mpfr maybe-configure-mpfr
11922maybe-configure-mpfr:
4f0ef2d8 11923@if gcc-bootstrap
a90ef4bf 11924configure-mpfr: stage_current
4f0ef2d8 11925@endif gcc-bootstrap
a90ef4bf
JM
11926@if mpfr
11927maybe-configure-mpfr: configure-mpfr
11928configure-mpfr:
11929 @r=`${PWD_COMMAND}`; export r; \
11930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11931 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 11932 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 11933 $(HOST_EXPORTS) \
a90ef4bf
JM
11934 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11935 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11936 case $(srcdir) in \
b00612cc 11937 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11938 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11939 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11940 esac; \
1b6c0831
L
11941 module_srcdir=mpfr; \
11942 $(SHELL) \
11943 $$s/$$module_srcdir/configure \
11944 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11945 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11946 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11947 || exit 1
a90ef4bf 11948@endif mpfr
d545f33b
PB
11949
11950
2a4cbe27 11951
a90ef4bf
JM
11952.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11953maybe-configure-stage1-mpfr:
11954@if mpfr-bootstrap
11955maybe-configure-stage1-mpfr: configure-stage1-mpfr
11956configure-stage1-mpfr:
11957 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11958 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11959 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11961 TFLAGS="$(STAGE1_TFLAGS)"; \
11962 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11963 $(HOST_EXPORTS) \
a90ef4bf
JM
11964 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11965 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11966 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11967 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
11968 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
11969 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11970 case $(srcdir) in \
11971 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11972 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11973 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11974 esac; \
1b6c0831
L
11975 module_srcdir=mpfr; \
11976 $(SHELL) $$s/$$module_srcdir/configure \
11977 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11978 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11979 --target=${target_alias} \
11980 \
a90ef4bf
JM
11981 $(STAGE1_CONFIGURE_FLAGS) \
11982 --disable-shared @extra_mpfr_configure_flags@
11983@endif mpfr-bootstrap
2a4cbe27 11984
a90ef4bf
JM
11985.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
11986maybe-configure-stage2-mpfr:
11987@if mpfr-bootstrap
11988maybe-configure-stage2-mpfr: configure-stage2-mpfr
11989configure-stage2-mpfr:
11990 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11991 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11992 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11994 TFLAGS="$(STAGE2_TFLAGS)"; \
11995 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11996 $(HOST_EXPORTS) \
a90ef4bf
JM
11997 $(POSTSTAGE1_HOST_EXPORTS) \
11998 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11999 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12000 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12001 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
12002 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12003 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12004 case $(srcdir) in \
12005 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12006 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12007 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12008 esac; \
1b6c0831
L
12009 module_srcdir=mpfr; \
12010 $(SHELL) $$s/$$module_srcdir/configure \
12011 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12012 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12013 --target=${target_alias} \
22121df0 12014 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12015 $(STAGE2_CONFIGURE_FLAGS) \
12016 --disable-shared @extra_mpfr_configure_flags@
12017@endif mpfr-bootstrap
9b980aa1 12018
a90ef4bf
JM
12019.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12020maybe-configure-stage3-mpfr:
12021@if mpfr-bootstrap
12022maybe-configure-stage3-mpfr: configure-stage3-mpfr
12023configure-stage3-mpfr:
12024 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12025 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12026 @r=`${PWD_COMMAND}`; export r; \
12027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12028 TFLAGS="$(STAGE3_TFLAGS)"; \
12029 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12030 $(HOST_EXPORTS) \
a90ef4bf
JM
12031 $(POSTSTAGE1_HOST_EXPORTS) \
12032 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12033 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12034 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12035 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12036 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12037 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12038 case $(srcdir) in \
12039 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12040 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12041 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12042 esac; \
1b6c0831
L
12043 module_srcdir=mpfr; \
12044 $(SHELL) $$s/$$module_srcdir/configure \
12045 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12046 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12047 --target=${target_alias} \
22121df0 12048 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12049 $(STAGE3_CONFIGURE_FLAGS) \
12050 --disable-shared @extra_mpfr_configure_flags@
12051@endif mpfr-bootstrap
2a4cbe27 12052
a90ef4bf
JM
12053.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12054maybe-configure-stage4-mpfr:
12055@if mpfr-bootstrap
12056maybe-configure-stage4-mpfr: configure-stage4-mpfr
12057configure-stage4-mpfr:
12058 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12059 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12060 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12062 TFLAGS="$(STAGE4_TFLAGS)"; \
12063 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12064 $(HOST_EXPORTS) \
a90ef4bf
JM
12065 $(POSTSTAGE1_HOST_EXPORTS) \
12066 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12067 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12068 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12069 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12070 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12071 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12072 case $(srcdir) in \
12073 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12074 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12075 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12076 esac; \
1b6c0831
L
12077 module_srcdir=mpfr; \
12078 $(SHELL) $$s/$$module_srcdir/configure \
12079 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12080 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12081 --target=${target_alias} \
22121df0 12082 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12083 $(STAGE4_CONFIGURE_FLAGS) \
12084 --disable-shared @extra_mpfr_configure_flags@
12085@endif mpfr-bootstrap
2a4cbe27 12086
a90ef4bf
JM
12087.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12088maybe-configure-stageprofile-mpfr:
12089@if mpfr-bootstrap
12090maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12091configure-stageprofile-mpfr:
12092 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12093 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12094 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12096 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12097 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12098 $(HOST_EXPORTS) \
a90ef4bf
JM
12099 $(POSTSTAGE1_HOST_EXPORTS) \
12100 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12101 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12102 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12103 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12104 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12105 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12106 case $(srcdir) in \
12107 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12108 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12109 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12110 esac; \
1b6c0831
L
12111 module_srcdir=mpfr; \
12112 $(SHELL) $$s/$$module_srcdir/configure \
12113 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12114 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12115 --target=${target_alias} \
22121df0 12116 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12117 $(STAGEprofile_CONFIGURE_FLAGS) \
12118 --disable-shared @extra_mpfr_configure_flags@
12119@endif mpfr-bootstrap
56a8fe78 12120
a90ef4bf
JM
12121.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12122maybe-configure-stagefeedback-mpfr:
12123@if mpfr-bootstrap
12124maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12125configure-stagefeedback-mpfr:
12126 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12127 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12128 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12130 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12131 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12132 $(HOST_EXPORTS) \
a90ef4bf
JM
12133 $(POSTSTAGE1_HOST_EXPORTS) \
12134 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12135 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12136 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12137 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12138 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12139 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12140 case $(srcdir) in \
12141 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12142 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12143 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12144 esac; \
1b6c0831
L
12145 module_srcdir=mpfr; \
12146 $(SHELL) $$s/$$module_srcdir/configure \
12147 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12148 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12149 --target=${target_alias} \
22121df0 12150 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12151 $(STAGEfeedback_CONFIGURE_FLAGS) \
12152 --disable-shared @extra_mpfr_configure_flags@
12153@endif mpfr-bootstrap
56a8fe78 12154
6d389afc 12155
6d389afc 12156
6d389afc 12157
2a4cbe27 12158
a90ef4bf
JM
12159.PHONY: all-mpfr maybe-all-mpfr
12160maybe-all-mpfr:
12161@if gcc-bootstrap
12162all-mpfr: stage_current
12163@endif gcc-bootstrap
12164@if mpfr
12165TARGET-mpfr=all
12166maybe-all-mpfr: all-mpfr
12167all-mpfr: configure-mpfr
12168 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12170 $(HOST_EXPORTS) \
12171 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12172 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12173 $(TARGET-mpfr))
12174@endif mpfr
2a4cbe27
NN
12175
12176
2a4cbe27 12177
a90ef4bf
JM
12178.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12179.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12180maybe-all-stage1-mpfr:
12181maybe-clean-stage1-mpfr:
12182@if mpfr-bootstrap
12183maybe-all-stage1-mpfr: all-stage1-mpfr
12184all-stage1: all-stage1-mpfr
12185TARGET-stage1-mpfr = $(TARGET-mpfr)
12186all-stage1-mpfr: configure-stage1-mpfr
12187 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12188 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12190 TFLAGS="$(STAGE1_TFLAGS)"; \
12191 $(HOST_EXPORTS) \
12192 cd $(HOST_SUBDIR)/mpfr && \
12193 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12194 CFLAGS="$(STAGE1_CFLAGS)" \
12195 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12196 LIBCFLAGS="$(LIBCFLAGS)" \
12197 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12198 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12199 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12200 $(EXTRA_HOST_FLAGS) \
ce5e165e 12201 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12202 TFLAGS="$(STAGE1_TFLAGS)" \
12203 $(TARGET-stage1-mpfr)
2a4cbe27 12204
a90ef4bf
JM
12205maybe-clean-stage1-mpfr: clean-stage1-mpfr
12206clean-stage1: clean-stage1-mpfr
12207clean-stage1-mpfr:
12208 @if [ $(current_stage) = stage1 ]; then \
12209 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12210 else \
12211 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12212 $(MAKE) stage1-start; \
12213 fi; \
12214 cd $(HOST_SUBDIR)/mpfr && \
12215 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 12216 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12217@endif mpfr-bootstrap
2a4cbe27 12218
a3ca38d2 12219
a90ef4bf
JM
12220.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12221.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12222maybe-all-stage2-mpfr:
12223maybe-clean-stage2-mpfr:
12224@if mpfr-bootstrap
12225maybe-all-stage2-mpfr: all-stage2-mpfr
12226all-stage2: all-stage2-mpfr
12227TARGET-stage2-mpfr = $(TARGET-mpfr)
12228all-stage2-mpfr: configure-stage2-mpfr
12229 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12230 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12232 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12233 $(HOST_EXPORTS) \
a90ef4bf
JM
12234 $(POSTSTAGE1_HOST_EXPORTS) \
12235 cd $(HOST_SUBDIR)/mpfr && \
12236 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12237 CFLAGS="$(STAGE2_CFLAGS)" \
12238 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12239 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12240 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12241 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12242 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12243 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12244 TFLAGS="$(STAGE2_TFLAGS)" \
12245 $(TARGET-stage2-mpfr)
a3ca38d2 12246
a90ef4bf
JM
12247maybe-clean-stage2-mpfr: clean-stage2-mpfr
12248clean-stage2: clean-stage2-mpfr
12249clean-stage2-mpfr:
12250 @if [ $(current_stage) = stage2 ]; then \
12251 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12252 else \
12253 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12254 $(MAKE) stage2-start; \
12255 fi; \
12256 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12257 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12258@endif mpfr-bootstrap
a3ca38d2 12259
108a6f8e 12260
a90ef4bf
JM
12261.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12262.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12263maybe-all-stage3-mpfr:
12264maybe-clean-stage3-mpfr:
12265@if mpfr-bootstrap
12266maybe-all-stage3-mpfr: all-stage3-mpfr
12267all-stage3: all-stage3-mpfr
12268TARGET-stage3-mpfr = $(TARGET-mpfr)
12269all-stage3-mpfr: configure-stage3-mpfr
12270 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12271 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12273 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12274 $(HOST_EXPORTS) \
a90ef4bf
JM
12275 $(POSTSTAGE1_HOST_EXPORTS) \
12276 cd $(HOST_SUBDIR)/mpfr && \
12277 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12278 CFLAGS="$(STAGE3_CFLAGS)" \
12279 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12280 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12281 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12282 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12283 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12284 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12285 TFLAGS="$(STAGE3_TFLAGS)" \
12286 $(TARGET-stage3-mpfr)
108a6f8e 12287
a90ef4bf
JM
12288maybe-clean-stage3-mpfr: clean-stage3-mpfr
12289clean-stage3: clean-stage3-mpfr
12290clean-stage3-mpfr:
12291 @if [ $(current_stage) = stage3 ]; then \
12292 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12293 else \
12294 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12295 $(MAKE) stage3-start; \
12296 fi; \
12297 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12298 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12299@endif mpfr-bootstrap
108a6f8e 12300
2a4cbe27 12301
a90ef4bf
JM
12302.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12303.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12304maybe-all-stage4-mpfr:
12305maybe-clean-stage4-mpfr:
12306@if mpfr-bootstrap
12307maybe-all-stage4-mpfr: all-stage4-mpfr
12308all-stage4: all-stage4-mpfr
12309TARGET-stage4-mpfr = $(TARGET-mpfr)
12310all-stage4-mpfr: configure-stage4-mpfr
12311 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12312 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12314 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12315 $(HOST_EXPORTS) \
a90ef4bf
JM
12316 $(POSTSTAGE1_HOST_EXPORTS) \
12317 cd $(HOST_SUBDIR)/mpfr && \
12318 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12319 CFLAGS="$(STAGE4_CFLAGS)" \
12320 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12321 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12322 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12323 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12324 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12325 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12326 TFLAGS="$(STAGE4_TFLAGS)" \
12327 $(TARGET-stage4-mpfr)
2a4cbe27 12328
a90ef4bf
JM
12329maybe-clean-stage4-mpfr: clean-stage4-mpfr
12330clean-stage4: clean-stage4-mpfr
12331clean-stage4-mpfr:
12332 @if [ $(current_stage) = stage4 ]; then \
12333 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12334 else \
12335 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12336 $(MAKE) stage4-start; \
12337 fi; \
12338 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12339 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12340@endif mpfr-bootstrap
2a4cbe27 12341
2a4cbe27 12342
a90ef4bf
JM
12343.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12344.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12345maybe-all-stageprofile-mpfr:
12346maybe-clean-stageprofile-mpfr:
12347@if mpfr-bootstrap
12348maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12349all-stageprofile: all-stageprofile-mpfr
12350TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12351all-stageprofile-mpfr: configure-stageprofile-mpfr
12352 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12353 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12355 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12356 $(HOST_EXPORTS) \
a90ef4bf
JM
12357 $(POSTSTAGE1_HOST_EXPORTS) \
12358 cd $(HOST_SUBDIR)/mpfr && \
12359 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12360 CFLAGS="$(STAGEprofile_CFLAGS)" \
12361 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12362 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12363 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12364 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12365 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12366 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12367 TFLAGS="$(STAGEprofile_TFLAGS)" \
12368 $(TARGET-stageprofile-mpfr)
2a4cbe27 12369
a90ef4bf
JM
12370maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12371clean-stageprofile: clean-stageprofile-mpfr
12372clean-stageprofile-mpfr:
12373 @if [ $(current_stage) = stageprofile ]; then \
12374 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12375 else \
12376 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12377 $(MAKE) stageprofile-start; \
12378 fi; \
12379 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12380 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12381@endif mpfr-bootstrap
2a4cbe27 12382
a7254363 12383
a90ef4bf
JM
12384.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12385.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12386maybe-all-stagefeedback-mpfr:
12387maybe-clean-stagefeedback-mpfr:
12388@if mpfr-bootstrap
12389maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12390all-stagefeedback: all-stagefeedback-mpfr
12391TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12392all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12393 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12394 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12396 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12397 $(HOST_EXPORTS) \
12398 $(POSTSTAGE1_HOST_EXPORTS) \
12399 cd $(HOST_SUBDIR)/mpfr && \
12400 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12401 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12402 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12403 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12404 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12405 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12406 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12407 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12408 TFLAGS="$(STAGEfeedback_TFLAGS)" \
12409 $(TARGET-stagefeedback-mpfr)
d545f33b 12410
a90ef4bf
JM
12411maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12412clean-stagefeedback: clean-stagefeedback-mpfr
12413clean-stagefeedback-mpfr:
12414 @if [ $(current_stage) = stagefeedback ]; then \
12415 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12416 else \
12417 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12418 $(MAKE) stagefeedback-start; \
12419 fi; \
12420 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12421 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12422@endif mpfr-bootstrap
d545f33b 12423
2a4cbe27 12424
a7254363 12425
d545f33b
PB
12426
12427
a90ef4bf
JM
12428.PHONY: check-mpfr maybe-check-mpfr
12429maybe-check-mpfr:
12430@if mpfr
12431maybe-check-mpfr: check-mpfr
2a4cbe27 12432
a90ef4bf 12433check-mpfr:
0aed8855 12434 @: $(MAKE); $(unstage)
4fa63067 12435 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12437 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12438 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12439 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12440
a90ef4bf 12441@endif mpfr
2a4cbe27 12442
a90ef4bf
JM
12443.PHONY: install-mpfr maybe-install-mpfr
12444maybe-install-mpfr:
12445@if mpfr
12446maybe-install-mpfr: install-mpfr
2a4cbe27 12447
a90ef4bf 12448install-mpfr:
4fa63067 12449
a90ef4bf 12450@endif mpfr
4fa63067 12451
a90ef4bf
JM
12452.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12453maybe-install-strip-mpfr:
12454@if mpfr
12455maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12456
a90ef4bf 12457install-strip-mpfr:
9b980aa1 12458
a90ef4bf 12459@endif mpfr
9b980aa1 12460
56a8fe78 12461# Other targets (info, dvi, pdf, etc.)
4fa63067 12462
a90ef4bf
JM
12463.PHONY: maybe-info-mpfr info-mpfr
12464maybe-info-mpfr:
12465@if mpfr
12466maybe-info-mpfr: info-mpfr
4fa63067 12467
a90ef4bf
JM
12468info-mpfr: \
12469 configure-mpfr
12470 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12471 r=`${PWD_COMMAND}`; export r; \
12472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12473 $(HOST_EXPORTS) \
ce5e165e 12474 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12476 done; \
22121df0 12477 echo "Doing info in mpfr"; \
a90ef4bf 12478 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12481 "RANLIB=$${RANLIB}" \
0c24b341 12482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12483 info) \
2a4cbe27
NN
12484 || exit 1
12485
a90ef4bf 12486@endif mpfr
2a4cbe27 12487
a90ef4bf
JM
12488.PHONY: maybe-dvi-mpfr dvi-mpfr
12489maybe-dvi-mpfr:
12490@if mpfr
12491maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12492
a90ef4bf
JM
12493dvi-mpfr: \
12494 configure-mpfr
12495 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12496 r=`${PWD_COMMAND}`; export r; \
12497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12498 $(HOST_EXPORTS) \
ce5e165e 12499 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12501 done; \
22121df0 12502 echo "Doing dvi in mpfr"; \
a90ef4bf 12503 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12506 "RANLIB=$${RANLIB}" \
0c24b341 12507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12508 dvi) \
2a4cbe27
NN
12509 || exit 1
12510
a90ef4bf 12511@endif mpfr
2a4cbe27 12512
a90ef4bf
JM
12513.PHONY: maybe-pdf-mpfr pdf-mpfr
12514maybe-pdf-mpfr:
12515@if mpfr
12516maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12517
a90ef4bf
JM
12518pdf-mpfr: \
12519 configure-mpfr
12520 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12521 r=`${PWD_COMMAND}`; export r; \
12522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12523 $(HOST_EXPORTS) \
ce5e165e 12524 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
12525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12526 done; \
22121df0 12527 echo "Doing pdf in mpfr"; \
a90ef4bf 12528 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12531 "RANLIB=$${RANLIB}" \
0c24b341 12532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12533 pdf) \
12534 || exit 1
12535
a90ef4bf 12536@endif mpfr
56a8fe78 12537
a90ef4bf
JM
12538.PHONY: maybe-html-mpfr html-mpfr
12539maybe-html-mpfr:
12540@if mpfr
12541maybe-html-mpfr: html-mpfr
6d389afc 12542
a90ef4bf
JM
12543html-mpfr: \
12544 configure-mpfr
12545 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12546 r=`${PWD_COMMAND}`; export r; \
12547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12548 $(HOST_EXPORTS) \
ce5e165e 12549 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
12550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12551 done; \
22121df0 12552 echo "Doing html in mpfr"; \
a90ef4bf 12553 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12556 "RANLIB=$${RANLIB}" \
0c24b341 12557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12558 html) \
12559 || exit 1
12560
a90ef4bf 12561@endif mpfr
6d389afc 12562
a90ef4bf
JM
12563.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12564maybe-TAGS-mpfr:
12565@if mpfr
12566maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12567
a90ef4bf
JM
12568TAGS-mpfr: \
12569 configure-mpfr
12570 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12571 r=`${PWD_COMMAND}`; export r; \
12572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12573 $(HOST_EXPORTS) \
ce5e165e 12574 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12576 done; \
22121df0 12577 echo "Doing TAGS in mpfr"; \
a90ef4bf 12578 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12581 "RANLIB=$${RANLIB}" \
0c24b341 12582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12583 TAGS) \
2a4cbe27
NN
12584 || exit 1
12585
a90ef4bf 12586@endif mpfr
2a4cbe27 12587
a90ef4bf
JM
12588.PHONY: maybe-install-info-mpfr install-info-mpfr
12589maybe-install-info-mpfr:
12590@if mpfr
12591maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12592
a90ef4bf
JM
12593install-info-mpfr: \
12594 configure-mpfr \
12595 info-mpfr
12596 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12597 r=`${PWD_COMMAND}`; export r; \
12598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12599 $(HOST_EXPORTS) \
ce5e165e 12600 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12602 done; \
22121df0 12603 echo "Doing install-info in mpfr"; \
a90ef4bf 12604 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12607 "RANLIB=$${RANLIB}" \
0c24b341 12608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12609 install-info) \
2a4cbe27
NN
12610 || exit 1
12611
a90ef4bf 12612@endif mpfr
2a4cbe27 12613
a90ef4bf
JM
12614.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12615maybe-install-pdf-mpfr:
12616@if mpfr
12617maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12618
a90ef4bf
JM
12619install-pdf-mpfr: \
12620 configure-mpfr \
12621 pdf-mpfr
12622 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12623 r=`${PWD_COMMAND}`; export r; \
12624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12625 $(HOST_EXPORTS) \
ce5e165e 12626 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
12627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12628 done; \
22121df0 12629 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12630 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12633 "RANLIB=$${RANLIB}" \
0c24b341 12634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12635 install-pdf) \
12636 || exit 1
12637
a90ef4bf 12638@endif mpfr
a3ca38d2 12639
a90ef4bf
JM
12640.PHONY: maybe-install-html-mpfr install-html-mpfr
12641maybe-install-html-mpfr:
12642@if mpfr
12643maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12644
a90ef4bf
JM
12645install-html-mpfr: \
12646 configure-mpfr \
12647 html-mpfr
12648 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12649 r=`${PWD_COMMAND}`; export r; \
12650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12651 $(HOST_EXPORTS) \
ce5e165e 12652 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
12653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12654 done; \
22121df0 12655 echo "Doing install-html in mpfr"; \
a90ef4bf 12656 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12659 "RANLIB=$${RANLIB}" \
0c24b341 12660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12661 install-html) \
12662 || exit 1
12663
a90ef4bf 12664@endif mpfr
108a6f8e 12665
a90ef4bf
JM
12666.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12667maybe-installcheck-mpfr:
12668@if mpfr
12669maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12670
a90ef4bf
JM
12671installcheck-mpfr: \
12672 configure-mpfr
12673 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12674 r=`${PWD_COMMAND}`; export r; \
12675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12676 $(HOST_EXPORTS) \
ce5e165e 12677 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12679 done; \
22121df0 12680 echo "Doing installcheck in mpfr"; \
a90ef4bf 12681 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12684 "RANLIB=$${RANLIB}" \
0c24b341 12685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12686 installcheck) \
2a4cbe27
NN
12687 || exit 1
12688
a90ef4bf 12689@endif mpfr
2a4cbe27 12690
a90ef4bf
JM
12691.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12692maybe-mostlyclean-mpfr:
12693@if mpfr
12694maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12695
a90ef4bf
JM
12696mostlyclean-mpfr:
12697 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12698 r=`${PWD_COMMAND}`; export r; \
12699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12700 $(HOST_EXPORTS) \
ce5e165e 12701 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12703 done; \
22121df0 12704 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12705 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12708 "RANLIB=$${RANLIB}" \
0c24b341 12709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12710 mostlyclean) \
2a4cbe27
NN
12711 || exit 1
12712
a90ef4bf 12713@endif mpfr
2a4cbe27 12714
a90ef4bf
JM
12715.PHONY: maybe-clean-mpfr clean-mpfr
12716maybe-clean-mpfr:
12717@if mpfr
12718maybe-clean-mpfr: clean-mpfr
2a4cbe27 12719
a90ef4bf
JM
12720clean-mpfr:
12721 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12722 r=`${PWD_COMMAND}`; export r; \
12723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12724 $(HOST_EXPORTS) \
ce5e165e 12725 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12727 done; \
22121df0 12728 echo "Doing clean in mpfr"; \
a90ef4bf 12729 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12732 "RANLIB=$${RANLIB}" \
0c24b341 12733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12734 clean) \
2a4cbe27
NN
12735 || exit 1
12736
a90ef4bf 12737@endif mpfr
2a4cbe27 12738
a90ef4bf
JM
12739.PHONY: maybe-distclean-mpfr distclean-mpfr
12740maybe-distclean-mpfr:
12741@if mpfr
12742maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12743
a90ef4bf
JM
12744distclean-mpfr:
12745 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12746 r=`${PWD_COMMAND}`; export r; \
12747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12748 $(HOST_EXPORTS) \
ce5e165e 12749 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12751 done; \
22121df0 12752 echo "Doing distclean in mpfr"; \
a90ef4bf 12753 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12756 "RANLIB=$${RANLIB}" \
0c24b341 12757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12758 distclean) \
2a4cbe27
NN
12759 || exit 1
12760
a90ef4bf 12761@endif mpfr
2a4cbe27 12762
a90ef4bf
JM
12763.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12764maybe-maintainer-clean-mpfr:
12765@if mpfr
12766maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12767
a90ef4bf
JM
12768maintainer-clean-mpfr:
12769 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12770 r=`${PWD_COMMAND}`; export r; \
12771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12772 $(HOST_EXPORTS) \
ce5e165e 12773 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12775 done; \
22121df0 12776 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12777 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12780 "RANLIB=$${RANLIB}" \
0c24b341 12781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12782 maintainer-clean) \
2a4cbe27
NN
12783 || exit 1
12784
a90ef4bf 12785@endif mpfr
2a4cbe27 12786
2a4cbe27 12787
a7254363 12788
a90ef4bf
JM
12789.PHONY: configure-mpc maybe-configure-mpc
12790maybe-configure-mpc:
4f0ef2d8 12791@if gcc-bootstrap
a90ef4bf 12792configure-mpc: stage_current
4f0ef2d8 12793@endif gcc-bootstrap
a90ef4bf
JM
12794@if mpc
12795maybe-configure-mpc: configure-mpc
12796configure-mpc:
c52c6897 12797 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12799 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12800 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12801 $(HOST_EXPORTS) \
a90ef4bf
JM
12802 echo Configuring in $(HOST_SUBDIR)/mpc; \
12803 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12804 case $(srcdir) in \
b00612cc 12805 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12806 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12807 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12808 esac; \
1b6c0831
L
12809 module_srcdir=mpc; \
12810 $(SHELL) \
12811 $$s/$$module_srcdir/configure \
12812 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12813 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12814 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12815 || exit 1
a90ef4bf 12816@endif mpc
d545f33b
PB
12817
12818
d3ed111c 12819
a90ef4bf
JM
12820.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12821maybe-configure-stage1-mpc:
12822@if mpc-bootstrap
12823maybe-configure-stage1-mpc: configure-stage1-mpc
12824configure-stage1-mpc:
12825 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12826 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12827 @r=`${PWD_COMMAND}`; export r; \
12828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12829 TFLAGS="$(STAGE1_TFLAGS)"; \
12830 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12831 $(HOST_EXPORTS) \
a90ef4bf
JM
12832 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12833 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12834 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12835 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12836 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12837 cd $(HOST_SUBDIR)/mpc || exit 1; \
12838 case $(srcdir) in \
12839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12840 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12842 esac; \
1b6c0831
L
12843 module_srcdir=mpc; \
12844 $(SHELL) $$s/$$module_srcdir/configure \
12845 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12846 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12847 --target=${target_alias} \
12848 \
a90ef4bf
JM
12849 $(STAGE1_CONFIGURE_FLAGS) \
12850 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12851@endif mpc-bootstrap
d3ed111c 12852
a90ef4bf
JM
12853.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12854maybe-configure-stage2-mpc:
12855@if mpc-bootstrap
12856maybe-configure-stage2-mpc: configure-stage2-mpc
12857configure-stage2-mpc:
12858 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12859 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12860 @r=`${PWD_COMMAND}`; export r; \
12861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12862 TFLAGS="$(STAGE2_TFLAGS)"; \
12863 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12864 $(HOST_EXPORTS) \
a90ef4bf
JM
12865 $(POSTSTAGE1_HOST_EXPORTS) \
12866 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12867 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12868 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12869 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12870 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12871 cd $(HOST_SUBDIR)/mpc || exit 1; \
12872 case $(srcdir) in \
12873 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12874 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12875 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12876 esac; \
1b6c0831
L
12877 module_srcdir=mpc; \
12878 $(SHELL) $$s/$$module_srcdir/configure \
12879 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12880 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12881 --target=${target_alias} \
22121df0 12882 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12883 $(STAGE2_CONFIGURE_FLAGS) \
12884 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12885@endif mpc-bootstrap
9b980aa1 12886
a90ef4bf
JM
12887.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12888maybe-configure-stage3-mpc:
12889@if mpc-bootstrap
12890maybe-configure-stage3-mpc: configure-stage3-mpc
12891configure-stage3-mpc:
12892 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12893 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12894 @r=`${PWD_COMMAND}`; export r; \
12895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12896 TFLAGS="$(STAGE3_TFLAGS)"; \
12897 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12898 $(HOST_EXPORTS) \
a90ef4bf
JM
12899 $(POSTSTAGE1_HOST_EXPORTS) \
12900 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12901 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12902 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12903 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
12904 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12905 cd $(HOST_SUBDIR)/mpc || exit 1; \
12906 case $(srcdir) in \
12907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12908 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12910 esac; \
1b6c0831
L
12911 module_srcdir=mpc; \
12912 $(SHELL) $$s/$$module_srcdir/configure \
12913 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12914 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12915 --target=${target_alias} \
22121df0 12916 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12917 $(STAGE3_CONFIGURE_FLAGS) \
12918 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12919@endif mpc-bootstrap
d3ed111c 12920
a90ef4bf
JM
12921.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12922maybe-configure-stage4-mpc:
12923@if mpc-bootstrap
12924maybe-configure-stage4-mpc: configure-stage4-mpc
12925configure-stage4-mpc:
12926 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12927 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12928 @r=`${PWD_COMMAND}`; export r; \
12929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12930 TFLAGS="$(STAGE4_TFLAGS)"; \
12931 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12932 $(HOST_EXPORTS) \
12933 $(POSTSTAGE1_HOST_EXPORTS) \
12934 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12935 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12936 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12937 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
12938 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12939 cd $(HOST_SUBDIR)/mpc || exit 1; \
12940 case $(srcdir) in \
12941 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12942 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12943 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12944 esac; \
1b6c0831
L
12945 module_srcdir=mpc; \
12946 $(SHELL) $$s/$$module_srcdir/configure \
12947 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12948 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12949 --target=${target_alias} \
22121df0 12950 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12951 $(STAGE4_CONFIGURE_FLAGS) \
12952 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12953@endif mpc-bootstrap
12954
12955.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12956maybe-configure-stageprofile-mpc:
12957@if mpc-bootstrap
12958maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12959configure-stageprofile-mpc:
12960 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12961 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12962 @r=`${PWD_COMMAND}`; export r; \
12963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12964 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12965 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12966 $(HOST_EXPORTS) \
12967 $(POSTSTAGE1_HOST_EXPORTS) \
12968 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12969 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12970 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12971 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
12972 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12973 cd $(HOST_SUBDIR)/mpc || exit 1; \
12974 case $(srcdir) in \
12975 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12976 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12977 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12978 esac; \
1b6c0831
L
12979 module_srcdir=mpc; \
12980 $(SHELL) $$s/$$module_srcdir/configure \
12981 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12982 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12983 --target=${target_alias} \
22121df0 12984 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12985 $(STAGEprofile_CONFIGURE_FLAGS) \
12986 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12987@endif mpc-bootstrap
12988
12989.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
12990maybe-configure-stagefeedback-mpc:
12991@if mpc-bootstrap
12992maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
12993configure-stagefeedback-mpc:
12994 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12995 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12996 @r=`${PWD_COMMAND}`; export r; \
12997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12998 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12999 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13000 $(HOST_EXPORTS) \
13001 $(POSTSTAGE1_HOST_EXPORTS) \
13002 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13003 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13004 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13005 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13006 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13007 cd $(HOST_SUBDIR)/mpc || exit 1; \
13008 case $(srcdir) in \
13009 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13010 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13011 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13012 esac; \
1b6c0831
L
13013 module_srcdir=mpc; \
13014 $(SHELL) $$s/$$module_srcdir/configure \
13015 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13016 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13017 --target=${target_alias} \
22121df0 13018 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13019 $(STAGEfeedback_CONFIGURE_FLAGS) \
13020 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
13021@endif mpc-bootstrap
13022
13023
13024
13025
13026
13027.PHONY: all-mpc maybe-all-mpc
13028maybe-all-mpc:
13029@if gcc-bootstrap
13030all-mpc: stage_current
13031@endif gcc-bootstrap
13032@if mpc
13033TARGET-mpc=all
13034maybe-all-mpc: all-mpc
13035all-mpc: configure-mpc
13036 @r=`${PWD_COMMAND}`; export r; \
13037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13038 $(HOST_EXPORTS) \
13039 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13040 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13041 $(TARGET-mpc))
13042@endif mpc
13043
13044
13045
13046.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13047.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13048maybe-all-stage1-mpc:
13049maybe-clean-stage1-mpc:
13050@if mpc-bootstrap
13051maybe-all-stage1-mpc: all-stage1-mpc
13052all-stage1: all-stage1-mpc
13053TARGET-stage1-mpc = $(TARGET-mpc)
13054all-stage1-mpc: configure-stage1-mpc
13055 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13056 @r=`${PWD_COMMAND}`; export r; \
13057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13058 TFLAGS="$(STAGE1_TFLAGS)"; \
13059 $(HOST_EXPORTS) \
13060 cd $(HOST_SUBDIR)/mpc && \
13061 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13062 CFLAGS="$(STAGE1_CFLAGS)" \
13063 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13064 LIBCFLAGS="$(LIBCFLAGS)" \
13065 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13066 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13067 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13068 $(EXTRA_HOST_FLAGS) \
13069 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13070 TFLAGS="$(STAGE1_TFLAGS)" \
13071 $(TARGET-stage1-mpc)
13072
13073maybe-clean-stage1-mpc: clean-stage1-mpc
13074clean-stage1: clean-stage1-mpc
13075clean-stage1-mpc:
13076 @if [ $(current_stage) = stage1 ]; then \
13077 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13078 else \
13079 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13080 $(MAKE) stage1-start; \
13081 fi; \
13082 cd $(HOST_SUBDIR)/mpc && \
13083 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13084 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13085@endif mpc-bootstrap
13086
13087
13088.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13089.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13090maybe-all-stage2-mpc:
13091maybe-clean-stage2-mpc:
13092@if mpc-bootstrap
13093maybe-all-stage2-mpc: all-stage2-mpc
13094all-stage2: all-stage2-mpc
13095TARGET-stage2-mpc = $(TARGET-mpc)
13096all-stage2-mpc: configure-stage2-mpc
13097 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13098 @r=`${PWD_COMMAND}`; export r; \
13099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13100 TFLAGS="$(STAGE2_TFLAGS)"; \
13101 $(HOST_EXPORTS) \
13102 $(POSTSTAGE1_HOST_EXPORTS) \
13103 cd $(HOST_SUBDIR)/mpc && \
13104 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13105 CFLAGS="$(STAGE2_CFLAGS)" \
13106 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13107 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13108 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13109 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13110 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13111 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13112 TFLAGS="$(STAGE2_TFLAGS)" \
13113 $(TARGET-stage2-mpc)
13114
13115maybe-clean-stage2-mpc: clean-stage2-mpc
13116clean-stage2: clean-stage2-mpc
13117clean-stage2-mpc:
13118 @if [ $(current_stage) = stage2 ]; then \
13119 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13120 else \
13121 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13122 $(MAKE) stage2-start; \
13123 fi; \
13124 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13125 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13126@endif mpc-bootstrap
13127
13128
13129.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13130.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13131maybe-all-stage3-mpc:
13132maybe-clean-stage3-mpc:
13133@if mpc-bootstrap
13134maybe-all-stage3-mpc: all-stage3-mpc
13135all-stage3: all-stage3-mpc
13136TARGET-stage3-mpc = $(TARGET-mpc)
13137all-stage3-mpc: configure-stage3-mpc
13138 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13139 @r=`${PWD_COMMAND}`; export r; \
13140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13141 TFLAGS="$(STAGE3_TFLAGS)"; \
13142 $(HOST_EXPORTS) \
13143 $(POSTSTAGE1_HOST_EXPORTS) \
13144 cd $(HOST_SUBDIR)/mpc && \
13145 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13146 CFLAGS="$(STAGE3_CFLAGS)" \
13147 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13148 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13149 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13150 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13151 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13152 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13153 TFLAGS="$(STAGE3_TFLAGS)" \
13154 $(TARGET-stage3-mpc)
13155
13156maybe-clean-stage3-mpc: clean-stage3-mpc
13157clean-stage3: clean-stage3-mpc
13158clean-stage3-mpc:
13159 @if [ $(current_stage) = stage3 ]; then \
13160 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13161 else \
13162 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13163 $(MAKE) stage3-start; \
13164 fi; \
13165 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13166 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13167@endif mpc-bootstrap
13168
13169
13170.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13171.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13172maybe-all-stage4-mpc:
13173maybe-clean-stage4-mpc:
13174@if mpc-bootstrap
13175maybe-all-stage4-mpc: all-stage4-mpc
13176all-stage4: all-stage4-mpc
13177TARGET-stage4-mpc = $(TARGET-mpc)
13178all-stage4-mpc: configure-stage4-mpc
13179 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13180 @r=`${PWD_COMMAND}`; export r; \
13181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13182 TFLAGS="$(STAGE4_TFLAGS)"; \
13183 $(HOST_EXPORTS) \
13184 $(POSTSTAGE1_HOST_EXPORTS) \
13185 cd $(HOST_SUBDIR)/mpc && \
13186 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13187 CFLAGS="$(STAGE4_CFLAGS)" \
13188 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13189 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13190 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13191 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13192 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13193 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13194 TFLAGS="$(STAGE4_TFLAGS)" \
13195 $(TARGET-stage4-mpc)
13196
13197maybe-clean-stage4-mpc: clean-stage4-mpc
13198clean-stage4: clean-stage4-mpc
13199clean-stage4-mpc:
13200 @if [ $(current_stage) = stage4 ]; then \
13201 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13202 else \
13203 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13204 $(MAKE) stage4-start; \
13205 fi; \
13206 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13207 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13208@endif mpc-bootstrap
13209
13210
13211.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13212.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13213maybe-all-stageprofile-mpc:
13214maybe-clean-stageprofile-mpc:
13215@if mpc-bootstrap
13216maybe-all-stageprofile-mpc: all-stageprofile-mpc
13217all-stageprofile: all-stageprofile-mpc
13218TARGET-stageprofile-mpc = $(TARGET-mpc)
13219all-stageprofile-mpc: configure-stageprofile-mpc
13220 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13221 @r=`${PWD_COMMAND}`; export r; \
13222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13223 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13224 $(HOST_EXPORTS) \
13225 $(POSTSTAGE1_HOST_EXPORTS) \
13226 cd $(HOST_SUBDIR)/mpc && \
13227 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13228 CFLAGS="$(STAGEprofile_CFLAGS)" \
13229 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13230 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13231 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13232 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13233 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13234 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13235 TFLAGS="$(STAGEprofile_TFLAGS)" \
13236 $(TARGET-stageprofile-mpc)
13237
13238maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13239clean-stageprofile: clean-stageprofile-mpc
13240clean-stageprofile-mpc:
13241 @if [ $(current_stage) = stageprofile ]; then \
13242 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13243 else \
13244 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13245 $(MAKE) stageprofile-start; \
13246 fi; \
13247 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13248 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13249@endif mpc-bootstrap
13250
13251
13252.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13253.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13254maybe-all-stagefeedback-mpc:
13255maybe-clean-stagefeedback-mpc:
13256@if mpc-bootstrap
13257maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13258all-stagefeedback: all-stagefeedback-mpc
13259TARGET-stagefeedback-mpc = $(TARGET-mpc)
13260all-stagefeedback-mpc: configure-stagefeedback-mpc
13261 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13262 @r=`${PWD_COMMAND}`; export r; \
13263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13264 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13265 $(HOST_EXPORTS) \
13266 $(POSTSTAGE1_HOST_EXPORTS) \
13267 cd $(HOST_SUBDIR)/mpc && \
13268 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13269 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13270 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13271 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13272 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13273 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13274 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13275 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13276 TFLAGS="$(STAGEfeedback_TFLAGS)" \
13277 $(TARGET-stagefeedback-mpc)
13278
13279maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13280clean-stagefeedback: clean-stagefeedback-mpc
13281clean-stagefeedback-mpc:
13282 @if [ $(current_stage) = stagefeedback ]; then \
13283 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13284 else \
13285 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13286 $(MAKE) stagefeedback-start; \
13287 fi; \
13288 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13289 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13290@endif mpc-bootstrap
13291
13292
13293
13294
13295
13296.PHONY: check-mpc maybe-check-mpc
13297maybe-check-mpc:
13298@if mpc
13299maybe-check-mpc: check-mpc
13300
13301check-mpc:
13302 @: $(MAKE); $(unstage)
13303 @r=`${PWD_COMMAND}`; export r; \
13304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13305 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13306 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13307 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13308
13309@endif mpc
13310
13311.PHONY: install-mpc maybe-install-mpc
13312maybe-install-mpc:
13313@if mpc
13314maybe-install-mpc: install-mpc
13315
13316install-mpc:
13317
13318@endif mpc
13319
13320.PHONY: install-strip-mpc maybe-install-strip-mpc
13321maybe-install-strip-mpc:
13322@if mpc
13323maybe-install-strip-mpc: install-strip-mpc
13324
13325install-strip-mpc:
13326
13327@endif mpc
13328
13329# Other targets (info, dvi, pdf, etc.)
13330
13331.PHONY: maybe-info-mpc info-mpc
13332maybe-info-mpc:
13333@if mpc
13334maybe-info-mpc: info-mpc
13335
13336info-mpc: \
13337 configure-mpc
13338 @[ -f ./mpc/Makefile ] || exit 0; \
13339 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13341 $(HOST_EXPORTS) \
13342 for flag in $(EXTRA_HOST_FLAGS) ; do \
13343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13344 done; \
22121df0 13345 echo "Doing info in mpc"; \
a90ef4bf 13346 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13349 "RANLIB=$${RANLIB}" \
0c24b341 13350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13351 info) \
13352 || exit 1
d3ed111c 13353
a90ef4bf 13354@endif mpc
d3ed111c 13355
a90ef4bf
JM
13356.PHONY: maybe-dvi-mpc dvi-mpc
13357maybe-dvi-mpc:
13358@if mpc
13359maybe-dvi-mpc: dvi-mpc
d3ed111c 13360
a90ef4bf
JM
13361dvi-mpc: \
13362 configure-mpc
13363 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13364 r=`${PWD_COMMAND}`; export r; \
13365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13366 $(HOST_EXPORTS) \
13367 for flag in $(EXTRA_HOST_FLAGS) ; do \
13368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13369 done; \
22121df0 13370 echo "Doing dvi in mpc"; \
a90ef4bf 13371 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13374 "RANLIB=$${RANLIB}" \
0c24b341 13375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13376 dvi) \
13377 || exit 1
d3ed111c 13378
a90ef4bf 13379@endif mpc
d3ed111c 13380
a90ef4bf
JM
13381.PHONY: maybe-pdf-mpc pdf-mpc
13382maybe-pdf-mpc:
13383@if mpc
13384maybe-pdf-mpc: pdf-mpc
56a8fe78 13385
a90ef4bf
JM
13386pdf-mpc: \
13387 configure-mpc
13388 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13389 r=`${PWD_COMMAND}`; export r; \
13390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13391 $(HOST_EXPORTS) \
13392 for flag in $(EXTRA_HOST_FLAGS) ; do \
13393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13394 done; \
22121df0 13395 echo "Doing pdf in mpc"; \
a90ef4bf 13396 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13399 "RANLIB=$${RANLIB}" \
0c24b341 13400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13401 pdf) \
13402 || exit 1
56a8fe78 13403
a90ef4bf 13404@endif mpc
56a8fe78 13405
a90ef4bf
JM
13406.PHONY: maybe-html-mpc html-mpc
13407maybe-html-mpc:
13408@if mpc
13409maybe-html-mpc: html-mpc
6d389afc 13410
a90ef4bf
JM
13411html-mpc: \
13412 configure-mpc
13413 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13414 r=`${PWD_COMMAND}`; export r; \
13415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13416 $(HOST_EXPORTS) \
13417 for flag in $(EXTRA_HOST_FLAGS) ; do \
13418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13419 done; \
22121df0 13420 echo "Doing html in mpc"; \
a90ef4bf 13421 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13424 "RANLIB=$${RANLIB}" \
0c24b341 13425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13426 html) \
13427 || exit 1
13428
a90ef4bf 13429@endif mpc
d3ed111c 13430
a90ef4bf
JM
13431.PHONY: maybe-TAGS-mpc TAGS-mpc
13432maybe-TAGS-mpc:
13433@if mpc
13434maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13435
a90ef4bf
JM
13436TAGS-mpc: \
13437 configure-mpc
13438 @[ -f ./mpc/Makefile ] || exit 0; \
13439 r=`${PWD_COMMAND}`; export r; \
13440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13441 $(HOST_EXPORTS) \
13442 for flag in $(EXTRA_HOST_FLAGS) ; do \
13443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13444 done; \
22121df0 13445 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13446 (cd $(HOST_SUBDIR)/mpc && \
13447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13449 "RANLIB=$${RANLIB}" \
13450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13451 TAGS) \
13452 || exit 1
13453
13454@endif mpc
13455
13456.PHONY: maybe-install-info-mpc install-info-mpc
13457maybe-install-info-mpc:
13458@if mpc
13459maybe-install-info-mpc: install-info-mpc
13460
13461install-info-mpc: \
13462 configure-mpc \
13463 info-mpc
13464 @[ -f ./mpc/Makefile ] || exit 0; \
13465 r=`${PWD_COMMAND}`; export r; \
13466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13467 $(HOST_EXPORTS) \
13468 for flag in $(EXTRA_HOST_FLAGS) ; do \
13469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13470 done; \
22121df0 13471 echo "Doing install-info in mpc"; \
a90ef4bf 13472 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13475 "RANLIB=$${RANLIB}" \
0c24b341 13476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13477 install-info) \
13478 || exit 1
d3ed111c 13479
a90ef4bf 13480@endif mpc
d3ed111c 13481
a90ef4bf
JM
13482.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13483maybe-install-pdf-mpc:
13484@if mpc
13485maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13486
a90ef4bf
JM
13487install-pdf-mpc: \
13488 configure-mpc \
13489 pdf-mpc
13490 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13491 r=`${PWD_COMMAND}`; export r; \
13492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13493 $(HOST_EXPORTS) \
13494 for flag in $(EXTRA_HOST_FLAGS) ; do \
13495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13496 done; \
22121df0 13497 echo "Doing install-pdf in mpc"; \
a90ef4bf 13498 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13501 "RANLIB=$${RANLIB}" \
0c24b341 13502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13503 install-pdf) \
13504 || exit 1
a3ca38d2 13505
a90ef4bf 13506@endif mpc
a3ca38d2 13507
a90ef4bf
JM
13508.PHONY: maybe-install-html-mpc install-html-mpc
13509maybe-install-html-mpc:
13510@if mpc
13511maybe-install-html-mpc: install-html-mpc
108a6f8e 13512
a90ef4bf
JM
13513install-html-mpc: \
13514 configure-mpc \
13515 html-mpc
13516 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13517 r=`${PWD_COMMAND}`; export r; \
13518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13519 $(HOST_EXPORTS) \
13520 for flag in $(EXTRA_HOST_FLAGS) ; do \
13521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13522 done; \
22121df0 13523 echo "Doing install-html in mpc"; \
a90ef4bf 13524 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13527 "RANLIB=$${RANLIB}" \
0c24b341 13528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13529 install-html) \
13530 || exit 1
13531
a90ef4bf 13532@endif mpc
108a6f8e 13533
a90ef4bf
JM
13534.PHONY: maybe-installcheck-mpc installcheck-mpc
13535maybe-installcheck-mpc:
13536@if mpc
13537maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13538
a90ef4bf
JM
13539installcheck-mpc: \
13540 configure-mpc
13541 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13542 r=`${PWD_COMMAND}`; export r; \
13543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13544 $(HOST_EXPORTS) \
13545 for flag in $(EXTRA_HOST_FLAGS) ; do \
13546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13547 done; \
22121df0 13548 echo "Doing installcheck in mpc"; \
a90ef4bf 13549 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13552 "RANLIB=$${RANLIB}" \
0c24b341 13553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13554 installcheck) \
13555 || exit 1
d3ed111c 13556
a90ef4bf 13557@endif mpc
d3ed111c 13558
a90ef4bf
JM
13559.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13560maybe-mostlyclean-mpc:
13561@if mpc
13562maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13563
a90ef4bf
JM
13564mostlyclean-mpc:
13565 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13566 r=`${PWD_COMMAND}`; export r; \
13567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13568 $(HOST_EXPORTS) \
13569 for flag in $(EXTRA_HOST_FLAGS) ; do \
13570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13571 done; \
22121df0 13572 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13573 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13576 "RANLIB=$${RANLIB}" \
0c24b341 13577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13578 mostlyclean) \
13579 || exit 1
13580
a90ef4bf 13581@endif mpc
d3ed111c 13582
a90ef4bf
JM
13583.PHONY: maybe-clean-mpc clean-mpc
13584maybe-clean-mpc:
13585@if mpc
13586maybe-clean-mpc: clean-mpc
d3ed111c 13587
a90ef4bf
JM
13588clean-mpc:
13589 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13590 r=`${PWD_COMMAND}`; export r; \
13591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13592 $(HOST_EXPORTS) \
13593 for flag in $(EXTRA_HOST_FLAGS) ; do \
13594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13595 done; \
22121df0 13596 echo "Doing clean in mpc"; \
a90ef4bf 13597 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13600 "RANLIB=$${RANLIB}" \
0c24b341 13601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13602 clean) \
13603 || exit 1
13604
a90ef4bf 13605@endif mpc
d3ed111c 13606
a90ef4bf
JM
13607.PHONY: maybe-distclean-mpc distclean-mpc
13608maybe-distclean-mpc:
13609@if mpc
13610maybe-distclean-mpc: distclean-mpc
d3ed111c 13611
a90ef4bf
JM
13612distclean-mpc:
13613 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13614 r=`${PWD_COMMAND}`; export r; \
13615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13616 $(HOST_EXPORTS) \
13617 for flag in $(EXTRA_HOST_FLAGS) ; do \
13618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13619 done; \
22121df0 13620 echo "Doing distclean in mpc"; \
a90ef4bf 13621 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13624 "RANLIB=$${RANLIB}" \
0c24b341 13625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13626 distclean) \
13627 || exit 1
13628
a90ef4bf 13629@endif mpc
d3ed111c 13630
a90ef4bf
JM
13631.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13632maybe-maintainer-clean-mpc:
13633@if mpc
13634maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13635
a90ef4bf
JM
13636maintainer-clean-mpc:
13637 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13638 r=`${PWD_COMMAND}`; export r; \
13639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13640 $(HOST_EXPORTS) \
13641 for flag in $(EXTRA_HOST_FLAGS) ; do \
13642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13643 done; \
22121df0 13644 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13645 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13648 "RANLIB=$${RANLIB}" \
0c24b341 13649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13650 maintainer-clean) \
13651 || exit 1
13652
a90ef4bf 13653@endif mpc
d3ed111c
GK
13654
13655
a7254363 13656
7ec59b9e
L
13657.PHONY: configure-isl maybe-configure-isl
13658maybe-configure-isl:
4f0ef2d8 13659@if gcc-bootstrap
7ec59b9e 13660configure-isl: stage_current
4f0ef2d8 13661@endif gcc-bootstrap
7ec59b9e
L
13662@if isl
13663maybe-configure-isl: configure-isl
13664configure-isl:
c52c6897 13665 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13667 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13668 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13669 $(HOST_EXPORTS) \
7ec59b9e
L
13670 echo Configuring in $(HOST_SUBDIR)/isl; \
13671 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13672 case $(srcdir) in \
b00612cc 13673 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13674 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13675 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13676 esac; \
1b6c0831
L
13677 module_srcdir=isl; \
13678 $(SHELL) \
13679 $$s/$$module_srcdir/configure \
13680 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13681 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13682 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13683 || exit 1
7ec59b9e 13684@endif isl
4fa63067 13685
a7254363
PB
13686
13687
7ec59b9e
L
13688.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13689maybe-configure-stage1-isl:
13690@if isl-bootstrap
13691maybe-configure-stage1-isl: configure-stage1-isl
13692configure-stage1-isl:
a90ef4bf 13693 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13694 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13695 @r=`${PWD_COMMAND}`; export r; \
13696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13697 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13698 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13699 $(HOST_EXPORTS) \
13700 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13701 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13702 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13703 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13704 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13705 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13706 case $(srcdir) in \
13707 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13708 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13709 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13710 esac; \
1b6c0831
L
13711 module_srcdir=isl; \
13712 $(SHELL) $$s/$$module_srcdir/configure \
13713 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13714 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13715 --target=${target_alias} \
13716 \
a90ef4bf 13717 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13718 --disable-shared @extra_isl_gmp_configure_flags@
13719@endif isl-bootstrap
13720
13721.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13722maybe-configure-stage2-isl:
13723@if isl-bootstrap
13724maybe-configure-stage2-isl: configure-stage2-isl
13725configure-stage2-isl:
a90ef4bf 13726 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13727 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13728 @r=`${PWD_COMMAND}`; export r; \
13729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13730 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13731 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13732 $(HOST_EXPORTS) \
13733 $(POSTSTAGE1_HOST_EXPORTS) \
13734 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13735 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13736 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13737 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13738 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13739 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13740 case $(srcdir) in \
13741 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13742 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13743 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13744 esac; \
1b6c0831
L
13745 module_srcdir=isl; \
13746 $(SHELL) $$s/$$module_srcdir/configure \
13747 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13748 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13749 --target=${target_alias} \
22121df0 13750 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13751 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13752 --disable-shared @extra_isl_gmp_configure_flags@
13753@endif isl-bootstrap
13754
13755.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13756maybe-configure-stage3-isl:
13757@if isl-bootstrap
13758maybe-configure-stage3-isl: configure-stage3-isl
13759configure-stage3-isl:
a90ef4bf 13760 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13761 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13762 @r=`${PWD_COMMAND}`; export r; \
13763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13764 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13765 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13766 $(HOST_EXPORTS) \
13767 $(POSTSTAGE1_HOST_EXPORTS) \
13768 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13769 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13770 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13771 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13772 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13773 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13774 case $(srcdir) in \
13775 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13776 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13777 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13778 esac; \
1b6c0831
L
13779 module_srcdir=isl; \
13780 $(SHELL) $$s/$$module_srcdir/configure \
13781 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13782 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13783 --target=${target_alias} \
22121df0 13784 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13785 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13786 --disable-shared @extra_isl_gmp_configure_flags@
13787@endif isl-bootstrap
13788
13789.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13790maybe-configure-stage4-isl:
13791@if isl-bootstrap
13792maybe-configure-stage4-isl: configure-stage4-isl
13793configure-stage4-isl:
a90ef4bf 13794 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13795 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13796 @r=`${PWD_COMMAND}`; export r; \
13797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13798 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13799 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13800 $(HOST_EXPORTS) \
13801 $(POSTSTAGE1_HOST_EXPORTS) \
13802 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13803 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13804 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13805 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13806 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13807 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13808 case $(srcdir) in \
13809 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13810 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13811 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13812 esac; \
1b6c0831
L
13813 module_srcdir=isl; \
13814 $(SHELL) $$s/$$module_srcdir/configure \
13815 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13816 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13817 --target=${target_alias} \
22121df0 13818 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13819 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13820 --disable-shared @extra_isl_gmp_configure_flags@
13821@endif isl-bootstrap
13822
13823.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13824maybe-configure-stageprofile-isl:
13825@if isl-bootstrap
13826maybe-configure-stageprofile-isl: configure-stageprofile-isl
13827configure-stageprofile-isl:
a90ef4bf 13828 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13829 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13830 @r=`${PWD_COMMAND}`; export r; \
13831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13832 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13833 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13834 $(HOST_EXPORTS) \
13835 $(POSTSTAGE1_HOST_EXPORTS) \
13836 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13837 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13838 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13839 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13840 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13841 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13842 case $(srcdir) in \
13843 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13844 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13845 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13846 esac; \
1b6c0831
L
13847 module_srcdir=isl; \
13848 $(SHELL) $$s/$$module_srcdir/configure \
13849 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13850 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13851 --target=${target_alias} \
22121df0 13852 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13853 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13854 --disable-shared @extra_isl_gmp_configure_flags@
13855@endif isl-bootstrap
13856
13857.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13858maybe-configure-stagefeedback-isl:
13859@if isl-bootstrap
13860maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13861configure-stagefeedback-isl:
a90ef4bf 13862 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13863 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13864 @r=`${PWD_COMMAND}`; export r; \
13865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13866 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13867 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13868 $(HOST_EXPORTS) \
13869 $(POSTSTAGE1_HOST_EXPORTS) \
13870 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13871 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13872 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13873 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13874 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13875 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13876 case $(srcdir) in \
13877 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13878 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13879 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13880 esac; \
1b6c0831
L
13881 module_srcdir=isl; \
13882 $(SHELL) $$s/$$module_srcdir/configure \
13883 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13884 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13885 --target=${target_alias} \
22121df0 13886 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13887 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13888 --disable-shared @extra_isl_gmp_configure_flags@
13889@endif isl-bootstrap
d545f33b 13890
4fa63067 13891
4fa63067
NN
13892
13893
4fa63067 13894
7ec59b9e
L
13895.PHONY: all-isl maybe-all-isl
13896maybe-all-isl:
a90ef4bf 13897@if gcc-bootstrap
7ec59b9e 13898all-isl: stage_current
a90ef4bf 13899@endif gcc-bootstrap
7ec59b9e
L
13900@if isl
13901TARGET-isl=all
13902maybe-all-isl: all-isl
13903all-isl: configure-isl
4fa63067
NN
13904 @r=`${PWD_COMMAND}`; export r; \
13905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13906 $(HOST_EXPORTS) \
7ec59b9e 13907 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13908 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13909 $(TARGET-isl))
13910@endif isl
13911
13912
13913
13914.PHONY: all-stage1-isl maybe-all-stage1-isl
13915.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13916maybe-all-stage1-isl:
13917maybe-clean-stage1-isl:
13918@if isl-bootstrap
13919maybe-all-stage1-isl: all-stage1-isl
13920all-stage1: all-stage1-isl
13921TARGET-stage1-isl = $(TARGET-isl)
13922all-stage1-isl: configure-stage1-isl
a90ef4bf 13923 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13924 @r=`${PWD_COMMAND}`; export r; \
13925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13926 TFLAGS="$(STAGE1_TFLAGS)"; \
13927 $(HOST_EXPORTS) \
7ec59b9e 13928 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13929 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13930 CFLAGS="$(STAGE1_CFLAGS)" \
13931 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13932 LIBCFLAGS="$(LIBCFLAGS)" \
13933 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13934 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13935 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13936 $(EXTRA_HOST_FLAGS) \
13937 $(STAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13938 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13939 $(TARGET-stage1-isl)
9b980aa1 13940
7ec59b9e
L
13941maybe-clean-stage1-isl: clean-stage1-isl
13942clean-stage1: clean-stage1-isl
13943clean-stage1-isl:
a90ef4bf 13944 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 13945 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13946 else \
7ec59b9e 13947 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13948 $(MAKE) stage1-start; \
13949 fi; \
7ec59b9e 13950 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 13951 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13952 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13953@endif isl-bootstrap
13954
13955
13956.PHONY: all-stage2-isl maybe-all-stage2-isl
13957.PHONY: clean-stage2-isl maybe-clean-stage2-isl
13958maybe-all-stage2-isl:
13959maybe-clean-stage2-isl:
13960@if isl-bootstrap
13961maybe-all-stage2-isl: all-stage2-isl
13962all-stage2: all-stage2-isl
13963TARGET-stage2-isl = $(TARGET-isl)
13964all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
13965 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13966 @r=`${PWD_COMMAND}`; export r; \
13967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13968 TFLAGS="$(STAGE2_TFLAGS)"; \
13969 $(HOST_EXPORTS) \
13970 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13971 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13972 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13973 CFLAGS="$(STAGE2_CFLAGS)" \
13974 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13975 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13976 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13977 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13978 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13979 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13980 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 13981 $(TARGET-stage2-isl)
a90ef4bf 13982
7ec59b9e
L
13983maybe-clean-stage2-isl: clean-stage2-isl
13984clean-stage2: clean-stage2-isl
13985clean-stage2-isl:
a90ef4bf 13986 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 13987 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13988 else \
7ec59b9e 13989 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13990 $(MAKE) stage2-start; \
13991 fi; \
7ec59b9e 13992 cd $(HOST_SUBDIR)/isl && \
b3676d82 13993 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13994@endif isl-bootstrap
13995
13996
13997.PHONY: all-stage3-isl maybe-all-stage3-isl
13998.PHONY: clean-stage3-isl maybe-clean-stage3-isl
13999maybe-all-stage3-isl:
14000maybe-clean-stage3-isl:
14001@if isl-bootstrap
14002maybe-all-stage3-isl: all-stage3-isl
14003all-stage3: all-stage3-isl
14004TARGET-stage3-isl = $(TARGET-isl)
14005all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14006 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14007 @r=`${PWD_COMMAND}`; export r; \
14008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14009 TFLAGS="$(STAGE3_TFLAGS)"; \
14010 $(HOST_EXPORTS) \
14011 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14012 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14013 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14014 CFLAGS="$(STAGE3_CFLAGS)" \
14015 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14016 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14017 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14018 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14019 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14020 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14021 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14022 $(TARGET-stage3-isl)
a90ef4bf 14023
7ec59b9e
L
14024maybe-clean-stage3-isl: clean-stage3-isl
14025clean-stage3: clean-stage3-isl
14026clean-stage3-isl:
a90ef4bf 14027 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14028 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14029 else \
7ec59b9e 14030 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14031 $(MAKE) stage3-start; \
14032 fi; \
7ec59b9e 14033 cd $(HOST_SUBDIR)/isl && \
b3676d82 14034 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14035@endif isl-bootstrap
14036
14037
14038.PHONY: all-stage4-isl maybe-all-stage4-isl
14039.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14040maybe-all-stage4-isl:
14041maybe-clean-stage4-isl:
14042@if isl-bootstrap
14043maybe-all-stage4-isl: all-stage4-isl
14044all-stage4: all-stage4-isl
14045TARGET-stage4-isl = $(TARGET-isl)
14046all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14047 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14048 @r=`${PWD_COMMAND}`; export r; \
14049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14050 TFLAGS="$(STAGE4_TFLAGS)"; \
14051 $(HOST_EXPORTS) \
14052 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14053 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14054 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14055 CFLAGS="$(STAGE4_CFLAGS)" \
14056 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14057 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14058 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14059 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14060 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14061 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14062 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14063 $(TARGET-stage4-isl)
a90ef4bf 14064
7ec59b9e
L
14065maybe-clean-stage4-isl: clean-stage4-isl
14066clean-stage4: clean-stage4-isl
14067clean-stage4-isl:
a90ef4bf 14068 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14069 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14070 else \
7ec59b9e 14071 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14072 $(MAKE) stage4-start; \
14073 fi; \
7ec59b9e 14074 cd $(HOST_SUBDIR)/isl && \
b3676d82 14075 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14076@endif isl-bootstrap
14077
14078
14079.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14080.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14081maybe-all-stageprofile-isl:
14082maybe-clean-stageprofile-isl:
14083@if isl-bootstrap
14084maybe-all-stageprofile-isl: all-stageprofile-isl
14085all-stageprofile: all-stageprofile-isl
14086TARGET-stageprofile-isl = $(TARGET-isl)
14087all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14088 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14089 @r=`${PWD_COMMAND}`; export r; \
14090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14091 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14092 $(HOST_EXPORTS) \
14093 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14094 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14095 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14096 CFLAGS="$(STAGEprofile_CFLAGS)" \
14097 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14098 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14099 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14100 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14101 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14102 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14103 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14104 $(TARGET-stageprofile-isl)
a90ef4bf 14105
7ec59b9e
L
14106maybe-clean-stageprofile-isl: clean-stageprofile-isl
14107clean-stageprofile: clean-stageprofile-isl
14108clean-stageprofile-isl:
a90ef4bf 14109 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14110 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14111 else \
7ec59b9e 14112 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14113 $(MAKE) stageprofile-start; \
14114 fi; \
7ec59b9e 14115 cd $(HOST_SUBDIR)/isl && \
b3676d82 14116 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14117@endif isl-bootstrap
14118
14119
14120.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14121.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14122maybe-all-stagefeedback-isl:
14123maybe-clean-stagefeedback-isl:
14124@if isl-bootstrap
14125maybe-all-stagefeedback-isl: all-stagefeedback-isl
14126all-stagefeedback: all-stagefeedback-isl
14127TARGET-stagefeedback-isl = $(TARGET-isl)
14128all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14129 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14130 @r=`${PWD_COMMAND}`; export r; \
14131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14132 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14133 $(HOST_EXPORTS) \
14134 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14135 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14136 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14137 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14138 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14139 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14140 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14141 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14142 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14143 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14144 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14145 $(TARGET-stagefeedback-isl)
a90ef4bf 14146
7ec59b9e
L
14147maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14148clean-stagefeedback: clean-stagefeedback-isl
14149clean-stagefeedback-isl:
a90ef4bf 14150 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14151 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14152 else \
7ec59b9e 14153 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14154 $(MAKE) stagefeedback-start; \
14155 fi; \
7ec59b9e 14156 cd $(HOST_SUBDIR)/isl && \
b3676d82 14157 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14158@endif isl-bootstrap
a90ef4bf
JM
14159
14160
14161
14162
14163
7ec59b9e
L
14164.PHONY: check-isl maybe-check-isl
14165maybe-check-isl:
14166@if isl
14167maybe-check-isl: check-isl
a90ef4bf 14168
7ec59b9e 14169check-isl:
0aed8855 14170 @: $(MAKE); $(unstage)
a90ef4bf
JM
14171 @r=`${PWD_COMMAND}`; export r; \
14172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14173 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14174 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14175 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14176
7ec59b9e 14177@endif isl
a90ef4bf 14178
7ec59b9e
L
14179.PHONY: install-isl maybe-install-isl
14180maybe-install-isl:
14181@if isl
14182maybe-install-isl: install-isl
a90ef4bf 14183
7ec59b9e 14184install-isl:
a90ef4bf 14185
7ec59b9e 14186@endif isl
a90ef4bf 14187
7ec59b9e
L
14188.PHONY: install-strip-isl maybe-install-strip-isl
14189maybe-install-strip-isl:
14190@if isl
14191maybe-install-strip-isl: install-strip-isl
a90ef4bf 14192
7ec59b9e 14193install-strip-isl:
a90ef4bf 14194
7ec59b9e 14195@endif isl
a90ef4bf
JM
14196
14197# Other targets (info, dvi, pdf, etc.)
14198
7ec59b9e
L
14199.PHONY: maybe-info-isl info-isl
14200maybe-info-isl:
14201@if isl
14202maybe-info-isl: info-isl
a90ef4bf 14203
7ec59b9e
L
14204info-isl: \
14205 configure-isl
14206 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14207 r=`${PWD_COMMAND}`; export r; \
14208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14209 $(HOST_EXPORTS) \
7ec59b9e 14210 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14212 done; \
22121df0 14213 echo "Doing info in isl"; \
7ec59b9e 14214 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14217 "RANLIB=$${RANLIB}" \
0c24b341 14218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14219 info) \
2a4cbe27
NN
14220 || exit 1
14221
7ec59b9e 14222@endif isl
2a4cbe27 14223
7ec59b9e
L
14224.PHONY: maybe-dvi-isl dvi-isl
14225maybe-dvi-isl:
14226@if isl
14227maybe-dvi-isl: dvi-isl
2a4cbe27 14228
7ec59b9e
L
14229dvi-isl: \
14230 configure-isl
14231 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14232 r=`${PWD_COMMAND}`; export r; \
14233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14234 $(HOST_EXPORTS) \
7ec59b9e 14235 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14237 done; \
22121df0 14238 echo "Doing dvi in isl"; \
7ec59b9e 14239 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14242 "RANLIB=$${RANLIB}" \
0c24b341 14243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14244 dvi) \
2a4cbe27
NN
14245 || exit 1
14246
7ec59b9e 14247@endif isl
2a4cbe27 14248
7ec59b9e
L
14249.PHONY: maybe-pdf-isl pdf-isl
14250maybe-pdf-isl:
14251@if isl
14252maybe-pdf-isl: pdf-isl
56a8fe78 14253
7ec59b9e
L
14254pdf-isl: \
14255 configure-isl
14256 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14257 r=`${PWD_COMMAND}`; export r; \
14258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14259 $(HOST_EXPORTS) \
7ec59b9e 14260 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14262 done; \
22121df0 14263 echo "Doing pdf in isl"; \
7ec59b9e 14264 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14267 "RANLIB=$${RANLIB}" \
0c24b341 14268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14269 pdf) \
14270 || exit 1
14271
7ec59b9e 14272@endif isl
56a8fe78 14273
7ec59b9e
L
14274.PHONY: maybe-html-isl html-isl
14275maybe-html-isl:
14276@if isl
14277maybe-html-isl: html-isl
6d389afc 14278
7ec59b9e
L
14279html-isl: \
14280 configure-isl
14281 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14282 r=`${PWD_COMMAND}`; export r; \
14283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14284 $(HOST_EXPORTS) \
7ec59b9e 14285 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14287 done; \
22121df0 14288 echo "Doing html in isl"; \
7ec59b9e 14289 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14292 "RANLIB=$${RANLIB}" \
0c24b341 14293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14294 html) \
14295 || exit 1
14296
7ec59b9e 14297@endif isl
6d389afc 14298
7ec59b9e
L
14299.PHONY: maybe-TAGS-isl TAGS-isl
14300maybe-TAGS-isl:
14301@if isl
14302maybe-TAGS-isl: TAGS-isl
2a4cbe27 14303
7ec59b9e
L
14304TAGS-isl: \
14305 configure-isl
14306 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14307 r=`${PWD_COMMAND}`; export r; \
14308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14309 $(HOST_EXPORTS) \
7ec59b9e 14310 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14312 done; \
22121df0 14313 echo "Doing TAGS in isl"; \
7ec59b9e 14314 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14317 "RANLIB=$${RANLIB}" \
0c24b341 14318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14319 TAGS) \
2a4cbe27
NN
14320 || exit 1
14321
7ec59b9e 14322@endif isl
2a4cbe27 14323
7ec59b9e
L
14324.PHONY: maybe-install-info-isl install-info-isl
14325maybe-install-info-isl:
14326@if isl
14327maybe-install-info-isl: install-info-isl
2a4cbe27 14328
7ec59b9e
L
14329install-info-isl: \
14330 configure-isl \
14331 info-isl
14332 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14333 r=`${PWD_COMMAND}`; export r; \
14334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14335 $(HOST_EXPORTS) \
7ec59b9e 14336 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14338 done; \
22121df0 14339 echo "Doing install-info in isl"; \
7ec59b9e 14340 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14343 "RANLIB=$${RANLIB}" \
0c24b341 14344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14345 install-info) \
2a4cbe27
NN
14346 || exit 1
14347
7ec59b9e 14348@endif isl
2a4cbe27 14349
7ec59b9e
L
14350.PHONY: maybe-install-pdf-isl install-pdf-isl
14351maybe-install-pdf-isl:
14352@if isl
14353maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14354
7ec59b9e
L
14355install-pdf-isl: \
14356 configure-isl \
14357 pdf-isl
14358 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14359 r=`${PWD_COMMAND}`; export r; \
14360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14361 $(HOST_EXPORTS) \
7ec59b9e 14362 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14364 done; \
22121df0 14365 echo "Doing install-pdf in isl"; \
7ec59b9e 14366 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14369 "RANLIB=$${RANLIB}" \
0c24b341 14370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14371 install-pdf) \
14372 || exit 1
14373
7ec59b9e 14374@endif isl
a3ca38d2 14375
7ec59b9e
L
14376.PHONY: maybe-install-html-isl install-html-isl
14377maybe-install-html-isl:
14378@if isl
14379maybe-install-html-isl: install-html-isl
108a6f8e 14380
7ec59b9e
L
14381install-html-isl: \
14382 configure-isl \
14383 html-isl
14384 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14385 r=`${PWD_COMMAND}`; export r; \
14386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14387 $(HOST_EXPORTS) \
7ec59b9e 14388 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14390 done; \
22121df0 14391 echo "Doing install-html in isl"; \
7ec59b9e 14392 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14395 "RANLIB=$${RANLIB}" \
0c24b341 14396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14397 install-html) \
14398 || exit 1
14399
7ec59b9e 14400@endif isl
108a6f8e 14401
7ec59b9e
L
14402.PHONY: maybe-installcheck-isl installcheck-isl
14403maybe-installcheck-isl:
14404@if isl
14405maybe-installcheck-isl: installcheck-isl
2a4cbe27 14406
7ec59b9e
L
14407installcheck-isl: \
14408 configure-isl
14409 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14410 r=`${PWD_COMMAND}`; export r; \
14411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14412 $(HOST_EXPORTS) \
7ec59b9e 14413 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14415 done; \
22121df0 14416 echo "Doing installcheck in isl"; \
7ec59b9e 14417 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14420 "RANLIB=$${RANLIB}" \
0c24b341 14421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14422 installcheck) \
2a4cbe27
NN
14423 || exit 1
14424
7ec59b9e 14425@endif isl
2a4cbe27 14426
7ec59b9e
L
14427.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14428maybe-mostlyclean-isl:
14429@if isl
14430maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14431
7ec59b9e
L
14432mostlyclean-isl:
14433 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14434 r=`${PWD_COMMAND}`; export r; \
14435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14436 $(HOST_EXPORTS) \
7ec59b9e 14437 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14439 done; \
22121df0 14440 echo "Doing mostlyclean in isl"; \
7ec59b9e 14441 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14444 "RANLIB=$${RANLIB}" \
0c24b341 14445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14446 mostlyclean) \
2a4cbe27
NN
14447 || exit 1
14448
7ec59b9e 14449@endif isl
2a4cbe27 14450
7ec59b9e
L
14451.PHONY: maybe-clean-isl clean-isl
14452maybe-clean-isl:
14453@if isl
14454maybe-clean-isl: clean-isl
2a4cbe27 14455
7ec59b9e
L
14456clean-isl:
14457 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14458 r=`${PWD_COMMAND}`; export r; \
14459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14460 $(HOST_EXPORTS) \
7ec59b9e 14461 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14463 done; \
22121df0 14464 echo "Doing clean in isl"; \
7ec59b9e 14465 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14468 "RANLIB=$${RANLIB}" \
0c24b341 14469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14470 clean) \
2a4cbe27
NN
14471 || exit 1
14472
7ec59b9e 14473@endif isl
2a4cbe27 14474
7ec59b9e
L
14475.PHONY: maybe-distclean-isl distclean-isl
14476maybe-distclean-isl:
14477@if isl
14478maybe-distclean-isl: distclean-isl
2a4cbe27 14479
7ec59b9e
L
14480distclean-isl:
14481 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14482 r=`${PWD_COMMAND}`; export r; \
14483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14484 $(HOST_EXPORTS) \
7ec59b9e 14485 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14487 done; \
22121df0 14488 echo "Doing distclean in isl"; \
7ec59b9e 14489 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14492 "RANLIB=$${RANLIB}" \
0c24b341 14493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14494 distclean) \
2a4cbe27
NN
14495 || exit 1
14496
7ec59b9e 14497@endif isl
2a4cbe27 14498
7ec59b9e
L
14499.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14500maybe-maintainer-clean-isl:
14501@if isl
14502maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14503
7ec59b9e
L
14504maintainer-clean-isl:
14505 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14506 r=`${PWD_COMMAND}`; export r; \
14507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14508 $(HOST_EXPORTS) \
7ec59b9e 14509 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14511 done; \
22121df0 14512 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14513 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14516 "RANLIB=$${RANLIB}" \
0c24b341 14517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14518 maintainer-clean) \
2a4cbe27
NN
14519 || exit 1
14520
7ec59b9e 14521@endif isl
2a4cbe27 14522
2a4cbe27 14523
a7254363 14524
a90ef4bf
JM
14525.PHONY: configure-libelf maybe-configure-libelf
14526maybe-configure-libelf:
c52c6897 14527@if gcc-bootstrap
a90ef4bf 14528configure-libelf: stage_current
c52c6897 14529@endif gcc-bootstrap
a90ef4bf
JM
14530@if libelf
14531maybe-configure-libelf: configure-libelf
14532configure-libelf:
c52c6897
PB
14533 @r=`${PWD_COMMAND}`; export r; \
14534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14535 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14536 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14537 $(HOST_EXPORTS) \
a90ef4bf
JM
14538 echo Configuring in $(HOST_SUBDIR)/libelf; \
14539 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14540 case $(srcdir) in \
b00612cc 14541 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14542 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14543 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14544 esac; \
1b6c0831
L
14545 module_srcdir=libelf; \
14546 $(SHELL) \
14547 $$s/$$module_srcdir/configure \
14548 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14549 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14550 --target=${target_alias} --disable-shared \
4fa63067 14551 || exit 1
a90ef4bf 14552@endif libelf
4fa63067 14553
a7254363
PB
14554
14555
a90ef4bf
JM
14556.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14557maybe-configure-stage1-libelf:
14558@if libelf-bootstrap
14559maybe-configure-stage1-libelf: configure-stage1-libelf
14560configure-stage1-libelf:
c52c6897 14561 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14562 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14563 @r=`${PWD_COMMAND}`; export r; \
14564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14565 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14566 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14567 $(HOST_EXPORTS) \
8ee82aff 14568 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14569 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14570 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14571 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14572 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14573 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14574 case $(srcdir) in \
14575 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14576 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14577 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14578 esac; \
1b6c0831
L
14579 module_srcdir=libelf; \
14580 $(SHELL) $$s/$$module_srcdir/configure \
14581 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14582 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14583 --target=${target_alias} \
14584 \
a90ef4bf
JM
14585 $(STAGE1_CONFIGURE_FLAGS) \
14586 --disable-shared
14587@endif libelf-bootstrap
d545f33b 14588
a90ef4bf
JM
14589.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14590maybe-configure-stage2-libelf:
14591@if libelf-bootstrap
14592maybe-configure-stage2-libelf: configure-stage2-libelf
14593configure-stage2-libelf:
c52c6897 14594 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14595 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14596 @r=`${PWD_COMMAND}`; export r; \
14597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14598 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14599 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14600 $(HOST_EXPORTS) \
1b05fbbd 14601 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14602 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14603 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14604 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14605 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14606 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14607 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14608 case $(srcdir) in \
14609 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14610 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14611 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14612 esac; \
1b6c0831
L
14613 module_srcdir=libelf; \
14614 $(SHELL) $$s/$$module_srcdir/configure \
14615 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14616 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14617 --target=${target_alias} \
22121df0 14618 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14619 $(STAGE2_CONFIGURE_FLAGS) \
14620 --disable-shared
14621@endif libelf-bootstrap
8520c408 14622
a90ef4bf
JM
14623.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14624maybe-configure-stage3-libelf:
14625@if libelf-bootstrap
14626maybe-configure-stage3-libelf: configure-stage3-libelf
14627configure-stage3-libelf:
c52c6897 14628 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14629 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14630 @r=`${PWD_COMMAND}`; export r; \
14631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14632 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14633 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14634 $(HOST_EXPORTS) \
1b05fbbd 14635 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14636 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14637 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14638 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14639 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14640 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14641 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14642 case $(srcdir) in \
14643 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14644 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14645 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14646 esac; \
1b6c0831
L
14647 module_srcdir=libelf; \
14648 $(SHELL) $$s/$$module_srcdir/configure \
14649 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14650 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14651 --target=${target_alias} \
22121df0 14652 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14653 $(STAGE3_CONFIGURE_FLAGS) \
14654 --disable-shared
14655@endif libelf-bootstrap
8520c408 14656
a90ef4bf
JM
14657.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14658maybe-configure-stage4-libelf:
14659@if libelf-bootstrap
14660maybe-configure-stage4-libelf: configure-stage4-libelf
14661configure-stage4-libelf:
c52c6897 14662 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14663 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14664 @r=`${PWD_COMMAND}`; export r; \
14665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14666 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14667 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14668 $(HOST_EXPORTS) \
1b05fbbd 14669 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14670 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14671 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14672 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14673 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14674 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14675 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14676 case $(srcdir) in \
14677 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14678 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14679 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14680 esac; \
1b6c0831
L
14681 module_srcdir=libelf; \
14682 $(SHELL) $$s/$$module_srcdir/configure \
14683 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14684 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14685 --target=${target_alias} \
22121df0 14686 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14687 $(STAGE4_CONFIGURE_FLAGS) \
14688 --disable-shared
14689@endif libelf-bootstrap
d545f33b 14690
a90ef4bf
JM
14691.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14692maybe-configure-stageprofile-libelf:
14693@if libelf-bootstrap
14694maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14695configure-stageprofile-libelf:
c52c6897 14696 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14697 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14698 @r=`${PWD_COMMAND}`; export r; \
14699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14700 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14701 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14702 $(HOST_EXPORTS) \
1b05fbbd
AO
14703 $(POSTSTAGE1_HOST_EXPORTS) \
14704 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14705 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14706 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14707 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14708 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14709 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14710 case $(srcdir) in \
14711 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14712 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14713 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14714 esac; \
1b6c0831
L
14715 module_srcdir=libelf; \
14716 $(SHELL) $$s/$$module_srcdir/configure \
14717 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14718 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14719 --target=${target_alias} \
22121df0 14720 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14721 $(STAGEprofile_CONFIGURE_FLAGS) \
14722 --disable-shared
14723@endif libelf-bootstrap
d545f33b 14724
a90ef4bf
JM
14725.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14726maybe-configure-stagefeedback-libelf:
14727@if libelf-bootstrap
14728maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14729configure-stagefeedback-libelf:
c52c6897 14730 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14731 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14732 @r=`${PWD_COMMAND}`; export r; \
14733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14734 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14735 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14736 $(HOST_EXPORTS) \
1b05fbbd
AO
14737 $(POSTSTAGE1_HOST_EXPORTS) \
14738 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14739 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14740 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14741 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14742 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14743 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14744 case $(srcdir) in \
14745 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14746 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14747 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14748 esac; \
1b6c0831
L
14749 module_srcdir=libelf; \
14750 $(SHELL) $$s/$$module_srcdir/configure \
14751 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14752 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14753 --target=${target_alias} \
22121df0 14754 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14755 $(STAGEfeedback_CONFIGURE_FLAGS) \
14756 --disable-shared
14757@endif libelf-bootstrap
d545f33b
PB
14758
14759
14760
14761
14762
a90ef4bf
JM
14763.PHONY: all-libelf maybe-all-libelf
14764maybe-all-libelf:
4f0ef2d8 14765@if gcc-bootstrap
a90ef4bf 14766all-libelf: stage_current
4f0ef2d8 14767@endif gcc-bootstrap
a90ef4bf
JM
14768@if libelf
14769TARGET-libelf=all
14770maybe-all-libelf: all-libelf
14771all-libelf: configure-libelf
c52c6897 14772 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14774 $(HOST_EXPORTS) \
a90ef4bf 14775 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14776 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14777 $(TARGET-libelf))
14778@endif libelf
4fa63067 14779
a7254363 14780
d545f33b 14781
a90ef4bf
JM
14782.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14783.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14784maybe-all-stage1-libelf:
14785maybe-clean-stage1-libelf:
14786@if libelf-bootstrap
14787maybe-all-stage1-libelf: all-stage1-libelf
14788all-stage1: all-stage1-libelf
14789TARGET-stage1-libelf = $(TARGET-libelf)
14790all-stage1-libelf: configure-stage1-libelf
c52c6897 14791 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14792 @r=`${PWD_COMMAND}`; export r; \
14793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14794 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14795 $(HOST_EXPORTS) \
a90ef4bf 14796 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14797 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14798 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14799 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14800 LIBCFLAGS="$(LIBCFLAGS)" \
14801 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14802 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14803 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14804 $(EXTRA_HOST_FLAGS) \
14805 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 14806 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14807 $(TARGET-stage1-libelf)
d545f33b 14808
a90ef4bf
JM
14809maybe-clean-stage1-libelf: clean-stage1-libelf
14810clean-stage1: clean-stage1-libelf
14811clean-stage1-libelf:
9dbaa842 14812 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14813 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14814 else \
a90ef4bf 14815 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14816 $(MAKE) stage1-start; \
14817 fi; \
a90ef4bf 14818 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14819 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14820 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14821@endif libelf-bootstrap
d545f33b
PB
14822
14823
a90ef4bf
JM
14824.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14825.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14826maybe-all-stage2-libelf:
14827maybe-clean-stage2-libelf:
14828@if libelf-bootstrap
14829maybe-all-stage2-libelf: all-stage2-libelf
14830all-stage2: all-stage2-libelf
14831TARGET-stage2-libelf = $(TARGET-libelf)
14832all-stage2-libelf: configure-stage2-libelf
c52c6897 14833 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14834 @r=`${PWD_COMMAND}`; export r; \
14835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14836 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14837 $(HOST_EXPORTS) \
1f53ca9a 14838 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14839 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14840 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14841 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14842 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14843 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14844 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14845 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14846 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14847 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14848 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14849 $(TARGET-stage2-libelf)
d545f33b 14850
a90ef4bf
JM
14851maybe-clean-stage2-libelf: clean-stage2-libelf
14852clean-stage2: clean-stage2-libelf
14853clean-stage2-libelf:
9dbaa842 14854 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14855 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14856 else \
a90ef4bf 14857 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14858 $(MAKE) stage2-start; \
14859 fi; \
a90ef4bf 14860 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14861 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14862@endif libelf-bootstrap
d545f33b
PB
14863
14864
a90ef4bf
JM
14865.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14866.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14867maybe-all-stage3-libelf:
14868maybe-clean-stage3-libelf:
14869@if libelf-bootstrap
14870maybe-all-stage3-libelf: all-stage3-libelf
14871all-stage3: all-stage3-libelf
14872TARGET-stage3-libelf = $(TARGET-libelf)
14873all-stage3-libelf: configure-stage3-libelf
c52c6897 14874 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14875 @r=`${PWD_COMMAND}`; export r; \
14876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14877 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14878 $(HOST_EXPORTS) \
1f53ca9a 14879 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14880 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14881 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14882 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14883 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14884 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14885 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14886 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14887 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14888 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14889 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14890 $(TARGET-stage3-libelf)
d545f33b 14891
a90ef4bf
JM
14892maybe-clean-stage3-libelf: clean-stage3-libelf
14893clean-stage3: clean-stage3-libelf
14894clean-stage3-libelf:
9dbaa842 14895 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14896 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14897 else \
a90ef4bf 14898 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14899 $(MAKE) stage3-start; \
14900 fi; \
a90ef4bf 14901 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14902 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14903@endif libelf-bootstrap
d545f33b
PB
14904
14905
a90ef4bf
JM
14906.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14907.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14908maybe-all-stage4-libelf:
14909maybe-clean-stage4-libelf:
14910@if libelf-bootstrap
14911maybe-all-stage4-libelf: all-stage4-libelf
14912all-stage4: all-stage4-libelf
14913TARGET-stage4-libelf = $(TARGET-libelf)
14914all-stage4-libelf: configure-stage4-libelf
c52c6897 14915 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14916 @r=`${PWD_COMMAND}`; export r; \
14917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14918 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14919 $(HOST_EXPORTS) \
1f53ca9a 14920 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14921 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14922 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14923 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14924 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14925 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14926 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14927 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14928 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14929 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14930 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14931 $(TARGET-stage4-libelf)
d545f33b 14932
a90ef4bf
JM
14933maybe-clean-stage4-libelf: clean-stage4-libelf
14934clean-stage4: clean-stage4-libelf
14935clean-stage4-libelf:
9dbaa842 14936 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 14937 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14938 else \
a90ef4bf 14939 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14940 $(MAKE) stage4-start; \
14941 fi; \
a90ef4bf 14942 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14943 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14944@endif libelf-bootstrap
d545f33b
PB
14945
14946
a90ef4bf
JM
14947.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
14948.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
14949maybe-all-stageprofile-libelf:
14950maybe-clean-stageprofile-libelf:
14951@if libelf-bootstrap
14952maybe-all-stageprofile-libelf: all-stageprofile-libelf
14953all-stageprofile: all-stageprofile-libelf
14954TARGET-stageprofile-libelf = $(TARGET-libelf)
14955all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 14956 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
14957 @r=`${PWD_COMMAND}`; export r; \
14958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14959 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 14960 $(HOST_EXPORTS) \
1f53ca9a 14961 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14962 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14963 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14964 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 14965 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
14966 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14967 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14968 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14969 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14970 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14971 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 14972 $(TARGET-stageprofile-libelf)
d545f33b 14973
a90ef4bf
JM
14974maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
14975clean-stageprofile: clean-stageprofile-libelf
14976clean-stageprofile-libelf:
9dbaa842 14977 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 14978 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14979 else \
a90ef4bf 14980 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14981 $(MAKE) stageprofile-start; \
14982 fi; \
a90ef4bf 14983 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14984 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14985@endif libelf-bootstrap
d545f33b
PB
14986
14987
a90ef4bf
JM
14988.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
14989.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
14990maybe-all-stagefeedback-libelf:
14991maybe-clean-stagefeedback-libelf:
14992@if libelf-bootstrap
14993maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
14994all-stagefeedback: all-stagefeedback-libelf
14995TARGET-stagefeedback-libelf = $(TARGET-libelf)
14996all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 14997 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
14998 @r=`${PWD_COMMAND}`; export r; \
14999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15000 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15001 $(HOST_EXPORTS) \
1f53ca9a 15002 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15003 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15004 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15005 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15006 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15007 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15008 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15009 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15010 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15011 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 15012 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15013 $(TARGET-stagefeedback-libelf)
d545f33b 15014
a90ef4bf
JM
15015maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15016clean-stagefeedback: clean-stagefeedback-libelf
15017clean-stagefeedback-libelf:
9dbaa842 15018 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15019 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15020 else \
a90ef4bf 15021 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15022 $(MAKE) stagefeedback-start; \
15023 fi; \
a90ef4bf 15024 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15025 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15026@endif libelf-bootstrap
d545f33b
PB
15027
15028
15029
15030
15031
a90ef4bf
JM
15032.PHONY: check-libelf maybe-check-libelf
15033maybe-check-libelf:
15034@if libelf
15035maybe-check-libelf: check-libelf
4fa63067 15036
a90ef4bf 15037check-libelf:
0aed8855 15038 @: $(MAKE); $(unstage)
4fa63067
NN
15039 @r=`${PWD_COMMAND}`; export r; \
15040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15041 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15042 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15043 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15044
a90ef4bf 15045@endif libelf
4fa63067 15046
a90ef4bf
JM
15047.PHONY: install-libelf maybe-install-libelf
15048maybe-install-libelf:
15049@if libelf
15050maybe-install-libelf: install-libelf
4fa63067 15051
a90ef4bf 15052install-libelf:
4fa63067 15053
a90ef4bf 15054@endif libelf
4fa63067 15055
a90ef4bf
JM
15056.PHONY: install-strip-libelf maybe-install-strip-libelf
15057maybe-install-strip-libelf:
15058@if libelf
15059maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15060
a90ef4bf 15061install-strip-libelf:
9b980aa1 15062
a90ef4bf 15063@endif libelf
9b980aa1 15064
56a8fe78 15065# Other targets (info, dvi, pdf, etc.)
4fa63067 15066
a90ef4bf
JM
15067.PHONY: maybe-info-libelf info-libelf
15068maybe-info-libelf:
15069@if libelf
15070maybe-info-libelf: info-libelf
4fa63067 15071
a90ef4bf
JM
15072info-libelf: \
15073 configure-libelf
15074 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15075 r=`${PWD_COMMAND}`; export r; \
15076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15077 $(HOST_EXPORTS) \
a90ef4bf 15078 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15080 done; \
22121df0 15081 echo "Doing info in libelf"; \
a90ef4bf 15082 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15085 "RANLIB=$${RANLIB}" \
0c24b341 15086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15087 info) \
2a4cbe27
NN
15088 || exit 1
15089
a90ef4bf 15090@endif libelf
2a4cbe27 15091
a90ef4bf
JM
15092.PHONY: maybe-dvi-libelf dvi-libelf
15093maybe-dvi-libelf:
15094@if libelf
15095maybe-dvi-libelf: dvi-libelf
2a4cbe27 15096
a90ef4bf
JM
15097dvi-libelf: \
15098 configure-libelf
15099 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15100 r=`${PWD_COMMAND}`; export r; \
15101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15102 $(HOST_EXPORTS) \
a90ef4bf 15103 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15105 done; \
22121df0 15106 echo "Doing dvi in libelf"; \
a90ef4bf 15107 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15110 "RANLIB=$${RANLIB}" \
0c24b341 15111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15112 dvi) \
2a4cbe27
NN
15113 || exit 1
15114
a90ef4bf 15115@endif libelf
2a4cbe27 15116
a90ef4bf
JM
15117.PHONY: maybe-pdf-libelf pdf-libelf
15118maybe-pdf-libelf:
15119@if libelf
15120maybe-pdf-libelf: pdf-libelf
56a8fe78 15121
a90ef4bf
JM
15122pdf-libelf: \
15123 configure-libelf
15124 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15125 r=`${PWD_COMMAND}`; export r; \
15126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15127 $(HOST_EXPORTS) \
a90ef4bf 15128 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15130 done; \
22121df0 15131 echo "Doing pdf in libelf"; \
a90ef4bf 15132 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15135 "RANLIB=$${RANLIB}" \
0c24b341 15136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15137 pdf) \
15138 || exit 1
15139
a90ef4bf 15140@endif libelf
56a8fe78 15141
a90ef4bf
JM
15142.PHONY: maybe-html-libelf html-libelf
15143maybe-html-libelf:
15144@if libelf
15145maybe-html-libelf: html-libelf
6d389afc 15146
a90ef4bf
JM
15147html-libelf: \
15148 configure-libelf
15149 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15150 r=`${PWD_COMMAND}`; export r; \
15151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15152 $(HOST_EXPORTS) \
a90ef4bf 15153 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15155 done; \
22121df0 15156 echo "Doing html in libelf"; \
a90ef4bf 15157 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15160 "RANLIB=$${RANLIB}" \
0c24b341 15161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15162 html) \
15163 || exit 1
15164
a90ef4bf 15165@endif libelf
6d389afc 15166
a90ef4bf
JM
15167.PHONY: maybe-TAGS-libelf TAGS-libelf
15168maybe-TAGS-libelf:
15169@if libelf
15170maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15171
a90ef4bf
JM
15172TAGS-libelf: \
15173 configure-libelf
15174 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15175 r=`${PWD_COMMAND}`; export r; \
15176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15177 $(HOST_EXPORTS) \
a90ef4bf 15178 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15180 done; \
22121df0 15181 echo "Doing TAGS in libelf"; \
a90ef4bf 15182 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15185 "RANLIB=$${RANLIB}" \
0c24b341 15186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15187 TAGS) \
2a4cbe27
NN
15188 || exit 1
15189
a90ef4bf 15190@endif libelf
2a4cbe27 15191
a90ef4bf
JM
15192.PHONY: maybe-install-info-libelf install-info-libelf
15193maybe-install-info-libelf:
15194@if libelf
15195maybe-install-info-libelf: install-info-libelf
a2592b1b 15196
a90ef4bf
JM
15197install-info-libelf: \
15198 configure-libelf \
15199 info-libelf
15200 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15201 r=`${PWD_COMMAND}`; export r; \
15202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15203 $(HOST_EXPORTS) \
a90ef4bf 15204 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15206 done; \
22121df0 15207 echo "Doing install-info in libelf"; \
a90ef4bf 15208 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15211 "RANLIB=$${RANLIB}" \
0c24b341 15212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15213 install-info) \
a2592b1b
DD
15214 || exit 1
15215
a90ef4bf 15216@endif libelf
a2592b1b 15217
a90ef4bf
JM
15218.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15219maybe-install-pdf-libelf:
15220@if libelf
15221maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15222
a90ef4bf
JM
15223install-pdf-libelf: \
15224 configure-libelf \
15225 pdf-libelf
15226 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15227 r=`${PWD_COMMAND}`; export r; \
15228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15229 $(HOST_EXPORTS) \
a90ef4bf 15230 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15232 done; \
22121df0 15233 echo "Doing install-pdf in libelf"; \
a90ef4bf 15234 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15237 "RANLIB=$${RANLIB}" \
0c24b341 15238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15239 install-pdf) \
15240 || exit 1
15241
a90ef4bf 15242@endif libelf
a3ca38d2 15243
a90ef4bf
JM
15244.PHONY: maybe-install-html-libelf install-html-libelf
15245maybe-install-html-libelf:
15246@if libelf
15247maybe-install-html-libelf: install-html-libelf
108a6f8e 15248
a90ef4bf
JM
15249install-html-libelf: \
15250 configure-libelf \
15251 html-libelf
15252 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15253 r=`${PWD_COMMAND}`; export r; \
15254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15255 $(HOST_EXPORTS) \
a90ef4bf 15256 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15258 done; \
22121df0 15259 echo "Doing install-html in libelf"; \
a90ef4bf 15260 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15263 "RANLIB=$${RANLIB}" \
0c24b341 15264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15265 install-html) \
15266 || exit 1
15267
a90ef4bf 15268@endif libelf
108a6f8e 15269
a90ef4bf
JM
15270.PHONY: maybe-installcheck-libelf installcheck-libelf
15271maybe-installcheck-libelf:
15272@if libelf
15273maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15274
a90ef4bf
JM
15275installcheck-libelf: \
15276 configure-libelf
15277 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15278 r=`${PWD_COMMAND}`; export r; \
15279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15280 $(HOST_EXPORTS) \
a90ef4bf 15281 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15283 done; \
22121df0 15284 echo "Doing installcheck in libelf"; \
a90ef4bf 15285 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15288 "RANLIB=$${RANLIB}" \
0c24b341 15289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15290 installcheck) \
4fa63067 15291 || exit 1
2a4cbe27 15292
a90ef4bf 15293@endif libelf
4fa63067 15294
a90ef4bf
JM
15295.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15296maybe-mostlyclean-libelf:
15297@if libelf
15298maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15299
a90ef4bf
JM
15300mostlyclean-libelf:
15301 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15302 r=`${PWD_COMMAND}`; export r; \
15303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15304 $(HOST_EXPORTS) \
a90ef4bf 15305 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15307 done; \
22121df0 15308 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15309 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15312 "RANLIB=$${RANLIB}" \
0c24b341 15313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15314 mostlyclean) \
2a4cbe27
NN
15315 || exit 1
15316
a90ef4bf 15317@endif libelf
2a4cbe27 15318
a90ef4bf
JM
15319.PHONY: maybe-clean-libelf clean-libelf
15320maybe-clean-libelf:
15321@if libelf
15322maybe-clean-libelf: clean-libelf
2a4cbe27 15323
a90ef4bf
JM
15324clean-libelf:
15325 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15326 r=`${PWD_COMMAND}`; export r; \
15327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15328 $(HOST_EXPORTS) \
a90ef4bf 15329 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15331 done; \
22121df0 15332 echo "Doing clean in libelf"; \
a90ef4bf 15333 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15336 "RANLIB=$${RANLIB}" \
0c24b341 15337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15338 clean) \
2a4cbe27
NN
15339 || exit 1
15340
a90ef4bf 15341@endif libelf
2a4cbe27 15342
a90ef4bf
JM
15343.PHONY: maybe-distclean-libelf distclean-libelf
15344maybe-distclean-libelf:
15345@if libelf
15346maybe-distclean-libelf: distclean-libelf
2a4cbe27 15347
a90ef4bf
JM
15348distclean-libelf:
15349 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15350 r=`${PWD_COMMAND}`; export r; \
15351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15352 $(HOST_EXPORTS) \
a90ef4bf 15353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15355 done; \
22121df0 15356 echo "Doing distclean in libelf"; \
a90ef4bf 15357 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15360 "RANLIB=$${RANLIB}" \
0c24b341 15361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15362 distclean) \
2a4cbe27
NN
15363 || exit 1
15364
a90ef4bf 15365@endif libelf
2a4cbe27 15366
a90ef4bf
JM
15367.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15368maybe-maintainer-clean-libelf:
15369@if libelf
15370maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15371
a90ef4bf
JM
15372maintainer-clean-libelf:
15373 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15374 r=`${PWD_COMMAND}`; export r; \
15375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15376 $(HOST_EXPORTS) \
a90ef4bf 15377 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15379 done; \
22121df0 15380 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15381 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15384 "RANLIB=$${RANLIB}" \
0c24b341 15385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15386 maintainer-clean) \
2a4cbe27
NN
15387 || exit 1
15388
a90ef4bf 15389@endif libelf
2a4cbe27 15390
2a4cbe27 15391
a7254363 15392
a90ef4bf
JM
15393.PHONY: configure-gold maybe-configure-gold
15394maybe-configure-gold:
4f0ef2d8 15395@if gcc-bootstrap
a90ef4bf 15396configure-gold: stage_current
4f0ef2d8 15397@endif gcc-bootstrap
a90ef4bf
JM
15398@if gold
15399maybe-configure-gold: configure-gold
15400configure-gold:
c52c6897 15401 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15403 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15404 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15405 $(HOST_EXPORTS) \
a90ef4bf
JM
15406 echo Configuring in $(HOST_SUBDIR)/gold; \
15407 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15408 case $(srcdir) in \
b00612cc 15409 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15410 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15411 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15412 esac; \
1b6c0831
L
15413 module_srcdir=gold; \
15414 $(SHELL) \
15415 $$s/$$module_srcdir/configure \
15416 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15417 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15418 --target=${target_alias} \
4fa63067 15419 || exit 1
a90ef4bf 15420@endif gold
a7254363 15421
d545f33b
PB
15422
15423
a90ef4bf
JM
15424.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15425maybe-configure-stage1-gold:
15426@if gold-bootstrap
15427maybe-configure-stage1-gold: configure-stage1-gold
15428configure-stage1-gold:
15429 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15430 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15431 @r=`${PWD_COMMAND}`; export r; \
15432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15433 TFLAGS="$(STAGE1_TFLAGS)"; \
15434 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15435 $(HOST_EXPORTS) \
15436 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15437 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15438 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15439 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15440 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15441 cd $(HOST_SUBDIR)/gold || exit 1; \
15442 case $(srcdir) in \
15443 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15444 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15445 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15446 esac; \
1b6c0831
L
15447 module_srcdir=gold; \
15448 $(SHELL) $$s/$$module_srcdir/configure \
15449 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15450 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15451 --target=${target_alias} \
15452 \
a90ef4bf
JM
15453 $(STAGE1_CONFIGURE_FLAGS)
15454@endif gold-bootstrap
4fa63067 15455
a90ef4bf
JM
15456.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15457maybe-configure-stage2-gold:
15458@if gold-bootstrap
15459maybe-configure-stage2-gold: configure-stage2-gold
15460configure-stage2-gold:
15461 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15462 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15463 @r=`${PWD_COMMAND}`; export r; \
15464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15465 TFLAGS="$(STAGE2_TFLAGS)"; \
15466 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15467 $(HOST_EXPORTS) \
a90ef4bf
JM
15468 $(POSTSTAGE1_HOST_EXPORTS) \
15469 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15470 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15471 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15472 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15473 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15474 cd $(HOST_SUBDIR)/gold || exit 1; \
15475 case $(srcdir) in \
15476 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15477 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15478 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15479 esac; \
1b6c0831
L
15480 module_srcdir=gold; \
15481 $(SHELL) $$s/$$module_srcdir/configure \
15482 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15483 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15484 --target=${target_alias} \
22121df0 15485 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15486 $(STAGE2_CONFIGURE_FLAGS)
15487@endif gold-bootstrap
4fa63067 15488
a90ef4bf
JM
15489.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15490maybe-configure-stage3-gold:
15491@if gold-bootstrap
15492maybe-configure-stage3-gold: configure-stage3-gold
15493configure-stage3-gold:
15494 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15495 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15496 @r=`${PWD_COMMAND}`; export r; \
15497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15498 TFLAGS="$(STAGE3_TFLAGS)"; \
15499 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15500 $(HOST_EXPORTS) \
a90ef4bf
JM
15501 $(POSTSTAGE1_HOST_EXPORTS) \
15502 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15503 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15504 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15505 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15506 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15507 cd $(HOST_SUBDIR)/gold || exit 1; \
15508 case $(srcdir) in \
15509 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15510 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15511 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15512 esac; \
1b6c0831
L
15513 module_srcdir=gold; \
15514 $(SHELL) $$s/$$module_srcdir/configure \
15515 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15516 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15517 --target=${target_alias} \
22121df0 15518 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15519 $(STAGE3_CONFIGURE_FLAGS)
15520@endif gold-bootstrap
9b980aa1 15521
a90ef4bf
JM
15522.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15523maybe-configure-stage4-gold:
15524@if gold-bootstrap
15525maybe-configure-stage4-gold: configure-stage4-gold
15526configure-stage4-gold:
15527 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15528 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15529 @r=`${PWD_COMMAND}`; export r; \
15530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15531 TFLAGS="$(STAGE4_TFLAGS)"; \
15532 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15533 $(HOST_EXPORTS) \
a90ef4bf
JM
15534 $(POSTSTAGE1_HOST_EXPORTS) \
15535 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15536 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15537 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15538 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15539 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15540 cd $(HOST_SUBDIR)/gold || exit 1; \
15541 case $(srcdir) in \
15542 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15543 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15544 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15545 esac; \
1b6c0831
L
15546 module_srcdir=gold; \
15547 $(SHELL) $$s/$$module_srcdir/configure \
15548 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15549 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15550 --target=${target_alias} \
22121df0 15551 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15552 $(STAGE4_CONFIGURE_FLAGS)
15553@endif gold-bootstrap
4fa63067 15554
a90ef4bf
JM
15555.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15556maybe-configure-stageprofile-gold:
15557@if gold-bootstrap
15558maybe-configure-stageprofile-gold: configure-stageprofile-gold
15559configure-stageprofile-gold:
15560 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15561 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15562 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15564 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15565 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15566 $(HOST_EXPORTS) \
a90ef4bf
JM
15567 $(POSTSTAGE1_HOST_EXPORTS) \
15568 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15569 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15570 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15571 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15572 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15573 cd $(HOST_SUBDIR)/gold || exit 1; \
15574 case $(srcdir) in \
15575 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15576 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15577 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15578 esac; \
1b6c0831
L
15579 module_srcdir=gold; \
15580 $(SHELL) $$s/$$module_srcdir/configure \
15581 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15582 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15583 --target=${target_alias} \
22121df0 15584 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15585 $(STAGEprofile_CONFIGURE_FLAGS)
15586@endif gold-bootstrap
2a4cbe27 15587
a90ef4bf
JM
15588.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15589maybe-configure-stagefeedback-gold:
15590@if gold-bootstrap
15591maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15592configure-stagefeedback-gold:
15593 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15594 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15595 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15597 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15598 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15599 $(HOST_EXPORTS) \
a90ef4bf
JM
15600 $(POSTSTAGE1_HOST_EXPORTS) \
15601 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15602 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15603 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15604 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15605 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15606 cd $(HOST_SUBDIR)/gold || exit 1; \
15607 case $(srcdir) in \
15608 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15609 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15610 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15611 esac; \
1b6c0831
L
15612 module_srcdir=gold; \
15613 $(SHELL) $$s/$$module_srcdir/configure \
15614 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15615 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15616 --target=${target_alias} \
22121df0 15617 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15618 $(STAGEfeedback_CONFIGURE_FLAGS)
15619@endif gold-bootstrap
2a4cbe27 15620
56a8fe78 15621
56a8fe78 15622
56a8fe78 15623
6d389afc 15624
a90ef4bf
JM
15625.PHONY: all-gold maybe-all-gold
15626maybe-all-gold:
15627@if gcc-bootstrap
15628all-gold: stage_current
15629@endif gcc-bootstrap
15630@if gold
15631TARGET-gold=all
15632maybe-all-gold: all-gold
15633all-gold: configure-gold
15634 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15636 $(HOST_EXPORTS) \
15637 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15638 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15639 $(TARGET-gold))
15640@endif gold
6d389afc 15641
6d389afc 15642
2a4cbe27 15643
a90ef4bf
JM
15644.PHONY: all-stage1-gold maybe-all-stage1-gold
15645.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15646maybe-all-stage1-gold:
15647maybe-clean-stage1-gold:
15648@if gold-bootstrap
15649maybe-all-stage1-gold: all-stage1-gold
15650all-stage1: all-stage1-gold
15651TARGET-stage1-gold = $(TARGET-gold)
15652all-stage1-gold: configure-stage1-gold
15653 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15654 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15656 TFLAGS="$(STAGE1_TFLAGS)"; \
15657 $(HOST_EXPORTS) \
15658 cd $(HOST_SUBDIR)/gold && \
15659 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15660 CFLAGS="$(STAGE1_CFLAGS)" \
15661 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15662 LIBCFLAGS="$(LIBCFLAGS)" \
15663 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15664 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15665 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15666 $(EXTRA_HOST_FLAGS) \
15667 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15668 TFLAGS="$(STAGE1_TFLAGS)" \
15669 $(TARGET-stage1-gold)
2a4cbe27 15670
a90ef4bf
JM
15671maybe-clean-stage1-gold: clean-stage1-gold
15672clean-stage1: clean-stage1-gold
15673clean-stage1-gold:
15674 @if [ $(current_stage) = stage1 ]; then \
15675 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15676 else \
15677 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15678 $(MAKE) stage1-start; \
15679 fi; \
15680 cd $(HOST_SUBDIR)/gold && \
15681 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15682 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15683@endif gold-bootstrap
2a4cbe27 15684
2a4cbe27 15685
a90ef4bf
JM
15686.PHONY: all-stage2-gold maybe-all-stage2-gold
15687.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15688maybe-all-stage2-gold:
15689maybe-clean-stage2-gold:
15690@if gold-bootstrap
15691maybe-all-stage2-gold: all-stage2-gold
15692all-stage2: all-stage2-gold
15693TARGET-stage2-gold = $(TARGET-gold)
15694all-stage2-gold: configure-stage2-gold
15695 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15696 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15698 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15699 $(HOST_EXPORTS) \
a90ef4bf
JM
15700 $(POSTSTAGE1_HOST_EXPORTS) \
15701 cd $(HOST_SUBDIR)/gold && \
15702 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15703 CFLAGS="$(STAGE2_CFLAGS)" \
15704 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15705 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15706 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15707 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15708 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15709 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15710 TFLAGS="$(STAGE2_TFLAGS)" \
15711 $(TARGET-stage2-gold)
2a4cbe27 15712
a90ef4bf
JM
15713maybe-clean-stage2-gold: clean-stage2-gold
15714clean-stage2: clean-stage2-gold
15715clean-stage2-gold:
15716 @if [ $(current_stage) = stage2 ]; then \
15717 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15718 else \
15719 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15720 $(MAKE) stage2-start; \
15721 fi; \
15722 cd $(HOST_SUBDIR)/gold && \
b3676d82 15723 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15724@endif gold-bootstrap
2a4cbe27 15725
a3ca38d2 15726
a90ef4bf
JM
15727.PHONY: all-stage3-gold maybe-all-stage3-gold
15728.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15729maybe-all-stage3-gold:
15730maybe-clean-stage3-gold:
15731@if gold-bootstrap
15732maybe-all-stage3-gold: all-stage3-gold
15733all-stage3: all-stage3-gold
15734TARGET-stage3-gold = $(TARGET-gold)
15735all-stage3-gold: configure-stage3-gold
15736 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15737 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15739 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15740 $(HOST_EXPORTS) \
a90ef4bf
JM
15741 $(POSTSTAGE1_HOST_EXPORTS) \
15742 cd $(HOST_SUBDIR)/gold && \
15743 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15744 CFLAGS="$(STAGE3_CFLAGS)" \
15745 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15746 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15747 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15748 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15749 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15750 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15751 TFLAGS="$(STAGE3_TFLAGS)" \
15752 $(TARGET-stage3-gold)
2a4cbe27 15753
a90ef4bf
JM
15754maybe-clean-stage3-gold: clean-stage3-gold
15755clean-stage3: clean-stage3-gold
15756clean-stage3-gold:
15757 @if [ $(current_stage) = stage3 ]; then \
15758 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15759 else \
15760 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15761 $(MAKE) stage3-start; \
15762 fi; \
15763 cd $(HOST_SUBDIR)/gold && \
b3676d82 15764 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15765@endif gold-bootstrap
2a4cbe27 15766
2a4cbe27 15767
a90ef4bf
JM
15768.PHONY: all-stage4-gold maybe-all-stage4-gold
15769.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15770maybe-all-stage4-gold:
15771maybe-clean-stage4-gold:
15772@if gold-bootstrap
15773maybe-all-stage4-gold: all-stage4-gold
15774all-stage4: all-stage4-gold
15775TARGET-stage4-gold = $(TARGET-gold)
15776all-stage4-gold: configure-stage4-gold
15777 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15778 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15780 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15781 $(HOST_EXPORTS) \
a90ef4bf
JM
15782 $(POSTSTAGE1_HOST_EXPORTS) \
15783 cd $(HOST_SUBDIR)/gold && \
15784 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15785 CFLAGS="$(STAGE4_CFLAGS)" \
15786 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15787 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15788 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15789 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15790 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15791 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15792 TFLAGS="$(STAGE4_TFLAGS)" \
15793 $(TARGET-stage4-gold)
2a4cbe27 15794
a90ef4bf
JM
15795maybe-clean-stage4-gold: clean-stage4-gold
15796clean-stage4: clean-stage4-gold
15797clean-stage4-gold:
15798 @if [ $(current_stage) = stage4 ]; then \
15799 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15800 else \
15801 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15802 $(MAKE) stage4-start; \
15803 fi; \
15804 cd $(HOST_SUBDIR)/gold && \
b3676d82 15805 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15806@endif gold-bootstrap
2a4cbe27 15807
2a4cbe27 15808
a90ef4bf
JM
15809.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15810.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15811maybe-all-stageprofile-gold:
15812maybe-clean-stageprofile-gold:
15813@if gold-bootstrap
15814maybe-all-stageprofile-gold: all-stageprofile-gold
15815all-stageprofile: all-stageprofile-gold
15816TARGET-stageprofile-gold = $(TARGET-gold)
15817all-stageprofile-gold: configure-stageprofile-gold
15818 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15819 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15821 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15822 $(HOST_EXPORTS) \
a90ef4bf
JM
15823 $(POSTSTAGE1_HOST_EXPORTS) \
15824 cd $(HOST_SUBDIR)/gold && \
15825 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15826 CFLAGS="$(STAGEprofile_CFLAGS)" \
15827 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15828 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15829 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15830 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15831 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15832 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15833 TFLAGS="$(STAGEprofile_TFLAGS)" \
15834 $(TARGET-stageprofile-gold)
2a4cbe27 15835
a90ef4bf
JM
15836maybe-clean-stageprofile-gold: clean-stageprofile-gold
15837clean-stageprofile: clean-stageprofile-gold
15838clean-stageprofile-gold:
15839 @if [ $(current_stage) = stageprofile ]; then \
15840 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15841 else \
15842 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15843 $(MAKE) stageprofile-start; \
15844 fi; \
15845 cd $(HOST_SUBDIR)/gold && \
b3676d82 15846 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15847@endif gold-bootstrap
2a4cbe27 15848
a7254363 15849
a90ef4bf
JM
15850.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15851.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15852maybe-all-stagefeedback-gold:
15853maybe-clean-stagefeedback-gold:
15854@if gold-bootstrap
15855maybe-all-stagefeedback-gold: all-stagefeedback-gold
15856all-stagefeedback: all-stagefeedback-gold
15857TARGET-stagefeedback-gold = $(TARGET-gold)
15858all-stagefeedback-gold: configure-stagefeedback-gold
15859 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15860 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15862 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15863 $(HOST_EXPORTS) \
15864 $(POSTSTAGE1_HOST_EXPORTS) \
15865 cd $(HOST_SUBDIR)/gold && \
15866 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15867 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15868 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15869 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15870 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15871 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15872 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15873 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15874 TFLAGS="$(STAGEfeedback_TFLAGS)" \
15875 $(TARGET-stagefeedback-gold)
d545f33b 15876
a90ef4bf
JM
15877maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15878clean-stagefeedback: clean-stagefeedback-gold
15879clean-stagefeedback-gold:
15880 @if [ $(current_stage) = stagefeedback ]; then \
15881 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15882 else \
15883 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15884 $(MAKE) stagefeedback-start; \
15885 fi; \
15886 cd $(HOST_SUBDIR)/gold && \
b3676d82 15887 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15888@endif gold-bootstrap
d545f33b 15889
4fa63067 15890
a7254363 15891
d545f33b
PB
15892
15893
a90ef4bf
JM
15894.PHONY: check-gold maybe-check-gold
15895maybe-check-gold:
15896@if gold
15897maybe-check-gold: check-gold
4fa63067 15898
a90ef4bf 15899check-gold:
0aed8855 15900 @: $(MAKE); $(unstage)
4fa63067
NN
15901 @r=`${PWD_COMMAND}`; export r; \
15902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15903 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15904 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 15905 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15906
a90ef4bf 15907@endif gold
4fa63067 15908
a90ef4bf
JM
15909.PHONY: install-gold maybe-install-gold
15910maybe-install-gold:
15911@if gold
15912maybe-install-gold: install-gold
4fa63067 15913
a90ef4bf 15914install-gold: installdirs
0aed8855 15915 @: $(MAKE); $(unstage)
4fa63067
NN
15916 @r=`${PWD_COMMAND}`; export r; \
15917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15918 $(HOST_EXPORTS) \
a90ef4bf 15919 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15920 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15921
a90ef4bf 15922@endif gold
4fa63067 15923
a90ef4bf
JM
15924.PHONY: install-strip-gold maybe-install-strip-gold
15925maybe-install-strip-gold:
15926@if gold
15927maybe-install-strip-gold: install-strip-gold
9b980aa1 15928
a90ef4bf 15929install-strip-gold: installdirs
9b980aa1
RW
15930 @: $(MAKE); $(unstage)
15931 @r=`${PWD_COMMAND}`; export r; \
15932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15933 $(HOST_EXPORTS) \
a90ef4bf 15934 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
15935 $(MAKE) $(FLAGS_TO_PASS) install-strip)
15936
a90ef4bf 15937@endif gold
9b980aa1 15938
56a8fe78 15939# Other targets (info, dvi, pdf, etc.)
4fa63067 15940
a90ef4bf
JM
15941.PHONY: maybe-info-gold info-gold
15942maybe-info-gold:
15943@if gold
15944maybe-info-gold: info-gold
4fa63067 15945
a90ef4bf
JM
15946info-gold: \
15947 configure-gold
15948 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15949 r=`${PWD_COMMAND}`; export r; \
15950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15951 $(HOST_EXPORTS) \
b813574b 15952 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15954 done; \
22121df0 15955 echo "Doing info in gold"; \
a90ef4bf 15956 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15959 "RANLIB=$${RANLIB}" \
0c24b341 15960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15961 info) \
2a4cbe27
NN
15962 || exit 1
15963
a90ef4bf 15964@endif gold
2a4cbe27 15965
a90ef4bf
JM
15966.PHONY: maybe-dvi-gold dvi-gold
15967maybe-dvi-gold:
15968@if gold
15969maybe-dvi-gold: dvi-gold
2a4cbe27 15970
a90ef4bf
JM
15971dvi-gold: \
15972 configure-gold
15973 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15974 r=`${PWD_COMMAND}`; export r; \
15975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15976 $(HOST_EXPORTS) \
b813574b 15977 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15979 done; \
22121df0 15980 echo "Doing dvi in gold"; \
a90ef4bf 15981 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15984 "RANLIB=$${RANLIB}" \
0c24b341 15985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15986 dvi) \
2a4cbe27
NN
15987 || exit 1
15988
a90ef4bf 15989@endif gold
2a4cbe27 15990
a90ef4bf
JM
15991.PHONY: maybe-pdf-gold pdf-gold
15992maybe-pdf-gold:
15993@if gold
15994maybe-pdf-gold: pdf-gold
56a8fe78 15995
a90ef4bf
JM
15996pdf-gold: \
15997 configure-gold
15998 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
15999 r=`${PWD_COMMAND}`; export r; \
16000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16001 $(HOST_EXPORTS) \
16002 for flag in $(EXTRA_HOST_FLAGS) ; do \
16003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16004 done; \
22121df0 16005 echo "Doing pdf in gold"; \
a90ef4bf 16006 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16009 "RANLIB=$${RANLIB}" \
0c24b341 16010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16011 pdf) \
16012 || exit 1
16013
a90ef4bf 16014@endif gold
56a8fe78 16015
a90ef4bf
JM
16016.PHONY: maybe-html-gold html-gold
16017maybe-html-gold:
16018@if gold
16019maybe-html-gold: html-gold
6d389afc 16020
a90ef4bf
JM
16021html-gold: \
16022 configure-gold
16023 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16024 r=`${PWD_COMMAND}`; export r; \
16025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16026 $(HOST_EXPORTS) \
16027 for flag in $(EXTRA_HOST_FLAGS) ; do \
16028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16029 done; \
22121df0 16030 echo "Doing html in gold"; \
a90ef4bf 16031 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16034 "RANLIB=$${RANLIB}" \
0c24b341 16035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16036 html) \
16037 || exit 1
16038
a90ef4bf 16039@endif gold
6d389afc 16040
a90ef4bf
JM
16041.PHONY: maybe-TAGS-gold TAGS-gold
16042maybe-TAGS-gold:
16043@if gold
16044maybe-TAGS-gold: TAGS-gold
2a4cbe27 16045
a90ef4bf
JM
16046TAGS-gold: \
16047 configure-gold
16048 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16049 r=`${PWD_COMMAND}`; export r; \
16050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16051 $(HOST_EXPORTS) \
b813574b 16052 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16054 done; \
22121df0 16055 echo "Doing TAGS in gold"; \
a90ef4bf 16056 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16059 "RANLIB=$${RANLIB}" \
0c24b341 16060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16061 TAGS) \
2a4cbe27
NN
16062 || exit 1
16063
a90ef4bf 16064@endif gold
2a4cbe27 16065
a90ef4bf
JM
16066.PHONY: maybe-install-info-gold install-info-gold
16067maybe-install-info-gold:
16068@if gold
16069maybe-install-info-gold: install-info-gold
b813574b 16070
a90ef4bf
JM
16071install-info-gold: \
16072 configure-gold \
16073 info-gold
16074 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16075 r=`${PWD_COMMAND}`; export r; \
16076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16077 $(HOST_EXPORTS) \
b813574b 16078 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16080 done; \
22121df0 16081 echo "Doing install-info in gold"; \
a90ef4bf 16082 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16085 "RANLIB=$${RANLIB}" \
0c24b341 16086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16087 install-info) \
2a4cbe27
NN
16088 || exit 1
16089
a90ef4bf 16090@endif gold
2a4cbe27 16091
a90ef4bf
JM
16092.PHONY: maybe-install-pdf-gold install-pdf-gold
16093maybe-install-pdf-gold:
16094@if gold
16095maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16096
a90ef4bf
JM
16097install-pdf-gold: \
16098 configure-gold \
16099 pdf-gold
16100 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16101 r=`${PWD_COMMAND}`; export r; \
16102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16103 $(HOST_EXPORTS) \
16104 for flag in $(EXTRA_HOST_FLAGS) ; do \
16105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16106 done; \
22121df0 16107 echo "Doing install-pdf in gold"; \
a90ef4bf 16108 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16111 "RANLIB=$${RANLIB}" \
0c24b341 16112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16113 install-pdf) \
16114 || exit 1
16115
a90ef4bf 16116@endif gold
a3ca38d2 16117
a90ef4bf
JM
16118.PHONY: maybe-install-html-gold install-html-gold
16119maybe-install-html-gold:
16120@if gold
16121maybe-install-html-gold: install-html-gold
108a6f8e 16122
a90ef4bf
JM
16123install-html-gold: \
16124 configure-gold \
16125 html-gold
16126 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16127 r=`${PWD_COMMAND}`; export r; \
16128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16129 $(HOST_EXPORTS) \
16130 for flag in $(EXTRA_HOST_FLAGS) ; do \
16131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16132 done; \
22121df0 16133 echo "Doing install-html in gold"; \
a90ef4bf 16134 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16137 "RANLIB=$${RANLIB}" \
0c24b341 16138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16139 install-html) \
16140 || exit 1
16141
a90ef4bf 16142@endif gold
108a6f8e 16143
a90ef4bf
JM
16144.PHONY: maybe-installcheck-gold installcheck-gold
16145maybe-installcheck-gold:
16146@if gold
16147maybe-installcheck-gold: installcheck-gold
2a4cbe27 16148
a90ef4bf
JM
16149installcheck-gold: \
16150 configure-gold
16151 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16152 r=`${PWD_COMMAND}`; export r; \
16153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16154 $(HOST_EXPORTS) \
b813574b 16155 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16157 done; \
22121df0 16158 echo "Doing installcheck in gold"; \
a90ef4bf 16159 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16162 "RANLIB=$${RANLIB}" \
0c24b341 16163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16164 installcheck) \
2a4cbe27
NN
16165 || exit 1
16166
a90ef4bf 16167@endif gold
2a4cbe27 16168
a90ef4bf
JM
16169.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16170maybe-mostlyclean-gold:
16171@if gold
16172maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16173
a90ef4bf
JM
16174mostlyclean-gold:
16175 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16176 r=`${PWD_COMMAND}`; export r; \
16177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16178 $(HOST_EXPORTS) \
b813574b 16179 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16181 done; \
22121df0 16182 echo "Doing mostlyclean in gold"; \
a90ef4bf 16183 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16186 "RANLIB=$${RANLIB}" \
0c24b341 16187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16188 mostlyclean) \
2a4cbe27
NN
16189 || exit 1
16190
a90ef4bf 16191@endif gold
2a4cbe27 16192
a90ef4bf
JM
16193.PHONY: maybe-clean-gold clean-gold
16194maybe-clean-gold:
16195@if gold
16196maybe-clean-gold: clean-gold
2a4cbe27 16197
a90ef4bf
JM
16198clean-gold:
16199 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16200 r=`${PWD_COMMAND}`; export r; \
16201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16202 $(HOST_EXPORTS) \
b813574b 16203 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16205 done; \
22121df0 16206 echo "Doing clean in gold"; \
a90ef4bf 16207 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16210 "RANLIB=$${RANLIB}" \
0c24b341 16211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16212 clean) \
2a4cbe27
NN
16213 || exit 1
16214
a90ef4bf 16215@endif gold
2a4cbe27 16216
a90ef4bf
JM
16217.PHONY: maybe-distclean-gold distclean-gold
16218maybe-distclean-gold:
16219@if gold
16220maybe-distclean-gold: distclean-gold
2a4cbe27 16221
a90ef4bf
JM
16222distclean-gold:
16223 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16224 r=`${PWD_COMMAND}`; export r; \
16225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16226 $(HOST_EXPORTS) \
b813574b 16227 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16229 done; \
22121df0 16230 echo "Doing distclean in gold"; \
a90ef4bf 16231 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16234 "RANLIB=$${RANLIB}" \
0c24b341 16235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16236 distclean) \
2a4cbe27
NN
16237 || exit 1
16238
a90ef4bf 16239@endif gold
2a4cbe27 16240
a90ef4bf
JM
16241.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16242maybe-maintainer-clean-gold:
16243@if gold
16244maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16245
a90ef4bf
JM
16246maintainer-clean-gold:
16247 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16248 r=`${PWD_COMMAND}`; export r; \
16249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16250 $(HOST_EXPORTS) \
b813574b 16251 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16253 done; \
22121df0 16254 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16255 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16258 "RANLIB=$${RANLIB}" \
0c24b341 16259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16260 maintainer-clean) \
4fa63067
NN
16261 || exit 1
16262
a90ef4bf 16263@endif gold
4fa63067
NN
16264
16265
a7254363 16266
a90ef4bf
JM
16267.PHONY: configure-gprof maybe-configure-gprof
16268maybe-configure-gprof:
4b900473 16269@if gcc-bootstrap
a90ef4bf 16270configure-gprof: stage_current
4b900473 16271@endif gcc-bootstrap
a90ef4bf
JM
16272@if gprof
16273maybe-configure-gprof: configure-gprof
16274configure-gprof:
16275 @: $(MAKE); $(unstage)
4b900473
PB
16276 @r=`${PWD_COMMAND}`; export r; \
16277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16278 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16279 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16280 $(HOST_EXPORTS) \
a90ef4bf
JM
16281 echo Configuring in $(HOST_SUBDIR)/gprof; \
16282 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16283 case $(srcdir) in \
16284 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16285 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16286 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16287 esac; \
1b6c0831
L
16288 module_srcdir=gprof; \
16289 $(SHELL) \
16290 $$s/$$module_srcdir/configure \
16291 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16292 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16293 --target=${target_alias} \
4b900473 16294 || exit 1
a90ef4bf 16295@endif gprof
4b900473
PB
16296
16297
16298
4b900473 16299
a90ef4bf
JM
16300
16301.PHONY: all-gprof maybe-all-gprof
16302maybe-all-gprof:
16303@if gcc-bootstrap
16304all-gprof: stage_current
16305@endif gcc-bootstrap
16306@if gprof
16307TARGET-gprof=all
16308maybe-all-gprof: all-gprof
16309all-gprof: configure-gprof
16310 @: $(MAKE); $(unstage)
4b900473
PB
16311 @r=`${PWD_COMMAND}`; export r; \
16312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16313 $(HOST_EXPORTS) \
a90ef4bf 16314 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16315 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16316 $(TARGET-gprof))
16317@endif gprof
4b900473
PB
16318
16319
4b900473 16320
4b900473 16321
a90ef4bf
JM
16322.PHONY: check-gprof maybe-check-gprof
16323maybe-check-gprof:
16324@if gprof
16325maybe-check-gprof: check-gprof
4b900473 16326
a90ef4bf
JM
16327check-gprof:
16328 @: $(MAKE); $(unstage)
4b900473
PB
16329 @r=`${PWD_COMMAND}`; export r; \
16330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16331 $(HOST_EXPORTS) \
a90ef4bf
JM
16332 (cd $(HOST_SUBDIR)/gprof && \
16333 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16334
a90ef4bf 16335@endif gprof
4b900473 16336
a90ef4bf
JM
16337.PHONY: install-gprof maybe-install-gprof
16338maybe-install-gprof:
16339@if gprof
16340maybe-install-gprof: install-gprof
4b900473 16341
a90ef4bf
JM
16342install-gprof: installdirs
16343 @: $(MAKE); $(unstage)
4b900473
PB
16344 @r=`${PWD_COMMAND}`; export r; \
16345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16346 $(HOST_EXPORTS) \
a90ef4bf
JM
16347 (cd $(HOST_SUBDIR)/gprof && \
16348 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16349
a90ef4bf 16350@endif gprof
4b900473 16351
a90ef4bf
JM
16352.PHONY: install-strip-gprof maybe-install-strip-gprof
16353maybe-install-strip-gprof:
16354@if gprof
16355maybe-install-strip-gprof: install-strip-gprof
4b900473 16356
a90ef4bf 16357install-strip-gprof: installdirs
4b900473
PB
16358 @: $(MAKE); $(unstage)
16359 @r=`${PWD_COMMAND}`; export r; \
16360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16361 $(HOST_EXPORTS) \
a90ef4bf
JM
16362 (cd $(HOST_SUBDIR)/gprof && \
16363 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16364
a90ef4bf 16365@endif gprof
9b980aa1 16366
4b900473
PB
16367# Other targets (info, dvi, pdf, etc.)
16368
a90ef4bf
JM
16369.PHONY: maybe-info-gprof info-gprof
16370maybe-info-gprof:
16371@if gprof
16372maybe-info-gprof: info-gprof
4b900473 16373
a90ef4bf
JM
16374info-gprof: \
16375 configure-gprof
16376 @: $(MAKE); $(unstage)
16377 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16378 r=`${PWD_COMMAND}`; export r; \
16379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16380 $(HOST_EXPORTS) \
16381 for flag in $(EXTRA_HOST_FLAGS) ; do \
16382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16383 done; \
22121df0 16384 echo "Doing info in gprof"; \
a90ef4bf 16385 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16388 "RANLIB=$${RANLIB}" \
0c24b341 16389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16390 info) \
16391 || exit 1
16392
a90ef4bf 16393@endif gprof
4b900473 16394
a90ef4bf
JM
16395.PHONY: maybe-dvi-gprof dvi-gprof
16396maybe-dvi-gprof:
16397@if gprof
16398maybe-dvi-gprof: dvi-gprof
4b900473 16399
a90ef4bf
JM
16400dvi-gprof: \
16401 configure-gprof
16402 @: $(MAKE); $(unstage)
16403 @[ -f ./gprof/Makefile ] || exit 0; \
16404 r=`${PWD_COMMAND}`; export r; \
16405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16406 $(HOST_EXPORTS) \
4b900473
PB
16407 for flag in $(EXTRA_HOST_FLAGS) ; do \
16408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16409 done; \
22121df0 16410 echo "Doing dvi in gprof"; \
a90ef4bf 16411 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
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}" \
4b900473
PB
16416 dvi) \
16417 || exit 1
16418
a90ef4bf 16419@endif gprof
4b900473 16420
a90ef4bf
JM
16421.PHONY: maybe-pdf-gprof pdf-gprof
16422maybe-pdf-gprof:
16423@if gprof
16424maybe-pdf-gprof: pdf-gprof
4b900473 16425
a90ef4bf
JM
16426pdf-gprof: \
16427 configure-gprof
16428 @: $(MAKE); $(unstage)
16429 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16430 r=`${PWD_COMMAND}`; export r; \
16431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16432 $(HOST_EXPORTS) \
16433 for flag in $(EXTRA_HOST_FLAGS) ; do \
16434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16435 done; \
22121df0 16436 echo "Doing pdf in gprof"; \
a90ef4bf 16437 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16440 "RANLIB=$${RANLIB}" \
0c24b341 16441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16442 pdf) \
16443 || exit 1
16444
a90ef4bf 16445@endif gprof
4b900473 16446
a90ef4bf
JM
16447.PHONY: maybe-html-gprof html-gprof
16448maybe-html-gprof:
16449@if gprof
16450maybe-html-gprof: html-gprof
4b900473 16451
a90ef4bf
JM
16452html-gprof: \
16453 configure-gprof
16454 @: $(MAKE); $(unstage)
16455 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16456 r=`${PWD_COMMAND}`; export r; \
16457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16458 $(HOST_EXPORTS) \
16459 for flag in $(EXTRA_HOST_FLAGS) ; do \
16460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16461 done; \
22121df0 16462 echo "Doing html in gprof"; \
a90ef4bf 16463 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16466 "RANLIB=$${RANLIB}" \
0c24b341 16467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16468 html) \
16469 || exit 1
16470
a90ef4bf 16471@endif gprof
4b900473 16472
a90ef4bf
JM
16473.PHONY: maybe-TAGS-gprof TAGS-gprof
16474maybe-TAGS-gprof:
16475@if gprof
16476maybe-TAGS-gprof: TAGS-gprof
4b900473 16477
a90ef4bf
JM
16478TAGS-gprof: \
16479 configure-gprof
16480 @: $(MAKE); $(unstage)
16481 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16482 r=`${PWD_COMMAND}`; export r; \
16483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16484 $(HOST_EXPORTS) \
16485 for flag in $(EXTRA_HOST_FLAGS) ; do \
16486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16487 done; \
22121df0 16488 echo "Doing TAGS in gprof"; \
a90ef4bf 16489 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16492 "RANLIB=$${RANLIB}" \
0c24b341 16493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16494 TAGS) \
16495 || exit 1
16496
a90ef4bf 16497@endif gprof
4b900473 16498
a90ef4bf
JM
16499.PHONY: maybe-install-info-gprof install-info-gprof
16500maybe-install-info-gprof:
16501@if gprof
16502maybe-install-info-gprof: install-info-gprof
4b900473 16503
a90ef4bf
JM
16504install-info-gprof: \
16505 configure-gprof \
16506 info-gprof
16507 @: $(MAKE); $(unstage)
16508 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16509 r=`${PWD_COMMAND}`; export r; \
16510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16511 $(HOST_EXPORTS) \
16512 for flag in $(EXTRA_HOST_FLAGS) ; do \
16513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16514 done; \
22121df0 16515 echo "Doing install-info in gprof"; \
a90ef4bf 16516 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16519 "RANLIB=$${RANLIB}" \
0c24b341 16520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16521 install-info) \
16522 || exit 1
16523
a90ef4bf 16524@endif gprof
4b900473 16525
a90ef4bf
JM
16526.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16527maybe-install-pdf-gprof:
16528@if gprof
16529maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16530
a90ef4bf
JM
16531install-pdf-gprof: \
16532 configure-gprof \
16533 pdf-gprof
16534 @: $(MAKE); $(unstage)
16535 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16536 r=`${PWD_COMMAND}`; export r; \
16537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16538 $(HOST_EXPORTS) \
16539 for flag in $(EXTRA_HOST_FLAGS) ; do \
16540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16541 done; \
22121df0 16542 echo "Doing install-pdf in gprof"; \
a90ef4bf 16543 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16546 "RANLIB=$${RANLIB}" \
0c24b341 16547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16548 install-pdf) \
16549 || exit 1
16550
a90ef4bf 16551@endif gprof
a3ca38d2 16552
a90ef4bf
JM
16553.PHONY: maybe-install-html-gprof install-html-gprof
16554maybe-install-html-gprof:
16555@if gprof
16556maybe-install-html-gprof: install-html-gprof
4b900473 16557
a90ef4bf
JM
16558install-html-gprof: \
16559 configure-gprof \
16560 html-gprof
16561 @: $(MAKE); $(unstage)
16562 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16563 r=`${PWD_COMMAND}`; export r; \
16564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16565 $(HOST_EXPORTS) \
16566 for flag in $(EXTRA_HOST_FLAGS) ; do \
16567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16568 done; \
22121df0 16569 echo "Doing install-html in gprof"; \
a90ef4bf 16570 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16573 "RANLIB=$${RANLIB}" \
0c24b341 16574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16575 install-html) \
16576 || exit 1
16577
a90ef4bf 16578@endif gprof
4b900473 16579
a90ef4bf
JM
16580.PHONY: maybe-installcheck-gprof installcheck-gprof
16581maybe-installcheck-gprof:
16582@if gprof
16583maybe-installcheck-gprof: installcheck-gprof
4b900473 16584
a90ef4bf
JM
16585installcheck-gprof: \
16586 configure-gprof
16587 @: $(MAKE); $(unstage)
16588 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16589 r=`${PWD_COMMAND}`; export r; \
16590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16591 $(HOST_EXPORTS) \
16592 for flag in $(EXTRA_HOST_FLAGS) ; do \
16593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16594 done; \
22121df0 16595 echo "Doing installcheck in gprof"; \
a90ef4bf 16596 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16599 "RANLIB=$${RANLIB}" \
16600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16601 installcheck) \
16602 || exit 1
16603
a90ef4bf 16604@endif gprof
e28c595f 16605
a90ef4bf
JM
16606.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16607maybe-mostlyclean-gprof:
16608@if gprof
16609maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16610
a90ef4bf
JM
16611mostlyclean-gprof:
16612 @: $(MAKE); $(unstage)
16613 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16614 r=`${PWD_COMMAND}`; export r; \
16615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16616 $(HOST_EXPORTS) \
16617 for flag in $(EXTRA_HOST_FLAGS) ; do \
16618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16619 done; \
22121df0 16620 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16621 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16624 "RANLIB=$${RANLIB}" \
16625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16626 mostlyclean) \
16627 || exit 1
16628
a90ef4bf 16629@endif gprof
e28c595f 16630
a90ef4bf
JM
16631.PHONY: maybe-clean-gprof clean-gprof
16632maybe-clean-gprof:
16633@if gprof
16634maybe-clean-gprof: clean-gprof
e28c595f 16635
a90ef4bf
JM
16636clean-gprof:
16637 @: $(MAKE); $(unstage)
16638 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16639 r=`${PWD_COMMAND}`; export r; \
16640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16641 $(HOST_EXPORTS) \
16642 for flag in $(EXTRA_HOST_FLAGS) ; do \
16643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16644 done; \
22121df0 16645 echo "Doing clean in gprof"; \
a90ef4bf 16646 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16649 "RANLIB=$${RANLIB}" \
16650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16651 clean) \
16652 || exit 1
16653
a90ef4bf 16654@endif gprof
e28c595f 16655
a90ef4bf
JM
16656.PHONY: maybe-distclean-gprof distclean-gprof
16657maybe-distclean-gprof:
16658@if gprof
16659maybe-distclean-gprof: distclean-gprof
e28c595f 16660
a90ef4bf
JM
16661distclean-gprof:
16662 @: $(MAKE); $(unstage)
16663 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16664 r=`${PWD_COMMAND}`; export r; \
16665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16666 $(HOST_EXPORTS) \
16667 for flag in $(EXTRA_HOST_FLAGS) ; do \
16668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16669 done; \
22121df0 16670 echo "Doing distclean in gprof"; \
a90ef4bf 16671 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16674 "RANLIB=$${RANLIB}" \
16675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16676 distclean) \
16677 || exit 1
16678
a90ef4bf 16679@endif gprof
e28c595f 16680
a90ef4bf
JM
16681.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16682maybe-maintainer-clean-gprof:
16683@if gprof
16684maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16685
a90ef4bf
JM
16686maintainer-clean-gprof:
16687 @: $(MAKE); $(unstage)
16688 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16689 r=`${PWD_COMMAND}`; export r; \
16690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16691 $(HOST_EXPORTS) \
16692 for flag in $(EXTRA_HOST_FLAGS) ; do \
16693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16694 done; \
22121df0 16695 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16696 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16699 "RANLIB=$${RANLIB}" \
16700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16701 maintainer-clean) \
16702 || exit 1
16703
a90ef4bf 16704@endif gprof
e28c595f
JM
16705
16706
16707
a90ef4bf
JM
16708.PHONY: configure-intl maybe-configure-intl
16709maybe-configure-intl:
e28c595f 16710@if gcc-bootstrap
a90ef4bf 16711configure-intl: stage_current
e28c595f 16712@endif gcc-bootstrap
a90ef4bf
JM
16713@if intl
16714maybe-configure-intl: configure-intl
16715configure-intl:
e28c595f
JM
16716 @r=`${PWD_COMMAND}`; export r; \
16717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16718 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16719 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16720 $(HOST_EXPORTS) \
a90ef4bf
JM
16721 echo Configuring in $(HOST_SUBDIR)/intl; \
16722 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16723 case $(srcdir) in \
16724 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16725 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16726 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16727 esac; \
1b6c0831
L
16728 module_srcdir=intl; \
16729 $(SHELL) \
16730 $$s/$$module_srcdir/configure \
16731 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16732 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16733 --target=${target_alias} \
e28c595f 16734 || exit 1
a90ef4bf 16735@endif intl
e28c595f
JM
16736
16737
16738
a90ef4bf
JM
16739.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16740maybe-configure-stage1-intl:
16741@if intl-bootstrap
16742maybe-configure-stage1-intl: configure-stage1-intl
16743configure-stage1-intl:
e28c595f 16744 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16745 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16746 @r=`${PWD_COMMAND}`; export r; \
16747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16748 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16749 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16750 $(HOST_EXPORTS) \
e28c595f 16751 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16752 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16753 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16754 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16755 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16756 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16757 case $(srcdir) in \
16758 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16759 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16760 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16761 esac; \
1b6c0831
L
16762 module_srcdir=intl; \
16763 $(SHELL) $$s/$$module_srcdir/configure \
16764 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16765 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16766 --target=${target_alias} \
16767 \
a90ef4bf
JM
16768 $(STAGE1_CONFIGURE_FLAGS)
16769@endif intl-bootstrap
e28c595f 16770
a90ef4bf
JM
16771.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16772maybe-configure-stage2-intl:
16773@if intl-bootstrap
16774maybe-configure-stage2-intl: configure-stage2-intl
16775configure-stage2-intl:
e28c595f 16776 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16777 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16778 @r=`${PWD_COMMAND}`; export r; \
16779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16780 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16781 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16782 $(HOST_EXPORTS) \
1b05fbbd 16783 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16784 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16785 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16786 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16787 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16788 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16789 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16790 case $(srcdir) in \
16791 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16792 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16793 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16794 esac; \
1b6c0831
L
16795 module_srcdir=intl; \
16796 $(SHELL) $$s/$$module_srcdir/configure \
16797 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16798 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16799 --target=${target_alias} \
22121df0 16800 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16801 $(STAGE2_CONFIGURE_FLAGS)
16802@endif intl-bootstrap
e28c595f 16803
a90ef4bf
JM
16804.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16805maybe-configure-stage3-intl:
16806@if intl-bootstrap
16807maybe-configure-stage3-intl: configure-stage3-intl
16808configure-stage3-intl:
e28c595f 16809 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16810 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16811 @r=`${PWD_COMMAND}`; export r; \
16812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16813 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16814 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16815 $(HOST_EXPORTS) \
1b05fbbd 16816 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16817 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16818 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16819 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16820 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16821 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16822 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16823 case $(srcdir) in \
16824 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16825 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16826 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16827 esac; \
1b6c0831
L
16828 module_srcdir=intl; \
16829 $(SHELL) $$s/$$module_srcdir/configure \
16830 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16831 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16832 --target=${target_alias} \
22121df0 16833 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16834 $(STAGE3_CONFIGURE_FLAGS)
16835@endif intl-bootstrap
e28c595f 16836
a90ef4bf
JM
16837.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16838maybe-configure-stage4-intl:
16839@if intl-bootstrap
16840maybe-configure-stage4-intl: configure-stage4-intl
16841configure-stage4-intl:
e28c595f 16842 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16843 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16844 @r=`${PWD_COMMAND}`; export r; \
16845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16846 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16847 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16848 $(HOST_EXPORTS) \
1b05fbbd 16849 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16850 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16851 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16852 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16853 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16854 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16855 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16856 case $(srcdir) in \
16857 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16858 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16859 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16860 esac; \
1b6c0831
L
16861 module_srcdir=intl; \
16862 $(SHELL) $$s/$$module_srcdir/configure \
16863 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16864 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16865 --target=${target_alias} \
22121df0 16866 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16867 $(STAGE4_CONFIGURE_FLAGS)
16868@endif intl-bootstrap
e28c595f 16869
a90ef4bf
JM
16870.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16871maybe-configure-stageprofile-intl:
16872@if intl-bootstrap
16873maybe-configure-stageprofile-intl: configure-stageprofile-intl
16874configure-stageprofile-intl:
e28c595f 16875 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16876 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16877 @r=`${PWD_COMMAND}`; export r; \
16878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16879 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16880 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16881 $(HOST_EXPORTS) \
1b05fbbd
AO
16882 $(POSTSTAGE1_HOST_EXPORTS) \
16883 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16884 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16885 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16886 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
16887 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16888 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16889 case $(srcdir) in \
16890 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16891 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16892 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16893 esac; \
1b6c0831
L
16894 module_srcdir=intl; \
16895 $(SHELL) $$s/$$module_srcdir/configure \
16896 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16897 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16898 --target=${target_alias} \
22121df0 16899 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16900 $(STAGEprofile_CONFIGURE_FLAGS)
16901@endif intl-bootstrap
e28c595f 16902
a90ef4bf
JM
16903.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16904maybe-configure-stagefeedback-intl:
16905@if intl-bootstrap
16906maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16907configure-stagefeedback-intl:
e28c595f 16908 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16909 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16910 @r=`${PWD_COMMAND}`; export r; \
16911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16912 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16913 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16914 $(HOST_EXPORTS) \
1b05fbbd
AO
16915 $(POSTSTAGE1_HOST_EXPORTS) \
16916 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16917 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16918 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16919 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
16920 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16921 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16922 case $(srcdir) in \
16923 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16924 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16925 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16926 esac; \
1b6c0831
L
16927 module_srcdir=intl; \
16928 $(SHELL) $$s/$$module_srcdir/configure \
16929 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16930 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16931 --target=${target_alias} \
22121df0 16932 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16933 $(STAGEfeedback_CONFIGURE_FLAGS)
16934@endif intl-bootstrap
e28c595f
JM
16935
16936
16937
16938
16939
a90ef4bf
JM
16940.PHONY: all-intl maybe-all-intl
16941maybe-all-intl:
e28c595f 16942@if gcc-bootstrap
a90ef4bf 16943all-intl: stage_current
e28c595f 16944@endif gcc-bootstrap
a90ef4bf
JM
16945@if intl
16946TARGET-intl=all
16947maybe-all-intl: all-intl
16948all-intl: configure-intl
e28c595f
JM
16949 @r=`${PWD_COMMAND}`; export r; \
16950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16951 $(HOST_EXPORTS) \
a90ef4bf 16952 (cd $(HOST_SUBDIR)/intl && \
b3676d82 16953 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16954 $(TARGET-intl))
16955@endif intl
e28c595f
JM
16956
16957
16958
a90ef4bf
JM
16959.PHONY: all-stage1-intl maybe-all-stage1-intl
16960.PHONY: clean-stage1-intl maybe-clean-stage1-intl
16961maybe-all-stage1-intl:
16962maybe-clean-stage1-intl:
16963@if intl-bootstrap
16964maybe-all-stage1-intl: all-stage1-intl
16965all-stage1: all-stage1-intl
16966TARGET-stage1-intl = $(TARGET-intl)
16967all-stage1-intl: configure-stage1-intl
e28c595f
JM
16968 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16969 @r=`${PWD_COMMAND}`; export r; \
16970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16971 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 16972 $(HOST_EXPORTS) \
a90ef4bf 16973 cd $(HOST_SUBDIR)/intl && \
e28c595f 16974 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 16975 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 16976 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
16977 LIBCFLAGS="$(LIBCFLAGS)" \
16978 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16979 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16980 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
16981 $(EXTRA_HOST_FLAGS) \
16982 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 16983 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 16984 $(TARGET-stage1-intl)
e28c595f 16985
a90ef4bf
JM
16986maybe-clean-stage1-intl: clean-stage1-intl
16987clean-stage1: clean-stage1-intl
16988clean-stage1-intl:
e28c595f 16989 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 16990 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 16991 else \
a90ef4bf 16992 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
16993 $(MAKE) stage1-start; \
16994 fi; \
a90ef4bf 16995 cd $(HOST_SUBDIR)/intl && \
e28c595f 16996 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 16997 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16998@endif intl-bootstrap
e28c595f
JM
16999
17000
a90ef4bf
JM
17001.PHONY: all-stage2-intl maybe-all-stage2-intl
17002.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17003maybe-all-stage2-intl:
17004maybe-clean-stage2-intl:
17005@if intl-bootstrap
17006maybe-all-stage2-intl: all-stage2-intl
17007all-stage2: all-stage2-intl
17008TARGET-stage2-intl = $(TARGET-intl)
17009all-stage2-intl: configure-stage2-intl
e28c595f
JM
17010 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17011 @r=`${PWD_COMMAND}`; export r; \
17012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17013 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17014 $(HOST_EXPORTS) \
1f53ca9a 17015 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17016 cd $(HOST_SUBDIR)/intl && \
e28c595f 17017 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17018 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17019 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17020 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17021 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17022 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17023 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17024 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17025 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17026 $(TARGET-stage2-intl)
e28c595f 17027
a90ef4bf
JM
17028maybe-clean-stage2-intl: clean-stage2-intl
17029clean-stage2: clean-stage2-intl
17030clean-stage2-intl:
e28c595f 17031 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17032 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17033 else \
a90ef4bf 17034 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17035 $(MAKE) stage2-start; \
17036 fi; \
a90ef4bf 17037 cd $(HOST_SUBDIR)/intl && \
b3676d82 17038 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17039@endif intl-bootstrap
e28c595f
JM
17040
17041
a90ef4bf
JM
17042.PHONY: all-stage3-intl maybe-all-stage3-intl
17043.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17044maybe-all-stage3-intl:
17045maybe-clean-stage3-intl:
17046@if intl-bootstrap
17047maybe-all-stage3-intl: all-stage3-intl
17048all-stage3: all-stage3-intl
17049TARGET-stage3-intl = $(TARGET-intl)
17050all-stage3-intl: configure-stage3-intl
e28c595f
JM
17051 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17052 @r=`${PWD_COMMAND}`; export r; \
17053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17054 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17055 $(HOST_EXPORTS) \
1f53ca9a 17056 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17057 cd $(HOST_SUBDIR)/intl && \
e28c595f 17058 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17059 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17060 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17061 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17062 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17063 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17064 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17065 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17066 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17067 $(TARGET-stage3-intl)
e28c595f 17068
a90ef4bf
JM
17069maybe-clean-stage3-intl: clean-stage3-intl
17070clean-stage3: clean-stage3-intl
17071clean-stage3-intl:
e28c595f 17072 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17073 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17074 else \
a90ef4bf 17075 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17076 $(MAKE) stage3-start; \
17077 fi; \
a90ef4bf 17078 cd $(HOST_SUBDIR)/intl && \
b3676d82 17079 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17080@endif intl-bootstrap
e28c595f
JM
17081
17082
a90ef4bf
JM
17083.PHONY: all-stage4-intl maybe-all-stage4-intl
17084.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17085maybe-all-stage4-intl:
17086maybe-clean-stage4-intl:
17087@if intl-bootstrap
17088maybe-all-stage4-intl: all-stage4-intl
17089all-stage4: all-stage4-intl
17090TARGET-stage4-intl = $(TARGET-intl)
17091all-stage4-intl: configure-stage4-intl
e28c595f
JM
17092 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17093 @r=`${PWD_COMMAND}`; export r; \
17094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17095 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17096 $(HOST_EXPORTS) \
1f53ca9a 17097 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17098 cd $(HOST_SUBDIR)/intl && \
e28c595f 17099 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17100 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17101 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17102 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17103 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17104 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17105 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17106 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17107 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17108 $(TARGET-stage4-intl)
e28c595f 17109
a90ef4bf
JM
17110maybe-clean-stage4-intl: clean-stage4-intl
17111clean-stage4: clean-stage4-intl
17112clean-stage4-intl:
e28c595f 17113 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17114 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17115 else \
a90ef4bf 17116 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17117 $(MAKE) stage4-start; \
17118 fi; \
a90ef4bf 17119 cd $(HOST_SUBDIR)/intl && \
b3676d82 17120 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17121@endif intl-bootstrap
e28c595f
JM
17122
17123
a90ef4bf
JM
17124.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17125.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17126maybe-all-stageprofile-intl:
17127maybe-clean-stageprofile-intl:
17128@if intl-bootstrap
17129maybe-all-stageprofile-intl: all-stageprofile-intl
17130all-stageprofile: all-stageprofile-intl
17131TARGET-stageprofile-intl = $(TARGET-intl)
17132all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17133 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17134 @r=`${PWD_COMMAND}`; export r; \
17135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17136 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17137 $(HOST_EXPORTS) \
1f53ca9a 17138 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17139 cd $(HOST_SUBDIR)/intl && \
e28c595f 17140 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17141 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17142 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17143 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17144 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17145 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17146 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17147 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17148 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17149 $(TARGET-stageprofile-intl)
e28c595f 17150
a90ef4bf
JM
17151maybe-clean-stageprofile-intl: clean-stageprofile-intl
17152clean-stageprofile: clean-stageprofile-intl
17153clean-stageprofile-intl:
e28c595f 17154 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17155 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17156 else \
a90ef4bf 17157 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17158 $(MAKE) stageprofile-start; \
17159 fi; \
a90ef4bf 17160 cd $(HOST_SUBDIR)/intl && \
b3676d82 17161 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17162@endif intl-bootstrap
e28c595f
JM
17163
17164
a90ef4bf
JM
17165.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17166.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17167maybe-all-stagefeedback-intl:
17168maybe-clean-stagefeedback-intl:
17169@if intl-bootstrap
17170maybe-all-stagefeedback-intl: all-stagefeedback-intl
17171all-stagefeedback: all-stagefeedback-intl
17172TARGET-stagefeedback-intl = $(TARGET-intl)
17173all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17174 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17175 @r=`${PWD_COMMAND}`; export r; \
17176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17177 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17178 $(HOST_EXPORTS) \
1f53ca9a 17179 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17180 cd $(HOST_SUBDIR)/intl && \
e28c595f 17181 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17182 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17183 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17184 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17185 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17186 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17187 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17188 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17189 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17190 $(TARGET-stagefeedback-intl)
e28c595f 17191
a90ef4bf
JM
17192maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17193clean-stagefeedback: clean-stagefeedback-intl
17194clean-stagefeedback-intl:
e28c595f 17195 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17196 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17197 else \
a90ef4bf 17198 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17199 $(MAKE) stagefeedback-start; \
17200 fi; \
a90ef4bf 17201 cd $(HOST_SUBDIR)/intl && \
b3676d82 17202 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17203@endif intl-bootstrap
e28c595f
JM
17204
17205
17206
17207
17208
a90ef4bf
JM
17209.PHONY: check-intl maybe-check-intl
17210maybe-check-intl:
17211@if intl
17212maybe-check-intl: check-intl
e28c595f 17213
a90ef4bf 17214check-intl:
e28c595f
JM
17215 @: $(MAKE); $(unstage)
17216 @r=`${PWD_COMMAND}`; export r; \
17217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17218 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17219 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17220 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17221
a90ef4bf 17222@endif intl
e28c595f 17223
a90ef4bf
JM
17224.PHONY: install-intl maybe-install-intl
17225maybe-install-intl:
17226@if intl
17227maybe-install-intl: install-intl
e28c595f 17228
a90ef4bf
JM
17229install-intl: installdirs
17230 @: $(MAKE); $(unstage)
17231 @r=`${PWD_COMMAND}`; export r; \
17232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17233 $(HOST_EXPORTS) \
17234 (cd $(HOST_SUBDIR)/intl && \
17235 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17236
a90ef4bf 17237@endif intl
e28c595f 17238
a90ef4bf
JM
17239.PHONY: install-strip-intl maybe-install-strip-intl
17240maybe-install-strip-intl:
17241@if intl
17242maybe-install-strip-intl: install-strip-intl
9b980aa1 17243
a90ef4bf
JM
17244install-strip-intl: installdirs
17245 @: $(MAKE); $(unstage)
17246 @r=`${PWD_COMMAND}`; export r; \
17247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17248 $(HOST_EXPORTS) \
17249 (cd $(HOST_SUBDIR)/intl && \
17250 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17251
a90ef4bf 17252@endif intl
9b980aa1 17253
e28c595f
JM
17254# Other targets (info, dvi, pdf, etc.)
17255
a90ef4bf
JM
17256.PHONY: maybe-info-intl info-intl
17257maybe-info-intl:
17258@if intl
17259maybe-info-intl: info-intl
e28c595f 17260
a90ef4bf
JM
17261info-intl: \
17262 configure-intl
17263 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17264 r=`${PWD_COMMAND}`; export r; \
17265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17266 $(HOST_EXPORTS) \
17267 for flag in $(EXTRA_HOST_FLAGS) ; do \
17268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17269 done; \
22121df0 17270 echo "Doing info in intl"; \
a90ef4bf 17271 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17274 "RANLIB=$${RANLIB}" \
17275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17276 info) \
17277 || exit 1
17278
a90ef4bf 17279@endif intl
e28c595f 17280
a90ef4bf
JM
17281.PHONY: maybe-dvi-intl dvi-intl
17282maybe-dvi-intl:
17283@if intl
17284maybe-dvi-intl: dvi-intl
e28c595f 17285
a90ef4bf
JM
17286dvi-intl: \
17287 configure-intl
17288 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17289 r=`${PWD_COMMAND}`; export r; \
17290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17291 $(HOST_EXPORTS) \
17292 for flag in $(EXTRA_HOST_FLAGS) ; do \
17293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17294 done; \
22121df0 17295 echo "Doing dvi in intl"; \
a90ef4bf 17296 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17299 "RANLIB=$${RANLIB}" \
17300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17301 dvi) \
17302 || exit 1
17303
a90ef4bf 17304@endif intl
e28c595f 17305
a90ef4bf
JM
17306.PHONY: maybe-pdf-intl pdf-intl
17307maybe-pdf-intl:
17308@if intl
17309maybe-pdf-intl: pdf-intl
e28c595f 17310
a90ef4bf
JM
17311pdf-intl: \
17312 configure-intl
17313 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17314 r=`${PWD_COMMAND}`; export r; \
17315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17316 $(HOST_EXPORTS) \
17317 for flag in $(EXTRA_HOST_FLAGS) ; do \
17318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17319 done; \
22121df0 17320 echo "Doing pdf in intl"; \
a90ef4bf 17321 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17324 "RANLIB=$${RANLIB}" \
17325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17326 pdf) \
17327 || exit 1
17328
a90ef4bf 17329@endif intl
e28c595f 17330
a90ef4bf
JM
17331.PHONY: maybe-html-intl html-intl
17332maybe-html-intl:
17333@if intl
17334maybe-html-intl: html-intl
e28c595f 17335
a90ef4bf
JM
17336html-intl: \
17337 configure-intl
17338 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17339 r=`${PWD_COMMAND}`; export r; \
17340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17341 $(HOST_EXPORTS) \
17342 for flag in $(EXTRA_HOST_FLAGS) ; do \
17343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17344 done; \
22121df0 17345 echo "Doing html in intl"; \
a90ef4bf 17346 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17349 "RANLIB=$${RANLIB}" \
17350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17351 html) \
17352 || exit 1
17353
a90ef4bf 17354@endif intl
e28c595f 17355
a90ef4bf
JM
17356.PHONY: maybe-TAGS-intl TAGS-intl
17357maybe-TAGS-intl:
17358@if intl
17359maybe-TAGS-intl: TAGS-intl
e28c595f 17360
a90ef4bf
JM
17361TAGS-intl: \
17362 configure-intl
17363 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17364 r=`${PWD_COMMAND}`; export r; \
17365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17366 $(HOST_EXPORTS) \
17367 for flag in $(EXTRA_HOST_FLAGS) ; do \
17368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17369 done; \
22121df0 17370 echo "Doing TAGS in intl"; \
a90ef4bf 17371 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17374 "RANLIB=$${RANLIB}" \
17375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17376 TAGS) \
17377 || exit 1
17378
a90ef4bf 17379@endif intl
e28c595f 17380
a90ef4bf
JM
17381.PHONY: maybe-install-info-intl install-info-intl
17382maybe-install-info-intl:
17383@if intl
17384maybe-install-info-intl: install-info-intl
e28c595f 17385
a90ef4bf
JM
17386install-info-intl: \
17387 configure-intl \
17388 info-intl
17389 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17390 r=`${PWD_COMMAND}`; export r; \
17391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17392 $(HOST_EXPORTS) \
17393 for flag in $(EXTRA_HOST_FLAGS) ; do \
17394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17395 done; \
22121df0 17396 echo "Doing install-info in intl"; \
a90ef4bf 17397 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17400 "RANLIB=$${RANLIB}" \
17401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17402 install-info) \
17403 || exit 1
17404
a90ef4bf 17405@endif intl
e28c595f 17406
a90ef4bf
JM
17407.PHONY: maybe-install-pdf-intl install-pdf-intl
17408maybe-install-pdf-intl:
17409@if intl
17410maybe-install-pdf-intl: install-pdf-intl
e28c595f 17411
a90ef4bf
JM
17412install-pdf-intl: \
17413 configure-intl \
17414 pdf-intl
17415 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17416 r=`${PWD_COMMAND}`; export r; \
17417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17418 $(HOST_EXPORTS) \
17419 for flag in $(EXTRA_HOST_FLAGS) ; do \
17420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17421 done; \
22121df0 17422 echo "Doing install-pdf in intl"; \
a90ef4bf 17423 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17426 "RANLIB=$${RANLIB}" \
17427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17428 install-pdf) \
17429 || exit 1
17430
a90ef4bf 17431@endif intl
e28c595f 17432
a90ef4bf
JM
17433.PHONY: maybe-install-html-intl install-html-intl
17434maybe-install-html-intl:
17435@if intl
17436maybe-install-html-intl: install-html-intl
e28c595f 17437
a90ef4bf
JM
17438install-html-intl: \
17439 configure-intl \
17440 html-intl
17441 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17442 r=`${PWD_COMMAND}`; export r; \
17443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17444 $(HOST_EXPORTS) \
17445 for flag in $(EXTRA_HOST_FLAGS) ; do \
17446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17447 done; \
22121df0 17448 echo "Doing install-html in intl"; \
a90ef4bf 17449 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17452 "RANLIB=$${RANLIB}" \
17453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17454 install-html) \
17455 || exit 1
17456
a90ef4bf 17457@endif intl
e28c595f 17458
a90ef4bf
JM
17459.PHONY: maybe-installcheck-intl installcheck-intl
17460maybe-installcheck-intl:
17461@if intl
17462maybe-installcheck-intl: installcheck-intl
e28c595f 17463
a90ef4bf
JM
17464installcheck-intl: \
17465 configure-intl
17466 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17467 r=`${PWD_COMMAND}`; export r; \
17468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17469 $(HOST_EXPORTS) \
17470 for flag in $(EXTRA_HOST_FLAGS) ; do \
17471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17472 done; \
22121df0 17473 echo "Doing installcheck in intl"; \
a90ef4bf 17474 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17477 "RANLIB=$${RANLIB}" \
17478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17479 installcheck) \
17480 || exit 1
17481
a90ef4bf 17482@endif intl
e28c595f 17483
a90ef4bf
JM
17484.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17485maybe-mostlyclean-intl:
17486@if intl
17487maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17488
a90ef4bf
JM
17489mostlyclean-intl:
17490 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17491 r=`${PWD_COMMAND}`; export r; \
17492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17493 $(HOST_EXPORTS) \
17494 for flag in $(EXTRA_HOST_FLAGS) ; do \
17495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17496 done; \
22121df0 17497 echo "Doing mostlyclean in intl"; \
a90ef4bf 17498 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17501 "RANLIB=$${RANLIB}" \
17502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17503 mostlyclean) \
17504 || exit 1
17505
a90ef4bf 17506@endif intl
e28c595f 17507
a90ef4bf
JM
17508.PHONY: maybe-clean-intl clean-intl
17509maybe-clean-intl:
17510@if intl
17511maybe-clean-intl: clean-intl
e28c595f 17512
a90ef4bf
JM
17513clean-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; \
22121df0 17521 echo "Doing clean in intl"; \
a90ef4bf 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 clean) \
17528 || exit 1
17529
a90ef4bf 17530@endif intl
e28c595f 17531
a90ef4bf
JM
17532.PHONY: maybe-distclean-intl distclean-intl
17533maybe-distclean-intl:
17534@if intl
17535maybe-distclean-intl: distclean-intl
e28c595f 17536
a90ef4bf
JM
17537distclean-intl:
17538 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17539 r=`${PWD_COMMAND}`; export r; \
17540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17541 $(HOST_EXPORTS) \
17542 for flag in $(EXTRA_HOST_FLAGS) ; do \
17543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17544 done; \
22121df0 17545 echo "Doing distclean in intl"; \
a90ef4bf 17546 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17549 "RANLIB=$${RANLIB}" \
17550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17551 distclean) \
17552 || exit 1
17553
a90ef4bf 17554@endif intl
e28c595f 17555
a90ef4bf
JM
17556.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17557maybe-maintainer-clean-intl:
17558@if intl
17559maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17560
a90ef4bf
JM
17561maintainer-clean-intl:
17562 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17563 r=`${PWD_COMMAND}`; export r; \
17564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17565 $(HOST_EXPORTS) \
17566 for flag in $(EXTRA_HOST_FLAGS) ; do \
17567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17568 done; \
22121df0 17569 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17570 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17573 "RANLIB=$${RANLIB}" \
17574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17575 maintainer-clean) \
17576 || exit 1
17577
a90ef4bf 17578@endif intl
e28c595f
JM
17579
17580
17581
a90ef4bf
JM
17582.PHONY: configure-tcl maybe-configure-tcl
17583maybe-configure-tcl:
e8a5fa9c 17584@if gcc-bootstrap
a90ef4bf 17585configure-tcl: stage_current
e8a5fa9c 17586@endif gcc-bootstrap
a90ef4bf
JM
17587@if tcl
17588maybe-configure-tcl: configure-tcl
17589configure-tcl:
17590 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17591 @r=`${PWD_COMMAND}`; export r; \
17592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17593 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17594 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17595 $(HOST_EXPORTS) \
a90ef4bf
JM
17596 echo Configuring in $(HOST_SUBDIR)/tcl; \
17597 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17598 case $(srcdir) in \
17599 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17600 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17601 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17602 esac; \
1b6c0831
L
17603 module_srcdir=tcl; \
17604 $(SHELL) \
17605 $$s/$$module_srcdir/configure \
17606 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17607 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17608 --target=${target_alias} \
e8a5fa9c 17609 || exit 1
a90ef4bf 17610@endif tcl
e8a5fa9c
RW
17611
17612
17613
e8a5fa9c 17614
e8a5fa9c 17615
a90ef4bf
JM
17616.PHONY: all-tcl maybe-all-tcl
17617maybe-all-tcl:
17618@if gcc-bootstrap
17619all-tcl: stage_current
17620@endif gcc-bootstrap
17621@if tcl
17622TARGET-tcl=all
17623maybe-all-tcl: all-tcl
17624all-tcl: configure-tcl
17625 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17626 @r=`${PWD_COMMAND}`; export r; \
17627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17628 $(HOST_EXPORTS) \
17629 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17630 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17631 $(TARGET-tcl))
17632@endif tcl
e8a5fa9c 17633
a90ef4bf
JM
17634
17635
17636
17637.PHONY: check-tcl maybe-check-tcl
17638maybe-check-tcl:
17639@if tcl
17640maybe-check-tcl: check-tcl
17641
17642check-tcl:
17643 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17644 @r=`${PWD_COMMAND}`; export r; \
17645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17646 $(HOST_EXPORTS) \
a90ef4bf
JM
17647 (cd $(HOST_SUBDIR)/tcl && \
17648 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17649
a90ef4bf
JM
17650@endif tcl
17651
17652.PHONY: install-tcl maybe-install-tcl
17653maybe-install-tcl:
17654@if tcl
17655maybe-install-tcl: install-tcl
17656
17657install-tcl: installdirs
17658 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17659 @r=`${PWD_COMMAND}`; export r; \
17660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17661 $(HOST_EXPORTS) \
a90ef4bf
JM
17662 (cd $(HOST_SUBDIR)/tcl && \
17663 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17664
a90ef4bf
JM
17665@endif tcl
17666
17667.PHONY: install-strip-tcl maybe-install-strip-tcl
17668maybe-install-strip-tcl:
17669@if tcl
17670maybe-install-strip-tcl: install-strip-tcl
17671
17672install-strip-tcl: installdirs
17673 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17674 @r=`${PWD_COMMAND}`; export r; \
17675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17676 $(HOST_EXPORTS) \
a90ef4bf
JM
17677 (cd $(HOST_SUBDIR)/tcl && \
17678 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17679
a90ef4bf 17680@endif tcl
e8a5fa9c 17681
a90ef4bf 17682# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17683
a90ef4bf
JM
17684.PHONY: maybe-info-tcl info-tcl
17685maybe-info-tcl:
17686@if tcl
17687maybe-info-tcl: info-tcl
e8a5fa9c 17688
a90ef4bf
JM
17689info-tcl: \
17690 configure-tcl
17691 @: $(MAKE); $(unstage)
17692 @[ -f ./tcl/Makefile ] || exit 0; \
17693 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17695 $(HOST_EXPORTS) \
17696 for flag in $(EXTRA_HOST_FLAGS) ; do \
17697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17698 done; \
22121df0 17699 echo "Doing info in tcl"; \
a90ef4bf
JM
17700 (cd $(HOST_SUBDIR)/tcl && \
17701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17703 "RANLIB=$${RANLIB}" \
17704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17705 info) \
17706 || exit 1
e8a5fa9c 17707
a90ef4bf 17708@endif tcl
e8a5fa9c 17709
a90ef4bf
JM
17710.PHONY: maybe-dvi-tcl dvi-tcl
17711maybe-dvi-tcl:
17712@if tcl
17713maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17714
a90ef4bf
JM
17715dvi-tcl: \
17716 configure-tcl
17717 @: $(MAKE); $(unstage)
17718 @[ -f ./tcl/Makefile ] || exit 0; \
17719 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17721 $(HOST_EXPORTS) \
17722 for flag in $(EXTRA_HOST_FLAGS) ; do \
17723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17724 done; \
22121df0 17725 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17726 (cd $(HOST_SUBDIR)/tcl && \
17727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17729 "RANLIB=$${RANLIB}" \
17730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17731 dvi) \
17732 || exit 1
e8a5fa9c 17733
a90ef4bf 17734@endif tcl
e8a5fa9c 17735
a90ef4bf
JM
17736.PHONY: maybe-pdf-tcl pdf-tcl
17737maybe-pdf-tcl:
17738@if tcl
17739maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17740
a90ef4bf
JM
17741pdf-tcl: \
17742 configure-tcl
17743 @: $(MAKE); $(unstage)
17744 @[ -f ./tcl/Makefile ] || exit 0; \
17745 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17747 $(HOST_EXPORTS) \
a90ef4bf
JM
17748 for flag in $(EXTRA_HOST_FLAGS) ; do \
17749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17750 done; \
22121df0 17751 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17752 (cd $(HOST_SUBDIR)/tcl && \
17753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17755 "RANLIB=$${RANLIB}" \
17756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17757 pdf) \
17758 || exit 1
e8a5fa9c 17759
a90ef4bf 17760@endif tcl
e8a5fa9c 17761
a90ef4bf
JM
17762.PHONY: maybe-html-tcl html-tcl
17763maybe-html-tcl:
17764@if tcl
17765maybe-html-tcl: html-tcl
e8a5fa9c 17766
a90ef4bf
JM
17767html-tcl: \
17768 configure-tcl
17769 @: $(MAKE); $(unstage)
17770 @[ -f ./tcl/Makefile ] || exit 0; \
17771 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17773 $(HOST_EXPORTS) \
a90ef4bf
JM
17774 for flag in $(EXTRA_HOST_FLAGS) ; do \
17775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17776 done; \
22121df0 17777 echo "Doing html in tcl"; \
a90ef4bf
JM
17778 (cd $(HOST_SUBDIR)/tcl && \
17779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17781 "RANLIB=$${RANLIB}" \
17782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17783 html) \
17784 || exit 1
e8a5fa9c 17785
a90ef4bf 17786@endif tcl
e8a5fa9c 17787
a90ef4bf
JM
17788.PHONY: maybe-TAGS-tcl TAGS-tcl
17789maybe-TAGS-tcl:
17790@if tcl
17791maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17792
a90ef4bf
JM
17793TAGS-tcl: \
17794 configure-tcl
17795 @: $(MAKE); $(unstage)
17796 @[ -f ./tcl/Makefile ] || exit 0; \
17797 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17799 $(HOST_EXPORTS) \
a90ef4bf
JM
17800 for flag in $(EXTRA_HOST_FLAGS) ; do \
17801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17802 done; \
22121df0 17803 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17804 (cd $(HOST_SUBDIR)/tcl && \
17805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17807 "RANLIB=$${RANLIB}" \
17808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17809 TAGS) \
17810 || exit 1
e8a5fa9c 17811
a90ef4bf 17812@endif tcl
e8a5fa9c 17813
a90ef4bf
JM
17814.PHONY: maybe-install-info-tcl install-info-tcl
17815maybe-install-info-tcl:
17816@if tcl
17817maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17818
a90ef4bf
JM
17819install-info-tcl: \
17820 configure-tcl \
17821 info-tcl
e8a5fa9c 17822 @: $(MAKE); $(unstage)
a90ef4bf 17823 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17824 r=`${PWD_COMMAND}`; export r; \
17825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17826 $(HOST_EXPORTS) \
17827 for flag in $(EXTRA_HOST_FLAGS) ; do \
17828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17829 done; \
22121df0 17830 echo "Doing install-info in tcl"; \
a90ef4bf 17831 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17834 "RANLIB=$${RANLIB}" \
17835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17836 install-info) \
e8a5fa9c
RW
17837 || exit 1
17838
a90ef4bf 17839@endif tcl
e8a5fa9c 17840
a90ef4bf
JM
17841.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17842maybe-install-pdf-tcl:
17843@if tcl
17844maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17845
a90ef4bf
JM
17846install-pdf-tcl: \
17847 configure-tcl \
17848 pdf-tcl
17849 @: $(MAKE); $(unstage)
17850 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17851 r=`${PWD_COMMAND}`; export r; \
17852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17853 $(HOST_EXPORTS) \
17854 for flag in $(EXTRA_HOST_FLAGS) ; do \
17855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17856 done; \
22121df0 17857 echo "Doing install-pdf in tcl"; \
a90ef4bf 17858 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17861 "RANLIB=$${RANLIB}" \
17862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17863 install-pdf) \
e8a5fa9c
RW
17864 || exit 1
17865
a90ef4bf 17866@endif tcl
e8a5fa9c 17867
a90ef4bf
JM
17868.PHONY: maybe-install-html-tcl install-html-tcl
17869maybe-install-html-tcl:
17870@if tcl
17871maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17872
a90ef4bf
JM
17873install-html-tcl: \
17874 configure-tcl \
17875 html-tcl
17876 @: $(MAKE); $(unstage)
17877 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17878 r=`${PWD_COMMAND}`; export r; \
17879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17880 $(HOST_EXPORTS) \
17881 for flag in $(EXTRA_HOST_FLAGS) ; do \
17882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17883 done; \
22121df0 17884 echo "Doing install-html in tcl"; \
a90ef4bf 17885 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17888 "RANLIB=$${RANLIB}" \
17889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17890 install-html) \
e8a5fa9c
RW
17891 || exit 1
17892
a90ef4bf 17893@endif tcl
e8a5fa9c 17894
a90ef4bf
JM
17895.PHONY: maybe-installcheck-tcl installcheck-tcl
17896maybe-installcheck-tcl:
17897@if tcl
17898maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17899
a90ef4bf
JM
17900installcheck-tcl: \
17901 configure-tcl
17902 @: $(MAKE); $(unstage)
17903 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17904 r=`${PWD_COMMAND}`; export r; \
17905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17906 $(HOST_EXPORTS) \
17907 for flag in $(EXTRA_HOST_FLAGS) ; do \
17908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17909 done; \
22121df0 17910 echo "Doing installcheck in tcl"; \
a90ef4bf 17911 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17914 "RANLIB=$${RANLIB}" \
17915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17916 installcheck) \
e8a5fa9c
RW
17917 || exit 1
17918
a90ef4bf 17919@endif tcl
e8a5fa9c 17920
a90ef4bf
JM
17921.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
17922maybe-mostlyclean-tcl:
17923@if tcl
17924maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 17925
a90ef4bf
JM
17926# tcl doesn't support mostlyclean.
17927mostlyclean-tcl:
17928
17929@endif tcl
17930
17931.PHONY: maybe-clean-tcl clean-tcl
17932maybe-clean-tcl:
17933@if tcl
17934maybe-clean-tcl: clean-tcl
17935
17936clean-tcl:
17937 @: $(MAKE); $(unstage)
17938 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17939 r=`${PWD_COMMAND}`; export r; \
17940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17941 $(HOST_EXPORTS) \
17942 for flag in $(EXTRA_HOST_FLAGS) ; do \
17943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17944 done; \
22121df0 17945 echo "Doing clean in tcl"; \
a90ef4bf 17946 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17949 "RANLIB=$${RANLIB}" \
17950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17951 clean) \
e8a5fa9c
RW
17952 || exit 1
17953
a90ef4bf 17954@endif tcl
e8a5fa9c 17955
a90ef4bf
JM
17956.PHONY: maybe-distclean-tcl distclean-tcl
17957maybe-distclean-tcl:
17958@if tcl
17959maybe-distclean-tcl: distclean-tcl
e8a5fa9c 17960
a90ef4bf
JM
17961distclean-tcl:
17962 @: $(MAKE); $(unstage)
17963 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17964 r=`${PWD_COMMAND}`; export r; \
17965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17966 $(HOST_EXPORTS) \
17967 for flag in $(EXTRA_HOST_FLAGS) ; do \
17968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17969 done; \
22121df0 17970 echo "Doing distclean in tcl"; \
a90ef4bf 17971 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17974 "RANLIB=$${RANLIB}" \
17975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17976 distclean) \
e8a5fa9c
RW
17977 || exit 1
17978
a90ef4bf 17979@endif tcl
e8a5fa9c 17980
a90ef4bf
JM
17981.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
17982maybe-maintainer-clean-tcl:
17983@if tcl
17984maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 17985
a90ef4bf
JM
17986maintainer-clean-tcl:
17987 @: $(MAKE); $(unstage)
17988 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17989 r=`${PWD_COMMAND}`; export r; \
17990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17991 $(HOST_EXPORTS) \
17992 for flag in $(EXTRA_HOST_FLAGS) ; do \
17993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17994 done; \
22121df0 17995 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 17996 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17999 "RANLIB=$${RANLIB}" \
18000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18001 maintainer-clean) \
e8a5fa9c
RW
18002 || exit 1
18003
a90ef4bf 18004@endif tcl
e8a5fa9c 18005
e8a5fa9c 18006
a90ef4bf
JM
18007
18008.PHONY: configure-itcl maybe-configure-itcl
18009maybe-configure-itcl:
18010@if gcc-bootstrap
18011configure-itcl: stage_current
18012@endif gcc-bootstrap
18013@if itcl
18014maybe-configure-itcl: configure-itcl
18015configure-itcl:
18016 @: $(MAKE); $(unstage)
18017 @r=`${PWD_COMMAND}`; export r; \
18018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18019 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18020 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18021 $(HOST_EXPORTS) \
18022 echo Configuring in $(HOST_SUBDIR)/itcl; \
18023 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18024 case $(srcdir) in \
18025 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18026 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18027 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18028 esac; \
1b6c0831
L
18029 module_srcdir=itcl; \
18030 $(SHELL) \
18031 $$s/$$module_srcdir/configure \
18032 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18033 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18034 --target=${target_alias} \
a90ef4bf
JM
18035 || exit 1
18036@endif itcl
18037
18038
18039
18040
18041
18042.PHONY: all-itcl maybe-all-itcl
18043maybe-all-itcl:
18044@if gcc-bootstrap
18045all-itcl: stage_current
18046@endif gcc-bootstrap
18047@if itcl
18048TARGET-itcl=all
18049maybe-all-itcl: all-itcl
18050all-itcl: configure-itcl
18051 @: $(MAKE); $(unstage)
18052 @r=`${PWD_COMMAND}`; export r; \
18053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18054 $(HOST_EXPORTS) \
18055 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18056 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18057 $(TARGET-itcl))
18058@endif itcl
18059
18060
18061
18062
18063.PHONY: check-itcl maybe-check-itcl
18064maybe-check-itcl:
18065@if itcl
18066maybe-check-itcl: check-itcl
18067
18068check-itcl:
18069 @: $(MAKE); $(unstage)
18070 @r=`${PWD_COMMAND}`; export r; \
18071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18072 $(HOST_EXPORTS) \
a90ef4bf
JM
18073 (cd $(HOST_SUBDIR)/itcl && \
18074 $(MAKE) $(FLAGS_TO_PASS) check)
18075
18076@endif itcl
18077
18078.PHONY: install-itcl maybe-install-itcl
18079maybe-install-itcl:
18080@if itcl
18081maybe-install-itcl: install-itcl
18082
18083install-itcl: installdirs
18084 @: $(MAKE); $(unstage)
18085 @r=`${PWD_COMMAND}`; export r; \
18086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18087 $(HOST_EXPORTS) \
18088 (cd $(HOST_SUBDIR)/itcl && \
18089 $(MAKE) $(FLAGS_TO_PASS) install)
18090
18091@endif itcl
18092
18093.PHONY: install-strip-itcl maybe-install-strip-itcl
18094maybe-install-strip-itcl:
18095@if itcl
18096maybe-install-strip-itcl: install-strip-itcl
18097
18098install-strip-itcl: installdirs
18099 @: $(MAKE); $(unstage)
18100 @r=`${PWD_COMMAND}`; export r; \
18101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18102 $(HOST_EXPORTS) \
18103 (cd $(HOST_SUBDIR)/itcl && \
18104 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18105
18106@endif itcl
18107
18108# Other targets (info, dvi, pdf, etc.)
18109
18110.PHONY: maybe-info-itcl info-itcl
18111maybe-info-itcl:
18112@if itcl
18113maybe-info-itcl: info-itcl
18114
18115info-itcl: \
18116 configure-itcl
18117 @: $(MAKE); $(unstage)
18118 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18119 r=`${PWD_COMMAND}`; export r; \
18120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18121 $(HOST_EXPORTS) \
18122 for flag in $(EXTRA_HOST_FLAGS) ; do \
18123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18124 done; \
22121df0 18125 echo "Doing info in itcl"; \
a90ef4bf 18126 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18129 "RANLIB=$${RANLIB}" \
18130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18131 info) \
e8a5fa9c
RW
18132 || exit 1
18133
a90ef4bf 18134@endif itcl
e8a5fa9c 18135
a90ef4bf
JM
18136.PHONY: maybe-dvi-itcl dvi-itcl
18137maybe-dvi-itcl:
18138@if itcl
18139maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18140
a90ef4bf
JM
18141dvi-itcl: \
18142 configure-itcl
18143 @: $(MAKE); $(unstage)
18144 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18145 r=`${PWD_COMMAND}`; export r; \
18146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18147 $(HOST_EXPORTS) \
18148 for flag in $(EXTRA_HOST_FLAGS) ; do \
18149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18150 done; \
22121df0 18151 echo "Doing dvi in itcl"; \
a90ef4bf 18152 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18155 "RANLIB=$${RANLIB}" \
18156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18157 dvi) \
e8a5fa9c
RW
18158 || exit 1
18159
a90ef4bf 18160@endif itcl
e8a5fa9c 18161
a90ef4bf
JM
18162.PHONY: maybe-pdf-itcl pdf-itcl
18163maybe-pdf-itcl:
18164@if itcl
18165maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18166
a90ef4bf
JM
18167pdf-itcl: \
18168 configure-itcl
18169 @: $(MAKE); $(unstage)
18170 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18171 r=`${PWD_COMMAND}`; export r; \
18172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18173 $(HOST_EXPORTS) \
18174 for flag in $(EXTRA_HOST_FLAGS) ; do \
18175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18176 done; \
22121df0 18177 echo "Doing pdf in itcl"; \
a90ef4bf 18178 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18181 "RANLIB=$${RANLIB}" \
18182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18183 pdf) \
e8a5fa9c
RW
18184 || exit 1
18185
a90ef4bf 18186@endif itcl
e8a5fa9c 18187
a90ef4bf
JM
18188.PHONY: maybe-html-itcl html-itcl
18189maybe-html-itcl:
18190@if itcl
18191maybe-html-itcl: html-itcl
e8a5fa9c 18192
a90ef4bf
JM
18193html-itcl: \
18194 configure-itcl
18195 @: $(MAKE); $(unstage)
18196 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18197 r=`${PWD_COMMAND}`; export r; \
18198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18199 $(HOST_EXPORTS) \
18200 for flag in $(EXTRA_HOST_FLAGS) ; do \
18201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18202 done; \
22121df0 18203 echo "Doing html in itcl"; \
a90ef4bf 18204 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18207 "RANLIB=$${RANLIB}" \
18208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18209 html) \
e8a5fa9c
RW
18210 || exit 1
18211
a90ef4bf 18212@endif itcl
e8a5fa9c 18213
a90ef4bf
JM
18214.PHONY: maybe-TAGS-itcl TAGS-itcl
18215maybe-TAGS-itcl:
18216@if itcl
18217maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18218
a90ef4bf
JM
18219TAGS-itcl: \
18220 configure-itcl
18221 @: $(MAKE); $(unstage)
18222 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18223 r=`${PWD_COMMAND}`; export r; \
18224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18225 $(HOST_EXPORTS) \
18226 for flag in $(EXTRA_HOST_FLAGS) ; do \
18227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18228 done; \
22121df0 18229 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18230 (cd $(HOST_SUBDIR)/itcl && \
18231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18233 "RANLIB=$${RANLIB}" \
18234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18235 TAGS) \
18236 || exit 1
18237
18238@endif itcl
18239
18240.PHONY: maybe-install-info-itcl install-info-itcl
18241maybe-install-info-itcl:
18242@if itcl
18243maybe-install-info-itcl: install-info-itcl
18244
18245install-info-itcl: \
18246 configure-itcl \
18247 info-itcl
18248 @: $(MAKE); $(unstage)
18249 @[ -f ./itcl/Makefile ] || exit 0; \
18250 r=`${PWD_COMMAND}`; export r; \
18251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18252 $(HOST_EXPORTS) \
18253 for flag in $(EXTRA_HOST_FLAGS) ; do \
18254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18255 done; \
22121df0 18256 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18257 (cd $(HOST_SUBDIR)/itcl && \
18258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18260 "RANLIB=$${RANLIB}" \
18261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18262 install-info) \
18263 || exit 1
18264
18265@endif itcl
18266
18267.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18268maybe-install-pdf-itcl:
18269@if itcl
18270maybe-install-pdf-itcl: install-pdf-itcl
18271
18272install-pdf-itcl: \
18273 configure-itcl \
18274 pdf-itcl
18275 @: $(MAKE); $(unstage)
18276 @[ -f ./itcl/Makefile ] || exit 0; \
18277 r=`${PWD_COMMAND}`; export r; \
18278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18279 $(HOST_EXPORTS) \
18280 for flag in $(EXTRA_HOST_FLAGS) ; do \
18281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18282 done; \
22121df0 18283 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18284 (cd $(HOST_SUBDIR)/itcl && \
18285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18287 "RANLIB=$${RANLIB}" \
18288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18289 install-pdf) \
18290 || exit 1
18291
18292@endif itcl
18293
18294.PHONY: maybe-install-html-itcl install-html-itcl
18295maybe-install-html-itcl:
18296@if itcl
18297maybe-install-html-itcl: install-html-itcl
18298
18299install-html-itcl: \
18300 configure-itcl \
18301 html-itcl
18302 @: $(MAKE); $(unstage)
18303 @[ -f ./itcl/Makefile ] || exit 0; \
18304 r=`${PWD_COMMAND}`; export r; \
18305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18306 $(HOST_EXPORTS) \
18307 for flag in $(EXTRA_HOST_FLAGS) ; do \
18308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18309 done; \
22121df0 18310 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18311 (cd $(HOST_SUBDIR)/itcl && \
18312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18314 "RANLIB=$${RANLIB}" \
18315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18316 install-html) \
18317 || exit 1
18318
18319@endif itcl
18320
18321.PHONY: maybe-installcheck-itcl installcheck-itcl
18322maybe-installcheck-itcl:
18323@if itcl
18324maybe-installcheck-itcl: installcheck-itcl
18325
18326installcheck-itcl: \
18327 configure-itcl
18328 @: $(MAKE); $(unstage)
18329 @[ -f ./itcl/Makefile ] || exit 0; \
18330 r=`${PWD_COMMAND}`; export r; \
18331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18332 $(HOST_EXPORTS) \
18333 for flag in $(EXTRA_HOST_FLAGS) ; do \
18334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18335 done; \
22121df0 18336 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18337 (cd $(HOST_SUBDIR)/itcl && \
18338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18340 "RANLIB=$${RANLIB}" \
18341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18342 installcheck) \
18343 || exit 1
18344
18345@endif itcl
18346
18347.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18348maybe-mostlyclean-itcl:
18349@if itcl
18350maybe-mostlyclean-itcl: mostlyclean-itcl
18351
18352mostlyclean-itcl:
18353 @: $(MAKE); $(unstage)
18354 @[ -f ./itcl/Makefile ] || exit 0; \
18355 r=`${PWD_COMMAND}`; export r; \
18356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18357 $(HOST_EXPORTS) \
18358 for flag in $(EXTRA_HOST_FLAGS) ; do \
18359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18360 done; \
22121df0 18361 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18362 (cd $(HOST_SUBDIR)/itcl && \
18363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18365 "RANLIB=$${RANLIB}" \
18366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18367 mostlyclean) \
18368 || exit 1
18369
18370@endif itcl
18371
18372.PHONY: maybe-clean-itcl clean-itcl
18373maybe-clean-itcl:
18374@if itcl
18375maybe-clean-itcl: clean-itcl
18376
18377clean-itcl:
18378 @: $(MAKE); $(unstage)
18379 @[ -f ./itcl/Makefile ] || exit 0; \
18380 r=`${PWD_COMMAND}`; export r; \
18381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18382 $(HOST_EXPORTS) \
18383 for flag in $(EXTRA_HOST_FLAGS) ; do \
18384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18385 done; \
22121df0 18386 echo "Doing clean in itcl"; \
a90ef4bf
JM
18387 (cd $(HOST_SUBDIR)/itcl && \
18388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18390 "RANLIB=$${RANLIB}" \
18391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18392 clean) \
18393 || exit 1
18394
18395@endif itcl
18396
18397.PHONY: maybe-distclean-itcl distclean-itcl
18398maybe-distclean-itcl:
18399@if itcl
18400maybe-distclean-itcl: distclean-itcl
18401
18402distclean-itcl:
18403 @: $(MAKE); $(unstage)
18404 @[ -f ./itcl/Makefile ] || exit 0; \
18405 r=`${PWD_COMMAND}`; export r; \
18406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18407 $(HOST_EXPORTS) \
18408 for flag in $(EXTRA_HOST_FLAGS) ; do \
18409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18410 done; \
22121df0 18411 echo "Doing distclean in itcl"; \
a90ef4bf 18412 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18415 "RANLIB=$${RANLIB}" \
18416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18417 distclean) \
18418 || exit 1
18419
a90ef4bf 18420@endif itcl
e8a5fa9c 18421
a90ef4bf
JM
18422.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18423maybe-maintainer-clean-itcl:
18424@if itcl
18425maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18426
a90ef4bf
JM
18427maintainer-clean-itcl:
18428 @: $(MAKE); $(unstage)
18429 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18430 r=`${PWD_COMMAND}`; export r; \
18431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18432 $(HOST_EXPORTS) \
18433 for flag in $(EXTRA_HOST_FLAGS) ; do \
18434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18435 done; \
22121df0 18436 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18437 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18440 "RANLIB=$${RANLIB}" \
18441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18442 maintainer-clean) \
18443 || exit 1
18444
a90ef4bf 18445@endif itcl
e8a5fa9c
RW
18446
18447
18448
a90ef4bf
JM
18449.PHONY: configure-ld maybe-configure-ld
18450maybe-configure-ld:
e28c595f 18451@if gcc-bootstrap
a90ef4bf 18452configure-ld: stage_current
e28c595f 18453@endif gcc-bootstrap
a90ef4bf
JM
18454@if ld
18455maybe-configure-ld: configure-ld
18456configure-ld:
e28c595f
JM
18457 @r=`${PWD_COMMAND}`; export r; \
18458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18459 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18460 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18461 $(HOST_EXPORTS) \
a90ef4bf
JM
18462 echo Configuring in $(HOST_SUBDIR)/ld; \
18463 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18464 case $(srcdir) in \
18465 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18466 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18467 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18468 esac; \
1b6c0831
L
18469 module_srcdir=ld; \
18470 $(SHELL) \
18471 $$s/$$module_srcdir/configure \
18472 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18473 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18474 --target=${target_alias} \
e28c595f 18475 || exit 1
a90ef4bf 18476@endif ld
e28c595f
JM
18477
18478
18479
a90ef4bf
JM
18480.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18481maybe-configure-stage1-ld:
18482@if ld-bootstrap
18483maybe-configure-stage1-ld: configure-stage1-ld
18484configure-stage1-ld:
e28c595f 18485 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18486 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18487 @r=`${PWD_COMMAND}`; export r; \
18488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18489 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18490 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18491 $(HOST_EXPORTS) \
e28c595f 18492 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18493 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18494 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18495 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18496 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18497 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18498 case $(srcdir) in \
18499 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18500 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18501 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18502 esac; \
1b6c0831
L
18503 module_srcdir=ld; \
18504 $(SHELL) $$s/$$module_srcdir/configure \
18505 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18506 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18507 --target=${target_alias} \
18508 \
a90ef4bf
JM
18509 $(STAGE1_CONFIGURE_FLAGS)
18510@endif ld-bootstrap
e28c595f 18511
a90ef4bf
JM
18512.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18513maybe-configure-stage2-ld:
18514@if ld-bootstrap
18515maybe-configure-stage2-ld: configure-stage2-ld
18516configure-stage2-ld:
e28c595f 18517 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18518 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18519 @r=`${PWD_COMMAND}`; export r; \
18520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18521 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18522 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18523 $(HOST_EXPORTS) \
1b05fbbd 18524 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18525 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18526 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18527 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18528 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18529 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18530 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18531 case $(srcdir) in \
18532 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18533 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18534 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18535 esac; \
1b6c0831
L
18536 module_srcdir=ld; \
18537 $(SHELL) $$s/$$module_srcdir/configure \
18538 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18539 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18540 --target=${target_alias} \
22121df0 18541 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18542 $(STAGE2_CONFIGURE_FLAGS)
18543@endif ld-bootstrap
e28c595f 18544
a90ef4bf
JM
18545.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18546maybe-configure-stage3-ld:
18547@if ld-bootstrap
18548maybe-configure-stage3-ld: configure-stage3-ld
18549configure-stage3-ld:
e28c595f 18550 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18551 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18552 @r=`${PWD_COMMAND}`; export r; \
18553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18554 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18555 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18556 $(HOST_EXPORTS) \
1b05fbbd 18557 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18558 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18559 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18560 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18561 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18562 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18563 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18564 case $(srcdir) in \
18565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18566 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18568 esac; \
1b6c0831
L
18569 module_srcdir=ld; \
18570 $(SHELL) $$s/$$module_srcdir/configure \
18571 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18572 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18573 --target=${target_alias} \
22121df0 18574 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18575 $(STAGE3_CONFIGURE_FLAGS)
18576@endif ld-bootstrap
e28c595f 18577
a90ef4bf
JM
18578.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18579maybe-configure-stage4-ld:
18580@if ld-bootstrap
18581maybe-configure-stage4-ld: configure-stage4-ld
18582configure-stage4-ld:
e28c595f 18583 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18584 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18585 @r=`${PWD_COMMAND}`; export r; \
18586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18587 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18588 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18589 $(HOST_EXPORTS) \
1b05fbbd 18590 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18591 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18592 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18593 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18594 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18595 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18596 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18597 case $(srcdir) in \
18598 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18599 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18600 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18601 esac; \
1b6c0831
L
18602 module_srcdir=ld; \
18603 $(SHELL) $$s/$$module_srcdir/configure \
18604 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18605 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18606 --target=${target_alias} \
22121df0 18607 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18608 $(STAGE4_CONFIGURE_FLAGS)
18609@endif ld-bootstrap
e28c595f 18610
a90ef4bf
JM
18611.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18612maybe-configure-stageprofile-ld:
18613@if ld-bootstrap
18614maybe-configure-stageprofile-ld: configure-stageprofile-ld
18615configure-stageprofile-ld:
e28c595f 18616 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18617 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18618 @r=`${PWD_COMMAND}`; export r; \
18619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18620 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18621 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18622 $(HOST_EXPORTS) \
1b05fbbd
AO
18623 $(POSTSTAGE1_HOST_EXPORTS) \
18624 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18625 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18626 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18627 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18628 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18629 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18630 case $(srcdir) in \
18631 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18632 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18633 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18634 esac; \
1b6c0831
L
18635 module_srcdir=ld; \
18636 $(SHELL) $$s/$$module_srcdir/configure \
18637 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18638 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18639 --target=${target_alias} \
22121df0 18640 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18641 $(STAGEprofile_CONFIGURE_FLAGS)
18642@endif ld-bootstrap
e28c595f 18643
a90ef4bf
JM
18644.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18645maybe-configure-stagefeedback-ld:
18646@if ld-bootstrap
18647maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18648configure-stagefeedback-ld:
e28c595f 18649 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18650 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18651 @r=`${PWD_COMMAND}`; export r; \
18652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18653 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18654 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18655 $(HOST_EXPORTS) \
1b05fbbd
AO
18656 $(POSTSTAGE1_HOST_EXPORTS) \
18657 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18658 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18659 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18660 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18661 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 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; \
1b6c0831
L
18668 module_srcdir=ld; \
18669 $(SHELL) $$s/$$module_srcdir/configure \
18670 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18671 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18672 --target=${target_alias} \
22121df0 18673 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18674 $(STAGEfeedback_CONFIGURE_FLAGS)
18675@endif ld-bootstrap
e28c595f
JM
18676
18677
18678
18679
18680
a90ef4bf
JM
18681.PHONY: all-ld maybe-all-ld
18682maybe-all-ld:
e28c595f 18683@if gcc-bootstrap
a90ef4bf 18684all-ld: stage_current
e28c595f 18685@endif gcc-bootstrap
a90ef4bf
JM
18686@if ld
18687TARGET-ld=all
18688maybe-all-ld: all-ld
18689all-ld: configure-ld
e28c595f
JM
18690 @r=`${PWD_COMMAND}`; export r; \
18691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18692 $(HOST_EXPORTS) \
a90ef4bf 18693 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18694 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18695 $(TARGET-ld))
18696@endif ld
e28c595f
JM
18697
18698
18699
a90ef4bf
JM
18700.PHONY: all-stage1-ld maybe-all-stage1-ld
18701.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18702maybe-all-stage1-ld:
18703maybe-clean-stage1-ld:
18704@if ld-bootstrap
18705maybe-all-stage1-ld: all-stage1-ld
18706all-stage1: all-stage1-ld
18707TARGET-stage1-ld = $(TARGET-ld)
18708all-stage1-ld: configure-stage1-ld
e28c595f
JM
18709 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18710 @r=`${PWD_COMMAND}`; export r; \
18711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18712 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18713 $(HOST_EXPORTS) \
a90ef4bf 18714 cd $(HOST_SUBDIR)/ld && \
e28c595f 18715 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18716 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18717 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18718 LIBCFLAGS="$(LIBCFLAGS)" \
18719 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18720 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18721 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18722 $(EXTRA_HOST_FLAGS) \
18723 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 18724 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18725 $(TARGET-stage1-ld)
e28c595f 18726
a90ef4bf
JM
18727maybe-clean-stage1-ld: clean-stage1-ld
18728clean-stage1: clean-stage1-ld
18729clean-stage1-ld:
e28c595f 18730 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18731 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18732 else \
a90ef4bf 18733 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18734 $(MAKE) stage1-start; \
18735 fi; \
a90ef4bf 18736 cd $(HOST_SUBDIR)/ld && \
e28c595f 18737 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18738 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18739@endif ld-bootstrap
e28c595f
JM
18740
18741
a90ef4bf
JM
18742.PHONY: all-stage2-ld maybe-all-stage2-ld
18743.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18744maybe-all-stage2-ld:
18745maybe-clean-stage2-ld:
18746@if ld-bootstrap
18747maybe-all-stage2-ld: all-stage2-ld
18748all-stage2: all-stage2-ld
18749TARGET-stage2-ld = $(TARGET-ld)
18750all-stage2-ld: configure-stage2-ld
e28c595f
JM
18751 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18752 @r=`${PWD_COMMAND}`; export r; \
18753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18754 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18755 $(HOST_EXPORTS) \
1f53ca9a 18756 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18757 cd $(HOST_SUBDIR)/ld && \
e28c595f 18758 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18759 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18760 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18761 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18762 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18763 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18764 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18765 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18766 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18767 $(TARGET-stage2-ld)
e28c595f 18768
a90ef4bf
JM
18769maybe-clean-stage2-ld: clean-stage2-ld
18770clean-stage2: clean-stage2-ld
18771clean-stage2-ld:
e28c595f 18772 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18773 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18774 else \
a90ef4bf 18775 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18776 $(MAKE) stage2-start; \
18777 fi; \
a90ef4bf 18778 cd $(HOST_SUBDIR)/ld && \
b3676d82 18779 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18780@endif ld-bootstrap
e28c595f
JM
18781
18782
a90ef4bf
JM
18783.PHONY: all-stage3-ld maybe-all-stage3-ld
18784.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18785maybe-all-stage3-ld:
18786maybe-clean-stage3-ld:
18787@if ld-bootstrap
18788maybe-all-stage3-ld: all-stage3-ld
18789all-stage3: all-stage3-ld
18790TARGET-stage3-ld = $(TARGET-ld)
18791all-stage3-ld: configure-stage3-ld
e28c595f
JM
18792 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18793 @r=`${PWD_COMMAND}`; export r; \
18794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18795 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18796 $(HOST_EXPORTS) \
1f53ca9a 18797 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18798 cd $(HOST_SUBDIR)/ld && \
e28c595f 18799 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18800 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18801 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18802 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18803 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18804 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18805 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18806 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18807 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18808 $(TARGET-stage3-ld)
e28c595f 18809
a90ef4bf
JM
18810maybe-clean-stage3-ld: clean-stage3-ld
18811clean-stage3: clean-stage3-ld
18812clean-stage3-ld:
e28c595f 18813 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18814 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18815 else \
a90ef4bf 18816 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18817 $(MAKE) stage3-start; \
18818 fi; \
a90ef4bf 18819 cd $(HOST_SUBDIR)/ld && \
b3676d82 18820 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18821@endif ld-bootstrap
e28c595f
JM
18822
18823
a90ef4bf
JM
18824.PHONY: all-stage4-ld maybe-all-stage4-ld
18825.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18826maybe-all-stage4-ld:
18827maybe-clean-stage4-ld:
18828@if ld-bootstrap
18829maybe-all-stage4-ld: all-stage4-ld
18830all-stage4: all-stage4-ld
18831TARGET-stage4-ld = $(TARGET-ld)
18832all-stage4-ld: configure-stage4-ld
e28c595f
JM
18833 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18834 @r=`${PWD_COMMAND}`; export r; \
18835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18836 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18837 $(HOST_EXPORTS) \
1f53ca9a 18838 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18839 cd $(HOST_SUBDIR)/ld && \
e28c595f 18840 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18841 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18842 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18843 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18844 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18845 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18846 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18847 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18848 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18849 $(TARGET-stage4-ld)
e28c595f 18850
a90ef4bf
JM
18851maybe-clean-stage4-ld: clean-stage4-ld
18852clean-stage4: clean-stage4-ld
18853clean-stage4-ld:
e28c595f 18854 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18855 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18856 else \
a90ef4bf 18857 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18858 $(MAKE) stage4-start; \
18859 fi; \
a90ef4bf 18860 cd $(HOST_SUBDIR)/ld && \
b3676d82 18861 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18862@endif ld-bootstrap
e28c595f
JM
18863
18864
a90ef4bf
JM
18865.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18866.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18867maybe-all-stageprofile-ld:
18868maybe-clean-stageprofile-ld:
18869@if ld-bootstrap
18870maybe-all-stageprofile-ld: all-stageprofile-ld
18871all-stageprofile: all-stageprofile-ld
18872TARGET-stageprofile-ld = $(TARGET-ld)
18873all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18874 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18875 @r=`${PWD_COMMAND}`; export r; \
18876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18877 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18878 $(HOST_EXPORTS) \
1f53ca9a 18879 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18880 cd $(HOST_SUBDIR)/ld && \
e28c595f 18881 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18882 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18883 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18884 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18885 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18886 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18887 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18888 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18889 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18890 $(TARGET-stageprofile-ld)
e28c595f 18891
a90ef4bf
JM
18892maybe-clean-stageprofile-ld: clean-stageprofile-ld
18893clean-stageprofile: clean-stageprofile-ld
18894clean-stageprofile-ld:
e28c595f 18895 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18896 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18897 else \
a90ef4bf 18898 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18899 $(MAKE) stageprofile-start; \
18900 fi; \
a90ef4bf 18901 cd $(HOST_SUBDIR)/ld && \
b3676d82 18902 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18903@endif ld-bootstrap
e28c595f
JM
18904
18905
a90ef4bf
JM
18906.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18907.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18908maybe-all-stagefeedback-ld:
18909maybe-clean-stagefeedback-ld:
18910@if ld-bootstrap
18911maybe-all-stagefeedback-ld: all-stagefeedback-ld
18912all-stagefeedback: all-stagefeedback-ld
18913TARGET-stagefeedback-ld = $(TARGET-ld)
18914all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
18915 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18916 @r=`${PWD_COMMAND}`; export r; \
18917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18918 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 18919 $(HOST_EXPORTS) \
1f53ca9a 18920 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18921 cd $(HOST_SUBDIR)/ld && \
e28c595f 18922 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18923 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 18924 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
18925 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18926 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18927 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18928 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18929 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18930 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 18931 $(TARGET-stagefeedback-ld)
e28c595f 18932
a90ef4bf
JM
18933maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
18934clean-stagefeedback: clean-stagefeedback-ld
18935clean-stagefeedback-ld:
e28c595f 18936 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 18937 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18938 else \
a90ef4bf 18939 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
18940 $(MAKE) stagefeedback-start; \
18941 fi; \
a90ef4bf 18942 cd $(HOST_SUBDIR)/ld && \
b3676d82 18943 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18944@endif ld-bootstrap
e28c595f
JM
18945
18946
18947
18948
18949
a90ef4bf
JM
18950.PHONY: check-ld maybe-check-ld
18951maybe-check-ld:
18952@if ld
18953maybe-check-ld: check-ld
e28c595f 18954
a90ef4bf 18955check-ld:
e28c595f
JM
18956 @: $(MAKE); $(unstage)
18957 @r=`${PWD_COMMAND}`; export r; \
18958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18959 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 18960 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 18961 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 18962
a90ef4bf 18963@endif ld
e28c595f 18964
a90ef4bf
JM
18965.PHONY: install-ld maybe-install-ld
18966maybe-install-ld:
18967@if ld
18968maybe-install-ld: install-ld
e28c595f 18969
a90ef4bf
JM
18970install-ld: installdirs
18971 @: $(MAKE); $(unstage)
18972 @r=`${PWD_COMMAND}`; export r; \
18973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18974 $(HOST_EXPORTS) \
18975 (cd $(HOST_SUBDIR)/ld && \
18976 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 18977
a90ef4bf 18978@endif ld
e28c595f 18979
a90ef4bf
JM
18980.PHONY: install-strip-ld maybe-install-strip-ld
18981maybe-install-strip-ld:
18982@if ld
18983maybe-install-strip-ld: install-strip-ld
9b980aa1 18984
a90ef4bf
JM
18985install-strip-ld: installdirs
18986 @: $(MAKE); $(unstage)
18987 @r=`${PWD_COMMAND}`; export r; \
18988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18989 $(HOST_EXPORTS) \
18990 (cd $(HOST_SUBDIR)/ld && \
18991 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 18992
a90ef4bf 18993@endif ld
9b980aa1 18994
e28c595f
JM
18995# Other targets (info, dvi, pdf, etc.)
18996
a90ef4bf
JM
18997.PHONY: maybe-info-ld info-ld
18998maybe-info-ld:
18999@if ld
19000maybe-info-ld: info-ld
e28c595f 19001
a90ef4bf
JM
19002info-ld: \
19003 configure-ld
19004 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19005 r=`${PWD_COMMAND}`; export r; \
19006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19007 $(HOST_EXPORTS) \
19008 for flag in $(EXTRA_HOST_FLAGS) ; do \
19009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19010 done; \
22121df0 19011 echo "Doing info in ld"; \
a90ef4bf 19012 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19015 "RANLIB=$${RANLIB}" \
19016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19017 info) \
19018 || exit 1
19019
a90ef4bf 19020@endif ld
e28c595f 19021
a90ef4bf
JM
19022.PHONY: maybe-dvi-ld dvi-ld
19023maybe-dvi-ld:
19024@if ld
19025maybe-dvi-ld: dvi-ld
e28c595f 19026
a90ef4bf
JM
19027dvi-ld: \
19028 configure-ld
19029 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19030 r=`${PWD_COMMAND}`; export r; \
19031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19032 $(HOST_EXPORTS) \
19033 for flag in $(EXTRA_HOST_FLAGS) ; do \
19034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19035 done; \
22121df0 19036 echo "Doing dvi in ld"; \
a90ef4bf 19037 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19040 "RANLIB=$${RANLIB}" \
19041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19042 dvi) \
19043 || exit 1
19044
a90ef4bf 19045@endif ld
e28c595f 19046
a90ef4bf
JM
19047.PHONY: maybe-pdf-ld pdf-ld
19048maybe-pdf-ld:
19049@if ld
19050maybe-pdf-ld: pdf-ld
e28c595f 19051
a90ef4bf
JM
19052pdf-ld: \
19053 configure-ld
19054 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19055 r=`${PWD_COMMAND}`; export r; \
19056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19057 $(HOST_EXPORTS) \
19058 for flag in $(EXTRA_HOST_FLAGS) ; do \
19059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19060 done; \
22121df0 19061 echo "Doing pdf in ld"; \
a90ef4bf 19062 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19065 "RANLIB=$${RANLIB}" \
19066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19067 pdf) \
19068 || exit 1
19069
a90ef4bf 19070@endif ld
e28c595f 19071
a90ef4bf
JM
19072.PHONY: maybe-html-ld html-ld
19073maybe-html-ld:
19074@if ld
19075maybe-html-ld: html-ld
e28c595f 19076
a90ef4bf
JM
19077html-ld: \
19078 configure-ld
19079 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19080 r=`${PWD_COMMAND}`; export r; \
19081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19082 $(HOST_EXPORTS) \
19083 for flag in $(EXTRA_HOST_FLAGS) ; do \
19084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19085 done; \
22121df0 19086 echo "Doing html in ld"; \
a90ef4bf 19087 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19090 "RANLIB=$${RANLIB}" \
19091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19092 html) \
19093 || exit 1
19094
a90ef4bf 19095@endif ld
e28c595f 19096
a90ef4bf
JM
19097.PHONY: maybe-TAGS-ld TAGS-ld
19098maybe-TAGS-ld:
19099@if ld
19100maybe-TAGS-ld: TAGS-ld
e28c595f 19101
a90ef4bf
JM
19102TAGS-ld: \
19103 configure-ld
19104 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19105 r=`${PWD_COMMAND}`; export r; \
19106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19107 $(HOST_EXPORTS) \
19108 for flag in $(EXTRA_HOST_FLAGS) ; do \
19109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19110 done; \
22121df0 19111 echo "Doing TAGS in ld"; \
a90ef4bf 19112 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19115 "RANLIB=$${RANLIB}" \
19116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19117 TAGS) \
19118 || exit 1
19119
a90ef4bf 19120@endif ld
e28c595f 19121
a90ef4bf
JM
19122.PHONY: maybe-install-info-ld install-info-ld
19123maybe-install-info-ld:
19124@if ld
19125maybe-install-info-ld: install-info-ld
e28c595f 19126
a90ef4bf
JM
19127install-info-ld: \
19128 configure-ld \
19129 info-ld
19130 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19131 r=`${PWD_COMMAND}`; export r; \
19132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19133 $(HOST_EXPORTS) \
19134 for flag in $(EXTRA_HOST_FLAGS) ; do \
19135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19136 done; \
22121df0 19137 echo "Doing install-info in ld"; \
a90ef4bf 19138 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19141 "RANLIB=$${RANLIB}" \
19142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19143 install-info) \
19144 || exit 1
19145
a90ef4bf 19146@endif ld
e28c595f 19147
a90ef4bf
JM
19148.PHONY: maybe-install-pdf-ld install-pdf-ld
19149maybe-install-pdf-ld:
19150@if ld
19151maybe-install-pdf-ld: install-pdf-ld
e28c595f 19152
a90ef4bf
JM
19153install-pdf-ld: \
19154 configure-ld \
19155 pdf-ld
19156 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19157 r=`${PWD_COMMAND}`; export r; \
19158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19159 $(HOST_EXPORTS) \
19160 for flag in $(EXTRA_HOST_FLAGS) ; do \
19161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19162 done; \
22121df0 19163 echo "Doing install-pdf in ld"; \
a90ef4bf 19164 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19167 "RANLIB=$${RANLIB}" \
19168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19169 install-pdf) \
19170 || exit 1
19171
a90ef4bf 19172@endif ld
e28c595f 19173
a90ef4bf
JM
19174.PHONY: maybe-install-html-ld install-html-ld
19175maybe-install-html-ld:
19176@if ld
19177maybe-install-html-ld: install-html-ld
e28c595f 19178
a90ef4bf
JM
19179install-html-ld: \
19180 configure-ld \
19181 html-ld
19182 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19183 r=`${PWD_COMMAND}`; export r; \
19184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19185 $(HOST_EXPORTS) \
19186 for flag in $(EXTRA_HOST_FLAGS) ; do \
19187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19188 done; \
22121df0 19189 echo "Doing install-html in ld"; \
a90ef4bf 19190 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19193 "RANLIB=$${RANLIB}" \
19194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19195 install-html) \
19196 || exit 1
19197
a90ef4bf 19198@endif ld
e28c595f 19199
a90ef4bf
JM
19200.PHONY: maybe-installcheck-ld installcheck-ld
19201maybe-installcheck-ld:
19202@if ld
19203maybe-installcheck-ld: installcheck-ld
e28c595f 19204
a90ef4bf
JM
19205installcheck-ld: \
19206 configure-ld
19207 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19208 r=`${PWD_COMMAND}`; export r; \
19209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19210 $(HOST_EXPORTS) \
19211 for flag in $(EXTRA_HOST_FLAGS) ; do \
19212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19213 done; \
22121df0 19214 echo "Doing installcheck in ld"; \
a90ef4bf 19215 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19218 "RANLIB=$${RANLIB}" \
0c24b341 19219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19220 installcheck) \
19221 || exit 1
19222
a90ef4bf 19223@endif ld
4b900473 19224
a90ef4bf
JM
19225.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19226maybe-mostlyclean-ld:
19227@if ld
19228maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19229
a90ef4bf
JM
19230mostlyclean-ld:
19231 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19232 r=`${PWD_COMMAND}`; export r; \
19233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19234 $(HOST_EXPORTS) \
19235 for flag in $(EXTRA_HOST_FLAGS) ; do \
19236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19237 done; \
22121df0 19238 echo "Doing mostlyclean in ld"; \
a90ef4bf 19239 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19242 "RANLIB=$${RANLIB}" \
0c24b341 19243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19244 mostlyclean) \
19245 || exit 1
19246
a90ef4bf 19247@endif ld
4b900473 19248
a90ef4bf
JM
19249.PHONY: maybe-clean-ld clean-ld
19250maybe-clean-ld:
19251@if ld
19252maybe-clean-ld: clean-ld
4b900473 19253
a90ef4bf
JM
19254clean-ld:
19255 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19256 r=`${PWD_COMMAND}`; export r; \
19257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19258 $(HOST_EXPORTS) \
19259 for flag in $(EXTRA_HOST_FLAGS) ; do \
19260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19261 done; \
22121df0 19262 echo "Doing clean in ld"; \
a90ef4bf 19263 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19266 "RANLIB=$${RANLIB}" \
0c24b341 19267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19268 clean) \
19269 || exit 1
19270
a90ef4bf 19271@endif ld
4b900473 19272
a90ef4bf
JM
19273.PHONY: maybe-distclean-ld distclean-ld
19274maybe-distclean-ld:
19275@if ld
19276maybe-distclean-ld: distclean-ld
4b900473 19277
a90ef4bf
JM
19278distclean-ld:
19279 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19280 r=`${PWD_COMMAND}`; export r; \
19281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19282 $(HOST_EXPORTS) \
19283 for flag in $(EXTRA_HOST_FLAGS) ; do \
19284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19285 done; \
22121df0 19286 echo "Doing distclean in ld"; \
a90ef4bf 19287 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19290 "RANLIB=$${RANLIB}" \
0c24b341 19291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19292 distclean) \
19293 || exit 1
19294
a90ef4bf 19295@endif ld
4b900473 19296
a90ef4bf
JM
19297.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19298maybe-maintainer-clean-ld:
19299@if ld
19300maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19301
a90ef4bf
JM
19302maintainer-clean-ld:
19303 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19304 r=`${PWD_COMMAND}`; export r; \
19305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19306 $(HOST_EXPORTS) \
19307 for flag in $(EXTRA_HOST_FLAGS) ; do \
19308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19309 done; \
22121df0 19310 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19311 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19314 "RANLIB=$${RANLIB}" \
0c24b341 19315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19316 maintainer-clean) \
19317 || exit 1
19318
a90ef4bf 19319@endif ld
4b900473
PB
19320
19321
19322
2bf680c4
ILT
19323.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19324maybe-configure-libbacktrace:
19325@if gcc-bootstrap
19326configure-libbacktrace: stage_current
19327@endif gcc-bootstrap
19328@if libbacktrace
19329maybe-configure-libbacktrace: configure-libbacktrace
19330configure-libbacktrace:
19331 @r=`${PWD_COMMAND}`; export r; \
19332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19333 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19334 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19335 $(HOST_EXPORTS) \
19336 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19337 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19338 case $(srcdir) in \
19339 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19340 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19341 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19342 esac; \
1b6c0831
L
19343 module_srcdir=libbacktrace; \
19344 $(SHELL) \
19345 $$s/$$module_srcdir/configure \
19346 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19347 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19348 --target=${target_alias} \
2bf680c4
ILT
19349 || exit 1
19350@endif libbacktrace
19351
19352
19353
19354.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19355maybe-configure-stage1-libbacktrace:
19356@if libbacktrace-bootstrap
19357maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19358configure-stage1-libbacktrace:
19359 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19360 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19361 @r=`${PWD_COMMAND}`; export r; \
19362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19363 TFLAGS="$(STAGE1_TFLAGS)"; \
19364 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19365 $(HOST_EXPORTS) \
19366 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19367 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19368 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19369 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19370 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19371 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19372 case $(srcdir) in \
19373 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19374 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19375 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19376 esac; \
1b6c0831
L
19377 module_srcdir=libbacktrace; \
19378 $(SHELL) $$s/$$module_srcdir/configure \
19379 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19380 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19381 --target=${target_alias} \
19382 \
2bf680c4
ILT
19383 $(STAGE1_CONFIGURE_FLAGS)
19384@endif libbacktrace-bootstrap
19385
19386.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19387maybe-configure-stage2-libbacktrace:
19388@if libbacktrace-bootstrap
19389maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19390configure-stage2-libbacktrace:
19391 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19393 @r=`${PWD_COMMAND}`; export r; \
19394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19395 TFLAGS="$(STAGE2_TFLAGS)"; \
19396 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19397 $(HOST_EXPORTS) \
19398 $(POSTSTAGE1_HOST_EXPORTS) \
19399 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19400 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19401 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19402 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19404 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19405 case $(srcdir) in \
19406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19407 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19409 esac; \
1b6c0831
L
19410 module_srcdir=libbacktrace; \
19411 $(SHELL) $$s/$$module_srcdir/configure \
19412 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19414 --target=${target_alias} \
22121df0 19415 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19416 $(STAGE2_CONFIGURE_FLAGS)
19417@endif libbacktrace-bootstrap
19418
19419.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19420maybe-configure-stage3-libbacktrace:
19421@if libbacktrace-bootstrap
19422maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19423configure-stage3-libbacktrace:
19424 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19425 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19426 @r=`${PWD_COMMAND}`; export r; \
19427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19428 TFLAGS="$(STAGE3_TFLAGS)"; \
19429 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19430 $(HOST_EXPORTS) \
19431 $(POSTSTAGE1_HOST_EXPORTS) \
19432 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19433 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19434 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19435 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19436 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19437 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19438 case $(srcdir) in \
19439 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19440 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19441 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19442 esac; \
1b6c0831
L
19443 module_srcdir=libbacktrace; \
19444 $(SHELL) $$s/$$module_srcdir/configure \
19445 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19446 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19447 --target=${target_alias} \
22121df0 19448 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19449 $(STAGE3_CONFIGURE_FLAGS)
19450@endif libbacktrace-bootstrap
19451
19452.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19453maybe-configure-stage4-libbacktrace:
19454@if libbacktrace-bootstrap
19455maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19456configure-stage4-libbacktrace:
19457 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19458 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19459 @r=`${PWD_COMMAND}`; export r; \
19460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19461 TFLAGS="$(STAGE4_TFLAGS)"; \
19462 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19463 $(HOST_EXPORTS) \
19464 $(POSTSTAGE1_HOST_EXPORTS) \
19465 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19466 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19467 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19468 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19469 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19470 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19471 case $(srcdir) in \
19472 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19473 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19474 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19475 esac; \
1b6c0831
L
19476 module_srcdir=libbacktrace; \
19477 $(SHELL) $$s/$$module_srcdir/configure \
19478 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19479 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19480 --target=${target_alias} \
22121df0 19481 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19482 $(STAGE4_CONFIGURE_FLAGS)
19483@endif libbacktrace-bootstrap
19484
19485.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19486maybe-configure-stageprofile-libbacktrace:
19487@if libbacktrace-bootstrap
19488maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19489configure-stageprofile-libbacktrace:
19490 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19491 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19492 @r=`${PWD_COMMAND}`; export r; \
19493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19494 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19495 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19496 $(HOST_EXPORTS) \
19497 $(POSTSTAGE1_HOST_EXPORTS) \
19498 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19499 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19500 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19501 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19502 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19503 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19504 case $(srcdir) in \
19505 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19506 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19507 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19508 esac; \
1b6c0831
L
19509 module_srcdir=libbacktrace; \
19510 $(SHELL) $$s/$$module_srcdir/configure \
19511 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19512 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19513 --target=${target_alias} \
22121df0 19514 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19515 $(STAGEprofile_CONFIGURE_FLAGS)
19516@endif libbacktrace-bootstrap
19517
19518.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19519maybe-configure-stagefeedback-libbacktrace:
19520@if libbacktrace-bootstrap
19521maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19522configure-stagefeedback-libbacktrace:
19523 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19524 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19525 @r=`${PWD_COMMAND}`; export r; \
19526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19527 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19528 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19529 $(HOST_EXPORTS) \
19530 $(POSTSTAGE1_HOST_EXPORTS) \
19531 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19532 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19533 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19534 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19535 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19536 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19537 case $(srcdir) in \
19538 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19539 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19540 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19541 esac; \
1b6c0831
L
19542 module_srcdir=libbacktrace; \
19543 $(SHELL) $$s/$$module_srcdir/configure \
19544 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19545 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19546 --target=${target_alias} \
22121df0 19547 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19548 $(STAGEfeedback_CONFIGURE_FLAGS)
19549@endif libbacktrace-bootstrap
19550
19551
19552
19553
19554
19555.PHONY: all-libbacktrace maybe-all-libbacktrace
19556maybe-all-libbacktrace:
19557@if gcc-bootstrap
19558all-libbacktrace: stage_current
19559@endif gcc-bootstrap
19560@if libbacktrace
19561TARGET-libbacktrace=all
19562maybe-all-libbacktrace: all-libbacktrace
19563all-libbacktrace: configure-libbacktrace
19564 @r=`${PWD_COMMAND}`; export r; \
19565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19566 $(HOST_EXPORTS) \
19567 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19568 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19569 $(TARGET-libbacktrace))
19570@endif libbacktrace
19571
19572
19573
19574.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19575.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19576maybe-all-stage1-libbacktrace:
19577maybe-clean-stage1-libbacktrace:
19578@if libbacktrace-bootstrap
19579maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19580all-stage1: all-stage1-libbacktrace
19581TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19582all-stage1-libbacktrace: configure-stage1-libbacktrace
19583 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19584 @r=`${PWD_COMMAND}`; export r; \
19585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19586 TFLAGS="$(STAGE1_TFLAGS)"; \
19587 $(HOST_EXPORTS) \
19588 cd $(HOST_SUBDIR)/libbacktrace && \
19589 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19590 CFLAGS="$(STAGE1_CFLAGS)" \
19591 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19592 LIBCFLAGS="$(LIBCFLAGS)" \
19593 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19594 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19595 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19596 $(EXTRA_HOST_FLAGS) \
19597 $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19598 TFLAGS="$(STAGE1_TFLAGS)" \
19599 $(TARGET-stage1-libbacktrace)
19600
19601maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19602clean-stage1: clean-stage1-libbacktrace
19603clean-stage1-libbacktrace:
19604 @if [ $(current_stage) = stage1 ]; then \
19605 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19606 else \
19607 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19608 $(MAKE) stage1-start; \
19609 fi; \
19610 cd $(HOST_SUBDIR)/libbacktrace && \
19611 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19612 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19613@endif libbacktrace-bootstrap
19614
19615
19616.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19617.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19618maybe-all-stage2-libbacktrace:
19619maybe-clean-stage2-libbacktrace:
19620@if libbacktrace-bootstrap
19621maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19622all-stage2: all-stage2-libbacktrace
19623TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19624all-stage2-libbacktrace: configure-stage2-libbacktrace
19625 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19626 @r=`${PWD_COMMAND}`; export r; \
19627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19628 TFLAGS="$(STAGE2_TFLAGS)"; \
19629 $(HOST_EXPORTS) \
19630 $(POSTSTAGE1_HOST_EXPORTS) \
19631 cd $(HOST_SUBDIR)/libbacktrace && \
19632 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19633 CFLAGS="$(STAGE2_CFLAGS)" \
19634 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19635 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19636 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19637 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19638 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19639 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19640 TFLAGS="$(STAGE2_TFLAGS)" \
19641 $(TARGET-stage2-libbacktrace)
19642
19643maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19644clean-stage2: clean-stage2-libbacktrace
19645clean-stage2-libbacktrace:
19646 @if [ $(current_stage) = stage2 ]; then \
19647 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19648 else \
19649 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19650 $(MAKE) stage2-start; \
19651 fi; \
19652 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19653 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19654@endif libbacktrace-bootstrap
19655
19656
19657.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19658.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19659maybe-all-stage3-libbacktrace:
19660maybe-clean-stage3-libbacktrace:
19661@if libbacktrace-bootstrap
19662maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19663all-stage3: all-stage3-libbacktrace
19664TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19665all-stage3-libbacktrace: configure-stage3-libbacktrace
19666 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19667 @r=`${PWD_COMMAND}`; export r; \
19668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19669 TFLAGS="$(STAGE3_TFLAGS)"; \
19670 $(HOST_EXPORTS) \
19671 $(POSTSTAGE1_HOST_EXPORTS) \
19672 cd $(HOST_SUBDIR)/libbacktrace && \
19673 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19674 CFLAGS="$(STAGE3_CFLAGS)" \
19675 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19676 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19677 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19678 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19679 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19680 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19681 TFLAGS="$(STAGE3_TFLAGS)" \
19682 $(TARGET-stage3-libbacktrace)
19683
19684maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19685clean-stage3: clean-stage3-libbacktrace
19686clean-stage3-libbacktrace:
19687 @if [ $(current_stage) = stage3 ]; then \
19688 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19689 else \
19690 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19691 $(MAKE) stage3-start; \
19692 fi; \
19693 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19694 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19695@endif libbacktrace-bootstrap
19696
19697
19698.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19699.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19700maybe-all-stage4-libbacktrace:
19701maybe-clean-stage4-libbacktrace:
19702@if libbacktrace-bootstrap
19703maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19704all-stage4: all-stage4-libbacktrace
19705TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19706all-stage4-libbacktrace: configure-stage4-libbacktrace
19707 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19708 @r=`${PWD_COMMAND}`; export r; \
19709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19710 TFLAGS="$(STAGE4_TFLAGS)"; \
19711 $(HOST_EXPORTS) \
19712 $(POSTSTAGE1_HOST_EXPORTS) \
19713 cd $(HOST_SUBDIR)/libbacktrace && \
19714 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19715 CFLAGS="$(STAGE4_CFLAGS)" \
19716 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19717 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19718 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19719 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19720 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19721 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19722 TFLAGS="$(STAGE4_TFLAGS)" \
19723 $(TARGET-stage4-libbacktrace)
19724
19725maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19726clean-stage4: clean-stage4-libbacktrace
19727clean-stage4-libbacktrace:
19728 @if [ $(current_stage) = stage4 ]; then \
19729 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19730 else \
19731 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19732 $(MAKE) stage4-start; \
19733 fi; \
19734 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19735 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19736@endif libbacktrace-bootstrap
19737
19738
19739.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19740.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19741maybe-all-stageprofile-libbacktrace:
19742maybe-clean-stageprofile-libbacktrace:
19743@if libbacktrace-bootstrap
19744maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19745all-stageprofile: all-stageprofile-libbacktrace
19746TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19747all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19748 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19749 @r=`${PWD_COMMAND}`; export r; \
19750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19751 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19752 $(HOST_EXPORTS) \
19753 $(POSTSTAGE1_HOST_EXPORTS) \
19754 cd $(HOST_SUBDIR)/libbacktrace && \
19755 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19756 CFLAGS="$(STAGEprofile_CFLAGS)" \
19757 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19758 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19759 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19760 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19761 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19762 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19763 TFLAGS="$(STAGEprofile_TFLAGS)" \
19764 $(TARGET-stageprofile-libbacktrace)
19765
19766maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19767clean-stageprofile: clean-stageprofile-libbacktrace
19768clean-stageprofile-libbacktrace:
19769 @if [ $(current_stage) = stageprofile ]; then \
19770 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19771 else \
19772 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19773 $(MAKE) stageprofile-start; \
19774 fi; \
19775 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19776 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19777@endif libbacktrace-bootstrap
19778
19779
19780.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19781.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19782maybe-all-stagefeedback-libbacktrace:
19783maybe-clean-stagefeedback-libbacktrace:
19784@if libbacktrace-bootstrap
19785maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19786all-stagefeedback: all-stagefeedback-libbacktrace
19787TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19788all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19789 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19790 @r=`${PWD_COMMAND}`; export r; \
19791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19792 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19793 $(HOST_EXPORTS) \
19794 $(POSTSTAGE1_HOST_EXPORTS) \
19795 cd $(HOST_SUBDIR)/libbacktrace && \
19796 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19797 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19798 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19799 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19800 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19801 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19802 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19803 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19804 TFLAGS="$(STAGEfeedback_TFLAGS)" \
19805 $(TARGET-stagefeedback-libbacktrace)
19806
19807maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19808clean-stagefeedback: clean-stagefeedback-libbacktrace
19809clean-stagefeedback-libbacktrace:
19810 @if [ $(current_stage) = stagefeedback ]; then \
19811 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19812 else \
19813 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19814 $(MAKE) stagefeedback-start; \
19815 fi; \
19816 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19817 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19818@endif libbacktrace-bootstrap
19819
19820
19821
19822
19823
19824.PHONY: check-libbacktrace maybe-check-libbacktrace
19825maybe-check-libbacktrace:
19826@if libbacktrace
19827maybe-check-libbacktrace: check-libbacktrace
19828
19829check-libbacktrace:
19830 @: $(MAKE); $(unstage)
19831 @r=`${PWD_COMMAND}`; export r; \
19832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19833 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19834 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19835 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19836
19837@endif libbacktrace
19838
19839.PHONY: install-libbacktrace maybe-install-libbacktrace
19840maybe-install-libbacktrace:
19841@if libbacktrace
19842maybe-install-libbacktrace: install-libbacktrace
19843
19844install-libbacktrace: installdirs
19845 @: $(MAKE); $(unstage)
19846 @r=`${PWD_COMMAND}`; export r; \
19847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19848 $(HOST_EXPORTS) \
19849 (cd $(HOST_SUBDIR)/libbacktrace && \
19850 $(MAKE) $(FLAGS_TO_PASS) install)
19851
19852@endif libbacktrace
19853
19854.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19855maybe-install-strip-libbacktrace:
19856@if libbacktrace
19857maybe-install-strip-libbacktrace: install-strip-libbacktrace
19858
19859install-strip-libbacktrace: installdirs
19860 @: $(MAKE); $(unstage)
19861 @r=`${PWD_COMMAND}`; export r; \
19862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19863 $(HOST_EXPORTS) \
19864 (cd $(HOST_SUBDIR)/libbacktrace && \
19865 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19866
19867@endif libbacktrace
19868
19869# Other targets (info, dvi, pdf, etc.)
19870
19871.PHONY: maybe-info-libbacktrace info-libbacktrace
19872maybe-info-libbacktrace:
19873@if libbacktrace
19874maybe-info-libbacktrace: info-libbacktrace
19875
19876info-libbacktrace: \
19877 configure-libbacktrace
19878 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19879 r=`${PWD_COMMAND}`; export r; \
19880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19881 $(HOST_EXPORTS) \
19882 for flag in $(EXTRA_HOST_FLAGS) ; do \
19883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19884 done; \
22121df0 19885 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
19886 (cd $(HOST_SUBDIR)/libbacktrace && \
19887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19889 "RANLIB=$${RANLIB}" \
19890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19891 info) \
19892 || exit 1
19893
19894@endif libbacktrace
19895
19896.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19897maybe-dvi-libbacktrace:
19898@if libbacktrace
19899maybe-dvi-libbacktrace: dvi-libbacktrace
19900
19901dvi-libbacktrace: \
19902 configure-libbacktrace
19903 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19904 r=`${PWD_COMMAND}`; export r; \
19905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19906 $(HOST_EXPORTS) \
19907 for flag in $(EXTRA_HOST_FLAGS) ; do \
19908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19909 done; \
22121df0 19910 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
19911 (cd $(HOST_SUBDIR)/libbacktrace && \
19912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19914 "RANLIB=$${RANLIB}" \
19915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19916 dvi) \
19917 || exit 1
19918
19919@endif libbacktrace
19920
19921.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
19922maybe-pdf-libbacktrace:
19923@if libbacktrace
19924maybe-pdf-libbacktrace: pdf-libbacktrace
19925
19926pdf-libbacktrace: \
19927 configure-libbacktrace
19928 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19929 r=`${PWD_COMMAND}`; export r; \
19930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19931 $(HOST_EXPORTS) \
19932 for flag in $(EXTRA_HOST_FLAGS) ; do \
19933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19934 done; \
22121df0 19935 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
19936 (cd $(HOST_SUBDIR)/libbacktrace && \
19937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19939 "RANLIB=$${RANLIB}" \
19940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19941 pdf) \
19942 || exit 1
19943
19944@endif libbacktrace
19945
19946.PHONY: maybe-html-libbacktrace html-libbacktrace
19947maybe-html-libbacktrace:
19948@if libbacktrace
19949maybe-html-libbacktrace: html-libbacktrace
19950
19951html-libbacktrace: \
19952 configure-libbacktrace
19953 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19954 r=`${PWD_COMMAND}`; export r; \
19955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19956 $(HOST_EXPORTS) \
19957 for flag in $(EXTRA_HOST_FLAGS) ; do \
19958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19959 done; \
22121df0 19960 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
19961 (cd $(HOST_SUBDIR)/libbacktrace && \
19962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19964 "RANLIB=$${RANLIB}" \
19965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19966 html) \
19967 || exit 1
19968
19969@endif libbacktrace
19970
19971.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
19972maybe-TAGS-libbacktrace:
19973@if libbacktrace
19974maybe-TAGS-libbacktrace: TAGS-libbacktrace
19975
19976TAGS-libbacktrace: \
19977 configure-libbacktrace
19978 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19979 r=`${PWD_COMMAND}`; export r; \
19980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19981 $(HOST_EXPORTS) \
19982 for flag in $(EXTRA_HOST_FLAGS) ; do \
19983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19984 done; \
22121df0 19985 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
19986 (cd $(HOST_SUBDIR)/libbacktrace && \
19987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19989 "RANLIB=$${RANLIB}" \
19990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19991 TAGS) \
19992 || exit 1
19993
19994@endif libbacktrace
19995
19996.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
19997maybe-install-info-libbacktrace:
19998@if libbacktrace
19999maybe-install-info-libbacktrace: install-info-libbacktrace
20000
20001install-info-libbacktrace: \
20002 configure-libbacktrace \
20003 info-libbacktrace
20004 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20005 r=`${PWD_COMMAND}`; export r; \
20006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20007 $(HOST_EXPORTS) \
20008 for flag in $(EXTRA_HOST_FLAGS) ; do \
20009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20010 done; \
22121df0 20011 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20012 (cd $(HOST_SUBDIR)/libbacktrace && \
20013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20015 "RANLIB=$${RANLIB}" \
20016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20017 install-info) \
20018 || exit 1
20019
20020@endif libbacktrace
20021
20022.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20023maybe-install-pdf-libbacktrace:
20024@if libbacktrace
20025maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20026
20027install-pdf-libbacktrace: \
20028 configure-libbacktrace \
20029 pdf-libbacktrace
20030 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20031 r=`${PWD_COMMAND}`; export r; \
20032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20033 $(HOST_EXPORTS) \
20034 for flag in $(EXTRA_HOST_FLAGS) ; do \
20035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20036 done; \
22121df0 20037 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20038 (cd $(HOST_SUBDIR)/libbacktrace && \
20039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20041 "RANLIB=$${RANLIB}" \
20042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20043 install-pdf) \
20044 || exit 1
20045
20046@endif libbacktrace
20047
20048.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20049maybe-install-html-libbacktrace:
20050@if libbacktrace
20051maybe-install-html-libbacktrace: install-html-libbacktrace
20052
20053install-html-libbacktrace: \
20054 configure-libbacktrace \
20055 html-libbacktrace
20056 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20057 r=`${PWD_COMMAND}`; export r; \
20058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20059 $(HOST_EXPORTS) \
20060 for flag in $(EXTRA_HOST_FLAGS) ; do \
20061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20062 done; \
22121df0 20063 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20064 (cd $(HOST_SUBDIR)/libbacktrace && \
20065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20067 "RANLIB=$${RANLIB}" \
20068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20069 install-html) \
20070 || exit 1
20071
20072@endif libbacktrace
20073
20074.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20075maybe-installcheck-libbacktrace:
20076@if libbacktrace
20077maybe-installcheck-libbacktrace: installcheck-libbacktrace
20078
20079installcheck-libbacktrace: \
20080 configure-libbacktrace
20081 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20082 r=`${PWD_COMMAND}`; export r; \
20083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20084 $(HOST_EXPORTS) \
20085 for flag in $(EXTRA_HOST_FLAGS) ; do \
20086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20087 done; \
22121df0 20088 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20089 (cd $(HOST_SUBDIR)/libbacktrace && \
20090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20092 "RANLIB=$${RANLIB}" \
20093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20094 installcheck) \
20095 || exit 1
20096
20097@endif libbacktrace
20098
20099.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20100maybe-mostlyclean-libbacktrace:
20101@if libbacktrace
20102maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20103
20104mostlyclean-libbacktrace:
20105 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20106 r=`${PWD_COMMAND}`; export r; \
20107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20108 $(HOST_EXPORTS) \
20109 for flag in $(EXTRA_HOST_FLAGS) ; do \
20110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20111 done; \
22121df0 20112 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20113 (cd $(HOST_SUBDIR)/libbacktrace && \
20114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20116 "RANLIB=$${RANLIB}" \
20117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20118 mostlyclean) \
20119 || exit 1
20120
20121@endif libbacktrace
20122
20123.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20124maybe-clean-libbacktrace:
20125@if libbacktrace
20126maybe-clean-libbacktrace: clean-libbacktrace
20127
20128clean-libbacktrace:
20129 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20130 r=`${PWD_COMMAND}`; export r; \
20131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20132 $(HOST_EXPORTS) \
20133 for flag in $(EXTRA_HOST_FLAGS) ; do \
20134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20135 done; \
22121df0 20136 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20137 (cd $(HOST_SUBDIR)/libbacktrace && \
20138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20140 "RANLIB=$${RANLIB}" \
20141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20142 clean) \
20143 || exit 1
20144
20145@endif libbacktrace
20146
20147.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20148maybe-distclean-libbacktrace:
20149@if libbacktrace
20150maybe-distclean-libbacktrace: distclean-libbacktrace
20151
20152distclean-libbacktrace:
20153 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20154 r=`${PWD_COMMAND}`; export r; \
20155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20156 $(HOST_EXPORTS) \
20157 for flag in $(EXTRA_HOST_FLAGS) ; do \
20158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20159 done; \
22121df0 20160 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20161 (cd $(HOST_SUBDIR)/libbacktrace && \
20162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20164 "RANLIB=$${RANLIB}" \
20165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20166 distclean) \
20167 || exit 1
20168
20169@endif libbacktrace
20170
20171.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20172maybe-maintainer-clean-libbacktrace:
20173@if libbacktrace
20174maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20175
20176maintainer-clean-libbacktrace:
20177 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20178 r=`${PWD_COMMAND}`; export r; \
20179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20180 $(HOST_EXPORTS) \
20181 for flag in $(EXTRA_HOST_FLAGS) ; do \
20182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20183 done; \
22121df0 20184 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20185 (cd $(HOST_SUBDIR)/libbacktrace && \
20186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20188 "RANLIB=$${RANLIB}" \
20189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20190 maintainer-clean) \
20191 || exit 1
20192
20193@endif libbacktrace
20194
20195
20196
a90ef4bf
JM
20197.PHONY: configure-libcpp maybe-configure-libcpp
20198maybe-configure-libcpp:
4b900473 20199@if gcc-bootstrap
a90ef4bf 20200configure-libcpp: stage_current
4b900473 20201@endif gcc-bootstrap
a90ef4bf
JM
20202@if libcpp
20203maybe-configure-libcpp: configure-libcpp
20204configure-libcpp:
4b900473
PB
20205 @r=`${PWD_COMMAND}`; export r; \
20206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20207 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20208 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20209 $(HOST_EXPORTS) \
20210 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20211 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20212 case $(srcdir) in \
20213 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20214 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20215 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20216 esac; \
1b6c0831
L
20217 module_srcdir=libcpp; \
20218 $(SHELL) \
20219 $$s/$$module_srcdir/configure \
20220 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20221 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20222 --target=${target_alias} \
4b900473 20223 || exit 1
a90ef4bf 20224@endif libcpp
4b900473
PB
20225
20226
20227
a90ef4bf
JM
20228.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20229maybe-configure-stage1-libcpp:
20230@if libcpp-bootstrap
20231maybe-configure-stage1-libcpp: configure-stage1-libcpp
20232configure-stage1-libcpp:
4b900473 20233 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20234 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20235 @r=`${PWD_COMMAND}`; export r; \
20236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20237 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20238 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20239 $(HOST_EXPORTS) \
8ee82aff 20240 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20241 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20242 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20243 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20244 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20245 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20246 case $(srcdir) in \
20247 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20248 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20249 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20250 esac; \
1b6c0831
L
20251 module_srcdir=libcpp; \
20252 $(SHELL) $$s/$$module_srcdir/configure \
20253 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20254 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20255 --target=${target_alias} \
20256 \
a90ef4bf
JM
20257 $(STAGE1_CONFIGURE_FLAGS)
20258@endif libcpp-bootstrap
e28c595f 20259
a90ef4bf
JM
20260.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20261maybe-configure-stage2-libcpp:
20262@if libcpp-bootstrap
20263maybe-configure-stage2-libcpp: configure-stage2-libcpp
20264configure-stage2-libcpp:
4b900473 20265 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20266 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20267 @r=`${PWD_COMMAND}`; export r; \
20268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20269 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20270 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20271 $(HOST_EXPORTS) \
1b05fbbd 20272 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20273 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20274 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20275 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20276 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20277 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20278 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20279 case $(srcdir) in \
20280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20281 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20283 esac; \
1b6c0831
L
20284 module_srcdir=libcpp; \
20285 $(SHELL) $$s/$$module_srcdir/configure \
20286 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20287 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20288 --target=${target_alias} \
22121df0 20289 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20290 $(STAGE2_CONFIGURE_FLAGS)
20291@endif libcpp-bootstrap
e28c595f 20292
a90ef4bf
JM
20293.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20294maybe-configure-stage3-libcpp:
20295@if libcpp-bootstrap
20296maybe-configure-stage3-libcpp: configure-stage3-libcpp
20297configure-stage3-libcpp:
4b900473 20298 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20299 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20300 @r=`${PWD_COMMAND}`; export r; \
20301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20302 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20303 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20304 $(HOST_EXPORTS) \
1b05fbbd 20305 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20306 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20307 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20308 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20309 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20311 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20312 case $(srcdir) in \
20313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20314 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20316 esac; \
1b6c0831
L
20317 module_srcdir=libcpp; \
20318 $(SHELL) $$s/$$module_srcdir/configure \
20319 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20320 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20321 --target=${target_alias} \
22121df0 20322 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20323 $(STAGE3_CONFIGURE_FLAGS)
20324@endif libcpp-bootstrap
e28c595f 20325
a90ef4bf
JM
20326.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20327maybe-configure-stage4-libcpp:
20328@if libcpp-bootstrap
20329maybe-configure-stage4-libcpp: configure-stage4-libcpp
20330configure-stage4-libcpp:
4b900473 20331 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20332 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20333 @r=`${PWD_COMMAND}`; export r; \
20334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20335 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20336 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20337 $(HOST_EXPORTS) \
1b05fbbd 20338 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20339 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20340 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20341 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20342 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20343 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20344 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20345 case $(srcdir) in \
20346 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20347 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20348 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20349 esac; \
1b6c0831
L
20350 module_srcdir=libcpp; \
20351 $(SHELL) $$s/$$module_srcdir/configure \
20352 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20353 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20354 --target=${target_alias} \
22121df0 20355 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20356 $(STAGE4_CONFIGURE_FLAGS)
20357@endif libcpp-bootstrap
e28c595f 20358
a90ef4bf
JM
20359.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20360maybe-configure-stageprofile-libcpp:
20361@if libcpp-bootstrap
20362maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20363configure-stageprofile-libcpp:
4b900473 20364 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20365 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20366 @r=`${PWD_COMMAND}`; export r; \
20367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20368 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20369 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20370 $(HOST_EXPORTS) \
1b05fbbd
AO
20371 $(POSTSTAGE1_HOST_EXPORTS) \
20372 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20373 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20374 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20375 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20376 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20377 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20378 case $(srcdir) in \
20379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20380 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20382 esac; \
1b6c0831
L
20383 module_srcdir=libcpp; \
20384 $(SHELL) $$s/$$module_srcdir/configure \
20385 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20386 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20387 --target=${target_alias} \
22121df0 20388 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20389 $(STAGEprofile_CONFIGURE_FLAGS)
20390@endif libcpp-bootstrap
e28c595f 20391
a90ef4bf
JM
20392.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20393maybe-configure-stagefeedback-libcpp:
20394@if libcpp-bootstrap
20395maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20396configure-stagefeedback-libcpp:
4b900473 20397 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20398 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20399 @r=`${PWD_COMMAND}`; export r; \
20400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20401 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20402 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20403 $(HOST_EXPORTS) \
1b05fbbd
AO
20404 $(POSTSTAGE1_HOST_EXPORTS) \
20405 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20406 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20407 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20408 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20409 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20410 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20411 case $(srcdir) in \
20412 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20413 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20414 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20415 esac; \
1b6c0831
L
20416 module_srcdir=libcpp; \
20417 $(SHELL) $$s/$$module_srcdir/configure \
20418 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20419 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20420 --target=${target_alias} \
22121df0 20421 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20422 $(STAGEfeedback_CONFIGURE_FLAGS)
20423@endif libcpp-bootstrap
4b900473
PB
20424
20425
20426
20427
20428
a90ef4bf
JM
20429.PHONY: all-libcpp maybe-all-libcpp
20430maybe-all-libcpp:
4b900473 20431@if gcc-bootstrap
a90ef4bf 20432all-libcpp: stage_current
4b900473 20433@endif gcc-bootstrap
a90ef4bf
JM
20434@if libcpp
20435TARGET-libcpp=all
20436maybe-all-libcpp: all-libcpp
20437all-libcpp: configure-libcpp
4b900473
PB
20438 @r=`${PWD_COMMAND}`; export r; \
20439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20440 $(HOST_EXPORTS) \
20441 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20442 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20443 $(TARGET-libcpp))
20444@endif libcpp
4b900473
PB
20445
20446
20447
a90ef4bf
JM
20448.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20449.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20450maybe-all-stage1-libcpp:
20451maybe-clean-stage1-libcpp:
20452@if libcpp-bootstrap
20453maybe-all-stage1-libcpp: all-stage1-libcpp
20454all-stage1: all-stage1-libcpp
20455TARGET-stage1-libcpp = $(TARGET-libcpp)
20456all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20457 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20458 @r=`${PWD_COMMAND}`; export r; \
20459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20460 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20461 $(HOST_EXPORTS) \
20462 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20463 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20464 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20465 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20466 LIBCFLAGS="$(LIBCFLAGS)" \
20467 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20468 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20469 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20470 $(EXTRA_HOST_FLAGS) \
20471 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 20472 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20473 $(TARGET-stage1-libcpp)
4b900473 20474
a90ef4bf
JM
20475maybe-clean-stage1-libcpp: clean-stage1-libcpp
20476clean-stage1: clean-stage1-libcpp
20477clean-stage1-libcpp:
4b900473 20478 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20479 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20480 else \
a90ef4bf 20481 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20482 $(MAKE) stage1-start; \
20483 fi; \
a90ef4bf 20484 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20485 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20486 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20487@endif libcpp-bootstrap
e28c595f
JM
20488
20489
a90ef4bf
JM
20490.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20491.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20492maybe-all-stage2-libcpp:
20493maybe-clean-stage2-libcpp:
20494@if libcpp-bootstrap
20495maybe-all-stage2-libcpp: all-stage2-libcpp
20496all-stage2: all-stage2-libcpp
20497TARGET-stage2-libcpp = $(TARGET-libcpp)
20498all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20499 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20500 @r=`${PWD_COMMAND}`; export r; \
20501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20502 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20503 $(HOST_EXPORTS) \
a90ef4bf
JM
20504 $(POSTSTAGE1_HOST_EXPORTS) \
20505 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20506 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20507 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20508 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20509 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20510 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20511 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20512 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20513 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20514 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20515 $(TARGET-stage2-libcpp)
4b900473 20516
a90ef4bf
JM
20517maybe-clean-stage2-libcpp: clean-stage2-libcpp
20518clean-stage2: clean-stage2-libcpp
20519clean-stage2-libcpp:
4b900473 20520 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20521 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20522 else \
a90ef4bf 20523 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20524 $(MAKE) stage2-start; \
20525 fi; \
a90ef4bf 20526 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20527 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20528@endif libcpp-bootstrap
e28c595f
JM
20529
20530
a90ef4bf
JM
20531.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20532.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20533maybe-all-stage3-libcpp:
20534maybe-clean-stage3-libcpp:
20535@if libcpp-bootstrap
20536maybe-all-stage3-libcpp: all-stage3-libcpp
20537all-stage3: all-stage3-libcpp
20538TARGET-stage3-libcpp = $(TARGET-libcpp)
20539all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20540 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20541 @r=`${PWD_COMMAND}`; export r; \
20542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20543 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20544 $(HOST_EXPORTS) \
a90ef4bf
JM
20545 $(POSTSTAGE1_HOST_EXPORTS) \
20546 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20547 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20548 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20549 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20550 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20551 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20552 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20553 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20554 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20555 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20556 $(TARGET-stage3-libcpp)
4b900473 20557
a90ef4bf
JM
20558maybe-clean-stage3-libcpp: clean-stage3-libcpp
20559clean-stage3: clean-stage3-libcpp
20560clean-stage3-libcpp:
4b900473 20561 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20562 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20563 else \
a90ef4bf 20564 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20565 $(MAKE) stage3-start; \
20566 fi; \
a90ef4bf 20567 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20568 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20569@endif libcpp-bootstrap
e28c595f
JM
20570
20571
a90ef4bf
JM
20572.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20573.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20574maybe-all-stage4-libcpp:
20575maybe-clean-stage4-libcpp:
20576@if libcpp-bootstrap
20577maybe-all-stage4-libcpp: all-stage4-libcpp
20578all-stage4: all-stage4-libcpp
20579TARGET-stage4-libcpp = $(TARGET-libcpp)
20580all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20581 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20582 @r=`${PWD_COMMAND}`; export r; \
20583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20584 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20585 $(HOST_EXPORTS) \
a90ef4bf
JM
20586 $(POSTSTAGE1_HOST_EXPORTS) \
20587 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20588 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20589 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20590 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20591 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20592 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20593 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20594 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20595 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20596 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20597 $(TARGET-stage4-libcpp)
4b900473 20598
a90ef4bf
JM
20599maybe-clean-stage4-libcpp: clean-stage4-libcpp
20600clean-stage4: clean-stage4-libcpp
20601clean-stage4-libcpp:
4b900473 20602 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20603 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20604 else \
a90ef4bf 20605 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20606 $(MAKE) stage4-start; \
20607 fi; \
a90ef4bf 20608 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20609 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20610@endif libcpp-bootstrap
e28c595f
JM
20611
20612
a90ef4bf
JM
20613.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20614.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20615maybe-all-stageprofile-libcpp:
20616maybe-clean-stageprofile-libcpp:
20617@if libcpp-bootstrap
20618maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20619all-stageprofile: all-stageprofile-libcpp
20620TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20621all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20622 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20623 @r=`${PWD_COMMAND}`; export r; \
20624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20625 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20626 $(HOST_EXPORTS) \
a90ef4bf
JM
20627 $(POSTSTAGE1_HOST_EXPORTS) \
20628 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20629 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20630 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20631 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20632 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20633 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20634 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20635 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20636 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20637 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20638 $(TARGET-stageprofile-libcpp)
4b900473 20639
a90ef4bf
JM
20640maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20641clean-stageprofile: clean-stageprofile-libcpp
20642clean-stageprofile-libcpp:
4b900473 20643 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20644 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20645 else \
a90ef4bf 20646 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20647 $(MAKE) stageprofile-start; \
20648 fi; \
a90ef4bf 20649 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20650 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20651@endif libcpp-bootstrap
e28c595f
JM
20652
20653
a90ef4bf
JM
20654.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20655.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20656maybe-all-stagefeedback-libcpp:
20657maybe-clean-stagefeedback-libcpp:
20658@if libcpp-bootstrap
20659maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20660all-stagefeedback: all-stagefeedback-libcpp
20661TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20662all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20663 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20664 @r=`${PWD_COMMAND}`; export r; \
20665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20666 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20667 $(HOST_EXPORTS) \
a90ef4bf
JM
20668 $(POSTSTAGE1_HOST_EXPORTS) \
20669 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20670 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20671 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20672 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20673 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20674 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20675 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20676 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20677 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20678 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20679 $(TARGET-stagefeedback-libcpp)
4b900473 20680
a90ef4bf
JM
20681maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20682clean-stagefeedback: clean-stagefeedback-libcpp
20683clean-stagefeedback-libcpp:
4b900473 20684 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20685 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20686 else \
a90ef4bf 20687 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20688 $(MAKE) stagefeedback-start; \
20689 fi; \
a90ef4bf 20690 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20691 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20692@endif libcpp-bootstrap
4b900473
PB
20693
20694
20695
20696
20697
a90ef4bf
JM
20698.PHONY: check-libcpp maybe-check-libcpp
20699maybe-check-libcpp:
20700@if libcpp
20701maybe-check-libcpp: check-libcpp
4b900473 20702
a90ef4bf 20703check-libcpp:
4b900473
PB
20704 @: $(MAKE); $(unstage)
20705 @r=`${PWD_COMMAND}`; export r; \
20706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20707 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20708 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20709 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20710
a90ef4bf 20711@endif libcpp
4b900473 20712
a90ef4bf
JM
20713.PHONY: install-libcpp maybe-install-libcpp
20714maybe-install-libcpp:
20715@if libcpp
20716maybe-install-libcpp: install-libcpp
4b900473 20717
a90ef4bf
JM
20718install-libcpp: installdirs
20719 @: $(MAKE); $(unstage)
20720 @r=`${PWD_COMMAND}`; export r; \
20721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20722 $(HOST_EXPORTS) \
20723 (cd $(HOST_SUBDIR)/libcpp && \
20724 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20725
a90ef4bf 20726@endif libcpp
4b900473 20727
a90ef4bf
JM
20728.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20729maybe-install-strip-libcpp:
20730@if libcpp
20731maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20732
a90ef4bf
JM
20733install-strip-libcpp: installdirs
20734 @: $(MAKE); $(unstage)
20735 @r=`${PWD_COMMAND}`; export r; \
20736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20737 $(HOST_EXPORTS) \
20738 (cd $(HOST_SUBDIR)/libcpp && \
20739 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20740
a90ef4bf 20741@endif libcpp
9b980aa1 20742
4b900473
PB
20743# Other targets (info, dvi, pdf, etc.)
20744
a90ef4bf
JM
20745.PHONY: maybe-info-libcpp info-libcpp
20746maybe-info-libcpp:
20747@if libcpp
20748maybe-info-libcpp: info-libcpp
4b900473 20749
a90ef4bf
JM
20750info-libcpp: \
20751 configure-libcpp
20752 @[ -f ./libcpp/Makefile ] || exit 0; \
20753 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20755 $(HOST_EXPORTS) \
a90ef4bf 20756 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20758 done; \
22121df0 20759 echo "Doing info in libcpp"; \
a90ef4bf 20760 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20763 "RANLIB=$${RANLIB}" \
0c24b341 20764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20765 info) \
20766 || exit 1
20767
a90ef4bf 20768@endif libcpp
4b900473 20769
a90ef4bf
JM
20770.PHONY: maybe-dvi-libcpp dvi-libcpp
20771maybe-dvi-libcpp:
20772@if libcpp
20773maybe-dvi-libcpp: dvi-libcpp
4b900473 20774
a90ef4bf
JM
20775dvi-libcpp: \
20776 configure-libcpp
20777 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20778 r=`${PWD_COMMAND}`; export r; \
20779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20780 $(HOST_EXPORTS) \
a90ef4bf 20781 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20783 done; \
22121df0 20784 echo "Doing dvi in libcpp"; \
a90ef4bf 20785 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20788 "RANLIB=$${RANLIB}" \
0c24b341 20789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20790 dvi) \
20791 || exit 1
20792
a90ef4bf 20793@endif libcpp
4b900473 20794
a90ef4bf
JM
20795.PHONY: maybe-pdf-libcpp pdf-libcpp
20796maybe-pdf-libcpp:
20797@if libcpp
20798maybe-pdf-libcpp: pdf-libcpp
4b900473 20799
a90ef4bf
JM
20800pdf-libcpp: \
20801 configure-libcpp
20802 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20803 r=`${PWD_COMMAND}`; export r; \
20804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20805 $(HOST_EXPORTS) \
a90ef4bf 20806 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20808 done; \
22121df0 20809 echo "Doing pdf in libcpp"; \
a90ef4bf 20810 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20813 "RANLIB=$${RANLIB}" \
0c24b341 20814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20815 pdf) \
20816 || exit 1
20817
a90ef4bf 20818@endif libcpp
4b900473 20819
a90ef4bf
JM
20820.PHONY: maybe-html-libcpp html-libcpp
20821maybe-html-libcpp:
20822@if libcpp
20823maybe-html-libcpp: html-libcpp
4b900473 20824
a90ef4bf
JM
20825html-libcpp: \
20826 configure-libcpp
20827 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20828 r=`${PWD_COMMAND}`; export r; \
20829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20830 $(HOST_EXPORTS) \
a90ef4bf 20831 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20833 done; \
22121df0 20834 echo "Doing html in libcpp"; \
a90ef4bf 20835 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20838 "RANLIB=$${RANLIB}" \
0c24b341 20839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20840 html) \
20841 || exit 1
20842
a90ef4bf 20843@endif libcpp
4b900473 20844
a90ef4bf
JM
20845.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20846maybe-TAGS-libcpp:
20847@if libcpp
20848maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20849
a90ef4bf
JM
20850TAGS-libcpp: \
20851 configure-libcpp
20852 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20853 r=`${PWD_COMMAND}`; export r; \
20854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20855 $(HOST_EXPORTS) \
a90ef4bf 20856 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20858 done; \
22121df0 20859 echo "Doing TAGS in libcpp"; \
a90ef4bf 20860 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20863 "RANLIB=$${RANLIB}" \
0c24b341 20864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20865 TAGS) \
20866 || exit 1
20867
a90ef4bf 20868@endif libcpp
4b900473 20869
a90ef4bf
JM
20870.PHONY: maybe-install-info-libcpp install-info-libcpp
20871maybe-install-info-libcpp:
20872@if libcpp
20873maybe-install-info-libcpp: install-info-libcpp
4b900473 20874
a90ef4bf
JM
20875install-info-libcpp: \
20876 configure-libcpp \
20877 info-libcpp
20878 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20879 r=`${PWD_COMMAND}`; export r; \
20880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20881 $(HOST_EXPORTS) \
a90ef4bf 20882 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20884 done; \
22121df0 20885 echo "Doing install-info in libcpp"; \
a90ef4bf 20886 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20889 "RANLIB=$${RANLIB}" \
0c24b341 20890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20891 install-info) \
20892 || exit 1
20893
a90ef4bf 20894@endif libcpp
4b900473 20895
a90ef4bf
JM
20896.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20897maybe-install-pdf-libcpp:
20898@if libcpp
20899maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 20900
a90ef4bf
JM
20901install-pdf-libcpp: \
20902 configure-libcpp \
20903 pdf-libcpp
20904 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
20905 r=`${PWD_COMMAND}`; export r; \
20906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20907 $(HOST_EXPORTS) \
a90ef4bf 20908 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
20909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20910 done; \
22121df0 20911 echo "Doing install-pdf in libcpp"; \
a90ef4bf 20912 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
20913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20915 "RANLIB=$${RANLIB}" \
0c24b341 20916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
20917 install-pdf) \
20918 || exit 1
20919
a90ef4bf 20920@endif libcpp
a3ca38d2 20921
a90ef4bf
JM
20922.PHONY: maybe-install-html-libcpp install-html-libcpp
20923maybe-install-html-libcpp:
20924@if libcpp
20925maybe-install-html-libcpp: install-html-libcpp
4b900473 20926
a90ef4bf
JM
20927install-html-libcpp: \
20928 configure-libcpp \
20929 html-libcpp
20930 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20931 r=`${PWD_COMMAND}`; export r; \
20932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20933 $(HOST_EXPORTS) \
a90ef4bf 20934 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20936 done; \
22121df0 20937 echo "Doing install-html in libcpp"; \
a90ef4bf 20938 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20941 "RANLIB=$${RANLIB}" \
0c24b341 20942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20943 install-html) \
20944 || exit 1
20945
a90ef4bf 20946@endif libcpp
4b900473 20947
a90ef4bf
JM
20948.PHONY: maybe-installcheck-libcpp installcheck-libcpp
20949maybe-installcheck-libcpp:
20950@if libcpp
20951maybe-installcheck-libcpp: installcheck-libcpp
4b900473 20952
a90ef4bf
JM
20953installcheck-libcpp: \
20954 configure-libcpp
20955 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20956 r=`${PWD_COMMAND}`; export r; \
20957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20958 $(HOST_EXPORTS) \
a90ef4bf 20959 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20961 done; \
22121df0 20962 echo "Doing installcheck in libcpp"; \
a90ef4bf 20963 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20966 "RANLIB=$${RANLIB}" \
0c24b341 20967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20968 installcheck) \
20969 || exit 1
20970
a90ef4bf 20971@endif libcpp
4b900473 20972
a90ef4bf
JM
20973.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
20974maybe-mostlyclean-libcpp:
20975@if libcpp
20976maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 20977
a90ef4bf
JM
20978mostlyclean-libcpp:
20979 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20980 r=`${PWD_COMMAND}`; export r; \
20981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20982 $(HOST_EXPORTS) \
a90ef4bf 20983 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20985 done; \
22121df0 20986 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 20987 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20990 "RANLIB=$${RANLIB}" \
0c24b341 20991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20992 mostlyclean) \
20993 || exit 1
20994
a90ef4bf 20995@endif libcpp
4b900473 20996
a90ef4bf
JM
20997.PHONY: maybe-clean-libcpp clean-libcpp
20998maybe-clean-libcpp:
20999@if libcpp
21000maybe-clean-libcpp: clean-libcpp
4b900473 21001
a90ef4bf
JM
21002clean-libcpp:
21003 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21004 r=`${PWD_COMMAND}`; export r; \
21005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21006 $(HOST_EXPORTS) \
a90ef4bf 21007 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21009 done; \
22121df0 21010 echo "Doing clean in libcpp"; \
a90ef4bf 21011 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21014 "RANLIB=$${RANLIB}" \
0c24b341 21015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21016 clean) \
21017 || exit 1
21018
a90ef4bf 21019@endif libcpp
4b900473 21020
a90ef4bf
JM
21021.PHONY: maybe-distclean-libcpp distclean-libcpp
21022maybe-distclean-libcpp:
21023@if libcpp
21024maybe-distclean-libcpp: distclean-libcpp
4b900473 21025
a90ef4bf
JM
21026distclean-libcpp:
21027 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21028 r=`${PWD_COMMAND}`; export r; \
21029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21030 $(HOST_EXPORTS) \
a90ef4bf 21031 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21033 done; \
22121df0 21034 echo "Doing distclean in libcpp"; \
a90ef4bf 21035 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21038 "RANLIB=$${RANLIB}" \
0c24b341 21039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21040 distclean) \
21041 || exit 1
21042
a90ef4bf 21043@endif libcpp
4b900473 21044
a90ef4bf
JM
21045.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21046maybe-maintainer-clean-libcpp:
21047@if libcpp
21048maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21049
a90ef4bf
JM
21050maintainer-clean-libcpp:
21051 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21052 r=`${PWD_COMMAND}`; export r; \
21053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21054 $(HOST_EXPORTS) \
a90ef4bf 21055 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21057 done; \
22121df0 21058 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21059 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21062 "RANLIB=$${RANLIB}" \
0c24b341 21063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21064 maintainer-clean) \
21065 || exit 1
21066
a90ef4bf 21067@endif libcpp
4b900473
PB
21068
21069
21070
a90ef4bf
JM
21071.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21072maybe-configure-libdecnumber:
1f53ca9a 21073@if gcc-bootstrap
a90ef4bf 21074configure-libdecnumber: stage_current
1f53ca9a 21075@endif gcc-bootstrap
a90ef4bf
JM
21076@if libdecnumber
21077maybe-configure-libdecnumber: configure-libdecnumber
21078configure-libdecnumber:
1f53ca9a
AO
21079 @r=`${PWD_COMMAND}`; export r; \
21080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21081 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21082 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21083 $(HOST_EXPORTS) \
a90ef4bf
JM
21084 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21085 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21086 case $(srcdir) in \
21087 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21088 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21089 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21090 esac; \
1b6c0831
L
21091 module_srcdir=libdecnumber; \
21092 $(SHELL) \
21093 $$s/$$module_srcdir/configure \
21094 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21095 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21096 --target=${target_alias} \
1f53ca9a 21097 || exit 1
a90ef4bf 21098@endif libdecnumber
1f53ca9a
AO
21099
21100
21101
a90ef4bf
JM
21102.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21103maybe-configure-stage1-libdecnumber:
21104@if libdecnumber-bootstrap
21105maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21106configure-stage1-libdecnumber:
1f53ca9a 21107 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21108 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21109 @r=`${PWD_COMMAND}`; export r; \
21110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21111 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21112 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21113 $(HOST_EXPORTS) \
21114 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21115 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21116 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21117 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21118 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21119 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21120 case $(srcdir) in \
21121 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21122 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21123 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21124 esac; \
1b6c0831
L
21125 module_srcdir=libdecnumber; \
21126 $(SHELL) $$s/$$module_srcdir/configure \
21127 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21128 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21129 --target=${target_alias} \
21130 \
a90ef4bf
JM
21131 $(STAGE1_CONFIGURE_FLAGS)
21132@endif libdecnumber-bootstrap
1f53ca9a 21133
a90ef4bf
JM
21134.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21135maybe-configure-stage2-libdecnumber:
21136@if libdecnumber-bootstrap
21137maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21138configure-stage2-libdecnumber:
1f53ca9a 21139 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21140 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21141 @r=`${PWD_COMMAND}`; export r; \
21142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21143 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21144 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21145 $(HOST_EXPORTS) \
21146 $(POSTSTAGE1_HOST_EXPORTS) \
21147 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21148 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21149 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21150 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21151 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21152 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21153 case $(srcdir) in \
21154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21155 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21157 esac; \
1b6c0831
L
21158 module_srcdir=libdecnumber; \
21159 $(SHELL) $$s/$$module_srcdir/configure \
21160 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21161 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21162 --target=${target_alias} \
22121df0 21163 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21164 $(STAGE2_CONFIGURE_FLAGS)
21165@endif libdecnumber-bootstrap
1f53ca9a 21166
a90ef4bf
JM
21167.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21168maybe-configure-stage3-libdecnumber:
21169@if libdecnumber-bootstrap
21170maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21171configure-stage3-libdecnumber:
1f53ca9a 21172 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21173 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21174 @r=`${PWD_COMMAND}`; export r; \
21175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21176 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21177 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21178 $(HOST_EXPORTS) \
21179 $(POSTSTAGE1_HOST_EXPORTS) \
21180 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21181 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21182 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21183 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21184 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21185 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21186 case $(srcdir) in \
21187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21188 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21190 esac; \
1b6c0831
L
21191 module_srcdir=libdecnumber; \
21192 $(SHELL) $$s/$$module_srcdir/configure \
21193 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21194 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21195 --target=${target_alias} \
22121df0 21196 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21197 $(STAGE3_CONFIGURE_FLAGS)
21198@endif libdecnumber-bootstrap
1f53ca9a 21199
a90ef4bf
JM
21200.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21201maybe-configure-stage4-libdecnumber:
21202@if libdecnumber-bootstrap
21203maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21204configure-stage4-libdecnumber:
1f53ca9a 21205 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21206 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21207 @r=`${PWD_COMMAND}`; export r; \
21208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21209 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21210 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21211 $(HOST_EXPORTS) \
21212 $(POSTSTAGE1_HOST_EXPORTS) \
21213 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21214 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21215 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21216 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21217 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21218 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21219 case $(srcdir) in \
21220 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21221 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21222 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21223 esac; \
1b6c0831
L
21224 module_srcdir=libdecnumber; \
21225 $(SHELL) $$s/$$module_srcdir/configure \
21226 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21227 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21228 --target=${target_alias} \
22121df0 21229 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21230 $(STAGE4_CONFIGURE_FLAGS)
21231@endif libdecnumber-bootstrap
1f53ca9a 21232
a90ef4bf
JM
21233.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21234maybe-configure-stageprofile-libdecnumber:
21235@if libdecnumber-bootstrap
21236maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21237configure-stageprofile-libdecnumber:
1f53ca9a 21238 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21239 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21240 @r=`${PWD_COMMAND}`; export r; \
21241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21242 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21243 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21244 $(HOST_EXPORTS) \
21245 $(POSTSTAGE1_HOST_EXPORTS) \
21246 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21247 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21248 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21249 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21250 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21251 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21252 case $(srcdir) in \
21253 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21254 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21255 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21256 esac; \
1b6c0831
L
21257 module_srcdir=libdecnumber; \
21258 $(SHELL) $$s/$$module_srcdir/configure \
21259 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21260 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21261 --target=${target_alias} \
22121df0 21262 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21263 $(STAGEprofile_CONFIGURE_FLAGS)
21264@endif libdecnumber-bootstrap
1f53ca9a 21265
a90ef4bf
JM
21266.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21267maybe-configure-stagefeedback-libdecnumber:
21268@if libdecnumber-bootstrap
21269maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21270configure-stagefeedback-libdecnumber:
1f53ca9a 21271 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21272 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21273 @r=`${PWD_COMMAND}`; export r; \
21274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21275 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21276 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21277 $(HOST_EXPORTS) \
21278 $(POSTSTAGE1_HOST_EXPORTS) \
21279 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21280 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21281 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21282 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21283 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21284 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21285 case $(srcdir) in \
21286 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21287 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21288 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21289 esac; \
1b6c0831
L
21290 module_srcdir=libdecnumber; \
21291 $(SHELL) $$s/$$module_srcdir/configure \
21292 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21293 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21294 --target=${target_alias} \
22121df0 21295 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21296 $(STAGEfeedback_CONFIGURE_FLAGS)
21297@endif libdecnumber-bootstrap
1f53ca9a
AO
21298
21299
21300
21301
21302
a90ef4bf
JM
21303.PHONY: all-libdecnumber maybe-all-libdecnumber
21304maybe-all-libdecnumber:
1f53ca9a 21305@if gcc-bootstrap
a90ef4bf 21306all-libdecnumber: stage_current
1f53ca9a 21307@endif gcc-bootstrap
a90ef4bf
JM
21308@if libdecnumber
21309TARGET-libdecnumber=all
21310maybe-all-libdecnumber: all-libdecnumber
21311all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21312 @r=`${PWD_COMMAND}`; export r; \
21313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21314 $(HOST_EXPORTS) \
a90ef4bf 21315 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21316 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21317 $(TARGET-libdecnumber))
21318@endif libdecnumber
1f53ca9a
AO
21319
21320
21321
a90ef4bf
JM
21322.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21323.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21324maybe-all-stage1-libdecnumber:
21325maybe-clean-stage1-libdecnumber:
21326@if libdecnumber-bootstrap
21327maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21328all-stage1: all-stage1-libdecnumber
21329TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21330all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21331 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21332 @r=`${PWD_COMMAND}`; export r; \
21333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21334 TFLAGS="$(STAGE1_TFLAGS)"; \
21335 $(HOST_EXPORTS) \
a90ef4bf 21336 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21337 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21338 CFLAGS="$(STAGE1_CFLAGS)" \
21339 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21340 LIBCFLAGS="$(LIBCFLAGS)" \
21341 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21342 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21343 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21344 $(EXTRA_HOST_FLAGS) \
21345 $(STAGE1_FLAGS_TO_PASS) \
1f53ca9a 21346 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21347 $(TARGET-stage1-libdecnumber)
1f53ca9a 21348
a90ef4bf
JM
21349maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21350clean-stage1: clean-stage1-libdecnumber
21351clean-stage1-libdecnumber:
1f53ca9a 21352 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21353 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21354 else \
a90ef4bf 21355 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21356 $(MAKE) stage1-start; \
21357 fi; \
a90ef4bf 21358 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21359 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21360 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21361@endif libdecnumber-bootstrap
1f53ca9a
AO
21362
21363
a90ef4bf
JM
21364.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21365.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21366maybe-all-stage2-libdecnumber:
21367maybe-clean-stage2-libdecnumber:
21368@if libdecnumber-bootstrap
21369maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21370all-stage2: all-stage2-libdecnumber
21371TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21372all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21373 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21374 @r=`${PWD_COMMAND}`; export r; \
21375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21376 TFLAGS="$(STAGE2_TFLAGS)"; \
21377 $(HOST_EXPORTS) \
21378 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21379 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21380 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21381 CFLAGS="$(STAGE2_CFLAGS)" \
21382 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21383 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21384 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21385 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21386 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21387 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21388 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21389 $(TARGET-stage2-libdecnumber)
1f53ca9a 21390
a90ef4bf
JM
21391maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21392clean-stage2: clean-stage2-libdecnumber
21393clean-stage2-libdecnumber:
1f53ca9a 21394 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21395 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21396 else \
a90ef4bf 21397 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21398 $(MAKE) stage2-start; \
21399 fi; \
a90ef4bf 21400 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21401 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21402@endif libdecnumber-bootstrap
1f53ca9a
AO
21403
21404
a90ef4bf
JM
21405.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21406.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21407maybe-all-stage3-libdecnumber:
21408maybe-clean-stage3-libdecnumber:
21409@if libdecnumber-bootstrap
21410maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21411all-stage3: all-stage3-libdecnumber
21412TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21413all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21414 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21415 @r=`${PWD_COMMAND}`; export r; \
21416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21417 TFLAGS="$(STAGE3_TFLAGS)"; \
21418 $(HOST_EXPORTS) \
21419 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21420 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21421 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21422 CFLAGS="$(STAGE3_CFLAGS)" \
21423 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21424 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21425 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21426 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21427 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21428 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21429 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21430 $(TARGET-stage3-libdecnumber)
1f53ca9a 21431
a90ef4bf
JM
21432maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21433clean-stage3: clean-stage3-libdecnumber
21434clean-stage3-libdecnumber:
1f53ca9a 21435 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21436 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21437 else \
a90ef4bf 21438 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21439 $(MAKE) stage3-start; \
21440 fi; \
a90ef4bf 21441 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21442 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21443@endif libdecnumber-bootstrap
1f53ca9a
AO
21444
21445
a90ef4bf
JM
21446.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21447.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21448maybe-all-stage4-libdecnumber:
21449maybe-clean-stage4-libdecnumber:
21450@if libdecnumber-bootstrap
21451maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21452all-stage4: all-stage4-libdecnumber
21453TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21454all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21455 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21456 @r=`${PWD_COMMAND}`; export r; \
21457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21458 TFLAGS="$(STAGE4_TFLAGS)"; \
21459 $(HOST_EXPORTS) \
21460 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21461 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21462 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21463 CFLAGS="$(STAGE4_CFLAGS)" \
21464 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21465 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21466 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21467 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21468 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21469 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21470 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21471 $(TARGET-stage4-libdecnumber)
1f53ca9a 21472
a90ef4bf
JM
21473maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21474clean-stage4: clean-stage4-libdecnumber
21475clean-stage4-libdecnumber:
1f53ca9a 21476 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21477 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21478 else \
a90ef4bf 21479 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21480 $(MAKE) stage4-start; \
21481 fi; \
a90ef4bf 21482 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21483 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21484@endif libdecnumber-bootstrap
1f53ca9a
AO
21485
21486
a90ef4bf
JM
21487.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21488.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21489maybe-all-stageprofile-libdecnumber:
21490maybe-clean-stageprofile-libdecnumber:
21491@if libdecnumber-bootstrap
21492maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21493all-stageprofile: all-stageprofile-libdecnumber
21494TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21495all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21496 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21497 @r=`${PWD_COMMAND}`; export r; \
21498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21499 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21500 $(HOST_EXPORTS) \
21501 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21502 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21503 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21504 CFLAGS="$(STAGEprofile_CFLAGS)" \
21505 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21506 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21507 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21508 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21509 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21510 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21511 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21512 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21513
a90ef4bf
JM
21514maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21515clean-stageprofile: clean-stageprofile-libdecnumber
21516clean-stageprofile-libdecnumber:
1f53ca9a 21517 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21518 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21519 else \
a90ef4bf 21520 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21521 $(MAKE) stageprofile-start; \
21522 fi; \
a90ef4bf 21523 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21524 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21525@endif libdecnumber-bootstrap
1f53ca9a
AO
21526
21527
a90ef4bf
JM
21528.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21529.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21530maybe-all-stagefeedback-libdecnumber:
21531maybe-clean-stagefeedback-libdecnumber:
21532@if libdecnumber-bootstrap
21533maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21534all-stagefeedback: all-stagefeedback-libdecnumber
21535TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21536all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21537 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21538 @r=`${PWD_COMMAND}`; export r; \
21539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21540 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21541 $(HOST_EXPORTS) \
21542 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21543 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21544 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21545 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21546 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21547 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21548 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21549 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21550 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21551 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21552 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21553 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21554
a90ef4bf
JM
21555maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21556clean-stagefeedback: clean-stagefeedback-libdecnumber
21557clean-stagefeedback-libdecnumber:
1f53ca9a 21558 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21559 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21560 else \
a90ef4bf 21561 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21562 $(MAKE) stagefeedback-start; \
21563 fi; \
a90ef4bf 21564 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21565 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21566@endif libdecnumber-bootstrap
1f53ca9a
AO
21567
21568
21569
21570
21571
a90ef4bf
JM
21572.PHONY: check-libdecnumber maybe-check-libdecnumber
21573maybe-check-libdecnumber:
21574@if libdecnumber
21575maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21576
a90ef4bf 21577check-libdecnumber:
1f53ca9a
AO
21578 @: $(MAKE); $(unstage)
21579 @r=`${PWD_COMMAND}`; export r; \
21580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21581 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21582 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21583 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21584
a90ef4bf 21585@endif libdecnumber
1f53ca9a 21586
a90ef4bf
JM
21587.PHONY: install-libdecnumber maybe-install-libdecnumber
21588maybe-install-libdecnumber:
21589@if libdecnumber
21590maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21591
a90ef4bf
JM
21592install-libdecnumber: installdirs
21593 @: $(MAKE); $(unstage)
21594 @r=`${PWD_COMMAND}`; export r; \
21595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21596 $(HOST_EXPORTS) \
21597 (cd $(HOST_SUBDIR)/libdecnumber && \
21598 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21599
a90ef4bf 21600@endif libdecnumber
1f53ca9a 21601
a90ef4bf
JM
21602.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21603maybe-install-strip-libdecnumber:
21604@if libdecnumber
21605maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21606
a90ef4bf
JM
21607install-strip-libdecnumber: installdirs
21608 @: $(MAKE); $(unstage)
21609 @r=`${PWD_COMMAND}`; export r; \
21610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21611 $(HOST_EXPORTS) \
21612 (cd $(HOST_SUBDIR)/libdecnumber && \
21613 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21614
a90ef4bf 21615@endif libdecnumber
9b980aa1 21616
1f53ca9a
AO
21617# Other targets (info, dvi, pdf, etc.)
21618
a90ef4bf
JM
21619.PHONY: maybe-info-libdecnumber info-libdecnumber
21620maybe-info-libdecnumber:
21621@if libdecnumber
21622maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21623
a90ef4bf
JM
21624info-libdecnumber: \
21625 configure-libdecnumber
21626 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21627 r=`${PWD_COMMAND}`; export r; \
21628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21629 $(HOST_EXPORTS) \
21630 for flag in $(EXTRA_HOST_FLAGS) ; do \
21631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21632 done; \
22121df0 21633 echo "Doing info in libdecnumber"; \
a90ef4bf 21634 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21637 "RANLIB=$${RANLIB}" \
21638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21639 info) \
21640 || exit 1
21641
a90ef4bf 21642@endif libdecnumber
1f53ca9a 21643
a90ef4bf
JM
21644.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21645maybe-dvi-libdecnumber:
21646@if libdecnumber
21647maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21648
a90ef4bf
JM
21649dvi-libdecnumber: \
21650 configure-libdecnumber
21651 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21652 r=`${PWD_COMMAND}`; export r; \
21653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21654 $(HOST_EXPORTS) \
21655 for flag in $(EXTRA_HOST_FLAGS) ; do \
21656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21657 done; \
22121df0 21658 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21659 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21662 "RANLIB=$${RANLIB}" \
21663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21664 dvi) \
21665 || exit 1
21666
a90ef4bf 21667@endif libdecnumber
1f53ca9a 21668
a90ef4bf
JM
21669.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21670maybe-pdf-libdecnumber:
21671@if libdecnumber
21672maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21673
a90ef4bf
JM
21674pdf-libdecnumber: \
21675 configure-libdecnumber
21676 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21677 r=`${PWD_COMMAND}`; export r; \
21678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21679 $(HOST_EXPORTS) \
21680 for flag in $(EXTRA_HOST_FLAGS) ; do \
21681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21682 done; \
22121df0 21683 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21684 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21687 "RANLIB=$${RANLIB}" \
21688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21689 pdf) \
21690 || exit 1
21691
a90ef4bf 21692@endif libdecnumber
1f53ca9a 21693
a90ef4bf
JM
21694.PHONY: maybe-html-libdecnumber html-libdecnumber
21695maybe-html-libdecnumber:
21696@if libdecnumber
21697maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21698
a90ef4bf
JM
21699html-libdecnumber: \
21700 configure-libdecnumber
21701 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21702 r=`${PWD_COMMAND}`; export r; \
21703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21704 $(HOST_EXPORTS) \
21705 for flag in $(EXTRA_HOST_FLAGS) ; do \
21706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21707 done; \
22121df0 21708 echo "Doing html in libdecnumber"; \
a90ef4bf 21709 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21712 "RANLIB=$${RANLIB}" \
21713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21714 html) \
21715 || exit 1
21716
a90ef4bf 21717@endif libdecnumber
1f53ca9a 21718
a90ef4bf
JM
21719.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21720maybe-TAGS-libdecnumber:
21721@if libdecnumber
21722maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21723
a90ef4bf
JM
21724TAGS-libdecnumber: \
21725 configure-libdecnumber
21726 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21727 r=`${PWD_COMMAND}`; export r; \
21728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21729 $(HOST_EXPORTS) \
21730 for flag in $(EXTRA_HOST_FLAGS) ; do \
21731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21732 done; \
22121df0 21733 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21734 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21737 "RANLIB=$${RANLIB}" \
21738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21739 TAGS) \
21740 || exit 1
21741
a90ef4bf 21742@endif libdecnumber
1f53ca9a 21743
a90ef4bf
JM
21744.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21745maybe-install-info-libdecnumber:
21746@if libdecnumber
21747maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21748
a90ef4bf
JM
21749install-info-libdecnumber: \
21750 configure-libdecnumber \
21751 info-libdecnumber
21752 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21753 r=`${PWD_COMMAND}`; export r; \
21754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21755 $(HOST_EXPORTS) \
21756 for flag in $(EXTRA_HOST_FLAGS) ; do \
21757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21758 done; \
22121df0 21759 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21760 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21763 "RANLIB=$${RANLIB}" \
21764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21765 install-info) \
21766 || exit 1
21767
a90ef4bf 21768@endif libdecnumber
1f53ca9a 21769
a90ef4bf
JM
21770.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21771maybe-install-pdf-libdecnumber:
21772@if libdecnumber
21773maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21774
a90ef4bf
JM
21775install-pdf-libdecnumber: \
21776 configure-libdecnumber \
21777 pdf-libdecnumber
21778 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21779 r=`${PWD_COMMAND}`; export r; \
21780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21781 $(HOST_EXPORTS) \
21782 for flag in $(EXTRA_HOST_FLAGS) ; do \
21783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21784 done; \
22121df0 21785 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21786 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21789 "RANLIB=$${RANLIB}" \
21790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21791 install-pdf) \
21792 || exit 1
21793
a90ef4bf 21794@endif libdecnumber
1f53ca9a 21795
a90ef4bf
JM
21796.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21797maybe-install-html-libdecnumber:
21798@if libdecnumber
21799maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21800
a90ef4bf
JM
21801install-html-libdecnumber: \
21802 configure-libdecnumber \
21803 html-libdecnumber
21804 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21805 r=`${PWD_COMMAND}`; export r; \
21806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21807 $(HOST_EXPORTS) \
21808 for flag in $(EXTRA_HOST_FLAGS) ; do \
21809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21810 done; \
22121df0 21811 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21812 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21815 "RANLIB=$${RANLIB}" \
21816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21817 install-html) \
21818 || exit 1
21819
a90ef4bf 21820@endif libdecnumber
1f53ca9a 21821
a90ef4bf
JM
21822.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21823maybe-installcheck-libdecnumber:
21824@if libdecnumber
21825maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21826
a90ef4bf
JM
21827installcheck-libdecnumber: \
21828 configure-libdecnumber
21829 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21830 r=`${PWD_COMMAND}`; export r; \
21831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21832 $(HOST_EXPORTS) \
21833 for flag in $(EXTRA_HOST_FLAGS) ; do \
21834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21835 done; \
22121df0 21836 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21837 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21840 "RANLIB=$${RANLIB}" \
21841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21842 installcheck) \
21843 || exit 1
21844
a90ef4bf 21845@endif libdecnumber
1f53ca9a 21846
a90ef4bf
JM
21847.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21848maybe-mostlyclean-libdecnumber:
21849@if libdecnumber
21850maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21851
a90ef4bf
JM
21852mostlyclean-libdecnumber:
21853 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21854 r=`${PWD_COMMAND}`; export r; \
21855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21856 $(HOST_EXPORTS) \
21857 for flag in $(EXTRA_HOST_FLAGS) ; do \
21858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21859 done; \
22121df0 21860 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 21861 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21864 "RANLIB=$${RANLIB}" \
21865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21866 mostlyclean) \
21867 || exit 1
21868
a90ef4bf 21869@endif libdecnumber
1f53ca9a 21870
a90ef4bf
JM
21871.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21872maybe-clean-libdecnumber:
21873@if libdecnumber
21874maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21875
a90ef4bf
JM
21876clean-libdecnumber:
21877 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21878 r=`${PWD_COMMAND}`; export r; \
21879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21880 $(HOST_EXPORTS) \
21881 for flag in $(EXTRA_HOST_FLAGS) ; do \
21882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21883 done; \
22121df0 21884 echo "Doing clean in libdecnumber"; \
a90ef4bf 21885 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21888 "RANLIB=$${RANLIB}" \
21889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21890 clean) \
21891 || exit 1
21892
a90ef4bf 21893@endif libdecnumber
1f53ca9a 21894
a90ef4bf
JM
21895.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
21896maybe-distclean-libdecnumber:
21897@if libdecnumber
21898maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 21899
a90ef4bf
JM
21900distclean-libdecnumber:
21901 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21902 r=`${PWD_COMMAND}`; export r; \
21903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21904 $(HOST_EXPORTS) \
21905 for flag in $(EXTRA_HOST_FLAGS) ; do \
21906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21907 done; \
22121df0 21908 echo "Doing distclean in libdecnumber"; \
a90ef4bf 21909 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21912 "RANLIB=$${RANLIB}" \
21913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21914 distclean) \
21915 || exit 1
21916
a90ef4bf 21917@endif libdecnumber
1f53ca9a 21918
a90ef4bf
JM
21919.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
21920maybe-maintainer-clean-libdecnumber:
21921@if libdecnumber
21922maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 21923
a90ef4bf
JM
21924maintainer-clean-libdecnumber:
21925 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21926 r=`${PWD_COMMAND}`; export r; \
21927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21928 $(HOST_EXPORTS) \
21929 for flag in $(EXTRA_HOST_FLAGS) ; do \
21930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21931 done; \
22121df0 21932 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 21933 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21936 "RANLIB=$${RANLIB}" \
21937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21938 maintainer-clean) \
21939 || exit 1
21940
a90ef4bf 21941@endif libdecnumber
1f53ca9a
AO
21942
21943
21944
a90ef4bf
JM
21945.PHONY: configure-libgui maybe-configure-libgui
21946maybe-configure-libgui:
4f0ef2d8 21947@if gcc-bootstrap
a90ef4bf 21948configure-libgui: stage_current
4f0ef2d8 21949@endif gcc-bootstrap
a90ef4bf
JM
21950@if libgui
21951maybe-configure-libgui: configure-libgui
21952configure-libgui:
0aed8855 21953 @: $(MAKE); $(unstage)
c52c6897 21954 @r=`${PWD_COMMAND}`; export r; \
4fa63067 21955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21956 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 21957 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 21958 $(HOST_EXPORTS) \
a90ef4bf
JM
21959 echo Configuring in $(HOST_SUBDIR)/libgui; \
21960 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 21961 case $(srcdir) in \
b00612cc 21962 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21963 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 21964 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 21965 esac; \
1b6c0831
L
21966 module_srcdir=libgui; \
21967 $(SHELL) \
21968 $$s/$$module_srcdir/configure \
21969 --srcdir=$${topdir}/$$module_srcdir \
4b900473 21970 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21971 --target=${target_alias} \
2a4cbe27 21972 || exit 1
a90ef4bf 21973@endif libgui
2a4cbe27 21974
a7254363
PB
21975
21976
d545f33b
PB
21977
21978
a90ef4bf
JM
21979.PHONY: all-libgui maybe-all-libgui
21980maybe-all-libgui:
4f0ef2d8 21981@if gcc-bootstrap
a90ef4bf 21982all-libgui: stage_current
4f0ef2d8 21983@endif gcc-bootstrap
a90ef4bf
JM
21984@if libgui
21985TARGET-libgui=all
21986maybe-all-libgui: all-libgui
21987all-libgui: configure-libgui
0aed8855 21988 @: $(MAKE); $(unstage)
4fa63067
NN
21989 @r=`${PWD_COMMAND}`; export r; \
21990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 21991 $(HOST_EXPORTS) \
a90ef4bf 21992 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 21993 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21994 $(TARGET-libgui))
21995@endif libgui
2a4cbe27 21996
a7254363 21997
d545f33b
PB
21998
21999
a90ef4bf
JM
22000.PHONY: check-libgui maybe-check-libgui
22001maybe-check-libgui:
22002@if libgui
22003maybe-check-libgui: check-libgui
2a4cbe27 22004
a90ef4bf 22005check-libgui:
0aed8855 22006 @: $(MAKE); $(unstage)
4fa63067 22007 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22009 $(HOST_EXPORTS) \
a90ef4bf 22010 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22011 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22012
a90ef4bf 22013@endif libgui
2a4cbe27 22014
a90ef4bf
JM
22015.PHONY: install-libgui maybe-install-libgui
22016maybe-install-libgui:
22017@if libgui
22018maybe-install-libgui: install-libgui
2a4cbe27 22019
a90ef4bf 22020install-libgui: installdirs
0aed8855 22021 @: $(MAKE); $(unstage)
4fa63067 22022 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22024 $(HOST_EXPORTS) \
a90ef4bf 22025 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22026 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22027
a90ef4bf 22028@endif libgui
2a4cbe27 22029
a90ef4bf
JM
22030.PHONY: install-strip-libgui maybe-install-strip-libgui
22031maybe-install-strip-libgui:
22032@if libgui
22033maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22034
a90ef4bf 22035install-strip-libgui: installdirs
9b980aa1
RW
22036 @: $(MAKE); $(unstage)
22037 @r=`${PWD_COMMAND}`; export r; \
22038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22039 $(HOST_EXPORTS) \
a90ef4bf 22040 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22041 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22042
a90ef4bf 22043@endif libgui
9b980aa1 22044
56a8fe78 22045# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22046
a90ef4bf
JM
22047.PHONY: maybe-info-libgui info-libgui
22048maybe-info-libgui:
22049@if libgui
22050maybe-info-libgui: info-libgui
4fa63067 22051
a90ef4bf
JM
22052info-libgui: \
22053 configure-libgui
0aed8855 22054 @: $(MAKE); $(unstage)
a90ef4bf 22055 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22056 r=`${PWD_COMMAND}`; export r; \
22057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22058 $(HOST_EXPORTS) \
b813574b 22059 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22061 done; \
22121df0 22062 echo "Doing info in libgui"; \
a90ef4bf 22063 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22066 "RANLIB=$${RANLIB}" \
0c24b341 22067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22068 info) \
2a4cbe27
NN
22069 || exit 1
22070
a90ef4bf 22071@endif libgui
2a4cbe27 22072
a90ef4bf
JM
22073.PHONY: maybe-dvi-libgui dvi-libgui
22074maybe-dvi-libgui:
22075@if libgui
22076maybe-dvi-libgui: dvi-libgui
2a4cbe27 22077
a90ef4bf
JM
22078dvi-libgui: \
22079 configure-libgui
0aed8855 22080 @: $(MAKE); $(unstage)
a90ef4bf 22081 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22082 r=`${PWD_COMMAND}`; export r; \
22083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22084 $(HOST_EXPORTS) \
b813574b 22085 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22087 done; \
22121df0 22088 echo "Doing dvi in libgui"; \
a90ef4bf 22089 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22092 "RANLIB=$${RANLIB}" \
0c24b341 22093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22094 dvi) \
2a4cbe27
NN
22095 || exit 1
22096
a90ef4bf 22097@endif libgui
2a4cbe27 22098
a90ef4bf
JM
22099.PHONY: maybe-pdf-libgui pdf-libgui
22100maybe-pdf-libgui:
22101@if libgui
22102maybe-pdf-libgui: pdf-libgui
56a8fe78 22103
a90ef4bf
JM
22104pdf-libgui: \
22105 configure-libgui
56a8fe78 22106 @: $(MAKE); $(unstage)
a90ef4bf 22107 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22108 r=`${PWD_COMMAND}`; export r; \
22109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22110 $(HOST_EXPORTS) \
22111 for flag in $(EXTRA_HOST_FLAGS) ; do \
22112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22113 done; \
22121df0 22114 echo "Doing pdf in libgui"; \
a90ef4bf 22115 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22118 "RANLIB=$${RANLIB}" \
0c24b341 22119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22120 pdf) \
22121 || exit 1
22122
a90ef4bf 22123@endif libgui
56a8fe78 22124
a90ef4bf
JM
22125.PHONY: maybe-html-libgui html-libgui
22126maybe-html-libgui:
22127@if libgui
22128maybe-html-libgui: html-libgui
6d389afc 22129
a90ef4bf
JM
22130html-libgui: \
22131 configure-libgui
0aed8855 22132 @: $(MAKE); $(unstage)
a90ef4bf 22133 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22134 r=`${PWD_COMMAND}`; export r; \
22135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22136 $(HOST_EXPORTS) \
22137 for flag in $(EXTRA_HOST_FLAGS) ; do \
22138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22139 done; \
22121df0 22140 echo "Doing html in libgui"; \
a90ef4bf 22141 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22144 "RANLIB=$${RANLIB}" \
0c24b341 22145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22146 html) \
22147 || exit 1
22148
a90ef4bf 22149@endif libgui
6d389afc 22150
a90ef4bf
JM
22151.PHONY: maybe-TAGS-libgui TAGS-libgui
22152maybe-TAGS-libgui:
22153@if libgui
22154maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22155
a90ef4bf
JM
22156TAGS-libgui: \
22157 configure-libgui
0aed8855 22158 @: $(MAKE); $(unstage)
a90ef4bf 22159 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22160 r=`${PWD_COMMAND}`; export r; \
22161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22162 $(HOST_EXPORTS) \
b813574b 22163 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22165 done; \
22121df0 22166 echo "Doing TAGS in libgui"; \
a90ef4bf 22167 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22170 "RANLIB=$${RANLIB}" \
0c24b341 22171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22172 TAGS) \
2a4cbe27
NN
22173 || exit 1
22174
a90ef4bf 22175@endif libgui
2a4cbe27 22176
a90ef4bf
JM
22177.PHONY: maybe-install-info-libgui install-info-libgui
22178maybe-install-info-libgui:
22179@if libgui
22180maybe-install-info-libgui: install-info-libgui
2a4cbe27 22181
a90ef4bf
JM
22182install-info-libgui: \
22183 configure-libgui \
22184 info-libgui
0aed8855 22185 @: $(MAKE); $(unstage)
a90ef4bf 22186 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22187 r=`${PWD_COMMAND}`; export r; \
22188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22189 $(HOST_EXPORTS) \
b813574b 22190 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22192 done; \
22121df0 22193 echo "Doing install-info in libgui"; \
a90ef4bf 22194 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22197 "RANLIB=$${RANLIB}" \
0c24b341 22198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22199 install-info) \
2a4cbe27
NN
22200 || exit 1
22201
a90ef4bf 22202@endif libgui
2a4cbe27 22203
a90ef4bf
JM
22204.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22205maybe-install-pdf-libgui:
22206@if libgui
22207maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22208
a90ef4bf
JM
22209install-pdf-libgui: \
22210 configure-libgui \
22211 pdf-libgui
a3ca38d2 22212 @: $(MAKE); $(unstage)
a90ef4bf 22213 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22214 r=`${PWD_COMMAND}`; export r; \
22215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22216 $(HOST_EXPORTS) \
22217 for flag in $(EXTRA_HOST_FLAGS) ; do \
22218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22219 done; \
22121df0 22220 echo "Doing install-pdf in libgui"; \
a90ef4bf 22221 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22224 "RANLIB=$${RANLIB}" \
0c24b341 22225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22226 install-pdf) \
22227 || exit 1
22228
a90ef4bf 22229@endif libgui
a3ca38d2 22230
a90ef4bf
JM
22231.PHONY: maybe-install-html-libgui install-html-libgui
22232maybe-install-html-libgui:
22233@if libgui
22234maybe-install-html-libgui: install-html-libgui
108a6f8e 22235
a90ef4bf
JM
22236install-html-libgui: \
22237 configure-libgui \
22238 html-libgui
108a6f8e 22239 @: $(MAKE); $(unstage)
a90ef4bf 22240 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22241 r=`${PWD_COMMAND}`; export r; \
22242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22243 $(HOST_EXPORTS) \
22244 for flag in $(EXTRA_HOST_FLAGS) ; do \
22245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22246 done; \
22121df0 22247 echo "Doing install-html in libgui"; \
a90ef4bf 22248 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22251 "RANLIB=$${RANLIB}" \
0c24b341 22252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22253 install-html) \
22254 || exit 1
22255
a90ef4bf 22256@endif libgui
108a6f8e 22257
a90ef4bf
JM
22258.PHONY: maybe-installcheck-libgui installcheck-libgui
22259maybe-installcheck-libgui:
22260@if libgui
22261maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22262
a90ef4bf
JM
22263installcheck-libgui: \
22264 configure-libgui
0aed8855 22265 @: $(MAKE); $(unstage)
a90ef4bf 22266 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22267 r=`${PWD_COMMAND}`; export r; \
22268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22269 $(HOST_EXPORTS) \
b813574b 22270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22272 done; \
22121df0 22273 echo "Doing installcheck in libgui"; \
a90ef4bf 22274 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22277 "RANLIB=$${RANLIB}" \
0c24b341 22278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22279 installcheck) \
2a4cbe27
NN
22280 || exit 1
22281
a90ef4bf 22282@endif libgui
2a4cbe27 22283
a90ef4bf
JM
22284.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22285maybe-mostlyclean-libgui:
22286@if libgui
22287maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22288
a90ef4bf 22289mostlyclean-libgui:
0aed8855 22290 @: $(MAKE); $(unstage)
a90ef4bf 22291 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22292 r=`${PWD_COMMAND}`; export r; \
22293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22294 $(HOST_EXPORTS) \
b813574b 22295 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22297 done; \
22121df0 22298 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22299 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22302 "RANLIB=$${RANLIB}" \
0c24b341 22303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22304 mostlyclean) \
2a4cbe27
NN
22305 || exit 1
22306
a90ef4bf 22307@endif libgui
2a4cbe27 22308
a90ef4bf
JM
22309.PHONY: maybe-clean-libgui clean-libgui
22310maybe-clean-libgui:
22311@if libgui
22312maybe-clean-libgui: clean-libgui
2a4cbe27 22313
a90ef4bf 22314clean-libgui:
0aed8855 22315 @: $(MAKE); $(unstage)
a90ef4bf 22316 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22317 r=`${PWD_COMMAND}`; export r; \
22318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22319 $(HOST_EXPORTS) \
b813574b 22320 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22322 done; \
22121df0 22323 echo "Doing clean in libgui"; \
a90ef4bf 22324 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22327 "RANLIB=$${RANLIB}" \
0c24b341 22328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22329 clean) \
2a4cbe27
NN
22330 || exit 1
22331
a90ef4bf 22332@endif libgui
2a4cbe27 22333
a90ef4bf
JM
22334.PHONY: maybe-distclean-libgui distclean-libgui
22335maybe-distclean-libgui:
22336@if libgui
22337maybe-distclean-libgui: distclean-libgui
2a4cbe27 22338
a90ef4bf 22339distclean-libgui:
0aed8855 22340 @: $(MAKE); $(unstage)
a90ef4bf 22341 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22342 r=`${PWD_COMMAND}`; export r; \
22343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22344 $(HOST_EXPORTS) \
b813574b 22345 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22347 done; \
22121df0 22348 echo "Doing distclean in libgui"; \
a90ef4bf 22349 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22352 "RANLIB=$${RANLIB}" \
0c24b341 22353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22354 distclean) \
2a4cbe27
NN
22355 || exit 1
22356
a90ef4bf 22357@endif libgui
2a4cbe27 22358
a90ef4bf
JM
22359.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22360maybe-maintainer-clean-libgui:
22361@if libgui
22362maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22363
a90ef4bf 22364maintainer-clean-libgui:
0aed8855 22365 @: $(MAKE); $(unstage)
a90ef4bf 22366 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22367 r=`${PWD_COMMAND}`; export r; \
22368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22369 $(HOST_EXPORTS) \
b813574b 22370 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22372 done; \
22121df0 22373 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22374 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22377 "RANLIB=$${RANLIB}" \
0c24b341 22378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22379 maintainer-clean) \
2a4cbe27
NN
22380 || exit 1
22381
a90ef4bf 22382@endif libgui
2a4cbe27 22383
2a4cbe27 22384
a7254363 22385
a90ef4bf
JM
22386.PHONY: configure-libiberty maybe-configure-libiberty
22387maybe-configure-libiberty:
93f9b408 22388@if gcc-bootstrap
a90ef4bf 22389configure-libiberty: stage_current
93f9b408 22390@endif gcc-bootstrap
a90ef4bf
JM
22391@if libiberty
22392maybe-configure-libiberty: configure-libiberty
22393configure-libiberty:
93f9b408
ILT
22394 @r=`${PWD_COMMAND}`; export r; \
22395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22396 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22397 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22398 $(HOST_EXPORTS) \
a90ef4bf
JM
22399 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22400 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22401 case $(srcdir) in \
22402 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22403 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22404 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22405 esac; \
1b6c0831
L
22406 module_srcdir=libiberty; \
22407 $(SHELL) \
22408 $$s/$$module_srcdir/configure \
22409 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22410 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22411 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22412 || exit 1
a90ef4bf 22413@endif libiberty
93f9b408
ILT
22414
22415
22416
a90ef4bf
JM
22417.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22418maybe-configure-stage1-libiberty:
22419@if libiberty-bootstrap
22420maybe-configure-stage1-libiberty: configure-stage1-libiberty
22421configure-stage1-libiberty:
93f9b408 22422 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22423 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22424 @r=`${PWD_COMMAND}`; export r; \
22425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22426 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22427 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22428 $(HOST_EXPORTS) \
93f9b408 22429 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22430 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22431 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22432 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22433 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22434 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22435 case $(srcdir) in \
22436 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22437 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22438 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22439 esac; \
1b6c0831
L
22440 module_srcdir=libiberty; \
22441 $(SHELL) $$s/$$module_srcdir/configure \
22442 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22443 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22444 --target=${target_alias} \
22445 \
a90ef4bf
JM
22446 $(STAGE1_CONFIGURE_FLAGS) \
22447 @extra_host_libiberty_configure_flags@
22448@endif libiberty-bootstrap
93f9b408 22449
a90ef4bf
JM
22450.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22451maybe-configure-stage2-libiberty:
22452@if libiberty-bootstrap
22453maybe-configure-stage2-libiberty: configure-stage2-libiberty
22454configure-stage2-libiberty:
93f9b408 22455 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22456 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22457 @r=`${PWD_COMMAND}`; export r; \
22458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22459 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22460 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22461 $(HOST_EXPORTS) \
1b05fbbd 22462 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22463 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22464 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22465 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22466 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22467 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22468 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22469 case $(srcdir) in \
22470 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22471 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22472 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22473 esac; \
1b6c0831
L
22474 module_srcdir=libiberty; \
22475 $(SHELL) $$s/$$module_srcdir/configure \
22476 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22477 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22478 --target=${target_alias} \
22121df0 22479 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22480 $(STAGE2_CONFIGURE_FLAGS) \
22481 @extra_host_libiberty_configure_flags@
22482@endif libiberty-bootstrap
93f9b408 22483
a90ef4bf
JM
22484.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22485maybe-configure-stage3-libiberty:
22486@if libiberty-bootstrap
22487maybe-configure-stage3-libiberty: configure-stage3-libiberty
22488configure-stage3-libiberty:
93f9b408 22489 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22490 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22491 @r=`${PWD_COMMAND}`; export r; \
22492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22493 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22494 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22495 $(HOST_EXPORTS) \
1b05fbbd 22496 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22497 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22498 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22499 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22500 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22501 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22502 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22503 case $(srcdir) in \
22504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22505 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22507 esac; \
1b6c0831
L
22508 module_srcdir=libiberty; \
22509 $(SHELL) $$s/$$module_srcdir/configure \
22510 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22511 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22512 --target=${target_alias} \
22121df0 22513 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22514 $(STAGE3_CONFIGURE_FLAGS) \
22515 @extra_host_libiberty_configure_flags@
22516@endif libiberty-bootstrap
93f9b408 22517
a90ef4bf
JM
22518.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22519maybe-configure-stage4-libiberty:
22520@if libiberty-bootstrap
22521maybe-configure-stage4-libiberty: configure-stage4-libiberty
22522configure-stage4-libiberty:
93f9b408 22523 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22524 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22525 @r=`${PWD_COMMAND}`; export r; \
22526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22527 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22528 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22529 $(HOST_EXPORTS) \
1b05fbbd 22530 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22531 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22532 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22533 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22534 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22535 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22536 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22537 case $(srcdir) in \
22538 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22539 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22540 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22541 esac; \
1b6c0831
L
22542 module_srcdir=libiberty; \
22543 $(SHELL) $$s/$$module_srcdir/configure \
22544 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22545 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22546 --target=${target_alias} \
22121df0 22547 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22548 $(STAGE4_CONFIGURE_FLAGS) \
22549 @extra_host_libiberty_configure_flags@
22550@endif libiberty-bootstrap
93f9b408 22551
a90ef4bf
JM
22552.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22553maybe-configure-stageprofile-libiberty:
22554@if libiberty-bootstrap
22555maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22556configure-stageprofile-libiberty:
93f9b408 22557 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22558 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22559 @r=`${PWD_COMMAND}`; export r; \
22560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22561 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22562 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22563 $(HOST_EXPORTS) \
1b05fbbd
AO
22564 $(POSTSTAGE1_HOST_EXPORTS) \
22565 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22566 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22567 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22568 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22569 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22570 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22571 case $(srcdir) in \
22572 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22573 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22574 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22575 esac; \
1b6c0831
L
22576 module_srcdir=libiberty; \
22577 $(SHELL) $$s/$$module_srcdir/configure \
22578 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22579 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22580 --target=${target_alias} \
22121df0 22581 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22582 $(STAGEprofile_CONFIGURE_FLAGS) \
22583 @extra_host_libiberty_configure_flags@
22584@endif libiberty-bootstrap
93f9b408 22585
a90ef4bf
JM
22586.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22587maybe-configure-stagefeedback-libiberty:
22588@if libiberty-bootstrap
22589maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22590configure-stagefeedback-libiberty:
93f9b408 22591 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22592 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22593 @r=`${PWD_COMMAND}`; export r; \
22594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22595 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22596 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22597 $(HOST_EXPORTS) \
1b05fbbd
AO
22598 $(POSTSTAGE1_HOST_EXPORTS) \
22599 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22600 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22601 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22602 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22603 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22604 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22605 case $(srcdir) in \
22606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22607 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22609 esac; \
1b6c0831
L
22610 module_srcdir=libiberty; \
22611 $(SHELL) $$s/$$module_srcdir/configure \
22612 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22613 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22614 --target=${target_alias} \
22121df0 22615 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22616 $(STAGEfeedback_CONFIGURE_FLAGS) \
22617 @extra_host_libiberty_configure_flags@
22618@endif libiberty-bootstrap
93f9b408
ILT
22619
22620
22621
22622
22623
a90ef4bf
JM
22624.PHONY: all-libiberty maybe-all-libiberty
22625maybe-all-libiberty:
93f9b408 22626@if gcc-bootstrap
a90ef4bf 22627all-libiberty: stage_current
93f9b408 22628@endif gcc-bootstrap
a90ef4bf
JM
22629@if libiberty
22630TARGET-libiberty=all
22631maybe-all-libiberty: all-libiberty
22632all-libiberty: configure-libiberty
93f9b408
ILT
22633 @r=`${PWD_COMMAND}`; export r; \
22634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22635 $(HOST_EXPORTS) \
a90ef4bf 22636 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22637 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22638 $(TARGET-libiberty))
22639@endif libiberty
93f9b408
ILT
22640
22641
22642
a90ef4bf
JM
22643.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22644.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22645maybe-all-stage1-libiberty:
22646maybe-clean-stage1-libiberty:
22647@if libiberty-bootstrap
22648maybe-all-stage1-libiberty: all-stage1-libiberty
22649all-stage1: all-stage1-libiberty
22650TARGET-stage1-libiberty = $(TARGET-libiberty)
22651all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22652 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22653 @r=`${PWD_COMMAND}`; export r; \
22654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22655 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22656 $(HOST_EXPORTS) \
a90ef4bf 22657 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22658 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22659 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22660 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22661 LIBCFLAGS="$(LIBCFLAGS)" \
22662 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22663 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22664 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22665 $(EXTRA_HOST_FLAGS) \
22666 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 22667 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22668 $(TARGET-stage1-libiberty)
93f9b408 22669
a90ef4bf
JM
22670maybe-clean-stage1-libiberty: clean-stage1-libiberty
22671clean-stage1: clean-stage1-libiberty
22672clean-stage1-libiberty:
93f9b408 22673 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22674 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22675 else \
a90ef4bf 22676 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22677 $(MAKE) stage1-start; \
22678 fi; \
a90ef4bf 22679 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22680 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22681 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22682@endif libiberty-bootstrap
93f9b408
ILT
22683
22684
a90ef4bf
JM
22685.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22686.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22687maybe-all-stage2-libiberty:
22688maybe-clean-stage2-libiberty:
22689@if libiberty-bootstrap
22690maybe-all-stage2-libiberty: all-stage2-libiberty
22691all-stage2: all-stage2-libiberty
22692TARGET-stage2-libiberty = $(TARGET-libiberty)
22693all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22694 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22695 @r=`${PWD_COMMAND}`; export r; \
22696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22697 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22698 $(HOST_EXPORTS) \
1f53ca9a 22699 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22700 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22701 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22702 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22703 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22704 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22705 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22706 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22707 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22708 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22709 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22710 $(TARGET-stage2-libiberty)
93f9b408 22711
a90ef4bf
JM
22712maybe-clean-stage2-libiberty: clean-stage2-libiberty
22713clean-stage2: clean-stage2-libiberty
22714clean-stage2-libiberty:
93f9b408 22715 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22716 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22717 else \
a90ef4bf 22718 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22719 $(MAKE) stage2-start; \
22720 fi; \
a90ef4bf 22721 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22722 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22723@endif libiberty-bootstrap
93f9b408
ILT
22724
22725
a90ef4bf
JM
22726.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22727.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22728maybe-all-stage3-libiberty:
22729maybe-clean-stage3-libiberty:
22730@if libiberty-bootstrap
22731maybe-all-stage3-libiberty: all-stage3-libiberty
22732all-stage3: all-stage3-libiberty
22733TARGET-stage3-libiberty = $(TARGET-libiberty)
22734all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22735 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22736 @r=`${PWD_COMMAND}`; export r; \
22737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22738 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22739 $(HOST_EXPORTS) \
1f53ca9a 22740 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22741 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22742 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22743 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22744 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22745 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22746 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22747 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22748 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22749 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22750 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22751 $(TARGET-stage3-libiberty)
93f9b408 22752
a90ef4bf
JM
22753maybe-clean-stage3-libiberty: clean-stage3-libiberty
22754clean-stage3: clean-stage3-libiberty
22755clean-stage3-libiberty:
93f9b408 22756 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22757 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22758 else \
a90ef4bf 22759 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22760 $(MAKE) stage3-start; \
22761 fi; \
a90ef4bf 22762 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22763 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22764@endif libiberty-bootstrap
93f9b408
ILT
22765
22766
a90ef4bf
JM
22767.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22768.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22769maybe-all-stage4-libiberty:
22770maybe-clean-stage4-libiberty:
22771@if libiberty-bootstrap
22772maybe-all-stage4-libiberty: all-stage4-libiberty
22773all-stage4: all-stage4-libiberty
22774TARGET-stage4-libiberty = $(TARGET-libiberty)
22775all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22776 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22777 @r=`${PWD_COMMAND}`; export r; \
22778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22779 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22780 $(HOST_EXPORTS) \
1f53ca9a 22781 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22782 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22783 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22784 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22785 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22786 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22787 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22788 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22789 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22790 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22791 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22792 $(TARGET-stage4-libiberty)
93f9b408 22793
a90ef4bf
JM
22794maybe-clean-stage4-libiberty: clean-stage4-libiberty
22795clean-stage4: clean-stage4-libiberty
22796clean-stage4-libiberty:
93f9b408 22797 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22798 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22799 else \
a90ef4bf 22800 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22801 $(MAKE) stage4-start; \
22802 fi; \
a90ef4bf 22803 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22804 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22805@endif libiberty-bootstrap
93f9b408
ILT
22806
22807
a90ef4bf
JM
22808.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22809.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22810maybe-all-stageprofile-libiberty:
22811maybe-clean-stageprofile-libiberty:
22812@if libiberty-bootstrap
22813maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22814all-stageprofile: all-stageprofile-libiberty
22815TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22816all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22817 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22818 @r=`${PWD_COMMAND}`; export r; \
22819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22820 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22821 $(HOST_EXPORTS) \
1f53ca9a 22822 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22823 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22824 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22825 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22826 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22827 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22828 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22829 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22830 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22831 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22832 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22833 $(TARGET-stageprofile-libiberty)
93f9b408 22834
a90ef4bf
JM
22835maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22836clean-stageprofile: clean-stageprofile-libiberty
22837clean-stageprofile-libiberty:
93f9b408 22838 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22839 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22840 else \
a90ef4bf 22841 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22842 $(MAKE) stageprofile-start; \
22843 fi; \
a90ef4bf 22844 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22845 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22846@endif libiberty-bootstrap
93f9b408
ILT
22847
22848
a90ef4bf
JM
22849.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22850.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22851maybe-all-stagefeedback-libiberty:
22852maybe-clean-stagefeedback-libiberty:
22853@if libiberty-bootstrap
22854maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22855all-stagefeedback: all-stagefeedback-libiberty
22856TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22857all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22858 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22859 @r=`${PWD_COMMAND}`; export r; \
22860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22861 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22862 $(HOST_EXPORTS) \
1f53ca9a 22863 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22864 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22865 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22866 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22867 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22868 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22869 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22870 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22871 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22872 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22873 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22874 $(TARGET-stagefeedback-libiberty)
93f9b408 22875
a90ef4bf
JM
22876maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22877clean-stagefeedback: clean-stagefeedback-libiberty
22878clean-stagefeedback-libiberty:
93f9b408 22879 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22880 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22881 else \
a90ef4bf 22882 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22883 $(MAKE) stagefeedback-start; \
22884 fi; \
a90ef4bf 22885 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22886 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22887@endif libiberty-bootstrap
93f9b408
ILT
22888
22889
22890
22891
22892
a90ef4bf
JM
22893.PHONY: check-libiberty maybe-check-libiberty
22894maybe-check-libiberty:
22895@if libiberty
22896maybe-check-libiberty: check-libiberty
93f9b408 22897
a90ef4bf 22898check-libiberty:
93f9b408
ILT
22899 @: $(MAKE); $(unstage)
22900 @r=`${PWD_COMMAND}`; export r; \
22901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22902 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 22903 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 22904 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 22905
a90ef4bf 22906@endif libiberty
93f9b408 22907
a90ef4bf
JM
22908.PHONY: install-libiberty maybe-install-libiberty
22909maybe-install-libiberty:
22910@if libiberty
22911maybe-install-libiberty: install-libiberty
93f9b408 22912
a90ef4bf 22913install-libiberty: installdirs
93f9b408
ILT
22914 @: $(MAKE); $(unstage)
22915 @r=`${PWD_COMMAND}`; export r; \
22916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22917 $(HOST_EXPORTS) \
a90ef4bf 22918 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22919 $(MAKE) $(FLAGS_TO_PASS) install)
22920
a90ef4bf 22921@endif libiberty
93f9b408 22922
a90ef4bf
JM
22923.PHONY: install-strip-libiberty maybe-install-strip-libiberty
22924maybe-install-strip-libiberty:
22925@if libiberty
22926maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 22927
a90ef4bf 22928install-strip-libiberty: installdirs
9b980aa1
RW
22929 @: $(MAKE); $(unstage)
22930 @r=`${PWD_COMMAND}`; export r; \
22931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22932 $(HOST_EXPORTS) \
a90ef4bf 22933 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
22934 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22935
a90ef4bf 22936@endif libiberty
9b980aa1 22937
93f9b408
ILT
22938# Other targets (info, dvi, pdf, etc.)
22939
a90ef4bf
JM
22940.PHONY: maybe-info-libiberty info-libiberty
22941maybe-info-libiberty:
22942@if libiberty
22943maybe-info-libiberty: info-libiberty
93f9b408 22944
a90ef4bf
JM
22945info-libiberty: \
22946 configure-libiberty
22947 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22948 r=`${PWD_COMMAND}`; export r; \
22949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22950 $(HOST_EXPORTS) \
22951 for flag in $(EXTRA_HOST_FLAGS) ; do \
22952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22953 done; \
22121df0 22954 echo "Doing info in libiberty"; \
a90ef4bf 22955 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22958 "RANLIB=$${RANLIB}" \
22959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22960 info) \
22961 || exit 1
22962
a90ef4bf 22963@endif libiberty
93f9b408 22964
a90ef4bf
JM
22965.PHONY: maybe-dvi-libiberty dvi-libiberty
22966maybe-dvi-libiberty:
22967@if libiberty
22968maybe-dvi-libiberty: dvi-libiberty
93f9b408 22969
a90ef4bf
JM
22970dvi-libiberty: \
22971 configure-libiberty
22972 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22973 r=`${PWD_COMMAND}`; export r; \
22974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22975 $(HOST_EXPORTS) \
22976 for flag in $(EXTRA_HOST_FLAGS) ; do \
22977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22978 done; \
22121df0 22979 echo "Doing dvi in libiberty"; \
a90ef4bf 22980 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22983 "RANLIB=$${RANLIB}" \
22984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22985 dvi) \
22986 || exit 1
22987
a90ef4bf 22988@endif libiberty
93f9b408 22989
a90ef4bf
JM
22990.PHONY: maybe-pdf-libiberty pdf-libiberty
22991maybe-pdf-libiberty:
22992@if libiberty
22993maybe-pdf-libiberty: pdf-libiberty
93f9b408 22994
a90ef4bf
JM
22995pdf-libiberty: \
22996 configure-libiberty
22997 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22998 r=`${PWD_COMMAND}`; export r; \
22999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23000 $(HOST_EXPORTS) \
23001 for flag in $(EXTRA_HOST_FLAGS) ; do \
23002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23003 done; \
22121df0 23004 echo "Doing pdf in libiberty"; \
a90ef4bf 23005 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23008 "RANLIB=$${RANLIB}" \
23009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23010 pdf) \
23011 || exit 1
23012
a90ef4bf 23013@endif libiberty
93f9b408 23014
a90ef4bf
JM
23015.PHONY: maybe-html-libiberty html-libiberty
23016maybe-html-libiberty:
23017@if libiberty
23018maybe-html-libiberty: html-libiberty
93f9b408 23019
a90ef4bf
JM
23020html-libiberty: \
23021 configure-libiberty
23022 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23023 r=`${PWD_COMMAND}`; export r; \
23024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23025 $(HOST_EXPORTS) \
23026 for flag in $(EXTRA_HOST_FLAGS) ; do \
23027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23028 done; \
22121df0 23029 echo "Doing html in libiberty"; \
a90ef4bf 23030 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23033 "RANLIB=$${RANLIB}" \
23034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23035 html) \
23036 || exit 1
23037
a90ef4bf 23038@endif libiberty
93f9b408 23039
a90ef4bf
JM
23040.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23041maybe-TAGS-libiberty:
23042@if libiberty
23043maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23044
a90ef4bf
JM
23045TAGS-libiberty: \
23046 configure-libiberty
23047 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23048 r=`${PWD_COMMAND}`; export r; \
23049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23050 $(HOST_EXPORTS) \
23051 for flag in $(EXTRA_HOST_FLAGS) ; do \
23052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23053 done; \
22121df0 23054 echo "Doing TAGS in libiberty"; \
a90ef4bf 23055 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23058 "RANLIB=$${RANLIB}" \
23059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23060 TAGS) \
23061 || exit 1
23062
a90ef4bf 23063@endif libiberty
93f9b408 23064
a90ef4bf
JM
23065.PHONY: maybe-install-info-libiberty install-info-libiberty
23066maybe-install-info-libiberty:
23067@if libiberty
23068maybe-install-info-libiberty: install-info-libiberty
93f9b408 23069
a90ef4bf
JM
23070install-info-libiberty: \
23071 configure-libiberty \
23072 info-libiberty
23073 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23074 r=`${PWD_COMMAND}`; export r; \
23075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23076 $(HOST_EXPORTS) \
23077 for flag in $(EXTRA_HOST_FLAGS) ; do \
23078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23079 done; \
22121df0 23080 echo "Doing install-info in libiberty"; \
a90ef4bf 23081 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23084 "RANLIB=$${RANLIB}" \
23085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23086 install-info) \
23087 || exit 1
23088
a90ef4bf 23089@endif libiberty
93f9b408 23090
a90ef4bf
JM
23091.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23092maybe-install-pdf-libiberty:
23093@if libiberty
23094maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23095
a90ef4bf
JM
23096install-pdf-libiberty: \
23097 configure-libiberty \
23098 pdf-libiberty
23099 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23100 r=`${PWD_COMMAND}`; export r; \
23101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23102 $(HOST_EXPORTS) \
23103 for flag in $(EXTRA_HOST_FLAGS) ; do \
23104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23105 done; \
22121df0 23106 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23107 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23110 "RANLIB=$${RANLIB}" \
23111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23112 install-pdf) \
23113 || exit 1
23114
a90ef4bf 23115@endif libiberty
93f9b408 23116
a90ef4bf
JM
23117.PHONY: maybe-install-html-libiberty install-html-libiberty
23118maybe-install-html-libiberty:
23119@if libiberty
23120maybe-install-html-libiberty: install-html-libiberty
93f9b408 23121
a90ef4bf
JM
23122install-html-libiberty: \
23123 configure-libiberty \
23124 html-libiberty
23125 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23126 r=`${PWD_COMMAND}`; export r; \
23127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23128 $(HOST_EXPORTS) \
23129 for flag in $(EXTRA_HOST_FLAGS) ; do \
23130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23131 done; \
22121df0 23132 echo "Doing install-html in libiberty"; \
a90ef4bf 23133 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23136 "RANLIB=$${RANLIB}" \
23137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23138 install-html) \
23139 || exit 1
23140
a90ef4bf 23141@endif libiberty
93f9b408 23142
a90ef4bf
JM
23143.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23144maybe-installcheck-libiberty:
23145@if libiberty
23146maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23147
a90ef4bf
JM
23148installcheck-libiberty: \
23149 configure-libiberty
23150 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23151 r=`${PWD_COMMAND}`; export r; \
23152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23153 $(HOST_EXPORTS) \
23154 for flag in $(EXTRA_HOST_FLAGS) ; do \
23155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23156 done; \
22121df0 23157 echo "Doing installcheck in libiberty"; \
a90ef4bf 23158 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23161 "RANLIB=$${RANLIB}" \
23162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23163 installcheck) \
23164 || exit 1
23165
a90ef4bf 23166@endif libiberty
93f9b408 23167
a90ef4bf
JM
23168.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23169maybe-mostlyclean-libiberty:
23170@if libiberty
23171maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23172
a90ef4bf
JM
23173mostlyclean-libiberty:
23174 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23175 r=`${PWD_COMMAND}`; export r; \
23176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23177 $(HOST_EXPORTS) \
23178 for flag in $(EXTRA_HOST_FLAGS) ; do \
23179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23180 done; \
22121df0 23181 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23182 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23185 "RANLIB=$${RANLIB}" \
23186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23187 mostlyclean) \
23188 || exit 1
23189
a90ef4bf 23190@endif libiberty
93f9b408 23191
a90ef4bf
JM
23192.PHONY: maybe-clean-libiberty clean-libiberty
23193maybe-clean-libiberty:
23194@if libiberty
23195maybe-clean-libiberty: clean-libiberty
93f9b408 23196
a90ef4bf
JM
23197clean-libiberty:
23198 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23199 r=`${PWD_COMMAND}`; export r; \
23200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23201 $(HOST_EXPORTS) \
23202 for flag in $(EXTRA_HOST_FLAGS) ; do \
23203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23204 done; \
22121df0 23205 echo "Doing clean in libiberty"; \
a90ef4bf 23206 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23209 "RANLIB=$${RANLIB}" \
23210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23211 clean) \
23212 || exit 1
23213
a90ef4bf 23214@endif libiberty
93f9b408 23215
a90ef4bf
JM
23216.PHONY: maybe-distclean-libiberty distclean-libiberty
23217maybe-distclean-libiberty:
23218@if libiberty
23219maybe-distclean-libiberty: distclean-libiberty
93f9b408 23220
a90ef4bf
JM
23221distclean-libiberty:
23222 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23223 r=`${PWD_COMMAND}`; export r; \
23224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23225 $(HOST_EXPORTS) \
23226 for flag in $(EXTRA_HOST_FLAGS) ; do \
23227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23228 done; \
22121df0 23229 echo "Doing distclean in libiberty"; \
a90ef4bf 23230 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23233 "RANLIB=$${RANLIB}" \
23234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23235 distclean) \
23236 || exit 1
23237
a90ef4bf 23238@endif libiberty
93f9b408 23239
a90ef4bf
JM
23240.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23241maybe-maintainer-clean-libiberty:
23242@if libiberty
23243maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23244
a90ef4bf
JM
23245maintainer-clean-libiberty:
23246 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23247 r=`${PWD_COMMAND}`; export r; \
23248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23249 $(HOST_EXPORTS) \
23250 for flag in $(EXTRA_HOST_FLAGS) ; do \
23251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23252 done; \
22121df0 23253 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23254 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23257 "RANLIB=$${RANLIB}" \
23258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23259 maintainer-clean) \
23260 || exit 1
23261
a90ef4bf 23262@endif libiberty
93f9b408
ILT
23263
23264
23265
1b6c0831
L
23266.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23267maybe-configure-libiberty-linker-plugin:
23268@if gcc-bootstrap
23269configure-libiberty-linker-plugin: stage_current
23270@endif gcc-bootstrap
23271@if libiberty-linker-plugin
23272maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23273configure-libiberty-linker-plugin:
23274 @r=`${PWD_COMMAND}`; export r; \
23275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23276 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23277 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23278 $(HOST_EXPORTS) \
23279 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23280 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23281 case $(srcdir) in \
23282 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23283 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23284 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23285 esac; \
23286 module_srcdir=libiberty; \
23287 $(SHELL) \
23288 $$s/$$module_srcdir/configure \
23289 --srcdir=$${topdir}/$$module_srcdir \
23290 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23291 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23292 || exit 1
23293@endif libiberty-linker-plugin
23294
23295
23296
23297.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23298maybe-configure-stage1-libiberty-linker-plugin:
23299@if libiberty-linker-plugin-bootstrap
23300maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23301configure-stage1-libiberty-linker-plugin:
23302 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23303 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23304 @r=`${PWD_COMMAND}`; export r; \
23305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23306 TFLAGS="$(STAGE1_TFLAGS)"; \
23307 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23308 $(HOST_EXPORTS) \
23309 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23310 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23311 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23312 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23313 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23314 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23315 case $(srcdir) in \
23316 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23317 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23318 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23319 esac; \
23320 module_srcdir=libiberty; \
23321 $(SHELL) $$s/$$module_srcdir/configure \
23322 --srcdir=$${topdir}/$$module_srcdir \
23323 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23324 --target=${target_alias} \
23325 \
23326 $(STAGE1_CONFIGURE_FLAGS) \
23327 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23328@endif libiberty-linker-plugin-bootstrap
23329
23330.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23331maybe-configure-stage2-libiberty-linker-plugin:
23332@if libiberty-linker-plugin-bootstrap
23333maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23334configure-stage2-libiberty-linker-plugin:
23335 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23336 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23337 @r=`${PWD_COMMAND}`; export r; \
23338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23339 TFLAGS="$(STAGE2_TFLAGS)"; \
23340 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23341 $(HOST_EXPORTS) \
23342 $(POSTSTAGE1_HOST_EXPORTS) \
23343 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23344 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23345 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23346 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23347 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23348 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23349 case $(srcdir) in \
23350 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23351 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23352 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23353 esac; \
23354 module_srcdir=libiberty; \
23355 $(SHELL) $$s/$$module_srcdir/configure \
23356 --srcdir=$${topdir}/$$module_srcdir \
23357 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23358 --target=${target_alias} \
22121df0 23359 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23360 $(STAGE2_CONFIGURE_FLAGS) \
23361 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23362@endif libiberty-linker-plugin-bootstrap
23363
23364.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23365maybe-configure-stage3-libiberty-linker-plugin:
23366@if libiberty-linker-plugin-bootstrap
23367maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23368configure-stage3-libiberty-linker-plugin:
23369 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23370 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23371 @r=`${PWD_COMMAND}`; export r; \
23372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23373 TFLAGS="$(STAGE3_TFLAGS)"; \
23374 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23375 $(HOST_EXPORTS) \
23376 $(POSTSTAGE1_HOST_EXPORTS) \
23377 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23378 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23379 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23380 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23381 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23382 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23383 case $(srcdir) in \
23384 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23385 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23386 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23387 esac; \
23388 module_srcdir=libiberty; \
23389 $(SHELL) $$s/$$module_srcdir/configure \
23390 --srcdir=$${topdir}/$$module_srcdir \
23391 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23392 --target=${target_alias} \
22121df0 23393 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23394 $(STAGE3_CONFIGURE_FLAGS) \
23395 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23396@endif libiberty-linker-plugin-bootstrap
23397
23398.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23399maybe-configure-stage4-libiberty-linker-plugin:
23400@if libiberty-linker-plugin-bootstrap
23401maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23402configure-stage4-libiberty-linker-plugin:
23403 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23404 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23405 @r=`${PWD_COMMAND}`; export r; \
23406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23407 TFLAGS="$(STAGE4_TFLAGS)"; \
23408 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23409 $(HOST_EXPORTS) \
23410 $(POSTSTAGE1_HOST_EXPORTS) \
23411 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23412 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23413 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23414 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23415 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23416 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23417 case $(srcdir) in \
23418 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23419 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23420 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23421 esac; \
23422 module_srcdir=libiberty; \
23423 $(SHELL) $$s/$$module_srcdir/configure \
23424 --srcdir=$${topdir}/$$module_srcdir \
23425 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23426 --target=${target_alias} \
22121df0 23427 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23428 $(STAGE4_CONFIGURE_FLAGS) \
23429 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23430@endif libiberty-linker-plugin-bootstrap
23431
23432.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23433maybe-configure-stageprofile-libiberty-linker-plugin:
23434@if libiberty-linker-plugin-bootstrap
23435maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23436configure-stageprofile-libiberty-linker-plugin:
23437 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23438 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23439 @r=`${PWD_COMMAND}`; export r; \
23440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23441 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23442 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23443 $(HOST_EXPORTS) \
23444 $(POSTSTAGE1_HOST_EXPORTS) \
23445 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23446 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23447 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23448 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23449 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23450 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23451 case $(srcdir) in \
23452 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23453 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23454 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23455 esac; \
23456 module_srcdir=libiberty; \
23457 $(SHELL) $$s/$$module_srcdir/configure \
23458 --srcdir=$${topdir}/$$module_srcdir \
23459 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23460 --target=${target_alias} \
22121df0 23461 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23462 $(STAGEprofile_CONFIGURE_FLAGS) \
23463 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23464@endif libiberty-linker-plugin-bootstrap
23465
23466.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23467maybe-configure-stagefeedback-libiberty-linker-plugin:
23468@if libiberty-linker-plugin-bootstrap
23469maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23470configure-stagefeedback-libiberty-linker-plugin:
23471 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23472 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23473 @r=`${PWD_COMMAND}`; export r; \
23474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23475 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23476 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23477 $(HOST_EXPORTS) \
23478 $(POSTSTAGE1_HOST_EXPORTS) \
23479 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23480 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23481 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23482 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23483 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23484 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23485 case $(srcdir) in \
23486 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23487 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23488 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23489 esac; \
23490 module_srcdir=libiberty; \
23491 $(SHELL) $$s/$$module_srcdir/configure \
23492 --srcdir=$${topdir}/$$module_srcdir \
23493 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23494 --target=${target_alias} \
22121df0 23495 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23496 $(STAGEfeedback_CONFIGURE_FLAGS) \
23497 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23498@endif libiberty-linker-plugin-bootstrap
23499
23500
23501
23502
23503
23504.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23505maybe-all-libiberty-linker-plugin:
23506@if gcc-bootstrap
23507all-libiberty-linker-plugin: stage_current
23508@endif gcc-bootstrap
23509@if libiberty-linker-plugin
23510TARGET-libiberty-linker-plugin=all
23511maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23512all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23513 @r=`${PWD_COMMAND}`; export r; \
23514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23515 $(HOST_EXPORTS) \
23516 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23517 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23518 $(TARGET-libiberty-linker-plugin))
23519@endif libiberty-linker-plugin
23520
23521
23522
23523.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23524.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23525maybe-all-stage1-libiberty-linker-plugin:
23526maybe-clean-stage1-libiberty-linker-plugin:
23527@if libiberty-linker-plugin-bootstrap
23528maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23529all-stage1: all-stage1-libiberty-linker-plugin
23530TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23531all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23532 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23533 @r=`${PWD_COMMAND}`; export r; \
23534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23535 TFLAGS="$(STAGE1_TFLAGS)"; \
23536 $(HOST_EXPORTS) \
23537 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23538 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23539 CFLAGS="$(STAGE1_CFLAGS)" \
23540 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23541 LIBCFLAGS="$(LIBCFLAGS)" \
23542 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23543 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23544 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23545 $(EXTRA_HOST_FLAGS) \
23546 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23547 TFLAGS="$(STAGE1_TFLAGS)" \
23548 $(TARGET-stage1-libiberty-linker-plugin)
23549
23550maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23551clean-stage1: clean-stage1-libiberty-linker-plugin
23552clean-stage1-libiberty-linker-plugin:
23553 @if [ $(current_stage) = stage1 ]; then \
23554 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23555 else \
23556 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23557 $(MAKE) stage1-start; \
23558 fi; \
23559 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23560 $(MAKE) $(EXTRA_HOST_FLAGS) \
23561 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23562@endif libiberty-linker-plugin-bootstrap
23563
23564
23565.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23566.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23567maybe-all-stage2-libiberty-linker-plugin:
23568maybe-clean-stage2-libiberty-linker-plugin:
23569@if libiberty-linker-plugin-bootstrap
23570maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23571all-stage2: all-stage2-libiberty-linker-plugin
23572TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23573all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23574 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23575 @r=`${PWD_COMMAND}`; export r; \
23576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23577 TFLAGS="$(STAGE2_TFLAGS)"; \
23578 $(HOST_EXPORTS) \
23579 $(POSTSTAGE1_HOST_EXPORTS) \
23580 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23581 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23582 CFLAGS="$(STAGE2_CFLAGS)" \
23583 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23584 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23585 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23586 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23587 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23588 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23589 TFLAGS="$(STAGE2_TFLAGS)" \
23590 $(TARGET-stage2-libiberty-linker-plugin)
23591
23592maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23593clean-stage2: clean-stage2-libiberty-linker-plugin
23594clean-stage2-libiberty-linker-plugin:
23595 @if [ $(current_stage) = stage2 ]; then \
23596 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23597 else \
23598 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23599 $(MAKE) stage2-start; \
23600 fi; \
23601 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23602 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23603@endif libiberty-linker-plugin-bootstrap
23604
23605
23606.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23607.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23608maybe-all-stage3-libiberty-linker-plugin:
23609maybe-clean-stage3-libiberty-linker-plugin:
23610@if libiberty-linker-plugin-bootstrap
23611maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23612all-stage3: all-stage3-libiberty-linker-plugin
23613TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23614all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23615 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23616 @r=`${PWD_COMMAND}`; export r; \
23617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23618 TFLAGS="$(STAGE3_TFLAGS)"; \
23619 $(HOST_EXPORTS) \
23620 $(POSTSTAGE1_HOST_EXPORTS) \
23621 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23622 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23623 CFLAGS="$(STAGE3_CFLAGS)" \
23624 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23625 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23626 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23627 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23628 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23629 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23630 TFLAGS="$(STAGE3_TFLAGS)" \
23631 $(TARGET-stage3-libiberty-linker-plugin)
23632
23633maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23634clean-stage3: clean-stage3-libiberty-linker-plugin
23635clean-stage3-libiberty-linker-plugin:
23636 @if [ $(current_stage) = stage3 ]; then \
23637 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23638 else \
23639 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23640 $(MAKE) stage3-start; \
23641 fi; \
23642 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23643 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23644@endif libiberty-linker-plugin-bootstrap
23645
23646
23647.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23648.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23649maybe-all-stage4-libiberty-linker-plugin:
23650maybe-clean-stage4-libiberty-linker-plugin:
23651@if libiberty-linker-plugin-bootstrap
23652maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23653all-stage4: all-stage4-libiberty-linker-plugin
23654TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23655all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23656 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23657 @r=`${PWD_COMMAND}`; export r; \
23658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23659 TFLAGS="$(STAGE4_TFLAGS)"; \
23660 $(HOST_EXPORTS) \
23661 $(POSTSTAGE1_HOST_EXPORTS) \
23662 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23663 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23664 CFLAGS="$(STAGE4_CFLAGS)" \
23665 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23666 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23667 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23668 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23669 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23670 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23671 TFLAGS="$(STAGE4_TFLAGS)" \
23672 $(TARGET-stage4-libiberty-linker-plugin)
23673
23674maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23675clean-stage4: clean-stage4-libiberty-linker-plugin
23676clean-stage4-libiberty-linker-plugin:
23677 @if [ $(current_stage) = stage4 ]; then \
23678 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23679 else \
23680 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23681 $(MAKE) stage4-start; \
23682 fi; \
23683 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23684 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23685@endif libiberty-linker-plugin-bootstrap
23686
23687
23688.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23689.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23690maybe-all-stageprofile-libiberty-linker-plugin:
23691maybe-clean-stageprofile-libiberty-linker-plugin:
23692@if libiberty-linker-plugin-bootstrap
23693maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23694all-stageprofile: all-stageprofile-libiberty-linker-plugin
23695TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23696all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23697 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23698 @r=`${PWD_COMMAND}`; export r; \
23699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23700 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23701 $(HOST_EXPORTS) \
23702 $(POSTSTAGE1_HOST_EXPORTS) \
23703 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23704 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23705 CFLAGS="$(STAGEprofile_CFLAGS)" \
23706 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23707 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23708 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23709 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23710 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23711 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23712 TFLAGS="$(STAGEprofile_TFLAGS)" \
23713 $(TARGET-stageprofile-libiberty-linker-plugin)
23714
23715maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23716clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23717clean-stageprofile-libiberty-linker-plugin:
23718 @if [ $(current_stage) = stageprofile ]; then \
23719 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23720 else \
23721 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23722 $(MAKE) stageprofile-start; \
23723 fi; \
23724 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23725 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23726@endif libiberty-linker-plugin-bootstrap
23727
23728
23729.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23730.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23731maybe-all-stagefeedback-libiberty-linker-plugin:
23732maybe-clean-stagefeedback-libiberty-linker-plugin:
23733@if libiberty-linker-plugin-bootstrap
23734maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23735all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23736TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23737all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23738 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23739 @r=`${PWD_COMMAND}`; export r; \
23740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23741 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23742 $(HOST_EXPORTS) \
23743 $(POSTSTAGE1_HOST_EXPORTS) \
23744 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23745 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23746 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23747 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23748 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23749 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23750 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23751 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23752 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23753 TFLAGS="$(STAGEfeedback_TFLAGS)" \
23754 $(TARGET-stagefeedback-libiberty-linker-plugin)
23755
23756maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23757clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23758clean-stagefeedback-libiberty-linker-plugin:
23759 @if [ $(current_stage) = stagefeedback ]; then \
23760 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23761 else \
23762 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23763 $(MAKE) stagefeedback-start; \
23764 fi; \
23765 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23766 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23767@endif libiberty-linker-plugin-bootstrap
23768
23769
23770
23771
23772
23773.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23774maybe-check-libiberty-linker-plugin:
23775@if libiberty-linker-plugin
23776maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23777
23778check-libiberty-linker-plugin:
23779 @: $(MAKE); $(unstage)
23780 @r=`${PWD_COMMAND}`; export r; \
23781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23782 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23783 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23784 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23785
23786@endif libiberty-linker-plugin
23787
23788.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23789maybe-install-libiberty-linker-plugin:
23790@if libiberty-linker-plugin
23791maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23792
23793install-libiberty-linker-plugin: installdirs
23794 @: $(MAKE); $(unstage)
23795 @r=`${PWD_COMMAND}`; export r; \
23796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23797 $(HOST_EXPORTS) \
23798 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23799 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23800
23801@endif libiberty-linker-plugin
23802
23803.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23804maybe-install-strip-libiberty-linker-plugin:
23805@if libiberty-linker-plugin
23806maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23807
23808install-strip-libiberty-linker-plugin: installdirs
23809 @: $(MAKE); $(unstage)
23810 @r=`${PWD_COMMAND}`; export r; \
23811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23812 $(HOST_EXPORTS) \
23813 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23814 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23815
23816@endif libiberty-linker-plugin
23817
23818# Other targets (info, dvi, pdf, etc.)
23819
23820.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23821maybe-info-libiberty-linker-plugin:
23822@if libiberty-linker-plugin
23823maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23824
23825info-libiberty-linker-plugin: \
23826 configure-libiberty-linker-plugin
23827 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23828 r=`${PWD_COMMAND}`; export r; \
23829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23830 $(HOST_EXPORTS) \
23831 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23833 done; \
22121df0 23834 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23835 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23838 "RANLIB=$${RANLIB}" \
23839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23840 info) \
23841 || exit 1
23842
23843@endif libiberty-linker-plugin
23844
23845.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23846maybe-dvi-libiberty-linker-plugin:
23847@if libiberty-linker-plugin
23848maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23849
23850dvi-libiberty-linker-plugin: \
23851 configure-libiberty-linker-plugin
23852 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23853 r=`${PWD_COMMAND}`; export r; \
23854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23855 $(HOST_EXPORTS) \
23856 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23858 done; \
22121df0 23859 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
23860 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23863 "RANLIB=$${RANLIB}" \
23864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23865 dvi) \
23866 || exit 1
23867
23868@endif libiberty-linker-plugin
23869
23870.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23871maybe-pdf-libiberty-linker-plugin:
23872@if libiberty-linker-plugin
23873maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23874
23875pdf-libiberty-linker-plugin: \
23876 configure-libiberty-linker-plugin
23877 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23878 r=`${PWD_COMMAND}`; export r; \
23879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23880 $(HOST_EXPORTS) \
23881 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23883 done; \
22121df0 23884 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
23885 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23888 "RANLIB=$${RANLIB}" \
23889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23890 pdf) \
23891 || exit 1
23892
23893@endif libiberty-linker-plugin
23894
23895.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
23896maybe-html-libiberty-linker-plugin:
23897@if libiberty-linker-plugin
23898maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
23899
23900html-libiberty-linker-plugin: \
23901 configure-libiberty-linker-plugin
23902 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23903 r=`${PWD_COMMAND}`; export r; \
23904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23905 $(HOST_EXPORTS) \
23906 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23908 done; \
22121df0 23909 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
23910 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23913 "RANLIB=$${RANLIB}" \
23914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23915 html) \
23916 || exit 1
23917
23918@endif libiberty-linker-plugin
23919
23920.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
23921maybe-TAGS-libiberty-linker-plugin:
23922@if libiberty-linker-plugin
23923maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
23924
23925TAGS-libiberty-linker-plugin: \
23926 configure-libiberty-linker-plugin
23927 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23928 r=`${PWD_COMMAND}`; export r; \
23929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23930 $(HOST_EXPORTS) \
23931 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23933 done; \
22121df0 23934 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
23935 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23938 "RANLIB=$${RANLIB}" \
23939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23940 TAGS) \
23941 || exit 1
23942
23943@endif libiberty-linker-plugin
23944
23945.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
23946maybe-install-info-libiberty-linker-plugin:
23947@if libiberty-linker-plugin
23948maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
23949
23950install-info-libiberty-linker-plugin: \
23951 configure-libiberty-linker-plugin \
23952 info-libiberty-linker-plugin
23953 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23954 r=`${PWD_COMMAND}`; export r; \
23955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23956 $(HOST_EXPORTS) \
23957 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23959 done; \
22121df0 23960 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
23961 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23964 "RANLIB=$${RANLIB}" \
23965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23966 install-info) \
23967 || exit 1
23968
23969@endif libiberty-linker-plugin
23970
23971.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
23972maybe-install-pdf-libiberty-linker-plugin:
23973@if libiberty-linker-plugin
23974maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
23975
23976install-pdf-libiberty-linker-plugin: \
23977 configure-libiberty-linker-plugin \
23978 pdf-libiberty-linker-plugin
23979 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23980 r=`${PWD_COMMAND}`; export r; \
23981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23982 $(HOST_EXPORTS) \
23983 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23985 done; \
22121df0 23986 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
23987 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23990 "RANLIB=$${RANLIB}" \
23991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23992 install-pdf) \
23993 || exit 1
23994
23995@endif libiberty-linker-plugin
23996
23997.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
23998maybe-install-html-libiberty-linker-plugin:
23999@if libiberty-linker-plugin
24000maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
24001
24002install-html-libiberty-linker-plugin: \
24003 configure-libiberty-linker-plugin \
24004 html-libiberty-linker-plugin
24005 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24006 r=`${PWD_COMMAND}`; export r; \
24007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24008 $(HOST_EXPORTS) \
24009 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24011 done; \
22121df0 24012 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
24013 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24016 "RANLIB=$${RANLIB}" \
24017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24018 install-html) \
24019 || exit 1
24020
24021@endif libiberty-linker-plugin
24022
24023.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24024maybe-installcheck-libiberty-linker-plugin:
24025@if libiberty-linker-plugin
24026maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24027
24028installcheck-libiberty-linker-plugin: \
24029 configure-libiberty-linker-plugin
24030 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24031 r=`${PWD_COMMAND}`; export r; \
24032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24033 $(HOST_EXPORTS) \
24034 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24036 done; \
22121df0 24037 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24038 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24041 "RANLIB=$${RANLIB}" \
24042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24043 installcheck) \
24044 || exit 1
24045
24046@endif libiberty-linker-plugin
24047
24048.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24049maybe-mostlyclean-libiberty-linker-plugin:
24050@if libiberty-linker-plugin
24051maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24052
24053mostlyclean-libiberty-linker-plugin:
24054 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24055 r=`${PWD_COMMAND}`; export r; \
24056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24057 $(HOST_EXPORTS) \
24058 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24060 done; \
22121df0 24061 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24062 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24065 "RANLIB=$${RANLIB}" \
24066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24067 mostlyclean) \
24068 || exit 1
24069
24070@endif libiberty-linker-plugin
24071
24072.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24073maybe-clean-libiberty-linker-plugin:
24074@if libiberty-linker-plugin
24075maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24076
24077clean-libiberty-linker-plugin:
24078 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24079 r=`${PWD_COMMAND}`; export r; \
24080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24081 $(HOST_EXPORTS) \
24082 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24084 done; \
22121df0 24085 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24086 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24089 "RANLIB=$${RANLIB}" \
24090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24091 clean) \
24092 || exit 1
24093
24094@endif libiberty-linker-plugin
24095
24096.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24097maybe-distclean-libiberty-linker-plugin:
24098@if libiberty-linker-plugin
24099maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24100
24101distclean-libiberty-linker-plugin:
24102 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24103 r=`${PWD_COMMAND}`; export r; \
24104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24105 $(HOST_EXPORTS) \
24106 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24108 done; \
22121df0 24109 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24110 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24113 "RANLIB=$${RANLIB}" \
24114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24115 distclean) \
24116 || exit 1
24117
24118@endif libiberty-linker-plugin
24119
24120.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24121maybe-maintainer-clean-libiberty-linker-plugin:
24122@if libiberty-linker-plugin
24123maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24124
24125maintainer-clean-libiberty-linker-plugin:
24126 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24127 r=`${PWD_COMMAND}`; export r; \
24128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24129 $(HOST_EXPORTS) \
24130 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24132 done; \
22121df0 24133 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24134 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24137 "RANLIB=$${RANLIB}" \
24138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24139 maintainer-clean) \
24140 || exit 1
24141
24142@endif libiberty-linker-plugin
24143
24144
24145
a90ef4bf
JM
24146.PHONY: configure-libiconv maybe-configure-libiconv
24147maybe-configure-libiconv:
4f0ef2d8 24148@if gcc-bootstrap
a90ef4bf 24149configure-libiconv: stage_current
4f0ef2d8 24150@endif gcc-bootstrap
a90ef4bf
JM
24151@if libiconv
24152maybe-configure-libiconv: configure-libiconv
24153configure-libiconv:
c52c6897 24154 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24156 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24157 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24158 $(HOST_EXPORTS) \
a90ef4bf
JM
24159 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24160 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24161 case $(srcdir) in \
b00612cc 24162 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24163 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24164 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24165 esac; \
1b6c0831
L
24166 module_srcdir=libiconv; \
24167 $(SHELL) \
24168 $$s/$$module_srcdir/configure \
24169 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24170 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24171 --target=${target_alias} --disable-shared \
2a4cbe27 24172 || exit 1
a90ef4bf 24173@endif libiconv
2a4cbe27 24174
a7254363
PB
24175
24176
016a3251
DD
24177.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24178maybe-configure-stage1-libiconv:
24179@if libiconv-bootstrap
24180maybe-configure-stage1-libiconv: configure-stage1-libiconv
24181configure-stage1-libiconv:
24182 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24183 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24184 @r=`${PWD_COMMAND}`; export r; \
24185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24186 TFLAGS="$(STAGE1_TFLAGS)"; \
24187 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24188 $(HOST_EXPORTS) \
24189 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24190 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24191 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24192 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24193 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24194 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24195 case $(srcdir) in \
24196 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24197 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24198 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24199 esac; \
24200 module_srcdir=libiconv; \
24201 $(SHELL) $$s/$$module_srcdir/configure \
24202 --srcdir=$${topdir}/$$module_srcdir \
24203 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24204 --target=${target_alias} \
24205 \
24206 $(STAGE1_CONFIGURE_FLAGS) \
24207 --disable-shared
24208@endif libiconv-bootstrap
24209
24210.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24211maybe-configure-stage2-libiconv:
24212@if libiconv-bootstrap
24213maybe-configure-stage2-libiconv: configure-stage2-libiconv
24214configure-stage2-libiconv:
24215 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24216 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24217 @r=`${PWD_COMMAND}`; export r; \
24218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24219 TFLAGS="$(STAGE2_TFLAGS)"; \
24220 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24221 $(HOST_EXPORTS) \
24222 $(POSTSTAGE1_HOST_EXPORTS) \
24223 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24224 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24225 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24226 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24227 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24228 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24229 case $(srcdir) in \
24230 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24231 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24232 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24233 esac; \
24234 module_srcdir=libiconv; \
24235 $(SHELL) $$s/$$module_srcdir/configure \
24236 --srcdir=$${topdir}/$$module_srcdir \
24237 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24238 --target=${target_alias} \
24239 --with-build-libsubdir=$(HOST_SUBDIR) \
24240 $(STAGE2_CONFIGURE_FLAGS) \
24241 --disable-shared
24242@endif libiconv-bootstrap
24243
24244.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24245maybe-configure-stage3-libiconv:
24246@if libiconv-bootstrap
24247maybe-configure-stage3-libiconv: configure-stage3-libiconv
24248configure-stage3-libiconv:
24249 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24250 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24251 @r=`${PWD_COMMAND}`; export r; \
24252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24253 TFLAGS="$(STAGE3_TFLAGS)"; \
24254 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24255 $(HOST_EXPORTS) \
24256 $(POSTSTAGE1_HOST_EXPORTS) \
24257 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24258 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24259 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24260 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24261 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24262 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24263 case $(srcdir) in \
24264 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24265 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24266 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24267 esac; \
24268 module_srcdir=libiconv; \
24269 $(SHELL) $$s/$$module_srcdir/configure \
24270 --srcdir=$${topdir}/$$module_srcdir \
24271 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24272 --target=${target_alias} \
24273 --with-build-libsubdir=$(HOST_SUBDIR) \
24274 $(STAGE3_CONFIGURE_FLAGS) \
24275 --disable-shared
24276@endif libiconv-bootstrap
24277
24278.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24279maybe-configure-stage4-libiconv:
24280@if libiconv-bootstrap
24281maybe-configure-stage4-libiconv: configure-stage4-libiconv
24282configure-stage4-libiconv:
24283 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24284 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24285 @r=`${PWD_COMMAND}`; export r; \
24286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24287 TFLAGS="$(STAGE4_TFLAGS)"; \
24288 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24289 $(HOST_EXPORTS) \
24290 $(POSTSTAGE1_HOST_EXPORTS) \
24291 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24292 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24293 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24294 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24295 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24296 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24297 case $(srcdir) in \
24298 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24299 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24300 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24301 esac; \
24302 module_srcdir=libiconv; \
24303 $(SHELL) $$s/$$module_srcdir/configure \
24304 --srcdir=$${topdir}/$$module_srcdir \
24305 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24306 --target=${target_alias} \
24307 --with-build-libsubdir=$(HOST_SUBDIR) \
24308 $(STAGE4_CONFIGURE_FLAGS) \
24309 --disable-shared
24310@endif libiconv-bootstrap
24311
24312.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24313maybe-configure-stageprofile-libiconv:
24314@if libiconv-bootstrap
24315maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24316configure-stageprofile-libiconv:
24317 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24318 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24319 @r=`${PWD_COMMAND}`; export r; \
24320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24321 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24322 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24323 $(HOST_EXPORTS) \
24324 $(POSTSTAGE1_HOST_EXPORTS) \
24325 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24326 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24327 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24328 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24329 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24330 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24331 case $(srcdir) in \
24332 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24333 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24334 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24335 esac; \
24336 module_srcdir=libiconv; \
24337 $(SHELL) $$s/$$module_srcdir/configure \
24338 --srcdir=$${topdir}/$$module_srcdir \
24339 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24340 --target=${target_alias} \
24341 --with-build-libsubdir=$(HOST_SUBDIR) \
24342 $(STAGEprofile_CONFIGURE_FLAGS) \
24343 --disable-shared
24344@endif libiconv-bootstrap
24345
24346.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24347maybe-configure-stagefeedback-libiconv:
24348@if libiconv-bootstrap
24349maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24350configure-stagefeedback-libiconv:
24351 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24352 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24353 @r=`${PWD_COMMAND}`; export r; \
24354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24355 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24356 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24357 $(HOST_EXPORTS) \
24358 $(POSTSTAGE1_HOST_EXPORTS) \
24359 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24360 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24361 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24362 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24363 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24364 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24365 case $(srcdir) in \
24366 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24367 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24368 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24369 esac; \
24370 module_srcdir=libiconv; \
24371 $(SHELL) $$s/$$module_srcdir/configure \
24372 --srcdir=$${topdir}/$$module_srcdir \
24373 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24374 --target=${target_alias} \
24375 --with-build-libsubdir=$(HOST_SUBDIR) \
24376 $(STAGEfeedback_CONFIGURE_FLAGS) \
24377 --disable-shared
24378@endif libiconv-bootstrap
24379
24380
24381
d545f33b
PB
24382
24383
a90ef4bf
JM
24384.PHONY: all-libiconv maybe-all-libiconv
24385maybe-all-libiconv:
4f0ef2d8 24386@if gcc-bootstrap
a90ef4bf 24387all-libiconv: stage_current
4f0ef2d8 24388@endif gcc-bootstrap
a90ef4bf
JM
24389@if libiconv
24390TARGET-libiconv=all
24391maybe-all-libiconv: all-libiconv
24392all-libiconv: configure-libiconv
4fa63067
NN
24393 @r=`${PWD_COMMAND}`; export r; \
24394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24395 $(HOST_EXPORTS) \
a90ef4bf 24396 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24397 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24398 $(TARGET-libiconv))
24399@endif libiconv
2a4cbe27 24400
a7254363 24401
d545f33b 24402
016a3251
DD
24403.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24404.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24405maybe-all-stage1-libiconv:
24406maybe-clean-stage1-libiconv:
24407@if libiconv-bootstrap
24408maybe-all-stage1-libiconv: all-stage1-libiconv
24409all-stage1: all-stage1-libiconv
24410TARGET-stage1-libiconv = $(TARGET-libiconv)
24411all-stage1-libiconv: configure-stage1-libiconv
24412 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24413 @r=`${PWD_COMMAND}`; export r; \
24414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24415 TFLAGS="$(STAGE1_TFLAGS)"; \
24416 $(HOST_EXPORTS) \
24417 cd $(HOST_SUBDIR)/libiconv && \
24418 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24419 CFLAGS="$(STAGE1_CFLAGS)" \
24420 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24421 LIBCFLAGS="$(LIBCFLAGS)" \
24422 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24423 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24424 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24425 $(EXTRA_HOST_FLAGS) \
24426 $(STAGE1_FLAGS_TO_PASS) \
24427 TFLAGS="$(STAGE1_TFLAGS)" \
24428 $(TARGET-stage1-libiconv)
24429
24430maybe-clean-stage1-libiconv: clean-stage1-libiconv
24431clean-stage1: clean-stage1-libiconv
24432clean-stage1-libiconv:
24433 @if [ $(current_stage) = stage1 ]; then \
24434 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24435 else \
24436 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24437 $(MAKE) stage1-start; \
24438 fi; \
24439 cd $(HOST_SUBDIR)/libiconv && \
24440 $(MAKE) $(EXTRA_HOST_FLAGS) \
24441 $(STAGE1_FLAGS_TO_PASS) clean
24442@endif libiconv-bootstrap
24443
24444
24445.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24446.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24447maybe-all-stage2-libiconv:
24448maybe-clean-stage2-libiconv:
24449@if libiconv-bootstrap
24450maybe-all-stage2-libiconv: all-stage2-libiconv
24451all-stage2: all-stage2-libiconv
24452TARGET-stage2-libiconv = $(TARGET-libiconv)
24453all-stage2-libiconv: configure-stage2-libiconv
24454 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24455 @r=`${PWD_COMMAND}`; export r; \
24456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24457 TFLAGS="$(STAGE2_TFLAGS)"; \
24458 $(HOST_EXPORTS) \
24459 $(POSTSTAGE1_HOST_EXPORTS) \
24460 cd $(HOST_SUBDIR)/libiconv && \
24461 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24462 CFLAGS="$(STAGE2_CFLAGS)" \
24463 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24464 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24465 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24466 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24467 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24468 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24469 TFLAGS="$(STAGE2_TFLAGS)" \
24470 $(TARGET-stage2-libiconv)
24471
24472maybe-clean-stage2-libiconv: clean-stage2-libiconv
24473clean-stage2: clean-stage2-libiconv
24474clean-stage2-libiconv:
24475 @if [ $(current_stage) = stage2 ]; then \
24476 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24477 else \
24478 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24479 $(MAKE) stage2-start; \
24480 fi; \
24481 cd $(HOST_SUBDIR)/libiconv && \
24482 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24483@endif libiconv-bootstrap
24484
24485
24486.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24487.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24488maybe-all-stage3-libiconv:
24489maybe-clean-stage3-libiconv:
24490@if libiconv-bootstrap
24491maybe-all-stage3-libiconv: all-stage3-libiconv
24492all-stage3: all-stage3-libiconv
24493TARGET-stage3-libiconv = $(TARGET-libiconv)
24494all-stage3-libiconv: configure-stage3-libiconv
24495 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24496 @r=`${PWD_COMMAND}`; export r; \
24497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24498 TFLAGS="$(STAGE3_TFLAGS)"; \
24499 $(HOST_EXPORTS) \
24500 $(POSTSTAGE1_HOST_EXPORTS) \
24501 cd $(HOST_SUBDIR)/libiconv && \
24502 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24503 CFLAGS="$(STAGE3_CFLAGS)" \
24504 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24505 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24506 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24507 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24508 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24509 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24510 TFLAGS="$(STAGE3_TFLAGS)" \
24511 $(TARGET-stage3-libiconv)
24512
24513maybe-clean-stage3-libiconv: clean-stage3-libiconv
24514clean-stage3: clean-stage3-libiconv
24515clean-stage3-libiconv:
24516 @if [ $(current_stage) = stage3 ]; then \
24517 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24518 else \
24519 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24520 $(MAKE) stage3-start; \
24521 fi; \
24522 cd $(HOST_SUBDIR)/libiconv && \
24523 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24524@endif libiconv-bootstrap
24525
24526
24527.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24528.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24529maybe-all-stage4-libiconv:
24530maybe-clean-stage4-libiconv:
24531@if libiconv-bootstrap
24532maybe-all-stage4-libiconv: all-stage4-libiconv
24533all-stage4: all-stage4-libiconv
24534TARGET-stage4-libiconv = $(TARGET-libiconv)
24535all-stage4-libiconv: configure-stage4-libiconv
24536 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24537 @r=`${PWD_COMMAND}`; export r; \
24538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24539 TFLAGS="$(STAGE4_TFLAGS)"; \
24540 $(HOST_EXPORTS) \
24541 $(POSTSTAGE1_HOST_EXPORTS) \
24542 cd $(HOST_SUBDIR)/libiconv && \
24543 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24544 CFLAGS="$(STAGE4_CFLAGS)" \
24545 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24546 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24547 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24548 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24549 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24550 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24551 TFLAGS="$(STAGE4_TFLAGS)" \
24552 $(TARGET-stage4-libiconv)
24553
24554maybe-clean-stage4-libiconv: clean-stage4-libiconv
24555clean-stage4: clean-stage4-libiconv
24556clean-stage4-libiconv:
24557 @if [ $(current_stage) = stage4 ]; then \
24558 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24559 else \
24560 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24561 $(MAKE) stage4-start; \
24562 fi; \
24563 cd $(HOST_SUBDIR)/libiconv && \
24564 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24565@endif libiconv-bootstrap
24566
24567
24568.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24569.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24570maybe-all-stageprofile-libiconv:
24571maybe-clean-stageprofile-libiconv:
24572@if libiconv-bootstrap
24573maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24574all-stageprofile: all-stageprofile-libiconv
24575TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24576all-stageprofile-libiconv: configure-stageprofile-libiconv
24577 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24578 @r=`${PWD_COMMAND}`; export r; \
24579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24580 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24581 $(HOST_EXPORTS) \
24582 $(POSTSTAGE1_HOST_EXPORTS) \
24583 cd $(HOST_SUBDIR)/libiconv && \
24584 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24585 CFLAGS="$(STAGEprofile_CFLAGS)" \
24586 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24587 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24588 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24589 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24590 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24591 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24592 TFLAGS="$(STAGEprofile_TFLAGS)" \
24593 $(TARGET-stageprofile-libiconv)
24594
24595maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24596clean-stageprofile: clean-stageprofile-libiconv
24597clean-stageprofile-libiconv:
24598 @if [ $(current_stage) = stageprofile ]; then \
24599 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24600 else \
24601 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24602 $(MAKE) stageprofile-start; \
24603 fi; \
24604 cd $(HOST_SUBDIR)/libiconv && \
24605 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24606@endif libiconv-bootstrap
24607
24608
24609.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24610.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24611maybe-all-stagefeedback-libiconv:
24612maybe-clean-stagefeedback-libiconv:
24613@if libiconv-bootstrap
24614maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24615all-stagefeedback: all-stagefeedback-libiconv
24616TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24617all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24618 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24619 @r=`${PWD_COMMAND}`; export r; \
24620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24621 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24622 $(HOST_EXPORTS) \
24623 $(POSTSTAGE1_HOST_EXPORTS) \
24624 cd $(HOST_SUBDIR)/libiconv && \
24625 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24626 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24627 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24628 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24629 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24630 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24631 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24632 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24633 TFLAGS="$(STAGEfeedback_TFLAGS)" \
24634 $(TARGET-stagefeedback-libiconv)
24635
24636maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24637clean-stagefeedback: clean-stagefeedback-libiconv
24638clean-stagefeedback-libiconv:
24639 @if [ $(current_stage) = stagefeedback ]; then \
24640 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24641 else \
24642 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24643 $(MAKE) stagefeedback-start; \
24644 fi; \
24645 cd $(HOST_SUBDIR)/libiconv && \
24646 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24647@endif libiconv-bootstrap
24648
24649
24650
24651
d545f33b 24652
a90ef4bf
JM
24653.PHONY: check-libiconv maybe-check-libiconv
24654maybe-check-libiconv:
24655@if libiconv
24656maybe-check-libiconv: check-libiconv
2a4cbe27 24657
a90ef4bf 24658check-libiconv:
0aed8855 24659 @: $(MAKE); $(unstage)
4fa63067 24660 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24662 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24663 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24664 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24665
a90ef4bf 24666@endif libiconv
4fa63067 24667
a90ef4bf
JM
24668.PHONY: install-libiconv maybe-install-libiconv
24669maybe-install-libiconv:
24670@if libiconv
24671maybe-install-libiconv: install-libiconv
2a4cbe27 24672
a90ef4bf 24673install-libiconv:
2a4cbe27 24674
a90ef4bf 24675@endif libiconv
9b980aa1 24676
a90ef4bf
JM
24677.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24678maybe-install-strip-libiconv:
24679@if libiconv
24680maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24681
a90ef4bf
JM
24682install-strip-libiconv:
24683
24684@endif libiconv
9b980aa1 24685
56a8fe78 24686# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24687
a90ef4bf
JM
24688.PHONY: maybe-info-libiconv info-libiconv
24689maybe-info-libiconv:
24690@if libiconv
24691maybe-info-libiconv: info-libiconv
4fa63067 24692
016a3251
DD
24693# libiconv doesn't support info.
24694info-libiconv:
2a4cbe27 24695
a90ef4bf 24696@endif libiconv
2a4cbe27 24697
a90ef4bf
JM
24698.PHONY: maybe-dvi-libiconv dvi-libiconv
24699maybe-dvi-libiconv:
24700@if libiconv
24701maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24702
a90ef4bf
JM
24703dvi-libiconv: \
24704 configure-libiconv
a90ef4bf 24705 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24706 r=`${PWD_COMMAND}`; export r; \
24707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24708 $(HOST_EXPORTS) \
b813574b 24709 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24711 done; \
22121df0 24712 echo "Doing dvi in libiconv"; \
a90ef4bf 24713 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24716 "RANLIB=$${RANLIB}" \
0c24b341 24717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24718 dvi) \
2a4cbe27
NN
24719 || exit 1
24720
a90ef4bf 24721@endif libiconv
2a4cbe27 24722
a90ef4bf
JM
24723.PHONY: maybe-pdf-libiconv pdf-libiconv
24724maybe-pdf-libiconv:
24725@if libiconv
24726maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24727
016a3251
DD
24728# libiconv doesn't support pdf.
24729pdf-libiconv:
56a8fe78 24730
a90ef4bf 24731@endif libiconv
56a8fe78 24732
a90ef4bf
JM
24733.PHONY: maybe-html-libiconv html-libiconv
24734maybe-html-libiconv:
24735@if libiconv
24736maybe-html-libiconv: html-libiconv
6d389afc 24737
016a3251
DD
24738# libiconv doesn't support html.
24739html-libiconv:
6d389afc 24740
a90ef4bf 24741@endif libiconv
6d389afc 24742
a90ef4bf
JM
24743.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24744maybe-TAGS-libiconv:
24745@if libiconv
24746maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24747
a90ef4bf
JM
24748TAGS-libiconv: \
24749 configure-libiconv
a90ef4bf 24750 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24751 r=`${PWD_COMMAND}`; export r; \
24752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24753 $(HOST_EXPORTS) \
b813574b 24754 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24756 done; \
22121df0 24757 echo "Doing TAGS in libiconv"; \
a90ef4bf 24758 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24761 "RANLIB=$${RANLIB}" \
0c24b341 24762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24763 TAGS) \
2a4cbe27
NN
24764 || exit 1
24765
a90ef4bf 24766@endif libiconv
2a4cbe27 24767
a90ef4bf
JM
24768.PHONY: maybe-install-info-libiconv install-info-libiconv
24769maybe-install-info-libiconv:
24770@if libiconv
24771maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24772
a90ef4bf
JM
24773# libiconv doesn't support install-info.
24774install-info-libiconv:
2a4cbe27 24775
a90ef4bf 24776@endif libiconv
2a4cbe27 24777
a90ef4bf
JM
24778.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24779maybe-install-pdf-libiconv:
24780@if libiconv
24781maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24782
a90ef4bf
JM
24783# libiconv doesn't support install-pdf.
24784install-pdf-libiconv:
a3ca38d2 24785
a90ef4bf 24786@endif libiconv
a3ca38d2 24787
a90ef4bf
JM
24788.PHONY: maybe-install-html-libiconv install-html-libiconv
24789maybe-install-html-libiconv:
24790@if libiconv
24791maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24792
a90ef4bf
JM
24793# libiconv doesn't support install-html.
24794install-html-libiconv:
108a6f8e 24795
a90ef4bf 24796@endif libiconv
108a6f8e 24797
a90ef4bf
JM
24798.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24799maybe-installcheck-libiconv:
24800@if libiconv
24801maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24802
a90ef4bf
JM
24803installcheck-libiconv: \
24804 configure-libiconv
a90ef4bf 24805 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24806 r=`${PWD_COMMAND}`; export r; \
24807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24808 $(HOST_EXPORTS) \
b813574b 24809 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24811 done; \
22121df0 24812 echo "Doing installcheck in libiconv"; \
a90ef4bf 24813 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24816 "RANLIB=$${RANLIB}" \
0c24b341 24817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24818 installcheck) \
2a4cbe27
NN
24819 || exit 1
24820
a90ef4bf 24821@endif libiconv
2a4cbe27 24822
a90ef4bf
JM
24823.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24824maybe-mostlyclean-libiconv:
24825@if libiconv
24826maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24827
a90ef4bf 24828mostlyclean-libiconv:
a90ef4bf 24829 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24830 r=`${PWD_COMMAND}`; export r; \
24831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24832 $(HOST_EXPORTS) \
b813574b 24833 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24835 done; \
22121df0 24836 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 24837 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24840 "RANLIB=$${RANLIB}" \
0c24b341 24841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24842 mostlyclean) \
2a4cbe27
NN
24843 || exit 1
24844
a90ef4bf 24845@endif libiconv
2a4cbe27 24846
a90ef4bf
JM
24847.PHONY: maybe-clean-libiconv clean-libiconv
24848maybe-clean-libiconv:
24849@if libiconv
24850maybe-clean-libiconv: clean-libiconv
2a4cbe27 24851
a90ef4bf 24852clean-libiconv:
a90ef4bf 24853 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24854 r=`${PWD_COMMAND}`; export r; \
24855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24856 $(HOST_EXPORTS) \
b813574b 24857 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24859 done; \
22121df0 24860 echo "Doing clean in libiconv"; \
a90ef4bf 24861 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24864 "RANLIB=$${RANLIB}" \
0c24b341 24865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24866 clean) \
2a4cbe27
NN
24867 || exit 1
24868
a90ef4bf 24869@endif libiconv
2a4cbe27 24870
a90ef4bf
JM
24871.PHONY: maybe-distclean-libiconv distclean-libiconv
24872maybe-distclean-libiconv:
24873@if libiconv
24874maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 24875
a90ef4bf 24876distclean-libiconv:
a90ef4bf 24877 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24878 r=`${PWD_COMMAND}`; export r; \
24879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24880 $(HOST_EXPORTS) \
b813574b 24881 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24883 done; \
22121df0 24884 echo "Doing distclean in libiconv"; \
a90ef4bf 24885 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24888 "RANLIB=$${RANLIB}" \
0c24b341 24889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24890 distclean) \
2a4cbe27
NN
24891 || exit 1
24892
a90ef4bf 24893@endif libiconv
2a4cbe27 24894
a90ef4bf
JM
24895.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
24896maybe-maintainer-clean-libiconv:
24897@if libiconv
24898maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 24899
a90ef4bf 24900maintainer-clean-libiconv:
a90ef4bf 24901 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24902 r=`${PWD_COMMAND}`; export r; \
24903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24904 $(HOST_EXPORTS) \
b813574b 24905 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24907 done; \
22121df0 24908 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 24909 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24912 "RANLIB=$${RANLIB}" \
0c24b341 24913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24914 maintainer-clean) \
2a4cbe27
NN
24915 || exit 1
24916
a90ef4bf 24917@endif libiconv
2a4cbe27 24918
2a4cbe27 24919
a7254363 24920
a90ef4bf
JM
24921.PHONY: configure-m4 maybe-configure-m4
24922maybe-configure-m4:
4f0ef2d8 24923@if gcc-bootstrap
a90ef4bf 24924configure-m4: stage_current
4f0ef2d8 24925@endif gcc-bootstrap
a90ef4bf
JM
24926@if m4
24927maybe-configure-m4: configure-m4
24928configure-m4:
0aed8855 24929 @: $(MAKE); $(unstage)
c52c6897 24930 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24932 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 24933 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 24934 $(HOST_EXPORTS) \
a90ef4bf
JM
24935 echo Configuring in $(HOST_SUBDIR)/m4; \
24936 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 24937 case $(srcdir) in \
b00612cc 24938 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24939 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 24940 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24941 esac; \
1b6c0831
L
24942 module_srcdir=m4; \
24943 $(SHELL) \
24944 $$s/$$module_srcdir/configure \
24945 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24946 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24947 --target=${target_alias} \
2a4cbe27 24948 || exit 1
a90ef4bf 24949@endif m4
2a4cbe27 24950
a7254363
PB
24951
24952
d545f33b
PB
24953
24954
a90ef4bf
JM
24955.PHONY: all-m4 maybe-all-m4
24956maybe-all-m4:
4f0ef2d8 24957@if gcc-bootstrap
a90ef4bf 24958all-m4: stage_current
4f0ef2d8 24959@endif gcc-bootstrap
a90ef4bf
JM
24960@if m4
24961TARGET-m4=all
24962maybe-all-m4: all-m4
24963all-m4: configure-m4
0aed8855 24964 @: $(MAKE); $(unstage)
4fa63067
NN
24965 @r=`${PWD_COMMAND}`; export r; \
24966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24967 $(HOST_EXPORTS) \
a90ef4bf 24968 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 24969 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24970 $(TARGET-m4))
24971@endif m4
2a4cbe27 24972
a7254363 24973
d545f33b
PB
24974
24975
a90ef4bf
JM
24976.PHONY: check-m4 maybe-check-m4
24977maybe-check-m4:
24978@if m4
24979maybe-check-m4: check-m4
2a4cbe27 24980
a90ef4bf 24981check-m4:
0aed8855 24982 @: $(MAKE); $(unstage)
4fa63067 24983 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 24985 $(HOST_EXPORTS) \
a90ef4bf 24986 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 24987 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24988
a90ef4bf 24989@endif m4
2a4cbe27 24990
a90ef4bf
JM
24991.PHONY: install-m4 maybe-install-m4
24992maybe-install-m4:
24993@if m4
24994maybe-install-m4: install-m4
2a4cbe27 24995
a90ef4bf 24996install-m4: installdirs
0aed8855 24997 @: $(MAKE); $(unstage)
4fa63067 24998 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25000 $(HOST_EXPORTS) \
a90ef4bf 25001 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 25002 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25003
a90ef4bf 25004@endif m4
2a4cbe27 25005
a90ef4bf
JM
25006.PHONY: install-strip-m4 maybe-install-strip-m4
25007maybe-install-strip-m4:
25008@if m4
25009maybe-install-strip-m4: install-strip-m4
9b980aa1 25010
a90ef4bf 25011install-strip-m4: installdirs
9b980aa1
RW
25012 @: $(MAKE); $(unstage)
25013 @r=`${PWD_COMMAND}`; export r; \
25014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25015 $(HOST_EXPORTS) \
a90ef4bf 25016 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25017 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25018
a90ef4bf 25019@endif m4
9b980aa1 25020
56a8fe78 25021# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25022
a90ef4bf
JM
25023.PHONY: maybe-info-m4 info-m4
25024maybe-info-m4:
25025@if m4
25026maybe-info-m4: info-m4
4fa63067 25027
a90ef4bf
JM
25028info-m4: \
25029 configure-m4
0aed8855 25030 @: $(MAKE); $(unstage)
a90ef4bf 25031 @[ -f ./m4/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; \
22121df0 25038 echo "Doing info in m4"; \
a90ef4bf 25039 (cd $(HOST_SUBDIR)/m4 && \
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 info) \
2a4cbe27
NN
25045 || exit 1
25046
a90ef4bf 25047@endif m4
2a4cbe27 25048
a90ef4bf
JM
25049.PHONY: maybe-dvi-m4 dvi-m4
25050maybe-dvi-m4:
25051@if m4
25052maybe-dvi-m4: dvi-m4
2a4cbe27 25053
a90ef4bf
JM
25054dvi-m4: \
25055 configure-m4
0aed8855 25056 @: $(MAKE); $(unstage)
a90ef4bf 25057 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25058 r=`${PWD_COMMAND}`; export r; \
25059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25060 $(HOST_EXPORTS) \
b813574b 25061 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25063 done; \
22121df0 25064 echo "Doing dvi in m4"; \
a90ef4bf 25065 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25068 "RANLIB=$${RANLIB}" \
0c24b341 25069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25070 dvi) \
2a4cbe27
NN
25071 || exit 1
25072
a90ef4bf 25073@endif m4
2a4cbe27 25074
a90ef4bf
JM
25075.PHONY: maybe-pdf-m4 pdf-m4
25076maybe-pdf-m4:
25077@if m4
25078maybe-pdf-m4: pdf-m4
56a8fe78 25079
a90ef4bf
JM
25080pdf-m4: \
25081 configure-m4
56a8fe78 25082 @: $(MAKE); $(unstage)
a90ef4bf 25083 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25084 r=`${PWD_COMMAND}`; export r; \
25085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25086 $(HOST_EXPORTS) \
25087 for flag in $(EXTRA_HOST_FLAGS) ; do \
25088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25089 done; \
22121df0 25090 echo "Doing pdf in m4"; \
a90ef4bf 25091 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25094 "RANLIB=$${RANLIB}" \
0c24b341 25095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25096 pdf) \
25097 || exit 1
25098
a90ef4bf 25099@endif m4
56a8fe78 25100
a90ef4bf
JM
25101.PHONY: maybe-html-m4 html-m4
25102maybe-html-m4:
25103@if m4
25104maybe-html-m4: html-m4
6d389afc 25105
a90ef4bf
JM
25106html-m4: \
25107 configure-m4
0aed8855 25108 @: $(MAKE); $(unstage)
a90ef4bf 25109 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25110 r=`${PWD_COMMAND}`; export r; \
25111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25112 $(HOST_EXPORTS) \
25113 for flag in $(EXTRA_HOST_FLAGS) ; do \
25114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25115 done; \
22121df0 25116 echo "Doing html in m4"; \
a90ef4bf 25117 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25120 "RANLIB=$${RANLIB}" \
0c24b341 25121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25122 html) \
25123 || exit 1
25124
a90ef4bf 25125@endif m4
6d389afc 25126
a90ef4bf
JM
25127.PHONY: maybe-TAGS-m4 TAGS-m4
25128maybe-TAGS-m4:
25129@if m4
25130maybe-TAGS-m4: TAGS-m4
2a4cbe27 25131
a90ef4bf
JM
25132TAGS-m4: \
25133 configure-m4
0aed8855 25134 @: $(MAKE); $(unstage)
a90ef4bf 25135 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25136 r=`${PWD_COMMAND}`; export r; \
25137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25138 $(HOST_EXPORTS) \
b813574b 25139 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25141 done; \
22121df0 25142 echo "Doing TAGS in m4"; \
a90ef4bf 25143 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25146 "RANLIB=$${RANLIB}" \
0c24b341 25147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25148 TAGS) \
2a4cbe27
NN
25149 || exit 1
25150
a90ef4bf 25151@endif m4
2a4cbe27 25152
a90ef4bf
JM
25153.PHONY: maybe-install-info-m4 install-info-m4
25154maybe-install-info-m4:
25155@if m4
25156maybe-install-info-m4: install-info-m4
2a4cbe27 25157
a90ef4bf
JM
25158install-info-m4: \
25159 configure-m4 \
25160 info-m4
0aed8855 25161 @: $(MAKE); $(unstage)
a90ef4bf 25162 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25163 r=`${PWD_COMMAND}`; export r; \
25164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25165 $(HOST_EXPORTS) \
b813574b 25166 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25168 done; \
22121df0 25169 echo "Doing install-info in m4"; \
a90ef4bf 25170 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25173 "RANLIB=$${RANLIB}" \
0c24b341 25174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25175 install-info) \
2a4cbe27
NN
25176 || exit 1
25177
a90ef4bf 25178@endif m4
2a4cbe27 25179
a90ef4bf
JM
25180.PHONY: maybe-install-pdf-m4 install-pdf-m4
25181maybe-install-pdf-m4:
25182@if m4
25183maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25184
a90ef4bf
JM
25185install-pdf-m4: \
25186 configure-m4 \
25187 pdf-m4
a3ca38d2 25188 @: $(MAKE); $(unstage)
a90ef4bf 25189 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25190 r=`${PWD_COMMAND}`; export r; \
25191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25192 $(HOST_EXPORTS) \
25193 for flag in $(EXTRA_HOST_FLAGS) ; do \
25194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25195 done; \
22121df0 25196 echo "Doing install-pdf in m4"; \
a90ef4bf 25197 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25200 "RANLIB=$${RANLIB}" \
0c24b341 25201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25202 install-pdf) \
25203 || exit 1
25204
a90ef4bf 25205@endif m4
a3ca38d2 25206
a90ef4bf
JM
25207.PHONY: maybe-install-html-m4 install-html-m4
25208maybe-install-html-m4:
25209@if m4
25210maybe-install-html-m4: install-html-m4
108a6f8e 25211
a90ef4bf
JM
25212install-html-m4: \
25213 configure-m4 \
25214 html-m4
108a6f8e 25215 @: $(MAKE); $(unstage)
a90ef4bf 25216 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25217 r=`${PWD_COMMAND}`; export r; \
25218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25219 $(HOST_EXPORTS) \
25220 for flag in $(EXTRA_HOST_FLAGS) ; do \
25221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25222 done; \
22121df0 25223 echo "Doing install-html in m4"; \
a90ef4bf 25224 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25227 "RANLIB=$${RANLIB}" \
0c24b341 25228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25229 install-html) \
25230 || exit 1
25231
a90ef4bf 25232@endif m4
108a6f8e 25233
a90ef4bf
JM
25234.PHONY: maybe-installcheck-m4 installcheck-m4
25235maybe-installcheck-m4:
25236@if m4
25237maybe-installcheck-m4: installcheck-m4
2a4cbe27 25238
a90ef4bf
JM
25239installcheck-m4: \
25240 configure-m4
0aed8855 25241 @: $(MAKE); $(unstage)
a90ef4bf 25242 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25243 r=`${PWD_COMMAND}`; export r; \
25244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25245 $(HOST_EXPORTS) \
b813574b 25246 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25248 done; \
22121df0 25249 echo "Doing installcheck in m4"; \
a90ef4bf 25250 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25253 "RANLIB=$${RANLIB}" \
0c24b341 25254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25255 installcheck) \
2a4cbe27
NN
25256 || exit 1
25257
a90ef4bf 25258@endif m4
2a4cbe27 25259
a90ef4bf
JM
25260.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25261maybe-mostlyclean-m4:
25262@if m4
25263maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25264
a90ef4bf 25265mostlyclean-m4:
0aed8855 25266 @: $(MAKE); $(unstage)
a90ef4bf 25267 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25268 r=`${PWD_COMMAND}`; export r; \
25269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25270 $(HOST_EXPORTS) \
b813574b 25271 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25273 done; \
22121df0 25274 echo "Doing mostlyclean in m4"; \
a90ef4bf 25275 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25278 "RANLIB=$${RANLIB}" \
0c24b341 25279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25280 mostlyclean) \
2a4cbe27
NN
25281 || exit 1
25282
a90ef4bf 25283@endif m4
2a4cbe27 25284
a90ef4bf
JM
25285.PHONY: maybe-clean-m4 clean-m4
25286maybe-clean-m4:
25287@if m4
25288maybe-clean-m4: clean-m4
2a4cbe27 25289
a90ef4bf 25290clean-m4:
0aed8855 25291 @: $(MAKE); $(unstage)
a90ef4bf 25292 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25293 r=`${PWD_COMMAND}`; export r; \
25294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25295 $(HOST_EXPORTS) \
b813574b 25296 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25298 done; \
22121df0 25299 echo "Doing clean in m4"; \
a90ef4bf 25300 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25303 "RANLIB=$${RANLIB}" \
0c24b341 25304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25305 clean) \
2a4cbe27
NN
25306 || exit 1
25307
a90ef4bf 25308@endif m4
2a4cbe27 25309
a90ef4bf
JM
25310.PHONY: maybe-distclean-m4 distclean-m4
25311maybe-distclean-m4:
25312@if m4
25313maybe-distclean-m4: distclean-m4
2a4cbe27 25314
a90ef4bf 25315distclean-m4:
0aed8855 25316 @: $(MAKE); $(unstage)
a90ef4bf 25317 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25318 r=`${PWD_COMMAND}`; export r; \
25319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25320 $(HOST_EXPORTS) \
b813574b 25321 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25323 done; \
22121df0 25324 echo "Doing distclean in m4"; \
a90ef4bf 25325 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25328 "RANLIB=$${RANLIB}" \
0c24b341 25329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25330 distclean) \
2a4cbe27
NN
25331 || exit 1
25332
a90ef4bf 25333@endif m4
2a4cbe27 25334
a90ef4bf
JM
25335.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25336maybe-maintainer-clean-m4:
25337@if m4
25338maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25339
a90ef4bf 25340maintainer-clean-m4:
0aed8855 25341 @: $(MAKE); $(unstage)
a90ef4bf 25342 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25343 r=`${PWD_COMMAND}`; export r; \
25344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25345 $(HOST_EXPORTS) \
b813574b 25346 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25348 done; \
22121df0 25349 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25350 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25353 "RANLIB=$${RANLIB}" \
0c24b341 25354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25355 maintainer-clean) \
2a4cbe27
NN
25356 || exit 1
25357
a90ef4bf 25358@endif m4
2a4cbe27 25359
2a4cbe27 25360
a7254363 25361
a90ef4bf
JM
25362.PHONY: configure-readline maybe-configure-readline
25363maybe-configure-readline:
4f0ef2d8 25364@if gcc-bootstrap
a90ef4bf 25365configure-readline: stage_current
4f0ef2d8 25366@endif gcc-bootstrap
a90ef4bf
JM
25367@if readline
25368maybe-configure-readline: configure-readline
25369configure-readline:
0aed8855 25370 @: $(MAKE); $(unstage)
c52c6897 25371 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25373 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25374 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25375 $(HOST_EXPORTS) \
a90ef4bf
JM
25376 echo Configuring in $(HOST_SUBDIR)/readline; \
25377 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25378 case $(srcdir) in \
b00612cc 25379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25380 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25382 esac; \
1b6c0831
L
25383 module_srcdir=readline; \
25384 $(SHELL) \
25385 $$s/$$module_srcdir/configure \
25386 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25387 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25388 --target=${target_alias} \
2a4cbe27 25389 || exit 1
a90ef4bf 25390@endif readline
2a4cbe27 25391
a7254363
PB
25392
25393
d545f33b
PB
25394
25395
a90ef4bf
JM
25396.PHONY: all-readline maybe-all-readline
25397maybe-all-readline:
4f0ef2d8 25398@if gcc-bootstrap
a90ef4bf 25399all-readline: stage_current
4f0ef2d8 25400@endif gcc-bootstrap
a90ef4bf
JM
25401@if readline
25402TARGET-readline=all
25403maybe-all-readline: all-readline
25404all-readline: configure-readline
0aed8855 25405 @: $(MAKE); $(unstage)
4fa63067
NN
25406 @r=`${PWD_COMMAND}`; export r; \
25407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25408 $(HOST_EXPORTS) \
a90ef4bf 25409 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25410 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25411 $(TARGET-readline))
25412@endif readline
2a4cbe27 25413
a7254363 25414
d545f33b
PB
25415
25416
a90ef4bf
JM
25417.PHONY: check-readline maybe-check-readline
25418maybe-check-readline:
25419@if readline
25420maybe-check-readline: check-readline
2a4cbe27 25421
a90ef4bf 25422check-readline:
0aed8855 25423 @: $(MAKE); $(unstage)
4fa63067 25424 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25426 $(HOST_EXPORTS) \
a90ef4bf 25427 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25428 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25429
a90ef4bf 25430@endif readline
2a4cbe27 25431
a90ef4bf
JM
25432.PHONY: install-readline maybe-install-readline
25433maybe-install-readline:
25434@if readline
25435maybe-install-readline: install-readline
2a4cbe27 25436
a90ef4bf 25437install-readline: installdirs
0aed8855 25438 @: $(MAKE); $(unstage)
4fa63067
NN
25439 @r=`${PWD_COMMAND}`; export r; \
25440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25441 $(HOST_EXPORTS) \
a90ef4bf 25442 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25443 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25444
a90ef4bf 25445@endif readline
9b980aa1 25446
a90ef4bf
JM
25447.PHONY: install-strip-readline maybe-install-strip-readline
25448maybe-install-strip-readline:
25449@if readline
25450maybe-install-strip-readline: install-strip-readline
25451
25452install-strip-readline: installdirs
9b980aa1
RW
25453 @: $(MAKE); $(unstage)
25454 @r=`${PWD_COMMAND}`; export r; \
25455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25456 $(HOST_EXPORTS) \
a90ef4bf 25457 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25458 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25459
a90ef4bf 25460@endif readline
9b980aa1 25461
56a8fe78 25462# Other targets (info, dvi, pdf, etc.)
4fa63067 25463
a90ef4bf
JM
25464.PHONY: maybe-info-readline info-readline
25465maybe-info-readline:
25466@if readline
25467maybe-info-readline: info-readline
4fa63067 25468
a90ef4bf
JM
25469info-readline: \
25470 configure-readline
0aed8855 25471 @: $(MAKE); $(unstage)
a90ef4bf 25472 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25473 r=`${PWD_COMMAND}`; export r; \
25474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25475 $(HOST_EXPORTS) \
b813574b 25476 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25478 done; \
22121df0 25479 echo "Doing info in readline"; \
a90ef4bf 25480 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25483 "RANLIB=$${RANLIB}" \
0c24b341 25484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25485 info) \
2a4cbe27
NN
25486 || exit 1
25487
a90ef4bf 25488@endif readline
2a4cbe27 25489
a90ef4bf
JM
25490.PHONY: maybe-dvi-readline dvi-readline
25491maybe-dvi-readline:
25492@if readline
25493maybe-dvi-readline: dvi-readline
2a4cbe27 25494
a90ef4bf
JM
25495dvi-readline: \
25496 configure-readline
0aed8855 25497 @: $(MAKE); $(unstage)
a90ef4bf 25498 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25499 r=`${PWD_COMMAND}`; export r; \
25500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25501 $(HOST_EXPORTS) \
b813574b 25502 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25504 done; \
22121df0 25505 echo "Doing dvi in readline"; \
a90ef4bf 25506 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25509 "RANLIB=$${RANLIB}" \
0c24b341 25510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25511 dvi) \
2a4cbe27
NN
25512 || exit 1
25513
a90ef4bf 25514@endif readline
2a4cbe27 25515
a90ef4bf
JM
25516.PHONY: maybe-pdf-readline pdf-readline
25517maybe-pdf-readline:
25518@if readline
25519maybe-pdf-readline: pdf-readline
56a8fe78 25520
a90ef4bf
JM
25521pdf-readline: \
25522 configure-readline
56a8fe78 25523 @: $(MAKE); $(unstage)
a90ef4bf 25524 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25525 r=`${PWD_COMMAND}`; export r; \
25526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25527 $(HOST_EXPORTS) \
25528 for flag in $(EXTRA_HOST_FLAGS) ; do \
25529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25530 done; \
22121df0 25531 echo "Doing pdf in readline"; \
a90ef4bf 25532 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25535 "RANLIB=$${RANLIB}" \
0c24b341 25536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25537 pdf) \
25538 || exit 1
25539
a90ef4bf 25540@endif readline
56a8fe78 25541
a90ef4bf
JM
25542.PHONY: maybe-html-readline html-readline
25543maybe-html-readline:
25544@if readline
25545maybe-html-readline: html-readline
6d389afc 25546
a90ef4bf
JM
25547html-readline: \
25548 configure-readline
0aed8855 25549 @: $(MAKE); $(unstage)
a90ef4bf 25550 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25551 r=`${PWD_COMMAND}`; export r; \
25552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25553 $(HOST_EXPORTS) \
25554 for flag in $(EXTRA_HOST_FLAGS) ; do \
25555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25556 done; \
22121df0 25557 echo "Doing html in readline"; \
a90ef4bf 25558 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25561 "RANLIB=$${RANLIB}" \
0c24b341 25562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25563 html) \
25564 || exit 1
25565
a90ef4bf 25566@endif readline
6d389afc 25567
a90ef4bf
JM
25568.PHONY: maybe-TAGS-readline TAGS-readline
25569maybe-TAGS-readline:
25570@if readline
25571maybe-TAGS-readline: TAGS-readline
2a4cbe27 25572
a90ef4bf
JM
25573TAGS-readline: \
25574 configure-readline
0aed8855 25575 @: $(MAKE); $(unstage)
a90ef4bf 25576 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25577 r=`${PWD_COMMAND}`; export r; \
25578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25579 $(HOST_EXPORTS) \
b813574b 25580 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25582 done; \
22121df0 25583 echo "Doing TAGS in readline"; \
a90ef4bf 25584 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25587 "RANLIB=$${RANLIB}" \
0c24b341 25588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25589 TAGS) \
2a4cbe27
NN
25590 || exit 1
25591
a90ef4bf 25592@endif readline
2a4cbe27 25593
a90ef4bf
JM
25594.PHONY: maybe-install-info-readline install-info-readline
25595maybe-install-info-readline:
25596@if readline
25597maybe-install-info-readline: install-info-readline
2a4cbe27 25598
a90ef4bf
JM
25599install-info-readline: \
25600 configure-readline \
25601 info-readline
0aed8855 25602 @: $(MAKE); $(unstage)
a90ef4bf 25603 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25604 r=`${PWD_COMMAND}`; export r; \
25605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25606 $(HOST_EXPORTS) \
b813574b 25607 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25609 done; \
22121df0 25610 echo "Doing install-info in readline"; \
a90ef4bf 25611 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25614 "RANLIB=$${RANLIB}" \
0c24b341 25615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25616 install-info) \
2a4cbe27
NN
25617 || exit 1
25618
a90ef4bf 25619@endif readline
2a4cbe27 25620
a90ef4bf
JM
25621.PHONY: maybe-install-pdf-readline install-pdf-readline
25622maybe-install-pdf-readline:
25623@if readline
25624maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25625
a90ef4bf
JM
25626install-pdf-readline: \
25627 configure-readline \
25628 pdf-readline
a3ca38d2 25629 @: $(MAKE); $(unstage)
a90ef4bf 25630 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25631 r=`${PWD_COMMAND}`; export r; \
25632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25633 $(HOST_EXPORTS) \
25634 for flag in $(EXTRA_HOST_FLAGS) ; do \
25635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25636 done; \
22121df0 25637 echo "Doing install-pdf in readline"; \
a90ef4bf 25638 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25641 "RANLIB=$${RANLIB}" \
0c24b341 25642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25643 install-pdf) \
25644 || exit 1
25645
a90ef4bf 25646@endif readline
a3ca38d2 25647
a90ef4bf
JM
25648.PHONY: maybe-install-html-readline install-html-readline
25649maybe-install-html-readline:
25650@if readline
25651maybe-install-html-readline: install-html-readline
108a6f8e 25652
a90ef4bf
JM
25653install-html-readline: \
25654 configure-readline \
25655 html-readline
108a6f8e 25656 @: $(MAKE); $(unstage)
a90ef4bf 25657 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25658 r=`${PWD_COMMAND}`; export r; \
25659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25660 $(HOST_EXPORTS) \
25661 for flag in $(EXTRA_HOST_FLAGS) ; do \
25662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25663 done; \
22121df0 25664 echo "Doing install-html in readline"; \
a90ef4bf 25665 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25668 "RANLIB=$${RANLIB}" \
0c24b341 25669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25670 install-html) \
25671 || exit 1
25672
a90ef4bf 25673@endif readline
108a6f8e 25674
a90ef4bf
JM
25675.PHONY: maybe-installcheck-readline installcheck-readline
25676maybe-installcheck-readline:
25677@if readline
25678maybe-installcheck-readline: installcheck-readline
2a4cbe27 25679
a90ef4bf
JM
25680installcheck-readline: \
25681 configure-readline
0aed8855 25682 @: $(MAKE); $(unstage)
a90ef4bf 25683 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25684 r=`${PWD_COMMAND}`; export r; \
25685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25686 $(HOST_EXPORTS) \
b813574b 25687 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25689 done; \
22121df0 25690 echo "Doing installcheck in readline"; \
a90ef4bf 25691 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25694 "RANLIB=$${RANLIB}" \
0c24b341 25695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25696 installcheck) \
2a4cbe27
NN
25697 || exit 1
25698
a90ef4bf 25699@endif readline
2a4cbe27 25700
a90ef4bf
JM
25701.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25702maybe-mostlyclean-readline:
25703@if readline
25704maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25705
a90ef4bf 25706mostlyclean-readline:
0aed8855 25707 @: $(MAKE); $(unstage)
a90ef4bf 25708 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25709 r=`${PWD_COMMAND}`; export r; \
25710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25711 $(HOST_EXPORTS) \
b813574b 25712 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25714 done; \
22121df0 25715 echo "Doing mostlyclean in readline"; \
a90ef4bf 25716 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25719 "RANLIB=$${RANLIB}" \
0c24b341 25720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25721 mostlyclean) \
2a4cbe27
NN
25722 || exit 1
25723
a90ef4bf 25724@endif readline
2a4cbe27 25725
a90ef4bf
JM
25726.PHONY: maybe-clean-readline clean-readline
25727maybe-clean-readline:
25728@if readline
25729maybe-clean-readline: clean-readline
2a4cbe27 25730
a90ef4bf 25731clean-readline:
0aed8855 25732 @: $(MAKE); $(unstage)
a90ef4bf 25733 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25734 r=`${PWD_COMMAND}`; export r; \
25735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25736 $(HOST_EXPORTS) \
b813574b 25737 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25739 done; \
22121df0 25740 echo "Doing clean in readline"; \
a90ef4bf 25741 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25744 "RANLIB=$${RANLIB}" \
0c24b341 25745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25746 clean) \
2a4cbe27
NN
25747 || exit 1
25748
a90ef4bf 25749@endif readline
2a4cbe27 25750
a90ef4bf
JM
25751.PHONY: maybe-distclean-readline distclean-readline
25752maybe-distclean-readline:
25753@if readline
25754maybe-distclean-readline: distclean-readline
2a4cbe27 25755
a90ef4bf 25756distclean-readline:
0aed8855 25757 @: $(MAKE); $(unstage)
a90ef4bf 25758 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25759 r=`${PWD_COMMAND}`; export r; \
25760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25761 $(HOST_EXPORTS) \
b813574b 25762 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25764 done; \
22121df0 25765 echo "Doing distclean in readline"; \
a90ef4bf 25766 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25769 "RANLIB=$${RANLIB}" \
0c24b341 25770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25771 distclean) \
2a4cbe27
NN
25772 || exit 1
25773
a90ef4bf 25774@endif readline
2a4cbe27 25775
a90ef4bf
JM
25776.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25777maybe-maintainer-clean-readline:
25778@if readline
25779maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25780
a90ef4bf 25781maintainer-clean-readline:
0aed8855 25782 @: $(MAKE); $(unstage)
a90ef4bf 25783 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25784 r=`${PWD_COMMAND}`; export r; \
25785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25786 $(HOST_EXPORTS) \
b813574b 25787 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25789 done; \
22121df0 25790 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25791 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25794 "RANLIB=$${RANLIB}" \
0c24b341 25795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25796 maintainer-clean) \
2a4cbe27
NN
25797 || exit 1
25798
a90ef4bf 25799@endif readline
2a4cbe27 25800
2a4cbe27 25801
a7254363 25802
a90ef4bf
JM
25803.PHONY: configure-sid maybe-configure-sid
25804maybe-configure-sid:
4f0ef2d8 25805@if gcc-bootstrap
a90ef4bf 25806configure-sid: stage_current
4f0ef2d8 25807@endif gcc-bootstrap
a90ef4bf
JM
25808@if sid
25809maybe-configure-sid: configure-sid
25810configure-sid:
0aed8855 25811 @: $(MAKE); $(unstage)
c52c6897 25812 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25814 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25815 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25816 $(HOST_EXPORTS) \
a90ef4bf
JM
25817 echo Configuring in $(HOST_SUBDIR)/sid; \
25818 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25819 case $(srcdir) in \
b00612cc 25820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25821 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25823 esac; \
1b6c0831
L
25824 module_srcdir=sid; \
25825 $(SHELL) \
25826 $$s/$$module_srcdir/configure \
25827 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25828 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25829 --target=${target_alias} \
4fa63067 25830 || exit 1
a90ef4bf 25831@endif sid
2a4cbe27 25832
a7254363
PB
25833
25834
d545f33b
PB
25835
25836
a90ef4bf
JM
25837.PHONY: all-sid maybe-all-sid
25838maybe-all-sid:
4f0ef2d8 25839@if gcc-bootstrap
a90ef4bf 25840all-sid: stage_current
4f0ef2d8 25841@endif gcc-bootstrap
a90ef4bf
JM
25842@if sid
25843TARGET-sid=all
25844maybe-all-sid: all-sid
25845all-sid: configure-sid
0aed8855 25846 @: $(MAKE); $(unstage)
4fa63067
NN
25847 @r=`${PWD_COMMAND}`; export r; \
25848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25849 $(HOST_EXPORTS) \
a90ef4bf 25850 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25851 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25852 $(TARGET-sid))
25853@endif sid
2a4cbe27 25854
a7254363 25855
d545f33b
PB
25856
25857
a90ef4bf
JM
25858.PHONY: check-sid maybe-check-sid
25859maybe-check-sid:
25860@if sid
25861maybe-check-sid: check-sid
2a4cbe27 25862
a90ef4bf 25863check-sid:
0aed8855 25864 @: $(MAKE); $(unstage)
4fa63067 25865 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25867 $(HOST_EXPORTS) \
a90ef4bf 25868 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25869 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25870
a90ef4bf 25871@endif sid
2a4cbe27 25872
a90ef4bf
JM
25873.PHONY: install-sid maybe-install-sid
25874maybe-install-sid:
25875@if sid
25876maybe-install-sid: install-sid
2a4cbe27 25877
a90ef4bf 25878install-sid: installdirs
0aed8855 25879 @: $(MAKE); $(unstage)
4fa63067 25880 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25882 $(HOST_EXPORTS) \
a90ef4bf 25883 (cd $(HOST_SUBDIR)/sid && \
2da12f12 25884 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25885
a90ef4bf 25886@endif sid
2a4cbe27 25887
a90ef4bf
JM
25888.PHONY: install-strip-sid maybe-install-strip-sid
25889maybe-install-strip-sid:
25890@if sid
25891maybe-install-strip-sid: install-strip-sid
9b980aa1 25892
a90ef4bf 25893install-strip-sid: installdirs
9b980aa1
RW
25894 @: $(MAKE); $(unstage)
25895 @r=`${PWD_COMMAND}`; export r; \
25896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25897 $(HOST_EXPORTS) \
a90ef4bf 25898 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
25899 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25900
a90ef4bf 25901@endif sid
9b980aa1 25902
56a8fe78 25903# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25904
a90ef4bf
JM
25905.PHONY: maybe-info-sid info-sid
25906maybe-info-sid:
25907@if sid
25908maybe-info-sid: info-sid
4fa63067 25909
a90ef4bf
JM
25910info-sid: \
25911 configure-sid
0aed8855 25912 @: $(MAKE); $(unstage)
a90ef4bf 25913 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25914 r=`${PWD_COMMAND}`; export r; \
25915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25916 $(HOST_EXPORTS) \
b813574b 25917 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25919 done; \
22121df0 25920 echo "Doing info in sid"; \
a90ef4bf 25921 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25924 "RANLIB=$${RANLIB}" \
0c24b341 25925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25926 info) \
2a4cbe27
NN
25927 || exit 1
25928
a90ef4bf 25929@endif sid
2a4cbe27 25930
a90ef4bf
JM
25931.PHONY: maybe-dvi-sid dvi-sid
25932maybe-dvi-sid:
25933@if sid
25934maybe-dvi-sid: dvi-sid
2a4cbe27 25935
a90ef4bf
JM
25936dvi-sid: \
25937 configure-sid
0aed8855 25938 @: $(MAKE); $(unstage)
a90ef4bf 25939 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25940 r=`${PWD_COMMAND}`; export r; \
25941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25942 $(HOST_EXPORTS) \
b813574b 25943 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25945 done; \
22121df0 25946 echo "Doing dvi in sid"; \
a90ef4bf 25947 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25950 "RANLIB=$${RANLIB}" \
0c24b341 25951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25952 dvi) \
2a4cbe27
NN
25953 || exit 1
25954
a90ef4bf 25955@endif sid
2a4cbe27 25956
a90ef4bf
JM
25957.PHONY: maybe-pdf-sid pdf-sid
25958maybe-pdf-sid:
25959@if sid
25960maybe-pdf-sid: pdf-sid
56a8fe78 25961
a90ef4bf
JM
25962pdf-sid: \
25963 configure-sid
56a8fe78 25964 @: $(MAKE); $(unstage)
a90ef4bf 25965 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
25966 r=`${PWD_COMMAND}`; export r; \
25967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25968 $(HOST_EXPORTS) \
25969 for flag in $(EXTRA_HOST_FLAGS) ; do \
25970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25971 done; \
22121df0 25972 echo "Doing pdf in sid"; \
a90ef4bf 25973 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
25974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25976 "RANLIB=$${RANLIB}" \
0c24b341 25977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25978 pdf) \
25979 || exit 1
25980
a90ef4bf 25981@endif sid
56a8fe78 25982
a90ef4bf
JM
25983.PHONY: maybe-html-sid html-sid
25984maybe-html-sid:
25985@if sid
25986maybe-html-sid: html-sid
6d389afc 25987
a90ef4bf
JM
25988html-sid: \
25989 configure-sid
0aed8855 25990 @: $(MAKE); $(unstage)
a90ef4bf 25991 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
25992 r=`${PWD_COMMAND}`; export r; \
25993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25994 $(HOST_EXPORTS) \
25995 for flag in $(EXTRA_HOST_FLAGS) ; do \
25996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25997 done; \
22121df0 25998 echo "Doing html in sid"; \
a90ef4bf 25999 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
26000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26002 "RANLIB=$${RANLIB}" \
0c24b341 26003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26004 html) \
26005 || exit 1
26006
a90ef4bf 26007@endif sid
6d389afc 26008
a90ef4bf
JM
26009.PHONY: maybe-TAGS-sid TAGS-sid
26010maybe-TAGS-sid:
26011@if sid
26012maybe-TAGS-sid: TAGS-sid
2a4cbe27 26013
a90ef4bf
JM
26014TAGS-sid: \
26015 configure-sid
0aed8855 26016 @: $(MAKE); $(unstage)
a90ef4bf 26017 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26018 r=`${PWD_COMMAND}`; export r; \
26019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26020 $(HOST_EXPORTS) \
b813574b 26021 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26023 done; \
22121df0 26024 echo "Doing TAGS in sid"; \
a90ef4bf 26025 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26028 "RANLIB=$${RANLIB}" \
0c24b341 26029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26030 TAGS) \
2a4cbe27
NN
26031 || exit 1
26032
a90ef4bf 26033@endif sid
2a4cbe27 26034
a90ef4bf
JM
26035.PHONY: maybe-install-info-sid install-info-sid
26036maybe-install-info-sid:
26037@if sid
26038maybe-install-info-sid: install-info-sid
2a4cbe27 26039
a90ef4bf
JM
26040install-info-sid: \
26041 configure-sid \
26042 info-sid
0aed8855 26043 @: $(MAKE); $(unstage)
a90ef4bf 26044 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26045 r=`${PWD_COMMAND}`; export r; \
26046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26047 $(HOST_EXPORTS) \
b813574b 26048 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26050 done; \
22121df0 26051 echo "Doing install-info in sid"; \
a90ef4bf 26052 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26055 "RANLIB=$${RANLIB}" \
0c24b341 26056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26057 install-info) \
2a4cbe27
NN
26058 || exit 1
26059
a90ef4bf 26060@endif sid
2a4cbe27 26061
a90ef4bf
JM
26062.PHONY: maybe-install-pdf-sid install-pdf-sid
26063maybe-install-pdf-sid:
26064@if sid
26065maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26066
a90ef4bf
JM
26067install-pdf-sid: \
26068 configure-sid \
26069 pdf-sid
a3ca38d2 26070 @: $(MAKE); $(unstage)
a90ef4bf 26071 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26072 r=`${PWD_COMMAND}`; export r; \
26073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26074 $(HOST_EXPORTS) \
26075 for flag in $(EXTRA_HOST_FLAGS) ; do \
26076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26077 done; \
22121df0 26078 echo "Doing install-pdf in sid"; \
a90ef4bf 26079 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26082 "RANLIB=$${RANLIB}" \
0c24b341 26083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26084 install-pdf) \
26085 || exit 1
26086
a90ef4bf 26087@endif sid
a3ca38d2 26088
a90ef4bf
JM
26089.PHONY: maybe-install-html-sid install-html-sid
26090maybe-install-html-sid:
26091@if sid
26092maybe-install-html-sid: install-html-sid
108a6f8e 26093
a90ef4bf
JM
26094install-html-sid: \
26095 configure-sid \
26096 html-sid
108a6f8e 26097 @: $(MAKE); $(unstage)
a90ef4bf 26098 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26099 r=`${PWD_COMMAND}`; export r; \
26100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26101 $(HOST_EXPORTS) \
26102 for flag in $(EXTRA_HOST_FLAGS) ; do \
26103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26104 done; \
22121df0 26105 echo "Doing install-html in sid"; \
a90ef4bf 26106 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26109 "RANLIB=$${RANLIB}" \
0c24b341 26110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26111 install-html) \
26112 || exit 1
26113
a90ef4bf 26114@endif sid
108a6f8e 26115
a90ef4bf
JM
26116.PHONY: maybe-installcheck-sid installcheck-sid
26117maybe-installcheck-sid:
26118@if sid
26119maybe-installcheck-sid: installcheck-sid
2a4cbe27 26120
a90ef4bf
JM
26121installcheck-sid: \
26122 configure-sid
0aed8855 26123 @: $(MAKE); $(unstage)
a90ef4bf 26124 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26125 r=`${PWD_COMMAND}`; export r; \
26126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26127 $(HOST_EXPORTS) \
b813574b 26128 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26130 done; \
22121df0 26131 echo "Doing installcheck in sid"; \
a90ef4bf 26132 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26135 "RANLIB=$${RANLIB}" \
0c24b341 26136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26137 installcheck) \
2a4cbe27
NN
26138 || exit 1
26139
a90ef4bf 26140@endif sid
2a4cbe27 26141
a90ef4bf
JM
26142.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26143maybe-mostlyclean-sid:
26144@if sid
26145maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26146
a90ef4bf 26147mostlyclean-sid:
0aed8855 26148 @: $(MAKE); $(unstage)
a90ef4bf 26149 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26150 r=`${PWD_COMMAND}`; export r; \
26151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26152 $(HOST_EXPORTS) \
b813574b 26153 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26155 done; \
22121df0 26156 echo "Doing mostlyclean in sid"; \
a90ef4bf 26157 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26160 "RANLIB=$${RANLIB}" \
0c24b341 26161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26162 mostlyclean) \
2a4cbe27
NN
26163 || exit 1
26164
a90ef4bf 26165@endif sid
2a4cbe27 26166
a90ef4bf
JM
26167.PHONY: maybe-clean-sid clean-sid
26168maybe-clean-sid:
26169@if sid
26170maybe-clean-sid: clean-sid
2a4cbe27 26171
a90ef4bf 26172clean-sid:
0aed8855 26173 @: $(MAKE); $(unstage)
a90ef4bf 26174 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26175 r=`${PWD_COMMAND}`; export r; \
26176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26177 $(HOST_EXPORTS) \
b813574b 26178 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26180 done; \
22121df0 26181 echo "Doing clean in sid"; \
a90ef4bf 26182 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26185 "RANLIB=$${RANLIB}" \
0c24b341 26186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26187 clean) \
2a4cbe27
NN
26188 || exit 1
26189
a90ef4bf 26190@endif sid
2a4cbe27 26191
a90ef4bf
JM
26192.PHONY: maybe-distclean-sid distclean-sid
26193maybe-distclean-sid:
26194@if sid
26195maybe-distclean-sid: distclean-sid
2a4cbe27 26196
a90ef4bf 26197distclean-sid:
0aed8855 26198 @: $(MAKE); $(unstage)
a90ef4bf 26199 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26200 r=`${PWD_COMMAND}`; export r; \
26201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26202 $(HOST_EXPORTS) \
b813574b 26203 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26205 done; \
22121df0 26206 echo "Doing distclean in sid"; \
a90ef4bf 26207 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26210 "RANLIB=$${RANLIB}" \
0c24b341 26211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26212 distclean) \
2a4cbe27
NN
26213 || exit 1
26214
a90ef4bf 26215@endif sid
2a4cbe27 26216
a90ef4bf
JM
26217.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26218maybe-maintainer-clean-sid:
26219@if sid
26220maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26221
a90ef4bf 26222maintainer-clean-sid:
0aed8855 26223 @: $(MAKE); $(unstage)
a90ef4bf 26224 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26225 r=`${PWD_COMMAND}`; export r; \
26226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26227 $(HOST_EXPORTS) \
b813574b 26228 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26230 done; \
22121df0 26231 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26232 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26235 "RANLIB=$${RANLIB}" \
0c24b341 26236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26237 maintainer-clean) \
2a4cbe27
NN
26238 || exit 1
26239
a90ef4bf 26240@endif sid
2a4cbe27 26241
a2592b1b 26242
a7254363 26243
a90ef4bf
JM
26244.PHONY: configure-sim maybe-configure-sim
26245maybe-configure-sim:
4f0ef2d8 26246@if gcc-bootstrap
a90ef4bf 26247configure-sim: stage_current
4f0ef2d8 26248@endif gcc-bootstrap
a90ef4bf
JM
26249@if sim
26250maybe-configure-sim: configure-sim
26251configure-sim:
26252 @: $(MAKE); $(unstage)
c52c6897
PB
26253 @r=`${PWD_COMMAND}`; export r; \
26254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26255 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26256 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26257 $(HOST_EXPORTS) \
a90ef4bf
JM
26258 echo Configuring in $(HOST_SUBDIR)/sim; \
26259 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26260 case $(srcdir) in \
b00612cc 26261 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26262 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26263 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26264 esac; \
1b6c0831
L
26265 module_srcdir=sim; \
26266 $(SHELL) \
26267 $$s/$$module_srcdir/configure \
26268 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26269 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26270 --target=${target_alias} \
a2592b1b 26271 || exit 1
a90ef4bf 26272@endif sim
a2592b1b 26273
a7254363
PB
26274
26275
a90ef4bf
JM
26276
26277
26278.PHONY: all-sim maybe-all-sim
26279maybe-all-sim:
26280@if gcc-bootstrap
26281all-sim: stage_current
26282@endif gcc-bootstrap
26283@if sim
26284TARGET-sim=all
26285maybe-all-sim: all-sim
26286all-sim: configure-sim
26287 @: $(MAKE); $(unstage)
c52c6897
PB
26288 @r=`${PWD_COMMAND}`; export r; \
26289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26290 $(HOST_EXPORTS) \
26291 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26292 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26293 $(TARGET-sim))
26294@endif sim
d545f33b 26295
a90ef4bf
JM
26296
26297
26298
26299.PHONY: check-sim maybe-check-sim
26300maybe-check-sim:
26301@if sim
26302maybe-check-sim: check-sim
26303
26304check-sim:
26305 @: $(MAKE); $(unstage)
c52c6897
PB
26306 @r=`${PWD_COMMAND}`; export r; \
26307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26308 $(HOST_EXPORTS) \
a90ef4bf
JM
26309 (cd $(HOST_SUBDIR)/sim && \
26310 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26311
a90ef4bf
JM
26312@endif sim
26313
26314.PHONY: install-sim maybe-install-sim
26315maybe-install-sim:
26316@if sim
26317maybe-install-sim: install-sim
26318
26319install-sim: installdirs
26320 @: $(MAKE); $(unstage)
c52c6897
PB
26321 @r=`${PWD_COMMAND}`; export r; \
26322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26323 $(HOST_EXPORTS) \
a90ef4bf
JM
26324 (cd $(HOST_SUBDIR)/sim && \
26325 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26326
a90ef4bf
JM
26327@endif sim
26328
26329.PHONY: install-strip-sim maybe-install-strip-sim
26330maybe-install-strip-sim:
26331@if sim
26332maybe-install-strip-sim: install-strip-sim
26333
26334install-strip-sim: installdirs
26335 @: $(MAKE); $(unstage)
c52c6897
PB
26336 @r=`${PWD_COMMAND}`; export r; \
26337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26338 $(HOST_EXPORTS) \
a90ef4bf
JM
26339 (cd $(HOST_SUBDIR)/sim && \
26340 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26341
a90ef4bf 26342@endif sim
9b980aa1 26343
56a8fe78 26344# Other targets (info, dvi, pdf, etc.)
4fa63067 26345
a90ef4bf
JM
26346.PHONY: maybe-info-sim info-sim
26347maybe-info-sim:
26348@if sim
26349maybe-info-sim: info-sim
4fa63067 26350
a90ef4bf
JM
26351info-sim: \
26352 configure-sim
26353 @: $(MAKE); $(unstage)
26354 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26355 r=`${PWD_COMMAND}`; export r; \
26356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26357 $(HOST_EXPORTS) \
b813574b 26358 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26360 done; \
22121df0 26361 echo "Doing info in sim"; \
a90ef4bf 26362 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26365 "RANLIB=$${RANLIB}" \
0c24b341 26366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26367 info) \
2a4cbe27
NN
26368 || exit 1
26369
a90ef4bf 26370@endif sim
2a4cbe27 26371
a90ef4bf
JM
26372.PHONY: maybe-dvi-sim dvi-sim
26373maybe-dvi-sim:
26374@if sim
26375maybe-dvi-sim: dvi-sim
2a4cbe27 26376
a90ef4bf
JM
26377dvi-sim: \
26378 configure-sim
26379 @: $(MAKE); $(unstage)
26380 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26381 r=`${PWD_COMMAND}`; export r; \
b40e3958 26382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26383 $(HOST_EXPORTS) \
b813574b 26384 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26386 done; \
22121df0 26387 echo "Doing dvi in sim"; \
a90ef4bf 26388 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26391 "RANLIB=$${RANLIB}" \
0c24b341 26392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26393 dvi) \
2a4cbe27
NN
26394 || exit 1
26395
a90ef4bf 26396@endif sim
2a4cbe27 26397
a90ef4bf
JM
26398.PHONY: maybe-pdf-sim pdf-sim
26399maybe-pdf-sim:
26400@if sim
26401maybe-pdf-sim: pdf-sim
56a8fe78 26402
a90ef4bf
JM
26403pdf-sim: \
26404 configure-sim
26405 @: $(MAKE); $(unstage)
26406 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26407 r=`${PWD_COMMAND}`; export r; \
26408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26409 $(HOST_EXPORTS) \
26410 for flag in $(EXTRA_HOST_FLAGS) ; do \
26411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26412 done; \
22121df0 26413 echo "Doing pdf in sim"; \
a90ef4bf 26414 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26417 "RANLIB=$${RANLIB}" \
0c24b341 26418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26419 pdf) \
26420 || exit 1
26421
a90ef4bf 26422@endif sim
56a8fe78 26423
a90ef4bf
JM
26424.PHONY: maybe-html-sim html-sim
26425maybe-html-sim:
26426@if sim
26427maybe-html-sim: html-sim
6d389afc 26428
a90ef4bf
JM
26429html-sim: \
26430 configure-sim
26431 @: $(MAKE); $(unstage)
26432 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26433 r=`${PWD_COMMAND}`; export r; \
26434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26435 $(HOST_EXPORTS) \
26436 for flag in $(EXTRA_HOST_FLAGS) ; do \
26437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26438 done; \
22121df0 26439 echo "Doing html in sim"; \
a90ef4bf 26440 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26443 "RANLIB=$${RANLIB}" \
0c24b341 26444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26445 html) \
26446 || exit 1
26447
a90ef4bf 26448@endif sim
6d389afc 26449
a90ef4bf
JM
26450.PHONY: maybe-TAGS-sim TAGS-sim
26451maybe-TAGS-sim:
26452@if sim
26453maybe-TAGS-sim: TAGS-sim
2a4cbe27 26454
a90ef4bf
JM
26455TAGS-sim: \
26456 configure-sim
26457 @: $(MAKE); $(unstage)
26458 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26459 r=`${PWD_COMMAND}`; export r; \
26460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26461 $(HOST_EXPORTS) \
b813574b 26462 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26464 done; \
22121df0 26465 echo "Doing TAGS in sim"; \
a90ef4bf 26466 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26469 "RANLIB=$${RANLIB}" \
0c24b341 26470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26471 TAGS) \
2a4cbe27
NN
26472 || exit 1
26473
a90ef4bf 26474@endif sim
2a4cbe27 26475
a90ef4bf
JM
26476.PHONY: maybe-install-info-sim install-info-sim
26477maybe-install-info-sim:
26478@if sim
26479maybe-install-info-sim: install-info-sim
2a4cbe27 26480
a90ef4bf
JM
26481install-info-sim: \
26482 configure-sim \
26483 info-sim
26484 @: $(MAKE); $(unstage)
26485 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26486 r=`${PWD_COMMAND}`; export r; \
26487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26488 $(HOST_EXPORTS) \
b813574b 26489 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26491 done; \
22121df0 26492 echo "Doing install-info in sim"; \
a90ef4bf
JM
26493 (cd $(HOST_SUBDIR)/sim && \
26494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26496 "RANLIB=$${RANLIB}" \
0c24b341 26497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26498 install-info) \
2a4cbe27
NN
26499 || exit 1
26500
a90ef4bf 26501@endif sim
2a4cbe27 26502
a90ef4bf
JM
26503.PHONY: maybe-install-pdf-sim install-pdf-sim
26504maybe-install-pdf-sim:
26505@if sim
26506maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26507
a90ef4bf
JM
26508install-pdf-sim: \
26509 configure-sim \
26510 pdf-sim
26511 @: $(MAKE); $(unstage)
26512 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26513 r=`${PWD_COMMAND}`; export r; \
26514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26515 $(HOST_EXPORTS) \
26516 for flag in $(EXTRA_HOST_FLAGS) ; do \
26517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26518 done; \
22121df0 26519 echo "Doing install-pdf in sim"; \
a90ef4bf 26520 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26523 "RANLIB=$${RANLIB}" \
0c24b341 26524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26525 install-pdf) \
26526 || exit 1
26527
a90ef4bf 26528@endif sim
a3ca38d2 26529
a90ef4bf
JM
26530.PHONY: maybe-install-html-sim install-html-sim
26531maybe-install-html-sim:
26532@if sim
26533maybe-install-html-sim: install-html-sim
108a6f8e 26534
a90ef4bf
JM
26535install-html-sim: \
26536 configure-sim \
26537 html-sim
26538 @: $(MAKE); $(unstage)
26539 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26540 r=`${PWD_COMMAND}`; export r; \
26541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26542 $(HOST_EXPORTS) \
26543 for flag in $(EXTRA_HOST_FLAGS) ; do \
26544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26545 done; \
22121df0 26546 echo "Doing install-html in sim"; \
a90ef4bf 26547 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26550 "RANLIB=$${RANLIB}" \
0c24b341 26551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26552 install-html) \
26553 || exit 1
26554
a90ef4bf 26555@endif sim
108a6f8e 26556
a90ef4bf
JM
26557.PHONY: maybe-installcheck-sim installcheck-sim
26558maybe-installcheck-sim:
26559@if sim
26560maybe-installcheck-sim: installcheck-sim
2a4cbe27 26561
a90ef4bf
JM
26562installcheck-sim: \
26563 configure-sim
26564 @: $(MAKE); $(unstage)
26565 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26566 r=`${PWD_COMMAND}`; export r; \
26567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26568 $(HOST_EXPORTS) \
b813574b 26569 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26571 done; \
22121df0 26572 echo "Doing installcheck in sim"; \
a90ef4bf 26573 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26576 "RANLIB=$${RANLIB}" \
0c24b341 26577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26578 installcheck) \
2a4cbe27
NN
26579 || exit 1
26580
a90ef4bf 26581@endif sim
2a4cbe27 26582
a90ef4bf
JM
26583.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26584maybe-mostlyclean-sim:
26585@if sim
26586maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26587
a90ef4bf
JM
26588mostlyclean-sim:
26589 @: $(MAKE); $(unstage)
26590 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26591 r=`${PWD_COMMAND}`; export r; \
26592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26593 $(HOST_EXPORTS) \
26594 for flag in $(EXTRA_HOST_FLAGS) ; do \
26595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26596 done; \
22121df0 26597 echo "Doing mostlyclean in sim"; \
a90ef4bf 26598 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26601 "RANLIB=$${RANLIB}" \
0c24b341 26602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26603 mostlyclean) \
26604 || exit 1
4fa63067 26605
a90ef4bf 26606@endif sim
4fa63067 26607
a90ef4bf
JM
26608.PHONY: maybe-clean-sim clean-sim
26609maybe-clean-sim:
26610@if sim
26611maybe-clean-sim: clean-sim
4fa63067 26612
a90ef4bf
JM
26613clean-sim:
26614 @: $(MAKE); $(unstage)
26615 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26616 r=`${PWD_COMMAND}`; export r; \
26617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26618 $(HOST_EXPORTS) \
b813574b 26619 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26621 done; \
22121df0 26622 echo "Doing clean in sim"; \
a90ef4bf 26623 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26626 "RANLIB=$${RANLIB}" \
0c24b341 26627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26628 clean) \
2a4cbe27
NN
26629 || exit 1
26630
a90ef4bf 26631@endif sim
2a4cbe27 26632
a90ef4bf
JM
26633.PHONY: maybe-distclean-sim distclean-sim
26634maybe-distclean-sim:
26635@if sim
26636maybe-distclean-sim: distclean-sim
2a4cbe27 26637
a90ef4bf
JM
26638distclean-sim:
26639 @: $(MAKE); $(unstage)
26640 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26641 r=`${PWD_COMMAND}`; export r; \
26642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26643 $(HOST_EXPORTS) \
b813574b 26644 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26646 done; \
22121df0 26647 echo "Doing distclean in sim"; \
a90ef4bf 26648 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26651 "RANLIB=$${RANLIB}" \
0c24b341 26652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26653 distclean) \
2a4cbe27
NN
26654 || exit 1
26655
a90ef4bf 26656@endif sim
2a4cbe27 26657
a90ef4bf
JM
26658.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26659maybe-maintainer-clean-sim:
26660@if sim
26661maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26662
a90ef4bf
JM
26663maintainer-clean-sim:
26664 @: $(MAKE); $(unstage)
26665 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26666 r=`${PWD_COMMAND}`; export r; \
26667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26668 $(HOST_EXPORTS) \
b813574b 26669 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26671 done; \
22121df0 26672 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26673 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26676 "RANLIB=$${RANLIB}" \
0c24b341 26677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26678 maintainer-clean) \
2a4cbe27
NN
26679 || exit 1
26680
a90ef4bf 26681@endif sim
2a4cbe27 26682
2a4cbe27 26683
a7254363 26684
a90ef4bf
JM
26685.PHONY: configure-texinfo maybe-configure-texinfo
26686maybe-configure-texinfo:
4f0ef2d8 26687@if gcc-bootstrap
a90ef4bf 26688configure-texinfo: stage_current
4f0ef2d8 26689@endif gcc-bootstrap
a90ef4bf
JM
26690@if texinfo
26691maybe-configure-texinfo: configure-texinfo
26692configure-texinfo:
0aed8855 26693 @: $(MAKE); $(unstage)
c52c6897 26694 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26696 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26697 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26698 $(HOST_EXPORTS) \
a90ef4bf
JM
26699 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26700 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26701 case $(srcdir) in \
b00612cc 26702 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26703 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26704 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26705 esac; \
1b6c0831
L
26706 module_srcdir=texinfo; \
26707 $(SHELL) \
26708 $$s/$$module_srcdir/configure \
26709 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26710 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26711 --target=${target_alias} \
2a4cbe27 26712 || exit 1
a90ef4bf 26713@endif texinfo
2a4cbe27 26714
a7254363
PB
26715
26716
d545f33b
PB
26717
26718
a90ef4bf
JM
26719.PHONY: all-texinfo maybe-all-texinfo
26720maybe-all-texinfo:
4f0ef2d8 26721@if gcc-bootstrap
a90ef4bf 26722all-texinfo: stage_current
4f0ef2d8 26723@endif gcc-bootstrap
a90ef4bf
JM
26724@if texinfo
26725TARGET-texinfo=all
26726maybe-all-texinfo: all-texinfo
26727all-texinfo: configure-texinfo
0aed8855 26728 @: $(MAKE); $(unstage)
4fa63067
NN
26729 @r=`${PWD_COMMAND}`; export r; \
26730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26731 $(HOST_EXPORTS) \
a90ef4bf 26732 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26733 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26734 $(TARGET-texinfo))
26735@endif texinfo
4fa63067 26736
a7254363 26737
d545f33b
PB
26738
26739
a90ef4bf
JM
26740.PHONY: check-texinfo maybe-check-texinfo
26741maybe-check-texinfo:
26742@if texinfo
26743maybe-check-texinfo: check-texinfo
2a4cbe27 26744
a90ef4bf 26745check-texinfo:
0aed8855 26746 @: $(MAKE); $(unstage)
4fa63067
NN
26747 @r=`${PWD_COMMAND}`; export r; \
26748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26749 $(HOST_EXPORTS) \
a90ef4bf 26750 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26751 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26752
a90ef4bf 26753@endif texinfo
4fa63067 26754
a90ef4bf
JM
26755.PHONY: install-texinfo maybe-install-texinfo
26756maybe-install-texinfo:
26757@if texinfo
26758maybe-install-texinfo: install-texinfo
4fa63067 26759
a90ef4bf 26760install-texinfo:
4fa63067 26761
a90ef4bf 26762@endif texinfo
4fa63067 26763
a90ef4bf
JM
26764.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26765maybe-install-strip-texinfo:
26766@if texinfo
26767maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26768
a90ef4bf 26769install-strip-texinfo:
9b980aa1 26770
a90ef4bf 26771@endif texinfo
9b980aa1 26772
56a8fe78 26773# Other targets (info, dvi, pdf, etc.)
4fa63067 26774
a90ef4bf
JM
26775.PHONY: maybe-info-texinfo info-texinfo
26776maybe-info-texinfo:
26777@if texinfo
26778maybe-info-texinfo: info-texinfo
4fa63067 26779
a90ef4bf
JM
26780info-texinfo: \
26781 configure-texinfo
0aed8855 26782 @: $(MAKE); $(unstage)
a90ef4bf 26783 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26784 r=`${PWD_COMMAND}`; export r; \
26785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26786 $(HOST_EXPORTS) \
b813574b 26787 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26789 done; \
22121df0 26790 echo "Doing info in texinfo"; \
a90ef4bf 26791 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26794 "RANLIB=$${RANLIB}" \
0c24b341 26795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26796 info) \
2a4cbe27
NN
26797 || exit 1
26798
a90ef4bf 26799@endif texinfo
2a4cbe27 26800
a90ef4bf
JM
26801.PHONY: maybe-dvi-texinfo dvi-texinfo
26802maybe-dvi-texinfo:
26803@if texinfo
26804maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26805
a90ef4bf
JM
26806dvi-texinfo: \
26807 configure-texinfo
0aed8855 26808 @: $(MAKE); $(unstage)
a90ef4bf 26809 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26810 r=`${PWD_COMMAND}`; export r; \
26811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26812 $(HOST_EXPORTS) \
b813574b 26813 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26815 done; \
22121df0 26816 echo "Doing dvi in texinfo"; \
a90ef4bf 26817 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26820 "RANLIB=$${RANLIB}" \
0c24b341 26821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26822 dvi) \
2a4cbe27
NN
26823 || exit 1
26824
a90ef4bf 26825@endif texinfo
2a4cbe27 26826
a90ef4bf
JM
26827.PHONY: maybe-pdf-texinfo pdf-texinfo
26828maybe-pdf-texinfo:
26829@if texinfo
26830maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26831
a90ef4bf
JM
26832pdf-texinfo: \
26833 configure-texinfo
56a8fe78 26834 @: $(MAKE); $(unstage)
a90ef4bf 26835 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26836 r=`${PWD_COMMAND}`; export r; \
26837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26838 $(HOST_EXPORTS) \
26839 for flag in $(EXTRA_HOST_FLAGS) ; do \
26840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26841 done; \
22121df0 26842 echo "Doing pdf in texinfo"; \
a90ef4bf 26843 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26846 "RANLIB=$${RANLIB}" \
0c24b341 26847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26848 pdf) \
26849 || exit 1
26850
a90ef4bf 26851@endif texinfo
56a8fe78 26852
a90ef4bf
JM
26853.PHONY: maybe-html-texinfo html-texinfo
26854maybe-html-texinfo:
26855@if texinfo
26856maybe-html-texinfo: html-texinfo
6d389afc 26857
a90ef4bf
JM
26858html-texinfo: \
26859 configure-texinfo
0aed8855 26860 @: $(MAKE); $(unstage)
a90ef4bf 26861 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26862 r=`${PWD_COMMAND}`; export r; \
26863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26864 $(HOST_EXPORTS) \
26865 for flag in $(EXTRA_HOST_FLAGS) ; do \
26866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26867 done; \
22121df0 26868 echo "Doing html in texinfo"; \
a90ef4bf 26869 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26872 "RANLIB=$${RANLIB}" \
0c24b341 26873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26874 html) \
26875 || exit 1
26876
a90ef4bf 26877@endif texinfo
6d389afc 26878
a90ef4bf
JM
26879.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26880maybe-TAGS-texinfo:
26881@if texinfo
26882maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 26883
a90ef4bf
JM
26884TAGS-texinfo: \
26885 configure-texinfo
0aed8855 26886 @: $(MAKE); $(unstage)
a90ef4bf 26887 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26888 r=`${PWD_COMMAND}`; export r; \
26889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26890 $(HOST_EXPORTS) \
b813574b 26891 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26893 done; \
22121df0 26894 echo "Doing TAGS in texinfo"; \
a90ef4bf 26895 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26898 "RANLIB=$${RANLIB}" \
0c24b341 26899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26900 TAGS) \
2a4cbe27
NN
26901 || exit 1
26902
a90ef4bf 26903@endif texinfo
2a4cbe27 26904
a90ef4bf
JM
26905.PHONY: maybe-install-info-texinfo install-info-texinfo
26906maybe-install-info-texinfo:
26907@if texinfo
26908maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 26909
a90ef4bf
JM
26910install-info-texinfo: \
26911 configure-texinfo \
26912 info-texinfo
0aed8855 26913 @: $(MAKE); $(unstage)
a90ef4bf 26914 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26915 r=`${PWD_COMMAND}`; export r; \
26916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26917 $(HOST_EXPORTS) \
b813574b 26918 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26920 done; \
22121df0 26921 echo "Doing install-info in texinfo"; \
a90ef4bf 26922 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26925 "RANLIB=$${RANLIB}" \
0c24b341 26926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26927 install-info) \
2a4cbe27
NN
26928 || exit 1
26929
a90ef4bf 26930@endif texinfo
2a4cbe27 26931
a90ef4bf
JM
26932.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
26933maybe-install-pdf-texinfo:
26934@if texinfo
26935maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 26936
a90ef4bf
JM
26937install-pdf-texinfo: \
26938 configure-texinfo \
26939 pdf-texinfo
a3ca38d2 26940 @: $(MAKE); $(unstage)
a90ef4bf 26941 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
26942 r=`${PWD_COMMAND}`; export r; \
26943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26944 $(HOST_EXPORTS) \
26945 for flag in $(EXTRA_HOST_FLAGS) ; do \
26946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26947 done; \
22121df0 26948 echo "Doing install-pdf in texinfo"; \
a90ef4bf 26949 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
26950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26952 "RANLIB=$${RANLIB}" \
0c24b341 26953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26954 install-pdf) \
26955 || exit 1
26956
a90ef4bf 26957@endif texinfo
a3ca38d2 26958
a90ef4bf
JM
26959.PHONY: maybe-install-html-texinfo install-html-texinfo
26960maybe-install-html-texinfo:
26961@if texinfo
26962maybe-install-html-texinfo: install-html-texinfo
108a6f8e 26963
a90ef4bf
JM
26964install-html-texinfo: \
26965 configure-texinfo \
26966 html-texinfo
108a6f8e 26967 @: $(MAKE); $(unstage)
a90ef4bf 26968 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
26969 r=`${PWD_COMMAND}`; export r; \
26970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26971 $(HOST_EXPORTS) \
26972 for flag in $(EXTRA_HOST_FLAGS) ; do \
26973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26974 done; \
22121df0 26975 echo "Doing install-html in texinfo"; \
a90ef4bf 26976 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
26977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26979 "RANLIB=$${RANLIB}" \
0c24b341 26980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26981 install-html) \
26982 || exit 1
26983
a90ef4bf 26984@endif texinfo
108a6f8e 26985
a90ef4bf
JM
26986.PHONY: maybe-installcheck-texinfo installcheck-texinfo
26987maybe-installcheck-texinfo:
26988@if texinfo
26989maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 26990
a90ef4bf
JM
26991installcheck-texinfo: \
26992 configure-texinfo
0aed8855 26993 @: $(MAKE); $(unstage)
a90ef4bf 26994 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26995 r=`${PWD_COMMAND}`; export r; \
26996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26997 $(HOST_EXPORTS) \
b813574b 26998 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27000 done; \
22121df0 27001 echo "Doing installcheck in texinfo"; \
a90ef4bf 27002 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27005 "RANLIB=$${RANLIB}" \
0c24b341 27006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27007 installcheck) \
2a4cbe27
NN
27008 || exit 1
27009
a90ef4bf 27010@endif texinfo
2a4cbe27 27011
a90ef4bf
JM
27012.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27013maybe-mostlyclean-texinfo:
27014@if texinfo
27015maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27016
a90ef4bf 27017mostlyclean-texinfo:
0aed8855 27018 @: $(MAKE); $(unstage)
a90ef4bf 27019 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27020 r=`${PWD_COMMAND}`; export r; \
27021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27022 $(HOST_EXPORTS) \
b813574b 27023 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27025 done; \
22121df0 27026 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27027 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27030 "RANLIB=$${RANLIB}" \
0c24b341 27031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27032 mostlyclean) \
2a4cbe27
NN
27033 || exit 1
27034
a90ef4bf 27035@endif texinfo
2a4cbe27 27036
a90ef4bf
JM
27037.PHONY: maybe-clean-texinfo clean-texinfo
27038maybe-clean-texinfo:
27039@if texinfo
27040maybe-clean-texinfo: clean-texinfo
2a4cbe27 27041
a90ef4bf 27042clean-texinfo:
0aed8855 27043 @: $(MAKE); $(unstage)
a90ef4bf 27044 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27045 r=`${PWD_COMMAND}`; export r; \
27046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27047 $(HOST_EXPORTS) \
b813574b 27048 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27050 done; \
22121df0 27051 echo "Doing clean in texinfo"; \
a90ef4bf 27052 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27055 "RANLIB=$${RANLIB}" \
0c24b341 27056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27057 clean) \
2a4cbe27
NN
27058 || exit 1
27059
a90ef4bf 27060@endif texinfo
2a4cbe27 27061
a90ef4bf
JM
27062.PHONY: maybe-distclean-texinfo distclean-texinfo
27063maybe-distclean-texinfo:
27064@if texinfo
27065maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27066
a90ef4bf 27067distclean-texinfo:
0aed8855 27068 @: $(MAKE); $(unstage)
a90ef4bf 27069 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27070 r=`${PWD_COMMAND}`; export r; \
27071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27072 $(HOST_EXPORTS) \
b813574b 27073 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27075 done; \
22121df0 27076 echo "Doing distclean in texinfo"; \
a90ef4bf 27077 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27080 "RANLIB=$${RANLIB}" \
0c24b341 27081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27082 distclean) \
2a4cbe27
NN
27083 || exit 1
27084
a90ef4bf 27085@endif texinfo
2a4cbe27 27086
a90ef4bf
JM
27087.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27088maybe-maintainer-clean-texinfo:
27089@if texinfo
27090maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27091
a90ef4bf 27092maintainer-clean-texinfo:
0aed8855 27093 @: $(MAKE); $(unstage)
a90ef4bf 27094 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27095 r=`${PWD_COMMAND}`; export r; \
27096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27097 $(HOST_EXPORTS) \
b813574b 27098 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27100 done; \
22121df0 27101 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27102 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27105 "RANLIB=$${RANLIB}" \
0c24b341 27106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27107 maintainer-clean) \
2a4cbe27
NN
27108 || exit 1
27109
a90ef4bf 27110@endif texinfo
2a4cbe27 27111
2a4cbe27 27112
a7254363 27113
a90ef4bf
JM
27114.PHONY: configure-zlib maybe-configure-zlib
27115maybe-configure-zlib:
4f0ef2d8 27116@if gcc-bootstrap
a90ef4bf 27117configure-zlib: stage_current
4f0ef2d8 27118@endif gcc-bootstrap
a90ef4bf
JM
27119@if zlib
27120maybe-configure-zlib: configure-zlib
27121configure-zlib:
c52c6897
PB
27122 @r=`${PWD_COMMAND}`; export r; \
27123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27124 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27125 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27126 $(HOST_EXPORTS) \
a90ef4bf
JM
27127 echo Configuring in $(HOST_SUBDIR)/zlib; \
27128 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27129 case $(srcdir) in \
b00612cc 27130 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27131 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27132 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27133 esac; \
1b6c0831
L
27134 module_srcdir=zlib; \
27135 $(SHELL) \
27136 $$s/$$module_srcdir/configure \
27137 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27138 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27139 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27140 || exit 1
a90ef4bf 27141@endif zlib
04cf1b77 27142
a7254363
PB
27143
27144
a90ef4bf
JM
27145.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27146maybe-configure-stage1-zlib:
27147@if zlib-bootstrap
27148maybe-configure-stage1-zlib: configure-stage1-zlib
27149configure-stage1-zlib:
c52c6897 27150 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27151 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27152 @r=`${PWD_COMMAND}`; export r; \
27153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27154 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27155 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27156 $(HOST_EXPORTS) \
8ee82aff 27157 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27158 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27159 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27160 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27161 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27162 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27163 case $(srcdir) in \
27164 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27165 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27166 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27167 esac; \
1b6c0831
L
27168 module_srcdir=zlib; \
27169 $(SHELL) $$s/$$module_srcdir/configure \
27170 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27171 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27172 --target=${target_alias} \
27173 \
e81d5d05
L
27174 $(STAGE1_CONFIGURE_FLAGS) \
27175 @extra_host_zlib_configure_flags@
a90ef4bf 27176@endif zlib-bootstrap
d545f33b 27177
a90ef4bf
JM
27178.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27179maybe-configure-stage2-zlib:
27180@if zlib-bootstrap
27181maybe-configure-stage2-zlib: configure-stage2-zlib
27182configure-stage2-zlib:
c52c6897 27183 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27184 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27185 @r=`${PWD_COMMAND}`; export r; \
27186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27187 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27188 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27189 $(HOST_EXPORTS) \
1b05fbbd 27190 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27191 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27192 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27193 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27194 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27195 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27196 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27197 case $(srcdir) in \
27198 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27199 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27200 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27201 esac; \
1b6c0831
L
27202 module_srcdir=zlib; \
27203 $(SHELL) $$s/$$module_srcdir/configure \
27204 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27205 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27206 --target=${target_alias} \
22121df0 27207 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27208 $(STAGE2_CONFIGURE_FLAGS) \
27209 @extra_host_zlib_configure_flags@
a90ef4bf 27210@endif zlib-bootstrap
8520c408 27211
a90ef4bf
JM
27212.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27213maybe-configure-stage3-zlib:
27214@if zlib-bootstrap
27215maybe-configure-stage3-zlib: configure-stage3-zlib
27216configure-stage3-zlib:
c52c6897 27217 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27218 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27219 @r=`${PWD_COMMAND}`; export r; \
27220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27221 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27222 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27223 $(HOST_EXPORTS) \
1b05fbbd 27224 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27225 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27226 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27227 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27228 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27229 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27230 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27231 case $(srcdir) in \
27232 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27233 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27234 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27235 esac; \
1b6c0831
L
27236 module_srcdir=zlib; \
27237 $(SHELL) $$s/$$module_srcdir/configure \
27238 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27239 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27240 --target=${target_alias} \
22121df0 27241 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27242 $(STAGE3_CONFIGURE_FLAGS) \
27243 @extra_host_zlib_configure_flags@
a90ef4bf 27244@endif zlib-bootstrap
8520c408 27245
a90ef4bf
JM
27246.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27247maybe-configure-stage4-zlib:
27248@if zlib-bootstrap
27249maybe-configure-stage4-zlib: configure-stage4-zlib
27250configure-stage4-zlib:
c52c6897 27251 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27252 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27253 @r=`${PWD_COMMAND}`; export r; \
27254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27255 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27256 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27257 $(HOST_EXPORTS) \
1b05fbbd 27258 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27259 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27260 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27261 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27262 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27263 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27264 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27265 case $(srcdir) in \
27266 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27267 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27268 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27269 esac; \
1b6c0831
L
27270 module_srcdir=zlib; \
27271 $(SHELL) $$s/$$module_srcdir/configure \
27272 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27273 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27274 --target=${target_alias} \
22121df0 27275 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27276 $(STAGE4_CONFIGURE_FLAGS) \
27277 @extra_host_zlib_configure_flags@
a90ef4bf 27278@endif zlib-bootstrap
d545f33b 27279
a90ef4bf
JM
27280.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27281maybe-configure-stageprofile-zlib:
27282@if zlib-bootstrap
27283maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27284configure-stageprofile-zlib:
c52c6897 27285 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27286 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27287 @r=`${PWD_COMMAND}`; export r; \
27288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27289 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27290 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27291 $(HOST_EXPORTS) \
1b05fbbd
AO
27292 $(POSTSTAGE1_HOST_EXPORTS) \
27293 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27294 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27295 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27296 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27297 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27298 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27299 case $(srcdir) in \
27300 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27301 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27302 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27303 esac; \
1b6c0831
L
27304 module_srcdir=zlib; \
27305 $(SHELL) $$s/$$module_srcdir/configure \
27306 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27307 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27308 --target=${target_alias} \
22121df0 27309 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27310 $(STAGEprofile_CONFIGURE_FLAGS) \
27311 @extra_host_zlib_configure_flags@
a90ef4bf 27312@endif zlib-bootstrap
d545f33b 27313
a90ef4bf
JM
27314.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27315maybe-configure-stagefeedback-zlib:
27316@if zlib-bootstrap
27317maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27318configure-stagefeedback-zlib:
c52c6897 27319 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27320 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27321 @r=`${PWD_COMMAND}`; export r; \
27322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27323 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27324 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27325 $(HOST_EXPORTS) \
1b05fbbd
AO
27326 $(POSTSTAGE1_HOST_EXPORTS) \
27327 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27328 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27329 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27330 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27331 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27332 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27333 case $(srcdir) in \
27334 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27335 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27336 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27337 esac; \
1b6c0831
L
27338 module_srcdir=zlib; \
27339 $(SHELL) $$s/$$module_srcdir/configure \
27340 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27341 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27342 --target=${target_alias} \
22121df0 27343 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27344 $(STAGEfeedback_CONFIGURE_FLAGS) \
27345 @extra_host_zlib_configure_flags@
a90ef4bf 27346@endif zlib-bootstrap
d545f33b
PB
27347
27348
27349
27350
27351
a90ef4bf
JM
27352.PHONY: all-zlib maybe-all-zlib
27353maybe-all-zlib:
4f0ef2d8 27354@if gcc-bootstrap
a90ef4bf 27355all-zlib: stage_current
4f0ef2d8 27356@endif gcc-bootstrap
a90ef4bf
JM
27357@if zlib
27358TARGET-zlib=all
27359maybe-all-zlib: all-zlib
27360all-zlib: configure-zlib
c52c6897 27361 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27363 $(HOST_EXPORTS) \
a90ef4bf 27364 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27365 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27366 $(TARGET-zlib))
27367@endif zlib
04cf1b77 27368
a7254363 27369
d545f33b 27370
a90ef4bf
JM
27371.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27372.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27373maybe-all-stage1-zlib:
27374maybe-clean-stage1-zlib:
27375@if zlib-bootstrap
27376maybe-all-stage1-zlib: all-stage1-zlib
27377all-stage1: all-stage1-zlib
27378TARGET-stage1-zlib = $(TARGET-zlib)
27379all-stage1-zlib: configure-stage1-zlib
c52c6897 27380 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27381 @r=`${PWD_COMMAND}`; export r; \
27382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27383 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27384 $(HOST_EXPORTS) \
a90ef4bf 27385 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27386 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27387 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27388 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27389 LIBCFLAGS="$(LIBCFLAGS)" \
27390 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27391 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27392 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27393 $(EXTRA_HOST_FLAGS) \
27394 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 27395 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27396 $(TARGET-stage1-zlib)
d545f33b 27397
a90ef4bf
JM
27398maybe-clean-stage1-zlib: clean-stage1-zlib
27399clean-stage1: clean-stage1-zlib
27400clean-stage1-zlib:
9dbaa842 27401 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27402 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27403 else \
a90ef4bf 27404 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27405 $(MAKE) stage1-start; \
27406 fi; \
a90ef4bf 27407 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27408 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27409 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27410@endif zlib-bootstrap
d545f33b
PB
27411
27412
a90ef4bf
JM
27413.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27414.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27415maybe-all-stage2-zlib:
27416maybe-clean-stage2-zlib:
27417@if zlib-bootstrap
27418maybe-all-stage2-zlib: all-stage2-zlib
27419all-stage2: all-stage2-zlib
27420TARGET-stage2-zlib = $(TARGET-zlib)
27421all-stage2-zlib: configure-stage2-zlib
c52c6897 27422 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27423 @r=`${PWD_COMMAND}`; export r; \
27424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27425 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27426 $(HOST_EXPORTS) \
1f53ca9a 27427 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27428 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27429 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27430 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27431 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27432 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27433 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27434 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27435 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27436 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27437 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27438 $(TARGET-stage2-zlib)
d545f33b 27439
a90ef4bf
JM
27440maybe-clean-stage2-zlib: clean-stage2-zlib
27441clean-stage2: clean-stage2-zlib
27442clean-stage2-zlib:
9dbaa842 27443 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27444 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27445 else \
a90ef4bf 27446 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27447 $(MAKE) stage2-start; \
27448 fi; \
a90ef4bf 27449 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27450 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27451@endif zlib-bootstrap
d545f33b
PB
27452
27453
a90ef4bf
JM
27454.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27455.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27456maybe-all-stage3-zlib:
27457maybe-clean-stage3-zlib:
27458@if zlib-bootstrap
27459maybe-all-stage3-zlib: all-stage3-zlib
27460all-stage3: all-stage3-zlib
27461TARGET-stage3-zlib = $(TARGET-zlib)
27462all-stage3-zlib: configure-stage3-zlib
c52c6897 27463 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27464 @r=`${PWD_COMMAND}`; export r; \
27465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27466 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27467 $(HOST_EXPORTS) \
1f53ca9a 27468 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27469 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27470 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27471 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27472 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27473 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27474 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27475 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27476 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27477 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27478 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27479 $(TARGET-stage3-zlib)
d545f33b 27480
a90ef4bf
JM
27481maybe-clean-stage3-zlib: clean-stage3-zlib
27482clean-stage3: clean-stage3-zlib
27483clean-stage3-zlib:
9dbaa842 27484 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27485 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27486 else \
a90ef4bf 27487 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27488 $(MAKE) stage3-start; \
27489 fi; \
a90ef4bf 27490 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27491 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27492@endif zlib-bootstrap
d545f33b
PB
27493
27494
a90ef4bf
JM
27495.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27496.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27497maybe-all-stage4-zlib:
27498maybe-clean-stage4-zlib:
27499@if zlib-bootstrap
27500maybe-all-stage4-zlib: all-stage4-zlib
27501all-stage4: all-stage4-zlib
27502TARGET-stage4-zlib = $(TARGET-zlib)
27503all-stage4-zlib: configure-stage4-zlib
c52c6897 27504 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27505 @r=`${PWD_COMMAND}`; export r; \
27506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27507 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27508 $(HOST_EXPORTS) \
1f53ca9a 27509 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27510 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27511 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27512 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27513 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27514 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27515 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27516 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27517 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27518 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27519 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27520 $(TARGET-stage4-zlib)
d545f33b 27521
a90ef4bf
JM
27522maybe-clean-stage4-zlib: clean-stage4-zlib
27523clean-stage4: clean-stage4-zlib
27524clean-stage4-zlib:
9dbaa842 27525 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27526 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27527 else \
a90ef4bf 27528 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27529 $(MAKE) stage4-start; \
27530 fi; \
a90ef4bf 27531 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27532 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27533@endif zlib-bootstrap
d545f33b
PB
27534
27535
a90ef4bf
JM
27536.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27537.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27538maybe-all-stageprofile-zlib:
27539maybe-clean-stageprofile-zlib:
27540@if zlib-bootstrap
27541maybe-all-stageprofile-zlib: all-stageprofile-zlib
27542all-stageprofile: all-stageprofile-zlib
27543TARGET-stageprofile-zlib = $(TARGET-zlib)
27544all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27545 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27546 @r=`${PWD_COMMAND}`; export r; \
27547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27548 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27549 $(HOST_EXPORTS) \
1f53ca9a 27550 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27551 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27552 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27553 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27554 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27555 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27556 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27557 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27558 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27559 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27560 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27561 $(TARGET-stageprofile-zlib)
d545f33b 27562
a90ef4bf
JM
27563maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27564clean-stageprofile: clean-stageprofile-zlib
27565clean-stageprofile-zlib:
9dbaa842 27566 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27567 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27568 else \
a90ef4bf 27569 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27570 $(MAKE) stageprofile-start; \
27571 fi; \
a90ef4bf 27572 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27573 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27574@endif zlib-bootstrap
d545f33b
PB
27575
27576
a90ef4bf
JM
27577.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27578.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27579maybe-all-stagefeedback-zlib:
27580maybe-clean-stagefeedback-zlib:
27581@if zlib-bootstrap
27582maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27583all-stagefeedback: all-stagefeedback-zlib
27584TARGET-stagefeedback-zlib = $(TARGET-zlib)
27585all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27586 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27587 @r=`${PWD_COMMAND}`; export r; \
27588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27589 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27590 $(HOST_EXPORTS) \
1f53ca9a 27591 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27592 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27593 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27594 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27595 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27596 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27597 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27598 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27599 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27600 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27601 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27602 $(TARGET-stagefeedback-zlib)
d545f33b 27603
a90ef4bf
JM
27604maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27605clean-stagefeedback: clean-stagefeedback-zlib
27606clean-stagefeedback-zlib:
9dbaa842 27607 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27608 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27609 else \
a90ef4bf 27610 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27611 $(MAKE) stagefeedback-start; \
27612 fi; \
a90ef4bf 27613 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27614 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27615@endif zlib-bootstrap
d545f33b
PB
27616
27617
27618
27619
27620
a90ef4bf
JM
27621.PHONY: check-zlib maybe-check-zlib
27622maybe-check-zlib:
27623@if zlib
27624maybe-check-zlib: check-zlib
04cf1b77 27625
a90ef4bf 27626check-zlib:
04cf1b77 27627
a90ef4bf 27628@endif zlib
04cf1b77 27629
a90ef4bf
JM
27630.PHONY: install-zlib maybe-install-zlib
27631maybe-install-zlib:
27632@if zlib
27633maybe-install-zlib: install-zlib
04cf1b77 27634
a90ef4bf 27635install-zlib:
04cf1b77 27636
a90ef4bf 27637@endif zlib
04cf1b77 27638
a90ef4bf
JM
27639.PHONY: install-strip-zlib maybe-install-strip-zlib
27640maybe-install-strip-zlib:
27641@if zlib
27642maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27643
a90ef4bf 27644install-strip-zlib:
9b980aa1 27645
a90ef4bf 27646@endif zlib
9b980aa1 27647
56a8fe78 27648# Other targets (info, dvi, pdf, etc.)
04cf1b77 27649
a90ef4bf
JM
27650.PHONY: maybe-info-zlib info-zlib
27651maybe-info-zlib:
27652@if zlib
27653maybe-info-zlib: info-zlib
04cf1b77 27654
a90ef4bf
JM
27655info-zlib: \
27656 configure-zlib
27657 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27658 r=`${PWD_COMMAND}`; export r; \
27659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27660 $(HOST_EXPORTS) \
b813574b 27661 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27663 done; \
22121df0 27664 echo "Doing info in zlib"; \
a90ef4bf 27665 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27668 "RANLIB=$${RANLIB}" \
0c24b341 27669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27670 info) \
04cf1b77
PB
27671 || exit 1
27672
a90ef4bf 27673@endif zlib
04cf1b77 27674
a90ef4bf
JM
27675.PHONY: maybe-dvi-zlib dvi-zlib
27676maybe-dvi-zlib:
27677@if zlib
27678maybe-dvi-zlib: dvi-zlib
04cf1b77 27679
a90ef4bf
JM
27680dvi-zlib: \
27681 configure-zlib
27682 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27683 r=`${PWD_COMMAND}`; export r; \
27684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27685 $(HOST_EXPORTS) \
b813574b 27686 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27688 done; \
22121df0 27689 echo "Doing dvi in zlib"; \
a90ef4bf 27690 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27693 "RANLIB=$${RANLIB}" \
0c24b341 27694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27695 dvi) \
04cf1b77
PB
27696 || exit 1
27697
a90ef4bf 27698@endif zlib
04cf1b77 27699
a90ef4bf
JM
27700.PHONY: maybe-pdf-zlib pdf-zlib
27701maybe-pdf-zlib:
27702@if zlib
27703maybe-pdf-zlib: pdf-zlib
56a8fe78 27704
a90ef4bf
JM
27705pdf-zlib: \
27706 configure-zlib
27707 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27708 r=`${PWD_COMMAND}`; export r; \
27709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27710 $(HOST_EXPORTS) \
27711 for flag in $(EXTRA_HOST_FLAGS) ; do \
27712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27713 done; \
22121df0 27714 echo "Doing pdf in zlib"; \
a90ef4bf 27715 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27718 "RANLIB=$${RANLIB}" \
0c24b341 27719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27720 pdf) \
27721 || exit 1
27722
a90ef4bf 27723@endif zlib
56a8fe78 27724
a90ef4bf
JM
27725.PHONY: maybe-html-zlib html-zlib
27726maybe-html-zlib:
27727@if zlib
27728maybe-html-zlib: html-zlib
6d389afc 27729
a90ef4bf
JM
27730html-zlib: \
27731 configure-zlib
27732 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27733 r=`${PWD_COMMAND}`; export r; \
27734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27735 $(HOST_EXPORTS) \
27736 for flag in $(EXTRA_HOST_FLAGS) ; do \
27737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27738 done; \
22121df0 27739 echo "Doing html in zlib"; \
a90ef4bf 27740 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27743 "RANLIB=$${RANLIB}" \
0c24b341 27744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27745 html) \
27746 || exit 1
27747
a90ef4bf 27748@endif zlib
6d389afc 27749
a90ef4bf
JM
27750.PHONY: maybe-TAGS-zlib TAGS-zlib
27751maybe-TAGS-zlib:
27752@if zlib
27753maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27754
a90ef4bf
JM
27755TAGS-zlib: \
27756 configure-zlib
27757 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27758 r=`${PWD_COMMAND}`; export r; \
27759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27760 $(HOST_EXPORTS) \
b813574b 27761 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27763 done; \
22121df0 27764 echo "Doing TAGS in zlib"; \
a90ef4bf 27765 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27768 "RANLIB=$${RANLIB}" \
0c24b341 27769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27770 TAGS) \
04cf1b77
PB
27771 || exit 1
27772
a90ef4bf 27773@endif zlib
04cf1b77 27774
a90ef4bf
JM
27775.PHONY: maybe-install-info-zlib install-info-zlib
27776maybe-install-info-zlib:
27777@if zlib
27778maybe-install-info-zlib: install-info-zlib
04cf1b77 27779
a90ef4bf
JM
27780install-info-zlib: \
27781 configure-zlib \
27782 info-zlib
27783 @[ -f ./zlib/Makefile ] || exit 0; \
27784 r=`${PWD_COMMAND}`; export r; \
27785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27786 $(HOST_EXPORTS) \
b813574b 27787 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27789 done; \
22121df0 27790 echo "Doing install-info in zlib"; \
a90ef4bf 27791 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27794 "RANLIB=$${RANLIB}" \
0c24b341 27795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27796 install-info) \
04cf1b77
PB
27797 || exit 1
27798
a90ef4bf 27799@endif zlib
04cf1b77 27800
a90ef4bf
JM
27801.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27802maybe-install-pdf-zlib:
27803@if zlib
27804maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27805
a90ef4bf
JM
27806install-pdf-zlib: \
27807 configure-zlib \
27808 pdf-zlib
27809 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27810 r=`${PWD_COMMAND}`; export r; \
27811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27812 $(HOST_EXPORTS) \
27813 for flag in $(EXTRA_HOST_FLAGS) ; do \
27814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27815 done; \
22121df0 27816 echo "Doing install-pdf in zlib"; \
a90ef4bf 27817 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27820 "RANLIB=$${RANLIB}" \
0c24b341 27821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27822 install-pdf) \
27823 || exit 1
27824
a90ef4bf 27825@endif zlib
a3ca38d2 27826
a90ef4bf
JM
27827.PHONY: maybe-install-html-zlib install-html-zlib
27828maybe-install-html-zlib:
27829@if zlib
27830maybe-install-html-zlib: install-html-zlib
108a6f8e 27831
a90ef4bf
JM
27832install-html-zlib: \
27833 configure-zlib \
27834 html-zlib
27835 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27836 r=`${PWD_COMMAND}`; export r; \
27837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27838 $(HOST_EXPORTS) \
27839 for flag in $(EXTRA_HOST_FLAGS) ; do \
27840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27841 done; \
22121df0 27842 echo "Doing install-html in zlib"; \
a90ef4bf 27843 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27846 "RANLIB=$${RANLIB}" \
0c24b341 27847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27848 install-html) \
27849 || exit 1
27850
a90ef4bf 27851@endif zlib
108a6f8e 27852
a90ef4bf
JM
27853.PHONY: maybe-installcheck-zlib installcheck-zlib
27854maybe-installcheck-zlib:
27855@if zlib
27856maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27857
a90ef4bf
JM
27858installcheck-zlib: \
27859 configure-zlib
27860 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27861 r=`${PWD_COMMAND}`; export r; \
27862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27863 $(HOST_EXPORTS) \
b813574b 27864 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27866 done; \
22121df0 27867 echo "Doing installcheck in zlib"; \
a90ef4bf 27868 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27871 "RANLIB=$${RANLIB}" \
0c24b341 27872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27873 installcheck) \
04cf1b77
PB
27874 || exit 1
27875
a90ef4bf 27876@endif zlib
04cf1b77 27877
a90ef4bf
JM
27878.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
27879maybe-mostlyclean-zlib:
27880@if zlib
27881maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 27882
a90ef4bf
JM
27883mostlyclean-zlib:
27884 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27885 r=`${PWD_COMMAND}`; export r; \
27886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27887 $(HOST_EXPORTS) \
b813574b 27888 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27890 done; \
22121df0 27891 echo "Doing mostlyclean in zlib"; \
a90ef4bf 27892 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27895 "RANLIB=$${RANLIB}" \
0c24b341 27896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27897 mostlyclean) \
04cf1b77
PB
27898 || exit 1
27899
a90ef4bf 27900@endif zlib
04cf1b77 27901
a90ef4bf
JM
27902.PHONY: maybe-clean-zlib clean-zlib
27903maybe-clean-zlib:
27904@if zlib
27905maybe-clean-zlib: clean-zlib
04cf1b77 27906
a90ef4bf
JM
27907clean-zlib:
27908 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27909 r=`${PWD_COMMAND}`; export r; \
27910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27911 $(HOST_EXPORTS) \
b813574b 27912 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27914 done; \
22121df0 27915 echo "Doing clean in zlib"; \
a90ef4bf 27916 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27919 "RANLIB=$${RANLIB}" \
0c24b341 27920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27921 clean) \
04cf1b77
PB
27922 || exit 1
27923
a90ef4bf 27924@endif zlib
04cf1b77 27925
a90ef4bf
JM
27926.PHONY: maybe-distclean-zlib distclean-zlib
27927maybe-distclean-zlib:
27928@if zlib
27929maybe-distclean-zlib: distclean-zlib
04cf1b77 27930
a90ef4bf
JM
27931distclean-zlib:
27932 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27933 r=`${PWD_COMMAND}`; export r; \
27934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27935 $(HOST_EXPORTS) \
b813574b 27936 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27938 done; \
22121df0 27939 echo "Doing distclean in zlib"; \
a90ef4bf 27940 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27943 "RANLIB=$${RANLIB}" \
0c24b341 27944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27945 distclean) \
04cf1b77
PB
27946 || exit 1
27947
a90ef4bf 27948@endif zlib
04cf1b77 27949
a90ef4bf
JM
27950.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
27951maybe-maintainer-clean-zlib:
27952@if zlib
27953maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 27954
a90ef4bf
JM
27955maintainer-clean-zlib:
27956 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27957 r=`${PWD_COMMAND}`; export r; \
27958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27959 $(HOST_EXPORTS) \
b813574b 27960 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27962 done; \
22121df0 27963 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 27964 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27967 "RANLIB=$${RANLIB}" \
0c24b341 27968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27969 maintainer-clean) \
04cf1b77
PB
27970 || exit 1
27971
a90ef4bf 27972@endif zlib
04cf1b77
PB
27973
27974
a7254363 27975
a90ef4bf
JM
27976.PHONY: configure-gdb maybe-configure-gdb
27977maybe-configure-gdb:
4f0ef2d8 27978@if gcc-bootstrap
a90ef4bf 27979configure-gdb: stage_current
4f0ef2d8 27980@endif gcc-bootstrap
a90ef4bf
JM
27981@if gdb
27982maybe-configure-gdb: configure-gdb
27983configure-gdb:
27984 @: $(MAKE); $(unstage)
c52c6897
PB
27985 @r=`${PWD_COMMAND}`; export r; \
27986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27987 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 27988 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 27989 $(HOST_EXPORTS) \
a90ef4bf
JM
27990 echo Configuring in $(HOST_SUBDIR)/gdb; \
27991 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 27992 case $(srcdir) in \
b00612cc 27993 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27994 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 27995 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 27996 esac; \
1b6c0831
L
27997 module_srcdir=gdb; \
27998 $(SHELL) \
27999 $$s/$$module_srcdir/configure \
28000 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28001 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28002 --target=${target_alias} \
4fa63067 28003 || exit 1
a90ef4bf 28004@endif gdb
4fa63067 28005
a7254363
PB
28006
28007
d545f33b 28008
8520c408 28009
a90ef4bf
JM
28010.PHONY: all-gdb maybe-all-gdb
28011maybe-all-gdb:
28012@if gcc-bootstrap
28013all-gdb: stage_current
28014@endif gcc-bootstrap
28015@if gdb
28016TARGET-gdb=all
28017maybe-all-gdb: all-gdb
28018all-gdb: configure-gdb
28019 @: $(MAKE); $(unstage)
c52c6897
PB
28020 @r=`${PWD_COMMAND}`; export r; \
28021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28022 $(HOST_EXPORTS) \
28023 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 28024 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28025 $(TARGET-gdb))
28026@endif gdb
8520c408 28027
a90ef4bf
JM
28028
28029
28030
28031.PHONY: check-gdb maybe-check-gdb
28032maybe-check-gdb:
28033@if gdb
28034maybe-check-gdb: check-gdb
28035
28036check-gdb:
28037 @: $(MAKE); $(unstage)
c52c6897
PB
28038 @r=`${PWD_COMMAND}`; export r; \
28039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28040 $(HOST_EXPORTS) \
a90ef4bf
JM
28041 (cd $(HOST_SUBDIR)/gdb && \
28042 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 28043
a90ef4bf
JM
28044@endif gdb
28045
28046.PHONY: install-gdb maybe-install-gdb
28047maybe-install-gdb:
28048@if gdb
28049maybe-install-gdb: install-gdb
28050
28051install-gdb: installdirs
28052 @: $(MAKE); $(unstage)
c52c6897
PB
28053 @r=`${PWD_COMMAND}`; export r; \
28054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28055 $(HOST_EXPORTS) \
a90ef4bf
JM
28056 (cd $(HOST_SUBDIR)/gdb && \
28057 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 28058
a90ef4bf
JM
28059@endif gdb
28060
28061.PHONY: install-strip-gdb maybe-install-strip-gdb
28062maybe-install-strip-gdb:
28063@if gdb
28064maybe-install-strip-gdb: install-strip-gdb
28065
28066install-strip-gdb: installdirs
28067 @: $(MAKE); $(unstage)
c52c6897
PB
28068 @r=`${PWD_COMMAND}`; export r; \
28069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28070 $(HOST_EXPORTS) \
a90ef4bf
JM
28071 (cd $(HOST_SUBDIR)/gdb && \
28072 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28073
a90ef4bf 28074@endif gdb
d545f33b 28075
a90ef4bf 28076# Other targets (info, dvi, pdf, etc.)
d545f33b 28077
a90ef4bf
JM
28078.PHONY: maybe-info-gdb info-gdb
28079maybe-info-gdb:
28080@if gdb
28081maybe-info-gdb: info-gdb
d545f33b 28082
a90ef4bf
JM
28083info-gdb: \
28084 configure-gdb
28085 @: $(MAKE); $(unstage)
28086 @[ -f ./gdb/Makefile ] || exit 0; \
28087 r=`${PWD_COMMAND}`; export r; \
4fa63067 28088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28089 $(HOST_EXPORTS) \
28090 for flag in $(EXTRA_HOST_FLAGS) ; do \
28091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28092 done; \
22121df0 28093 echo "Doing info in gdb"; \
a90ef4bf
JM
28094 (cd $(HOST_SUBDIR)/gdb && \
28095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28097 "RANLIB=$${RANLIB}" \
28098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28099 info) \
28100 || exit 1
4fa63067 28101
a90ef4bf 28102@endif gdb
a7254363 28103
a90ef4bf
JM
28104.PHONY: maybe-dvi-gdb dvi-gdb
28105maybe-dvi-gdb:
28106@if gdb
28107maybe-dvi-gdb: dvi-gdb
d545f33b 28108
a90ef4bf
JM
28109dvi-gdb: \
28110 configure-gdb
28111 @: $(MAKE); $(unstage)
28112 @[ -f ./gdb/Makefile ] || exit 0; \
28113 r=`${PWD_COMMAND}`; export r; \
d545f33b 28114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28115 $(HOST_EXPORTS) \
28116 for flag in $(EXTRA_HOST_FLAGS) ; do \
28117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28118 done; \
22121df0 28119 echo "Doing dvi in gdb"; \
a90ef4bf
JM
28120 (cd $(HOST_SUBDIR)/gdb && \
28121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28123 "RANLIB=$${RANLIB}" \
28124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28125 dvi) \
28126 || exit 1
d545f33b 28127
a90ef4bf 28128@endif gdb
d545f33b 28129
a90ef4bf
JM
28130.PHONY: maybe-pdf-gdb pdf-gdb
28131maybe-pdf-gdb:
28132@if gdb
28133maybe-pdf-gdb: pdf-gdb
d545f33b 28134
a90ef4bf
JM
28135pdf-gdb: \
28136 configure-gdb
9b980aa1 28137 @: $(MAKE); $(unstage)
a90ef4bf 28138 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28139 r=`${PWD_COMMAND}`; export r; \
28140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28141 $(HOST_EXPORTS) \
b813574b 28142 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28144 done; \
22121df0 28145 echo "Doing pdf in gdb"; \
a90ef4bf 28146 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28149 "RANLIB=$${RANLIB}" \
0c24b341 28150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28151 pdf) \
2a4cbe27
NN
28152 || exit 1
28153
a90ef4bf 28154@endif gdb
2a4cbe27 28155
a90ef4bf
JM
28156.PHONY: maybe-html-gdb html-gdb
28157maybe-html-gdb:
28158@if gdb
28159maybe-html-gdb: html-gdb
2a4cbe27 28160
a90ef4bf
JM
28161html-gdb: \
28162 configure-gdb
28163 @: $(MAKE); $(unstage)
28164 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28165 r=`${PWD_COMMAND}`; export r; \
28166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28167 $(HOST_EXPORTS) \
b813574b 28168 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28170 done; \
22121df0 28171 echo "Doing html in gdb"; \
a90ef4bf 28172 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28175 "RANLIB=$${RANLIB}" \
0c24b341 28176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28177 html) \
2a4cbe27
NN
28178 || exit 1
28179
a90ef4bf 28180@endif gdb
2a4cbe27 28181
a90ef4bf
JM
28182.PHONY: maybe-TAGS-gdb TAGS-gdb
28183maybe-TAGS-gdb:
28184@if gdb
28185maybe-TAGS-gdb: TAGS-gdb
56a8fe78 28186
a90ef4bf
JM
28187TAGS-gdb: \
28188 configure-gdb
28189 @: $(MAKE); $(unstage)
28190 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
28191 r=`${PWD_COMMAND}`; export r; \
28192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28193 $(HOST_EXPORTS) \
28194 for flag in $(EXTRA_HOST_FLAGS) ; do \
28195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28196 done; \
22121df0 28197 echo "Doing TAGS in gdb"; \
a90ef4bf 28198 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
28199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28201 "RANLIB=$${RANLIB}" \
0c24b341 28202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28203 TAGS) \
56a8fe78
DD
28204 || exit 1
28205
a90ef4bf 28206@endif gdb
56a8fe78 28207
a90ef4bf
JM
28208.PHONY: maybe-install-info-gdb install-info-gdb
28209maybe-install-info-gdb:
28210@if gdb
28211maybe-install-info-gdb: install-info-gdb
6d389afc 28212
a90ef4bf
JM
28213install-info-gdb: \
28214 configure-gdb \
28215 info-gdb
28216 @: $(MAKE); $(unstage)
28217 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
28218 r=`${PWD_COMMAND}`; export r; \
28219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28220 $(HOST_EXPORTS) \
28221 for flag in $(EXTRA_HOST_FLAGS) ; do \
28222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28223 done; \
22121df0 28224 echo "Doing install-info in gdb"; \
a90ef4bf 28225 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
28226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28228 "RANLIB=$${RANLIB}" \
0c24b341 28229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28230 install-info) \
6d389afc
MS
28231 || exit 1
28232
a90ef4bf 28233@endif gdb
6d389afc 28234
a90ef4bf
JM
28235.PHONY: maybe-install-pdf-gdb install-pdf-gdb
28236maybe-install-pdf-gdb:
28237@if gdb
28238maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 28239
a90ef4bf
JM
28240install-pdf-gdb: \
28241 configure-gdb \
28242 pdf-gdb
28243 @: $(MAKE); $(unstage)
28244 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28245 r=`${PWD_COMMAND}`; export r; \
28246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28247 $(HOST_EXPORTS) \
b813574b 28248 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28250 done; \
22121df0 28251 echo "Doing install-pdf in gdb"; \
a90ef4bf 28252 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28255 "RANLIB=$${RANLIB}" \
0c24b341 28256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28257 install-pdf) \
2a4cbe27
NN
28258 || exit 1
28259
a90ef4bf 28260@endif gdb
2a4cbe27 28261
a90ef4bf
JM
28262.PHONY: maybe-install-html-gdb install-html-gdb
28263maybe-install-html-gdb:
28264@if gdb
28265maybe-install-html-gdb: install-html-gdb
2a4cbe27 28266
a90ef4bf
JM
28267install-html-gdb: \
28268 configure-gdb \
28269 html-gdb
28270 @: $(MAKE); $(unstage)
28271 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28272 r=`${PWD_COMMAND}`; export r; \
28273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28274 $(HOST_EXPORTS) \
b813574b 28275 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28277 done; \
22121df0 28278 echo "Doing install-html in gdb"; \
a90ef4bf 28279 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28282 "RANLIB=$${RANLIB}" \
0c24b341 28283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28284 install-html) \
2a4cbe27
NN
28285 || exit 1
28286
a90ef4bf 28287@endif gdb
2a4cbe27 28288
a90ef4bf
JM
28289.PHONY: maybe-installcheck-gdb installcheck-gdb
28290maybe-installcheck-gdb:
28291@if gdb
28292maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 28293
a90ef4bf
JM
28294installcheck-gdb: \
28295 configure-gdb
28296 @: $(MAKE); $(unstage)
28297 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
28298 r=`${PWD_COMMAND}`; export r; \
28299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28300 $(HOST_EXPORTS) \
28301 for flag in $(EXTRA_HOST_FLAGS) ; do \
28302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28303 done; \
22121df0 28304 echo "Doing installcheck in gdb"; \
a90ef4bf 28305 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
28306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28308 "RANLIB=$${RANLIB}" \
0c24b341 28309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28310 installcheck) \
a3ca38d2
DD
28311 || exit 1
28312
a90ef4bf 28313@endif gdb
a3ca38d2 28314
a90ef4bf
JM
28315.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
28316maybe-mostlyclean-gdb:
28317@if gdb
28318maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 28319
a90ef4bf
JM
28320mostlyclean-gdb:
28321 @: $(MAKE); $(unstage)
28322 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
28323 r=`${PWD_COMMAND}`; export r; \
28324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28325 $(HOST_EXPORTS) \
28326 for flag in $(EXTRA_HOST_FLAGS) ; do \
28327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28328 done; \
22121df0 28329 echo "Doing mostlyclean in gdb"; \
a90ef4bf 28330 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
28331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28333 "RANLIB=$${RANLIB}" \
0c24b341 28334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28335 mostlyclean) \
108a6f8e
CD
28336 || exit 1
28337
a90ef4bf 28338@endif gdb
108a6f8e 28339
a90ef4bf
JM
28340.PHONY: maybe-clean-gdb clean-gdb
28341maybe-clean-gdb:
28342@if gdb
28343maybe-clean-gdb: clean-gdb
2a4cbe27 28344
a90ef4bf
JM
28345clean-gdb:
28346 @: $(MAKE); $(unstage)
28347 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28348 r=`${PWD_COMMAND}`; export r; \
28349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28350 $(HOST_EXPORTS) \
b813574b 28351 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28353 done; \
22121df0 28354 echo "Doing clean in gdb"; \
a90ef4bf 28355 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28358 "RANLIB=$${RANLIB}" \
0c24b341 28359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28360 clean) \
2a4cbe27
NN
28361 || exit 1
28362
a90ef4bf 28363@endif gdb
2a4cbe27 28364
a90ef4bf
JM
28365.PHONY: maybe-distclean-gdb distclean-gdb
28366maybe-distclean-gdb:
28367@if gdb
28368maybe-distclean-gdb: distclean-gdb
2a4cbe27 28369
a90ef4bf
JM
28370distclean-gdb:
28371 @: $(MAKE); $(unstage)
28372 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28373 r=`${PWD_COMMAND}`; export r; \
28374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28375 $(HOST_EXPORTS) \
b813574b 28376 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28378 done; \
22121df0 28379 echo "Doing distclean in gdb"; \
a90ef4bf 28380 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28383 "RANLIB=$${RANLIB}" \
0c24b341 28384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28385 distclean) \
2a4cbe27
NN
28386 || exit 1
28387
a90ef4bf 28388@endif gdb
2a4cbe27 28389
a90ef4bf
JM
28390.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
28391maybe-maintainer-clean-gdb:
28392@if gdb
28393maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 28394
a90ef4bf
JM
28395maintainer-clean-gdb:
28396 @: $(MAKE); $(unstage)
28397 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28398 r=`${PWD_COMMAND}`; export r; \
28399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28400 $(HOST_EXPORTS) \
b813574b 28401 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28403 done; \
22121df0 28404 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 28405 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28408 "RANLIB=$${RANLIB}" \
0c24b341 28409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28410 maintainer-clean) \
2a4cbe27
NN
28411 || exit 1
28412
a90ef4bf 28413@endif gdb
2a4cbe27 28414
2a4cbe27 28415
a7254363 28416
a90ef4bf
JM
28417.PHONY: configure-expect maybe-configure-expect
28418maybe-configure-expect:
4f0ef2d8 28419@if gcc-bootstrap
a90ef4bf 28420configure-expect: stage_current
4f0ef2d8 28421@endif gcc-bootstrap
a90ef4bf
JM
28422@if expect
28423maybe-configure-expect: configure-expect
28424configure-expect:
28425 @: $(MAKE); $(unstage)
c52c6897
PB
28426 @r=`${PWD_COMMAND}`; export r; \
28427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28428 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 28429 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 28430 $(HOST_EXPORTS) \
a90ef4bf
JM
28431 echo Configuring in $(HOST_SUBDIR)/expect; \
28432 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
28433 case $(srcdir) in \
28434 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28435 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
28436 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28437 esac; \
1b6c0831
L
28438 module_srcdir=expect; \
28439 $(SHELL) \
28440 $$s/$$module_srcdir/configure \
28441 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28442 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28443 --target=${target_alias} \
be01d343 28444 || exit 1
a90ef4bf 28445@endif expect
be01d343
PB
28446
28447
28448
be01d343 28449
8520c408 28450
a90ef4bf
JM
28451.PHONY: all-expect maybe-all-expect
28452maybe-all-expect:
28453@if gcc-bootstrap
28454all-expect: stage_current
28455@endif gcc-bootstrap
28456@if expect
28457TARGET-expect=all
28458maybe-all-expect: all-expect
28459all-expect: configure-expect
28460 @: $(MAKE); $(unstage)
c52c6897
PB
28461 @r=`${PWD_COMMAND}`; export r; \
28462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28463 $(HOST_EXPORTS) \
28464 (cd $(HOST_SUBDIR)/expect && \
b3676d82 28465 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28466 $(TARGET-expect))
28467@endif expect
8520c408 28468
a90ef4bf
JM
28469
28470
28471
28472.PHONY: check-expect maybe-check-expect
28473maybe-check-expect:
28474@if expect
28475maybe-check-expect: check-expect
28476
28477check-expect:
28478 @: $(MAKE); $(unstage)
c52c6897
PB
28479 @r=`${PWD_COMMAND}`; export r; \
28480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28481 $(HOST_EXPORTS) \
a90ef4bf
JM
28482 (cd $(HOST_SUBDIR)/expect && \
28483 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 28484
a90ef4bf
JM
28485@endif expect
28486
28487.PHONY: install-expect maybe-install-expect
28488maybe-install-expect:
28489@if expect
28490maybe-install-expect: install-expect
28491
28492install-expect: installdirs
28493 @: $(MAKE); $(unstage)
c52c6897
PB
28494 @r=`${PWD_COMMAND}`; export r; \
28495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28496 $(HOST_EXPORTS) \
a90ef4bf
JM
28497 (cd $(HOST_SUBDIR)/expect && \
28498 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 28499
a90ef4bf
JM
28500@endif expect
28501
28502.PHONY: install-strip-expect maybe-install-strip-expect
28503maybe-install-strip-expect:
28504@if expect
28505maybe-install-strip-expect: install-strip-expect
28506
28507install-strip-expect: installdirs
28508 @: $(MAKE); $(unstage)
c52c6897
PB
28509 @r=`${PWD_COMMAND}`; export r; \
28510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28511 $(HOST_EXPORTS) \
a90ef4bf
JM
28512 (cd $(HOST_SUBDIR)/expect && \
28513 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 28514
a90ef4bf 28515@endif expect
be01d343 28516
a90ef4bf 28517# Other targets (info, dvi, pdf, etc.)
be01d343 28518
a90ef4bf
JM
28519.PHONY: maybe-info-expect info-expect
28520maybe-info-expect:
28521@if expect
28522maybe-info-expect: info-expect
be01d343 28523
a90ef4bf
JM
28524info-expect: \
28525 configure-expect
28526 @: $(MAKE); $(unstage)
28527 @[ -f ./expect/Makefile ] || exit 0; \
28528 r=`${PWD_COMMAND}`; export r; \
be01d343 28529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28530 $(HOST_EXPORTS) \
28531 for flag in $(EXTRA_HOST_FLAGS) ; do \
28532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28533 done; \
22121df0 28534 echo "Doing info in expect"; \
a90ef4bf
JM
28535 (cd $(HOST_SUBDIR)/expect && \
28536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28538 "RANLIB=$${RANLIB}" \
28539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28540 info) \
28541 || exit 1
be01d343 28542
a90ef4bf 28543@endif expect
be01d343 28544
a90ef4bf
JM
28545.PHONY: maybe-dvi-expect dvi-expect
28546maybe-dvi-expect:
28547@if expect
28548maybe-dvi-expect: dvi-expect
be01d343 28549
a90ef4bf
JM
28550dvi-expect: \
28551 configure-expect
28552 @: $(MAKE); $(unstage)
28553 @[ -f ./expect/Makefile ] || exit 0; \
28554 r=`${PWD_COMMAND}`; export r; \
be01d343 28555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28556 $(HOST_EXPORTS) \
28557 for flag in $(EXTRA_HOST_FLAGS) ; do \
28558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28559 done; \
22121df0 28560 echo "Doing dvi in expect"; \
a90ef4bf
JM
28561 (cd $(HOST_SUBDIR)/expect && \
28562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28564 "RANLIB=$${RANLIB}" \
28565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28566 dvi) \
28567 || exit 1
be01d343 28568
a90ef4bf 28569@endif expect
be01d343 28570
a90ef4bf
JM
28571.PHONY: maybe-pdf-expect pdf-expect
28572maybe-pdf-expect:
28573@if expect
28574maybe-pdf-expect: pdf-expect
be01d343 28575
a90ef4bf
JM
28576pdf-expect: \
28577 configure-expect
28578 @: $(MAKE); $(unstage)
28579 @[ -f ./expect/Makefile ] || exit 0; \
28580 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28582 $(HOST_EXPORTS) \
a90ef4bf
JM
28583 for flag in $(EXTRA_HOST_FLAGS) ; do \
28584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28585 done; \
22121df0 28586 echo "Doing pdf in expect"; \
a90ef4bf
JM
28587 (cd $(HOST_SUBDIR)/expect && \
28588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28590 "RANLIB=$${RANLIB}" \
28591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28592 pdf) \
28593 || exit 1
be01d343 28594
a90ef4bf 28595@endif expect
be01d343 28596
a90ef4bf
JM
28597.PHONY: maybe-html-expect html-expect
28598maybe-html-expect:
28599@if expect
28600maybe-html-expect: html-expect
be01d343 28601
a90ef4bf
JM
28602html-expect: \
28603 configure-expect
28604 @: $(MAKE); $(unstage)
28605 @[ -f ./expect/Makefile ] || exit 0; \
28606 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28608 $(HOST_EXPORTS) \
a90ef4bf
JM
28609 for flag in $(EXTRA_HOST_FLAGS) ; do \
28610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28611 done; \
22121df0 28612 echo "Doing html in expect"; \
a90ef4bf
JM
28613 (cd $(HOST_SUBDIR)/expect && \
28614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28616 "RANLIB=$${RANLIB}" \
28617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28618 html) \
28619 || exit 1
be01d343 28620
a90ef4bf 28621@endif expect
be01d343 28622
a90ef4bf
JM
28623.PHONY: maybe-TAGS-expect TAGS-expect
28624maybe-TAGS-expect:
28625@if expect
28626maybe-TAGS-expect: TAGS-expect
9b980aa1 28627
a90ef4bf
JM
28628TAGS-expect: \
28629 configure-expect
9b980aa1 28630 @: $(MAKE); $(unstage)
a90ef4bf 28631 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28632 r=`${PWD_COMMAND}`; export r; \
28633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28634 $(HOST_EXPORTS) \
28635 for flag in $(EXTRA_HOST_FLAGS) ; do \
28636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28637 done; \
22121df0 28638 echo "Doing TAGS in expect"; \
a90ef4bf 28639 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28642 "RANLIB=$${RANLIB}" \
0c24b341 28643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28644 TAGS) \
28645 || exit 1
28646
a90ef4bf 28647@endif expect
be01d343 28648
a90ef4bf
JM
28649.PHONY: maybe-install-info-expect install-info-expect
28650maybe-install-info-expect:
28651@if expect
28652maybe-install-info-expect: install-info-expect
be01d343 28653
a90ef4bf
JM
28654install-info-expect: \
28655 configure-expect \
28656 info-expect
28657 @: $(MAKE); $(unstage)
28658 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28659 r=`${PWD_COMMAND}`; export r; \
28660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28661 $(HOST_EXPORTS) \
28662 for flag in $(EXTRA_HOST_FLAGS) ; do \
28663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28664 done; \
22121df0 28665 echo "Doing install-info in expect"; \
a90ef4bf 28666 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28669 "RANLIB=$${RANLIB}" \
0c24b341 28670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28671 install-info) \
28672 || exit 1
28673
a90ef4bf 28674@endif expect
be01d343 28675
a90ef4bf
JM
28676.PHONY: maybe-install-pdf-expect install-pdf-expect
28677maybe-install-pdf-expect:
28678@if expect
28679maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 28680
a90ef4bf
JM
28681install-pdf-expect: \
28682 configure-expect \
28683 pdf-expect
28684 @: $(MAKE); $(unstage)
28685 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
28686 r=`${PWD_COMMAND}`; export r; \
28687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28688 $(HOST_EXPORTS) \
28689 for flag in $(EXTRA_HOST_FLAGS) ; do \
28690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28691 done; \
22121df0 28692 echo "Doing install-pdf in expect"; \
a90ef4bf 28693 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
28694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28696 "RANLIB=$${RANLIB}" \
0c24b341 28697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28698 install-pdf) \
28699 || exit 1
28700
a90ef4bf 28701@endif expect
a3ca38d2 28702
a90ef4bf
JM
28703.PHONY: maybe-install-html-expect install-html-expect
28704maybe-install-html-expect:
28705@if expect
28706maybe-install-html-expect: install-html-expect
108a6f8e 28707
a90ef4bf
JM
28708install-html-expect: \
28709 configure-expect \
28710 html-expect
28711 @: $(MAKE); $(unstage)
28712 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
28713 r=`${PWD_COMMAND}`; export r; \
28714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28715 $(HOST_EXPORTS) \
28716 for flag in $(EXTRA_HOST_FLAGS) ; do \
28717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28718 done; \
22121df0 28719 echo "Doing install-html in expect"; \
a90ef4bf 28720 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
28721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28723 "RANLIB=$${RANLIB}" \
0c24b341 28724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28725 install-html) \
28726 || exit 1
28727
a90ef4bf 28728@endif expect
108a6f8e 28729
a90ef4bf
JM
28730.PHONY: maybe-installcheck-expect installcheck-expect
28731maybe-installcheck-expect:
28732@if expect
28733maybe-installcheck-expect: installcheck-expect
be01d343 28734
a90ef4bf
JM
28735installcheck-expect: \
28736 configure-expect
28737 @: $(MAKE); $(unstage)
28738 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28739 r=`${PWD_COMMAND}`; export r; \
28740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28741 $(HOST_EXPORTS) \
28742 for flag in $(EXTRA_HOST_FLAGS) ; do \
28743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28744 done; \
22121df0 28745 echo "Doing installcheck in expect"; \
a90ef4bf 28746 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28749 "RANLIB=$${RANLIB}" \
0c24b341 28750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28751 installcheck) \
28752 || exit 1
28753
a90ef4bf 28754@endif expect
be01d343 28755
a90ef4bf
JM
28756.PHONY: maybe-mostlyclean-expect mostlyclean-expect
28757maybe-mostlyclean-expect:
28758@if expect
28759maybe-mostlyclean-expect: mostlyclean-expect
be01d343 28760
a90ef4bf
JM
28761mostlyclean-expect:
28762 @: $(MAKE); $(unstage)
28763 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28764 r=`${PWD_COMMAND}`; export r; \
28765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28766 $(HOST_EXPORTS) \
28767 for flag in $(EXTRA_HOST_FLAGS) ; do \
28768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28769 done; \
22121df0 28770 echo "Doing mostlyclean in expect"; \
a90ef4bf 28771 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28774 "RANLIB=$${RANLIB}" \
0c24b341 28775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28776 mostlyclean) \
28777 || exit 1
28778
a90ef4bf 28779@endif expect
be01d343 28780
a90ef4bf
JM
28781.PHONY: maybe-clean-expect clean-expect
28782maybe-clean-expect:
28783@if expect
28784maybe-clean-expect: clean-expect
be01d343 28785
a90ef4bf
JM
28786clean-expect:
28787 @: $(MAKE); $(unstage)
28788 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
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; \
22121df0 28795 echo "Doing clean in expect"; \
a90ef4bf 28796 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28799 "RANLIB=$${RANLIB}" \
0c24b341 28800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28801 clean) \
28802 || exit 1
28803
a90ef4bf 28804@endif expect
be01d343 28805
a90ef4bf
JM
28806.PHONY: maybe-distclean-expect distclean-expect
28807maybe-distclean-expect:
28808@if expect
28809maybe-distclean-expect: distclean-expect
be01d343 28810
a90ef4bf
JM
28811distclean-expect:
28812 @: $(MAKE); $(unstage)
28813 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28814 r=`${PWD_COMMAND}`; export r; \
28815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28816 $(HOST_EXPORTS) \
28817 for flag in $(EXTRA_HOST_FLAGS) ; do \
28818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28819 done; \
22121df0 28820 echo "Doing distclean in expect"; \
a90ef4bf 28821 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28824 "RANLIB=$${RANLIB}" \
0c24b341 28825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28826 distclean) \
28827 || exit 1
28828
a90ef4bf 28829@endif expect
be01d343 28830
a90ef4bf
JM
28831.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
28832maybe-maintainer-clean-expect:
28833@if expect
28834maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 28835
a90ef4bf
JM
28836maintainer-clean-expect:
28837 @: $(MAKE); $(unstage)
28838 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28839 r=`${PWD_COMMAND}`; export r; \
28840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28841 $(HOST_EXPORTS) \
28842 for flag in $(EXTRA_HOST_FLAGS) ; do \
28843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28844 done; \
22121df0 28845 echo "Doing maintainer-clean in expect"; \
a90ef4bf 28846 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28849 "RANLIB=$${RANLIB}" \
0c24b341 28850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28851 maintainer-clean) \
28852 || exit 1
28853
a90ef4bf 28854@endif expect
be01d343
PB
28855
28856
28857
a90ef4bf
JM
28858.PHONY: configure-guile maybe-configure-guile
28859maybe-configure-guile:
4f0ef2d8 28860@if gcc-bootstrap
a90ef4bf 28861configure-guile: stage_current
4f0ef2d8 28862@endif gcc-bootstrap
a90ef4bf
JM
28863@if guile
28864maybe-configure-guile: configure-guile
28865configure-guile:
0aed8855 28866 @: $(MAKE); $(unstage)
c52c6897 28867 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 28868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28869 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 28870 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 28871 $(HOST_EXPORTS) \
a90ef4bf
JM
28872 echo Configuring in $(HOST_SUBDIR)/guile; \
28873 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 28874 case $(srcdir) in \
b00612cc 28875 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28876 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 28877 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 28878 esac; \
1b6c0831
L
28879 module_srcdir=guile; \
28880 $(SHELL) \
28881 $$s/$$module_srcdir/configure \
28882 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28883 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28884 --target=${target_alias} \
4b1cb4fe 28885 || exit 1
a90ef4bf 28886@endif guile
4b1cb4fe 28887
a7254363
PB
28888
28889
d545f33b
PB
28890
28891
a90ef4bf
JM
28892.PHONY: all-guile maybe-all-guile
28893maybe-all-guile:
4f0ef2d8 28894@if gcc-bootstrap
a90ef4bf 28895all-guile: stage_current
4f0ef2d8 28896@endif gcc-bootstrap
a90ef4bf
JM
28897@if guile
28898TARGET-guile=all
28899maybe-all-guile: all-guile
28900all-guile: configure-guile
28901 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28902 @r=`${PWD_COMMAND}`; export r; \
28903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 28904 $(HOST_EXPORTS) \
a90ef4bf 28905 (cd $(HOST_SUBDIR)/guile && \
b3676d82 28906 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28907 $(TARGET-guile))
28908@endif guile
4b1cb4fe 28909
a7254363 28910
d545f33b
PB
28911
28912
a90ef4bf
JM
28913.PHONY: check-guile maybe-check-guile
28914maybe-check-guile:
28915@if guile
28916maybe-check-guile: check-guile
4b1cb4fe 28917
a90ef4bf 28918check-guile:
0aed8855 28919 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28920 @r=`${PWD_COMMAND}`; export r; \
28921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28922 $(HOST_EXPORTS) \
a90ef4bf 28923 (cd $(HOST_SUBDIR)/guile && \
b00612cc 28924 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 28925
a90ef4bf 28926@endif guile
4b1cb4fe 28927
a90ef4bf
JM
28928.PHONY: install-guile maybe-install-guile
28929maybe-install-guile:
28930@if guile
28931maybe-install-guile: install-guile
4b1cb4fe 28932
a90ef4bf 28933install-guile: installdirs
0aed8855 28934 @: $(MAKE); $(unstage)
b813574b
PB
28935 @r=`${PWD_COMMAND}`; export r; \
28936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 28937 $(HOST_EXPORTS) \
a90ef4bf 28938 (cd $(HOST_SUBDIR)/guile && \
2da12f12 28939 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 28940
a90ef4bf 28941@endif guile
4b1cb4fe 28942
a90ef4bf
JM
28943.PHONY: install-strip-guile maybe-install-strip-guile
28944maybe-install-strip-guile:
28945@if guile
28946maybe-install-strip-guile: install-strip-guile
9b980aa1 28947
a90ef4bf 28948install-strip-guile: installdirs
9b980aa1
RW
28949 @: $(MAKE); $(unstage)
28950 @r=`${PWD_COMMAND}`; export r; \
28951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28952 $(HOST_EXPORTS) \
a90ef4bf 28953 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
28954 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28955
a90ef4bf 28956@endif guile
9b980aa1 28957
56a8fe78 28958# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 28959
a90ef4bf
JM
28960.PHONY: maybe-info-guile info-guile
28961maybe-info-guile:
28962@if guile
28963maybe-info-guile: info-guile
4b1cb4fe 28964
a90ef4bf
JM
28965info-guile: \
28966 configure-guile
0aed8855 28967 @: $(MAKE); $(unstage)
a90ef4bf 28968 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28969 r=`${PWD_COMMAND}`; export r; \
28970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28971 $(HOST_EXPORTS) \
b813574b 28972 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28974 done; \
22121df0 28975 echo "Doing info in guile"; \
a90ef4bf 28976 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28979 "RANLIB=$${RANLIB}" \
0c24b341 28980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28981 info) \
4b1cb4fe
DD
28982 || exit 1
28983
a90ef4bf 28984@endif guile
4b1cb4fe 28985
a90ef4bf
JM
28986.PHONY: maybe-dvi-guile dvi-guile
28987maybe-dvi-guile:
28988@if guile
28989maybe-dvi-guile: dvi-guile
4b1cb4fe 28990
a90ef4bf
JM
28991dvi-guile: \
28992 configure-guile
0aed8855 28993 @: $(MAKE); $(unstage)
a90ef4bf 28994 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28995 r=`${PWD_COMMAND}`; export r; \
28996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28997 $(HOST_EXPORTS) \
b813574b 28998 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29000 done; \
22121df0 29001 echo "Doing dvi in guile"; \
a90ef4bf 29002 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29005 "RANLIB=$${RANLIB}" \
0c24b341 29006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29007 dvi) \
4b1cb4fe
DD
29008 || exit 1
29009
a90ef4bf 29010@endif guile
4b1cb4fe 29011
a90ef4bf
JM
29012.PHONY: maybe-pdf-guile pdf-guile
29013maybe-pdf-guile:
29014@if guile
29015maybe-pdf-guile: pdf-guile
56a8fe78 29016
a90ef4bf
JM
29017pdf-guile: \
29018 configure-guile
56a8fe78 29019 @: $(MAKE); $(unstage)
a90ef4bf 29020 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
29021 r=`${PWD_COMMAND}`; export r; \
29022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29023 $(HOST_EXPORTS) \
29024 for flag in $(EXTRA_HOST_FLAGS) ; do \
29025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29026 done; \
22121df0 29027 echo "Doing pdf in guile"; \
a90ef4bf 29028 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
29029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29031 "RANLIB=$${RANLIB}" \
0c24b341 29032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29033 pdf) \
29034 || exit 1
29035
a90ef4bf 29036@endif guile
56a8fe78 29037
a90ef4bf
JM
29038.PHONY: maybe-html-guile html-guile
29039maybe-html-guile:
29040@if guile
29041maybe-html-guile: html-guile
6d389afc 29042
a90ef4bf
JM
29043html-guile: \
29044 configure-guile
0aed8855 29045 @: $(MAKE); $(unstage)
a90ef4bf 29046 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
29047 r=`${PWD_COMMAND}`; export r; \
29048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29049 $(HOST_EXPORTS) \
29050 for flag in $(EXTRA_HOST_FLAGS) ; do \
29051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29052 done; \
22121df0 29053 echo "Doing html in guile"; \
a90ef4bf 29054 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
29055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29057 "RANLIB=$${RANLIB}" \
0c24b341 29058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29059 html) \
29060 || exit 1
29061
a90ef4bf 29062@endif guile
6d389afc 29063
a90ef4bf
JM
29064.PHONY: maybe-TAGS-guile TAGS-guile
29065maybe-TAGS-guile:
29066@if guile
29067maybe-TAGS-guile: TAGS-guile
4b1cb4fe 29068
a90ef4bf
JM
29069TAGS-guile: \
29070 configure-guile
0aed8855 29071 @: $(MAKE); $(unstage)
a90ef4bf 29072 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29073 r=`${PWD_COMMAND}`; export r; \
29074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29075 $(HOST_EXPORTS) \
b813574b 29076 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29078 done; \
22121df0 29079 echo "Doing TAGS in guile"; \
a90ef4bf 29080 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29083 "RANLIB=$${RANLIB}" \
0c24b341 29084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29085 TAGS) \
4b1cb4fe
DD
29086 || exit 1
29087
a90ef4bf 29088@endif guile
4b1cb4fe 29089
a90ef4bf
JM
29090.PHONY: maybe-install-info-guile install-info-guile
29091maybe-install-info-guile:
29092@if guile
29093maybe-install-info-guile: install-info-guile
4b1cb4fe 29094
a90ef4bf
JM
29095install-info-guile: \
29096 configure-guile \
29097 info-guile
0aed8855 29098 @: $(MAKE); $(unstage)
a90ef4bf 29099 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29100 r=`${PWD_COMMAND}`; export r; \
29101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29102 $(HOST_EXPORTS) \
b813574b 29103 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29105 done; \
22121df0 29106 echo "Doing install-info in guile"; \
a90ef4bf 29107 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29110 "RANLIB=$${RANLIB}" \
0c24b341 29111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29112 install-info) \
4b1cb4fe
DD
29113 || exit 1
29114
a90ef4bf 29115@endif guile
4b1cb4fe 29116
a90ef4bf
JM
29117.PHONY: maybe-install-pdf-guile install-pdf-guile
29118maybe-install-pdf-guile:
29119@if guile
29120maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 29121
a90ef4bf
JM
29122install-pdf-guile: \
29123 configure-guile \
29124 pdf-guile
a3ca38d2 29125 @: $(MAKE); $(unstage)
a90ef4bf 29126 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
29127 r=`${PWD_COMMAND}`; export r; \
29128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29129 $(HOST_EXPORTS) \
29130 for flag in $(EXTRA_HOST_FLAGS) ; do \
29131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29132 done; \
22121df0 29133 echo "Doing install-pdf in guile"; \
a90ef4bf 29134 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
29135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29137 "RANLIB=$${RANLIB}" \
0c24b341 29138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29139 install-pdf) \
29140 || exit 1
29141
a90ef4bf 29142@endif guile
a3ca38d2 29143
a90ef4bf
JM
29144.PHONY: maybe-install-html-guile install-html-guile
29145maybe-install-html-guile:
29146@if guile
29147maybe-install-html-guile: install-html-guile
108a6f8e 29148
a90ef4bf
JM
29149install-html-guile: \
29150 configure-guile \
29151 html-guile
108a6f8e 29152 @: $(MAKE); $(unstage)
a90ef4bf 29153 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
29154 r=`${PWD_COMMAND}`; export r; \
29155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29156 $(HOST_EXPORTS) \
29157 for flag in $(EXTRA_HOST_FLAGS) ; do \
29158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29159 done; \
22121df0 29160 echo "Doing install-html in guile"; \
a90ef4bf 29161 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
29162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29164 "RANLIB=$${RANLIB}" \
0c24b341 29165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29166 install-html) \
29167 || exit 1
29168
a90ef4bf 29169@endif guile
108a6f8e 29170
a90ef4bf
JM
29171.PHONY: maybe-installcheck-guile installcheck-guile
29172maybe-installcheck-guile:
29173@if guile
29174maybe-installcheck-guile: installcheck-guile
4b1cb4fe 29175
a90ef4bf
JM
29176installcheck-guile: \
29177 configure-guile
0aed8855 29178 @: $(MAKE); $(unstage)
a90ef4bf 29179 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29180 r=`${PWD_COMMAND}`; export r; \
29181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29182 $(HOST_EXPORTS) \
b813574b 29183 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29185 done; \
22121df0 29186 echo "Doing installcheck in guile"; \
a90ef4bf 29187 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29190 "RANLIB=$${RANLIB}" \
0c24b341 29191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29192 installcheck) \
4b1cb4fe
DD
29193 || exit 1
29194
a90ef4bf 29195@endif guile
4b1cb4fe 29196
a90ef4bf
JM
29197.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29198maybe-mostlyclean-guile:
29199@if guile
29200maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 29201
a90ef4bf 29202mostlyclean-guile:
0aed8855 29203 @: $(MAKE); $(unstage)
a90ef4bf 29204 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29205 r=`${PWD_COMMAND}`; export r; \
29206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29207 $(HOST_EXPORTS) \
b813574b 29208 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29210 done; \
22121df0 29211 echo "Doing mostlyclean in guile"; \
a90ef4bf 29212 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29215 "RANLIB=$${RANLIB}" \
0c24b341 29216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29217 mostlyclean) \
4b1cb4fe
DD
29218 || exit 1
29219
a90ef4bf 29220@endif guile
4b1cb4fe 29221
a90ef4bf
JM
29222.PHONY: maybe-clean-guile clean-guile
29223maybe-clean-guile:
29224@if guile
29225maybe-clean-guile: clean-guile
4b1cb4fe 29226
a90ef4bf 29227clean-guile:
0aed8855 29228 @: $(MAKE); $(unstage)
a90ef4bf 29229 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29230 r=`${PWD_COMMAND}`; export r; \
29231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29232 $(HOST_EXPORTS) \
b813574b 29233 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29235 done; \
22121df0 29236 echo "Doing clean in guile"; \
a90ef4bf 29237 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29240 "RANLIB=$${RANLIB}" \
0c24b341 29241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29242 clean) \
4b1cb4fe
DD
29243 || exit 1
29244
a90ef4bf 29245@endif guile
4b1cb4fe 29246
a90ef4bf
JM
29247.PHONY: maybe-distclean-guile distclean-guile
29248maybe-distclean-guile:
29249@if guile
29250maybe-distclean-guile: distclean-guile
4b1cb4fe 29251
a90ef4bf 29252distclean-guile:
0aed8855 29253 @: $(MAKE); $(unstage)
a90ef4bf 29254 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29255 r=`${PWD_COMMAND}`; export r; \
29256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29257 $(HOST_EXPORTS) \
b813574b 29258 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29260 done; \
22121df0 29261 echo "Doing distclean in guile"; \
a90ef4bf 29262 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29265 "RANLIB=$${RANLIB}" \
0c24b341 29266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29267 distclean) \
4b1cb4fe
DD
29268 || exit 1
29269
a90ef4bf 29270@endif guile
4b1cb4fe 29271
a90ef4bf
JM
29272.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
29273maybe-maintainer-clean-guile:
29274@if guile
29275maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 29276
a90ef4bf 29277maintainer-clean-guile:
0aed8855 29278 @: $(MAKE); $(unstage)
a90ef4bf 29279 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29280 r=`${PWD_COMMAND}`; export r; \
29281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29282 $(HOST_EXPORTS) \
b813574b 29283 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29285 done; \
22121df0 29286 echo "Doing maintainer-clean in guile"; \
a90ef4bf 29287 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29290 "RANLIB=$${RANLIB}" \
0c24b341 29291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29292 maintainer-clean) \
4b1cb4fe
DD
29293 || exit 1
29294
a90ef4bf 29295@endif guile
4b1cb4fe
DD
29296
29297
a7254363 29298
a90ef4bf
JM
29299.PHONY: configure-tk maybe-configure-tk
29300maybe-configure-tk:
4f0ef2d8 29301@if gcc-bootstrap
a90ef4bf 29302configure-tk: stage_current
4f0ef2d8 29303@endif gcc-bootstrap
a90ef4bf
JM
29304@if tk
29305maybe-configure-tk: configure-tk
29306configure-tk:
29307 @: $(MAKE); $(unstage)
c52c6897
PB
29308 @r=`${PWD_COMMAND}`; export r; \
29309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29310 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 29311 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 29312 $(HOST_EXPORTS) \
a90ef4bf
JM
29313 echo Configuring in $(HOST_SUBDIR)/tk; \
29314 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 29315 case $(srcdir) in \
b00612cc 29316 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29317 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 29318 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29319 esac; \
1b6c0831
L
29320 module_srcdir=tk; \
29321 $(SHELL) \
29322 $$s/$$module_srcdir/configure \
29323 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29324 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29325 --target=${target_alias} \
2a4cbe27 29326 || exit 1
a90ef4bf 29327@endif tk
2a4cbe27 29328
a7254363
PB
29329
29330
a90ef4bf
JM
29331
29332
29333.PHONY: all-tk maybe-all-tk
29334maybe-all-tk:
29335@if gcc-bootstrap
29336all-tk: stage_current
29337@endif gcc-bootstrap
29338@if tk
29339TARGET-tk=all
29340maybe-all-tk: all-tk
29341all-tk: configure-tk
29342 @: $(MAKE); $(unstage)
c52c6897
PB
29343 @r=`${PWD_COMMAND}`; export r; \
29344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29345 $(HOST_EXPORTS) \
29346 (cd $(HOST_SUBDIR)/tk && \
b3676d82 29347 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29348 $(TARGET-tk))
29349@endif tk
d545f33b 29350
a90ef4bf
JM
29351
29352
29353
29354.PHONY: check-tk maybe-check-tk
29355maybe-check-tk:
29356@if tk
29357maybe-check-tk: check-tk
29358
29359check-tk:
29360 @: $(MAKE); $(unstage)
c52c6897
PB
29361 @r=`${PWD_COMMAND}`; export r; \
29362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29363 $(HOST_EXPORTS) \
a90ef4bf
JM
29364 (cd $(HOST_SUBDIR)/tk && \
29365 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 29366
a90ef4bf
JM
29367@endif tk
29368
29369.PHONY: install-tk maybe-install-tk
29370maybe-install-tk:
29371@if tk
29372maybe-install-tk: install-tk
29373
29374install-tk: installdirs
29375 @: $(MAKE); $(unstage)
c52c6897
PB
29376 @r=`${PWD_COMMAND}`; export r; \
29377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29378 $(HOST_EXPORTS) \
a90ef4bf
JM
29379 (cd $(HOST_SUBDIR)/tk && \
29380 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 29381
a90ef4bf
JM
29382@endif tk
29383
29384.PHONY: install-strip-tk maybe-install-strip-tk
29385maybe-install-strip-tk:
29386@if tk
29387maybe-install-strip-tk: install-strip-tk
29388
29389install-strip-tk: installdirs
29390 @: $(MAKE); $(unstage)
c52c6897
PB
29391 @r=`${PWD_COMMAND}`; export r; \
29392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29393 $(HOST_EXPORTS) \
a90ef4bf
JM
29394 (cd $(HOST_SUBDIR)/tk && \
29395 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29396
a90ef4bf 29397@endif tk
9b980aa1 29398
56a8fe78 29399# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29400
a90ef4bf
JM
29401.PHONY: maybe-info-tk info-tk
29402maybe-info-tk:
29403@if tk
29404maybe-info-tk: info-tk
4fa63067 29405
a90ef4bf
JM
29406info-tk: \
29407 configure-tk
29408 @: $(MAKE); $(unstage)
29409 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29410 r=`${PWD_COMMAND}`; export r; \
29411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29412 $(HOST_EXPORTS) \
b813574b 29413 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29415 done; \
22121df0 29416 echo "Doing info in tk"; \
a90ef4bf 29417 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
29418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29420 "RANLIB=$${RANLIB}" \
0c24b341 29421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29422 info) \
29423 || exit 1
29424
a90ef4bf 29425@endif tk
6d389afc 29426
a90ef4bf
JM
29427.PHONY: maybe-dvi-tk dvi-tk
29428maybe-dvi-tk:
29429@if tk
29430maybe-dvi-tk: dvi-tk
6d389afc 29431
a90ef4bf
JM
29432dvi-tk: \
29433 configure-tk
29434 @: $(MAKE); $(unstage)
29435 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
29436 r=`${PWD_COMMAND}`; export r; \
29437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29438 $(HOST_EXPORTS) \
29439 for flag in $(EXTRA_HOST_FLAGS) ; do \
29440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29441 done; \
22121df0 29442 echo "Doing dvi in tk"; \
a90ef4bf 29443 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29446 "RANLIB=$${RANLIB}" \
0c24b341 29447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29448 dvi) \
2a4cbe27
NN
29449 || exit 1
29450
a90ef4bf 29451@endif tk
2a4cbe27 29452
a90ef4bf
JM
29453.PHONY: maybe-pdf-tk pdf-tk
29454maybe-pdf-tk:
29455@if tk
29456maybe-pdf-tk: pdf-tk
56a8fe78 29457
a90ef4bf
JM
29458pdf-tk: \
29459 configure-tk
29460 @: $(MAKE); $(unstage)
29461 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
29462 r=`${PWD_COMMAND}`; export r; \
29463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29464 $(HOST_EXPORTS) \
29465 for flag in $(EXTRA_HOST_FLAGS) ; do \
29466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29467 done; \
22121df0 29468 echo "Doing pdf in tk"; \
a90ef4bf 29469 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
29470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29472 "RANLIB=$${RANLIB}" \
0c24b341 29473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29474 pdf) \
29475 || exit 1
29476
a90ef4bf 29477@endif tk
56a8fe78 29478
a90ef4bf
JM
29479.PHONY: maybe-html-tk html-tk
29480maybe-html-tk:
29481@if tk
29482maybe-html-tk: html-tk
2a4cbe27 29483
a90ef4bf
JM
29484html-tk: \
29485 configure-tk
29486 @: $(MAKE); $(unstage)
29487 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29488 r=`${PWD_COMMAND}`; export r; \
29489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29490 $(HOST_EXPORTS) \
b813574b 29491 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29493 done; \
22121df0 29494 echo "Doing html in tk"; \
a90ef4bf 29495 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29498 "RANLIB=$${RANLIB}" \
0c24b341 29499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29500 html) \
2a4cbe27
NN
29501 || exit 1
29502
a90ef4bf 29503@endif tk
2a4cbe27 29504
a90ef4bf
JM
29505.PHONY: maybe-TAGS-tk TAGS-tk
29506maybe-TAGS-tk:
29507@if tk
29508maybe-TAGS-tk: TAGS-tk
2a4cbe27 29509
a90ef4bf
JM
29510TAGS-tk: \
29511 configure-tk
29512 @: $(MAKE); $(unstage)
29513 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29514 r=`${PWD_COMMAND}`; export r; \
29515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29516 $(HOST_EXPORTS) \
b813574b 29517 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29519 done; \
22121df0 29520 echo "Doing TAGS in tk"; \
a90ef4bf 29521 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29524 "RANLIB=$${RANLIB}" \
0c24b341 29525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29526 TAGS) \
2a4cbe27
NN
29527 || exit 1
29528
a90ef4bf 29529@endif tk
2a4cbe27 29530
a90ef4bf
JM
29531.PHONY: maybe-install-info-tk install-info-tk
29532maybe-install-info-tk:
29533@if tk
29534maybe-install-info-tk: install-info-tk
2a4cbe27 29535
a90ef4bf
JM
29536install-info-tk: \
29537 configure-tk \
29538 info-tk
29539 @: $(MAKE); $(unstage)
29540 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29541 r=`${PWD_COMMAND}`; export r; \
29542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29543 $(HOST_EXPORTS) \
b813574b 29544 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29546 done; \
22121df0 29547 echo "Doing install-info in tk"; \
a90ef4bf 29548 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29551 "RANLIB=$${RANLIB}" \
0c24b341 29552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29553 install-info) \
2a4cbe27
NN
29554 || exit 1
29555
a90ef4bf 29556@endif tk
2a4cbe27 29557
a90ef4bf
JM
29558.PHONY: maybe-install-pdf-tk install-pdf-tk
29559maybe-install-pdf-tk:
29560@if tk
29561maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 29562
a90ef4bf
JM
29563install-pdf-tk: \
29564 configure-tk \
29565 pdf-tk
29566 @: $(MAKE); $(unstage)
29567 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
29568 r=`${PWD_COMMAND}`; export r; \
29569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29570 $(HOST_EXPORTS) \
29571 for flag in $(EXTRA_HOST_FLAGS) ; do \
29572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29573 done; \
22121df0 29574 echo "Doing install-pdf in tk"; \
a90ef4bf 29575 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
29576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29578 "RANLIB=$${RANLIB}" \
0c24b341 29579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29580 install-pdf) \
29581 || exit 1
29582
a90ef4bf 29583@endif tk
a3ca38d2 29584
a90ef4bf
JM
29585.PHONY: maybe-install-html-tk install-html-tk
29586maybe-install-html-tk:
29587@if tk
29588maybe-install-html-tk: install-html-tk
108a6f8e 29589
a90ef4bf
JM
29590install-html-tk: \
29591 configure-tk \
29592 html-tk
29593 @: $(MAKE); $(unstage)
29594 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
29595 r=`${PWD_COMMAND}`; export r; \
29596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29597 $(HOST_EXPORTS) \
29598 for flag in $(EXTRA_HOST_FLAGS) ; do \
29599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29600 done; \
22121df0 29601 echo "Doing install-html in tk"; \
a90ef4bf 29602 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
29603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29605 "RANLIB=$${RANLIB}" \
0c24b341 29606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29607 install-html) \
29608 || exit 1
29609
a90ef4bf 29610@endif tk
108a6f8e 29611
a90ef4bf
JM
29612.PHONY: maybe-installcheck-tk installcheck-tk
29613maybe-installcheck-tk:
29614@if tk
29615maybe-installcheck-tk: installcheck-tk
2a4cbe27 29616
a90ef4bf
JM
29617installcheck-tk: \
29618 configure-tk
29619 @: $(MAKE); $(unstage)
29620 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29621 r=`${PWD_COMMAND}`; export r; \
29622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29623 $(HOST_EXPORTS) \
b813574b 29624 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29626 done; \
22121df0 29627 echo "Doing installcheck in tk"; \
a90ef4bf 29628 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29631 "RANLIB=$${RANLIB}" \
0c24b341 29632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29633 installcheck) \
2a4cbe27
NN
29634 || exit 1
29635
a90ef4bf 29636@endif tk
2a4cbe27 29637
a90ef4bf
JM
29638.PHONY: maybe-mostlyclean-tk mostlyclean-tk
29639maybe-mostlyclean-tk:
29640@if tk
29641maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 29642
a90ef4bf
JM
29643mostlyclean-tk:
29644 @: $(MAKE); $(unstage)
29645 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29646 r=`${PWD_COMMAND}`; export r; \
29647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29648 $(HOST_EXPORTS) \
b813574b 29649 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29651 done; \
22121df0 29652 echo "Doing mostlyclean in tk"; \
a90ef4bf 29653 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29656 "RANLIB=$${RANLIB}" \
0c24b341 29657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29658 mostlyclean) \
2a4cbe27
NN
29659 || exit 1
29660
a90ef4bf 29661@endif tk
2a4cbe27 29662
a90ef4bf
JM
29663.PHONY: maybe-clean-tk clean-tk
29664maybe-clean-tk:
29665@if tk
29666maybe-clean-tk: clean-tk
2a4cbe27 29667
a90ef4bf
JM
29668clean-tk:
29669 @: $(MAKE); $(unstage)
29670 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29671 r=`${PWD_COMMAND}`; export r; \
29672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29673 $(HOST_EXPORTS) \
b813574b 29674 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29676 done; \
22121df0 29677 echo "Doing clean in tk"; \
a90ef4bf 29678 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29681 "RANLIB=$${RANLIB}" \
0c24b341 29682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29683 clean) \
2a4cbe27
NN
29684 || exit 1
29685
a90ef4bf 29686@endif tk
2a4cbe27 29687
a90ef4bf
JM
29688.PHONY: maybe-distclean-tk distclean-tk
29689maybe-distclean-tk:
29690@if tk
29691maybe-distclean-tk: distclean-tk
2a4cbe27 29692
a90ef4bf
JM
29693distclean-tk:
29694 @: $(MAKE); $(unstage)
29695 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29696 r=`${PWD_COMMAND}`; export r; \
29697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29698 $(HOST_EXPORTS) \
b813574b 29699 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29701 done; \
22121df0 29702 echo "Doing distclean in tk"; \
a90ef4bf 29703 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29706 "RANLIB=$${RANLIB}" \
0c24b341 29707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29708 distclean) \
2a4cbe27
NN
29709 || exit 1
29710
a90ef4bf 29711@endif tk
2a4cbe27 29712
a90ef4bf
JM
29713.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
29714maybe-maintainer-clean-tk:
29715@if tk
29716maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 29717
a90ef4bf
JM
29718maintainer-clean-tk:
29719 @: $(MAKE); $(unstage)
29720 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29721 r=`${PWD_COMMAND}`; export r; \
29722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29723 $(HOST_EXPORTS) \
b813574b 29724 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29726 done; \
22121df0 29727 echo "Doing maintainer-clean in tk"; \
a90ef4bf 29728 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29731 "RANLIB=$${RANLIB}" \
0c24b341 29732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29733 maintainer-clean) \
2a4cbe27
NN
29734 || exit 1
29735
a90ef4bf 29736@endif tk
2a4cbe27 29737
2a4cbe27 29738
a7254363 29739
a90ef4bf
JM
29740.PHONY: configure-libtermcap maybe-configure-libtermcap
29741maybe-configure-libtermcap:
dc448a7b 29742@if gcc-bootstrap
a90ef4bf 29743configure-libtermcap: stage_current
dc448a7b 29744@endif gcc-bootstrap
a90ef4bf
JM
29745@if libtermcap
29746maybe-configure-libtermcap: configure-libtermcap
29747configure-libtermcap:
dc448a7b
TT
29748 @: $(MAKE); $(unstage)
29749 @r=`${PWD_COMMAND}`; export r; \
29750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29751 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 29752 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 29753 $(HOST_EXPORTS) \
a90ef4bf
JM
29754 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
29755 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
29756 case $(srcdir) in \
29757 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29758 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
29759 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29760 esac; \
1b6c0831
L
29761 module_srcdir=libtermcap; \
29762 $(SHELL) \
29763 $$s/$$module_srcdir/configure \
29764 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 29765 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29766 --target=${target_alias} \
dc448a7b 29767 || exit 1
a90ef4bf 29768@endif libtermcap
dc448a7b
TT
29769
29770
29771
29772
29773
a90ef4bf
JM
29774.PHONY: all-libtermcap maybe-all-libtermcap
29775maybe-all-libtermcap:
dc448a7b 29776@if gcc-bootstrap
a90ef4bf 29777all-libtermcap: stage_current
dc448a7b 29778@endif gcc-bootstrap
a90ef4bf
JM
29779@if libtermcap
29780TARGET-libtermcap=all
29781maybe-all-libtermcap: all-libtermcap
29782all-libtermcap: configure-libtermcap
dc448a7b
TT
29783 @: $(MAKE); $(unstage)
29784 @r=`${PWD_COMMAND}`; export r; \
29785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29786 $(HOST_EXPORTS) \
a90ef4bf 29787 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 29788 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29789 $(TARGET-libtermcap))
29790@endif libtermcap
dc448a7b
TT
29791
29792
29793
29794
a90ef4bf
JM
29795.PHONY: check-libtermcap maybe-check-libtermcap
29796maybe-check-libtermcap:
29797@if libtermcap
29798maybe-check-libtermcap: check-libtermcap
dc448a7b 29799
a90ef4bf
JM
29800check-libtermcap:
29801
29802@endif libtermcap
29803
29804.PHONY: install-libtermcap maybe-install-libtermcap
29805maybe-install-libtermcap:
29806@if libtermcap
29807maybe-install-libtermcap: install-libtermcap
29808
29809install-libtermcap: installdirs
dc448a7b
TT
29810 @: $(MAKE); $(unstage)
29811 @r=`${PWD_COMMAND}`; export r; \
29812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29813 $(HOST_EXPORTS) \
a90ef4bf
JM
29814 (cd $(HOST_SUBDIR)/libtermcap && \
29815 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 29816
a90ef4bf 29817@endif libtermcap
dc448a7b 29818
a90ef4bf
JM
29819.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
29820maybe-install-strip-libtermcap:
29821@if libtermcap
29822maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 29823
a90ef4bf
JM
29824install-strip-libtermcap: installdirs
29825 @: $(MAKE); $(unstage)
29826 @r=`${PWD_COMMAND}`; export r; \
29827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29828 $(HOST_EXPORTS) \
29829 (cd $(HOST_SUBDIR)/libtermcap && \
29830 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 29831
a90ef4bf 29832@endif libtermcap
9b980aa1 29833
dc448a7b
TT
29834# Other targets (info, dvi, pdf, etc.)
29835
a90ef4bf
JM
29836.PHONY: maybe-info-libtermcap info-libtermcap
29837maybe-info-libtermcap:
29838@if libtermcap
29839maybe-info-libtermcap: info-libtermcap
dc448a7b 29840
a90ef4bf
JM
29841info-libtermcap: \
29842 configure-libtermcap
dc448a7b 29843 @: $(MAKE); $(unstage)
a90ef4bf 29844 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29845 r=`${PWD_COMMAND}`; export r; \
29846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29847 $(HOST_EXPORTS) \
29848 for flag in $(EXTRA_HOST_FLAGS) ; do \
29849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29850 done; \
22121df0 29851 echo "Doing info in libtermcap"; \
a90ef4bf 29852 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29855 "RANLIB=$${RANLIB}" \
29856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29857 info) \
29858 || exit 1
29859
a90ef4bf 29860@endif libtermcap
dc448a7b 29861
a90ef4bf
JM
29862.PHONY: maybe-dvi-libtermcap dvi-libtermcap
29863maybe-dvi-libtermcap:
29864@if libtermcap
29865maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 29866
a90ef4bf
JM
29867dvi-libtermcap: \
29868 configure-libtermcap
dc448a7b 29869 @: $(MAKE); $(unstage)
a90ef4bf 29870 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29871 r=`${PWD_COMMAND}`; export r; \
29872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29873 $(HOST_EXPORTS) \
29874 for flag in $(EXTRA_HOST_FLAGS) ; do \
29875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29876 done; \
22121df0 29877 echo "Doing dvi in libtermcap"; \
a90ef4bf 29878 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29881 "RANLIB=$${RANLIB}" \
29882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29883 dvi) \
29884 || exit 1
29885
a90ef4bf 29886@endif libtermcap
dc448a7b 29887
a90ef4bf
JM
29888.PHONY: maybe-pdf-libtermcap pdf-libtermcap
29889maybe-pdf-libtermcap:
29890@if libtermcap
29891maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 29892
a90ef4bf
JM
29893pdf-libtermcap: \
29894 configure-libtermcap
dc448a7b 29895 @: $(MAKE); $(unstage)
a90ef4bf 29896 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29897 r=`${PWD_COMMAND}`; export r; \
29898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29899 $(HOST_EXPORTS) \
29900 for flag in $(EXTRA_HOST_FLAGS) ; do \
29901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29902 done; \
22121df0 29903 echo "Doing pdf in libtermcap"; \
a90ef4bf 29904 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29907 "RANLIB=$${RANLIB}" \
29908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29909 pdf) \
29910 || exit 1
29911
a90ef4bf 29912@endif libtermcap
dc448a7b 29913
a90ef4bf
JM
29914.PHONY: maybe-html-libtermcap html-libtermcap
29915maybe-html-libtermcap:
29916@if libtermcap
29917maybe-html-libtermcap: html-libtermcap
dc448a7b 29918
a90ef4bf
JM
29919html-libtermcap: \
29920 configure-libtermcap
dc448a7b 29921 @: $(MAKE); $(unstage)
a90ef4bf 29922 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29923 r=`${PWD_COMMAND}`; export r; \
29924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29925 $(HOST_EXPORTS) \
29926 for flag in $(EXTRA_HOST_FLAGS) ; do \
29927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29928 done; \
22121df0 29929 echo "Doing html in libtermcap"; \
a90ef4bf 29930 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29933 "RANLIB=$${RANLIB}" \
29934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29935 html) \
29936 || exit 1
29937
a90ef4bf 29938@endif libtermcap
dc448a7b 29939
a90ef4bf
JM
29940.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
29941maybe-TAGS-libtermcap:
29942@if libtermcap
29943maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 29944
a90ef4bf
JM
29945TAGS-libtermcap: \
29946 configure-libtermcap
dc448a7b 29947 @: $(MAKE); $(unstage)
a90ef4bf 29948 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29949 r=`${PWD_COMMAND}`; export r; \
29950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29951 $(HOST_EXPORTS) \
29952 for flag in $(EXTRA_HOST_FLAGS) ; do \
29953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29954 done; \
22121df0 29955 echo "Doing TAGS in libtermcap"; \
a90ef4bf 29956 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29959 "RANLIB=$${RANLIB}" \
29960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29961 TAGS) \
29962 || exit 1
29963
a90ef4bf 29964@endif libtermcap
dc448a7b 29965
a90ef4bf
JM
29966.PHONY: maybe-install-info-libtermcap install-info-libtermcap
29967maybe-install-info-libtermcap:
29968@if libtermcap
29969maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 29970
a90ef4bf
JM
29971install-info-libtermcap: \
29972 configure-libtermcap \
29973 info-libtermcap
dc448a7b 29974 @: $(MAKE); $(unstage)
a90ef4bf 29975 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29976 r=`${PWD_COMMAND}`; export r; \
29977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29978 $(HOST_EXPORTS) \
29979 for flag in $(EXTRA_HOST_FLAGS) ; do \
29980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29981 done; \
22121df0 29982 echo "Doing install-info in libtermcap"; \
a90ef4bf 29983 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29986 "RANLIB=$${RANLIB}" \
29987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29988 install-info) \
dc448a7b
TT
29989 || exit 1
29990
a90ef4bf 29991@endif libtermcap
dc448a7b 29992
a90ef4bf
JM
29993.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
29994maybe-install-pdf-libtermcap:
29995@if libtermcap
29996maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 29997
a90ef4bf
JM
29998install-pdf-libtermcap: \
29999 configure-libtermcap \
30000 pdf-libtermcap
dc448a7b 30001 @: $(MAKE); $(unstage)
a90ef4bf 30002 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30003 r=`${PWD_COMMAND}`; export r; \
30004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30005 $(HOST_EXPORTS) \
30006 for flag in $(EXTRA_HOST_FLAGS) ; do \
30007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30008 done; \
22121df0 30009 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 30010 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30013 "RANLIB=$${RANLIB}" \
30014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30015 install-pdf) \
dc448a7b
TT
30016 || exit 1
30017
a90ef4bf 30018@endif libtermcap
dc448a7b 30019
a90ef4bf
JM
30020.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30021maybe-install-html-libtermcap:
30022@if libtermcap
30023maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 30024
a90ef4bf
JM
30025install-html-libtermcap: \
30026 configure-libtermcap \
30027 html-libtermcap
dc448a7b 30028 @: $(MAKE); $(unstage)
a90ef4bf 30029 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30030 r=`${PWD_COMMAND}`; export r; \
30031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30032 $(HOST_EXPORTS) \
30033 for flag in $(EXTRA_HOST_FLAGS) ; do \
30034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30035 done; \
22121df0 30036 echo "Doing install-html in libtermcap"; \
a90ef4bf 30037 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30040 "RANLIB=$${RANLIB}" \
30041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30042 install-html) \
dc448a7b
TT
30043 || exit 1
30044
a90ef4bf 30045@endif libtermcap
dc448a7b 30046
a90ef4bf
JM
30047.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30048maybe-installcheck-libtermcap:
30049@if libtermcap
30050maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 30051
a90ef4bf
JM
30052installcheck-libtermcap: \
30053 configure-libtermcap
dc448a7b 30054 @: $(MAKE); $(unstage)
a90ef4bf 30055 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30056 r=`${PWD_COMMAND}`; export r; \
30057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30058 $(HOST_EXPORTS) \
30059 for flag in $(EXTRA_HOST_FLAGS) ; do \
30060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30061 done; \
22121df0 30062 echo "Doing installcheck in libtermcap"; \
a90ef4bf 30063 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30066 "RANLIB=$${RANLIB}" \
30067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30068 installcheck) \
dc448a7b
TT
30069 || exit 1
30070
a90ef4bf 30071@endif libtermcap
dc448a7b 30072
a90ef4bf
JM
30073.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30074maybe-mostlyclean-libtermcap:
30075@if libtermcap
30076maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 30077
a90ef4bf
JM
30078# libtermcap doesn't support mostlyclean.
30079mostlyclean-libtermcap:
dc448a7b 30080
a90ef4bf 30081@endif libtermcap
dc448a7b 30082
a90ef4bf
JM
30083.PHONY: maybe-clean-libtermcap clean-libtermcap
30084maybe-clean-libtermcap:
30085@if libtermcap
30086maybe-clean-libtermcap: clean-libtermcap
dc448a7b 30087
a90ef4bf
JM
30088# libtermcap doesn't support clean.
30089clean-libtermcap:
dc448a7b 30090
a90ef4bf
JM
30091@endif libtermcap
30092
30093.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30094maybe-distclean-libtermcap:
30095@if libtermcap
30096maybe-distclean-libtermcap: distclean-libtermcap
30097
30098# libtermcap doesn't support distclean.
30099distclean-libtermcap:
30100
30101@endif libtermcap
30102
30103.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30104maybe-maintainer-clean-libtermcap:
30105@if libtermcap
30106maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
30107
30108# libtermcap doesn't support maintainer-clean.
30109maintainer-clean-libtermcap:
30110
30111@endif libtermcap
30112
30113
30114
30115.PHONY: configure-utils maybe-configure-utils
30116maybe-configure-utils:
30117@if gcc-bootstrap
30118configure-utils: stage_current
30119@endif gcc-bootstrap
30120@if utils
30121maybe-configure-utils: configure-utils
30122configure-utils:
30123 @: $(MAKE); $(unstage)
c52c6897 30124 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30126 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 30127 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 30128 $(HOST_EXPORTS) \
a90ef4bf
JM
30129 echo Configuring in $(HOST_SUBDIR)/utils; \
30130 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 30131 case $(srcdir) in \
b00612cc 30132 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30133 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 30134 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30135 esac; \
1b6c0831
L
30136 module_srcdir=utils; \
30137 $(SHELL) \
30138 $$s/$$module_srcdir/configure \
30139 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30140 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30141 --target=${target_alias} \
2a4cbe27 30142 || exit 1
a90ef4bf 30143@endif utils
2a4cbe27 30144
a7254363
PB
30145
30146
d545f33b
PB
30147
30148
a90ef4bf
JM
30149.PHONY: all-utils maybe-all-utils
30150maybe-all-utils:
4f0ef2d8 30151@if gcc-bootstrap
a90ef4bf 30152all-utils: stage_current
4f0ef2d8 30153@endif gcc-bootstrap
a90ef4bf
JM
30154@if utils
30155TARGET-utils=all
30156maybe-all-utils: all-utils
30157all-utils: configure-utils
0aed8855 30158 @: $(MAKE); $(unstage)
4fa63067
NN
30159 @r=`${PWD_COMMAND}`; export r; \
30160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30161 $(HOST_EXPORTS) \
a90ef4bf 30162 (cd $(HOST_SUBDIR)/utils && \
b3676d82 30163 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30164 $(TARGET-utils))
30165@endif utils
2a4cbe27 30166
a7254363 30167
d545f33b
PB
30168
30169
a90ef4bf
JM
30170.PHONY: check-utils maybe-check-utils
30171maybe-check-utils:
30172@if utils
30173maybe-check-utils: check-utils
2a4cbe27 30174
a90ef4bf 30175check-utils:
2a4cbe27 30176
a90ef4bf 30177@endif utils
2a4cbe27 30178
a90ef4bf
JM
30179.PHONY: install-utils maybe-install-utils
30180maybe-install-utils:
30181@if utils
30182maybe-install-utils: install-utils
2a4cbe27 30183
a90ef4bf 30184install-utils: installdirs
0aed8855 30185 @: $(MAKE); $(unstage)
4fa63067 30186 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30188 $(HOST_EXPORTS) \
a90ef4bf 30189 (cd $(HOST_SUBDIR)/utils && \
2da12f12 30190 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 30191
a90ef4bf 30192@endif utils
2a4cbe27 30193
a90ef4bf
JM
30194.PHONY: install-strip-utils maybe-install-strip-utils
30195maybe-install-strip-utils:
30196@if utils
30197maybe-install-strip-utils: install-strip-utils
9b980aa1 30198
a90ef4bf 30199install-strip-utils: installdirs
9b980aa1
RW
30200 @: $(MAKE); $(unstage)
30201 @r=`${PWD_COMMAND}`; export r; \
30202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30203 $(HOST_EXPORTS) \
a90ef4bf 30204 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
30205 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30206
a90ef4bf 30207@endif utils
9b980aa1 30208
56a8fe78 30209# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30210
a90ef4bf
JM
30211.PHONY: maybe-info-utils info-utils
30212maybe-info-utils:
30213@if utils
30214maybe-info-utils: info-utils
4fa63067 30215
a90ef4bf
JM
30216info-utils: \
30217 configure-utils
0aed8855 30218 @: $(MAKE); $(unstage)
a90ef4bf 30219 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30220 r=`${PWD_COMMAND}`; export r; \
30221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30222 $(HOST_EXPORTS) \
b813574b 30223 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30225 done; \
22121df0 30226 echo "Doing info in utils"; \
a90ef4bf 30227 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30230 "RANLIB=$${RANLIB}" \
0c24b341 30231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30232 info) \
2a4cbe27
NN
30233 || exit 1
30234
a90ef4bf 30235@endif utils
2a4cbe27 30236
a90ef4bf
JM
30237.PHONY: maybe-dvi-utils dvi-utils
30238maybe-dvi-utils:
30239@if utils
30240maybe-dvi-utils: dvi-utils
2a4cbe27 30241
a90ef4bf
JM
30242dvi-utils: \
30243 configure-utils
0aed8855 30244 @: $(MAKE); $(unstage)
a90ef4bf 30245 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30246 r=`${PWD_COMMAND}`; export r; \
30247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30248 $(HOST_EXPORTS) \
b813574b 30249 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30251 done; \
22121df0 30252 echo "Doing dvi in utils"; \
a90ef4bf 30253 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30256 "RANLIB=$${RANLIB}" \
0c24b341 30257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30258 dvi) \
2a4cbe27
NN
30259 || exit 1
30260
a90ef4bf 30261@endif utils
2a4cbe27 30262
a90ef4bf
JM
30263.PHONY: maybe-pdf-utils pdf-utils
30264maybe-pdf-utils:
30265@if utils
30266maybe-pdf-utils: pdf-utils
56a8fe78 30267
a90ef4bf
JM
30268pdf-utils: \
30269 configure-utils
56a8fe78 30270 @: $(MAKE); $(unstage)
a90ef4bf 30271 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
30272 r=`${PWD_COMMAND}`; export r; \
30273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30274 $(HOST_EXPORTS) \
30275 for flag in $(EXTRA_HOST_FLAGS) ; do \
30276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30277 done; \
22121df0 30278 echo "Doing pdf in utils"; \
a90ef4bf 30279 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
30280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30282 "RANLIB=$${RANLIB}" \
0c24b341 30283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30284 pdf) \
30285 || exit 1
30286
a90ef4bf 30287@endif utils
56a8fe78 30288
a90ef4bf
JM
30289.PHONY: maybe-html-utils html-utils
30290maybe-html-utils:
30291@if utils
30292maybe-html-utils: html-utils
6d389afc 30293
a90ef4bf
JM
30294html-utils: \
30295 configure-utils
0aed8855 30296 @: $(MAKE); $(unstage)
a90ef4bf 30297 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
30298 r=`${PWD_COMMAND}`; export r; \
30299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30300 $(HOST_EXPORTS) \
30301 for flag in $(EXTRA_HOST_FLAGS) ; do \
30302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30303 done; \
22121df0 30304 echo "Doing html in utils"; \
a90ef4bf 30305 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
30306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30308 "RANLIB=$${RANLIB}" \
0c24b341 30309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30310 html) \
30311 || exit 1
30312
a90ef4bf 30313@endif utils
6d389afc 30314
a90ef4bf
JM
30315.PHONY: maybe-TAGS-utils TAGS-utils
30316maybe-TAGS-utils:
30317@if utils
30318maybe-TAGS-utils: TAGS-utils
2a4cbe27 30319
a90ef4bf
JM
30320TAGS-utils: \
30321 configure-utils
0aed8855 30322 @: $(MAKE); $(unstage)
a90ef4bf 30323 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30324 r=`${PWD_COMMAND}`; export r; \
30325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30326 $(HOST_EXPORTS) \
b813574b 30327 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30329 done; \
22121df0 30330 echo "Doing TAGS in utils"; \
a90ef4bf 30331 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30334 "RANLIB=$${RANLIB}" \
0c24b341 30335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30336 TAGS) \
2a4cbe27
NN
30337 || exit 1
30338
a90ef4bf 30339@endif utils
2a4cbe27 30340
a90ef4bf
JM
30341.PHONY: maybe-install-info-utils install-info-utils
30342maybe-install-info-utils:
30343@if utils
30344maybe-install-info-utils: install-info-utils
2a4cbe27 30345
a90ef4bf
JM
30346install-info-utils: \
30347 configure-utils \
30348 info-utils
0aed8855 30349 @: $(MAKE); $(unstage)
a90ef4bf 30350 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30351 r=`${PWD_COMMAND}`; export r; \
30352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30353 $(HOST_EXPORTS) \
b813574b 30354 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30356 done; \
22121df0 30357 echo "Doing install-info in utils"; \
a90ef4bf 30358 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30361 "RANLIB=$${RANLIB}" \
0c24b341 30362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30363 install-info) \
2a4cbe27
NN
30364 || exit 1
30365
a90ef4bf 30366@endif utils
2a4cbe27 30367
a90ef4bf
JM
30368.PHONY: maybe-install-pdf-utils install-pdf-utils
30369maybe-install-pdf-utils:
30370@if utils
30371maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 30372
a90ef4bf
JM
30373install-pdf-utils: \
30374 configure-utils \
30375 pdf-utils
a3ca38d2 30376 @: $(MAKE); $(unstage)
a90ef4bf 30377 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
30378 r=`${PWD_COMMAND}`; export r; \
30379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30380 $(HOST_EXPORTS) \
30381 for flag in $(EXTRA_HOST_FLAGS) ; do \
30382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30383 done; \
22121df0 30384 echo "Doing install-pdf in utils"; \
a90ef4bf 30385 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
30386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30388 "RANLIB=$${RANLIB}" \
0c24b341 30389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30390 install-pdf) \
30391 || exit 1
30392
a90ef4bf 30393@endif utils
a3ca38d2 30394
a90ef4bf
JM
30395.PHONY: maybe-install-html-utils install-html-utils
30396maybe-install-html-utils:
30397@if utils
30398maybe-install-html-utils: install-html-utils
108a6f8e 30399
a90ef4bf
JM
30400install-html-utils: \
30401 configure-utils \
30402 html-utils
108a6f8e 30403 @: $(MAKE); $(unstage)
a90ef4bf 30404 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
30405 r=`${PWD_COMMAND}`; export r; \
30406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30407 $(HOST_EXPORTS) \
30408 for flag in $(EXTRA_HOST_FLAGS) ; do \
30409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30410 done; \
22121df0 30411 echo "Doing install-html in utils"; \
a90ef4bf 30412 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
30413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30415 "RANLIB=$${RANLIB}" \
0c24b341 30416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30417 install-html) \
30418 || exit 1
30419
a90ef4bf 30420@endif utils
108a6f8e 30421
a90ef4bf
JM
30422.PHONY: maybe-installcheck-utils installcheck-utils
30423maybe-installcheck-utils:
30424@if utils
30425maybe-installcheck-utils: installcheck-utils
2a4cbe27 30426
a90ef4bf
JM
30427installcheck-utils: \
30428 configure-utils
0aed8855 30429 @: $(MAKE); $(unstage)
a90ef4bf 30430 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30431 r=`${PWD_COMMAND}`; export r; \
30432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30433 $(HOST_EXPORTS) \
b813574b 30434 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30436 done; \
22121df0 30437 echo "Doing installcheck in utils"; \
a90ef4bf 30438 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30441 "RANLIB=$${RANLIB}" \
0c24b341 30442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30443 installcheck) \
2a4cbe27
NN
30444 || exit 1
30445
a90ef4bf 30446@endif utils
2a4cbe27 30447
a90ef4bf
JM
30448.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30449maybe-mostlyclean-utils:
30450@if utils
30451maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 30452
a90ef4bf 30453mostlyclean-utils:
0aed8855 30454 @: $(MAKE); $(unstage)
a90ef4bf 30455 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30456 r=`${PWD_COMMAND}`; export r; \
30457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30458 $(HOST_EXPORTS) \
b813574b 30459 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30461 done; \
22121df0 30462 echo "Doing mostlyclean in utils"; \
a90ef4bf 30463 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30466 "RANLIB=$${RANLIB}" \
0c24b341 30467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30468 mostlyclean) \
2a4cbe27
NN
30469 || exit 1
30470
a90ef4bf 30471@endif utils
2a4cbe27 30472
a90ef4bf
JM
30473.PHONY: maybe-clean-utils clean-utils
30474maybe-clean-utils:
30475@if utils
30476maybe-clean-utils: clean-utils
2a4cbe27 30477
a90ef4bf 30478clean-utils:
0aed8855 30479 @: $(MAKE); $(unstage)
a90ef4bf 30480 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30481 r=`${PWD_COMMAND}`; export r; \
30482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30483 $(HOST_EXPORTS) \
b813574b 30484 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30486 done; \
22121df0 30487 echo "Doing clean in utils"; \
a90ef4bf 30488 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30491 "RANLIB=$${RANLIB}" \
0c24b341 30492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30493 clean) \
2a4cbe27
NN
30494 || exit 1
30495
a90ef4bf 30496@endif utils
2a4cbe27 30497
a90ef4bf
JM
30498.PHONY: maybe-distclean-utils distclean-utils
30499maybe-distclean-utils:
30500@if utils
30501maybe-distclean-utils: distclean-utils
2a4cbe27 30502
a90ef4bf 30503distclean-utils:
0aed8855 30504 @: $(MAKE); $(unstage)
a90ef4bf 30505 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30506 r=`${PWD_COMMAND}`; export r; \
30507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30508 $(HOST_EXPORTS) \
b813574b 30509 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30511 done; \
22121df0 30512 echo "Doing distclean in utils"; \
a90ef4bf 30513 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30516 "RANLIB=$${RANLIB}" \
0c24b341 30517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30518 distclean) \
2a4cbe27
NN
30519 || exit 1
30520
a90ef4bf 30521@endif utils
2a4cbe27 30522
a90ef4bf
JM
30523.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30524maybe-maintainer-clean-utils:
30525@if utils
30526maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 30527
a90ef4bf 30528maintainer-clean-utils:
0aed8855 30529 @: $(MAKE); $(unstage)
a90ef4bf 30530 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30531 r=`${PWD_COMMAND}`; export r; \
30532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30533 $(HOST_EXPORTS) \
b813574b 30534 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30536 done; \
22121df0 30537 echo "Doing maintainer-clean in utils"; \
a90ef4bf 30538 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30541 "RANLIB=$${RANLIB}" \
0c24b341 30542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30543 maintainer-clean) \
2a4cbe27
NN
30544 || exit 1
30545
a90ef4bf 30546@endif utils
2a4cbe27 30547
2a4cbe27 30548
a7254363 30549
a90ef4bf
JM
30550.PHONY: configure-gnattools maybe-configure-gnattools
30551maybe-configure-gnattools:
4f0ef2d8 30552@if gcc-bootstrap
a90ef4bf 30553configure-gnattools: stage_current
4f0ef2d8 30554@endif gcc-bootstrap
a90ef4bf
JM
30555@if gnattools
30556maybe-configure-gnattools: configure-gnattools
30557configure-gnattools:
0aed8855 30558 @: $(MAKE); $(unstage)
c52c6897 30559 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30561 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 30562 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 30563 $(HOST_EXPORTS) \
a90ef4bf
JM
30564 echo Configuring in $(HOST_SUBDIR)/gnattools; \
30565 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 30566 case $(srcdir) in \
b00612cc 30567 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30568 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 30569 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30570 esac; \
1b6c0831
L
30571 module_srcdir=gnattools; \
30572 $(SHELL) \
30573 $$s/$$module_srcdir/configure \
30574 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30575 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30576 --target=${target_alias} \
2a4cbe27 30577 || exit 1
a90ef4bf 30578@endif gnattools
2a4cbe27 30579
a7254363
PB
30580
30581
d545f33b
PB
30582
30583
a90ef4bf
JM
30584.PHONY: all-gnattools maybe-all-gnattools
30585maybe-all-gnattools:
4f0ef2d8 30586@if gcc-bootstrap
a90ef4bf 30587all-gnattools: stage_current
4f0ef2d8 30588@endif gcc-bootstrap
a90ef4bf
JM
30589@if gnattools
30590TARGET-gnattools=all
30591maybe-all-gnattools: all-gnattools
30592all-gnattools: configure-gnattools
0aed8855 30593 @: $(MAKE); $(unstage)
4fa63067
NN
30594 @r=`${PWD_COMMAND}`; export r; \
30595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30596 $(HOST_EXPORTS) \
a90ef4bf 30597 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 30598 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30599 $(TARGET-gnattools))
30600@endif gnattools
4fa63067 30601
a7254363 30602
d545f33b
PB
30603
30604
a90ef4bf
JM
30605.PHONY: check-gnattools maybe-check-gnattools
30606maybe-check-gnattools:
30607@if gnattools
30608maybe-check-gnattools: check-gnattools
2a4cbe27 30609
a90ef4bf 30610check-gnattools:
0aed8855 30611 @: $(MAKE); $(unstage)
4fa63067
NN
30612 @r=`${PWD_COMMAND}`; export r; \
30613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30614 $(HOST_EXPORTS) \
a90ef4bf 30615 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 30616 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30617
a90ef4bf 30618@endif gnattools
4fa63067 30619
a90ef4bf
JM
30620.PHONY: install-gnattools maybe-install-gnattools
30621maybe-install-gnattools:
30622@if gnattools
30623maybe-install-gnattools: install-gnattools
4fa63067 30624
a90ef4bf 30625install-gnattools: installdirs
0aed8855 30626 @: $(MAKE); $(unstage)
4fa63067
NN
30627 @r=`${PWD_COMMAND}`; export r; \
30628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30629 $(HOST_EXPORTS) \
a90ef4bf 30630 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 30631 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30632
a90ef4bf 30633@endif gnattools
4fa63067 30634
a90ef4bf
JM
30635.PHONY: install-strip-gnattools maybe-install-strip-gnattools
30636maybe-install-strip-gnattools:
30637@if gnattools
30638maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 30639
a90ef4bf 30640install-strip-gnattools: installdirs
9b980aa1
RW
30641 @: $(MAKE); $(unstage)
30642 @r=`${PWD_COMMAND}`; export r; \
30643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30644 $(HOST_EXPORTS) \
a90ef4bf 30645 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
30646 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30647
a90ef4bf 30648@endif gnattools
9b980aa1 30649
56a8fe78 30650# Other targets (info, dvi, pdf, etc.)
4fa63067 30651
a90ef4bf
JM
30652.PHONY: maybe-info-gnattools info-gnattools
30653maybe-info-gnattools:
30654@if gnattools
30655maybe-info-gnattools: info-gnattools
4fa63067 30656
a90ef4bf
JM
30657info-gnattools: \
30658 configure-gnattools
0aed8855 30659 @: $(MAKE); $(unstage)
a90ef4bf 30660 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30661 r=`${PWD_COMMAND}`; export r; \
30662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30663 $(HOST_EXPORTS) \
b813574b 30664 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30666 done; \
22121df0 30667 echo "Doing info in gnattools"; \
a90ef4bf 30668 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30671 "RANLIB=$${RANLIB}" \
0c24b341 30672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30673 info) \
2a4cbe27
NN
30674 || exit 1
30675
a90ef4bf 30676@endif gnattools
2a4cbe27 30677
a90ef4bf
JM
30678.PHONY: maybe-dvi-gnattools dvi-gnattools
30679maybe-dvi-gnattools:
30680@if gnattools
30681maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 30682
a90ef4bf
JM
30683dvi-gnattools: \
30684 configure-gnattools
0aed8855 30685 @: $(MAKE); $(unstage)
a90ef4bf 30686 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30687 r=`${PWD_COMMAND}`; export r; \
30688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30689 $(HOST_EXPORTS) \
b813574b 30690 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30692 done; \
22121df0 30693 echo "Doing dvi in gnattools"; \
a90ef4bf 30694 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30697 "RANLIB=$${RANLIB}" \
0c24b341 30698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30699 dvi) \
2a4cbe27
NN
30700 || exit 1
30701
a90ef4bf 30702@endif gnattools
2a4cbe27 30703
a90ef4bf
JM
30704.PHONY: maybe-pdf-gnattools pdf-gnattools
30705maybe-pdf-gnattools:
30706@if gnattools
30707maybe-pdf-gnattools: pdf-gnattools
56a8fe78 30708
a90ef4bf
JM
30709pdf-gnattools: \
30710 configure-gnattools
56a8fe78 30711 @: $(MAKE); $(unstage)
a90ef4bf 30712 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
30713 r=`${PWD_COMMAND}`; export r; \
30714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30715 $(HOST_EXPORTS) \
30716 for flag in $(EXTRA_HOST_FLAGS) ; do \
30717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30718 done; \
22121df0 30719 echo "Doing pdf in gnattools"; \
a90ef4bf 30720 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
30721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30723 "RANLIB=$${RANLIB}" \
0c24b341 30724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30725 pdf) \
30726 || exit 1
30727
a90ef4bf 30728@endif gnattools
56a8fe78 30729
a90ef4bf
JM
30730.PHONY: maybe-html-gnattools html-gnattools
30731maybe-html-gnattools:
30732@if gnattools
30733maybe-html-gnattools: html-gnattools
6d389afc 30734
a90ef4bf
JM
30735html-gnattools: \
30736 configure-gnattools
0aed8855 30737 @: $(MAKE); $(unstage)
a90ef4bf 30738 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
30739 r=`${PWD_COMMAND}`; export r; \
30740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30741 $(HOST_EXPORTS) \
30742 for flag in $(EXTRA_HOST_FLAGS) ; do \
30743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30744 done; \
22121df0 30745 echo "Doing html in gnattools"; \
a90ef4bf 30746 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
30747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30749 "RANLIB=$${RANLIB}" \
0c24b341 30750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30751 html) \
30752 || exit 1
30753
a90ef4bf 30754@endif gnattools
6d389afc 30755
a90ef4bf
JM
30756.PHONY: maybe-TAGS-gnattools TAGS-gnattools
30757maybe-TAGS-gnattools:
30758@if gnattools
30759maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 30760
a90ef4bf
JM
30761TAGS-gnattools: \
30762 configure-gnattools
0aed8855 30763 @: $(MAKE); $(unstage)
a90ef4bf 30764 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30765 r=`${PWD_COMMAND}`; export r; \
30766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30767 $(HOST_EXPORTS) \
b813574b 30768 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30770 done; \
22121df0 30771 echo "Doing TAGS in gnattools"; \
a90ef4bf 30772 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30775 "RANLIB=$${RANLIB}" \
0c24b341 30776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30777 TAGS) \
2a4cbe27
NN
30778 || exit 1
30779
a90ef4bf 30780@endif gnattools
2a4cbe27 30781
a90ef4bf
JM
30782.PHONY: maybe-install-info-gnattools install-info-gnattools
30783maybe-install-info-gnattools:
30784@if gnattools
30785maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 30786
a90ef4bf
JM
30787install-info-gnattools: \
30788 configure-gnattools \
30789 info-gnattools
0aed8855 30790 @: $(MAKE); $(unstage)
a90ef4bf 30791 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30792 r=`${PWD_COMMAND}`; export r; \
30793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30794 $(HOST_EXPORTS) \
b813574b 30795 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30797 done; \
22121df0 30798 echo "Doing install-info in gnattools"; \
a90ef4bf 30799 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30802 "RANLIB=$${RANLIB}" \
0c24b341 30803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30804 install-info) \
2a4cbe27
NN
30805 || exit 1
30806
a90ef4bf 30807@endif gnattools
2a4cbe27 30808
a90ef4bf
JM
30809.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
30810maybe-install-pdf-gnattools:
30811@if gnattools
30812maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 30813
a90ef4bf
JM
30814install-pdf-gnattools: \
30815 configure-gnattools \
30816 pdf-gnattools
a3ca38d2 30817 @: $(MAKE); $(unstage)
a90ef4bf 30818 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
30819 r=`${PWD_COMMAND}`; export r; \
30820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30821 $(HOST_EXPORTS) \
30822 for flag in $(EXTRA_HOST_FLAGS) ; do \
30823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30824 done; \
22121df0 30825 echo "Doing install-pdf in gnattools"; \
a90ef4bf 30826 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
30827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30829 "RANLIB=$${RANLIB}" \
0c24b341 30830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30831 install-pdf) \
30832 || exit 1
30833
a90ef4bf 30834@endif gnattools
a3ca38d2 30835
a90ef4bf
JM
30836.PHONY: maybe-install-html-gnattools install-html-gnattools
30837maybe-install-html-gnattools:
30838@if gnattools
30839maybe-install-html-gnattools: install-html-gnattools
108a6f8e 30840
a90ef4bf
JM
30841install-html-gnattools: \
30842 configure-gnattools \
30843 html-gnattools
108a6f8e 30844 @: $(MAKE); $(unstage)
a90ef4bf 30845 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
30846 r=`${PWD_COMMAND}`; export r; \
30847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30848 $(HOST_EXPORTS) \
30849 for flag in $(EXTRA_HOST_FLAGS) ; do \
30850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30851 done; \
22121df0 30852 echo "Doing install-html in gnattools"; \
a90ef4bf 30853 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
30854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30856 "RANLIB=$${RANLIB}" \
0c24b341 30857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30858 install-html) \
30859 || exit 1
30860
a90ef4bf 30861@endif gnattools
108a6f8e 30862
a90ef4bf
JM
30863.PHONY: maybe-installcheck-gnattools installcheck-gnattools
30864maybe-installcheck-gnattools:
30865@if gnattools
30866maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 30867
a90ef4bf
JM
30868installcheck-gnattools: \
30869 configure-gnattools
0aed8855 30870 @: $(MAKE); $(unstage)
a90ef4bf 30871 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30872 r=`${PWD_COMMAND}`; export r; \
30873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30874 $(HOST_EXPORTS) \
b813574b 30875 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30877 done; \
22121df0 30878 echo "Doing installcheck in gnattools"; \
a90ef4bf 30879 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30882 "RANLIB=$${RANLIB}" \
0c24b341 30883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30884 installcheck) \
2a4cbe27
NN
30885 || exit 1
30886
a90ef4bf 30887@endif gnattools
2a4cbe27 30888
a90ef4bf
JM
30889.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
30890maybe-mostlyclean-gnattools:
30891@if gnattools
30892maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 30893
a90ef4bf 30894mostlyclean-gnattools:
0aed8855 30895 @: $(MAKE); $(unstage)
a90ef4bf 30896 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30897 r=`${PWD_COMMAND}`; export r; \
30898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30899 $(HOST_EXPORTS) \
b813574b 30900 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30902 done; \
22121df0 30903 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 30904 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30907 "RANLIB=$${RANLIB}" \
0c24b341 30908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30909 mostlyclean) \
2a4cbe27
NN
30910 || exit 1
30911
a90ef4bf 30912@endif gnattools
2a4cbe27 30913
a90ef4bf
JM
30914.PHONY: maybe-clean-gnattools clean-gnattools
30915maybe-clean-gnattools:
30916@if gnattools
30917maybe-clean-gnattools: clean-gnattools
2a4cbe27 30918
a90ef4bf 30919clean-gnattools:
0aed8855 30920 @: $(MAKE); $(unstage)
a90ef4bf 30921 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30922 r=`${PWD_COMMAND}`; export r; \
30923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30924 $(HOST_EXPORTS) \
b813574b 30925 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30927 done; \
22121df0 30928 echo "Doing clean in gnattools"; \
a90ef4bf 30929 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30932 "RANLIB=$${RANLIB}" \
0c24b341 30933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30934 clean) \
2a4cbe27
NN
30935 || exit 1
30936
a90ef4bf 30937@endif gnattools
2a4cbe27 30938
a90ef4bf
JM
30939.PHONY: maybe-distclean-gnattools distclean-gnattools
30940maybe-distclean-gnattools:
30941@if gnattools
30942maybe-distclean-gnattools: distclean-gnattools
a2592b1b 30943
a90ef4bf 30944distclean-gnattools:
0aed8855 30945 @: $(MAKE); $(unstage)
a90ef4bf 30946 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
30947 r=`${PWD_COMMAND}`; export r; \
30948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30949 $(HOST_EXPORTS) \
b813574b 30950 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
30951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30952 done; \
22121df0 30953 echo "Doing distclean in gnattools"; \
a90ef4bf 30954 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
30955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30957 "RANLIB=$${RANLIB}" \
0c24b341 30958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30959 distclean) \
a2592b1b
DD
30960 || exit 1
30961
a90ef4bf 30962@endif gnattools
a2592b1b 30963
a90ef4bf
JM
30964.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
30965maybe-maintainer-clean-gnattools:
30966@if gnattools
30967maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 30968
a90ef4bf 30969maintainer-clean-gnattools:
0aed8855 30970 @: $(MAKE); $(unstage)
a90ef4bf 30971 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 30972 r=`${PWD_COMMAND}`; export r; \
b40e3958 30973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30974 $(HOST_EXPORTS) \
b813574b 30975 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30977 done; \
22121df0 30978 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 30979 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
30980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30982 "RANLIB=$${RANLIB}" \
0c24b341 30983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30984 maintainer-clean) \
4fa63067 30985 || exit 1
252b5132 30986
a90ef4bf 30987@endif gnattools
252b5132 30988
252b5132 30989
a7254363 30990
a90ef4bf
JM
30991.PHONY: configure-lto-plugin maybe-configure-lto-plugin
30992maybe-configure-lto-plugin:
4f0ef2d8 30993@if gcc-bootstrap
a90ef4bf 30994configure-lto-plugin: stage_current
4f0ef2d8 30995@endif gcc-bootstrap
a90ef4bf
JM
30996@if lto-plugin
30997maybe-configure-lto-plugin: configure-lto-plugin
30998configure-lto-plugin:
c52c6897 30999 @r=`${PWD_COMMAND}`; export r; \
b813574b 31000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31001 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 31002 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 31003 $(HOST_EXPORTS) \
a90ef4bf
JM
31004 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
31005 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 31006 case $(srcdir) in \
b00612cc 31007 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31008 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 31009 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31010 esac; \
1b6c0831
L
31011 module_srcdir=lto-plugin; \
31012 $(SHELL) \
31013 $$s/$$module_srcdir/configure \
31014 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31015 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31016 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 31017 || exit 1
a90ef4bf 31018@endif lto-plugin
a7254363 31019
d545f33b
PB
31020
31021
a90ef4bf
JM
31022.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
31023maybe-configure-stage1-lto-plugin:
31024@if lto-plugin-bootstrap
31025maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
31026configure-stage1-lto-plugin:
31027 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31028 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31029 @r=`${PWD_COMMAND}`; export r; \
31030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31031 TFLAGS="$(STAGE1_TFLAGS)"; \
31032 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
31033 $(HOST_EXPORTS) \
31034 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
31035 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
31036 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
31037 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
31038 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31039 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31040 case $(srcdir) in \
31041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31042 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31044 esac; \
1b6c0831
L
31045 module_srcdir=lto-plugin; \
31046 $(SHELL) $$s/$$module_srcdir/configure \
31047 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31048 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
31049 --target=${target_alias} \
31050 \
a90ef4bf 31051 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 31052 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31053@endif lto-plugin-bootstrap
252b5132 31054
a90ef4bf
JM
31055.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
31056maybe-configure-stage2-lto-plugin:
31057@if lto-plugin-bootstrap
31058maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
31059configure-stage2-lto-plugin:
31060 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31061 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
31062 @r=`${PWD_COMMAND}`; export r; \
31063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31064 TFLAGS="$(STAGE2_TFLAGS)"; \
31065 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 31066 $(HOST_EXPORTS) \
a90ef4bf
JM
31067 $(POSTSTAGE1_HOST_EXPORTS) \
31068 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
31069 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
31070 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31071 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
31072 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31073 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31074 case $(srcdir) in \
31075 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31076 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31077 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31078 esac; \
1b6c0831
L
31079 module_srcdir=lto-plugin; \
31080 $(SHELL) $$s/$$module_srcdir/configure \
31081 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31082 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31083 --target=${target_alias} \
22121df0 31084 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31085 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 31086 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31087@endif lto-plugin-bootstrap
4fa63067 31088
a90ef4bf
JM
31089.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
31090maybe-configure-stage3-lto-plugin:
31091@if lto-plugin-bootstrap
31092maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
31093configure-stage3-lto-plugin:
31094 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31095 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31096 @r=`${PWD_COMMAND}`; export r; \
31097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31098 TFLAGS="$(STAGE3_TFLAGS)"; \
31099 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31100 $(HOST_EXPORTS) \
a90ef4bf
JM
31101 $(POSTSTAGE1_HOST_EXPORTS) \
31102 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
31103 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
31104 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31105 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
31106 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31107 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31108 case $(srcdir) in \
31109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31110 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31112 esac; \
1b6c0831
L
31113 module_srcdir=lto-plugin; \
31114 $(SHELL) $$s/$$module_srcdir/configure \
31115 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31116 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31117 --target=${target_alias} \
22121df0 31118 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31119 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 31120 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31121@endif lto-plugin-bootstrap
9b980aa1 31122
a90ef4bf
JM
31123.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
31124maybe-configure-stage4-lto-plugin:
31125@if lto-plugin-bootstrap
31126maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
31127configure-stage4-lto-plugin:
31128 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31129 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
31130 @r=`${PWD_COMMAND}`; export r; \
31131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31132 TFLAGS="$(STAGE4_TFLAGS)"; \
31133 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 31134 $(HOST_EXPORTS) \
a90ef4bf
JM
31135 $(POSTSTAGE1_HOST_EXPORTS) \
31136 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
31137 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
31138 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31139 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
31140 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31141 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31142 case $(srcdir) in \
31143 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31144 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31145 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31146 esac; \
1b6c0831
L
31147 module_srcdir=lto-plugin; \
31148 $(SHELL) $$s/$$module_srcdir/configure \
31149 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31150 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31151 --target=${target_alias} \
22121df0 31152 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31153 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 31154 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31155@endif lto-plugin-bootstrap
4fa63067 31156
a90ef4bf
JM
31157.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
31158maybe-configure-stageprofile-lto-plugin:
31159@if lto-plugin-bootstrap
31160maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31161configure-stageprofile-lto-plugin:
31162 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31163 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31164 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31166 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31167 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31168 $(HOST_EXPORTS) \
a90ef4bf
JM
31169 $(POSTSTAGE1_HOST_EXPORTS) \
31170 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
31171 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
31172 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31173 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
31174 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31175 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31176 case $(srcdir) in \
31177 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31178 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31179 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31180 esac; \
1b6c0831
L
31181 module_srcdir=lto-plugin; \
31182 $(SHELL) $$s/$$module_srcdir/configure \
31183 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31184 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31185 --target=${target_alias} \
22121df0 31186 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31187 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 31188 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31189@endif lto-plugin-bootstrap
4fa63067 31190
a90ef4bf
JM
31191.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
31192maybe-configure-stagefeedback-lto-plugin:
31193@if lto-plugin-bootstrap
31194maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31195configure-stagefeedback-lto-plugin:
31196 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31197 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31198 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31200 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31201 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31202 $(HOST_EXPORTS) \
a90ef4bf
JM
31203 $(POSTSTAGE1_HOST_EXPORTS) \
31204 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
31205 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
31206 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31207 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
31208 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31209 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31210 case $(srcdir) in \
31211 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31212 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31213 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31214 esac; \
1b6c0831
L
31215 module_srcdir=lto-plugin; \
31216 $(SHELL) $$s/$$module_srcdir/configure \
31217 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31218 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31219 --target=${target_alias} \
22121df0 31220 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31221 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 31222 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31223@endif lto-plugin-bootstrap
252b5132 31224
56a8fe78 31225
56a8fe78 31226
56a8fe78 31227
6d389afc 31228
a90ef4bf
JM
31229.PHONY: all-lto-plugin maybe-all-lto-plugin
31230maybe-all-lto-plugin:
31231@if gcc-bootstrap
31232all-lto-plugin: stage_current
31233@endif gcc-bootstrap
31234@if lto-plugin
31235TARGET-lto-plugin=all
31236maybe-all-lto-plugin: all-lto-plugin
31237all-lto-plugin: configure-lto-plugin
31238 @r=`${PWD_COMMAND}`; export r; \
6d389afc 31239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31240 $(HOST_EXPORTS) \
31241 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31242 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31243 $(TARGET-lto-plugin))
31244@endif lto-plugin
6d389afc 31245
6d389afc 31246
252b5132 31247
a90ef4bf
JM
31248.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
31249.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
31250maybe-all-stage1-lto-plugin:
31251maybe-clean-stage1-lto-plugin:
31252@if lto-plugin-bootstrap
31253maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
31254all-stage1: all-stage1-lto-plugin
31255TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
31256all-stage1-lto-plugin: configure-stage1-lto-plugin
31257 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31258 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31260 TFLAGS="$(STAGE1_TFLAGS)"; \
31261 $(HOST_EXPORTS) \
31262 cd $(HOST_SUBDIR)/lto-plugin && \
31263 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31264 CFLAGS="$(STAGE1_CFLAGS)" \
31265 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
31266 LIBCFLAGS="$(LIBCFLAGS)" \
31267 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31268 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31269 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 31270 $(EXTRA_HOST_FLAGS) \
1b6c0831 31271 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31272 TFLAGS="$(STAGE1_TFLAGS)" \
31273 $(TARGET-stage1-lto-plugin)
3866be5d 31274
a90ef4bf
JM
31275maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
31276clean-stage1: clean-stage1-lto-plugin
31277clean-stage1-lto-plugin:
31278 @if [ $(current_stage) = stage1 ]; then \
31279 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31280 else \
31281 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
31282 $(MAKE) stage1-start; \
31283 fi; \
31284 cd $(HOST_SUBDIR)/lto-plugin && \
31285 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 31286 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31287@endif lto-plugin-bootstrap
3866be5d 31288
3866be5d 31289
a90ef4bf
JM
31290.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
31291.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
31292maybe-all-stage2-lto-plugin:
31293maybe-clean-stage2-lto-plugin:
31294@if lto-plugin-bootstrap
31295maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
31296all-stage2: all-stage2-lto-plugin
31297TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
31298all-stage2-lto-plugin: configure-stage2-lto-plugin
31299 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31300 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31302 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 31303 $(HOST_EXPORTS) \
a90ef4bf
JM
31304 $(POSTSTAGE1_HOST_EXPORTS) \
31305 cd $(HOST_SUBDIR)/lto-plugin && \
31306 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31307 CFLAGS="$(STAGE2_CFLAGS)" \
31308 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
31309 LIBCFLAGS="$(STAGE2_CFLAGS)" \
31310 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31311 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31312 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31313 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31314 TFLAGS="$(STAGE2_TFLAGS)" \
31315 $(TARGET-stage2-lto-plugin)
3866be5d 31316
a90ef4bf
JM
31317maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
31318clean-stage2: clean-stage2-lto-plugin
31319clean-stage2-lto-plugin:
31320 @if [ $(current_stage) = stage2 ]; then \
31321 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31322 else \
31323 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
31324 $(MAKE) stage2-start; \
31325 fi; \
31326 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31327 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31328@endif lto-plugin-bootstrap
3866be5d 31329
a3ca38d2 31330
a90ef4bf
JM
31331.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
31332.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
31333maybe-all-stage3-lto-plugin:
31334maybe-clean-stage3-lto-plugin:
31335@if lto-plugin-bootstrap
31336maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
31337all-stage3: all-stage3-lto-plugin
31338TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
31339all-stage3-lto-plugin: configure-stage3-lto-plugin
31340 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31341 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 31342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31343 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 31344 $(HOST_EXPORTS) \
a90ef4bf
JM
31345 $(POSTSTAGE1_HOST_EXPORTS) \
31346 cd $(HOST_SUBDIR)/lto-plugin && \
31347 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31348 CFLAGS="$(STAGE3_CFLAGS)" \
31349 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
31350 LIBCFLAGS="$(STAGE3_CFLAGS)" \
31351 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31352 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31353 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31354 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31355 TFLAGS="$(STAGE3_TFLAGS)" \
31356 $(TARGET-stage3-lto-plugin)
a3ca38d2 31357
a90ef4bf
JM
31358maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
31359clean-stage3: clean-stage3-lto-plugin
31360clean-stage3-lto-plugin:
31361 @if [ $(current_stage) = stage3 ]; then \
31362 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31363 else \
31364 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
31365 $(MAKE) stage3-start; \
31366 fi; \
31367 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31368 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31369@endif lto-plugin-bootstrap
a3ca38d2 31370
108a6f8e 31371
a90ef4bf
JM
31372.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
31373.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
31374maybe-all-stage4-lto-plugin:
31375maybe-clean-stage4-lto-plugin:
31376@if lto-plugin-bootstrap
31377maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
31378all-stage4: all-stage4-lto-plugin
31379TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
31380all-stage4-lto-plugin: configure-stage4-lto-plugin
31381 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31382 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 31383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31384 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 31385 $(HOST_EXPORTS) \
a90ef4bf
JM
31386 $(POSTSTAGE1_HOST_EXPORTS) \
31387 cd $(HOST_SUBDIR)/lto-plugin && \
31388 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31389 CFLAGS="$(STAGE4_CFLAGS)" \
31390 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
31391 LIBCFLAGS="$(STAGE4_CFLAGS)" \
31392 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31393 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31394 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31395 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31396 TFLAGS="$(STAGE4_TFLAGS)" \
31397 $(TARGET-stage4-lto-plugin)
108a6f8e 31398
a90ef4bf
JM
31399maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
31400clean-stage4: clean-stage4-lto-plugin
31401clean-stage4-lto-plugin:
31402 @if [ $(current_stage) = stage4 ]; then \
31403 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31404 else \
31405 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
31406 $(MAKE) stage4-start; \
31407 fi; \
31408 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31409 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31410@endif lto-plugin-bootstrap
4fa63067 31411
4fa63067 31412
a90ef4bf
JM
31413.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
31414.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
31415maybe-all-stageprofile-lto-plugin:
31416maybe-clean-stageprofile-lto-plugin:
31417@if lto-plugin-bootstrap
31418maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
31419all-stageprofile: all-stageprofile-lto-plugin
31420TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
31421all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31422 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31423 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31425 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 31426 $(HOST_EXPORTS) \
a90ef4bf
JM
31427 $(POSTSTAGE1_HOST_EXPORTS) \
31428 cd $(HOST_SUBDIR)/lto-plugin && \
31429 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31430 CFLAGS="$(STAGEprofile_CFLAGS)" \
31431 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
31432 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
31433 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31434 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31435 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31436 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31437 TFLAGS="$(STAGEprofile_TFLAGS)" \
31438 $(TARGET-stageprofile-lto-plugin)
4fa63067 31439
a90ef4bf
JM
31440maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
31441clean-stageprofile: clean-stageprofile-lto-plugin
31442clean-stageprofile-lto-plugin:
31443 @if [ $(current_stage) = stageprofile ]; then \
31444 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31445 else \
31446 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
31447 $(MAKE) stageprofile-start; \
31448 fi; \
31449 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31450 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31451@endif lto-plugin-bootstrap
4fa63067 31452
4fa63067 31453
a90ef4bf
JM
31454.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
31455.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
31456maybe-all-stagefeedback-lto-plugin:
31457maybe-clean-stagefeedback-lto-plugin:
31458@if lto-plugin-bootstrap
31459maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
31460all-stagefeedback: all-stagefeedback-lto-plugin
31461TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
31462all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31463 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31464 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31466 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 31467 $(HOST_EXPORTS) \
a90ef4bf
JM
31468 $(POSTSTAGE1_HOST_EXPORTS) \
31469 cd $(HOST_SUBDIR)/lto-plugin && \
31470 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31471 CFLAGS="$(STAGEfeedback_CFLAGS)" \
31472 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
31473 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
31474 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31475 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31476 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31477 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31478 TFLAGS="$(STAGEfeedback_TFLAGS)" \
31479 $(TARGET-stagefeedback-lto-plugin)
3866be5d 31480
a90ef4bf
JM
31481maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
31482clean-stagefeedback: clean-stagefeedback-lto-plugin
31483clean-stagefeedback-lto-plugin:
31484 @if [ $(current_stage) = stagefeedback ]; then \
31485 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31486 else \
31487 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
31488 $(MAKE) stagefeedback-start; \
31489 fi; \
31490 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31491 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31492@endif lto-plugin-bootstrap
a7254363 31493
e2b9e2dc 31494
a7254363
PB
31495
31496
d545f33b 31497
a90ef4bf
JM
31498.PHONY: check-lto-plugin maybe-check-lto-plugin
31499maybe-check-lto-plugin:
31500@if lto-plugin
31501maybe-check-lto-plugin: check-lto-plugin
d545f33b 31502
a90ef4bf 31503check-lto-plugin:
0aed8855 31504 @: $(MAKE); $(unstage)
b40e3958
L
31505 @r=`${PWD_COMMAND}`; export r; \
31506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31507 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 31508 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 31509 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 31510
a90ef4bf 31511@endif lto-plugin
3866be5d 31512
a90ef4bf
JM
31513.PHONY: install-lto-plugin maybe-install-lto-plugin
31514maybe-install-lto-plugin:
31515@if lto-plugin
31516maybe-install-lto-plugin: install-lto-plugin
4fa63067 31517
a90ef4bf 31518install-lto-plugin: installdirs
0aed8855 31519 @: $(MAKE); $(unstage)
4fa63067
NN
31520 @r=`${PWD_COMMAND}`; export r; \
31521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31522 $(HOST_EXPORTS) \
a90ef4bf 31523 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31524 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 31525
a90ef4bf 31526@endif lto-plugin
4fa63067 31527
a90ef4bf
JM
31528.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
31529maybe-install-strip-lto-plugin:
31530@if lto-plugin
31531maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 31532
a90ef4bf 31533install-strip-lto-plugin: installdirs
9b980aa1
RW
31534 @: $(MAKE); $(unstage)
31535 @r=`${PWD_COMMAND}`; export r; \
31536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31537 $(HOST_EXPORTS) \
a90ef4bf 31538 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31539 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 31540
a90ef4bf 31541@endif lto-plugin
9b980aa1 31542
56a8fe78 31543# Other targets (info, dvi, pdf, etc.)
4fa63067 31544
a90ef4bf
JM
31545.PHONY: maybe-info-lto-plugin info-lto-plugin
31546maybe-info-lto-plugin:
31547@if lto-plugin
31548maybe-info-lto-plugin: info-lto-plugin
4fa63067 31549
a90ef4bf
JM
31550info-lto-plugin: \
31551 configure-lto-plugin
31552 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31553 r=`${PWD_COMMAND}`; export r; \
31554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31555 $(HOST_EXPORTS) \
1b6c0831 31556 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31558 done; \
22121df0 31559 echo "Doing info in lto-plugin"; \
a90ef4bf 31560 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31563 "RANLIB=$${RANLIB}" \
0c24b341 31564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31565 info) \
4fa63067
NN
31566 || exit 1
31567
a90ef4bf 31568@endif lto-plugin
4fa63067 31569
a90ef4bf
JM
31570.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
31571maybe-dvi-lto-plugin:
31572@if lto-plugin
31573maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 31574
a90ef4bf
JM
31575dvi-lto-plugin: \
31576 configure-lto-plugin
31577 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31578 r=`${PWD_COMMAND}`; export r; \
31579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31580 $(HOST_EXPORTS) \
1b6c0831 31581 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31583 done; \
22121df0 31584 echo "Doing dvi in lto-plugin"; \
a90ef4bf 31585 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31588 "RANLIB=$${RANLIB}" \
0c24b341 31589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31590 dvi) \
4fa63067
NN
31591 || exit 1
31592
a90ef4bf 31593@endif lto-plugin
4fa63067 31594
a90ef4bf
JM
31595.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
31596maybe-pdf-lto-plugin:
31597@if lto-plugin
31598maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 31599
a90ef4bf
JM
31600pdf-lto-plugin: \
31601 configure-lto-plugin
31602 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
31603 r=`${PWD_COMMAND}`; export r; \
31604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31605 $(HOST_EXPORTS) \
1b6c0831 31606 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
31607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31608 done; \
22121df0 31609 echo "Doing pdf in lto-plugin"; \
a90ef4bf 31610 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
31611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31613 "RANLIB=$${RANLIB}" \
0c24b341 31614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31615 pdf) \
31616 || exit 1
31617
a90ef4bf 31618@endif lto-plugin
56a8fe78 31619
a90ef4bf
JM
31620.PHONY: maybe-html-lto-plugin html-lto-plugin
31621maybe-html-lto-plugin:
31622@if lto-plugin
31623maybe-html-lto-plugin: html-lto-plugin
6d389afc 31624
a90ef4bf
JM
31625html-lto-plugin: \
31626 configure-lto-plugin
31627 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
31628 r=`${PWD_COMMAND}`; export r; \
31629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 31630 $(HOST_EXPORTS) \
1b6c0831 31631 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
31632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31633 done; \
22121df0 31634 echo "Doing html in lto-plugin"; \
a90ef4bf 31635 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
31636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31638 "RANLIB=$${RANLIB}" \
0c24b341 31639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31640 html) \
31641 || exit 1
31642
a90ef4bf 31643@endif lto-plugin
6d389afc 31644
a90ef4bf
JM
31645.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
31646maybe-TAGS-lto-plugin:
31647@if lto-plugin
31648maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 31649
a90ef4bf
JM
31650TAGS-lto-plugin: \
31651 configure-lto-plugin
31652 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31653 r=`${PWD_COMMAND}`; export r; \
31654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31655 $(HOST_EXPORTS) \
1b6c0831 31656 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31658 done; \
22121df0 31659 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 31660 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31663 "RANLIB=$${RANLIB}" \
0c24b341 31664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31665 TAGS) \
4fa63067
NN
31666 || exit 1
31667
a90ef4bf 31668@endif lto-plugin
4fa63067 31669
a90ef4bf
JM
31670.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
31671maybe-install-info-lto-plugin:
31672@if lto-plugin
31673maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 31674
a90ef4bf
JM
31675install-info-lto-plugin: \
31676 configure-lto-plugin \
31677 info-lto-plugin
31678 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31679 r=`${PWD_COMMAND}`; export r; \
31680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31681 $(HOST_EXPORTS) \
1b6c0831 31682 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31684 done; \
22121df0 31685 echo "Doing install-info in lto-plugin"; \
a90ef4bf 31686 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31689 "RANLIB=$${RANLIB}" \
0c24b341 31690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31691 install-info) \
4fa63067
NN
31692 || exit 1
31693
a90ef4bf 31694@endif lto-plugin
4fa63067 31695
a90ef4bf
JM
31696.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
31697maybe-install-pdf-lto-plugin:
31698@if lto-plugin
31699maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 31700
a90ef4bf
JM
31701install-pdf-lto-plugin: \
31702 configure-lto-plugin \
31703 pdf-lto-plugin
31704 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
31705 r=`${PWD_COMMAND}`; export r; \
31706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31707 $(HOST_EXPORTS) \
1b6c0831 31708 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
31709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31710 done; \
22121df0 31711 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 31712 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
31713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31715 "RANLIB=$${RANLIB}" \
0c24b341 31716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31717 install-pdf) \
31718 || exit 1
31719
a90ef4bf 31720@endif lto-plugin
a3ca38d2 31721
a90ef4bf
JM
31722.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
31723maybe-install-html-lto-plugin:
31724@if lto-plugin
31725maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 31726
a90ef4bf
JM
31727install-html-lto-plugin: \
31728 configure-lto-plugin \
31729 html-lto-plugin
31730 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
31731 r=`${PWD_COMMAND}`; export r; \
31732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31733 $(HOST_EXPORTS) \
1b6c0831 31734 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
31735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31736 done; \
22121df0 31737 echo "Doing install-html in lto-plugin"; \
a90ef4bf 31738 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
31739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31741 "RANLIB=$${RANLIB}" \
0c24b341 31742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31743 install-html) \
31744 || exit 1
31745
a90ef4bf 31746@endif lto-plugin
108a6f8e 31747
a90ef4bf
JM
31748.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
31749maybe-installcheck-lto-plugin:
31750@if lto-plugin
31751maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 31752
a90ef4bf
JM
31753installcheck-lto-plugin: \
31754 configure-lto-plugin
31755 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31756 r=`${PWD_COMMAND}`; export r; \
31757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31758 $(HOST_EXPORTS) \
1b6c0831 31759 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31761 done; \
22121df0 31762 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 31763 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31766 "RANLIB=$${RANLIB}" \
0c24b341 31767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31768 installcheck) \
4fa63067
NN
31769 || exit 1
31770
a90ef4bf 31771@endif lto-plugin
4fa63067 31772
a90ef4bf
JM
31773.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
31774maybe-mostlyclean-lto-plugin:
31775@if lto-plugin
31776maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 31777
a90ef4bf
JM
31778mostlyclean-lto-plugin:
31779 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31780 r=`${PWD_COMMAND}`; export r; \
31781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31782 $(HOST_EXPORTS) \
1b6c0831 31783 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31785 done; \
22121df0 31786 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 31787 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31790 "RANLIB=$${RANLIB}" \
0c24b341 31791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31792 mostlyclean) \
4fa63067
NN
31793 || exit 1
31794
a90ef4bf 31795@endif lto-plugin
4fa63067 31796
a90ef4bf
JM
31797.PHONY: maybe-clean-lto-plugin clean-lto-plugin
31798maybe-clean-lto-plugin:
31799@if lto-plugin
31800maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 31801
a90ef4bf
JM
31802clean-lto-plugin:
31803 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31804 r=`${PWD_COMMAND}`; export r; \
31805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31806 $(HOST_EXPORTS) \
1b6c0831 31807 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31809 done; \
22121df0 31810 echo "Doing clean in lto-plugin"; \
a90ef4bf 31811 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31814 "RANLIB=$${RANLIB}" \
0c24b341 31815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31816 clean) \
4fa63067
NN
31817 || exit 1
31818
a90ef4bf 31819@endif lto-plugin
4fa63067 31820
a90ef4bf
JM
31821.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
31822maybe-distclean-lto-plugin:
31823@if lto-plugin
31824maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 31825
a90ef4bf
JM
31826distclean-lto-plugin:
31827 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31828 r=`${PWD_COMMAND}`; export r; \
31829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31830 $(HOST_EXPORTS) \
1b6c0831 31831 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31833 done; \
22121df0 31834 echo "Doing distclean in lto-plugin"; \
a90ef4bf 31835 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31838 "RANLIB=$${RANLIB}" \
0c24b341 31839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31840 distclean) \
4fa63067
NN
31841 || exit 1
31842
a90ef4bf 31843@endif lto-plugin
4fa63067 31844
a90ef4bf
JM
31845.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
31846maybe-maintainer-clean-lto-plugin:
31847@if lto-plugin
31848maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 31849
a90ef4bf
JM
31850maintainer-clean-lto-plugin:
31851 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31852 r=`${PWD_COMMAND}`; export r; \
31853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31854 $(HOST_EXPORTS) \
1b6c0831 31855 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31857 done; \
22121df0 31858 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 31859 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31862 "RANLIB=$${RANLIB}" \
0c24b341 31863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31864 maintainer-clean) \
4fa63067 31865 || exit 1
16ae0395 31866
a90ef4bf
JM
31867@endif lto-plugin
31868
31869
31870
1b6c0831
L
31871.PHONY: configure-libcc1 maybe-configure-libcc1
31872maybe-configure-libcc1:
4f0ef2d8 31873@if gcc-bootstrap
1b6c0831 31874configure-libcc1: stage_current
4f0ef2d8 31875@endif gcc-bootstrap
1b6c0831
L
31876@if libcc1
31877maybe-configure-libcc1: configure-libcc1
31878configure-libcc1:
31879 @: $(MAKE); $(unstage)
c52c6897 31880 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 31882 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 31883 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
31884 $(HOST_EXPORTS) \
31885 echo Configuring in $(HOST_SUBDIR)/libcc1; \
31886 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 31887 case $(srcdir) in \
b00612cc 31888 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 31889 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 31890 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 31891 esac; \
1b6c0831
L
31892 module_srcdir=libcc1; \
31893 $(SHELL) \
31894 $$s/$$module_srcdir/configure \
31895 --srcdir=$${topdir}/$$module_srcdir \
31896 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31897 --target=${target_alias} --enable-shared \
e2b9e2dc 31898 || exit 1
1b6c0831 31899@endif libcc1
d545f33b
PB
31900
31901
3866be5d 31902
16ae0395 31903
9b980aa1 31904
1b6c0831
L
31905.PHONY: all-libcc1 maybe-all-libcc1
31906maybe-all-libcc1:
31907@if gcc-bootstrap
31908all-libcc1: stage_current
31909@endif gcc-bootstrap
31910@if libcc1
31911TARGET-libcc1=all
31912maybe-all-libcc1: all-libcc1
31913all-libcc1: configure-libcc1
31914 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31915 @r=`${PWD_COMMAND}`; export r; \
31916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31917 $(HOST_EXPORTS) \
31918 (cd $(HOST_SUBDIR)/libcc1 && \
31919 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31920 $(TARGET-libcc1))
31921@endif libcc1
e8a5fa9c 31922
1b6c0831
L
31923
31924
31925
31926.PHONY: check-libcc1 maybe-check-libcc1
31927maybe-check-libcc1:
31928@if libcc1
31929maybe-check-libcc1: check-libcc1
31930
31931check-libcc1:
31932 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31933 @r=`${PWD_COMMAND}`; export r; \
31934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31935 $(HOST_EXPORTS) \
1b6c0831
L
31936 (cd $(HOST_SUBDIR)/libcc1 && \
31937 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 31938
1b6c0831
L
31939@endif libcc1
31940
31941.PHONY: install-libcc1 maybe-install-libcc1
31942maybe-install-libcc1:
31943@if libcc1
31944maybe-install-libcc1: install-libcc1
31945
31946install-libcc1: installdirs
31947 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31948 @r=`${PWD_COMMAND}`; export r; \
31949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31950 $(HOST_EXPORTS) \
31951 (cd $(HOST_SUBDIR)/libcc1 && \
31952 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 31953
1b6c0831
L
31954@endif libcc1
31955
31956.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
31957maybe-install-strip-libcc1:
31958@if libcc1
31959maybe-install-strip-libcc1: install-strip-libcc1
31960
31961install-strip-libcc1: installdirs
31962 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31963 @r=`${PWD_COMMAND}`; export r; \
31964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31965 $(HOST_EXPORTS) \
31966 (cd $(HOST_SUBDIR)/libcc1 && \
31967 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 31968
1b6c0831 31969@endif libcc1
e8a5fa9c 31970
1b6c0831 31971# Other targets (info, dvi, pdf, etc.)
d545f33b 31972
1b6c0831
L
31973.PHONY: maybe-info-libcc1 info-libcc1
31974maybe-info-libcc1:
31975@if libcc1
31976maybe-info-libcc1: info-libcc1
d545f33b 31977
1b6c0831
L
31978info-libcc1: \
31979 configure-libcc1
31980 @: $(MAKE); $(unstage)
31981 @[ -f ./libcc1/Makefile ] || exit 0; \
31982 r=`${PWD_COMMAND}`; export r; \
b40e3958 31983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31984 $(HOST_EXPORTS) \
31985 for flag in $(EXTRA_HOST_FLAGS) ; do \
31986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31987 done; \
22121df0 31988 echo "Doing info in libcc1"; \
1b6c0831
L
31989 (cd $(HOST_SUBDIR)/libcc1 && \
31990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31992 "RANLIB=$${RANLIB}" \
31993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31994 info) \
31995 || exit 1
3866be5d 31996
1b6c0831 31997@endif libcc1
a7254363 31998
1b6c0831
L
31999.PHONY: maybe-dvi-libcc1 dvi-libcc1
32000maybe-dvi-libcc1:
32001@if libcc1
32002maybe-dvi-libcc1: dvi-libcc1
a7254363 32003
1b6c0831
L
32004dvi-libcc1: \
32005 configure-libcc1
32006 @: $(MAKE); $(unstage)
32007 @[ -f ./libcc1/Makefile ] || exit 0; \
32008 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32010 $(HOST_EXPORTS) \
32011 for flag in $(EXTRA_HOST_FLAGS) ; do \
32012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32013 done; \
22121df0 32014 echo "Doing dvi in libcc1"; \
1b6c0831
L
32015 (cd $(HOST_SUBDIR)/libcc1 && \
32016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32018 "RANLIB=$${RANLIB}" \
32019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32020 dvi) \
32021 || exit 1
e8a5fa9c 32022
1b6c0831 32023@endif libcc1
e8a5fa9c 32024
1b6c0831
L
32025.PHONY: maybe-pdf-libcc1 pdf-libcc1
32026maybe-pdf-libcc1:
32027@if libcc1
32028maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 32029
1b6c0831
L
32030pdf-libcc1: \
32031 configure-libcc1
32032 @: $(MAKE); $(unstage)
32033 @[ -f ./libcc1/Makefile ] || exit 0; \
32034 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32036 $(HOST_EXPORTS) \
32037 for flag in $(EXTRA_HOST_FLAGS) ; do \
32038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32039 done; \
22121df0 32040 echo "Doing pdf in libcc1"; \
1b6c0831
L
32041 (cd $(HOST_SUBDIR)/libcc1 && \
32042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32044 "RANLIB=$${RANLIB}" \
32045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32046 pdf) \
32047 || exit 1
e8a5fa9c 32048
1b6c0831 32049@endif libcc1
e8a5fa9c 32050
1b6c0831
L
32051.PHONY: maybe-html-libcc1 html-libcc1
32052maybe-html-libcc1:
32053@if libcc1
32054maybe-html-libcc1: html-libcc1
e8a5fa9c 32055
1b6c0831
L
32056html-libcc1: \
32057 configure-libcc1
32058 @: $(MAKE); $(unstage)
32059 @[ -f ./libcc1/Makefile ] || exit 0; \
32060 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32062 $(HOST_EXPORTS) \
32063 for flag in $(EXTRA_HOST_FLAGS) ; do \
32064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32065 done; \
22121df0 32066 echo "Doing html in libcc1"; \
1b6c0831
L
32067 (cd $(HOST_SUBDIR)/libcc1 && \
32068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32070 "RANLIB=$${RANLIB}" \
32071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32072 html) \
32073 || exit 1
e8a5fa9c 32074
1b6c0831 32075@endif libcc1
e8a5fa9c 32076
1b6c0831
L
32077.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
32078maybe-TAGS-libcc1:
32079@if libcc1
32080maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 32081
1b6c0831
L
32082TAGS-libcc1: \
32083 configure-libcc1
32084 @: $(MAKE); $(unstage)
32085 @[ -f ./libcc1/Makefile ] || exit 0; \
32086 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32088 $(HOST_EXPORTS) \
32089 for flag in $(EXTRA_HOST_FLAGS) ; do \
32090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32091 done; \
22121df0 32092 echo "Doing TAGS in libcc1"; \
1b6c0831
L
32093 (cd $(HOST_SUBDIR)/libcc1 && \
32094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32096 "RANLIB=$${RANLIB}" \
32097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32098 TAGS) \
32099 || exit 1
32100
32101@endif libcc1
32102
32103.PHONY: maybe-install-info-libcc1 install-info-libcc1
32104maybe-install-info-libcc1:
32105@if libcc1
32106maybe-install-info-libcc1: install-info-libcc1
32107
32108install-info-libcc1: \
32109 configure-libcc1 \
32110 info-libcc1
32111 @: $(MAKE); $(unstage)
32112 @[ -f ./libcc1/Makefile ] || exit 0; \
32113 r=`${PWD_COMMAND}`; export r; \
32114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32115 $(HOST_EXPORTS) \
32116 for flag in $(EXTRA_HOST_FLAGS) ; do \
32117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32118 done; \
22121df0 32119 echo "Doing install-info in libcc1"; \
1b6c0831
L
32120 (cd $(HOST_SUBDIR)/libcc1 && \
32121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32123 "RANLIB=$${RANLIB}" \
32124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32125 install-info) \
32126 || exit 1
32127
32128@endif libcc1
32129
32130.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
32131maybe-install-pdf-libcc1:
32132@if libcc1
32133maybe-install-pdf-libcc1: install-pdf-libcc1
32134
32135install-pdf-libcc1: \
32136 configure-libcc1 \
32137 pdf-libcc1
32138 @: $(MAKE); $(unstage)
32139 @[ -f ./libcc1/Makefile ] || exit 0; \
32140 r=`${PWD_COMMAND}`; export r; \
32141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32142 $(HOST_EXPORTS) \
32143 for flag in $(EXTRA_HOST_FLAGS) ; do \
32144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32145 done; \
22121df0 32146 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
32147 (cd $(HOST_SUBDIR)/libcc1 && \
32148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32150 "RANLIB=$${RANLIB}" \
32151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32152 install-pdf) \
32153 || exit 1
32154
32155@endif libcc1
32156
32157.PHONY: maybe-install-html-libcc1 install-html-libcc1
32158maybe-install-html-libcc1:
32159@if libcc1
32160maybe-install-html-libcc1: install-html-libcc1
32161
32162install-html-libcc1: \
32163 configure-libcc1 \
32164 html-libcc1
32165 @: $(MAKE); $(unstage)
32166 @[ -f ./libcc1/Makefile ] || exit 0; \
32167 r=`${PWD_COMMAND}`; export r; \
32168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32169 $(HOST_EXPORTS) \
32170 for flag in $(EXTRA_HOST_FLAGS) ; do \
32171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32172 done; \
22121df0 32173 echo "Doing install-html in libcc1"; \
1b6c0831
L
32174 (cd $(HOST_SUBDIR)/libcc1 && \
32175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32177 "RANLIB=$${RANLIB}" \
32178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32179 install-html) \
32180 || exit 1
32181
32182@endif libcc1
32183
32184.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
32185maybe-installcheck-libcc1:
32186@if libcc1
32187maybe-installcheck-libcc1: installcheck-libcc1
32188
32189installcheck-libcc1: \
32190 configure-libcc1
32191 @: $(MAKE); $(unstage)
32192 @[ -f ./libcc1/Makefile ] || exit 0; \
32193 r=`${PWD_COMMAND}`; export r; \
32194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32195 $(HOST_EXPORTS) \
32196 for flag in $(EXTRA_HOST_FLAGS) ; do \
32197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32198 done; \
22121df0 32199 echo "Doing installcheck in libcc1"; \
1b6c0831
L
32200 (cd $(HOST_SUBDIR)/libcc1 && \
32201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32203 "RANLIB=$${RANLIB}" \
32204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32205 installcheck) \
32206 || exit 1
32207
32208@endif libcc1
32209
32210.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
32211maybe-mostlyclean-libcc1:
32212@if libcc1
32213maybe-mostlyclean-libcc1: mostlyclean-libcc1
32214
32215mostlyclean-libcc1:
32216 @: $(MAKE); $(unstage)
32217 @[ -f ./libcc1/Makefile ] || exit 0; \
32218 r=`${PWD_COMMAND}`; export r; \
32219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32220 $(HOST_EXPORTS) \
32221 for flag in $(EXTRA_HOST_FLAGS) ; do \
32222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32223 done; \
22121df0 32224 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
32225 (cd $(HOST_SUBDIR)/libcc1 && \
32226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32228 "RANLIB=$${RANLIB}" \
32229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32230 mostlyclean) \
32231 || exit 1
32232
32233@endif libcc1
32234
32235.PHONY: maybe-clean-libcc1 clean-libcc1
32236maybe-clean-libcc1:
32237@if libcc1
32238maybe-clean-libcc1: clean-libcc1
32239
32240clean-libcc1:
32241 @: $(MAKE); $(unstage)
32242 @[ -f ./libcc1/Makefile ] || exit 0; \
32243 r=`${PWD_COMMAND}`; export r; \
32244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32245 $(HOST_EXPORTS) \
32246 for flag in $(EXTRA_HOST_FLAGS) ; do \
32247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32248 done; \
22121df0 32249 echo "Doing clean in libcc1"; \
1b6c0831
L
32250 (cd $(HOST_SUBDIR)/libcc1 && \
32251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32253 "RANLIB=$${RANLIB}" \
32254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32255 clean) \
32256 || exit 1
32257
32258@endif libcc1
32259
32260.PHONY: maybe-distclean-libcc1 distclean-libcc1
32261maybe-distclean-libcc1:
32262@if libcc1
32263maybe-distclean-libcc1: distclean-libcc1
32264
32265distclean-libcc1:
32266 @: $(MAKE); $(unstage)
32267 @[ -f ./libcc1/Makefile ] || exit 0; \
32268 r=`${PWD_COMMAND}`; export r; \
32269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32270 $(HOST_EXPORTS) \
32271 for flag in $(EXTRA_HOST_FLAGS) ; do \
32272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32273 done; \
22121df0 32274 echo "Doing distclean in libcc1"; \
1b6c0831
L
32275 (cd $(HOST_SUBDIR)/libcc1 && \
32276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32278 "RANLIB=$${RANLIB}" \
32279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32280 distclean) \
32281 || exit 1
32282
32283@endif libcc1
32284
32285.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
32286maybe-maintainer-clean-libcc1:
32287@if libcc1
32288maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
32289
32290maintainer-clean-libcc1:
32291 @: $(MAKE); $(unstage)
32292 @[ -f ./libcc1/Makefile ] || exit 0; \
32293 r=`${PWD_COMMAND}`; export r; \
32294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32295 $(HOST_EXPORTS) \
32296 for flag in $(EXTRA_HOST_FLAGS) ; do \
32297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32298 done; \
22121df0 32299 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
32300 (cd $(HOST_SUBDIR)/libcc1 && \
32301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32303 "RANLIB=$${RANLIB}" \
32304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32305 maintainer-clean) \
32306 || exit 1
32307
32308@endif libcc1
32309
32310
32311
32312.PHONY: configure-gotools maybe-configure-gotools
32313maybe-configure-gotools:
32314@if gcc-bootstrap
32315configure-gotools: stage_current
32316@endif gcc-bootstrap
32317@if gotools
32318maybe-configure-gotools: configure-gotools
32319configure-gotools:
32320 @: $(MAKE); $(unstage)
32321 @r=`${PWD_COMMAND}`; export r; \
32322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32323 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 32324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
32325 $(HOST_EXPORTS) \
32326 echo Configuring in $(HOST_SUBDIR)/gotools; \
32327 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
32328 case $(srcdir) in \
32329 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32330 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
32331 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32332 esac; \
32333 module_srcdir=gotools; \
32334 $(SHELL) \
32335 $$s/$$module_srcdir/configure \
32336 --srcdir=$${topdir}/$$module_srcdir \
32337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32338 --target=${target_alias} \
32339 || exit 1
32340@endif gotools
32341
32342
32343
32344
32345
32346.PHONY: all-gotools maybe-all-gotools
32347maybe-all-gotools:
32348@if gcc-bootstrap
32349all-gotools: stage_current
32350@endif gcc-bootstrap
32351@if gotools
32352TARGET-gotools=all
32353maybe-all-gotools: all-gotools
32354all-gotools: configure-gotools
32355 @: $(MAKE); $(unstage)
32356 @r=`${PWD_COMMAND}`; export r; \
32357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32358 $(HOST_EXPORTS) \
32359 (cd $(HOST_SUBDIR)/gotools && \
32360 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32361 $(TARGET-gotools))
32362@endif gotools
32363
32364
32365
32366
32367.PHONY: check-gotools maybe-check-gotools
32368maybe-check-gotools:
32369@if gotools
32370maybe-check-gotools: check-gotools
32371
32372check-gotools:
32373 @: $(MAKE); $(unstage)
32374 @r=`${PWD_COMMAND}`; export r; \
32375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32376 $(HOST_EXPORTS) \
1b6c0831
L
32377 (cd $(HOST_SUBDIR)/gotools && \
32378 $(MAKE) $(FLAGS_TO_PASS) check)
32379
32380@endif gotools
32381
32382.PHONY: install-gotools maybe-install-gotools
32383maybe-install-gotools:
32384@if gotools
32385maybe-install-gotools: install-gotools
32386
32387install-gotools: installdirs
32388 @: $(MAKE); $(unstage)
32389 @r=`${PWD_COMMAND}`; export r; \
32390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32391 $(HOST_EXPORTS) \
32392 (cd $(HOST_SUBDIR)/gotools && \
32393 $(MAKE) $(FLAGS_TO_PASS) install)
32394
32395@endif gotools
32396
32397.PHONY: install-strip-gotools maybe-install-strip-gotools
32398maybe-install-strip-gotools:
32399@if gotools
32400maybe-install-strip-gotools: install-strip-gotools
32401
32402install-strip-gotools: installdirs
32403 @: $(MAKE); $(unstage)
32404 @r=`${PWD_COMMAND}`; export r; \
32405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32406 $(HOST_EXPORTS) \
32407 (cd $(HOST_SUBDIR)/gotools && \
32408 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32409
32410@endif gotools
32411
32412# Other targets (info, dvi, pdf, etc.)
32413
32414.PHONY: maybe-info-gotools info-gotools
32415maybe-info-gotools:
32416@if gotools
32417maybe-info-gotools: info-gotools
32418
32419info-gotools: \
32420 configure-gotools
32421 @: $(MAKE); $(unstage)
32422 @[ -f ./gotools/Makefile ] || exit 0; \
32423 r=`${PWD_COMMAND}`; export r; \
32424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32425 $(HOST_EXPORTS) \
32426 for flag in $(EXTRA_HOST_FLAGS) ; do \
32427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32428 done; \
22121df0 32429 echo "Doing info in gotools"; \
1b6c0831
L
32430 (cd $(HOST_SUBDIR)/gotools && \
32431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32433 "RANLIB=$${RANLIB}" \
32434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32435 info) \
32436 || exit 1
32437
32438@endif gotools
32439
32440.PHONY: maybe-dvi-gotools dvi-gotools
32441maybe-dvi-gotools:
32442@if gotools
32443maybe-dvi-gotools: dvi-gotools
32444
32445dvi-gotools: \
32446 configure-gotools
32447 @: $(MAKE); $(unstage)
32448 @[ -f ./gotools/Makefile ] || exit 0; \
32449 r=`${PWD_COMMAND}`; export r; \
32450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32451 $(HOST_EXPORTS) \
32452 for flag in $(EXTRA_HOST_FLAGS) ; do \
32453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32454 done; \
22121df0 32455 echo "Doing dvi in gotools"; \
1b6c0831
L
32456 (cd $(HOST_SUBDIR)/gotools && \
32457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32459 "RANLIB=$${RANLIB}" \
32460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32461 dvi) \
32462 || exit 1
32463
32464@endif gotools
32465
32466.PHONY: maybe-pdf-gotools pdf-gotools
32467maybe-pdf-gotools:
32468@if gotools
32469maybe-pdf-gotools: pdf-gotools
32470
32471pdf-gotools: \
32472 configure-gotools
32473 @: $(MAKE); $(unstage)
32474 @[ -f ./gotools/Makefile ] || exit 0; \
32475 r=`${PWD_COMMAND}`; export r; \
32476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32477 $(HOST_EXPORTS) \
32478 for flag in $(EXTRA_HOST_FLAGS) ; do \
32479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32480 done; \
22121df0 32481 echo "Doing pdf in gotools"; \
1b6c0831
L
32482 (cd $(HOST_SUBDIR)/gotools && \
32483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32485 "RANLIB=$${RANLIB}" \
32486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32487 pdf) \
32488 || exit 1
32489
32490@endif gotools
32491
32492.PHONY: maybe-html-gotools html-gotools
32493maybe-html-gotools:
32494@if gotools
32495maybe-html-gotools: html-gotools
32496
32497html-gotools: \
32498 configure-gotools
32499 @: $(MAKE); $(unstage)
32500 @[ -f ./gotools/Makefile ] || exit 0; \
32501 r=`${PWD_COMMAND}`; export r; \
32502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32503 $(HOST_EXPORTS) \
32504 for flag in $(EXTRA_HOST_FLAGS) ; do \
32505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32506 done; \
22121df0 32507 echo "Doing html in gotools"; \
1b6c0831
L
32508 (cd $(HOST_SUBDIR)/gotools && \
32509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32511 "RANLIB=$${RANLIB}" \
32512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32513 html) \
32514 || exit 1
32515
32516@endif gotools
32517
32518.PHONY: maybe-TAGS-gotools TAGS-gotools
32519maybe-TAGS-gotools:
32520@if gotools
32521maybe-TAGS-gotools: TAGS-gotools
32522
32523TAGS-gotools: \
32524 configure-gotools
32525 @: $(MAKE); $(unstage)
32526 @[ -f ./gotools/Makefile ] || exit 0; \
32527 r=`${PWD_COMMAND}`; export r; \
32528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32529 $(HOST_EXPORTS) \
32530 for flag in $(EXTRA_HOST_FLAGS) ; do \
32531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32532 done; \
22121df0 32533 echo "Doing TAGS in gotools"; \
1b6c0831
L
32534 (cd $(HOST_SUBDIR)/gotools && \
32535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32537 "RANLIB=$${RANLIB}" \
32538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32539 TAGS) \
32540 || exit 1
32541
32542@endif gotools
32543
32544.PHONY: maybe-install-info-gotools install-info-gotools
32545maybe-install-info-gotools:
32546@if gotools
32547maybe-install-info-gotools: install-info-gotools
32548
32549install-info-gotools: \
32550 configure-gotools \
32551 info-gotools
32552 @: $(MAKE); $(unstage)
32553 @[ -f ./gotools/Makefile ] || exit 0; \
32554 r=`${PWD_COMMAND}`; export r; \
32555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32556 $(HOST_EXPORTS) \
32557 for flag in $(EXTRA_HOST_FLAGS) ; do \
32558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32559 done; \
22121df0 32560 echo "Doing install-info in gotools"; \
1b6c0831
L
32561 (cd $(HOST_SUBDIR)/gotools && \
32562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32564 "RANLIB=$${RANLIB}" \
32565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32566 install-info) \
32567 || exit 1
32568
32569@endif gotools
32570
32571.PHONY: maybe-install-pdf-gotools install-pdf-gotools
32572maybe-install-pdf-gotools:
32573@if gotools
32574maybe-install-pdf-gotools: install-pdf-gotools
32575
32576install-pdf-gotools: \
32577 configure-gotools \
32578 pdf-gotools
32579 @: $(MAKE); $(unstage)
32580 @[ -f ./gotools/Makefile ] || exit 0; \
32581 r=`${PWD_COMMAND}`; export r; \
32582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32583 $(HOST_EXPORTS) \
32584 for flag in $(EXTRA_HOST_FLAGS) ; do \
32585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32586 done; \
22121df0 32587 echo "Doing install-pdf in gotools"; \
1b6c0831
L
32588 (cd $(HOST_SUBDIR)/gotools && \
32589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32591 "RANLIB=$${RANLIB}" \
32592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32593 install-pdf) \
32594 || exit 1
32595
32596@endif gotools
32597
32598.PHONY: maybe-install-html-gotools install-html-gotools
32599maybe-install-html-gotools:
32600@if gotools
32601maybe-install-html-gotools: install-html-gotools
32602
32603install-html-gotools: \
32604 configure-gotools \
32605 html-gotools
32606 @: $(MAKE); $(unstage)
32607 @[ -f ./gotools/Makefile ] || exit 0; \
32608 r=`${PWD_COMMAND}`; export r; \
32609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32610 $(HOST_EXPORTS) \
32611 for flag in $(EXTRA_HOST_FLAGS) ; do \
32612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32613 done; \
22121df0 32614 echo "Doing install-html in gotools"; \
1b6c0831
L
32615 (cd $(HOST_SUBDIR)/gotools && \
32616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32618 "RANLIB=$${RANLIB}" \
32619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32620 install-html) \
32621 || exit 1
32622
32623@endif gotools
32624
32625.PHONY: maybe-installcheck-gotools installcheck-gotools
32626maybe-installcheck-gotools:
32627@if gotools
32628maybe-installcheck-gotools: installcheck-gotools
32629
32630installcheck-gotools: \
32631 configure-gotools
32632 @: $(MAKE); $(unstage)
32633 @[ -f ./gotools/Makefile ] || exit 0; \
32634 r=`${PWD_COMMAND}`; export r; \
32635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32636 $(HOST_EXPORTS) \
32637 for flag in $(EXTRA_HOST_FLAGS) ; do \
32638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32639 done; \
22121df0 32640 echo "Doing installcheck in gotools"; \
1b6c0831
L
32641 (cd $(HOST_SUBDIR)/gotools && \
32642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32644 "RANLIB=$${RANLIB}" \
32645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32646 installcheck) \
32647 || exit 1
32648
32649@endif gotools
32650
32651.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
32652maybe-mostlyclean-gotools:
32653@if gotools
32654maybe-mostlyclean-gotools: mostlyclean-gotools
32655
32656mostlyclean-gotools:
32657 @: $(MAKE); $(unstage)
32658 @[ -f ./gotools/Makefile ] || exit 0; \
32659 r=`${PWD_COMMAND}`; export r; \
32660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32661 $(HOST_EXPORTS) \
32662 for flag in $(EXTRA_HOST_FLAGS) ; do \
32663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32664 done; \
22121df0 32665 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
32666 (cd $(HOST_SUBDIR)/gotools && \
32667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32669 "RANLIB=$${RANLIB}" \
32670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32671 mostlyclean) \
32672 || exit 1
32673
32674@endif gotools
32675
32676.PHONY: maybe-clean-gotools clean-gotools
32677maybe-clean-gotools:
32678@if gotools
32679maybe-clean-gotools: clean-gotools
32680
32681clean-gotools:
32682 @: $(MAKE); $(unstage)
32683 @[ -f ./gotools/Makefile ] || exit 0; \
32684 r=`${PWD_COMMAND}`; export r; \
32685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32686 $(HOST_EXPORTS) \
32687 for flag in $(EXTRA_HOST_FLAGS) ; do \
32688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32689 done; \
22121df0 32690 echo "Doing clean in gotools"; \
1b6c0831
L
32691 (cd $(HOST_SUBDIR)/gotools && \
32692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32694 "RANLIB=$${RANLIB}" \
32695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32696 clean) \
32697 || exit 1
32698
32699@endif gotools
32700
32701.PHONY: maybe-distclean-gotools distclean-gotools
32702maybe-distclean-gotools:
32703@if gotools
32704maybe-distclean-gotools: distclean-gotools
32705
32706distclean-gotools:
32707 @: $(MAKE); $(unstage)
32708 @[ -f ./gotools/Makefile ] || exit 0; \
32709 r=`${PWD_COMMAND}`; export r; \
32710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32711 $(HOST_EXPORTS) \
32712 for flag in $(EXTRA_HOST_FLAGS) ; do \
32713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32714 done; \
22121df0 32715 echo "Doing distclean in gotools"; \
1b6c0831
L
32716 (cd $(HOST_SUBDIR)/gotools && \
32717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32719 "RANLIB=$${RANLIB}" \
32720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32721 distclean) \
32722 || exit 1
32723
32724@endif gotools
32725
32726.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
32727maybe-maintainer-clean-gotools:
32728@if gotools
32729maybe-maintainer-clean-gotools: maintainer-clean-gotools
32730
32731maintainer-clean-gotools:
32732 @: $(MAKE); $(unstage)
32733 @[ -f ./gotools/Makefile ] || exit 0; \
32734 r=`${PWD_COMMAND}`; export r; \
32735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32736 $(HOST_EXPORTS) \
32737 for flag in $(EXTRA_HOST_FLAGS) ; do \
32738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32739 done; \
22121df0 32740 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
32741 (cd $(HOST_SUBDIR)/gotools && \
32742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32744 "RANLIB=$${RANLIB}" \
32745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32746 maintainer-clean) \
32747 || exit 1
32748
32749@endif gotools
32750
32751
32752
32753# ---------------------------------------
32754# Modules which run on the target machine
32755# ---------------------------------------
32756
32757
32758
32759
32760.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
32761maybe-configure-target-libstdc++-v3:
32762@if gcc-bootstrap
32763configure-target-libstdc++-v3: stage_current
32764@endif gcc-bootstrap
32765@if target-libstdc++-v3
32766maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
32767configure-target-libstdc++-v3:
32768 @r=`${PWD_COMMAND}`; export r; \
32769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32770 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
32771 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
32772 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32773 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32774 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32775 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32776 else \
32777 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32778 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32779 fi; \
32780 else \
32781 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32782 fi; \
32783 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 32784 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32785 $(RAW_CXX_TARGET_EXPORTS) \
32786 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
32787 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
32788 case $(srcdir) in \
32789 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32790 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32791 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32792 esac; \
32793 module_srcdir=libstdc++-v3; \
32794 rm -f no-such-file || : ; \
32795 CONFIG_SITE=no-such-file $(SHELL) \
32796 $$s/$$module_srcdir/configure \
32797 --srcdir=$${topdir}/$$module_srcdir \
32798 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32799 --target=${target_alias} \
32800 || exit 1
32801@endif target-libstdc++-v3
32802
32803
32804
32805.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
32806maybe-configure-stage1-target-libstdc++-v3:
32807@if target-libstdc++-v3-bootstrap
32808maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32809configure-stage1-target-libstdc++-v3:
32810 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32811 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32812 @r=`${PWD_COMMAND}`; export r; \
32813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32814 TFLAGS="$(STAGE1_TFLAGS)"; \
32815 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32816 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32817 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32818 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32819 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32820 else \
32821 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32822 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32823 fi; \
32824 else \
32825 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32826 fi; \
32827 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32828 $(RAW_CXX_TARGET_EXPORTS) \
32829 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32830 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32831 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32832 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
32833 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32834 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32835 case $(srcdir) in \
32836 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32837 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32838 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32839 esac; \
32840 module_srcdir=libstdc++-v3; \
32841 $(SHELL) $$s/$$module_srcdir/configure \
32842 --srcdir=$${topdir}/$$module_srcdir \
32843 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32844 --target=${target_alias} \
32845 \
32846 $(STAGE1_CONFIGURE_FLAGS)
32847@endif target-libstdc++-v3-bootstrap
32848
32849.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
32850maybe-configure-stage2-target-libstdc++-v3:
32851@if target-libstdc++-v3-bootstrap
32852maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32853configure-stage2-target-libstdc++-v3:
32854 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32855 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32856 @r=`${PWD_COMMAND}`; export r; \
32857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32858 TFLAGS="$(STAGE2_TFLAGS)"; \
32859 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32860 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32861 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32862 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32863 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32864 else \
32865 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32866 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32867 fi; \
32868 else \
32869 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32870 fi; \
32871 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32872 $(RAW_CXX_TARGET_EXPORTS) \
32873 \
32874 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32875 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32876 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32877 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
32878 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32879 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32880 case $(srcdir) in \
32881 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32882 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32883 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32884 esac; \
32885 module_srcdir=libstdc++-v3; \
32886 $(SHELL) $$s/$$module_srcdir/configure \
32887 --srcdir=$${topdir}/$$module_srcdir \
32888 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32889 --target=${target_alias} \
22121df0 32890 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32891 $(STAGE2_CONFIGURE_FLAGS)
32892@endif target-libstdc++-v3-bootstrap
32893
32894.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
32895maybe-configure-stage3-target-libstdc++-v3:
32896@if target-libstdc++-v3-bootstrap
32897maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32898configure-stage3-target-libstdc++-v3:
32899 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32900 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32901 @r=`${PWD_COMMAND}`; export r; \
32902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32903 TFLAGS="$(STAGE3_TFLAGS)"; \
32904 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32905 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32906 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32907 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32908 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32909 else \
32910 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32911 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32912 fi; \
32913 else \
32914 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32915 fi; \
32916 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32917 $(RAW_CXX_TARGET_EXPORTS) \
32918 \
32919 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32920 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32921 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32922 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
32923 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32924 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32925 case $(srcdir) in \
32926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32927 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32929 esac; \
32930 module_srcdir=libstdc++-v3; \
32931 $(SHELL) $$s/$$module_srcdir/configure \
32932 --srcdir=$${topdir}/$$module_srcdir \
32933 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32934 --target=${target_alias} \
22121df0 32935 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32936 $(STAGE3_CONFIGURE_FLAGS)
32937@endif target-libstdc++-v3-bootstrap
32938
32939.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
32940maybe-configure-stage4-target-libstdc++-v3:
32941@if target-libstdc++-v3-bootstrap
32942maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32943configure-stage4-target-libstdc++-v3:
32944 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32945 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32946 @r=`${PWD_COMMAND}`; export r; \
32947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32948 TFLAGS="$(STAGE4_TFLAGS)"; \
32949 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32950 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32951 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32952 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32953 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32954 else \
32955 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32956 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32957 fi; \
32958 else \
32959 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32960 fi; \
32961 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32962 $(RAW_CXX_TARGET_EXPORTS) \
32963 \
32964 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32965 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32966 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32967 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
32968 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32969 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32970 case $(srcdir) in \
32971 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32972 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32973 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32974 esac; \
32975 module_srcdir=libstdc++-v3; \
32976 $(SHELL) $$s/$$module_srcdir/configure \
32977 --srcdir=$${topdir}/$$module_srcdir \
32978 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32979 --target=${target_alias} \
22121df0 32980 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32981 $(STAGE4_CONFIGURE_FLAGS)
32982@endif target-libstdc++-v3-bootstrap
32983
32984.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
32985maybe-configure-stageprofile-target-libstdc++-v3:
32986@if target-libstdc++-v3-bootstrap
32987maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32988configure-stageprofile-target-libstdc++-v3:
32989 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32990 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32991 @r=`${PWD_COMMAND}`; export r; \
32992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32993 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32994 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32995 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32996 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32997 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32998 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32999 else \
33000 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33001 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33002 fi; \
33003 else \
33004 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33005 fi; \
33006 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33007 $(RAW_CXX_TARGET_EXPORTS) \
33008 \
33009 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33010 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33011 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33012 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
33013 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33014 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33015 case $(srcdir) in \
33016 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33017 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33018 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33019 esac; \
33020 module_srcdir=libstdc++-v3; \
33021 $(SHELL) $$s/$$module_srcdir/configure \
33022 --srcdir=$${topdir}/$$module_srcdir \
33023 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33024 --target=${target_alias} \
22121df0 33025 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33026 $(STAGEprofile_CONFIGURE_FLAGS)
33027@endif target-libstdc++-v3-bootstrap
33028
33029.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
33030maybe-configure-stagefeedback-target-libstdc++-v3:
33031@if target-libstdc++-v3-bootstrap
33032maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
33033configure-stagefeedback-target-libstdc++-v3:
33034 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33035 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33036 @r=`${PWD_COMMAND}`; export r; \
33037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33038 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33039 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33040 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33041 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33042 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33043 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33044 else \
33045 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33046 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33047 fi; \
33048 else \
33049 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33050 fi; \
33051 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33052 $(RAW_CXX_TARGET_EXPORTS) \
33053 \
33054 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33055 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33056 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33057 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
33058 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33059 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33060 case $(srcdir) in \
33061 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33062 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33063 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33064 esac; \
33065 module_srcdir=libstdc++-v3; \
33066 $(SHELL) $$s/$$module_srcdir/configure \
33067 --srcdir=$${topdir}/$$module_srcdir \
33068 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33069 --target=${target_alias} \
22121df0 33070 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33071 $(STAGEfeedback_CONFIGURE_FLAGS)
33072@endif target-libstdc++-v3-bootstrap
33073
33074
33075
33076
33077
33078.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
33079maybe-all-target-libstdc++-v3:
33080@if gcc-bootstrap
33081all-target-libstdc++-v3: stage_current
33082@endif gcc-bootstrap
33083@if target-libstdc++-v3
33084TARGET-target-libstdc++-v3=all
33085maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
33086all-target-libstdc++-v3: configure-target-libstdc++-v3
33087 @r=`${PWD_COMMAND}`; export r; \
33088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33089 $(RAW_CXX_TARGET_EXPORTS) \
33090 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33091 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33092 $(TARGET-target-libstdc++-v3))
33093@endif target-libstdc++-v3
33094
33095
33096
33097.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
33098.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
33099maybe-all-stage1-target-libstdc++-v3:
33100maybe-clean-stage1-target-libstdc++-v3:
33101@if target-libstdc++-v3-bootstrap
33102maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
33103all-stage1: all-stage1-target-libstdc++-v3
33104TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33105all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
33106 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33107 @r=`${PWD_COMMAND}`; export r; \
33108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33109 TFLAGS="$(STAGE1_TFLAGS)"; \
33110 $(RAW_CXX_TARGET_EXPORTS) \
33111 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33112 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33113 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33114 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33115 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33116 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33117 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33118 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33119 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33120 \
33121 TFLAGS="$(STAGE1_TFLAGS)" \
33122 $(TARGET-stage1-target-libstdc++-v3)
33123
33124maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
33125clean-stage1: clean-stage1-target-libstdc++-v3
33126clean-stage1-target-libstdc++-v3:
33127 @if [ $(current_stage) = stage1 ]; then \
33128 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33129 else \
33130 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
33131 $(MAKE) stage1-start; \
33132 fi; \
33133 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33134 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33135 clean
33136@endif target-libstdc++-v3-bootstrap
33137
33138
33139.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
33140.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
33141maybe-all-stage2-target-libstdc++-v3:
33142maybe-clean-stage2-target-libstdc++-v3:
33143@if target-libstdc++-v3-bootstrap
33144maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
33145all-stage2: all-stage2-target-libstdc++-v3
33146TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33147all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
33148 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33149 @r=`${PWD_COMMAND}`; export r; \
33150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33151 TFLAGS="$(STAGE2_TFLAGS)"; \
33152 $(RAW_CXX_TARGET_EXPORTS) \
33153 \
33154 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33155 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33156 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33157 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33158 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33159 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33160 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33161 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33162 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33163 TFLAGS="$(STAGE2_TFLAGS)" \
33164 $(TARGET-stage2-target-libstdc++-v3)
33165
33166maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
33167clean-stage2: clean-stage2-target-libstdc++-v3
33168clean-stage2-target-libstdc++-v3:
33169 @if [ $(current_stage) = stage2 ]; then \
33170 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33171 else \
33172 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
33173 $(MAKE) stage2-start; \
33174 fi; \
33175 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33176 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33177@endif target-libstdc++-v3-bootstrap
33178
33179
33180.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
33181.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
33182maybe-all-stage3-target-libstdc++-v3:
33183maybe-clean-stage3-target-libstdc++-v3:
33184@if target-libstdc++-v3-bootstrap
33185maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
33186all-stage3: all-stage3-target-libstdc++-v3
33187TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33188all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
33189 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33190 @r=`${PWD_COMMAND}`; export r; \
33191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33192 TFLAGS="$(STAGE3_TFLAGS)"; \
33193 $(RAW_CXX_TARGET_EXPORTS) \
33194 \
33195 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33196 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33197 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33198 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33199 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33200 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33201 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33202 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33203 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33204 TFLAGS="$(STAGE3_TFLAGS)" \
33205 $(TARGET-stage3-target-libstdc++-v3)
33206
33207maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
33208clean-stage3: clean-stage3-target-libstdc++-v3
33209clean-stage3-target-libstdc++-v3:
33210 @if [ $(current_stage) = stage3 ]; then \
33211 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33212 else \
33213 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
33214 $(MAKE) stage3-start; \
33215 fi; \
33216 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33217 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33218@endif target-libstdc++-v3-bootstrap
33219
33220
33221.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
33222.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
33223maybe-all-stage4-target-libstdc++-v3:
33224maybe-clean-stage4-target-libstdc++-v3:
33225@if target-libstdc++-v3-bootstrap
33226maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
33227all-stage4: all-stage4-target-libstdc++-v3
33228TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33229all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
33230 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33231 @r=`${PWD_COMMAND}`; export r; \
33232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33233 TFLAGS="$(STAGE4_TFLAGS)"; \
33234 $(RAW_CXX_TARGET_EXPORTS) \
33235 \
33236 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33237 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33238 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33239 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33240 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33241 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33242 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33243 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33244 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33245 TFLAGS="$(STAGE4_TFLAGS)" \
33246 $(TARGET-stage4-target-libstdc++-v3)
33247
33248maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
33249clean-stage4: clean-stage4-target-libstdc++-v3
33250clean-stage4-target-libstdc++-v3:
33251 @if [ $(current_stage) = stage4 ]; then \
33252 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33253 else \
33254 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
33255 $(MAKE) stage4-start; \
33256 fi; \
33257 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33258 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33259@endif target-libstdc++-v3-bootstrap
33260
33261
33262.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
33263.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
33264maybe-all-stageprofile-target-libstdc++-v3:
33265maybe-clean-stageprofile-target-libstdc++-v3:
33266@if target-libstdc++-v3-bootstrap
33267maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
33268all-stageprofile: all-stageprofile-target-libstdc++-v3
33269TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33270all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
33271 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33272 @r=`${PWD_COMMAND}`; export r; \
33273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33274 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33275 $(RAW_CXX_TARGET_EXPORTS) \
33276 \
33277 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33278 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33279 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33281 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33282 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33283 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33284 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33285 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33286 TFLAGS="$(STAGEprofile_TFLAGS)" \
33287 $(TARGET-stageprofile-target-libstdc++-v3)
33288
33289maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
33290clean-stageprofile: clean-stageprofile-target-libstdc++-v3
33291clean-stageprofile-target-libstdc++-v3:
33292 @if [ $(current_stage) = stageprofile ]; then \
33293 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33294 else \
33295 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
33296 $(MAKE) stageprofile-start; \
33297 fi; \
33298 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33299 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33300@endif target-libstdc++-v3-bootstrap
33301
33302
33303.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
33304.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
33305maybe-all-stagefeedback-target-libstdc++-v3:
33306maybe-clean-stagefeedback-target-libstdc++-v3:
33307@if target-libstdc++-v3-bootstrap
33308maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
33309all-stagefeedback: all-stagefeedback-target-libstdc++-v3
33310TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33311all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
33312 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33313 @r=`${PWD_COMMAND}`; export r; \
33314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33315 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33316 $(RAW_CXX_TARGET_EXPORTS) \
33317 \
33318 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33319 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33320 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33321 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33322 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33323 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33324 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33325 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33326 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33327 TFLAGS="$(STAGEfeedback_TFLAGS)" \
33328 $(TARGET-stagefeedback-target-libstdc++-v3)
33329
33330maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
33331clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
33332clean-stagefeedback-target-libstdc++-v3:
33333 @if [ $(current_stage) = stagefeedback ]; then \
33334 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33335 else \
33336 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
33337 $(MAKE) stagefeedback-start; \
33338 fi; \
33339 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33340 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33341@endif target-libstdc++-v3-bootstrap
33342
33343
33344
33345
33346
33347
33348.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
33349maybe-check-target-libstdc++-v3:
33350@if target-libstdc++-v3
33351maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
33352
33353check-target-libstdc++-v3:
33354 @: $(MAKE); $(unstage)
33355 @r=`${PWD_COMMAND}`; export r; \
33356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33357 $(RAW_CXX_TARGET_EXPORTS) \
33358 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33359 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
33360
33361@endif target-libstdc++-v3
33362
33363.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
33364maybe-install-target-libstdc++-v3:
33365@if target-libstdc++-v3
33366maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
33367
33368install-target-libstdc++-v3: installdirs
33369 @: $(MAKE); $(unstage)
33370 @r=`${PWD_COMMAND}`; export r; \
33371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33372 $(RAW_CXX_TARGET_EXPORTS) \
33373 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33374 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
33375
33376@endif target-libstdc++-v3
33377
33378.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
33379maybe-install-strip-target-libstdc++-v3:
33380@if target-libstdc++-v3
33381maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
33382
33383install-strip-target-libstdc++-v3: installdirs
33384 @: $(MAKE); $(unstage)
33385 @r=`${PWD_COMMAND}`; export r; \
33386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33387 $(RAW_CXX_TARGET_EXPORTS) \
33388 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33389 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33390
33391@endif target-libstdc++-v3
33392
33393# Other targets (info, dvi, pdf, etc.)
33394
33395.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
33396maybe-info-target-libstdc++-v3:
33397@if target-libstdc++-v3
33398maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
33399
33400info-target-libstdc++-v3: \
33401 configure-target-libstdc++-v3
33402 @: $(MAKE); $(unstage)
22121df0 33403 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33404 r=`${PWD_COMMAND}`; export r; \
33405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33406 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33407 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33408 for flag in $(EXTRA_TARGET_FLAGS); do \
33409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33410 done; \
33411 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33414 "RANLIB=$${RANLIB}" \
33415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33416 info) \
33417 || exit 1
33418
33419@endif target-libstdc++-v3
33420
33421.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
33422maybe-dvi-target-libstdc++-v3:
33423@if target-libstdc++-v3
33424maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
33425
33426dvi-target-libstdc++-v3: \
33427 configure-target-libstdc++-v3
33428 @: $(MAKE); $(unstage)
22121df0 33429 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33430 r=`${PWD_COMMAND}`; export r; \
33431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33432 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33433 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33434 for flag in $(EXTRA_TARGET_FLAGS); do \
33435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33436 done; \
33437 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33440 "RANLIB=$${RANLIB}" \
33441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33442 dvi) \
33443 || exit 1
33444
33445@endif target-libstdc++-v3
33446
33447.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
33448maybe-pdf-target-libstdc++-v3:
33449@if target-libstdc++-v3
33450maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
33451
33452pdf-target-libstdc++-v3: \
33453 configure-target-libstdc++-v3
33454 @: $(MAKE); $(unstage)
22121df0 33455 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33456 r=`${PWD_COMMAND}`; export r; \
33457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33458 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33459 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33460 for flag in $(EXTRA_TARGET_FLAGS); do \
33461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33462 done; \
33463 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33466 "RANLIB=$${RANLIB}" \
33467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33468 pdf) \
33469 || exit 1
33470
33471@endif target-libstdc++-v3
33472
33473.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
33474maybe-html-target-libstdc++-v3:
33475@if target-libstdc++-v3
33476maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
33477
33478html-target-libstdc++-v3: \
33479 configure-target-libstdc++-v3
33480 @: $(MAKE); $(unstage)
22121df0 33481 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33482 r=`${PWD_COMMAND}`; export r; \
33483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33484 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33485 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33486 for flag in $(EXTRA_TARGET_FLAGS); do \
33487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33488 done; \
33489 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33492 "RANLIB=$${RANLIB}" \
33493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33494 html) \
33495 || exit 1
33496
33497@endif target-libstdc++-v3
33498
33499.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
33500maybe-TAGS-target-libstdc++-v3:
33501@if target-libstdc++-v3
33502maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
33503
33504TAGS-target-libstdc++-v3: \
33505 configure-target-libstdc++-v3
33506 @: $(MAKE); $(unstage)
22121df0 33507 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33508 r=`${PWD_COMMAND}`; export r; \
33509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33510 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33511 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33512 for flag in $(EXTRA_TARGET_FLAGS); do \
33513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33514 done; \
33515 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33518 "RANLIB=$${RANLIB}" \
33519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33520 TAGS) \
33521 || exit 1
33522
33523@endif target-libstdc++-v3
33524
33525.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
33526maybe-install-info-target-libstdc++-v3:
33527@if target-libstdc++-v3
33528maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
33529
33530install-info-target-libstdc++-v3: \
33531 configure-target-libstdc++-v3 \
33532 info-target-libstdc++-v3
33533 @: $(MAKE); $(unstage)
22121df0 33534 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33535 r=`${PWD_COMMAND}`; export r; \
33536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33537 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33538 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33539 for flag in $(EXTRA_TARGET_FLAGS); do \
33540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33541 done; \
33542 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33545 "RANLIB=$${RANLIB}" \
33546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33547 install-info) \
33548 || exit 1
33549
33550@endif target-libstdc++-v3
33551
33552.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
33553maybe-install-pdf-target-libstdc++-v3:
33554@if target-libstdc++-v3
33555maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
33556
33557install-pdf-target-libstdc++-v3: \
33558 configure-target-libstdc++-v3 \
33559 pdf-target-libstdc++-v3
33560 @: $(MAKE); $(unstage)
22121df0 33561 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33562 r=`${PWD_COMMAND}`; export r; \
33563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33564 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33565 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33566 for flag in $(EXTRA_TARGET_FLAGS); do \
33567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33568 done; \
33569 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33572 "RANLIB=$${RANLIB}" \
33573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33574 install-pdf) \
33575 || exit 1
33576
33577@endif target-libstdc++-v3
33578
33579.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
33580maybe-install-html-target-libstdc++-v3:
33581@if target-libstdc++-v3
33582maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
33583
33584install-html-target-libstdc++-v3: \
33585 configure-target-libstdc++-v3 \
33586 html-target-libstdc++-v3
33587 @: $(MAKE); $(unstage)
22121df0 33588 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33589 r=`${PWD_COMMAND}`; export r; \
33590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33591 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33592 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33593 for flag in $(EXTRA_TARGET_FLAGS); do \
33594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33595 done; \
33596 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33599 "RANLIB=$${RANLIB}" \
33600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33601 install-html) \
33602 || exit 1
33603
33604@endif target-libstdc++-v3
33605
33606.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
33607maybe-installcheck-target-libstdc++-v3:
33608@if target-libstdc++-v3
33609maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
33610
33611installcheck-target-libstdc++-v3: \
33612 configure-target-libstdc++-v3
33613 @: $(MAKE); $(unstage)
22121df0 33614 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33615 r=`${PWD_COMMAND}`; export r; \
33616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33617 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33618 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33619 for flag in $(EXTRA_TARGET_FLAGS); do \
33620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33621 done; \
33622 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33625 "RANLIB=$${RANLIB}" \
33626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33627 installcheck) \
33628 || exit 1
33629
33630@endif target-libstdc++-v3
33631
33632.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
33633maybe-mostlyclean-target-libstdc++-v3:
33634@if target-libstdc++-v3
33635maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
33636
33637mostlyclean-target-libstdc++-v3:
33638 @: $(MAKE); $(unstage)
22121df0 33639 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33640 r=`${PWD_COMMAND}`; export r; \
33641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33642 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33643 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33644 for flag in $(EXTRA_TARGET_FLAGS); do \
33645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33646 done; \
33647 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33650 "RANLIB=$${RANLIB}" \
33651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33652 mostlyclean) \
33653 || exit 1
33654
33655@endif target-libstdc++-v3
33656
33657.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
33658maybe-clean-target-libstdc++-v3:
33659@if target-libstdc++-v3
33660maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
33661
33662clean-target-libstdc++-v3:
33663 @: $(MAKE); $(unstage)
22121df0 33664 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33665 r=`${PWD_COMMAND}`; export r; \
33666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33667 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33668 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33669 for flag in $(EXTRA_TARGET_FLAGS); do \
33670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33671 done; \
33672 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33675 "RANLIB=$${RANLIB}" \
33676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33677 clean) \
33678 || exit 1
33679
33680@endif target-libstdc++-v3
33681
33682.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
33683maybe-distclean-target-libstdc++-v3:
33684@if target-libstdc++-v3
33685maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
33686
33687distclean-target-libstdc++-v3:
33688 @: $(MAKE); $(unstage)
22121df0 33689 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33690 r=`${PWD_COMMAND}`; export r; \
33691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33692 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33693 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33694 for flag in $(EXTRA_TARGET_FLAGS); do \
33695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33696 done; \
33697 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33700 "RANLIB=$${RANLIB}" \
33701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33702 distclean) \
33703 || exit 1
33704
33705@endif target-libstdc++-v3
33706
33707.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
33708maybe-maintainer-clean-target-libstdc++-v3:
33709@if target-libstdc++-v3
33710maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
33711
33712maintainer-clean-target-libstdc++-v3:
33713 @: $(MAKE); $(unstage)
22121df0 33714 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33715 r=`${PWD_COMMAND}`; export r; \
33716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33717 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33718 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33719 for flag in $(EXTRA_TARGET_FLAGS); do \
33720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33721 done; \
33722 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33725 "RANLIB=$${RANLIB}" \
33726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33727 maintainer-clean) \
33728 || exit 1
33729
33730@endif target-libstdc++-v3
33731
33732
33733
33734
33735
33736.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
33737maybe-configure-target-libsanitizer:
33738@if gcc-bootstrap
33739configure-target-libsanitizer: stage_current
33740@endif gcc-bootstrap
33741@if target-libsanitizer
33742maybe-configure-target-libsanitizer: configure-target-libsanitizer
33743configure-target-libsanitizer:
33744 @r=`${PWD_COMMAND}`; export r; \
33745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33746 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
33747 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
33748 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33749 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33750 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33751 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33752 else \
33753 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33754 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33755 fi; \
33756 else \
33757 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33758 fi; \
33759 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 33760 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33761 $(RAW_CXX_TARGET_EXPORTS) \
33762 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
33763 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
33764 case $(srcdir) in \
33765 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33766 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33767 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33768 esac; \
33769 module_srcdir=libsanitizer; \
33770 rm -f no-such-file || : ; \
33771 CONFIG_SITE=no-such-file $(SHELL) \
33772 $$s/$$module_srcdir/configure \
33773 --srcdir=$${topdir}/$$module_srcdir \
33774 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33775 --target=${target_alias} \
33776 || exit 1
33777@endif target-libsanitizer
33778
33779
33780
33781.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
33782maybe-configure-stage1-target-libsanitizer:
33783@if target-libsanitizer-bootstrap
33784maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33785configure-stage1-target-libsanitizer:
33786 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33787 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33788 @r=`${PWD_COMMAND}`; export r; \
33789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33790 TFLAGS="$(STAGE1_TFLAGS)"; \
33791 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33792 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33793 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33794 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33795 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33796 else \
33797 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33798 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33799 fi; \
33800 else \
33801 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33802 fi; \
33803 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33804 $(RAW_CXX_TARGET_EXPORTS) \
33805 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33806 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33807 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33808 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
33809 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33810 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33811 case $(srcdir) in \
33812 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33813 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33814 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33815 esac; \
33816 module_srcdir=libsanitizer; \
33817 $(SHELL) $$s/$$module_srcdir/configure \
33818 --srcdir=$${topdir}/$$module_srcdir \
33819 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33820 --target=${target_alias} \
33821 \
33822 $(STAGE1_CONFIGURE_FLAGS)
33823@endif target-libsanitizer-bootstrap
33824
33825.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
33826maybe-configure-stage2-target-libsanitizer:
33827@if target-libsanitizer-bootstrap
33828maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33829configure-stage2-target-libsanitizer:
33830 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33831 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33832 @r=`${PWD_COMMAND}`; export r; \
33833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33834 TFLAGS="$(STAGE2_TFLAGS)"; \
33835 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33836 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33837 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33838 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33839 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33840 else \
33841 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33842 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33843 fi; \
33844 else \
33845 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33846 fi; \
33847 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33848 $(RAW_CXX_TARGET_EXPORTS) \
33849 \
33850 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33851 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33852 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33853 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
33854 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33855 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33856 case $(srcdir) in \
33857 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33858 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33859 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33860 esac; \
33861 module_srcdir=libsanitizer; \
33862 $(SHELL) $$s/$$module_srcdir/configure \
33863 --srcdir=$${topdir}/$$module_srcdir \
33864 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33865 --target=${target_alias} \
22121df0 33866 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33867 $(STAGE2_CONFIGURE_FLAGS)
33868@endif target-libsanitizer-bootstrap
33869
33870.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
33871maybe-configure-stage3-target-libsanitizer:
33872@if target-libsanitizer-bootstrap
33873maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33874configure-stage3-target-libsanitizer:
33875 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33876 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33877 @r=`${PWD_COMMAND}`; export r; \
33878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33879 TFLAGS="$(STAGE3_TFLAGS)"; \
33880 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33881 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33882 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33883 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33884 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33885 else \
33886 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33887 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33888 fi; \
33889 else \
33890 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33891 fi; \
33892 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33893 $(RAW_CXX_TARGET_EXPORTS) \
33894 \
33895 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33896 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33897 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33898 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
33899 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33900 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33901 case $(srcdir) in \
33902 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33903 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33904 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33905 esac; \
33906 module_srcdir=libsanitizer; \
33907 $(SHELL) $$s/$$module_srcdir/configure \
33908 --srcdir=$${topdir}/$$module_srcdir \
33909 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33910 --target=${target_alias} \
22121df0 33911 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33912 $(STAGE3_CONFIGURE_FLAGS)
33913@endif target-libsanitizer-bootstrap
33914
33915.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
33916maybe-configure-stage4-target-libsanitizer:
33917@if target-libsanitizer-bootstrap
33918maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33919configure-stage4-target-libsanitizer:
33920 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33921 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33922 @r=`${PWD_COMMAND}`; export r; \
33923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33924 TFLAGS="$(STAGE4_TFLAGS)"; \
33925 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33926 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33927 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33928 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33929 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33930 else \
33931 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33932 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33933 fi; \
33934 else \
33935 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33936 fi; \
33937 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33938 $(RAW_CXX_TARGET_EXPORTS) \
33939 \
33940 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33941 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33942 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33943 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
33944 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33945 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33946 case $(srcdir) in \
33947 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33948 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33949 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33950 esac; \
33951 module_srcdir=libsanitizer; \
33952 $(SHELL) $$s/$$module_srcdir/configure \
33953 --srcdir=$${topdir}/$$module_srcdir \
33954 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33955 --target=${target_alias} \
22121df0 33956 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33957 $(STAGE4_CONFIGURE_FLAGS)
33958@endif target-libsanitizer-bootstrap
33959
33960.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
33961maybe-configure-stageprofile-target-libsanitizer:
33962@if target-libsanitizer-bootstrap
33963maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
33964configure-stageprofile-target-libsanitizer:
33965 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33966 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33967 @r=`${PWD_COMMAND}`; export r; \
33968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33969 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33970 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33971 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33972 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33973 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33974 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33975 else \
33976 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33977 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33978 fi; \
33979 else \
33980 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33981 fi; \
33982 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33983 $(RAW_CXX_TARGET_EXPORTS) \
33984 \
33985 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33986 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33987 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33988 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
33989 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33990 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33991 case $(srcdir) in \
33992 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33993 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33994 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33995 esac; \
33996 module_srcdir=libsanitizer; \
33997 $(SHELL) $$s/$$module_srcdir/configure \
33998 --srcdir=$${topdir}/$$module_srcdir \
33999 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34000 --target=${target_alias} \
22121df0 34001 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34002 $(STAGEprofile_CONFIGURE_FLAGS)
34003@endif target-libsanitizer-bootstrap
34004
34005.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
34006maybe-configure-stagefeedback-target-libsanitizer:
34007@if target-libsanitizer-bootstrap
34008maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
34009configure-stagefeedback-target-libsanitizer:
34010 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34011 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34012 @r=`${PWD_COMMAND}`; export r; \
34013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34014 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34015 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34016 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34017 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34018 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34019 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34020 else \
34021 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34022 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34023 fi; \
34024 else \
34025 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34026 fi; \
34027 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34028 $(RAW_CXX_TARGET_EXPORTS) \
34029 \
34030 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34031 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34032 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34033 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
34034 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34035 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34036 case $(srcdir) in \
34037 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34038 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34039 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34040 esac; \
34041 module_srcdir=libsanitizer; \
34042 $(SHELL) $$s/$$module_srcdir/configure \
34043 --srcdir=$${topdir}/$$module_srcdir \
34044 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34045 --target=${target_alias} \
22121df0 34046 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34047 $(STAGEfeedback_CONFIGURE_FLAGS)
34048@endif target-libsanitizer-bootstrap
34049
34050
34051
34052
34053
34054.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
34055maybe-all-target-libsanitizer:
34056@if gcc-bootstrap
34057all-target-libsanitizer: stage_current
34058@endif gcc-bootstrap
34059@if target-libsanitizer
34060TARGET-target-libsanitizer=all
34061maybe-all-target-libsanitizer: all-target-libsanitizer
34062all-target-libsanitizer: configure-target-libsanitizer
34063 @r=`${PWD_COMMAND}`; export r; \
34064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34065 $(RAW_CXX_TARGET_EXPORTS) \
34066 (cd $(TARGET_SUBDIR)/libsanitizer && \
34067 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34068 $(TARGET-target-libsanitizer))
34069@endif target-libsanitizer
34070
34071
34072
34073.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
34074.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
34075maybe-all-stage1-target-libsanitizer:
34076maybe-clean-stage1-target-libsanitizer:
34077@if target-libsanitizer-bootstrap
34078maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
34079all-stage1: all-stage1-target-libsanitizer
34080TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
34081all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
34082 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34083 @r=`${PWD_COMMAND}`; export r; \
34084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34085 TFLAGS="$(STAGE1_TFLAGS)"; \
34086 $(RAW_CXX_TARGET_EXPORTS) \
34087 cd $(TARGET_SUBDIR)/libsanitizer && \
34088 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34089 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34090 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34091 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34092 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34093 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34094 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34095 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34096 \
34097 TFLAGS="$(STAGE1_TFLAGS)" \
34098 $(TARGET-stage1-target-libsanitizer)
34099
34100maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
34101clean-stage1: clean-stage1-target-libsanitizer
34102clean-stage1-target-libsanitizer:
34103 @if [ $(current_stage) = stage1 ]; then \
34104 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34105 else \
34106 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
34107 $(MAKE) stage1-start; \
34108 fi; \
34109 cd $(TARGET_SUBDIR)/libsanitizer && \
34110 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34111 clean
34112@endif target-libsanitizer-bootstrap
34113
34114
34115.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
34116.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
34117maybe-all-stage2-target-libsanitizer:
34118maybe-clean-stage2-target-libsanitizer:
34119@if target-libsanitizer-bootstrap
34120maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
34121all-stage2: all-stage2-target-libsanitizer
34122TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
34123all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
34124 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34125 @r=`${PWD_COMMAND}`; export r; \
34126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34127 TFLAGS="$(STAGE2_TFLAGS)"; \
34128 $(RAW_CXX_TARGET_EXPORTS) \
34129 \
34130 cd $(TARGET_SUBDIR)/libsanitizer && \
34131 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34132 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34133 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34134 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34135 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34136 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34137 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34138 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34139 TFLAGS="$(STAGE2_TFLAGS)" \
34140 $(TARGET-stage2-target-libsanitizer)
34141
34142maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
34143clean-stage2: clean-stage2-target-libsanitizer
34144clean-stage2-target-libsanitizer:
34145 @if [ $(current_stage) = stage2 ]; then \
34146 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34147 else \
34148 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
34149 $(MAKE) stage2-start; \
34150 fi; \
34151 cd $(TARGET_SUBDIR)/libsanitizer && \
34152 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34153@endif target-libsanitizer-bootstrap
34154
34155
34156.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
34157.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
34158maybe-all-stage3-target-libsanitizer:
34159maybe-clean-stage3-target-libsanitizer:
34160@if target-libsanitizer-bootstrap
34161maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
34162all-stage3: all-stage3-target-libsanitizer
34163TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
34164all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
34165 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34166 @r=`${PWD_COMMAND}`; export r; \
34167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34168 TFLAGS="$(STAGE3_TFLAGS)"; \
34169 $(RAW_CXX_TARGET_EXPORTS) \
34170 \
34171 cd $(TARGET_SUBDIR)/libsanitizer && \
34172 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34173 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34174 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34175 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34176 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34177 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34178 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34179 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34180 TFLAGS="$(STAGE3_TFLAGS)" \
34181 $(TARGET-stage3-target-libsanitizer)
34182
34183maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
34184clean-stage3: clean-stage3-target-libsanitizer
34185clean-stage3-target-libsanitizer:
34186 @if [ $(current_stage) = stage3 ]; then \
34187 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34188 else \
34189 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
34190 $(MAKE) stage3-start; \
34191 fi; \
34192 cd $(TARGET_SUBDIR)/libsanitizer && \
34193 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34194@endif target-libsanitizer-bootstrap
34195
34196
34197.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
34198.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
34199maybe-all-stage4-target-libsanitizer:
34200maybe-clean-stage4-target-libsanitizer:
34201@if target-libsanitizer-bootstrap
34202maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
34203all-stage4: all-stage4-target-libsanitizer
34204TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
34205all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
34206 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34207 @r=`${PWD_COMMAND}`; export r; \
34208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34209 TFLAGS="$(STAGE4_TFLAGS)"; \
34210 $(RAW_CXX_TARGET_EXPORTS) \
34211 \
34212 cd $(TARGET_SUBDIR)/libsanitizer && \
34213 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34214 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34215 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34216 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
34217 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34218 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34219 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34220 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34221 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 34222 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 34223
1b6c0831
L
34224maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
34225clean-stage4: clean-stage4-target-libsanitizer
34226clean-stage4-target-libsanitizer:
e8a5fa9c 34227 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 34228 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34229 else \
1b6c0831 34230 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34231 $(MAKE) stage4-start; \
34232 fi; \
1b6c0831 34233 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34234 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34235@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34236
34237
1b6c0831
L
34238.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
34239.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
34240maybe-all-stageprofile-target-libsanitizer:
34241maybe-clean-stageprofile-target-libsanitizer:
34242@if target-libsanitizer-bootstrap
34243maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
34244all-stageprofile: all-stageprofile-target-libsanitizer
34245TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
34246all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
34247 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34248 @r=`${PWD_COMMAND}`; export r; \
34249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34250 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34251 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 34252 \
1b6c0831 34253 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
34254 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34255 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34256 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34257 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34258 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34259 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34260 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34261 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34262 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 34263 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 34264
1b6c0831
L
34265maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
34266clean-stageprofile: clean-stageprofile-target-libsanitizer
34267clean-stageprofile-target-libsanitizer:
e8a5fa9c 34268 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 34269 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34270 else \
1b6c0831 34271 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34272 $(MAKE) stageprofile-start; \
34273 fi; \
1b6c0831 34274 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34275 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34276@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34277
34278
1b6c0831
L
34279.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
34280.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
34281maybe-all-stagefeedback-target-libsanitizer:
34282maybe-clean-stagefeedback-target-libsanitizer:
34283@if target-libsanitizer-bootstrap
34284maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
34285all-stagefeedback: all-stagefeedback-target-libsanitizer
34286TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
34287all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
34288 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34289 @r=`${PWD_COMMAND}`; export r; \
34290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34291 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34292 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 34293 \
1b6c0831 34294 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
34295 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34296 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34297 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34298 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34299 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34300 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34301 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34302 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34303 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 34304 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 34305
1b6c0831
L
34306maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
34307clean-stagefeedback: clean-stagefeedback-target-libsanitizer
34308clean-stagefeedback-target-libsanitizer:
e8a5fa9c 34309 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 34310 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34311 else \
1b6c0831 34312 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34313 $(MAKE) stagefeedback-start; \
34314 fi; \
1b6c0831 34315 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34316 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34317@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34318
34319
34320
34321
d545f33b
PB
34322
34323
1b6c0831
L
34324.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
34325maybe-check-target-libsanitizer:
34326@if target-libsanitizer
34327maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 34328
1b6c0831 34329check-target-libsanitizer:
0aed8855 34330 @: $(MAKE); $(unstage)
b40e3958
L
34331 @r=`${PWD_COMMAND}`; export r; \
34332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34333 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34334 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 34335 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 34336
1b6c0831 34337@endif target-libsanitizer
3866be5d 34338
1b6c0831
L
34339.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
34340maybe-install-target-libsanitizer:
34341@if target-libsanitizer
34342maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 34343
1b6c0831 34344install-target-libsanitizer: installdirs
0aed8855 34345 @: $(MAKE); $(unstage)
b40e3958
L
34346 @r=`${PWD_COMMAND}`; export r; \
34347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34348 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34349 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 34350 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 34351
1b6c0831 34352@endif target-libsanitizer
e2b9e2dc 34353
1b6c0831
L
34354.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
34355maybe-install-strip-target-libsanitizer:
34356@if target-libsanitizer
34357maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 34358
1b6c0831 34359install-strip-target-libsanitizer: installdirs
9b980aa1
RW
34360 @: $(MAKE); $(unstage)
34361 @r=`${PWD_COMMAND}`; export r; \
34362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34363 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34364 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
34365 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34366
1b6c0831 34367@endif target-libsanitizer
9b980aa1 34368
56a8fe78 34369# Other targets (info, dvi, pdf, etc.)
3866be5d 34370
1b6c0831
L
34371.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
34372maybe-info-target-libsanitizer:
34373@if target-libsanitizer
34374maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 34375
1b6c0831
L
34376info-target-libsanitizer: \
34377 configure-target-libsanitizer
0aed8855 34378 @: $(MAKE); $(unstage)
22121df0 34379 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34380 r=`${PWD_COMMAND}`; export r; \
b40e3958 34381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34382 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34383 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34384 for flag in $(EXTRA_TARGET_FLAGS); do \
34385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34386 done; \
1b6c0831 34387 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34390 "RANLIB=$${RANLIB}" \
0c24b341 34391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34392 info) \
4fa63067 34393 || exit 1
3866be5d 34394
1b6c0831 34395@endif target-libsanitizer
3866be5d 34396
1b6c0831
L
34397.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
34398maybe-dvi-target-libsanitizer:
34399@if target-libsanitizer
34400maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 34401
1b6c0831
L
34402dvi-target-libsanitizer: \
34403 configure-target-libsanitizer
0aed8855 34404 @: $(MAKE); $(unstage)
22121df0 34405 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34406 r=`${PWD_COMMAND}`; export r; \
b40e3958 34407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34408 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34409 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34410 for flag in $(EXTRA_TARGET_FLAGS); do \
34411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34412 done; \
1b6c0831 34413 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34416 "RANLIB=$${RANLIB}" \
0c24b341 34417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34418 dvi) \
4fa63067 34419 || exit 1
3866be5d 34420
1b6c0831 34421@endif target-libsanitizer
3866be5d 34422
1b6c0831
L
34423.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
34424maybe-pdf-target-libsanitizer:
34425@if target-libsanitizer
34426maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 34427
1b6c0831
L
34428pdf-target-libsanitizer: \
34429 configure-target-libsanitizer
56a8fe78 34430 @: $(MAKE); $(unstage)
22121df0 34431 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
34432 r=`${PWD_COMMAND}`; export r; \
34433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34434 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34435 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
34436 for flag in $(EXTRA_TARGET_FLAGS); do \
34437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34438 done; \
1b6c0831 34439 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
34440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34442 "RANLIB=$${RANLIB}" \
0c24b341 34443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34444 pdf) \
34445 || exit 1
34446
1b6c0831 34447@endif target-libsanitizer
56a8fe78 34448
1b6c0831
L
34449.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
34450maybe-html-target-libsanitizer:
34451@if target-libsanitizer
34452maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 34453
1b6c0831
L
34454html-target-libsanitizer: \
34455 configure-target-libsanitizer
0aed8855 34456 @: $(MAKE); $(unstage)
22121df0 34457 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
34458 r=`${PWD_COMMAND}`; export r; \
34459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 34460 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34461 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
34462 for flag in $(EXTRA_TARGET_FLAGS); do \
34463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34464 done; \
1b6c0831 34465 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
34466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34468 "RANLIB=$${RANLIB}" \
0c24b341 34469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34470 html) \
34471 || exit 1
34472
1b6c0831 34473@endif target-libsanitizer
6d389afc 34474
1b6c0831
L
34475.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
34476maybe-TAGS-target-libsanitizer:
34477@if target-libsanitizer
34478maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 34479
1b6c0831
L
34480TAGS-target-libsanitizer: \
34481 configure-target-libsanitizer
0aed8855 34482 @: $(MAKE); $(unstage)
22121df0 34483 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
34484 r=`${PWD_COMMAND}`; export r; \
34485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34486 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34487 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34488 for flag in $(EXTRA_TARGET_FLAGS); do \
34489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34490 done; \
1b6c0831 34491 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34494 "RANLIB=$${RANLIB}" \
0c24b341 34495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34496 TAGS) \
e2b9e2dc
NN
34497 || exit 1
34498
1b6c0831 34499@endif target-libsanitizer
3866be5d 34500
1b6c0831
L
34501.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
34502maybe-install-info-target-libsanitizer:
34503@if target-libsanitizer
34504maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 34505
1b6c0831
L
34506install-info-target-libsanitizer: \
34507 configure-target-libsanitizer \
34508 info-target-libsanitizer
0aed8855 34509 @: $(MAKE); $(unstage)
22121df0 34510 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34511 r=`${PWD_COMMAND}`; export r; \
b40e3958 34512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34513 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34514 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34515 for flag in $(EXTRA_TARGET_FLAGS); do \
34516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34517 done; \
1b6c0831 34518 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34521 "RANLIB=$${RANLIB}" \
0c24b341 34522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34523 install-info) \
4fa63067 34524 || exit 1
3866be5d 34525
1b6c0831 34526@endif target-libsanitizer
3866be5d 34527
1b6c0831
L
34528.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
34529maybe-install-pdf-target-libsanitizer:
34530@if target-libsanitizer
34531maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 34532
1b6c0831
L
34533install-pdf-target-libsanitizer: \
34534 configure-target-libsanitizer \
34535 pdf-target-libsanitizer
a3ca38d2 34536 @: $(MAKE); $(unstage)
22121df0 34537 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
34538 r=`${PWD_COMMAND}`; export r; \
34539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34540 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34541 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
34542 for flag in $(EXTRA_TARGET_FLAGS); do \
34543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34544 done; \
1b6c0831 34545 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
34546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34548 "RANLIB=$${RANLIB}" \
0c24b341 34549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34550 install-pdf) \
34551 || exit 1
34552
1b6c0831 34553@endif target-libsanitizer
a3ca38d2 34554
1b6c0831
L
34555.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
34556maybe-install-html-target-libsanitizer:
34557@if target-libsanitizer
34558maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 34559
1b6c0831
L
34560install-html-target-libsanitizer: \
34561 configure-target-libsanitizer \
34562 html-target-libsanitizer
108a6f8e 34563 @: $(MAKE); $(unstage)
22121df0 34564 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
34565 r=`${PWD_COMMAND}`; export r; \
34566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34567 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34568 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
34569 for flag in $(EXTRA_TARGET_FLAGS); do \
34570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34571 done; \
1b6c0831 34572 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
34573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34575 "RANLIB=$${RANLIB}" \
0c24b341 34576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34577 install-html) \
34578 || exit 1
34579
1b6c0831 34580@endif target-libsanitizer
108a6f8e 34581
1b6c0831
L
34582.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
34583maybe-installcheck-target-libsanitizer:
34584@if target-libsanitizer
34585maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 34586
1b6c0831
L
34587installcheck-target-libsanitizer: \
34588 configure-target-libsanitizer
0aed8855 34589 @: $(MAKE); $(unstage)
22121df0 34590 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34591 r=`${PWD_COMMAND}`; export r; \
b40e3958 34592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34593 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34594 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34595 for flag in $(EXTRA_TARGET_FLAGS); do \
34596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34597 done; \
1b6c0831 34598 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34601 "RANLIB=$${RANLIB}" \
0c24b341 34602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34603 installcheck) \
4fa63067 34604 || exit 1
3866be5d 34605
1b6c0831 34606@endif target-libsanitizer
3866be5d 34607
1b6c0831
L
34608.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
34609maybe-mostlyclean-target-libsanitizer:
34610@if target-libsanitizer
34611maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 34612
1b6c0831 34613mostlyclean-target-libsanitizer:
0aed8855 34614 @: $(MAKE); $(unstage)
22121df0 34615 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
34616 r=`${PWD_COMMAND}`; export r; \
34617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34618 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34619 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34620 for flag in $(EXTRA_TARGET_FLAGS); do \
34621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34622 done; \
1b6c0831 34623 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34626 "RANLIB=$${RANLIB}" \
0c24b341 34627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34628 mostlyclean) \
e2b9e2dc
NN
34629 || exit 1
34630
1b6c0831 34631@endif target-libsanitizer
4fa63067 34632
1b6c0831
L
34633.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
34634maybe-clean-target-libsanitizer:
34635@if target-libsanitizer
34636maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 34637
1b6c0831 34638clean-target-libsanitizer:
0aed8855 34639 @: $(MAKE); $(unstage)
22121df0 34640 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34641 r=`${PWD_COMMAND}`; export r; \
b40e3958 34642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34643 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34644 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34645 for flag in $(EXTRA_TARGET_FLAGS); do \
34646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34647 done; \
1b6c0831 34648 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34651 "RANLIB=$${RANLIB}" \
0c24b341 34652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34653 clean) \
4fa63067 34654 || exit 1
3866be5d 34655
1b6c0831 34656@endif target-libsanitizer
3866be5d 34657
1b6c0831
L
34658.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
34659maybe-distclean-target-libsanitizer:
34660@if target-libsanitizer
34661maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 34662
1b6c0831 34663distclean-target-libsanitizer:
0aed8855 34664 @: $(MAKE); $(unstage)
22121df0 34665 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34666 r=`${PWD_COMMAND}`; export r; \
b40e3958 34667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34668 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34669 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34670 for flag in $(EXTRA_TARGET_FLAGS); do \
34671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34672 done; \
1b6c0831 34673 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34676 "RANLIB=$${RANLIB}" \
0c24b341 34677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34678 distclean) \
4fa63067 34679 || exit 1
3866be5d 34680
1b6c0831 34681@endif target-libsanitizer
3866be5d 34682
1b6c0831
L
34683.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
34684maybe-maintainer-clean-target-libsanitizer:
34685@if target-libsanitizer
34686maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 34687
1b6c0831 34688maintainer-clean-target-libsanitizer:
0aed8855 34689 @: $(MAKE); $(unstage)
22121df0 34690 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34691 r=`${PWD_COMMAND}`; export r; \
b40e3958 34692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34693 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34694 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34695 for flag in $(EXTRA_TARGET_FLAGS); do \
34696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34697 done; \
1b6c0831 34698 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34701 "RANLIB=$${RANLIB}" \
0c24b341 34702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34703 maintainer-clean) \
4fa63067 34704 || exit 1
3866be5d 34705
1b6c0831 34706@endif target-libsanitizer
3866be5d 34707
4fa63067 34708
4fa63067 34709
a7254363
PB
34710
34711
1b6c0831
L
34712.PHONY: configure-target-libmpx maybe-configure-target-libmpx
34713maybe-configure-target-libmpx:
5286fdef 34714@if gcc-bootstrap
1b6c0831 34715configure-target-libmpx: stage_current
5286fdef 34716@endif gcc-bootstrap
1b6c0831
L
34717@if target-libmpx
34718maybe-configure-target-libmpx: configure-target-libmpx
34719configure-target-libmpx:
5286fdef
L
34720 @r=`${PWD_COMMAND}`; export r; \
34721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 34722 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
34723 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
34724 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34725 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34726 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34727 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 34728 else \
1b6c0831
L
34729 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34730 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
34731 fi; \
34732 else \
1b6c0831 34733 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 34734 fi; \
1b6c0831 34735 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 34736 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
34737 $(NORMAL_TARGET_EXPORTS) \
34738 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
34739 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
34740 case $(srcdir) in \
34741 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34742 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
34743 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34744 esac; \
1b6c0831 34745 module_srcdir=libmpx; \
5286fdef 34746 rm -f no-such-file || : ; \
1b6c0831
L
34747 CONFIG_SITE=no-such-file $(SHELL) \
34748 $$s/$$module_srcdir/configure \
34749 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 34750 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34751 --target=${target_alias} \
5286fdef 34752 || exit 1
1b6c0831 34753@endif target-libmpx
5286fdef
L
34754
34755
34756
1b6c0831
L
34757.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
34758maybe-configure-stage1-target-libmpx:
34759@if target-libmpx-bootstrap
34760maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
34761configure-stage1-target-libmpx:
5eb08693 34762 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 34763 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34764 @r=`${PWD_COMMAND}`; export r; \
34765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34766 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 34767 echo "Checking multilib configuration for libmpx..."; \
22121df0 34768 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34769 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34770 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34771 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34772 else \
1b6c0831
L
34773 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34774 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34775 fi; \
34776 else \
1b6c0831 34777 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34778 fi; \
1b6c0831
L
34779 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34780 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34781 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34782 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34783 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34784 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
34785 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34786 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34787 case $(srcdir) in \
34788 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34789 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34790 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34791 esac; \
1b6c0831
L
34792 module_srcdir=libmpx; \
34793 $(SHELL) $$s/$$module_srcdir/configure \
34794 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34795 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34796 --target=${target_alias} \
34797 \
5eb08693 34798 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 34799@endif target-libmpx-bootstrap
5eb08693 34800
1b6c0831
L
34801.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
34802maybe-configure-stage2-target-libmpx:
34803@if target-libmpx-bootstrap
34804maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
34805configure-stage2-target-libmpx:
5eb08693 34806 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 34807 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34808 @r=`${PWD_COMMAND}`; export r; \
34809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34810 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 34811 echo "Checking multilib configuration for libmpx..."; \
22121df0 34812 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34813 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34814 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34815 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34816 else \
1b6c0831
L
34817 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34818 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34819 fi; \
34820 else \
1b6c0831 34821 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34822 fi; \
1b6c0831
L
34823 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34824 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34825 \
34826 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34827 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34828 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34829 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
34830 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34831 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34832 case $(srcdir) in \
34833 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34834 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34835 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34836 esac; \
1b6c0831
L
34837 module_srcdir=libmpx; \
34838 $(SHELL) $$s/$$module_srcdir/configure \
34839 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34840 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34841 --target=${target_alias} \
22121df0 34842 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34843 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 34844@endif target-libmpx-bootstrap
5eb08693 34845
1b6c0831
L
34846.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
34847maybe-configure-stage3-target-libmpx:
34848@if target-libmpx-bootstrap
34849maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
34850configure-stage3-target-libmpx:
5eb08693 34851 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 34852 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34853 @r=`${PWD_COMMAND}`; export r; \
34854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34855 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 34856 echo "Checking multilib configuration for libmpx..."; \
22121df0 34857 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34858 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34859 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34860 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34861 else \
1b6c0831
L
34862 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34863 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34864 fi; \
34865 else \
1b6c0831 34866 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34867 fi; \
1b6c0831
L
34868 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34869 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34870 \
34871 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34872 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34873 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34874 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
34875 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34876 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34877 case $(srcdir) in \
34878 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34879 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34880 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34881 esac; \
1b6c0831
L
34882 module_srcdir=libmpx; \
34883 $(SHELL) $$s/$$module_srcdir/configure \
34884 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34885 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34886 --target=${target_alias} \
22121df0 34887 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34888 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 34889@endif target-libmpx-bootstrap
5eb08693 34890
1b6c0831
L
34891.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
34892maybe-configure-stage4-target-libmpx:
34893@if target-libmpx-bootstrap
34894maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
34895configure-stage4-target-libmpx:
5eb08693 34896 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 34897 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34898 @r=`${PWD_COMMAND}`; export r; \
34899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34900 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 34901 echo "Checking multilib configuration for libmpx..."; \
22121df0 34902 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34903 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34904 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34905 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34906 else \
1b6c0831
L
34907 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34908 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34909 fi; \
34910 else \
1b6c0831 34911 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34912 fi; \
1b6c0831
L
34913 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34914 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34915 \
34916 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34917 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34918 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34919 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
34920 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34921 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34922 case $(srcdir) in \
34923 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34924 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34925 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34926 esac; \
1b6c0831
L
34927 module_srcdir=libmpx; \
34928 $(SHELL) $$s/$$module_srcdir/configure \
34929 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34930 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34931 --target=${target_alias} \
22121df0 34932 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34933 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 34934@endif target-libmpx-bootstrap
5eb08693 34935
1b6c0831
L
34936.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
34937maybe-configure-stageprofile-target-libmpx:
34938@if target-libmpx-bootstrap
34939maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
34940configure-stageprofile-target-libmpx:
5eb08693 34941 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 34942 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34943 @r=`${PWD_COMMAND}`; export r; \
34944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34945 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 34946 echo "Checking multilib configuration for libmpx..."; \
22121df0 34947 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34948 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34949 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34950 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34951 else \
1b6c0831
L
34952 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34953 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34954 fi; \
34955 else \
1b6c0831 34956 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34957 fi; \
1b6c0831
L
34958 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34959 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34960 \
34961 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34962 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34963 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34964 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
34965 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34966 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34967 case $(srcdir) in \
34968 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34969 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34970 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34971 esac; \
1b6c0831
L
34972 module_srcdir=libmpx; \
34973 $(SHELL) $$s/$$module_srcdir/configure \
34974 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34975 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34976 --target=${target_alias} \
22121df0 34977 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34978 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 34979@endif target-libmpx-bootstrap
5eb08693 34980
1b6c0831
L
34981.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
34982maybe-configure-stagefeedback-target-libmpx:
34983@if target-libmpx-bootstrap
34984maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
34985configure-stagefeedback-target-libmpx:
5eb08693 34986 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 34987 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34988 @r=`${PWD_COMMAND}`; export r; \
34989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34990 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 34991 echo "Checking multilib configuration for libmpx..."; \
22121df0 34992 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34993 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34994 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34995 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34996 else \
1b6c0831
L
34997 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34998 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34999 fi; \
35000 else \
1b6c0831 35001 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 35002 fi; \
1b6c0831
L
35003 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
35004 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35005 \
35006 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35007 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35008 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35009 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
35010 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 35011 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
35012 case $(srcdir) in \
35013 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35014 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35015 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35016 esac; \
1b6c0831
L
35017 module_srcdir=libmpx; \
35018 $(SHELL) $$s/$$module_srcdir/configure \
35019 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35020 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35021 --target=${target_alias} \
22121df0 35022 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 35023 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 35024@endif target-libmpx-bootstrap
5eb08693
L
35025
35026
35027
5286fdef
L
35028
35029
1b6c0831
L
35030.PHONY: all-target-libmpx maybe-all-target-libmpx
35031maybe-all-target-libmpx:
5286fdef 35032@if gcc-bootstrap
1b6c0831 35033all-target-libmpx: stage_current
5286fdef 35034@endif gcc-bootstrap
1b6c0831
L
35035@if target-libmpx
35036TARGET-target-libmpx=all
35037maybe-all-target-libmpx: all-target-libmpx
35038all-target-libmpx: configure-target-libmpx
5286fdef
L
35039 @r=`${PWD_COMMAND}`; export r; \
35040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35041 $(NORMAL_TARGET_EXPORTS) \
35042 (cd $(TARGET_SUBDIR)/libmpx && \
35043 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
35044 $(TARGET-target-libmpx))
35045@endif target-libmpx
5286fdef
L
35046
35047
35048
1b6c0831
L
35049.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
35050.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
35051maybe-all-stage1-target-libmpx:
35052maybe-clean-stage1-target-libmpx:
35053@if target-libmpx-bootstrap
35054maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
35055all-stage1: all-stage1-target-libmpx
35056TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
35057all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
35058 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35059 @r=`${PWD_COMMAND}`; export r; \
35060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35061 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
35062 $(NORMAL_TARGET_EXPORTS) \
35063 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35064 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35065 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35066 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35067 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35068 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35069 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35070 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35071 $(EXTRA_TARGET_FLAGS) \
5eb08693
L
35072 \
35073 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 35074 $(TARGET-stage1-target-libmpx)
5eb08693 35075
1b6c0831
L
35076maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
35077clean-stage1: clean-stage1-target-libmpx
35078clean-stage1-target-libmpx:
5eb08693 35079 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 35080 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35081 else \
1b6c0831 35082 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
35083 $(MAKE) stage1-start; \
35084 fi; \
1b6c0831
L
35085 cd $(TARGET_SUBDIR)/libmpx && \
35086 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 35087 clean
1b6c0831
L
35088@endif target-libmpx-bootstrap
35089
35090
35091.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
35092.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
35093maybe-all-stage2-target-libmpx:
35094maybe-clean-stage2-target-libmpx:
35095@if target-libmpx-bootstrap
35096maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
35097all-stage2: all-stage2-target-libmpx
35098TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
35099all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
35100 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35101 @r=`${PWD_COMMAND}`; export r; \
35102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35103 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 35104 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35105 \
1b6c0831 35106 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35107 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35108 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35109 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35110 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35111 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35112 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35113 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35114 $(EXTRA_TARGET_FLAGS) \
5eb08693 35115 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 35116 $(TARGET-stage2-target-libmpx)
5eb08693 35117
1b6c0831
L
35118maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
35119clean-stage2: clean-stage2-target-libmpx
35120clean-stage2-target-libmpx:
5eb08693 35121 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 35122 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35123 else \
1b6c0831 35124 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
35125 $(MAKE) stage2-start; \
35126 fi; \
1b6c0831
L
35127 cd $(TARGET_SUBDIR)/libmpx && \
35128 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35129@endif target-libmpx-bootstrap
35130
35131
35132.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
35133.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
35134maybe-all-stage3-target-libmpx:
35135maybe-clean-stage3-target-libmpx:
35136@if target-libmpx-bootstrap
35137maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
35138all-stage3: all-stage3-target-libmpx
35139TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
35140all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
35141 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35142 @r=`${PWD_COMMAND}`; export r; \
35143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35144 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 35145 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35146 \
1b6c0831 35147 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35148 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35149 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35150 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35151 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35152 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35153 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35154 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35155 $(EXTRA_TARGET_FLAGS) \
5eb08693 35156 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 35157 $(TARGET-stage3-target-libmpx)
5eb08693 35158
1b6c0831
L
35159maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
35160clean-stage3: clean-stage3-target-libmpx
35161clean-stage3-target-libmpx:
5eb08693 35162 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 35163 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35164 else \
1b6c0831 35165 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
35166 $(MAKE) stage3-start; \
35167 fi; \
1b6c0831
L
35168 cd $(TARGET_SUBDIR)/libmpx && \
35169 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35170@endif target-libmpx-bootstrap
35171
35172
35173.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
35174.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
35175maybe-all-stage4-target-libmpx:
35176maybe-clean-stage4-target-libmpx:
35177@if target-libmpx-bootstrap
35178maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
35179all-stage4: all-stage4-target-libmpx
35180TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
35181all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
35182 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35183 @r=`${PWD_COMMAND}`; export r; \
35184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35185 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 35186 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35187 \
1b6c0831 35188 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35189 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35190 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35191 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35192 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35193 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35194 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35195 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35196 $(EXTRA_TARGET_FLAGS) \
5eb08693 35197 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 35198 $(TARGET-stage4-target-libmpx)
5eb08693 35199
1b6c0831
L
35200maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
35201clean-stage4: clean-stage4-target-libmpx
35202clean-stage4-target-libmpx:
5eb08693 35203 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 35204 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35205 else \
1b6c0831 35206 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
35207 $(MAKE) stage4-start; \
35208 fi; \
1b6c0831
L
35209 cd $(TARGET_SUBDIR)/libmpx && \
35210 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35211@endif target-libmpx-bootstrap
35212
35213
35214.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
35215.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
35216maybe-all-stageprofile-target-libmpx:
35217maybe-clean-stageprofile-target-libmpx:
35218@if target-libmpx-bootstrap
35219maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
35220all-stageprofile: all-stageprofile-target-libmpx
35221TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
35222all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
35223 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35224 @r=`${PWD_COMMAND}`; export r; \
35225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35226 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 35227 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35228 \
1b6c0831 35229 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35230 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35231 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35232 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35233 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35234 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35235 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35236 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35237 $(EXTRA_TARGET_FLAGS) \
5eb08693 35238 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 35239 $(TARGET-stageprofile-target-libmpx)
5eb08693 35240
1b6c0831
L
35241maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
35242clean-stageprofile: clean-stageprofile-target-libmpx
35243clean-stageprofile-target-libmpx:
5eb08693 35244 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 35245 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35246 else \
1b6c0831 35247 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
35248 $(MAKE) stageprofile-start; \
35249 fi; \
1b6c0831
L
35250 cd $(TARGET_SUBDIR)/libmpx && \
35251 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35252@endif target-libmpx-bootstrap
35253
35254
35255.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
35256.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
35257maybe-all-stagefeedback-target-libmpx:
35258maybe-clean-stagefeedback-target-libmpx:
35259@if target-libmpx-bootstrap
35260maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
35261all-stagefeedback: all-stagefeedback-target-libmpx
35262TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
35263all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
35264 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35265 @r=`${PWD_COMMAND}`; export r; \
35266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35267 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 35268 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35269 \
1b6c0831 35270 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35271 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35272 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35273 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35274 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35275 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35276 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35277 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35278 $(EXTRA_TARGET_FLAGS) \
5eb08693 35279 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 35280 $(TARGET-stagefeedback-target-libmpx)
5eb08693 35281
1b6c0831
L
35282maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
35283clean-stagefeedback: clean-stagefeedback-target-libmpx
35284clean-stagefeedback-target-libmpx:
5eb08693 35285 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 35286 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35287 else \
1b6c0831 35288 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
35289 $(MAKE) stagefeedback-start; \
35290 fi; \
1b6c0831
L
35291 cd $(TARGET_SUBDIR)/libmpx && \
35292 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35293@endif target-libmpx-bootstrap
5eb08693
L
35294
35295
35296
35297
5286fdef
L
35298
35299
1b6c0831
L
35300.PHONY: check-target-libmpx maybe-check-target-libmpx
35301maybe-check-target-libmpx:
35302@if target-libmpx
35303maybe-check-target-libmpx: check-target-libmpx
5286fdef 35304
1b6c0831 35305check-target-libmpx:
5286fdef
L
35306 @: $(MAKE); $(unstage)
35307 @r=`${PWD_COMMAND}`; export r; \
35308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35309 $(NORMAL_TARGET_EXPORTS) \
35310 (cd $(TARGET_SUBDIR)/libmpx && \
35311 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 35312
1b6c0831 35313@endif target-libmpx
5286fdef 35314
1b6c0831
L
35315.PHONY: install-target-libmpx maybe-install-target-libmpx
35316maybe-install-target-libmpx:
35317@if target-libmpx
35318maybe-install-target-libmpx: install-target-libmpx
5286fdef 35319
1b6c0831 35320install-target-libmpx: installdirs
5286fdef
L
35321 @: $(MAKE); $(unstage)
35322 @r=`${PWD_COMMAND}`; export r; \
35323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35324 $(NORMAL_TARGET_EXPORTS) \
35325 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35326 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35327
1b6c0831 35328@endif target-libmpx
5286fdef 35329
1b6c0831
L
35330.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
35331maybe-install-strip-target-libmpx:
35332@if target-libmpx
35333maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 35334
1b6c0831 35335install-strip-target-libmpx: installdirs
5286fdef
L
35336 @: $(MAKE); $(unstage)
35337 @r=`${PWD_COMMAND}`; export r; \
35338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35339 $(NORMAL_TARGET_EXPORTS) \
35340 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35341 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35342
1b6c0831 35343@endif target-libmpx
5286fdef
L
35344
35345# Other targets (info, dvi, pdf, etc.)
35346
1b6c0831
L
35347.PHONY: maybe-info-target-libmpx info-target-libmpx
35348maybe-info-target-libmpx:
35349@if target-libmpx
35350maybe-info-target-libmpx: info-target-libmpx
5286fdef 35351
1b6c0831
L
35352info-target-libmpx: \
35353 configure-target-libmpx
5286fdef 35354 @: $(MAKE); $(unstage)
22121df0 35355 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35356 r=`${PWD_COMMAND}`; export r; \
35357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35358 $(NORMAL_TARGET_EXPORTS) \
22121df0 35359 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35360 for flag in $(EXTRA_TARGET_FLAGS); do \
35361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35362 done; \
1b6c0831 35363 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35366 "RANLIB=$${RANLIB}" \
35367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35368 info) \
35369 || exit 1
35370
1b6c0831 35371@endif target-libmpx
5286fdef 35372
1b6c0831
L
35373.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
35374maybe-dvi-target-libmpx:
35375@if target-libmpx
35376maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 35377
1b6c0831
L
35378dvi-target-libmpx: \
35379 configure-target-libmpx
5286fdef 35380 @: $(MAKE); $(unstage)
22121df0 35381 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35382 r=`${PWD_COMMAND}`; export r; \
35383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35384 $(NORMAL_TARGET_EXPORTS) \
22121df0 35385 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35386 for flag in $(EXTRA_TARGET_FLAGS); do \
35387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35388 done; \
1b6c0831 35389 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35392 "RANLIB=$${RANLIB}" \
35393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35394 dvi) \
35395 || exit 1
35396
1b6c0831 35397@endif target-libmpx
5286fdef 35398
1b6c0831
L
35399.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
35400maybe-pdf-target-libmpx:
35401@if target-libmpx
35402maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 35403
1b6c0831
L
35404pdf-target-libmpx: \
35405 configure-target-libmpx
5286fdef 35406 @: $(MAKE); $(unstage)
22121df0 35407 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35408 r=`${PWD_COMMAND}`; export r; \
35409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35410 $(NORMAL_TARGET_EXPORTS) \
22121df0 35411 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35412 for flag in $(EXTRA_TARGET_FLAGS); do \
35413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35414 done; \
1b6c0831 35415 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35418 "RANLIB=$${RANLIB}" \
35419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35420 pdf) \
35421 || exit 1
35422
1b6c0831 35423@endif target-libmpx
5286fdef 35424
1b6c0831
L
35425.PHONY: maybe-html-target-libmpx html-target-libmpx
35426maybe-html-target-libmpx:
35427@if target-libmpx
35428maybe-html-target-libmpx: html-target-libmpx
5286fdef 35429
1b6c0831
L
35430html-target-libmpx: \
35431 configure-target-libmpx
5286fdef 35432 @: $(MAKE); $(unstage)
22121df0 35433 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35434 r=`${PWD_COMMAND}`; export r; \
35435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35436 $(NORMAL_TARGET_EXPORTS) \
22121df0 35437 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35438 for flag in $(EXTRA_TARGET_FLAGS); do \
35439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35440 done; \
1b6c0831 35441 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35444 "RANLIB=$${RANLIB}" \
35445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35446 html) \
35447 || exit 1
35448
1b6c0831 35449@endif target-libmpx
5286fdef 35450
1b6c0831
L
35451.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
35452maybe-TAGS-target-libmpx:
35453@if target-libmpx
35454maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 35455
1b6c0831
L
35456TAGS-target-libmpx: \
35457 configure-target-libmpx
5286fdef 35458 @: $(MAKE); $(unstage)
22121df0 35459 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35460 r=`${PWD_COMMAND}`; export r; \
35461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35462 $(NORMAL_TARGET_EXPORTS) \
22121df0 35463 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35464 for flag in $(EXTRA_TARGET_FLAGS); do \
35465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35466 done; \
1b6c0831 35467 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35470 "RANLIB=$${RANLIB}" \
35471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35472 TAGS) \
35473 || exit 1
35474
1b6c0831 35475@endif target-libmpx
5286fdef 35476
1b6c0831
L
35477.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
35478maybe-install-info-target-libmpx:
35479@if target-libmpx
35480maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 35481
1b6c0831
L
35482install-info-target-libmpx: \
35483 configure-target-libmpx \
35484 info-target-libmpx
5286fdef 35485 @: $(MAKE); $(unstage)
22121df0 35486 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35487 r=`${PWD_COMMAND}`; export r; \
35488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35489 $(NORMAL_TARGET_EXPORTS) \
22121df0 35490 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35491 for flag in $(EXTRA_TARGET_FLAGS); do \
35492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35493 done; \
1b6c0831 35494 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35497 "RANLIB=$${RANLIB}" \
35498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35499 install-info) \
35500 || exit 1
35501
1b6c0831 35502@endif target-libmpx
5286fdef 35503
1b6c0831
L
35504.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
35505maybe-install-pdf-target-libmpx:
35506@if target-libmpx
35507maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 35508
1b6c0831
L
35509install-pdf-target-libmpx: \
35510 configure-target-libmpx \
35511 pdf-target-libmpx
5286fdef 35512 @: $(MAKE); $(unstage)
22121df0 35513 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35514 r=`${PWD_COMMAND}`; export r; \
35515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35516 $(NORMAL_TARGET_EXPORTS) \
22121df0 35517 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35518 for flag in $(EXTRA_TARGET_FLAGS); do \
35519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35520 done; \
1b6c0831 35521 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35524 "RANLIB=$${RANLIB}" \
35525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35526 install-pdf) \
35527 || exit 1
35528
1b6c0831 35529@endif target-libmpx
5286fdef 35530
1b6c0831
L
35531.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
35532maybe-install-html-target-libmpx:
35533@if target-libmpx
35534maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 35535
1b6c0831
L
35536install-html-target-libmpx: \
35537 configure-target-libmpx \
35538 html-target-libmpx
5286fdef 35539 @: $(MAKE); $(unstage)
22121df0 35540 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35541 r=`${PWD_COMMAND}`; export r; \
35542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35543 $(NORMAL_TARGET_EXPORTS) \
22121df0 35544 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35545 for flag in $(EXTRA_TARGET_FLAGS); do \
35546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35547 done; \
1b6c0831 35548 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35551 "RANLIB=$${RANLIB}" \
35552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35553 install-html) \
35554 || exit 1
35555
1b6c0831 35556@endif target-libmpx
5286fdef 35557
1b6c0831
L
35558.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
35559maybe-installcheck-target-libmpx:
35560@if target-libmpx
35561maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 35562
1b6c0831
L
35563installcheck-target-libmpx: \
35564 configure-target-libmpx
5286fdef 35565 @: $(MAKE); $(unstage)
22121df0 35566 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35567 r=`${PWD_COMMAND}`; export r; \
35568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35569 $(NORMAL_TARGET_EXPORTS) \
22121df0 35570 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35571 for flag in $(EXTRA_TARGET_FLAGS); do \
35572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35573 done; \
1b6c0831 35574 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35577 "RANLIB=$${RANLIB}" \
35578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35579 installcheck) \
35580 || exit 1
35581
1b6c0831 35582@endif target-libmpx
5286fdef 35583
1b6c0831
L
35584.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
35585maybe-mostlyclean-target-libmpx:
35586@if target-libmpx
35587maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 35588
1b6c0831 35589mostlyclean-target-libmpx:
5286fdef 35590 @: $(MAKE); $(unstage)
22121df0 35591 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35592 r=`${PWD_COMMAND}`; export r; \
35593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35594 $(NORMAL_TARGET_EXPORTS) \
22121df0 35595 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35596 for flag in $(EXTRA_TARGET_FLAGS); do \
35597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35598 done; \
1b6c0831 35599 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35602 "RANLIB=$${RANLIB}" \
35603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35604 mostlyclean) \
35605 || exit 1
35606
1b6c0831 35607@endif target-libmpx
5286fdef 35608
1b6c0831
L
35609.PHONY: maybe-clean-target-libmpx clean-target-libmpx
35610maybe-clean-target-libmpx:
35611@if target-libmpx
35612maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 35613
1b6c0831 35614clean-target-libmpx:
5286fdef 35615 @: $(MAKE); $(unstage)
22121df0 35616 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35617 r=`${PWD_COMMAND}`; export r; \
35618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35619 $(NORMAL_TARGET_EXPORTS) \
22121df0 35620 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35621 for flag in $(EXTRA_TARGET_FLAGS); do \
35622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35623 done; \
1b6c0831 35624 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35627 "RANLIB=$${RANLIB}" \
35628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35629 clean) \
35630 || exit 1
35631
1b6c0831 35632@endif target-libmpx
5286fdef 35633
1b6c0831
L
35634.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
35635maybe-distclean-target-libmpx:
35636@if target-libmpx
35637maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 35638
1b6c0831 35639distclean-target-libmpx:
5286fdef 35640 @: $(MAKE); $(unstage)
22121df0 35641 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35642 r=`${PWD_COMMAND}`; export r; \
35643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35644 $(NORMAL_TARGET_EXPORTS) \
22121df0 35645 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35646 for flag in $(EXTRA_TARGET_FLAGS); do \
35647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35648 done; \
1b6c0831 35649 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35652 "RANLIB=$${RANLIB}" \
35653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35654 distclean) \
35655 || exit 1
35656
1b6c0831 35657@endif target-libmpx
5286fdef 35658
1b6c0831
L
35659.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
35660maybe-maintainer-clean-target-libmpx:
35661@if target-libmpx
35662maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 35663
1b6c0831 35664maintainer-clean-target-libmpx:
5286fdef 35665 @: $(MAKE); $(unstage)
22121df0 35666 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35667 r=`${PWD_COMMAND}`; export r; \
35668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35669 $(NORMAL_TARGET_EXPORTS) \
22121df0 35670 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35671 for flag in $(EXTRA_TARGET_FLAGS); do \
35672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35673 done; \
1b6c0831 35674 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35677 "RANLIB=$${RANLIB}" \
35678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35679 maintainer-clean) \
35680 || exit 1
35681
1b6c0831 35682@endif target-libmpx
5286fdef
L
35683
35684
35685
35686
35687
95e43135
JBG
35688.PHONY: configure-target-libvtv maybe-configure-target-libvtv
35689maybe-configure-target-libvtv:
35690@if gcc-bootstrap
35691configure-target-libvtv: stage_current
35692@endif gcc-bootstrap
35693@if target-libvtv
35694maybe-configure-target-libvtv: configure-target-libvtv
35695configure-target-libvtv:
35696 @r=`${PWD_COMMAND}`; export r; \
35697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35698 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
35699 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
35700 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35701 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35702 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35703 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35704 else \
35705 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35706 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35707 fi; \
35708 else \
35709 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35710 fi; \
35711 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 35712 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35713 $(RAW_CXX_TARGET_EXPORTS) \
35714 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
35715 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
35716 case $(srcdir) in \
35717 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35718 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35719 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35720 esac; \
1b6c0831 35721 module_srcdir=libvtv; \
95e43135 35722 rm -f no-such-file || : ; \
1b6c0831
L
35723 CONFIG_SITE=no-such-file $(SHELL) \
35724 $$s/$$module_srcdir/configure \
35725 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35726 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35727 --target=${target_alias} \
95e43135
JBG
35728 || exit 1
35729@endif target-libvtv
35730
35731
35732
35733.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
35734maybe-configure-stage1-target-libvtv:
35735@if target-libvtv-bootstrap
35736maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
35737configure-stage1-target-libvtv:
35738 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35739 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35740 @r=`${PWD_COMMAND}`; export r; \
35741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35742 TFLAGS="$(STAGE1_TFLAGS)"; \
35743 echo "Checking multilib configuration for libvtv..."; \
22121df0 35744 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35745 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35746 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35747 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35748 else \
35749 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35750 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35751 fi; \
35752 else \
35753 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35754 fi; \
35755 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35756 $(RAW_CXX_TARGET_EXPORTS) \
35757 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35758 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35759 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35760 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
35761 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35762 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35763 case $(srcdir) in \
35764 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35765 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35766 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35767 esac; \
1b6c0831
L
35768 module_srcdir=libvtv; \
35769 $(SHELL) $$s/$$module_srcdir/configure \
35770 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35771 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35772 --target=${target_alias} \
35773 \
95e43135
JBG
35774 $(STAGE1_CONFIGURE_FLAGS)
35775@endif target-libvtv-bootstrap
35776
35777.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
35778maybe-configure-stage2-target-libvtv:
35779@if target-libvtv-bootstrap
35780maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
35781configure-stage2-target-libvtv:
35782 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35783 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35784 @r=`${PWD_COMMAND}`; export r; \
35785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35786 TFLAGS="$(STAGE2_TFLAGS)"; \
35787 echo "Checking multilib configuration for libvtv..."; \
22121df0 35788 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35789 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35790 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35791 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35792 else \
35793 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35794 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35795 fi; \
35796 else \
35797 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35798 fi; \
35799 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35800 $(RAW_CXX_TARGET_EXPORTS) \
35801 \
35802 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35803 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35804 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35805 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
35806 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35807 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35808 case $(srcdir) in \
35809 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35810 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35811 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35812 esac; \
1b6c0831
L
35813 module_srcdir=libvtv; \
35814 $(SHELL) $$s/$$module_srcdir/configure \
35815 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35816 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35817 --target=${target_alias} \
22121df0 35818 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35819 $(STAGE2_CONFIGURE_FLAGS)
35820@endif target-libvtv-bootstrap
35821
35822.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
35823maybe-configure-stage3-target-libvtv:
35824@if target-libvtv-bootstrap
35825maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
35826configure-stage3-target-libvtv:
35827 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35828 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35829 @r=`${PWD_COMMAND}`; export r; \
35830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35831 TFLAGS="$(STAGE3_TFLAGS)"; \
35832 echo "Checking multilib configuration for libvtv..."; \
22121df0 35833 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35834 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35835 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35836 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35837 else \
35838 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35839 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35840 fi; \
35841 else \
35842 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35843 fi; \
35844 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35845 $(RAW_CXX_TARGET_EXPORTS) \
35846 \
35847 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35848 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35849 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35850 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
35851 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35852 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35853 case $(srcdir) in \
35854 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35855 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35856 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35857 esac; \
1b6c0831
L
35858 module_srcdir=libvtv; \
35859 $(SHELL) $$s/$$module_srcdir/configure \
35860 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35861 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35862 --target=${target_alias} \
22121df0 35863 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35864 $(STAGE3_CONFIGURE_FLAGS)
35865@endif target-libvtv-bootstrap
35866
35867.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
35868maybe-configure-stage4-target-libvtv:
35869@if target-libvtv-bootstrap
35870maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
35871configure-stage4-target-libvtv:
35872 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35873 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35874 @r=`${PWD_COMMAND}`; export r; \
35875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35876 TFLAGS="$(STAGE4_TFLAGS)"; \
35877 echo "Checking multilib configuration for libvtv..."; \
22121df0 35878 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35879 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35880 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35881 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35882 else \
35883 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35884 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35885 fi; \
35886 else \
35887 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35888 fi; \
35889 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35890 $(RAW_CXX_TARGET_EXPORTS) \
35891 \
35892 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35893 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35894 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35895 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
35896 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35897 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35898 case $(srcdir) in \
35899 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35900 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35901 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35902 esac; \
1b6c0831
L
35903 module_srcdir=libvtv; \
35904 $(SHELL) $$s/$$module_srcdir/configure \
35905 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35906 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35907 --target=${target_alias} \
22121df0 35908 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35909 $(STAGE4_CONFIGURE_FLAGS)
35910@endif target-libvtv-bootstrap
35911
35912.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
35913maybe-configure-stageprofile-target-libvtv:
35914@if target-libvtv-bootstrap
35915maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35916configure-stageprofile-target-libvtv:
35917 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35918 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35919 @r=`${PWD_COMMAND}`; export r; \
35920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35921 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35922 echo "Checking multilib configuration for libvtv..."; \
22121df0 35923 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35924 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35925 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35926 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35927 else \
35928 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35929 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35930 fi; \
35931 else \
35932 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35933 fi; \
35934 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35935 $(RAW_CXX_TARGET_EXPORTS) \
35936 \
35937 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35938 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35939 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35940 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
35941 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35942 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35943 case $(srcdir) in \
35944 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35945 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35946 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35947 esac; \
1b6c0831
L
35948 module_srcdir=libvtv; \
35949 $(SHELL) $$s/$$module_srcdir/configure \
35950 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35951 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35952 --target=${target_alias} \
22121df0 35953 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35954 $(STAGEprofile_CONFIGURE_FLAGS)
35955@endif target-libvtv-bootstrap
35956
35957.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
35958maybe-configure-stagefeedback-target-libvtv:
35959@if target-libvtv-bootstrap
35960maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35961configure-stagefeedback-target-libvtv:
35962 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35963 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35964 @r=`${PWD_COMMAND}`; export r; \
35965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35966 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35967 echo "Checking multilib configuration for libvtv..."; \
22121df0 35968 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35969 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35970 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35971 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35972 else \
35973 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35974 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35975 fi; \
35976 else \
35977 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35978 fi; \
35979 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35980 $(RAW_CXX_TARGET_EXPORTS) \
35981 \
35982 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35983 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35984 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35985 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
35986 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35987 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35988 case $(srcdir) in \
35989 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35990 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35991 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35992 esac; \
1b6c0831
L
35993 module_srcdir=libvtv; \
35994 $(SHELL) $$s/$$module_srcdir/configure \
35995 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35996 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35997 --target=${target_alias} \
22121df0 35998 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35999 $(STAGEfeedback_CONFIGURE_FLAGS)
36000@endif target-libvtv-bootstrap
36001
36002
36003
36004
36005
36006.PHONY: all-target-libvtv maybe-all-target-libvtv
36007maybe-all-target-libvtv:
36008@if gcc-bootstrap
36009all-target-libvtv: stage_current
36010@endif gcc-bootstrap
36011@if target-libvtv
36012TARGET-target-libvtv=all
36013maybe-all-target-libvtv: all-target-libvtv
36014all-target-libvtv: configure-target-libvtv
36015 @r=`${PWD_COMMAND}`; export r; \
36016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36017 $(RAW_CXX_TARGET_EXPORTS) \
36018 (cd $(TARGET_SUBDIR)/libvtv && \
36019 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36020 $(TARGET-target-libvtv))
36021@endif target-libvtv
36022
36023
36024
36025.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
36026.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
36027maybe-all-stage1-target-libvtv:
36028maybe-clean-stage1-target-libvtv:
36029@if target-libvtv-bootstrap
36030maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
36031all-stage1: all-stage1-target-libvtv
36032TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
36033all-stage1-target-libvtv: configure-stage1-target-libvtv
36034 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36035 @r=`${PWD_COMMAND}`; export r; \
36036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36037 TFLAGS="$(STAGE1_TFLAGS)"; \
36038 $(RAW_CXX_TARGET_EXPORTS) \
36039 cd $(TARGET_SUBDIR)/libvtv && \
36040 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36041 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36042 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36043 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36044 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36045 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36046 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36047 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36048 \
36049 TFLAGS="$(STAGE1_TFLAGS)" \
36050 $(TARGET-stage1-target-libvtv)
36051
36052maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
36053clean-stage1: clean-stage1-target-libvtv
36054clean-stage1-target-libvtv:
36055 @if [ $(current_stage) = stage1 ]; then \
36056 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36057 else \
36058 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
36059 $(MAKE) stage1-start; \
36060 fi; \
36061 cd $(TARGET_SUBDIR)/libvtv && \
36062 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36063 clean
36064@endif target-libvtv-bootstrap
36065
36066
36067.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
36068.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
36069maybe-all-stage2-target-libvtv:
36070maybe-clean-stage2-target-libvtv:
36071@if target-libvtv-bootstrap
36072maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
36073all-stage2: all-stage2-target-libvtv
36074TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
36075all-stage2-target-libvtv: configure-stage2-target-libvtv
36076 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36077 @r=`${PWD_COMMAND}`; export r; \
36078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36079 TFLAGS="$(STAGE2_TFLAGS)"; \
36080 $(RAW_CXX_TARGET_EXPORTS) \
36081 \
36082 cd $(TARGET_SUBDIR)/libvtv && \
36083 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36084 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36085 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36086 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36087 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36088 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36089 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36090 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36091 TFLAGS="$(STAGE2_TFLAGS)" \
36092 $(TARGET-stage2-target-libvtv)
36093
36094maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
36095clean-stage2: clean-stage2-target-libvtv
36096clean-stage2-target-libvtv:
36097 @if [ $(current_stage) = stage2 ]; then \
36098 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36099 else \
36100 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
36101 $(MAKE) stage2-start; \
36102 fi; \
36103 cd $(TARGET_SUBDIR)/libvtv && \
36104 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36105@endif target-libvtv-bootstrap
36106
36107
36108.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
36109.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
36110maybe-all-stage3-target-libvtv:
36111maybe-clean-stage3-target-libvtv:
36112@if target-libvtv-bootstrap
36113maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
36114all-stage3: all-stage3-target-libvtv
36115TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
36116all-stage3-target-libvtv: configure-stage3-target-libvtv
36117 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36118 @r=`${PWD_COMMAND}`; export r; \
36119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36120 TFLAGS="$(STAGE3_TFLAGS)"; \
36121 $(RAW_CXX_TARGET_EXPORTS) \
36122 \
36123 cd $(TARGET_SUBDIR)/libvtv && \
36124 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36125 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36126 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36127 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36128 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36129 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36130 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36131 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36132 TFLAGS="$(STAGE3_TFLAGS)" \
36133 $(TARGET-stage3-target-libvtv)
36134
36135maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
36136clean-stage3: clean-stage3-target-libvtv
36137clean-stage3-target-libvtv:
36138 @if [ $(current_stage) = stage3 ]; then \
36139 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36140 else \
36141 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
36142 $(MAKE) stage3-start; \
36143 fi; \
36144 cd $(TARGET_SUBDIR)/libvtv && \
36145 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36146@endif target-libvtv-bootstrap
36147
36148
36149.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
36150.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
36151maybe-all-stage4-target-libvtv:
36152maybe-clean-stage4-target-libvtv:
36153@if target-libvtv-bootstrap
36154maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
36155all-stage4: all-stage4-target-libvtv
36156TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
36157all-stage4-target-libvtv: configure-stage4-target-libvtv
36158 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36159 @r=`${PWD_COMMAND}`; export r; \
36160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36161 TFLAGS="$(STAGE4_TFLAGS)"; \
36162 $(RAW_CXX_TARGET_EXPORTS) \
36163 \
36164 cd $(TARGET_SUBDIR)/libvtv && \
36165 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36166 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36167 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36168 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36169 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36170 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36171 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36172 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36173 TFLAGS="$(STAGE4_TFLAGS)" \
36174 $(TARGET-stage4-target-libvtv)
36175
36176maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
36177clean-stage4: clean-stage4-target-libvtv
36178clean-stage4-target-libvtv:
36179 @if [ $(current_stage) = stage4 ]; then \
36180 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36181 else \
36182 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
36183 $(MAKE) stage4-start; \
36184 fi; \
36185 cd $(TARGET_SUBDIR)/libvtv && \
36186 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36187@endif target-libvtv-bootstrap
36188
36189
36190.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
36191.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
36192maybe-all-stageprofile-target-libvtv:
36193maybe-clean-stageprofile-target-libvtv:
36194@if target-libvtv-bootstrap
36195maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
36196all-stageprofile: all-stageprofile-target-libvtv
36197TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
36198all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
36199 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36200 @r=`${PWD_COMMAND}`; export r; \
36201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36202 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36203 $(RAW_CXX_TARGET_EXPORTS) \
36204 \
36205 cd $(TARGET_SUBDIR)/libvtv && \
36206 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36207 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36208 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36209 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36210 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36211 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36212 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36213 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36214 TFLAGS="$(STAGEprofile_TFLAGS)" \
36215 $(TARGET-stageprofile-target-libvtv)
36216
36217maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
36218clean-stageprofile: clean-stageprofile-target-libvtv
36219clean-stageprofile-target-libvtv:
36220 @if [ $(current_stage) = stageprofile ]; then \
36221 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36222 else \
36223 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
36224 $(MAKE) stageprofile-start; \
36225 fi; \
36226 cd $(TARGET_SUBDIR)/libvtv && \
36227 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36228@endif target-libvtv-bootstrap
36229
36230
36231.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
36232.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
36233maybe-all-stagefeedback-target-libvtv:
36234maybe-clean-stagefeedback-target-libvtv:
36235@if target-libvtv-bootstrap
36236maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
36237all-stagefeedback: all-stagefeedback-target-libvtv
36238TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
36239all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
36240 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36241 @r=`${PWD_COMMAND}`; export r; \
36242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36243 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36244 $(RAW_CXX_TARGET_EXPORTS) \
36245 \
36246 cd $(TARGET_SUBDIR)/libvtv && \
36247 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36248 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36249 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36250 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36251 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36252 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36253 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36254 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36255 TFLAGS="$(STAGEfeedback_TFLAGS)" \
36256 $(TARGET-stagefeedback-target-libvtv)
36257
36258maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
36259clean-stagefeedback: clean-stagefeedback-target-libvtv
36260clean-stagefeedback-target-libvtv:
36261 @if [ $(current_stage) = stagefeedback ]; then \
36262 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36263 else \
36264 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
36265 $(MAKE) stagefeedback-start; \
36266 fi; \
36267 cd $(TARGET_SUBDIR)/libvtv && \
36268 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36269@endif target-libvtv-bootstrap
36270
36271
36272
36273
36274
36275
36276.PHONY: check-target-libvtv maybe-check-target-libvtv
36277maybe-check-target-libvtv:
36278@if target-libvtv
36279maybe-check-target-libvtv: check-target-libvtv
36280
36281check-target-libvtv:
36282 @: $(MAKE); $(unstage)
36283 @r=`${PWD_COMMAND}`; export r; \
36284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36285 $(RAW_CXX_TARGET_EXPORTS) \
36286 (cd $(TARGET_SUBDIR)/libvtv && \
36287 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
36288
36289@endif target-libvtv
36290
36291.PHONY: install-target-libvtv maybe-install-target-libvtv
36292maybe-install-target-libvtv:
36293@if target-libvtv
36294maybe-install-target-libvtv: install-target-libvtv
36295
36296install-target-libvtv: installdirs
36297 @: $(MAKE); $(unstage)
36298 @r=`${PWD_COMMAND}`; export r; \
36299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36300 $(RAW_CXX_TARGET_EXPORTS) \
36301 (cd $(TARGET_SUBDIR)/libvtv && \
36302 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36303
36304@endif target-libvtv
36305
36306.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
36307maybe-install-strip-target-libvtv:
36308@if target-libvtv
36309maybe-install-strip-target-libvtv: install-strip-target-libvtv
36310
36311install-strip-target-libvtv: installdirs
36312 @: $(MAKE); $(unstage)
36313 @r=`${PWD_COMMAND}`; export r; \
36314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36315 $(RAW_CXX_TARGET_EXPORTS) \
36316 (cd $(TARGET_SUBDIR)/libvtv && \
36317 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36318
36319@endif target-libvtv
36320
36321# Other targets (info, dvi, pdf, etc.)
36322
36323.PHONY: maybe-info-target-libvtv info-target-libvtv
36324maybe-info-target-libvtv:
36325@if target-libvtv
36326maybe-info-target-libvtv: info-target-libvtv
36327
36328info-target-libvtv: \
36329 configure-target-libvtv
36330 @: $(MAKE); $(unstage)
22121df0 36331 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36332 r=`${PWD_COMMAND}`; export r; \
36333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36334 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36335 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36336 for flag in $(EXTRA_TARGET_FLAGS); do \
36337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36338 done; \
36339 (cd $(TARGET_SUBDIR)/libvtv && \
36340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36342 "RANLIB=$${RANLIB}" \
36343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36344 info) \
36345 || exit 1
36346
36347@endif target-libvtv
36348
36349.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
36350maybe-dvi-target-libvtv:
36351@if target-libvtv
36352maybe-dvi-target-libvtv: dvi-target-libvtv
36353
36354dvi-target-libvtv: \
36355 configure-target-libvtv
36356 @: $(MAKE); $(unstage)
22121df0 36357 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36358 r=`${PWD_COMMAND}`; export r; \
36359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36360 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36361 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36362 for flag in $(EXTRA_TARGET_FLAGS); do \
36363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36364 done; \
36365 (cd $(TARGET_SUBDIR)/libvtv && \
36366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36368 "RANLIB=$${RANLIB}" \
36369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36370 dvi) \
36371 || exit 1
36372
36373@endif target-libvtv
36374
36375.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
36376maybe-pdf-target-libvtv:
36377@if target-libvtv
36378maybe-pdf-target-libvtv: pdf-target-libvtv
36379
36380pdf-target-libvtv: \
36381 configure-target-libvtv
36382 @: $(MAKE); $(unstage)
22121df0 36383 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36384 r=`${PWD_COMMAND}`; export r; \
36385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36386 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36387 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36388 for flag in $(EXTRA_TARGET_FLAGS); do \
36389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36390 done; \
36391 (cd $(TARGET_SUBDIR)/libvtv && \
36392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36394 "RANLIB=$${RANLIB}" \
36395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36396 pdf) \
36397 || exit 1
36398
36399@endif target-libvtv
36400
36401.PHONY: maybe-html-target-libvtv html-target-libvtv
36402maybe-html-target-libvtv:
36403@if target-libvtv
36404maybe-html-target-libvtv: html-target-libvtv
36405
36406html-target-libvtv: \
36407 configure-target-libvtv
36408 @: $(MAKE); $(unstage)
22121df0 36409 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36410 r=`${PWD_COMMAND}`; export r; \
36411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36412 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36413 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36414 for flag in $(EXTRA_TARGET_FLAGS); do \
36415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36416 done; \
36417 (cd $(TARGET_SUBDIR)/libvtv && \
36418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36420 "RANLIB=$${RANLIB}" \
36421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36422 html) \
36423 || exit 1
36424
36425@endif target-libvtv
36426
36427.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
36428maybe-TAGS-target-libvtv:
36429@if target-libvtv
36430maybe-TAGS-target-libvtv: TAGS-target-libvtv
36431
36432TAGS-target-libvtv: \
36433 configure-target-libvtv
36434 @: $(MAKE); $(unstage)
22121df0 36435 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36436 r=`${PWD_COMMAND}`; export r; \
36437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36438 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36439 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36440 for flag in $(EXTRA_TARGET_FLAGS); do \
36441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36442 done; \
36443 (cd $(TARGET_SUBDIR)/libvtv && \
36444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36446 "RANLIB=$${RANLIB}" \
36447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36448 TAGS) \
36449 || exit 1
36450
36451@endif target-libvtv
36452
36453.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
36454maybe-install-info-target-libvtv:
36455@if target-libvtv
36456maybe-install-info-target-libvtv: install-info-target-libvtv
36457
36458install-info-target-libvtv: \
36459 configure-target-libvtv \
36460 info-target-libvtv
36461 @: $(MAKE); $(unstage)
22121df0 36462 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36463 r=`${PWD_COMMAND}`; export r; \
36464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36465 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36466 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36467 for flag in $(EXTRA_TARGET_FLAGS); do \
36468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36469 done; \
36470 (cd $(TARGET_SUBDIR)/libvtv && \
36471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36473 "RANLIB=$${RANLIB}" \
36474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36475 install-info) \
36476 || exit 1
36477
36478@endif target-libvtv
36479
36480.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
36481maybe-install-pdf-target-libvtv:
36482@if target-libvtv
36483maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
36484
36485install-pdf-target-libvtv: \
36486 configure-target-libvtv \
36487 pdf-target-libvtv
36488 @: $(MAKE); $(unstage)
22121df0 36489 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36490 r=`${PWD_COMMAND}`; export r; \
36491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36492 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36493 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36494 for flag in $(EXTRA_TARGET_FLAGS); do \
36495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36496 done; \
36497 (cd $(TARGET_SUBDIR)/libvtv && \
36498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36500 "RANLIB=$${RANLIB}" \
36501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36502 install-pdf) \
36503 || exit 1
36504
36505@endif target-libvtv
36506
36507.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
36508maybe-install-html-target-libvtv:
36509@if target-libvtv
36510maybe-install-html-target-libvtv: install-html-target-libvtv
36511
36512install-html-target-libvtv: \
36513 configure-target-libvtv \
36514 html-target-libvtv
36515 @: $(MAKE); $(unstage)
22121df0 36516 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36517 r=`${PWD_COMMAND}`; export r; \
36518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36519 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36520 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36521 for flag in $(EXTRA_TARGET_FLAGS); do \
36522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36523 done; \
36524 (cd $(TARGET_SUBDIR)/libvtv && \
36525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36527 "RANLIB=$${RANLIB}" \
36528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36529 install-html) \
36530 || exit 1
36531
36532@endif target-libvtv
36533
36534.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
36535maybe-installcheck-target-libvtv:
36536@if target-libvtv
36537maybe-installcheck-target-libvtv: installcheck-target-libvtv
36538
36539installcheck-target-libvtv: \
36540 configure-target-libvtv
36541 @: $(MAKE); $(unstage)
22121df0 36542 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36543 r=`${PWD_COMMAND}`; export r; \
36544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36545 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36546 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36547 for flag in $(EXTRA_TARGET_FLAGS); do \
36548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36549 done; \
36550 (cd $(TARGET_SUBDIR)/libvtv && \
36551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36553 "RANLIB=$${RANLIB}" \
36554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36555 installcheck) \
36556 || exit 1
36557
36558@endif target-libvtv
36559
36560.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
36561maybe-mostlyclean-target-libvtv:
36562@if target-libvtv
36563maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
36564
36565mostlyclean-target-libvtv:
36566 @: $(MAKE); $(unstage)
22121df0 36567 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36568 r=`${PWD_COMMAND}`; export r; \
36569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36570 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36571 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36572 for flag in $(EXTRA_TARGET_FLAGS); do \
36573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36574 done; \
36575 (cd $(TARGET_SUBDIR)/libvtv && \
36576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36578 "RANLIB=$${RANLIB}" \
36579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36580 mostlyclean) \
36581 || exit 1
36582
36583@endif target-libvtv
36584
36585.PHONY: maybe-clean-target-libvtv clean-target-libvtv
36586maybe-clean-target-libvtv:
36587@if target-libvtv
36588maybe-clean-target-libvtv: clean-target-libvtv
36589
36590clean-target-libvtv:
36591 @: $(MAKE); $(unstage)
22121df0 36592 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36593 r=`${PWD_COMMAND}`; export r; \
36594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36595 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36596 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36597 for flag in $(EXTRA_TARGET_FLAGS); do \
36598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36599 done; \
36600 (cd $(TARGET_SUBDIR)/libvtv && \
36601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36603 "RANLIB=$${RANLIB}" \
36604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36605 clean) \
36606 || exit 1
36607
36608@endif target-libvtv
36609
36610.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
36611maybe-distclean-target-libvtv:
36612@if target-libvtv
36613maybe-distclean-target-libvtv: distclean-target-libvtv
36614
36615distclean-target-libvtv:
36616 @: $(MAKE); $(unstage)
22121df0 36617 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36618 r=`${PWD_COMMAND}`; export r; \
36619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36620 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36621 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36622 for flag in $(EXTRA_TARGET_FLAGS); do \
36623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36624 done; \
36625 (cd $(TARGET_SUBDIR)/libvtv && \
36626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36628 "RANLIB=$${RANLIB}" \
36629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36630 distclean) \
36631 || exit 1
36632
36633@endif target-libvtv
36634
36635.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
36636maybe-maintainer-clean-target-libvtv:
36637@if target-libvtv
36638maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
36639
36640maintainer-clean-target-libvtv:
36641 @: $(MAKE); $(unstage)
22121df0 36642 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36643 r=`${PWD_COMMAND}`; export r; \
36644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36645 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36646 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36647 for flag in $(EXTRA_TARGET_FLAGS); do \
36648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36649 done; \
36650 (cd $(TARGET_SUBDIR)/libvtv && \
36651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36653 "RANLIB=$${RANLIB}" \
36654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36655 maintainer-clean) \
36656 || exit 1
36657
36658@endif target-libvtv
36659
36660
36661
36662
36663
e78e02e6 36664.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
36665maybe-configure-target-libcilkrts:
36666@if gcc-bootstrap
36667configure-target-libcilkrts: stage_current
36668@endif gcc-bootstrap
36669@if target-libcilkrts
36670maybe-configure-target-libcilkrts: configure-target-libcilkrts
36671configure-target-libcilkrts:
36672 @: $(MAKE); $(unstage)
36673 @r=`${PWD_COMMAND}`; export r; \
36674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36675 echo "Checking multilib configuration for libcilkrts..."; \
22121df0
L
36676 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
36677 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
e78e02e6 36678 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36679 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36680 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
36681 else \
36682 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
36683 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36684 fi; \
36685 else \
36686 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36687 fi; \
36688 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
22121df0 36689 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
e78e02e6 36690 $(NORMAL_TARGET_EXPORTS) \
36691 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
36692 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
36693 case $(srcdir) in \
36694 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36695 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
36696 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36697 esac; \
1b6c0831 36698 module_srcdir=libcilkrts; \
e78e02e6 36699 rm -f no-such-file || : ; \
1b6c0831
L
36700 CONFIG_SITE=no-such-file $(SHELL) \
36701 $$s/$$module_srcdir/configure \
36702 --srcdir=$${topdir}/$$module_srcdir \
e78e02e6 36703 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36704 --target=${target_alias} \
e78e02e6 36705 || exit 1
36706@endif target-libcilkrts
36707
36708
36709
36710
36711
36712.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
36713maybe-all-target-libcilkrts:
36714@if gcc-bootstrap
36715all-target-libcilkrts: stage_current
36716@endif gcc-bootstrap
36717@if target-libcilkrts
36718TARGET-target-libcilkrts=all
36719maybe-all-target-libcilkrts: all-target-libcilkrts
36720all-target-libcilkrts: configure-target-libcilkrts
36721 @: $(MAKE); $(unstage)
36722 @r=`${PWD_COMMAND}`; export r; \
36723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36724 $(NORMAL_TARGET_EXPORTS) \
36725 (cd $(TARGET_SUBDIR)/libcilkrts && \
36726 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36727 $(TARGET-target-libcilkrts))
36728@endif target-libcilkrts
36729
36730
36731
36732
36733
36734.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
36735maybe-check-target-libcilkrts:
36736@if target-libcilkrts
36737maybe-check-target-libcilkrts: check-target-libcilkrts
36738
36739check-target-libcilkrts:
36740 @: $(MAKE); $(unstage)
36741 @r=`${PWD_COMMAND}`; export r; \
36742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36743 $(NORMAL_TARGET_EXPORTS) \
36744 (cd $(TARGET_SUBDIR)/libcilkrts && \
36745 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36746
36747@endif target-libcilkrts
36748
36749.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
36750maybe-install-target-libcilkrts:
36751@if target-libcilkrts
36752maybe-install-target-libcilkrts: install-target-libcilkrts
36753
36754install-target-libcilkrts: installdirs
36755 @: $(MAKE); $(unstage)
36756 @r=`${PWD_COMMAND}`; export r; \
36757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36758 $(NORMAL_TARGET_EXPORTS) \
36759 (cd $(TARGET_SUBDIR)/libcilkrts && \
36760 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36761
36762@endif target-libcilkrts
36763
36764.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
36765maybe-install-strip-target-libcilkrts:
36766@if target-libcilkrts
36767maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
36768
36769install-strip-target-libcilkrts: installdirs
36770 @: $(MAKE); $(unstage)
36771 @r=`${PWD_COMMAND}`; export r; \
36772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36773 $(NORMAL_TARGET_EXPORTS) \
36774 (cd $(TARGET_SUBDIR)/libcilkrts && \
36775 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36776
36777@endif target-libcilkrts
36778
36779# Other targets (info, dvi, pdf, etc.)
36780
36781.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
36782maybe-info-target-libcilkrts:
36783@if target-libcilkrts
36784maybe-info-target-libcilkrts: info-target-libcilkrts
36785
36786info-target-libcilkrts: \
36787 configure-target-libcilkrts
36788 @: $(MAKE); $(unstage)
22121df0 36789 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36790 r=`${PWD_COMMAND}`; export r; \
36791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36792 $(NORMAL_TARGET_EXPORTS) \
22121df0 36793 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36794 for flag in $(EXTRA_TARGET_FLAGS); do \
36795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36796 done; \
36797 (cd $(TARGET_SUBDIR)/libcilkrts && \
36798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36800 "RANLIB=$${RANLIB}" \
36801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36802 info) \
36803 || exit 1
36804
36805@endif target-libcilkrts
36806
36807.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
36808maybe-dvi-target-libcilkrts:
36809@if target-libcilkrts
36810maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
36811
36812dvi-target-libcilkrts: \
36813 configure-target-libcilkrts
36814 @: $(MAKE); $(unstage)
22121df0 36815 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36816 r=`${PWD_COMMAND}`; export r; \
36817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36818 $(NORMAL_TARGET_EXPORTS) \
22121df0 36819 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36820 for flag in $(EXTRA_TARGET_FLAGS); do \
36821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36822 done; \
36823 (cd $(TARGET_SUBDIR)/libcilkrts && \
36824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36826 "RANLIB=$${RANLIB}" \
36827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36828 dvi) \
36829 || exit 1
36830
36831@endif target-libcilkrts
36832
36833.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
36834maybe-pdf-target-libcilkrts:
36835@if target-libcilkrts
36836maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
36837
36838pdf-target-libcilkrts: \
36839 configure-target-libcilkrts
36840 @: $(MAKE); $(unstage)
22121df0 36841 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36842 r=`${PWD_COMMAND}`; export r; \
36843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36844 $(NORMAL_TARGET_EXPORTS) \
22121df0 36845 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36846 for flag in $(EXTRA_TARGET_FLAGS); do \
36847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36848 done; \
36849 (cd $(TARGET_SUBDIR)/libcilkrts && \
36850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36852 "RANLIB=$${RANLIB}" \
36853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36854 pdf) \
36855 || exit 1
36856
36857@endif target-libcilkrts
36858
36859.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
36860maybe-html-target-libcilkrts:
36861@if target-libcilkrts
36862maybe-html-target-libcilkrts: html-target-libcilkrts
36863
36864html-target-libcilkrts: \
36865 configure-target-libcilkrts
36866 @: $(MAKE); $(unstage)
22121df0 36867 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36868 r=`${PWD_COMMAND}`; export r; \
36869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36870 $(NORMAL_TARGET_EXPORTS) \
22121df0 36871 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36872 for flag in $(EXTRA_TARGET_FLAGS); do \
36873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36874 done; \
36875 (cd $(TARGET_SUBDIR)/libcilkrts && \
36876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36878 "RANLIB=$${RANLIB}" \
36879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36880 html) \
36881 || exit 1
36882
36883@endif target-libcilkrts
36884
36885.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
36886maybe-TAGS-target-libcilkrts:
36887@if target-libcilkrts
36888maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
36889
36890TAGS-target-libcilkrts: \
36891 configure-target-libcilkrts
36892 @: $(MAKE); $(unstage)
22121df0 36893 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36894 r=`${PWD_COMMAND}`; export r; \
36895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36896 $(NORMAL_TARGET_EXPORTS) \
22121df0 36897 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36898 for flag in $(EXTRA_TARGET_FLAGS); do \
36899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36900 done; \
36901 (cd $(TARGET_SUBDIR)/libcilkrts && \
36902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36904 "RANLIB=$${RANLIB}" \
36905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36906 TAGS) \
36907 || exit 1
36908
36909@endif target-libcilkrts
36910
36911.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
36912maybe-install-info-target-libcilkrts:
36913@if target-libcilkrts
36914maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
36915
36916install-info-target-libcilkrts: \
36917 configure-target-libcilkrts \
36918 info-target-libcilkrts
36919 @: $(MAKE); $(unstage)
22121df0 36920 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36921 r=`${PWD_COMMAND}`; export r; \
36922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36923 $(NORMAL_TARGET_EXPORTS) \
22121df0 36924 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36925 for flag in $(EXTRA_TARGET_FLAGS); do \
36926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36927 done; \
36928 (cd $(TARGET_SUBDIR)/libcilkrts && \
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 install-info) \
36934 || exit 1
36935
36936@endif target-libcilkrts
36937
36938.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
36939maybe-install-pdf-target-libcilkrts:
36940@if target-libcilkrts
36941maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
36942
36943install-pdf-target-libcilkrts: \
36944 configure-target-libcilkrts \
36945 pdf-target-libcilkrts
36946 @: $(MAKE); $(unstage)
22121df0 36947 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36948 r=`${PWD_COMMAND}`; export r; \
36949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36950 $(NORMAL_TARGET_EXPORTS) \
22121df0 36951 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36952 for flag in $(EXTRA_TARGET_FLAGS); do \
36953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36954 done; \
36955 (cd $(TARGET_SUBDIR)/libcilkrts && \
36956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36958 "RANLIB=$${RANLIB}" \
36959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36960 install-pdf) \
36961 || exit 1
36962
36963@endif target-libcilkrts
36964
36965.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
36966maybe-install-html-target-libcilkrts:
36967@if target-libcilkrts
36968maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
36969
36970install-html-target-libcilkrts: \
36971 configure-target-libcilkrts \
36972 html-target-libcilkrts
36973 @: $(MAKE); $(unstage)
22121df0 36974 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36975 r=`${PWD_COMMAND}`; export r; \
36976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36977 $(NORMAL_TARGET_EXPORTS) \
22121df0 36978 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36979 for flag in $(EXTRA_TARGET_FLAGS); do \
36980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36981 done; \
36982 (cd $(TARGET_SUBDIR)/libcilkrts && \
36983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36985 "RANLIB=$${RANLIB}" \
36986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36987 install-html) \
36988 || exit 1
36989
36990@endif target-libcilkrts
36991
36992.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
36993maybe-installcheck-target-libcilkrts:
36994@if target-libcilkrts
36995maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
36996
36997installcheck-target-libcilkrts: \
36998 configure-target-libcilkrts
36999 @: $(MAKE); $(unstage)
22121df0 37000 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37001 r=`${PWD_COMMAND}`; export r; \
37002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37003 $(NORMAL_TARGET_EXPORTS) \
22121df0 37004 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37005 for flag in $(EXTRA_TARGET_FLAGS); do \
37006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37007 done; \
37008 (cd $(TARGET_SUBDIR)/libcilkrts && \
37009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37011 "RANLIB=$${RANLIB}" \
37012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37013 installcheck) \
37014 || exit 1
37015
37016@endif target-libcilkrts
37017
37018.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
37019maybe-mostlyclean-target-libcilkrts:
37020@if target-libcilkrts
37021maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
37022
37023mostlyclean-target-libcilkrts:
37024 @: $(MAKE); $(unstage)
22121df0 37025 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37026 r=`${PWD_COMMAND}`; export r; \
37027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37028 $(NORMAL_TARGET_EXPORTS) \
22121df0 37029 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37030 for flag in $(EXTRA_TARGET_FLAGS); do \
37031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37032 done; \
37033 (cd $(TARGET_SUBDIR)/libcilkrts && \
37034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37036 "RANLIB=$${RANLIB}" \
37037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37038 mostlyclean) \
37039 || exit 1
37040
37041@endif target-libcilkrts
37042
37043.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
37044maybe-clean-target-libcilkrts:
37045@if target-libcilkrts
37046maybe-clean-target-libcilkrts: clean-target-libcilkrts
37047
37048clean-target-libcilkrts:
37049 @: $(MAKE); $(unstage)
22121df0 37050 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37051 r=`${PWD_COMMAND}`; export r; \
37052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37053 $(NORMAL_TARGET_EXPORTS) \
22121df0 37054 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37055 for flag in $(EXTRA_TARGET_FLAGS); do \
37056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37057 done; \
37058 (cd $(TARGET_SUBDIR)/libcilkrts && \
37059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37061 "RANLIB=$${RANLIB}" \
37062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37063 clean) \
37064 || exit 1
37065
37066@endif target-libcilkrts
37067
37068.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
37069maybe-distclean-target-libcilkrts:
37070@if target-libcilkrts
37071maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
37072
37073distclean-target-libcilkrts:
37074 @: $(MAKE); $(unstage)
22121df0 37075 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37076 r=`${PWD_COMMAND}`; export r; \
37077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37078 $(NORMAL_TARGET_EXPORTS) \
22121df0 37079 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37080 for flag in $(EXTRA_TARGET_FLAGS); do \
37081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37082 done; \
37083 (cd $(TARGET_SUBDIR)/libcilkrts && \
37084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37086 "RANLIB=$${RANLIB}" \
37087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37088 distclean) \
37089 || exit 1
37090
37091@endif target-libcilkrts
37092
37093.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
37094maybe-maintainer-clean-target-libcilkrts:
37095@if target-libcilkrts
37096maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
37097
37098maintainer-clean-target-libcilkrts:
37099 @: $(MAKE); $(unstage)
22121df0 37100 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37101 r=`${PWD_COMMAND}`; export r; \
37102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37103 $(NORMAL_TARGET_EXPORTS) \
22121df0 37104 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37105 for flag in $(EXTRA_TARGET_FLAGS); do \
37106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37107 done; \
37108 (cd $(TARGET_SUBDIR)/libcilkrts && \
37109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37111 "RANLIB=$${RANLIB}" \
37112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37113 maintainer-clean) \
37114 || exit 1
37115
37116@endif target-libcilkrts
37117
37118
37119
37120
37121
1b6c0831
L
37122.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
37123maybe-configure-target-liboffloadmic:
37124@if gcc-bootstrap
37125configure-target-liboffloadmic: stage_current
37126@endif gcc-bootstrap
37127@if target-liboffloadmic
37128maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
37129configure-target-liboffloadmic:
37130 @: $(MAKE); $(unstage)
37131 @r=`${PWD_COMMAND}`; export r; \
37132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37133 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
37134 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
37135 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
37136 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
37137 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
37138 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
37139 else \
37140 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
37141 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
37142 fi; \
37143 else \
37144 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
37145 fi; \
37146 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 37147 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
37148 $(NORMAL_TARGET_EXPORTS) \
37149 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
37150 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
37151 case $(srcdir) in \
37152 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37153 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
37154 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37155 esac; \
37156 module_srcdir=liboffloadmic; \
37157 rm -f no-such-file || : ; \
37158 CONFIG_SITE=no-such-file $(SHELL) \
37159 $$s/$$module_srcdir/configure \
37160 --srcdir=$${topdir}/$$module_srcdir \
37161 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37162 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
37163 || exit 1
37164@endif target-liboffloadmic
37165
37166
37167
37168
37169
37170.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
37171maybe-all-target-liboffloadmic:
37172@if gcc-bootstrap
37173all-target-liboffloadmic: stage_current
37174@endif gcc-bootstrap
37175@if target-liboffloadmic
37176TARGET-target-liboffloadmic=all
37177maybe-all-target-liboffloadmic: all-target-liboffloadmic
37178all-target-liboffloadmic: configure-target-liboffloadmic
37179 @: $(MAKE); $(unstage)
37180 @r=`${PWD_COMMAND}`; export r; \
37181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37182 $(NORMAL_TARGET_EXPORTS) \
37183 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37184 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37185 $(TARGET-target-liboffloadmic))
37186@endif target-liboffloadmic
37187
37188
37189
37190
37191
37192.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
37193maybe-check-target-liboffloadmic:
37194@if target-liboffloadmic
37195maybe-check-target-liboffloadmic: check-target-liboffloadmic
37196
37197check-target-liboffloadmic:
37198 @: $(MAKE); $(unstage)
37199 @r=`${PWD_COMMAND}`; export r; \
37200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37201 $(NORMAL_TARGET_EXPORTS) \
37202 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37203 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
37204
37205@endif target-liboffloadmic
37206
37207.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
37208maybe-install-target-liboffloadmic:
37209@if target-liboffloadmic
37210maybe-install-target-liboffloadmic: install-target-liboffloadmic
37211
37212install-target-liboffloadmic: installdirs
37213 @: $(MAKE); $(unstage)
37214 @r=`${PWD_COMMAND}`; export r; \
37215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37216 $(NORMAL_TARGET_EXPORTS) \
37217 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37218 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37219
37220@endif target-liboffloadmic
37221
37222.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
37223maybe-install-strip-target-liboffloadmic:
37224@if target-liboffloadmic
37225maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
37226
37227install-strip-target-liboffloadmic: installdirs
37228 @: $(MAKE); $(unstage)
37229 @r=`${PWD_COMMAND}`; export r; \
37230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37231 $(NORMAL_TARGET_EXPORTS) \
37232 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37233 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37234
37235@endif target-liboffloadmic
37236
37237# Other targets (info, dvi, pdf, etc.)
37238
37239.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
37240maybe-info-target-liboffloadmic:
37241@if target-liboffloadmic
37242maybe-info-target-liboffloadmic: info-target-liboffloadmic
37243
37244info-target-liboffloadmic: \
37245 configure-target-liboffloadmic
37246 @: $(MAKE); $(unstage)
22121df0 37247 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37248 r=`${PWD_COMMAND}`; export r; \
37249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37250 $(NORMAL_TARGET_EXPORTS) \
22121df0 37251 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37252 for flag in $(EXTRA_TARGET_FLAGS); do \
37253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37254 done; \
37255 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37258 "RANLIB=$${RANLIB}" \
37259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37260 info) \
37261 || exit 1
37262
37263@endif target-liboffloadmic
37264
37265.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
37266maybe-dvi-target-liboffloadmic:
37267@if target-liboffloadmic
37268maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
37269
37270dvi-target-liboffloadmic: \
37271 configure-target-liboffloadmic
37272 @: $(MAKE); $(unstage)
22121df0 37273 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37274 r=`${PWD_COMMAND}`; export r; \
37275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37276 $(NORMAL_TARGET_EXPORTS) \
22121df0 37277 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37278 for flag in $(EXTRA_TARGET_FLAGS); do \
37279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37280 done; \
37281 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37284 "RANLIB=$${RANLIB}" \
37285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37286 dvi) \
37287 || exit 1
37288
37289@endif target-liboffloadmic
37290
37291.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
37292maybe-pdf-target-liboffloadmic:
37293@if target-liboffloadmic
37294maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
37295
37296pdf-target-liboffloadmic: \
37297 configure-target-liboffloadmic
37298 @: $(MAKE); $(unstage)
22121df0 37299 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37300 r=`${PWD_COMMAND}`; export r; \
37301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37302 $(NORMAL_TARGET_EXPORTS) \
22121df0 37303 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37304 for flag in $(EXTRA_TARGET_FLAGS); do \
37305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37306 done; \
37307 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37310 "RANLIB=$${RANLIB}" \
37311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37312 pdf) \
37313 || exit 1
37314
37315@endif target-liboffloadmic
37316
37317.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
37318maybe-html-target-liboffloadmic:
37319@if target-liboffloadmic
37320maybe-html-target-liboffloadmic: html-target-liboffloadmic
37321
37322html-target-liboffloadmic: \
37323 configure-target-liboffloadmic
37324 @: $(MAKE); $(unstage)
22121df0 37325 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37326 r=`${PWD_COMMAND}`; export r; \
37327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37328 $(NORMAL_TARGET_EXPORTS) \
22121df0 37329 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37330 for flag in $(EXTRA_TARGET_FLAGS); do \
37331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37332 done; \
37333 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37336 "RANLIB=$${RANLIB}" \
37337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37338 html) \
37339 || exit 1
37340
37341@endif target-liboffloadmic
37342
37343.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
37344maybe-TAGS-target-liboffloadmic:
37345@if target-liboffloadmic
37346maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
37347
37348TAGS-target-liboffloadmic: \
37349 configure-target-liboffloadmic
37350 @: $(MAKE); $(unstage)
22121df0 37351 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37352 r=`${PWD_COMMAND}`; export r; \
37353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37354 $(NORMAL_TARGET_EXPORTS) \
22121df0 37355 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37356 for flag in $(EXTRA_TARGET_FLAGS); do \
37357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37358 done; \
37359 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37362 "RANLIB=$${RANLIB}" \
37363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37364 TAGS) \
37365 || exit 1
37366
37367@endif target-liboffloadmic
37368
37369.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
37370maybe-install-info-target-liboffloadmic:
37371@if target-liboffloadmic
37372maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
37373
37374install-info-target-liboffloadmic: \
37375 configure-target-liboffloadmic \
37376 info-target-liboffloadmic
37377 @: $(MAKE); $(unstage)
22121df0 37378 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37379 r=`${PWD_COMMAND}`; export r; \
37380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37381 $(NORMAL_TARGET_EXPORTS) \
22121df0 37382 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37383 for flag in $(EXTRA_TARGET_FLAGS); do \
37384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37385 done; \
37386 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37389 "RANLIB=$${RANLIB}" \
37390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37391 install-info) \
37392 || exit 1
37393
37394@endif target-liboffloadmic
37395
37396.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
37397maybe-install-pdf-target-liboffloadmic:
37398@if target-liboffloadmic
37399maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
37400
37401install-pdf-target-liboffloadmic: \
37402 configure-target-liboffloadmic \
37403 pdf-target-liboffloadmic
37404 @: $(MAKE); $(unstage)
22121df0 37405 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37406 r=`${PWD_COMMAND}`; export r; \
37407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37408 $(NORMAL_TARGET_EXPORTS) \
22121df0 37409 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37410 for flag in $(EXTRA_TARGET_FLAGS); do \
37411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37412 done; \
37413 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37416 "RANLIB=$${RANLIB}" \
37417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37418 install-pdf) \
37419 || exit 1
37420
37421@endif target-liboffloadmic
37422
37423.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
37424maybe-install-html-target-liboffloadmic:
37425@if target-liboffloadmic
37426maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
37427
37428install-html-target-liboffloadmic: \
37429 configure-target-liboffloadmic \
37430 html-target-liboffloadmic
37431 @: $(MAKE); $(unstage)
22121df0 37432 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37433 r=`${PWD_COMMAND}`; export r; \
37434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37435 $(NORMAL_TARGET_EXPORTS) \
22121df0 37436 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37437 for flag in $(EXTRA_TARGET_FLAGS); do \
37438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37439 done; \
37440 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37443 "RANLIB=$${RANLIB}" \
37444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37445 install-html) \
37446 || exit 1
37447
37448@endif target-liboffloadmic
37449
37450.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
37451maybe-installcheck-target-liboffloadmic:
37452@if target-liboffloadmic
37453maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
37454
37455installcheck-target-liboffloadmic: \
37456 configure-target-liboffloadmic
37457 @: $(MAKE); $(unstage)
22121df0 37458 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37459 r=`${PWD_COMMAND}`; export r; \
37460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37461 $(NORMAL_TARGET_EXPORTS) \
22121df0 37462 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37463 for flag in $(EXTRA_TARGET_FLAGS); do \
37464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37465 done; \
37466 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37469 "RANLIB=$${RANLIB}" \
37470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37471 installcheck) \
37472 || exit 1
37473
37474@endif target-liboffloadmic
37475
37476.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
37477maybe-mostlyclean-target-liboffloadmic:
37478@if target-liboffloadmic
37479maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
37480
37481mostlyclean-target-liboffloadmic:
37482 @: $(MAKE); $(unstage)
22121df0 37483 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37484 r=`${PWD_COMMAND}`; export r; \
37485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37486 $(NORMAL_TARGET_EXPORTS) \
22121df0 37487 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37488 for flag in $(EXTRA_TARGET_FLAGS); do \
37489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37490 done; \
37491 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37494 "RANLIB=$${RANLIB}" \
37495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37496 mostlyclean) \
37497 || exit 1
37498
37499@endif target-liboffloadmic
37500
37501.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
37502maybe-clean-target-liboffloadmic:
37503@if target-liboffloadmic
37504maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
37505
37506clean-target-liboffloadmic:
37507 @: $(MAKE); $(unstage)
22121df0 37508 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37509 r=`${PWD_COMMAND}`; export r; \
37510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37511 $(NORMAL_TARGET_EXPORTS) \
22121df0 37512 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37513 for flag in $(EXTRA_TARGET_FLAGS); do \
37514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37515 done; \
37516 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37519 "RANLIB=$${RANLIB}" \
37520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37521 clean) \
37522 || exit 1
37523
37524@endif target-liboffloadmic
37525
37526.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
37527maybe-distclean-target-liboffloadmic:
37528@if target-liboffloadmic
37529maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
37530
37531distclean-target-liboffloadmic:
37532 @: $(MAKE); $(unstage)
22121df0 37533 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37534 r=`${PWD_COMMAND}`; export r; \
37535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37536 $(NORMAL_TARGET_EXPORTS) \
22121df0 37537 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37538 for flag in $(EXTRA_TARGET_FLAGS); do \
37539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37540 done; \
37541 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37544 "RANLIB=$${RANLIB}" \
37545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37546 distclean) \
37547 || exit 1
37548
37549@endif target-liboffloadmic
37550
37551.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
37552maybe-maintainer-clean-target-liboffloadmic:
37553@if target-liboffloadmic
37554maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
37555
37556maintainer-clean-target-liboffloadmic:
37557 @: $(MAKE); $(unstage)
22121df0 37558 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37559 r=`${PWD_COMMAND}`; export r; \
37560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37561 $(NORMAL_TARGET_EXPORTS) \
22121df0 37562 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37563 for flag in $(EXTRA_TARGET_FLAGS); do \
37564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37565 done; \
37566 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37569 "RANLIB=$${RANLIB}" \
37570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37571 maintainer-clean) \
37572 || exit 1
37573
37574@endif target-liboffloadmic
37575
37576
37577
37578
37579
a90ef4bf
JM
37580.PHONY: configure-target-libssp maybe-configure-target-libssp
37581maybe-configure-target-libssp:
4f0ef2d8 37582@if gcc-bootstrap
a90ef4bf 37583configure-target-libssp: stage_current
4f0ef2d8 37584@endif gcc-bootstrap
a90ef4bf
JM
37585@if target-libssp
37586maybe-configure-target-libssp: configure-target-libssp
37587configure-target-libssp:
0aed8855
PB
37588 @: $(MAKE); $(unstage)
37589 @r=`${PWD_COMMAND}`; export r; \
37590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 37591 echo "Checking multilib configuration for libssp..."; \
22121df0
L
37592 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
37593 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
37594 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
37595 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
37596 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 37597 else \
a90ef4bf
JM
37598 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
37599 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
37600 fi; \
37601 else \
a90ef4bf 37602 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 37603 fi; \
a90ef4bf 37604 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 37605 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 37606 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37607 echo Configuring in $(TARGET_SUBDIR)/libssp; \
37608 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 37609 case $(srcdir) in \
b00612cc 37610 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37611 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 37612 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 37613 esac; \
1b6c0831 37614 module_srcdir=libssp; \
4b1cb4fe 37615 rm -f no-such-file || : ; \
1b6c0831
L
37616 CONFIG_SITE=no-such-file $(SHELL) \
37617 $$s/$$module_srcdir/configure \
37618 --srcdir=$${topdir}/$$module_srcdir \
4b900473 37619 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37620 --target=${target_alias} \
4b1cb4fe 37621 || exit 1
a90ef4bf 37622@endif target-libssp
4b1cb4fe 37623
a7254363
PB
37624
37625
d545f33b
PB
37626
37627
a90ef4bf
JM
37628.PHONY: all-target-libssp maybe-all-target-libssp
37629maybe-all-target-libssp:
4f0ef2d8 37630@if gcc-bootstrap
a90ef4bf 37631all-target-libssp: stage_current
4f0ef2d8 37632@endif gcc-bootstrap
a90ef4bf
JM
37633@if target-libssp
37634TARGET-target-libssp=all
37635maybe-all-target-libssp: all-target-libssp
37636all-target-libssp: configure-target-libssp
0aed8855 37637 @: $(MAKE); $(unstage)
4b1cb4fe
DD
37638 @r=`${PWD_COMMAND}`; export r; \
37639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37640 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37641 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 37642 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37643 $(TARGET-target-libssp))
37644@endif target-libssp
4b1cb4fe 37645
a7254363
PB
37646
37647
d545f33b
PB
37648
37649
a90ef4bf
JM
37650.PHONY: check-target-libssp maybe-check-target-libssp
37651maybe-check-target-libssp:
37652@if target-libssp
37653maybe-check-target-libssp: check-target-libssp
4b1cb4fe 37654
a90ef4bf 37655check-target-libssp:
0aed8855 37656 @: $(MAKE); $(unstage)
b40e3958
L
37657 @r=`${PWD_COMMAND}`; export r; \
37658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37659 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37660 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37661 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 37662
a90ef4bf 37663@endif target-libssp
3866be5d 37664
a90ef4bf
JM
37665.PHONY: install-target-libssp maybe-install-target-libssp
37666maybe-install-target-libssp:
37667@if target-libssp
37668maybe-install-target-libssp: install-target-libssp
e2b9e2dc 37669
a90ef4bf 37670install-target-libssp: installdirs
0aed8855 37671 @: $(MAKE); $(unstage)
b40e3958
L
37672 @r=`${PWD_COMMAND}`; export r; \
37673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37674 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37675 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37676 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37677
a90ef4bf 37678@endif target-libssp
3866be5d 37679
a90ef4bf
JM
37680.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
37681maybe-install-strip-target-libssp:
37682@if target-libssp
37683maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 37684
a90ef4bf 37685install-strip-target-libssp: installdirs
9b980aa1
RW
37686 @: $(MAKE); $(unstage)
37687 @r=`${PWD_COMMAND}`; export r; \
37688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37689 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37690 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
37691 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37692
a90ef4bf 37693@endif target-libssp
9b980aa1 37694
56a8fe78 37695# Other targets (info, dvi, pdf, etc.)
3866be5d 37696
a90ef4bf
JM
37697.PHONY: maybe-info-target-libssp info-target-libssp
37698maybe-info-target-libssp:
37699@if target-libssp
37700maybe-info-target-libssp: info-target-libssp
3866be5d 37701
a90ef4bf
JM
37702info-target-libssp: \
37703 configure-target-libssp
0aed8855 37704 @: $(MAKE); $(unstage)
22121df0 37705 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
37706 r=`${PWD_COMMAND}`; export r; \
37707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37708 $(NORMAL_TARGET_EXPORTS) \
22121df0 37709 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37710 for flag in $(EXTRA_TARGET_FLAGS); do \
37711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37712 done; \
a90ef4bf 37713 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37716 "RANLIB=$${RANLIB}" \
0c24b341 37717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37718 info) \
4fa63067 37719 || exit 1
16ae0395 37720
a90ef4bf 37721@endif target-libssp
3866be5d 37722
a90ef4bf
JM
37723.PHONY: maybe-dvi-target-libssp dvi-target-libssp
37724maybe-dvi-target-libssp:
37725@if target-libssp
37726maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 37727
a90ef4bf
JM
37728dvi-target-libssp: \
37729 configure-target-libssp
0aed8855 37730 @: $(MAKE); $(unstage)
22121df0 37731 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37732 r=`${PWD_COMMAND}`; export r; \
37733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37734 $(NORMAL_TARGET_EXPORTS) \
22121df0 37735 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37736 for flag in $(EXTRA_TARGET_FLAGS); do \
37737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37738 done; \
a90ef4bf 37739 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37742 "RANLIB=$${RANLIB}" \
0c24b341 37743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37744 dvi) \
e2b9e2dc
NN
37745 || exit 1
37746
a90ef4bf 37747@endif target-libssp
3866be5d 37748
a90ef4bf
JM
37749.PHONY: maybe-pdf-target-libssp pdf-target-libssp
37750maybe-pdf-target-libssp:
37751@if target-libssp
37752maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 37753
a90ef4bf
JM
37754pdf-target-libssp: \
37755 configure-target-libssp
56a8fe78 37756 @: $(MAKE); $(unstage)
22121df0 37757 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
37758 r=`${PWD_COMMAND}`; export r; \
37759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37760 $(NORMAL_TARGET_EXPORTS) \
22121df0 37761 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
37762 for flag in $(EXTRA_TARGET_FLAGS); do \
37763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37764 done; \
a90ef4bf 37765 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
37766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37768 "RANLIB=$${RANLIB}" \
0c24b341 37769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37770 pdf) \
37771 || exit 1
37772
a90ef4bf 37773@endif target-libssp
a3ca38d2 37774
a90ef4bf
JM
37775.PHONY: maybe-html-target-libssp html-target-libssp
37776maybe-html-target-libssp:
37777@if target-libssp
37778maybe-html-target-libssp: html-target-libssp
108a6f8e 37779
a90ef4bf
JM
37780html-target-libssp: \
37781 configure-target-libssp
108a6f8e 37782 @: $(MAKE); $(unstage)
22121df0 37783 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
37784 r=`${PWD_COMMAND}`; export r; \
37785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37786 $(NORMAL_TARGET_EXPORTS) \
22121df0 37787 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
37788 for flag in $(EXTRA_TARGET_FLAGS); do \
37789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37790 done; \
a90ef4bf 37791 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
37792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37794 "RANLIB=$${RANLIB}" \
0c24b341 37795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37796 html) \
108a6f8e
CD
37797 || exit 1
37798
a90ef4bf 37799@endif target-libssp
108a6f8e 37800
a90ef4bf
JM
37801.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
37802maybe-TAGS-target-libssp:
37803@if target-libssp
37804maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 37805
a90ef4bf
JM
37806TAGS-target-libssp: \
37807 configure-target-libssp
0aed8855 37808 @: $(MAKE); $(unstage)
22121df0 37809 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37810 r=`${PWD_COMMAND}`; export r; \
37811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37812 $(NORMAL_TARGET_EXPORTS) \
22121df0 37813 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
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)/libssp && \
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}" \
a90ef4bf 37822 TAGS) \
e2b9e2dc
NN
37823 || exit 1
37824
a90ef4bf 37825@endif target-libssp
3866be5d 37826
a90ef4bf
JM
37827.PHONY: maybe-install-info-target-libssp install-info-target-libssp
37828maybe-install-info-target-libssp:
37829@if target-libssp
37830maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 37831
a90ef4bf
JM
37832install-info-target-libssp: \
37833 configure-target-libssp \
37834 info-target-libssp
0aed8855 37835 @: $(MAKE); $(unstage)
22121df0 37836 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37837 r=`${PWD_COMMAND}`; export r; \
b40e3958 37838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37839 $(NORMAL_TARGET_EXPORTS) \
22121df0 37840 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37841 for flag in $(EXTRA_TARGET_FLAGS); do \
37842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37843 done; \
a90ef4bf 37844 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37847 "RANLIB=$${RANLIB}" \
0c24b341 37848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37849 install-info) \
4fa63067 37850 || exit 1
3866be5d 37851
a90ef4bf 37852@endif target-libssp
3866be5d 37853
a90ef4bf
JM
37854.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
37855maybe-install-pdf-target-libssp:
37856@if target-libssp
37857maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 37858
a90ef4bf
JM
37859install-pdf-target-libssp: \
37860 configure-target-libssp \
37861 pdf-target-libssp
0aed8855 37862 @: $(MAKE); $(unstage)
22121df0 37863 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37864 r=`${PWD_COMMAND}`; export r; \
b40e3958 37865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37866 $(NORMAL_TARGET_EXPORTS) \
22121df0 37867 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37868 for flag in $(EXTRA_TARGET_FLAGS); do \
37869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37870 done; \
a90ef4bf 37871 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37874 "RANLIB=$${RANLIB}" \
0c24b341 37875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37876 install-pdf) \
4fa63067 37877 || exit 1
3866be5d 37878
a90ef4bf 37879@endif target-libssp
3866be5d 37880
a90ef4bf
JM
37881.PHONY: maybe-install-html-target-libssp install-html-target-libssp
37882maybe-install-html-target-libssp:
37883@if target-libssp
37884maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 37885
a90ef4bf
JM
37886install-html-target-libssp: \
37887 configure-target-libssp \
37888 html-target-libssp
0aed8855 37889 @: $(MAKE); $(unstage)
22121df0 37890 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37891 r=`${PWD_COMMAND}`; export r; \
37892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37893 $(NORMAL_TARGET_EXPORTS) \
22121df0 37894 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37895 for flag in $(EXTRA_TARGET_FLAGS); do \
37896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37897 done; \
a90ef4bf 37898 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37901 "RANLIB=$${RANLIB}" \
0c24b341 37902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37903 install-html) \
e2b9e2dc
NN
37904 || exit 1
37905
a90ef4bf 37906@endif target-libssp
3866be5d 37907
a90ef4bf
JM
37908.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
37909maybe-installcheck-target-libssp:
37910@if target-libssp
37911maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 37912
a90ef4bf
JM
37913installcheck-target-libssp: \
37914 configure-target-libssp
0aed8855 37915 @: $(MAKE); $(unstage)
22121df0 37916 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37917 r=`${PWD_COMMAND}`; export r; \
b40e3958 37918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37919 $(NORMAL_TARGET_EXPORTS) \
22121df0 37920 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37921 for flag in $(EXTRA_TARGET_FLAGS); do \
37922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37923 done; \
a90ef4bf 37924 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37927 "RANLIB=$${RANLIB}" \
0c24b341 37928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37929 installcheck) \
6aa8ef82 37930 || exit 1
6aa8ef82 37931
a90ef4bf 37932@endif target-libssp
6aa8ef82 37933
a90ef4bf
JM
37934.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
37935maybe-mostlyclean-target-libssp:
37936@if target-libssp
37937maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 37938
a90ef4bf
JM
37939mostlyclean-target-libssp:
37940 @: $(MAKE); $(unstage)
22121df0 37941 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37942 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37944 $(NORMAL_TARGET_EXPORTS) \
22121df0 37945 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37946 for flag in $(EXTRA_TARGET_FLAGS); do \
37947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37948 done; \
37949 (cd $(TARGET_SUBDIR)/libssp && \
37950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37952 "RANLIB=$${RANLIB}" \
37953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37954 mostlyclean) \
37955 || exit 1
6aa8ef82 37956
a90ef4bf 37957@endif target-libssp
6aa8ef82 37958
a90ef4bf
JM
37959.PHONY: maybe-clean-target-libssp clean-target-libssp
37960maybe-clean-target-libssp:
37961@if target-libssp
37962maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 37963
a90ef4bf
JM
37964clean-target-libssp:
37965 @: $(MAKE); $(unstage)
22121df0 37966 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37967 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37969 $(NORMAL_TARGET_EXPORTS) \
22121df0 37970 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37971 for flag in $(EXTRA_TARGET_FLAGS); do \
37972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37973 done; \
37974 (cd $(TARGET_SUBDIR)/libssp && \
37975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37977 "RANLIB=$${RANLIB}" \
37978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37979 clean) \
37980 || exit 1
6aa8ef82 37981
a90ef4bf 37982@endif target-libssp
6aa8ef82 37983
a90ef4bf
JM
37984.PHONY: maybe-distclean-target-libssp distclean-target-libssp
37985maybe-distclean-target-libssp:
37986@if target-libssp
37987maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 37988
a90ef4bf
JM
37989distclean-target-libssp:
37990 @: $(MAKE); $(unstage)
22121df0 37991 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37992 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37994 $(NORMAL_TARGET_EXPORTS) \
22121df0 37995 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37996 for flag in $(EXTRA_TARGET_FLAGS); do \
37997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37998 done; \
37999 (cd $(TARGET_SUBDIR)/libssp && \
38000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38002 "RANLIB=$${RANLIB}" \
38003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38004 distclean) \
38005 || exit 1
6aa8ef82 38006
a90ef4bf 38007@endif target-libssp
6aa8ef82 38008
a90ef4bf
JM
38009.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
38010maybe-maintainer-clean-target-libssp:
38011@if target-libssp
38012maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 38013
a90ef4bf
JM
38014maintainer-clean-target-libssp:
38015 @: $(MAKE); $(unstage)
22121df0 38016 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 38017 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
38018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38019 $(NORMAL_TARGET_EXPORTS) \
22121df0 38020 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
38021 for flag in $(EXTRA_TARGET_FLAGS); do \
38022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38023 done; \
38024 (cd $(TARGET_SUBDIR)/libssp && \
38025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38027 "RANLIB=$${RANLIB}" \
38028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38029 maintainer-clean) \
38030 || exit 1
6aa8ef82 38031
a90ef4bf 38032@endif target-libssp
6aa8ef82
DJ
38033
38034
a90ef4bf
JM
38035
38036
38037
38038.PHONY: configure-target-newlib maybe-configure-target-newlib
38039maybe-configure-target-newlib:
38040@if gcc-bootstrap
38041configure-target-newlib: stage_current
38042@endif gcc-bootstrap
38043@if target-newlib
38044maybe-configure-target-newlib: configure-target-newlib
38045configure-target-newlib:
38046 @: $(MAKE); $(unstage)
6aa8ef82
DJ
38047 @r=`${PWD_COMMAND}`; export r; \
38048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38049 echo "Checking multilib configuration for newlib..."; \
22121df0
L
38050 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
38051 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38052 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
38053 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
38054 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
38055 else \
38056 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
38057 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
38058 fi; \
6aa8ef82 38059 else \
a90ef4bf 38060 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 38061 fi; \
a90ef4bf 38062 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 38063 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
38064 $(NORMAL_TARGET_EXPORTS) \
38065 echo Configuring in $(TARGET_SUBDIR)/newlib; \
38066 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
38067 case $(srcdir) in \
38068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38069 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
38070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38071 esac; \
1b6c0831 38072 module_srcdir=newlib; \
a90ef4bf 38073 rm -f no-such-file || : ; \
1b6c0831
L
38074 CONFIG_SITE=no-such-file $(SHELL) \
38075 $$s/$$module_srcdir/configure \
38076 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38077 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38078 --target=${target_alias} \
a90ef4bf
JM
38079 || exit 1
38080@endif target-newlib
6aa8ef82
DJ
38081
38082
38083
38084
38085
a90ef4bf
JM
38086.PHONY: all-target-newlib maybe-all-target-newlib
38087maybe-all-target-newlib:
38088@if gcc-bootstrap
38089all-target-newlib: stage_current
38090@endif gcc-bootstrap
38091@if target-newlib
38092TARGET-target-newlib=all
38093maybe-all-target-newlib: all-target-newlib
38094all-target-newlib: configure-target-newlib
38095 @: $(MAKE); $(unstage)
38096 @r=`${PWD_COMMAND}`; export r; \
38097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38098 $(NORMAL_TARGET_EXPORTS) \
38099 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 38100 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38101 $(TARGET-target-newlib))
38102@endif target-newlib
6aa8ef82 38103
6aa8ef82 38104
6aa8ef82 38105
6aa8ef82 38106
6aa8ef82 38107
a90ef4bf
JM
38108.PHONY: check-target-newlib maybe-check-target-newlib
38109maybe-check-target-newlib:
38110@if target-newlib
38111maybe-check-target-newlib: check-target-newlib
38112
38113check-target-newlib:
6aa8ef82
DJ
38114 @: $(MAKE); $(unstage)
38115 @r=`${PWD_COMMAND}`; export r; \
38116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38117 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38118 (cd $(TARGET_SUBDIR)/newlib && \
38119 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38120
38121@endif target-newlib
38122
38123.PHONY: install-target-newlib maybe-install-target-newlib
38124maybe-install-target-newlib:
38125@if target-newlib
38126maybe-install-target-newlib: install-target-newlib
38127
38128install-target-newlib: installdirs
38129 @: $(MAKE); $(unstage)
38130 @r=`${PWD_COMMAND}`; export r; \
38131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38132 $(NORMAL_TARGET_EXPORTS) \
38133 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38134 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38135
a90ef4bf 38136@endif target-newlib
6aa8ef82 38137
a90ef4bf
JM
38138.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
38139maybe-install-strip-target-newlib:
38140@if target-newlib
38141maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 38142
a90ef4bf 38143install-strip-target-newlib: installdirs
9b980aa1
RW
38144 @: $(MAKE); $(unstage)
38145 @r=`${PWD_COMMAND}`; export r; \
38146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38147 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38148 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
38149 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38150
a90ef4bf 38151@endif target-newlib
9b980aa1 38152
6aa8ef82
DJ
38153# Other targets (info, dvi, pdf, etc.)
38154
a90ef4bf
JM
38155.PHONY: maybe-info-target-newlib info-target-newlib
38156maybe-info-target-newlib:
38157@if target-newlib
38158maybe-info-target-newlib: info-target-newlib
6aa8ef82 38159
a90ef4bf
JM
38160info-target-newlib: \
38161 configure-target-newlib
6aa8ef82 38162 @: $(MAKE); $(unstage)
22121df0 38163 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38164 r=`${PWD_COMMAND}`; export r; \
38165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38166 $(NORMAL_TARGET_EXPORTS) \
22121df0 38167 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38168 for flag in $(EXTRA_TARGET_FLAGS); do \
38169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38170 done; \
a90ef4bf 38171 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38174 "RANLIB=$${RANLIB}" \
0c24b341 38175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38176 info) \
38177 || exit 1
38178
a90ef4bf 38179@endif target-newlib
6aa8ef82 38180
a90ef4bf
JM
38181.PHONY: maybe-dvi-target-newlib dvi-target-newlib
38182maybe-dvi-target-newlib:
38183@if target-newlib
38184maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 38185
a90ef4bf
JM
38186dvi-target-newlib: \
38187 configure-target-newlib
6aa8ef82 38188 @: $(MAKE); $(unstage)
22121df0 38189 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38190 r=`${PWD_COMMAND}`; export r; \
38191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38192 $(NORMAL_TARGET_EXPORTS) \
22121df0 38193 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38194 for flag in $(EXTRA_TARGET_FLAGS); do \
38195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38196 done; \
a90ef4bf 38197 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38200 "RANLIB=$${RANLIB}" \
0c24b341 38201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38202 dvi) \
38203 || exit 1
38204
a90ef4bf 38205@endif target-newlib
6aa8ef82 38206
a90ef4bf
JM
38207.PHONY: maybe-pdf-target-newlib pdf-target-newlib
38208maybe-pdf-target-newlib:
38209@if target-newlib
38210maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 38211
a90ef4bf
JM
38212pdf-target-newlib: \
38213 configure-target-newlib
6aa8ef82 38214 @: $(MAKE); $(unstage)
22121df0 38215 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38216 r=`${PWD_COMMAND}`; export r; \
38217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38218 $(NORMAL_TARGET_EXPORTS) \
22121df0 38219 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38220 for flag in $(EXTRA_TARGET_FLAGS); do \
38221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38222 done; \
a90ef4bf 38223 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38226 "RANLIB=$${RANLIB}" \
0c24b341 38227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38228 pdf) \
38229 || exit 1
38230
a90ef4bf 38231@endif target-newlib
6aa8ef82 38232
a90ef4bf
JM
38233.PHONY: maybe-html-target-newlib html-target-newlib
38234maybe-html-target-newlib:
38235@if target-newlib
38236maybe-html-target-newlib: html-target-newlib
6aa8ef82 38237
a90ef4bf
JM
38238html-target-newlib: \
38239 configure-target-newlib
6aa8ef82 38240 @: $(MAKE); $(unstage)
22121df0 38241 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38242 r=`${PWD_COMMAND}`; export r; \
38243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38244 $(NORMAL_TARGET_EXPORTS) \
22121df0 38245 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38246 for flag in $(EXTRA_TARGET_FLAGS); do \
38247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38248 done; \
a90ef4bf 38249 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38252 "RANLIB=$${RANLIB}" \
0c24b341 38253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38254 html) \
38255 || exit 1
38256
a90ef4bf 38257@endif target-newlib
6aa8ef82 38258
a90ef4bf
JM
38259.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
38260maybe-TAGS-target-newlib:
38261@if target-newlib
38262maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 38263
a90ef4bf
JM
38264TAGS-target-newlib: \
38265 configure-target-newlib
6aa8ef82 38266 @: $(MAKE); $(unstage)
22121df0 38267 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38268 r=`${PWD_COMMAND}`; export r; \
38269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38270 $(NORMAL_TARGET_EXPORTS) \
22121df0 38271 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38272 for flag in $(EXTRA_TARGET_FLAGS); do \
38273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38274 done; \
a90ef4bf 38275 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38278 "RANLIB=$${RANLIB}" \
0c24b341 38279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38280 TAGS) \
38281 || exit 1
38282
a90ef4bf 38283@endif target-newlib
6aa8ef82 38284
a90ef4bf
JM
38285.PHONY: maybe-install-info-target-newlib install-info-target-newlib
38286maybe-install-info-target-newlib:
38287@if target-newlib
38288maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 38289
a90ef4bf
JM
38290install-info-target-newlib: \
38291 configure-target-newlib \
38292 info-target-newlib
6aa8ef82 38293 @: $(MAKE); $(unstage)
22121df0 38294 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38295 r=`${PWD_COMMAND}`; export r; \
38296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38297 $(NORMAL_TARGET_EXPORTS) \
22121df0 38298 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38299 for flag in $(EXTRA_TARGET_FLAGS); do \
38300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38301 done; \
a90ef4bf 38302 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38305 "RANLIB=$${RANLIB}" \
0c24b341 38306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38307 install-info) \
38308 || exit 1
38309
a90ef4bf 38310@endif target-newlib
6aa8ef82 38311
a90ef4bf
JM
38312.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
38313maybe-install-pdf-target-newlib:
38314@if target-newlib
38315maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 38316
a90ef4bf
JM
38317install-pdf-target-newlib: \
38318 configure-target-newlib \
38319 pdf-target-newlib
a3ca38d2 38320 @: $(MAKE); $(unstage)
22121df0 38321 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
38322 r=`${PWD_COMMAND}`; export r; \
38323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38324 $(NORMAL_TARGET_EXPORTS) \
22121df0 38325 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
38326 for flag in $(EXTRA_TARGET_FLAGS); do \
38327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38328 done; \
a90ef4bf 38329 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
38330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38332 "RANLIB=$${RANLIB}" \
0c24b341 38333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38334 install-pdf) \
38335 || exit 1
38336
a90ef4bf 38337@endif target-newlib
a3ca38d2 38338
a90ef4bf
JM
38339.PHONY: maybe-install-html-target-newlib install-html-target-newlib
38340maybe-install-html-target-newlib:
38341@if target-newlib
38342maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 38343
a90ef4bf
JM
38344install-html-target-newlib: \
38345 configure-target-newlib \
38346 html-target-newlib
6aa8ef82 38347 @: $(MAKE); $(unstage)
22121df0 38348 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38349 r=`${PWD_COMMAND}`; export r; \
38350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38351 $(NORMAL_TARGET_EXPORTS) \
22121df0 38352 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38353 for flag in $(EXTRA_TARGET_FLAGS); do \
38354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38355 done; \
a90ef4bf 38356 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38359 "RANLIB=$${RANLIB}" \
0c24b341 38360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38361 install-html) \
38362 || exit 1
38363
a90ef4bf 38364@endif target-newlib
6aa8ef82 38365
a90ef4bf
JM
38366.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
38367maybe-installcheck-target-newlib:
38368@if target-newlib
38369maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 38370
a90ef4bf
JM
38371installcheck-target-newlib: \
38372 configure-target-newlib
6aa8ef82 38373 @: $(MAKE); $(unstage)
22121df0 38374 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38375 r=`${PWD_COMMAND}`; export r; \
38376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38377 $(NORMAL_TARGET_EXPORTS) \
22121df0 38378 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38379 for flag in $(EXTRA_TARGET_FLAGS); do \
38380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38381 done; \
a90ef4bf 38382 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38385 "RANLIB=$${RANLIB}" \
0c24b341 38386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38387 installcheck) \
38388 || exit 1
38389
a90ef4bf 38390@endif target-newlib
6aa8ef82 38391
a90ef4bf
JM
38392.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
38393maybe-mostlyclean-target-newlib:
38394@if target-newlib
38395maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 38396
a90ef4bf 38397mostlyclean-target-newlib:
6aa8ef82 38398 @: $(MAKE); $(unstage)
22121df0 38399 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38400 r=`${PWD_COMMAND}`; export r; \
38401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38402 $(NORMAL_TARGET_EXPORTS) \
22121df0 38403 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38404 for flag in $(EXTRA_TARGET_FLAGS); do \
38405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38406 done; \
a90ef4bf 38407 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38410 "RANLIB=$${RANLIB}" \
0c24b341 38411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38412 mostlyclean) \
38413 || exit 1
38414
a90ef4bf 38415@endif target-newlib
6aa8ef82 38416
a90ef4bf
JM
38417.PHONY: maybe-clean-target-newlib clean-target-newlib
38418maybe-clean-target-newlib:
38419@if target-newlib
38420maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 38421
a90ef4bf 38422clean-target-newlib:
6aa8ef82 38423 @: $(MAKE); $(unstage)
22121df0 38424 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38425 r=`${PWD_COMMAND}`; export r; \
38426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38427 $(NORMAL_TARGET_EXPORTS) \
22121df0 38428 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
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)/newlib && \
6aa8ef82
DJ
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}" \
6aa8ef82
DJ
38437 clean) \
38438 || exit 1
38439
a90ef4bf 38440@endif target-newlib
6aa8ef82 38441
a90ef4bf
JM
38442.PHONY: maybe-distclean-target-newlib distclean-target-newlib
38443maybe-distclean-target-newlib:
38444@if target-newlib
38445maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 38446
a90ef4bf 38447distclean-target-newlib:
6aa8ef82 38448 @: $(MAKE); $(unstage)
22121df0 38449 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38450 r=`${PWD_COMMAND}`; export r; \
38451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38452 $(NORMAL_TARGET_EXPORTS) \
22121df0 38453 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38454 for flag in $(EXTRA_TARGET_FLAGS); do \
38455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38456 done; \
a90ef4bf 38457 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38460 "RANLIB=$${RANLIB}" \
0c24b341 38461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38462 distclean) \
38463 || exit 1
38464
a90ef4bf 38465@endif target-newlib
6aa8ef82 38466
a90ef4bf
JM
38467.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
38468maybe-maintainer-clean-target-newlib:
38469@if target-newlib
38470maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 38471
a90ef4bf 38472maintainer-clean-target-newlib:
6aa8ef82 38473 @: $(MAKE); $(unstage)
22121df0 38474 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38475 r=`${PWD_COMMAND}`; export r; \
38476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38477 $(NORMAL_TARGET_EXPORTS) \
22121df0 38478 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38479 for flag in $(EXTRA_TARGET_FLAGS); do \
38480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38481 done; \
a90ef4bf 38482 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38485 "RANLIB=$${RANLIB}" \
0c24b341 38486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38487 maintainer-clean) \
38488 || exit 1
38489
a90ef4bf 38490@endif target-newlib
6aa8ef82
DJ
38491
38492
38493
38494
38495
a90ef4bf
JM
38496.PHONY: configure-target-libgcc maybe-configure-target-libgcc
38497maybe-configure-target-libgcc:
e552509b 38498@if gcc-bootstrap
a90ef4bf 38499configure-target-libgcc: stage_current
e552509b 38500@endif gcc-bootstrap
a90ef4bf
JM
38501@if target-libgcc
38502maybe-configure-target-libgcc: configure-target-libgcc
38503configure-target-libgcc:
e552509b
ILT
38504 @r=`${PWD_COMMAND}`; export r; \
38505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38506 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
38507 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
38508 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38509 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38510 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38511 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 38512 else \
a90ef4bf
JM
38513 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38514 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
38515 fi; \
38516 else \
a90ef4bf 38517 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 38518 fi; \
a90ef4bf 38519 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 38520 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 38521 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38522 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
38523 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
38524 case $(srcdir) in \
38525 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38526 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
38527 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38528 esac; \
1b6c0831 38529 module_srcdir=libgcc; \
e552509b 38530 rm -f no-such-file || : ; \
1b6c0831
L
38531 CONFIG_SITE=no-such-file $(SHELL) \
38532 $$s/$$module_srcdir/configure \
38533 --srcdir=$${topdir}/$$module_srcdir \
e552509b 38534 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38535 --target=${target_alias} \
e552509b 38536 || exit 1
a90ef4bf 38537@endif target-libgcc
e552509b
ILT
38538
38539
e552509b 38540
a90ef4bf
JM
38541.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
38542maybe-configure-stage1-target-libgcc:
38543@if target-libgcc-bootstrap
38544maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
38545configure-stage1-target-libgcc:
38546 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38547 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38548 @r=`${PWD_COMMAND}`; export r; \
38549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38550 TFLAGS="$(STAGE1_TFLAGS)"; \
38551 echo "Checking multilib configuration for libgcc..."; \
22121df0 38552 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38553 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38554 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38555 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38556 else \
38557 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38558 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38559 fi; \
38560 else \
38561 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38562 fi; \
38563 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38564 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38565 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38566 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38567 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38568 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
38569 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38570 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38571 case $(srcdir) in \
38572 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38573 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38574 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38575 esac; \
1b6c0831
L
38576 module_srcdir=libgcc; \
38577 $(SHELL) $$s/$$module_srcdir/configure \
38578 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38579 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38580 --target=${target_alias} \
38581 \
a90ef4bf
JM
38582 $(STAGE1_CONFIGURE_FLAGS)
38583@endif target-libgcc-bootstrap
e552509b 38584
a90ef4bf
JM
38585.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
38586maybe-configure-stage2-target-libgcc:
38587@if target-libgcc-bootstrap
38588maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
38589configure-stage2-target-libgcc:
38590 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38591 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38592 @r=`${PWD_COMMAND}`; export r; \
38593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38594 TFLAGS="$(STAGE2_TFLAGS)"; \
38595 echo "Checking multilib configuration for libgcc..."; \
22121df0 38596 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38597 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38598 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38599 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38600 else \
38601 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38602 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38603 fi; \
38604 else \
38605 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38606 fi; \
38607 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38608 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38609 \
38610 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38611 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38612 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38613 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
38614 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38615 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38616 case $(srcdir) in \
38617 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38618 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38619 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38620 esac; \
1b6c0831
L
38621 module_srcdir=libgcc; \
38622 $(SHELL) $$s/$$module_srcdir/configure \
38623 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38624 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38625 --target=${target_alias} \
22121df0 38626 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38627 $(STAGE2_CONFIGURE_FLAGS)
38628@endif target-libgcc-bootstrap
9b980aa1 38629
a90ef4bf
JM
38630.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
38631maybe-configure-stage3-target-libgcc:
38632@if target-libgcc-bootstrap
38633maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
38634configure-stage3-target-libgcc:
38635 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38636 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
38637 @r=`${PWD_COMMAND}`; export r; \
38638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38639 TFLAGS="$(STAGE3_TFLAGS)"; \
38640 echo "Checking multilib configuration for libgcc..."; \
22121df0 38641 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38642 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38643 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38644 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38645 else \
38646 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38647 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38648 fi; \
38649 else \
38650 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38651 fi; \
38652 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 38653 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38654 \
38655 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38656 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38657 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38658 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
38659 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38660 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38661 case $(srcdir) in \
38662 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38663 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38664 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38665 esac; \
1b6c0831
L
38666 module_srcdir=libgcc; \
38667 $(SHELL) $$s/$$module_srcdir/configure \
38668 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38669 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38670 --target=${target_alias} \
22121df0 38671 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38672 $(STAGE3_CONFIGURE_FLAGS)
38673@endif target-libgcc-bootstrap
e552509b 38674
a90ef4bf
JM
38675.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
38676maybe-configure-stage4-target-libgcc:
38677@if target-libgcc-bootstrap
38678maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
38679configure-stage4-target-libgcc:
38680 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38681 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38682 @r=`${PWD_COMMAND}`; export r; \
e552509b 38683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38684 TFLAGS="$(STAGE4_TFLAGS)"; \
38685 echo "Checking multilib configuration for libgcc..."; \
22121df0 38686 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38687 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38688 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38689 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38690 else \
38691 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38692 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38693 fi; \
38694 else \
38695 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38696 fi; \
38697 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38698 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38699 \
38700 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38701 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38702 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38703 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
38704 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38705 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38706 case $(srcdir) in \
38707 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38708 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38709 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38710 esac; \
1b6c0831
L
38711 module_srcdir=libgcc; \
38712 $(SHELL) $$s/$$module_srcdir/configure \
38713 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38714 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38715 --target=${target_alias} \
22121df0 38716 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38717 $(STAGE4_CONFIGURE_FLAGS)
38718@endif target-libgcc-bootstrap
38719
38720.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
38721maybe-configure-stageprofile-target-libgcc:
38722@if target-libgcc-bootstrap
38723maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38724configure-stageprofile-target-libgcc:
38725 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38726 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38727 @r=`${PWD_COMMAND}`; export r; \
e552509b 38728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38729 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38730 echo "Checking multilib configuration for libgcc..."; \
22121df0 38731 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38732 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38733 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38734 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38735 else \
38736 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38737 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38738 fi; \
38739 else \
38740 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38741 fi; \
38742 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38743 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38744 \
38745 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38746 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38747 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38748 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
38749 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38750 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38751 case $(srcdir) in \
38752 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38753 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38754 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38755 esac; \
1b6c0831
L
38756 module_srcdir=libgcc; \
38757 $(SHELL) $$s/$$module_srcdir/configure \
38758 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38759 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38760 --target=${target_alias} \
22121df0 38761 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38762 $(STAGEprofile_CONFIGURE_FLAGS)
38763@endif target-libgcc-bootstrap
e552509b 38764
a90ef4bf
JM
38765.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
38766maybe-configure-stagefeedback-target-libgcc:
38767@if target-libgcc-bootstrap
38768maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38769configure-stagefeedback-target-libgcc:
38770 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38771 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38772 @r=`${PWD_COMMAND}`; export r; \
e552509b 38773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38774 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38775 echo "Checking multilib configuration for libgcc..."; \
22121df0 38776 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38777 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38778 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38779 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38780 else \
38781 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38782 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38783 fi; \
38784 else \
38785 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38786 fi; \
38787 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38788 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38789 \
38790 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38791 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38792 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38793 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
38794 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38795 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38796 case $(srcdir) in \
38797 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38798 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38799 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38800 esac; \
1b6c0831
L
38801 module_srcdir=libgcc; \
38802 $(SHELL) $$s/$$module_srcdir/configure \
38803 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38804 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38805 --target=${target_alias} \
22121df0 38806 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38807 $(STAGEfeedback_CONFIGURE_FLAGS)
38808@endif target-libgcc-bootstrap
e552509b 38809
e552509b 38810
e552509b 38811
e552509b 38812
e552509b 38813
a90ef4bf
JM
38814.PHONY: all-target-libgcc maybe-all-target-libgcc
38815maybe-all-target-libgcc:
38816@if gcc-bootstrap
38817all-target-libgcc: stage_current
38818@endif gcc-bootstrap
38819@if target-libgcc
38820TARGET-target-libgcc=all
38821maybe-all-target-libgcc: all-target-libgcc
38822all-target-libgcc: configure-target-libgcc
38823 @r=`${PWD_COMMAND}`; export r; \
e552509b 38824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38825 $(NORMAL_TARGET_EXPORTS) \
38826 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38827 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38828 $(TARGET-target-libgcc))
38829@endif target-libgcc
e552509b 38830
e552509b 38831
e552509b 38832
a90ef4bf
JM
38833.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
38834.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
38835maybe-all-stage1-target-libgcc:
38836maybe-clean-stage1-target-libgcc:
38837@if target-libgcc-bootstrap
38838maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
38839all-stage1: all-stage1-target-libgcc
38840TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
38841all-stage1-target-libgcc: configure-stage1-target-libgcc
38842 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38843 @r=`${PWD_COMMAND}`; export r; \
e552509b 38844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38845 TFLAGS="$(STAGE1_TFLAGS)"; \
38846 $(NORMAL_TARGET_EXPORTS) \
38847 cd $(TARGET_SUBDIR)/libgcc && \
38848 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38849 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38850 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38851 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38852 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38853 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38854 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
38855 $(EXTRA_TARGET_FLAGS) \
38856 \
a90ef4bf
JM
38857 TFLAGS="$(STAGE1_TFLAGS)" \
38858 $(TARGET-stage1-target-libgcc)
e552509b 38859
a90ef4bf
JM
38860maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
38861clean-stage1: clean-stage1-target-libgcc
38862clean-stage1-target-libgcc:
38863 @if [ $(current_stage) = stage1 ]; then \
38864 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38865 else \
38866 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
38867 $(MAKE) stage1-start; \
38868 fi; \
38869 cd $(TARGET_SUBDIR)/libgcc && \
38870 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 38871 clean
a90ef4bf 38872@endif target-libgcc-bootstrap
e552509b 38873
e552509b 38874
a90ef4bf
JM
38875.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
38876.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
38877maybe-all-stage2-target-libgcc:
38878maybe-clean-stage2-target-libgcc:
38879@if target-libgcc-bootstrap
38880maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
38881all-stage2: all-stage2-target-libgcc
38882TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
38883all-stage2-target-libgcc: configure-stage2-target-libgcc
38884 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38885 @r=`${PWD_COMMAND}`; export r; \
e552509b 38886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38887 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 38888 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38889 \
38890 cd $(TARGET_SUBDIR)/libgcc && \
38891 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38892 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38893 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38894 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38895 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38896 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38897 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38898 $(EXTRA_TARGET_FLAGS) \
38899 TFLAGS="$(STAGE2_TFLAGS)" \
38900 $(TARGET-stage2-target-libgcc)
e552509b 38901
a90ef4bf
JM
38902maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
38903clean-stage2: clean-stage2-target-libgcc
38904clean-stage2-target-libgcc:
38905 @if [ $(current_stage) = stage2 ]; then \
38906 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38907 else \
38908 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
38909 $(MAKE) stage2-start; \
38910 fi; \
38911 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38912 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38913@endif target-libgcc-bootstrap
e552509b 38914
e552509b 38915
a90ef4bf
JM
38916.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
38917.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
38918maybe-all-stage3-target-libgcc:
38919maybe-clean-stage3-target-libgcc:
38920@if target-libgcc-bootstrap
38921maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
38922all-stage3: all-stage3-target-libgcc
38923TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
38924all-stage3-target-libgcc: configure-stage3-target-libgcc
38925 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38926 @r=`${PWD_COMMAND}`; export r; \
e552509b 38927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38928 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 38929 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38930 \
38931 cd $(TARGET_SUBDIR)/libgcc && \
38932 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38933 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38934 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38935 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38936 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38937 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38938 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38939 $(EXTRA_TARGET_FLAGS) \
38940 TFLAGS="$(STAGE3_TFLAGS)" \
38941 $(TARGET-stage3-target-libgcc)
e552509b 38942
a90ef4bf
JM
38943maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
38944clean-stage3: clean-stage3-target-libgcc
38945clean-stage3-target-libgcc:
38946 @if [ $(current_stage) = stage3 ]; then \
38947 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38948 else \
38949 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
38950 $(MAKE) stage3-start; \
38951 fi; \
38952 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38953 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38954@endif target-libgcc-bootstrap
e552509b 38955
e552509b 38956
a90ef4bf
JM
38957.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
38958.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
38959maybe-all-stage4-target-libgcc:
38960maybe-clean-stage4-target-libgcc:
38961@if target-libgcc-bootstrap
38962maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
38963all-stage4: all-stage4-target-libgcc
38964TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
38965all-stage4-target-libgcc: configure-stage4-target-libgcc
38966 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38967 @r=`${PWD_COMMAND}`; export r; \
e552509b 38968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38969 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 38970 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38971 \
38972 cd $(TARGET_SUBDIR)/libgcc && \
38973 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38974 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38975 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38976 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38977 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38978 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38979 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38980 $(EXTRA_TARGET_FLAGS) \
38981 TFLAGS="$(STAGE4_TFLAGS)" \
38982 $(TARGET-stage4-target-libgcc)
e552509b 38983
a90ef4bf
JM
38984maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
38985clean-stage4: clean-stage4-target-libgcc
38986clean-stage4-target-libgcc:
38987 @if [ $(current_stage) = stage4 ]; then \
38988 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38989 else \
38990 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
38991 $(MAKE) stage4-start; \
38992 fi; \
38993 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38994 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38995@endif target-libgcc-bootstrap
e552509b
ILT
38996
38997
a90ef4bf
JM
38998.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
38999.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
39000maybe-all-stageprofile-target-libgcc:
39001maybe-clean-stageprofile-target-libgcc:
39002@if target-libgcc-bootstrap
39003maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
39004all-stageprofile: all-stageprofile-target-libgcc
39005TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
39006all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
39007 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
39008 @r=`${PWD_COMMAND}`; export r; \
39009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39010 TFLAGS="$(STAGEprofile_TFLAGS)"; \
39011 $(NORMAL_TARGET_EXPORTS) \
39012 \
39013 cd $(TARGET_SUBDIR)/libgcc && \
39014 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39015 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39016 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39017 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39018 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39019 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39020 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39021 $(EXTRA_TARGET_FLAGS) \
39022 TFLAGS="$(STAGEprofile_TFLAGS)" \
39023 $(TARGET-stageprofile-target-libgcc)
39024
39025maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
39026clean-stageprofile: clean-stageprofile-target-libgcc
39027clean-stageprofile-target-libgcc:
39028 @if [ $(current_stage) = stageprofile ]; then \
39029 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 39030 else \
a90ef4bf
JM
39031 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
39032 $(MAKE) stageprofile-start; \
c52c6897 39033 fi; \
a90ef4bf 39034 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39035 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39036@endif target-libgcc-bootstrap
d545f33b
PB
39037
39038
a90ef4bf
JM
39039.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
39040.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
39041maybe-all-stagefeedback-target-libgcc:
39042maybe-clean-stagefeedback-target-libgcc:
39043@if target-libgcc-bootstrap
39044maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
39045all-stagefeedback: all-stagefeedback-target-libgcc
39046TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
39047all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
39048 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
39049 @r=`${PWD_COMMAND}`; export r; \
39050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39051 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39052 $(NORMAL_TARGET_EXPORTS) \
39053 \
39054 cd $(TARGET_SUBDIR)/libgcc && \
39055 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39056 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39057 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39058 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39059 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39060 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39061 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39062 $(EXTRA_TARGET_FLAGS) \
39063 TFLAGS="$(STAGEfeedback_TFLAGS)" \
39064 $(TARGET-stagefeedback-target-libgcc)
39065
39066maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
39067clean-stagefeedback: clean-stagefeedback-target-libgcc
39068clean-stagefeedback-target-libgcc:
39069 @if [ $(current_stage) = stagefeedback ]; then \
39070 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
39071 else \
39072 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
39073 $(MAKE) stagefeedback-start; \
39074 fi; \
39075 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39076 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39077@endif target-libgcc-bootstrap
4b1cb4fe 39078
a7254363
PB
39079
39080
d545f33b
PB
39081
39082
4b1cb4fe 39083
a90ef4bf
JM
39084.PHONY: check-target-libgcc maybe-check-target-libgcc
39085maybe-check-target-libgcc:
39086@if target-libgcc
39087maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 39088
a90ef4bf
JM
39089# Dummy target for uncheckable module.
39090check-target-libgcc:
4b1cb4fe 39091
a90ef4bf 39092@endif target-libgcc
4b1cb4fe 39093
a90ef4bf
JM
39094.PHONY: install-target-libgcc maybe-install-target-libgcc
39095maybe-install-target-libgcc:
39096@if target-libgcc
39097maybe-install-target-libgcc: install-target-libgcc
39098
39099install-target-libgcc: installdirs
0aed8855 39100 @: $(MAKE); $(unstage)
4b1cb4fe
DD
39101 @r=`${PWD_COMMAND}`; export r; \
39102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39103 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39104 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 39105 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 39106
a90ef4bf 39107@endif target-libgcc
4b1cb4fe 39108
a90ef4bf
JM
39109.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
39110maybe-install-strip-target-libgcc:
39111@if target-libgcc
39112maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 39113
a90ef4bf 39114install-strip-target-libgcc: installdirs
9b980aa1
RW
39115 @: $(MAKE); $(unstage)
39116 @r=`${PWD_COMMAND}`; export r; \
39117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39118 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39119 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
39120 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39121
a90ef4bf 39122@endif target-libgcc
9b980aa1 39123
56a8fe78 39124# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 39125
a90ef4bf
JM
39126.PHONY: maybe-info-target-libgcc info-target-libgcc
39127maybe-info-target-libgcc:
39128@if target-libgcc
39129maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 39130
a90ef4bf
JM
39131info-target-libgcc: \
39132 configure-target-libgcc
0aed8855 39133 @: $(MAKE); $(unstage)
22121df0 39134 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39135 r=`${PWD_COMMAND}`; export r; \
39136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39137 $(NORMAL_TARGET_EXPORTS) \
22121df0 39138 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39139 for flag in $(EXTRA_TARGET_FLAGS); do \
39140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39141 done; \
a90ef4bf 39142 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39145 "RANLIB=$${RANLIB}" \
0c24b341 39146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39147 info) \
4b1cb4fe
DD
39148 || exit 1
39149
a90ef4bf 39150@endif target-libgcc
4b1cb4fe 39151
a90ef4bf
JM
39152.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
39153maybe-dvi-target-libgcc:
39154@if target-libgcc
39155maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 39156
a90ef4bf
JM
39157dvi-target-libgcc: \
39158 configure-target-libgcc
0aed8855 39159 @: $(MAKE); $(unstage)
22121df0 39160 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39161 r=`${PWD_COMMAND}`; export r; \
39162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39163 $(NORMAL_TARGET_EXPORTS) \
22121df0 39164 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39165 for flag in $(EXTRA_TARGET_FLAGS); do \
39166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39167 done; \
a90ef4bf 39168 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39171 "RANLIB=$${RANLIB}" \
0c24b341 39172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39173 dvi) \
4b1cb4fe
DD
39174 || exit 1
39175
a90ef4bf 39176@endif target-libgcc
4b1cb4fe 39177
a90ef4bf
JM
39178.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
39179maybe-pdf-target-libgcc:
39180@if target-libgcc
39181maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 39182
a90ef4bf
JM
39183pdf-target-libgcc: \
39184 configure-target-libgcc
56a8fe78 39185 @: $(MAKE); $(unstage)
22121df0 39186 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
39187 r=`${PWD_COMMAND}`; export r; \
39188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39189 $(NORMAL_TARGET_EXPORTS) \
22121df0 39190 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
39191 for flag in $(EXTRA_TARGET_FLAGS); do \
39192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39193 done; \
a90ef4bf 39194 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
39195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39197 "RANLIB=$${RANLIB}" \
0c24b341 39198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39199 pdf) \
39200 || exit 1
39201
a90ef4bf 39202@endif target-libgcc
56a8fe78 39203
a90ef4bf
JM
39204.PHONY: maybe-html-target-libgcc html-target-libgcc
39205maybe-html-target-libgcc:
39206@if target-libgcc
39207maybe-html-target-libgcc: html-target-libgcc
6d389afc 39208
a90ef4bf
JM
39209html-target-libgcc: \
39210 configure-target-libgcc
0aed8855 39211 @: $(MAKE); $(unstage)
22121df0 39212 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
39213 r=`${PWD_COMMAND}`; export r; \
39214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 39215 $(NORMAL_TARGET_EXPORTS) \
22121df0 39216 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
39217 for flag in $(EXTRA_TARGET_FLAGS); do \
39218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39219 done; \
a90ef4bf 39220 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
39221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39223 "RANLIB=$${RANLIB}" \
0c24b341 39224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39225 html) \
39226 || exit 1
39227
a90ef4bf 39228@endif target-libgcc
6d389afc 39229
a90ef4bf
JM
39230.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
39231maybe-TAGS-target-libgcc:
39232@if target-libgcc
39233maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 39234
a90ef4bf
JM
39235TAGS-target-libgcc: \
39236 configure-target-libgcc
0aed8855 39237 @: $(MAKE); $(unstage)
22121df0 39238 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39239 r=`${PWD_COMMAND}`; export r; \
39240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39241 $(NORMAL_TARGET_EXPORTS) \
22121df0 39242 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39243 for flag in $(EXTRA_TARGET_FLAGS); do \
39244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39245 done; \
a90ef4bf 39246 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39249 "RANLIB=$${RANLIB}" \
0c24b341 39250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39251 TAGS) \
4b1cb4fe
DD
39252 || exit 1
39253
a90ef4bf 39254@endif target-libgcc
4b1cb4fe 39255
a90ef4bf
JM
39256.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
39257maybe-install-info-target-libgcc:
39258@if target-libgcc
39259maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 39260
a90ef4bf
JM
39261install-info-target-libgcc: \
39262 configure-target-libgcc \
39263 info-target-libgcc
0aed8855 39264 @: $(MAKE); $(unstage)
22121df0 39265 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39266 r=`${PWD_COMMAND}`; export r; \
39267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39268 $(NORMAL_TARGET_EXPORTS) \
22121df0 39269 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39270 for flag in $(EXTRA_TARGET_FLAGS); do \
39271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39272 done; \
a90ef4bf 39273 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39276 "RANLIB=$${RANLIB}" \
0c24b341 39277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39278 install-info) \
4b1cb4fe
DD
39279 || exit 1
39280
a90ef4bf 39281@endif target-libgcc
4b1cb4fe 39282
a90ef4bf
JM
39283.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
39284maybe-install-pdf-target-libgcc:
39285@if target-libgcc
39286maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 39287
a90ef4bf
JM
39288install-pdf-target-libgcc: \
39289 configure-target-libgcc \
39290 pdf-target-libgcc
a3ca38d2 39291 @: $(MAKE); $(unstage)
22121df0 39292 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
39293 r=`${PWD_COMMAND}`; export r; \
39294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39295 $(NORMAL_TARGET_EXPORTS) \
22121df0 39296 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
39297 for flag in $(EXTRA_TARGET_FLAGS); do \
39298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39299 done; \
a90ef4bf 39300 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
39301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39303 "RANLIB=$${RANLIB}" \
0c24b341 39304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39305 install-pdf) \
39306 || exit 1
39307
a90ef4bf 39308@endif target-libgcc
a3ca38d2 39309
a90ef4bf
JM
39310.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
39311maybe-install-html-target-libgcc:
39312@if target-libgcc
39313maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 39314
a90ef4bf
JM
39315install-html-target-libgcc: \
39316 configure-target-libgcc \
39317 html-target-libgcc
108a6f8e 39318 @: $(MAKE); $(unstage)
22121df0 39319 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
39320 r=`${PWD_COMMAND}`; export r; \
39321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39322 $(NORMAL_TARGET_EXPORTS) \
22121df0 39323 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
39324 for flag in $(EXTRA_TARGET_FLAGS); do \
39325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39326 done; \
a90ef4bf 39327 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
39328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39330 "RANLIB=$${RANLIB}" \
0c24b341 39331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39332 install-html) \
39333 || exit 1
39334
a90ef4bf 39335@endif target-libgcc
108a6f8e 39336
a90ef4bf
JM
39337.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
39338maybe-installcheck-target-libgcc:
39339@if target-libgcc
39340maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 39341
a90ef4bf
JM
39342installcheck-target-libgcc: \
39343 configure-target-libgcc
0aed8855 39344 @: $(MAKE); $(unstage)
22121df0 39345 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39346 r=`${PWD_COMMAND}`; export r; \
39347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39348 $(NORMAL_TARGET_EXPORTS) \
22121df0 39349 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39350 for flag in $(EXTRA_TARGET_FLAGS); do \
39351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39352 done; \
a90ef4bf 39353 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39356 "RANLIB=$${RANLIB}" \
0c24b341 39357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39358 installcheck) \
4b1cb4fe
DD
39359 || exit 1
39360
a90ef4bf 39361@endif target-libgcc
4b1cb4fe 39362
a90ef4bf
JM
39363.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
39364maybe-mostlyclean-target-libgcc:
39365@if target-libgcc
39366maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 39367
a90ef4bf 39368mostlyclean-target-libgcc:
0aed8855 39369 @: $(MAKE); $(unstage)
22121df0 39370 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39371 r=`${PWD_COMMAND}`; export r; \
39372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39373 $(NORMAL_TARGET_EXPORTS) \
22121df0 39374 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39375 for flag in $(EXTRA_TARGET_FLAGS); do \
39376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39377 done; \
a90ef4bf 39378 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39381 "RANLIB=$${RANLIB}" \
0c24b341 39382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39383 mostlyclean) \
4b1cb4fe
DD
39384 || exit 1
39385
a90ef4bf 39386@endif target-libgcc
4b1cb4fe 39387
a90ef4bf
JM
39388.PHONY: maybe-clean-target-libgcc clean-target-libgcc
39389maybe-clean-target-libgcc:
39390@if target-libgcc
39391maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 39392
a90ef4bf 39393clean-target-libgcc:
0aed8855 39394 @: $(MAKE); $(unstage)
22121df0 39395 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39396 r=`${PWD_COMMAND}`; export r; \
39397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39398 $(NORMAL_TARGET_EXPORTS) \
22121df0 39399 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39400 for flag in $(EXTRA_TARGET_FLAGS); do \
39401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39402 done; \
a90ef4bf 39403 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39406 "RANLIB=$${RANLIB}" \
0c24b341 39407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39408 clean) \
4b1cb4fe
DD
39409 || exit 1
39410
a90ef4bf 39411@endif target-libgcc
4b1cb4fe 39412
a90ef4bf
JM
39413.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
39414maybe-distclean-target-libgcc:
39415@if target-libgcc
39416maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 39417
a90ef4bf 39418distclean-target-libgcc:
0aed8855 39419 @: $(MAKE); $(unstage)
22121df0 39420 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39421 r=`${PWD_COMMAND}`; export r; \
39422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39423 $(NORMAL_TARGET_EXPORTS) \
22121df0 39424 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39425 for flag in $(EXTRA_TARGET_FLAGS); do \
39426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39427 done; \
a90ef4bf 39428 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39431 "RANLIB=$${RANLIB}" \
0c24b341 39432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39433 distclean) \
4b1cb4fe
DD
39434 || exit 1
39435
a90ef4bf 39436@endif target-libgcc
4b1cb4fe 39437
a90ef4bf
JM
39438.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
39439maybe-maintainer-clean-target-libgcc:
39440@if target-libgcc
39441maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 39442
a90ef4bf 39443maintainer-clean-target-libgcc:
0aed8855 39444 @: $(MAKE); $(unstage)
22121df0 39445 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39446 r=`${PWD_COMMAND}`; export r; \
39447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39448 $(NORMAL_TARGET_EXPORTS) \
22121df0 39449 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39450 for flag in $(EXTRA_TARGET_FLAGS); do \
39451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39452 done; \
a90ef4bf 39453 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39456 "RANLIB=$${RANLIB}" \
0c24b341 39457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39458 maintainer-clean) \
4b1cb4fe
DD
39459 || exit 1
39460
a90ef4bf 39461@endif target-libgcc
4b1cb4fe
DD
39462
39463
3866be5d 39464
a7254363 39465
e90269c8 39466
2bf680c4
ILT
39467.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
39468maybe-configure-target-libbacktrace:
39469@if gcc-bootstrap
39470configure-target-libbacktrace: stage_current
39471@endif gcc-bootstrap
39472@if target-libbacktrace
39473maybe-configure-target-libbacktrace: configure-target-libbacktrace
39474configure-target-libbacktrace:
39475 @: $(MAKE); $(unstage)
39476 @r=`${PWD_COMMAND}`; export r; \
39477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39478 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
39479 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
39480 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
39481 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39482 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39483 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
39484 else \
39485 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
39486 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39487 fi; \
39488 else \
39489 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39490 fi; \
39491 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 39492 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
39493 $(NORMAL_TARGET_EXPORTS) \
39494 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
39495 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
39496 case $(srcdir) in \
39497 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39498 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
39499 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39500 esac; \
1b6c0831 39501 module_srcdir=libbacktrace; \
2bf680c4 39502 rm -f no-such-file || : ; \
1b6c0831
L
39503 CONFIG_SITE=no-such-file $(SHELL) \
39504 $$s/$$module_srcdir/configure \
39505 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 39506 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39507 --target=${target_alias} \
2bf680c4
ILT
39508 || exit 1
39509@endif target-libbacktrace
39510
39511
39512
39513
39514
39515.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
39516maybe-all-target-libbacktrace:
39517@if gcc-bootstrap
39518all-target-libbacktrace: stage_current
39519@endif gcc-bootstrap
39520@if target-libbacktrace
39521TARGET-target-libbacktrace=all
39522maybe-all-target-libbacktrace: all-target-libbacktrace
39523all-target-libbacktrace: configure-target-libbacktrace
39524 @: $(MAKE); $(unstage)
39525 @r=`${PWD_COMMAND}`; export r; \
39526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39527 $(NORMAL_TARGET_EXPORTS) \
39528 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 39529 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
39530 $(TARGET-target-libbacktrace))
39531@endif target-libbacktrace
39532
39533
39534
39535
39536
39537.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
39538maybe-check-target-libbacktrace:
39539@if target-libbacktrace
39540maybe-check-target-libbacktrace: check-target-libbacktrace
39541
39542check-target-libbacktrace:
39543 @: $(MAKE); $(unstage)
39544 @r=`${PWD_COMMAND}`; export r; \
39545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39546 $(NORMAL_TARGET_EXPORTS) \
39547 (cd $(TARGET_SUBDIR)/libbacktrace && \
39548 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39549
39550@endif target-libbacktrace
39551
39552.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
39553maybe-install-target-libbacktrace:
39554@if target-libbacktrace
39555maybe-install-target-libbacktrace: install-target-libbacktrace
39556
39557install-target-libbacktrace: installdirs
39558 @: $(MAKE); $(unstage)
39559 @r=`${PWD_COMMAND}`; export r; \
39560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39561 $(NORMAL_TARGET_EXPORTS) \
39562 (cd $(TARGET_SUBDIR)/libbacktrace && \
39563 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39564
39565@endif target-libbacktrace
39566
39567.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
39568maybe-install-strip-target-libbacktrace:
39569@if target-libbacktrace
39570maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
39571
39572install-strip-target-libbacktrace: installdirs
39573 @: $(MAKE); $(unstage)
39574 @r=`${PWD_COMMAND}`; export r; \
39575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39576 $(NORMAL_TARGET_EXPORTS) \
39577 (cd $(TARGET_SUBDIR)/libbacktrace && \
39578 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39579
39580@endif target-libbacktrace
39581
39582# Other targets (info, dvi, pdf, etc.)
39583
39584.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
39585maybe-info-target-libbacktrace:
39586@if target-libbacktrace
39587maybe-info-target-libbacktrace: info-target-libbacktrace
39588
39589info-target-libbacktrace: \
39590 configure-target-libbacktrace
39591 @: $(MAKE); $(unstage)
22121df0 39592 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39593 r=`${PWD_COMMAND}`; export r; \
39594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39595 $(NORMAL_TARGET_EXPORTS) \
22121df0 39596 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39597 for flag in $(EXTRA_TARGET_FLAGS); do \
39598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39599 done; \
39600 (cd $(TARGET_SUBDIR)/libbacktrace && \
39601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39603 "RANLIB=$${RANLIB}" \
39604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39605 info) \
39606 || exit 1
39607
39608@endif target-libbacktrace
39609
39610.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
39611maybe-dvi-target-libbacktrace:
39612@if target-libbacktrace
39613maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
39614
39615dvi-target-libbacktrace: \
39616 configure-target-libbacktrace
39617 @: $(MAKE); $(unstage)
22121df0 39618 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39619 r=`${PWD_COMMAND}`; export r; \
39620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39621 $(NORMAL_TARGET_EXPORTS) \
22121df0 39622 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39623 for flag in $(EXTRA_TARGET_FLAGS); do \
39624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39625 done; \
39626 (cd $(TARGET_SUBDIR)/libbacktrace && \
39627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39629 "RANLIB=$${RANLIB}" \
39630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39631 dvi) \
39632 || exit 1
39633
39634@endif target-libbacktrace
39635
39636.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
39637maybe-pdf-target-libbacktrace:
39638@if target-libbacktrace
39639maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
39640
39641pdf-target-libbacktrace: \
39642 configure-target-libbacktrace
39643 @: $(MAKE); $(unstage)
22121df0 39644 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39645 r=`${PWD_COMMAND}`; export r; \
39646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39647 $(NORMAL_TARGET_EXPORTS) \
22121df0 39648 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39649 for flag in $(EXTRA_TARGET_FLAGS); do \
39650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39651 done; \
39652 (cd $(TARGET_SUBDIR)/libbacktrace && \
39653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39655 "RANLIB=$${RANLIB}" \
39656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39657 pdf) \
39658 || exit 1
39659
39660@endif target-libbacktrace
39661
39662.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
39663maybe-html-target-libbacktrace:
39664@if target-libbacktrace
39665maybe-html-target-libbacktrace: html-target-libbacktrace
39666
39667html-target-libbacktrace: \
39668 configure-target-libbacktrace
39669 @: $(MAKE); $(unstage)
22121df0 39670 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39671 r=`${PWD_COMMAND}`; export r; \
39672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39673 $(NORMAL_TARGET_EXPORTS) \
22121df0 39674 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39675 for flag in $(EXTRA_TARGET_FLAGS); do \
39676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39677 done; \
39678 (cd $(TARGET_SUBDIR)/libbacktrace && \
39679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39681 "RANLIB=$${RANLIB}" \
39682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39683 html) \
39684 || exit 1
39685
39686@endif target-libbacktrace
39687
39688.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
39689maybe-TAGS-target-libbacktrace:
39690@if target-libbacktrace
39691maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
39692
39693TAGS-target-libbacktrace: \
39694 configure-target-libbacktrace
39695 @: $(MAKE); $(unstage)
22121df0 39696 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39697 r=`${PWD_COMMAND}`; export r; \
39698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39699 $(NORMAL_TARGET_EXPORTS) \
22121df0 39700 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39701 for flag in $(EXTRA_TARGET_FLAGS); do \
39702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39703 done; \
39704 (cd $(TARGET_SUBDIR)/libbacktrace && \
39705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39707 "RANLIB=$${RANLIB}" \
39708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39709 TAGS) \
39710 || exit 1
39711
39712@endif target-libbacktrace
39713
39714.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
39715maybe-install-info-target-libbacktrace:
39716@if target-libbacktrace
39717maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
39718
39719install-info-target-libbacktrace: \
39720 configure-target-libbacktrace \
39721 info-target-libbacktrace
39722 @: $(MAKE); $(unstage)
22121df0 39723 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39724 r=`${PWD_COMMAND}`; export r; \
39725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39726 $(NORMAL_TARGET_EXPORTS) \
22121df0 39727 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39728 for flag in $(EXTRA_TARGET_FLAGS); do \
39729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39730 done; \
39731 (cd $(TARGET_SUBDIR)/libbacktrace && \
39732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39734 "RANLIB=$${RANLIB}" \
39735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39736 install-info) \
39737 || exit 1
39738
39739@endif target-libbacktrace
39740
39741.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
39742maybe-install-pdf-target-libbacktrace:
39743@if target-libbacktrace
39744maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
39745
39746install-pdf-target-libbacktrace: \
39747 configure-target-libbacktrace \
39748 pdf-target-libbacktrace
39749 @: $(MAKE); $(unstage)
22121df0 39750 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39751 r=`${PWD_COMMAND}`; export r; \
39752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39753 $(NORMAL_TARGET_EXPORTS) \
22121df0 39754 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39755 for flag in $(EXTRA_TARGET_FLAGS); do \
39756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39757 done; \
39758 (cd $(TARGET_SUBDIR)/libbacktrace && \
39759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39761 "RANLIB=$${RANLIB}" \
39762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39763 install-pdf) \
39764 || exit 1
39765
39766@endif target-libbacktrace
39767
39768.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
39769maybe-install-html-target-libbacktrace:
39770@if target-libbacktrace
39771maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
39772
39773install-html-target-libbacktrace: \
39774 configure-target-libbacktrace \
39775 html-target-libbacktrace
39776 @: $(MAKE); $(unstage)
22121df0 39777 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39778 r=`${PWD_COMMAND}`; export r; \
39779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39780 $(NORMAL_TARGET_EXPORTS) \
22121df0 39781 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39782 for flag in $(EXTRA_TARGET_FLAGS); do \
39783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39784 done; \
39785 (cd $(TARGET_SUBDIR)/libbacktrace && \
39786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39788 "RANLIB=$${RANLIB}" \
39789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39790 install-html) \
39791 || exit 1
39792
39793@endif target-libbacktrace
39794
39795.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
39796maybe-installcheck-target-libbacktrace:
39797@if target-libbacktrace
39798maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
39799
39800installcheck-target-libbacktrace: \
39801 configure-target-libbacktrace
39802 @: $(MAKE); $(unstage)
22121df0 39803 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39804 r=`${PWD_COMMAND}`; export r; \
39805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39806 $(NORMAL_TARGET_EXPORTS) \
22121df0 39807 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39808 for flag in $(EXTRA_TARGET_FLAGS); do \
39809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39810 done; \
39811 (cd $(TARGET_SUBDIR)/libbacktrace && \
39812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39814 "RANLIB=$${RANLIB}" \
39815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39816 installcheck) \
39817 || exit 1
39818
39819@endif target-libbacktrace
39820
39821.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
39822maybe-mostlyclean-target-libbacktrace:
39823@if target-libbacktrace
39824maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
39825
39826mostlyclean-target-libbacktrace:
39827 @: $(MAKE); $(unstage)
22121df0 39828 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39829 r=`${PWD_COMMAND}`; export r; \
39830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39831 $(NORMAL_TARGET_EXPORTS) \
22121df0 39832 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39833 for flag in $(EXTRA_TARGET_FLAGS); do \
39834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39835 done; \
39836 (cd $(TARGET_SUBDIR)/libbacktrace && \
39837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39839 "RANLIB=$${RANLIB}" \
39840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39841 mostlyclean) \
39842 || exit 1
39843
39844@endif target-libbacktrace
39845
39846.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
39847maybe-clean-target-libbacktrace:
39848@if target-libbacktrace
39849maybe-clean-target-libbacktrace: clean-target-libbacktrace
39850
39851clean-target-libbacktrace:
39852 @: $(MAKE); $(unstage)
22121df0 39853 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39854 r=`${PWD_COMMAND}`; export r; \
39855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39856 $(NORMAL_TARGET_EXPORTS) \
22121df0 39857 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39858 for flag in $(EXTRA_TARGET_FLAGS); do \
39859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39860 done; \
39861 (cd $(TARGET_SUBDIR)/libbacktrace && \
39862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39864 "RANLIB=$${RANLIB}" \
39865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39866 clean) \
39867 || exit 1
39868
39869@endif target-libbacktrace
39870
39871.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
39872maybe-distclean-target-libbacktrace:
39873@if target-libbacktrace
39874maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
39875
39876distclean-target-libbacktrace:
39877 @: $(MAKE); $(unstage)
22121df0 39878 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39879 r=`${PWD_COMMAND}`; export r; \
39880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39881 $(NORMAL_TARGET_EXPORTS) \
22121df0 39882 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39883 for flag in $(EXTRA_TARGET_FLAGS); do \
39884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39885 done; \
39886 (cd $(TARGET_SUBDIR)/libbacktrace && \
39887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39889 "RANLIB=$${RANLIB}" \
39890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39891 distclean) \
39892 || exit 1
39893
39894@endif target-libbacktrace
39895
39896.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
39897maybe-maintainer-clean-target-libbacktrace:
39898@if target-libbacktrace
39899maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
39900
39901maintainer-clean-target-libbacktrace:
39902 @: $(MAKE); $(unstage)
22121df0 39903 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39904 r=`${PWD_COMMAND}`; export r; \
39905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39906 $(NORMAL_TARGET_EXPORTS) \
22121df0 39907 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39908 for flag in $(EXTRA_TARGET_FLAGS); do \
39909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39910 done; \
39911 (cd $(TARGET_SUBDIR)/libbacktrace && \
39912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39914 "RANLIB=$${RANLIB}" \
39915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39916 maintainer-clean) \
39917 || exit 1
39918
39919@endif target-libbacktrace
39920
39921
39922
39923
39924
a90ef4bf
JM
39925.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
39926maybe-configure-target-libquadmath:
4f0ef2d8 39927@if gcc-bootstrap
a90ef4bf 39928configure-target-libquadmath: stage_current
4f0ef2d8 39929@endif gcc-bootstrap
a90ef4bf
JM
39930@if target-libquadmath
39931maybe-configure-target-libquadmath: configure-target-libquadmath
39932configure-target-libquadmath:
0aed8855
PB
39933 @: $(MAKE); $(unstage)
39934 @r=`${PWD_COMMAND}`; export r; \
39935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39936 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
39937 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
39938 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39939 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39940 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39941 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 39942 else \
a90ef4bf
JM
39943 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
39944 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
39945 fi; \
39946 else \
a90ef4bf 39947 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 39948 fi; \
a90ef4bf 39949 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 39950 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 39951 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39952 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
39953 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 39954 case $(srcdir) in \
b00612cc 39955 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39956 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 39957 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 39958 esac; \
1b6c0831 39959 module_srcdir=libquadmath; \
4fa63067 39960 rm -f no-such-file || : ; \
1b6c0831
L
39961 CONFIG_SITE=no-such-file $(SHELL) \
39962 $$s/$$module_srcdir/configure \
39963 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39964 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39965 --target=${target_alias} \
e2b9e2dc 39966 || exit 1
a90ef4bf 39967@endif target-libquadmath
e2b9e2dc 39968
a7254363
PB
39969
39970
d545f33b
PB
39971
39972
a90ef4bf
JM
39973.PHONY: all-target-libquadmath maybe-all-target-libquadmath
39974maybe-all-target-libquadmath:
4f0ef2d8 39975@if gcc-bootstrap
a90ef4bf 39976all-target-libquadmath: stage_current
4f0ef2d8 39977@endif gcc-bootstrap
a90ef4bf
JM
39978@if target-libquadmath
39979TARGET-target-libquadmath=all
39980maybe-all-target-libquadmath: all-target-libquadmath
39981all-target-libquadmath: configure-target-libquadmath
0aed8855 39982 @: $(MAKE); $(unstage)
b40e3958
L
39983 @r=`${PWD_COMMAND}`; export r; \
39984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39985 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39986 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 39987 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39988 $(TARGET-target-libquadmath))
39989@endif target-libquadmath
3866be5d 39990
a7254363
PB
39991
39992
d545f33b
PB
39993
39994
a90ef4bf
JM
39995.PHONY: check-target-libquadmath maybe-check-target-libquadmath
39996maybe-check-target-libquadmath:
39997@if target-libquadmath
39998maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 39999
a90ef4bf 40000check-target-libquadmath:
0aed8855 40001 @: $(MAKE); $(unstage)
b40e3958
L
40002 @r=`${PWD_COMMAND}`; export r; \
40003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40004 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40005 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 40006 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40007
a90ef4bf 40008@endif target-libquadmath
3866be5d 40009
a90ef4bf
JM
40010.PHONY: install-target-libquadmath maybe-install-target-libquadmath
40011maybe-install-target-libquadmath:
40012@if target-libquadmath
40013maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 40014
a90ef4bf 40015install-target-libquadmath: installdirs
0aed8855 40016 @: $(MAKE); $(unstage)
b40e3958
L
40017 @r=`${PWD_COMMAND}`; export r; \
40018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40019 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40020 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 40021 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40022
a90ef4bf 40023@endif target-libquadmath
3866be5d 40024
a90ef4bf
JM
40025.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
40026maybe-install-strip-target-libquadmath:
40027@if target-libquadmath
40028maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 40029
a90ef4bf 40030install-strip-target-libquadmath: installdirs
9b980aa1
RW
40031 @: $(MAKE); $(unstage)
40032 @r=`${PWD_COMMAND}`; export r; \
40033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40034 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40035 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
40036 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40037
a90ef4bf 40038@endif target-libquadmath
9b980aa1 40039
56a8fe78 40040# Other targets (info, dvi, pdf, etc.)
4fa63067 40041
a90ef4bf
JM
40042.PHONY: maybe-info-target-libquadmath info-target-libquadmath
40043maybe-info-target-libquadmath:
40044@if target-libquadmath
40045maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 40046
a90ef4bf
JM
40047info-target-libquadmath: \
40048 configure-target-libquadmath
0aed8855 40049 @: $(MAKE); $(unstage)
22121df0 40050 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40051 r=`${PWD_COMMAND}`; export r; \
b40e3958 40052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40053 $(NORMAL_TARGET_EXPORTS) \
22121df0 40054 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40055 for flag in $(EXTRA_TARGET_FLAGS); do \
40056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40057 done; \
a90ef4bf 40058 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40061 "RANLIB=$${RANLIB}" \
0c24b341 40062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40063 info) \
4fa63067 40064 || exit 1
3866be5d 40065
a90ef4bf 40066@endif target-libquadmath
3866be5d 40067
a90ef4bf
JM
40068.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
40069maybe-dvi-target-libquadmath:
40070@if target-libquadmath
40071maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 40072
a90ef4bf
JM
40073dvi-target-libquadmath: \
40074 configure-target-libquadmath
0aed8855 40075 @: $(MAKE); $(unstage)
22121df0 40076 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40077 r=`${PWD_COMMAND}`; export r; \
b40e3958 40078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40079 $(NORMAL_TARGET_EXPORTS) \
22121df0 40080 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40081 for flag in $(EXTRA_TARGET_FLAGS); do \
40082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40083 done; \
a90ef4bf 40084 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40087 "RANLIB=$${RANLIB}" \
0c24b341 40088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40089 dvi) \
4fa63067 40090 || exit 1
3866be5d 40091
a90ef4bf 40092@endif target-libquadmath
3866be5d 40093
a90ef4bf
JM
40094.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
40095maybe-pdf-target-libquadmath:
40096@if target-libquadmath
40097maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 40098
a90ef4bf
JM
40099pdf-target-libquadmath: \
40100 configure-target-libquadmath
56a8fe78 40101 @: $(MAKE); $(unstage)
22121df0 40102 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
40103 r=`${PWD_COMMAND}`; export r; \
40104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40105 $(NORMAL_TARGET_EXPORTS) \
22121df0 40106 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
40107 for flag in $(EXTRA_TARGET_FLAGS); do \
40108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40109 done; \
a90ef4bf 40110 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
40111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40113 "RANLIB=$${RANLIB}" \
0c24b341 40114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40115 pdf) \
40116 || exit 1
40117
a90ef4bf 40118@endif target-libquadmath
56a8fe78 40119
a90ef4bf
JM
40120.PHONY: maybe-html-target-libquadmath html-target-libquadmath
40121maybe-html-target-libquadmath:
40122@if target-libquadmath
40123maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 40124
a90ef4bf
JM
40125html-target-libquadmath: \
40126 configure-target-libquadmath
0aed8855 40127 @: $(MAKE); $(unstage)
22121df0 40128 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
40129 r=`${PWD_COMMAND}`; export r; \
40130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40131 $(NORMAL_TARGET_EXPORTS) \
22121df0 40132 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
40133 for flag in $(EXTRA_TARGET_FLAGS); do \
40134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40135 done; \
a90ef4bf 40136 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
40137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40139 "RANLIB=$${RANLIB}" \
0c24b341 40140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40141 html) \
40142 || exit 1
40143
a90ef4bf 40144@endif target-libquadmath
6d389afc 40145
a90ef4bf
JM
40146.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
40147maybe-TAGS-target-libquadmath:
40148@if target-libquadmath
40149maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 40150
a90ef4bf
JM
40151TAGS-target-libquadmath: \
40152 configure-target-libquadmath
0aed8855 40153 @: $(MAKE); $(unstage)
22121df0 40154 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
40155 r=`${PWD_COMMAND}`; export r; \
40156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40157 $(NORMAL_TARGET_EXPORTS) \
22121df0 40158 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40159 for flag in $(EXTRA_TARGET_FLAGS); do \
40160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40161 done; \
a90ef4bf 40162 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40165 "RANLIB=$${RANLIB}" \
0c24b341 40166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40167 TAGS) \
e2b9e2dc
NN
40168 || exit 1
40169
a90ef4bf 40170@endif target-libquadmath
4fa63067 40171
a90ef4bf
JM
40172.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
40173maybe-install-info-target-libquadmath:
40174@if target-libquadmath
40175maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 40176
a90ef4bf
JM
40177install-info-target-libquadmath: \
40178 configure-target-libquadmath \
40179 info-target-libquadmath
0aed8855 40180 @: $(MAKE); $(unstage)
22121df0 40181 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40182 r=`${PWD_COMMAND}`; export r; \
b40e3958 40183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40184 $(NORMAL_TARGET_EXPORTS) \
22121df0 40185 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40186 for flag in $(EXTRA_TARGET_FLAGS); do \
40187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40188 done; \
a90ef4bf 40189 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40192 "RANLIB=$${RANLIB}" \
0c24b341 40193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40194 install-info) \
4fa63067 40195 || exit 1
3866be5d 40196
a90ef4bf 40197@endif target-libquadmath
3866be5d 40198
a90ef4bf
JM
40199.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
40200maybe-install-pdf-target-libquadmath:
40201@if target-libquadmath
40202maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 40203
a90ef4bf
JM
40204install-pdf-target-libquadmath: \
40205 configure-target-libquadmath \
40206 pdf-target-libquadmath
a3ca38d2 40207 @: $(MAKE); $(unstage)
22121df0 40208 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
40209 r=`${PWD_COMMAND}`; export r; \
40210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40211 $(NORMAL_TARGET_EXPORTS) \
22121df0 40212 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
40213 for flag in $(EXTRA_TARGET_FLAGS); do \
40214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40215 done; \
a90ef4bf 40216 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
40217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40219 "RANLIB=$${RANLIB}" \
0c24b341 40220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40221 install-pdf) \
40222 || exit 1
40223
a90ef4bf 40224@endif target-libquadmath
a3ca38d2 40225
a90ef4bf
JM
40226.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
40227maybe-install-html-target-libquadmath:
40228@if target-libquadmath
40229maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 40230
a90ef4bf
JM
40231install-html-target-libquadmath: \
40232 configure-target-libquadmath \
40233 html-target-libquadmath
108a6f8e 40234 @: $(MAKE); $(unstage)
22121df0 40235 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
40236 r=`${PWD_COMMAND}`; export r; \
40237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40238 $(NORMAL_TARGET_EXPORTS) \
22121df0 40239 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
40240 for flag in $(EXTRA_TARGET_FLAGS); do \
40241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40242 done; \
a90ef4bf 40243 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
40244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40246 "RANLIB=$${RANLIB}" \
0c24b341 40247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40248 install-html) \
40249 || exit 1
40250
a90ef4bf 40251@endif target-libquadmath
108a6f8e 40252
a90ef4bf
JM
40253.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
40254maybe-installcheck-target-libquadmath:
40255@if target-libquadmath
40256maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 40257
a90ef4bf
JM
40258installcheck-target-libquadmath: \
40259 configure-target-libquadmath
0aed8855 40260 @: $(MAKE); $(unstage)
22121df0 40261 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40262 r=`${PWD_COMMAND}`; export r; \
b40e3958 40263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40264 $(NORMAL_TARGET_EXPORTS) \
22121df0 40265 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40266 for flag in $(EXTRA_TARGET_FLAGS); do \
40267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40268 done; \
a90ef4bf 40269 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40272 "RANLIB=$${RANLIB}" \
0c24b341 40273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40274 installcheck) \
4fa63067 40275 || exit 1
3866be5d 40276
a90ef4bf 40277@endif target-libquadmath
3866be5d 40278
a90ef4bf
JM
40279.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
40280maybe-mostlyclean-target-libquadmath:
40281@if target-libquadmath
40282maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 40283
a90ef4bf 40284mostlyclean-target-libquadmath:
0aed8855 40285 @: $(MAKE); $(unstage)
22121df0 40286 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40287 r=`${PWD_COMMAND}`; export r; \
b40e3958 40288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40289 $(NORMAL_TARGET_EXPORTS) \
22121df0 40290 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40291 for flag in $(EXTRA_TARGET_FLAGS); do \
40292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40293 done; \
a90ef4bf 40294 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40297 "RANLIB=$${RANLIB}" \
0c24b341 40298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40299 mostlyclean) \
4fa63067 40300 || exit 1
3866be5d 40301
a90ef4bf 40302@endif target-libquadmath
3866be5d 40303
a90ef4bf
JM
40304.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
40305maybe-clean-target-libquadmath:
40306@if target-libquadmath
40307maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 40308
a90ef4bf 40309clean-target-libquadmath:
0aed8855 40310 @: $(MAKE); $(unstage)
22121df0 40311 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
40312 r=`${PWD_COMMAND}`; export r; \
40313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40314 $(NORMAL_TARGET_EXPORTS) \
22121df0 40315 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40316 for flag in $(EXTRA_TARGET_FLAGS); do \
40317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40318 done; \
a90ef4bf 40319 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40322 "RANLIB=$${RANLIB}" \
0c24b341 40323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40324 clean) \
e2b9e2dc
NN
40325 || exit 1
40326
a90ef4bf 40327@endif target-libquadmath
3866be5d 40328
a90ef4bf
JM
40329.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
40330maybe-distclean-target-libquadmath:
40331@if target-libquadmath
40332maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 40333
a90ef4bf 40334distclean-target-libquadmath:
0aed8855 40335 @: $(MAKE); $(unstage)
22121df0 40336 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40337 r=`${PWD_COMMAND}`; export r; \
b40e3958 40338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40339 $(NORMAL_TARGET_EXPORTS) \
22121df0 40340 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40341 for flag in $(EXTRA_TARGET_FLAGS); do \
40342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40343 done; \
a90ef4bf 40344 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40347 "RANLIB=$${RANLIB}" \
0c24b341 40348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40349 distclean) \
4fa63067 40350 || exit 1
3866be5d 40351
a90ef4bf 40352@endif target-libquadmath
3866be5d 40353
a90ef4bf
JM
40354.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
40355maybe-maintainer-clean-target-libquadmath:
40356@if target-libquadmath
40357maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 40358
a90ef4bf 40359maintainer-clean-target-libquadmath:
0aed8855 40360 @: $(MAKE); $(unstage)
22121df0 40361 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40362 r=`${PWD_COMMAND}`; export r; \
b40e3958 40363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40364 $(NORMAL_TARGET_EXPORTS) \
22121df0 40365 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40366 for flag in $(EXTRA_TARGET_FLAGS); do \
40367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40368 done; \
a90ef4bf 40369 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40372 "RANLIB=$${RANLIB}" \
0c24b341 40373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40374 maintainer-clean) \
4fa63067 40375 || exit 1
3866be5d 40376
a90ef4bf 40377@endif target-libquadmath
3866be5d 40378
4fa63067 40379
4fa63067 40380
a7254363 40381
e90269c8 40382
a90ef4bf
JM
40383.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
40384maybe-configure-target-libgfortran:
e552509b 40385@if gcc-bootstrap
a90ef4bf 40386configure-target-libgfortran: stage_current
e552509b 40387@endif gcc-bootstrap
a90ef4bf
JM
40388@if target-libgfortran
40389maybe-configure-target-libgfortran: configure-target-libgfortran
40390configure-target-libgfortran:
e552509b
ILT
40391 @: $(MAKE); $(unstage)
40392 @r=`${PWD_COMMAND}`; export r; \
40393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40394 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
40395 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
40396 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40397 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
40398 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
40399 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 40400 else \
a90ef4bf
JM
40401 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
40402 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
40403 fi; \
40404 else \
a90ef4bf 40405 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 40406 fi; \
a90ef4bf 40407 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 40408 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 40409 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40410 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
40411 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
40412 case $(srcdir) in \
40413 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40414 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
40415 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40416 esac; \
1b6c0831 40417 module_srcdir=libgfortran; \
e552509b 40418 rm -f no-such-file || : ; \
1b6c0831
L
40419 CONFIG_SITE=no-such-file $(SHELL) \
40420 $$s/$$module_srcdir/configure \
40421 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40422 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40423 --target=${target_alias} \
e552509b 40424 || exit 1
a90ef4bf 40425@endif target-libgfortran
e552509b
ILT
40426
40427
40428
40429
40430
a90ef4bf
JM
40431.PHONY: all-target-libgfortran maybe-all-target-libgfortran
40432maybe-all-target-libgfortran:
e552509b 40433@if gcc-bootstrap
a90ef4bf 40434all-target-libgfortran: stage_current
e552509b 40435@endif gcc-bootstrap
a90ef4bf
JM
40436@if target-libgfortran
40437TARGET-target-libgfortran=all
40438maybe-all-target-libgfortran: all-target-libgfortran
40439all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
40440 @: $(MAKE); $(unstage)
40441 @r=`${PWD_COMMAND}`; export r; \
40442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40443 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40444 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 40445 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40446 $(TARGET-target-libgfortran))
40447@endif target-libgfortran
e552509b
ILT
40448
40449
40450
40451
40452
a90ef4bf
JM
40453.PHONY: check-target-libgfortran maybe-check-target-libgfortran
40454maybe-check-target-libgfortran:
40455@if target-libgfortran
40456maybe-check-target-libgfortran: check-target-libgfortran
e552509b 40457
a90ef4bf 40458check-target-libgfortran:
e552509b
ILT
40459 @: $(MAKE); $(unstage)
40460 @r=`${PWD_COMMAND}`; export r; \
40461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40462 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40463 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40464 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40465
a90ef4bf 40466@endif target-libgfortran
e552509b 40467
a90ef4bf
JM
40468.PHONY: install-target-libgfortran maybe-install-target-libgfortran
40469maybe-install-target-libgfortran:
40470@if target-libgfortran
40471maybe-install-target-libgfortran: install-target-libgfortran
e552509b 40472
a90ef4bf 40473install-target-libgfortran: installdirs
e552509b
ILT
40474 @: $(MAKE); $(unstage)
40475 @r=`${PWD_COMMAND}`; export r; \
40476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40477 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40478 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40479 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40480
a90ef4bf 40481@endif target-libgfortran
e552509b 40482
a90ef4bf
JM
40483.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
40484maybe-install-strip-target-libgfortran:
40485@if target-libgfortran
40486maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 40487
a90ef4bf 40488install-strip-target-libgfortran: installdirs
9b980aa1
RW
40489 @: $(MAKE); $(unstage)
40490 @r=`${PWD_COMMAND}`; export r; \
40491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40492 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40493 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
40494 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40495
a90ef4bf 40496@endif target-libgfortran
9b980aa1 40497
e552509b
ILT
40498# Other targets (info, dvi, pdf, etc.)
40499
a90ef4bf
JM
40500.PHONY: maybe-info-target-libgfortran info-target-libgfortran
40501maybe-info-target-libgfortran:
40502@if target-libgfortran
40503maybe-info-target-libgfortran: info-target-libgfortran
e552509b 40504
a90ef4bf
JM
40505info-target-libgfortran: \
40506 configure-target-libgfortran
e552509b 40507 @: $(MAKE); $(unstage)
22121df0 40508 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40509 r=`${PWD_COMMAND}`; export r; \
40510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40511 $(NORMAL_TARGET_EXPORTS) \
22121df0 40512 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40513 for flag in $(EXTRA_TARGET_FLAGS); do \
40514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40515 done; \
a90ef4bf 40516 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40519 "RANLIB=$${RANLIB}" \
40520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40521 info) \
40522 || exit 1
40523
a90ef4bf 40524@endif target-libgfortran
e552509b 40525
a90ef4bf
JM
40526.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
40527maybe-dvi-target-libgfortran:
40528@if target-libgfortran
40529maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 40530
a90ef4bf
JM
40531dvi-target-libgfortran: \
40532 configure-target-libgfortran
e552509b 40533 @: $(MAKE); $(unstage)
22121df0 40534 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40535 r=`${PWD_COMMAND}`; export r; \
40536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40537 $(NORMAL_TARGET_EXPORTS) \
22121df0 40538 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40539 for flag in $(EXTRA_TARGET_FLAGS); do \
40540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40541 done; \
a90ef4bf 40542 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40545 "RANLIB=$${RANLIB}" \
40546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40547 dvi) \
40548 || exit 1
40549
a90ef4bf 40550@endif target-libgfortran
e552509b 40551
a90ef4bf
JM
40552.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
40553maybe-pdf-target-libgfortran:
40554@if target-libgfortran
40555maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 40556
a90ef4bf
JM
40557pdf-target-libgfortran: \
40558 configure-target-libgfortran
e552509b 40559 @: $(MAKE); $(unstage)
22121df0 40560 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40561 r=`${PWD_COMMAND}`; export r; \
40562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40563 $(NORMAL_TARGET_EXPORTS) \
22121df0 40564 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40565 for flag in $(EXTRA_TARGET_FLAGS); do \
40566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40567 done; \
a90ef4bf 40568 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40571 "RANLIB=$${RANLIB}" \
40572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40573 pdf) \
40574 || exit 1
40575
a90ef4bf 40576@endif target-libgfortran
e552509b 40577
a90ef4bf
JM
40578.PHONY: maybe-html-target-libgfortran html-target-libgfortran
40579maybe-html-target-libgfortran:
40580@if target-libgfortran
40581maybe-html-target-libgfortran: html-target-libgfortran
e552509b 40582
a90ef4bf
JM
40583html-target-libgfortran: \
40584 configure-target-libgfortran
e552509b 40585 @: $(MAKE); $(unstage)
22121df0 40586 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40587 r=`${PWD_COMMAND}`; export r; \
40588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40589 $(NORMAL_TARGET_EXPORTS) \
22121df0 40590 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40591 for flag in $(EXTRA_TARGET_FLAGS); do \
40592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40593 done; \
a90ef4bf 40594 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40597 "RANLIB=$${RANLIB}" \
40598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40599 html) \
40600 || exit 1
40601
a90ef4bf 40602@endif target-libgfortran
e552509b 40603
a90ef4bf
JM
40604.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
40605maybe-TAGS-target-libgfortran:
40606@if target-libgfortran
40607maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 40608
a90ef4bf
JM
40609TAGS-target-libgfortran: \
40610 configure-target-libgfortran
e552509b 40611 @: $(MAKE); $(unstage)
22121df0 40612 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40613 r=`${PWD_COMMAND}`; export r; \
40614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40615 $(NORMAL_TARGET_EXPORTS) \
22121df0 40616 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40617 for flag in $(EXTRA_TARGET_FLAGS); do \
40618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40619 done; \
a90ef4bf 40620 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40623 "RANLIB=$${RANLIB}" \
40624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40625 TAGS) \
40626 || exit 1
40627
a90ef4bf 40628@endif target-libgfortran
e552509b 40629
a90ef4bf
JM
40630.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
40631maybe-install-info-target-libgfortran:
40632@if target-libgfortran
40633maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 40634
a90ef4bf
JM
40635install-info-target-libgfortran: \
40636 configure-target-libgfortran \
40637 info-target-libgfortran
e552509b 40638 @: $(MAKE); $(unstage)
22121df0 40639 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40640 r=`${PWD_COMMAND}`; export r; \
40641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40642 $(NORMAL_TARGET_EXPORTS) \
22121df0 40643 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40644 for flag in $(EXTRA_TARGET_FLAGS); do \
40645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40646 done; \
a90ef4bf 40647 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40650 "RANLIB=$${RANLIB}" \
40651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40652 install-info) \
40653 || exit 1
40654
a90ef4bf 40655@endif target-libgfortran
e552509b 40656
a90ef4bf
JM
40657.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
40658maybe-install-pdf-target-libgfortran:
40659@if target-libgfortran
40660maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 40661
a90ef4bf
JM
40662install-pdf-target-libgfortran: \
40663 configure-target-libgfortran \
40664 pdf-target-libgfortran
e552509b 40665 @: $(MAKE); $(unstage)
22121df0 40666 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40667 r=`${PWD_COMMAND}`; export r; \
40668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40669 $(NORMAL_TARGET_EXPORTS) \
22121df0 40670 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40671 for flag in $(EXTRA_TARGET_FLAGS); do \
40672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40673 done; \
a90ef4bf 40674 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40677 "RANLIB=$${RANLIB}" \
40678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40679 install-pdf) \
40680 || exit 1
40681
a90ef4bf 40682@endif target-libgfortran
e552509b 40683
a90ef4bf
JM
40684.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
40685maybe-install-html-target-libgfortran:
40686@if target-libgfortran
40687maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 40688
a90ef4bf
JM
40689install-html-target-libgfortran: \
40690 configure-target-libgfortran \
40691 html-target-libgfortran
e552509b 40692 @: $(MAKE); $(unstage)
22121df0 40693 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40694 r=`${PWD_COMMAND}`; export r; \
40695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40696 $(NORMAL_TARGET_EXPORTS) \
22121df0 40697 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40698 for flag in $(EXTRA_TARGET_FLAGS); do \
40699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40700 done; \
a90ef4bf 40701 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40704 "RANLIB=$${RANLIB}" \
40705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40706 install-html) \
40707 || exit 1
40708
a90ef4bf 40709@endif target-libgfortran
e552509b 40710
a90ef4bf
JM
40711.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
40712maybe-installcheck-target-libgfortran:
40713@if target-libgfortran
40714maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 40715
a90ef4bf
JM
40716installcheck-target-libgfortran: \
40717 configure-target-libgfortran
e552509b 40718 @: $(MAKE); $(unstage)
22121df0 40719 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40720 r=`${PWD_COMMAND}`; export r; \
40721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40722 $(NORMAL_TARGET_EXPORTS) \
22121df0 40723 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40724 for flag in $(EXTRA_TARGET_FLAGS); do \
40725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40726 done; \
a90ef4bf 40727 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40730 "RANLIB=$${RANLIB}" \
40731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40732 installcheck) \
40733 || exit 1
40734
a90ef4bf 40735@endif target-libgfortran
e552509b 40736
a90ef4bf
JM
40737.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
40738maybe-mostlyclean-target-libgfortran:
40739@if target-libgfortran
40740maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 40741
a90ef4bf 40742mostlyclean-target-libgfortran:
e552509b 40743 @: $(MAKE); $(unstage)
22121df0 40744 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40745 r=`${PWD_COMMAND}`; export r; \
40746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40747 $(NORMAL_TARGET_EXPORTS) \
22121df0 40748 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40749 for flag in $(EXTRA_TARGET_FLAGS); do \
40750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40751 done; \
a90ef4bf 40752 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40755 "RANLIB=$${RANLIB}" \
40756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40757 mostlyclean) \
40758 || exit 1
40759
a90ef4bf 40760@endif target-libgfortran
e552509b 40761
a90ef4bf
JM
40762.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
40763maybe-clean-target-libgfortran:
40764@if target-libgfortran
40765maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 40766
a90ef4bf 40767clean-target-libgfortran:
e552509b 40768 @: $(MAKE); $(unstage)
22121df0 40769 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40770 r=`${PWD_COMMAND}`; export r; \
40771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40772 $(NORMAL_TARGET_EXPORTS) \
22121df0 40773 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40774 for flag in $(EXTRA_TARGET_FLAGS); do \
40775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40776 done; \
a90ef4bf 40777 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40780 "RANLIB=$${RANLIB}" \
40781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40782 clean) \
40783 || exit 1
40784
a90ef4bf 40785@endif target-libgfortran
e552509b 40786
a90ef4bf
JM
40787.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
40788maybe-distclean-target-libgfortran:
40789@if target-libgfortran
40790maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 40791
a90ef4bf 40792distclean-target-libgfortran:
e552509b 40793 @: $(MAKE); $(unstage)
22121df0 40794 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40795 r=`${PWD_COMMAND}`; export r; \
40796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40797 $(NORMAL_TARGET_EXPORTS) \
22121df0 40798 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40799 for flag in $(EXTRA_TARGET_FLAGS); do \
40800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40801 done; \
a90ef4bf 40802 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40805 "RANLIB=$${RANLIB}" \
40806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40807 distclean) \
40808 || exit 1
40809
a90ef4bf 40810@endif target-libgfortran
e552509b 40811
a90ef4bf
JM
40812.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
40813maybe-maintainer-clean-target-libgfortran:
40814@if target-libgfortran
40815maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 40816
a90ef4bf 40817maintainer-clean-target-libgfortran:
e552509b 40818 @: $(MAKE); $(unstage)
22121df0 40819 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40820 r=`${PWD_COMMAND}`; export r; \
40821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40822 $(NORMAL_TARGET_EXPORTS) \
22121df0 40823 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40824 for flag in $(EXTRA_TARGET_FLAGS); do \
40825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40826 done; \
a90ef4bf 40827 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40830 "RANLIB=$${RANLIB}" \
40831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40832 maintainer-clean) \
40833 || exit 1
40834
a90ef4bf 40835@endif target-libgfortran
e552509b
ILT
40836
40837
40838
40839
40840
a90ef4bf
JM
40841.PHONY: configure-target-libobjc maybe-configure-target-libobjc
40842maybe-configure-target-libobjc:
4f0ef2d8 40843@if gcc-bootstrap
a90ef4bf 40844configure-target-libobjc: stage_current
4f0ef2d8 40845@endif gcc-bootstrap
a90ef4bf
JM
40846@if target-libobjc
40847maybe-configure-target-libobjc: configure-target-libobjc
40848configure-target-libobjc:
0aed8855
PB
40849 @: $(MAKE); $(unstage)
40850 @r=`${PWD_COMMAND}`; export r; \
40851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40852 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
40853 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
40854 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40855 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40856 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40857 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 40858 else \
a90ef4bf
JM
40859 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
40860 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
40861 fi; \
40862 else \
a90ef4bf 40863 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 40864 fi; \
a90ef4bf 40865 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 40866 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 40867 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40868 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
40869 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 40870 case $(srcdir) in \
b00612cc 40871 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40872 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 40873 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 40874 esac; \
1b6c0831 40875 module_srcdir=libobjc; \
4fa63067 40876 rm -f no-such-file || : ; \
1b6c0831
L
40877 CONFIG_SITE=no-such-file $(SHELL) \
40878 $$s/$$module_srcdir/configure \
40879 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40880 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40881 --target=${target_alias} \
e2b9e2dc 40882 || exit 1
a90ef4bf 40883@endif target-libobjc
e2b9e2dc 40884
a7254363
PB
40885
40886
d545f33b
PB
40887
40888
a90ef4bf
JM
40889.PHONY: all-target-libobjc maybe-all-target-libobjc
40890maybe-all-target-libobjc:
4f0ef2d8 40891@if gcc-bootstrap
a90ef4bf 40892all-target-libobjc: stage_current
4f0ef2d8 40893@endif gcc-bootstrap
a90ef4bf
JM
40894@if target-libobjc
40895TARGET-target-libobjc=all
40896maybe-all-target-libobjc: all-target-libobjc
40897all-target-libobjc: configure-target-libobjc
0aed8855 40898 @: $(MAKE); $(unstage)
b40e3958
L
40899 @r=`${PWD_COMMAND}`; export r; \
40900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40901 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40902 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 40903 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40904 $(TARGET-target-libobjc))
40905@endif target-libobjc
3866be5d 40906
a7254363
PB
40907
40908
d545f33b
PB
40909
40910
a90ef4bf
JM
40911.PHONY: check-target-libobjc maybe-check-target-libobjc
40912maybe-check-target-libobjc:
40913@if target-libobjc
40914maybe-check-target-libobjc: check-target-libobjc
3866be5d 40915
a90ef4bf
JM
40916check-target-libobjc:
40917 @: $(MAKE); $(unstage)
40918 @r=`${PWD_COMMAND}`; export r; \
40919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40920 $(NORMAL_TARGET_EXPORTS) \
40921 (cd $(TARGET_SUBDIR)/libobjc && \
40922 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 40923
a90ef4bf 40924@endif target-libobjc
4fa63067 40925
a90ef4bf
JM
40926.PHONY: install-target-libobjc maybe-install-target-libobjc
40927maybe-install-target-libobjc:
40928@if target-libobjc
40929maybe-install-target-libobjc: install-target-libobjc
4fa63067 40930
a90ef4bf 40931install-target-libobjc: installdirs
0aed8855 40932 @: $(MAKE); $(unstage)
b40e3958
L
40933 @r=`${PWD_COMMAND}`; export r; \
40934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40935 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40936 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 40937 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40938
a90ef4bf 40939@endif target-libobjc
3866be5d 40940
a90ef4bf
JM
40941.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
40942maybe-install-strip-target-libobjc:
40943@if target-libobjc
40944maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 40945
a90ef4bf 40946install-strip-target-libobjc: installdirs
9b980aa1
RW
40947 @: $(MAKE); $(unstage)
40948 @r=`${PWD_COMMAND}`; export r; \
40949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40950 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40951 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
40952 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40953
a90ef4bf 40954@endif target-libobjc
9b980aa1 40955
56a8fe78 40956# Other targets (info, dvi, pdf, etc.)
16ae0395 40957
a90ef4bf
JM
40958.PHONY: maybe-info-target-libobjc info-target-libobjc
40959maybe-info-target-libobjc:
40960@if target-libobjc
40961maybe-info-target-libobjc: info-target-libobjc
6d389afc 40962
a90ef4bf
JM
40963info-target-libobjc: \
40964 configure-target-libobjc
0aed8855 40965 @: $(MAKE); $(unstage)
22121df0 40966 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
40967 r=`${PWD_COMMAND}`; export r; \
40968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40969 $(NORMAL_TARGET_EXPORTS) \
22121df0 40970 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
40971 for flag in $(EXTRA_TARGET_FLAGS); do \
40972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40973 done; \
a90ef4bf 40974 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
40975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40977 "RANLIB=$${RANLIB}" \
0c24b341 40978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40979 info) \
40980 || exit 1
40981
a90ef4bf 40982@endif target-libobjc
6d389afc 40983
a90ef4bf
JM
40984.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
40985maybe-dvi-target-libobjc:
40986@if target-libobjc
40987maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 40988
a90ef4bf
JM
40989dvi-target-libobjc: \
40990 configure-target-libobjc
0aed8855 40991 @: $(MAKE); $(unstage)
22121df0 40992 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 40993 r=`${PWD_COMMAND}`; export r; \
b40e3958 40994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40995 $(NORMAL_TARGET_EXPORTS) \
22121df0 40996 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
40997 for flag in $(EXTRA_TARGET_FLAGS); do \
40998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40999 done; \
a90ef4bf 41000 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41003 "RANLIB=$${RANLIB}" \
0c24b341 41004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 41005 dvi) \
4fa63067 41006 || exit 1
3866be5d 41007
a90ef4bf 41008@endif target-libobjc
3866be5d 41009
a90ef4bf
JM
41010.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
41011maybe-pdf-target-libobjc:
41012@if target-libobjc
41013maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 41014
a90ef4bf
JM
41015pdf-target-libobjc: \
41016 configure-target-libobjc
56a8fe78 41017 @: $(MAKE); $(unstage)
22121df0 41018 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
41019 r=`${PWD_COMMAND}`; export r; \
41020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41021 $(NORMAL_TARGET_EXPORTS) \
22121df0 41022 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
41023 for flag in $(EXTRA_TARGET_FLAGS); do \
41024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41025 done; \
a90ef4bf 41026 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
41027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41029 "RANLIB=$${RANLIB}" \
0c24b341 41030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41031 pdf) \
41032 || exit 1
41033
a90ef4bf 41034@endif target-libobjc
56a8fe78 41035
a90ef4bf
JM
41036.PHONY: maybe-html-target-libobjc html-target-libobjc
41037maybe-html-target-libobjc:
41038@if target-libobjc
41039maybe-html-target-libobjc: html-target-libobjc
4fa63067 41040
a90ef4bf
JM
41041html-target-libobjc: \
41042 configure-target-libobjc
0aed8855 41043 @: $(MAKE); $(unstage)
22121df0 41044 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
41045 r=`${PWD_COMMAND}`; export r; \
41046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41047 $(NORMAL_TARGET_EXPORTS) \
22121df0 41048 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41049 for flag in $(EXTRA_TARGET_FLAGS); do \
41050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41051 done; \
a90ef4bf 41052 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41055 "RANLIB=$${RANLIB}" \
0c24b341 41056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 41057 html) \
e2b9e2dc
NN
41058 || exit 1
41059
a90ef4bf 41060@endif target-libobjc
4fa63067 41061
a90ef4bf
JM
41062.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
41063maybe-TAGS-target-libobjc:
41064@if target-libobjc
41065maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 41066
a90ef4bf
JM
41067TAGS-target-libobjc: \
41068 configure-target-libobjc
0aed8855 41069 @: $(MAKE); $(unstage)
22121df0 41070 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 41071 r=`${PWD_COMMAND}`; export r; \
b40e3958 41072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41073 $(NORMAL_TARGET_EXPORTS) \
22121df0 41074 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41075 for flag in $(EXTRA_TARGET_FLAGS); do \
41076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41077 done; \
a90ef4bf 41078 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41081 "RANLIB=$${RANLIB}" \
0c24b341 41082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41083 TAGS) \
4fa63067 41084 || exit 1
3866be5d 41085
a90ef4bf 41086@endif target-libobjc
3866be5d 41087
a90ef4bf
JM
41088.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
41089maybe-install-info-target-libobjc:
41090@if target-libobjc
41091maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 41092
a90ef4bf
JM
41093install-info-target-libobjc: \
41094 configure-target-libobjc \
41095 info-target-libobjc
0aed8855 41096 @: $(MAKE); $(unstage)
22121df0 41097 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
41098 r=`${PWD_COMMAND}`; export r; \
41099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41100 $(NORMAL_TARGET_EXPORTS) \
22121df0 41101 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41102 for flag in $(EXTRA_TARGET_FLAGS); do \
41103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41104 done; \
a90ef4bf 41105 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41108 "RANLIB=$${RANLIB}" \
0c24b341 41109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41110 install-info) \
4fa63067 41111 || exit 1
3866be5d 41112
a90ef4bf 41113@endif target-libobjc
16ae0395 41114
a90ef4bf
JM
41115.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
41116maybe-install-pdf-target-libobjc:
41117@if target-libobjc
41118maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 41119
a90ef4bf
JM
41120install-pdf-target-libobjc: \
41121 configure-target-libobjc \
41122 pdf-target-libobjc
a3ca38d2 41123 @: $(MAKE); $(unstage)
22121df0 41124 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
41125 r=`${PWD_COMMAND}`; export r; \
41126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41127 $(NORMAL_TARGET_EXPORTS) \
22121df0 41128 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
41129 for flag in $(EXTRA_TARGET_FLAGS); do \
41130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41131 done; \
a90ef4bf 41132 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
41133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41135 "RANLIB=$${RANLIB}" \
0c24b341 41136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41137 install-pdf) \
41138 || exit 1
41139
a90ef4bf 41140@endif target-libobjc
a3ca38d2 41141
a90ef4bf
JM
41142.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
41143maybe-install-html-target-libobjc:
41144@if target-libobjc
41145maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 41146
a90ef4bf
JM
41147install-html-target-libobjc: \
41148 configure-target-libobjc \
41149 html-target-libobjc
108a6f8e 41150 @: $(MAKE); $(unstage)
22121df0 41151 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
41152 r=`${PWD_COMMAND}`; export r; \
41153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41154 $(NORMAL_TARGET_EXPORTS) \
22121df0 41155 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
41156 for flag in $(EXTRA_TARGET_FLAGS); do \
41157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41158 done; \
a90ef4bf 41159 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
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}" \
108a6f8e
CD
41164 install-html) \
41165 || exit 1
41166
a90ef4bf 41167@endif target-libobjc
108a6f8e 41168
a90ef4bf
JM
41169.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
41170maybe-installcheck-target-libobjc:
41171@if target-libobjc
41172maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 41173
a90ef4bf
JM
41174installcheck-target-libobjc: \
41175 configure-target-libobjc
0aed8855 41176 @: $(MAKE); $(unstage)
22121df0 41177 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 41178 r=`${PWD_COMMAND}`; export r; \
b40e3958 41179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41180 $(NORMAL_TARGET_EXPORTS) \
22121df0 41181 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41182 for flag in $(EXTRA_TARGET_FLAGS); do \
41183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41184 done; \
a90ef4bf 41185 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
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}" \
7ffa0b57 41190 installcheck) \
4fa63067 41191 || exit 1
3866be5d 41192
a90ef4bf 41193@endif target-libobjc
3866be5d 41194
a90ef4bf
JM
41195.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
41196maybe-mostlyclean-target-libobjc:
41197@if target-libobjc
41198maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 41199
a90ef4bf
JM
41200mostlyclean-target-libobjc:
41201 @: $(MAKE); $(unstage)
22121df0 41202 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41203 r=`${PWD_COMMAND}`; export r; \
41204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41205 $(NORMAL_TARGET_EXPORTS) \
22121df0 41206 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41207 for flag in $(EXTRA_TARGET_FLAGS); do \
41208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41209 done; \
41210 (cd $(TARGET_SUBDIR)/libobjc && \
41211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41213 "RANLIB=$${RANLIB}" \
41214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41215 mostlyclean) \
41216 || exit 1
4fa63067 41217
a90ef4bf 41218@endif target-libobjc
4fa63067 41219
a90ef4bf
JM
41220.PHONY: maybe-clean-target-libobjc clean-target-libobjc
41221maybe-clean-target-libobjc:
41222@if target-libobjc
41223maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 41224
a90ef4bf
JM
41225clean-target-libobjc:
41226 @: $(MAKE); $(unstage)
22121df0 41227 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41228 r=`${PWD_COMMAND}`; export r; \
41229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41230 $(NORMAL_TARGET_EXPORTS) \
22121df0 41231 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41232 for flag in $(EXTRA_TARGET_FLAGS); do \
41233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41234 done; \
41235 (cd $(TARGET_SUBDIR)/libobjc && \
41236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41238 "RANLIB=$${RANLIB}" \
41239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41240 clean) \
41241 || exit 1
4fa63067 41242
a90ef4bf 41243@endif target-libobjc
4fa63067 41244
a90ef4bf
JM
41245.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
41246maybe-distclean-target-libobjc:
41247@if target-libobjc
41248maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 41249
a90ef4bf
JM
41250distclean-target-libobjc:
41251 @: $(MAKE); $(unstage)
22121df0 41252 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41253 r=`${PWD_COMMAND}`; export r; \
41254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41255 $(NORMAL_TARGET_EXPORTS) \
22121df0 41256 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41257 for flag in $(EXTRA_TARGET_FLAGS); do \
41258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41259 done; \
41260 (cd $(TARGET_SUBDIR)/libobjc && \
41261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41263 "RANLIB=$${RANLIB}" \
41264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41265 distclean) \
41266 || exit 1
4fa63067 41267
a90ef4bf 41268@endif target-libobjc
4fa63067 41269
a90ef4bf
JM
41270.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
41271maybe-maintainer-clean-target-libobjc:
41272@if target-libobjc
41273maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 41274
a90ef4bf
JM
41275maintainer-clean-target-libobjc:
41276 @: $(MAKE); $(unstage)
22121df0 41277 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41278 r=`${PWD_COMMAND}`; export r; \
41279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41280 $(NORMAL_TARGET_EXPORTS) \
22121df0 41281 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41282 for flag in $(EXTRA_TARGET_FLAGS); do \
41283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41284 done; \
41285 (cd $(TARGET_SUBDIR)/libobjc && \
41286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41288 "RANLIB=$${RANLIB}" \
41289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41290 maintainer-clean) \
41291 || exit 1
4fa63067 41292
a90ef4bf 41293@endif target-libobjc
4fa63067
NN
41294
41295
4fa63067 41296
4fa63067 41297
a7254363 41298
a90ef4bf
JM
41299.PHONY: configure-target-libgo maybe-configure-target-libgo
41300maybe-configure-target-libgo:
4f0ef2d8 41301@if gcc-bootstrap
a90ef4bf 41302configure-target-libgo: stage_current
4f0ef2d8 41303@endif gcc-bootstrap
a90ef4bf
JM
41304@if target-libgo
41305maybe-configure-target-libgo: configure-target-libgo
41306configure-target-libgo:
0aed8855
PB
41307 @: $(MAKE); $(unstage)
41308 @r=`${PWD_COMMAND}`; export r; \
41309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41310 echo "Checking multilib configuration for libgo..."; \
22121df0
L
41311 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
41312 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41313 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
41314 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
41315 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 41316 else \
a90ef4bf
JM
41317 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
41318 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
41319 fi; \
41320 else \
a90ef4bf 41321 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 41322 fi; \
a90ef4bf 41323 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 41324 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 41325 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41326 echo Configuring in $(TARGET_SUBDIR)/libgo; \
41327 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 41328 case $(srcdir) in \
b00612cc 41329 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41330 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 41331 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 41332 esac; \
1b6c0831 41333 module_srcdir=libgo; \
4fa63067 41334 rm -f no-such-file || : ; \
1b6c0831
L
41335 CONFIG_SITE=no-such-file $(SHELL) \
41336 $$s/$$module_srcdir/configure \
41337 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41338 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41339 --target=${target_alias} \
e2b9e2dc 41340 || exit 1
a90ef4bf 41341@endif target-libgo
e2b9e2dc 41342
a7254363
PB
41343
41344
d545f33b
PB
41345
41346
a90ef4bf
JM
41347.PHONY: all-target-libgo maybe-all-target-libgo
41348maybe-all-target-libgo:
4f0ef2d8 41349@if gcc-bootstrap
a90ef4bf 41350all-target-libgo: stage_current
4f0ef2d8 41351@endif gcc-bootstrap
a90ef4bf
JM
41352@if target-libgo
41353TARGET-target-libgo=all
41354maybe-all-target-libgo: all-target-libgo
41355all-target-libgo: configure-target-libgo
0aed8855 41356 @: $(MAKE); $(unstage)
b40e3958
L
41357 @r=`${PWD_COMMAND}`; export r; \
41358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41359 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41360 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 41361 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41362 $(TARGET-target-libgo))
41363@endif target-libgo
3866be5d 41364
a7254363
PB
41365
41366
d545f33b
PB
41367
41368
a90ef4bf
JM
41369.PHONY: check-target-libgo maybe-check-target-libgo
41370maybe-check-target-libgo:
41371@if target-libgo
41372maybe-check-target-libgo: check-target-libgo
3866be5d 41373
a90ef4bf 41374check-target-libgo:
0aed8855 41375 @: $(MAKE); $(unstage)
4fa63067
NN
41376 @r=`${PWD_COMMAND}`; export r; \
41377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41378 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41379 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 41380 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 41381
a90ef4bf 41382@endif target-libgo
3866be5d 41383
a90ef4bf
JM
41384.PHONY: install-target-libgo maybe-install-target-libgo
41385maybe-install-target-libgo:
41386@if target-libgo
41387maybe-install-target-libgo: install-target-libgo
16ae0395 41388
a90ef4bf 41389install-target-libgo: installdirs
0aed8855 41390 @: $(MAKE); $(unstage)
4fa63067
NN
41391 @r=`${PWD_COMMAND}`; export r; \
41392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41393 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41394 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 41395 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41396
a90ef4bf 41397@endif target-libgo
3866be5d 41398
a90ef4bf
JM
41399.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
41400maybe-install-strip-target-libgo:
41401@if target-libgo
41402maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 41403
a90ef4bf 41404install-strip-target-libgo: installdirs
9b980aa1
RW
41405 @: $(MAKE); $(unstage)
41406 @r=`${PWD_COMMAND}`; export r; \
41407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41408 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41409 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
41410 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41411
a90ef4bf 41412@endif target-libgo
9b980aa1 41413
56a8fe78 41414# Other targets (info, dvi, pdf, etc.)
4fa63067 41415
a90ef4bf
JM
41416.PHONY: maybe-info-target-libgo info-target-libgo
41417maybe-info-target-libgo:
41418@if target-libgo
41419maybe-info-target-libgo: info-target-libgo
4fa63067 41420
a90ef4bf
JM
41421info-target-libgo: \
41422 configure-target-libgo
0aed8855 41423 @: $(MAKE); $(unstage)
22121df0 41424 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41425 r=`${PWD_COMMAND}`; export r; \
41426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41427 $(NORMAL_TARGET_EXPORTS) \
22121df0 41428 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41429 for flag in $(EXTRA_TARGET_FLAGS); do \
41430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41431 done; \
a90ef4bf 41432 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41435 "RANLIB=$${RANLIB}" \
0c24b341 41436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41437 info) \
e2b9e2dc
NN
41438 || exit 1
41439
a90ef4bf 41440@endif target-libgo
3866be5d 41441
a90ef4bf
JM
41442.PHONY: maybe-dvi-target-libgo dvi-target-libgo
41443maybe-dvi-target-libgo:
41444@if target-libgo
41445maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 41446
a90ef4bf
JM
41447dvi-target-libgo: \
41448 configure-target-libgo
0aed8855 41449 @: $(MAKE); $(unstage)
22121df0 41450 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41451 r=`${PWD_COMMAND}`; export r; \
b40e3958 41452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41453 $(NORMAL_TARGET_EXPORTS) \
22121df0 41454 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41455 for flag in $(EXTRA_TARGET_FLAGS); do \
41456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41457 done; \
a90ef4bf 41458 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41461 "RANLIB=$${RANLIB}" \
0c24b341 41462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41463 dvi) \
4fa63067 41464 || exit 1
3866be5d 41465
a90ef4bf 41466@endif target-libgo
3866be5d 41467
a90ef4bf
JM
41468.PHONY: maybe-pdf-target-libgo pdf-target-libgo
41469maybe-pdf-target-libgo:
41470@if target-libgo
41471maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 41472
a90ef4bf
JM
41473pdf-target-libgo: \
41474 configure-target-libgo
56a8fe78 41475 @: $(MAKE); $(unstage)
22121df0 41476 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
41477 r=`${PWD_COMMAND}`; export r; \
41478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41479 $(NORMAL_TARGET_EXPORTS) \
22121df0 41480 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
41481 for flag in $(EXTRA_TARGET_FLAGS); do \
41482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41483 done; \
a90ef4bf 41484 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
41485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41487 "RANLIB=$${RANLIB}" \
0c24b341 41488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41489 pdf) \
41490 || exit 1
41491
a90ef4bf 41492@endif target-libgo
56a8fe78 41493
a90ef4bf
JM
41494.PHONY: maybe-html-target-libgo html-target-libgo
41495maybe-html-target-libgo:
41496@if target-libgo
41497maybe-html-target-libgo: html-target-libgo
6d389afc 41498
a90ef4bf
JM
41499html-target-libgo: \
41500 configure-target-libgo
0aed8855 41501 @: $(MAKE); $(unstage)
22121df0 41502 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
41503 r=`${PWD_COMMAND}`; export r; \
41504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41505 $(NORMAL_TARGET_EXPORTS) \
22121df0 41506 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
41507 for flag in $(EXTRA_TARGET_FLAGS); do \
41508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41509 done; \
a90ef4bf 41510 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
41511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41513 "RANLIB=$${RANLIB}" \
0c24b341 41514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41515 html) \
41516 || exit 1
41517
a90ef4bf 41518@endif target-libgo
6d389afc 41519
a90ef4bf
JM
41520.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
41521maybe-TAGS-target-libgo:
41522@if target-libgo
41523maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 41524
a90ef4bf
JM
41525TAGS-target-libgo: \
41526 configure-target-libgo
0aed8855 41527 @: $(MAKE); $(unstage)
22121df0 41528 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41529 r=`${PWD_COMMAND}`; export r; \
b40e3958 41530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41531 $(NORMAL_TARGET_EXPORTS) \
22121df0 41532 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41533 for flag in $(EXTRA_TARGET_FLAGS); do \
41534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41535 done; \
a90ef4bf 41536 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41539 "RANLIB=$${RANLIB}" \
0c24b341 41540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41541 TAGS) \
4fa63067 41542 || exit 1
3866be5d 41543
a90ef4bf 41544@endif target-libgo
3866be5d 41545
a90ef4bf
JM
41546.PHONY: maybe-install-info-target-libgo install-info-target-libgo
41547maybe-install-info-target-libgo:
41548@if target-libgo
41549maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 41550
a90ef4bf
JM
41551install-info-target-libgo: \
41552 configure-target-libgo \
41553 info-target-libgo
0aed8855 41554 @: $(MAKE); $(unstage)
22121df0 41555 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41556 r=`${PWD_COMMAND}`; export r; \
41557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41558 $(NORMAL_TARGET_EXPORTS) \
22121df0 41559 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41560 for flag in $(EXTRA_TARGET_FLAGS); do \
41561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41562 done; \
a90ef4bf 41563 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41566 "RANLIB=$${RANLIB}" \
0c24b341 41567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41568 install-info) \
e2b9e2dc
NN
41569 || exit 1
41570
a90ef4bf 41571@endif target-libgo
4fa63067 41572
a90ef4bf
JM
41573.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
41574maybe-install-pdf-target-libgo:
41575@if target-libgo
41576maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 41577
a90ef4bf
JM
41578install-pdf-target-libgo: \
41579 configure-target-libgo \
41580 pdf-target-libgo
a3ca38d2 41581 @: $(MAKE); $(unstage)
22121df0 41582 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
41583 r=`${PWD_COMMAND}`; export r; \
41584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41585 $(NORMAL_TARGET_EXPORTS) \
22121df0 41586 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
41587 for flag in $(EXTRA_TARGET_FLAGS); do \
41588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41589 done; \
a90ef4bf 41590 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
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}" \
a3ca38d2
DD
41595 install-pdf) \
41596 || exit 1
41597
a90ef4bf 41598@endif target-libgo
a3ca38d2 41599
a90ef4bf
JM
41600.PHONY: maybe-install-html-target-libgo install-html-target-libgo
41601maybe-install-html-target-libgo:
41602@if target-libgo
41603maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 41604
a90ef4bf
JM
41605install-html-target-libgo: \
41606 configure-target-libgo \
41607 html-target-libgo
108a6f8e 41608 @: $(MAKE); $(unstage)
22121df0 41609 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
41610 r=`${PWD_COMMAND}`; export r; \
41611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41612 $(NORMAL_TARGET_EXPORTS) \
22121df0 41613 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
41614 for flag in $(EXTRA_TARGET_FLAGS); do \
41615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41616 done; \
a90ef4bf 41617 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
41618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41620 "RANLIB=$${RANLIB}" \
0c24b341 41621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41622 install-html) \
41623 || exit 1
41624
a90ef4bf 41625@endif target-libgo
108a6f8e 41626
a90ef4bf
JM
41627.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
41628maybe-installcheck-target-libgo:
41629@if target-libgo
41630maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 41631
a90ef4bf
JM
41632installcheck-target-libgo: \
41633 configure-target-libgo
0aed8855 41634 @: $(MAKE); $(unstage)
22121df0 41635 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41636 r=`${PWD_COMMAND}`; export r; \
b40e3958 41637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41638 $(NORMAL_TARGET_EXPORTS) \
22121df0 41639 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41640 for flag in $(EXTRA_TARGET_FLAGS); do \
41641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41642 done; \
a90ef4bf 41643 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41646 "RANLIB=$${RANLIB}" \
0c24b341 41647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41648 installcheck) \
4fa63067 41649 || exit 1
3866be5d 41650
a90ef4bf 41651@endif target-libgo
3866be5d 41652
a90ef4bf
JM
41653.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
41654maybe-mostlyclean-target-libgo:
41655@if target-libgo
41656maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 41657
a90ef4bf 41658mostlyclean-target-libgo:
0aed8855 41659 @: $(MAKE); $(unstage)
22121df0 41660 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41661 r=`${PWD_COMMAND}`; export r; \
b40e3958 41662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41663 $(NORMAL_TARGET_EXPORTS) \
22121df0 41664 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41665 for flag in $(EXTRA_TARGET_FLAGS); do \
41666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41667 done; \
a90ef4bf 41668 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41671 "RANLIB=$${RANLIB}" \
0c24b341 41672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41673 mostlyclean) \
4fa63067 41674 || exit 1
3866be5d 41675
a90ef4bf 41676@endif target-libgo
3866be5d 41677
a90ef4bf
JM
41678.PHONY: maybe-clean-target-libgo clean-target-libgo
41679maybe-clean-target-libgo:
41680@if target-libgo
41681maybe-clean-target-libgo: clean-target-libgo
16ae0395 41682
a90ef4bf 41683clean-target-libgo:
0aed8855 41684 @: $(MAKE); $(unstage)
22121df0 41685 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41686 r=`${PWD_COMMAND}`; export r; \
b40e3958 41687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41688 $(NORMAL_TARGET_EXPORTS) \
22121df0 41689 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41690 for flag in $(EXTRA_TARGET_FLAGS); do \
41691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41692 done; \
a90ef4bf 41693 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41696 "RANLIB=$${RANLIB}" \
0c24b341 41697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41698 clean) \
4fa63067 41699 || exit 1
3866be5d 41700
a90ef4bf 41701@endif target-libgo
3866be5d 41702
a90ef4bf
JM
41703.PHONY: maybe-distclean-target-libgo distclean-target-libgo
41704maybe-distclean-target-libgo:
41705@if target-libgo
41706maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 41707
a90ef4bf 41708distclean-target-libgo:
0aed8855 41709 @: $(MAKE); $(unstage)
22121df0 41710 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41711 r=`${PWD_COMMAND}`; export r; \
41712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41713 $(NORMAL_TARGET_EXPORTS) \
22121df0 41714 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41715 for flag in $(EXTRA_TARGET_FLAGS); do \
41716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41717 done; \
a90ef4bf 41718 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41721 "RANLIB=$${RANLIB}" \
0c24b341 41722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41723 distclean) \
e2b9e2dc
NN
41724 || exit 1
41725
a90ef4bf 41726@endif target-libgo
3866be5d 41727
a90ef4bf
JM
41728.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
41729maybe-maintainer-clean-target-libgo:
41730@if target-libgo
41731maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 41732
a90ef4bf 41733maintainer-clean-target-libgo:
0aed8855 41734 @: $(MAKE); $(unstage)
22121df0 41735 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41736 r=`${PWD_COMMAND}`; export r; \
b40e3958 41737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41738 $(NORMAL_TARGET_EXPORTS) \
22121df0 41739 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41740 for flag in $(EXTRA_TARGET_FLAGS); do \
41741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41742 done; \
a90ef4bf 41743 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41746 "RANLIB=$${RANLIB}" \
0c24b341 41747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41748 maintainer-clean) \
4fa63067 41749 || exit 1
3866be5d 41750
a90ef4bf 41751@endif target-libgo
3866be5d 41752
16ae0395 41753
3866be5d 41754
e90269c8 41755
a7254363 41756
a90ef4bf
JM
41757.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
41758maybe-configure-target-libtermcap:
4f0ef2d8 41759@if gcc-bootstrap
a90ef4bf 41760configure-target-libtermcap: stage_current
4f0ef2d8 41761@endif gcc-bootstrap
a90ef4bf
JM
41762@if target-libtermcap
41763maybe-configure-target-libtermcap: configure-target-libtermcap
41764configure-target-libtermcap:
0aed8855
PB
41765 @: $(MAKE); $(unstage)
41766 @r=`${PWD_COMMAND}`; export r; \
41767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41768 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
41769 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
41770 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41771 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41772 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41773 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 41774 else \
a90ef4bf
JM
41775 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
41776 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
41777 fi; \
41778 else \
a90ef4bf 41779 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 41780 fi; \
a90ef4bf 41781 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 41782 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 41783 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41784 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
41785 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 41786 case $(srcdir) in \
b00612cc 41787 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41788 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 41789 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41790 esac; \
1b6c0831 41791 module_srcdir=libtermcap; \
4fa63067 41792 rm -f no-such-file || : ; \
1b6c0831
L
41793 CONFIG_SITE=no-such-file $(SHELL) \
41794 $$s/$$module_srcdir/configure \
41795 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41796 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41797 --target=${target_alias} \
e2b9e2dc 41798 || exit 1
a90ef4bf 41799@endif target-libtermcap
e2b9e2dc 41800
a7254363
PB
41801
41802
d545f33b
PB
41803
41804
a90ef4bf
JM
41805.PHONY: all-target-libtermcap maybe-all-target-libtermcap
41806maybe-all-target-libtermcap:
4f0ef2d8 41807@if gcc-bootstrap
a90ef4bf 41808all-target-libtermcap: stage_current
4f0ef2d8 41809@endif gcc-bootstrap
a90ef4bf
JM
41810@if target-libtermcap
41811TARGET-target-libtermcap=all
41812maybe-all-target-libtermcap: all-target-libtermcap
41813all-target-libtermcap: configure-target-libtermcap
0aed8855 41814 @: $(MAKE); $(unstage)
b40e3958
L
41815 @r=`${PWD_COMMAND}`; export r; \
41816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41817 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41818 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 41819 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41820 $(TARGET-target-libtermcap))
41821@endif target-libtermcap
e393202e 41822
a7254363
PB
41823
41824
d545f33b
PB
41825
41826
a90ef4bf
JM
41827.PHONY: check-target-libtermcap maybe-check-target-libtermcap
41828maybe-check-target-libtermcap:
41829@if target-libtermcap
41830maybe-check-target-libtermcap: check-target-libtermcap
e393202e 41831
4fa63067 41832# Dummy target for uncheckable module.
a90ef4bf 41833check-target-libtermcap:
e393202e 41834
a90ef4bf 41835@endif target-libtermcap
e393202e 41836
a90ef4bf
JM
41837.PHONY: install-target-libtermcap maybe-install-target-libtermcap
41838maybe-install-target-libtermcap:
41839@if target-libtermcap
41840maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 41841
a90ef4bf 41842install-target-libtermcap: installdirs
0aed8855 41843 @: $(MAKE); $(unstage)
b40e3958
L
41844 @r=`${PWD_COMMAND}`; export r; \
41845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41846 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41847 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 41848 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 41849
a90ef4bf 41850@endif target-libtermcap
56a8fe78 41851
a90ef4bf
JM
41852.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
41853maybe-install-strip-target-libtermcap:
41854@if target-libtermcap
41855maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 41856
a90ef4bf 41857install-strip-target-libtermcap: installdirs
0aed8855 41858 @: $(MAKE); $(unstage)
a90ef4bf 41859 @r=`${PWD_COMMAND}`; export r; \
6d389afc 41860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41861 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41862 (cd $(TARGET_SUBDIR)/libtermcap && \
41863 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 41864
a90ef4bf 41865@endif target-libtermcap
6d389afc 41866
a90ef4bf 41867# Other targets (info, dvi, pdf, etc.)
16ae0395 41868
a90ef4bf
JM
41869.PHONY: maybe-info-target-libtermcap info-target-libtermcap
41870maybe-info-target-libtermcap:
41871@if target-libtermcap
41872maybe-info-target-libtermcap: info-target-libtermcap
41873
41874info-target-libtermcap: \
41875 configure-target-libtermcap
0aed8855 41876 @: $(MAKE); $(unstage)
22121df0 41877 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 41878 r=`${PWD_COMMAND}`; export r; \
b40e3958 41879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41880 $(NORMAL_TARGET_EXPORTS) \
22121df0 41881 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41882 for flag in $(EXTRA_TARGET_FLAGS); do \
41883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41884 done; \
a90ef4bf 41885 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41888 "RANLIB=$${RANLIB}" \
0c24b341 41889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41890 info) \
4fa63067 41891 || exit 1
ce5b542e 41892
a90ef4bf 41893@endif target-libtermcap
ce5b542e 41894
a90ef4bf
JM
41895.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
41896maybe-dvi-target-libtermcap:
41897@if target-libtermcap
41898maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 41899
a90ef4bf
JM
41900dvi-target-libtermcap: \
41901 configure-target-libtermcap
0aed8855 41902 @: $(MAKE); $(unstage)
22121df0 41903 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
41904 r=`${PWD_COMMAND}`; export r; \
41905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41906 $(NORMAL_TARGET_EXPORTS) \
22121df0 41907 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41908 for flag in $(EXTRA_TARGET_FLAGS); do \
41909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41910 done; \
a90ef4bf 41911 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41914 "RANLIB=$${RANLIB}" \
0c24b341 41915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41916 dvi) \
e2b9e2dc
NN
41917 || exit 1
41918
a90ef4bf 41919@endif target-libtermcap
e393202e 41920
a90ef4bf
JM
41921.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
41922maybe-pdf-target-libtermcap:
41923@if target-libtermcap
41924maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 41925
a90ef4bf
JM
41926pdf-target-libtermcap: \
41927 configure-target-libtermcap
a3ca38d2 41928 @: $(MAKE); $(unstage)
22121df0 41929 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
41930 r=`${PWD_COMMAND}`; export r; \
41931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41932 $(NORMAL_TARGET_EXPORTS) \
22121df0 41933 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
41934 for flag in $(EXTRA_TARGET_FLAGS); do \
41935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41936 done; \
a90ef4bf 41937 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
41938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41940 "RANLIB=$${RANLIB}" \
0c24b341 41941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41942 pdf) \
a3ca38d2
DD
41943 || exit 1
41944
a90ef4bf 41945@endif target-libtermcap
a3ca38d2 41946
a90ef4bf
JM
41947.PHONY: maybe-html-target-libtermcap html-target-libtermcap
41948maybe-html-target-libtermcap:
41949@if target-libtermcap
41950maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 41951
a90ef4bf
JM
41952html-target-libtermcap: \
41953 configure-target-libtermcap
108a6f8e 41954 @: $(MAKE); $(unstage)
22121df0 41955 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
41956 r=`${PWD_COMMAND}`; export r; \
41957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41958 $(NORMAL_TARGET_EXPORTS) \
22121df0 41959 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
41960 for flag in $(EXTRA_TARGET_FLAGS); do \
41961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41962 done; \
a90ef4bf 41963 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
41964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41966 "RANLIB=$${RANLIB}" \
0c24b341 41967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41968 html) \
108a6f8e
CD
41969 || exit 1
41970
a90ef4bf 41971@endif target-libtermcap
108a6f8e 41972
a90ef4bf
JM
41973.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
41974maybe-TAGS-target-libtermcap:
41975@if target-libtermcap
41976maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 41977
a90ef4bf
JM
41978TAGS-target-libtermcap: \
41979 configure-target-libtermcap
0aed8855 41980 @: $(MAKE); $(unstage)
22121df0 41981 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
41982 r=`${PWD_COMMAND}`; export r; \
41983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41984 $(NORMAL_TARGET_EXPORTS) \
22121df0 41985 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41986 for flag in $(EXTRA_TARGET_FLAGS); do \
41987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41988 done; \
a90ef4bf 41989 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41992 "RANLIB=$${RANLIB}" \
0c24b341 41993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41994 TAGS) \
4fa63067 41995 || exit 1
3866be5d 41996
a90ef4bf 41997@endif target-libtermcap
3866be5d 41998
a90ef4bf
JM
41999.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
42000maybe-install-info-target-libtermcap:
42001@if target-libtermcap
42002maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 42003
a90ef4bf
JM
42004install-info-target-libtermcap: \
42005 configure-target-libtermcap \
42006 info-target-libtermcap
0aed8855 42007 @: $(MAKE); $(unstage)
22121df0 42008 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 42009 r=`${PWD_COMMAND}`; export r; \
b40e3958 42010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42011 $(NORMAL_TARGET_EXPORTS) \
22121df0 42012 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42013 for flag in $(EXTRA_TARGET_FLAGS); do \
42014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42015 done; \
a90ef4bf 42016 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42019 "RANLIB=$${RANLIB}" \
0c24b341 42020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42021 install-info) \
4fa63067 42022 || exit 1
e393202e 42023
a90ef4bf 42024@endif target-libtermcap
3866be5d 42025
a90ef4bf
JM
42026.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
42027maybe-install-pdf-target-libtermcap:
42028@if target-libtermcap
42029maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 42030
a90ef4bf
JM
42031install-pdf-target-libtermcap: \
42032 configure-target-libtermcap \
42033 pdf-target-libtermcap
0aed8855 42034 @: $(MAKE); $(unstage)
22121df0 42035 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
42036 r=`${PWD_COMMAND}`; export r; \
42037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42038 $(NORMAL_TARGET_EXPORTS) \
22121df0 42039 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42040 for flag in $(EXTRA_TARGET_FLAGS); do \
42041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42042 done; \
a90ef4bf 42043 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42046 "RANLIB=$${RANLIB}" \
0c24b341 42047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42048 install-pdf) \
e2b9e2dc
NN
42049 || exit 1
42050
a90ef4bf 42051@endif target-libtermcap
e393202e 42052
a90ef4bf
JM
42053.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
42054maybe-install-html-target-libtermcap:
42055@if target-libtermcap
42056maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 42057
a90ef4bf
JM
42058install-html-target-libtermcap: \
42059 configure-target-libtermcap \
42060 html-target-libtermcap
0aed8855 42061 @: $(MAKE); $(unstage)
22121df0 42062 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
42063 r=`${PWD_COMMAND}`; export r; \
42064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42065 $(NORMAL_TARGET_EXPORTS) \
22121df0 42066 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42067 for flag in $(EXTRA_TARGET_FLAGS); do \
42068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42069 done; \
a90ef4bf 42070 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42073 "RANLIB=$${RANLIB}" \
0c24b341 42074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42075 install-html) \
4fa63067 42076 || exit 1
3866be5d 42077
a90ef4bf 42078@endif target-libtermcap
3866be5d 42079
a90ef4bf
JM
42080.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
42081maybe-installcheck-target-libtermcap:
42082@if target-libtermcap
42083maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 42084
a90ef4bf
JM
42085installcheck-target-libtermcap: \
42086 configure-target-libtermcap
0aed8855 42087 @: $(MAKE); $(unstage)
22121df0 42088 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 42089 r=`${PWD_COMMAND}`; export r; \
b40e3958 42090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42091 $(NORMAL_TARGET_EXPORTS) \
22121df0 42092 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42093 for flag in $(EXTRA_TARGET_FLAGS); do \
42094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42095 done; \
a90ef4bf 42096 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42099 "RANLIB=$${RANLIB}" \
0c24b341 42100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42101 installcheck) \
4fa63067 42102 || exit 1
3866be5d 42103
a90ef4bf
JM
42104@endif target-libtermcap
42105
42106.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
42107maybe-mostlyclean-target-libtermcap:
42108@if target-libtermcap
42109maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
42110
42111# libtermcap doesn't support mostlyclean.
42112mostlyclean-target-libtermcap:
42113
42114@endif target-libtermcap
3866be5d 42115
a90ef4bf
JM
42116.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
42117maybe-clean-target-libtermcap:
42118@if target-libtermcap
42119maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 42120
a90ef4bf
JM
42121# libtermcap doesn't support clean.
42122clean-target-libtermcap:
15723a45 42123
a90ef4bf 42124@endif target-libtermcap
e90269c8 42125
a90ef4bf
JM
42126.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
42127maybe-distclean-target-libtermcap:
42128@if target-libtermcap
42129maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 42130
a90ef4bf
JM
42131# libtermcap doesn't support distclean.
42132distclean-target-libtermcap:
42133
42134@endif target-libtermcap
42135
42136.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
42137maybe-maintainer-clean-target-libtermcap:
42138@if target-libtermcap
42139maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
42140
42141# libtermcap doesn't support maintainer-clean.
42142maintainer-clean-target-libtermcap:
42143
42144@endif target-libtermcap
42145
42146
42147
42148
42149
42150.PHONY: configure-target-winsup maybe-configure-target-winsup
42151maybe-configure-target-winsup:
4f0ef2d8 42152@if gcc-bootstrap
a90ef4bf 42153configure-target-winsup: stage_current
4f0ef2d8 42154@endif gcc-bootstrap
a90ef4bf
JM
42155@if target-winsup
42156maybe-configure-target-winsup: configure-target-winsup
42157configure-target-winsup:
0aed8855
PB
42158 @: $(MAKE); $(unstage)
42159 @r=`${PWD_COMMAND}`; export r; \
42160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42161 echo "Checking multilib configuration for winsup..."; \
22121df0
L
42162 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
42163 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42164 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
42165 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
42166 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 42167 else \
a90ef4bf
JM
42168 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
42169 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
42170 fi; \
42171 else \
a90ef4bf 42172 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 42173 fi; \
a90ef4bf 42174 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 42175 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 42176 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42177 echo Configuring in $(TARGET_SUBDIR)/winsup; \
42178 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 42179 case $(srcdir) in \
b00612cc 42180 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42181 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 42182 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42183 esac; \
1b6c0831 42184 module_srcdir=winsup; \
bba45b8b 42185 rm -f no-such-file || : ; \
1b6c0831
L
42186 CONFIG_SITE=no-such-file $(SHELL) \
42187 $$s/$$module_srcdir/configure \
42188 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42189 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42190 --target=${target_alias} \
bba45b8b 42191 || exit 1
a90ef4bf 42192@endif target-winsup
e393202e 42193
a7254363
PB
42194
42195
d545f33b
PB
42196
42197
a90ef4bf
JM
42198.PHONY: all-target-winsup maybe-all-target-winsup
42199maybe-all-target-winsup:
4f0ef2d8 42200@if gcc-bootstrap
a90ef4bf 42201all-target-winsup: stage_current
4f0ef2d8 42202@endif gcc-bootstrap
a90ef4bf
JM
42203@if target-winsup
42204TARGET-target-winsup=all
42205maybe-all-target-winsup: all-target-winsup
42206all-target-winsup: configure-target-winsup
0aed8855 42207 @: $(MAKE); $(unstage)
b40e3958
L
42208 @r=`${PWD_COMMAND}`; export r; \
42209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42210 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42211 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 42212 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42213 $(TARGET-target-winsup))
42214@endif target-winsup
e393202e 42215
a7254363
PB
42216
42217
d545f33b
PB
42218
42219
a90ef4bf
JM
42220.PHONY: check-target-winsup maybe-check-target-winsup
42221maybe-check-target-winsup:
42222@if target-winsup
42223maybe-check-target-winsup: check-target-winsup
16ae0395 42224
a90ef4bf 42225check-target-winsup:
0aed8855 42226 @: $(MAKE); $(unstage)
b40e3958
L
42227 @r=`${PWD_COMMAND}`; export r; \
42228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42229 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42230 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 42231 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 42232
a90ef4bf 42233@endif target-winsup
e393202e 42234
a90ef4bf
JM
42235.PHONY: install-target-winsup maybe-install-target-winsup
42236maybe-install-target-winsup:
42237@if target-winsup
42238maybe-install-target-winsup: install-target-winsup
4fa63067 42239
a90ef4bf 42240install-target-winsup: installdirs
0aed8855 42241 @: $(MAKE); $(unstage)
4fa63067
NN
42242 @r=`${PWD_COMMAND}`; export r; \
42243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42244 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42245 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 42246 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42247
a90ef4bf 42248@endif target-winsup
4fa63067 42249
a90ef4bf
JM
42250.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
42251maybe-install-strip-target-winsup:
42252@if target-winsup
42253maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 42254
a90ef4bf 42255install-strip-target-winsup: installdirs
9b980aa1
RW
42256 @: $(MAKE); $(unstage)
42257 @r=`${PWD_COMMAND}`; export r; \
42258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42259 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42260 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
42261 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42262
a90ef4bf 42263@endif target-winsup
9b980aa1 42264
56a8fe78 42265# Other targets (info, dvi, pdf, etc.)
4fa63067 42266
a90ef4bf
JM
42267.PHONY: maybe-info-target-winsup info-target-winsup
42268maybe-info-target-winsup:
42269@if target-winsup
42270maybe-info-target-winsup: info-target-winsup
4fa63067 42271
a90ef4bf
JM
42272info-target-winsup: \
42273 configure-target-winsup
0aed8855 42274 @: $(MAKE); $(unstage)
22121df0 42275 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42276 r=`${PWD_COMMAND}`; export r; \
42277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42278 $(NORMAL_TARGET_EXPORTS) \
22121df0 42279 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42280 for flag in $(EXTRA_TARGET_FLAGS); do \
42281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42282 done; \
a90ef4bf 42283 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42286 "RANLIB=$${RANLIB}" \
0c24b341 42287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42288 info) \
4fa63067
NN
42289 || exit 1
42290
a90ef4bf 42291@endif target-winsup
4fa63067 42292
a90ef4bf
JM
42293.PHONY: maybe-dvi-target-winsup dvi-target-winsup
42294maybe-dvi-target-winsup:
42295@if target-winsup
42296maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 42297
a90ef4bf
JM
42298dvi-target-winsup: \
42299 configure-target-winsup
0aed8855 42300 @: $(MAKE); $(unstage)
22121df0 42301 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42302 r=`${PWD_COMMAND}`; export r; \
42303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42304 $(NORMAL_TARGET_EXPORTS) \
22121df0 42305 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42306 for flag in $(EXTRA_TARGET_FLAGS); do \
42307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42308 done; \
a90ef4bf 42309 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42312 "RANLIB=$${RANLIB}" \
0c24b341 42313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42314 dvi) \
4fa63067
NN
42315 || exit 1
42316
a90ef4bf 42317@endif target-winsup
4fa63067 42318
a90ef4bf
JM
42319.PHONY: maybe-pdf-target-winsup pdf-target-winsup
42320maybe-pdf-target-winsup:
42321@if target-winsup
42322maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 42323
a90ef4bf
JM
42324pdf-target-winsup: \
42325 configure-target-winsup
56a8fe78 42326 @: $(MAKE); $(unstage)
22121df0 42327 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
42328 r=`${PWD_COMMAND}`; export r; \
42329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42330 $(NORMAL_TARGET_EXPORTS) \
22121df0 42331 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
42332 for flag in $(EXTRA_TARGET_FLAGS); do \
42333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42334 done; \
a90ef4bf 42335 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
42336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42338 "RANLIB=$${RANLIB}" \
0c24b341 42339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42340 pdf) \
42341 || exit 1
42342
a90ef4bf 42343@endif target-winsup
56a8fe78 42344
a90ef4bf
JM
42345.PHONY: maybe-html-target-winsup html-target-winsup
42346maybe-html-target-winsup:
42347@if target-winsup
42348maybe-html-target-winsup: html-target-winsup
6d389afc 42349
a90ef4bf
JM
42350html-target-winsup: \
42351 configure-target-winsup
0aed8855 42352 @: $(MAKE); $(unstage)
22121df0 42353 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
42354 r=`${PWD_COMMAND}`; export r; \
42355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42356 $(NORMAL_TARGET_EXPORTS) \
22121df0 42357 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
42358 for flag in $(EXTRA_TARGET_FLAGS); do \
42359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42360 done; \
a90ef4bf 42361 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
42362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42364 "RANLIB=$${RANLIB}" \
0c24b341 42365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42366 html) \
42367 || exit 1
42368
a90ef4bf 42369@endif target-winsup
6d389afc 42370
a90ef4bf
JM
42371.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
42372maybe-TAGS-target-winsup:
42373@if target-winsup
42374maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 42375
a90ef4bf
JM
42376TAGS-target-winsup: \
42377 configure-target-winsup
0aed8855 42378 @: $(MAKE); $(unstage)
22121df0 42379 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42380 r=`${PWD_COMMAND}`; export r; \
42381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42382 $(NORMAL_TARGET_EXPORTS) \
22121df0 42383 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42384 for flag in $(EXTRA_TARGET_FLAGS); do \
42385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42386 done; \
a90ef4bf 42387 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42390 "RANLIB=$${RANLIB}" \
0c24b341 42391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42392 TAGS) \
4fa63067
NN
42393 || exit 1
42394
a90ef4bf 42395@endif target-winsup
4fa63067 42396
a90ef4bf
JM
42397.PHONY: maybe-install-info-target-winsup install-info-target-winsup
42398maybe-install-info-target-winsup:
42399@if target-winsup
42400maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 42401
a90ef4bf
JM
42402install-info-target-winsup: \
42403 configure-target-winsup \
42404 info-target-winsup
0aed8855 42405 @: $(MAKE); $(unstage)
22121df0 42406 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42407 r=`${PWD_COMMAND}`; export r; \
42408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42409 $(NORMAL_TARGET_EXPORTS) \
22121df0 42410 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42411 for flag in $(EXTRA_TARGET_FLAGS); do \
42412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42413 done; \
a90ef4bf 42414 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42417 "RANLIB=$${RANLIB}" \
0c24b341 42418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42419 install-info) \
4fa63067
NN
42420 || exit 1
42421
a90ef4bf 42422@endif target-winsup
4fa63067 42423
a90ef4bf
JM
42424.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
42425maybe-install-pdf-target-winsup:
42426@if target-winsup
42427maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 42428
a90ef4bf
JM
42429install-pdf-target-winsup: \
42430 configure-target-winsup \
42431 pdf-target-winsup
a3ca38d2 42432 @: $(MAKE); $(unstage)
22121df0 42433 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
42434 r=`${PWD_COMMAND}`; export r; \
42435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42436 $(NORMAL_TARGET_EXPORTS) \
22121df0 42437 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
42438 for flag in $(EXTRA_TARGET_FLAGS); do \
42439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42440 done; \
a90ef4bf 42441 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
42442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42444 "RANLIB=$${RANLIB}" \
0c24b341 42445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42446 install-pdf) \
42447 || exit 1
42448
a90ef4bf 42449@endif target-winsup
a3ca38d2 42450
a90ef4bf
JM
42451.PHONY: maybe-install-html-target-winsup install-html-target-winsup
42452maybe-install-html-target-winsup:
42453@if target-winsup
42454maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 42455
a90ef4bf
JM
42456install-html-target-winsup: \
42457 configure-target-winsup \
42458 html-target-winsup
108a6f8e 42459 @: $(MAKE); $(unstage)
22121df0 42460 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
42461 r=`${PWD_COMMAND}`; export r; \
42462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42463 $(NORMAL_TARGET_EXPORTS) \
22121df0 42464 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
42465 for flag in $(EXTRA_TARGET_FLAGS); do \
42466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42467 done; \
a90ef4bf 42468 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
42469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42471 "RANLIB=$${RANLIB}" \
0c24b341 42472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42473 install-html) \
42474 || exit 1
42475
a90ef4bf 42476@endif target-winsup
108a6f8e 42477
a90ef4bf
JM
42478.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
42479maybe-installcheck-target-winsup:
42480@if target-winsup
42481maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 42482
a90ef4bf
JM
42483installcheck-target-winsup: \
42484 configure-target-winsup
0aed8855 42485 @: $(MAKE); $(unstage)
22121df0 42486 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42487 r=`${PWD_COMMAND}`; export r; \
42488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42489 $(NORMAL_TARGET_EXPORTS) \
22121df0 42490 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42491 for flag in $(EXTRA_TARGET_FLAGS); do \
42492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42493 done; \
a90ef4bf 42494 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42497 "RANLIB=$${RANLIB}" \
0c24b341 42498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42499 installcheck) \
4fa63067
NN
42500 || exit 1
42501
a90ef4bf 42502@endif target-winsup
4fa63067 42503
a90ef4bf
JM
42504.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
42505maybe-mostlyclean-target-winsup:
42506@if target-winsup
42507maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 42508
a90ef4bf 42509mostlyclean-target-winsup:
0aed8855 42510 @: $(MAKE); $(unstage)
22121df0 42511 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42512 r=`${PWD_COMMAND}`; export r; \
42513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42514 $(NORMAL_TARGET_EXPORTS) \
22121df0 42515 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42516 for flag in $(EXTRA_TARGET_FLAGS); do \
42517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42518 done; \
a90ef4bf 42519 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42522 "RANLIB=$${RANLIB}" \
0c24b341 42523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42524 mostlyclean) \
4fa63067
NN
42525 || exit 1
42526
a90ef4bf 42527@endif target-winsup
4fa63067 42528
a90ef4bf
JM
42529.PHONY: maybe-clean-target-winsup clean-target-winsup
42530maybe-clean-target-winsup:
42531@if target-winsup
42532maybe-clean-target-winsup: clean-target-winsup
4fa63067 42533
a90ef4bf 42534clean-target-winsup:
0aed8855 42535 @: $(MAKE); $(unstage)
22121df0 42536 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42537 r=`${PWD_COMMAND}`; export r; \
42538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42539 $(NORMAL_TARGET_EXPORTS) \
22121df0 42540 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42541 for flag in $(EXTRA_TARGET_FLAGS); do \
42542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42543 done; \
a90ef4bf 42544 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42547 "RANLIB=$${RANLIB}" \
0c24b341 42548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42549 clean) \
4fa63067
NN
42550 || exit 1
42551
a90ef4bf 42552@endif target-winsup
4fa63067 42553
a90ef4bf
JM
42554.PHONY: maybe-distclean-target-winsup distclean-target-winsup
42555maybe-distclean-target-winsup:
42556@if target-winsup
42557maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 42558
a90ef4bf 42559distclean-target-winsup:
0aed8855 42560 @: $(MAKE); $(unstage)
22121df0 42561 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42562 r=`${PWD_COMMAND}`; export r; \
42563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42564 $(NORMAL_TARGET_EXPORTS) \
22121df0 42565 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42566 for flag in $(EXTRA_TARGET_FLAGS); do \
42567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42568 done; \
a90ef4bf 42569 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42572 "RANLIB=$${RANLIB}" \
0c24b341 42573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42574 distclean) \
4fa63067
NN
42575 || exit 1
42576
a90ef4bf 42577@endif target-winsup
4fa63067 42578
a90ef4bf
JM
42579.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
42580maybe-maintainer-clean-target-winsup:
42581@if target-winsup
42582maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 42583
a90ef4bf 42584maintainer-clean-target-winsup:
0aed8855 42585 @: $(MAKE); $(unstage)
22121df0 42586 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42587 r=`${PWD_COMMAND}`; export r; \
42588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42589 $(NORMAL_TARGET_EXPORTS) \
22121df0 42590 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42591 for flag in $(EXTRA_TARGET_FLAGS); do \
42592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42593 done; \
a90ef4bf 42594 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42597 "RANLIB=$${RANLIB}" \
0c24b341 42598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42599 maintainer-clean) \
4fa63067 42600 || exit 1
16ae0395 42601
a90ef4bf 42602@endif target-winsup
e393202e
NN
42603
42604
15723a45 42605
e90269c8 42606
a7254363 42607
a90ef4bf
JM
42608.PHONY: configure-target-libgloss maybe-configure-target-libgloss
42609maybe-configure-target-libgloss:
4f0ef2d8 42610@if gcc-bootstrap
a90ef4bf 42611configure-target-libgloss: stage_current
4f0ef2d8 42612@endif gcc-bootstrap
a90ef4bf
JM
42613@if target-libgloss
42614maybe-configure-target-libgloss: configure-target-libgloss
42615configure-target-libgloss:
0aed8855
PB
42616 @: $(MAKE); $(unstage)
42617 @r=`${PWD_COMMAND}`; export r; \
42618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42619 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
42620 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
42621 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42622 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42623 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42624 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 42625 else \
a90ef4bf
JM
42626 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
42627 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
42628 fi; \
42629 else \
a90ef4bf 42630 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 42631 fi; \
a90ef4bf 42632 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 42633 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 42634 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42635 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
42636 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 42637 case $(srcdir) in \
b00612cc 42638 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42639 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 42640 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42641 esac; \
1b6c0831 42642 module_srcdir=libgloss; \
bba45b8b 42643 rm -f no-such-file || : ; \
1b6c0831
L
42644 CONFIG_SITE=no-such-file $(SHELL) \
42645 $$s/$$module_srcdir/configure \
42646 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42647 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42648 --target=${target_alias} \
bba45b8b 42649 || exit 1
a90ef4bf 42650@endif target-libgloss
e393202e 42651
a7254363
PB
42652
42653
d545f33b
PB
42654
42655
a90ef4bf
JM
42656.PHONY: all-target-libgloss maybe-all-target-libgloss
42657maybe-all-target-libgloss:
4f0ef2d8 42658@if gcc-bootstrap
a90ef4bf 42659all-target-libgloss: stage_current
4f0ef2d8 42660@endif gcc-bootstrap
a90ef4bf
JM
42661@if target-libgloss
42662TARGET-target-libgloss=all
42663maybe-all-target-libgloss: all-target-libgloss
42664all-target-libgloss: configure-target-libgloss
0aed8855 42665 @: $(MAKE); $(unstage)
b40e3958
L
42666 @r=`${PWD_COMMAND}`; export r; \
42667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42668 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42669 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 42670 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42671 $(TARGET-target-libgloss))
42672@endif target-libgloss
e393202e 42673
a7254363
PB
42674
42675
d545f33b
PB
42676
42677
a90ef4bf
JM
42678.PHONY: check-target-libgloss maybe-check-target-libgloss
42679maybe-check-target-libgloss:
42680@if target-libgloss
42681maybe-check-target-libgloss: check-target-libgloss
16ae0395 42682
a90ef4bf
JM
42683# Dummy target for uncheckable module.
42684check-target-libgloss:
930314a4 42685
a90ef4bf 42686@endif target-libgloss
e393202e 42687
a90ef4bf
JM
42688.PHONY: install-target-libgloss maybe-install-target-libgloss
42689maybe-install-target-libgloss:
42690@if target-libgloss
42691maybe-install-target-libgloss: install-target-libgloss
4fa63067 42692
a90ef4bf 42693install-target-libgloss: installdirs
0aed8855 42694 @: $(MAKE); $(unstage)
4fa63067
NN
42695 @r=`${PWD_COMMAND}`; export r; \
42696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42697 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42698 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 42699 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42700
a90ef4bf 42701@endif target-libgloss
4fa63067 42702
a90ef4bf
JM
42703.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
42704maybe-install-strip-target-libgloss:
42705@if target-libgloss
42706maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 42707
a90ef4bf 42708install-strip-target-libgloss: installdirs
9b980aa1
RW
42709 @: $(MAKE); $(unstage)
42710 @r=`${PWD_COMMAND}`; export r; \
42711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42712 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42713 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
42714 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42715
a90ef4bf 42716@endif target-libgloss
9b980aa1 42717
56a8fe78 42718# Other targets (info, dvi, pdf, etc.)
4fa63067 42719
a90ef4bf
JM
42720.PHONY: maybe-info-target-libgloss info-target-libgloss
42721maybe-info-target-libgloss:
42722@if target-libgloss
42723maybe-info-target-libgloss: info-target-libgloss
4fa63067 42724
a90ef4bf
JM
42725info-target-libgloss: \
42726 configure-target-libgloss
0aed8855 42727 @: $(MAKE); $(unstage)
22121df0 42728 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42729 r=`${PWD_COMMAND}`; export r; \
42730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42731 $(NORMAL_TARGET_EXPORTS) \
22121df0 42732 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42733 for flag in $(EXTRA_TARGET_FLAGS); do \
42734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42735 done; \
a90ef4bf 42736 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42739 "RANLIB=$${RANLIB}" \
0c24b341 42740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42741 info) \
4fa63067
NN
42742 || exit 1
42743
a90ef4bf 42744@endif target-libgloss
4fa63067 42745
a90ef4bf
JM
42746.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
42747maybe-dvi-target-libgloss:
42748@if target-libgloss
42749maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 42750
a90ef4bf
JM
42751dvi-target-libgloss: \
42752 configure-target-libgloss
0aed8855 42753 @: $(MAKE); $(unstage)
22121df0 42754 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42755 r=`${PWD_COMMAND}`; export r; \
42756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42757 $(NORMAL_TARGET_EXPORTS) \
22121df0 42758 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42759 for flag in $(EXTRA_TARGET_FLAGS); do \
42760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42761 done; \
a90ef4bf 42762 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42765 "RANLIB=$${RANLIB}" \
0c24b341 42766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42767 dvi) \
4fa63067
NN
42768 || exit 1
42769
a90ef4bf 42770@endif target-libgloss
4fa63067 42771
a90ef4bf
JM
42772.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
42773maybe-pdf-target-libgloss:
42774@if target-libgloss
42775maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 42776
a90ef4bf
JM
42777pdf-target-libgloss: \
42778 configure-target-libgloss
56a8fe78 42779 @: $(MAKE); $(unstage)
22121df0 42780 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
42781 r=`${PWD_COMMAND}`; export r; \
42782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42783 $(NORMAL_TARGET_EXPORTS) \
22121df0 42784 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
42785 for flag in $(EXTRA_TARGET_FLAGS); do \
42786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42787 done; \
a90ef4bf 42788 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
42789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42791 "RANLIB=$${RANLIB}" \
0c24b341 42792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42793 pdf) \
42794 || exit 1
42795
a90ef4bf 42796@endif target-libgloss
56a8fe78 42797
a90ef4bf
JM
42798.PHONY: maybe-html-target-libgloss html-target-libgloss
42799maybe-html-target-libgloss:
42800@if target-libgloss
42801maybe-html-target-libgloss: html-target-libgloss
6d389afc 42802
a90ef4bf
JM
42803html-target-libgloss: \
42804 configure-target-libgloss
0aed8855 42805 @: $(MAKE); $(unstage)
22121df0 42806 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
42807 r=`${PWD_COMMAND}`; export r; \
42808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42809 $(NORMAL_TARGET_EXPORTS) \
22121df0 42810 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
42811 for flag in $(EXTRA_TARGET_FLAGS); do \
42812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42813 done; \
a90ef4bf 42814 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
42815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42817 "RANLIB=$${RANLIB}" \
0c24b341 42818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42819 html) \
42820 || exit 1
42821
a90ef4bf 42822@endif target-libgloss
6d389afc 42823
a90ef4bf
JM
42824.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
42825maybe-TAGS-target-libgloss:
42826@if target-libgloss
42827maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 42828
a90ef4bf
JM
42829TAGS-target-libgloss: \
42830 configure-target-libgloss
0aed8855 42831 @: $(MAKE); $(unstage)
22121df0 42832 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42833 r=`${PWD_COMMAND}`; export r; \
42834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42835 $(NORMAL_TARGET_EXPORTS) \
22121df0 42836 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42837 for flag in $(EXTRA_TARGET_FLAGS); do \
42838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42839 done; \
a90ef4bf 42840 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42843 "RANLIB=$${RANLIB}" \
0c24b341 42844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42845 TAGS) \
4fa63067
NN
42846 || exit 1
42847
a90ef4bf 42848@endif target-libgloss
4fa63067 42849
a90ef4bf
JM
42850.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
42851maybe-install-info-target-libgloss:
42852@if target-libgloss
42853maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 42854
a90ef4bf
JM
42855install-info-target-libgloss: \
42856 configure-target-libgloss \
42857 info-target-libgloss
0aed8855 42858 @: $(MAKE); $(unstage)
22121df0 42859 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42860 r=`${PWD_COMMAND}`; export r; \
42861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42862 $(NORMAL_TARGET_EXPORTS) \
22121df0 42863 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42864 for flag in $(EXTRA_TARGET_FLAGS); do \
42865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42866 done; \
a90ef4bf 42867 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42870 "RANLIB=$${RANLIB}" \
0c24b341 42871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42872 install-info) \
4fa63067
NN
42873 || exit 1
42874
a90ef4bf 42875@endif target-libgloss
4fa63067 42876
a90ef4bf
JM
42877.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
42878maybe-install-pdf-target-libgloss:
42879@if target-libgloss
42880maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 42881
a90ef4bf
JM
42882install-pdf-target-libgloss: \
42883 configure-target-libgloss \
42884 pdf-target-libgloss
a3ca38d2 42885 @: $(MAKE); $(unstage)
22121df0 42886 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
42887 r=`${PWD_COMMAND}`; export r; \
42888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42889 $(NORMAL_TARGET_EXPORTS) \
22121df0 42890 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
42891 for flag in $(EXTRA_TARGET_FLAGS); do \
42892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42893 done; \
a90ef4bf 42894 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
42895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42897 "RANLIB=$${RANLIB}" \
0c24b341 42898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42899 install-pdf) \
42900 || exit 1
42901
a90ef4bf 42902@endif target-libgloss
a3ca38d2 42903
a90ef4bf
JM
42904.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
42905maybe-install-html-target-libgloss:
42906@if target-libgloss
42907maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 42908
a90ef4bf
JM
42909install-html-target-libgloss: \
42910 configure-target-libgloss \
42911 html-target-libgloss
108a6f8e 42912 @: $(MAKE); $(unstage)
22121df0 42913 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
42914 r=`${PWD_COMMAND}`; export r; \
42915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42916 $(NORMAL_TARGET_EXPORTS) \
22121df0 42917 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
42918 for flag in $(EXTRA_TARGET_FLAGS); do \
42919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42920 done; \
a90ef4bf 42921 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
42922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42924 "RANLIB=$${RANLIB}" \
0c24b341 42925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42926 install-html) \
42927 || exit 1
42928
a90ef4bf 42929@endif target-libgloss
108a6f8e 42930
a90ef4bf
JM
42931.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
42932maybe-installcheck-target-libgloss:
42933@if target-libgloss
42934maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 42935
a90ef4bf
JM
42936installcheck-target-libgloss: \
42937 configure-target-libgloss
0aed8855 42938 @: $(MAKE); $(unstage)
22121df0 42939 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42940 r=`${PWD_COMMAND}`; export r; \
42941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42942 $(NORMAL_TARGET_EXPORTS) \
22121df0 42943 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42944 for flag in $(EXTRA_TARGET_FLAGS); do \
42945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42946 done; \
a90ef4bf 42947 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42950 "RANLIB=$${RANLIB}" \
0c24b341 42951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42952 installcheck) \
4fa63067
NN
42953 || exit 1
42954
a90ef4bf 42955@endif target-libgloss
4fa63067 42956
a90ef4bf
JM
42957.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
42958maybe-mostlyclean-target-libgloss:
42959@if target-libgloss
42960maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 42961
a90ef4bf 42962mostlyclean-target-libgloss:
0aed8855 42963 @: $(MAKE); $(unstage)
22121df0 42964 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42965 r=`${PWD_COMMAND}`; export r; \
42966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42967 $(NORMAL_TARGET_EXPORTS) \
22121df0 42968 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42969 for flag in $(EXTRA_TARGET_FLAGS); do \
42970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42971 done; \
a90ef4bf 42972 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42975 "RANLIB=$${RANLIB}" \
0c24b341 42976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42977 mostlyclean) \
4fa63067
NN
42978 || exit 1
42979
a90ef4bf 42980@endif target-libgloss
4fa63067 42981
a90ef4bf
JM
42982.PHONY: maybe-clean-target-libgloss clean-target-libgloss
42983maybe-clean-target-libgloss:
42984@if target-libgloss
42985maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 42986
a90ef4bf 42987clean-target-libgloss:
0aed8855 42988 @: $(MAKE); $(unstage)
22121df0 42989 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42990 r=`${PWD_COMMAND}`; export r; \
42991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42992 $(NORMAL_TARGET_EXPORTS) \
22121df0 42993 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42994 for flag in $(EXTRA_TARGET_FLAGS); do \
42995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42996 done; \
a90ef4bf 42997 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43000 "RANLIB=$${RANLIB}" \
0c24b341 43001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43002 clean) \
4fa63067
NN
43003 || exit 1
43004
a90ef4bf 43005@endif target-libgloss
4fa63067 43006
a90ef4bf
JM
43007.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
43008maybe-distclean-target-libgloss:
43009@if target-libgloss
43010maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 43011
a90ef4bf 43012distclean-target-libgloss:
0aed8855 43013 @: $(MAKE); $(unstage)
22121df0 43014 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43015 r=`${PWD_COMMAND}`; export r; \
43016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43017 $(NORMAL_TARGET_EXPORTS) \
22121df0 43018 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43019 for flag in $(EXTRA_TARGET_FLAGS); do \
43020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43021 done; \
a90ef4bf 43022 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43025 "RANLIB=$${RANLIB}" \
0c24b341 43026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43027 distclean) \
4fa63067
NN
43028 || exit 1
43029
a90ef4bf 43030@endif target-libgloss
4fa63067 43031
a90ef4bf
JM
43032.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
43033maybe-maintainer-clean-target-libgloss:
43034@if target-libgloss
43035maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 43036
a90ef4bf 43037maintainer-clean-target-libgloss:
0aed8855 43038 @: $(MAKE); $(unstage)
22121df0 43039 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43040 r=`${PWD_COMMAND}`; export r; \
43041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43042 $(NORMAL_TARGET_EXPORTS) \
22121df0 43043 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43044 for flag in $(EXTRA_TARGET_FLAGS); do \
43045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43046 done; \
a90ef4bf 43047 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43050 "RANLIB=$${RANLIB}" \
0c24b341 43051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43052 maintainer-clean) \
4fa63067 43053 || exit 1
16ae0395 43054
a90ef4bf 43055@endif target-libgloss
e393202e
NN
43056
43057
15723a45 43058
a7254363
PB
43059
43060
a7254363
PB
43061.PHONY: configure-target-libffi maybe-configure-target-libffi
43062maybe-configure-target-libffi:
4f0ef2d8
CD
43063@if gcc-bootstrap
43064configure-target-libffi: stage_current
43065@endif gcc-bootstrap
a7254363
PB
43066@if target-libffi
43067maybe-configure-target-libffi: configure-target-libffi
c52c6897 43068configure-target-libffi:
0aed8855
PB
43069 @: $(MAKE); $(unstage)
43070 @r=`${PWD_COMMAND}`; export r; \
43071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43072 echo "Checking multilib configuration for libffi..."; \
22121df0
L
43073 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
43074 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
43075 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
43076 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
43077 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
43078 else \
43079 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
43080 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
43081 fi; \
43082 else \
43083 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
43084 fi; \
43085 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 43086 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 43087 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43088 echo Configuring in $(TARGET_SUBDIR)/libffi; \
43089 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 43090 case $(srcdir) in \
b00612cc
PB
43091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43092 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
43093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43094 esac; \
1b6c0831 43095 module_srcdir=libffi; \
bba45b8b 43096 rm -f no-such-file || : ; \
1b6c0831
L
43097 CONFIG_SITE=no-such-file $(SHELL) \
43098 $$s/$$module_srcdir/configure \
43099 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43100 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43101 --target=${target_alias} \
bba45b8b 43102 || exit 1
6bd3dfaa 43103@endif target-libffi
e393202e 43104
a7254363
PB
43105
43106
d545f33b
PB
43107
43108
4fa63067
NN
43109.PHONY: all-target-libffi maybe-all-target-libffi
43110maybe-all-target-libffi:
4f0ef2d8
CD
43111@if gcc-bootstrap
43112all-target-libffi: stage_current
43113@endif gcc-bootstrap
6bd3dfaa 43114@if target-libffi
72b2455a 43115TARGET-target-libffi=all
6bd3dfaa 43116maybe-all-target-libffi: all-target-libffi
4fa63067 43117all-target-libffi: configure-target-libffi
0aed8855 43118 @: $(MAKE); $(unstage)
b40e3958
L
43119 @r=`${PWD_COMMAND}`; export r; \
43120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43121 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43122 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 43123 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 43124 $(TARGET-target-libffi))
6bd3dfaa 43125@endif target-libffi
e393202e 43126
a7254363
PB
43127
43128
d545f33b
PB
43129
43130
4fa63067
NN
43131.PHONY: check-target-libffi maybe-check-target-libffi
43132maybe-check-target-libffi:
6bd3dfaa
PB
43133@if target-libffi
43134maybe-check-target-libffi: check-target-libffi
16ae0395 43135
4fa63067 43136check-target-libffi:
0aed8855 43137 @: $(MAKE); $(unstage)
b40e3958
L
43138 @r=`${PWD_COMMAND}`; export r; \
43139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43140 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43141 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 43142 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 43143
6bd3dfaa 43144@endif target-libffi
e393202e 43145
4fa63067
NN
43146.PHONY: install-target-libffi maybe-install-target-libffi
43147maybe-install-target-libffi:
6bd3dfaa
PB
43148@if target-libffi
43149maybe-install-target-libffi: install-target-libffi
16ae0395 43150
b836cb18
JBG
43151# Dummy target for uninstallable.
43152install-target-libffi:
e393202e 43153
6bd3dfaa 43154@endif target-libffi
e393202e 43155
9b980aa1
RW
43156.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
43157maybe-install-strip-target-libffi:
43158@if target-libffi
43159maybe-install-strip-target-libffi: install-strip-target-libffi
43160
b836cb18
JBG
43161# Dummy target for uninstallable.
43162install-strip-target-libffi:
9b980aa1
RW
43163
43164@endif target-libffi
43165
56a8fe78 43166# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
43167
43168.PHONY: maybe-info-target-libffi info-target-libffi
43169maybe-info-target-libffi:
6bd3dfaa
PB
43170@if target-libffi
43171maybe-info-target-libffi: info-target-libffi
4fa63067
NN
43172
43173info-target-libffi: \
43174 configure-target-libffi
0aed8855 43175 @: $(MAKE); $(unstage)
22121df0 43176 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43177 r=`${PWD_COMMAND}`; export r; \
43178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43179 $(NORMAL_TARGET_EXPORTS) \
22121df0 43180 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43181 for flag in $(EXTRA_TARGET_FLAGS); do \
43182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43183 done; \
43184 (cd $(TARGET_SUBDIR)/libffi && \
43185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43187 "RANLIB=$${RANLIB}" \
0c24b341 43188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43189 info) \
4fa63067
NN
43190 || exit 1
43191
6bd3dfaa 43192@endif target-libffi
4fa63067
NN
43193
43194.PHONY: maybe-dvi-target-libffi dvi-target-libffi
43195maybe-dvi-target-libffi:
6bd3dfaa
PB
43196@if target-libffi
43197maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
43198
43199dvi-target-libffi: \
43200 configure-target-libffi
0aed8855 43201 @: $(MAKE); $(unstage)
22121df0 43202 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43203 r=`${PWD_COMMAND}`; export r; \
43204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43205 $(NORMAL_TARGET_EXPORTS) \
22121df0 43206 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43207 for flag in $(EXTRA_TARGET_FLAGS); do \
43208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43209 done; \
43210 (cd $(TARGET_SUBDIR)/libffi && \
43211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43213 "RANLIB=$${RANLIB}" \
0c24b341 43214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43215 dvi) \
4fa63067
NN
43216 || exit 1
43217
6bd3dfaa 43218@endif target-libffi
4fa63067 43219
56a8fe78
DD
43220.PHONY: maybe-pdf-target-libffi pdf-target-libffi
43221maybe-pdf-target-libffi:
43222@if target-libffi
43223maybe-pdf-target-libffi: pdf-target-libffi
43224
43225pdf-target-libffi: \
43226 configure-target-libffi
43227 @: $(MAKE); $(unstage)
22121df0 43228 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
43229 r=`${PWD_COMMAND}`; export r; \
43230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43231 $(NORMAL_TARGET_EXPORTS) \
22121df0 43232 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
43233 for flag in $(EXTRA_TARGET_FLAGS); do \
43234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43235 done; \
43236 (cd $(TARGET_SUBDIR)/libffi && \
43237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43239 "RANLIB=$${RANLIB}" \
0c24b341 43240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43241 pdf) \
43242 || exit 1
43243
43244@endif target-libffi
43245
6d389afc
MS
43246.PHONY: maybe-html-target-libffi html-target-libffi
43247maybe-html-target-libffi:
43248@if target-libffi
43249maybe-html-target-libffi: html-target-libffi
43250
43251html-target-libffi: \
43252 configure-target-libffi
0aed8855 43253 @: $(MAKE); $(unstage)
22121df0 43254 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
43255 r=`${PWD_COMMAND}`; export r; \
43256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43257 $(NORMAL_TARGET_EXPORTS) \
22121df0 43258 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
43259 for flag in $(EXTRA_TARGET_FLAGS); do \
43260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43261 done; \
43262 (cd $(TARGET_SUBDIR)/libffi && \
43263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43265 "RANLIB=$${RANLIB}" \
0c24b341 43266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43267 html) \
43268 || exit 1
43269
43270@endif target-libffi
43271
4fa63067
NN
43272.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
43273maybe-TAGS-target-libffi:
6bd3dfaa
PB
43274@if target-libffi
43275maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
43276
43277TAGS-target-libffi: \
43278 configure-target-libffi
0aed8855 43279 @: $(MAKE); $(unstage)
22121df0 43280 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43281 r=`${PWD_COMMAND}`; export r; \
43282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43283 $(NORMAL_TARGET_EXPORTS) \
22121df0 43284 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43285 for flag in $(EXTRA_TARGET_FLAGS); do \
43286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43287 done; \
43288 (cd $(TARGET_SUBDIR)/libffi && \
43289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43291 "RANLIB=$${RANLIB}" \
0c24b341 43292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43293 TAGS) \
4fa63067
NN
43294 || exit 1
43295
6bd3dfaa 43296@endif target-libffi
4fa63067
NN
43297
43298.PHONY: maybe-install-info-target-libffi install-info-target-libffi
43299maybe-install-info-target-libffi:
6bd3dfaa
PB
43300@if target-libffi
43301maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
43302
43303install-info-target-libffi: \
43304 configure-target-libffi \
43305 info-target-libffi
0aed8855 43306 @: $(MAKE); $(unstage)
22121df0 43307 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43308 r=`${PWD_COMMAND}`; export r; \
43309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43310 $(NORMAL_TARGET_EXPORTS) \
22121df0 43311 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43312 for flag in $(EXTRA_TARGET_FLAGS); do \
43313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43314 done; \
43315 (cd $(TARGET_SUBDIR)/libffi && \
43316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43318 "RANLIB=$${RANLIB}" \
0c24b341 43319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43320 install-info) \
4fa63067
NN
43321 || exit 1
43322
6bd3dfaa 43323@endif target-libffi
4fa63067 43324
a3ca38d2
DD
43325.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
43326maybe-install-pdf-target-libffi:
43327@if target-libffi
43328maybe-install-pdf-target-libffi: install-pdf-target-libffi
43329
43330install-pdf-target-libffi: \
43331 configure-target-libffi \
43332 pdf-target-libffi
43333 @: $(MAKE); $(unstage)
22121df0 43334 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
43335 r=`${PWD_COMMAND}`; export r; \
43336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43337 $(NORMAL_TARGET_EXPORTS) \
22121df0 43338 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
43339 for flag in $(EXTRA_TARGET_FLAGS); do \
43340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43341 done; \
43342 (cd $(TARGET_SUBDIR)/libffi && \
43343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43345 "RANLIB=$${RANLIB}" \
0c24b341 43346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43347 install-pdf) \
43348 || exit 1
43349
43350@endif target-libffi
43351
108a6f8e
CD
43352.PHONY: maybe-install-html-target-libffi install-html-target-libffi
43353maybe-install-html-target-libffi:
43354@if target-libffi
43355maybe-install-html-target-libffi: install-html-target-libffi
43356
43357install-html-target-libffi: \
43358 configure-target-libffi \
43359 html-target-libffi
43360 @: $(MAKE); $(unstage)
22121df0 43361 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
43362 r=`${PWD_COMMAND}`; export r; \
43363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43364 $(NORMAL_TARGET_EXPORTS) \
22121df0 43365 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
43366 for flag in $(EXTRA_TARGET_FLAGS); do \
43367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43368 done; \
43369 (cd $(TARGET_SUBDIR)/libffi && \
43370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43372 "RANLIB=$${RANLIB}" \
0c24b341 43373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43374 install-html) \
43375 || exit 1
43376
43377@endif target-libffi
43378
4fa63067
NN
43379.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
43380maybe-installcheck-target-libffi:
6bd3dfaa
PB
43381@if target-libffi
43382maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
43383
43384installcheck-target-libffi: \
43385 configure-target-libffi
0aed8855 43386 @: $(MAKE); $(unstage)
22121df0 43387 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43388 r=`${PWD_COMMAND}`; export r; \
43389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43390 $(NORMAL_TARGET_EXPORTS) \
22121df0 43391 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43392 for flag in $(EXTRA_TARGET_FLAGS); do \
43393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43394 done; \
43395 (cd $(TARGET_SUBDIR)/libffi && \
43396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43398 "RANLIB=$${RANLIB}" \
0c24b341 43399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43400 installcheck) \
4fa63067
NN
43401 || exit 1
43402
6bd3dfaa 43403@endif target-libffi
4fa63067
NN
43404
43405.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
43406maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
43407@if target-libffi
43408maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
43409
43410mostlyclean-target-libffi:
0aed8855 43411 @: $(MAKE); $(unstage)
22121df0 43412 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43413 r=`${PWD_COMMAND}`; export r; \
43414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43415 $(NORMAL_TARGET_EXPORTS) \
22121df0 43416 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43417 for flag in $(EXTRA_TARGET_FLAGS); do \
43418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43419 done; \
43420 (cd $(TARGET_SUBDIR)/libffi && \
43421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43423 "RANLIB=$${RANLIB}" \
0c24b341 43424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43425 mostlyclean) \
4fa63067
NN
43426 || exit 1
43427
6bd3dfaa 43428@endif target-libffi
4fa63067
NN
43429
43430.PHONY: maybe-clean-target-libffi clean-target-libffi
43431maybe-clean-target-libffi:
6bd3dfaa
PB
43432@if target-libffi
43433maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
43434
43435clean-target-libffi:
0aed8855 43436 @: $(MAKE); $(unstage)
22121df0 43437 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43438 r=`${PWD_COMMAND}`; export r; \
43439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43440 $(NORMAL_TARGET_EXPORTS) \
22121df0 43441 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43442 for flag in $(EXTRA_TARGET_FLAGS); do \
43443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43444 done; \
43445 (cd $(TARGET_SUBDIR)/libffi && \
43446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43448 "RANLIB=$${RANLIB}" \
0c24b341 43449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43450 clean) \
4fa63067
NN
43451 || exit 1
43452
6bd3dfaa 43453@endif target-libffi
4fa63067
NN
43454
43455.PHONY: maybe-distclean-target-libffi distclean-target-libffi
43456maybe-distclean-target-libffi:
6bd3dfaa
PB
43457@if target-libffi
43458maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
43459
43460distclean-target-libffi:
0aed8855 43461 @: $(MAKE); $(unstage)
22121df0 43462 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43463 r=`${PWD_COMMAND}`; export r; \
43464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43465 $(NORMAL_TARGET_EXPORTS) \
22121df0 43466 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43467 for flag in $(EXTRA_TARGET_FLAGS); do \
43468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43469 done; \
43470 (cd $(TARGET_SUBDIR)/libffi && \
43471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43473 "RANLIB=$${RANLIB}" \
0c24b341 43474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43475 distclean) \
4fa63067
NN
43476 || exit 1
43477
6bd3dfaa 43478@endif target-libffi
4fa63067
NN
43479
43480.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
43481maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
43482@if target-libffi
43483maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
43484
43485maintainer-clean-target-libffi:
0aed8855 43486 @: $(MAKE); $(unstage)
22121df0 43487 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43488 r=`${PWD_COMMAND}`; export r; \
43489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43490 $(NORMAL_TARGET_EXPORTS) \
22121df0 43491 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43492 for flag in $(EXTRA_TARGET_FLAGS); do \
43493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43494 done; \
43495 (cd $(TARGET_SUBDIR)/libffi && \
43496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43498 "RANLIB=$${RANLIB}" \
0c24b341 43499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43500 maintainer-clean) \
4fa63067
NN
43501 || exit 1
43502
6bd3dfaa 43503@endif target-libffi
4fa63067
NN
43504
43505
15723a45 43506
a7254363 43507
15723a45 43508
a7254363
PB
43509.PHONY: configure-target-libjava maybe-configure-target-libjava
43510maybe-configure-target-libjava:
4f0ef2d8
CD
43511@if gcc-bootstrap
43512configure-target-libjava: stage_current
43513@endif gcc-bootstrap
a7254363
PB
43514@if target-libjava
43515maybe-configure-target-libjava: configure-target-libjava
c52c6897 43516configure-target-libjava:
0aed8855
PB
43517 @: $(MAKE); $(unstage)
43518 @r=`${PWD_COMMAND}`; export r; \
43519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43520 echo "Checking multilib configuration for libjava..."; \
22121df0
L
43521 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava; \
43522 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null; \
0aed8855
PB
43523 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
43524 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
43525 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
43526 else \
43527 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
43528 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
43529 fi; \
43530 else \
43531 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
c52c6897
PB
43532 fi; \
43533 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
22121df0 43534 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava; \
1f53ca9a 43535 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43536 echo Configuring in $(TARGET_SUBDIR)/libjava; \
43537 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b 43538 case $(srcdir) in \
b00612cc
PB
43539 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43540 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
43541 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43542 esac; \
1b6c0831 43543 module_srcdir=libjava; \
bba45b8b 43544 rm -f no-such-file || : ; \
1b6c0831
L
43545 CONFIG_SITE=no-such-file $(SHELL) \
43546 $$s/$$module_srcdir/configure \
43547 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43548 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43549 --target=${target_alias} $(EXTRA_CONFIGARGS_LIBJAVA) \
bba45b8b 43550 || exit 1
6bd3dfaa 43551@endif target-libjava
e393202e 43552
a7254363
PB
43553
43554
d545f33b
PB
43555
43556
4fa63067
NN
43557.PHONY: all-target-libjava maybe-all-target-libjava
43558maybe-all-target-libjava:
4f0ef2d8
CD
43559@if gcc-bootstrap
43560all-target-libjava: stage_current
43561@endif gcc-bootstrap
6bd3dfaa 43562@if target-libjava
72b2455a 43563TARGET-target-libjava=all
6bd3dfaa 43564maybe-all-target-libjava: all-target-libjava
4fa63067 43565all-target-libjava: configure-target-libjava
0aed8855 43566 @: $(MAKE); $(unstage)
b40e3958
L
43567 @r=`${PWD_COMMAND}`; export r; \
43568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43569 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43570 (cd $(TARGET_SUBDIR)/libjava && \
b3676d82 43571 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 43572 $(TARGET-target-libjava))
6bd3dfaa 43573@endif target-libjava
e393202e 43574
a7254363
PB
43575
43576
d545f33b
PB
43577
43578
4fa63067
NN
43579.PHONY: check-target-libjava maybe-check-target-libjava
43580maybe-check-target-libjava:
6bd3dfaa
PB
43581@if target-libjava
43582maybe-check-target-libjava: check-target-libjava
16ae0395 43583
4fa63067 43584check-target-libjava:
0aed8855 43585 @: $(MAKE); $(unstage)
4fa63067
NN
43586 @r=`${PWD_COMMAND}`; export r; \
43587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43588 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43589 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43590 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 43591
6bd3dfaa 43592@endif target-libjava
930314a4 43593
4fa63067
NN
43594.PHONY: install-target-libjava maybe-install-target-libjava
43595maybe-install-target-libjava:
6bd3dfaa
PB
43596@if target-libjava
43597maybe-install-target-libjava: install-target-libjava
16ae0395 43598
4fa63067 43599install-target-libjava: installdirs
0aed8855 43600 @: $(MAKE); $(unstage)
b40e3958
L
43601 @r=`${PWD_COMMAND}`; export r; \
43602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43603 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43604 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43605 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43606
6bd3dfaa 43607@endif target-libjava
e393202e 43608
9b980aa1
RW
43609.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
43610maybe-install-strip-target-libjava:
43611@if target-libjava
43612maybe-install-strip-target-libjava: install-strip-target-libjava
43613
43614install-strip-target-libjava: installdirs
43615 @: $(MAKE); $(unstage)
43616 @r=`${PWD_COMMAND}`; export r; \
43617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43618 $(RAW_CXX_TARGET_EXPORTS) \
43619 (cd $(TARGET_SUBDIR)/libjava && \
43620 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43621
43622@endif target-libjava
43623
56a8fe78 43624# Other targets (info, dvi, pdf, etc.)
15723a45 43625
4fa63067
NN
43626.PHONY: maybe-info-target-libjava info-target-libjava
43627maybe-info-target-libjava:
6bd3dfaa
PB
43628@if target-libjava
43629maybe-info-target-libjava: info-target-libjava
15723a45 43630
4fa63067
NN
43631info-target-libjava: \
43632 configure-target-libjava
0aed8855 43633 @: $(MAKE); $(unstage)
22121df0 43634 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
b40e3958
L
43635 r=`${PWD_COMMAND}`; export r; \
43636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43637 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43638 echo "Doing info in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43639 for flag in $(EXTRA_TARGET_FLAGS); do \
43640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43641 done; \
43642 (cd $(TARGET_SUBDIR)/libjava && \
43643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43645 "RANLIB=$${RANLIB}" \
0c24b341 43646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43647 info) \
bba45b8b 43648 || exit 1
e393202e 43649
6bd3dfaa 43650@endif target-libjava
4fa63067
NN
43651
43652.PHONY: maybe-dvi-target-libjava dvi-target-libjava
43653maybe-dvi-target-libjava:
6bd3dfaa
PB
43654@if target-libjava
43655maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
43656
43657dvi-target-libjava: \
43658 configure-target-libjava
0aed8855 43659 @: $(MAKE); $(unstage)
22121df0 43660 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43661 r=`${PWD_COMMAND}`; export r; \
b40e3958 43662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43663 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43664 echo "Doing dvi in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43665 for flag in $(EXTRA_TARGET_FLAGS); do \
43666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43667 done; \
43668 (cd $(TARGET_SUBDIR)/libjava && \
43669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43671 "RANLIB=$${RANLIB}" \
0c24b341 43672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43673 dvi) \
4fa63067 43674 || exit 1
e393202e 43675
6bd3dfaa 43676@endif target-libjava
16ae0395 43677
56a8fe78
DD
43678.PHONY: maybe-pdf-target-libjava pdf-target-libjava
43679maybe-pdf-target-libjava:
43680@if target-libjava
43681maybe-pdf-target-libjava: pdf-target-libjava
43682
43683pdf-target-libjava: \
43684 configure-target-libjava
43685 @: $(MAKE); $(unstage)
22121df0 43686 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
56a8fe78
DD
43687 r=`${PWD_COMMAND}`; export r; \
43688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43689 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43690 echo "Doing pdf in $(TARGET_SUBDIR)/libjava"; \
56a8fe78
DD
43691 for flag in $(EXTRA_TARGET_FLAGS); do \
43692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43693 done; \
43694 (cd $(TARGET_SUBDIR)/libjava && \
43695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43697 "RANLIB=$${RANLIB}" \
0c24b341 43698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43699 pdf) \
43700 || exit 1
43701
43702@endif target-libjava
43703
6d389afc
MS
43704.PHONY: maybe-html-target-libjava html-target-libjava
43705maybe-html-target-libjava:
43706@if target-libjava
43707maybe-html-target-libjava: html-target-libjava
43708
43709html-target-libjava: \
43710 configure-target-libjava
0aed8855 43711 @: $(MAKE); $(unstage)
22121df0 43712 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
6d389afc
MS
43713 r=`${PWD_COMMAND}`; export r; \
43714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43715 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43716 echo "Doing html in $(TARGET_SUBDIR)/libjava"; \
6d389afc
MS
43717 for flag in $(EXTRA_TARGET_FLAGS); do \
43718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43719 done; \
43720 (cd $(TARGET_SUBDIR)/libjava && \
43721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43723 "RANLIB=$${RANLIB}" \
0c24b341 43724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43725 html) \
43726 || exit 1
43727
43728@endif target-libjava
43729
4fa63067
NN
43730.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
43731maybe-TAGS-target-libjava:
6bd3dfaa
PB
43732@if target-libjava
43733maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
43734
43735TAGS-target-libjava: \
43736 configure-target-libjava
0aed8855 43737 @: $(MAKE); $(unstage)
22121df0 43738 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43739 r=`${PWD_COMMAND}`; export r; \
b40e3958 43740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43741 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43742 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43743 for flag in $(EXTRA_TARGET_FLAGS); do \
43744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43745 done; \
43746 (cd $(TARGET_SUBDIR)/libjava && \
43747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43749 "RANLIB=$${RANLIB}" \
0c24b341 43750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43751 TAGS) \
4fa63067 43752 || exit 1
e393202e 43753
6bd3dfaa 43754@endif target-libjava
930314a4 43755
4fa63067
NN
43756.PHONY: maybe-install-info-target-libjava install-info-target-libjava
43757maybe-install-info-target-libjava:
6bd3dfaa
PB
43758@if target-libjava
43759maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 43760
4fa63067
NN
43761install-info-target-libjava: \
43762 configure-target-libjava \
43763 info-target-libjava
0aed8855 43764 @: $(MAKE); $(unstage)
22121df0 43765 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43766 r=`${PWD_COMMAND}`; export r; \
b40e3958 43767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43768 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43769 echo "Doing install-info in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43770 for flag in $(EXTRA_TARGET_FLAGS); do \
43771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43772 done; \
43773 (cd $(TARGET_SUBDIR)/libjava && \
43774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43776 "RANLIB=$${RANLIB}" \
0c24b341 43777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43778 install-info) \
4fa63067 43779 || exit 1
e393202e 43780
6bd3dfaa 43781@endif target-libjava
e393202e 43782
a3ca38d2
DD
43783.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
43784maybe-install-pdf-target-libjava:
43785@if target-libjava
43786maybe-install-pdf-target-libjava: install-pdf-target-libjava
43787
43788install-pdf-target-libjava: \
43789 configure-target-libjava \
43790 pdf-target-libjava
43791 @: $(MAKE); $(unstage)
22121df0 43792 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
a3ca38d2
DD
43793 r=`${PWD_COMMAND}`; export r; \
43794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43795 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43796 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava"; \
a3ca38d2
DD
43797 for flag in $(EXTRA_TARGET_FLAGS); do \
43798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43799 done; \
43800 (cd $(TARGET_SUBDIR)/libjava && \
43801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43803 "RANLIB=$${RANLIB}" \
0c24b341 43804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43805 install-pdf) \
43806 || exit 1
43807
43808@endif target-libjava
43809
108a6f8e
CD
43810.PHONY: maybe-install-html-target-libjava install-html-target-libjava
43811maybe-install-html-target-libjava:
43812@if target-libjava
43813maybe-install-html-target-libjava: install-html-target-libjava
43814
43815install-html-target-libjava: \
43816 configure-target-libjava \
43817 html-target-libjava
43818 @: $(MAKE); $(unstage)
22121df0 43819 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
108a6f8e
CD
43820 r=`${PWD_COMMAND}`; export r; \
43821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43822 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43823 echo "Doing install-html in $(TARGET_SUBDIR)/libjava"; \
108a6f8e
CD
43824 for flag in $(EXTRA_TARGET_FLAGS); do \
43825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43826 done; \
43827 (cd $(TARGET_SUBDIR)/libjava && \
43828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43830 "RANLIB=$${RANLIB}" \
0c24b341 43831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43832 install-html) \
43833 || exit 1
43834
43835@endif target-libjava
43836
4fa63067
NN
43837.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
43838maybe-installcheck-target-libjava:
6bd3dfaa
PB
43839@if target-libjava
43840maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 43841
4fa63067
NN
43842installcheck-target-libjava: \
43843 configure-target-libjava
0aed8855 43844 @: $(MAKE); $(unstage)
22121df0 43845 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43846 r=`${PWD_COMMAND}`; export r; \
43847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43848 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43849 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43850 for flag in $(EXTRA_TARGET_FLAGS); do \
43851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43852 done; \
43853 (cd $(TARGET_SUBDIR)/libjava && \
43854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43856 "RANLIB=$${RANLIB}" \
0c24b341 43857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43858 installcheck) \
4fa63067 43859 || exit 1
15723a45 43860
6bd3dfaa 43861@endif target-libjava
4fa63067
NN
43862
43863.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
43864maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
43865@if target-libjava
43866maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
43867
43868mostlyclean-target-libjava:
0aed8855 43869 @: $(MAKE); $(unstage)
22121df0 43870 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43871 r=`${PWD_COMMAND}`; export r; \
43872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43873 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43874 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43875 for flag in $(EXTRA_TARGET_FLAGS); do \
43876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43877 done; \
43878 (cd $(TARGET_SUBDIR)/libjava && \
43879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43881 "RANLIB=$${RANLIB}" \
0c24b341 43882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43883 mostlyclean) \
4fa63067
NN
43884 || exit 1
43885
6bd3dfaa 43886@endif target-libjava
4fa63067
NN
43887
43888.PHONY: maybe-clean-target-libjava clean-target-libjava
43889maybe-clean-target-libjava:
6bd3dfaa
PB
43890@if target-libjava
43891maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
43892
43893clean-target-libjava:
0aed8855 43894 @: $(MAKE); $(unstage)
22121df0 43895 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
b40e3958
L
43896 r=`${PWD_COMMAND}`; export r; \
43897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43898 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43899 echo "Doing clean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43900 for flag in $(EXTRA_TARGET_FLAGS); do \
43901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43902 done; \
43903 (cd $(TARGET_SUBDIR)/libjava && \
43904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43906 "RANLIB=$${RANLIB}" \
0c24b341 43907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43908 clean) \
bba45b8b 43909 || exit 1
e393202e 43910
6bd3dfaa 43911@endif target-libjava
e393202e 43912
4fa63067
NN
43913.PHONY: maybe-distclean-target-libjava distclean-target-libjava
43914maybe-distclean-target-libjava:
6bd3dfaa
PB
43915@if target-libjava
43916maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 43917
4fa63067 43918distclean-target-libjava:
0aed8855 43919 @: $(MAKE); $(unstage)
22121df0 43920 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43921 r=`${PWD_COMMAND}`; export r; \
43922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43923 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43924 echo "Doing distclean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43925 for flag in $(EXTRA_TARGET_FLAGS); do \
43926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43927 done; \
43928 (cd $(TARGET_SUBDIR)/libjava && \
43929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43931 "RANLIB=$${RANLIB}" \
0c24b341 43932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43933 distclean) \
4fa63067 43934 || exit 1
3866be5d 43935
6bd3dfaa 43936@endif target-libjava
930314a4 43937
4fa63067
NN
43938.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
43939maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
43940@if target-libjava
43941maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 43942
4fa63067 43943maintainer-clean-target-libjava:
0aed8855 43944 @: $(MAKE); $(unstage)
22121df0 43945 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43946 r=`${PWD_COMMAND}`; export r; \
b40e3958 43947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43948 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43949 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43950 for flag in $(EXTRA_TARGET_FLAGS); do \
43951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43952 done; \
43953 (cd $(TARGET_SUBDIR)/libjava && \
43954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43956 "RANLIB=$${RANLIB}" \
0c24b341 43957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43958 maintainer-clean) \
4fa63067 43959 || exit 1
e393202e 43960
6bd3dfaa 43961@endif target-libjava
e393202e 43962
4fa63067 43963
15723a45 43964
a7254363 43965
e90269c8 43966
a7254363
PB
43967.PHONY: configure-target-zlib maybe-configure-target-zlib
43968maybe-configure-target-zlib:
4f0ef2d8
CD
43969@if gcc-bootstrap
43970configure-target-zlib: stage_current
43971@endif gcc-bootstrap
a7254363
PB
43972@if target-zlib
43973maybe-configure-target-zlib: configure-target-zlib
c52c6897 43974configure-target-zlib:
0aed8855
PB
43975 @: $(MAKE); $(unstage)
43976 @r=`${PWD_COMMAND}`; export r; \
43977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43978 echo "Checking multilib configuration for zlib..."; \
22121df0
L
43979 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
43980 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
43981 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
43982 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
43983 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
43984 else \
43985 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
43986 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
43987 fi; \
43988 else \
43989 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
43990 fi; \
43991 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 43992 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 43993 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43994 echo Configuring in $(TARGET_SUBDIR)/zlib; \
43995 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 43996 case $(srcdir) in \
b00612cc
PB
43997 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43998 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
43999 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44000 esac; \
1b6c0831 44001 module_srcdir=zlib; \
bba45b8b 44002 rm -f no-such-file || : ; \
1b6c0831
L
44003 CONFIG_SITE=no-such-file $(SHELL) \
44004 $$s/$$module_srcdir/configure \
44005 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44006 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44007 --target=${target_alias} \
bba45b8b 44008 || exit 1
6bd3dfaa 44009@endif target-zlib
e393202e 44010
a7254363
PB
44011
44012
d545f33b
PB
44013
44014
4fa63067
NN
44015.PHONY: all-target-zlib maybe-all-target-zlib
44016maybe-all-target-zlib:
4f0ef2d8
CD
44017@if gcc-bootstrap
44018all-target-zlib: stage_current
44019@endif gcc-bootstrap
6bd3dfaa 44020@if target-zlib
72b2455a 44021TARGET-target-zlib=all
6bd3dfaa 44022maybe-all-target-zlib: all-target-zlib
4fa63067 44023all-target-zlib: configure-target-zlib
0aed8855 44024 @: $(MAKE); $(unstage)
b40e3958
L
44025 @r=`${PWD_COMMAND}`; export r; \
44026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44027 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44028 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 44029 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44030 $(TARGET-target-zlib))
6bd3dfaa 44031@endif target-zlib
e393202e 44032
a7254363
PB
44033
44034
d545f33b
PB
44035
44036
4fa63067
NN
44037.PHONY: check-target-zlib maybe-check-target-zlib
44038maybe-check-target-zlib:
6bd3dfaa
PB
44039@if target-zlib
44040maybe-check-target-zlib: check-target-zlib
16ae0395 44041
4fa63067 44042check-target-zlib:
0aed8855 44043 @: $(MAKE); $(unstage)
b40e3958
L
44044 @r=`${PWD_COMMAND}`; export r; \
44045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44046 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44047 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44048 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44049
6bd3dfaa 44050@endif target-zlib
930314a4 44051
4fa63067
NN
44052.PHONY: install-target-zlib maybe-install-target-zlib
44053maybe-install-target-zlib:
6bd3dfaa
PB
44054@if target-zlib
44055maybe-install-target-zlib: install-target-zlib
16ae0395 44056
4fa63067 44057install-target-zlib: installdirs
0aed8855 44058 @: $(MAKE); $(unstage)
b40e3958
L
44059 @r=`${PWD_COMMAND}`; export r; \
44060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44061 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44062 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44063 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44064
6bd3dfaa 44065@endif target-zlib
e393202e 44066
9b980aa1
RW
44067.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
44068maybe-install-strip-target-zlib:
44069@if target-zlib
44070maybe-install-strip-target-zlib: install-strip-target-zlib
44071
44072install-strip-target-zlib: installdirs
44073 @: $(MAKE); $(unstage)
44074 @r=`${PWD_COMMAND}`; export r; \
44075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44076 $(NORMAL_TARGET_EXPORTS) \
44077 (cd $(TARGET_SUBDIR)/zlib && \
44078 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44079
44080@endif target-zlib
44081
56a8fe78 44082# Other targets (info, dvi, pdf, etc.)
15723a45 44083
4fa63067
NN
44084.PHONY: maybe-info-target-zlib info-target-zlib
44085maybe-info-target-zlib:
6bd3dfaa
PB
44086@if target-zlib
44087maybe-info-target-zlib: info-target-zlib
15723a45 44088
4fa63067
NN
44089info-target-zlib: \
44090 configure-target-zlib
0aed8855 44091 @: $(MAKE); $(unstage)
22121df0 44092 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44093 r=`${PWD_COMMAND}`; export r; \
44094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44095 $(NORMAL_TARGET_EXPORTS) \
22121df0 44096 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44097 for flag in $(EXTRA_TARGET_FLAGS); do \
44098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44099 done; \
44100 (cd $(TARGET_SUBDIR)/zlib && \
44101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44103 "RANLIB=$${RANLIB}" \
0c24b341 44104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44105 info) \
bba45b8b 44106 || exit 1
e393202e 44107
6bd3dfaa 44108@endif target-zlib
e393202e 44109
4fa63067
NN
44110.PHONY: maybe-dvi-target-zlib dvi-target-zlib
44111maybe-dvi-target-zlib:
6bd3dfaa
PB
44112@if target-zlib
44113maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 44114
4fa63067
NN
44115dvi-target-zlib: \
44116 configure-target-zlib
0aed8855 44117 @: $(MAKE); $(unstage)
22121df0 44118 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44119 r=`${PWD_COMMAND}`; export r; \
b40e3958 44120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44121 $(NORMAL_TARGET_EXPORTS) \
22121df0 44122 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44123 for flag in $(EXTRA_TARGET_FLAGS); do \
44124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44125 done; \
44126 (cd $(TARGET_SUBDIR)/zlib && \
44127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44129 "RANLIB=$${RANLIB}" \
0c24b341 44130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44131 dvi) \
4fa63067 44132 || exit 1
e393202e 44133
6bd3dfaa 44134@endif target-zlib
930314a4 44135
56a8fe78
DD
44136.PHONY: maybe-pdf-target-zlib pdf-target-zlib
44137maybe-pdf-target-zlib:
44138@if target-zlib
44139maybe-pdf-target-zlib: pdf-target-zlib
44140
44141pdf-target-zlib: \
44142 configure-target-zlib
44143 @: $(MAKE); $(unstage)
22121df0 44144 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
44145 r=`${PWD_COMMAND}`; export r; \
44146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44147 $(NORMAL_TARGET_EXPORTS) \
22121df0 44148 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
44149 for flag in $(EXTRA_TARGET_FLAGS); do \
44150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44151 done; \
44152 (cd $(TARGET_SUBDIR)/zlib && \
44153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44155 "RANLIB=$${RANLIB}" \
0c24b341 44156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44157 pdf) \
44158 || exit 1
44159
44160@endif target-zlib
44161
6d389afc
MS
44162.PHONY: maybe-html-target-zlib html-target-zlib
44163maybe-html-target-zlib:
44164@if target-zlib
44165maybe-html-target-zlib: html-target-zlib
44166
44167html-target-zlib: \
44168 configure-target-zlib
0aed8855 44169 @: $(MAKE); $(unstage)
22121df0 44170 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
44171 r=`${PWD_COMMAND}`; export r; \
44172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44173 $(NORMAL_TARGET_EXPORTS) \
22121df0 44174 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
44175 for flag in $(EXTRA_TARGET_FLAGS); do \
44176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44177 done; \
44178 (cd $(TARGET_SUBDIR)/zlib && \
44179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44181 "RANLIB=$${RANLIB}" \
0c24b341 44182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44183 html) \
44184 || exit 1
44185
44186@endif target-zlib
44187
4fa63067
NN
44188.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
44189maybe-TAGS-target-zlib:
6bd3dfaa
PB
44190@if target-zlib
44191maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 44192
4fa63067
NN
44193TAGS-target-zlib: \
44194 configure-target-zlib
0aed8855 44195 @: $(MAKE); $(unstage)
22121df0 44196 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44197 r=`${PWD_COMMAND}`; export r; \
b40e3958 44198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44199 $(NORMAL_TARGET_EXPORTS) \
22121df0 44200 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44201 for flag in $(EXTRA_TARGET_FLAGS); do \
44202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44203 done; \
44204 (cd $(TARGET_SUBDIR)/zlib && \
44205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44207 "RANLIB=$${RANLIB}" \
0c24b341 44208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44209 TAGS) \
4fa63067 44210 || exit 1
e393202e 44211
6bd3dfaa 44212@endif target-zlib
15723a45 44213
4fa63067
NN
44214.PHONY: maybe-install-info-target-zlib install-info-target-zlib
44215maybe-install-info-target-zlib:
6bd3dfaa
PB
44216@if target-zlib
44217maybe-install-info-target-zlib: install-info-target-zlib
15723a45 44218
4fa63067
NN
44219install-info-target-zlib: \
44220 configure-target-zlib \
44221 info-target-zlib
0aed8855 44222 @: $(MAKE); $(unstage)
22121df0 44223 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44224 r=`${PWD_COMMAND}`; export r; \
44225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44226 $(NORMAL_TARGET_EXPORTS) \
22121df0 44227 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44228 for flag in $(EXTRA_TARGET_FLAGS); do \
44229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44230 done; \
44231 (cd $(TARGET_SUBDIR)/zlib && \
44232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44234 "RANLIB=$${RANLIB}" \
0c24b341 44235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44236 install-info) \
bba45b8b 44237 || exit 1
e393202e 44238
6bd3dfaa 44239@endif target-zlib
16ae0395 44240
a3ca38d2
DD
44241.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
44242maybe-install-pdf-target-zlib:
44243@if target-zlib
44244maybe-install-pdf-target-zlib: install-pdf-target-zlib
44245
44246install-pdf-target-zlib: \
44247 configure-target-zlib \
44248 pdf-target-zlib
44249 @: $(MAKE); $(unstage)
22121df0 44250 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
44251 r=`${PWD_COMMAND}`; export r; \
44252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44253 $(NORMAL_TARGET_EXPORTS) \
22121df0 44254 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
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)/zlib && \
44259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44261 "RANLIB=$${RANLIB}" \
0c24b341 44262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44263 install-pdf) \
44264 || exit 1
44265
44266@endif target-zlib
44267
108a6f8e
CD
44268.PHONY: maybe-install-html-target-zlib install-html-target-zlib
44269maybe-install-html-target-zlib:
44270@if target-zlib
44271maybe-install-html-target-zlib: install-html-target-zlib
44272
44273install-html-target-zlib: \
44274 configure-target-zlib \
44275 html-target-zlib
44276 @: $(MAKE); $(unstage)
22121df0 44277 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
44278 r=`${PWD_COMMAND}`; export r; \
44279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44280 $(NORMAL_TARGET_EXPORTS) \
22121df0 44281 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
44282 for flag in $(EXTRA_TARGET_FLAGS); do \
44283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44284 done; \
44285 (cd $(TARGET_SUBDIR)/zlib && \
44286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44288 "RANLIB=$${RANLIB}" \
0c24b341 44289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44290 install-html) \
44291 || exit 1
44292
44293@endif target-zlib
44294
4fa63067
NN
44295.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
44296maybe-installcheck-target-zlib:
6bd3dfaa
PB
44297@if target-zlib
44298maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 44299
4fa63067
NN
44300installcheck-target-zlib: \
44301 configure-target-zlib
0aed8855 44302 @: $(MAKE); $(unstage)
22121df0 44303 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44304 r=`${PWD_COMMAND}`; export r; \
44305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44306 $(NORMAL_TARGET_EXPORTS) \
22121df0 44307 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44308 for flag in $(EXTRA_TARGET_FLAGS); do \
44309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44310 done; \
44311 (cd $(TARGET_SUBDIR)/zlib && \
44312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44314 "RANLIB=$${RANLIB}" \
0c24b341 44315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44316 installcheck) \
4fa63067 44317 || exit 1
e393202e 44318
6bd3dfaa 44319@endif target-zlib
16ae0395 44320
4fa63067
NN
44321.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
44322maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
44323@if target-zlib
44324maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 44325
4fa63067 44326mostlyclean-target-zlib:
0aed8855 44327 @: $(MAKE); $(unstage)
22121df0 44328 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44329 r=`${PWD_COMMAND}`; export r; \
44330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44331 $(NORMAL_TARGET_EXPORTS) \
22121df0 44332 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44333 for flag in $(EXTRA_TARGET_FLAGS); do \
44334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44335 done; \
44336 (cd $(TARGET_SUBDIR)/zlib && \
44337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44339 "RANLIB=$${RANLIB}" \
0c24b341 44340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44341 mostlyclean) \
4fa63067 44342 || exit 1
e393202e 44343
6bd3dfaa 44344@endif target-zlib
15723a45 44345
4fa63067
NN
44346.PHONY: maybe-clean-target-zlib clean-target-zlib
44347maybe-clean-target-zlib:
6bd3dfaa
PB
44348@if target-zlib
44349maybe-clean-target-zlib: clean-target-zlib
15723a45 44350
4fa63067 44351clean-target-zlib:
0aed8855 44352 @: $(MAKE); $(unstage)
22121df0 44353 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44354 r=`${PWD_COMMAND}`; export r; \
44355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44356 $(NORMAL_TARGET_EXPORTS) \
22121df0 44357 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44358 for flag in $(EXTRA_TARGET_FLAGS); do \
44359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44360 done; \
44361 (cd $(TARGET_SUBDIR)/zlib && \
44362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44364 "RANLIB=$${RANLIB}" \
0c24b341 44365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44366 clean) \
bba45b8b 44367 || exit 1
e393202e 44368
6bd3dfaa 44369@endif target-zlib
e393202e 44370
4fa63067
NN
44371.PHONY: maybe-distclean-target-zlib distclean-target-zlib
44372maybe-distclean-target-zlib:
6bd3dfaa
PB
44373@if target-zlib
44374maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 44375
4fa63067 44376distclean-target-zlib:
0aed8855 44377 @: $(MAKE); $(unstage)
22121df0 44378 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44379 r=`${PWD_COMMAND}`; export r; \
b40e3958 44380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44381 $(NORMAL_TARGET_EXPORTS) \
22121df0 44382 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44383 for flag in $(EXTRA_TARGET_FLAGS); do \
44384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44385 done; \
44386 (cd $(TARGET_SUBDIR)/zlib && \
44387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44389 "RANLIB=$${RANLIB}" \
0c24b341 44390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44391 distclean) \
4fa63067 44392 || exit 1
e393202e 44393
6bd3dfaa 44394@endif target-zlib
e393202e 44395
4fa63067
NN
44396.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
44397maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
44398@if target-zlib
44399maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 44400
4fa63067 44401maintainer-clean-target-zlib:
0aed8855 44402 @: $(MAKE); $(unstage)
22121df0 44403 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44404 r=`${PWD_COMMAND}`; export r; \
b40e3958 44405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44406 $(NORMAL_TARGET_EXPORTS) \
22121df0 44407 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44408 for flag in $(EXTRA_TARGET_FLAGS); do \
44409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44410 done; \
44411 (cd $(TARGET_SUBDIR)/zlib && \
44412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44414 "RANLIB=$${RANLIB}" \
0c24b341 44415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44416 maintainer-clean) \
4fa63067 44417 || exit 1
e393202e 44418
6bd3dfaa 44419@endif target-zlib
930314a4 44420
4fa63067 44421
15723a45 44422
a7254363 44423
e90269c8 44424
a7254363
PB
44425.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
44426maybe-configure-target-boehm-gc:
4f0ef2d8
CD
44427@if gcc-bootstrap
44428configure-target-boehm-gc: stage_current
44429@endif gcc-bootstrap
a7254363
PB
44430@if target-boehm-gc
44431maybe-configure-target-boehm-gc: configure-target-boehm-gc
c52c6897 44432configure-target-boehm-gc:
0aed8855
PB
44433 @: $(MAKE); $(unstage)
44434 @r=`${PWD_COMMAND}`; export r; \
44435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44436 echo "Checking multilib configuration for boehm-gc..."; \
22121df0
L
44437 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc; \
44438 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null; \
0aed8855
PB
44439 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44440 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44441 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
44442 else \
44443 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
44444 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
44445 fi; \
44446 else \
44447 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
c52c6897
PB
44448 fi; \
44449 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
22121df0 44450 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc; \
1f53ca9a 44451 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44452 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
44453 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b 44454 case $(srcdir) in \
b00612cc
PB
44455 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44456 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
44457 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44458 esac; \
1b6c0831 44459 module_srcdir=boehm-gc; \
bba45b8b 44460 rm -f no-such-file || : ; \
1b6c0831
L
44461 CONFIG_SITE=no-such-file $(SHELL) \
44462 $$s/$$module_srcdir/configure \
44463 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44464 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44465 --target=${target_alias} \
bba45b8b 44466 || exit 1
6bd3dfaa 44467@endif target-boehm-gc
e393202e 44468
a7254363
PB
44469
44470
d545f33b
PB
44471
44472
4fa63067
NN
44473.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
44474maybe-all-target-boehm-gc:
4f0ef2d8
CD
44475@if gcc-bootstrap
44476all-target-boehm-gc: stage_current
44477@endif gcc-bootstrap
6bd3dfaa 44478@if target-boehm-gc
72b2455a 44479TARGET-target-boehm-gc=all
6bd3dfaa 44480maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 44481all-target-boehm-gc: configure-target-boehm-gc
0aed8855 44482 @: $(MAKE); $(unstage)
b40e3958
L
44483 @r=`${PWD_COMMAND}`; export r; \
44484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44485 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44486 (cd $(TARGET_SUBDIR)/boehm-gc && \
b3676d82 44487 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44488 $(TARGET-target-boehm-gc))
6bd3dfaa 44489@endif target-boehm-gc
e393202e 44490
a7254363
PB
44491
44492
d545f33b
PB
44493
44494
4fa63067
NN
44495.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
44496maybe-check-target-boehm-gc:
6bd3dfaa
PB
44497@if target-boehm-gc
44498maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 44499
4fa63067 44500check-target-boehm-gc:
0aed8855 44501 @: $(MAKE); $(unstage)
b40e3958
L
44502 @r=`${PWD_COMMAND}`; export r; \
44503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44504 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44505 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44506 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44507
6bd3dfaa 44508@endif target-boehm-gc
930314a4 44509
4fa63067
NN
44510.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
44511maybe-install-target-boehm-gc:
6bd3dfaa
PB
44512@if target-boehm-gc
44513maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 44514
4fa63067 44515install-target-boehm-gc: installdirs
0aed8855 44516 @: $(MAKE); $(unstage)
b40e3958
L
44517 @r=`${PWD_COMMAND}`; export r; \
44518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44519 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44520 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44521 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44522
6bd3dfaa 44523@endif target-boehm-gc
e393202e 44524
9b980aa1
RW
44525.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
44526maybe-install-strip-target-boehm-gc:
44527@if target-boehm-gc
44528maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
44529
44530install-strip-target-boehm-gc: installdirs
44531 @: $(MAKE); $(unstage)
44532 @r=`${PWD_COMMAND}`; export r; \
44533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44534 $(NORMAL_TARGET_EXPORTS) \
44535 (cd $(TARGET_SUBDIR)/boehm-gc && \
44536 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44537
44538@endif target-boehm-gc
44539
56a8fe78 44540# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44541
44542.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
44543maybe-info-target-boehm-gc:
6bd3dfaa
PB
44544@if target-boehm-gc
44545maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
44546
44547info-target-boehm-gc: \
44548 configure-target-boehm-gc
0aed8855 44549 @: $(MAKE); $(unstage)
22121df0 44550 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44551 r=`${PWD_COMMAND}`; export r; \
44552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44553 $(NORMAL_TARGET_EXPORTS) \
22121df0 44554 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44555 for flag in $(EXTRA_TARGET_FLAGS); do \
44556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44557 done; \
44558 (cd $(TARGET_SUBDIR)/boehm-gc && \
44559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44561 "RANLIB=$${RANLIB}" \
0c24b341 44562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44563 info) \
4fa63067
NN
44564 || exit 1
44565
6bd3dfaa 44566@endif target-boehm-gc
4fa63067
NN
44567
44568.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
44569maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
44570@if target-boehm-gc
44571maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
44572
44573dvi-target-boehm-gc: \
44574 configure-target-boehm-gc
0aed8855 44575 @: $(MAKE); $(unstage)
22121df0 44576 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44577 r=`${PWD_COMMAND}`; export r; \
44578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44579 $(NORMAL_TARGET_EXPORTS) \
22121df0 44580 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44581 for flag in $(EXTRA_TARGET_FLAGS); do \
44582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44583 done; \
44584 (cd $(TARGET_SUBDIR)/boehm-gc && \
44585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44587 "RANLIB=$${RANLIB}" \
0c24b341 44588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44589 dvi) \
4fa63067
NN
44590 || exit 1
44591
6bd3dfaa 44592@endif target-boehm-gc
4fa63067 44593
56a8fe78
DD
44594.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
44595maybe-pdf-target-boehm-gc:
44596@if target-boehm-gc
44597maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
44598
44599pdf-target-boehm-gc: \
44600 configure-target-boehm-gc
44601 @: $(MAKE); $(unstage)
22121df0 44602 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
56a8fe78
DD
44603 r=`${PWD_COMMAND}`; export r; \
44604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44605 $(NORMAL_TARGET_EXPORTS) \
22121df0 44606 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc"; \
56a8fe78
DD
44607 for flag in $(EXTRA_TARGET_FLAGS); do \
44608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44609 done; \
44610 (cd $(TARGET_SUBDIR)/boehm-gc && \
44611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44613 "RANLIB=$${RANLIB}" \
0c24b341 44614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44615 pdf) \
44616 || exit 1
44617
44618@endif target-boehm-gc
44619
6d389afc
MS
44620.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
44621maybe-html-target-boehm-gc:
44622@if target-boehm-gc
44623maybe-html-target-boehm-gc: html-target-boehm-gc
44624
44625html-target-boehm-gc: \
44626 configure-target-boehm-gc
0aed8855 44627 @: $(MAKE); $(unstage)
22121df0 44628 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
6d389afc
MS
44629 r=`${PWD_COMMAND}`; export r; \
44630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44631 $(NORMAL_TARGET_EXPORTS) \
22121df0 44632 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc"; \
6d389afc
MS
44633 for flag in $(EXTRA_TARGET_FLAGS); do \
44634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44635 done; \
44636 (cd $(TARGET_SUBDIR)/boehm-gc && \
44637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44639 "RANLIB=$${RANLIB}" \
0c24b341 44640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44641 html) \
44642 || exit 1
44643
44644@endif target-boehm-gc
44645
4fa63067
NN
44646.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
44647maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
44648@if target-boehm-gc
44649maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
44650
44651TAGS-target-boehm-gc: \
44652 configure-target-boehm-gc
0aed8855 44653 @: $(MAKE); $(unstage)
22121df0 44654 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44655 r=`${PWD_COMMAND}`; export r; \
44656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44657 $(NORMAL_TARGET_EXPORTS) \
22121df0 44658 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44659 for flag in $(EXTRA_TARGET_FLAGS); do \
44660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44661 done; \
44662 (cd $(TARGET_SUBDIR)/boehm-gc && \
44663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44665 "RANLIB=$${RANLIB}" \
0c24b341 44666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44667 TAGS) \
4fa63067
NN
44668 || exit 1
44669
6bd3dfaa 44670@endif target-boehm-gc
4fa63067
NN
44671
44672.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
44673maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
44674@if target-boehm-gc
44675maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
44676
44677install-info-target-boehm-gc: \
44678 configure-target-boehm-gc \
44679 info-target-boehm-gc
0aed8855 44680 @: $(MAKE); $(unstage)
22121df0 44681 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44682 r=`${PWD_COMMAND}`; export r; \
44683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44684 $(NORMAL_TARGET_EXPORTS) \
22121df0 44685 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44686 for flag in $(EXTRA_TARGET_FLAGS); do \
44687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44688 done; \
44689 (cd $(TARGET_SUBDIR)/boehm-gc && \
44690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44692 "RANLIB=$${RANLIB}" \
0c24b341 44693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44694 install-info) \
4fa63067
NN
44695 || exit 1
44696
6bd3dfaa 44697@endif target-boehm-gc
4fa63067 44698
a3ca38d2
DD
44699.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
44700maybe-install-pdf-target-boehm-gc:
44701@if target-boehm-gc
44702maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
44703
44704install-pdf-target-boehm-gc: \
44705 configure-target-boehm-gc \
44706 pdf-target-boehm-gc
44707 @: $(MAKE); $(unstage)
22121df0 44708 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
a3ca38d2
DD
44709 r=`${PWD_COMMAND}`; export r; \
44710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44711 $(NORMAL_TARGET_EXPORTS) \
22121df0 44712 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc"; \
a3ca38d2
DD
44713 for flag in $(EXTRA_TARGET_FLAGS); do \
44714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44715 done; \
44716 (cd $(TARGET_SUBDIR)/boehm-gc && \
44717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44719 "RANLIB=$${RANLIB}" \
0c24b341 44720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44721 install-pdf) \
44722 || exit 1
44723
44724@endif target-boehm-gc
44725
108a6f8e
CD
44726.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
44727maybe-install-html-target-boehm-gc:
44728@if target-boehm-gc
44729maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
44730
44731install-html-target-boehm-gc: \
44732 configure-target-boehm-gc \
44733 html-target-boehm-gc
44734 @: $(MAKE); $(unstage)
22121df0 44735 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
108a6f8e
CD
44736 r=`${PWD_COMMAND}`; export r; \
44737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44738 $(NORMAL_TARGET_EXPORTS) \
22121df0 44739 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc"; \
108a6f8e
CD
44740 for flag in $(EXTRA_TARGET_FLAGS); do \
44741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44742 done; \
44743 (cd $(TARGET_SUBDIR)/boehm-gc && \
44744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44746 "RANLIB=$${RANLIB}" \
0c24b341 44747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44748 install-html) \
44749 || exit 1
44750
44751@endif target-boehm-gc
44752
4fa63067
NN
44753.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
44754maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
44755@if target-boehm-gc
44756maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
44757
44758installcheck-target-boehm-gc: \
44759 configure-target-boehm-gc
0aed8855 44760 @: $(MAKE); $(unstage)
22121df0 44761 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44762 r=`${PWD_COMMAND}`; export r; \
44763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44764 $(NORMAL_TARGET_EXPORTS) \
22121df0 44765 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44766 for flag in $(EXTRA_TARGET_FLAGS); do \
44767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44768 done; \
44769 (cd $(TARGET_SUBDIR)/boehm-gc && \
44770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44772 "RANLIB=$${RANLIB}" \
0c24b341 44773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44774 installcheck) \
4fa63067
NN
44775 || exit 1
44776
6bd3dfaa 44777@endif target-boehm-gc
4fa63067
NN
44778
44779.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
44780maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
44781@if target-boehm-gc
44782maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
44783
44784mostlyclean-target-boehm-gc:
0aed8855 44785 @: $(MAKE); $(unstage)
22121df0 44786 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44787 r=`${PWD_COMMAND}`; export r; \
44788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44789 $(NORMAL_TARGET_EXPORTS) \
22121df0 44790 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44791 for flag in $(EXTRA_TARGET_FLAGS); do \
44792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44793 done; \
44794 (cd $(TARGET_SUBDIR)/boehm-gc && \
44795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44797 "RANLIB=$${RANLIB}" \
0c24b341 44798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44799 mostlyclean) \
4fa63067
NN
44800 || exit 1
44801
6bd3dfaa 44802@endif target-boehm-gc
4fa63067
NN
44803
44804.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
44805maybe-clean-target-boehm-gc:
6bd3dfaa
PB
44806@if target-boehm-gc
44807maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
44808
44809clean-target-boehm-gc:
0aed8855 44810 @: $(MAKE); $(unstage)
22121df0 44811 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44812 r=`${PWD_COMMAND}`; export r; \
44813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44814 $(NORMAL_TARGET_EXPORTS) \
22121df0 44815 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44816 for flag in $(EXTRA_TARGET_FLAGS); do \
44817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44818 done; \
44819 (cd $(TARGET_SUBDIR)/boehm-gc && \
44820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44822 "RANLIB=$${RANLIB}" \
0c24b341 44823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44824 clean) \
4fa63067
NN
44825 || exit 1
44826
6bd3dfaa 44827@endif target-boehm-gc
4fa63067
NN
44828
44829.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
44830maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
44831@if target-boehm-gc
44832maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
44833
44834distclean-target-boehm-gc:
0aed8855 44835 @: $(MAKE); $(unstage)
22121df0 44836 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44837 r=`${PWD_COMMAND}`; export r; \
44838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44839 $(NORMAL_TARGET_EXPORTS) \
22121df0 44840 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44841 for flag in $(EXTRA_TARGET_FLAGS); do \
44842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44843 done; \
44844 (cd $(TARGET_SUBDIR)/boehm-gc && \
44845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44847 "RANLIB=$${RANLIB}" \
0c24b341 44848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44849 distclean) \
4fa63067
NN
44850 || exit 1
44851
6bd3dfaa 44852@endif target-boehm-gc
4fa63067
NN
44853
44854.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
44855maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
44856@if target-boehm-gc
44857maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
44858
44859maintainer-clean-target-boehm-gc:
0aed8855 44860 @: $(MAKE); $(unstage)
22121df0 44861 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44862 r=`${PWD_COMMAND}`; export r; \
44863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44864 $(NORMAL_TARGET_EXPORTS) \
22121df0 44865 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44866 for flag in $(EXTRA_TARGET_FLAGS); do \
44867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44868 done; \
44869 (cd $(TARGET_SUBDIR)/boehm-gc && \
44870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44872 "RANLIB=$${RANLIB}" \
0c24b341 44873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44874 maintainer-clean) \
4fa63067
NN
44875 || exit 1
44876
6bd3dfaa 44877@endif target-boehm-gc
4fa63067
NN
44878
44879
15723a45 44880
15723a45 44881
a7254363 44882
a7254363
PB
44883.PHONY: configure-target-rda maybe-configure-target-rda
44884maybe-configure-target-rda:
4f0ef2d8
CD
44885@if gcc-bootstrap
44886configure-target-rda: stage_current
44887@endif gcc-bootstrap
a7254363
PB
44888@if target-rda
44889maybe-configure-target-rda: configure-target-rda
c52c6897 44890configure-target-rda:
0aed8855
PB
44891 @: $(MAKE); $(unstage)
44892 @r=`${PWD_COMMAND}`; export r; \
44893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44894 echo "Checking multilib configuration for rda..."; \
22121df0
L
44895 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
44896 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
44897 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
44898 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
44899 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
44900 else \
44901 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
44902 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
44903 fi; \
44904 else \
44905 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
44906 fi; \
44907 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 44908 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 44909 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44910 echo Configuring in $(TARGET_SUBDIR)/rda; \
44911 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 44912 case $(srcdir) in \
b00612cc
PB
44913 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44914 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
44915 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44916 esac; \
1b6c0831 44917 module_srcdir=rda; \
bba45b8b 44918 rm -f no-such-file || : ; \
1b6c0831
L
44919 CONFIG_SITE=no-such-file $(SHELL) \
44920 $$s/$$module_srcdir/configure \
44921 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44922 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44923 --target=${target_alias} \
bba45b8b 44924 || exit 1
6bd3dfaa 44925@endif target-rda
49b7683b 44926
a7254363
PB
44927
44928
d545f33b
PB
44929
44930
4fa63067
NN
44931.PHONY: all-target-rda maybe-all-target-rda
44932maybe-all-target-rda:
4f0ef2d8
CD
44933@if gcc-bootstrap
44934all-target-rda: stage_current
44935@endif gcc-bootstrap
6bd3dfaa 44936@if target-rda
72b2455a 44937TARGET-target-rda=all
6bd3dfaa 44938maybe-all-target-rda: all-target-rda
4fa63067 44939all-target-rda: configure-target-rda
0aed8855 44940 @: $(MAKE); $(unstage)
b40e3958
L
44941 @r=`${PWD_COMMAND}`; export r; \
44942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44943 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44944 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 44945 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44946 $(TARGET-target-rda))
6bd3dfaa 44947@endif target-rda
252b5132 44948
a7254363
PB
44949
44950
d545f33b
PB
44951
44952
4fa63067
NN
44953.PHONY: check-target-rda maybe-check-target-rda
44954maybe-check-target-rda:
6bd3dfaa
PB
44955@if target-rda
44956maybe-check-target-rda: check-target-rda
16ae0395 44957
4fa63067 44958check-target-rda:
0aed8855 44959 @: $(MAKE); $(unstage)
b40e3958
L
44960 @r=`${PWD_COMMAND}`; export r; \
44961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44962 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44963 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44964 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 44965
6bd3dfaa 44966@endif target-rda
930314a4 44967
4fa63067
NN
44968.PHONY: install-target-rda maybe-install-target-rda
44969maybe-install-target-rda:
6bd3dfaa
PB
44970@if target-rda
44971maybe-install-target-rda: install-target-rda
16ae0395 44972
4fa63067 44973install-target-rda: installdirs
0aed8855 44974 @: $(MAKE); $(unstage)
b40e3958
L
44975 @r=`${PWD_COMMAND}`; export r; \
44976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44977 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44978 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44979 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44980
6bd3dfaa 44981@endif target-rda
e393202e 44982
9b980aa1
RW
44983.PHONY: install-strip-target-rda maybe-install-strip-target-rda
44984maybe-install-strip-target-rda:
44985@if target-rda
44986maybe-install-strip-target-rda: install-strip-target-rda
44987
44988install-strip-target-rda: installdirs
44989 @: $(MAKE); $(unstage)
44990 @r=`${PWD_COMMAND}`; export r; \
44991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44992 $(NORMAL_TARGET_EXPORTS) \
44993 (cd $(TARGET_SUBDIR)/rda && \
44994 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44995
44996@endif target-rda
44997
56a8fe78 44998# Other targets (info, dvi, pdf, etc.)
15723a45 44999
4fa63067
NN
45000.PHONY: maybe-info-target-rda info-target-rda
45001maybe-info-target-rda:
6bd3dfaa
PB
45002@if target-rda
45003maybe-info-target-rda: info-target-rda
15723a45 45004
4fa63067
NN
45005info-target-rda: \
45006 configure-target-rda
0aed8855 45007 @: $(MAKE); $(unstage)
22121df0 45008 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45009 r=`${PWD_COMMAND}`; export r; \
45010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45011 $(NORMAL_TARGET_EXPORTS) \
22121df0 45012 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45013 for flag in $(EXTRA_TARGET_FLAGS); do \
45014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45015 done; \
45016 (cd $(TARGET_SUBDIR)/rda && \
45017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45019 "RANLIB=$${RANLIB}" \
0c24b341 45020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45021 info) \
bba45b8b 45022 || exit 1
252b5132 45023
6bd3dfaa 45024@endif target-rda
4fa63067
NN
45025
45026.PHONY: maybe-dvi-target-rda dvi-target-rda
45027maybe-dvi-target-rda:
6bd3dfaa
PB
45028@if target-rda
45029maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
45030
45031dvi-target-rda: \
45032 configure-target-rda
0aed8855 45033 @: $(MAKE); $(unstage)
22121df0 45034 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45035 r=`${PWD_COMMAND}`; export r; \
b40e3958 45036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45037 $(NORMAL_TARGET_EXPORTS) \
22121df0 45038 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45039 for flag in $(EXTRA_TARGET_FLAGS); do \
45040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45041 done; \
45042 (cd $(TARGET_SUBDIR)/rda && \
45043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45045 "RANLIB=$${RANLIB}" \
0c24b341 45046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45047 dvi) \
4fa63067 45048 || exit 1
252b5132 45049
6bd3dfaa 45050@endif target-rda
16ae0395 45051
56a8fe78
DD
45052.PHONY: maybe-pdf-target-rda pdf-target-rda
45053maybe-pdf-target-rda:
45054@if target-rda
45055maybe-pdf-target-rda: pdf-target-rda
45056
45057pdf-target-rda: \
45058 configure-target-rda
45059 @: $(MAKE); $(unstage)
22121df0 45060 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
45061 r=`${PWD_COMMAND}`; export r; \
45062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45063 $(NORMAL_TARGET_EXPORTS) \
22121df0 45064 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
45065 for flag in $(EXTRA_TARGET_FLAGS); do \
45066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45067 done; \
45068 (cd $(TARGET_SUBDIR)/rda && \
45069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45071 "RANLIB=$${RANLIB}" \
0c24b341 45072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45073 pdf) \
45074 || exit 1
45075
45076@endif target-rda
45077
6d389afc
MS
45078.PHONY: maybe-html-target-rda html-target-rda
45079maybe-html-target-rda:
45080@if target-rda
45081maybe-html-target-rda: html-target-rda
45082
45083html-target-rda: \
45084 configure-target-rda
0aed8855 45085 @: $(MAKE); $(unstage)
22121df0 45086 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
45087 r=`${PWD_COMMAND}`; export r; \
45088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45089 $(NORMAL_TARGET_EXPORTS) \
22121df0 45090 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
45091 for flag in $(EXTRA_TARGET_FLAGS); do \
45092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45093 done; \
45094 (cd $(TARGET_SUBDIR)/rda && \
45095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45097 "RANLIB=$${RANLIB}" \
0c24b341 45098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45099 html) \
45100 || exit 1
45101
45102@endif target-rda
45103
4fa63067
NN
45104.PHONY: maybe-TAGS-target-rda TAGS-target-rda
45105maybe-TAGS-target-rda:
6bd3dfaa
PB
45106@if target-rda
45107maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
45108
45109TAGS-target-rda: \
45110 configure-target-rda
0aed8855 45111 @: $(MAKE); $(unstage)
22121df0 45112 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45113 r=`${PWD_COMMAND}`; export r; \
b40e3958 45114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45115 $(NORMAL_TARGET_EXPORTS) \
22121df0 45116 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45117 for flag in $(EXTRA_TARGET_FLAGS); do \
45118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45119 done; \
45120 (cd $(TARGET_SUBDIR)/rda && \
45121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45123 "RANLIB=$${RANLIB}" \
0c24b341 45124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45125 TAGS) \
4fa63067 45126 || exit 1
e393202e 45127
6bd3dfaa 45128@endif target-rda
930314a4 45129
4fa63067
NN
45130.PHONY: maybe-install-info-target-rda install-info-target-rda
45131maybe-install-info-target-rda:
6bd3dfaa
PB
45132@if target-rda
45133maybe-install-info-target-rda: install-info-target-rda
16ae0395 45134
4fa63067
NN
45135install-info-target-rda: \
45136 configure-target-rda \
45137 info-target-rda
0aed8855 45138 @: $(MAKE); $(unstage)
22121df0 45139 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45140 r=`${PWD_COMMAND}`; export r; \
b40e3958 45141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45142 $(NORMAL_TARGET_EXPORTS) \
22121df0 45143 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45144 for flag in $(EXTRA_TARGET_FLAGS); do \
45145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45146 done; \
45147 (cd $(TARGET_SUBDIR)/rda && \
45148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45150 "RANLIB=$${RANLIB}" \
0c24b341 45151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45152 install-info) \
4fa63067 45153 || exit 1
252b5132 45154
6bd3dfaa 45155@endif target-rda
e393202e 45156
a3ca38d2
DD
45157.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
45158maybe-install-pdf-target-rda:
45159@if target-rda
45160maybe-install-pdf-target-rda: install-pdf-target-rda
45161
45162install-pdf-target-rda: \
45163 configure-target-rda \
45164 pdf-target-rda
45165 @: $(MAKE); $(unstage)
22121df0 45166 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
45167 r=`${PWD_COMMAND}`; export r; \
45168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45169 $(NORMAL_TARGET_EXPORTS) \
22121df0 45170 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
45171 for flag in $(EXTRA_TARGET_FLAGS); do \
45172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45173 done; \
45174 (cd $(TARGET_SUBDIR)/rda && \
45175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45177 "RANLIB=$${RANLIB}" \
0c24b341 45178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45179 install-pdf) \
45180 || exit 1
45181
45182@endif target-rda
45183
108a6f8e
CD
45184.PHONY: maybe-install-html-target-rda install-html-target-rda
45185maybe-install-html-target-rda:
45186@if target-rda
45187maybe-install-html-target-rda: install-html-target-rda
45188
45189install-html-target-rda: \
45190 configure-target-rda \
45191 html-target-rda
45192 @: $(MAKE); $(unstage)
22121df0 45193 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
45194 r=`${PWD_COMMAND}`; export r; \
45195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45196 $(NORMAL_TARGET_EXPORTS) \
22121df0 45197 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
45198 for flag in $(EXTRA_TARGET_FLAGS); do \
45199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45200 done; \
45201 (cd $(TARGET_SUBDIR)/rda && \
45202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45204 "RANLIB=$${RANLIB}" \
0c24b341 45205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45206 install-html) \
45207 || exit 1
45208
45209@endif target-rda
45210
4fa63067
NN
45211.PHONY: maybe-installcheck-target-rda installcheck-target-rda
45212maybe-installcheck-target-rda:
6bd3dfaa
PB
45213@if target-rda
45214maybe-installcheck-target-rda: installcheck-target-rda
15723a45 45215
4fa63067
NN
45216installcheck-target-rda: \
45217 configure-target-rda
0aed8855 45218 @: $(MAKE); $(unstage)
22121df0 45219 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
45220 r=`${PWD_COMMAND}`; export r; \
45221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45222 $(NORMAL_TARGET_EXPORTS) \
22121df0 45223 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45224 for flag in $(EXTRA_TARGET_FLAGS); do \
45225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45226 done; \
45227 (cd $(TARGET_SUBDIR)/rda && \
45228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45230 "RANLIB=$${RANLIB}" \
0c24b341 45231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45232 installcheck) \
4fa63067 45233 || exit 1
15723a45 45234
6bd3dfaa 45235@endif target-rda
4fa63067
NN
45236
45237.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
45238maybe-mostlyclean-target-rda:
6bd3dfaa
PB
45239@if target-rda
45240maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
45241
45242mostlyclean-target-rda:
0aed8855 45243 @: $(MAKE); $(unstage)
22121df0 45244 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45245 r=`${PWD_COMMAND}`; export r; \
45246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45247 $(NORMAL_TARGET_EXPORTS) \
22121df0 45248 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45249 for flag in $(EXTRA_TARGET_FLAGS); do \
45250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45251 done; \
45252 (cd $(TARGET_SUBDIR)/rda && \
45253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45255 "RANLIB=$${RANLIB}" \
0c24b341 45256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45257 mostlyclean) \
bba45b8b 45258 || exit 1
252b5132 45259
6bd3dfaa 45260@endif target-rda
4fa63067
NN
45261
45262.PHONY: maybe-clean-target-rda clean-target-rda
45263maybe-clean-target-rda:
6bd3dfaa
PB
45264@if target-rda
45265maybe-clean-target-rda: clean-target-rda
4fa63067
NN
45266
45267clean-target-rda:
0aed8855 45268 @: $(MAKE); $(unstage)
22121df0 45269 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45270 r=`${PWD_COMMAND}`; export r; \
b40e3958 45271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45272 $(NORMAL_TARGET_EXPORTS) \
22121df0 45273 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45274 for flag in $(EXTRA_TARGET_FLAGS); do \
45275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45276 done; \
bba45b8b 45277 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45280 "RANLIB=$${RANLIB}" \
0c24b341 45281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45282 clean) \
4fa63067 45283 || exit 1
252b5132 45284
6bd3dfaa 45285@endif target-rda
16ae0395 45286
4fa63067
NN
45287.PHONY: maybe-distclean-target-rda distclean-target-rda
45288maybe-distclean-target-rda:
6bd3dfaa
PB
45289@if target-rda
45290maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
45291
45292distclean-target-rda:
0aed8855 45293 @: $(MAKE); $(unstage)
22121df0 45294 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45295 r=`${PWD_COMMAND}`; export r; \
b40e3958 45296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45297 $(NORMAL_TARGET_EXPORTS) \
22121df0 45298 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45299 for flag in $(EXTRA_TARGET_FLAGS); do \
45300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45301 done; \
bba45b8b 45302 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45305 "RANLIB=$${RANLIB}" \
0c24b341 45306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45307 distclean) \
4fa63067 45308 || exit 1
252b5132 45309
6bd3dfaa 45310@endif target-rda
930314a4 45311
4fa63067
NN
45312.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
45313maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
45314@if target-rda
45315maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 45316
4fa63067 45317maintainer-clean-target-rda:
0aed8855 45318 @: $(MAKE); $(unstage)
22121df0 45319 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45320 r=`${PWD_COMMAND}`; export r; \
b40e3958 45321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45322 $(NORMAL_TARGET_EXPORTS) \
22121df0 45323 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45324 for flag in $(EXTRA_TARGET_FLAGS); do \
45325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45326 done; \
bba45b8b 45327 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45330 "RANLIB=$${RANLIB}" \
0c24b341 45331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45332 maintainer-clean) \
4fa63067
NN
45333 || exit 1
45334
6bd3dfaa 45335@endif target-rda
252b5132 45336
e393202e 45337
a2592b1b 45338
a7254363
PB
45339
45340
45341.PHONY: configure-target-libada maybe-configure-target-libada
45342maybe-configure-target-libada:
4f0ef2d8
CD
45343@if gcc-bootstrap
45344configure-target-libada: stage_current
45345@endif gcc-bootstrap
a7254363
PB
45346@if target-libada
45347maybe-configure-target-libada: configure-target-libada
c52c6897 45348configure-target-libada:
0aed8855
PB
45349 @: $(MAKE); $(unstage)
45350 @r=`${PWD_COMMAND}`; export r; \
45351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45352 echo "Checking multilib configuration for libada..."; \
22121df0
L
45353 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
45354 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
45355 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
45356 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
45357 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
45358 else \
45359 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
45360 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
45361 fi; \
45362 else \
45363 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
45364 fi; \
45365 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 45366 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 45367 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
45368 echo Configuring in $(TARGET_SUBDIR)/libada; \
45369 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
45370 case $(srcdir) in \
b00612cc
PB
45371 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45372 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
45373 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 45374 esac; \
1b6c0831 45375 module_srcdir=libada; \
a2592b1b 45376 rm -f no-such-file || : ; \
1b6c0831
L
45377 CONFIG_SITE=no-such-file $(SHELL) \
45378 $$s/$$module_srcdir/configure \
45379 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45380 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45381 --target=${target_alias} \
a2592b1b 45382 || exit 1
6bd3dfaa 45383@endif target-libada
a2592b1b 45384
a7254363
PB
45385
45386
d545f33b
PB
45387
45388
4fa63067
NN
45389.PHONY: all-target-libada maybe-all-target-libada
45390maybe-all-target-libada:
4f0ef2d8
CD
45391@if gcc-bootstrap
45392all-target-libada: stage_current
45393@endif gcc-bootstrap
6bd3dfaa 45394@if target-libada
72b2455a 45395TARGET-target-libada=all
6bd3dfaa 45396maybe-all-target-libada: all-target-libada
4fa63067 45397all-target-libada: configure-target-libada
0aed8855 45398 @: $(MAKE); $(unstage)
4fa63067
NN
45399 @r=`${PWD_COMMAND}`; export r; \
45400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45401 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45402 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 45403 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45404 $(TARGET-target-libada))
6bd3dfaa 45405@endif target-libada
4fa63067 45406
a7254363
PB
45407
45408
d545f33b
PB
45409
45410
4fa63067
NN
45411.PHONY: check-target-libada maybe-check-target-libada
45412maybe-check-target-libada:
6bd3dfaa
PB
45413@if target-libada
45414maybe-check-target-libada: check-target-libada
4fa63067
NN
45415
45416check-target-libada:
0aed8855 45417 @: $(MAKE); $(unstage)
4fa63067
NN
45418 @r=`${PWD_COMMAND}`; export r; \
45419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45420 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45421 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45422 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45423
6bd3dfaa 45424@endif target-libada
4fa63067
NN
45425
45426.PHONY: install-target-libada maybe-install-target-libada
45427maybe-install-target-libada:
6bd3dfaa
PB
45428@if target-libada
45429maybe-install-target-libada: install-target-libada
4fa63067
NN
45430
45431install-target-libada: installdirs
0aed8855 45432 @: $(MAKE); $(unstage)
4fa63067
NN
45433 @r=`${PWD_COMMAND}`; export r; \
45434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45435 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45436 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45437 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45438
6bd3dfaa 45439@endif target-libada
4fa63067 45440
9b980aa1
RW
45441.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45442maybe-install-strip-target-libada:
45443@if target-libada
45444maybe-install-strip-target-libada: install-strip-target-libada
45445
45446install-strip-target-libada: installdirs
45447 @: $(MAKE); $(unstage)
45448 @r=`${PWD_COMMAND}`; export r; \
45449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45450 $(NORMAL_TARGET_EXPORTS) \
45451 (cd $(TARGET_SUBDIR)/libada && \
45452 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45453
45454@endif target-libada
45455
56a8fe78 45456# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45457
45458.PHONY: maybe-info-target-libada info-target-libada
45459maybe-info-target-libada:
6bd3dfaa
PB
45460@if target-libada
45461maybe-info-target-libada: info-target-libada
4fa63067
NN
45462
45463info-target-libada: \
45464 configure-target-libada
0aed8855 45465 @: $(MAKE); $(unstage)
22121df0 45466 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45467 r=`${PWD_COMMAND}`; export r; \
45468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45469 $(NORMAL_TARGET_EXPORTS) \
22121df0 45470 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45471 for flag in $(EXTRA_TARGET_FLAGS); do \
45472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45473 done; \
45474 (cd $(TARGET_SUBDIR)/libada && \
45475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45477 "RANLIB=$${RANLIB}" \
0c24b341 45478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45479 info) \
4fa63067
NN
45480 || exit 1
45481
6bd3dfaa 45482@endif target-libada
4fa63067
NN
45483
45484.PHONY: maybe-dvi-target-libada dvi-target-libada
45485maybe-dvi-target-libada:
6bd3dfaa
PB
45486@if target-libada
45487maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
45488
45489dvi-target-libada: \
45490 configure-target-libada
0aed8855 45491 @: $(MAKE); $(unstage)
22121df0 45492 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45493 r=`${PWD_COMMAND}`; export r; \
45494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45495 $(NORMAL_TARGET_EXPORTS) \
22121df0 45496 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45497 for flag in $(EXTRA_TARGET_FLAGS); do \
45498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45499 done; \
45500 (cd $(TARGET_SUBDIR)/libada && \
45501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45503 "RANLIB=$${RANLIB}" \
0c24b341 45504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45505 dvi) \
4fa63067
NN
45506 || exit 1
45507
6bd3dfaa 45508@endif target-libada
4fa63067 45509
56a8fe78
DD
45510.PHONY: maybe-pdf-target-libada pdf-target-libada
45511maybe-pdf-target-libada:
45512@if target-libada
45513maybe-pdf-target-libada: pdf-target-libada
45514
45515pdf-target-libada: \
45516 configure-target-libada
45517 @: $(MAKE); $(unstage)
22121df0 45518 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
45519 r=`${PWD_COMMAND}`; export r; \
45520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45521 $(NORMAL_TARGET_EXPORTS) \
22121df0 45522 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
45523 for flag in $(EXTRA_TARGET_FLAGS); do \
45524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45525 done; \
45526 (cd $(TARGET_SUBDIR)/libada && \
45527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45529 "RANLIB=$${RANLIB}" \
0c24b341 45530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45531 pdf) \
45532 || exit 1
45533
45534@endif target-libada
45535
6d389afc
MS
45536.PHONY: maybe-html-target-libada html-target-libada
45537maybe-html-target-libada:
45538@if target-libada
45539maybe-html-target-libada: html-target-libada
45540
45541html-target-libada: \
45542 configure-target-libada
0aed8855 45543 @: $(MAKE); $(unstage)
22121df0 45544 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
45545 r=`${PWD_COMMAND}`; export r; \
45546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45547 $(NORMAL_TARGET_EXPORTS) \
22121df0 45548 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
45549 for flag in $(EXTRA_TARGET_FLAGS); do \
45550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45551 done; \
45552 (cd $(TARGET_SUBDIR)/libada && \
45553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45555 "RANLIB=$${RANLIB}" \
0c24b341 45556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45557 html) \
45558 || exit 1
45559
45560@endif target-libada
45561
4fa63067
NN
45562.PHONY: maybe-TAGS-target-libada TAGS-target-libada
45563maybe-TAGS-target-libada:
6bd3dfaa
PB
45564@if target-libada
45565maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
45566
45567TAGS-target-libada: \
45568 configure-target-libada
0aed8855 45569 @: $(MAKE); $(unstage)
22121df0 45570 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45571 r=`${PWD_COMMAND}`; export r; \
45572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45573 $(NORMAL_TARGET_EXPORTS) \
22121df0 45574 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45575 for flag in $(EXTRA_TARGET_FLAGS); do \
45576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45577 done; \
45578 (cd $(TARGET_SUBDIR)/libada && \
45579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45581 "RANLIB=$${RANLIB}" \
0c24b341 45582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45583 TAGS) \
4fa63067
NN
45584 || exit 1
45585
6bd3dfaa 45586@endif target-libada
4fa63067
NN
45587
45588.PHONY: maybe-install-info-target-libada install-info-target-libada
45589maybe-install-info-target-libada:
6bd3dfaa
PB
45590@if target-libada
45591maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
45592
45593install-info-target-libada: \
45594 configure-target-libada \
45595 info-target-libada
0aed8855 45596 @: $(MAKE); $(unstage)
22121df0 45597 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45598 r=`${PWD_COMMAND}`; export r; \
45599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45600 $(NORMAL_TARGET_EXPORTS) \
22121df0 45601 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45602 for flag in $(EXTRA_TARGET_FLAGS); do \
45603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45604 done; \
45605 (cd $(TARGET_SUBDIR)/libada && \
45606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45608 "RANLIB=$${RANLIB}" \
0c24b341 45609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45610 install-info) \
4fa63067
NN
45611 || exit 1
45612
6bd3dfaa 45613@endif target-libada
4fa63067 45614
a3ca38d2
DD
45615.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
45616maybe-install-pdf-target-libada:
45617@if target-libada
45618maybe-install-pdf-target-libada: install-pdf-target-libada
45619
45620install-pdf-target-libada: \
45621 configure-target-libada \
45622 pdf-target-libada
45623 @: $(MAKE); $(unstage)
22121df0 45624 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
45625 r=`${PWD_COMMAND}`; export r; \
45626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45627 $(NORMAL_TARGET_EXPORTS) \
22121df0 45628 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
45629 for flag in $(EXTRA_TARGET_FLAGS); do \
45630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45631 done; \
45632 (cd $(TARGET_SUBDIR)/libada && \
45633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45635 "RANLIB=$${RANLIB}" \
0c24b341 45636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45637 install-pdf) \
45638 || exit 1
45639
45640@endif target-libada
45641
108a6f8e
CD
45642.PHONY: maybe-install-html-target-libada install-html-target-libada
45643maybe-install-html-target-libada:
45644@if target-libada
45645maybe-install-html-target-libada: install-html-target-libada
45646
45647install-html-target-libada: \
45648 configure-target-libada \
45649 html-target-libada
45650 @: $(MAKE); $(unstage)
22121df0 45651 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
45652 r=`${PWD_COMMAND}`; export r; \
45653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45654 $(NORMAL_TARGET_EXPORTS) \
22121df0 45655 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
45656 for flag in $(EXTRA_TARGET_FLAGS); do \
45657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45658 done; \
45659 (cd $(TARGET_SUBDIR)/libada && \
45660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45662 "RANLIB=$${RANLIB}" \
0c24b341 45663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45664 install-html) \
45665 || exit 1
45666
45667@endif target-libada
45668
4fa63067
NN
45669.PHONY: maybe-installcheck-target-libada installcheck-target-libada
45670maybe-installcheck-target-libada:
6bd3dfaa
PB
45671@if target-libada
45672maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
45673
45674installcheck-target-libada: \
45675 configure-target-libada
0aed8855 45676 @: $(MAKE); $(unstage)
22121df0 45677 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45678 r=`${PWD_COMMAND}`; export r; \
45679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45680 $(NORMAL_TARGET_EXPORTS) \
22121df0 45681 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45682 for flag in $(EXTRA_TARGET_FLAGS); do \
45683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45684 done; \
45685 (cd $(TARGET_SUBDIR)/libada && \
45686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45688 "RANLIB=$${RANLIB}" \
0c24b341 45689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45690 installcheck) \
4fa63067
NN
45691 || exit 1
45692
6bd3dfaa 45693@endif target-libada
4fa63067
NN
45694
45695.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
45696maybe-mostlyclean-target-libada:
6bd3dfaa
PB
45697@if target-libada
45698maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
45699
45700mostlyclean-target-libada:
0aed8855 45701 @: $(MAKE); $(unstage)
22121df0 45702 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45703 r=`${PWD_COMMAND}`; export r; \
45704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45705 $(NORMAL_TARGET_EXPORTS) \
22121df0 45706 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45707 for flag in $(EXTRA_TARGET_FLAGS); do \
45708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45709 done; \
45710 (cd $(TARGET_SUBDIR)/libada && \
45711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45713 "RANLIB=$${RANLIB}" \
0c24b341 45714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45715 mostlyclean) \
4fa63067
NN
45716 || exit 1
45717
6bd3dfaa 45718@endif target-libada
4fa63067
NN
45719
45720.PHONY: maybe-clean-target-libada clean-target-libada
45721maybe-clean-target-libada:
6bd3dfaa
PB
45722@if target-libada
45723maybe-clean-target-libada: clean-target-libada
4fa63067
NN
45724
45725clean-target-libada:
0aed8855 45726 @: $(MAKE); $(unstage)
22121df0 45727 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45728 r=`${PWD_COMMAND}`; export r; \
45729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45730 $(NORMAL_TARGET_EXPORTS) \
22121df0 45731 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45732 for flag in $(EXTRA_TARGET_FLAGS); do \
45733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45734 done; \
45735 (cd $(TARGET_SUBDIR)/libada && \
45736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45738 "RANLIB=$${RANLIB}" \
0c24b341 45739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45740 clean) \
4fa63067
NN
45741 || exit 1
45742
6bd3dfaa 45743@endif target-libada
a2592b1b 45744
4fa63067
NN
45745.PHONY: maybe-distclean-target-libada distclean-target-libada
45746maybe-distclean-target-libada:
6bd3dfaa
PB
45747@if target-libada
45748maybe-distclean-target-libada: distclean-target-libada
a2592b1b 45749
4fa63067 45750distclean-target-libada:
0aed8855 45751 @: $(MAKE); $(unstage)
22121df0 45752 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45753 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45755 $(NORMAL_TARGET_EXPORTS) \
22121df0 45756 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45757 for flag in $(EXTRA_TARGET_FLAGS); do \
45758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45759 done; \
a2592b1b 45760 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45763 "RANLIB=$${RANLIB}" \
0c24b341 45764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45765 distclean) \
4fa63067 45766 || exit 1
a2592b1b 45767
6bd3dfaa 45768@endif target-libada
a2592b1b 45769
4fa63067
NN
45770.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
45771maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
45772@if target-libada
45773maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 45774
4fa63067 45775maintainer-clean-target-libada:
0aed8855 45776 @: $(MAKE); $(unstage)
22121df0 45777 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45778 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45780 $(NORMAL_TARGET_EXPORTS) \
22121df0 45781 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45782 for flag in $(EXTRA_TARGET_FLAGS); do \
45783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45784 done; \
a2592b1b 45785 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45788 "RANLIB=$${RANLIB}" \
0c24b341 45789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45790 maintainer-clean) \
4fa63067
NN
45791 || exit 1
45792
6bd3dfaa 45793@endif target-libada
a2592b1b
DD
45794
45795
e393202e 45796
b3ded179
PB
45797
45798
45799.PHONY: configure-target-libgomp maybe-configure-target-libgomp
45800maybe-configure-target-libgomp:
4f0ef2d8
CD
45801@if gcc-bootstrap
45802configure-target-libgomp: stage_current
45803@endif gcc-bootstrap
b3ded179
PB
45804@if target-libgomp
45805maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 45806configure-target-libgomp:
b3ded179
PB
45807 @r=`${PWD_COMMAND}`; export r; \
45808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45809 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
45810 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
45811 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
45812 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45813 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45814 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45815 else \
45816 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45817 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45818 fi; \
45819 else \
45820 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
45821 fi; \
45822 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 45823 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 45824 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
45825 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
45826 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
45827 case $(srcdir) in \
45828 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45829 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45830 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45831 esac; \
1b6c0831 45832 module_srcdir=libgomp; \
b3ded179 45833 rm -f no-such-file || : ; \
1b6c0831
L
45834 CONFIG_SITE=no-such-file $(SHELL) \
45835 $$s/$$module_srcdir/configure \
45836 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45837 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45838 --target=${target_alias} \
b3ded179
PB
45839 || exit 1
45840@endif target-libgomp
45841
45842
45843
911e63d0
JR
45844.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
45845maybe-configure-stage1-target-libgomp:
45846@if target-libgomp-bootstrap
45847maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
45848configure-stage1-target-libgomp:
45849 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45850 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45851 @r=`${PWD_COMMAND}`; export r; \
45852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45853 TFLAGS="$(STAGE1_TFLAGS)"; \
45854 echo "Checking multilib configuration for libgomp..."; \
22121df0 45855 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45856 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45857 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45858 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45859 else \
45860 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45861 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45862 fi; \
45863 else \
45864 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45865 fi; \
45866 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45867 $(NORMAL_TARGET_EXPORTS) \
45868 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45869 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45870 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45871 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
45872 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45873 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45874 case $(srcdir) in \
45875 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45876 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45877 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45878 esac; \
1b6c0831
L
45879 module_srcdir=libgomp; \
45880 $(SHELL) $$s/$$module_srcdir/configure \
45881 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45882 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45883 --target=${target_alias} \
45884 \
911e63d0
JR
45885 $(STAGE1_CONFIGURE_FLAGS)
45886@endif target-libgomp-bootstrap
45887
45888.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
45889maybe-configure-stage2-target-libgomp:
45890@if target-libgomp-bootstrap
45891maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
45892configure-stage2-target-libgomp:
45893 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45894 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45895 @r=`${PWD_COMMAND}`; export r; \
45896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45897 TFLAGS="$(STAGE2_TFLAGS)"; \
45898 echo "Checking multilib configuration for libgomp..."; \
22121df0 45899 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45900 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45901 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45902 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45903 else \
45904 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45905 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45906 fi; \
45907 else \
45908 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45909 fi; \
45910 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45911 $(NORMAL_TARGET_EXPORTS) \
45912 \
45913 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45914 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45915 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45916 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
45917 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45918 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45919 case $(srcdir) in \
45920 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45921 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45922 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45923 esac; \
1b6c0831
L
45924 module_srcdir=libgomp; \
45925 $(SHELL) $$s/$$module_srcdir/configure \
45926 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45927 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45928 --target=${target_alias} \
22121df0 45929 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45930 $(STAGE2_CONFIGURE_FLAGS)
45931@endif target-libgomp-bootstrap
45932
45933.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
45934maybe-configure-stage3-target-libgomp:
45935@if target-libgomp-bootstrap
45936maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
45937configure-stage3-target-libgomp:
45938 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45939 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45940 @r=`${PWD_COMMAND}`; export r; \
45941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45942 TFLAGS="$(STAGE3_TFLAGS)"; \
45943 echo "Checking multilib configuration for libgomp..."; \
22121df0 45944 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45945 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45946 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45947 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45948 else \
45949 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45950 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45951 fi; \
45952 else \
45953 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45954 fi; \
45955 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45956 $(NORMAL_TARGET_EXPORTS) \
45957 \
45958 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45959 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45960 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45961 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
45962 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45963 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45964 case $(srcdir) in \
45965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45966 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45968 esac; \
1b6c0831
L
45969 module_srcdir=libgomp; \
45970 $(SHELL) $$s/$$module_srcdir/configure \
45971 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45972 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45973 --target=${target_alias} \
22121df0 45974 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45975 $(STAGE3_CONFIGURE_FLAGS)
45976@endif target-libgomp-bootstrap
45977
45978.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
45979maybe-configure-stage4-target-libgomp:
45980@if target-libgomp-bootstrap
45981maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
45982configure-stage4-target-libgomp:
45983 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45984 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45985 @r=`${PWD_COMMAND}`; export r; \
45986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45987 TFLAGS="$(STAGE4_TFLAGS)"; \
45988 echo "Checking multilib configuration for libgomp..."; \
22121df0 45989 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45990 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45991 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45992 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45993 else \
45994 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45995 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45996 fi; \
45997 else \
45998 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45999 fi; \
46000 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46001 $(NORMAL_TARGET_EXPORTS) \
46002 \
46003 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46004 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46005 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46006 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
46007 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46008 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46009 case $(srcdir) in \
46010 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46011 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46012 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46013 esac; \
1b6c0831
L
46014 module_srcdir=libgomp; \
46015 $(SHELL) $$s/$$module_srcdir/configure \
46016 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46017 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46018 --target=${target_alias} \
22121df0 46019 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46020 $(STAGE4_CONFIGURE_FLAGS)
46021@endif target-libgomp-bootstrap
46022
46023.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
46024maybe-configure-stageprofile-target-libgomp:
46025@if target-libgomp-bootstrap
46026maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46027configure-stageprofile-target-libgomp:
46028 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46029 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46030 @r=`${PWD_COMMAND}`; export r; \
46031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46032 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46033 echo "Checking multilib configuration for libgomp..."; \
22121df0 46034 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46035 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46036 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46037 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46038 else \
46039 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46040 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46041 fi; \
46042 else \
46043 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46044 fi; \
46045 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46046 $(NORMAL_TARGET_EXPORTS) \
46047 \
46048 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46049 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46050 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46051 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
46052 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46053 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46054 case $(srcdir) in \
46055 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46056 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46057 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46058 esac; \
1b6c0831
L
46059 module_srcdir=libgomp; \
46060 $(SHELL) $$s/$$module_srcdir/configure \
46061 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46062 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46063 --target=${target_alias} \
22121df0 46064 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46065 $(STAGEprofile_CONFIGURE_FLAGS)
46066@endif target-libgomp-bootstrap
46067
46068.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
46069maybe-configure-stagefeedback-target-libgomp:
46070@if target-libgomp-bootstrap
46071maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46072configure-stagefeedback-target-libgomp:
46073 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46074 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46075 @r=`${PWD_COMMAND}`; export r; \
46076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46077 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46078 echo "Checking multilib configuration for libgomp..."; \
22121df0 46079 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46080 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46081 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46082 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46083 else \
46084 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46085 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46086 fi; \
46087 else \
46088 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46089 fi; \
46090 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46091 $(NORMAL_TARGET_EXPORTS) \
46092 \
46093 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46094 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46095 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46096 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
46097 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46098 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46099 case $(srcdir) in \
46100 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46101 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46102 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46103 esac; \
1b6c0831
L
46104 module_srcdir=libgomp; \
46105 $(SHELL) $$s/$$module_srcdir/configure \
46106 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46107 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46108 --target=${target_alias} \
22121df0 46109 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46110 $(STAGEfeedback_CONFIGURE_FLAGS)
46111@endif target-libgomp-bootstrap
46112
46113
46114
b3ded179
PB
46115
46116
46117.PHONY: all-target-libgomp maybe-all-target-libgomp
46118maybe-all-target-libgomp:
4f0ef2d8
CD
46119@if gcc-bootstrap
46120all-target-libgomp: stage_current
46121@endif gcc-bootstrap
b3ded179
PB
46122@if target-libgomp
46123TARGET-target-libgomp=all
46124maybe-all-target-libgomp: all-target-libgomp
46125all-target-libgomp: configure-target-libgomp
b3ded179
PB
46126 @r=`${PWD_COMMAND}`; export r; \
46127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46128 $(NORMAL_TARGET_EXPORTS) \
b3ded179 46129 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46130 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46131 $(TARGET-target-libgomp))
b3ded179
PB
46132@endif target-libgomp
46133
46134
46135
911e63d0
JR
46136.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
46137.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
46138maybe-all-stage1-target-libgomp:
46139maybe-clean-stage1-target-libgomp:
46140@if target-libgomp-bootstrap
46141maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
46142all-stage1: all-stage1-target-libgomp
46143TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
46144all-stage1-target-libgomp: configure-stage1-target-libgomp
46145 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46146 @r=`${PWD_COMMAND}`; export r; \
46147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46148 TFLAGS="$(STAGE1_TFLAGS)"; \
46149 $(NORMAL_TARGET_EXPORTS) \
46150 cd $(TARGET_SUBDIR)/libgomp && \
46151 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46152 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46153 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46154 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46155 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46156 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46157 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
46158 $(EXTRA_TARGET_FLAGS) \
46159 \
911e63d0
JR
46160 TFLAGS="$(STAGE1_TFLAGS)" \
46161 $(TARGET-stage1-target-libgomp)
46162
46163maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
46164clean-stage1: clean-stage1-target-libgomp
46165clean-stage1-target-libgomp:
46166 @if [ $(current_stage) = stage1 ]; then \
46167 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46168 else \
46169 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
46170 $(MAKE) stage1-start; \
46171 fi; \
46172 cd $(TARGET_SUBDIR)/libgomp && \
46173 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 46174 clean
911e63d0
JR
46175@endif target-libgomp-bootstrap
46176
46177
46178.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
46179.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
46180maybe-all-stage2-target-libgomp:
46181maybe-clean-stage2-target-libgomp:
46182@if target-libgomp-bootstrap
46183maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
46184all-stage2: all-stage2-target-libgomp
46185TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
46186all-stage2-target-libgomp: configure-stage2-target-libgomp
46187 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46188 @r=`${PWD_COMMAND}`; export r; \
46189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46190 TFLAGS="$(STAGE2_TFLAGS)"; \
46191 $(NORMAL_TARGET_EXPORTS) \
46192 \
46193 cd $(TARGET_SUBDIR)/libgomp && \
46194 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46195 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46196 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46197 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46198 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46199 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46200 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46201 $(EXTRA_TARGET_FLAGS) \
46202 TFLAGS="$(STAGE2_TFLAGS)" \
46203 $(TARGET-stage2-target-libgomp)
46204
46205maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
46206clean-stage2: clean-stage2-target-libgomp
46207clean-stage2-target-libgomp:
46208 @if [ $(current_stage) = stage2 ]; then \
46209 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46210 else \
46211 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
46212 $(MAKE) stage2-start; \
46213 fi; \
46214 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46215 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46216@endif target-libgomp-bootstrap
46217
46218
46219.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
46220.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
46221maybe-all-stage3-target-libgomp:
46222maybe-clean-stage3-target-libgomp:
46223@if target-libgomp-bootstrap
46224maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
46225all-stage3: all-stage3-target-libgomp
46226TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
46227all-stage3-target-libgomp: configure-stage3-target-libgomp
46228 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46229 @r=`${PWD_COMMAND}`; export r; \
46230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46231 TFLAGS="$(STAGE3_TFLAGS)"; \
46232 $(NORMAL_TARGET_EXPORTS) \
46233 \
46234 cd $(TARGET_SUBDIR)/libgomp && \
46235 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46236 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46237 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46238 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46239 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46240 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46241 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46242 $(EXTRA_TARGET_FLAGS) \
46243 TFLAGS="$(STAGE3_TFLAGS)" \
46244 $(TARGET-stage3-target-libgomp)
46245
46246maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
46247clean-stage3: clean-stage3-target-libgomp
46248clean-stage3-target-libgomp:
46249 @if [ $(current_stage) = stage3 ]; then \
46250 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46251 else \
46252 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
46253 $(MAKE) stage3-start; \
46254 fi; \
46255 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46256 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46257@endif target-libgomp-bootstrap
46258
46259
46260.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
46261.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
46262maybe-all-stage4-target-libgomp:
46263maybe-clean-stage4-target-libgomp:
46264@if target-libgomp-bootstrap
46265maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
46266all-stage4: all-stage4-target-libgomp
46267TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
46268all-stage4-target-libgomp: configure-stage4-target-libgomp
46269 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46270 @r=`${PWD_COMMAND}`; export r; \
46271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46272 TFLAGS="$(STAGE4_TFLAGS)"; \
46273 $(NORMAL_TARGET_EXPORTS) \
46274 \
46275 cd $(TARGET_SUBDIR)/libgomp && \
46276 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46277 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46278 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46279 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46280 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46281 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46282 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46283 $(EXTRA_TARGET_FLAGS) \
46284 TFLAGS="$(STAGE4_TFLAGS)" \
46285 $(TARGET-stage4-target-libgomp)
46286
46287maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
46288clean-stage4: clean-stage4-target-libgomp
46289clean-stage4-target-libgomp:
46290 @if [ $(current_stage) = stage4 ]; then \
46291 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46292 else \
46293 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
46294 $(MAKE) stage4-start; \
46295 fi; \
46296 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46297 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46298@endif target-libgomp-bootstrap
46299
46300
46301.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
46302.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
46303maybe-all-stageprofile-target-libgomp:
46304maybe-clean-stageprofile-target-libgomp:
46305@if target-libgomp-bootstrap
46306maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
46307all-stageprofile: all-stageprofile-target-libgomp
46308TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
46309all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46310 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46311 @r=`${PWD_COMMAND}`; export r; \
46312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46313 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46314 $(NORMAL_TARGET_EXPORTS) \
46315 \
46316 cd $(TARGET_SUBDIR)/libgomp && \
46317 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46318 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46319 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46320 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46321 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46322 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46323 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46324 $(EXTRA_TARGET_FLAGS) \
46325 TFLAGS="$(STAGEprofile_TFLAGS)" \
46326 $(TARGET-stageprofile-target-libgomp)
46327
46328maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
46329clean-stageprofile: clean-stageprofile-target-libgomp
46330clean-stageprofile-target-libgomp:
46331 @if [ $(current_stage) = stageprofile ]; then \
46332 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46333 else \
46334 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
46335 $(MAKE) stageprofile-start; \
46336 fi; \
46337 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46338 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46339@endif target-libgomp-bootstrap
46340
46341
46342.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
46343.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
46344maybe-all-stagefeedback-target-libgomp:
46345maybe-clean-stagefeedback-target-libgomp:
46346@if target-libgomp-bootstrap
46347maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
46348all-stagefeedback: all-stagefeedback-target-libgomp
46349TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
46350all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46351 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46352 @r=`${PWD_COMMAND}`; export r; \
46353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46354 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46355 $(NORMAL_TARGET_EXPORTS) \
46356 \
46357 cd $(TARGET_SUBDIR)/libgomp && \
46358 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46359 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46360 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46361 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46362 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46363 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46364 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46365 $(EXTRA_TARGET_FLAGS) \
46366 TFLAGS="$(STAGEfeedback_TFLAGS)" \
46367 $(TARGET-stagefeedback-target-libgomp)
46368
46369maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
46370clean-stagefeedback: clean-stagefeedback-target-libgomp
46371clean-stagefeedback-target-libgomp:
46372 @if [ $(current_stage) = stagefeedback ]; then \
46373 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46374 else \
46375 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
46376 $(MAKE) stagefeedback-start; \
46377 fi; \
46378 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46379 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46380@endif target-libgomp-bootstrap
46381
46382
46383
46384
b3ded179
PB
46385
46386
46387.PHONY: check-target-libgomp maybe-check-target-libgomp
46388maybe-check-target-libgomp:
46389@if target-libgomp
46390maybe-check-target-libgomp: check-target-libgomp
46391
46392check-target-libgomp:
46393 @: $(MAKE); $(unstage)
46394 @r=`${PWD_COMMAND}`; export r; \
46395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46396 $(NORMAL_TARGET_EXPORTS) \
46397 (cd $(TARGET_SUBDIR)/libgomp && \
46398 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46399
46400@endif target-libgomp
46401
46402.PHONY: install-target-libgomp maybe-install-target-libgomp
46403maybe-install-target-libgomp:
46404@if target-libgomp
46405maybe-install-target-libgomp: install-target-libgomp
46406
46407install-target-libgomp: installdirs
46408 @: $(MAKE); $(unstage)
46409 @r=`${PWD_COMMAND}`; export r; \
46410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46411 $(NORMAL_TARGET_EXPORTS) \
46412 (cd $(TARGET_SUBDIR)/libgomp && \
46413 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46414
46415@endif target-libgomp
46416
9b980aa1
RW
46417.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
46418maybe-install-strip-target-libgomp:
46419@if target-libgomp
46420maybe-install-strip-target-libgomp: install-strip-target-libgomp
46421
46422install-strip-target-libgomp: installdirs
46423 @: $(MAKE); $(unstage)
46424 @r=`${PWD_COMMAND}`; export r; \
46425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46426 $(NORMAL_TARGET_EXPORTS) \
46427 (cd $(TARGET_SUBDIR)/libgomp && \
46428 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46429
46430@endif target-libgomp
46431
56a8fe78 46432# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46433
46434.PHONY: maybe-info-target-libgomp info-target-libgomp
46435maybe-info-target-libgomp:
46436@if target-libgomp
46437maybe-info-target-libgomp: info-target-libgomp
46438
46439info-target-libgomp: \
46440 configure-target-libgomp
46441 @: $(MAKE); $(unstage)
22121df0 46442 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46443 r=`${PWD_COMMAND}`; export r; \
46444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46445 $(NORMAL_TARGET_EXPORTS) \
22121df0 46446 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46447 for flag in $(EXTRA_TARGET_FLAGS); do \
46448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46449 done; \
46450 (cd $(TARGET_SUBDIR)/libgomp && \
46451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46453 "RANLIB=$${RANLIB}" \
0c24b341 46454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46455 info) \
46456 || exit 1
46457
46458@endif target-libgomp
46459
46460.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
46461maybe-dvi-target-libgomp:
46462@if target-libgomp
46463maybe-dvi-target-libgomp: dvi-target-libgomp
46464
46465dvi-target-libgomp: \
46466 configure-target-libgomp
46467 @: $(MAKE); $(unstage)
22121df0 46468 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46469 r=`${PWD_COMMAND}`; export r; \
46470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46471 $(NORMAL_TARGET_EXPORTS) \
22121df0 46472 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46473 for flag in $(EXTRA_TARGET_FLAGS); do \
46474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46475 done; \
46476 (cd $(TARGET_SUBDIR)/libgomp && \
46477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46479 "RANLIB=$${RANLIB}" \
0c24b341 46480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46481 dvi) \
46482 || exit 1
46483
46484@endif target-libgomp
46485
56a8fe78
DD
46486.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
46487maybe-pdf-target-libgomp:
46488@if target-libgomp
46489maybe-pdf-target-libgomp: pdf-target-libgomp
46490
46491pdf-target-libgomp: \
46492 configure-target-libgomp
46493 @: $(MAKE); $(unstage)
22121df0 46494 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
46495 r=`${PWD_COMMAND}`; export r; \
46496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46497 $(NORMAL_TARGET_EXPORTS) \
22121df0 46498 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
46499 for flag in $(EXTRA_TARGET_FLAGS); do \
46500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46501 done; \
46502 (cd $(TARGET_SUBDIR)/libgomp && \
46503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46505 "RANLIB=$${RANLIB}" \
0c24b341 46506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46507 pdf) \
46508 || exit 1
46509
46510@endif target-libgomp
46511
b3ded179
PB
46512.PHONY: maybe-html-target-libgomp html-target-libgomp
46513maybe-html-target-libgomp:
46514@if target-libgomp
46515maybe-html-target-libgomp: html-target-libgomp
46516
46517html-target-libgomp: \
46518 configure-target-libgomp
46519 @: $(MAKE); $(unstage)
22121df0 46520 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46521 r=`${PWD_COMMAND}`; export r; \
46522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46523 $(NORMAL_TARGET_EXPORTS) \
22121df0 46524 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46525 for flag in $(EXTRA_TARGET_FLAGS); do \
46526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46527 done; \
46528 (cd $(TARGET_SUBDIR)/libgomp && \
46529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46531 "RANLIB=$${RANLIB}" \
0c24b341 46532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46533 html) \
46534 || exit 1
46535
46536@endif target-libgomp
46537
46538.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
46539maybe-TAGS-target-libgomp:
46540@if target-libgomp
46541maybe-TAGS-target-libgomp: TAGS-target-libgomp
46542
46543TAGS-target-libgomp: \
46544 configure-target-libgomp
46545 @: $(MAKE); $(unstage)
22121df0 46546 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46547 r=`${PWD_COMMAND}`; export r; \
46548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46549 $(NORMAL_TARGET_EXPORTS) \
22121df0 46550 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46551 for flag in $(EXTRA_TARGET_FLAGS); do \
46552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46553 done; \
46554 (cd $(TARGET_SUBDIR)/libgomp && \
46555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46557 "RANLIB=$${RANLIB}" \
0c24b341 46558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46559 TAGS) \
46560 || exit 1
46561
46562@endif target-libgomp
46563
46564.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
46565maybe-install-info-target-libgomp:
46566@if target-libgomp
46567maybe-install-info-target-libgomp: install-info-target-libgomp
46568
46569install-info-target-libgomp: \
46570 configure-target-libgomp \
46571 info-target-libgomp
46572 @: $(MAKE); $(unstage)
22121df0 46573 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46574 r=`${PWD_COMMAND}`; export r; \
46575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46576 $(NORMAL_TARGET_EXPORTS) \
22121df0 46577 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46578 for flag in $(EXTRA_TARGET_FLAGS); do \
46579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46580 done; \
46581 (cd $(TARGET_SUBDIR)/libgomp && \
46582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46584 "RANLIB=$${RANLIB}" \
0c24b341 46585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46586 install-info) \
46587 || exit 1
46588
46589@endif target-libgomp
46590
a3ca38d2
DD
46591.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
46592maybe-install-pdf-target-libgomp:
46593@if target-libgomp
46594maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
46595
46596install-pdf-target-libgomp: \
46597 configure-target-libgomp \
46598 pdf-target-libgomp
46599 @: $(MAKE); $(unstage)
22121df0 46600 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
46601 r=`${PWD_COMMAND}`; export r; \
46602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46603 $(NORMAL_TARGET_EXPORTS) \
22121df0 46604 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
46605 for flag in $(EXTRA_TARGET_FLAGS); do \
46606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46607 done; \
46608 (cd $(TARGET_SUBDIR)/libgomp && \
46609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46611 "RANLIB=$${RANLIB}" \
0c24b341 46612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46613 install-pdf) \
46614 || exit 1
46615
46616@endif target-libgomp
46617
108a6f8e
CD
46618.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
46619maybe-install-html-target-libgomp:
46620@if target-libgomp
46621maybe-install-html-target-libgomp: install-html-target-libgomp
46622
46623install-html-target-libgomp: \
46624 configure-target-libgomp \
46625 html-target-libgomp
46626 @: $(MAKE); $(unstage)
22121df0 46627 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
46628 r=`${PWD_COMMAND}`; export r; \
46629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46630 $(NORMAL_TARGET_EXPORTS) \
22121df0 46631 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
46632 for flag in $(EXTRA_TARGET_FLAGS); do \
46633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46634 done; \
46635 (cd $(TARGET_SUBDIR)/libgomp && \
46636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46638 "RANLIB=$${RANLIB}" \
0c24b341 46639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46640 install-html) \
46641 || exit 1
46642
46643@endif target-libgomp
46644
b3ded179
PB
46645.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
46646maybe-installcheck-target-libgomp:
46647@if target-libgomp
46648maybe-installcheck-target-libgomp: installcheck-target-libgomp
46649
46650installcheck-target-libgomp: \
46651 configure-target-libgomp
46652 @: $(MAKE); $(unstage)
22121df0 46653 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46654 r=`${PWD_COMMAND}`; export r; \
46655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46656 $(NORMAL_TARGET_EXPORTS) \
22121df0 46657 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46658 for flag in $(EXTRA_TARGET_FLAGS); do \
46659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46660 done; \
46661 (cd $(TARGET_SUBDIR)/libgomp && \
46662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46664 "RANLIB=$${RANLIB}" \
0c24b341 46665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46666 installcheck) \
46667 || exit 1
46668
46669@endif target-libgomp
46670
46671.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
46672maybe-mostlyclean-target-libgomp:
46673@if target-libgomp
46674maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
46675
46676mostlyclean-target-libgomp:
46677 @: $(MAKE); $(unstage)
22121df0 46678 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46679 r=`${PWD_COMMAND}`; export r; \
46680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46681 $(NORMAL_TARGET_EXPORTS) \
22121df0 46682 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46683 for flag in $(EXTRA_TARGET_FLAGS); do \
46684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46685 done; \
46686 (cd $(TARGET_SUBDIR)/libgomp && \
46687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46689 "RANLIB=$${RANLIB}" \
0c24b341 46690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46691 mostlyclean) \
46692 || exit 1
46693
46694@endif target-libgomp
46695
46696.PHONY: maybe-clean-target-libgomp clean-target-libgomp
46697maybe-clean-target-libgomp:
46698@if target-libgomp
46699maybe-clean-target-libgomp: clean-target-libgomp
46700
46701clean-target-libgomp:
46702 @: $(MAKE); $(unstage)
22121df0 46703 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46704 r=`${PWD_COMMAND}`; export r; \
46705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46706 $(NORMAL_TARGET_EXPORTS) \
22121df0 46707 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46708 for flag in $(EXTRA_TARGET_FLAGS); do \
46709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46710 done; \
46711 (cd $(TARGET_SUBDIR)/libgomp && \
46712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46714 "RANLIB=$${RANLIB}" \
0c24b341 46715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46716 clean) \
46717 || exit 1
46718
46719@endif target-libgomp
46720
46721.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
46722maybe-distclean-target-libgomp:
46723@if target-libgomp
46724maybe-distclean-target-libgomp: distclean-target-libgomp
46725
46726distclean-target-libgomp:
46727 @: $(MAKE); $(unstage)
22121df0 46728 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46729 r=`${PWD_COMMAND}`; export r; \
46730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46731 $(NORMAL_TARGET_EXPORTS) \
22121df0 46732 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46733 for flag in $(EXTRA_TARGET_FLAGS); do \
46734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46735 done; \
46736 (cd $(TARGET_SUBDIR)/libgomp && \
46737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46739 "RANLIB=$${RANLIB}" \
0c24b341 46740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46741 distclean) \
46742 || exit 1
46743
46744@endif target-libgomp
46745
46746.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
46747maybe-maintainer-clean-target-libgomp:
46748@if target-libgomp
46749maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
46750
46751maintainer-clean-target-libgomp:
46752 @: $(MAKE); $(unstage)
22121df0 46753 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46754 r=`${PWD_COMMAND}`; export r; \
46755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46756 $(NORMAL_TARGET_EXPORTS) \
22121df0 46757 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46758 for flag in $(EXTRA_TARGET_FLAGS); do \
46759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46760 done; \
46761 (cd $(TARGET_SUBDIR)/libgomp && \
46762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46764 "RANLIB=$${RANLIB}" \
0c24b341 46765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46766 maintainer-clean) \
46767 || exit 1
46768
46769@endif target-libgomp
46770
46771
46772
7ec59b9e
L
46773
46774
46775.PHONY: configure-target-libitm maybe-configure-target-libitm
46776maybe-configure-target-libitm:
46777@if gcc-bootstrap
46778configure-target-libitm: stage_current
46779@endif gcc-bootstrap
46780@if target-libitm
46781maybe-configure-target-libitm: configure-target-libitm
46782configure-target-libitm:
46783 @: $(MAKE); $(unstage)
46784 @r=`${PWD_COMMAND}`; export r; \
46785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46786 echo "Checking multilib configuration for libitm..."; \
22121df0
L
46787 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
46788 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
46789 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
46790 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
46791 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
46792 else \
46793 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
46794 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46795 fi; \
46796 else \
46797 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46798 fi; \
46799 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 46800 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
46801 $(NORMAL_TARGET_EXPORTS) \
46802 echo Configuring in $(TARGET_SUBDIR)/libitm; \
46803 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
46804 case $(srcdir) in \
46805 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46806 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
46807 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46808 esac; \
1b6c0831 46809 module_srcdir=libitm; \
7ec59b9e 46810 rm -f no-such-file || : ; \
1b6c0831
L
46811 CONFIG_SITE=no-such-file $(SHELL) \
46812 $$s/$$module_srcdir/configure \
46813 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46814 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46815 --target=${target_alias} \
7ec59b9e
L
46816 || exit 1
46817@endif target-libitm
46818
46819
46820
46821
46822
46823.PHONY: all-target-libitm maybe-all-target-libitm
46824maybe-all-target-libitm:
46825@if gcc-bootstrap
46826all-target-libitm: stage_current
46827@endif gcc-bootstrap
46828@if target-libitm
46829TARGET-target-libitm=all
46830maybe-all-target-libitm: all-target-libitm
46831all-target-libitm: configure-target-libitm
46832 @: $(MAKE); $(unstage)
46833 @r=`${PWD_COMMAND}`; export r; \
46834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46835 $(NORMAL_TARGET_EXPORTS) \
46836 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 46837 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46838 $(TARGET-target-libitm))
46839@endif target-libitm
46840
46841
46842
46843
46844
46845.PHONY: check-target-libitm maybe-check-target-libitm
46846maybe-check-target-libitm:
46847@if target-libitm
46848maybe-check-target-libitm: check-target-libitm
46849
46850check-target-libitm:
46851 @: $(MAKE); $(unstage)
46852 @r=`${PWD_COMMAND}`; export r; \
46853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46854 $(NORMAL_TARGET_EXPORTS) \
46855 (cd $(TARGET_SUBDIR)/libitm && \
46856 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46857
46858@endif target-libitm
46859
46860.PHONY: install-target-libitm maybe-install-target-libitm
46861maybe-install-target-libitm:
46862@if target-libitm
46863maybe-install-target-libitm: install-target-libitm
46864
46865install-target-libitm: installdirs
46866 @: $(MAKE); $(unstage)
46867 @r=`${PWD_COMMAND}`; export r; \
46868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46869 $(NORMAL_TARGET_EXPORTS) \
46870 (cd $(TARGET_SUBDIR)/libitm && \
46871 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46872
46873@endif target-libitm
46874
46875.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
46876maybe-install-strip-target-libitm:
46877@if target-libitm
46878maybe-install-strip-target-libitm: install-strip-target-libitm
46879
46880install-strip-target-libitm: installdirs
46881 @: $(MAKE); $(unstage)
46882 @r=`${PWD_COMMAND}`; export r; \
46883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46884 $(NORMAL_TARGET_EXPORTS) \
46885 (cd $(TARGET_SUBDIR)/libitm && \
46886 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46887
46888@endif target-libitm
46889
46890# Other targets (info, dvi, pdf, etc.)
46891
46892.PHONY: maybe-info-target-libitm info-target-libitm
46893maybe-info-target-libitm:
46894@if target-libitm
46895maybe-info-target-libitm: info-target-libitm
46896
46897info-target-libitm: \
46898 configure-target-libitm
46899 @: $(MAKE); $(unstage)
22121df0 46900 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46901 r=`${PWD_COMMAND}`; export r; \
46902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46903 $(NORMAL_TARGET_EXPORTS) \
22121df0 46904 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46905 for flag in $(EXTRA_TARGET_FLAGS); do \
46906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46907 done; \
46908 (cd $(TARGET_SUBDIR)/libitm && \
46909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46911 "RANLIB=$${RANLIB}" \
46912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46913 info) \
46914 || exit 1
46915
46916@endif target-libitm
46917
46918.PHONY: maybe-dvi-target-libitm dvi-target-libitm
46919maybe-dvi-target-libitm:
46920@if target-libitm
46921maybe-dvi-target-libitm: dvi-target-libitm
46922
46923dvi-target-libitm: \
46924 configure-target-libitm
46925 @: $(MAKE); $(unstage)
22121df0 46926 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46927 r=`${PWD_COMMAND}`; export r; \
46928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46929 $(NORMAL_TARGET_EXPORTS) \
22121df0 46930 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46931 for flag in $(EXTRA_TARGET_FLAGS); do \
46932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46933 done; \
46934 (cd $(TARGET_SUBDIR)/libitm && \
46935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46937 "RANLIB=$${RANLIB}" \
46938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46939 dvi) \
46940 || exit 1
46941
46942@endif target-libitm
46943
46944.PHONY: maybe-pdf-target-libitm pdf-target-libitm
46945maybe-pdf-target-libitm:
46946@if target-libitm
46947maybe-pdf-target-libitm: pdf-target-libitm
46948
46949pdf-target-libitm: \
46950 configure-target-libitm
46951 @: $(MAKE); $(unstage)
22121df0 46952 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46953 r=`${PWD_COMMAND}`; export r; \
46954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46955 $(NORMAL_TARGET_EXPORTS) \
22121df0 46956 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46957 for flag in $(EXTRA_TARGET_FLAGS); do \
46958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46959 done; \
46960 (cd $(TARGET_SUBDIR)/libitm && \
46961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46963 "RANLIB=$${RANLIB}" \
46964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46965 pdf) \
46966 || exit 1
46967
46968@endif target-libitm
46969
46970.PHONY: maybe-html-target-libitm html-target-libitm
46971maybe-html-target-libitm:
46972@if target-libitm
46973maybe-html-target-libitm: html-target-libitm
46974
46975html-target-libitm: \
46976 configure-target-libitm
46977 @: $(MAKE); $(unstage)
22121df0 46978 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46979 r=`${PWD_COMMAND}`; export r; \
46980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46981 $(NORMAL_TARGET_EXPORTS) \
22121df0 46982 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46983 for flag in $(EXTRA_TARGET_FLAGS); do \
46984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46985 done; \
46986 (cd $(TARGET_SUBDIR)/libitm && \
46987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46989 "RANLIB=$${RANLIB}" \
46990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46991 html) \
46992 || exit 1
46993
46994@endif target-libitm
46995
46996.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
46997maybe-TAGS-target-libitm:
46998@if target-libitm
46999maybe-TAGS-target-libitm: TAGS-target-libitm
47000
47001TAGS-target-libitm: \
47002 configure-target-libitm
47003 @: $(MAKE); $(unstage)
22121df0 47004 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47005 r=`${PWD_COMMAND}`; export r; \
47006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47007 $(NORMAL_TARGET_EXPORTS) \
22121df0 47008 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47009 for flag in $(EXTRA_TARGET_FLAGS); do \
47010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47011 done; \
47012 (cd $(TARGET_SUBDIR)/libitm && \
47013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47015 "RANLIB=$${RANLIB}" \
47016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47017 TAGS) \
47018 || exit 1
47019
47020@endif target-libitm
47021
47022.PHONY: maybe-install-info-target-libitm install-info-target-libitm
47023maybe-install-info-target-libitm:
47024@if target-libitm
47025maybe-install-info-target-libitm: install-info-target-libitm
47026
47027install-info-target-libitm: \
47028 configure-target-libitm \
47029 info-target-libitm
47030 @: $(MAKE); $(unstage)
22121df0 47031 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47032 r=`${PWD_COMMAND}`; export r; \
47033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47034 $(NORMAL_TARGET_EXPORTS) \
22121df0 47035 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47036 for flag in $(EXTRA_TARGET_FLAGS); do \
47037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47038 done; \
47039 (cd $(TARGET_SUBDIR)/libitm && \
47040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47042 "RANLIB=$${RANLIB}" \
47043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47044 install-info) \
47045 || exit 1
47046
47047@endif target-libitm
47048
47049.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
47050maybe-install-pdf-target-libitm:
47051@if target-libitm
47052maybe-install-pdf-target-libitm: install-pdf-target-libitm
47053
47054install-pdf-target-libitm: \
47055 configure-target-libitm \
47056 pdf-target-libitm
47057 @: $(MAKE); $(unstage)
22121df0 47058 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47059 r=`${PWD_COMMAND}`; export r; \
47060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47061 $(NORMAL_TARGET_EXPORTS) \
22121df0 47062 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47063 for flag in $(EXTRA_TARGET_FLAGS); do \
47064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47065 done; \
47066 (cd $(TARGET_SUBDIR)/libitm && \
47067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47069 "RANLIB=$${RANLIB}" \
47070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47071 install-pdf) \
47072 || exit 1
47073
47074@endif target-libitm
47075
47076.PHONY: maybe-install-html-target-libitm install-html-target-libitm
47077maybe-install-html-target-libitm:
47078@if target-libitm
47079maybe-install-html-target-libitm: install-html-target-libitm
47080
47081install-html-target-libitm: \
47082 configure-target-libitm \
47083 html-target-libitm
47084 @: $(MAKE); $(unstage)
22121df0 47085 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47086 r=`${PWD_COMMAND}`; export r; \
47087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47088 $(NORMAL_TARGET_EXPORTS) \
22121df0 47089 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47090 for flag in $(EXTRA_TARGET_FLAGS); do \
47091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47092 done; \
47093 (cd $(TARGET_SUBDIR)/libitm && \
47094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47096 "RANLIB=$${RANLIB}" \
47097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47098 install-html) \
47099 || exit 1
47100
47101@endif target-libitm
47102
47103.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
47104maybe-installcheck-target-libitm:
47105@if target-libitm
47106maybe-installcheck-target-libitm: installcheck-target-libitm
47107
47108installcheck-target-libitm: \
47109 configure-target-libitm
47110 @: $(MAKE); $(unstage)
22121df0 47111 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47112 r=`${PWD_COMMAND}`; export r; \
47113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47114 $(NORMAL_TARGET_EXPORTS) \
22121df0 47115 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47116 for flag in $(EXTRA_TARGET_FLAGS); do \
47117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47118 done; \
47119 (cd $(TARGET_SUBDIR)/libitm && \
47120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47122 "RANLIB=$${RANLIB}" \
47123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47124 installcheck) \
47125 || exit 1
47126
47127@endif target-libitm
47128
47129.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
47130maybe-mostlyclean-target-libitm:
47131@if target-libitm
47132maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
47133
47134mostlyclean-target-libitm:
47135 @: $(MAKE); $(unstage)
22121df0 47136 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47137 r=`${PWD_COMMAND}`; export r; \
47138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47139 $(NORMAL_TARGET_EXPORTS) \
22121df0 47140 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47141 for flag in $(EXTRA_TARGET_FLAGS); do \
47142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47143 done; \
47144 (cd $(TARGET_SUBDIR)/libitm && \
47145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47147 "RANLIB=$${RANLIB}" \
47148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47149 mostlyclean) \
47150 || exit 1
47151
47152@endif target-libitm
47153
47154.PHONY: maybe-clean-target-libitm clean-target-libitm
47155maybe-clean-target-libitm:
47156@if target-libitm
47157maybe-clean-target-libitm: clean-target-libitm
47158
47159clean-target-libitm:
47160 @: $(MAKE); $(unstage)
22121df0 47161 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47162 r=`${PWD_COMMAND}`; export r; \
47163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47164 $(NORMAL_TARGET_EXPORTS) \
22121df0 47165 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47166 for flag in $(EXTRA_TARGET_FLAGS); do \
47167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47168 done; \
47169 (cd $(TARGET_SUBDIR)/libitm && \
47170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47172 "RANLIB=$${RANLIB}" \
47173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47174 clean) \
47175 || exit 1
47176
47177@endif target-libitm
47178
47179.PHONY: maybe-distclean-target-libitm distclean-target-libitm
47180maybe-distclean-target-libitm:
47181@if target-libitm
47182maybe-distclean-target-libitm: distclean-target-libitm
47183
47184distclean-target-libitm:
47185 @: $(MAKE); $(unstage)
22121df0 47186 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47187 r=`${PWD_COMMAND}`; export r; \
47188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47189 $(NORMAL_TARGET_EXPORTS) \
22121df0 47190 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47191 for flag in $(EXTRA_TARGET_FLAGS); do \
47192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47193 done; \
47194 (cd $(TARGET_SUBDIR)/libitm && \
47195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47197 "RANLIB=$${RANLIB}" \
47198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47199 distclean) \
47200 || exit 1
47201
47202@endif target-libitm
47203
47204.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
47205maybe-maintainer-clean-target-libitm:
47206@if target-libitm
47207maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
47208
47209maintainer-clean-target-libitm:
47210 @: $(MAKE); $(unstage)
22121df0 47211 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47212 r=`${PWD_COMMAND}`; export r; \
47213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47214 $(NORMAL_TARGET_EXPORTS) \
22121df0 47215 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47216 for flag in $(EXTRA_TARGET_FLAGS); do \
47217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47218 done; \
47219 (cd $(TARGET_SUBDIR)/libitm && \
47220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47222 "RANLIB=$${RANLIB}" \
47223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47224 maintainer-clean) \
47225 || exit 1
47226
47227@endif target-libitm
47228
47229
47230
47231
47232
47233.PHONY: configure-target-libatomic maybe-configure-target-libatomic
47234maybe-configure-target-libatomic:
47235@if gcc-bootstrap
47236configure-target-libatomic: stage_current
47237@endif gcc-bootstrap
47238@if target-libatomic
47239maybe-configure-target-libatomic: configure-target-libatomic
47240configure-target-libatomic:
47241 @: $(MAKE); $(unstage)
47242 @r=`${PWD_COMMAND}`; export r; \
47243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47244 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
47245 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
47246 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47247 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47248 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47249 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
47250 else \
47251 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
47252 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47253 fi; \
47254 else \
47255 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47256 fi; \
47257 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 47258 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
47259 $(NORMAL_TARGET_EXPORTS) \
47260 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
47261 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
47262 case $(srcdir) in \
47263 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47264 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
47265 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47266 esac; \
1b6c0831 47267 module_srcdir=libatomic; \
7ec59b9e 47268 rm -f no-such-file || : ; \
1b6c0831
L
47269 CONFIG_SITE=no-such-file $(SHELL) \
47270 $$s/$$module_srcdir/configure \
47271 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47272 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47273 --target=${target_alias} \
7ec59b9e
L
47274 || exit 1
47275@endif target-libatomic
47276
47277
47278
47279
47280
47281.PHONY: all-target-libatomic maybe-all-target-libatomic
47282maybe-all-target-libatomic:
47283@if gcc-bootstrap
47284all-target-libatomic: stage_current
47285@endif gcc-bootstrap
47286@if target-libatomic
47287TARGET-target-libatomic=all
47288maybe-all-target-libatomic: all-target-libatomic
47289all-target-libatomic: configure-target-libatomic
47290 @: $(MAKE); $(unstage)
47291 @r=`${PWD_COMMAND}`; export r; \
47292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47293 $(NORMAL_TARGET_EXPORTS) \
47294 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 47295 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47296 $(TARGET-target-libatomic))
47297@endif target-libatomic
47298
47299
47300
47301
47302
47303.PHONY: check-target-libatomic maybe-check-target-libatomic
47304maybe-check-target-libatomic:
47305@if target-libatomic
47306maybe-check-target-libatomic: check-target-libatomic
47307
47308check-target-libatomic:
47309 @: $(MAKE); $(unstage)
47310 @r=`${PWD_COMMAND}`; export r; \
47311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47312 $(NORMAL_TARGET_EXPORTS) \
47313 (cd $(TARGET_SUBDIR)/libatomic && \
47314 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47315
47316@endif target-libatomic
47317
47318.PHONY: install-target-libatomic maybe-install-target-libatomic
47319maybe-install-target-libatomic:
47320@if target-libatomic
47321maybe-install-target-libatomic: install-target-libatomic
47322
47323install-target-libatomic: installdirs
47324 @: $(MAKE); $(unstage)
47325 @r=`${PWD_COMMAND}`; export r; \
47326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47327 $(NORMAL_TARGET_EXPORTS) \
47328 (cd $(TARGET_SUBDIR)/libatomic && \
47329 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47330
47331@endif target-libatomic
47332
47333.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
47334maybe-install-strip-target-libatomic:
47335@if target-libatomic
47336maybe-install-strip-target-libatomic: install-strip-target-libatomic
47337
47338install-strip-target-libatomic: installdirs
47339 @: $(MAKE); $(unstage)
47340 @r=`${PWD_COMMAND}`; export r; \
47341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47342 $(NORMAL_TARGET_EXPORTS) \
47343 (cd $(TARGET_SUBDIR)/libatomic && \
47344 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47345
47346@endif target-libatomic
47347
47348# Other targets (info, dvi, pdf, etc.)
47349
47350.PHONY: maybe-info-target-libatomic info-target-libatomic
47351maybe-info-target-libatomic:
47352@if target-libatomic
47353maybe-info-target-libatomic: info-target-libatomic
47354
47355info-target-libatomic: \
47356 configure-target-libatomic
47357 @: $(MAKE); $(unstage)
22121df0 47358 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47359 r=`${PWD_COMMAND}`; export r; \
47360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47361 $(NORMAL_TARGET_EXPORTS) \
22121df0 47362 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47363 for flag in $(EXTRA_TARGET_FLAGS); do \
47364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47365 done; \
47366 (cd $(TARGET_SUBDIR)/libatomic && \
47367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47369 "RANLIB=$${RANLIB}" \
47370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47371 info) \
47372 || exit 1
47373
47374@endif target-libatomic
47375
47376.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
47377maybe-dvi-target-libatomic:
47378@if target-libatomic
47379maybe-dvi-target-libatomic: dvi-target-libatomic
47380
47381dvi-target-libatomic: \
47382 configure-target-libatomic
47383 @: $(MAKE); $(unstage)
22121df0 47384 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47385 r=`${PWD_COMMAND}`; export r; \
47386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47387 $(NORMAL_TARGET_EXPORTS) \
22121df0 47388 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47389 for flag in $(EXTRA_TARGET_FLAGS); do \
47390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47391 done; \
47392 (cd $(TARGET_SUBDIR)/libatomic && \
47393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47395 "RANLIB=$${RANLIB}" \
47396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47397 dvi) \
47398 || exit 1
47399
47400@endif target-libatomic
47401
47402.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
47403maybe-pdf-target-libatomic:
47404@if target-libatomic
47405maybe-pdf-target-libatomic: pdf-target-libatomic
47406
47407pdf-target-libatomic: \
47408 configure-target-libatomic
47409 @: $(MAKE); $(unstage)
22121df0 47410 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47411 r=`${PWD_COMMAND}`; export r; \
47412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47413 $(NORMAL_TARGET_EXPORTS) \
22121df0 47414 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47415 for flag in $(EXTRA_TARGET_FLAGS); do \
47416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47417 done; \
47418 (cd $(TARGET_SUBDIR)/libatomic && \
47419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47421 "RANLIB=$${RANLIB}" \
47422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47423 pdf) \
47424 || exit 1
47425
47426@endif target-libatomic
47427
47428.PHONY: maybe-html-target-libatomic html-target-libatomic
47429maybe-html-target-libatomic:
47430@if target-libatomic
47431maybe-html-target-libatomic: html-target-libatomic
47432
47433html-target-libatomic: \
47434 configure-target-libatomic
47435 @: $(MAKE); $(unstage)
22121df0 47436 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47437 r=`${PWD_COMMAND}`; export r; \
47438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47439 $(NORMAL_TARGET_EXPORTS) \
22121df0 47440 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47441 for flag in $(EXTRA_TARGET_FLAGS); do \
47442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47443 done; \
47444 (cd $(TARGET_SUBDIR)/libatomic && \
47445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47447 "RANLIB=$${RANLIB}" \
47448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47449 html) \
47450 || exit 1
47451
47452@endif target-libatomic
47453
47454.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
47455maybe-TAGS-target-libatomic:
47456@if target-libatomic
47457maybe-TAGS-target-libatomic: TAGS-target-libatomic
47458
47459TAGS-target-libatomic: \
47460 configure-target-libatomic
47461 @: $(MAKE); $(unstage)
22121df0 47462 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47463 r=`${PWD_COMMAND}`; export r; \
47464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47465 $(NORMAL_TARGET_EXPORTS) \
22121df0 47466 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47467 for flag in $(EXTRA_TARGET_FLAGS); do \
47468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47469 done; \
47470 (cd $(TARGET_SUBDIR)/libatomic && \
47471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47473 "RANLIB=$${RANLIB}" \
47474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47475 TAGS) \
47476 || exit 1
47477
47478@endif target-libatomic
47479
47480.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
47481maybe-install-info-target-libatomic:
47482@if target-libatomic
47483maybe-install-info-target-libatomic: install-info-target-libatomic
47484
47485install-info-target-libatomic: \
47486 configure-target-libatomic \
47487 info-target-libatomic
47488 @: $(MAKE); $(unstage)
22121df0 47489 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47490 r=`${PWD_COMMAND}`; export r; \
47491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47492 $(NORMAL_TARGET_EXPORTS) \
22121df0 47493 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47494 for flag in $(EXTRA_TARGET_FLAGS); do \
47495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47496 done; \
47497 (cd $(TARGET_SUBDIR)/libatomic && \
47498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47500 "RANLIB=$${RANLIB}" \
47501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47502 install-info) \
47503 || exit 1
47504
47505@endif target-libatomic
47506
47507.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
47508maybe-install-pdf-target-libatomic:
47509@if target-libatomic
47510maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
47511
47512install-pdf-target-libatomic: \
47513 configure-target-libatomic \
47514 pdf-target-libatomic
47515 @: $(MAKE); $(unstage)
22121df0 47516 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47517 r=`${PWD_COMMAND}`; export r; \
47518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47519 $(NORMAL_TARGET_EXPORTS) \
22121df0 47520 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47521 for flag in $(EXTRA_TARGET_FLAGS); do \
47522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47523 done; \
47524 (cd $(TARGET_SUBDIR)/libatomic && \
47525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47527 "RANLIB=$${RANLIB}" \
47528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47529 install-pdf) \
47530 || exit 1
47531
47532@endif target-libatomic
47533
47534.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
47535maybe-install-html-target-libatomic:
47536@if target-libatomic
47537maybe-install-html-target-libatomic: install-html-target-libatomic
47538
47539install-html-target-libatomic: \
47540 configure-target-libatomic \
47541 html-target-libatomic
47542 @: $(MAKE); $(unstage)
22121df0 47543 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47544 r=`${PWD_COMMAND}`; export r; \
47545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47546 $(NORMAL_TARGET_EXPORTS) \
22121df0 47547 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47548 for flag in $(EXTRA_TARGET_FLAGS); do \
47549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47550 done; \
47551 (cd $(TARGET_SUBDIR)/libatomic && \
47552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47554 "RANLIB=$${RANLIB}" \
47555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47556 install-html) \
47557 || exit 1
47558
47559@endif target-libatomic
47560
47561.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
47562maybe-installcheck-target-libatomic:
47563@if target-libatomic
47564maybe-installcheck-target-libatomic: installcheck-target-libatomic
47565
47566installcheck-target-libatomic: \
47567 configure-target-libatomic
47568 @: $(MAKE); $(unstage)
22121df0 47569 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47570 r=`${PWD_COMMAND}`; export r; \
47571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47572 $(NORMAL_TARGET_EXPORTS) \
22121df0 47573 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47574 for flag in $(EXTRA_TARGET_FLAGS); do \
47575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47576 done; \
47577 (cd $(TARGET_SUBDIR)/libatomic && \
47578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47580 "RANLIB=$${RANLIB}" \
47581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47582 installcheck) \
47583 || exit 1
47584
47585@endif target-libatomic
47586
47587.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
47588maybe-mostlyclean-target-libatomic:
47589@if target-libatomic
47590maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
47591
47592mostlyclean-target-libatomic:
47593 @: $(MAKE); $(unstage)
22121df0 47594 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47595 r=`${PWD_COMMAND}`; export r; \
47596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47597 $(NORMAL_TARGET_EXPORTS) \
22121df0 47598 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47599 for flag in $(EXTRA_TARGET_FLAGS); do \
47600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47601 done; \
47602 (cd $(TARGET_SUBDIR)/libatomic && \
47603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47605 "RANLIB=$${RANLIB}" \
47606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47607 mostlyclean) \
47608 || exit 1
47609
47610@endif target-libatomic
47611
47612.PHONY: maybe-clean-target-libatomic clean-target-libatomic
47613maybe-clean-target-libatomic:
47614@if target-libatomic
47615maybe-clean-target-libatomic: clean-target-libatomic
47616
47617clean-target-libatomic:
47618 @: $(MAKE); $(unstage)
22121df0 47619 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47620 r=`${PWD_COMMAND}`; export r; \
47621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47622 $(NORMAL_TARGET_EXPORTS) \
22121df0 47623 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47624 for flag in $(EXTRA_TARGET_FLAGS); do \
47625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47626 done; \
47627 (cd $(TARGET_SUBDIR)/libatomic && \
47628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47630 "RANLIB=$${RANLIB}" \
47631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47632 clean) \
47633 || exit 1
47634
47635@endif target-libatomic
47636
47637.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
47638maybe-distclean-target-libatomic:
47639@if target-libatomic
47640maybe-distclean-target-libatomic: distclean-target-libatomic
47641
47642distclean-target-libatomic:
47643 @: $(MAKE); $(unstage)
22121df0 47644 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47645 r=`${PWD_COMMAND}`; export r; \
47646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47647 $(NORMAL_TARGET_EXPORTS) \
22121df0 47648 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47649 for flag in $(EXTRA_TARGET_FLAGS); do \
47650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47651 done; \
47652 (cd $(TARGET_SUBDIR)/libatomic && \
47653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47655 "RANLIB=$${RANLIB}" \
47656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47657 distclean) \
47658 || exit 1
47659
47660@endif target-libatomic
47661
47662.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
47663maybe-maintainer-clean-target-libatomic:
47664@if target-libatomic
47665maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
47666
47667maintainer-clean-target-libatomic:
47668 @: $(MAKE); $(unstage)
22121df0 47669 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47670 r=`${PWD_COMMAND}`; export r; \
47671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47672 $(NORMAL_TARGET_EXPORTS) \
22121df0 47673 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47674 for flag in $(EXTRA_TARGET_FLAGS); do \
47675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47676 done; \
47677 (cd $(TARGET_SUBDIR)/libatomic && \
47678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47680 "RANLIB=$${RANLIB}" \
47681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47682 maintainer-clean) \
47683 || exit 1
47684
47685@endif target-libatomic
47686
47687
47688
7ec59b9e
L
47689@if target-libgomp
47690.PHONY: check-target-libgomp-c++
47691check-target-libgomp-c++:
47692 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
47693
47694@endif target-libgomp
47695
47696@if target-libitm
47697.PHONY: check-target-libitm-c++
47698check-target-libitm-c++:
47699 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
47700
47701@endif target-libitm
47702
15723a45
NN
47703# ----------
47704# GCC module
47705# ----------
47706
319cab08 47707@if gcc-no-bootstrap
252b5132 47708.PHONY: cross
72b2455a 47709cross: all-build all-gas all-ld
b40e3958
L
47710 @r=`${PWD_COMMAND}`; export r; \
47711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47712 $(HOST_EXPORTS) \
252b5132 47713 echo "Building the C and C++ compiler"; \
5cec67bf 47714 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 47715 @r=`${PWD_COMMAND}`; export r; \
22121df0 47716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 47717 echo "Building runtime libraries"; \
656fdd47 47718 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 47719@endif gcc-no-bootstrap
252b5132 47720
6bd3dfaa 47721@if gcc
c50523ce
L
47722
47723.PHONY: check-gcc-c check-c
47724check-gcc-c:
47725 r=`${PWD_COMMAND}`; export r; \
47726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47727 $(HOST_EXPORTS) \
47728 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
47729check-c: check-gcc-c
47730
47731.PHONY: check-gcc-c++ check-c++
7d695d07 47732check-gcc-c++:
c50523ce
L
47733 r=`${PWD_COMMAND}`; export r; \
47734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47735 $(HOST_EXPORTS) \
7ec59b9e 47736 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 47737check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
47738
47739.PHONY: check-gcc-fortran check-fortran
47740check-gcc-fortran:
47741 r=`${PWD_COMMAND}`; export r; \
47742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47743 $(HOST_EXPORTS) \
47744 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e552509b 47745check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
c50523ce
L
47746
47747.PHONY: check-gcc-java check-java
47748check-gcc-java:
47749 r=`${PWD_COMMAND}`; export r; \
47750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47751 $(HOST_EXPORTS) \
47752 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
47753check-java: check-gcc-java check-target-libjava
47754
47755.PHONY: check-gcc-ada check-ada
47756check-gcc-ada:
47757 r=`${PWD_COMMAND}`; export r; \
47758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47759 $(HOST_EXPORTS) \
47760 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
47761check-ada: check-gcc-ada check-target-libada
47762
47763.PHONY: check-gcc-objc check-objc
47764check-gcc-objc:
47765 r=`${PWD_COMMAND}`; export r; \
47766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47767 $(HOST_EXPORTS) \
47768 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
47769check-objc: check-gcc-objc check-target-libobjc
47770
47771.PHONY: check-gcc-obj-c++ check-obj-c++
47772check-gcc-obj-c++:
47773 r=`${PWD_COMMAND}`; export r; \
47774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47775 $(HOST_EXPORTS) \
47776 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
47777check-obj-c++: check-gcc-obj-c++
7d695d07 47778
e552509b
ILT
47779.PHONY: check-gcc-go check-go
47780check-gcc-go:
47781 r=`${PWD_COMMAND}`; export r; \
47782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47783 $(HOST_EXPORTS) \
47784 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
47785check-go: check-gcc-go check-target-libgo
47786
252b5132 47787
7ec59b9e
L
47788# The gcc part of install-no-fixedincludes, which relies on an intimate
47789# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
47790.PHONY: gcc-install-no-fixedincludes
47791gcc-install-no-fixedincludes:
15723a45 47792 @if [ -f ./gcc/Makefile ]; then \
b40e3958 47793 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 47794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47795 $(HOST_EXPORTS) \
7ec59b9e
L
47796 (cd ./gcc \
47797 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 47798 else true; fi
6bd3dfaa 47799@endif gcc
4fa63067 47800
b813574b
PB
47801# ---------------------
47802# GCC bootstrap support
47803# ---------------------
4fa63067 47804
b813574b
PB
47805# We track the current stage (the one in 'gcc') in the stage_current file.
47806# stage_last instead tracks the stage that was built last. These targets
47807# are dummy when toplevel bootstrap is not active.
4fa63067 47808
f70224b5 47809# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
47810# there, so $(unstage) should be run at various points. To avoid excessive
47811# recursive invocations of make, we "inline" them using a variable. These
47812# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
47813# to avoid warnings from the GNU Make job server.
f70224b5
PB
47814
47815unstage = :
47816stage = :
c52c6897 47817current_stage = ""
f70224b5 47818
b813574b 47819@if gcc-bootstrap
9daf3993 47820unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 47821stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 47822current_stage = "`cat stage_current 2> /dev/null`"
b813574b 47823@endif gcc-bootstrap
4fa63067 47824
f70224b5
PB
47825.PHONY: unstage stage
47826unstage:
0aed8855 47827 @: $(MAKE); $(unstage)
b813574b 47828stage:
0aed8855 47829 @: $(MAKE); $(stage)
1d39f329 47830
80911fe1
PB
47831# Disable commands for lean bootstrap.
47832LEAN = false
47833
dfdffa2c
PB
47834# We name the build directories for the various stages "stage1-gcc",
47835# "stage2-gcc","stage3-gcc", etc.
47836
47837# Since the 'compare' process will fail (on debugging information) if any
47838# directory names are different, we need to link the gcc directory for
0aed8855 47839# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
47840# the build directories constant as well. For the latter, we use naked names
47841# like 'gcc', because the scripts in that directory assume it. We use
47842# mv on platforms where symlinks to directories do not work or are not
47843# reliable.
47844
1d39f329
NN
47845# 'touch' doesn't work right on some platforms.
47846STAMP = echo timestamp >
47847
dfdffa2c
PB
47848# We only want to compare .o files, so set this!
47849objext = .o
47850
dfdffa2c 47851
319cab08 47852.PHONY: stage1-start stage1-end
dfdffa2c 47853
656fdd47 47854stage1-start::
0aed8855 47855 @: $(MAKE); $(stage); \
22121df0 47856 echo stage1 > stage_current; \
b00612cc 47857 echo stage1 > stage_last; \
0aed8855 47858 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47859@if bfd
b00612cc
PB
47860 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
47861 mkdir stage1-bfd; \
22121df0 47862 mv stage1-bfd bfd
72b2455a
PB
47863@endif bfd
47864@if opcodes
b00612cc
PB
47865 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
47866 mkdir stage1-opcodes; \
22121df0 47867 mv stage1-opcodes opcodes
72b2455a
PB
47868@endif opcodes
47869@if binutils
b00612cc
PB
47870 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
47871 mkdir stage1-binutils; \
22121df0 47872 mv stage1-binutils binutils
72b2455a 47873@endif binutils
201f096f 47874@if fixincludes
47875 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
47876 mkdir stage1-fixincludes; \
22121df0 47877 mv stage1-fixincludes fixincludes
201f096f 47878@endif fixincludes
72b2455a 47879@if gas
b00612cc
PB
47880 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
47881 mkdir stage1-gas; \
22121df0 47882 mv stage1-gas gas
72b2455a
PB
47883@endif gas
47884@if gcc
b00612cc
PB
47885 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
47886 mkdir stage1-gcc; \
22121df0 47887 mv stage1-gcc gcc
72b2455a 47888@endif gcc
4b900473
PB
47889@if gmp
47890 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
47891 mkdir stage1-gmp; \
22121df0 47892 mv stage1-gmp gmp
4b900473
PB
47893@endif gmp
47894@if mpfr
47895 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
47896 mkdir stage1-mpfr; \
22121df0 47897 mv stage1-mpfr mpfr
4b900473 47898@endif mpfr
e8a5fa9c
RW
47899@if mpc
47900 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
47901 mkdir stage1-mpc; \
22121df0 47902 mv stage1-mpc mpc
e8a5fa9c 47903@endif mpc
7ec59b9e
L
47904@if isl
47905 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
47906 mkdir stage1-isl; \
22121df0 47907 mv stage1-isl isl
7ec59b9e 47908@endif isl
1f53ca9a
AO
47909@if libelf
47910 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
47911 mkdir stage1-libelf; \
22121df0 47912 mv stage1-libelf libelf
1f53ca9a 47913@endif libelf
93f9b408
ILT
47914@if gold
47915 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
47916 mkdir stage1-gold; \
22121df0 47917 mv stage1-gold gold
93f9b408 47918@endif gold
72b2455a 47919@if intl
b00612cc
PB
47920 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
47921 mkdir stage1-intl; \
22121df0 47922 mv stage1-intl intl
72b2455a
PB
47923@endif intl
47924@if ld
b00612cc
PB
47925 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
47926 mkdir stage1-ld; \
22121df0 47927 mv stage1-ld ld
72b2455a 47928@endif ld
2bf680c4
ILT
47929@if libbacktrace
47930 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
47931 mkdir stage1-libbacktrace; \
22121df0 47932 mv stage1-libbacktrace libbacktrace
2bf680c4 47933@endif libbacktrace
72b2455a 47934@if libcpp
b00612cc
PB
47935 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
47936 mkdir stage1-libcpp; \
22121df0 47937 mv stage1-libcpp libcpp
72b2455a 47938@endif libcpp
be01d343
PB
47939@if libdecnumber
47940 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
47941 mkdir stage1-libdecnumber; \
22121df0 47942 mv stage1-libdecnumber libdecnumber
be01d343 47943@endif libdecnumber
72b2455a 47944@if libiberty
b00612cc
PB
47945 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
47946 mkdir stage1-libiberty; \
22121df0 47947 mv stage1-libiberty libiberty
72b2455a 47948@endif libiberty
1b6c0831
L
47949@if libiberty-linker-plugin
47950 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
47951 mkdir stage1-libiberty-linker-plugin; \
22121df0 47952 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 47953@endif libiberty-linker-plugin
016a3251
DD
47954@if libiconv
47955 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
47956 mkdir stage1-libiconv; \
47957 mv stage1-libiconv libiconv
47958@endif libiconv
72b2455a 47959@if zlib
b00612cc
PB
47960 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
47961 mkdir stage1-zlib; \
22121df0 47962 mv stage1-zlib zlib
72b2455a 47963@endif zlib
700d40ca
ILT
47964@if lto-plugin
47965 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
47966 mkdir stage1-lto-plugin; \
22121df0 47967 mv stage1-lto-plugin lto-plugin
700d40ca 47968@endif lto-plugin
0aed8855
PB
47969 @[ -d stage1-$(TARGET_SUBDIR) ] || \
47970 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 47971 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 47972
80911fe1 47973stage1-end::
72b2455a 47974@if bfd
22121df0
L
47975 @if test -d $(HOST_SUBDIR)/bfd; then \
47976 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 47977 fi
72b2455a
PB
47978@endif bfd
47979@if opcodes
22121df0
L
47980 @if test -d $(HOST_SUBDIR)/opcodes; then \
47981 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 47982 fi
72b2455a
PB
47983@endif opcodes
47984@if binutils
22121df0
L
47985 @if test -d $(HOST_SUBDIR)/binutils; then \
47986 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 47987 fi
72b2455a 47988@endif binutils
201f096f 47989@if fixincludes
22121df0
L
47990 @if test -d $(HOST_SUBDIR)/fixincludes; then \
47991 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 47992 fi
47993@endif fixincludes
72b2455a 47994@if gas
22121df0
L
47995 @if test -d $(HOST_SUBDIR)/gas; then \
47996 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 47997 fi
72b2455a
PB
47998@endif gas
47999@if gcc
22121df0
L
48000 @if test -d $(HOST_SUBDIR)/gcc; then \
48001 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 48002 fi
72b2455a 48003@endif gcc
4b900473 48004@if gmp
22121df0
L
48005 @if test -d $(HOST_SUBDIR)/gmp; then \
48006 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
48007 fi
48008@endif gmp
48009@if mpfr
22121df0
L
48010 @if test -d $(HOST_SUBDIR)/mpfr; then \
48011 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
48012 fi
48013@endif mpfr
e8a5fa9c 48014@if mpc
22121df0
L
48015 @if test -d $(HOST_SUBDIR)/mpc; then \
48016 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
48017 fi
48018@endif mpc
7ec59b9e 48019@if isl
22121df0
L
48020 @if test -d $(HOST_SUBDIR)/isl; then \
48021 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 48022 fi
7ec59b9e 48023@endif isl
1f53ca9a 48024@if libelf
22121df0
L
48025 @if test -d $(HOST_SUBDIR)/libelf; then \
48026 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
48027 fi
48028@endif libelf
93f9b408 48029@if gold
22121df0
L
48030 @if test -d $(HOST_SUBDIR)/gold; then \
48031 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
48032 fi
48033@endif gold
72b2455a 48034@if intl
22121df0
L
48035 @if test -d $(HOST_SUBDIR)/intl; then \
48036 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 48037 fi
72b2455a
PB
48038@endif intl
48039@if ld
22121df0
L
48040 @if test -d $(HOST_SUBDIR)/ld; then \
48041 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 48042 fi
72b2455a 48043@endif ld
2bf680c4 48044@if libbacktrace
22121df0
L
48045 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48046 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
48047 fi
48048@endif libbacktrace
72b2455a 48049@if libcpp
22121df0
L
48050 @if test -d $(HOST_SUBDIR)/libcpp; then \
48051 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 48052 fi
72b2455a 48053@endif libcpp
be01d343 48054@if libdecnumber
22121df0
L
48055 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48056 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 48057 fi
be01d343 48058@endif libdecnumber
72b2455a 48059@if libiberty
22121df0
L
48060 @if test -d $(HOST_SUBDIR)/libiberty; then \
48061 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 48062 fi
72b2455a 48063@endif libiberty
1b6c0831 48064@if libiberty-linker-plugin
22121df0
L
48065 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48066 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
48067 fi
48068@endif libiberty-linker-plugin
016a3251
DD
48069@if libiconv
48070 @if test -d $(HOST_SUBDIR)/libiconv; then \
48071 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
48072 fi
48073@endif libiconv
72b2455a 48074@if zlib
22121df0
L
48075 @if test -d $(HOST_SUBDIR)/zlib; then \
48076 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 48077 fi
72b2455a 48078@endif zlib
700d40ca 48079@if lto-plugin
22121df0
L
48080 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48081 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
48082 fi
48083@endif lto-plugin
22121df0
L
48084 @if test -d $(TARGET_SUBDIR); then \
48085 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 48086 fi
80911fe1 48087 rm -f stage_current
dfdffa2c 48088
973601e1 48089# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 48090# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48091# reconfigured either.
319cab08 48092.PHONY: stage1-bubble
656fdd47 48093stage1-bubble::
e360f423
PB
48094 @r=`${PWD_COMMAND}`; export r; \
48095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48096 if test -f stage1-lean ; then \
48097 echo Skipping rebuild of stage1; \
9cb3fa6f 48098 else \
f70224b5
PB
48099 $(MAKE) stage1-start; \
48100 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 48101 fi
72b2455a 48102
0df3d27f 48103.PHONY: all-stage1 clean-stage1
0df3d27f 48104do-clean: clean-stage1
0df3d27f 48105
72b2455a
PB
48106# FIXME: Will not need to be conditional when toplevel bootstrap is the
48107# only possibility, but now it conflicts with no-bootstrap rules
48108@if gcc-bootstrap
48109
48110
48111
48112
0df3d27f 48113# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48114
0df3d27f 48115.PHONY: distclean-stage1
72b2455a 48116distclean-stage1::
0aed8855 48117 @: $(MAKE); $(stage)
e00a73e3 48118 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 48119 rm -rf stage1-*
72b2455a
PB
48120
48121
48122@endif gcc-bootstrap
48123
48124
48125.PHONY: stage2-start stage2-end
48126
48127stage2-start::
0aed8855 48128 @: $(MAKE); $(stage); \
22121df0 48129 echo stage2 > stage_current; \
b00612cc 48130 echo stage2 > stage_last; \
0aed8855 48131 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48132@if bfd
b00612cc
PB
48133 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
48134 mkdir stage2-bfd; \
22121df0 48135 mv stage2-bfd bfd; \
80911fe1 48136 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48137@endif bfd
48138@if opcodes
b00612cc
PB
48139 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
48140 mkdir stage2-opcodes; \
22121df0 48141 mv stage2-opcodes opcodes; \
80911fe1 48142 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48143@endif opcodes
48144@if binutils
b00612cc
PB
48145 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
48146 mkdir stage2-binutils; \
22121df0 48147 mv stage2-binutils binutils; \
80911fe1 48148 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48149@endif binutils
201f096f 48150@if fixincludes
48151 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
48152 mkdir stage2-fixincludes; \
22121df0 48153 mv stage2-fixincludes fixincludes; \
201f096f 48154 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48155@endif fixincludes
72b2455a 48156@if gas
b00612cc
PB
48157 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
48158 mkdir stage2-gas; \
22121df0 48159 mv stage2-gas gas; \
80911fe1 48160 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48161@endif gas
48162@if gcc
b00612cc
PB
48163 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
48164 mkdir stage2-gcc; \
22121df0 48165 mv stage2-gcc gcc; \
80911fe1 48166 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48167@endif gcc
4b900473
PB
48168@if gmp
48169 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
48170 mkdir stage2-gmp; \
22121df0 48171 mv stage2-gmp gmp; \
4b900473
PB
48172 mv stage1-gmp prev-gmp || test -f stage1-lean
48173@endif gmp
48174@if mpfr
48175 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
48176 mkdir stage2-mpfr; \
22121df0 48177 mv stage2-mpfr mpfr; \
4b900473
PB
48178 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48179@endif mpfr
e8a5fa9c
RW
48180@if mpc
48181 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
48182 mkdir stage2-mpc; \
22121df0 48183 mv stage2-mpc mpc; \
e8a5fa9c
RW
48184 mv stage1-mpc prev-mpc || test -f stage1-lean
48185@endif mpc
7ec59b9e
L
48186@if isl
48187 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
48188 mkdir stage2-isl; \
22121df0 48189 mv stage2-isl isl; \
7ec59b9e
L
48190 mv stage1-isl prev-isl || test -f stage1-lean
48191@endif isl
1f53ca9a
AO
48192@if libelf
48193 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
48194 mkdir stage2-libelf; \
22121df0 48195 mv stage2-libelf libelf; \
1f53ca9a
AO
48196 mv stage1-libelf prev-libelf || test -f stage1-lean
48197@endif libelf
93f9b408
ILT
48198@if gold
48199 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
48200 mkdir stage2-gold; \
22121df0 48201 mv stage2-gold gold; \
93f9b408
ILT
48202 mv stage1-gold prev-gold || test -f stage1-lean
48203@endif gold
72b2455a 48204@if intl
b00612cc
PB
48205 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
48206 mkdir stage2-intl; \
22121df0 48207 mv stage2-intl intl; \
80911fe1 48208 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48209@endif intl
48210@if ld
b00612cc
PB
48211 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
48212 mkdir stage2-ld; \
22121df0 48213 mv stage2-ld ld; \
80911fe1 48214 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48215@endif ld
2bf680c4
ILT
48216@if libbacktrace
48217 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
48218 mkdir stage2-libbacktrace; \
22121df0 48219 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
48220 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48221@endif libbacktrace
72b2455a 48222@if libcpp
b00612cc
PB
48223 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
48224 mkdir stage2-libcpp; \
22121df0 48225 mv stage2-libcpp libcpp; \
80911fe1 48226 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48227@endif libcpp
be01d343
PB
48228@if libdecnumber
48229 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
48230 mkdir stage2-libdecnumber; \
22121df0 48231 mv stage2-libdecnumber libdecnumber; \
80911fe1 48232 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48233@endif libdecnumber
72b2455a 48234@if libiberty
b00612cc
PB
48235 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
48236 mkdir stage2-libiberty; \
22121df0 48237 mv stage2-libiberty libiberty; \
80911fe1 48238 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48239@endif libiberty
1b6c0831
L
48240@if libiberty-linker-plugin
48241 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
48242 mkdir stage2-libiberty-linker-plugin; \
22121df0 48243 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48244 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48245@endif libiberty-linker-plugin
016a3251
DD
48246@if libiconv
48247 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
48248 mkdir stage2-libiconv; \
48249 mv stage2-libiconv libiconv; \
48250 mv stage1-libiconv prev-libiconv || test -f stage1-lean
48251@endif libiconv
72b2455a 48252@if zlib
b00612cc
PB
48253 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
48254 mkdir stage2-zlib; \
22121df0 48255 mv stage2-zlib zlib; \
80911fe1 48256 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 48257@endif zlib
700d40ca
ILT
48258@if lto-plugin
48259 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
48260 mkdir stage2-lto-plugin; \
22121df0 48261 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
48262 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48263@endif lto-plugin
0aed8855
PB
48264 @[ -d stage2-$(TARGET_SUBDIR) ] || \
48265 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 48266 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48267 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 48268
80911fe1 48269stage2-end::
72b2455a 48270@if bfd
22121df0
L
48271 @if test -d $(HOST_SUBDIR)/bfd; then \
48272 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
48273 mv prev-bfd stage1-bfd; : ; \
0aed8855 48274 fi
72b2455a
PB
48275@endif bfd
48276@if opcodes
22121df0
L
48277 @if test -d $(HOST_SUBDIR)/opcodes; then \
48278 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
48279 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 48280 fi
72b2455a
PB
48281@endif opcodes
48282@if binutils
22121df0
L
48283 @if test -d $(HOST_SUBDIR)/binutils; then \
48284 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
48285 mv prev-binutils stage1-binutils; : ; \
0aed8855 48286 fi
72b2455a 48287@endif binutils
201f096f 48288@if fixincludes
22121df0
L
48289 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48290 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
48291 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 48292 fi
48293@endif fixincludes
72b2455a 48294@if gas
22121df0
L
48295 @if test -d $(HOST_SUBDIR)/gas; then \
48296 cd $(HOST_SUBDIR); mv gas stage2-gas; \
48297 mv prev-gas stage1-gas; : ; \
0aed8855 48298 fi
72b2455a
PB
48299@endif gas
48300@if gcc
22121df0
L
48301 @if test -d $(HOST_SUBDIR)/gcc; then \
48302 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
48303 mv prev-gcc stage1-gcc; : ; \
0aed8855 48304 fi
72b2455a 48305@endif gcc
4b900473 48306@if gmp
22121df0
L
48307 @if test -d $(HOST_SUBDIR)/gmp; then \
48308 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
48309 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
48310 fi
48311@endif gmp
48312@if mpfr
22121df0
L
48313 @if test -d $(HOST_SUBDIR)/mpfr; then \
48314 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
48315 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
48316 fi
48317@endif mpfr
e8a5fa9c 48318@if mpc
22121df0
L
48319 @if test -d $(HOST_SUBDIR)/mpc; then \
48320 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
48321 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
48322 fi
48323@endif mpc
7ec59b9e 48324@if isl
22121df0
L
48325 @if test -d $(HOST_SUBDIR)/isl; then \
48326 cd $(HOST_SUBDIR); mv isl stage2-isl; \
48327 mv prev-isl stage1-isl; : ; \
e28c595f 48328 fi
7ec59b9e 48329@endif isl
1f53ca9a 48330@if libelf
22121df0
L
48331 @if test -d $(HOST_SUBDIR)/libelf; then \
48332 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
48333 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
48334 fi
48335@endif libelf
93f9b408 48336@if gold
22121df0
L
48337 @if test -d $(HOST_SUBDIR)/gold; then \
48338 cd $(HOST_SUBDIR); mv gold stage2-gold; \
48339 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
48340 fi
48341@endif gold
72b2455a 48342@if intl
22121df0
L
48343 @if test -d $(HOST_SUBDIR)/intl; then \
48344 cd $(HOST_SUBDIR); mv intl stage2-intl; \
48345 mv prev-intl stage1-intl; : ; \
0aed8855 48346 fi
72b2455a
PB
48347@endif intl
48348@if ld
22121df0
L
48349 @if test -d $(HOST_SUBDIR)/ld; then \
48350 cd $(HOST_SUBDIR); mv ld stage2-ld; \
48351 mv prev-ld stage1-ld; : ; \
0aed8855 48352 fi
72b2455a 48353@endif ld
2bf680c4 48354@if libbacktrace
22121df0
L
48355 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48356 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
48357 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
48358 fi
48359@endif libbacktrace
72b2455a 48360@if libcpp
22121df0
L
48361 @if test -d $(HOST_SUBDIR)/libcpp; then \
48362 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
48363 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 48364 fi
72b2455a 48365@endif libcpp
be01d343 48366@if libdecnumber
22121df0
L
48367 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48368 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
48369 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 48370 fi
be01d343 48371@endif libdecnumber
72b2455a 48372@if libiberty
22121df0
L
48373 @if test -d $(HOST_SUBDIR)/libiberty; then \
48374 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
48375 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 48376 fi
72b2455a 48377@endif libiberty
1b6c0831 48378@if libiberty-linker-plugin
22121df0
L
48379 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48380 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
48381 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
48382 fi
48383@endif libiberty-linker-plugin
016a3251
DD
48384@if libiconv
48385 @if test -d $(HOST_SUBDIR)/libiconv; then \
48386 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
48387 mv prev-libiconv stage1-libiconv; : ; \
48388 fi
48389@endif libiconv
72b2455a 48390@if zlib
22121df0
L
48391 @if test -d $(HOST_SUBDIR)/zlib; then \
48392 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
48393 mv prev-zlib stage1-zlib; : ; \
0aed8855 48394 fi
72b2455a 48395@endif zlib
700d40ca 48396@if lto-plugin
22121df0
L
48397 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48398 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
48399 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
48400 fi
48401@endif lto-plugin
22121df0
L
48402 @if test -d $(TARGET_SUBDIR); then \
48403 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
48404 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 48405 fi
80911fe1 48406 rm -f stage_current
72b2455a 48407
973601e1 48408# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 48409# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48410# reconfigured either.
72b2455a
PB
48411.PHONY: stage2-bubble
48412stage2-bubble:: stage1-bubble
e360f423
PB
48413 @r=`${PWD_COMMAND}`; export r; \
48414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48415 if test -f stage2-lean || test -f stage1-lean ; then \
48416 echo Skipping rebuild of stage2; \
9cb3fa6f 48417 else \
f70224b5
PB
48418 $(MAKE) stage2-start; \
48419 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 48420 fi
72b2455a 48421
0df3d27f 48422.PHONY: all-stage2 clean-stage2
0df3d27f 48423do-clean: clean-stage2
0df3d27f 48424
72b2455a
PB
48425# FIXME: Will not need to be conditional when toplevel bootstrap is the
48426# only possibility, but now it conflicts with no-bootstrap rules
48427@if gcc-bootstrap
48428
48429
48430
80911fe1 48431.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
48432bootstrap2:
48433 echo stage2 > stage_final
48434 @r=`${PWD_COMMAND}`; export r; \
48435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48436 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 48437 @: $(MAKE); $(unstage)
be01d343
PB
48438 @r=`${PWD_COMMAND}`; export r; \
48439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48440 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 48441 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 48442
80911fe1
PB
48443bootstrap2-lean:
48444 echo stage2 > stage_final
48445 @r=`${PWD_COMMAND}`; export r; \
48446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48447 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
48448 @: $(MAKE); $(unstage)
48449 @r=`${PWD_COMMAND}`; export r; \
48450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48451 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
48452 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48453
72b2455a 48454
0df3d27f 48455# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48456distclean-stage1:: distclean-stage2
0df3d27f 48457.PHONY: distclean-stage2
72b2455a 48458distclean-stage2::
0aed8855 48459 @: $(MAKE); $(stage)
e00a73e3 48460 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 48461 rm -rf stage2-*
72b2455a
PB
48462
48463
48464@endif gcc-bootstrap
48465
48466
48467.PHONY: stage3-start stage3-end
48468
48469stage3-start::
0aed8855 48470 @: $(MAKE); $(stage); \
22121df0 48471 echo stage3 > stage_current; \
b00612cc 48472 echo stage3 > stage_last; \
0aed8855 48473 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48474@if bfd
b00612cc
PB
48475 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
48476 mkdir stage3-bfd; \
22121df0 48477 mv stage3-bfd bfd; \
80911fe1 48478 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
48479@endif bfd
48480@if opcodes
b00612cc
PB
48481 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
48482 mkdir stage3-opcodes; \
22121df0 48483 mv stage3-opcodes opcodes; \
80911fe1 48484 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
48485@endif opcodes
48486@if binutils
b00612cc
PB
48487 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
48488 mkdir stage3-binutils; \
22121df0 48489 mv stage3-binutils binutils; \
80911fe1 48490 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 48491@endif binutils
201f096f 48492@if fixincludes
48493 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
48494 mkdir stage3-fixincludes; \
22121df0 48495 mv stage3-fixincludes fixincludes; \
201f096f 48496 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
48497@endif fixincludes
72b2455a 48498@if gas
b00612cc
PB
48499 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
48500 mkdir stage3-gas; \
22121df0 48501 mv stage3-gas gas; \
80911fe1 48502 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
48503@endif gas
48504@if gcc
b00612cc
PB
48505 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
48506 mkdir stage3-gcc; \
22121df0 48507 mv stage3-gcc gcc; \
80911fe1 48508 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 48509@endif gcc
4b900473
PB
48510@if gmp
48511 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
48512 mkdir stage3-gmp; \
22121df0 48513 mv stage3-gmp gmp; \
4b900473
PB
48514 mv stage2-gmp prev-gmp || test -f stage2-lean
48515@endif gmp
48516@if mpfr
48517 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
48518 mkdir stage3-mpfr; \
22121df0 48519 mv stage3-mpfr mpfr; \
4b900473
PB
48520 mv stage2-mpfr prev-mpfr || test -f stage2-lean
48521@endif mpfr
e8a5fa9c
RW
48522@if mpc
48523 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
48524 mkdir stage3-mpc; \
22121df0 48525 mv stage3-mpc mpc; \
e8a5fa9c
RW
48526 mv stage2-mpc prev-mpc || test -f stage2-lean
48527@endif mpc
7ec59b9e
L
48528@if isl
48529 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
48530 mkdir stage3-isl; \
22121df0 48531 mv stage3-isl isl; \
7ec59b9e
L
48532 mv stage2-isl prev-isl || test -f stage2-lean
48533@endif isl
1f53ca9a
AO
48534@if libelf
48535 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
48536 mkdir stage3-libelf; \
22121df0 48537 mv stage3-libelf libelf; \
1f53ca9a
AO
48538 mv stage2-libelf prev-libelf || test -f stage2-lean
48539@endif libelf
93f9b408
ILT
48540@if gold
48541 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
48542 mkdir stage3-gold; \
22121df0 48543 mv stage3-gold gold; \
93f9b408
ILT
48544 mv stage2-gold prev-gold || test -f stage2-lean
48545@endif gold
72b2455a 48546@if intl
b00612cc
PB
48547 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
48548 mkdir stage3-intl; \
22121df0 48549 mv stage3-intl intl; \
80911fe1 48550 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
48551@endif intl
48552@if ld
b00612cc
PB
48553 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
48554 mkdir stage3-ld; \
22121df0 48555 mv stage3-ld ld; \
80911fe1 48556 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 48557@endif ld
2bf680c4
ILT
48558@if libbacktrace
48559 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
48560 mkdir stage3-libbacktrace; \
22121df0 48561 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
48562 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
48563@endif libbacktrace
72b2455a 48564@if libcpp
b00612cc
PB
48565 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
48566 mkdir stage3-libcpp; \
22121df0 48567 mv stage3-libcpp libcpp; \
80911fe1 48568 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 48569@endif libcpp
be01d343
PB
48570@if libdecnumber
48571 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
48572 mkdir stage3-libdecnumber; \
22121df0 48573 mv stage3-libdecnumber libdecnumber; \
80911fe1 48574 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 48575@endif libdecnumber
72b2455a 48576@if libiberty
b00612cc
PB
48577 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
48578 mkdir stage3-libiberty; \
22121df0 48579 mv stage3-libiberty libiberty; \
80911fe1 48580 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 48581@endif libiberty
1b6c0831
L
48582@if libiberty-linker-plugin
48583 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
48584 mkdir stage3-libiberty-linker-plugin; \
22121df0 48585 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48586 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
48587@endif libiberty-linker-plugin
016a3251
DD
48588@if libiconv
48589 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
48590 mkdir stage3-libiconv; \
48591 mv stage3-libiconv libiconv; \
48592 mv stage2-libiconv prev-libiconv || test -f stage2-lean
48593@endif libiconv
72b2455a 48594@if zlib
b00612cc
PB
48595 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
48596 mkdir stage3-zlib; \
22121df0 48597 mv stage3-zlib zlib; \
80911fe1 48598 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 48599@endif zlib
700d40ca
ILT
48600@if lto-plugin
48601 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
48602 mkdir stage3-lto-plugin; \
22121df0 48603 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
48604 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
48605@endif lto-plugin
0aed8855
PB
48606 @[ -d stage3-$(TARGET_SUBDIR) ] || \
48607 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 48608 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48609 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 48610
80911fe1 48611stage3-end::
72b2455a 48612@if bfd
22121df0
L
48613 @if test -d $(HOST_SUBDIR)/bfd; then \
48614 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
48615 mv prev-bfd stage2-bfd; : ; \
0aed8855 48616 fi
72b2455a
PB
48617@endif bfd
48618@if opcodes
22121df0
L
48619 @if test -d $(HOST_SUBDIR)/opcodes; then \
48620 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
48621 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 48622 fi
72b2455a
PB
48623@endif opcodes
48624@if binutils
22121df0
L
48625 @if test -d $(HOST_SUBDIR)/binutils; then \
48626 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
48627 mv prev-binutils stage2-binutils; : ; \
0aed8855 48628 fi
72b2455a 48629@endif binutils
201f096f 48630@if fixincludes
22121df0
L
48631 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48632 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
48633 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 48634 fi
48635@endif fixincludes
72b2455a 48636@if gas
22121df0
L
48637 @if test -d $(HOST_SUBDIR)/gas; then \
48638 cd $(HOST_SUBDIR); mv gas stage3-gas; \
48639 mv prev-gas stage2-gas; : ; \
0aed8855 48640 fi
72b2455a
PB
48641@endif gas
48642@if gcc
22121df0
L
48643 @if test -d $(HOST_SUBDIR)/gcc; then \
48644 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
48645 mv prev-gcc stage2-gcc; : ; \
0aed8855 48646 fi
72b2455a 48647@endif gcc
4b900473 48648@if gmp
22121df0
L
48649 @if test -d $(HOST_SUBDIR)/gmp; then \
48650 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
48651 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
48652 fi
48653@endif gmp
48654@if mpfr
22121df0
L
48655 @if test -d $(HOST_SUBDIR)/mpfr; then \
48656 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
48657 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
48658 fi
48659@endif mpfr
e8a5fa9c 48660@if mpc
22121df0
L
48661 @if test -d $(HOST_SUBDIR)/mpc; then \
48662 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
48663 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
48664 fi
48665@endif mpc
7ec59b9e 48666@if isl
22121df0
L
48667 @if test -d $(HOST_SUBDIR)/isl; then \
48668 cd $(HOST_SUBDIR); mv isl stage3-isl; \
48669 mv prev-isl stage2-isl; : ; \
e28c595f 48670 fi
7ec59b9e 48671@endif isl
1f53ca9a 48672@if libelf
22121df0
L
48673 @if test -d $(HOST_SUBDIR)/libelf; then \
48674 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
48675 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
48676 fi
48677@endif libelf
93f9b408 48678@if gold
22121df0
L
48679 @if test -d $(HOST_SUBDIR)/gold; then \
48680 cd $(HOST_SUBDIR); mv gold stage3-gold; \
48681 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
48682 fi
48683@endif gold
72b2455a 48684@if intl
22121df0
L
48685 @if test -d $(HOST_SUBDIR)/intl; then \
48686 cd $(HOST_SUBDIR); mv intl stage3-intl; \
48687 mv prev-intl stage2-intl; : ; \
0aed8855 48688 fi
72b2455a
PB
48689@endif intl
48690@if ld
22121df0
L
48691 @if test -d $(HOST_SUBDIR)/ld; then \
48692 cd $(HOST_SUBDIR); mv ld stage3-ld; \
48693 mv prev-ld stage2-ld; : ; \
0aed8855 48694 fi
72b2455a 48695@endif ld
2bf680c4 48696@if libbacktrace
22121df0
L
48697 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48698 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
48699 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
48700 fi
48701@endif libbacktrace
72b2455a 48702@if libcpp
22121df0
L
48703 @if test -d $(HOST_SUBDIR)/libcpp; then \
48704 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
48705 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 48706 fi
72b2455a 48707@endif libcpp
be01d343 48708@if libdecnumber
22121df0
L
48709 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48710 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
48711 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 48712 fi
be01d343 48713@endif libdecnumber
72b2455a 48714@if libiberty
22121df0
L
48715 @if test -d $(HOST_SUBDIR)/libiberty; then \
48716 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
48717 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 48718 fi
72b2455a 48719@endif libiberty
1b6c0831 48720@if libiberty-linker-plugin
22121df0
L
48721 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48722 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
48723 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
48724 fi
48725@endif libiberty-linker-plugin
016a3251
DD
48726@if libiconv
48727 @if test -d $(HOST_SUBDIR)/libiconv; then \
48728 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
48729 mv prev-libiconv stage2-libiconv; : ; \
48730 fi
48731@endif libiconv
72b2455a 48732@if zlib
22121df0
L
48733 @if test -d $(HOST_SUBDIR)/zlib; then \
48734 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
48735 mv prev-zlib stage2-zlib; : ; \
0aed8855 48736 fi
72b2455a 48737@endif zlib
700d40ca 48738@if lto-plugin
22121df0
L
48739 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48740 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
48741 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
48742 fi
48743@endif lto-plugin
22121df0
L
48744 @if test -d $(TARGET_SUBDIR); then \
48745 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
48746 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 48747 fi
80911fe1 48748 rm -f stage_current
72b2455a 48749
973601e1 48750# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 48751# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48752# reconfigured either.
72b2455a
PB
48753.PHONY: stage3-bubble
48754stage3-bubble:: stage2-bubble
e360f423
PB
48755 @r=`${PWD_COMMAND}`; export r; \
48756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48757 if test -f stage3-lean || test -f stage2-lean ; then \
48758 echo Skipping rebuild of stage3; \
9cb3fa6f 48759 else \
f70224b5 48760 $(MAKE) stage3-start; \
80911fe1 48761 if $(LEAN); then \
22121df0
L
48762 rm -rf stage1-*; \
48763 $(STAMP) stage1-lean; \
80911fe1 48764 fi; \
f70224b5 48765 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 48766 fi
f6d183c0 48767 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 48768
0df3d27f 48769.PHONY: all-stage3 clean-stage3
0df3d27f 48770do-clean: clean-stage3
0df3d27f 48771
d545f33b
PB
48772# FIXME: Will not need to be conditional when toplevel bootstrap is the
48773# only possibility, but now it conflicts with no-bootstrap rules
48774@if gcc-bootstrap
72b2455a 48775
d545f33b 48776compare:
e360f423
PB
48777 @r=`${PWD_COMMAND}`; export r; \
48778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48779 if test -f stage2-lean; then \
22121df0
L
48780 echo Cannot compare object files as stage 2 was deleted.; \
48781 exit 0; \
d545f33b 48782 fi; \
0aed8855 48783 : $(MAKE); $(stage); \
22121df0
L
48784 rm -f .bad_compare; \
48785 echo Comparing stages 2 and 3; \
fda13ee8
AO
48786 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
48787 files=`find stage3-* -name "*$(objext)" -print | \
22121df0
L
48788 sed -n s,^stage$$sed-,,p`; \
48789 for file in $${files}; do \
fda13ee8
AO
48790 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
48791 if test ! -f $$f1; then continue; fi; \
8520c408 48792 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
48793 if test $$? -eq 1; then \
48794 case $$file in \
e8a5fa9c 48795 @compare_exclusions@) \
f70224b5
PB
48796 echo warning: $$file differs ;; \
48797 *) \
48798 echo $$file differs >> .bad_compare ;; \
22121df0
L
48799 esac; \
48800 fi; \
48801 done; \
d545f33b
PB
48802 if [ -f .bad_compare ]; then \
48803 echo "Bootstrap comparison failure!"; \
48804 cat .bad_compare; \
48805 exit 1; \
48806 else \
c52c6897 48807 echo Comparison successful.; \
22121df0 48808 fi; \
d545f33b 48809 $(STAMP) compare
80911fe1
PB
48810 if $(LEAN); then \
48811 rm -rf stage2-*; \
48812 $(STAMP) stage2-lean; \
48813 fi
9cb3fa6f 48814
72b2455a 48815
72b2455a 48816
80911fe1 48817.PHONY: bootstrap bootstrap-lean
be01d343
PB
48818bootstrap:
48819 echo stage3 > stage_final
48820 @r=`${PWD_COMMAND}`; export r; \
48821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48822 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 48823 @: $(MAKE); $(unstage)
be01d343
PB
48824 @r=`${PWD_COMMAND}`; export r; \
48825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48826 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 48827 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48828
80911fe1
PB
48829bootstrap-lean:
48830 echo stage3 > stage_final
48831 @r=`${PWD_COMMAND}`; export r; \
48832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48833 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
48834 @: $(MAKE); $(unstage)
48835 @r=`${PWD_COMMAND}`; export r; \
48836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48837 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
48838 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48839
72b2455a 48840
d545f33b
PB
48841# Rules to wipe a stage and all the following ones, also used for cleanstrap
48842distclean-stage2:: distclean-stage3
48843.PHONY: distclean-stage3
48844distclean-stage3::
0aed8855 48845 @: $(MAKE); $(stage)
e00a73e3 48846 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 48847 rm -rf stage3-* compare
0df3d27f 48848
9cb3fa6f 48849
d545f33b 48850.PHONY: cleanstrap
e00a73e3
PB
48851cleanstrap: do-distclean local-clean
48852 echo stage3 > stage_final
48853 @r=`${PWD_COMMAND}`; export r; \
48854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48855 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
48856 @: $(MAKE); $(unstage)
48857 @r=`${PWD_COMMAND}`; export r; \
48858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48859 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
48860 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48861
48862@endif gcc-bootstrap
48863
48864
72b2455a
PB
48865.PHONY: stage4-start stage4-end
48866
48867stage4-start::
0aed8855 48868 @: $(MAKE); $(stage); \
22121df0 48869 echo stage4 > stage_current; \
b00612cc 48870 echo stage4 > stage_last; \
0aed8855 48871 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48872@if bfd
b00612cc
PB
48873 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
48874 mkdir stage4-bfd; \
22121df0 48875 mv stage4-bfd bfd; \
80911fe1 48876 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
48877@endif bfd
48878@if opcodes
b00612cc
PB
48879 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
48880 mkdir stage4-opcodes; \
22121df0 48881 mv stage4-opcodes opcodes; \
80911fe1 48882 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
48883@endif opcodes
48884@if binutils
b00612cc
PB
48885 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
48886 mkdir stage4-binutils; \
22121df0 48887 mv stage4-binutils binutils; \
80911fe1 48888 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 48889@endif binutils
201f096f 48890@if fixincludes
48891 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
48892 mkdir stage4-fixincludes; \
22121df0 48893 mv stage4-fixincludes fixincludes; \
201f096f 48894 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
48895@endif fixincludes
72b2455a 48896@if gas
b00612cc
PB
48897 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
48898 mkdir stage4-gas; \
22121df0 48899 mv stage4-gas gas; \
80911fe1 48900 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
48901@endif gas
48902@if gcc
b00612cc
PB
48903 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
48904 mkdir stage4-gcc; \
22121df0 48905 mv stage4-gcc gcc; \
80911fe1 48906 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 48907@endif gcc
4b900473
PB
48908@if gmp
48909 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
48910 mkdir stage4-gmp; \
22121df0 48911 mv stage4-gmp gmp; \
4b900473
PB
48912 mv stage3-gmp prev-gmp || test -f stage3-lean
48913@endif gmp
48914@if mpfr
48915 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
48916 mkdir stage4-mpfr; \
22121df0 48917 mv stage4-mpfr mpfr; \
4b900473
PB
48918 mv stage3-mpfr prev-mpfr || test -f stage3-lean
48919@endif mpfr
e8a5fa9c
RW
48920@if mpc
48921 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
48922 mkdir stage4-mpc; \
22121df0 48923 mv stage4-mpc mpc; \
e8a5fa9c
RW
48924 mv stage3-mpc prev-mpc || test -f stage3-lean
48925@endif mpc
7ec59b9e
L
48926@if isl
48927 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
48928 mkdir stage4-isl; \
22121df0 48929 mv stage4-isl isl; \
7ec59b9e
L
48930 mv stage3-isl prev-isl || test -f stage3-lean
48931@endif isl
1f53ca9a
AO
48932@if libelf
48933 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
48934 mkdir stage4-libelf; \
22121df0 48935 mv stage4-libelf libelf; \
1f53ca9a
AO
48936 mv stage3-libelf prev-libelf || test -f stage3-lean
48937@endif libelf
93f9b408
ILT
48938@if gold
48939 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
48940 mkdir stage4-gold; \
22121df0 48941 mv stage4-gold gold; \
93f9b408
ILT
48942 mv stage3-gold prev-gold || test -f stage3-lean
48943@endif gold
72b2455a 48944@if intl
b00612cc
PB
48945 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
48946 mkdir stage4-intl; \
22121df0 48947 mv stage4-intl intl; \
80911fe1 48948 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
48949@endif intl
48950@if ld
b00612cc
PB
48951 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
48952 mkdir stage4-ld; \
22121df0 48953 mv stage4-ld ld; \
80911fe1 48954 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 48955@endif ld
2bf680c4
ILT
48956@if libbacktrace
48957 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
48958 mkdir stage4-libbacktrace; \
22121df0 48959 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
48960 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
48961@endif libbacktrace
72b2455a 48962@if libcpp
b00612cc
PB
48963 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
48964 mkdir stage4-libcpp; \
22121df0 48965 mv stage4-libcpp libcpp; \
80911fe1 48966 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 48967@endif libcpp
be01d343
PB
48968@if libdecnumber
48969 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
48970 mkdir stage4-libdecnumber; \
22121df0 48971 mv stage4-libdecnumber libdecnumber; \
80911fe1 48972 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 48973@endif libdecnumber
72b2455a 48974@if libiberty
b00612cc
PB
48975 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
48976 mkdir stage4-libiberty; \
22121df0 48977 mv stage4-libiberty libiberty; \
80911fe1 48978 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 48979@endif libiberty
1b6c0831
L
48980@if libiberty-linker-plugin
48981 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
48982 mkdir stage4-libiberty-linker-plugin; \
22121df0 48983 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48984 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
48985@endif libiberty-linker-plugin
016a3251
DD
48986@if libiconv
48987 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
48988 mkdir stage4-libiconv; \
48989 mv stage4-libiconv libiconv; \
48990 mv stage3-libiconv prev-libiconv || test -f stage3-lean
48991@endif libiconv
72b2455a 48992@if zlib
b00612cc
PB
48993 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
48994 mkdir stage4-zlib; \
22121df0 48995 mv stage4-zlib zlib; \
80911fe1 48996 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 48997@endif zlib
700d40ca
ILT
48998@if lto-plugin
48999 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
49000 mkdir stage4-lto-plugin; \
22121df0 49001 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
49002 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
49003@endif lto-plugin
0aed8855
PB
49004 @[ -d stage4-$(TARGET_SUBDIR) ] || \
49005 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 49006 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49007 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 49008
80911fe1 49009stage4-end::
72b2455a 49010@if bfd
22121df0
L
49011 @if test -d $(HOST_SUBDIR)/bfd; then \
49012 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
49013 mv prev-bfd stage3-bfd; : ; \
0aed8855 49014 fi
72b2455a
PB
49015@endif bfd
49016@if opcodes
22121df0
L
49017 @if test -d $(HOST_SUBDIR)/opcodes; then \
49018 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
49019 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 49020 fi
72b2455a
PB
49021@endif opcodes
49022@if binutils
22121df0
L
49023 @if test -d $(HOST_SUBDIR)/binutils; then \
49024 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
49025 mv prev-binutils stage3-binutils; : ; \
0aed8855 49026 fi
72b2455a 49027@endif binutils
201f096f 49028@if fixincludes
22121df0
L
49029 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49030 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
49031 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 49032 fi
49033@endif fixincludes
72b2455a 49034@if gas
22121df0
L
49035 @if test -d $(HOST_SUBDIR)/gas; then \
49036 cd $(HOST_SUBDIR); mv gas stage4-gas; \
49037 mv prev-gas stage3-gas; : ; \
0aed8855 49038 fi
72b2455a
PB
49039@endif gas
49040@if gcc
22121df0
L
49041 @if test -d $(HOST_SUBDIR)/gcc; then \
49042 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
49043 mv prev-gcc stage3-gcc; : ; \
0aed8855 49044 fi
72b2455a 49045@endif gcc
4b900473 49046@if gmp
22121df0
L
49047 @if test -d $(HOST_SUBDIR)/gmp; then \
49048 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
49049 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
49050 fi
49051@endif gmp
49052@if mpfr
22121df0
L
49053 @if test -d $(HOST_SUBDIR)/mpfr; then \
49054 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
49055 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
49056 fi
49057@endif mpfr
e8a5fa9c 49058@if mpc
22121df0
L
49059 @if test -d $(HOST_SUBDIR)/mpc; then \
49060 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
49061 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
49062 fi
49063@endif mpc
7ec59b9e 49064@if isl
22121df0
L
49065 @if test -d $(HOST_SUBDIR)/isl; then \
49066 cd $(HOST_SUBDIR); mv isl stage4-isl; \
49067 mv prev-isl stage3-isl; : ; \
e28c595f 49068 fi
7ec59b9e 49069@endif isl
1f53ca9a 49070@if libelf
22121df0
L
49071 @if test -d $(HOST_SUBDIR)/libelf; then \
49072 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
49073 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
49074 fi
49075@endif libelf
93f9b408 49076@if gold
22121df0
L
49077 @if test -d $(HOST_SUBDIR)/gold; then \
49078 cd $(HOST_SUBDIR); mv gold stage4-gold; \
49079 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
49080 fi
49081@endif gold
72b2455a 49082@if intl
22121df0
L
49083 @if test -d $(HOST_SUBDIR)/intl; then \
49084 cd $(HOST_SUBDIR); mv intl stage4-intl; \
49085 mv prev-intl stage3-intl; : ; \
0aed8855 49086 fi
72b2455a
PB
49087@endif intl
49088@if ld
22121df0
L
49089 @if test -d $(HOST_SUBDIR)/ld; then \
49090 cd $(HOST_SUBDIR); mv ld stage4-ld; \
49091 mv prev-ld stage3-ld; : ; \
0aed8855 49092 fi
72b2455a 49093@endif ld
2bf680c4 49094@if libbacktrace
22121df0
L
49095 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49096 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
49097 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
49098 fi
49099@endif libbacktrace
72b2455a 49100@if libcpp
22121df0
L
49101 @if test -d $(HOST_SUBDIR)/libcpp; then \
49102 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
49103 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 49104 fi
72b2455a 49105@endif libcpp
be01d343 49106@if libdecnumber
22121df0
L
49107 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49108 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
49109 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 49110 fi
be01d343 49111@endif libdecnumber
72b2455a 49112@if libiberty
22121df0
L
49113 @if test -d $(HOST_SUBDIR)/libiberty; then \
49114 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
49115 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 49116 fi
72b2455a 49117@endif libiberty
1b6c0831 49118@if libiberty-linker-plugin
22121df0
L
49119 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49120 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
49121 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
49122 fi
49123@endif libiberty-linker-plugin
016a3251
DD
49124@if libiconv
49125 @if test -d $(HOST_SUBDIR)/libiconv; then \
49126 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
49127 mv prev-libiconv stage3-libiconv; : ; \
49128 fi
49129@endif libiconv
72b2455a 49130@if zlib
22121df0
L
49131 @if test -d $(HOST_SUBDIR)/zlib; then \
49132 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
49133 mv prev-zlib stage3-zlib; : ; \
0aed8855 49134 fi
72b2455a 49135@endif zlib
700d40ca 49136@if lto-plugin
22121df0
L
49137 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49138 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
49139 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
49140 fi
49141@endif lto-plugin
22121df0
L
49142 @if test -d $(TARGET_SUBDIR); then \
49143 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
49144 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 49145 fi
80911fe1 49146 rm -f stage_current
72b2455a 49147
973601e1 49148# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 49149# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49150# reconfigured either.
72b2455a
PB
49151.PHONY: stage4-bubble
49152stage4-bubble:: stage3-bubble
e360f423
PB
49153 @r=`${PWD_COMMAND}`; export r; \
49154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49155 if test -f stage4-lean || test -f stage3-lean ; then \
49156 echo Skipping rebuild of stage4; \
9cb3fa6f 49157 else \
f70224b5 49158 $(MAKE) stage4-start; \
80911fe1 49159 if $(LEAN); then \
22121df0
L
49160 rm -rf stage2-*; \
49161 $(STAMP) stage2-lean; \
80911fe1 49162 fi; \
f70224b5 49163 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 49164 fi
f6d183c0 49165 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 49166
0df3d27f 49167.PHONY: all-stage4 clean-stage4
0df3d27f 49168do-clean: clean-stage4
0df3d27f 49169
d545f33b
PB
49170# FIXME: Will not need to be conditional when toplevel bootstrap is the
49171# only possibility, but now it conflicts with no-bootstrap rules
49172@if gcc-bootstrap
72b2455a 49173
d545f33b 49174compare3:
e360f423
PB
49175 @r=`${PWD_COMMAND}`; export r; \
49176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49177 if test -f stage3-lean; then \
22121df0
L
49178 echo Cannot compare object files as stage 3 was deleted.; \
49179 exit 0; \
d545f33b 49180 fi; \
0aed8855 49181 : $(MAKE); $(stage); \
22121df0
L
49182 rm -f .bad_compare; \
49183 echo Comparing stages 3 and 4; \
fda13ee8
AO
49184 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
49185 files=`find stage4-* -name "*$(objext)" -print | \
22121df0
L
49186 sed -n s,^stage$$sed-,,p`; \
49187 for file in $${files}; do \
fda13ee8
AO
49188 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
49189 if test ! -f $$f1; then continue; fi; \
8520c408 49190 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
49191 if test $$? -eq 1; then \
49192 case $$file in \
e8a5fa9c 49193 @compare_exclusions@) \
f70224b5
PB
49194 echo warning: $$file differs ;; \
49195 *) \
49196 echo $$file differs >> .bad_compare ;; \
22121df0
L
49197 esac; \
49198 fi; \
49199 done; \
d545f33b
PB
49200 if [ -f .bad_compare ]; then \
49201 echo "Bootstrap comparison failure!"; \
49202 cat .bad_compare; \
49203 exit 1; \
49204 else \
c52c6897 49205 echo Comparison successful.; \
22121df0 49206 fi; \
d545f33b 49207 $(STAMP) compare3
80911fe1
PB
49208 if $(LEAN); then \
49209 rm -rf stage3-*; \
49210 $(STAMP) stage3-lean; \
49211 fi
9cb3fa6f 49212
72b2455a 49213
72b2455a 49214
80911fe1 49215.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
49216bootstrap4:
49217 echo stage4 > stage_final
49218 @r=`${PWD_COMMAND}`; export r; \
49219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49220 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 49221 @: $(MAKE); $(unstage)
be01d343
PB
49222 @r=`${PWD_COMMAND}`; export r; \
49223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49224 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 49225 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49226
80911fe1
PB
49227bootstrap4-lean:
49228 echo stage4 > stage_final
49229 @r=`${PWD_COMMAND}`; export r; \
49230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49231 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
49232 @: $(MAKE); $(unstage)
49233 @r=`${PWD_COMMAND}`; export r; \
49234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49235 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
49236 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49237
72b2455a 49238
d545f33b
PB
49239# Rules to wipe a stage and all the following ones, also used for cleanstrap
49240distclean-stage3:: distclean-stage4
49241.PHONY: distclean-stage4
49242distclean-stage4::
0aed8855 49243 @: $(MAKE); $(stage)
e00a73e3 49244 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 49245 rm -rf stage4-* compare3
0df3d27f 49246
9cb3fa6f 49247
d545f33b 49248@endif gcc-bootstrap
72b2455a
PB
49249
49250
49251.PHONY: stageprofile-start stageprofile-end
49252
49253stageprofile-start::
0aed8855 49254 @: $(MAKE); $(stage); \
22121df0 49255 echo stageprofile > stage_current; \
b00612cc 49256 echo stageprofile > stage_last; \
0aed8855 49257 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49258@if bfd
b00612cc
PB
49259 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
49260 mkdir stageprofile-bfd; \
22121df0 49261 mv stageprofile-bfd bfd; \
80911fe1 49262 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49263@endif bfd
49264@if opcodes
b00612cc
PB
49265 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
49266 mkdir stageprofile-opcodes; \
22121df0 49267 mv stageprofile-opcodes opcodes; \
80911fe1 49268 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49269@endif opcodes
49270@if binutils
b00612cc
PB
49271 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
49272 mkdir stageprofile-binutils; \
22121df0 49273 mv stageprofile-binutils binutils; \
80911fe1 49274 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49275@endif binutils
201f096f 49276@if fixincludes
49277 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
49278 mkdir stageprofile-fixincludes; \
22121df0 49279 mv stageprofile-fixincludes fixincludes; \
201f096f 49280 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49281@endif fixincludes
72b2455a 49282@if gas
b00612cc
PB
49283 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
49284 mkdir stageprofile-gas; \
22121df0 49285 mv stageprofile-gas gas; \
80911fe1 49286 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49287@endif gas
49288@if gcc
b00612cc
PB
49289 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
49290 mkdir stageprofile-gcc; \
22121df0 49291 mv stageprofile-gcc gcc; \
80911fe1 49292 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49293@endif gcc
4b900473
PB
49294@if gmp
49295 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
49296 mkdir stageprofile-gmp; \
22121df0 49297 mv stageprofile-gmp gmp; \
4b900473
PB
49298 mv stage1-gmp prev-gmp || test -f stage1-lean
49299@endif gmp
49300@if mpfr
49301 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
49302 mkdir stageprofile-mpfr; \
22121df0 49303 mv stageprofile-mpfr mpfr; \
4b900473
PB
49304 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49305@endif mpfr
e8a5fa9c
RW
49306@if mpc
49307 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
49308 mkdir stageprofile-mpc; \
22121df0 49309 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
49310 mv stage1-mpc prev-mpc || test -f stage1-lean
49311@endif mpc
7ec59b9e
L
49312@if isl
49313 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
49314 mkdir stageprofile-isl; \
22121df0 49315 mv stageprofile-isl isl; \
7ec59b9e
L
49316 mv stage1-isl prev-isl || test -f stage1-lean
49317@endif isl
1f53ca9a
AO
49318@if libelf
49319 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
49320 mkdir stageprofile-libelf; \
22121df0 49321 mv stageprofile-libelf libelf; \
1f53ca9a
AO
49322 mv stage1-libelf prev-libelf || test -f stage1-lean
49323@endif libelf
93f9b408
ILT
49324@if gold
49325 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
49326 mkdir stageprofile-gold; \
22121df0 49327 mv stageprofile-gold gold; \
93f9b408
ILT
49328 mv stage1-gold prev-gold || test -f stage1-lean
49329@endif gold
72b2455a 49330@if intl
b00612cc
PB
49331 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
49332 mkdir stageprofile-intl; \
22121df0 49333 mv stageprofile-intl intl; \
80911fe1 49334 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49335@endif intl
49336@if ld
b00612cc
PB
49337 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
49338 mkdir stageprofile-ld; \
22121df0 49339 mv stageprofile-ld ld; \
80911fe1 49340 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49341@endif ld
2bf680c4
ILT
49342@if libbacktrace
49343 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
49344 mkdir stageprofile-libbacktrace; \
22121df0 49345 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
49346 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49347@endif libbacktrace
72b2455a 49348@if libcpp
b00612cc
PB
49349 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
49350 mkdir stageprofile-libcpp; \
22121df0 49351 mv stageprofile-libcpp libcpp; \
80911fe1 49352 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49353@endif libcpp
be01d343
PB
49354@if libdecnumber
49355 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
49356 mkdir stageprofile-libdecnumber; \
22121df0 49357 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 49358 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49359@endif libdecnumber
72b2455a 49360@if libiberty
b00612cc
PB
49361 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
49362 mkdir stageprofile-libiberty; \
22121df0 49363 mv stageprofile-libiberty libiberty; \
80911fe1 49364 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49365@endif libiberty
1b6c0831
L
49366@if libiberty-linker-plugin
49367 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
49368 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 49369 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49370 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49371@endif libiberty-linker-plugin
016a3251
DD
49372@if libiconv
49373 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
49374 mkdir stageprofile-libiconv; \
49375 mv stageprofile-libiconv libiconv; \
49376 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49377@endif libiconv
72b2455a 49378@if zlib
d545f33b
PB
49379 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
49380 mkdir stageprofile-zlib; \
22121df0 49381 mv stageprofile-zlib zlib; \
80911fe1 49382 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 49383@endif zlib
700d40ca
ILT
49384@if lto-plugin
49385 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
49386 mkdir stageprofile-lto-plugin; \
22121df0 49387 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
49388 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49389@endif lto-plugin
0aed8855
PB
49390 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
49391 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 49392 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49393 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 49394
80911fe1 49395stageprofile-end::
d545f33b 49396@if bfd
22121df0
L
49397 @if test -d $(HOST_SUBDIR)/bfd; then \
49398 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
49399 mv prev-bfd stage1-bfd; : ; \
0aed8855 49400 fi
d545f33b
PB
49401@endif bfd
49402@if opcodes
22121df0
L
49403 @if test -d $(HOST_SUBDIR)/opcodes; then \
49404 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
49405 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49406 fi
d545f33b
PB
49407@endif opcodes
49408@if binutils
22121df0
L
49409 @if test -d $(HOST_SUBDIR)/binutils; then \
49410 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
49411 mv prev-binutils stage1-binutils; : ; \
0aed8855 49412 fi
d545f33b 49413@endif binutils
201f096f 49414@if fixincludes
22121df0
L
49415 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49416 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
49417 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49418 fi
49419@endif fixincludes
d545f33b 49420@if gas
22121df0
L
49421 @if test -d $(HOST_SUBDIR)/gas; then \
49422 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
49423 mv prev-gas stage1-gas; : ; \
0aed8855 49424 fi
d545f33b
PB
49425@endif gas
49426@if gcc
22121df0
L
49427 @if test -d $(HOST_SUBDIR)/gcc; then \
49428 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
49429 mv prev-gcc stage1-gcc; : ; \
0aed8855 49430 fi
d545f33b 49431@endif gcc
4b900473 49432@if gmp
22121df0
L
49433 @if test -d $(HOST_SUBDIR)/gmp; then \
49434 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
49435 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49436 fi
49437@endif gmp
49438@if mpfr
22121df0
L
49439 @if test -d $(HOST_SUBDIR)/mpfr; then \
49440 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
49441 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49442 fi
49443@endif mpfr
e8a5fa9c 49444@if mpc
22121df0
L
49445 @if test -d $(HOST_SUBDIR)/mpc; then \
49446 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
49447 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49448 fi
49449@endif mpc
7ec59b9e 49450@if isl
22121df0
L
49451 @if test -d $(HOST_SUBDIR)/isl; then \
49452 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
49453 mv prev-isl stage1-isl; : ; \
e28c595f 49454 fi
7ec59b9e 49455@endif isl
1f53ca9a 49456@if libelf
22121df0
L
49457 @if test -d $(HOST_SUBDIR)/libelf; then \
49458 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
49459 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49460 fi
49461@endif libelf
93f9b408 49462@if gold
22121df0
L
49463 @if test -d $(HOST_SUBDIR)/gold; then \
49464 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
49465 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49466 fi
49467@endif gold
d545f33b 49468@if intl
22121df0
L
49469 @if test -d $(HOST_SUBDIR)/intl; then \
49470 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
49471 mv prev-intl stage1-intl; : ; \
0aed8855 49472 fi
d545f33b
PB
49473@endif intl
49474@if ld
22121df0
L
49475 @if test -d $(HOST_SUBDIR)/ld; then \
49476 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
49477 mv prev-ld stage1-ld; : ; \
0aed8855 49478 fi
d545f33b 49479@endif ld
2bf680c4 49480@if libbacktrace
22121df0
L
49481 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49482 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
49483 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49484 fi
49485@endif libbacktrace
d545f33b 49486@if libcpp
22121df0
L
49487 @if test -d $(HOST_SUBDIR)/libcpp; then \
49488 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
49489 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49490 fi
d545f33b 49491@endif libcpp
be01d343 49492@if libdecnumber
22121df0
L
49493 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49494 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
49495 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49496 fi
be01d343 49497@endif libdecnumber
d545f33b 49498@if libiberty
22121df0
L
49499 @if test -d $(HOST_SUBDIR)/libiberty; then \
49500 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
49501 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49502 fi
d545f33b 49503@endif libiberty
1b6c0831 49504@if libiberty-linker-plugin
22121df0
L
49505 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49506 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
49507 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49508 fi
49509@endif libiberty-linker-plugin
016a3251
DD
49510@if libiconv
49511 @if test -d $(HOST_SUBDIR)/libiconv; then \
49512 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
49513 mv prev-libiconv stage1-libiconv; : ; \
49514 fi
49515@endif libiconv
d545f33b 49516@if zlib
22121df0
L
49517 @if test -d $(HOST_SUBDIR)/zlib; then \
49518 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
49519 mv prev-zlib stage1-zlib; : ; \
0aed8855 49520 fi
d545f33b 49521@endif zlib
700d40ca 49522@if lto-plugin
22121df0
L
49523 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49524 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
49525 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49526 fi
49527@endif lto-plugin
22121df0
L
49528 @if test -d $(TARGET_SUBDIR); then \
49529 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
49530 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49531 fi
80911fe1 49532 rm -f stage_current
72b2455a 49533
973601e1 49534# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 49535# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49536# reconfigured either.
d545f33b
PB
49537.PHONY: stageprofile-bubble
49538stageprofile-bubble:: stage1-bubble
e360f423
PB
49539 @r=`${PWD_COMMAND}`; export r; \
49540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49541 if test -f stageprofile-lean || test -f stage1-lean ; then \
49542 echo Skipping rebuild of stageprofile; \
d545f33b 49543 else \
f70224b5
PB
49544 $(MAKE) stageprofile-start; \
49545 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 49546 fi
72b2455a 49547
d545f33b
PB
49548.PHONY: all-stageprofile clean-stageprofile
49549do-clean: clean-stageprofile
0df3d27f 49550
72b2455a
PB
49551# FIXME: Will not need to be conditional when toplevel bootstrap is the
49552# only possibility, but now it conflicts with no-bootstrap rules
49553@if gcc-bootstrap
49554
49555
49556
49557
0df3d27f 49558# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49559distclean-stage1:: distclean-stageprofile
0df3d27f 49560.PHONY: distclean-stageprofile
72b2455a 49561distclean-stageprofile::
0aed8855 49562 @: $(MAKE); $(stage)
e00a73e3 49563 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 49564 rm -rf stageprofile-*
dfdffa2c
PB
49565
49566
72b2455a 49567@endif gcc-bootstrap
dfdffa2c
PB
49568
49569
72b2455a 49570.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 49571
72b2455a 49572stagefeedback-start::
0aed8855 49573 @: $(MAKE); $(stage); \
22121df0 49574 echo stagefeedback > stage_current; \
b00612cc 49575 echo stagefeedback > stage_last; \
0aed8855 49576 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49577@if bfd
b00612cc
PB
49578 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
49579 mkdir stagefeedback-bfd; \
22121df0 49580 mv stagefeedback-bfd bfd; \
80911fe1 49581 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
49582@endif bfd
49583@if opcodes
b00612cc
PB
49584 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
49585 mkdir stagefeedback-opcodes; \
22121df0 49586 mv stagefeedback-opcodes opcodes; \
80911fe1 49587 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
49588@endif opcodes
49589@if binutils
b00612cc
PB
49590 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
49591 mkdir stagefeedback-binutils; \
22121df0 49592 mv stagefeedback-binutils binutils; \
80911fe1 49593 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 49594@endif binutils
201f096f 49595@if fixincludes
49596 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
49597 mkdir stagefeedback-fixincludes; \
22121df0 49598 mv stagefeedback-fixincludes fixincludes; \
201f096f 49599 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
49600@endif fixincludes
72b2455a 49601@if gas
b00612cc
PB
49602 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
49603 mkdir stagefeedback-gas; \
22121df0 49604 mv stagefeedback-gas gas; \
80911fe1 49605 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
49606@endif gas
49607@if gcc
b00612cc
PB
49608 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
49609 mkdir stagefeedback-gcc; \
22121df0 49610 mv stagefeedback-gcc gcc; \
80911fe1 49611 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 49612@endif gcc
4b900473
PB
49613@if gmp
49614 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
49615 mkdir stagefeedback-gmp; \
22121df0 49616 mv stagefeedback-gmp gmp; \
4b900473
PB
49617 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
49618@endif gmp
49619@if mpfr
49620 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
49621 mkdir stagefeedback-mpfr; \
22121df0 49622 mv stagefeedback-mpfr mpfr; \
4b900473
PB
49623 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
49624@endif mpfr
e8a5fa9c
RW
49625@if mpc
49626 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
49627 mkdir stagefeedback-mpc; \
22121df0 49628 mv stagefeedback-mpc mpc; \
e8a5fa9c
RW
49629 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
49630@endif mpc
7ec59b9e
L
49631@if isl
49632 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
49633 mkdir stagefeedback-isl; \
22121df0 49634 mv stagefeedback-isl isl; \
7ec59b9e
L
49635 mv stageprofile-isl prev-isl || test -f stageprofile-lean
49636@endif isl
1f53ca9a
AO
49637@if libelf
49638 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
49639 mkdir stagefeedback-libelf; \
22121df0 49640 mv stagefeedback-libelf libelf; \
1f53ca9a
AO
49641 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
49642@endif libelf
93f9b408
ILT
49643@if gold
49644 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
49645 mkdir stagefeedback-gold; \
22121df0 49646 mv stagefeedback-gold gold; \
93f9b408
ILT
49647 mv stageprofile-gold prev-gold || test -f stageprofile-lean
49648@endif gold
72b2455a 49649@if intl
b00612cc
PB
49650 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
49651 mkdir stagefeedback-intl; \
22121df0 49652 mv stagefeedback-intl intl; \
80911fe1 49653 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
49654@endif intl
49655@if ld
b00612cc
PB
49656 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
49657 mkdir stagefeedback-ld; \
22121df0 49658 mv stagefeedback-ld ld; \
80911fe1 49659 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 49660@endif ld
2bf680c4
ILT
49661@if libbacktrace
49662 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
49663 mkdir stagefeedback-libbacktrace; \
22121df0 49664 mv stagefeedback-libbacktrace libbacktrace; \
2bf680c4
ILT
49665 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
49666@endif libbacktrace
72b2455a 49667@if libcpp
b00612cc
PB
49668 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
49669 mkdir stagefeedback-libcpp; \
22121df0 49670 mv stagefeedback-libcpp libcpp; \
80911fe1 49671 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 49672@endif libcpp
be01d343
PB
49673@if libdecnumber
49674 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
49675 mkdir stagefeedback-libdecnumber; \
22121df0 49676 mv stagefeedback-libdecnumber libdecnumber; \
80911fe1 49677 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 49678@endif libdecnumber
72b2455a 49679@if libiberty
b00612cc
PB
49680 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
49681 mkdir stagefeedback-libiberty; \
22121df0 49682 mv stagefeedback-libiberty libiberty; \
80911fe1 49683 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 49684@endif libiberty
1b6c0831
L
49685@if libiberty-linker-plugin
49686 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
49687 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 49688 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49689 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
49690@endif libiberty-linker-plugin
016a3251
DD
49691@if libiconv
49692 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
49693 mkdir stagefeedback-libiconv; \
49694 mv stagefeedback-libiconv libiconv; \
49695 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
49696@endif libiconv
72b2455a 49697@if zlib
b00612cc
PB
49698 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
49699 mkdir stagefeedback-zlib; \
22121df0 49700 mv stagefeedback-zlib zlib; \
80911fe1 49701 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 49702@endif zlib
700d40ca
ILT
49703@if lto-plugin
49704 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
49705 mkdir stagefeedback-lto-plugin; \
22121df0 49706 mv stagefeedback-lto-plugin lto-plugin; \
700d40ca
ILT
49707 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
49708@endif lto-plugin
0aed8855
PB
49709 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
49710 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 49711 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49712 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 49713
80911fe1 49714stagefeedback-end::
72b2455a 49715@if bfd
22121df0
L
49716 @if test -d $(HOST_SUBDIR)/bfd; then \
49717 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
49718 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 49719 fi
72b2455a
PB
49720@endif bfd
49721@if opcodes
22121df0
L
49722 @if test -d $(HOST_SUBDIR)/opcodes; then \
49723 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
49724 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 49725 fi
72b2455a
PB
49726@endif opcodes
49727@if binutils
22121df0
L
49728 @if test -d $(HOST_SUBDIR)/binutils; then \
49729 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
49730 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 49731 fi
72b2455a 49732@endif binutils
201f096f 49733@if fixincludes
22121df0
L
49734 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49735 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
49736 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 49737 fi
49738@endif fixincludes
72b2455a 49739@if gas
22121df0
L
49740 @if test -d $(HOST_SUBDIR)/gas; then \
49741 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
49742 mv prev-gas stageprofile-gas; : ; \
0aed8855 49743 fi
72b2455a
PB
49744@endif gas
49745@if gcc
22121df0
L
49746 @if test -d $(HOST_SUBDIR)/gcc; then \
49747 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
49748 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 49749 fi
72b2455a 49750@endif gcc
4b900473 49751@if gmp
22121df0
L
49752 @if test -d $(HOST_SUBDIR)/gmp; then \
49753 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
49754 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
49755 fi
49756@endif gmp
49757@if mpfr
22121df0
L
49758 @if test -d $(HOST_SUBDIR)/mpfr; then \
49759 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
49760 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
49761 fi
49762@endif mpfr
e8a5fa9c 49763@if mpc
22121df0
L
49764 @if test -d $(HOST_SUBDIR)/mpc; then \
49765 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
49766 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
49767 fi
49768@endif mpc
7ec59b9e 49769@if isl
22121df0
L
49770 @if test -d $(HOST_SUBDIR)/isl; then \
49771 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
49772 mv prev-isl stageprofile-isl; : ; \
e28c595f 49773 fi
7ec59b9e 49774@endif isl
1f53ca9a 49775@if libelf
22121df0
L
49776 @if test -d $(HOST_SUBDIR)/libelf; then \
49777 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
49778 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
49779 fi
49780@endif libelf
93f9b408 49781@if gold
22121df0
L
49782 @if test -d $(HOST_SUBDIR)/gold; then \
49783 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
49784 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
49785 fi
49786@endif gold
72b2455a 49787@if intl
22121df0
L
49788 @if test -d $(HOST_SUBDIR)/intl; then \
49789 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
49790 mv prev-intl stageprofile-intl; : ; \
0aed8855 49791 fi
72b2455a
PB
49792@endif intl
49793@if ld
22121df0
L
49794 @if test -d $(HOST_SUBDIR)/ld; then \
49795 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
49796 mv prev-ld stageprofile-ld; : ; \
0aed8855 49797 fi
72b2455a 49798@endif ld
2bf680c4 49799@if libbacktrace
22121df0
L
49800 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49801 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
49802 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
49803 fi
49804@endif libbacktrace
72b2455a 49805@if libcpp
22121df0
L
49806 @if test -d $(HOST_SUBDIR)/libcpp; then \
49807 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
49808 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 49809 fi
72b2455a 49810@endif libcpp
be01d343 49811@if libdecnumber
22121df0
L
49812 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49813 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
49814 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 49815 fi
be01d343 49816@endif libdecnumber
72b2455a 49817@if libiberty
22121df0
L
49818 @if test -d $(HOST_SUBDIR)/libiberty; then \
49819 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
49820 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 49821 fi
72b2455a 49822@endif libiberty
1b6c0831 49823@if libiberty-linker-plugin
22121df0
L
49824 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49825 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
49826 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
49827 fi
49828@endif libiberty-linker-plugin
016a3251
DD
49829@if libiconv
49830 @if test -d $(HOST_SUBDIR)/libiconv; then \
49831 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
49832 mv prev-libiconv stageprofile-libiconv; : ; \
49833 fi
49834@endif libiconv
72b2455a 49835@if zlib
22121df0
L
49836 @if test -d $(HOST_SUBDIR)/zlib; then \
49837 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
49838 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 49839 fi
72b2455a 49840@endif zlib
700d40ca 49841@if lto-plugin
22121df0
L
49842 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49843 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
49844 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
49845 fi
49846@endif lto-plugin
22121df0
L
49847 @if test -d $(TARGET_SUBDIR); then \
49848 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
49849 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 49850 fi
80911fe1 49851 rm -f stage_current
dfdffa2c 49852
973601e1 49853# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 49854# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49855# reconfigured either.
72b2455a 49856.PHONY: stagefeedback-bubble
7d329e61 49857stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
49858 @r=`${PWD_COMMAND}`; export r; \
49859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49860 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
49861 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 49862 else \
f70224b5
PB
49863 $(MAKE) stagefeedback-start; \
49864 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 49865 fi
72b2455a 49866
0df3d27f 49867.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 49868do-clean: clean-stagefeedback
0df3d27f 49869
72b2455a
PB
49870# FIXME: Will not need to be conditional when toplevel bootstrap is the
49871# only possibility, but now it conflicts with no-bootstrap rules
49872@if gcc-bootstrap
656fdd47
PB
49873
49874
49875
80911fe1 49876.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
49877profiledbootstrap:
49878 echo stagefeedback > stage_final
49879 @r=`${PWD_COMMAND}`; export r; \
49880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49881 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 49882 @: $(MAKE); $(unstage)
be01d343
PB
49883 @r=`${PWD_COMMAND}`; export r; \
49884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49885 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 49886 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 49887
80911fe1
PB
49888profiledbootstrap-lean:
49889 echo stagefeedback > stage_final
49890 @r=`${PWD_COMMAND}`; export r; \
49891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49892 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
49893 @: $(MAKE); $(unstage)
49894 @r=`${PWD_COMMAND}`; export r; \
49895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49896 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
49897 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49898
656fdd47 49899
0df3d27f 49900# Rules to wipe a stage and all the following ones, also used for cleanstrap
7d329e61 49901distclean-stageprofile:: distclean-stagefeedback
0df3d27f 49902.PHONY: distclean-stagefeedback
656fdd47 49903distclean-stagefeedback::
0aed8855 49904 @: $(MAKE); $(stage)
e00a73e3 49905 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 49906 rm -rf stagefeedback-*
656fdd47
PB
49907
49908
72b2455a 49909@endif gcc-bootstrap
656fdd47
PB
49910
49911
49912
7d329e61
PB
49913stageprofile-end::
49914 $(MAKE) distclean-stagefeedback
656fdd47 49915
7d329e61 49916stagefeedback-start::
656fdd47
PB
49917 @r=`${PWD_COMMAND}`; export r; \
49918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 49919 for i in prev-*; do \
22121df0 49920 j=`echo $$i | sed s/^prev-//`; \
7d329e61 49921 cd $$r/$$i && \
22121df0
L
49922 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
49923 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 49924 done
b8908782 49925
0df3d27f 49926@if gcc-bootstrap
0df3d27f 49927do-distclean: distclean-stage1
c52c6897
PB
49928
49929# Provide a GCC build when we're building target libraries. This does
49930# not work as a dependency, just as the minimum necessary to avoid errors.
49931stage_last:
314b2e66
AS
49932 @r=`${PWD_COMMAND}`; export r; \
49933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 49934 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 49935
4f0ef2d8
CD
49936# Same as unstage, but not phony and defaulting to stage1-start. We place
49937# it in the dependency so that for example `make -j3 all-gcc' works.
49938stage_current:
49939 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
49940
c52c6897 49941.PHONY: restrap
266df637 49942restrap::
c52c6897 49943 @: $(MAKE); $(stage)
1b05fbbd 49944 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 49945restrap:: all
c380fdd8 49946@endif gcc-bootstrap
c52c6897 49947
ae831be5
NN
49948# --------------------------------------
49949# Dependencies between different modules
49950# --------------------------------------
252b5132 49951
9e6ce191 49952# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 49953@if gcc-bootstrap
e8a5fa9c
RW
49954configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
49955configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
49956configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
49957configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
49958configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
49959configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
49960configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
49961configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
49962configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
49963configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
49964configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
49965configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
49966configure-stage1-target-libmpx: maybe-all-stage1-gcc
49967configure-stage2-target-libmpx: maybe-all-stage2-gcc
49968configure-stage3-target-libmpx: maybe-all-stage3-gcc
49969configure-stage4-target-libmpx: maybe-all-stage4-gcc
49970configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
49971configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
49972configure-stage1-target-libvtv: maybe-all-stage1-gcc
49973configure-stage2-target-libvtv: maybe-all-stage2-gcc
49974configure-stage3-target-libvtv: maybe-all-stage3-gcc
49975configure-stage4-target-libvtv: maybe-all-stage4-gcc
49976configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
49977configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
522e3d71 49978configure-target-libcilkrts: stage_last
1b6c0831 49979configure-target-liboffloadmic: stage_last
c52c6897 49980configure-target-libssp: stage_last
c52c6897 49981configure-target-newlib: stage_last
6aa8ef82
DJ
49982configure-stage1-target-libgcc: maybe-all-stage1-gcc
49983configure-stage2-target-libgcc: maybe-all-stage2-gcc
49984configure-stage3-target-libgcc: maybe-all-stage3-gcc
49985configure-stage4-target-libgcc: maybe-all-stage4-gcc
49986configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
49987configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 49988configure-target-libbacktrace: stage_last
e552509b 49989configure-target-libquadmath: stage_last
c52c6897
PB
49990configure-target-libgfortran: stage_last
49991configure-target-libobjc: stage_last
e552509b 49992configure-target-libgo: stage_last
c52c6897
PB
49993configure-target-libtermcap: stage_last
49994configure-target-winsup: stage_last
49995configure-target-libgloss: stage_last
c52c6897
PB
49996configure-target-libffi: stage_last
49997configure-target-libjava: stage_last
49998configure-target-zlib: stage_last
49999configure-target-boehm-gc: stage_last
c52c6897
PB
50000configure-target-rda: stage_last
50001configure-target-libada: stage_last
911e63d0
JR
50002configure-stage1-target-libgomp: maybe-all-stage1-gcc
50003configure-stage2-target-libgomp: maybe-all-stage2-gcc
50004configure-stage3-target-libgomp: maybe-all-stage3-gcc
50005configure-stage4-target-libgomp: maybe-all-stage4-gcc
50006configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
50007configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
50008configure-target-libitm: stage_last
50009configure-target-libatomic: stage_last
c52c6897 50010@endif gcc-bootstrap
9e6ce191 50011
c52c6897 50012@if gcc-no-bootstrap
9e6ce191 50013configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 50014configure-target-libsanitizer: maybe-all-gcc
1b6c0831 50015configure-target-libmpx: maybe-all-gcc
95e43135 50016configure-target-libvtv: maybe-all-gcc
e78e02e6 50017configure-target-libcilkrts: maybe-all-gcc
1b6c0831 50018configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 50019configure-target-libssp: maybe-all-gcc
9e6ce191 50020configure-target-newlib: maybe-all-gcc
6aa8ef82 50021configure-target-libgcc: maybe-all-gcc
2bf680c4 50022configure-target-libbacktrace: maybe-all-gcc
e552509b 50023configure-target-libquadmath: maybe-all-gcc
9e6ce191 50024configure-target-libgfortran: maybe-all-gcc
9e6ce191 50025configure-target-libobjc: maybe-all-gcc
e552509b 50026configure-target-libgo: maybe-all-gcc
9e6ce191 50027configure-target-libtermcap: maybe-all-gcc
9e6ce191 50028configure-target-winsup: maybe-all-gcc
9e6ce191 50029configure-target-libgloss: maybe-all-gcc
9e6ce191 50030configure-target-libffi: maybe-all-gcc
9e6ce191 50031configure-target-libjava: maybe-all-gcc
9e6ce191 50032configure-target-zlib: maybe-all-gcc
9e6ce191 50033configure-target-boehm-gc: maybe-all-gcc
9e6ce191 50034configure-target-rda: maybe-all-gcc
9e6ce191 50035configure-target-libada: maybe-all-gcc
b3ded179 50036configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
50037configure-target-libitm: maybe-all-gcc
50038configure-target-libatomic: maybe-all-gcc
c52c6897 50039@endif gcc-no-bootstrap
b3ded179 50040
9e6ce191 50041
ae831be5
NN
50042# There are two types of dependencies here: 'hard' dependencies, where one
50043# module simply won't build without the other; and 'soft' dependencies, where
50044# if the depended-on module is missing, the depending module will do without
50045# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 50046# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
50047# it's safer to use a soft dependency.
50048
9e6ce191
PB
50049
50050
50051
50052
c60fe18b 50053
9e6ce191
PB
50054# With all the machinery above in place, it is pretty easy to generate
50055# dependencies. Host dependencies are a bit more complex because we have
50056# to check for bootstrap/prebootstrap dependencies. To resolve
50057# prebootstrap dependencies, prebootstrap modules are gathered in
50058# a hash table.
6a9cf61e
PB
50059all-build-bison: maybe-all-build-texinfo
50060all-build-flex: maybe-all-build-texinfo
9e6ce191 50061all-build-flex: maybe-all-build-bison
9e6ce191 50062all-build-flex: maybe-all-build-m4
6a9cf61e 50063all-build-libiberty: maybe-all-build-texinfo
9e6ce191 50064all-build-m4: maybe-all-build-texinfo
ee025550 50065all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 50066all-build-libcpp: maybe-all-build-libiberty
9e6ce191
PB
50067configure-gcc: maybe-configure-intl
50068
50069configure-stage1-gcc: maybe-configure-stage1-intl
50070configure-stage2-gcc: maybe-configure-stage2-intl
50071configure-stage3-gcc: maybe-configure-stage3-intl
50072configure-stage4-gcc: maybe-configure-stage4-intl
50073configure-stageprofile-gcc: maybe-configure-stageprofile-intl
50074configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8
L
50075configure-gcc: maybe-all-gmp
50076
50077configure-stage1-gcc: maybe-all-stage1-gmp
50078configure-stage2-gcc: maybe-all-stage2-gmp
50079configure-stage3-gcc: maybe-all-stage3-gmp
50080configure-stage4-gcc: maybe-all-stage4-gmp
50081configure-stageprofile-gcc: maybe-all-stageprofile-gmp
50082configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831
L
50083configure-gcc: maybe-all-mpfr
50084
50085configure-stage1-gcc: maybe-all-stage1-mpfr
50086configure-stage2-gcc: maybe-all-stage2-mpfr
50087configure-stage3-gcc: maybe-all-stage3-mpfr
50088configure-stage4-gcc: maybe-all-stage4-mpfr
50089configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
50090configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
50091configure-gcc: maybe-all-mpc
50092
50093configure-stage1-gcc: maybe-all-stage1-mpc
50094configure-stage2-gcc: maybe-all-stage2-mpc
50095configure-stage3-gcc: maybe-all-stage3-mpc
50096configure-stage4-gcc: maybe-all-stage4-mpc
50097configure-stageprofile-gcc: maybe-all-stageprofile-mpc
50098configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
50099configure-gcc: maybe-all-isl
50100
50101configure-stage1-gcc: maybe-all-stage1-isl
50102configure-stage2-gcc: maybe-all-stage2-isl
50103configure-stage3-gcc: maybe-all-stage3-isl
50104configure-stage4-gcc: maybe-all-stage4-isl
50105configure-stageprofile-gcc: maybe-all-stageprofile-isl
50106configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a
RW
50107configure-gcc: maybe-all-lto-plugin
50108
50109configure-stage1-gcc: maybe-all-stage1-lto-plugin
50110configure-stage2-gcc: maybe-all-stage2-lto-plugin
50111configure-stage3-gcc: maybe-all-stage3-lto-plugin
50112configure-stage4-gcc: maybe-all-stage4-lto-plugin
50113configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50114configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b
PB
50115configure-gcc: maybe-all-binutils
50116
50117configure-stage1-gcc: maybe-all-stage1-binutils
50118configure-stage2-gcc: maybe-all-stage2-binutils
50119configure-stage3-gcc: maybe-all-stage3-binutils
50120configure-stage4-gcc: maybe-all-stage4-binutils
50121configure-stageprofile-gcc: maybe-all-stageprofile-binutils
50122configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
50123configure-gcc: maybe-all-gas
50124
50125configure-stage1-gcc: maybe-all-stage1-gas
50126configure-stage2-gcc: maybe-all-stage2-gas
50127configure-stage3-gcc: maybe-all-stage3-gas
50128configure-stage4-gcc: maybe-all-stage4-gas
50129configure-stageprofile-gcc: maybe-all-stageprofile-gas
50130configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
50131configure-gcc: maybe-all-ld
50132
50133configure-stage1-gcc: maybe-all-stage1-ld
50134configure-stage2-gcc: maybe-all-stage2-ld
50135configure-stage3-gcc: maybe-all-stage3-ld
50136configure-stage4-gcc: maybe-all-stage4-ld
50137configure-stageprofile-gcc: maybe-all-stageprofile-ld
50138configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408
ILT
50139configure-gcc: maybe-all-gold
50140
50141configure-stage1-gcc: maybe-all-stage1-gold
50142configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 50143configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
50144configure-stage4-gcc: maybe-all-stage4-gold
50145configure-stageprofile-gcc: maybe-all-stageprofile-gold
50146configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480
AO
50147configure-gcc: maybe-all-libelf
50148
50149configure-stage1-gcc: maybe-all-stage1-libelf
50150configure-stage2-gcc: maybe-all-stage2-libelf
50151configure-stage3-gcc: maybe-all-stage3-libelf
50152configure-stage4-gcc: maybe-all-stage4-libelf
50153configure-stageprofile-gcc: maybe-all-stageprofile-libelf
50154configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251
DD
50155configure-gcc: maybe-all-libiconv
50156
50157configure-stage1-gcc: maybe-all-stage1-libiconv
50158configure-stage2-gcc: maybe-all-stage2-libiconv
50159configure-stage3-gcc: maybe-all-stage3-libiconv
50160configure-stage4-gcc: maybe-all-stage4-libiconv
50161configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
50162configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191
PB
50163all-gcc: all-libiberty
50164
50165all-stage1-gcc: all-stage1-libiberty
50166all-stage2-gcc: all-stage2-libiberty
50167all-stage3-gcc: all-stage3-libiberty
50168all-stage4-gcc: all-stage4-libiberty
50169all-stageprofile-gcc: all-stageprofile-libiberty
50170all-stagefeedback-gcc: all-stagefeedback-libiberty
50171all-gcc: maybe-all-intl
50172
50173all-stage1-gcc: maybe-all-stage1-intl
50174all-stage2-gcc: maybe-all-stage2-intl
50175all-stage3-gcc: maybe-all-stage3-intl
50176all-stage4-gcc: maybe-all-stage4-intl
50177all-stageprofile-gcc: maybe-all-stageprofile-intl
50178all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473
PB
50179all-gcc: maybe-all-mpfr
50180
50181all-stage1-gcc: maybe-all-stage1-mpfr
50182all-stage2-gcc: maybe-all-stage2-mpfr
50183all-stage3-gcc: maybe-all-stage3-mpfr
50184all-stage4-gcc: maybe-all-stage4-mpfr
50185all-stageprofile-gcc: maybe-all-stageprofile-mpfr
50186all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c
RW
50187all-gcc: maybe-all-mpc
50188
50189all-stage1-gcc: maybe-all-stage1-mpc
50190all-stage2-gcc: maybe-all-stage2-mpc
50191all-stage3-gcc: maybe-all-stage3-mpc
50192all-stage4-gcc: maybe-all-stage4-mpc
50193all-stageprofile-gcc: maybe-all-stageprofile-mpc
50194all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831
L
50195all-gcc: maybe-all-isl
50196
50197all-stage1-gcc: maybe-all-stage1-isl
50198all-stage2-gcc: maybe-all-stage2-isl
50199all-stage3-gcc: maybe-all-stage3-isl
50200all-stage4-gcc: maybe-all-stage4-isl
50201all-stageprofile-gcc: maybe-all-stageprofile-isl
50202all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a
PB
50203all-gcc: maybe-all-build-texinfo
50204
50205all-stage1-gcc: maybe-all-build-texinfo
50206all-stage2-gcc: maybe-all-build-texinfo
50207all-stage3-gcc: maybe-all-build-texinfo
50208all-stage4-gcc: maybe-all-build-texinfo
50209all-stageprofile-gcc: maybe-all-build-texinfo
50210all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a
PB
50211all-gcc: maybe-all-build-bison
50212
50213all-stage1-gcc: maybe-all-build-bison
50214all-stage2-gcc: maybe-all-build-bison
50215all-stage3-gcc: maybe-all-build-bison
50216all-stage4-gcc: maybe-all-build-bison
50217all-stageprofile-gcc: maybe-all-build-bison
50218all-stagefeedback-gcc: maybe-all-build-bison
72b2455a
PB
50219all-gcc: maybe-all-build-flex
50220
50221all-stage1-gcc: maybe-all-build-flex
50222all-stage2-gcc: maybe-all-build-flex
50223all-stage3-gcc: maybe-all-build-flex
50224all-stage4-gcc: maybe-all-build-flex
50225all-stageprofile-gcc: maybe-all-build-flex
50226all-stagefeedback-gcc: maybe-all-build-flex
ee025550
PB
50227all-gcc: maybe-all-build-libiberty
50228
50229all-stage1-gcc: maybe-all-build-libiberty
50230all-stage2-gcc: maybe-all-build-libiberty
50231all-stage3-gcc: maybe-all-build-libiberty
50232all-stage4-gcc: maybe-all-build-libiberty
50233all-stageprofile-gcc: maybe-all-build-libiberty
50234all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550
PB
50235all-gcc: maybe-all-build-fixincludes
50236
50237all-stage1-gcc: maybe-all-build-fixincludes
50238all-stage2-gcc: maybe-all-build-fixincludes
50239all-stage3-gcc: maybe-all-build-fixincludes
50240all-stage4-gcc: maybe-all-build-fixincludes
50241all-stageprofile-gcc: maybe-all-build-fixincludes
50242all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831
L
50243all-gcc: maybe-all-build-libcpp
50244
50245all-stage1-gcc: maybe-all-build-libcpp
50246all-stage2-gcc: maybe-all-build-libcpp
50247all-stage3-gcc: maybe-all-build-libcpp
50248all-stage4-gcc: maybe-all-build-libcpp
50249all-stageprofile-gcc: maybe-all-build-libcpp
50250all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191
PB
50251all-gcc: maybe-all-zlib
50252
50253all-stage1-gcc: maybe-all-stage1-zlib
50254all-stage2-gcc: maybe-all-stage2-zlib
50255all-stage3-gcc: maybe-all-stage3-zlib
50256all-stage4-gcc: maybe-all-stage4-zlib
50257all-stageprofile-gcc: maybe-all-stageprofile-zlib
50258all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b
L
50259all-gcc: all-libbacktrace
50260
50261all-stage1-gcc: all-stage1-libbacktrace
50262all-stage2-gcc: all-stage2-libbacktrace
50263all-stage3-gcc: all-stage3-libbacktrace
50264all-stage4-gcc: all-stage4-libbacktrace
50265all-stageprofile-gcc: all-stageprofile-libbacktrace
50266all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191
PB
50267all-gcc: all-libcpp
50268
50269all-stage1-gcc: all-stage1-libcpp
50270all-stage2-gcc: all-stage2-libcpp
50271all-stage3-gcc: all-stage3-libcpp
50272all-stage4-gcc: all-stage4-libcpp
50273all-stageprofile-gcc: all-stageprofile-libcpp
50274all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343
PB
50275all-gcc: all-libdecnumber
50276
50277all-stage1-gcc: all-stage1-libdecnumber
50278all-stage2-gcc: all-stage2-libdecnumber
50279all-stage3-gcc: all-stage3-libdecnumber
50280all-stage4-gcc: all-stage4-libdecnumber
50281all-stageprofile-gcc: all-stageprofile-libdecnumber
50282all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c
GK
50283all-gcc: maybe-all-libiberty
50284
50285all-stage1-gcc: maybe-all-stage1-libiberty
50286all-stage2-gcc: maybe-all-stage2-libiberty
50287all-stage3-gcc: maybe-all-stage3-libiberty
50288all-stage4-gcc: maybe-all-stage4-libiberty
50289all-stageprofile-gcc: maybe-all-stageprofile-libiberty
50290all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
50291all-gcc: maybe-all-fixincludes
201f096f 50292
50293all-stage1-gcc: maybe-all-stage1-fixincludes
50294all-stage2-gcc: maybe-all-stage2-fixincludes
50295all-stage3-gcc: maybe-all-stage3-fixincludes
50296all-stage4-gcc: maybe-all-stage4-fixincludes
50297all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
50298all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a
RW
50299all-gcc: maybe-all-lto-plugin
50300
50301all-stage1-gcc: maybe-all-stage1-lto-plugin
50302all-stage2-gcc: maybe-all-stage2-lto-plugin
50303all-stage3-gcc: maybe-all-stage3-lto-plugin
50304all-stage4-gcc: maybe-all-stage4-lto-plugin
50305all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50306all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251
DD
50307all-gcc: maybe-all-libiconv
50308
50309all-stage1-gcc: maybe-all-stage1-libiconv
50310all-stage2-gcc: maybe-all-stage2-libiconv
50311all-stage3-gcc: maybe-all-stage3-libiconv
50312all-stage4-gcc: maybe-all-stage4-libiconv
50313all-stageprofile-gcc: maybe-all-stageprofile-libiconv
50314all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d
RW
50315info-gcc: maybe-all-build-libiberty
50316
50317info-stage1-gcc: maybe-all-build-libiberty
50318info-stage2-gcc: maybe-all-build-libiberty
50319info-stage3-gcc: maybe-all-build-libiberty
50320info-stage4-gcc: maybe-all-build-libiberty
50321info-stageprofile-gcc: maybe-all-build-libiberty
50322info-stagefeedback-gcc: maybe-all-build-libiberty
50323dvi-gcc: maybe-all-build-libiberty
50324
50325dvi-stage1-gcc: maybe-all-build-libiberty
50326dvi-stage2-gcc: maybe-all-build-libiberty
50327dvi-stage3-gcc: maybe-all-build-libiberty
50328dvi-stage4-gcc: maybe-all-build-libiberty
50329dvi-stageprofile-gcc: maybe-all-build-libiberty
50330dvi-stagefeedback-gcc: maybe-all-build-libiberty
50331pdf-gcc: maybe-all-build-libiberty
50332
50333pdf-stage1-gcc: maybe-all-build-libiberty
50334pdf-stage2-gcc: maybe-all-build-libiberty
50335pdf-stage3-gcc: maybe-all-build-libiberty
50336pdf-stage4-gcc: maybe-all-build-libiberty
50337pdf-stageprofile-gcc: maybe-all-build-libiberty
50338pdf-stagefeedback-gcc: maybe-all-build-libiberty
50339html-gcc: maybe-all-build-libiberty
50340
50341html-stage1-gcc: maybe-all-build-libiberty
50342html-stage2-gcc: maybe-all-build-libiberty
50343html-stage3-gcc: maybe-all-build-libiberty
50344html-stage4-gcc: maybe-all-build-libiberty
50345html-stageprofile-gcc: maybe-all-build-libiberty
50346html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 50347install-gcc: maybe-install-fixincludes
8d8eef9a 50348install-gcc: maybe-install-lto-plugin
9b980aa1 50349install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 50350install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191
PB
50351configure-libcpp: configure-libiberty
50352
50353configure-stage1-libcpp: configure-stage1-libiberty
50354configure-stage2-libcpp: configure-stage2-libiberty
50355configure-stage3-libcpp: configure-stage3-libiberty
50356configure-stage4-libcpp: configure-stage4-libiberty
50357configure-stageprofile-libcpp: configure-stageprofile-libiberty
50358configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
50359configure-libcpp: maybe-configure-intl
50360
50361configure-stage1-libcpp: maybe-configure-stage1-intl
50362configure-stage2-libcpp: maybe-configure-stage2-intl
50363configure-stage3-libcpp: maybe-configure-stage3-intl
50364configure-stage4-libcpp: maybe-configure-stage4-intl
50365configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
50366configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251
DD
50367configure-libcpp: maybe-all-libiconv
50368
50369configure-stage1-libcpp: maybe-all-stage1-libiconv
50370configure-stage2-libcpp: maybe-all-stage2-libiconv
50371configure-stage3-libcpp: maybe-all-stage3-libiconv
50372configure-stage4-libcpp: maybe-all-stage4-libiconv
50373configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50374configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191
PB
50375all-libcpp: all-libiberty
50376
50377all-stage1-libcpp: all-stage1-libiberty
50378all-stage2-libcpp: all-stage2-libiberty
50379all-stage3-libcpp: all-stage3-libiberty
50380all-stage4-libcpp: all-stage4-libiberty
50381all-stageprofile-libcpp: all-stageprofile-libiberty
50382all-stagefeedback-libcpp: all-stagefeedback-libiberty
50383all-libcpp: maybe-all-intl
50384
50385all-stage1-libcpp: maybe-all-stage1-intl
50386all-stage2-libcpp: maybe-all-stage2-intl
50387all-stage3-libcpp: maybe-all-stage3-intl
50388all-stage4-libcpp: maybe-all-stage4-intl
50389all-stageprofile-libcpp: maybe-all-stageprofile-intl
50390all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251
DD
50391all-libcpp: maybe-all-libiconv
50392
50393all-stage1-libcpp: maybe-all-stage1-libiconv
50394all-stage2-libcpp: maybe-all-stage2-libiconv
50395all-stage3-libcpp: maybe-all-stage3-libiconv
50396all-stage4-libcpp: maybe-all-stage4-libiconv
50397all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50398all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 50399all-fixincludes: maybe-all-libiberty
201f096f 50400
50401all-stage1-fixincludes: maybe-all-stage1-libiberty
50402all-stage2-fixincludes: maybe-all-stage2-libiberty
50403all-stage3-fixincludes: maybe-all-stage3-libiberty
50404all-stage4-fixincludes: maybe-all-stage4-libiberty
50405all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
50406all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 50407all-gnattools: maybe-all-target-libada
50f80006 50408all-gnattools: maybe-all-target-libstdc++-v3
8d8eef9a
RW
50409all-lto-plugin: maybe-all-libiberty
50410
50411all-stage1-lto-plugin: maybe-all-stage1-libiberty
50412all-stage2-lto-plugin: maybe-all-stage2-libiberty
50413all-stage3-lto-plugin: maybe-all-stage3-libiberty
50414all-stage4-lto-plugin: maybe-all-stage4-libiberty
50415all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
50416all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831
L
50417all-lto-plugin: maybe-all-libiberty-linker-plugin
50418
50419all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
50420all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
50421all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
50422all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
50423all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
50424all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
50425configure-libcc1: maybe-configure-gcc
50426all-libcc1: maybe-all-gcc
50427all-gotools: maybe-all-target-libgo
28d9b232 50428all-utils: maybe-all-libiberty
016a3251
DD
50429configure-intl: maybe-all-libiconv
50430
50431configure-stage1-intl: maybe-all-stage1-libiconv
50432configure-stage2-intl: maybe-all-stage2-libiconv
50433configure-stage3-intl: maybe-all-stage3-libiconv
50434configure-stage4-intl: maybe-all-stage4-libiconv
50435configure-stageprofile-intl: maybe-all-stageprofile-libiconv
50436configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473
PB
50437configure-mpfr: maybe-all-gmp
50438
50439configure-stage1-mpfr: maybe-all-stage1-gmp
50440configure-stage2-mpfr: maybe-all-stage2-gmp
50441configure-stage3-mpfr: maybe-all-stage3-gmp
50442configure-stage4-mpfr: maybe-all-stage4-gmp
50443configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
50444configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c
RW
50445configure-mpc: maybe-all-mpfr
50446
50447configure-stage1-mpc: maybe-all-stage1-mpfr
50448configure-stage2-mpc: maybe-all-stage2-mpfr
50449configure-stage3-mpc: maybe-all-stage3-mpfr
50450configure-stage4-mpc: maybe-all-stage4-mpfr
50451configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
50452configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e
L
50453configure-isl: maybe-all-gmp
50454
50455configure-stage1-isl: maybe-all-stage1-gmp
50456configure-stage2-isl: maybe-all-stage2-gmp
50457configure-stage3-isl: maybe-all-stage3-gmp
50458configure-stage4-isl: maybe-all-stage4-gmp
50459configure-stageprofile-isl: maybe-all-stageprofile-gmp
50460configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251
DD
50461all-intl: maybe-all-libiconv
50462
50463all-stage1-intl: maybe-all-stage1-libiconv
50464all-stage2-intl: maybe-all-stage2-libiconv
50465all-stage3-intl: maybe-all-stage3-libiconv
50466all-stage4-intl: maybe-all-stage4-libiconv
50467all-stageprofile-intl: maybe-all-stageprofile-libiconv
50468all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
7b3200f9 50469configure-gdb: maybe-all-intl
9e6ce191 50470configure-gdb: maybe-configure-sim
31d99776 50471configure-gdb: maybe-all-bfd
dc448a7b 50472configure-gdb: maybe-all-libiconv
9e6ce191 50473all-gdb: maybe-all-libiberty
dc448a7b 50474all-gdb: maybe-all-libiconv
9e6ce191 50475all-gdb: maybe-all-opcodes
9e6ce191 50476all-gdb: maybe-all-readline
72b2455a 50477all-gdb: maybe-all-build-bison
9e6ce191 50478all-gdb: maybe-all-sim
5074315a 50479all-gdb: maybe-all-libdecnumber
dbbe5f95 50480all-gdb: maybe-all-libtermcap
9e6ce191
PB
50481configure-libgui: maybe-configure-tcl
50482configure-libgui: maybe-configure-tk
50483all-libgui: maybe-all-tcl
50484all-libgui: maybe-all-tk
50485all-libgui: maybe-all-itcl
b4a77b47 50486configure-bfd: configure-libiberty
9e6ce191
PB
50487
50488configure-stage1-bfd: configure-stage1-libiberty
50489configure-stage2-bfd: configure-stage2-libiberty
50490configure-stage3-bfd: configure-stage3-libiberty
50491configure-stage4-bfd: configure-stage4-libiberty
50492configure-stageprofile-bfd: configure-stageprofile-libiberty
50493configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23
DJ
50494configure-bfd: maybe-configure-intl
50495
50496configure-stage1-bfd: maybe-configure-stage1-intl
50497configure-stage2-bfd: maybe-configure-stage2-intl
50498configure-stage3-bfd: maybe-configure-stage3-intl
50499configure-stage4-bfd: maybe-configure-stage4-intl
50500configure-stageprofile-bfd: maybe-configure-stageprofile-intl
50501configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191
PB
50502all-bfd: maybe-all-libiberty
50503
50504all-stage1-bfd: maybe-all-stage1-libiberty
50505all-stage2-bfd: maybe-all-stage2-libiberty
50506all-stage3-bfd: maybe-all-stage3-libiberty
50507all-stage4-bfd: maybe-all-stage4-libiberty
50508all-stageprofile-bfd: maybe-all-stageprofile-libiberty
50509all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
50510all-bfd: maybe-all-intl
50511
50512all-stage1-bfd: maybe-all-stage1-intl
50513all-stage2-bfd: maybe-all-stage2-intl
50514all-stage3-bfd: maybe-all-stage3-intl
50515all-stage4-bfd: maybe-all-stage4-intl
50516all-stageprofile-bfd: maybe-all-stageprofile-intl
50517all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea
L
50518all-bfd: maybe-all-zlib
50519
50520all-stage1-bfd: maybe-all-stage1-zlib
50521all-stage2-bfd: maybe-all-stage2-zlib
50522all-stage3-bfd: maybe-all-stage3-zlib
50523all-stage4-bfd: maybe-all-stage4-zlib
50524all-stageprofile-bfd: maybe-all-stageprofile-zlib
50525all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67
AM
50526configure-opcodes: configure-libiberty
50527
50528configure-stage1-opcodes: configure-stage1-libiberty
50529configure-stage2-opcodes: configure-stage2-libiberty
66775d67 50530configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
50531configure-stage4-opcodes: configure-stage4-libiberty
50532configure-stageprofile-opcodes: configure-stageprofile-libiberty
50533configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
50534all-opcodes: maybe-all-libiberty
50535
50536all-stage1-opcodes: maybe-all-stage1-libiberty
50537all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 50538all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
50539all-stage4-opcodes: maybe-all-stage4-libiberty
50540all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50541all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23
DJ
50542configure-binutils: maybe-configure-intl
50543
50544configure-stage1-binutils: maybe-configure-stage1-intl
50545configure-stage2-binutils: maybe-configure-stage2-intl
50546configure-stage3-binutils: maybe-configure-stage3-intl
50547configure-stage4-binutils: maybe-configure-stage4-intl
50548configure-stageprofile-binutils: maybe-configure-stageprofile-intl
50549configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191
PB
50550all-binutils: maybe-all-libiberty
50551
50552all-stage1-binutils: maybe-all-stage1-libiberty
50553all-stage2-binutils: maybe-all-stage2-libiberty
50554all-stage3-binutils: maybe-all-stage3-libiberty
50555all-stage4-binutils: maybe-all-stage4-libiberty
50556all-stageprofile-binutils: maybe-all-stageprofile-libiberty
50557all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
50558all-binutils: maybe-all-opcodes
50559
50560all-stage1-binutils: maybe-all-stage1-opcodes
50561all-stage2-binutils: maybe-all-stage2-opcodes
50562all-stage3-binutils: maybe-all-stage3-opcodes
50563all-stage4-binutils: maybe-all-stage4-opcodes
50564all-stageprofile-binutils: maybe-all-stageprofile-opcodes
50565all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
50566all-binutils: maybe-all-bfd
50567
50568all-stage1-binutils: maybe-all-stage1-bfd
50569all-stage2-binutils: maybe-all-stage2-bfd
50570all-stage3-binutils: maybe-all-stage3-bfd
50571all-stage4-binutils: maybe-all-stage4-bfd
50572all-stageprofile-binutils: maybe-all-stageprofile-bfd
50573all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
50574all-binutils: maybe-all-build-flex
50575
50576all-stage1-binutils: maybe-all-build-flex
50577all-stage2-binutils: maybe-all-build-flex
50578all-stage3-binutils: maybe-all-build-flex
50579all-stage4-binutils: maybe-all-build-flex
50580all-stageprofile-binutils: maybe-all-build-flex
50581all-stagefeedback-binutils: maybe-all-build-flex
72b2455a
PB
50582all-binutils: maybe-all-build-bison
50583
50584all-stage1-binutils: maybe-all-build-bison
50585all-stage2-binutils: maybe-all-build-bison
50586all-stage3-binutils: maybe-all-build-bison
50587all-stage4-binutils: maybe-all-build-bison
50588all-stageprofile-binutils: maybe-all-build-bison
50589all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191
PB
50590all-binutils: maybe-all-intl
50591
50592all-stage1-binutils: maybe-all-stage1-intl
50593all-stage2-binutils: maybe-all-stage2-intl
50594all-stage3-binutils: maybe-all-stage3-intl
50595all-stage4-binutils: maybe-all-stage4-intl
50596all-stageprofile-binutils: maybe-all-stageprofile-intl
50597all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685
L
50598all-binutils: maybe-all-gas
50599
50600all-stage1-binutils: maybe-all-stage1-gas
50601all-stage2-binutils: maybe-all-stage2-gas
50602all-stage3-binutils: maybe-all-stage3-gas
50603all-stage4-binutils: maybe-all-stage4-gas
50604all-stageprofile-binutils: maybe-all-stageprofile-gas
50605all-stagefeedback-binutils: maybe-all-stagefeedback-gas
ae831be5 50606install-binutils: maybe-install-opcodes
9b980aa1 50607install-strip-binutils: maybe-install-strip-opcodes
cf662e21 50608install-opcodes: maybe-install-bfd
9b980aa1 50609install-strip-opcodes: maybe-install-strip-bfd
20e95c23
DJ
50610configure-gas: maybe-configure-intl
50611
50612configure-stage1-gas: maybe-configure-stage1-intl
50613configure-stage2-gas: maybe-configure-stage2-intl
50614configure-stage3-gas: maybe-configure-stage3-intl
50615configure-stage4-gas: maybe-configure-stage4-intl
50616configure-stageprofile-gas: maybe-configure-stageprofile-intl
50617configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191
PB
50618all-gas: maybe-all-libiberty
50619
50620all-stage1-gas: maybe-all-stage1-libiberty
50621all-stage2-gas: maybe-all-stage2-libiberty
50622all-stage3-gas: maybe-all-stage3-libiberty
50623all-stage4-gas: maybe-all-stage4-libiberty
50624all-stageprofile-gas: maybe-all-stageprofile-libiberty
50625all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
50626all-gas: maybe-all-opcodes
50627
50628all-stage1-gas: maybe-all-stage1-opcodes
50629all-stage2-gas: maybe-all-stage2-opcodes
50630all-stage3-gas: maybe-all-stage3-opcodes
50631all-stage4-gas: maybe-all-stage4-opcodes
50632all-stageprofile-gas: maybe-all-stageprofile-opcodes
50633all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
50634all-gas: maybe-all-bfd
50635
50636all-stage1-gas: maybe-all-stage1-bfd
50637all-stage2-gas: maybe-all-stage2-bfd
50638all-stage3-gas: maybe-all-stage3-bfd
50639all-stage4-gas: maybe-all-stage4-bfd
50640all-stageprofile-gas: maybe-all-stageprofile-bfd
50641all-stagefeedback-gas: maybe-all-stagefeedback-bfd
50642all-gas: maybe-all-intl
50643
50644all-stage1-gas: maybe-all-stage1-intl
50645all-stage2-gas: maybe-all-stage2-intl
50646all-stage3-gas: maybe-all-stage3-intl
50647all-stage4-gas: maybe-all-stage4-intl
50648all-stageprofile-gas: maybe-all-stageprofile-intl
50649all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 50650configure-gprof: maybe-configure-intl
9e6ce191
PB
50651all-gprof: maybe-all-libiberty
50652all-gprof: maybe-all-bfd
50653all-gprof: maybe-all-opcodes
50654all-gprof: maybe-all-intl
0140d685 50655all-gprof: maybe-all-gas
20e95c23
DJ
50656configure-ld: maybe-configure-intl
50657
50658configure-stage1-ld: maybe-configure-stage1-intl
50659configure-stage2-ld: maybe-configure-stage2-intl
50660configure-stage3-ld: maybe-configure-stage3-intl
50661configure-stage4-ld: maybe-configure-stage4-intl
50662configure-stageprofile-ld: maybe-configure-stageprofile-intl
50663configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191
PB
50664all-ld: maybe-all-libiberty
50665
50666all-stage1-ld: maybe-all-stage1-libiberty
50667all-stage2-ld: maybe-all-stage2-libiberty
50668all-stage3-ld: maybe-all-stage3-libiberty
50669all-stage4-ld: maybe-all-stage4-libiberty
50670all-stageprofile-ld: maybe-all-stageprofile-libiberty
50671all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
50672all-ld: maybe-all-bfd
50673
50674all-stage1-ld: maybe-all-stage1-bfd
50675all-stage2-ld: maybe-all-stage2-bfd
50676all-stage3-ld: maybe-all-stage3-bfd
50677all-stage4-ld: maybe-all-stage4-bfd
50678all-stageprofile-ld: maybe-all-stageprofile-bfd
50679all-stagefeedback-ld: maybe-all-stagefeedback-bfd
50680all-ld: maybe-all-opcodes
50681
50682all-stage1-ld: maybe-all-stage1-opcodes
50683all-stage2-ld: maybe-all-stage2-opcodes
50684all-stage3-ld: maybe-all-stage3-opcodes
50685all-stage4-ld: maybe-all-stage4-opcodes
50686all-stageprofile-ld: maybe-all-stageprofile-opcodes
50687all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
50688all-ld: maybe-all-build-bison
50689
50690all-stage1-ld: maybe-all-build-bison
50691all-stage2-ld: maybe-all-build-bison
50692all-stage3-ld: maybe-all-build-bison
50693all-stage4-ld: maybe-all-build-bison
50694all-stageprofile-ld: maybe-all-build-bison
50695all-stagefeedback-ld: maybe-all-build-bison
72b2455a
PB
50696all-ld: maybe-all-build-flex
50697
50698all-stage1-ld: maybe-all-build-flex
50699all-stage2-ld: maybe-all-build-flex
50700all-stage3-ld: maybe-all-build-flex
50701all-stage4-ld: maybe-all-build-flex
50702all-stageprofile-ld: maybe-all-build-flex
50703all-stagefeedback-ld: maybe-all-build-flex
9e6ce191
PB
50704all-ld: maybe-all-intl
50705
50706all-stage1-ld: maybe-all-stage1-intl
50707all-stage2-ld: maybe-all-stage2-intl
50708all-stage3-ld: maybe-all-stage3-intl
50709all-stage4-ld: maybe-all-stage4-intl
50710all-stageprofile-ld: maybe-all-stageprofile-intl
50711all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685
L
50712all-ld: maybe-all-gas
50713
50714all-stage1-ld: maybe-all-stage1-gas
50715all-stage2-ld: maybe-all-stage2-gas
50716all-stage3-ld: maybe-all-stage3-gas
50717all-stage4-ld: maybe-all-stage4-gas
50718all-stageprofile-ld: maybe-all-stageprofile-gas
50719all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403
YS
50720all-ld: maybe-all-binutils
50721
50722all-stage1-ld: maybe-all-stage1-binutils
50723all-stage2-ld: maybe-all-stage2-binutils
50724all-stage3-ld: maybe-all-stage3-binutils
50725all-stage4-ld: maybe-all-stage4-binutils
50726all-stageprofile-ld: maybe-all-stageprofile-binutils
50727all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 50728install-ld: maybe-install-gold
9b980aa1 50729install-strip-ld: maybe-install-strip-gold
93f9b408
ILT
50730configure-gold: maybe-configure-intl
50731
50732configure-stage1-gold: maybe-configure-stage1-intl
50733configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 50734configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
50735configure-stage4-gold: maybe-configure-stage4-intl
50736configure-stageprofile-gold: maybe-configure-stageprofile-intl
50737configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
50738all-gold: maybe-all-libiberty
50739
50740all-stage1-gold: maybe-all-stage1-libiberty
50741all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 50742all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
50743all-stage4-gold: maybe-all-stage4-libiberty
50744all-stageprofile-gold: maybe-all-stageprofile-libiberty
50745all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
50746all-gold: maybe-all-intl
50747
50748all-stage1-gold: maybe-all-stage1-intl
50749all-stage2-gold: maybe-all-stage2-intl
93f9b408 50750all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
50751all-stage4-gold: maybe-all-stage4-intl
50752all-stageprofile-gold: maybe-all-stageprofile-intl
50753all-stagefeedback-gold: maybe-all-stagefeedback-intl
50754all-gold: maybe-all-bfd
50755
50756all-stage1-gold: maybe-all-stage1-bfd
50757all-stage2-gold: maybe-all-stage2-bfd
93f9b408 50758all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
50759all-stage4-gold: maybe-all-stage4-bfd
50760all-stageprofile-gold: maybe-all-stageprofile-bfd
50761all-stagefeedback-gold: maybe-all-stagefeedback-bfd
50762all-gold: maybe-all-build-bison
50763
50764all-stage1-gold: maybe-all-build-bison
50765all-stage2-gold: maybe-all-build-bison
93f9b408 50766all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
50767all-stage4-gold: maybe-all-build-bison
50768all-stageprofile-gold: maybe-all-build-bison
50769all-stagefeedback-gold: maybe-all-build-bison
0140d685
L
50770all-gold: maybe-all-gas
50771
50772all-stage1-gold: maybe-all-stage1-gas
50773all-stage2-gold: maybe-all-stage2-gas
50774all-stage3-gold: maybe-all-stage3-gas
50775all-stage4-gold: maybe-all-stage4-gas
50776all-stageprofile-gold: maybe-all-stageprofile-gas
50777all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97
ILT
50778check-gold: maybe-all-binutils
50779
50780check-stage1-gold: maybe-all-stage1-binutils
50781check-stage2-gold: maybe-all-stage2-binutils
e5164e97 50782check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
50783check-stage4-gold: maybe-all-stage4-binutils
50784check-stageprofile-gold: maybe-all-stageprofile-binutils
50785check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca
ILT
50786check-gold: maybe-all-gas
50787
50788check-stage1-gold: maybe-all-stage1-gas
50789check-stage2-gold: maybe-all-stage2-gas
50790check-stage3-gold: maybe-all-stage3-gas
50791check-stage4-gold: maybe-all-stage4-gas
50792check-stageprofile-gold: maybe-all-stageprofile-gas
50793check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee
JJ
50794configure-opcodes: maybe-configure-intl
50795
50796configure-stage1-opcodes: maybe-configure-stage1-intl
50797configure-stage2-opcodes: maybe-configure-stage2-intl
50798configure-stage3-opcodes: maybe-configure-stage3-intl
50799configure-stage4-opcodes: maybe-configure-stage4-intl
50800configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
50801configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191
PB
50802all-opcodes: maybe-all-bfd
50803
50804all-stage1-opcodes: maybe-all-stage1-bfd
50805all-stage2-opcodes: maybe-all-stage2-bfd
50806all-stage3-opcodes: maybe-all-stage3-bfd
50807all-stage4-opcodes: maybe-all-stage4-bfd
50808all-stageprofile-opcodes: maybe-all-stageprofile-bfd
50809all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
50810all-opcodes: maybe-all-libiberty
50811
50812all-stage1-opcodes: maybe-all-stage1-libiberty
50813all-stage2-opcodes: maybe-all-stage2-libiberty
50814all-stage3-opcodes: maybe-all-stage3-libiberty
50815all-stage4-opcodes: maybe-all-stage4-libiberty
50816all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50817all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee
JJ
50818all-opcodes: maybe-all-intl
50819
50820all-stage1-opcodes: maybe-all-stage1-intl
50821all-stage2-opcodes: maybe-all-stage2-intl
50822all-stage3-opcodes: maybe-all-stage3-intl
50823all-stage4-opcodes: maybe-all-stage4-intl
50824all-stageprofile-opcodes: maybe-all-stageprofile-intl
50825all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
50826all-dejagnu: maybe-all-tcl
50827all-dejagnu: maybe-all-expect
50828all-dejagnu: maybe-all-tk
50829configure-expect: maybe-configure-tcl
50830configure-expect: maybe-configure-tk
50831all-expect: maybe-all-tcl
50832all-expect: maybe-all-tk
50833configure-itcl: maybe-configure-tcl
50834configure-itcl: maybe-configure-tk
50835all-itcl: maybe-all-tcl
50836all-itcl: maybe-all-tk
ae831be5 50837install-itcl: maybe-install-tcl
9b980aa1 50838install-strip-itcl: maybe-install-strip-tcl
b4a77b47 50839configure-tk: maybe-configure-tcl
ae831be5 50840all-tk: maybe-all-tcl
9e6ce191
PB
50841all-sid: maybe-all-libiberty
50842all-sid: maybe-all-bfd
50843all-sid: maybe-all-opcodes
50844all-sid: maybe-all-tcl
50845all-sid: maybe-all-tk
50846install-sid: maybe-install-tcl
9b980aa1 50847install-strip-sid: maybe-install-strip-tcl
9e6ce191 50848install-sid: maybe-install-tk
9b980aa1 50849install-strip-sid: maybe-install-strip-tk
20e95c23
DJ
50850configure-sim: maybe-configure-intl
50851all-sim: maybe-all-intl
9e6ce191
PB
50852all-sim: maybe-all-libiberty
50853all-sim: maybe-all-bfd
50854all-sim: maybe-all-opcodes
50855all-sim: maybe-all-readline
50856all-sim: maybe-configure-gdb
50857all-fastjar: maybe-all-zlib
72b2455a 50858all-fastjar: maybe-all-build-texinfo
9e6ce191 50859all-fastjar: maybe-all-libiberty
9e6ce191 50860all-bison: maybe-all-intl
72b2455a 50861all-bison: maybe-all-build-texinfo
72b2455a 50862all-flex: maybe-all-build-bison
9e6ce191
PB
50863all-flex: maybe-all-intl
50864all-flex: maybe-all-m4
72b2455a 50865all-flex: maybe-all-build-texinfo
9e6ce191 50866all-m4: maybe-all-intl
72b2455a 50867all-m4: maybe-all-build-texinfo
f7c83eac 50868configure-target-boehm-gc: maybe-all-target-libstdc++-v3
b4a77b47 50869configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 50870all-target-fastjar: maybe-all-target-zlib
e552509b
ILT
50871configure-target-libgo: maybe-configure-target-libffi
50872configure-target-libgo: maybe-all-target-libstdc++-v3
8e71395b 50873all-target-libgo: maybe-all-target-libbacktrace
e552509b 50874all-target-libgo: maybe-all-target-libffi
9417cd2f 50875all-target-libgo: maybe-all-target-libatomic
9e6ce191
PB
50876configure-target-libjava: maybe-configure-target-zlib
50877configure-target-libjava: maybe-configure-target-boehm-gc
9e6ce191
PB
50878configure-target-libjava: maybe-configure-target-libffi
50879all-target-libjava: maybe-all-fastjar
50880all-target-libjava: maybe-all-target-zlib
50881all-target-libjava: maybe-all-target-boehm-gc
9e6ce191 50882all-target-libjava: maybe-all-target-libffi
4f0ef2d8 50883configure-target-libobjc: maybe-configure-target-boehm-gc
4f0ef2d8 50884all-target-libobjc: maybe-all-target-boehm-gc
cff87f51 50885configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50886
50887configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50888configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50889configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50890configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50891configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50892configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50893configure-target-liboffloadmic: maybe-configure-target-libgomp
5286fdef 50894configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
50895
50896configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
50897configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
50898configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
50899configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
50900configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
50901configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135
JBG
50902configure-target-libvtv: maybe-all-target-libstdc++-v3
50903
50904configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
50905configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
50906configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
50907configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
50908configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
50909configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0
JR
50910all-target-libstdc++-v3: maybe-configure-target-libgomp
50911
50912all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50913all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50914all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50915all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50916all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50917all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50918all-target-liboffloadmic: maybe-all-target-libgomp
9417cd2f
JBG
50919install-target-libgo: maybe-install-target-libatomic
50920install-target-libgfortran: maybe-install-target-libquadmath
50921install-target-libgfortran: maybe-install-target-libgcc
3dae1673 50922install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 50923install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
50924install-target-libvtv: maybe-install-target-libstdc++-v3
50925install-target-libvtv: maybe-install-target-libgcc
522e3d71 50926install-target-libcilkrts: maybe-install-target-libstdc++-v3
50927install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
50928install-target-liboffloadmic: maybe-install-target-libstdc++-v3
50929install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
50930install-target-libjava: maybe-install-target-libgcc
50931install-target-libitm: maybe-install-target-libgcc
50932install-target-libobjc: maybe-install-target-libgcc
50933install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 50934all-target-libgloss: maybe-all-target-newlib
9e6ce191 50935all-target-winsup: maybe-all-target-libtermcap
c1102ce7
RW
50936configure-target-newlib: maybe-all-binutils
50937configure-target-newlib: maybe-all-ld
e552509b 50938configure-target-libgfortran: maybe-all-target-libquadmath
68996839 50939configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
50940
50941
6aa8ef82
DJ
50942# Dependencies for target modules on other target modules are
50943# described by lang_env_dependencies; the defaults apply to anything
50944# not mentioned there.
50945
50946
50947@if gcc-bootstrap
e8a5fa9c
RW
50948configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
50949configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
50950configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
50951configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
50952configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
50953configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
50954configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
50955configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
50956configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
50957configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
50958configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
50959configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
50960configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
50961configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
50962configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
50963configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
50964configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
50965configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
50966configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
50967configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
50968configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
50969configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
50970configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
50971configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
50972configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
50973configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
50974configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
50975configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
50976configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
50977configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
50978@endif gcc-bootstrap
50979
50980@if gcc-no-bootstrap
50981configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 50982configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 50983configure-target-libmpx: maybe-all-target-libgcc
95e43135 50984configure-target-libvtv: maybe-all-target-libgcc
522e3d71 50985configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 50986configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 50987configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 50988configure-target-newlib: maybe-all-target-libgcc
2bf680c4 50989configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 50990configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
50991configure-target-libgfortran: maybe-all-target-libgcc
50992configure-target-libobjc: maybe-all-target-libgcc
e552509b 50993configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
50994configure-target-libtermcap: maybe-all-target-libgcc
50995configure-target-winsup: maybe-all-target-libgcc
50996configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82
DJ
50997configure-target-libffi: maybe-all-target-libgcc
50998configure-target-libjava: maybe-all-target-libgcc
50999configure-target-zlib: maybe-all-target-libgcc
51000configure-target-boehm-gc: maybe-all-target-libgcc
6aa8ef82
DJ
51001configure-target-rda: maybe-all-target-libgcc
51002configure-target-libada: maybe-all-target-libgcc
51003configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
51004configure-target-libitm: maybe-all-target-libgcc
51005configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
51006@endif gcc-no-bootstrap
51007
51008
51009configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
51010
5286fdef
L
51011configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
51012
1b6c0831
L
51013configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
51014
95e43135
JBG
51015configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
51016
e78e02e6 51017configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
51018configure-target-libcilkrts: maybe-all-target-libstdc++-v3
51019
1b6c0831
L
51020configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
51021configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
51022
6aa8ef82
DJ
51023configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
51024
51025
51026
2bf680c4
ILT
51027configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
51028
e552509b
ILT
51029configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
51030
6aa8ef82
DJ
51031configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
51032
51033configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
51034
e552509b
ILT
51035configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
51036
6aa8ef82
DJ
51037configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
51038
51039configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
51040
51041
6aa8ef82 51042configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 51043configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82
DJ
51044
51045configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
51046configure-target-libjava: maybe-all-target-libstdc++-v3
51047
51048configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
51049
51050configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
51051
6aa8ef82
DJ
51052configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
51053
51054configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
51055
51056configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
51057
7ec59b9e
L
51058configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
51059configure-target-libitm: maybe-all-target-libstdc++-v3
51060
51061configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
51062
6aa8ef82 51063
907be67c 51064CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 51065GDB_TK = @GDB_TK@
907be67c
DJ
51066INSTALL_GDB_TK = @INSTALL_GDB_TK@
51067configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 51068all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 51069install-gdb: $(INSTALL_GDB_TK)
907a7241 51070
a2cc058a
NN
51071# Serialization dependencies. Host configures don't work well in parallel to
51072# each other, due to contention over config.cache. Target configures and
51073# build configures are similar.
51074@serialization_dependencies@
51075
15723a45
NN
51076# --------------------------------
51077# Regenerating top level configury
51078# --------------------------------
252b5132 51079
14a2a2f1 51080# Rebuilding Makefile.in, using autogen.
43be203f 51081AUTOGEN = autogen
6b784d9f 51082$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 51083 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 51084
a0da8069 51085# Rebuilding Makefile.
43be203f
AO
51086Makefile: $(srcdir)/Makefile.in config.status
51087 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
51088
479759c8 51089config.status: configure
10ecffb9 51090 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 51091
a0da8069 51092# Rebuilding configure.
43be203f 51093AUTOCONF = autoconf
da888c87
PB
51094$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
51095 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
43be203f 51096 cd $(srcdir) && $(AUTOCONF)
252b5132 51097
3728fade
NN
51098# ------------------------------
51099# Special directives to GNU Make
51100# ------------------------------
51101
3728fade
NN
51102# Don't pass command-line variables to submakes.
51103.NOEXPORT:
51104MAKEOVERRIDES=
51105
252b5132 51106# end of Makefile.in
This page took 4.917444 seconds and 4 git commands to generate.