.cfi_remember_state/.cfi_restore_state documentation
[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
0aed8855 2320 -rm -f maybedep.tmp serdep.tmp
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
2332 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
18fa8f9c 2333 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2334
4fa63067
NN
2335local-maintainer-clean:
2336 @echo "This command is intended for maintainers to use;"
2337 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2338
4fa63067
NN
2339clean: do-clean local-clean
2340mostlyclean: do-mostlyclean local-clean
2341distclean: do-distclean local-clean local-distclean
2342maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2343maintainer-clean: local-distclean
2344realclean: maintainer-clean
2a4cbe27 2345
4fa63067 2346# Check target.
2a4cbe27 2347
4fa63067
NN
2348.PHONY: check do-check
2349check: do-check
2a4cbe27 2350
4fa63067 2351# Only include modules actually being configured and built.
f70224b5
PB
2352.PHONY: check-host
2353check-host: \
4fa63067
NN
2354 maybe-check-bfd \
2355 maybe-check-opcodes \
2356 maybe-check-binutils \
2357 maybe-check-bison \
f9806fa5 2358 maybe-check-cgen \
4fa63067 2359 maybe-check-dejagnu \
4fa63067
NN
2360 maybe-check-etc \
2361 maybe-check-fastjar \
d3ed111c 2362 maybe-check-fixincludes \
4fa63067
NN
2363 maybe-check-flex \
2364 maybe-check-gas \
b813574b 2365 maybe-check-gcc \
4b900473
PB
2366 maybe-check-gmp \
2367 maybe-check-mpfr \
e8a5fa9c 2368 maybe-check-mpc \
7ec59b9e 2369 maybe-check-isl \
1f53ca9a 2370 maybe-check-libelf \
93f9b408 2371 maybe-check-gold \
4fa63067 2372 maybe-check-gprof \
4fa63067
NN
2373 maybe-check-intl \
2374 maybe-check-tcl \
2375 maybe-check-itcl \
2376 maybe-check-ld \
2bf680c4 2377 maybe-check-libbacktrace \
04cf1b77 2378 maybe-check-libcpp \
be01d343 2379 maybe-check-libdecnumber \
4fa63067
NN
2380 maybe-check-libgui \
2381 maybe-check-libiberty \
1b6c0831 2382 maybe-check-libiberty-linker-plugin \
dc448a7b 2383 maybe-check-libiconv \
4fa63067 2384 maybe-check-m4 \
4fa63067 2385 maybe-check-readline \
4fa63067
NN
2386 maybe-check-sid \
2387 maybe-check-sim \
4fa63067 2388 maybe-check-texinfo \
4fa63067
NN
2389 maybe-check-zlib \
2390 maybe-check-gdb \
2391 maybe-check-expect \
2392 maybe-check-guile \
2393 maybe-check-tk \
4fa63067
NN
2394 maybe-check-libtermcap \
2395 maybe-check-utils \
700d40ca 2396 maybe-check-gnattools \
1b6c0831
L
2397 maybe-check-lto-plugin \
2398 maybe-check-libcc1 \
2399 maybe-check-gotools
f70224b5
PB
2400
2401.PHONY: check-target
2402check-target: \
4fa63067 2403 maybe-check-target-libstdc++-v3 \
5286fdef 2404 maybe-check-target-libsanitizer \
1b6c0831 2405 maybe-check-target-libmpx \
95e43135 2406 maybe-check-target-libvtv \
e78e02e6 2407 maybe-check-target-libcilkrts \
1b6c0831 2408 maybe-check-target-liboffloadmic \
064d0a7c 2409 maybe-check-target-libssp \
4fa63067 2410 maybe-check-target-newlib \
6aa8ef82 2411 maybe-check-target-libgcc \
2bf680c4 2412 maybe-check-target-libbacktrace \
e552509b 2413 maybe-check-target-libquadmath \
4b1cb4fe 2414 maybe-check-target-libgfortran \
4fa63067 2415 maybe-check-target-libobjc \
e552509b 2416 maybe-check-target-libgo \
4fa63067
NN
2417 maybe-check-target-libtermcap \
2418 maybe-check-target-winsup \
2419 maybe-check-target-libgloss \
4fa63067
NN
2420 maybe-check-target-libffi \
2421 maybe-check-target-libjava \
2422 maybe-check-target-zlib \
2423 maybe-check-target-boehm-gc \
4fa63067 2424 maybe-check-target-rda \
b3ded179 2425 maybe-check-target-libada \
7ec59b9e
L
2426 maybe-check-target-libgomp \
2427 maybe-check-target-libitm \
2428 maybe-check-target-libatomic
f70224b5
PB
2429
2430do-check:
0aed8855 2431 @: $(MAKE); $(unstage)
e360f423
PB
2432 @r=`${PWD_COMMAND}`; export r; \
2433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2434 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2435
4fa63067 2436# Automated reporting of test results.
2a4cbe27 2437
4fa63067
NN
2438warning.log: build.log
2439 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2440
4fa63067
NN
2441mail-report.log:
2442 if test x'$(BOOT_CFLAGS)' != x''; then \
2443 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2444 fi; \
2445 $(srcdir)/contrib/test_summary -t >$@
2446 chmod +x $@
2447 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2448
4fa63067
NN
2449mail-report-with-warnings.log: warning.log
2450 if test x'$(BOOT_CFLAGS)' != x''; then \
2451 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2452 fi; \
2453 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2454 chmod +x $@
2455 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2456
1b6c0831
L
2457# Local Vim config
2458
2459$(srcdir)/.local.vimrc:
22121df0 2460 $(LN_S) contrib/vimrc $@
1b6c0831
L
2461
2462$(srcdir)/.lvimrc:
22121df0 2463 $(LN_S) contrib/vimrc $@
1b6c0831
L
2464
2465vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2466
2467.PHONY: vimrc
2468
4849dfd8
NC
2469# clang-format config
2470
2471$(srcdir)/.clang-format:
2472 $(LN_S) contrib/clang-format $@
2473
2474clang-format: $(srcdir)/.clang-format
2475
2476.PHONY: clang-format
2477
4fa63067 2478# Installation targets.
2a4cbe27 2479
4fa63067 2480.PHONY: install uninstall
f70224b5 2481install:
0aed8855 2482 @: $(MAKE); $(unstage)
e360f423
PB
2483 @r=`${PWD_COMMAND}`; export r; \
2484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2485 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2486
4fa63067
NN
2487.PHONY: install-host-nogcc
2488install-host-nogcc: \
4fa63067
NN
2489 maybe-install-bfd \
2490 maybe-install-opcodes \
2491 maybe-install-binutils \
2492 maybe-install-bison \
f9806fa5 2493 maybe-install-cgen \
4fa63067 2494 maybe-install-dejagnu \
4fa63067
NN
2495 maybe-install-etc \
2496 maybe-install-fastjar \
d3ed111c 2497 maybe-install-fixincludes \
4fa63067
NN
2498 maybe-install-flex \
2499 maybe-install-gas \
4b900473
PB
2500 maybe-install-gmp \
2501 maybe-install-mpfr \
e8a5fa9c 2502 maybe-install-mpc \
7ec59b9e 2503 maybe-install-isl \
1f53ca9a 2504 maybe-install-libelf \
93f9b408 2505 maybe-install-gold \
4fa63067 2506 maybe-install-gprof \
4fa63067
NN
2507 maybe-install-intl \
2508 maybe-install-tcl \
2509 maybe-install-itcl \
2510 maybe-install-ld \
2bf680c4 2511 maybe-install-libbacktrace \
04cf1b77 2512 maybe-install-libcpp \
be01d343 2513 maybe-install-libdecnumber \
4fa63067
NN
2514 maybe-install-libgui \
2515 maybe-install-libiberty \
1b6c0831 2516 maybe-install-libiberty-linker-plugin \
dc448a7b 2517 maybe-install-libiconv \
4fa63067 2518 maybe-install-m4 \
4fa63067 2519 maybe-install-readline \
4fa63067
NN
2520 maybe-install-sid \
2521 maybe-install-sim \
4fa63067 2522 maybe-install-texinfo \
4fa63067
NN
2523 maybe-install-zlib \
2524 maybe-install-gdb \
2525 maybe-install-expect \
2526 maybe-install-guile \
2527 maybe-install-tk \
4fa63067 2528 maybe-install-libtermcap \
b00612cc 2529 maybe-install-utils \
700d40ca 2530 maybe-install-gnattools \
1b6c0831
L
2531 maybe-install-lto-plugin \
2532 maybe-install-libcc1 \
2533 maybe-install-gotools
2a4cbe27 2534
4fa63067 2535.PHONY: install-host
b813574b 2536install-host: \
4fa63067
NN
2537 maybe-install-bfd \
2538 maybe-install-opcodes \
2539 maybe-install-binutils \
2540 maybe-install-bison \
f9806fa5 2541 maybe-install-cgen \
4fa63067 2542 maybe-install-dejagnu \
4fa63067
NN
2543 maybe-install-etc \
2544 maybe-install-fastjar \
d3ed111c 2545 maybe-install-fixincludes \
4fa63067
NN
2546 maybe-install-flex \
2547 maybe-install-gas \
b813574b 2548 maybe-install-gcc \
4b900473
PB
2549 maybe-install-gmp \
2550 maybe-install-mpfr \
e8a5fa9c 2551 maybe-install-mpc \
7ec59b9e 2552 maybe-install-isl \
1f53ca9a 2553 maybe-install-libelf \
93f9b408 2554 maybe-install-gold \
4fa63067 2555 maybe-install-gprof \
4fa63067
NN
2556 maybe-install-intl \
2557 maybe-install-tcl \
2558 maybe-install-itcl \
2559 maybe-install-ld \
2bf680c4 2560 maybe-install-libbacktrace \
04cf1b77 2561 maybe-install-libcpp \
be01d343 2562 maybe-install-libdecnumber \
4fa63067
NN
2563 maybe-install-libgui \
2564 maybe-install-libiberty \
1b6c0831 2565 maybe-install-libiberty-linker-plugin \
dc448a7b 2566 maybe-install-libiconv \
4fa63067 2567 maybe-install-m4 \
4fa63067 2568 maybe-install-readline \
4fa63067
NN
2569 maybe-install-sid \
2570 maybe-install-sim \
4fa63067 2571 maybe-install-texinfo \
4fa63067
NN
2572 maybe-install-zlib \
2573 maybe-install-gdb \
2574 maybe-install-expect \
2575 maybe-install-guile \
2576 maybe-install-tk \
4fa63067 2577 maybe-install-libtermcap \
b00612cc 2578 maybe-install-utils \
700d40ca 2579 maybe-install-gnattools \
1b6c0831
L
2580 maybe-install-lto-plugin \
2581 maybe-install-libcc1 \
2582 maybe-install-gotools
2a4cbe27 2583
4fa63067
NN
2584.PHONY: install-target
2585install-target: \
2586 maybe-install-target-libstdc++-v3 \
5286fdef 2587 maybe-install-target-libsanitizer \
1b6c0831 2588 maybe-install-target-libmpx \
95e43135 2589 maybe-install-target-libvtv \
e78e02e6 2590 maybe-install-target-libcilkrts \
1b6c0831 2591 maybe-install-target-liboffloadmic \
064d0a7c 2592 maybe-install-target-libssp \
4fa63067 2593 maybe-install-target-newlib \
6aa8ef82 2594 maybe-install-target-libgcc \
2bf680c4 2595 maybe-install-target-libbacktrace \
e552509b 2596 maybe-install-target-libquadmath \
4b1cb4fe 2597 maybe-install-target-libgfortran \
4fa63067 2598 maybe-install-target-libobjc \
e552509b 2599 maybe-install-target-libgo \
4fa63067
NN
2600 maybe-install-target-libtermcap \
2601 maybe-install-target-winsup \
2602 maybe-install-target-libgloss \
4fa63067
NN
2603 maybe-install-target-libffi \
2604 maybe-install-target-libjava \
2605 maybe-install-target-zlib \
2606 maybe-install-target-boehm-gc \
4fa63067 2607 maybe-install-target-rda \
b3ded179 2608 maybe-install-target-libada \
7ec59b9e
L
2609 maybe-install-target-libgomp \
2610 maybe-install-target-libitm \
2611 maybe-install-target-libatomic
2a4cbe27 2612
4fa63067
NN
2613uninstall:
2614 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2615
4fa63067
NN
2616.PHONY: install.all
2617install.all: install-no-fixedincludes
22121df0
L
2618 @if [ -f ./gcc/Makefile ]; then \
2619 r=`${PWD_COMMAND}`; export r; \
0aed8855 2620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2621 $(HOST_EXPORTS) \
4fa63067 2622 (cd ./gcc && \
22121df0 2623 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2624 else \
22121df0 2625 true; \
4fa63067 2626 fi
2a4cbe27 2627
7ec59b9e
L
2628# install-no-fixedincludes is used to allow the elaboration of binary packages
2629# suitable for distribution, where we cannot include the fixed system header
2630# files.
4fa63067
NN
2631.PHONY: install-no-fixedincludes
2632install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2633 install-target gcc-install-no-fixedincludes
2a4cbe27 2634
9b980aa1
RW
2635.PHONY: install-strip
2636install-strip:
2637 @: $(MAKE); $(unstage)
2638 @r=`${PWD_COMMAND}`; export r; \
2639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2640 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2641
2642.PHONY: install-strip-host
2643install-strip-host: \
9b980aa1
RW
2644 maybe-install-strip-bfd \
2645 maybe-install-strip-opcodes \
2646 maybe-install-strip-binutils \
2647 maybe-install-strip-bison \
9b980aa1
RW
2648 maybe-install-strip-cgen \
2649 maybe-install-strip-dejagnu \
9b980aa1
RW
2650 maybe-install-strip-etc \
2651 maybe-install-strip-fastjar \
9b980aa1
RW
2652 maybe-install-strip-fixincludes \
2653 maybe-install-strip-flex \
2654 maybe-install-strip-gas \
2655 maybe-install-strip-gcc \
9b980aa1
RW
2656 maybe-install-strip-gmp \
2657 maybe-install-strip-mpfr \
2658 maybe-install-strip-mpc \
7ec59b9e 2659 maybe-install-strip-isl \
9b980aa1 2660 maybe-install-strip-libelf \
9b980aa1
RW
2661 maybe-install-strip-gold \
2662 maybe-install-strip-gprof \
9b980aa1
RW
2663 maybe-install-strip-intl \
2664 maybe-install-strip-tcl \
2665 maybe-install-strip-itcl \
2666 maybe-install-strip-ld \
2bf680c4 2667 maybe-install-strip-libbacktrace \
9b980aa1
RW
2668 maybe-install-strip-libcpp \
2669 maybe-install-strip-libdecnumber \
2670 maybe-install-strip-libgui \
2671 maybe-install-strip-libiberty \
1b6c0831 2672 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2673 maybe-install-strip-libiconv \
9b980aa1 2674 maybe-install-strip-m4 \
9b980aa1 2675 maybe-install-strip-readline \
9b980aa1
RW
2676 maybe-install-strip-sid \
2677 maybe-install-strip-sim \
9b980aa1 2678 maybe-install-strip-texinfo \
9b980aa1
RW
2679 maybe-install-strip-zlib \
2680 maybe-install-strip-gdb \
2681 maybe-install-strip-expect \
2682 maybe-install-strip-guile \
2683 maybe-install-strip-tk \
2684 maybe-install-strip-libtermcap \
2685 maybe-install-strip-utils \
2686 maybe-install-strip-gnattools \
1b6c0831
L
2687 maybe-install-strip-lto-plugin \
2688 maybe-install-strip-libcc1 \
2689 maybe-install-strip-gotools
9b980aa1
RW
2690
2691.PHONY: install-strip-target
2692install-strip-target: \
2693 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2694 maybe-install-strip-target-libsanitizer \
1b6c0831 2695 maybe-install-strip-target-libmpx \
95e43135 2696 maybe-install-strip-target-libvtv \
e78e02e6 2697 maybe-install-strip-target-libcilkrts \
1b6c0831 2698 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2699 maybe-install-strip-target-libssp \
2700 maybe-install-strip-target-newlib \
2701 maybe-install-strip-target-libgcc \
2bf680c4 2702 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2703 maybe-install-strip-target-libquadmath \
2704 maybe-install-strip-target-libgfortran \
2705 maybe-install-strip-target-libobjc \
2706 maybe-install-strip-target-libgo \
2707 maybe-install-strip-target-libtermcap \
2708 maybe-install-strip-target-winsup \
2709 maybe-install-strip-target-libgloss \
9b980aa1
RW
2710 maybe-install-strip-target-libffi \
2711 maybe-install-strip-target-libjava \
2712 maybe-install-strip-target-zlib \
2713 maybe-install-strip-target-boehm-gc \
9b980aa1
RW
2714 maybe-install-strip-target-rda \
2715 maybe-install-strip-target-libada \
7ec59b9e
L
2716 maybe-install-strip-target-libgomp \
2717 maybe-install-strip-target-libitm \
2718 maybe-install-strip-target-libatomic
9b980aa1
RW
2719
2720
4fa63067 2721### other supporting targets
2a4cbe27 2722
4fa63067
NN
2723MAKEDIRS= \
2724 $(DESTDIR)$(prefix) \
2725 $(DESTDIR)$(exec_prefix)
2726.PHONY: installdirs
2727installdirs: mkinstalldirs
2728 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2729
4fa63067 2730dir.info: do-install-info
22121df0
L
2731 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2732 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2733 mv -f dir.info.new dir.info; \
2734 else true; \
4fa63067 2735 fi
2a4cbe27 2736
4fa63067
NN
2737dist:
2738 @echo "Building a full distribution of this tree isn't done"
2739 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2740
4fa63067 2741etags tags: TAGS
2a4cbe27 2742
4fa63067
NN
2743# Right now this just builds TAGS in each subdirectory. emacs19 has the
2744# ability to use several tags files at once, so there is probably no need
2745# to combine them into one big TAGS file (like CVS 1.3 does). We could
2746# (if we felt like it) have this Makefile write a piece of elisp which
2747# the user could load to tell emacs19 where all the TAGS files we just
2748# built are.
2749TAGS: do-TAGS
2a4cbe27 2750
a7254363
PB
2751# ------------------------------------
2752# Macros for configure and all targets
2753# ------------------------------------
2754
2755
2756
2757
2758
4fa63067
NN
2759# --------------------------------------
2760# Modules which run on the build machine
2761# --------------------------------------
2762
a7254363 2763
4fa63067
NN
2764.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2765maybe-configure-build-libiberty:
4f0ef2d8
CD
2766@if gcc-bootstrap
2767configure-build-libiberty: stage_current
2768@endif gcc-bootstrap
6bd3dfaa
PB
2769@if build-libiberty
2770maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2771configure-build-libiberty:
0aed8855 2772 @: $(MAKE); $(unstage)
c52c6897 2773 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2775 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2776 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2777 $(BUILD_EXPORTS) \
4fa63067
NN
2778 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2779 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2780 case $(srcdir) in \
b00612cc
PB
2781 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2782 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2783 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2784 esac; \
1b6c0831 2785 module_srcdir=libiberty; \
4fa63067 2786 rm -f no-such-file || : ; \
1b6c0831
L
2787 CONFIG_SITE=no-such-file $(SHELL) \
2788 $$s/$$module_srcdir/configure \
2789 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2790 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2791 --target=${target_alias} \
2a4cbe27 2792 || exit 1
6bd3dfaa 2793@endif build-libiberty
2a4cbe27 2794
a7254363
PB
2795
2796
d545f33b
PB
2797
2798
4fa63067
NN
2799.PHONY: all-build-libiberty maybe-all-build-libiberty
2800maybe-all-build-libiberty:
4f0ef2d8
CD
2801@if gcc-bootstrap
2802all-build-libiberty: stage_current
2803@endif gcc-bootstrap
6bd3dfaa 2804@if build-libiberty
72b2455a 2805TARGET-build-libiberty=all
6bd3dfaa 2806maybe-all-build-libiberty: all-build-libiberty
4fa63067 2807all-build-libiberty: configure-build-libiberty
0aed8855 2808 @: $(MAKE); $(unstage)
4fa63067 2809 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2811 $(BUILD_EXPORTS) \
72b2455a 2812 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2813 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2814 $(TARGET-build-libiberty))
6bd3dfaa 2815@endif build-libiberty
2a4cbe27 2816
a7254363
PB
2817
2818
d545f33b
PB
2819
2820
6a9cf61e
PB
2821.PHONY: configure-build-bison maybe-configure-build-bison
2822maybe-configure-build-bison:
4f0ef2d8
CD
2823@if gcc-bootstrap
2824configure-build-bison: stage_current
2825@endif gcc-bootstrap
6a9cf61e
PB
2826@if build-bison
2827maybe-configure-build-bison: configure-build-bison
c52c6897 2828configure-build-bison:
0aed8855 2829 @: $(MAKE); $(unstage)
c52c6897 2830 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2832 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2833 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2834 $(BUILD_EXPORTS) \
6a9cf61e
PB
2835 echo Configuring in $(BUILD_SUBDIR)/bison; \
2836 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2837 case $(srcdir) in \
b00612cc
PB
2838 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2839 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2840 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2841 esac; \
1b6c0831 2842 module_srcdir=bison; \
6a9cf61e 2843 rm -f no-such-file || : ; \
1b6c0831
L
2844 CONFIG_SITE=no-such-file $(SHELL) \
2845 $$s/$$module_srcdir/configure \
2846 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2847 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2848 --target=${target_alias} \
6a9cf61e
PB
2849 || exit 1
2850@endif build-bison
2851
a7254363
PB
2852
2853
d545f33b
PB
2854
2855
6a9cf61e
PB
2856.PHONY: all-build-bison maybe-all-build-bison
2857maybe-all-build-bison:
4f0ef2d8
CD
2858@if gcc-bootstrap
2859all-build-bison: stage_current
2860@endif gcc-bootstrap
6a9cf61e 2861@if build-bison
72b2455a 2862TARGET-build-bison=all
6a9cf61e
PB
2863maybe-all-build-bison: all-build-bison
2864all-build-bison: configure-build-bison
0aed8855 2865 @: $(MAKE); $(unstage)
6a9cf61e
PB
2866 @r=`${PWD_COMMAND}`; export r; \
2867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2868 $(BUILD_EXPORTS) \
72b2455a 2869 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2870 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2871 $(TARGET-build-bison))
6a9cf61e
PB
2872@endif build-bison
2873
a7254363
PB
2874
2875
d545f33b
PB
2876
2877
6a9cf61e
PB
2878.PHONY: configure-build-flex maybe-configure-build-flex
2879maybe-configure-build-flex:
4f0ef2d8
CD
2880@if gcc-bootstrap
2881configure-build-flex: stage_current
2882@endif gcc-bootstrap
6a9cf61e
PB
2883@if build-flex
2884maybe-configure-build-flex: configure-build-flex
c52c6897 2885configure-build-flex:
0aed8855 2886 @: $(MAKE); $(unstage)
c52c6897 2887 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2889 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2890 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2891 $(BUILD_EXPORTS) \
6a9cf61e
PB
2892 echo Configuring in $(BUILD_SUBDIR)/flex; \
2893 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2894 case $(srcdir) in \
b00612cc
PB
2895 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2896 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2897 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2898 esac; \
1b6c0831 2899 module_srcdir=flex; \
6a9cf61e 2900 rm -f no-such-file || : ; \
1b6c0831
L
2901 CONFIG_SITE=no-such-file $(SHELL) \
2902 $$s/$$module_srcdir/configure \
2903 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2904 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2905 --target=${target_alias} \
6a9cf61e
PB
2906 || exit 1
2907@endif build-flex
2908
a7254363
PB
2909
2910
d545f33b
PB
2911
2912
6a9cf61e
PB
2913.PHONY: all-build-flex maybe-all-build-flex
2914maybe-all-build-flex:
4f0ef2d8
CD
2915@if gcc-bootstrap
2916all-build-flex: stage_current
2917@endif gcc-bootstrap
6a9cf61e 2918@if build-flex
72b2455a 2919TARGET-build-flex=all
6a9cf61e
PB
2920maybe-all-build-flex: all-build-flex
2921all-build-flex: configure-build-flex
0aed8855 2922 @: $(MAKE); $(unstage)
6a9cf61e
PB
2923 @r=`${PWD_COMMAND}`; export r; \
2924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2925 $(BUILD_EXPORTS) \
72b2455a 2926 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2927 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2928 $(TARGET-build-flex))
6a9cf61e
PB
2929@endif build-flex
2930
a7254363
PB
2931
2932
d545f33b
PB
2933
2934
6a9cf61e
PB
2935.PHONY: configure-build-m4 maybe-configure-build-m4
2936maybe-configure-build-m4:
4f0ef2d8
CD
2937@if gcc-bootstrap
2938configure-build-m4: stage_current
2939@endif gcc-bootstrap
6a9cf61e
PB
2940@if build-m4
2941maybe-configure-build-m4: configure-build-m4
c52c6897 2942configure-build-m4:
0aed8855 2943 @: $(MAKE); $(unstage)
c52c6897 2944 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2946 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2947 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2948 $(BUILD_EXPORTS) \
6a9cf61e
PB
2949 echo Configuring in $(BUILD_SUBDIR)/m4; \
2950 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2951 case $(srcdir) in \
b00612cc
PB
2952 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2953 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2954 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2955 esac; \
1b6c0831 2956 module_srcdir=m4; \
6a9cf61e 2957 rm -f no-such-file || : ; \
1b6c0831
L
2958 CONFIG_SITE=no-such-file $(SHELL) \
2959 $$s/$$module_srcdir/configure \
2960 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2961 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2962 --target=${target_alias} \
6a9cf61e
PB
2963 || exit 1
2964@endif build-m4
2965
a7254363
PB
2966
2967
d545f33b
PB
2968
2969
6a9cf61e
PB
2970.PHONY: all-build-m4 maybe-all-build-m4
2971maybe-all-build-m4:
4f0ef2d8
CD
2972@if gcc-bootstrap
2973all-build-m4: stage_current
2974@endif gcc-bootstrap
6a9cf61e 2975@if build-m4
72b2455a 2976TARGET-build-m4=all
6a9cf61e
PB
2977maybe-all-build-m4: all-build-m4
2978all-build-m4: configure-build-m4
0aed8855 2979 @: $(MAKE); $(unstage)
6a9cf61e
PB
2980 @r=`${PWD_COMMAND}`; export r; \
2981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2982 $(BUILD_EXPORTS) \
72b2455a 2983 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2984 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2985 $(TARGET-build-m4))
6a9cf61e
PB
2986@endif build-m4
2987
a7254363
PB
2988
2989
d545f33b
PB
2990
2991
6a9cf61e
PB
2992.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2993maybe-configure-build-texinfo:
4f0ef2d8
CD
2994@if gcc-bootstrap
2995configure-build-texinfo: stage_current
2996@endif gcc-bootstrap
6a9cf61e
PB
2997@if build-texinfo
2998maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 2999configure-build-texinfo:
0aed8855 3000 @: $(MAKE); $(unstage)
c52c6897 3001 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3003 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3004 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3005 $(BUILD_EXPORTS) \
6a9cf61e
PB
3006 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3007 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3008 case $(srcdir) in \
b00612cc
PB
3009 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3010 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3011 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3012 esac; \
1b6c0831 3013 module_srcdir=texinfo; \
6a9cf61e 3014 rm -f no-such-file || : ; \
1b6c0831
L
3015 CONFIG_SITE=no-such-file $(SHELL) \
3016 $$s/$$module_srcdir/configure \
3017 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3018 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3019 --target=${target_alias} \
6a9cf61e
PB
3020 || exit 1
3021@endif build-texinfo
3022
a7254363
PB
3023
3024
d545f33b
PB
3025
3026
6a9cf61e
PB
3027.PHONY: all-build-texinfo maybe-all-build-texinfo
3028maybe-all-build-texinfo:
4f0ef2d8
CD
3029@if gcc-bootstrap
3030all-build-texinfo: stage_current
3031@endif gcc-bootstrap
6a9cf61e 3032@if build-texinfo
72b2455a 3033TARGET-build-texinfo=all
6a9cf61e
PB
3034maybe-all-build-texinfo: all-build-texinfo
3035all-build-texinfo: configure-build-texinfo
0aed8855 3036 @: $(MAKE); $(unstage)
6a9cf61e
PB
3037 @r=`${PWD_COMMAND}`; export r; \
3038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3039 $(BUILD_EXPORTS) \
72b2455a 3040 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3041 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3042 $(TARGET-build-texinfo))
6a9cf61e
PB
3043@endif build-texinfo
3044
a7254363
PB
3045
3046
d545f33b
PB
3047
3048
ee025550
PB
3049.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3050maybe-configure-build-fixincludes:
4f0ef2d8
CD
3051@if gcc-bootstrap
3052configure-build-fixincludes: stage_current
3053@endif gcc-bootstrap
ee025550
PB
3054@if build-fixincludes
3055maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3056configure-build-fixincludes:
0aed8855 3057 @: $(MAKE); $(unstage)
c52c6897 3058 @r=`${PWD_COMMAND}`; export r; \
ee025550 3059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3060 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3061 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3062 $(BUILD_EXPORTS) \
ee025550
PB
3063 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3064 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3065 case $(srcdir) in \
b00612cc
PB
3066 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3067 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3068 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3069 esac; \
1b6c0831 3070 module_srcdir=fixincludes; \
ee025550 3071 rm -f no-such-file || : ; \
1b6c0831
L
3072 CONFIG_SITE=no-such-file $(SHELL) \
3073 $$s/$$module_srcdir/configure \
3074 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3075 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3076 --target=${target_alias} \
ee025550
PB
3077 || exit 1
3078@endif build-fixincludes
3079
a7254363
PB
3080
3081
d545f33b
PB
3082
3083
ee025550
PB
3084.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3085maybe-all-build-fixincludes:
4f0ef2d8
CD
3086@if gcc-bootstrap
3087all-build-fixincludes: stage_current
3088@endif gcc-bootstrap
ee025550
PB
3089@if build-fixincludes
3090TARGET-build-fixincludes=all
3091maybe-all-build-fixincludes: all-build-fixincludes
3092all-build-fixincludes: configure-build-fixincludes
0aed8855 3093 @: $(MAKE); $(unstage)
ee025550
PB
3094 @r=`${PWD_COMMAND}`; export r; \
3095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3096 $(BUILD_EXPORTS) \
ee025550 3097 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3098 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3099 $(TARGET-build-fixincludes))
ee025550
PB
3100@endif build-fixincludes
3101
2a4cbe27 3102
a7254363 3103
d545f33b
PB
3104
3105
1b6c0831
L
3106.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3107maybe-configure-build-libcpp:
3108@if gcc-bootstrap
3109configure-build-libcpp: stage_current
3110@endif gcc-bootstrap
3111@if build-libcpp
3112maybe-configure-build-libcpp: configure-build-libcpp
3113configure-build-libcpp:
3114 @: $(MAKE); $(unstage)
3115 @r=`${PWD_COMMAND}`; export r; \
3116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3117 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3118 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3119 $(BUILD_EXPORTS) \
3120 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3121 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3122 case $(srcdir) in \
3123 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3124 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3125 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3126 esac; \
3127 module_srcdir=libcpp; \
3128 rm -f no-such-file || : ; \
3129 CONFIG_SITE=no-such-file $(SHELL) \
3130 $$s/$$module_srcdir/configure \
3131 --srcdir=$${topdir}/$$module_srcdir \
3132 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3133 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3134 || exit 1
3135@endif build-libcpp
3136
3137
3138
3139
3140
3141.PHONY: all-build-libcpp maybe-all-build-libcpp
3142maybe-all-build-libcpp:
3143@if gcc-bootstrap
3144all-build-libcpp: stage_current
3145@endif gcc-bootstrap
3146@if build-libcpp
3147TARGET-build-libcpp=all
3148maybe-all-build-libcpp: all-build-libcpp
3149all-build-libcpp: configure-build-libcpp
3150 @: $(MAKE); $(unstage)
3151 @r=`${PWD_COMMAND}`; export r; \
3152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3153 $(BUILD_EXPORTS) \
3154 (cd $(BUILD_SUBDIR)/libcpp && \
3155 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3156 $(TARGET-build-libcpp))
3157@endif build-libcpp
3158
3159
3160
3161
3162
4fa63067
NN
3163# --------------------------------------
3164# Modules which run on the host machine
3165# --------------------------------------
2a4cbe27 3166
a7254363 3167
a90ef4bf
JM
3168.PHONY: configure-bfd maybe-configure-bfd
3169maybe-configure-bfd:
4f0ef2d8 3170@if gcc-bootstrap
a90ef4bf 3171configure-bfd: stage_current
4f0ef2d8 3172@endif gcc-bootstrap
a90ef4bf
JM
3173@if bfd
3174maybe-configure-bfd: configure-bfd
3175configure-bfd:
c52c6897 3176 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3178 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3179 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3180 $(HOST_EXPORTS) \
a90ef4bf
JM
3181 echo Configuring in $(HOST_SUBDIR)/bfd; \
3182 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3183 case $(srcdir) in \
b00612cc 3184 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3185 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3186 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3187 esac; \
1b6c0831
L
3188 module_srcdir=bfd; \
3189 $(SHELL) \
3190 $$s/$$module_srcdir/configure \
3191 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3192 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3193 --target=${target_alias} \
2a4cbe27 3194 || exit 1
a90ef4bf 3195@endif bfd
a7254363 3196
d545f33b
PB
3197
3198
a90ef4bf
JM
3199.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3200maybe-configure-stage1-bfd:
3201@if bfd-bootstrap
3202maybe-configure-stage1-bfd: configure-stage1-bfd
3203configure-stage1-bfd:
3204 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3205 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3206 @r=`${PWD_COMMAND}`; export r; \
3207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3208 TFLAGS="$(STAGE1_TFLAGS)"; \
3209 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3210 $(HOST_EXPORTS) \
3211 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3212 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3213 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3214 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3215 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3216 cd $(HOST_SUBDIR)/bfd || exit 1; \
3217 case $(srcdir) in \
3218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3219 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3221 esac; \
1b6c0831
L
3222 module_srcdir=bfd; \
3223 $(SHELL) $$s/$$module_srcdir/configure \
3224 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3225 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3226 --target=${target_alias} \
3227 \
a90ef4bf
JM
3228 $(STAGE1_CONFIGURE_FLAGS)
3229@endif bfd-bootstrap
2a4cbe27 3230
a90ef4bf
JM
3231.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3232maybe-configure-stage2-bfd:
3233@if bfd-bootstrap
3234maybe-configure-stage2-bfd: configure-stage2-bfd
3235configure-stage2-bfd:
3236 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3237 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3238 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3240 TFLAGS="$(STAGE2_TFLAGS)"; \
3241 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3242 $(HOST_EXPORTS) \
a90ef4bf
JM
3243 $(POSTSTAGE1_HOST_EXPORTS) \
3244 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3245 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3246 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3247 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3248 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3249 cd $(HOST_SUBDIR)/bfd || exit 1; \
3250 case $(srcdir) in \
3251 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3252 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3253 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3254 esac; \
1b6c0831
L
3255 module_srcdir=bfd; \
3256 $(SHELL) $$s/$$module_srcdir/configure \
3257 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3258 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3259 --target=${target_alias} \
22121df0 3260 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3261 $(STAGE2_CONFIGURE_FLAGS)
3262@endif bfd-bootstrap
2a4cbe27 3263
a90ef4bf
JM
3264.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3265maybe-configure-stage3-bfd:
3266@if bfd-bootstrap
3267maybe-configure-stage3-bfd: configure-stage3-bfd
3268configure-stage3-bfd:
3269 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3270 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3271 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3273 TFLAGS="$(STAGE3_TFLAGS)"; \
3274 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3275 $(HOST_EXPORTS) \
a90ef4bf
JM
3276 $(POSTSTAGE1_HOST_EXPORTS) \
3277 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3278 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3279 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3280 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3281 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3282 cd $(HOST_SUBDIR)/bfd || exit 1; \
3283 case $(srcdir) in \
3284 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3285 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3286 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3287 esac; \
1b6c0831
L
3288 module_srcdir=bfd; \
3289 $(SHELL) $$s/$$module_srcdir/configure \
3290 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3291 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3292 --target=${target_alias} \
22121df0 3293 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3294 $(STAGE3_CONFIGURE_FLAGS)
3295@endif bfd-bootstrap
9b980aa1 3296
a90ef4bf
JM
3297.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3298maybe-configure-stage4-bfd:
3299@if bfd-bootstrap
3300maybe-configure-stage4-bfd: configure-stage4-bfd
3301configure-stage4-bfd:
3302 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3303 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3304 @r=`${PWD_COMMAND}`; export r; \
3305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3306 TFLAGS="$(STAGE4_TFLAGS)"; \
3307 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3308 $(HOST_EXPORTS) \
a90ef4bf
JM
3309 $(POSTSTAGE1_HOST_EXPORTS) \
3310 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3311 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3312 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3313 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3314 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3315 cd $(HOST_SUBDIR)/bfd || exit 1; \
3316 case $(srcdir) in \
3317 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3318 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3319 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3320 esac; \
1b6c0831
L
3321 module_srcdir=bfd; \
3322 $(SHELL) $$s/$$module_srcdir/configure \
3323 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3324 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3325 --target=${target_alias} \
22121df0 3326 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3327 $(STAGE4_CONFIGURE_FLAGS)
3328@endif bfd-bootstrap
4fa63067 3329
a90ef4bf
JM
3330.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3331maybe-configure-stageprofile-bfd:
3332@if bfd-bootstrap
3333maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3334configure-stageprofile-bfd:
3335 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3336 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3337 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3339 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3340 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3341 $(HOST_EXPORTS) \
a90ef4bf
JM
3342 $(POSTSTAGE1_HOST_EXPORTS) \
3343 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3344 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3345 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3346 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3347 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3348 cd $(HOST_SUBDIR)/bfd || exit 1; \
3349 case $(srcdir) in \
3350 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3351 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3352 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3353 esac; \
1b6c0831
L
3354 module_srcdir=bfd; \
3355 $(SHELL) $$s/$$module_srcdir/configure \
3356 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3357 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3358 --target=${target_alias} \
22121df0 3359 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3360 $(STAGEprofile_CONFIGURE_FLAGS)
3361@endif bfd-bootstrap
2a4cbe27 3362
a90ef4bf
JM
3363.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3364maybe-configure-stagefeedback-bfd:
3365@if bfd-bootstrap
3366maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3367configure-stagefeedback-bfd:
3368 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3369 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3370 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3372 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3373 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3374 $(HOST_EXPORTS) \
a90ef4bf
JM
3375 $(POSTSTAGE1_HOST_EXPORTS) \
3376 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3377 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3378 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3379 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3381 cd $(HOST_SUBDIR)/bfd || exit 1; \
3382 case $(srcdir) in \
3383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3384 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3386 esac; \
1b6c0831
L
3387 module_srcdir=bfd; \
3388 $(SHELL) $$s/$$module_srcdir/configure \
3389 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3390 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3391 --target=${target_alias} \
22121df0 3392 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3393 $(STAGEfeedback_CONFIGURE_FLAGS)
3394@endif bfd-bootstrap
2a4cbe27 3395
56a8fe78 3396
56a8fe78 3397
56a8fe78 3398
6d389afc 3399
a90ef4bf
JM
3400.PHONY: all-bfd maybe-all-bfd
3401maybe-all-bfd:
3402@if gcc-bootstrap
3403all-bfd: stage_current
3404@endif gcc-bootstrap
3405@if bfd
3406TARGET-bfd=all
3407maybe-all-bfd: all-bfd
3408all-bfd: configure-bfd
3409 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3411 $(HOST_EXPORTS) \
3412 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3413 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3414 $(TARGET-bfd))
3415@endif bfd
6d389afc 3416
6d389afc 3417
2a4cbe27 3418
a90ef4bf
JM
3419.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3420.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3421maybe-all-stage1-bfd:
3422maybe-clean-stage1-bfd:
3423@if bfd-bootstrap
3424maybe-all-stage1-bfd: all-stage1-bfd
3425all-stage1: all-stage1-bfd
3426TARGET-stage1-bfd = $(TARGET-bfd)
3427all-stage1-bfd: configure-stage1-bfd
3428 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3429 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3431 TFLAGS="$(STAGE1_TFLAGS)"; \
3432 $(HOST_EXPORTS) \
3433 cd $(HOST_SUBDIR)/bfd && \
3434 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3435 CFLAGS="$(STAGE1_CFLAGS)" \
3436 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3437 LIBCFLAGS="$(LIBCFLAGS)" \
3438 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3439 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3440 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3441 $(EXTRA_HOST_FLAGS) \
3442 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3443 TFLAGS="$(STAGE1_TFLAGS)" \
3444 $(TARGET-stage1-bfd)
2a4cbe27 3445
a90ef4bf
JM
3446maybe-clean-stage1-bfd: clean-stage1-bfd
3447clean-stage1: clean-stage1-bfd
3448clean-stage1-bfd:
3449 @if [ $(current_stage) = stage1 ]; then \
3450 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3451 else \
3452 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3453 $(MAKE) stage1-start; \
3454 fi; \
3455 cd $(HOST_SUBDIR)/bfd && \
3456 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3457 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3458@endif bfd-bootstrap
2a4cbe27 3459
2a4cbe27 3460
a90ef4bf
JM
3461.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3462.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3463maybe-all-stage2-bfd:
3464maybe-clean-stage2-bfd:
3465@if bfd-bootstrap
3466maybe-all-stage2-bfd: all-stage2-bfd
3467all-stage2: all-stage2-bfd
3468TARGET-stage2-bfd = $(TARGET-bfd)
3469all-stage2-bfd: configure-stage2-bfd
3470 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3471 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3473 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3474 $(HOST_EXPORTS) \
a90ef4bf
JM
3475 $(POSTSTAGE1_HOST_EXPORTS) \
3476 cd $(HOST_SUBDIR)/bfd && \
3477 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3478 CFLAGS="$(STAGE2_CFLAGS)" \
3479 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3480 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3481 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3482 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3483 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3484 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3485 TFLAGS="$(STAGE2_TFLAGS)" \
3486 $(TARGET-stage2-bfd)
2a4cbe27 3487
a90ef4bf
JM
3488maybe-clean-stage2-bfd: clean-stage2-bfd
3489clean-stage2: clean-stage2-bfd
3490clean-stage2-bfd:
3491 @if [ $(current_stage) = stage2 ]; then \
3492 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3493 else \
3494 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3495 $(MAKE) stage2-start; \
3496 fi; \
3497 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3498 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3499@endif bfd-bootstrap
2a4cbe27 3500
a3ca38d2 3501
a90ef4bf
JM
3502.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3503.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3504maybe-all-stage3-bfd:
3505maybe-clean-stage3-bfd:
3506@if bfd-bootstrap
3507maybe-all-stage3-bfd: all-stage3-bfd
3508all-stage3: all-stage3-bfd
3509TARGET-stage3-bfd = $(TARGET-bfd)
3510all-stage3-bfd: configure-stage3-bfd
3511 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3512 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3514 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3515 $(HOST_EXPORTS) \
a90ef4bf
JM
3516 $(POSTSTAGE1_HOST_EXPORTS) \
3517 cd $(HOST_SUBDIR)/bfd && \
3518 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3519 CFLAGS="$(STAGE3_CFLAGS)" \
3520 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3521 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3522 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3523 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3524 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3525 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3526 TFLAGS="$(STAGE3_TFLAGS)" \
3527 $(TARGET-stage3-bfd)
a3ca38d2 3528
a90ef4bf
JM
3529maybe-clean-stage3-bfd: clean-stage3-bfd
3530clean-stage3: clean-stage3-bfd
3531clean-stage3-bfd:
3532 @if [ $(current_stage) = stage3 ]; then \
3533 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3534 else \
3535 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3536 $(MAKE) stage3-start; \
3537 fi; \
3538 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3539 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3540@endif bfd-bootstrap
a3ca38d2 3541
108a6f8e 3542
a90ef4bf
JM
3543.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3544.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3545maybe-all-stage4-bfd:
3546maybe-clean-stage4-bfd:
3547@if bfd-bootstrap
3548maybe-all-stage4-bfd: all-stage4-bfd
3549all-stage4: all-stage4-bfd
3550TARGET-stage4-bfd = $(TARGET-bfd)
3551all-stage4-bfd: configure-stage4-bfd
3552 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3553 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3555 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3556 $(HOST_EXPORTS) \
a90ef4bf
JM
3557 $(POSTSTAGE1_HOST_EXPORTS) \
3558 cd $(HOST_SUBDIR)/bfd && \
3559 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3560 CFLAGS="$(STAGE4_CFLAGS)" \
3561 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3562 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3563 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3564 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3565 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3566 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3567 TFLAGS="$(STAGE4_TFLAGS)" \
3568 $(TARGET-stage4-bfd)
108a6f8e 3569
a90ef4bf
JM
3570maybe-clean-stage4-bfd: clean-stage4-bfd
3571clean-stage4: clean-stage4-bfd
3572clean-stage4-bfd:
3573 @if [ $(current_stage) = stage4 ]; then \
3574 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3575 else \
3576 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3577 $(MAKE) stage4-start; \
3578 fi; \
3579 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3580 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3581@endif bfd-bootstrap
108a6f8e 3582
2a4cbe27 3583
a90ef4bf
JM
3584.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3585.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3586maybe-all-stageprofile-bfd:
3587maybe-clean-stageprofile-bfd:
3588@if bfd-bootstrap
3589maybe-all-stageprofile-bfd: all-stageprofile-bfd
3590all-stageprofile: all-stageprofile-bfd
3591TARGET-stageprofile-bfd = $(TARGET-bfd)
3592all-stageprofile-bfd: configure-stageprofile-bfd
3593 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3594 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3596 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3597 $(HOST_EXPORTS) \
a90ef4bf
JM
3598 $(POSTSTAGE1_HOST_EXPORTS) \
3599 cd $(HOST_SUBDIR)/bfd && \
3600 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3601 CFLAGS="$(STAGEprofile_CFLAGS)" \
3602 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3603 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3604 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3605 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3606 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3607 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3608 TFLAGS="$(STAGEprofile_TFLAGS)" \
3609 $(TARGET-stageprofile-bfd)
2a4cbe27 3610
a90ef4bf
JM
3611maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3612clean-stageprofile: clean-stageprofile-bfd
3613clean-stageprofile-bfd:
3614 @if [ $(current_stage) = stageprofile ]; then \
3615 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3616 else \
3617 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3618 $(MAKE) stageprofile-start; \
3619 fi; \
3620 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3621 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3622@endif bfd-bootstrap
2a4cbe27 3623
a7254363 3624
a90ef4bf
JM
3625.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3626.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3627maybe-all-stagefeedback-bfd:
3628maybe-clean-stagefeedback-bfd:
3629@if bfd-bootstrap
3630maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3631all-stagefeedback: all-stagefeedback-bfd
3632TARGET-stagefeedback-bfd = $(TARGET-bfd)
3633all-stagefeedback-bfd: configure-stagefeedback-bfd
3634 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3635 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3637 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3638 $(HOST_EXPORTS) \
3639 $(POSTSTAGE1_HOST_EXPORTS) \
3640 cd $(HOST_SUBDIR)/bfd && \
3641 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3642 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3643 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3644 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3645 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3646 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3647 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3648 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3649 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3650 $(TARGET-stagefeedback-bfd)
d545f33b 3651
a90ef4bf
JM
3652maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3653clean-stagefeedback: clean-stagefeedback-bfd
3654clean-stagefeedback-bfd:
3655 @if [ $(current_stage) = stagefeedback ]; then \
3656 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3657 else \
3658 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3659 $(MAKE) stagefeedback-start; \
3660 fi; \
3661 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3662 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3663@endif bfd-bootstrap
d545f33b 3664
2a4cbe27 3665
a7254363 3666
d545f33b
PB
3667
3668
a90ef4bf
JM
3669.PHONY: check-bfd maybe-check-bfd
3670maybe-check-bfd:
3671@if bfd
3672maybe-check-bfd: check-bfd
2a4cbe27 3673
a90ef4bf 3674check-bfd:
0aed8855 3675 @: $(MAKE); $(unstage)
4fa63067 3676 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3678 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3679 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3680 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3681
a90ef4bf 3682@endif bfd
2a4cbe27 3683
a90ef4bf
JM
3684.PHONY: install-bfd maybe-install-bfd
3685maybe-install-bfd:
3686@if bfd
3687maybe-install-bfd: install-bfd
2a4cbe27 3688
a90ef4bf 3689install-bfd: installdirs
0aed8855 3690 @: $(MAKE); $(unstage)
4fa63067 3691 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3693 $(HOST_EXPORTS) \
a90ef4bf 3694 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3695 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3696
a90ef4bf 3697@endif bfd
2a4cbe27 3698
a90ef4bf
JM
3699.PHONY: install-strip-bfd maybe-install-strip-bfd
3700maybe-install-strip-bfd:
3701@if bfd
3702maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3703
a90ef4bf 3704install-strip-bfd: installdirs
9b980aa1
RW
3705 @: $(MAKE); $(unstage)
3706 @r=`${PWD_COMMAND}`; export r; \
3707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3708 $(HOST_EXPORTS) \
a90ef4bf 3709 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3710 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3711
a90ef4bf 3712@endif bfd
9b980aa1 3713
56a8fe78 3714# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3715
a90ef4bf
JM
3716.PHONY: maybe-info-bfd info-bfd
3717maybe-info-bfd:
3718@if bfd
3719maybe-info-bfd: info-bfd
4fa63067 3720
a90ef4bf
JM
3721info-bfd: \
3722 configure-bfd
3723 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3724 r=`${PWD_COMMAND}`; export r; \
3725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3726 $(HOST_EXPORTS) \
b813574b 3727 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3729 done; \
22121df0 3730 echo "Doing info in bfd"; \
a90ef4bf 3731 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3734 "RANLIB=$${RANLIB}" \
0c24b341 3735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3736 info) \
2a4cbe27
NN
3737 || exit 1
3738
a90ef4bf 3739@endif bfd
2a4cbe27 3740
a90ef4bf
JM
3741.PHONY: maybe-dvi-bfd dvi-bfd
3742maybe-dvi-bfd:
3743@if bfd
3744maybe-dvi-bfd: dvi-bfd
2a4cbe27 3745
a90ef4bf
JM
3746dvi-bfd: \
3747 configure-bfd
3748 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3749 r=`${PWD_COMMAND}`; export r; \
3750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3751 $(HOST_EXPORTS) \
b813574b 3752 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3754 done; \
22121df0 3755 echo "Doing dvi in bfd"; \
a90ef4bf 3756 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3759 "RANLIB=$${RANLIB}" \
0c24b341 3760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3761 dvi) \
2a4cbe27
NN
3762 || exit 1
3763
a90ef4bf 3764@endif bfd
2a4cbe27 3765
a90ef4bf
JM
3766.PHONY: maybe-pdf-bfd pdf-bfd
3767maybe-pdf-bfd:
3768@if bfd
3769maybe-pdf-bfd: pdf-bfd
56a8fe78 3770
a90ef4bf
JM
3771pdf-bfd: \
3772 configure-bfd
3773 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3774 r=`${PWD_COMMAND}`; export r; \
3775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3776 $(HOST_EXPORTS) \
3777 for flag in $(EXTRA_HOST_FLAGS) ; do \
3778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3779 done; \
22121df0 3780 echo "Doing pdf in bfd"; \
a90ef4bf 3781 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3784 "RANLIB=$${RANLIB}" \
0c24b341 3785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3786 pdf) \
3787 || exit 1
3788
a90ef4bf 3789@endif bfd
56a8fe78 3790
a90ef4bf
JM
3791.PHONY: maybe-html-bfd html-bfd
3792maybe-html-bfd:
3793@if bfd
3794maybe-html-bfd: html-bfd
6d389afc 3795
a90ef4bf
JM
3796html-bfd: \
3797 configure-bfd
3798 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3799 r=`${PWD_COMMAND}`; export r; \
3800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3801 $(HOST_EXPORTS) \
3802 for flag in $(EXTRA_HOST_FLAGS) ; do \
3803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3804 done; \
22121df0 3805 echo "Doing html in bfd"; \
a90ef4bf 3806 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3809 "RANLIB=$${RANLIB}" \
0c24b341 3810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3811 html) \
3812 || exit 1
3813
a90ef4bf 3814@endif bfd
6d389afc 3815
a90ef4bf
JM
3816.PHONY: maybe-TAGS-bfd TAGS-bfd
3817maybe-TAGS-bfd:
3818@if bfd
3819maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3820
a90ef4bf
JM
3821TAGS-bfd: \
3822 configure-bfd
3823 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3824 r=`${PWD_COMMAND}`; export r; \
3825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3826 $(HOST_EXPORTS) \
b813574b 3827 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3829 done; \
22121df0 3830 echo "Doing TAGS in bfd"; \
a90ef4bf 3831 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3834 "RANLIB=$${RANLIB}" \
0c24b341 3835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3836 TAGS) \
2a4cbe27
NN
3837 || exit 1
3838
a90ef4bf 3839@endif bfd
2a4cbe27 3840
a90ef4bf
JM
3841.PHONY: maybe-install-info-bfd install-info-bfd
3842maybe-install-info-bfd:
3843@if bfd
3844maybe-install-info-bfd: install-info-bfd
2a4cbe27 3845
a90ef4bf
JM
3846install-info-bfd: \
3847 configure-bfd \
3848 info-bfd
3849 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3850 r=`${PWD_COMMAND}`; export r; \
3851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3852 $(HOST_EXPORTS) \
b813574b 3853 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3855 done; \
22121df0 3856 echo "Doing install-info in bfd"; \
a90ef4bf 3857 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3860 "RANLIB=$${RANLIB}" \
0c24b341 3861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3862 install-info) \
2a4cbe27
NN
3863 || exit 1
3864
a90ef4bf 3865@endif bfd
2a4cbe27 3866
a90ef4bf
JM
3867.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3868maybe-install-pdf-bfd:
3869@if bfd
3870maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3871
a90ef4bf
JM
3872install-pdf-bfd: \
3873 configure-bfd \
3874 pdf-bfd
3875 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3876 r=`${PWD_COMMAND}`; export r; \
3877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3878 $(HOST_EXPORTS) \
3879 for flag in $(EXTRA_HOST_FLAGS) ; do \
3880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3881 done; \
22121df0 3882 echo "Doing install-pdf in bfd"; \
a90ef4bf 3883 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3886 "RANLIB=$${RANLIB}" \
0c24b341 3887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3888 install-pdf) \
3889 || exit 1
3890
a90ef4bf 3891@endif bfd
a3ca38d2 3892
a90ef4bf
JM
3893.PHONY: maybe-install-html-bfd install-html-bfd
3894maybe-install-html-bfd:
3895@if bfd
3896maybe-install-html-bfd: install-html-bfd
108a6f8e 3897
a90ef4bf
JM
3898install-html-bfd: \
3899 configure-bfd \
3900 html-bfd
3901 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3902 r=`${PWD_COMMAND}`; export r; \
3903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3904 $(HOST_EXPORTS) \
3905 for flag in $(EXTRA_HOST_FLAGS) ; do \
3906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3907 done; \
22121df0 3908 echo "Doing install-html in bfd"; \
a90ef4bf 3909 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3912 "RANLIB=$${RANLIB}" \
0c24b341 3913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3914 install-html) \
3915 || exit 1
3916
a90ef4bf 3917@endif bfd
108a6f8e 3918
a90ef4bf
JM
3919.PHONY: maybe-installcheck-bfd installcheck-bfd
3920maybe-installcheck-bfd:
3921@if bfd
3922maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3923
a90ef4bf
JM
3924installcheck-bfd: \
3925 configure-bfd
3926 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3927 r=`${PWD_COMMAND}`; export r; \
3928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3929 $(HOST_EXPORTS) \
b813574b 3930 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3932 done; \
22121df0 3933 echo "Doing installcheck in bfd"; \
a90ef4bf 3934 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3937 "RANLIB=$${RANLIB}" \
0c24b341 3938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3939 installcheck) \
2a4cbe27
NN
3940 || exit 1
3941
a90ef4bf 3942@endif bfd
2a4cbe27 3943
a90ef4bf
JM
3944.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3945maybe-mostlyclean-bfd:
3946@if bfd
3947maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3948
a90ef4bf
JM
3949mostlyclean-bfd:
3950 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3951 r=`${PWD_COMMAND}`; export r; \
3952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3953 $(HOST_EXPORTS) \
b813574b 3954 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3956 done; \
22121df0 3957 echo "Doing mostlyclean in bfd"; \
a90ef4bf 3958 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3961 "RANLIB=$${RANLIB}" \
0c24b341 3962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3963 mostlyclean) \
2a4cbe27
NN
3964 || exit 1
3965
a90ef4bf 3966@endif bfd
2a4cbe27 3967
a90ef4bf
JM
3968.PHONY: maybe-clean-bfd clean-bfd
3969maybe-clean-bfd:
3970@if bfd
3971maybe-clean-bfd: clean-bfd
2a4cbe27 3972
a90ef4bf
JM
3973clean-bfd:
3974 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3975 r=`${PWD_COMMAND}`; export r; \
3976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3977 $(HOST_EXPORTS) \
b813574b 3978 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3980 done; \
22121df0 3981 echo "Doing clean in bfd"; \
a90ef4bf 3982 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3985 "RANLIB=$${RANLIB}" \
0c24b341 3986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3987 clean) \
2a4cbe27
NN
3988 || exit 1
3989
a90ef4bf 3990@endif bfd
2a4cbe27 3991
a90ef4bf
JM
3992.PHONY: maybe-distclean-bfd distclean-bfd
3993maybe-distclean-bfd:
3994@if bfd
3995maybe-distclean-bfd: distclean-bfd
2a4cbe27 3996
a90ef4bf
JM
3997distclean-bfd:
3998 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3999 r=`${PWD_COMMAND}`; export r; \
4000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4001 $(HOST_EXPORTS) \
b813574b 4002 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4004 done; \
22121df0 4005 echo "Doing distclean in bfd"; \
a90ef4bf 4006 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4009 "RANLIB=$${RANLIB}" \
0c24b341 4010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4011 distclean) \
2a4cbe27
NN
4012 || exit 1
4013
a90ef4bf 4014@endif bfd
2a4cbe27 4015
a90ef4bf
JM
4016.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4017maybe-maintainer-clean-bfd:
4018@if bfd
4019maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4020
a90ef4bf
JM
4021maintainer-clean-bfd:
4022 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4023 r=`${PWD_COMMAND}`; export r; \
4024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4025 $(HOST_EXPORTS) \
b813574b 4026 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4028 done; \
22121df0 4029 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4030 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4033 "RANLIB=$${RANLIB}" \
0c24b341 4034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4035 maintainer-clean) \
2a4cbe27
NN
4036 || exit 1
4037
a90ef4bf 4038@endif bfd
2a4cbe27 4039
2a4cbe27 4040
a7254363 4041
a90ef4bf
JM
4042.PHONY: configure-opcodes maybe-configure-opcodes
4043maybe-configure-opcodes:
4f0ef2d8 4044@if gcc-bootstrap
a90ef4bf 4045configure-opcodes: stage_current
4f0ef2d8 4046@endif gcc-bootstrap
a90ef4bf
JM
4047@if opcodes
4048maybe-configure-opcodes: configure-opcodes
4049configure-opcodes:
c52c6897 4050 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4052 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4053 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4054 $(HOST_EXPORTS) \
a90ef4bf
JM
4055 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4056 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4057 case $(srcdir) in \
b00612cc 4058 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4059 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4060 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4061 esac; \
1b6c0831
L
4062 module_srcdir=opcodes; \
4063 $(SHELL) \
4064 $$s/$$module_srcdir/configure \
4065 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4066 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4067 --target=${target_alias} \
2a4cbe27 4068 || exit 1
a90ef4bf 4069@endif opcodes
a7254363 4070
d545f33b
PB
4071
4072
a90ef4bf
JM
4073.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4074maybe-configure-stage1-opcodes:
4075@if opcodes-bootstrap
4076maybe-configure-stage1-opcodes: configure-stage1-opcodes
4077configure-stage1-opcodes:
4078 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4079 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4080 @r=`${PWD_COMMAND}`; export r; \
4081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4082 TFLAGS="$(STAGE1_TFLAGS)"; \
4083 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4084 $(HOST_EXPORTS) \
4085 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4086 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4087 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4088 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4089 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4090 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4091 case $(srcdir) in \
4092 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4093 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4094 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4095 esac; \
1b6c0831
L
4096 module_srcdir=opcodes; \
4097 $(SHELL) $$s/$$module_srcdir/configure \
4098 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4099 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4100 --target=${target_alias} \
4101 \
a90ef4bf
JM
4102 $(STAGE1_CONFIGURE_FLAGS)
4103@endif opcodes-bootstrap
2a4cbe27 4104
a90ef4bf
JM
4105.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4106maybe-configure-stage2-opcodes:
4107@if opcodes-bootstrap
4108maybe-configure-stage2-opcodes: configure-stage2-opcodes
4109configure-stage2-opcodes:
4110 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4111 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4112 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4114 TFLAGS="$(STAGE2_TFLAGS)"; \
4115 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4116 $(HOST_EXPORTS) \
a90ef4bf
JM
4117 $(POSTSTAGE1_HOST_EXPORTS) \
4118 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4119 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4120 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4121 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4122 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4123 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4124 case $(srcdir) in \
4125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4126 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4128 esac; \
1b6c0831
L
4129 module_srcdir=opcodes; \
4130 $(SHELL) $$s/$$module_srcdir/configure \
4131 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4132 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4133 --target=${target_alias} \
22121df0 4134 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4135 $(STAGE2_CONFIGURE_FLAGS)
4136@endif opcodes-bootstrap
2a4cbe27 4137
a90ef4bf
JM
4138.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4139maybe-configure-stage3-opcodes:
4140@if opcodes-bootstrap
4141maybe-configure-stage3-opcodes: configure-stage3-opcodes
4142configure-stage3-opcodes:
4143 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4144 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4145 @r=`${PWD_COMMAND}`; export r; \
4146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4147 TFLAGS="$(STAGE3_TFLAGS)"; \
4148 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4149 $(HOST_EXPORTS) \
a90ef4bf
JM
4150 $(POSTSTAGE1_HOST_EXPORTS) \
4151 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4152 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4153 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4154 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4155 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4156 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4157 case $(srcdir) in \
4158 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4159 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4160 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4161 esac; \
1b6c0831
L
4162 module_srcdir=opcodes; \
4163 $(SHELL) $$s/$$module_srcdir/configure \
4164 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4165 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4166 --target=${target_alias} \
22121df0 4167 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4168 $(STAGE3_CONFIGURE_FLAGS)
4169@endif opcodes-bootstrap
9b980aa1 4170
a90ef4bf
JM
4171.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4172maybe-configure-stage4-opcodes:
4173@if opcodes-bootstrap
4174maybe-configure-stage4-opcodes: configure-stage4-opcodes
4175configure-stage4-opcodes:
4176 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4177 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4178 @r=`${PWD_COMMAND}`; export r; \
4179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4180 TFLAGS="$(STAGE4_TFLAGS)"; \
4181 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4182 $(HOST_EXPORTS) \
a90ef4bf
JM
4183 $(POSTSTAGE1_HOST_EXPORTS) \
4184 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4185 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4186 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4187 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4188 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4189 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4190 case $(srcdir) in \
4191 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4192 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4193 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4194 esac; \
1b6c0831
L
4195 module_srcdir=opcodes; \
4196 $(SHELL) $$s/$$module_srcdir/configure \
4197 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4198 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4199 --target=${target_alias} \
22121df0 4200 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4201 $(STAGE4_CONFIGURE_FLAGS)
4202@endif opcodes-bootstrap
4fa63067 4203
a90ef4bf
JM
4204.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4205maybe-configure-stageprofile-opcodes:
4206@if opcodes-bootstrap
4207maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4208configure-stageprofile-opcodes:
4209 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4210 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4211 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4213 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4214 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4215 $(HOST_EXPORTS) \
a90ef4bf
JM
4216 $(POSTSTAGE1_HOST_EXPORTS) \
4217 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4218 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4219 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4220 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4221 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4222 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4223 case $(srcdir) in \
4224 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4225 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4226 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4227 esac; \
1b6c0831
L
4228 module_srcdir=opcodes; \
4229 $(SHELL) $$s/$$module_srcdir/configure \
4230 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4231 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4232 --target=${target_alias} \
22121df0 4233 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4234 $(STAGEprofile_CONFIGURE_FLAGS)
4235@endif opcodes-bootstrap
4236
4237.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4238maybe-configure-stagefeedback-opcodes:
4239@if opcodes-bootstrap
4240maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4241configure-stagefeedback-opcodes:
4242 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4243 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4244 @r=`${PWD_COMMAND}`; export r; \
4245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4246 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4247 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4248 $(HOST_EXPORTS) \
4249 $(POSTSTAGE1_HOST_EXPORTS) \
4250 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4251 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4252 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4253 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4254 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4255 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4256 case $(srcdir) in \
4257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4258 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4260 esac; \
1b6c0831
L
4261 module_srcdir=opcodes; \
4262 $(SHELL) $$s/$$module_srcdir/configure \
4263 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4264 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4265 --target=${target_alias} \
22121df0 4266 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4267 $(STAGEfeedback_CONFIGURE_FLAGS)
4268@endif opcodes-bootstrap
4269
4270
4271
4272
4273
4274.PHONY: all-opcodes maybe-all-opcodes
4275maybe-all-opcodes:
4276@if gcc-bootstrap
4277all-opcodes: stage_current
4278@endif gcc-bootstrap
4279@if opcodes
4280TARGET-opcodes=all
4281maybe-all-opcodes: all-opcodes
4282all-opcodes: configure-opcodes
4283 @r=`${PWD_COMMAND}`; export r; \
4284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4285 $(HOST_EXPORTS) \
4286 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4287 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4288 $(TARGET-opcodes))
4289@endif opcodes
4290
4291
4292
4293.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4294.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4295maybe-all-stage1-opcodes:
4296maybe-clean-stage1-opcodes:
4297@if opcodes-bootstrap
4298maybe-all-stage1-opcodes: all-stage1-opcodes
4299all-stage1: all-stage1-opcodes
4300TARGET-stage1-opcodes = $(TARGET-opcodes)
4301all-stage1-opcodes: configure-stage1-opcodes
4302 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4303 @r=`${PWD_COMMAND}`; export r; \
4304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4305 TFLAGS="$(STAGE1_TFLAGS)"; \
4306 $(HOST_EXPORTS) \
4307 cd $(HOST_SUBDIR)/opcodes && \
4308 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4309 CFLAGS="$(STAGE1_CFLAGS)" \
4310 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4311 LIBCFLAGS="$(LIBCFLAGS)" \
4312 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4313 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4314 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4315 $(EXTRA_HOST_FLAGS) \
4316 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4317 TFLAGS="$(STAGE1_TFLAGS)" \
4318 $(TARGET-stage1-opcodes)
4319
4320maybe-clean-stage1-opcodes: clean-stage1-opcodes
4321clean-stage1: clean-stage1-opcodes
4322clean-stage1-opcodes:
4323 @if [ $(current_stage) = stage1 ]; then \
4324 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4325 else \
4326 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4327 $(MAKE) stage1-start; \
4328 fi; \
4329 cd $(HOST_SUBDIR)/opcodes && \
4330 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4331 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4332@endif opcodes-bootstrap
4333
4334
4335.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4336.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4337maybe-all-stage2-opcodes:
4338maybe-clean-stage2-opcodes:
4339@if opcodes-bootstrap
4340maybe-all-stage2-opcodes: all-stage2-opcodes
4341all-stage2: all-stage2-opcodes
4342TARGET-stage2-opcodes = $(TARGET-opcodes)
4343all-stage2-opcodes: configure-stage2-opcodes
4344 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4345 @r=`${PWD_COMMAND}`; export r; \
4346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4347 TFLAGS="$(STAGE2_TFLAGS)"; \
4348 $(HOST_EXPORTS) \
4349 $(POSTSTAGE1_HOST_EXPORTS) \
4350 cd $(HOST_SUBDIR)/opcodes && \
4351 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4352 CFLAGS="$(STAGE2_CFLAGS)" \
4353 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4354 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4355 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4356 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4357 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4358 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4359 TFLAGS="$(STAGE2_TFLAGS)" \
4360 $(TARGET-stage2-opcodes)
4361
4362maybe-clean-stage2-opcodes: clean-stage2-opcodes
4363clean-stage2: clean-stage2-opcodes
4364clean-stage2-opcodes:
4365 @if [ $(current_stage) = stage2 ]; then \
4366 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4367 else \
4368 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4369 $(MAKE) stage2-start; \
4370 fi; \
4371 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4372 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4373@endif opcodes-bootstrap
4374
4375
4376.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4377.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4378maybe-all-stage3-opcodes:
4379maybe-clean-stage3-opcodes:
4380@if opcodes-bootstrap
4381maybe-all-stage3-opcodes: all-stage3-opcodes
4382all-stage3: all-stage3-opcodes
4383TARGET-stage3-opcodes = $(TARGET-opcodes)
4384all-stage3-opcodes: configure-stage3-opcodes
4385 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4386 @r=`${PWD_COMMAND}`; export r; \
4387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4388 TFLAGS="$(STAGE3_TFLAGS)"; \
4389 $(HOST_EXPORTS) \
4390 $(POSTSTAGE1_HOST_EXPORTS) \
4391 cd $(HOST_SUBDIR)/opcodes && \
4392 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4393 CFLAGS="$(STAGE3_CFLAGS)" \
4394 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4395 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4396 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4397 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4398 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4399 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4400 TFLAGS="$(STAGE3_TFLAGS)" \
4401 $(TARGET-stage3-opcodes)
4402
4403maybe-clean-stage3-opcodes: clean-stage3-opcodes
4404clean-stage3: clean-stage3-opcodes
4405clean-stage3-opcodes:
4406 @if [ $(current_stage) = stage3 ]; then \
4407 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4408 else \
4409 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4410 $(MAKE) stage3-start; \
4411 fi; \
4412 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4413 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4414@endif opcodes-bootstrap
4415
4416
4417.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4418.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4419maybe-all-stage4-opcodes:
4420maybe-clean-stage4-opcodes:
4421@if opcodes-bootstrap
4422maybe-all-stage4-opcodes: all-stage4-opcodes
4423all-stage4: all-stage4-opcodes
4424TARGET-stage4-opcodes = $(TARGET-opcodes)
4425all-stage4-opcodes: configure-stage4-opcodes
4426 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4427 @r=`${PWD_COMMAND}`; export r; \
4428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4429 TFLAGS="$(STAGE4_TFLAGS)"; \
4430 $(HOST_EXPORTS) \
4431 $(POSTSTAGE1_HOST_EXPORTS) \
4432 cd $(HOST_SUBDIR)/opcodes && \
4433 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4434 CFLAGS="$(STAGE4_CFLAGS)" \
4435 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4436 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4437 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4438 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4439 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4440 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4441 TFLAGS="$(STAGE4_TFLAGS)" \
4442 $(TARGET-stage4-opcodes)
4443
4444maybe-clean-stage4-opcodes: clean-stage4-opcodes
4445clean-stage4: clean-stage4-opcodes
4446clean-stage4-opcodes:
4447 @if [ $(current_stage) = stage4 ]; then \
4448 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4449 else \
4450 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4451 $(MAKE) stage4-start; \
4452 fi; \
4453 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4454 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4455@endif opcodes-bootstrap
4456
4457
4458.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4459.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4460maybe-all-stageprofile-opcodes:
4461maybe-clean-stageprofile-opcodes:
4462@if opcodes-bootstrap
4463maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4464all-stageprofile: all-stageprofile-opcodes
4465TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4466all-stageprofile-opcodes: configure-stageprofile-opcodes
4467 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4468 @r=`${PWD_COMMAND}`; export r; \
4469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4470 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4471 $(HOST_EXPORTS) \
4472 $(POSTSTAGE1_HOST_EXPORTS) \
4473 cd $(HOST_SUBDIR)/opcodes && \
4474 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4475 CFLAGS="$(STAGEprofile_CFLAGS)" \
4476 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4477 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4478 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4479 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4480 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4481 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4482 TFLAGS="$(STAGEprofile_TFLAGS)" \
4483 $(TARGET-stageprofile-opcodes)
4484
4485maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4486clean-stageprofile: clean-stageprofile-opcodes
4487clean-stageprofile-opcodes:
4488 @if [ $(current_stage) = stageprofile ]; then \
4489 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4490 else \
4491 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4492 $(MAKE) stageprofile-start; \
4493 fi; \
4494 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4495 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4496@endif opcodes-bootstrap
4497
4498
4499.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4500.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4501maybe-all-stagefeedback-opcodes:
4502maybe-clean-stagefeedback-opcodes:
4503@if opcodes-bootstrap
4504maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4505all-stagefeedback: all-stagefeedback-opcodes
4506TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4507all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4508 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4509 @r=`${PWD_COMMAND}`; export r; \
4510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4511 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4512 $(HOST_EXPORTS) \
4513 $(POSTSTAGE1_HOST_EXPORTS) \
4514 cd $(HOST_SUBDIR)/opcodes && \
4515 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4516 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4517 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4518 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4519 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4520 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4521 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4522 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4523 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4524 $(TARGET-stagefeedback-opcodes)
4525
4526maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4527clean-stagefeedback: clean-stagefeedback-opcodes
4528clean-stagefeedback-opcodes:
4529 @if [ $(current_stage) = stagefeedback ]; then \
4530 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4531 else \
4532 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4533 $(MAKE) stagefeedback-start; \
4534 fi; \
4535 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4536 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4537@endif opcodes-bootstrap
4538
4539
4540
4541
4542
4543.PHONY: check-opcodes maybe-check-opcodes
4544maybe-check-opcodes:
4545@if opcodes
4546maybe-check-opcodes: check-opcodes
4547
4548check-opcodes:
0aed8855 4549 @: $(MAKE); $(unstage)
a90ef4bf 4550 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4552 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4553 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4554 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4555
a90ef4bf 4556@endif opcodes
2a4cbe27 4557
a90ef4bf
JM
4558.PHONY: install-opcodes maybe-install-opcodes
4559maybe-install-opcodes:
4560@if opcodes
4561maybe-install-opcodes: install-opcodes
56a8fe78 4562
a90ef4bf 4563install-opcodes: installdirs
56a8fe78 4564 @: $(MAKE); $(unstage)
a90ef4bf 4565 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4567 $(HOST_EXPORTS) \
a90ef4bf
JM
4568 (cd $(HOST_SUBDIR)/opcodes && \
4569 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4570
a90ef4bf 4571@endif opcodes
56a8fe78 4572
a90ef4bf
JM
4573.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4574maybe-install-strip-opcodes:
4575@if opcodes
4576maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4577
a90ef4bf 4578install-strip-opcodes: installdirs
0aed8855 4579 @: $(MAKE); $(unstage)
a90ef4bf
JM
4580 @r=`${PWD_COMMAND}`; export r; \
4581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4582 $(HOST_EXPORTS) \
4583 (cd $(HOST_SUBDIR)/opcodes && \
4584 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4585
4586@endif opcodes
4587
4588# Other targets (info, dvi, pdf, etc.)
4589
4590.PHONY: maybe-info-opcodes info-opcodes
4591maybe-info-opcodes:
4592@if opcodes
4593maybe-info-opcodes: info-opcodes
4594
4595info-opcodes: \
4596 configure-opcodes
4597 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4598 r=`${PWD_COMMAND}`; export r; \
4599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4600 $(HOST_EXPORTS) \
4601 for flag in $(EXTRA_HOST_FLAGS) ; do \
4602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4603 done; \
22121df0 4604 echo "Doing info in opcodes"; \
a90ef4bf 4605 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4608 "RANLIB=$${RANLIB}" \
0c24b341 4609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4610 info) \
6d389afc
MS
4611 || exit 1
4612
a90ef4bf 4613@endif opcodes
6d389afc 4614
a90ef4bf
JM
4615.PHONY: maybe-dvi-opcodes dvi-opcodes
4616maybe-dvi-opcodes:
4617@if opcodes
4618maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4619
a90ef4bf
JM
4620dvi-opcodes: \
4621 configure-opcodes
4622 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4623 r=`${PWD_COMMAND}`; export r; \
4624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4625 $(HOST_EXPORTS) \
b813574b 4626 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4628 done; \
22121df0 4629 echo "Doing dvi in opcodes"; \
a90ef4bf 4630 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4633 "RANLIB=$${RANLIB}" \
0c24b341 4634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4635 dvi) \
2a4cbe27
NN
4636 || exit 1
4637
a90ef4bf 4638@endif opcodes
2a4cbe27 4639
a90ef4bf
JM
4640.PHONY: maybe-pdf-opcodes pdf-opcodes
4641maybe-pdf-opcodes:
4642@if opcodes
4643maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4644
a90ef4bf
JM
4645pdf-opcodes: \
4646 configure-opcodes
4647 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4648 r=`${PWD_COMMAND}`; export r; \
4649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4650 $(HOST_EXPORTS) \
b813574b 4651 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4653 done; \
22121df0 4654 echo "Doing pdf in opcodes"; \
a90ef4bf 4655 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4658 "RANLIB=$${RANLIB}" \
0c24b341 4659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4660 pdf) \
2a4cbe27
NN
4661 || exit 1
4662
a90ef4bf 4663@endif opcodes
2a4cbe27 4664
a90ef4bf
JM
4665.PHONY: maybe-html-opcodes html-opcodes
4666maybe-html-opcodes:
4667@if opcodes
4668maybe-html-opcodes: html-opcodes
a3ca38d2 4669
a90ef4bf
JM
4670html-opcodes: \
4671 configure-opcodes
4672 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4673 r=`${PWD_COMMAND}`; export r; \
4674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4675 $(HOST_EXPORTS) \
4676 for flag in $(EXTRA_HOST_FLAGS) ; do \
4677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4678 done; \
22121df0 4679 echo "Doing html in opcodes"; \
a90ef4bf 4680 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4683 "RANLIB=$${RANLIB}" \
0c24b341 4684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4685 html) \
a3ca38d2
DD
4686 || exit 1
4687
a90ef4bf 4688@endif opcodes
a3ca38d2 4689
a90ef4bf
JM
4690.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4691maybe-TAGS-opcodes:
4692@if opcodes
4693maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4694
a90ef4bf
JM
4695TAGS-opcodes: \
4696 configure-opcodes
4697 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4698 r=`${PWD_COMMAND}`; export r; \
4699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4700 $(HOST_EXPORTS) \
4701 for flag in $(EXTRA_HOST_FLAGS) ; do \
4702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4703 done; \
22121df0 4704 echo "Doing TAGS in opcodes"; \
a90ef4bf 4705 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4708 "RANLIB=$${RANLIB}" \
0c24b341 4709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4710 TAGS) \
108a6f8e
CD
4711 || exit 1
4712
a90ef4bf 4713@endif opcodes
108a6f8e 4714
a90ef4bf
JM
4715.PHONY: maybe-install-info-opcodes install-info-opcodes
4716maybe-install-info-opcodes:
4717@if opcodes
4718maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4719
a90ef4bf
JM
4720install-info-opcodes: \
4721 configure-opcodes \
4722 info-opcodes
4723 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4724 r=`${PWD_COMMAND}`; export r; \
4725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4726 $(HOST_EXPORTS) \
b813574b 4727 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4729 done; \
22121df0 4730 echo "Doing install-info in opcodes"; \
a90ef4bf 4731 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4734 "RANLIB=$${RANLIB}" \
0c24b341 4735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4736 install-info) \
2a4cbe27
NN
4737 || exit 1
4738
a90ef4bf 4739@endif opcodes
2a4cbe27 4740
a90ef4bf
JM
4741.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4742maybe-install-pdf-opcodes:
4743@if opcodes
4744maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4745
a90ef4bf
JM
4746install-pdf-opcodes: \
4747 configure-opcodes \
4748 pdf-opcodes
4749 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4750 r=`${PWD_COMMAND}`; export r; \
4751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4752 $(HOST_EXPORTS) \
b813574b 4753 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4755 done; \
22121df0 4756 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4757 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4760 "RANLIB=$${RANLIB}" \
0c24b341 4761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4762 install-pdf) \
2a4cbe27
NN
4763 || exit 1
4764
a90ef4bf 4765@endif opcodes
2a4cbe27 4766
a90ef4bf
JM
4767.PHONY: maybe-install-html-opcodes install-html-opcodes
4768maybe-install-html-opcodes:
4769@if opcodes
4770maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4771
a90ef4bf
JM
4772install-html-opcodes: \
4773 configure-opcodes \
4774 html-opcodes
4775 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4776 r=`${PWD_COMMAND}`; export r; \
4777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4778 $(HOST_EXPORTS) \
b813574b 4779 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4781 done; \
22121df0 4782 echo "Doing install-html in opcodes"; \
a90ef4bf 4783 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4786 "RANLIB=$${RANLIB}" \
0c24b341 4787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4788 install-html) \
2a4cbe27
NN
4789 || exit 1
4790
a90ef4bf 4791@endif opcodes
2a4cbe27 4792
a90ef4bf
JM
4793.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4794maybe-installcheck-opcodes:
4795@if opcodes
4796maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4797
a90ef4bf
JM
4798installcheck-opcodes: \
4799 configure-opcodes
4800 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4801 r=`${PWD_COMMAND}`; export r; \
4802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4803 $(HOST_EXPORTS) \
b813574b 4804 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4806 done; \
22121df0 4807 echo "Doing installcheck in opcodes"; \
a90ef4bf 4808 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4811 "RANLIB=$${RANLIB}" \
0c24b341 4812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4813 installcheck) \
2a4cbe27
NN
4814 || exit 1
4815
a90ef4bf 4816@endif opcodes
2a4cbe27 4817
a90ef4bf
JM
4818.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4819maybe-mostlyclean-opcodes:
4820@if opcodes
4821maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4822
a90ef4bf
JM
4823mostlyclean-opcodes:
4824 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4825 r=`${PWD_COMMAND}`; export r; \
4826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4827 $(HOST_EXPORTS) \
b813574b 4828 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4830 done; \
22121df0 4831 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4832 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4835 "RANLIB=$${RANLIB}" \
0c24b341 4836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4837 mostlyclean) \
2a4cbe27
NN
4838 || exit 1
4839
a90ef4bf 4840@endif opcodes
2a4cbe27 4841
a90ef4bf
JM
4842.PHONY: maybe-clean-opcodes clean-opcodes
4843maybe-clean-opcodes:
4844@if opcodes
4845maybe-clean-opcodes: clean-opcodes
2a4cbe27 4846
a90ef4bf
JM
4847clean-opcodes:
4848 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4849 r=`${PWD_COMMAND}`; export r; \
4850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4851 $(HOST_EXPORTS) \
b813574b 4852 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4854 done; \
22121df0 4855 echo "Doing clean in opcodes"; \
a90ef4bf 4856 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4859 "RANLIB=$${RANLIB}" \
0c24b341 4860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4861 clean) \
2a4cbe27
NN
4862 || exit 1
4863
a90ef4bf 4864@endif opcodes
2a4cbe27 4865
a90ef4bf
JM
4866.PHONY: maybe-distclean-opcodes distclean-opcodes
4867maybe-distclean-opcodes:
4868@if opcodes
4869maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4870
a90ef4bf
JM
4871distclean-opcodes:
4872 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4873 r=`${PWD_COMMAND}`; export r; \
4874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4875 $(HOST_EXPORTS) \
b813574b 4876 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4878 done; \
22121df0 4879 echo "Doing distclean in opcodes"; \
a90ef4bf 4880 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4883 "RANLIB=$${RANLIB}" \
0c24b341 4884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4885 distclean) \
2a4cbe27
NN
4886 || exit 1
4887
a90ef4bf 4888@endif opcodes
2a4cbe27 4889
a90ef4bf
JM
4890.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4891maybe-maintainer-clean-opcodes:
4892@if opcodes
4893maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4894
a90ef4bf
JM
4895maintainer-clean-opcodes:
4896 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4897 r=`${PWD_COMMAND}`; export r; \
4898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4899 $(HOST_EXPORTS) \
b813574b 4900 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4902 done; \
22121df0 4903 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4904 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4907 "RANLIB=$${RANLIB}" \
0c24b341 4908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4909 maintainer-clean) \
2a4cbe27
NN
4910 || exit 1
4911
a90ef4bf 4912@endif opcodes
2a4cbe27 4913
2a4cbe27 4914
a7254363 4915
a90ef4bf
JM
4916.PHONY: configure-binutils maybe-configure-binutils
4917maybe-configure-binutils:
4f0ef2d8 4918@if gcc-bootstrap
a90ef4bf 4919configure-binutils: stage_current
4f0ef2d8 4920@endif gcc-bootstrap
a90ef4bf
JM
4921@if binutils
4922maybe-configure-binutils: configure-binutils
4923configure-binutils:
c52c6897
PB
4924 @r=`${PWD_COMMAND}`; export r; \
4925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4926 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4927 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4928 $(HOST_EXPORTS) \
a90ef4bf
JM
4929 echo Configuring in $(HOST_SUBDIR)/binutils; \
4930 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4931 case $(srcdir) in \
b00612cc 4932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4933 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4935 esac; \
1b6c0831
L
4936 module_srcdir=binutils; \
4937 $(SHELL) \
4938 $$s/$$module_srcdir/configure \
4939 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4940 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4941 --target=${target_alias} \
2a4cbe27 4942 || exit 1
a90ef4bf 4943@endif binutils
2a4cbe27 4944
a7254363
PB
4945
4946
a90ef4bf
JM
4947.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4948maybe-configure-stage1-binutils:
4949@if binutils-bootstrap
4950maybe-configure-stage1-binutils: configure-stage1-binutils
4951configure-stage1-binutils:
c52c6897 4952 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4953 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4954 @r=`${PWD_COMMAND}`; export r; \
4955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4956 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4957 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4958 $(HOST_EXPORTS) \
8ee82aff 4959 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4960 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4961 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4962 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
4963 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4964 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4965 case $(srcdir) in \
4966 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4967 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4968 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4969 esac; \
1b6c0831
L
4970 module_srcdir=binutils; \
4971 $(SHELL) $$s/$$module_srcdir/configure \
4972 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4973 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4974 --target=${target_alias} \
4975 \
1b05fbbd 4976 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4977@endif binutils-bootstrap
d545f33b 4978
a90ef4bf
JM
4979.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4980maybe-configure-stage2-binutils:
4981@if binutils-bootstrap
4982maybe-configure-stage2-binutils: configure-stage2-binutils
4983configure-stage2-binutils:
c52c6897 4984 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 4985 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4986 @r=`${PWD_COMMAND}`; export r; \
4987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4988 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 4989 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4990 $(HOST_EXPORTS) \
1b05fbbd 4991 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4992 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4993 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4994 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4995 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
4996 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4997 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4998 case $(srcdir) in \
4999 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5000 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5001 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5002 esac; \
1b6c0831
L
5003 module_srcdir=binutils; \
5004 $(SHELL) $$s/$$module_srcdir/configure \
5005 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5006 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5007 --target=${target_alias} \
22121df0 5008 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5009 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5010@endif binutils-bootstrap
8520c408 5011
a90ef4bf
JM
5012.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5013maybe-configure-stage3-binutils:
5014@if binutils-bootstrap
5015maybe-configure-stage3-binutils: configure-stage3-binutils
5016configure-stage3-binutils:
c52c6897 5017 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5018 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5019 @r=`${PWD_COMMAND}`; export r; \
5020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5021 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5022 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5023 $(HOST_EXPORTS) \
1b05fbbd 5024 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5025 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5026 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5027 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5028 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5029 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5030 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5031 case $(srcdir) in \
5032 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5033 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5034 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5035 esac; \
1b6c0831
L
5036 module_srcdir=binutils; \
5037 $(SHELL) $$s/$$module_srcdir/configure \
5038 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5039 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5040 --target=${target_alias} \
22121df0 5041 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5042 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5043@endif binutils-bootstrap
8520c408 5044
a90ef4bf
JM
5045.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5046maybe-configure-stage4-binutils:
5047@if binutils-bootstrap
5048maybe-configure-stage4-binutils: configure-stage4-binutils
5049configure-stage4-binutils:
c52c6897 5050 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5051 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5052 @r=`${PWD_COMMAND}`; export r; \
5053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5054 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5055 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5056 $(HOST_EXPORTS) \
1b05fbbd 5057 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5058 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5059 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5060 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5061 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5062 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5063 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5064 case $(srcdir) in \
5065 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5066 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5067 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5068 esac; \
1b6c0831
L
5069 module_srcdir=binutils; \
5070 $(SHELL) $$s/$$module_srcdir/configure \
5071 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5072 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5073 --target=${target_alias} \
22121df0 5074 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5075 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5076@endif binutils-bootstrap
d545f33b 5077
a90ef4bf
JM
5078.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5079maybe-configure-stageprofile-binutils:
5080@if binutils-bootstrap
5081maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5082configure-stageprofile-binutils:
c52c6897 5083 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5084 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5085 @r=`${PWD_COMMAND}`; export r; \
5086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5087 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5088 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5089 $(HOST_EXPORTS) \
1b05fbbd
AO
5090 $(POSTSTAGE1_HOST_EXPORTS) \
5091 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5092 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5093 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5094 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5095 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5096 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5097 case $(srcdir) in \
5098 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5099 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5100 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5101 esac; \
1b6c0831
L
5102 module_srcdir=binutils; \
5103 $(SHELL) $$s/$$module_srcdir/configure \
5104 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5105 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5106 --target=${target_alias} \
22121df0 5107 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5108 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5109@endif binutils-bootstrap
d545f33b 5110
a90ef4bf
JM
5111.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5112maybe-configure-stagefeedback-binutils:
5113@if binutils-bootstrap
5114maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5115configure-stagefeedback-binutils:
c52c6897 5116 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5117 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5118 @r=`${PWD_COMMAND}`; export r; \
5119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5120 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5121 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5122 $(HOST_EXPORTS) \
1b05fbbd
AO
5123 $(POSTSTAGE1_HOST_EXPORTS) \
5124 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5125 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5126 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5127 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5128 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5129 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5130 case $(srcdir) in \
5131 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5132 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5133 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5134 esac; \
1b6c0831
L
5135 module_srcdir=binutils; \
5136 $(SHELL) $$s/$$module_srcdir/configure \
5137 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5138 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5139 --target=${target_alias} \
22121df0 5140 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5141 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5142@endif binutils-bootstrap
d545f33b
PB
5143
5144
5145
5146
5147
a90ef4bf
JM
5148.PHONY: all-binutils maybe-all-binutils
5149maybe-all-binutils:
4f0ef2d8 5150@if gcc-bootstrap
a90ef4bf 5151all-binutils: stage_current
4f0ef2d8 5152@endif gcc-bootstrap
a90ef4bf
JM
5153@if binutils
5154TARGET-binutils=all
5155maybe-all-binutils: all-binutils
5156all-binutils: configure-binutils
c52c6897 5157 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5159 $(HOST_EXPORTS) \
a90ef4bf 5160 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5161 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5162 $(TARGET-binutils))
5163@endif binutils
2a4cbe27 5164
a7254363 5165
d545f33b 5166
a90ef4bf
JM
5167.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5168.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5169maybe-all-stage1-binutils:
5170maybe-clean-stage1-binutils:
5171@if binutils-bootstrap
5172maybe-all-stage1-binutils: all-stage1-binutils
5173all-stage1: all-stage1-binutils
5174TARGET-stage1-binutils = $(TARGET-binutils)
5175all-stage1-binutils: configure-stage1-binutils
c52c6897 5176 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5177 @r=`${PWD_COMMAND}`; export r; \
5178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5179 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5180 $(HOST_EXPORTS) \
a90ef4bf 5181 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5182 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5183 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5184 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5185 LIBCFLAGS="$(LIBCFLAGS)" \
5186 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5187 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5188 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5189 $(EXTRA_HOST_FLAGS) \
5190 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 5191 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5192 $(TARGET-stage1-binutils)
d545f33b 5193
a90ef4bf
JM
5194maybe-clean-stage1-binutils: clean-stage1-binutils
5195clean-stage1: clean-stage1-binutils
5196clean-stage1-binutils:
9dbaa842 5197 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5198 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5199 else \
a90ef4bf 5200 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5201 $(MAKE) stage1-start; \
5202 fi; \
a90ef4bf 5203 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5204 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5205 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5206@endif binutils-bootstrap
d545f33b
PB
5207
5208
a90ef4bf
JM
5209.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5210.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5211maybe-all-stage2-binutils:
5212maybe-clean-stage2-binutils:
5213@if binutils-bootstrap
5214maybe-all-stage2-binutils: all-stage2-binutils
5215all-stage2: all-stage2-binutils
5216TARGET-stage2-binutils = $(TARGET-binutils)
5217all-stage2-binutils: configure-stage2-binutils
c52c6897 5218 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5219 @r=`${PWD_COMMAND}`; export r; \
5220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5221 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5222 $(HOST_EXPORTS) \
1f53ca9a 5223 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5224 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5225 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5226 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5227 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5228 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5229 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5230 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5231 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5232 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5233 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5234 $(TARGET-stage2-binutils)
d545f33b 5235
a90ef4bf
JM
5236maybe-clean-stage2-binutils: clean-stage2-binutils
5237clean-stage2: clean-stage2-binutils
5238clean-stage2-binutils:
9dbaa842 5239 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5240 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5241 else \
a90ef4bf 5242 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5243 $(MAKE) stage2-start; \
5244 fi; \
a90ef4bf 5245 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5246 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5247@endif binutils-bootstrap
d545f33b
PB
5248
5249
a90ef4bf
JM
5250.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5251.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5252maybe-all-stage3-binutils:
5253maybe-clean-stage3-binutils:
5254@if binutils-bootstrap
5255maybe-all-stage3-binutils: all-stage3-binutils
5256all-stage3: all-stage3-binutils
5257TARGET-stage3-binutils = $(TARGET-binutils)
5258all-stage3-binutils: configure-stage3-binutils
c52c6897 5259 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5260 @r=`${PWD_COMMAND}`; export r; \
5261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5262 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5263 $(HOST_EXPORTS) \
1f53ca9a 5264 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5265 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5266 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5267 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5268 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5269 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5270 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5271 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5272 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5273 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5274 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5275 $(TARGET-stage3-binutils)
d545f33b 5276
a90ef4bf
JM
5277maybe-clean-stage3-binutils: clean-stage3-binutils
5278clean-stage3: clean-stage3-binutils
5279clean-stage3-binutils:
9dbaa842 5280 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5281 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5282 else \
a90ef4bf 5283 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5284 $(MAKE) stage3-start; \
5285 fi; \
a90ef4bf 5286 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5287 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5288@endif binutils-bootstrap
d545f33b
PB
5289
5290
a90ef4bf
JM
5291.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5292.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5293maybe-all-stage4-binutils:
5294maybe-clean-stage4-binutils:
5295@if binutils-bootstrap
5296maybe-all-stage4-binutils: all-stage4-binutils
5297all-stage4: all-stage4-binutils
5298TARGET-stage4-binutils = $(TARGET-binutils)
5299all-stage4-binutils: configure-stage4-binutils
c52c6897 5300 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5301 @r=`${PWD_COMMAND}`; export r; \
5302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5303 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5304 $(HOST_EXPORTS) \
1f53ca9a 5305 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5306 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5307 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5308 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5309 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5310 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5311 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5312 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5313 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5314 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5315 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5316 $(TARGET-stage4-binutils)
d545f33b 5317
a90ef4bf
JM
5318maybe-clean-stage4-binutils: clean-stage4-binutils
5319clean-stage4: clean-stage4-binutils
5320clean-stage4-binutils:
9dbaa842 5321 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5322 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5323 else \
a90ef4bf 5324 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5325 $(MAKE) stage4-start; \
5326 fi; \
a90ef4bf 5327 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5328 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5329@endif binutils-bootstrap
d545f33b
PB
5330
5331
a90ef4bf
JM
5332.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5333.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5334maybe-all-stageprofile-binutils:
5335maybe-clean-stageprofile-binutils:
5336@if binutils-bootstrap
5337maybe-all-stageprofile-binutils: all-stageprofile-binutils
5338all-stageprofile: all-stageprofile-binutils
5339TARGET-stageprofile-binutils = $(TARGET-binutils)
5340all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5341 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5342 @r=`${PWD_COMMAND}`; export r; \
5343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5344 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5345 $(HOST_EXPORTS) \
1f53ca9a 5346 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5347 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5348 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5349 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5350 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5351 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5352 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5353 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5354 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5355 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5356 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5357 $(TARGET-stageprofile-binutils)
d545f33b 5358
a90ef4bf
JM
5359maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5360clean-stageprofile: clean-stageprofile-binutils
5361clean-stageprofile-binutils:
9dbaa842 5362 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5363 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5364 else \
a90ef4bf 5365 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5366 $(MAKE) stageprofile-start; \
5367 fi; \
a90ef4bf 5368 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5369 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5370@endif binutils-bootstrap
d545f33b
PB
5371
5372
a90ef4bf
JM
5373.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5374.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5375maybe-all-stagefeedback-binutils:
5376maybe-clean-stagefeedback-binutils:
5377@if binutils-bootstrap
5378maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5379all-stagefeedback: all-stagefeedback-binutils
5380TARGET-stagefeedback-binutils = $(TARGET-binutils)
5381all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5382 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5383 @r=`${PWD_COMMAND}`; export r; \
5384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5385 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5386 $(HOST_EXPORTS) \
1f53ca9a 5387 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5388 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5389 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5390 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5391 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5392 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5393 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5394 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5395 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5396 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5397 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5398 $(TARGET-stagefeedback-binutils)
d545f33b 5399
a90ef4bf
JM
5400maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5401clean-stagefeedback: clean-stagefeedback-binutils
5402clean-stagefeedback-binutils:
9dbaa842 5403 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5404 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5405 else \
a90ef4bf 5406 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5407 $(MAKE) stagefeedback-start; \
5408 fi; \
a90ef4bf 5409 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5410 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5411@endif binutils-bootstrap
d545f33b
PB
5412
5413
5414
5415
5416
a90ef4bf
JM
5417.PHONY: check-binutils maybe-check-binutils
5418maybe-check-binutils:
5419@if binutils
5420maybe-check-binutils: check-binutils
2a4cbe27 5421
a90ef4bf 5422check-binutils:
0aed8855 5423 @: $(MAKE); $(unstage)
4fa63067 5424 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5426 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5427 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5428 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5429
a90ef4bf 5430@endif binutils
2a4cbe27 5431
a90ef4bf
JM
5432.PHONY: install-binutils maybe-install-binutils
5433maybe-install-binutils:
5434@if binutils
5435maybe-install-binutils: install-binutils
2a4cbe27 5436
a90ef4bf 5437install-binutils: installdirs
0aed8855 5438 @: $(MAKE); $(unstage)
4fa63067 5439 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5441 $(HOST_EXPORTS) \
a90ef4bf 5442 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5443 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5444
a90ef4bf 5445@endif binutils
2a4cbe27 5446
a90ef4bf
JM
5447.PHONY: install-strip-binutils maybe-install-strip-binutils
5448maybe-install-strip-binutils:
5449@if binutils
5450maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5451
a90ef4bf 5452install-strip-binutils: installdirs
9b980aa1
RW
5453 @: $(MAKE); $(unstage)
5454 @r=`${PWD_COMMAND}`; export r; \
5455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5456 $(HOST_EXPORTS) \
a90ef4bf 5457 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5458 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5459
a90ef4bf 5460@endif binutils
9b980aa1 5461
56a8fe78 5462# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5463
a90ef4bf
JM
5464.PHONY: maybe-info-binutils info-binutils
5465maybe-info-binutils:
5466@if binutils
5467maybe-info-binutils: info-binutils
4fa63067 5468
a90ef4bf
JM
5469info-binutils: \
5470 configure-binutils
5471 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5472 r=`${PWD_COMMAND}`; export r; \
5473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5474 $(HOST_EXPORTS) \
b813574b 5475 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5477 done; \
22121df0 5478 echo "Doing info in binutils"; \
a90ef4bf 5479 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5482 "RANLIB=$${RANLIB}" \
0c24b341 5483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5484 info) \
2a4cbe27
NN
5485 || exit 1
5486
a90ef4bf 5487@endif binutils
2a4cbe27 5488
a90ef4bf
JM
5489.PHONY: maybe-dvi-binutils dvi-binutils
5490maybe-dvi-binutils:
5491@if binutils
5492maybe-dvi-binutils: dvi-binutils
2a4cbe27 5493
a90ef4bf
JM
5494dvi-binutils: \
5495 configure-binutils
5496 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5497 r=`${PWD_COMMAND}`; export r; \
5498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5499 $(HOST_EXPORTS) \
b813574b 5500 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5502 done; \
22121df0 5503 echo "Doing dvi in binutils"; \
a90ef4bf 5504 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5507 "RANLIB=$${RANLIB}" \
0c24b341 5508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5509 dvi) \
2a4cbe27
NN
5510 || exit 1
5511
a90ef4bf 5512@endif binutils
2a4cbe27 5513
a90ef4bf
JM
5514.PHONY: maybe-pdf-binutils pdf-binutils
5515maybe-pdf-binutils:
5516@if binutils
5517maybe-pdf-binutils: pdf-binutils
56a8fe78 5518
a90ef4bf
JM
5519pdf-binutils: \
5520 configure-binutils
5521 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5522 r=`${PWD_COMMAND}`; export r; \
5523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5524 $(HOST_EXPORTS) \
5525 for flag in $(EXTRA_HOST_FLAGS) ; do \
5526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5527 done; \
22121df0 5528 echo "Doing pdf in binutils"; \
a90ef4bf 5529 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5532 "RANLIB=$${RANLIB}" \
0c24b341 5533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5534 pdf) \
5535 || exit 1
5536
a90ef4bf 5537@endif binutils
56a8fe78 5538
a90ef4bf
JM
5539.PHONY: maybe-html-binutils html-binutils
5540maybe-html-binutils:
5541@if binutils
5542maybe-html-binutils: html-binutils
6d389afc 5543
a90ef4bf
JM
5544html-binutils: \
5545 configure-binutils
5546 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5547 r=`${PWD_COMMAND}`; export r; \
5548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5549 $(HOST_EXPORTS) \
5550 for flag in $(EXTRA_HOST_FLAGS) ; do \
5551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5552 done; \
22121df0 5553 echo "Doing html in binutils"; \
a90ef4bf 5554 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5557 "RANLIB=$${RANLIB}" \
0c24b341 5558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5559 html) \
5560 || exit 1
5561
a90ef4bf 5562@endif binutils
6d389afc 5563
a90ef4bf
JM
5564.PHONY: maybe-TAGS-binutils TAGS-binutils
5565maybe-TAGS-binutils:
5566@if binutils
5567maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5568
a90ef4bf
JM
5569TAGS-binutils: \
5570 configure-binutils
5571 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5572 r=`${PWD_COMMAND}`; export r; \
5573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5574 $(HOST_EXPORTS) \
b813574b 5575 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5577 done; \
22121df0 5578 echo "Doing TAGS in binutils"; \
a90ef4bf 5579 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5582 "RANLIB=$${RANLIB}" \
0c24b341 5583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5584 TAGS) \
2a4cbe27
NN
5585 || exit 1
5586
a90ef4bf 5587@endif binutils
2a4cbe27 5588
a90ef4bf
JM
5589.PHONY: maybe-install-info-binutils install-info-binutils
5590maybe-install-info-binutils:
5591@if binutils
5592maybe-install-info-binutils: install-info-binutils
2a4cbe27 5593
a90ef4bf
JM
5594install-info-binutils: \
5595 configure-binutils \
5596 info-binutils
5597 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5598 r=`${PWD_COMMAND}`; export r; \
5599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5600 $(HOST_EXPORTS) \
b813574b 5601 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5603 done; \
22121df0 5604 echo "Doing install-info in binutils"; \
a90ef4bf 5605 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5608 "RANLIB=$${RANLIB}" \
0c24b341 5609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5610 install-info) \
2a4cbe27
NN
5611 || exit 1
5612
a90ef4bf 5613@endif binutils
2a4cbe27 5614
a90ef4bf
JM
5615.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5616maybe-install-pdf-binutils:
5617@if binutils
5618maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5619
a90ef4bf
JM
5620install-pdf-binutils: \
5621 configure-binutils \
5622 pdf-binutils
5623 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5624 r=`${PWD_COMMAND}`; export r; \
5625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5626 $(HOST_EXPORTS) \
5627 for flag in $(EXTRA_HOST_FLAGS) ; do \
5628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5629 done; \
22121df0 5630 echo "Doing install-pdf in binutils"; \
a90ef4bf 5631 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5634 "RANLIB=$${RANLIB}" \
0c24b341 5635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5636 install-pdf) \
5637 || exit 1
5638
a90ef4bf 5639@endif binutils
a3ca38d2 5640
a90ef4bf
JM
5641.PHONY: maybe-install-html-binutils install-html-binutils
5642maybe-install-html-binutils:
5643@if binutils
5644maybe-install-html-binutils: install-html-binutils
108a6f8e 5645
a90ef4bf
JM
5646install-html-binutils: \
5647 configure-binutils \
5648 html-binutils
5649 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5650 r=`${PWD_COMMAND}`; export r; \
5651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5652 $(HOST_EXPORTS) \
5653 for flag in $(EXTRA_HOST_FLAGS) ; do \
5654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5655 done; \
22121df0 5656 echo "Doing install-html in binutils"; \
a90ef4bf 5657 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5660 "RANLIB=$${RANLIB}" \
0c24b341 5661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5662 install-html) \
5663 || exit 1
5664
a90ef4bf 5665@endif binutils
108a6f8e 5666
a90ef4bf
JM
5667.PHONY: maybe-installcheck-binutils installcheck-binutils
5668maybe-installcheck-binutils:
5669@if binutils
5670maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5671
a90ef4bf
JM
5672installcheck-binutils: \
5673 configure-binutils
5674 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5675 r=`${PWD_COMMAND}`; export r; \
5676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5677 $(HOST_EXPORTS) \
b813574b 5678 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5680 done; \
22121df0 5681 echo "Doing installcheck in binutils"; \
a90ef4bf 5682 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5685 "RANLIB=$${RANLIB}" \
0c24b341 5686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5687 installcheck) \
2a4cbe27
NN
5688 || exit 1
5689
a90ef4bf 5690@endif binutils
2a4cbe27 5691
a90ef4bf
JM
5692.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5693maybe-mostlyclean-binutils:
5694@if binutils
5695maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5696
a90ef4bf
JM
5697mostlyclean-binutils:
5698 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5699 r=`${PWD_COMMAND}`; export r; \
5700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5701 $(HOST_EXPORTS) \
b813574b 5702 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5704 done; \
22121df0 5705 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5706 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5709 "RANLIB=$${RANLIB}" \
0c24b341 5710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5711 mostlyclean) \
2a4cbe27
NN
5712 || exit 1
5713
a90ef4bf 5714@endif binutils
2a4cbe27 5715
a90ef4bf
JM
5716.PHONY: maybe-clean-binutils clean-binutils
5717maybe-clean-binutils:
5718@if binutils
5719maybe-clean-binutils: clean-binutils
2a4cbe27 5720
a90ef4bf
JM
5721clean-binutils:
5722 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5723 r=`${PWD_COMMAND}`; export r; \
5724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5725 $(HOST_EXPORTS) \
b813574b 5726 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5728 done; \
22121df0 5729 echo "Doing clean in binutils"; \
a90ef4bf 5730 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5733 "RANLIB=$${RANLIB}" \
0c24b341 5734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5735 clean) \
2a4cbe27
NN
5736 || exit 1
5737
a90ef4bf 5738@endif binutils
2a4cbe27 5739
a90ef4bf
JM
5740.PHONY: maybe-distclean-binutils distclean-binutils
5741maybe-distclean-binutils:
5742@if binutils
5743maybe-distclean-binutils: distclean-binutils
2a4cbe27 5744
a90ef4bf
JM
5745distclean-binutils:
5746 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5747 r=`${PWD_COMMAND}`; export r; \
5748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5749 $(HOST_EXPORTS) \
b813574b 5750 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5752 done; \
22121df0 5753 echo "Doing distclean in binutils"; \
a90ef4bf 5754 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5757 "RANLIB=$${RANLIB}" \
0c24b341 5758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5759 distclean) \
2a4cbe27
NN
5760 || exit 1
5761
a90ef4bf 5762@endif binutils
2a4cbe27 5763
a90ef4bf
JM
5764.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5765maybe-maintainer-clean-binutils:
5766@if binutils
5767maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5768
a90ef4bf
JM
5769maintainer-clean-binutils:
5770 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5771 r=`${PWD_COMMAND}`; export r; \
5772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5773 $(HOST_EXPORTS) \
b813574b 5774 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5776 done; \
22121df0 5777 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5778 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5781 "RANLIB=$${RANLIB}" \
0c24b341 5782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5783 maintainer-clean) \
a2592b1b
DD
5784 || exit 1
5785
a90ef4bf 5786@endif binutils
a2592b1b 5787
2a4cbe27 5788
a7254363 5789
a90ef4bf
JM
5790.PHONY: configure-bison maybe-configure-bison
5791maybe-configure-bison:
4f0ef2d8 5792@if gcc-bootstrap
a90ef4bf 5793configure-bison: stage_current
4f0ef2d8 5794@endif gcc-bootstrap
a90ef4bf
JM
5795@if bison
5796maybe-configure-bison: configure-bison
5797configure-bison:
5798 @: $(MAKE); $(unstage)
c52c6897
PB
5799 @r=`${PWD_COMMAND}`; export r; \
5800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5801 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5802 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5803 $(HOST_EXPORTS) \
a90ef4bf
JM
5804 echo Configuring in $(HOST_SUBDIR)/bison; \
5805 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5806 case $(srcdir) in \
b00612cc 5807 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5808 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5809 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5810 esac; \
1b6c0831
L
5811 module_srcdir=bison; \
5812 $(SHELL) \
5813 $$s/$$module_srcdir/configure \
5814 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5815 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5816 --target=${target_alias} \
4fa63067 5817 || exit 1
a90ef4bf 5818@endif bison
2a4cbe27 5819
a7254363
PB
5820
5821
d545f33b 5822
8520c408 5823
a90ef4bf
JM
5824.PHONY: all-bison maybe-all-bison
5825maybe-all-bison:
5826@if gcc-bootstrap
5827all-bison: stage_current
5828@endif gcc-bootstrap
5829@if bison
5830TARGET-bison=all
5831maybe-all-bison: all-bison
5832all-bison: configure-bison
5833 @: $(MAKE); $(unstage)
c52c6897
PB
5834 @r=`${PWD_COMMAND}`; export r; \
5835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5836 $(HOST_EXPORTS) \
5837 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5838 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5839 $(TARGET-bison))
5840@endif bison
8520c408 5841
d545f33b 5842
d545f33b 5843
d545f33b 5844
a90ef4bf
JM
5845.PHONY: check-bison maybe-check-bison
5846maybe-check-bison:
5847@if bison
5848maybe-check-bison: check-bison
d545f33b 5849
a90ef4bf
JM
5850# This module is only tested in a native toolchain.
5851check-bison:
5852 @: $(MAKE); $(unstage)
22121df0 5853 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5854 r=`${PWD_COMMAND}`; export r; \
5855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5856 $(HOST_EXPORTS) \
a90ef4bf 5857 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5858 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5859 fi
d545f33b 5860
a90ef4bf 5861@endif bison
d545f33b 5862
a90ef4bf
JM
5863.PHONY: install-bison maybe-install-bison
5864maybe-install-bison:
5865@if bison
5866maybe-install-bison: install-bison
d545f33b 5867
a90ef4bf
JM
5868install-bison: installdirs
5869 @: $(MAKE); $(unstage)
c52c6897 5870 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5872 $(HOST_EXPORTS) \
5873 (cd $(HOST_SUBDIR)/bison && \
5874 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5875
a90ef4bf 5876@endif bison
a7254363 5877
a90ef4bf
JM
5878.PHONY: install-strip-bison maybe-install-strip-bison
5879maybe-install-strip-bison:
5880@if bison
5881maybe-install-strip-bison: install-strip-bison
d545f33b 5882
a90ef4bf
JM
5883install-strip-bison: installdirs
5884 @: $(MAKE); $(unstage)
d545f33b
PB
5885 @r=`${PWD_COMMAND}`; export r; \
5886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5887 $(HOST_EXPORTS) \
5888 (cd $(HOST_SUBDIR)/bison && \
5889 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5890
a90ef4bf 5891@endif bison
d545f33b 5892
a90ef4bf 5893# Other targets (info, dvi, pdf, etc.)
d545f33b 5894
a90ef4bf
JM
5895.PHONY: maybe-info-bison info-bison
5896maybe-info-bison:
5897@if bison
5898maybe-info-bison: info-bison
5899
5900info-bison: \
5901 configure-bison
5902 @: $(MAKE); $(unstage)
5903 @[ -f ./bison/Makefile ] || exit 0; \
5904 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5906 $(HOST_EXPORTS) \
a90ef4bf
JM
5907 for flag in $(EXTRA_HOST_FLAGS) ; do \
5908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5909 done; \
22121df0 5910 echo "Doing info in bison"; \
a90ef4bf
JM
5911 (cd $(HOST_SUBDIR)/bison && \
5912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5914 "RANLIB=$${RANLIB}" \
5915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5916 info) \
5917 || exit 1
d545f33b 5918
a90ef4bf 5919@endif bison
d545f33b 5920
a90ef4bf
JM
5921.PHONY: maybe-dvi-bison dvi-bison
5922maybe-dvi-bison:
5923@if bison
5924maybe-dvi-bison: dvi-bison
d545f33b 5925
a90ef4bf
JM
5926dvi-bison: \
5927 configure-bison
5928 @: $(MAKE); $(unstage)
5929 @[ -f ./bison/Makefile ] || exit 0; \
5930 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5932 $(HOST_EXPORTS) \
a90ef4bf
JM
5933 for flag in $(EXTRA_HOST_FLAGS) ; do \
5934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5935 done; \
22121df0 5936 echo "Doing dvi in bison"; \
a90ef4bf
JM
5937 (cd $(HOST_SUBDIR)/bison && \
5938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5940 "RANLIB=$${RANLIB}" \
5941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5942 dvi) \
5943 || exit 1
d545f33b 5944
a90ef4bf 5945@endif bison
d545f33b 5946
a90ef4bf
JM
5947.PHONY: maybe-pdf-bison pdf-bison
5948maybe-pdf-bison:
5949@if bison
5950maybe-pdf-bison: pdf-bison
d545f33b 5951
a90ef4bf
JM
5952pdf-bison: \
5953 configure-bison
5954 @: $(MAKE); $(unstage)
5955 @[ -f ./bison/Makefile ] || exit 0; \
5956 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5958 $(HOST_EXPORTS) \
a90ef4bf
JM
5959 for flag in $(EXTRA_HOST_FLAGS) ; do \
5960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5961 done; \
22121df0 5962 echo "Doing pdf in bison"; \
a90ef4bf
JM
5963 (cd $(HOST_SUBDIR)/bison && \
5964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5966 "RANLIB=$${RANLIB}" \
5967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5968 pdf) \
5969 || exit 1
d545f33b 5970
a90ef4bf 5971@endif bison
d545f33b 5972
a90ef4bf
JM
5973.PHONY: maybe-html-bison html-bison
5974maybe-html-bison:
5975@if bison
5976maybe-html-bison: html-bison
d545f33b 5977
a90ef4bf
JM
5978html-bison: \
5979 configure-bison
5980 @: $(MAKE); $(unstage)
5981 @[ -f ./bison/Makefile ] || exit 0; \
5982 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5984 $(HOST_EXPORTS) \
a90ef4bf
JM
5985 for flag in $(EXTRA_HOST_FLAGS) ; do \
5986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5987 done; \
22121df0 5988 echo "Doing html in bison"; \
a90ef4bf
JM
5989 (cd $(HOST_SUBDIR)/bison && \
5990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5992 "RANLIB=$${RANLIB}" \
5993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5994 html) \
5995 || exit 1
d545f33b 5996
a90ef4bf 5997@endif bison
2a4cbe27 5998
a90ef4bf
JM
5999.PHONY: maybe-TAGS-bison TAGS-bison
6000maybe-TAGS-bison:
6001@if bison
6002maybe-TAGS-bison: TAGS-bison
2a4cbe27 6003
a90ef4bf
JM
6004TAGS-bison: \
6005 configure-bison
0aed8855 6006 @: $(MAKE); $(unstage)
a90ef4bf
JM
6007 @[ -f ./bison/Makefile ] || exit 0; \
6008 r=`${PWD_COMMAND}`; export r; \
4fa63067 6009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6010 $(HOST_EXPORTS) \
a90ef4bf
JM
6011 for flag in $(EXTRA_HOST_FLAGS) ; do \
6012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6013 done; \
22121df0 6014 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6015 (cd $(HOST_SUBDIR)/bison && \
6016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6018 "RANLIB=$${RANLIB}" \
6019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6020 TAGS) \
6021 || exit 1
4fa63067 6022
a90ef4bf 6023@endif bison
4fa63067 6024
a90ef4bf
JM
6025.PHONY: maybe-install-info-bison install-info-bison
6026maybe-install-info-bison:
6027@if bison
6028maybe-install-info-bison: install-info-bison
9b980aa1 6029
a90ef4bf
JM
6030install-info-bison: \
6031 configure-bison \
6032 info-bison
9b980aa1 6033 @: $(MAKE); $(unstage)
a90ef4bf 6034 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6035 r=`${PWD_COMMAND}`; export r; \
6036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6037 $(HOST_EXPORTS) \
b813574b 6038 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6040 done; \
22121df0 6041 echo "Doing install-info in bison"; \
a90ef4bf 6042 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6045 "RANLIB=$${RANLIB}" \
0c24b341 6046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6047 install-info) \
2a4cbe27
NN
6048 || exit 1
6049
a90ef4bf 6050@endif bison
2a4cbe27 6051
a90ef4bf
JM
6052.PHONY: maybe-install-pdf-bison install-pdf-bison
6053maybe-install-pdf-bison:
6054@if bison
6055maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6056
a90ef4bf
JM
6057install-pdf-bison: \
6058 configure-bison \
6059 pdf-bison
6060 @: $(MAKE); $(unstage)
6061 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6062 r=`${PWD_COMMAND}`; export r; \
6063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6064 $(HOST_EXPORTS) \
b813574b 6065 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6067 done; \
22121df0 6068 echo "Doing install-pdf in bison"; \
a90ef4bf 6069 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6072 "RANLIB=$${RANLIB}" \
0c24b341 6073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6074 install-pdf) \
2a4cbe27
NN
6075 || exit 1
6076
a90ef4bf 6077@endif bison
2a4cbe27 6078
a90ef4bf
JM
6079.PHONY: maybe-install-html-bison install-html-bison
6080maybe-install-html-bison:
6081@if bison
6082maybe-install-html-bison: install-html-bison
56a8fe78 6083
a90ef4bf
JM
6084install-html-bison: \
6085 configure-bison \
6086 html-bison
6087 @: $(MAKE); $(unstage)
6088 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6089 r=`${PWD_COMMAND}`; export r; \
6090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6091 $(HOST_EXPORTS) \
6092 for flag in $(EXTRA_HOST_FLAGS) ; do \
6093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6094 done; \
22121df0 6095 echo "Doing install-html in bison"; \
a90ef4bf 6096 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6099 "RANLIB=$${RANLIB}" \
0c24b341 6100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6101 install-html) \
56a8fe78
DD
6102 || exit 1
6103
a90ef4bf 6104@endif bison
56a8fe78 6105
a90ef4bf
JM
6106.PHONY: maybe-installcheck-bison installcheck-bison
6107maybe-installcheck-bison:
6108@if bison
6109maybe-installcheck-bison: installcheck-bison
6d389afc 6110
a90ef4bf
JM
6111installcheck-bison: \
6112 configure-bison
6113 @: $(MAKE); $(unstage)
6114 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6115 r=`${PWD_COMMAND}`; export r; \
6116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6117 $(HOST_EXPORTS) \
6118 for flag in $(EXTRA_HOST_FLAGS) ; do \
6119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6120 done; \
22121df0 6121 echo "Doing installcheck in bison"; \
a90ef4bf 6122 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6125 "RANLIB=$${RANLIB}" \
0c24b341 6126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6127 installcheck) \
6d389afc
MS
6128 || exit 1
6129
a90ef4bf 6130@endif bison
6d389afc 6131
a90ef4bf
JM
6132.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6133maybe-mostlyclean-bison:
6134@if bison
6135maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6136
a90ef4bf
JM
6137mostlyclean-bison:
6138 @: $(MAKE); $(unstage)
6139 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6140 r=`${PWD_COMMAND}`; export r; \
6141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6142 $(HOST_EXPORTS) \
b813574b 6143 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6145 done; \
22121df0 6146 echo "Doing mostlyclean in bison"; \
a90ef4bf 6147 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6150 "RANLIB=$${RANLIB}" \
0c24b341 6151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6152 mostlyclean) \
2a4cbe27
NN
6153 || exit 1
6154
a90ef4bf 6155@endif bison
2a4cbe27 6156
a90ef4bf
JM
6157.PHONY: maybe-clean-bison clean-bison
6158maybe-clean-bison:
6159@if bison
6160maybe-clean-bison: clean-bison
2a4cbe27 6161
a90ef4bf
JM
6162clean-bison:
6163 @: $(MAKE); $(unstage)
6164 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6165 r=`${PWD_COMMAND}`; export r; \
6166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6167 $(HOST_EXPORTS) \
b813574b 6168 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6170 done; \
22121df0 6171 echo "Doing clean in bison"; \
a90ef4bf 6172 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6175 "RANLIB=$${RANLIB}" \
0c24b341 6176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6177 clean) \
2a4cbe27
NN
6178 || exit 1
6179
a90ef4bf 6180@endif bison
2a4cbe27 6181
a90ef4bf
JM
6182.PHONY: maybe-distclean-bison distclean-bison
6183maybe-distclean-bison:
6184@if bison
6185maybe-distclean-bison: distclean-bison
a3ca38d2 6186
a90ef4bf
JM
6187distclean-bison:
6188 @: $(MAKE); $(unstage)
6189 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6190 r=`${PWD_COMMAND}`; export r; \
6191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6192 $(HOST_EXPORTS) \
6193 for flag in $(EXTRA_HOST_FLAGS) ; do \
6194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6195 done; \
22121df0 6196 echo "Doing distclean in bison"; \
a90ef4bf 6197 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6200 "RANLIB=$${RANLIB}" \
0c24b341 6201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6202 distclean) \
a3ca38d2
DD
6203 || exit 1
6204
a90ef4bf 6205@endif bison
a3ca38d2 6206
a90ef4bf
JM
6207.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6208maybe-maintainer-clean-bison:
6209@if bison
6210maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6211
a90ef4bf
JM
6212maintainer-clean-bison:
6213 @: $(MAKE); $(unstage)
6214 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6215 r=`${PWD_COMMAND}`; export r; \
6216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6217 $(HOST_EXPORTS) \
6218 for flag in $(EXTRA_HOST_FLAGS) ; do \
6219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6220 done; \
22121df0 6221 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6222 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6225 "RANLIB=$${RANLIB}" \
0c24b341 6226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6227 maintainer-clean) \
108a6f8e
CD
6228 || exit 1
6229
a90ef4bf 6230@endif bison
108a6f8e 6231
2a4cbe27 6232
a90ef4bf
JM
6233
6234.PHONY: configure-cgen maybe-configure-cgen
6235maybe-configure-cgen:
6236@if gcc-bootstrap
6237configure-cgen: stage_current
6238@endif gcc-bootstrap
6239@if cgen
6240maybe-configure-cgen: configure-cgen
6241configure-cgen:
6242 @: $(MAKE); $(unstage)
6243 @r=`${PWD_COMMAND}`; export r; \
6244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6245 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6246 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6247 $(HOST_EXPORTS) \
6248 echo Configuring in $(HOST_SUBDIR)/cgen; \
6249 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6250 case $(srcdir) in \
6251 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6252 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6253 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6254 esac; \
1b6c0831
L
6255 module_srcdir=cgen; \
6256 $(SHELL) \
6257 $$s/$$module_srcdir/configure \
6258 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6259 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6260 --target=${target_alias} \
a90ef4bf
JM
6261 || exit 1
6262@endif cgen
6263
6264
6265
6266
6267
6268.PHONY: all-cgen maybe-all-cgen
6269maybe-all-cgen:
6270@if gcc-bootstrap
6271all-cgen: stage_current
6272@endif gcc-bootstrap
6273@if cgen
6274TARGET-cgen=all
6275maybe-all-cgen: all-cgen
6276all-cgen: configure-cgen
6277 @: $(MAKE); $(unstage)
6278 @r=`${PWD_COMMAND}`; export r; \
6279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6280 $(HOST_EXPORTS) \
6281 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6282 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6283 $(TARGET-cgen))
6284@endif cgen
6285
6286
6287
6288
6289.PHONY: check-cgen maybe-check-cgen
6290maybe-check-cgen:
6291@if cgen
6292maybe-check-cgen: check-cgen
6293
6294check-cgen:
6295 @: $(MAKE); $(unstage)
6296 @r=`${PWD_COMMAND}`; export r; \
6297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6298 $(HOST_EXPORTS) \
a90ef4bf
JM
6299 (cd $(HOST_SUBDIR)/cgen && \
6300 $(MAKE) $(FLAGS_TO_PASS) check)
6301
6302@endif cgen
6303
6304.PHONY: install-cgen maybe-install-cgen
6305maybe-install-cgen:
6306@if cgen
6307maybe-install-cgen: install-cgen
6308
6309install-cgen: installdirs
6310 @: $(MAKE); $(unstage)
6311 @r=`${PWD_COMMAND}`; export r; \
6312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6313 $(HOST_EXPORTS) \
6314 (cd $(HOST_SUBDIR)/cgen && \
6315 $(MAKE) $(FLAGS_TO_PASS) install)
6316
6317@endif cgen
6318
6319.PHONY: install-strip-cgen maybe-install-strip-cgen
6320maybe-install-strip-cgen:
6321@if cgen
6322maybe-install-strip-cgen: install-strip-cgen
6323
6324install-strip-cgen: installdirs
6325 @: $(MAKE); $(unstage)
6326 @r=`${PWD_COMMAND}`; export r; \
6327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6328 $(HOST_EXPORTS) \
6329 (cd $(HOST_SUBDIR)/cgen && \
6330 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6331
6332@endif cgen
6333
6334# Other targets (info, dvi, pdf, etc.)
6335
6336.PHONY: maybe-info-cgen info-cgen
6337maybe-info-cgen:
6338@if cgen
6339maybe-info-cgen: info-cgen
6340
6341info-cgen: \
6342 configure-cgen
6343 @: $(MAKE); $(unstage)
6344 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6345 r=`${PWD_COMMAND}`; export r; \
6346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6347 $(HOST_EXPORTS) \
b813574b 6348 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6350 done; \
22121df0 6351 echo "Doing info in cgen"; \
a90ef4bf 6352 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6355 "RANLIB=$${RANLIB}" \
0c24b341 6356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6357 info) \
2a4cbe27
NN
6358 || exit 1
6359
a90ef4bf 6360@endif cgen
2a4cbe27 6361
a90ef4bf
JM
6362.PHONY: maybe-dvi-cgen dvi-cgen
6363maybe-dvi-cgen:
6364@if cgen
6365maybe-dvi-cgen: dvi-cgen
2a4cbe27 6366
a90ef4bf
JM
6367dvi-cgen: \
6368 configure-cgen
6369 @: $(MAKE); $(unstage)
6370 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6371 r=`${PWD_COMMAND}`; export r; \
6372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6373 $(HOST_EXPORTS) \
b813574b 6374 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6376 done; \
22121df0 6377 echo "Doing dvi in cgen"; \
a90ef4bf 6378 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6381 "RANLIB=$${RANLIB}" \
0c24b341 6382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6383 dvi) \
2a4cbe27
NN
6384 || exit 1
6385
a90ef4bf 6386@endif cgen
2a4cbe27 6387
a90ef4bf
JM
6388.PHONY: maybe-pdf-cgen pdf-cgen
6389maybe-pdf-cgen:
6390@if cgen
6391maybe-pdf-cgen: pdf-cgen
2a4cbe27 6392
a90ef4bf
JM
6393pdf-cgen: \
6394 configure-cgen
6395 @: $(MAKE); $(unstage)
6396 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6397 r=`${PWD_COMMAND}`; export r; \
6398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6399 $(HOST_EXPORTS) \
b813574b 6400 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6402 done; \
22121df0 6403 echo "Doing pdf in cgen"; \
a90ef4bf 6404 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6407 "RANLIB=$${RANLIB}" \
0c24b341 6408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6409 pdf) \
2a4cbe27
NN
6410 || exit 1
6411
a90ef4bf 6412@endif cgen
2a4cbe27 6413
a90ef4bf
JM
6414.PHONY: maybe-html-cgen html-cgen
6415maybe-html-cgen:
6416@if cgen
6417maybe-html-cgen: html-cgen
2a4cbe27 6418
a90ef4bf
JM
6419html-cgen: \
6420 configure-cgen
6421 @: $(MAKE); $(unstage)
6422 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6423 r=`${PWD_COMMAND}`; export r; \
6424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6425 $(HOST_EXPORTS) \
b813574b 6426 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6428 done; \
22121df0 6429 echo "Doing html in cgen"; \
a90ef4bf 6430 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6433 "RANLIB=$${RANLIB}" \
0c24b341 6434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6435 html) \
2a4cbe27
NN
6436 || exit 1
6437
a90ef4bf 6438@endif cgen
2a4cbe27 6439
a90ef4bf
JM
6440.PHONY: maybe-TAGS-cgen TAGS-cgen
6441maybe-TAGS-cgen:
6442@if cgen
6443maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6444
a90ef4bf
JM
6445TAGS-cgen: \
6446 configure-cgen
6447 @: $(MAKE); $(unstage)
6448 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6449 r=`${PWD_COMMAND}`; export r; \
6450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6451 $(HOST_EXPORTS) \
b813574b 6452 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6454 done; \
22121df0 6455 echo "Doing TAGS in cgen"; \
a90ef4bf 6456 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6459 "RANLIB=$${RANLIB}" \
0c24b341 6460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6461 TAGS) \
2a4cbe27
NN
6462 || exit 1
6463
a90ef4bf 6464@endif cgen
2a4cbe27 6465
a90ef4bf
JM
6466.PHONY: maybe-install-info-cgen install-info-cgen
6467maybe-install-info-cgen:
6468@if cgen
6469maybe-install-info-cgen: install-info-cgen
2a4cbe27 6470
a90ef4bf
JM
6471install-info-cgen: \
6472 configure-cgen \
6473 info-cgen
6474 @: $(MAKE); $(unstage)
6475 @[ -f ./cgen/Makefile ] || exit 0; \
6476 r=`${PWD_COMMAND}`; export r; \
6477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6478 $(HOST_EXPORTS) \
6479 for flag in $(EXTRA_HOST_FLAGS) ; do \
6480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6481 done; \
22121df0 6482 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6483 (cd $(HOST_SUBDIR)/cgen && \
6484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6486 "RANLIB=$${RANLIB}" \
6487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6488 install-info) \
6489 || exit 1
a7254363 6490
a90ef4bf
JM
6491@endif cgen
6492
6493.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6494maybe-install-pdf-cgen:
6495@if cgen
6496maybe-install-pdf-cgen: install-pdf-cgen
6497
6498install-pdf-cgen: \
6499 configure-cgen \
6500 pdf-cgen
6501 @: $(MAKE); $(unstage)
6502 @[ -f ./cgen/Makefile ] || exit 0; \
6503 r=`${PWD_COMMAND}`; export r; \
c52c6897 6504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6505 $(HOST_EXPORTS) \
6506 for flag in $(EXTRA_HOST_FLAGS) ; do \
6507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6508 done; \
22121df0 6509 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6510 (cd $(HOST_SUBDIR)/cgen && \
6511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6513 "RANLIB=$${RANLIB}" \
6514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6515 install-pdf) \
2a4cbe27
NN
6516 || exit 1
6517
a90ef4bf 6518@endif cgen
a7254363 6519
a90ef4bf
JM
6520.PHONY: maybe-install-html-cgen install-html-cgen
6521maybe-install-html-cgen:
6522@if cgen
6523maybe-install-html-cgen: install-html-cgen
a7254363 6524
a90ef4bf
JM
6525install-html-cgen: \
6526 configure-cgen \
6527 html-cgen
6528 @: $(MAKE); $(unstage)
6529 @[ -f ./cgen/Makefile ] || exit 0; \
6530 r=`${PWD_COMMAND}`; export r; \
c52c6897 6531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6532 $(HOST_EXPORTS) \
a90ef4bf
JM
6533 for flag in $(EXTRA_HOST_FLAGS) ; do \
6534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6535 done; \
22121df0 6536 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6537 (cd $(HOST_SUBDIR)/cgen && \
6538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6540 "RANLIB=$${RANLIB}" \
6541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6542 install-html) \
6543 || exit 1
d545f33b 6544
a90ef4bf
JM
6545@endif cgen
6546
6547.PHONY: maybe-installcheck-cgen installcheck-cgen
6548maybe-installcheck-cgen:
6549@if cgen
6550maybe-installcheck-cgen: installcheck-cgen
6551
6552installcheck-cgen: \
6553 configure-cgen
6554 @: $(MAKE); $(unstage)
6555 @[ -f ./cgen/Makefile ] || exit 0; \
6556 r=`${PWD_COMMAND}`; export r; \
c52c6897 6557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6558 $(HOST_EXPORTS) \
a90ef4bf
JM
6559 for flag in $(EXTRA_HOST_FLAGS) ; do \
6560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6561 done; \
22121df0 6562 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6563 (cd $(HOST_SUBDIR)/cgen && \
6564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6566 "RANLIB=$${RANLIB}" \
6567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6568 installcheck) \
6569 || exit 1
8520c408 6570
a90ef4bf
JM
6571@endif cgen
6572
6573.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6574maybe-mostlyclean-cgen:
6575@if cgen
6576maybe-mostlyclean-cgen: mostlyclean-cgen
6577
6578mostlyclean-cgen:
6579 @: $(MAKE); $(unstage)
6580 @[ -f ./cgen/Makefile ] || exit 0; \
6581 r=`${PWD_COMMAND}`; export r; \
c52c6897 6582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6583 $(HOST_EXPORTS) \
a90ef4bf
JM
6584 for flag in $(EXTRA_HOST_FLAGS) ; do \
6585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6586 done; \
22121df0 6587 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6588 (cd $(HOST_SUBDIR)/cgen && \
6589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6591 "RANLIB=$${RANLIB}" \
6592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6593 mostlyclean) \
6594 || exit 1
8520c408 6595
a90ef4bf
JM
6596@endif cgen
6597
6598.PHONY: maybe-clean-cgen clean-cgen
6599maybe-clean-cgen:
6600@if cgen
6601maybe-clean-cgen: clean-cgen
6602
6603clean-cgen:
6604 @: $(MAKE); $(unstage)
6605 @[ -f ./cgen/Makefile ] || exit 0; \
6606 r=`${PWD_COMMAND}`; export r; \
c52c6897 6607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6608 $(HOST_EXPORTS) \
a90ef4bf
JM
6609 for flag in $(EXTRA_HOST_FLAGS) ; do \
6610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6611 done; \
22121df0 6612 echo "Doing clean in cgen"; \
a90ef4bf
JM
6613 (cd $(HOST_SUBDIR)/cgen && \
6614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6616 "RANLIB=$${RANLIB}" \
6617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6618 clean) \
6619 || exit 1
d545f33b 6620
a90ef4bf
JM
6621@endif cgen
6622
6623.PHONY: maybe-distclean-cgen distclean-cgen
6624maybe-distclean-cgen:
6625@if cgen
6626maybe-distclean-cgen: distclean-cgen
6627
6628distclean-cgen:
6629 @: $(MAKE); $(unstage)
6630 @[ -f ./cgen/Makefile ] || exit 0; \
6631 r=`${PWD_COMMAND}`; export r; \
c52c6897 6632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6633 $(HOST_EXPORTS) \
a90ef4bf
JM
6634 for flag in $(EXTRA_HOST_FLAGS) ; do \
6635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6636 done; \
22121df0 6637 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6638 (cd $(HOST_SUBDIR)/cgen && \
6639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6641 "RANLIB=$${RANLIB}" \
6642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6643 distclean) \
6644 || exit 1
d545f33b 6645
a90ef4bf
JM
6646@endif cgen
6647
6648.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6649maybe-maintainer-clean-cgen:
6650@if cgen
6651maybe-maintainer-clean-cgen: maintainer-clean-cgen
6652
6653maintainer-clean-cgen:
6654 @: $(MAKE); $(unstage)
6655 @[ -f ./cgen/Makefile ] || exit 0; \
6656 r=`${PWD_COMMAND}`; export r; \
c52c6897 6657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6658 $(HOST_EXPORTS) \
a90ef4bf
JM
6659 for flag in $(EXTRA_HOST_FLAGS) ; do \
6660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6661 done; \
22121df0 6662 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6663 (cd $(HOST_SUBDIR)/cgen && \
6664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6666 "RANLIB=$${RANLIB}" \
6667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6668 maintainer-clean) \
6669 || exit 1
6670
6671@endif cgen
6672
6673
6674
6675.PHONY: configure-dejagnu maybe-configure-dejagnu
6676maybe-configure-dejagnu:
6677@if gcc-bootstrap
6678configure-dejagnu: stage_current
6679@endif gcc-bootstrap
6680@if dejagnu
6681maybe-configure-dejagnu: configure-dejagnu
6682configure-dejagnu:
6683 @: $(MAKE); $(unstage)
6684 @r=`${PWD_COMMAND}`; export r; \
6685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6686 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6687 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6688 $(HOST_EXPORTS) \
6689 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6690 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6691 case $(srcdir) in \
6692 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6693 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6694 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6695 esac; \
1b6c0831
L
6696 module_srcdir=dejagnu; \
6697 $(SHELL) \
6698 $$s/$$module_srcdir/configure \
6699 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6700 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6701 --target=${target_alias} \
a90ef4bf
JM
6702 || exit 1
6703@endif dejagnu
d545f33b
PB
6704
6705
6706
6707
6708
a90ef4bf
JM
6709.PHONY: all-dejagnu maybe-all-dejagnu
6710maybe-all-dejagnu:
4f0ef2d8 6711@if gcc-bootstrap
a90ef4bf 6712all-dejagnu: stage_current
4f0ef2d8 6713@endif gcc-bootstrap
a90ef4bf
JM
6714@if dejagnu
6715TARGET-dejagnu=all
6716maybe-all-dejagnu: all-dejagnu
6717all-dejagnu: configure-dejagnu
6718 @: $(MAKE); $(unstage)
c52c6897 6719 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6721 $(HOST_EXPORTS) \
a90ef4bf 6722 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6723 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6724 $(TARGET-dejagnu))
6725@endif dejagnu
4fa63067 6726
a7254363 6727
4fa63067 6728
a90ef4bf
JM
6729
6730.PHONY: check-dejagnu maybe-check-dejagnu
6731maybe-check-dejagnu:
6732@if dejagnu
6733maybe-check-dejagnu: check-dejagnu
6734
6735check-dejagnu:
6736 @: $(MAKE); $(unstage)
4fa63067
NN
6737 @r=`${PWD_COMMAND}`; export r; \
6738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6739 $(HOST_EXPORTS) \
a90ef4bf
JM
6740 (cd $(HOST_SUBDIR)/dejagnu && \
6741 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6742
a90ef4bf 6743@endif dejagnu
2a4cbe27 6744
a90ef4bf
JM
6745.PHONY: install-dejagnu maybe-install-dejagnu
6746maybe-install-dejagnu:
6747@if dejagnu
6748maybe-install-dejagnu: install-dejagnu
2a4cbe27 6749
a90ef4bf
JM
6750install-dejagnu: installdirs
6751 @: $(MAKE); $(unstage)
4fa63067 6752 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6754 $(HOST_EXPORTS) \
a90ef4bf
JM
6755 (cd $(HOST_SUBDIR)/dejagnu && \
6756 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6757
a90ef4bf 6758@endif dejagnu
d545f33b 6759
a90ef4bf
JM
6760.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6761maybe-install-strip-dejagnu:
6762@if dejagnu
6763maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6764
a90ef4bf 6765install-strip-dejagnu: installdirs
9b980aa1
RW
6766 @: $(MAKE); $(unstage)
6767 @r=`${PWD_COMMAND}`; export r; \
6768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6769 $(HOST_EXPORTS) \
a90ef4bf 6770 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6771 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6772
a90ef4bf 6773@endif dejagnu
9b980aa1 6774
56a8fe78 6775# Other targets (info, dvi, pdf, etc.)
d545f33b 6776
a90ef4bf
JM
6777.PHONY: maybe-info-dejagnu info-dejagnu
6778maybe-info-dejagnu:
6779@if dejagnu
6780maybe-info-dejagnu: info-dejagnu
d545f33b 6781
a90ef4bf
JM
6782info-dejagnu: \
6783 configure-dejagnu
6784 @: $(MAKE); $(unstage)
6785 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6786 r=`${PWD_COMMAND}`; export r; \
6787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6788 $(HOST_EXPORTS) \
6789 for flag in $(EXTRA_HOST_FLAGS) ; do \
6790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6791 done; \
22121df0 6792 echo "Doing info in dejagnu"; \
a90ef4bf 6793 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6796 "RANLIB=$${RANLIB}" \
0c24b341 6797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6798 info) \
6799 || exit 1
6800
a90ef4bf 6801@endif dejagnu
d545f33b 6802
a90ef4bf
JM
6803.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6804maybe-dvi-dejagnu:
6805@if dejagnu
6806maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6807
a90ef4bf
JM
6808dvi-dejagnu: \
6809 configure-dejagnu
6810 @: $(MAKE); $(unstage)
6811 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6812 r=`${PWD_COMMAND}`; export r; \
6813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6814 $(HOST_EXPORTS) \
6815 for flag in $(EXTRA_HOST_FLAGS) ; do \
6816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6817 done; \
22121df0 6818 echo "Doing dvi in dejagnu"; \
a90ef4bf 6819 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6822 "RANLIB=$${RANLIB}" \
0c24b341 6823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6824 dvi) \
2a4cbe27
NN
6825 || exit 1
6826
a90ef4bf 6827@endif dejagnu
2a4cbe27 6828
a90ef4bf
JM
6829.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6830maybe-pdf-dejagnu:
6831@if dejagnu
6832maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6833
a90ef4bf
JM
6834pdf-dejagnu: \
6835 configure-dejagnu
6836 @: $(MAKE); $(unstage)
6837 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6838 r=`${PWD_COMMAND}`; export r; \
6839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6840 $(HOST_EXPORTS) \
6841 for flag in $(EXTRA_HOST_FLAGS) ; do \
6842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6843 done; \
22121df0 6844 echo "Doing pdf in dejagnu"; \
a90ef4bf 6845 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6848 "RANLIB=$${RANLIB}" \
0c24b341 6849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6850 pdf) \
6851 || exit 1
6852
a90ef4bf 6853@endif dejagnu
56a8fe78 6854
a90ef4bf
JM
6855.PHONY: maybe-html-dejagnu html-dejagnu
6856maybe-html-dejagnu:
6857@if dejagnu
6858maybe-html-dejagnu: html-dejagnu
6d389afc 6859
a90ef4bf
JM
6860html-dejagnu: \
6861 configure-dejagnu
6862 @: $(MAKE); $(unstage)
6863 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6864 r=`${PWD_COMMAND}`; export r; \
6865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6866 $(HOST_EXPORTS) \
6867 for flag in $(EXTRA_HOST_FLAGS) ; do \
6868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6869 done; \
22121df0 6870 echo "Doing html in dejagnu"; \
a90ef4bf 6871 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6874 "RANLIB=$${RANLIB}" \
0c24b341 6875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6876 html) \
6877 || exit 1
6878
a90ef4bf 6879@endif dejagnu
6d389afc 6880
a90ef4bf
JM
6881.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6882maybe-TAGS-dejagnu:
6883@if dejagnu
6884maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6885
a90ef4bf
JM
6886TAGS-dejagnu: \
6887 configure-dejagnu
6888 @: $(MAKE); $(unstage)
6889 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6890 r=`${PWD_COMMAND}`; export r; \
6891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6892 $(HOST_EXPORTS) \
b813574b 6893 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6895 done; \
22121df0 6896 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6897 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6900 "RANLIB=$${RANLIB}" \
0c24b341 6901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6902 TAGS) \
2a4cbe27
NN
6903 || exit 1
6904
a90ef4bf 6905@endif dejagnu
2a4cbe27 6906
a90ef4bf
JM
6907.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6908maybe-install-info-dejagnu:
6909@if dejagnu
6910maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6911
a90ef4bf
JM
6912install-info-dejagnu: \
6913 configure-dejagnu \
6914 info-dejagnu
6915 @: $(MAKE); $(unstage)
6916 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6917 r=`${PWD_COMMAND}`; export r; \
6918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6919 $(HOST_EXPORTS) \
b813574b 6920 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6922 done; \
22121df0 6923 echo "Doing install-info in dejagnu"; \
a90ef4bf 6924 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6927 "RANLIB=$${RANLIB}" \
0c24b341 6928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6929 install-info) \
2a4cbe27
NN
6930 || exit 1
6931
a90ef4bf 6932@endif dejagnu
2a4cbe27 6933
a90ef4bf
JM
6934.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6935maybe-install-pdf-dejagnu:
6936@if dejagnu
6937maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6938
a90ef4bf
JM
6939install-pdf-dejagnu: \
6940 configure-dejagnu \
6941 pdf-dejagnu
6942 @: $(MAKE); $(unstage)
6943 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6944 r=`${PWD_COMMAND}`; export r; \
6945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6946 $(HOST_EXPORTS) \
6947 for flag in $(EXTRA_HOST_FLAGS) ; do \
6948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6949 done; \
22121df0 6950 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 6951 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6954 "RANLIB=$${RANLIB}" \
0c24b341 6955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6956 install-pdf) \
6957 || exit 1
6958
a90ef4bf 6959@endif dejagnu
a3ca38d2 6960
a90ef4bf
JM
6961.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6962maybe-install-html-dejagnu:
6963@if dejagnu
6964maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6965
a90ef4bf
JM
6966install-html-dejagnu: \
6967 configure-dejagnu \
6968 html-dejagnu
6969 @: $(MAKE); $(unstage)
6970 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6971 r=`${PWD_COMMAND}`; export r; \
6972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6973 $(HOST_EXPORTS) \
6974 for flag in $(EXTRA_HOST_FLAGS) ; do \
6975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6976 done; \
22121df0 6977 echo "Doing install-html in dejagnu"; \
a90ef4bf 6978 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
6979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6981 "RANLIB=$${RANLIB}" \
0c24b341 6982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6983 install-html) \
6984 || exit 1
6985
a90ef4bf 6986@endif dejagnu
108a6f8e 6987
a90ef4bf
JM
6988.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6989maybe-installcheck-dejagnu:
6990@if dejagnu
6991maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 6992
a90ef4bf
JM
6993installcheck-dejagnu: \
6994 configure-dejagnu
6995 @: $(MAKE); $(unstage)
6996 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6997 r=`${PWD_COMMAND}`; export r; \
6998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6999 $(HOST_EXPORTS) \
b813574b 7000 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7002 done; \
22121df0 7003 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7004 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7007 "RANLIB=$${RANLIB}" \
0c24b341 7008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7009 installcheck) \
2a4cbe27
NN
7010 || exit 1
7011
a90ef4bf 7012@endif dejagnu
2a4cbe27 7013
a90ef4bf
JM
7014.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7015maybe-mostlyclean-dejagnu:
7016@if dejagnu
7017maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7018
a90ef4bf
JM
7019mostlyclean-dejagnu:
7020 @: $(MAKE); $(unstage)
7021 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7022 r=`${PWD_COMMAND}`; export r; \
7023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7024 $(HOST_EXPORTS) \
b813574b 7025 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7027 done; \
22121df0 7028 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7029 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7032 "RANLIB=$${RANLIB}" \
0c24b341 7033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7034 mostlyclean) \
2a4cbe27
NN
7035 || exit 1
7036
a90ef4bf 7037@endif dejagnu
2a4cbe27 7038
a90ef4bf
JM
7039.PHONY: maybe-clean-dejagnu clean-dejagnu
7040maybe-clean-dejagnu:
7041@if dejagnu
7042maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7043
a90ef4bf
JM
7044clean-dejagnu:
7045 @: $(MAKE); $(unstage)
7046 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7047 r=`${PWD_COMMAND}`; export r; \
7048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7049 $(HOST_EXPORTS) \
b813574b 7050 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7052 done; \
22121df0 7053 echo "Doing clean in dejagnu"; \
a90ef4bf 7054 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7057 "RANLIB=$${RANLIB}" \
0c24b341 7058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7059 clean) \
2a4cbe27
NN
7060 || exit 1
7061
a90ef4bf 7062@endif dejagnu
2a4cbe27 7063
a90ef4bf
JM
7064.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7065maybe-distclean-dejagnu:
7066@if dejagnu
7067maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7068
a90ef4bf
JM
7069distclean-dejagnu:
7070 @: $(MAKE); $(unstage)
7071 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7072 r=`${PWD_COMMAND}`; export r; \
7073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7074 $(HOST_EXPORTS) \
b813574b 7075 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7077 done; \
22121df0 7078 echo "Doing distclean in dejagnu"; \
a90ef4bf 7079 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7082 "RANLIB=$${RANLIB}" \
0c24b341 7083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7084 distclean) \
2a4cbe27
NN
7085 || exit 1
7086
a90ef4bf 7087@endif dejagnu
2a4cbe27 7088
a90ef4bf
JM
7089.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7090maybe-maintainer-clean-dejagnu:
7091@if dejagnu
7092maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7093
a90ef4bf
JM
7094maintainer-clean-dejagnu:
7095 @: $(MAKE); $(unstage)
7096 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7097 r=`${PWD_COMMAND}`; export r; \
7098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7099 $(HOST_EXPORTS) \
b813574b 7100 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7102 done; \
22121df0 7103 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7104 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7107 "RANLIB=$${RANLIB}" \
0c24b341 7108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7109 maintainer-clean) \
2a4cbe27
NN
7110 || exit 1
7111
a90ef4bf 7112@endif dejagnu
2a4cbe27 7113
2a4cbe27 7114
a7254363 7115
a90ef4bf
JM
7116.PHONY: configure-etc maybe-configure-etc
7117maybe-configure-etc:
4f0ef2d8 7118@if gcc-bootstrap
a90ef4bf 7119configure-etc: stage_current
4f0ef2d8 7120@endif gcc-bootstrap
a90ef4bf
JM
7121@if etc
7122maybe-configure-etc: configure-etc
7123configure-etc:
0aed8855 7124 @: $(MAKE); $(unstage)
c52c6897 7125 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7127 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7128 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7129 $(HOST_EXPORTS) \
a90ef4bf
JM
7130 echo Configuring in $(HOST_SUBDIR)/etc; \
7131 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7132 case $(srcdir) in \
b00612cc 7133 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7134 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7135 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7136 esac; \
1b6c0831
L
7137 module_srcdir=etc; \
7138 $(SHELL) \
7139 $$s/$$module_srcdir/configure \
7140 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7141 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7142 --target=${target_alias} \
2a4cbe27 7143 || exit 1
a90ef4bf 7144@endif etc
2a4cbe27 7145
a7254363
PB
7146
7147
d545f33b
PB
7148
7149
a90ef4bf
JM
7150.PHONY: all-etc maybe-all-etc
7151maybe-all-etc:
4f0ef2d8 7152@if gcc-bootstrap
a90ef4bf 7153all-etc: stage_current
4f0ef2d8 7154@endif gcc-bootstrap
a90ef4bf
JM
7155@if etc
7156TARGET-etc=all
7157maybe-all-etc: all-etc
7158all-etc: configure-etc
0aed8855 7159 @: $(MAKE); $(unstage)
4fa63067
NN
7160 @r=`${PWD_COMMAND}`; export r; \
7161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7162 $(HOST_EXPORTS) \
a90ef4bf 7163 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7164 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7165 $(TARGET-etc))
7166@endif etc
2a4cbe27 7167
a7254363 7168
d545f33b
PB
7169
7170
a90ef4bf
JM
7171.PHONY: check-etc maybe-check-etc
7172maybe-check-etc:
7173@if etc
7174maybe-check-etc: check-etc
2a4cbe27 7175
a90ef4bf 7176check-etc:
0aed8855 7177 @: $(MAKE); $(unstage)
a90ef4bf
JM
7178 @r=`${PWD_COMMAND}`; export r; \
7179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7180 $(HOST_EXPORTS) \
a90ef4bf
JM
7181 (cd $(HOST_SUBDIR)/etc && \
7182 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7183
a90ef4bf 7184@endif etc
4fa63067 7185
a90ef4bf
JM
7186.PHONY: install-etc maybe-install-etc
7187maybe-install-etc:
7188@if etc
7189maybe-install-etc: install-etc
4fa63067 7190
a90ef4bf 7191install-etc: installdirs
0aed8855 7192 @: $(MAKE); $(unstage)
4fa63067 7193 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7195 $(HOST_EXPORTS) \
a90ef4bf 7196 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7197 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7198
a90ef4bf 7199@endif etc
2a4cbe27 7200
a90ef4bf
JM
7201.PHONY: install-strip-etc maybe-install-strip-etc
7202maybe-install-strip-etc:
7203@if etc
7204maybe-install-strip-etc: install-strip-etc
9b980aa1 7205
a90ef4bf 7206install-strip-etc: installdirs
9b980aa1
RW
7207 @: $(MAKE); $(unstage)
7208 @r=`${PWD_COMMAND}`; export r; \
7209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7210 $(HOST_EXPORTS) \
a90ef4bf 7211 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7212 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7213
a90ef4bf 7214@endif etc
9b980aa1 7215
56a8fe78 7216# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7217
a90ef4bf
JM
7218.PHONY: maybe-info-etc info-etc
7219maybe-info-etc:
7220@if etc
7221maybe-info-etc: info-etc
4fa63067 7222
a90ef4bf
JM
7223info-etc: \
7224 configure-etc
0aed8855 7225 @: $(MAKE); $(unstage)
a90ef4bf 7226 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7227 r=`${PWD_COMMAND}`; export r; \
7228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7229 $(HOST_EXPORTS) \
b813574b 7230 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7232 done; \
22121df0 7233 echo "Doing info in etc"; \
a90ef4bf 7234 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7237 "RANLIB=$${RANLIB}" \
0c24b341 7238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7239 info) \
2a4cbe27
NN
7240 || exit 1
7241
a90ef4bf 7242@endif etc
2a4cbe27 7243
a90ef4bf
JM
7244.PHONY: maybe-dvi-etc dvi-etc
7245maybe-dvi-etc:
7246@if etc
7247maybe-dvi-etc: dvi-etc
2a4cbe27 7248
a90ef4bf
JM
7249dvi-etc: \
7250 configure-etc
0aed8855 7251 @: $(MAKE); $(unstage)
a90ef4bf 7252 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7253 r=`${PWD_COMMAND}`; export r; \
7254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7255 $(HOST_EXPORTS) \
b813574b 7256 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7258 done; \
22121df0 7259 echo "Doing dvi in etc"; \
a90ef4bf 7260 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7263 "RANLIB=$${RANLIB}" \
0c24b341 7264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7265 dvi) \
2a4cbe27
NN
7266 || exit 1
7267
a90ef4bf 7268@endif etc
2a4cbe27 7269
a90ef4bf
JM
7270.PHONY: maybe-pdf-etc pdf-etc
7271maybe-pdf-etc:
7272@if etc
7273maybe-pdf-etc: pdf-etc
56a8fe78 7274
a90ef4bf
JM
7275pdf-etc: \
7276 configure-etc
56a8fe78 7277 @: $(MAKE); $(unstage)
a90ef4bf 7278 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7279 r=`${PWD_COMMAND}`; export r; \
7280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7281 $(HOST_EXPORTS) \
7282 for flag in $(EXTRA_HOST_FLAGS) ; do \
7283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7284 done; \
22121df0 7285 echo "Doing pdf in etc"; \
a90ef4bf 7286 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7289 "RANLIB=$${RANLIB}" \
0c24b341 7290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7291 pdf) \
7292 || exit 1
7293
a90ef4bf 7294@endif etc
56a8fe78 7295
a90ef4bf
JM
7296.PHONY: maybe-html-etc html-etc
7297maybe-html-etc:
7298@if etc
7299maybe-html-etc: html-etc
6d389afc 7300
a90ef4bf
JM
7301html-etc: \
7302 configure-etc
0aed8855 7303 @: $(MAKE); $(unstage)
a90ef4bf 7304 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7305 r=`${PWD_COMMAND}`; export r; \
7306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7307 $(HOST_EXPORTS) \
7308 for flag in $(EXTRA_HOST_FLAGS) ; do \
7309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7310 done; \
22121df0 7311 echo "Doing html in etc"; \
a90ef4bf 7312 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7315 "RANLIB=$${RANLIB}" \
0c24b341 7316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7317 html) \
7318 || exit 1
7319
a90ef4bf 7320@endif etc
6d389afc 7321
a90ef4bf
JM
7322.PHONY: maybe-TAGS-etc TAGS-etc
7323maybe-TAGS-etc:
7324@if etc
7325maybe-TAGS-etc: TAGS-etc
2a4cbe27 7326
a90ef4bf
JM
7327TAGS-etc: \
7328 configure-etc
0aed8855 7329 @: $(MAKE); $(unstage)
a90ef4bf 7330 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7331 r=`${PWD_COMMAND}`; export r; \
7332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7333 $(HOST_EXPORTS) \
b813574b 7334 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7336 done; \
22121df0 7337 echo "Doing TAGS in etc"; \
a90ef4bf 7338 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7341 "RANLIB=$${RANLIB}" \
0c24b341 7342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7343 TAGS) \
2a4cbe27
NN
7344 || exit 1
7345
a90ef4bf 7346@endif etc
2a4cbe27 7347
a90ef4bf
JM
7348.PHONY: maybe-install-info-etc install-info-etc
7349maybe-install-info-etc:
7350@if etc
7351maybe-install-info-etc: install-info-etc
2a4cbe27 7352
a90ef4bf
JM
7353install-info-etc: \
7354 configure-etc \
7355 info-etc
0aed8855 7356 @: $(MAKE); $(unstage)
a90ef4bf 7357 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7358 r=`${PWD_COMMAND}`; export r; \
7359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7360 $(HOST_EXPORTS) \
b813574b 7361 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7363 done; \
22121df0 7364 echo "Doing install-info in etc"; \
a90ef4bf 7365 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7368 "RANLIB=$${RANLIB}" \
0c24b341 7369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7370 install-info) \
2a4cbe27
NN
7371 || exit 1
7372
a90ef4bf 7373@endif etc
2a4cbe27 7374
a90ef4bf
JM
7375.PHONY: maybe-install-pdf-etc install-pdf-etc
7376maybe-install-pdf-etc:
7377@if etc
7378maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7379
a90ef4bf
JM
7380install-pdf-etc: \
7381 configure-etc \
7382 pdf-etc
a3ca38d2 7383 @: $(MAKE); $(unstage)
a90ef4bf 7384 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7385 r=`${PWD_COMMAND}`; export r; \
7386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7387 $(HOST_EXPORTS) \
7388 for flag in $(EXTRA_HOST_FLAGS) ; do \
7389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7390 done; \
22121df0 7391 echo "Doing install-pdf in etc"; \
a90ef4bf 7392 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7395 "RANLIB=$${RANLIB}" \
0c24b341 7396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7397 install-pdf) \
7398 || exit 1
7399
a90ef4bf 7400@endif etc
a3ca38d2 7401
a90ef4bf
JM
7402.PHONY: maybe-install-html-etc install-html-etc
7403maybe-install-html-etc:
7404@if etc
7405maybe-install-html-etc: install-html-etc
108a6f8e 7406
a90ef4bf
JM
7407install-html-etc: \
7408 configure-etc \
7409 html-etc
108a6f8e 7410 @: $(MAKE); $(unstage)
a90ef4bf 7411 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7412 r=`${PWD_COMMAND}`; export r; \
7413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7414 $(HOST_EXPORTS) \
7415 for flag in $(EXTRA_HOST_FLAGS) ; do \
7416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7417 done; \
22121df0 7418 echo "Doing install-html in etc"; \
a90ef4bf 7419 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7422 "RANLIB=$${RANLIB}" \
0c24b341 7423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7424 install-html) \
7425 || exit 1
7426
a90ef4bf 7427@endif etc
108a6f8e 7428
a90ef4bf
JM
7429.PHONY: maybe-installcheck-etc installcheck-etc
7430maybe-installcheck-etc:
7431@if etc
7432maybe-installcheck-etc: installcheck-etc
2a4cbe27 7433
a90ef4bf
JM
7434installcheck-etc: \
7435 configure-etc
0aed8855 7436 @: $(MAKE); $(unstage)
a90ef4bf 7437 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7438 r=`${PWD_COMMAND}`; export r; \
7439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7440 $(HOST_EXPORTS) \
b813574b 7441 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7443 done; \
22121df0 7444 echo "Doing installcheck in etc"; \
a90ef4bf 7445 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7448 "RANLIB=$${RANLIB}" \
0c24b341 7449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7450 installcheck) \
2a4cbe27
NN
7451 || exit 1
7452
a90ef4bf 7453@endif etc
2a4cbe27 7454
a90ef4bf
JM
7455.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7456maybe-mostlyclean-etc:
7457@if etc
7458maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7459
a90ef4bf 7460mostlyclean-etc:
0aed8855 7461 @: $(MAKE); $(unstage)
a90ef4bf 7462 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7463 r=`${PWD_COMMAND}`; export r; \
7464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7465 $(HOST_EXPORTS) \
b813574b 7466 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7468 done; \
22121df0 7469 echo "Doing mostlyclean in etc"; \
a90ef4bf 7470 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7473 "RANLIB=$${RANLIB}" \
0c24b341 7474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7475 mostlyclean) \
2a4cbe27
NN
7476 || exit 1
7477
a90ef4bf 7478@endif etc
2a4cbe27 7479
a90ef4bf
JM
7480.PHONY: maybe-clean-etc clean-etc
7481maybe-clean-etc:
7482@if etc
7483maybe-clean-etc: clean-etc
2a4cbe27 7484
a90ef4bf 7485clean-etc:
0aed8855 7486 @: $(MAKE); $(unstage)
a90ef4bf 7487 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7488 r=`${PWD_COMMAND}`; export r; \
7489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7490 $(HOST_EXPORTS) \
b813574b 7491 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7493 done; \
22121df0 7494 echo "Doing clean in etc"; \
a90ef4bf 7495 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7498 "RANLIB=$${RANLIB}" \
0c24b341 7499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7500 clean) \
2a4cbe27
NN
7501 || exit 1
7502
a90ef4bf 7503@endif etc
2a4cbe27 7504
a90ef4bf
JM
7505.PHONY: maybe-distclean-etc distclean-etc
7506maybe-distclean-etc:
7507@if etc
7508maybe-distclean-etc: distclean-etc
2a4cbe27 7509
a90ef4bf 7510distclean-etc:
0aed8855 7511 @: $(MAKE); $(unstage)
a90ef4bf 7512 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7513 r=`${PWD_COMMAND}`; export r; \
7514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7515 $(HOST_EXPORTS) \
b813574b 7516 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7518 done; \
22121df0 7519 echo "Doing distclean in etc"; \
a90ef4bf 7520 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7523 "RANLIB=$${RANLIB}" \
0c24b341 7524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7525 distclean) \
2a4cbe27
NN
7526 || exit 1
7527
a90ef4bf 7528@endif etc
2a4cbe27 7529
a90ef4bf
JM
7530.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7531maybe-maintainer-clean-etc:
7532@if etc
7533maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7534
a90ef4bf 7535maintainer-clean-etc:
0aed8855 7536 @: $(MAKE); $(unstage)
a90ef4bf 7537 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7538 r=`${PWD_COMMAND}`; export r; \
7539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7540 $(HOST_EXPORTS) \
b813574b 7541 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7543 done; \
22121df0 7544 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7545 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7548 "RANLIB=$${RANLIB}" \
0c24b341 7549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7550 maintainer-clean) \
2a4cbe27
NN
7551 || exit 1
7552
a90ef4bf 7553@endif etc
2a4cbe27 7554
2a4cbe27 7555
a7254363 7556
a90ef4bf
JM
7557.PHONY: configure-fastjar maybe-configure-fastjar
7558maybe-configure-fastjar:
4f0ef2d8 7559@if gcc-bootstrap
a90ef4bf 7560configure-fastjar: stage_current
4f0ef2d8 7561@endif gcc-bootstrap
a90ef4bf
JM
7562@if fastjar
7563maybe-configure-fastjar: configure-fastjar
7564configure-fastjar:
0aed8855 7565 @: $(MAKE); $(unstage)
c52c6897 7566 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7568 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7569 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7570 $(HOST_EXPORTS) \
a90ef4bf
JM
7571 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7572 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7573 case $(srcdir) in \
b00612cc 7574 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7575 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7576 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7577 esac; \
1b6c0831
L
7578 module_srcdir=fastjar; \
7579 $(SHELL) \
7580 $$s/$$module_srcdir/configure \
7581 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7582 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7583 --target=${target_alias} \
4fa63067 7584 || exit 1
a90ef4bf 7585@endif fastjar
4fa63067 7586
a7254363
PB
7587
7588
d545f33b
PB
7589
7590
a90ef4bf
JM
7591.PHONY: all-fastjar maybe-all-fastjar
7592maybe-all-fastjar:
4f0ef2d8 7593@if gcc-bootstrap
a90ef4bf 7594all-fastjar: stage_current
4f0ef2d8 7595@endif gcc-bootstrap
a90ef4bf
JM
7596@if fastjar
7597TARGET-fastjar=all
7598maybe-all-fastjar: all-fastjar
7599all-fastjar: configure-fastjar
0aed8855 7600 @: $(MAKE); $(unstage)
4fa63067
NN
7601 @r=`${PWD_COMMAND}`; export r; \
7602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7603 $(HOST_EXPORTS) \
a90ef4bf 7604 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7605 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7606 $(TARGET-fastjar))
7607@endif fastjar
4fa63067 7608
a7254363 7609
d545f33b
PB
7610
7611
a90ef4bf
JM
7612.PHONY: check-fastjar maybe-check-fastjar
7613maybe-check-fastjar:
7614@if fastjar
7615maybe-check-fastjar: check-fastjar
4fa63067
NN
7616
7617# This module is only tested in a native toolchain.
a90ef4bf 7618check-fastjar:
0aed8855 7619 @: $(MAKE); $(unstage)
22121df0 7620 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7621 r=`${PWD_COMMAND}`; export r; \
7622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7623 $(HOST_EXPORTS) \
a90ef4bf 7624 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7625 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7626 fi
7627
a90ef4bf 7628@endif fastjar
4fa63067 7629
a90ef4bf
JM
7630.PHONY: install-fastjar maybe-install-fastjar
7631maybe-install-fastjar:
7632@if fastjar
7633maybe-install-fastjar: install-fastjar
4fa63067 7634
a90ef4bf 7635install-fastjar: installdirs
0aed8855 7636 @: $(MAKE); $(unstage)
4fa63067
NN
7637 @r=`${PWD_COMMAND}`; export r; \
7638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7639 $(HOST_EXPORTS) \
a90ef4bf 7640 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7641 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7642
a90ef4bf 7643@endif fastjar
4fa63067 7644
a90ef4bf
JM
7645.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7646maybe-install-strip-fastjar:
7647@if fastjar
7648maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7649
a90ef4bf 7650install-strip-fastjar: installdirs
9b980aa1
RW
7651 @: $(MAKE); $(unstage)
7652 @r=`${PWD_COMMAND}`; export r; \
7653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7654 $(HOST_EXPORTS) \
a90ef4bf 7655 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7656 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7657
a90ef4bf 7658@endif fastjar
9b980aa1 7659
56a8fe78 7660# Other targets (info, dvi, pdf, etc.)
4fa63067 7661
a90ef4bf
JM
7662.PHONY: maybe-info-fastjar info-fastjar
7663maybe-info-fastjar:
7664@if fastjar
7665maybe-info-fastjar: info-fastjar
4fa63067 7666
a90ef4bf
JM
7667info-fastjar: \
7668 configure-fastjar
0aed8855 7669 @: $(MAKE); $(unstage)
a90ef4bf 7670 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7671 r=`${PWD_COMMAND}`; export r; \
7672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7673 $(HOST_EXPORTS) \
b813574b 7674 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7676 done; \
22121df0 7677 echo "Doing info in fastjar"; \
a90ef4bf 7678 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7681 "RANLIB=$${RANLIB}" \
0c24b341 7682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7683 info) \
2a4cbe27
NN
7684 || exit 1
7685
a90ef4bf 7686@endif fastjar
2a4cbe27 7687
a90ef4bf
JM
7688.PHONY: maybe-dvi-fastjar dvi-fastjar
7689maybe-dvi-fastjar:
7690@if fastjar
7691maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7692
a90ef4bf
JM
7693dvi-fastjar: \
7694 configure-fastjar
0aed8855 7695 @: $(MAKE); $(unstage)
a90ef4bf 7696 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7697 r=`${PWD_COMMAND}`; export r; \
7698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7699 $(HOST_EXPORTS) \
b813574b 7700 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7702 done; \
22121df0 7703 echo "Doing dvi in fastjar"; \
a90ef4bf 7704 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7707 "RANLIB=$${RANLIB}" \
0c24b341 7708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7709 dvi) \
2a4cbe27
NN
7710 || exit 1
7711
a90ef4bf 7712@endif fastjar
2a4cbe27 7713
a90ef4bf
JM
7714.PHONY: maybe-pdf-fastjar pdf-fastjar
7715maybe-pdf-fastjar:
7716@if fastjar
7717maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7718
a90ef4bf
JM
7719pdf-fastjar: \
7720 configure-fastjar
56a8fe78 7721 @: $(MAKE); $(unstage)
a90ef4bf 7722 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7723 r=`${PWD_COMMAND}`; export r; \
7724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7725 $(HOST_EXPORTS) \
7726 for flag in $(EXTRA_HOST_FLAGS) ; do \
7727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7728 done; \
22121df0 7729 echo "Doing pdf in fastjar"; \
a90ef4bf 7730 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7733 "RANLIB=$${RANLIB}" \
0c24b341 7734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7735 pdf) \
7736 || exit 1
7737
a90ef4bf 7738@endif fastjar
56a8fe78 7739
a90ef4bf
JM
7740.PHONY: maybe-html-fastjar html-fastjar
7741maybe-html-fastjar:
7742@if fastjar
7743maybe-html-fastjar: html-fastjar
6d389afc 7744
a90ef4bf
JM
7745html-fastjar: \
7746 configure-fastjar
0aed8855 7747 @: $(MAKE); $(unstage)
a90ef4bf 7748 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7749 r=`${PWD_COMMAND}`; export r; \
7750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7751 $(HOST_EXPORTS) \
7752 for flag in $(EXTRA_HOST_FLAGS) ; do \
7753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7754 done; \
22121df0 7755 echo "Doing html in fastjar"; \
a90ef4bf 7756 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7759 "RANLIB=$${RANLIB}" \
0c24b341 7760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7761 html) \
7762 || exit 1
7763
a90ef4bf 7764@endif fastjar
6d389afc 7765
a90ef4bf
JM
7766.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7767maybe-TAGS-fastjar:
7768@if fastjar
7769maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7770
a90ef4bf
JM
7771TAGS-fastjar: \
7772 configure-fastjar
0aed8855 7773 @: $(MAKE); $(unstage)
a90ef4bf 7774 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7775 r=`${PWD_COMMAND}`; export r; \
7776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7777 $(HOST_EXPORTS) \
b813574b 7778 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7780 done; \
22121df0 7781 echo "Doing TAGS in fastjar"; \
a90ef4bf 7782 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7785 "RANLIB=$${RANLIB}" \
0c24b341 7786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7787 TAGS) \
2a4cbe27
NN
7788 || exit 1
7789
a90ef4bf 7790@endif fastjar
2a4cbe27 7791
a90ef4bf
JM
7792.PHONY: maybe-install-info-fastjar install-info-fastjar
7793maybe-install-info-fastjar:
7794@if fastjar
7795maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7796
a90ef4bf
JM
7797install-info-fastjar: \
7798 configure-fastjar \
7799 info-fastjar
0aed8855 7800 @: $(MAKE); $(unstage)
a90ef4bf 7801 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7802 r=`${PWD_COMMAND}`; export r; \
7803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7804 $(HOST_EXPORTS) \
b813574b 7805 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7807 done; \
22121df0 7808 echo "Doing install-info in fastjar"; \
a90ef4bf 7809 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7812 "RANLIB=$${RANLIB}" \
0c24b341 7813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7814 install-info) \
2a4cbe27
NN
7815 || exit 1
7816
a90ef4bf 7817@endif fastjar
2a4cbe27 7818
a90ef4bf
JM
7819.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7820maybe-install-pdf-fastjar:
7821@if fastjar
7822maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7823
a90ef4bf
JM
7824install-pdf-fastjar: \
7825 configure-fastjar \
7826 pdf-fastjar
a3ca38d2 7827 @: $(MAKE); $(unstage)
a90ef4bf 7828 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7829 r=`${PWD_COMMAND}`; export r; \
7830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7831 $(HOST_EXPORTS) \
7832 for flag in $(EXTRA_HOST_FLAGS) ; do \
7833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7834 done; \
22121df0 7835 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7836 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7839 "RANLIB=$${RANLIB}" \
0c24b341 7840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7841 install-pdf) \
7842 || exit 1
7843
a90ef4bf 7844@endif fastjar
a3ca38d2 7845
a90ef4bf
JM
7846.PHONY: maybe-install-html-fastjar install-html-fastjar
7847maybe-install-html-fastjar:
7848@if fastjar
7849maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7850
a90ef4bf
JM
7851install-html-fastjar: \
7852 configure-fastjar \
7853 html-fastjar
108a6f8e 7854 @: $(MAKE); $(unstage)
a90ef4bf 7855 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7856 r=`${PWD_COMMAND}`; export r; \
7857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7858 $(HOST_EXPORTS) \
7859 for flag in $(EXTRA_HOST_FLAGS) ; do \
7860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7861 done; \
22121df0 7862 echo "Doing install-html in fastjar"; \
a90ef4bf 7863 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7866 "RANLIB=$${RANLIB}" \
0c24b341 7867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7868 install-html) \
7869 || exit 1
7870
a90ef4bf 7871@endif fastjar
108a6f8e 7872
a90ef4bf
JM
7873.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7874maybe-installcheck-fastjar:
7875@if fastjar
7876maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7877
a90ef4bf
JM
7878installcheck-fastjar: \
7879 configure-fastjar
0aed8855 7880 @: $(MAKE); $(unstage)
a90ef4bf 7881 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7882 r=`${PWD_COMMAND}`; export r; \
7883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7884 $(HOST_EXPORTS) \
b813574b 7885 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7887 done; \
22121df0 7888 echo "Doing installcheck in fastjar"; \
a90ef4bf 7889 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7892 "RANLIB=$${RANLIB}" \
0c24b341 7893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7894 installcheck) \
2a4cbe27
NN
7895 || exit 1
7896
a90ef4bf 7897@endif fastjar
2a4cbe27 7898
a90ef4bf
JM
7899.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7900maybe-mostlyclean-fastjar:
7901@if fastjar
7902maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7903
a90ef4bf 7904mostlyclean-fastjar:
0aed8855 7905 @: $(MAKE); $(unstage)
a90ef4bf 7906 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7907 r=`${PWD_COMMAND}`; export r; \
7908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7909 $(HOST_EXPORTS) \
b813574b 7910 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7912 done; \
22121df0 7913 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7914 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7917 "RANLIB=$${RANLIB}" \
0c24b341 7918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7919 mostlyclean) \
2a4cbe27
NN
7920 || exit 1
7921
a90ef4bf 7922@endif fastjar
2a4cbe27 7923
a90ef4bf
JM
7924.PHONY: maybe-clean-fastjar clean-fastjar
7925maybe-clean-fastjar:
7926@if fastjar
7927maybe-clean-fastjar: clean-fastjar
2a4cbe27 7928
a90ef4bf 7929clean-fastjar:
0aed8855 7930 @: $(MAKE); $(unstage)
a90ef4bf 7931 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7932 r=`${PWD_COMMAND}`; export r; \
7933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7934 $(HOST_EXPORTS) \
b813574b 7935 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7937 done; \
22121df0 7938 echo "Doing clean in fastjar"; \
a90ef4bf 7939 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7942 "RANLIB=$${RANLIB}" \
0c24b341 7943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7944 clean) \
2a4cbe27
NN
7945 || exit 1
7946
a90ef4bf 7947@endif fastjar
2a4cbe27 7948
a90ef4bf
JM
7949.PHONY: maybe-distclean-fastjar distclean-fastjar
7950maybe-distclean-fastjar:
7951@if fastjar
7952maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7953
a90ef4bf 7954distclean-fastjar:
0aed8855 7955 @: $(MAKE); $(unstage)
a90ef4bf 7956 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7957 r=`${PWD_COMMAND}`; export r; \
7958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7959 $(HOST_EXPORTS) \
b813574b 7960 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7962 done; \
22121df0 7963 echo "Doing distclean in fastjar"; \
a90ef4bf 7964 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7967 "RANLIB=$${RANLIB}" \
0c24b341 7968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7969 distclean) \
2a4cbe27
NN
7970 || exit 1
7971
a90ef4bf 7972@endif fastjar
2a4cbe27 7973
a90ef4bf
JM
7974.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7975maybe-maintainer-clean-fastjar:
7976@if fastjar
7977maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7978
7979maintainer-clean-fastjar:
0aed8855 7980 @: $(MAKE); $(unstage)
a90ef4bf 7981 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7982 r=`${PWD_COMMAND}`; export r; \
7983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7984 $(HOST_EXPORTS) \
b813574b 7985 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7987 done; \
22121df0 7988 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 7989 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7992 "RANLIB=$${RANLIB}" \
0c24b341 7993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7994 maintainer-clean) \
2a4cbe27
NN
7995 || exit 1
7996
a90ef4bf 7997@endif fastjar
2a4cbe27 7998
2a4cbe27 7999
a7254363 8000
a90ef4bf
JM
8001.PHONY: configure-fixincludes maybe-configure-fixincludes
8002maybe-configure-fixincludes:
4f0ef2d8 8003@if gcc-bootstrap
a90ef4bf 8004configure-fixincludes: stage_current
4f0ef2d8 8005@endif gcc-bootstrap
a90ef4bf
JM
8006@if fixincludes
8007maybe-configure-fixincludes: configure-fixincludes
8008configure-fixincludes:
c52c6897 8009 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8011 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8012 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8013 $(HOST_EXPORTS) \
a90ef4bf
JM
8014 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8015 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8016 case $(srcdir) in \
b00612cc 8017 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8018 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8019 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8020 esac; \
1b6c0831
L
8021 module_srcdir=fixincludes; \
8022 $(SHELL) \
8023 $$s/$$module_srcdir/configure \
8024 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8025 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8026 --target=${target_alias} \
4fa63067 8027 || exit 1
a90ef4bf 8028@endif fixincludes
4fa63067 8029
a7254363
PB
8030
8031
201f096f 8032.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8033maybe-configure-stage1-fixincludes:
8034@if fixincludes-bootstrap
8035maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8036configure-stage1-fixincludes:
8037 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8038 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8039 @r=`${PWD_COMMAND}`; export r; \
8040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8041 TFLAGS="$(STAGE1_TFLAGS)"; \
8042 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8043 $(HOST_EXPORTS) \
8044 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8045 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8046 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8047 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8048 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8049 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8050 case $(srcdir) in \
8051 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8052 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8053 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8054 esac; \
1b6c0831
L
8055 module_srcdir=fixincludes; \
8056 $(SHELL) $$s/$$module_srcdir/configure \
8057 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8058 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8059 --target=${target_alias} \
8060 \
201f096f 8061 $(STAGE1_CONFIGURE_FLAGS)
8062@endif fixincludes-bootstrap
8063
8064.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8065maybe-configure-stage2-fixincludes:
8066@if fixincludes-bootstrap
8067maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8068configure-stage2-fixincludes:
8069 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8070 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8071 @r=`${PWD_COMMAND}`; export r; \
8072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8073 TFLAGS="$(STAGE2_TFLAGS)"; \
8074 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8075 $(HOST_EXPORTS) \
8076 $(POSTSTAGE1_HOST_EXPORTS) \
8077 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8078 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8079 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8080 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8081 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8082 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8083 case $(srcdir) in \
8084 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8085 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8086 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8087 esac; \
1b6c0831
L
8088 module_srcdir=fixincludes; \
8089 $(SHELL) $$s/$$module_srcdir/configure \
8090 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8091 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8092 --target=${target_alias} \
22121df0 8093 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8094 $(STAGE2_CONFIGURE_FLAGS)
8095@endif fixincludes-bootstrap
8096
8097.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8098maybe-configure-stage3-fixincludes:
8099@if fixincludes-bootstrap
8100maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8101configure-stage3-fixincludes:
8102 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8103 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8104 @r=`${PWD_COMMAND}`; export r; \
8105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8106 TFLAGS="$(STAGE3_TFLAGS)"; \
8107 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8108 $(HOST_EXPORTS) \
8109 $(POSTSTAGE1_HOST_EXPORTS) \
8110 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8111 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8112 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8113 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8114 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8115 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8116 case $(srcdir) in \
8117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8118 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8120 esac; \
1b6c0831
L
8121 module_srcdir=fixincludes; \
8122 $(SHELL) $$s/$$module_srcdir/configure \
8123 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8124 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8125 --target=${target_alias} \
22121df0 8126 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8127 $(STAGE3_CONFIGURE_FLAGS)
8128@endif fixincludes-bootstrap
8129
8130.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8131maybe-configure-stage4-fixincludes:
8132@if fixincludes-bootstrap
8133maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8134configure-stage4-fixincludes:
8135 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8136 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8137 @r=`${PWD_COMMAND}`; export r; \
8138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8139 TFLAGS="$(STAGE4_TFLAGS)"; \
8140 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8141 $(HOST_EXPORTS) \
8142 $(POSTSTAGE1_HOST_EXPORTS) \
8143 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8144 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8145 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8146 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8147 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8148 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8149 case $(srcdir) in \
8150 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8151 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8152 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8153 esac; \
1b6c0831
L
8154 module_srcdir=fixincludes; \
8155 $(SHELL) $$s/$$module_srcdir/configure \
8156 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8157 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8158 --target=${target_alias} \
22121df0 8159 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8160 $(STAGE4_CONFIGURE_FLAGS)
8161@endif fixincludes-bootstrap
8162
8163.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8164maybe-configure-stageprofile-fixincludes:
8165@if fixincludes-bootstrap
8166maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8167configure-stageprofile-fixincludes:
8168 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8169 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8170 @r=`${PWD_COMMAND}`; export r; \
8171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8172 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8173 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8174 $(HOST_EXPORTS) \
8175 $(POSTSTAGE1_HOST_EXPORTS) \
8176 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8177 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8178 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8179 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8181 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8182 case $(srcdir) in \
8183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8184 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8186 esac; \
1b6c0831
L
8187 module_srcdir=fixincludes; \
8188 $(SHELL) $$s/$$module_srcdir/configure \
8189 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8190 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8191 --target=${target_alias} \
22121df0 8192 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8193 $(STAGEprofile_CONFIGURE_FLAGS)
8194@endif fixincludes-bootstrap
8195
8196.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8197maybe-configure-stagefeedback-fixincludes:
8198@if fixincludes-bootstrap
8199maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8200configure-stagefeedback-fixincludes:
8201 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8202 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8203 @r=`${PWD_COMMAND}`; export r; \
8204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8205 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8206 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8207 $(HOST_EXPORTS) \
8208 $(POSTSTAGE1_HOST_EXPORTS) \
8209 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8210 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8211 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8212 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8213 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8214 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8215 case $(srcdir) in \
8216 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8217 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8218 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8219 esac; \
1b6c0831
L
8220 module_srcdir=fixincludes; \
8221 $(SHELL) $$s/$$module_srcdir/configure \
8222 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8223 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8224 --target=${target_alias} \
22121df0 8225 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8226 $(STAGEfeedback_CONFIGURE_FLAGS)
8227@endif fixincludes-bootstrap
8228
8229
8230
d545f33b
PB
8231
8232
a90ef4bf
JM
8233.PHONY: all-fixincludes maybe-all-fixincludes
8234maybe-all-fixincludes:
4f0ef2d8 8235@if gcc-bootstrap
a90ef4bf 8236all-fixincludes: stage_current
4f0ef2d8 8237@endif gcc-bootstrap
a90ef4bf
JM
8238@if fixincludes
8239TARGET-fixincludes=all
8240maybe-all-fixincludes: all-fixincludes
8241all-fixincludes: configure-fixincludes
4fa63067
NN
8242 @r=`${PWD_COMMAND}`; export r; \
8243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8244 $(HOST_EXPORTS) \
a90ef4bf 8245 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8246 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8247 $(TARGET-fixincludes))
8248@endif fixincludes
4fa63067 8249
a7254363 8250
d545f33b 8251
201f096f 8252.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8253.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8254maybe-all-stage1-fixincludes:
8255maybe-clean-stage1-fixincludes:
8256@if fixincludes-bootstrap
8257maybe-all-stage1-fixincludes: all-stage1-fixincludes
8258all-stage1: all-stage1-fixincludes
8259TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8260all-stage1-fixincludes: configure-stage1-fixincludes
8261 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8262 @r=`${PWD_COMMAND}`; export r; \
8263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8264 TFLAGS="$(STAGE1_TFLAGS)"; \
8265 $(HOST_EXPORTS) \
8266 cd $(HOST_SUBDIR)/fixincludes && \
8267 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8268 CFLAGS="$(STAGE1_CFLAGS)" \
8269 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8270 LIBCFLAGS="$(LIBCFLAGS)" \
8271 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8272 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8273 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8274 $(EXTRA_HOST_FLAGS) \
8275 $(STAGE1_FLAGS_TO_PASS) \
8276 TFLAGS="$(STAGE1_TFLAGS)" \
8277 $(TARGET-stage1-fixincludes)
8278
8279maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8280clean-stage1: clean-stage1-fixincludes
8281clean-stage1-fixincludes:
8282 @if [ $(current_stage) = stage1 ]; then \
8283 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8284 else \
8285 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8286 $(MAKE) stage1-start; \
8287 fi; \
8288 cd $(HOST_SUBDIR)/fixincludes && \
8289 $(MAKE) $(EXTRA_HOST_FLAGS) \
8290 $(STAGE1_FLAGS_TO_PASS) clean
8291@endif fixincludes-bootstrap
8292
8293
8294.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8295.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8296maybe-all-stage2-fixincludes:
8297maybe-clean-stage2-fixincludes:
8298@if fixincludes-bootstrap
8299maybe-all-stage2-fixincludes: all-stage2-fixincludes
8300all-stage2: all-stage2-fixincludes
8301TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8302all-stage2-fixincludes: configure-stage2-fixincludes
8303 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8304 @r=`${PWD_COMMAND}`; export r; \
8305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8306 TFLAGS="$(STAGE2_TFLAGS)"; \
8307 $(HOST_EXPORTS) \
8308 $(POSTSTAGE1_HOST_EXPORTS) \
8309 cd $(HOST_SUBDIR)/fixincludes && \
8310 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8311 CFLAGS="$(STAGE2_CFLAGS)" \
8312 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8313 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8314 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8315 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8316 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8317 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8318 TFLAGS="$(STAGE2_TFLAGS)" \
8319 $(TARGET-stage2-fixincludes)
8320
8321maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8322clean-stage2: clean-stage2-fixincludes
8323clean-stage2-fixincludes:
8324 @if [ $(current_stage) = stage2 ]; then \
8325 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8326 else \
8327 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8328 $(MAKE) stage2-start; \
8329 fi; \
8330 cd $(HOST_SUBDIR)/fixincludes && \
8331 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8332@endif fixincludes-bootstrap
8333
8334
8335.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8336.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8337maybe-all-stage3-fixincludes:
8338maybe-clean-stage3-fixincludes:
8339@if fixincludes-bootstrap
8340maybe-all-stage3-fixincludes: all-stage3-fixincludes
8341all-stage3: all-stage3-fixincludes
8342TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8343all-stage3-fixincludes: configure-stage3-fixincludes
8344 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8345 @r=`${PWD_COMMAND}`; export r; \
8346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8347 TFLAGS="$(STAGE3_TFLAGS)"; \
8348 $(HOST_EXPORTS) \
8349 $(POSTSTAGE1_HOST_EXPORTS) \
8350 cd $(HOST_SUBDIR)/fixincludes && \
8351 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8352 CFLAGS="$(STAGE3_CFLAGS)" \
8353 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8354 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8355 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8356 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8357 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8358 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8359 TFLAGS="$(STAGE3_TFLAGS)" \
8360 $(TARGET-stage3-fixincludes)
8361
8362maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8363clean-stage3: clean-stage3-fixincludes
8364clean-stage3-fixincludes:
8365 @if [ $(current_stage) = stage3 ]; then \
8366 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8367 else \
8368 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8369 $(MAKE) stage3-start; \
8370 fi; \
8371 cd $(HOST_SUBDIR)/fixincludes && \
8372 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8373@endif fixincludes-bootstrap
8374
8375
8376.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8377.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8378maybe-all-stage4-fixincludes:
8379maybe-clean-stage4-fixincludes:
8380@if fixincludes-bootstrap
8381maybe-all-stage4-fixincludes: all-stage4-fixincludes
8382all-stage4: all-stage4-fixincludes
8383TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8384all-stage4-fixincludes: configure-stage4-fixincludes
8385 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8386 @r=`${PWD_COMMAND}`; export r; \
8387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8388 TFLAGS="$(STAGE4_TFLAGS)"; \
8389 $(HOST_EXPORTS) \
8390 $(POSTSTAGE1_HOST_EXPORTS) \
8391 cd $(HOST_SUBDIR)/fixincludes && \
8392 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8393 CFLAGS="$(STAGE4_CFLAGS)" \
8394 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8395 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8396 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8397 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8398 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8399 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8400 TFLAGS="$(STAGE4_TFLAGS)" \
8401 $(TARGET-stage4-fixincludes)
8402
8403maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8404clean-stage4: clean-stage4-fixincludes
8405clean-stage4-fixincludes:
8406 @if [ $(current_stage) = stage4 ]; then \
8407 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8408 else \
8409 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8410 $(MAKE) stage4-start; \
8411 fi; \
8412 cd $(HOST_SUBDIR)/fixincludes && \
8413 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8414@endif fixincludes-bootstrap
8415
8416
8417.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8418.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8419maybe-all-stageprofile-fixincludes:
8420maybe-clean-stageprofile-fixincludes:
8421@if fixincludes-bootstrap
8422maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8423all-stageprofile: all-stageprofile-fixincludes
8424TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8425all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8426 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8427 @r=`${PWD_COMMAND}`; export r; \
8428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8429 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8430 $(HOST_EXPORTS) \
8431 $(POSTSTAGE1_HOST_EXPORTS) \
8432 cd $(HOST_SUBDIR)/fixincludes && \
8433 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8434 CFLAGS="$(STAGEprofile_CFLAGS)" \
8435 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8436 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8437 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8438 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8439 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8440 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8441 TFLAGS="$(STAGEprofile_TFLAGS)" \
8442 $(TARGET-stageprofile-fixincludes)
8443
8444maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8445clean-stageprofile: clean-stageprofile-fixincludes
8446clean-stageprofile-fixincludes:
8447 @if [ $(current_stage) = stageprofile ]; then \
8448 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8449 else \
8450 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8451 $(MAKE) stageprofile-start; \
8452 fi; \
8453 cd $(HOST_SUBDIR)/fixincludes && \
8454 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8455@endif fixincludes-bootstrap
8456
8457
8458.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8459.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8460maybe-all-stagefeedback-fixincludes:
8461maybe-clean-stagefeedback-fixincludes:
8462@if fixincludes-bootstrap
8463maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8464all-stagefeedback: all-stagefeedback-fixincludes
8465TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8466all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8467 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8468 @r=`${PWD_COMMAND}`; export r; \
8469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8470 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8471 $(HOST_EXPORTS) \
8472 $(POSTSTAGE1_HOST_EXPORTS) \
8473 cd $(HOST_SUBDIR)/fixincludes && \
8474 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8475 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8476 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8477 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8478 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8479 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8480 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8481 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8482 TFLAGS="$(STAGEfeedback_TFLAGS)" \
8483 $(TARGET-stagefeedback-fixincludes)
8484
8485maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8486clean-stagefeedback: clean-stagefeedback-fixincludes
8487clean-stagefeedback-fixincludes:
8488 @if [ $(current_stage) = stagefeedback ]; then \
8489 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8490 else \
8491 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8492 $(MAKE) stagefeedback-start; \
8493 fi; \
8494 cd $(HOST_SUBDIR)/fixincludes && \
8495 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8496@endif fixincludes-bootstrap
8497
8498
8499
8500
d545f33b 8501
a90ef4bf
JM
8502.PHONY: check-fixincludes maybe-check-fixincludes
8503maybe-check-fixincludes:
8504@if fixincludes
8505maybe-check-fixincludes: check-fixincludes
4fa63067 8506
a90ef4bf 8507check-fixincludes:
0aed8855 8508 @: $(MAKE); $(unstage)
4fa63067
NN
8509 @r=`${PWD_COMMAND}`; export r; \
8510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8511 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8512 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8513 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8514
a90ef4bf 8515@endif fixincludes
4fa63067 8516
a90ef4bf
JM
8517.PHONY: install-fixincludes maybe-install-fixincludes
8518maybe-install-fixincludes:
8519@if fixincludes
8520maybe-install-fixincludes: install-fixincludes
4fa63067 8521
a90ef4bf 8522install-fixincludes: installdirs
0aed8855 8523 @: $(MAKE); $(unstage)
4fa63067
NN
8524 @r=`${PWD_COMMAND}`; export r; \
8525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8526 $(HOST_EXPORTS) \
a90ef4bf 8527 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8528 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8529
a90ef4bf 8530@endif fixincludes
4fa63067 8531
a90ef4bf
JM
8532.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8533maybe-install-strip-fixincludes:
8534@if fixincludes
8535maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8536
a90ef4bf 8537install-strip-fixincludes: installdirs
9b980aa1
RW
8538 @: $(MAKE); $(unstage)
8539 @r=`${PWD_COMMAND}`; export r; \
8540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8541 $(HOST_EXPORTS) \
a90ef4bf 8542 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8543 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8544
a90ef4bf 8545@endif fixincludes
9b980aa1 8546
56a8fe78 8547# Other targets (info, dvi, pdf, etc.)
4fa63067 8548
a90ef4bf
JM
8549.PHONY: maybe-info-fixincludes info-fixincludes
8550maybe-info-fixincludes:
8551@if fixincludes
8552maybe-info-fixincludes: info-fixincludes
4fa63067 8553
a90ef4bf
JM
8554info-fixincludes: \
8555 configure-fixincludes
a90ef4bf 8556 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8557 r=`${PWD_COMMAND}`; export r; \
8558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8559 $(HOST_EXPORTS) \
b813574b 8560 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8562 done; \
22121df0 8563 echo "Doing info in fixincludes"; \
a90ef4bf 8564 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8567 "RANLIB=$${RANLIB}" \
0c24b341 8568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8569 info) \
2a4cbe27
NN
8570 || exit 1
8571
a90ef4bf 8572@endif fixincludes
2a4cbe27 8573
a90ef4bf
JM
8574.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8575maybe-dvi-fixincludes:
8576@if fixincludes
8577maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8578
a90ef4bf
JM
8579dvi-fixincludes: \
8580 configure-fixincludes
a90ef4bf 8581 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8582 r=`${PWD_COMMAND}`; export r; \
8583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8584 $(HOST_EXPORTS) \
b813574b 8585 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8587 done; \
22121df0 8588 echo "Doing dvi in fixincludes"; \
a90ef4bf 8589 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8592 "RANLIB=$${RANLIB}" \
0c24b341 8593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8594 dvi) \
2a4cbe27
NN
8595 || exit 1
8596
a90ef4bf 8597@endif fixincludes
2a4cbe27 8598
a90ef4bf
JM
8599.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8600maybe-pdf-fixincludes:
8601@if fixincludes
8602maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8603
a90ef4bf
JM
8604pdf-fixincludes: \
8605 configure-fixincludes
a90ef4bf 8606 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8607 r=`${PWD_COMMAND}`; export r; \
8608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8609 $(HOST_EXPORTS) \
8610 for flag in $(EXTRA_HOST_FLAGS) ; do \
8611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8612 done; \
22121df0 8613 echo "Doing pdf in fixincludes"; \
a90ef4bf 8614 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8617 "RANLIB=$${RANLIB}" \
0c24b341 8618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8619 pdf) \
8620 || exit 1
8621
a90ef4bf 8622@endif fixincludes
56a8fe78 8623
a90ef4bf
JM
8624.PHONY: maybe-html-fixincludes html-fixincludes
8625maybe-html-fixincludes:
8626@if fixincludes
8627maybe-html-fixincludes: html-fixincludes
6d389afc 8628
a90ef4bf
JM
8629html-fixincludes: \
8630 configure-fixincludes
a90ef4bf 8631 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8632 r=`${PWD_COMMAND}`; export r; \
8633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8634 $(HOST_EXPORTS) \
8635 for flag in $(EXTRA_HOST_FLAGS) ; do \
8636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8637 done; \
22121df0 8638 echo "Doing html in fixincludes"; \
a90ef4bf 8639 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8642 "RANLIB=$${RANLIB}" \
0c24b341 8643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8644 html) \
8645 || exit 1
8646
a90ef4bf 8647@endif fixincludes
6d389afc 8648
a90ef4bf
JM
8649.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8650maybe-TAGS-fixincludes:
8651@if fixincludes
8652maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8653
a90ef4bf
JM
8654# fixincludes doesn't support TAGS.
8655TAGS-fixincludes:
2a4cbe27 8656
a90ef4bf 8657@endif fixincludes
2a4cbe27 8658
a90ef4bf
JM
8659.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8660maybe-install-info-fixincludes:
8661@if fixincludes
8662maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8663
a90ef4bf
JM
8664install-info-fixincludes: \
8665 configure-fixincludes \
8666 info-fixincludes
a90ef4bf 8667 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8668 r=`${PWD_COMMAND}`; export r; \
8669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8670 $(HOST_EXPORTS) \
b813574b 8671 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8673 done; \
22121df0 8674 echo "Doing install-info in fixincludes"; \
a90ef4bf 8675 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8678 "RANLIB=$${RANLIB}" \
0c24b341 8679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8680 install-info) \
2a4cbe27
NN
8681 || exit 1
8682
a90ef4bf 8683@endif fixincludes
2a4cbe27 8684
a90ef4bf
JM
8685.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8686maybe-install-pdf-fixincludes:
8687@if fixincludes
8688maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8689
a90ef4bf
JM
8690install-pdf-fixincludes: \
8691 configure-fixincludes \
8692 pdf-fixincludes
a90ef4bf 8693 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8694 r=`${PWD_COMMAND}`; export r; \
8695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8696 $(HOST_EXPORTS) \
8697 for flag in $(EXTRA_HOST_FLAGS) ; do \
8698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8699 done; \
22121df0 8700 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8701 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8704 "RANLIB=$${RANLIB}" \
0c24b341 8705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8706 install-pdf) \
8707 || exit 1
8708
a90ef4bf 8709@endif fixincludes
a3ca38d2 8710
a90ef4bf
JM
8711.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8712maybe-install-html-fixincludes:
8713@if fixincludes
8714maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8715
a90ef4bf
JM
8716install-html-fixincludes: \
8717 configure-fixincludes \
8718 html-fixincludes
a90ef4bf 8719 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8720 r=`${PWD_COMMAND}`; export r; \
8721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8722 $(HOST_EXPORTS) \
8723 for flag in $(EXTRA_HOST_FLAGS) ; do \
8724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8725 done; \
22121df0 8726 echo "Doing install-html in fixincludes"; \
a90ef4bf 8727 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8730 "RANLIB=$${RANLIB}" \
0c24b341 8731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8732 install-html) \
8733 || exit 1
8734
a90ef4bf 8735@endif fixincludes
108a6f8e 8736
a90ef4bf
JM
8737.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8738maybe-installcheck-fixincludes:
8739@if fixincludes
8740maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8741
a90ef4bf
JM
8742installcheck-fixincludes: \
8743 configure-fixincludes
a90ef4bf 8744 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8745 r=`${PWD_COMMAND}`; export r; \
8746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8747 $(HOST_EXPORTS) \
b813574b 8748 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8750 done; \
22121df0 8751 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8752 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8755 "RANLIB=$${RANLIB}" \
0c24b341 8756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8757 installcheck) \
2a4cbe27
NN
8758 || exit 1
8759
a90ef4bf 8760@endif fixincludes
2a4cbe27 8761
a90ef4bf
JM
8762.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8763maybe-mostlyclean-fixincludes:
8764@if fixincludes
8765maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8766
a90ef4bf 8767mostlyclean-fixincludes:
a90ef4bf 8768 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8769 r=`${PWD_COMMAND}`; export r; \
8770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8771 $(HOST_EXPORTS) \
b813574b 8772 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8774 done; \
22121df0 8775 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8776 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8779 "RANLIB=$${RANLIB}" \
0c24b341 8780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8781 mostlyclean) \
2a4cbe27
NN
8782 || exit 1
8783
a90ef4bf 8784@endif fixincludes
2a4cbe27 8785
a90ef4bf
JM
8786.PHONY: maybe-clean-fixincludes clean-fixincludes
8787maybe-clean-fixincludes:
8788@if fixincludes
8789maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8790
a90ef4bf 8791clean-fixincludes:
a90ef4bf 8792 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8793 r=`${PWD_COMMAND}`; export r; \
8794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8795 $(HOST_EXPORTS) \
b813574b 8796 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8798 done; \
22121df0 8799 echo "Doing clean in fixincludes"; \
a90ef4bf 8800 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8803 "RANLIB=$${RANLIB}" \
0c24b341 8804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8805 clean) \
2a4cbe27
NN
8806 || exit 1
8807
a90ef4bf 8808@endif fixincludes
2a4cbe27 8809
a90ef4bf
JM
8810.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8811maybe-distclean-fixincludes:
8812@if fixincludes
8813maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8814
a90ef4bf 8815distclean-fixincludes:
a90ef4bf 8816 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8817 r=`${PWD_COMMAND}`; export r; \
8818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8819 $(HOST_EXPORTS) \
b813574b 8820 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8822 done; \
22121df0 8823 echo "Doing distclean in fixincludes"; \
a90ef4bf 8824 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8827 "RANLIB=$${RANLIB}" \
0c24b341 8828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8829 distclean) \
2a4cbe27
NN
8830 || exit 1
8831
a90ef4bf 8832@endif fixincludes
2a4cbe27 8833
a90ef4bf
JM
8834.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8835maybe-maintainer-clean-fixincludes:
8836@if fixincludes
8837maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8838
a90ef4bf 8839maintainer-clean-fixincludes:
a90ef4bf 8840 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8841 r=`${PWD_COMMAND}`; export r; \
8842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8843 $(HOST_EXPORTS) \
b813574b 8844 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8846 done; \
22121df0 8847 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8848 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8851 "RANLIB=$${RANLIB}" \
0c24b341 8852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8853 maintainer-clean) \
2a4cbe27
NN
8854 || exit 1
8855
a90ef4bf 8856@endif fixincludes
2a4cbe27 8857
2a4cbe27 8858
a7254363 8859
a90ef4bf
JM
8860.PHONY: configure-flex maybe-configure-flex
8861maybe-configure-flex:
f9806fa5 8862@if gcc-bootstrap
a90ef4bf 8863configure-flex: stage_current
f9806fa5 8864@endif gcc-bootstrap
a90ef4bf
JM
8865@if flex
8866maybe-configure-flex: configure-flex
8867configure-flex:
f9806fa5
DE
8868 @: $(MAKE); $(unstage)
8869 @r=`${PWD_COMMAND}`; export r; \
8870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8871 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8872 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8873 $(HOST_EXPORTS) \
a90ef4bf
JM
8874 echo Configuring in $(HOST_SUBDIR)/flex; \
8875 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8876 case $(srcdir) in \
8877 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8878 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8879 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8880 esac; \
1b6c0831
L
8881 module_srcdir=flex; \
8882 $(SHELL) \
8883 $$s/$$module_srcdir/configure \
8884 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8885 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8886 --target=${target_alias} \
f9806fa5 8887 || exit 1
a90ef4bf 8888@endif flex
f9806fa5
DE
8889
8890
8891
8892
8893
a90ef4bf
JM
8894.PHONY: all-flex maybe-all-flex
8895maybe-all-flex:
f9806fa5 8896@if gcc-bootstrap
a90ef4bf 8897all-flex: stage_current
f9806fa5 8898@endif gcc-bootstrap
a90ef4bf
JM
8899@if flex
8900TARGET-flex=all
8901maybe-all-flex: all-flex
8902all-flex: configure-flex
f9806fa5
DE
8903 @: $(MAKE); $(unstage)
8904 @r=`${PWD_COMMAND}`; export r; \
8905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8906 $(HOST_EXPORTS) \
a90ef4bf 8907 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8908 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8909 $(TARGET-flex))
8910@endif flex
f9806fa5
DE
8911
8912
8913
8914
a90ef4bf
JM
8915.PHONY: check-flex maybe-check-flex
8916maybe-check-flex:
8917@if flex
8918maybe-check-flex: check-flex
f9806fa5 8919
a90ef4bf
JM
8920# This module is only tested in a native toolchain.
8921check-flex:
f9806fa5 8922 @: $(MAKE); $(unstage)
22121df0 8923 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8924 r=`${PWD_COMMAND}`; export r; \
8925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8926 $(HOST_EXPORTS) \
a90ef4bf 8927 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8928 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8929 fi
f9806fa5 8930
a90ef4bf 8931@endif flex
f9806fa5 8932
a90ef4bf
JM
8933.PHONY: install-flex maybe-install-flex
8934maybe-install-flex:
8935@if flex
8936maybe-install-flex: install-flex
f9806fa5 8937
a90ef4bf 8938install-flex: installdirs
f9806fa5
DE
8939 @: $(MAKE); $(unstage)
8940 @r=`${PWD_COMMAND}`; export r; \
8941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8942 $(HOST_EXPORTS) \
a90ef4bf 8943 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8944 $(MAKE) $(FLAGS_TO_PASS) install)
8945
a90ef4bf 8946@endif flex
f9806fa5 8947
a90ef4bf
JM
8948.PHONY: install-strip-flex maybe-install-strip-flex
8949maybe-install-strip-flex:
8950@if flex
8951maybe-install-strip-flex: install-strip-flex
9b980aa1 8952
a90ef4bf 8953install-strip-flex: installdirs
9b980aa1
RW
8954 @: $(MAKE); $(unstage)
8955 @r=`${PWD_COMMAND}`; export r; \
8956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8957 $(HOST_EXPORTS) \
a90ef4bf 8958 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8959 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8960
a90ef4bf 8961@endif flex
9b980aa1 8962
f9806fa5
DE
8963# Other targets (info, dvi, pdf, etc.)
8964
a90ef4bf
JM
8965.PHONY: maybe-info-flex info-flex
8966maybe-info-flex:
8967@if flex
8968maybe-info-flex: info-flex
f9806fa5 8969
a90ef4bf
JM
8970info-flex: \
8971 configure-flex
f9806fa5 8972 @: $(MAKE); $(unstage)
a90ef4bf 8973 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8974 r=`${PWD_COMMAND}`; export r; \
8975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8976 $(HOST_EXPORTS) \
8977 for flag in $(EXTRA_HOST_FLAGS) ; do \
8978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8979 done; \
22121df0 8980 echo "Doing info in flex"; \
a90ef4bf 8981 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8984 "RANLIB=$${RANLIB}" \
8985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8986 info) \
8987 || exit 1
8988
a90ef4bf 8989@endif flex
f9806fa5 8990
a90ef4bf
JM
8991.PHONY: maybe-dvi-flex dvi-flex
8992maybe-dvi-flex:
8993@if flex
8994maybe-dvi-flex: dvi-flex
f9806fa5 8995
a90ef4bf
JM
8996dvi-flex: \
8997 configure-flex
f9806fa5 8998 @: $(MAKE); $(unstage)
a90ef4bf 8999 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9000 r=`${PWD_COMMAND}`; export r; \
9001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9002 $(HOST_EXPORTS) \
9003 for flag in $(EXTRA_HOST_FLAGS) ; do \
9004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9005 done; \
22121df0 9006 echo "Doing dvi in flex"; \
a90ef4bf 9007 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9010 "RANLIB=$${RANLIB}" \
9011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9012 dvi) \
9013 || exit 1
9014
a90ef4bf 9015@endif flex
f9806fa5 9016
a90ef4bf
JM
9017.PHONY: maybe-pdf-flex pdf-flex
9018maybe-pdf-flex:
9019@if flex
9020maybe-pdf-flex: pdf-flex
f9806fa5 9021
a90ef4bf
JM
9022pdf-flex: \
9023 configure-flex
f9806fa5 9024 @: $(MAKE); $(unstage)
a90ef4bf 9025 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9026 r=`${PWD_COMMAND}`; export r; \
9027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9028 $(HOST_EXPORTS) \
9029 for flag in $(EXTRA_HOST_FLAGS) ; do \
9030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9031 done; \
22121df0 9032 echo "Doing pdf in flex"; \
a90ef4bf 9033 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9036 "RANLIB=$${RANLIB}" \
9037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9038 pdf) \
9039 || exit 1
9040
a90ef4bf 9041@endif flex
f9806fa5 9042
a90ef4bf
JM
9043.PHONY: maybe-html-flex html-flex
9044maybe-html-flex:
9045@if flex
9046maybe-html-flex: html-flex
f9806fa5 9047
a90ef4bf
JM
9048html-flex: \
9049 configure-flex
f9806fa5 9050 @: $(MAKE); $(unstage)
a90ef4bf 9051 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9052 r=`${PWD_COMMAND}`; export r; \
9053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9054 $(HOST_EXPORTS) \
9055 for flag in $(EXTRA_HOST_FLAGS) ; do \
9056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9057 done; \
22121df0 9058 echo "Doing html in flex"; \
a90ef4bf 9059 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9062 "RANLIB=$${RANLIB}" \
9063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9064 html) \
9065 || exit 1
9066
a90ef4bf 9067@endif flex
f9806fa5 9068
a90ef4bf
JM
9069.PHONY: maybe-TAGS-flex TAGS-flex
9070maybe-TAGS-flex:
9071@if flex
9072maybe-TAGS-flex: TAGS-flex
f9806fa5 9073
a90ef4bf
JM
9074TAGS-flex: \
9075 configure-flex
f9806fa5 9076 @: $(MAKE); $(unstage)
a90ef4bf 9077 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9078 r=`${PWD_COMMAND}`; export r; \
9079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9080 $(HOST_EXPORTS) \
9081 for flag in $(EXTRA_HOST_FLAGS) ; do \
9082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9083 done; \
22121df0 9084 echo "Doing TAGS in flex"; \
a90ef4bf 9085 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9088 "RANLIB=$${RANLIB}" \
9089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9090 TAGS) \
9091 || exit 1
9092
a90ef4bf 9093@endif flex
f9806fa5 9094
a90ef4bf
JM
9095.PHONY: maybe-install-info-flex install-info-flex
9096maybe-install-info-flex:
9097@if flex
9098maybe-install-info-flex: install-info-flex
f9806fa5 9099
a90ef4bf
JM
9100install-info-flex: \
9101 configure-flex \
9102 info-flex
f9806fa5 9103 @: $(MAKE); $(unstage)
a90ef4bf 9104 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9105 r=`${PWD_COMMAND}`; export r; \
9106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9107 $(HOST_EXPORTS) \
9108 for flag in $(EXTRA_HOST_FLAGS) ; do \
9109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9110 done; \
22121df0 9111 echo "Doing install-info in flex"; \
a90ef4bf 9112 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9115 "RANLIB=$${RANLIB}" \
9116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9117 install-info) \
9118 || exit 1
9119
a90ef4bf 9120@endif flex
f9806fa5 9121
a90ef4bf
JM
9122.PHONY: maybe-install-pdf-flex install-pdf-flex
9123maybe-install-pdf-flex:
9124@if flex
9125maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9126
a90ef4bf
JM
9127install-pdf-flex: \
9128 configure-flex \
9129 pdf-flex
f9806fa5 9130 @: $(MAKE); $(unstage)
a90ef4bf 9131 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9132 r=`${PWD_COMMAND}`; export r; \
9133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9134 $(HOST_EXPORTS) \
9135 for flag in $(EXTRA_HOST_FLAGS) ; do \
9136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9137 done; \
22121df0 9138 echo "Doing install-pdf in flex"; \
a90ef4bf 9139 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9142 "RANLIB=$${RANLIB}" \
9143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9144 install-pdf) \
9145 || exit 1
9146
a90ef4bf 9147@endif flex
f9806fa5 9148
a90ef4bf
JM
9149.PHONY: maybe-install-html-flex install-html-flex
9150maybe-install-html-flex:
9151@if flex
9152maybe-install-html-flex: install-html-flex
f9806fa5 9153
a90ef4bf
JM
9154install-html-flex: \
9155 configure-flex \
9156 html-flex
f9806fa5 9157 @: $(MAKE); $(unstage)
a90ef4bf 9158 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9159 r=`${PWD_COMMAND}`; export r; \
9160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9161 $(HOST_EXPORTS) \
9162 for flag in $(EXTRA_HOST_FLAGS) ; do \
9163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9164 done; \
22121df0 9165 echo "Doing install-html in flex"; \
a90ef4bf 9166 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9169 "RANLIB=$${RANLIB}" \
9170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9171 install-html) \
9172 || exit 1
9173
a90ef4bf 9174@endif flex
f9806fa5 9175
a90ef4bf
JM
9176.PHONY: maybe-installcheck-flex installcheck-flex
9177maybe-installcheck-flex:
9178@if flex
9179maybe-installcheck-flex: installcheck-flex
f9806fa5 9180
a90ef4bf
JM
9181installcheck-flex: \
9182 configure-flex
f9806fa5 9183 @: $(MAKE); $(unstage)
a90ef4bf 9184 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9185 r=`${PWD_COMMAND}`; export r; \
9186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9187 $(HOST_EXPORTS) \
9188 for flag in $(EXTRA_HOST_FLAGS) ; do \
9189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9190 done; \
22121df0 9191 echo "Doing installcheck in flex"; \
a90ef4bf 9192 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9195 "RANLIB=$${RANLIB}" \
9196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9197 installcheck) \
9198 || exit 1
9199
a90ef4bf 9200@endif flex
f9806fa5 9201
a90ef4bf
JM
9202.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9203maybe-mostlyclean-flex:
9204@if flex
9205maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9206
a90ef4bf 9207mostlyclean-flex:
f9806fa5 9208 @: $(MAKE); $(unstage)
a90ef4bf 9209 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9210 r=`${PWD_COMMAND}`; export r; \
9211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9212 $(HOST_EXPORTS) \
9213 for flag in $(EXTRA_HOST_FLAGS) ; do \
9214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9215 done; \
22121df0 9216 echo "Doing mostlyclean in flex"; \
a90ef4bf 9217 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9220 "RANLIB=$${RANLIB}" \
9221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9222 mostlyclean) \
9223 || exit 1
9224
a90ef4bf 9225@endif flex
f9806fa5 9226
a90ef4bf
JM
9227.PHONY: maybe-clean-flex clean-flex
9228maybe-clean-flex:
9229@if flex
9230maybe-clean-flex: clean-flex
f9806fa5 9231
a90ef4bf 9232clean-flex:
f9806fa5 9233 @: $(MAKE); $(unstage)
a90ef4bf 9234 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9235 r=`${PWD_COMMAND}`; export r; \
9236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9237 $(HOST_EXPORTS) \
9238 for flag in $(EXTRA_HOST_FLAGS) ; do \
9239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9240 done; \
22121df0 9241 echo "Doing clean in flex"; \
a90ef4bf 9242 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9245 "RANLIB=$${RANLIB}" \
9246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9247 clean) \
9248 || exit 1
9249
a90ef4bf 9250@endif flex
f9806fa5 9251
a90ef4bf
JM
9252.PHONY: maybe-distclean-flex distclean-flex
9253maybe-distclean-flex:
9254@if flex
9255maybe-distclean-flex: distclean-flex
f9806fa5 9256
a90ef4bf 9257distclean-flex:
f9806fa5 9258 @: $(MAKE); $(unstage)
a90ef4bf 9259 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9260 r=`${PWD_COMMAND}`; export r; \
9261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9262 $(HOST_EXPORTS) \
9263 for flag in $(EXTRA_HOST_FLAGS) ; do \
9264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9265 done; \
22121df0 9266 echo "Doing distclean in flex"; \
a90ef4bf 9267 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9270 "RANLIB=$${RANLIB}" \
9271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9272 distclean) \
9273 || exit 1
9274
a90ef4bf 9275@endif flex
f9806fa5 9276
a90ef4bf
JM
9277.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9278maybe-maintainer-clean-flex:
9279@if flex
9280maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9281
a90ef4bf 9282maintainer-clean-flex:
f9806fa5 9283 @: $(MAKE); $(unstage)
a90ef4bf 9284 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9285 r=`${PWD_COMMAND}`; export r; \
9286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9287 $(HOST_EXPORTS) \
9288 for flag in $(EXTRA_HOST_FLAGS) ; do \
9289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9290 done; \
22121df0 9291 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9292 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9295 "RANLIB=$${RANLIB}" \
9296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9297 maintainer-clean) \
9298 || exit 1
9299
a90ef4bf 9300@endif flex
f9806fa5
DE
9301
9302
9303
a90ef4bf
JM
9304.PHONY: configure-gas maybe-configure-gas
9305maybe-configure-gas:
4f0ef2d8 9306@if gcc-bootstrap
a90ef4bf 9307configure-gas: stage_current
4f0ef2d8 9308@endif gcc-bootstrap
a90ef4bf
JM
9309@if gas
9310maybe-configure-gas: configure-gas
9311configure-gas:
c52c6897 9312 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9314 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9315 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9316 $(HOST_EXPORTS) \
a90ef4bf
JM
9317 echo Configuring in $(HOST_SUBDIR)/gas; \
9318 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9319 case $(srcdir) in \
b00612cc 9320 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9321 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9322 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9323 esac; \
1b6c0831
L
9324 module_srcdir=gas; \
9325 $(SHELL) \
9326 $$s/$$module_srcdir/configure \
9327 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9328 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9329 --target=${target_alias} \
4fa63067 9330 || exit 1
a90ef4bf 9331@endif gas
a7254363 9332
d545f33b
PB
9333
9334
a90ef4bf
JM
9335.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9336maybe-configure-stage1-gas:
9337@if gas-bootstrap
9338maybe-configure-stage1-gas: configure-stage1-gas
9339configure-stage1-gas:
9340 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9341 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9342 @r=`${PWD_COMMAND}`; export r; \
9343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9344 TFLAGS="$(STAGE1_TFLAGS)"; \
9345 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9346 $(HOST_EXPORTS) \
9347 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9348 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9349 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9350 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9351 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9352 cd $(HOST_SUBDIR)/gas || exit 1; \
9353 case $(srcdir) in \
9354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9355 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9357 esac; \
1b6c0831
L
9358 module_srcdir=gas; \
9359 $(SHELL) $$s/$$module_srcdir/configure \
9360 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9361 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9362 --target=${target_alias} \
9363 \
a90ef4bf
JM
9364 $(STAGE1_CONFIGURE_FLAGS)
9365@endif gas-bootstrap
4fa63067 9366
a90ef4bf
JM
9367.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9368maybe-configure-stage2-gas:
9369@if gas-bootstrap
9370maybe-configure-stage2-gas: configure-stage2-gas
9371configure-stage2-gas:
9372 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9373 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9374 @r=`${PWD_COMMAND}`; export r; \
9375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9376 TFLAGS="$(STAGE2_TFLAGS)"; \
9377 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9378 $(HOST_EXPORTS) \
a90ef4bf
JM
9379 $(POSTSTAGE1_HOST_EXPORTS) \
9380 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9381 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9382 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9383 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9384 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9385 cd $(HOST_SUBDIR)/gas || exit 1; \
9386 case $(srcdir) in \
9387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9388 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9390 esac; \
1b6c0831
L
9391 module_srcdir=gas; \
9392 $(SHELL) $$s/$$module_srcdir/configure \
9393 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9395 --target=${target_alias} \
22121df0 9396 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9397 $(STAGE2_CONFIGURE_FLAGS)
9398@endif gas-bootstrap
4fa63067 9399
a90ef4bf
JM
9400.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9401maybe-configure-stage3-gas:
9402@if gas-bootstrap
9403maybe-configure-stage3-gas: configure-stage3-gas
9404configure-stage3-gas:
9405 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9406 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9407 @r=`${PWD_COMMAND}`; export r; \
9408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9409 TFLAGS="$(STAGE3_TFLAGS)"; \
9410 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9411 $(HOST_EXPORTS) \
a90ef4bf
JM
9412 $(POSTSTAGE1_HOST_EXPORTS) \
9413 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9414 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9415 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9416 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9417 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9418 cd $(HOST_SUBDIR)/gas || exit 1; \
9419 case $(srcdir) in \
9420 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9421 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9422 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9423 esac; \
1b6c0831
L
9424 module_srcdir=gas; \
9425 $(SHELL) $$s/$$module_srcdir/configure \
9426 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9427 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9428 --target=${target_alias} \
22121df0 9429 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9430 $(STAGE3_CONFIGURE_FLAGS)
9431@endif gas-bootstrap
9b980aa1 9432
a90ef4bf
JM
9433.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9434maybe-configure-stage4-gas:
9435@if gas-bootstrap
9436maybe-configure-stage4-gas: configure-stage4-gas
9437configure-stage4-gas:
9438 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9439 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9440 @r=`${PWD_COMMAND}`; export r; \
9441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9442 TFLAGS="$(STAGE4_TFLAGS)"; \
9443 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9444 $(HOST_EXPORTS) \
a90ef4bf
JM
9445 $(POSTSTAGE1_HOST_EXPORTS) \
9446 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9447 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9448 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9449 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9450 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9451 cd $(HOST_SUBDIR)/gas || exit 1; \
9452 case $(srcdir) in \
9453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9454 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9456 esac; \
1b6c0831
L
9457 module_srcdir=gas; \
9458 $(SHELL) $$s/$$module_srcdir/configure \
9459 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9460 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9461 --target=${target_alias} \
22121df0 9462 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9463 $(STAGE4_CONFIGURE_FLAGS)
9464@endif gas-bootstrap
4fa63067 9465
a90ef4bf
JM
9466.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9467maybe-configure-stageprofile-gas:
9468@if gas-bootstrap
9469maybe-configure-stageprofile-gas: configure-stageprofile-gas
9470configure-stageprofile-gas:
9471 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9472 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9473 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9475 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9476 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9477 $(HOST_EXPORTS) \
a90ef4bf
JM
9478 $(POSTSTAGE1_HOST_EXPORTS) \
9479 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9480 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9481 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9482 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9483 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9484 cd $(HOST_SUBDIR)/gas || exit 1; \
9485 case $(srcdir) in \
9486 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9487 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9488 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9489 esac; \
1b6c0831
L
9490 module_srcdir=gas; \
9491 $(SHELL) $$s/$$module_srcdir/configure \
9492 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9493 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9494 --target=${target_alias} \
22121df0 9495 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9496 $(STAGEprofile_CONFIGURE_FLAGS)
9497@endif gas-bootstrap
2a4cbe27 9498
a90ef4bf
JM
9499.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9500maybe-configure-stagefeedback-gas:
9501@if gas-bootstrap
9502maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9503configure-stagefeedback-gas:
9504 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9505 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9506 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9508 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9509 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9510 $(HOST_EXPORTS) \
a90ef4bf
JM
9511 $(POSTSTAGE1_HOST_EXPORTS) \
9512 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9513 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9514 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9515 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9516 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9517 cd $(HOST_SUBDIR)/gas || exit 1; \
9518 case $(srcdir) in \
9519 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9520 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9521 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9522 esac; \
1b6c0831
L
9523 module_srcdir=gas; \
9524 $(SHELL) $$s/$$module_srcdir/configure \
9525 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9526 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9527 --target=${target_alias} \
22121df0 9528 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9529 $(STAGEfeedback_CONFIGURE_FLAGS)
9530@endif gas-bootstrap
2a4cbe27 9531
56a8fe78 9532
56a8fe78 9533
56a8fe78 9534
6d389afc 9535
a90ef4bf
JM
9536.PHONY: all-gas maybe-all-gas
9537maybe-all-gas:
9538@if gcc-bootstrap
9539all-gas: stage_current
9540@endif gcc-bootstrap
9541@if gas
9542TARGET-gas=all
9543maybe-all-gas: all-gas
9544all-gas: configure-gas
9545 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9547 $(HOST_EXPORTS) \
9548 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9549 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9550 $(TARGET-gas))
9551@endif gas
6d389afc 9552
6d389afc 9553
2a4cbe27 9554
a90ef4bf
JM
9555.PHONY: all-stage1-gas maybe-all-stage1-gas
9556.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9557maybe-all-stage1-gas:
9558maybe-clean-stage1-gas:
9559@if gas-bootstrap
9560maybe-all-stage1-gas: all-stage1-gas
9561all-stage1: all-stage1-gas
9562TARGET-stage1-gas = $(TARGET-gas)
9563all-stage1-gas: configure-stage1-gas
9564 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9565 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9567 TFLAGS="$(STAGE1_TFLAGS)"; \
9568 $(HOST_EXPORTS) \
9569 cd $(HOST_SUBDIR)/gas && \
9570 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9571 CFLAGS="$(STAGE1_CFLAGS)" \
9572 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9573 LIBCFLAGS="$(LIBCFLAGS)" \
9574 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9575 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9576 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9577 $(EXTRA_HOST_FLAGS) \
9578 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9579 TFLAGS="$(STAGE1_TFLAGS)" \
9580 $(TARGET-stage1-gas)
2a4cbe27 9581
a90ef4bf
JM
9582maybe-clean-stage1-gas: clean-stage1-gas
9583clean-stage1: clean-stage1-gas
9584clean-stage1-gas:
9585 @if [ $(current_stage) = stage1 ]; then \
9586 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9587 else \
9588 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9589 $(MAKE) stage1-start; \
9590 fi; \
9591 cd $(HOST_SUBDIR)/gas && \
9592 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9593 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9594@endif gas-bootstrap
2a4cbe27 9595
2a4cbe27 9596
a90ef4bf
JM
9597.PHONY: all-stage2-gas maybe-all-stage2-gas
9598.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9599maybe-all-stage2-gas:
9600maybe-clean-stage2-gas:
9601@if gas-bootstrap
9602maybe-all-stage2-gas: all-stage2-gas
9603all-stage2: all-stage2-gas
9604TARGET-stage2-gas = $(TARGET-gas)
9605all-stage2-gas: configure-stage2-gas
9606 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9607 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9609 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9610 $(HOST_EXPORTS) \
a90ef4bf
JM
9611 $(POSTSTAGE1_HOST_EXPORTS) \
9612 cd $(HOST_SUBDIR)/gas && \
9613 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9614 CFLAGS="$(STAGE2_CFLAGS)" \
9615 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9616 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9617 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9618 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9619 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9620 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9621 TFLAGS="$(STAGE2_TFLAGS)" \
9622 $(TARGET-stage2-gas)
2a4cbe27 9623
a90ef4bf
JM
9624maybe-clean-stage2-gas: clean-stage2-gas
9625clean-stage2: clean-stage2-gas
9626clean-stage2-gas:
9627 @if [ $(current_stage) = stage2 ]; then \
9628 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9629 else \
9630 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9631 $(MAKE) stage2-start; \
9632 fi; \
9633 cd $(HOST_SUBDIR)/gas && \
b3676d82 9634 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9635@endif gas-bootstrap
2a4cbe27 9636
2a4cbe27 9637
a90ef4bf
JM
9638.PHONY: all-stage3-gas maybe-all-stage3-gas
9639.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9640maybe-all-stage3-gas:
9641maybe-clean-stage3-gas:
9642@if gas-bootstrap
9643maybe-all-stage3-gas: all-stage3-gas
9644all-stage3: all-stage3-gas
9645TARGET-stage3-gas = $(TARGET-gas)
9646all-stage3-gas: configure-stage3-gas
9647 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9648 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9650 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9651 $(HOST_EXPORTS) \
a90ef4bf
JM
9652 $(POSTSTAGE1_HOST_EXPORTS) \
9653 cd $(HOST_SUBDIR)/gas && \
9654 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9655 CFLAGS="$(STAGE3_CFLAGS)" \
9656 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9657 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9658 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9659 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9660 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9661 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9662 TFLAGS="$(STAGE3_TFLAGS)" \
9663 $(TARGET-stage3-gas)
2a4cbe27 9664
a90ef4bf
JM
9665maybe-clean-stage3-gas: clean-stage3-gas
9666clean-stage3: clean-stage3-gas
9667clean-stage3-gas:
9668 @if [ $(current_stage) = stage3 ]; then \
9669 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9670 else \
9671 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9672 $(MAKE) stage3-start; \
9673 fi; \
9674 cd $(HOST_SUBDIR)/gas && \
b3676d82 9675 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9676@endif gas-bootstrap
2a4cbe27 9677
2a4cbe27 9678
a90ef4bf
JM
9679.PHONY: all-stage4-gas maybe-all-stage4-gas
9680.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9681maybe-all-stage4-gas:
9682maybe-clean-stage4-gas:
9683@if gas-bootstrap
9684maybe-all-stage4-gas: all-stage4-gas
9685all-stage4: all-stage4-gas
9686TARGET-stage4-gas = $(TARGET-gas)
9687all-stage4-gas: configure-stage4-gas
9688 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9689 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9691 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9692 $(HOST_EXPORTS) \
a90ef4bf
JM
9693 $(POSTSTAGE1_HOST_EXPORTS) \
9694 cd $(HOST_SUBDIR)/gas && \
9695 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9696 CFLAGS="$(STAGE4_CFLAGS)" \
9697 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9698 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9699 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9700 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9701 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9702 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9703 TFLAGS="$(STAGE4_TFLAGS)" \
9704 $(TARGET-stage4-gas)
2a4cbe27 9705
a90ef4bf
JM
9706maybe-clean-stage4-gas: clean-stage4-gas
9707clean-stage4: clean-stage4-gas
9708clean-stage4-gas:
9709 @if [ $(current_stage) = stage4 ]; then \
9710 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9711 else \
9712 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9713 $(MAKE) stage4-start; \
9714 fi; \
9715 cd $(HOST_SUBDIR)/gas && \
b3676d82 9716 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9717@endif gas-bootstrap
2a4cbe27 9718
2a4cbe27 9719
a90ef4bf
JM
9720.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9721.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9722maybe-all-stageprofile-gas:
9723maybe-clean-stageprofile-gas:
9724@if gas-bootstrap
9725maybe-all-stageprofile-gas: all-stageprofile-gas
9726all-stageprofile: all-stageprofile-gas
9727TARGET-stageprofile-gas = $(TARGET-gas)
9728all-stageprofile-gas: configure-stageprofile-gas
9729 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9730 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9732 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9733 $(HOST_EXPORTS) \
a90ef4bf
JM
9734 $(POSTSTAGE1_HOST_EXPORTS) \
9735 cd $(HOST_SUBDIR)/gas && \
9736 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9737 CFLAGS="$(STAGEprofile_CFLAGS)" \
9738 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9739 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9740 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9741 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9742 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9743 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9744 TFLAGS="$(STAGEprofile_TFLAGS)" \
9745 $(TARGET-stageprofile-gas)
4fa63067 9746
a90ef4bf
JM
9747maybe-clean-stageprofile-gas: clean-stageprofile-gas
9748clean-stageprofile: clean-stageprofile-gas
9749clean-stageprofile-gas:
9750 @if [ $(current_stage) = stageprofile ]; then \
9751 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9752 else \
9753 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9754 $(MAKE) stageprofile-start; \
9755 fi; \
9756 cd $(HOST_SUBDIR)/gas && \
b3676d82 9757 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9758@endif gas-bootstrap
4fa63067 9759
a7254363 9760
a90ef4bf
JM
9761.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9762.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9763maybe-all-stagefeedback-gas:
9764maybe-clean-stagefeedback-gas:
9765@if gas-bootstrap
9766maybe-all-stagefeedback-gas: all-stagefeedback-gas
9767all-stagefeedback: all-stagefeedback-gas
9768TARGET-stagefeedback-gas = $(TARGET-gas)
9769all-stagefeedback-gas: configure-stagefeedback-gas
9770 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9771 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9773 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9774 $(HOST_EXPORTS) \
9775 $(POSTSTAGE1_HOST_EXPORTS) \
9776 cd $(HOST_SUBDIR)/gas && \
9777 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9778 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9779 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9780 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9781 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9782 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9783 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9784 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9785 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9786 $(TARGET-stagefeedback-gas)
d545f33b 9787
a90ef4bf
JM
9788maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9789clean-stagefeedback: clean-stagefeedback-gas
9790clean-stagefeedback-gas:
9791 @if [ $(current_stage) = stagefeedback ]; then \
9792 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9793 else \
9794 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9795 $(MAKE) stagefeedback-start; \
9796 fi; \
9797 cd $(HOST_SUBDIR)/gas && \
b3676d82 9798 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9799@endif gas-bootstrap
d545f33b 9800
2a4cbe27 9801
a7254363 9802
d545f33b
PB
9803
9804
a90ef4bf
JM
9805.PHONY: check-gas maybe-check-gas
9806maybe-check-gas:
9807@if gas
9808maybe-check-gas: check-gas
2a4cbe27 9809
a90ef4bf 9810check-gas:
0aed8855 9811 @: $(MAKE); $(unstage)
4fa63067 9812 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9814 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9815 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9816 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9817
a90ef4bf 9818@endif gas
2a4cbe27 9819
a90ef4bf
JM
9820.PHONY: install-gas maybe-install-gas
9821maybe-install-gas:
9822@if gas
9823maybe-install-gas: install-gas
2a4cbe27 9824
a90ef4bf 9825install-gas: installdirs
0aed8855 9826 @: $(MAKE); $(unstage)
4fa63067 9827 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9829 $(HOST_EXPORTS) \
a90ef4bf 9830 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9831 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9832
a90ef4bf 9833@endif gas
2a4cbe27 9834
a90ef4bf
JM
9835.PHONY: install-strip-gas maybe-install-strip-gas
9836maybe-install-strip-gas:
9837@if gas
9838maybe-install-strip-gas: install-strip-gas
9b980aa1 9839
a90ef4bf 9840install-strip-gas: installdirs
9b980aa1
RW
9841 @: $(MAKE); $(unstage)
9842 @r=`${PWD_COMMAND}`; export r; \
9843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9844 $(HOST_EXPORTS) \
a90ef4bf 9845 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9846 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9847
a90ef4bf 9848@endif gas
9b980aa1 9849
56a8fe78 9850# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9851
a90ef4bf
JM
9852.PHONY: maybe-info-gas info-gas
9853maybe-info-gas:
9854@if gas
9855maybe-info-gas: info-gas
2a4cbe27 9856
a90ef4bf
JM
9857info-gas: \
9858 configure-gas
9859 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9860 r=`${PWD_COMMAND}`; export r; \
9861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9862 $(HOST_EXPORTS) \
b813574b 9863 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9865 done; \
22121df0 9866 echo "Doing info in gas"; \
a90ef4bf 9867 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9870 "RANLIB=$${RANLIB}" \
0c24b341 9871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9872 info) \
2a4cbe27
NN
9873 || exit 1
9874
a90ef4bf 9875@endif gas
2a4cbe27 9876
a90ef4bf
JM
9877.PHONY: maybe-dvi-gas dvi-gas
9878maybe-dvi-gas:
9879@if gas
9880maybe-dvi-gas: dvi-gas
2a4cbe27 9881
a90ef4bf
JM
9882dvi-gas: \
9883 configure-gas
9884 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9885 r=`${PWD_COMMAND}`; export r; \
9886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9887 $(HOST_EXPORTS) \
b813574b 9888 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9890 done; \
22121df0 9891 echo "Doing dvi in gas"; \
a90ef4bf 9892 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9895 "RANLIB=$${RANLIB}" \
0c24b341 9896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9897 dvi) \
2a4cbe27
NN
9898 || exit 1
9899
a90ef4bf 9900@endif gas
2a4cbe27 9901
a90ef4bf
JM
9902.PHONY: maybe-pdf-gas pdf-gas
9903maybe-pdf-gas:
9904@if gas
9905maybe-pdf-gas: pdf-gas
56a8fe78 9906
a90ef4bf
JM
9907pdf-gas: \
9908 configure-gas
9909 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9910 r=`${PWD_COMMAND}`; export r; \
9911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9912 $(HOST_EXPORTS) \
9913 for flag in $(EXTRA_HOST_FLAGS) ; do \
9914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9915 done; \
22121df0 9916 echo "Doing pdf in gas"; \
a90ef4bf 9917 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9920 "RANLIB=$${RANLIB}" \
0c24b341 9921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9922 pdf) \
9923 || exit 1
9924
a90ef4bf 9925@endif gas
56a8fe78 9926
a90ef4bf
JM
9927.PHONY: maybe-html-gas html-gas
9928maybe-html-gas:
9929@if gas
9930maybe-html-gas: html-gas
6d389afc 9931
a90ef4bf
JM
9932html-gas: \
9933 configure-gas
9934 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9935 r=`${PWD_COMMAND}`; export r; \
9936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9937 $(HOST_EXPORTS) \
9938 for flag in $(EXTRA_HOST_FLAGS) ; do \
9939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9940 done; \
22121df0 9941 echo "Doing html in gas"; \
a90ef4bf 9942 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9945 "RANLIB=$${RANLIB}" \
0c24b341 9946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9947 html) \
9948 || exit 1
9949
a90ef4bf 9950@endif gas
6d389afc 9951
a90ef4bf
JM
9952.PHONY: maybe-TAGS-gas TAGS-gas
9953maybe-TAGS-gas:
9954@if gas
9955maybe-TAGS-gas: TAGS-gas
2a4cbe27 9956
a90ef4bf
JM
9957TAGS-gas: \
9958 configure-gas
9959 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9960 r=`${PWD_COMMAND}`; export r; \
9961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9962 $(HOST_EXPORTS) \
b813574b 9963 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9965 done; \
22121df0 9966 echo "Doing TAGS in gas"; \
a90ef4bf 9967 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9970 "RANLIB=$${RANLIB}" \
0c24b341 9971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9972 TAGS) \
2a4cbe27
NN
9973 || exit 1
9974
a90ef4bf 9975@endif gas
2a4cbe27 9976
a90ef4bf
JM
9977.PHONY: maybe-install-info-gas install-info-gas
9978maybe-install-info-gas:
9979@if gas
9980maybe-install-info-gas: install-info-gas
2a4cbe27 9981
a90ef4bf
JM
9982install-info-gas: \
9983 configure-gas \
9984 info-gas
9985 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9986 r=`${PWD_COMMAND}`; export r; \
9987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9988 $(HOST_EXPORTS) \
b813574b 9989 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9991 done; \
22121df0 9992 echo "Doing install-info in gas"; \
a90ef4bf 9993 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9996 "RANLIB=$${RANLIB}" \
0c24b341 9997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9998 install-info) \
2a4cbe27
NN
9999 || exit 1
10000
a90ef4bf 10001@endif gas
2a4cbe27 10002
a90ef4bf
JM
10003.PHONY: maybe-install-pdf-gas install-pdf-gas
10004maybe-install-pdf-gas:
10005@if gas
10006maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10007
a90ef4bf
JM
10008install-pdf-gas: \
10009 configure-gas \
10010 pdf-gas
10011 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10012 r=`${PWD_COMMAND}`; export r; \
10013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10014 $(HOST_EXPORTS) \
10015 for flag in $(EXTRA_HOST_FLAGS) ; do \
10016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10017 done; \
22121df0 10018 echo "Doing install-pdf in gas"; \
a90ef4bf 10019 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10022 "RANLIB=$${RANLIB}" \
0c24b341 10023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10024 install-pdf) \
10025 || exit 1
10026
a90ef4bf 10027@endif gas
a3ca38d2 10028
a90ef4bf
JM
10029.PHONY: maybe-install-html-gas install-html-gas
10030maybe-install-html-gas:
10031@if gas
10032maybe-install-html-gas: install-html-gas
108a6f8e 10033
a90ef4bf
JM
10034install-html-gas: \
10035 configure-gas \
10036 html-gas
10037 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10038 r=`${PWD_COMMAND}`; export r; \
10039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10040 $(HOST_EXPORTS) \
10041 for flag in $(EXTRA_HOST_FLAGS) ; do \
10042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10043 done; \
22121df0 10044 echo "Doing install-html in gas"; \
a90ef4bf 10045 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10048 "RANLIB=$${RANLIB}" \
0c24b341 10049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10050 install-html) \
10051 || exit 1
10052
a90ef4bf 10053@endif gas
108a6f8e 10054
a90ef4bf
JM
10055.PHONY: maybe-installcheck-gas installcheck-gas
10056maybe-installcheck-gas:
10057@if gas
10058maybe-installcheck-gas: installcheck-gas
2a4cbe27 10059
a90ef4bf
JM
10060installcheck-gas: \
10061 configure-gas
10062 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10063 r=`${PWD_COMMAND}`; export r; \
10064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10065 $(HOST_EXPORTS) \
b813574b 10066 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10068 done; \
22121df0 10069 echo "Doing installcheck in gas"; \
a90ef4bf 10070 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10073 "RANLIB=$${RANLIB}" \
0c24b341 10074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10075 installcheck) \
2a4cbe27
NN
10076 || exit 1
10077
a90ef4bf 10078@endif gas
2a4cbe27 10079
a90ef4bf
JM
10080.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10081maybe-mostlyclean-gas:
10082@if gas
10083maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10084
a90ef4bf
JM
10085mostlyclean-gas:
10086 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10087 r=`${PWD_COMMAND}`; export r; \
10088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10089 $(HOST_EXPORTS) \
b813574b 10090 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10092 done; \
22121df0 10093 echo "Doing mostlyclean in gas"; \
a90ef4bf 10094 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10097 "RANLIB=$${RANLIB}" \
0c24b341 10098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10099 mostlyclean) \
2a4cbe27
NN
10100 || exit 1
10101
a90ef4bf 10102@endif gas
2a4cbe27 10103
a90ef4bf
JM
10104.PHONY: maybe-clean-gas clean-gas
10105maybe-clean-gas:
10106@if gas
10107maybe-clean-gas: clean-gas
2a4cbe27 10108
a90ef4bf
JM
10109clean-gas:
10110 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10111 r=`${PWD_COMMAND}`; export r; \
10112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10113 $(HOST_EXPORTS) \
b813574b 10114 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10116 done; \
22121df0 10117 echo "Doing clean in gas"; \
a90ef4bf 10118 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10121 "RANLIB=$${RANLIB}" \
0c24b341 10122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10123 clean) \
2a4cbe27
NN
10124 || exit 1
10125
a90ef4bf 10126@endif gas
2a4cbe27 10127
a90ef4bf
JM
10128.PHONY: maybe-distclean-gas distclean-gas
10129maybe-distclean-gas:
10130@if gas
10131maybe-distclean-gas: distclean-gas
2a4cbe27 10132
a90ef4bf
JM
10133distclean-gas:
10134 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10135 r=`${PWD_COMMAND}`; export r; \
10136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10137 $(HOST_EXPORTS) \
b813574b 10138 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10140 done; \
22121df0 10141 echo "Doing distclean in gas"; \
a90ef4bf 10142 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10145 "RANLIB=$${RANLIB}" \
0c24b341 10146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10147 distclean) \
2a4cbe27
NN
10148 || exit 1
10149
a90ef4bf 10150@endif gas
2a4cbe27 10151
a90ef4bf
JM
10152.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10153maybe-maintainer-clean-gas:
10154@if gas
10155maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10156
a90ef4bf
JM
10157maintainer-clean-gas:
10158 @[ -f ./gas/Makefile ] || exit 0; \
10159 r=`${PWD_COMMAND}`; export r; \
b40e3958 10160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10161 $(HOST_EXPORTS) \
b813574b 10162 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10164 done; \
22121df0 10165 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10166 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10169 "RANLIB=$${RANLIB}" \
0c24b341 10170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10171 maintainer-clean) \
2a4cbe27
NN
10172 || exit 1
10173
a90ef4bf 10174@endif gas
2a4cbe27 10175
2a4cbe27 10176
a7254363 10177
a90ef4bf
JM
10178.PHONY: configure-gcc maybe-configure-gcc
10179maybe-configure-gcc:
4f0ef2d8 10180@if gcc-bootstrap
a90ef4bf 10181configure-gcc: stage_current
4f0ef2d8 10182@endif gcc-bootstrap
a90ef4bf
JM
10183@if gcc
10184maybe-configure-gcc: configure-gcc
10185configure-gcc:
c52c6897 10186 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10188 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10189 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10190 $(HOST_EXPORTS) \
a90ef4bf
JM
10191 echo Configuring in $(HOST_SUBDIR)/gcc; \
10192 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10193 case $(srcdir) in \
b00612cc 10194 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10195 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10196 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10197 esac; \
1b6c0831
L
10198 module_srcdir=gcc; \
10199 $(SHELL) \
10200 $$s/$$module_srcdir/configure \
10201 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10202 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10203 --target=${target_alias} \
4fa63067 10204 || exit 1
a90ef4bf 10205@endif gcc
a7254363 10206
d545f33b
PB
10207
10208
a90ef4bf
JM
10209.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10210maybe-configure-stage1-gcc:
4f0ef2d8 10211@if gcc-bootstrap
a90ef4bf
JM
10212maybe-configure-stage1-gcc: configure-stage1-gcc
10213configure-stage1-gcc:
10214 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10215 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10216 @r=`${PWD_COMMAND}`; export r; \
10217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10218 TFLAGS="$(STAGE1_TFLAGS)"; \
10219 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10220 $(HOST_EXPORTS) \
10221 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10222 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10223 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10224 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10225 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10226 cd $(HOST_SUBDIR)/gcc || exit 1; \
10227 case $(srcdir) in \
10228 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10229 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10230 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10231 esac; \
1b6c0831
L
10232 module_srcdir=gcc; \
10233 $(SHELL) $$s/$$module_srcdir/configure \
10234 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10235 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10236 --target=${target_alias} \
10237 \
a90ef4bf
JM
10238 $(STAGE1_CONFIGURE_FLAGS)
10239@endif gcc-bootstrap
4fa63067 10240
a90ef4bf
JM
10241.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10242maybe-configure-stage2-gcc:
10243@if gcc-bootstrap
10244maybe-configure-stage2-gcc: configure-stage2-gcc
10245configure-stage2-gcc:
10246 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10247 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10248 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10250 TFLAGS="$(STAGE2_TFLAGS)"; \
10251 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10252 $(HOST_EXPORTS) \
a90ef4bf
JM
10253 $(POSTSTAGE1_HOST_EXPORTS) \
10254 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10255 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10256 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10257 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10258 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10259 cd $(HOST_SUBDIR)/gcc || exit 1; \
10260 case $(srcdir) in \
10261 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10262 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10263 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10264 esac; \
1b6c0831
L
10265 module_srcdir=gcc; \
10266 $(SHELL) $$s/$$module_srcdir/configure \
10267 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10268 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10269 --target=${target_alias} \
22121df0 10270 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10271 $(STAGE2_CONFIGURE_FLAGS)
10272@endif gcc-bootstrap
9b980aa1 10273
a90ef4bf
JM
10274.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10275maybe-configure-stage3-gcc:
10276@if gcc-bootstrap
10277maybe-configure-stage3-gcc: configure-stage3-gcc
10278configure-stage3-gcc:
10279 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10280 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10281 @r=`${PWD_COMMAND}`; export r; \
10282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10283 TFLAGS="$(STAGE3_TFLAGS)"; \
10284 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10285 $(HOST_EXPORTS) \
a90ef4bf
JM
10286 $(POSTSTAGE1_HOST_EXPORTS) \
10287 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10288 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10289 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10290 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10291 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10292 cd $(HOST_SUBDIR)/gcc || exit 1; \
10293 case $(srcdir) in \
10294 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10295 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10296 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10297 esac; \
1b6c0831
L
10298 module_srcdir=gcc; \
10299 $(SHELL) $$s/$$module_srcdir/configure \
10300 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10301 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10302 --target=${target_alias} \
22121df0 10303 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10304 $(STAGE3_CONFIGURE_FLAGS)
10305@endif gcc-bootstrap
4fa63067 10306
a90ef4bf
JM
10307.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10308maybe-configure-stage4-gcc:
10309@if gcc-bootstrap
10310maybe-configure-stage4-gcc: configure-stage4-gcc
10311configure-stage4-gcc:
10312 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10313 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10314 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10316 TFLAGS="$(STAGE4_TFLAGS)"; \
10317 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10318 $(HOST_EXPORTS) \
a90ef4bf
JM
10319 $(POSTSTAGE1_HOST_EXPORTS) \
10320 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10321 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10322 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10323 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10325 cd $(HOST_SUBDIR)/gcc || exit 1; \
10326 case $(srcdir) in \
10327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10328 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10330 esac; \
1b6c0831
L
10331 module_srcdir=gcc; \
10332 $(SHELL) $$s/$$module_srcdir/configure \
10333 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10334 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10335 --target=${target_alias} \
22121df0 10336 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10337 $(STAGE4_CONFIGURE_FLAGS)
10338@endif gcc-bootstrap
2a4cbe27 10339
a90ef4bf
JM
10340.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10341maybe-configure-stageprofile-gcc:
10342@if gcc-bootstrap
10343maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10344configure-stageprofile-gcc:
10345 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10346 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10347 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10349 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10350 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10351 $(HOST_EXPORTS) \
a90ef4bf
JM
10352 $(POSTSTAGE1_HOST_EXPORTS) \
10353 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10354 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10355 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10356 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10357 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10358 cd $(HOST_SUBDIR)/gcc || exit 1; \
10359 case $(srcdir) in \
10360 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10361 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10362 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10363 esac; \
1b6c0831
L
10364 module_srcdir=gcc; \
10365 $(SHELL) $$s/$$module_srcdir/configure \
10366 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10367 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10368 --target=${target_alias} \
22121df0 10369 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10370 $(STAGEprofile_CONFIGURE_FLAGS)
10371@endif gcc-bootstrap
56a8fe78 10372
a90ef4bf
JM
10373.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10374maybe-configure-stagefeedback-gcc:
10375@if gcc-bootstrap
10376maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10377configure-stagefeedback-gcc:
10378 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10379 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10380 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10382 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10383 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10384 $(HOST_EXPORTS) \
a90ef4bf
JM
10385 $(POSTSTAGE1_HOST_EXPORTS) \
10386 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10387 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10388 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10389 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10390 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10391 cd $(HOST_SUBDIR)/gcc || exit 1; \
10392 case $(srcdir) in \
10393 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10394 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10395 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10396 esac; \
1b6c0831
L
10397 module_srcdir=gcc; \
10398 $(SHELL) $$s/$$module_srcdir/configure \
10399 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10400 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10401 --target=${target_alias} \
22121df0 10402 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10403 $(STAGEfeedback_CONFIGURE_FLAGS)
10404@endif gcc-bootstrap
56a8fe78 10405
2a4cbe27 10406
2a4cbe27
NN
10407
10408
2a4cbe27 10409
a90ef4bf
JM
10410.PHONY: all-gcc maybe-all-gcc
10411maybe-all-gcc:
10412@if gcc-bootstrap
10413all-gcc: stage_current
10414@endif gcc-bootstrap
10415@if gcc
10416TARGET-gcc=all
10417maybe-all-gcc: all-gcc
10418all-gcc: configure-gcc
10419 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10421 $(HOST_EXPORTS) \
10422 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10423 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10424 $(TARGET-gcc))
10425@endif gcc
6d389afc 10426
6d389afc 10427
6d389afc 10428
a90ef4bf
JM
10429.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10430.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10431maybe-all-stage1-gcc:
10432maybe-clean-stage1-gcc:
10433@if gcc-bootstrap
10434maybe-all-stage1-gcc: all-stage1-gcc
10435all-stage1: all-stage1-gcc
10436TARGET-stage1-gcc = $(TARGET-gcc)
10437all-stage1-gcc: configure-stage1-gcc
10438 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10439 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10441 TFLAGS="$(STAGE1_TFLAGS)"; \
10442 $(HOST_EXPORTS) \
10443 cd $(HOST_SUBDIR)/gcc && \
10444 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10445 CFLAGS="$(STAGE1_CFLAGS)" \
10446 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10447 LIBCFLAGS="$(LIBCFLAGS)" \
10448 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10449 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10450 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10451 $(EXTRA_HOST_FLAGS) \
10452 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10453 TFLAGS="$(STAGE1_TFLAGS)" \
10454 $(TARGET-stage1-gcc)
2a4cbe27 10455
a90ef4bf
JM
10456maybe-clean-stage1-gcc: clean-stage1-gcc
10457clean-stage1: clean-stage1-gcc
10458clean-stage1-gcc:
10459 @if [ $(current_stage) = stage1 ]; then \
10460 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10461 else \
10462 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10463 $(MAKE) stage1-start; \
10464 fi; \
10465 cd $(HOST_SUBDIR)/gcc && \
10466 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10467 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10468@endif gcc-bootstrap
2a4cbe27 10469
a3ca38d2 10470
a90ef4bf
JM
10471.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10472.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10473maybe-all-stage2-gcc:
10474maybe-clean-stage2-gcc:
10475@if gcc-bootstrap
10476maybe-all-stage2-gcc: all-stage2-gcc
10477all-stage2: all-stage2-gcc
10478TARGET-stage2-gcc = $(TARGET-gcc)
10479all-stage2-gcc: configure-stage2-gcc
10480 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10481 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10483 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10484 $(HOST_EXPORTS) \
a90ef4bf
JM
10485 $(POSTSTAGE1_HOST_EXPORTS) \
10486 cd $(HOST_SUBDIR)/gcc && \
10487 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10488 CFLAGS="$(STAGE2_CFLAGS)" \
10489 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10490 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10491 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10492 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10493 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10494 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10495 TFLAGS="$(STAGE2_TFLAGS)" \
10496 $(TARGET-stage2-gcc)
a3ca38d2 10497
a90ef4bf
JM
10498maybe-clean-stage2-gcc: clean-stage2-gcc
10499clean-stage2: clean-stage2-gcc
10500clean-stage2-gcc:
10501 @if [ $(current_stage) = stage2 ]; then \
10502 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10503 else \
10504 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10505 $(MAKE) stage2-start; \
10506 fi; \
10507 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10508 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10509@endif gcc-bootstrap
a3ca38d2 10510
108a6f8e 10511
a90ef4bf
JM
10512.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10513.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10514maybe-all-stage3-gcc:
10515maybe-clean-stage3-gcc:
10516@if gcc-bootstrap
10517maybe-all-stage3-gcc: all-stage3-gcc
10518all-stage3: all-stage3-gcc
10519TARGET-stage3-gcc = $(TARGET-gcc)
10520all-stage3-gcc: configure-stage3-gcc
10521 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10522 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10524 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10525 $(HOST_EXPORTS) \
a90ef4bf
JM
10526 $(POSTSTAGE1_HOST_EXPORTS) \
10527 cd $(HOST_SUBDIR)/gcc && \
10528 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10529 CFLAGS="$(STAGE3_CFLAGS)" \
10530 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10531 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10532 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10533 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10534 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10535 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10536 TFLAGS="$(STAGE3_TFLAGS)" \
10537 $(TARGET-stage3-gcc)
108a6f8e 10538
a90ef4bf
JM
10539maybe-clean-stage3-gcc: clean-stage3-gcc
10540clean-stage3: clean-stage3-gcc
10541clean-stage3-gcc:
10542 @if [ $(current_stage) = stage3 ]; then \
10543 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10544 else \
10545 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10546 $(MAKE) stage3-start; \
10547 fi; \
10548 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10549 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10550@endif gcc-bootstrap
108a6f8e 10551
2a4cbe27 10552
a90ef4bf
JM
10553.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10554.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10555maybe-all-stage4-gcc:
10556maybe-clean-stage4-gcc:
10557@if gcc-bootstrap
10558maybe-all-stage4-gcc: all-stage4-gcc
10559all-stage4: all-stage4-gcc
10560TARGET-stage4-gcc = $(TARGET-gcc)
10561all-stage4-gcc: configure-stage4-gcc
10562 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10563 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10565 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10566 $(HOST_EXPORTS) \
a90ef4bf
JM
10567 $(POSTSTAGE1_HOST_EXPORTS) \
10568 cd $(HOST_SUBDIR)/gcc && \
10569 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10570 CFLAGS="$(STAGE4_CFLAGS)" \
10571 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10572 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10573 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10574 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10575 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10576 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10577 TFLAGS="$(STAGE4_TFLAGS)" \
10578 $(TARGET-stage4-gcc)
2a4cbe27 10579
a90ef4bf
JM
10580maybe-clean-stage4-gcc: clean-stage4-gcc
10581clean-stage4: clean-stage4-gcc
10582clean-stage4-gcc:
10583 @if [ $(current_stage) = stage4 ]; then \
10584 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10585 else \
10586 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10587 $(MAKE) stage4-start; \
10588 fi; \
10589 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10590 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10591@endif gcc-bootstrap
2a4cbe27 10592
a2592b1b 10593
a90ef4bf
JM
10594.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10595.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10596maybe-all-stageprofile-gcc:
10597maybe-clean-stageprofile-gcc:
10598@if gcc-bootstrap
10599maybe-all-stageprofile-gcc: all-stageprofile-gcc
10600all-stageprofile: all-stageprofile-gcc
10601TARGET-stageprofile-gcc = $(TARGET-gcc)
10602all-stageprofile-gcc: configure-stageprofile-gcc
10603 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10604 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10606 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10607 $(HOST_EXPORTS) \
a90ef4bf
JM
10608 $(POSTSTAGE1_HOST_EXPORTS) \
10609 cd $(HOST_SUBDIR)/gcc && \
10610 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10611 CFLAGS="$(STAGEprofile_CFLAGS)" \
10612 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10613 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10614 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10615 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10616 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10617 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10618 TFLAGS="$(STAGEprofile_TFLAGS)" \
10619 $(TARGET-stageprofile-gcc)
2a4cbe27 10620
a90ef4bf
JM
10621maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10622clean-stageprofile: clean-stageprofile-gcc
10623clean-stageprofile-gcc:
10624 @if [ $(current_stage) = stageprofile ]; then \
10625 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10626 else \
10627 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10628 $(MAKE) stageprofile-start; \
10629 fi; \
10630 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10631 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10632@endif gcc-bootstrap
2a4cbe27 10633
a7254363 10634
a90ef4bf
JM
10635.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10636.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10637maybe-all-stagefeedback-gcc:
10638maybe-clean-stagefeedback-gcc:
4f0ef2d8 10639@if gcc-bootstrap
a90ef4bf
JM
10640maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10641all-stagefeedback: all-stagefeedback-gcc
10642TARGET-stagefeedback-gcc = $(TARGET-gcc)
10643all-stagefeedback-gcc: configure-stagefeedback-gcc
10644 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10645 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10647 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10648 $(HOST_EXPORTS) \
10649 $(POSTSTAGE1_HOST_EXPORTS) \
10650 cd $(HOST_SUBDIR)/gcc && \
10651 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10652 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10653 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10654 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10655 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10656 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10657 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10658 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10659 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10660 $(TARGET-stagefeedback-gcc)
d545f33b 10661
a90ef4bf
JM
10662maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10663clean-stagefeedback: clean-stagefeedback-gcc
10664clean-stagefeedback-gcc:
10665 @if [ $(current_stage) = stagefeedback ]; then \
10666 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10667 else \
10668 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10669 $(MAKE) stagefeedback-start; \
10670 fi; \
10671 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10672 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10673@endif gcc-bootstrap
4fa63067 10674
a7254363 10675
d545f33b
PB
10676
10677
4fa63067 10678
a90ef4bf
JM
10679.PHONY: check-gcc maybe-check-gcc
10680maybe-check-gcc:
10681@if gcc
10682maybe-check-gcc: check-gcc
10683
10684check-gcc:
0aed8855 10685 @: $(MAKE); $(unstage)
4fa63067
NN
10686 @r=`${PWD_COMMAND}`; export r; \
10687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10688 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10689 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10690 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10691
a90ef4bf 10692@endif gcc
4fa63067 10693
a90ef4bf
JM
10694.PHONY: install-gcc maybe-install-gcc
10695maybe-install-gcc:
10696@if gcc
10697maybe-install-gcc: install-gcc
4fa63067 10698
a90ef4bf 10699install-gcc: installdirs
0aed8855 10700 @: $(MAKE); $(unstage)
4fa63067
NN
10701 @r=`${PWD_COMMAND}`; export r; \
10702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10703 $(HOST_EXPORTS) \
a90ef4bf
JM
10704 (cd $(HOST_SUBDIR)/gcc && \
10705 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10706
a90ef4bf 10707@endif gcc
4fa63067 10708
a90ef4bf
JM
10709.PHONY: install-strip-gcc maybe-install-strip-gcc
10710maybe-install-strip-gcc:
10711@if gcc
10712maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10713
a90ef4bf 10714install-strip-gcc: installdirs
9b980aa1
RW
10715 @: $(MAKE); $(unstage)
10716 @r=`${PWD_COMMAND}`; export r; \
10717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10718 $(HOST_EXPORTS) \
a90ef4bf
JM
10719 (cd $(HOST_SUBDIR)/gcc && \
10720 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10721
a90ef4bf 10722@endif gcc
9b980aa1 10723
56a8fe78 10724# Other targets (info, dvi, pdf, etc.)
4fa63067 10725
a90ef4bf
JM
10726.PHONY: maybe-info-gcc info-gcc
10727maybe-info-gcc:
10728@if gcc
10729maybe-info-gcc: info-gcc
4fa63067 10730
a90ef4bf
JM
10731info-gcc: \
10732 configure-gcc
10733 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10734 r=`${PWD_COMMAND}`; export r; \
10735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10736 $(HOST_EXPORTS) \
a90ef4bf 10737 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10739 done; \
22121df0 10740 echo "Doing info in gcc"; \
a90ef4bf 10741 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10744 "RANLIB=$${RANLIB}" \
0c24b341 10745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10746 info) \
2a4cbe27
NN
10747 || exit 1
10748
a90ef4bf 10749@endif gcc
2a4cbe27 10750
a90ef4bf
JM
10751.PHONY: maybe-dvi-gcc dvi-gcc
10752maybe-dvi-gcc:
10753@if gcc
10754maybe-dvi-gcc: dvi-gcc
2a4cbe27 10755
a90ef4bf
JM
10756dvi-gcc: \
10757 configure-gcc
10758 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10759 r=`${PWD_COMMAND}`; export r; \
10760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10761 $(HOST_EXPORTS) \
a90ef4bf 10762 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10764 done; \
22121df0 10765 echo "Doing dvi in gcc"; \
a90ef4bf 10766 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10769 "RANLIB=$${RANLIB}" \
0c24b341 10770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10771 dvi) \
2a4cbe27
NN
10772 || exit 1
10773
a90ef4bf 10774@endif gcc
2a4cbe27 10775
a90ef4bf
JM
10776.PHONY: maybe-pdf-gcc pdf-gcc
10777maybe-pdf-gcc:
10778@if gcc
10779maybe-pdf-gcc: pdf-gcc
56a8fe78 10780
a90ef4bf
JM
10781pdf-gcc: \
10782 configure-gcc
10783 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10784 r=`${PWD_COMMAND}`; export r; \
10785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10786 $(HOST_EXPORTS) \
a90ef4bf 10787 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10789 done; \
22121df0 10790 echo "Doing pdf in gcc"; \
a90ef4bf 10791 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10794 "RANLIB=$${RANLIB}" \
0c24b341 10795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10796 pdf) \
10797 || exit 1
10798
a90ef4bf 10799@endif gcc
56a8fe78 10800
a90ef4bf
JM
10801.PHONY: maybe-html-gcc html-gcc
10802maybe-html-gcc:
10803@if gcc
10804maybe-html-gcc: html-gcc
6d389afc 10805
a90ef4bf
JM
10806html-gcc: \
10807 configure-gcc
10808 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10809 r=`${PWD_COMMAND}`; export r; \
10810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10811 $(HOST_EXPORTS) \
a90ef4bf 10812 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10814 done; \
22121df0 10815 echo "Doing html in gcc"; \
a90ef4bf 10816 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10819 "RANLIB=$${RANLIB}" \
0c24b341 10820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10821 html) \
10822 || exit 1
10823
a90ef4bf 10824@endif gcc
6d389afc 10825
a90ef4bf
JM
10826.PHONY: maybe-TAGS-gcc TAGS-gcc
10827maybe-TAGS-gcc:
10828@if gcc
10829maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10830
a90ef4bf
JM
10831TAGS-gcc: \
10832 configure-gcc
10833 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10834 r=`${PWD_COMMAND}`; export r; \
10835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10836 $(HOST_EXPORTS) \
a90ef4bf 10837 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10839 done; \
22121df0 10840 echo "Doing TAGS in gcc"; \
a90ef4bf 10841 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10844 "RANLIB=$${RANLIB}" \
0c24b341 10845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10846 TAGS) \
2a4cbe27
NN
10847 || exit 1
10848
a90ef4bf 10849@endif gcc
2a4cbe27 10850
a90ef4bf
JM
10851.PHONY: maybe-install-info-gcc install-info-gcc
10852maybe-install-info-gcc:
10853@if gcc
10854maybe-install-info-gcc: install-info-gcc
2a4cbe27 10855
a90ef4bf
JM
10856install-info-gcc: \
10857 configure-gcc \
10858 info-gcc
10859 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10860 r=`${PWD_COMMAND}`; export r; \
10861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10862 $(HOST_EXPORTS) \
a90ef4bf 10863 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10865 done; \
22121df0 10866 echo "Doing install-info in gcc"; \
a90ef4bf 10867 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10870 "RANLIB=$${RANLIB}" \
0c24b341 10871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10872 install-info) \
2a4cbe27
NN
10873 || exit 1
10874
a90ef4bf 10875@endif gcc
2a4cbe27 10876
a90ef4bf
JM
10877.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10878maybe-install-pdf-gcc:
10879@if gcc
10880maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10881
a90ef4bf
JM
10882install-pdf-gcc: \
10883 configure-gcc \
10884 pdf-gcc
10885 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10886 r=`${PWD_COMMAND}`; export r; \
10887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10888 $(HOST_EXPORTS) \
a90ef4bf 10889 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10891 done; \
22121df0 10892 echo "Doing install-pdf in gcc"; \
a90ef4bf 10893 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10896 "RANLIB=$${RANLIB}" \
0c24b341 10897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10898 install-pdf) \
10899 || exit 1
10900
a90ef4bf 10901@endif gcc
a3ca38d2 10902
a90ef4bf
JM
10903.PHONY: maybe-install-html-gcc install-html-gcc
10904maybe-install-html-gcc:
10905@if gcc
10906maybe-install-html-gcc: install-html-gcc
108a6f8e 10907
a90ef4bf
JM
10908install-html-gcc: \
10909 configure-gcc \
10910 html-gcc
10911 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10912 r=`${PWD_COMMAND}`; export r; \
10913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10914 $(HOST_EXPORTS) \
a90ef4bf 10915 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10917 done; \
22121df0 10918 echo "Doing install-html in gcc"; \
a90ef4bf 10919 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10922 "RANLIB=$${RANLIB}" \
0c24b341 10923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10924 install-html) \
10925 || exit 1
10926
a90ef4bf 10927@endif gcc
108a6f8e 10928
a90ef4bf
JM
10929.PHONY: maybe-installcheck-gcc installcheck-gcc
10930maybe-installcheck-gcc:
10931@if gcc
10932maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10933
a90ef4bf
JM
10934installcheck-gcc: \
10935 configure-gcc
10936 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10937 r=`${PWD_COMMAND}`; export r; \
10938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10939 $(HOST_EXPORTS) \
a90ef4bf 10940 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10942 done; \
22121df0 10943 echo "Doing installcheck in gcc"; \
a90ef4bf 10944 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10947 "RANLIB=$${RANLIB}" \
0c24b341 10948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10949 installcheck) \
2a4cbe27
NN
10950 || exit 1
10951
a90ef4bf 10952@endif gcc
2a4cbe27 10953
a90ef4bf
JM
10954.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10955maybe-mostlyclean-gcc:
10956@if gcc
10957maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 10958
a90ef4bf
JM
10959mostlyclean-gcc:
10960 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10961 r=`${PWD_COMMAND}`; export r; \
10962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10963 $(HOST_EXPORTS) \
a90ef4bf 10964 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10966 done; \
22121df0 10967 echo "Doing mostlyclean in gcc"; \
a90ef4bf 10968 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10971 "RANLIB=$${RANLIB}" \
0c24b341 10972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10973 mostlyclean) \
2a4cbe27
NN
10974 || exit 1
10975
a90ef4bf 10976@endif gcc
2a4cbe27 10977
a90ef4bf
JM
10978.PHONY: maybe-clean-gcc clean-gcc
10979maybe-clean-gcc:
10980@if gcc
10981maybe-clean-gcc: clean-gcc
2a4cbe27 10982
a90ef4bf
JM
10983clean-gcc:
10984 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10985 r=`${PWD_COMMAND}`; export r; \
10986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10987 $(HOST_EXPORTS) \
a90ef4bf 10988 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10990 done; \
22121df0 10991 echo "Doing clean in gcc"; \
a90ef4bf 10992 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10995 "RANLIB=$${RANLIB}" \
0c24b341 10996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10997 clean) \
2a4cbe27
NN
10998 || exit 1
10999
a90ef4bf 11000@endif gcc
2a4cbe27 11001
a90ef4bf
JM
11002.PHONY: maybe-distclean-gcc distclean-gcc
11003maybe-distclean-gcc:
11004@if gcc
11005maybe-distclean-gcc: distclean-gcc
2a4cbe27 11006
a90ef4bf
JM
11007distclean-gcc:
11008 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11009 r=`${PWD_COMMAND}`; export r; \
11010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11011 $(HOST_EXPORTS) \
a90ef4bf 11012 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11014 done; \
22121df0 11015 echo "Doing distclean in gcc"; \
a90ef4bf 11016 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11019 "RANLIB=$${RANLIB}" \
0c24b341 11020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11021 distclean) \
2a4cbe27
NN
11022 || exit 1
11023
a90ef4bf 11024@endif gcc
2a4cbe27 11025
a90ef4bf
JM
11026.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11027maybe-maintainer-clean-gcc:
11028@if gcc
11029maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11030
a90ef4bf
JM
11031maintainer-clean-gcc:
11032 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11033 r=`${PWD_COMMAND}`; export r; \
11034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11035 $(HOST_EXPORTS) \
a90ef4bf 11036 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11038 done; \
22121df0 11039 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11040 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11043 "RANLIB=$${RANLIB}" \
0c24b341 11044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11045 maintainer-clean) \
2a4cbe27
NN
11046 || exit 1
11047
a90ef4bf 11048@endif gcc
2a4cbe27 11049
2a4cbe27 11050
a7254363 11051
a90ef4bf
JM
11052.PHONY: configure-gmp maybe-configure-gmp
11053maybe-configure-gmp:
4f0ef2d8 11054@if gcc-bootstrap
a90ef4bf 11055configure-gmp: stage_current
4f0ef2d8 11056@endif gcc-bootstrap
a90ef4bf
JM
11057@if gmp
11058maybe-configure-gmp: configure-gmp
11059configure-gmp:
c52c6897 11060 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11062 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11063 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11064 $(HOST_EXPORTS) \
a90ef4bf
JM
11065 echo Configuring in $(HOST_SUBDIR)/gmp; \
11066 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11067 case $(srcdir) in \
b00612cc 11068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11069 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11071 esac; \
1b6c0831
L
11072 module_srcdir=gmp; \
11073 $(SHELL) \
11074 $$s/$$module_srcdir/configure \
11075 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11076 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11077 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11078 || exit 1
a90ef4bf 11079@endif gmp
a7254363 11080
d545f33b
PB
11081
11082
a90ef4bf
JM
11083.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11084maybe-configure-stage1-gmp:
11085@if gmp-bootstrap
11086maybe-configure-stage1-gmp: configure-stage1-gmp
11087configure-stage1-gmp:
11088 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11089 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11090 @r=`${PWD_COMMAND}`; export r; \
11091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11092 TFLAGS="$(STAGE1_TFLAGS)"; \
11093 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11094 $(HOST_EXPORTS) \
11095 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11096 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11097 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11098 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11099 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11100 cd $(HOST_SUBDIR)/gmp || exit 1; \
11101 case $(srcdir) in \
11102 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11103 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11104 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11105 esac; \
1b6c0831
L
11106 module_srcdir=gmp; \
11107 $(SHELL) $$s/$$module_srcdir/configure \
11108 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11109 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11110 --target=none-${host_vendor}-${host_os} \
11111 \
a90ef4bf 11112 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11113 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11114@endif gmp-bootstrap
4fa63067 11115
a90ef4bf
JM
11116.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11117maybe-configure-stage2-gmp:
11118@if gmp-bootstrap
11119maybe-configure-stage2-gmp: configure-stage2-gmp
11120configure-stage2-gmp:
11121 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11122 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11123 @r=`${PWD_COMMAND}`; export r; \
11124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11125 TFLAGS="$(STAGE2_TFLAGS)"; \
11126 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11127 $(HOST_EXPORTS) \
11128 $(POSTSTAGE1_HOST_EXPORTS) \
11129 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11130 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11131 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11132 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11134 cd $(HOST_SUBDIR)/gmp || exit 1; \
11135 case $(srcdir) in \
11136 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11137 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11138 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11139 esac; \
1b6c0831
L
11140 module_srcdir=gmp; \
11141 $(SHELL) $$s/$$module_srcdir/configure \
11142 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11143 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11144 --target=none-${host_vendor}-${host_os} \
22121df0 11145 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11146 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11147 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11148@endif gmp-bootstrap
4fa63067 11149
a90ef4bf
JM
11150.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11151maybe-configure-stage3-gmp:
11152@if gmp-bootstrap
11153maybe-configure-stage3-gmp: configure-stage3-gmp
11154configure-stage3-gmp:
11155 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11156 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11157 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11159 TFLAGS="$(STAGE3_TFLAGS)"; \
11160 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11161 $(HOST_EXPORTS) \
a90ef4bf
JM
11162 $(POSTSTAGE1_HOST_EXPORTS) \
11163 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11164 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11165 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11166 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11167 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11168 cd $(HOST_SUBDIR)/gmp || exit 1; \
11169 case $(srcdir) in \
11170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11171 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11173 esac; \
1b6c0831
L
11174 module_srcdir=gmp; \
11175 $(SHELL) $$s/$$module_srcdir/configure \
11176 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11177 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11178 --target=none-${host_vendor}-${host_os} \
22121df0 11179 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11180 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11181 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11182@endif gmp-bootstrap
2a4cbe27 11183
a90ef4bf
JM
11184.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11185maybe-configure-stage4-gmp:
11186@if gmp-bootstrap
11187maybe-configure-stage4-gmp: configure-stage4-gmp
11188configure-stage4-gmp:
11189 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11190 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11191 @r=`${PWD_COMMAND}`; export r; \
11192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11193 TFLAGS="$(STAGE4_TFLAGS)"; \
11194 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11195 $(HOST_EXPORTS) \
11196 $(POSTSTAGE1_HOST_EXPORTS) \
11197 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11198 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11199 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11200 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11201 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11202 cd $(HOST_SUBDIR)/gmp || exit 1; \
11203 case $(srcdir) in \
11204 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11205 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11206 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11207 esac; \
1b6c0831
L
11208 module_srcdir=gmp; \
11209 $(SHELL) $$s/$$module_srcdir/configure \
11210 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11211 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11212 --target=none-${host_vendor}-${host_os} \
22121df0 11213 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11214 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11215 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11216@endif gmp-bootstrap
2a4cbe27 11217
a90ef4bf
JM
11218.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11219maybe-configure-stageprofile-gmp:
11220@if gmp-bootstrap
11221maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11222configure-stageprofile-gmp:
11223 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11224 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11225 @r=`${PWD_COMMAND}`; export r; \
11226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11227 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11228 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11229 $(HOST_EXPORTS) \
11230 $(POSTSTAGE1_HOST_EXPORTS) \
11231 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11232 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11233 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11234 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11235 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11236 cd $(HOST_SUBDIR)/gmp || exit 1; \
11237 case $(srcdir) in \
11238 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11239 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11240 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11241 esac; \
1b6c0831
L
11242 module_srcdir=gmp; \
11243 $(SHELL) $$s/$$module_srcdir/configure \
11244 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11245 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11246 --target=none-${host_vendor}-${host_os} \
22121df0 11247 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11248 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11249 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11250@endif gmp-bootstrap
9b980aa1 11251
a90ef4bf
JM
11252.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11253maybe-configure-stagefeedback-gmp:
11254@if gmp-bootstrap
11255maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11256configure-stagefeedback-gmp:
11257 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11258 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11259 @r=`${PWD_COMMAND}`; export r; \
11260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11261 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11262 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11263 $(HOST_EXPORTS) \
a90ef4bf
JM
11264 $(POSTSTAGE1_HOST_EXPORTS) \
11265 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11266 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11267 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11268 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11269 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11270 cd $(HOST_SUBDIR)/gmp || exit 1; \
11271 case $(srcdir) in \
11272 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11273 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11274 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11275 esac; \
1b6c0831
L
11276 module_srcdir=gmp; \
11277 $(SHELL) $$s/$$module_srcdir/configure \
11278 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11279 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11280 --target=none-${host_vendor}-${host_os} \
22121df0 11281 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11282 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11283 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11284@endif gmp-bootstrap
9b980aa1 11285
9b980aa1 11286
2a4cbe27 11287
4fa63067 11288
a90ef4bf
JM
11289
11290.PHONY: all-gmp maybe-all-gmp
11291maybe-all-gmp:
11292@if gcc-bootstrap
11293all-gmp: stage_current
11294@endif gcc-bootstrap
11295@if gmp
11296TARGET-gmp=all
11297maybe-all-gmp: all-gmp
11298all-gmp: configure-gmp
11299 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11301 $(HOST_EXPORTS) \
11302 (cd $(HOST_SUBDIR)/gmp && \
b3676d82 11303 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11304 $(TARGET-gmp))
11305@endif gmp
2a4cbe27
NN
11306
11307
2a4cbe27 11308
a90ef4bf
JM
11309.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11310.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11311maybe-all-stage1-gmp:
11312maybe-clean-stage1-gmp:
11313@if gmp-bootstrap
11314maybe-all-stage1-gmp: all-stage1-gmp
11315all-stage1: all-stage1-gmp
11316TARGET-stage1-gmp = $(TARGET-gmp)
11317all-stage1-gmp: configure-stage1-gmp
11318 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11319 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11321 TFLAGS="$(STAGE1_TFLAGS)"; \
11322 $(HOST_EXPORTS) \
11323 cd $(HOST_SUBDIR)/gmp && \
11324 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11325 CFLAGS="$(STAGE1_CFLAGS)" \
11326 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11327 LIBCFLAGS="$(LIBCFLAGS)" \
11328 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11329 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11330 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
11331 $(EXTRA_HOST_FLAGS) \
11332 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11333 TFLAGS="$(STAGE1_TFLAGS)" \
11334 $(TARGET-stage1-gmp)
2a4cbe27 11335
a90ef4bf
JM
11336maybe-clean-stage1-gmp: clean-stage1-gmp
11337clean-stage1: clean-stage1-gmp
11338clean-stage1-gmp:
11339 @if [ $(current_stage) = stage1 ]; then \
11340 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11341 else \
11342 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11343 $(MAKE) stage1-start; \
11344 fi; \
11345 cd $(HOST_SUBDIR)/gmp && \
11346 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 11347 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11348@endif gmp-bootstrap
2a4cbe27 11349
56a8fe78 11350
a90ef4bf
JM
11351.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11352.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11353maybe-all-stage2-gmp:
11354maybe-clean-stage2-gmp:
11355@if gmp-bootstrap
11356maybe-all-stage2-gmp: all-stage2-gmp
11357all-stage2: all-stage2-gmp
11358TARGET-stage2-gmp = $(TARGET-gmp)
11359all-stage2-gmp: configure-stage2-gmp
11360 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11361 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11363 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11364 $(HOST_EXPORTS) \
a90ef4bf
JM
11365 $(POSTSTAGE1_HOST_EXPORTS) \
11366 cd $(HOST_SUBDIR)/gmp && \
11367 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11368 CFLAGS="$(STAGE2_CFLAGS)" \
11369 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11370 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11371 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11372 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11373 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11374 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11375 TFLAGS="$(STAGE2_TFLAGS)" \
11376 $(TARGET-stage2-gmp)
56a8fe78 11377
a90ef4bf
JM
11378maybe-clean-stage2-gmp: clean-stage2-gmp
11379clean-stage2: clean-stage2-gmp
11380clean-stage2-gmp:
11381 @if [ $(current_stage) = stage2 ]; then \
11382 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11383 else \
11384 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11385 $(MAKE) stage2-start; \
11386 fi; \
11387 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11388 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11389@endif gmp-bootstrap
56a8fe78 11390
6d389afc 11391
a90ef4bf
JM
11392.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11393.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11394maybe-all-stage3-gmp:
11395maybe-clean-stage3-gmp:
11396@if gmp-bootstrap
11397maybe-all-stage3-gmp: all-stage3-gmp
11398all-stage3: all-stage3-gmp
11399TARGET-stage3-gmp = $(TARGET-gmp)
11400all-stage3-gmp: configure-stage3-gmp
11401 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11402 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11404 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11405 $(HOST_EXPORTS) \
a90ef4bf
JM
11406 $(POSTSTAGE1_HOST_EXPORTS) \
11407 cd $(HOST_SUBDIR)/gmp && \
11408 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11409 CFLAGS="$(STAGE3_CFLAGS)" \
11410 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11411 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11412 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11413 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11414 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11415 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11416 TFLAGS="$(STAGE3_TFLAGS)" \
11417 $(TARGET-stage3-gmp)
6d389afc 11418
a90ef4bf
JM
11419maybe-clean-stage3-gmp: clean-stage3-gmp
11420clean-stage3: clean-stage3-gmp
11421clean-stage3-gmp:
11422 @if [ $(current_stage) = stage3 ]; then \
11423 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11424 else \
11425 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11426 $(MAKE) stage3-start; \
11427 fi; \
11428 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11429 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11430@endif gmp-bootstrap
6d389afc 11431
2a4cbe27 11432
a90ef4bf
JM
11433.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11434.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11435maybe-all-stage4-gmp:
11436maybe-clean-stage4-gmp:
11437@if gmp-bootstrap
11438maybe-all-stage4-gmp: all-stage4-gmp
11439all-stage4: all-stage4-gmp
11440TARGET-stage4-gmp = $(TARGET-gmp)
11441all-stage4-gmp: configure-stage4-gmp
11442 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11443 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11445 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11446 $(HOST_EXPORTS) \
a90ef4bf
JM
11447 $(POSTSTAGE1_HOST_EXPORTS) \
11448 cd $(HOST_SUBDIR)/gmp && \
11449 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11450 CFLAGS="$(STAGE4_CFLAGS)" \
11451 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11452 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11453 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11454 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11455 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11456 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11457 TFLAGS="$(STAGE4_TFLAGS)" \
11458 $(TARGET-stage4-gmp)
2a4cbe27 11459
a90ef4bf
JM
11460maybe-clean-stage4-gmp: clean-stage4-gmp
11461clean-stage4: clean-stage4-gmp
11462clean-stage4-gmp:
11463 @if [ $(current_stage) = stage4 ]; then \
11464 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11465 else \
11466 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11467 $(MAKE) stage4-start; \
11468 fi; \
11469 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11470 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11471@endif gmp-bootstrap
2a4cbe27 11472
2a4cbe27 11473
a90ef4bf
JM
11474.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11475.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11476maybe-all-stageprofile-gmp:
11477maybe-clean-stageprofile-gmp:
11478@if gmp-bootstrap
11479maybe-all-stageprofile-gmp: all-stageprofile-gmp
11480all-stageprofile: all-stageprofile-gmp
11481TARGET-stageprofile-gmp = $(TARGET-gmp)
11482all-stageprofile-gmp: configure-stageprofile-gmp
11483 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11484 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11486 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11487 $(HOST_EXPORTS) \
a90ef4bf
JM
11488 $(POSTSTAGE1_HOST_EXPORTS) \
11489 cd $(HOST_SUBDIR)/gmp && \
11490 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11491 CFLAGS="$(STAGEprofile_CFLAGS)" \
11492 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11493 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11494 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11495 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11496 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11497 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11498 TFLAGS="$(STAGEprofile_TFLAGS)" \
11499 $(TARGET-stageprofile-gmp)
2a4cbe27 11500
a90ef4bf
JM
11501maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11502clean-stageprofile: clean-stageprofile-gmp
11503clean-stageprofile-gmp:
11504 @if [ $(current_stage) = stageprofile ]; then \
11505 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11506 else \
11507 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11508 $(MAKE) stageprofile-start; \
11509 fi; \
11510 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11511 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11512@endif gmp-bootstrap
2a4cbe27 11513
a7254363 11514
a90ef4bf
JM
11515.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11516.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11517maybe-all-stagefeedback-gmp:
11518maybe-clean-stagefeedback-gmp:
11519@if gmp-bootstrap
11520maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11521all-stagefeedback: all-stagefeedback-gmp
11522TARGET-stagefeedback-gmp = $(TARGET-gmp)
11523all-stagefeedback-gmp: configure-stagefeedback-gmp
11524 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11525 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11527 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11528 $(HOST_EXPORTS) \
11529 $(POSTSTAGE1_HOST_EXPORTS) \
11530 cd $(HOST_SUBDIR)/gmp && \
11531 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11532 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11533 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11534 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11535 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11536 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11537 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11538 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11539 TFLAGS="$(STAGEfeedback_TFLAGS)" \
11540 $(TARGET-stagefeedback-gmp)
d545f33b 11541
a90ef4bf
JM
11542maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11543clean-stagefeedback: clean-stagefeedback-gmp
11544clean-stagefeedback-gmp:
11545 @if [ $(current_stage) = stagefeedback ]; then \
11546 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11547 else \
11548 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11549 $(MAKE) stagefeedback-start; \
11550 fi; \
11551 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11552 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11553@endif gmp-bootstrap
d545f33b 11554
4fa63067 11555
a7254363 11556
d545f33b
PB
11557
11558
a90ef4bf
JM
11559.PHONY: check-gmp maybe-check-gmp
11560maybe-check-gmp:
11561@if gmp
11562maybe-check-gmp: check-gmp
4fa63067 11563
a90ef4bf 11564check-gmp:
0aed8855 11565 @: $(MAKE); $(unstage)
4fa63067
NN
11566 @r=`${PWD_COMMAND}`; export r; \
11567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11568 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11569 (cd $(HOST_SUBDIR)/gmp && \
f91ca6bc 11570 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11571
a90ef4bf 11572@endif gmp
2a4cbe27 11573
a90ef4bf
JM
11574.PHONY: install-gmp maybe-install-gmp
11575maybe-install-gmp:
11576@if gmp
11577maybe-install-gmp: install-gmp
2a4cbe27 11578
a90ef4bf 11579install-gmp:
2a4cbe27 11580
a90ef4bf 11581@endif gmp
2a4cbe27 11582
a90ef4bf
JM
11583.PHONY: install-strip-gmp maybe-install-strip-gmp
11584maybe-install-strip-gmp:
11585@if gmp
11586maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11587
a90ef4bf 11588install-strip-gmp:
9b980aa1 11589
a90ef4bf 11590@endif gmp
9b980aa1 11591
56a8fe78 11592# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11593
a90ef4bf
JM
11594.PHONY: maybe-info-gmp info-gmp
11595maybe-info-gmp:
11596@if gmp
11597maybe-info-gmp: info-gmp
4fa63067 11598
a90ef4bf
JM
11599info-gmp: \
11600 configure-gmp
11601 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11602 r=`${PWD_COMMAND}`; export r; \
11603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11604 $(HOST_EXPORTS) \
b813574b 11605 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11607 done; \
22121df0 11608 echo "Doing info in gmp"; \
a90ef4bf 11609 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11612 "RANLIB=$${RANLIB}" \
0c24b341 11613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11614 info) \
2a4cbe27
NN
11615 || exit 1
11616
a90ef4bf 11617@endif gmp
2a4cbe27 11618
a90ef4bf
JM
11619.PHONY: maybe-dvi-gmp dvi-gmp
11620maybe-dvi-gmp:
11621@if gmp
11622maybe-dvi-gmp: dvi-gmp
2a4cbe27 11623
a90ef4bf
JM
11624dvi-gmp: \
11625 configure-gmp
11626 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11627 r=`${PWD_COMMAND}`; export r; \
11628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11629 $(HOST_EXPORTS) \
b813574b 11630 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11632 done; \
22121df0 11633 echo "Doing dvi in gmp"; \
a90ef4bf 11634 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11637 "RANLIB=$${RANLIB}" \
0c24b341 11638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11639 dvi) \
2a4cbe27
NN
11640 || exit 1
11641
a90ef4bf 11642@endif gmp
2a4cbe27 11643
a90ef4bf
JM
11644.PHONY: maybe-pdf-gmp pdf-gmp
11645maybe-pdf-gmp:
11646@if gmp
11647maybe-pdf-gmp: pdf-gmp
56a8fe78 11648
a90ef4bf
JM
11649pdf-gmp: \
11650 configure-gmp
11651 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11652 r=`${PWD_COMMAND}`; export r; \
11653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11654 $(HOST_EXPORTS) \
11655 for flag in $(EXTRA_HOST_FLAGS) ; do \
11656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11657 done; \
22121df0 11658 echo "Doing pdf in gmp"; \
a90ef4bf 11659 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11662 "RANLIB=$${RANLIB}" \
0c24b341 11663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11664 pdf) \
11665 || exit 1
11666
a90ef4bf 11667@endif gmp
56a8fe78 11668
a90ef4bf
JM
11669.PHONY: maybe-html-gmp html-gmp
11670maybe-html-gmp:
11671@if gmp
11672maybe-html-gmp: html-gmp
6d389afc 11673
a90ef4bf
JM
11674html-gmp: \
11675 configure-gmp
11676 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11677 r=`${PWD_COMMAND}`; export r; \
11678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11679 $(HOST_EXPORTS) \
11680 for flag in $(EXTRA_HOST_FLAGS) ; do \
11681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11682 done; \
22121df0 11683 echo "Doing html in gmp"; \
a90ef4bf 11684 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11687 "RANLIB=$${RANLIB}" \
0c24b341 11688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11689 html) \
11690 || exit 1
11691
a90ef4bf 11692@endif gmp
6d389afc 11693
a90ef4bf
JM
11694.PHONY: maybe-TAGS-gmp TAGS-gmp
11695maybe-TAGS-gmp:
11696@if gmp
11697maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11698
a90ef4bf
JM
11699TAGS-gmp: \
11700 configure-gmp
11701 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11702 r=`${PWD_COMMAND}`; export r; \
11703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11704 $(HOST_EXPORTS) \
b813574b 11705 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11707 done; \
22121df0 11708 echo "Doing TAGS in gmp"; \
a90ef4bf 11709 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11712 "RANLIB=$${RANLIB}" \
0c24b341 11713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11714 TAGS) \
2a4cbe27
NN
11715 || exit 1
11716
a90ef4bf 11717@endif gmp
2a4cbe27 11718
a90ef4bf
JM
11719.PHONY: maybe-install-info-gmp install-info-gmp
11720maybe-install-info-gmp:
11721@if gmp
11722maybe-install-info-gmp: install-info-gmp
2a4cbe27 11723
a90ef4bf
JM
11724install-info-gmp: \
11725 configure-gmp \
11726 info-gmp
11727 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11728 r=`${PWD_COMMAND}`; export r; \
11729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11730 $(HOST_EXPORTS) \
b813574b 11731 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11733 done; \
22121df0 11734 echo "Doing install-info in gmp"; \
a90ef4bf 11735 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11738 "RANLIB=$${RANLIB}" \
0c24b341 11739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11740 install-info) \
2a4cbe27
NN
11741 || exit 1
11742
a90ef4bf 11743@endif gmp
2a4cbe27 11744
a90ef4bf
JM
11745.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11746maybe-install-pdf-gmp:
11747@if gmp
11748maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11749
a90ef4bf
JM
11750install-pdf-gmp: \
11751 configure-gmp \
11752 pdf-gmp
11753 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11754 r=`${PWD_COMMAND}`; export r; \
11755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11756 $(HOST_EXPORTS) \
11757 for flag in $(EXTRA_HOST_FLAGS) ; do \
11758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11759 done; \
22121df0 11760 echo "Doing install-pdf in gmp"; \
a90ef4bf 11761 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11764 "RANLIB=$${RANLIB}" \
0c24b341 11765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11766 install-pdf) \
11767 || exit 1
11768
a90ef4bf 11769@endif gmp
a3ca38d2 11770
a90ef4bf
JM
11771.PHONY: maybe-install-html-gmp install-html-gmp
11772maybe-install-html-gmp:
11773@if gmp
11774maybe-install-html-gmp: install-html-gmp
108a6f8e 11775
a90ef4bf
JM
11776install-html-gmp: \
11777 configure-gmp \
11778 html-gmp
11779 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11780 r=`${PWD_COMMAND}`; export r; \
11781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11782 $(HOST_EXPORTS) \
11783 for flag in $(EXTRA_HOST_FLAGS) ; do \
11784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11785 done; \
22121df0 11786 echo "Doing install-html in gmp"; \
a90ef4bf 11787 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11790 "RANLIB=$${RANLIB}" \
0c24b341 11791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11792 install-html) \
11793 || exit 1
11794
a90ef4bf 11795@endif gmp
108a6f8e 11796
a90ef4bf
JM
11797.PHONY: maybe-installcheck-gmp installcheck-gmp
11798maybe-installcheck-gmp:
11799@if gmp
11800maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11801
a90ef4bf
JM
11802installcheck-gmp: \
11803 configure-gmp
11804 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11805 r=`${PWD_COMMAND}`; export r; \
11806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11807 $(HOST_EXPORTS) \
b813574b 11808 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11810 done; \
22121df0 11811 echo "Doing installcheck in gmp"; \
a90ef4bf 11812 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11815 "RANLIB=$${RANLIB}" \
0c24b341 11816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11817 installcheck) \
2a4cbe27
NN
11818 || exit 1
11819
a90ef4bf 11820@endif gmp
2a4cbe27 11821
a90ef4bf
JM
11822.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11823maybe-mostlyclean-gmp:
11824@if gmp
11825maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11826
a90ef4bf
JM
11827mostlyclean-gmp:
11828 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11829 r=`${PWD_COMMAND}`; export r; \
11830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11831 $(HOST_EXPORTS) \
b813574b 11832 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11834 done; \
22121df0 11835 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11836 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11839 "RANLIB=$${RANLIB}" \
0c24b341 11840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11841 mostlyclean) \
2a4cbe27
NN
11842 || exit 1
11843
a90ef4bf 11844@endif gmp
2a4cbe27 11845
a90ef4bf
JM
11846.PHONY: maybe-clean-gmp clean-gmp
11847maybe-clean-gmp:
11848@if gmp
11849maybe-clean-gmp: clean-gmp
2a4cbe27 11850
a90ef4bf
JM
11851clean-gmp:
11852 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11853 r=`${PWD_COMMAND}`; export r; \
11854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11855 $(HOST_EXPORTS) \
b813574b 11856 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11858 done; \
22121df0 11859 echo "Doing clean in gmp"; \
a90ef4bf 11860 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11863 "RANLIB=$${RANLIB}" \
0c24b341 11864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11865 clean) \
2a4cbe27
NN
11866 || exit 1
11867
a90ef4bf 11868@endif gmp
2a4cbe27 11869
a90ef4bf
JM
11870.PHONY: maybe-distclean-gmp distclean-gmp
11871maybe-distclean-gmp:
11872@if gmp
11873maybe-distclean-gmp: distclean-gmp
2a4cbe27 11874
a90ef4bf
JM
11875distclean-gmp:
11876 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11877 r=`${PWD_COMMAND}`; export r; \
11878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11879 $(HOST_EXPORTS) \
b813574b 11880 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11882 done; \
22121df0 11883 echo "Doing distclean in gmp"; \
a90ef4bf 11884 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11887 "RANLIB=$${RANLIB}" \
0c24b341 11888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11889 distclean) \
2a4cbe27
NN
11890 || exit 1
11891
a90ef4bf 11892@endif gmp
2a4cbe27 11893
a90ef4bf
JM
11894.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11895maybe-maintainer-clean-gmp:
11896@if gmp
11897maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11898
a90ef4bf
JM
11899maintainer-clean-gmp:
11900 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11901 r=`${PWD_COMMAND}`; export r; \
11902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11903 $(HOST_EXPORTS) \
b813574b 11904 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11906 done; \
22121df0 11907 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11908 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11911 "RANLIB=$${RANLIB}" \
0c24b341 11912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11913 maintainer-clean) \
2a4cbe27
NN
11914 || exit 1
11915
a90ef4bf 11916@endif gmp
2a4cbe27 11917
2a4cbe27 11918
a7254363 11919
a90ef4bf
JM
11920.PHONY: configure-mpfr maybe-configure-mpfr
11921maybe-configure-mpfr:
4f0ef2d8 11922@if gcc-bootstrap
a90ef4bf 11923configure-mpfr: stage_current
4f0ef2d8 11924@endif gcc-bootstrap
a90ef4bf
JM
11925@if mpfr
11926maybe-configure-mpfr: configure-mpfr
11927configure-mpfr:
11928 @r=`${PWD_COMMAND}`; export r; \
11929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11930 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 11931 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 11932 $(HOST_EXPORTS) \
a90ef4bf
JM
11933 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11934 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11935 case $(srcdir) in \
b00612cc 11936 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11937 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11938 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11939 esac; \
1b6c0831
L
11940 module_srcdir=mpfr; \
11941 $(SHELL) \
11942 $$s/$$module_srcdir/configure \
11943 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11944 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11945 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11946 || exit 1
a90ef4bf 11947@endif mpfr
d545f33b
PB
11948
11949
2a4cbe27 11950
a90ef4bf
JM
11951.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11952maybe-configure-stage1-mpfr:
11953@if mpfr-bootstrap
11954maybe-configure-stage1-mpfr: configure-stage1-mpfr
11955configure-stage1-mpfr:
11956 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11957 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11958 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11960 TFLAGS="$(STAGE1_TFLAGS)"; \
11961 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11962 $(HOST_EXPORTS) \
a90ef4bf
JM
11963 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11964 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11965 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11966 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
11967 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
11968 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11969 case $(srcdir) in \
11970 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11971 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11972 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11973 esac; \
1b6c0831
L
11974 module_srcdir=mpfr; \
11975 $(SHELL) $$s/$$module_srcdir/configure \
11976 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11977 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11978 --target=${target_alias} \
11979 \
a90ef4bf
JM
11980 $(STAGE1_CONFIGURE_FLAGS) \
11981 --disable-shared @extra_mpfr_configure_flags@
11982@endif mpfr-bootstrap
2a4cbe27 11983
a90ef4bf
JM
11984.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
11985maybe-configure-stage2-mpfr:
11986@if mpfr-bootstrap
11987maybe-configure-stage2-mpfr: configure-stage2-mpfr
11988configure-stage2-mpfr:
11989 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11990 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11991 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11993 TFLAGS="$(STAGE2_TFLAGS)"; \
11994 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11995 $(HOST_EXPORTS) \
a90ef4bf
JM
11996 $(POSTSTAGE1_HOST_EXPORTS) \
11997 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11998 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11999 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12000 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
12001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12002 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12003 case $(srcdir) in \
12004 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12005 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12006 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12007 esac; \
1b6c0831
L
12008 module_srcdir=mpfr; \
12009 $(SHELL) $$s/$$module_srcdir/configure \
12010 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12011 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12012 --target=${target_alias} \
22121df0 12013 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12014 $(STAGE2_CONFIGURE_FLAGS) \
12015 --disable-shared @extra_mpfr_configure_flags@
12016@endif mpfr-bootstrap
9b980aa1 12017
a90ef4bf
JM
12018.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12019maybe-configure-stage3-mpfr:
12020@if mpfr-bootstrap
12021maybe-configure-stage3-mpfr: configure-stage3-mpfr
12022configure-stage3-mpfr:
12023 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12024 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12025 @r=`${PWD_COMMAND}`; export r; \
12026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12027 TFLAGS="$(STAGE3_TFLAGS)"; \
12028 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12029 $(HOST_EXPORTS) \
a90ef4bf
JM
12030 $(POSTSTAGE1_HOST_EXPORTS) \
12031 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12032 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12033 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12034 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12035 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12036 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12037 case $(srcdir) in \
12038 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12039 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12040 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12041 esac; \
1b6c0831
L
12042 module_srcdir=mpfr; \
12043 $(SHELL) $$s/$$module_srcdir/configure \
12044 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12045 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12046 --target=${target_alias} \
22121df0 12047 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12048 $(STAGE3_CONFIGURE_FLAGS) \
12049 --disable-shared @extra_mpfr_configure_flags@
12050@endif mpfr-bootstrap
2a4cbe27 12051
a90ef4bf
JM
12052.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12053maybe-configure-stage4-mpfr:
12054@if mpfr-bootstrap
12055maybe-configure-stage4-mpfr: configure-stage4-mpfr
12056configure-stage4-mpfr:
12057 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12058 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12059 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12061 TFLAGS="$(STAGE4_TFLAGS)"; \
12062 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12063 $(HOST_EXPORTS) \
a90ef4bf
JM
12064 $(POSTSTAGE1_HOST_EXPORTS) \
12065 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12066 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12067 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12068 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12069 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12070 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12071 case $(srcdir) in \
12072 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12073 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12074 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12075 esac; \
1b6c0831
L
12076 module_srcdir=mpfr; \
12077 $(SHELL) $$s/$$module_srcdir/configure \
12078 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12079 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12080 --target=${target_alias} \
22121df0 12081 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12082 $(STAGE4_CONFIGURE_FLAGS) \
12083 --disable-shared @extra_mpfr_configure_flags@
12084@endif mpfr-bootstrap
2a4cbe27 12085
a90ef4bf
JM
12086.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12087maybe-configure-stageprofile-mpfr:
12088@if mpfr-bootstrap
12089maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12090configure-stageprofile-mpfr:
12091 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12092 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12093 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12095 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12096 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12097 $(HOST_EXPORTS) \
a90ef4bf
JM
12098 $(POSTSTAGE1_HOST_EXPORTS) \
12099 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12100 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12101 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12102 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12103 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12104 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12105 case $(srcdir) in \
12106 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12107 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12108 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12109 esac; \
1b6c0831
L
12110 module_srcdir=mpfr; \
12111 $(SHELL) $$s/$$module_srcdir/configure \
12112 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12113 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12114 --target=${target_alias} \
22121df0 12115 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12116 $(STAGEprofile_CONFIGURE_FLAGS) \
12117 --disable-shared @extra_mpfr_configure_flags@
12118@endif mpfr-bootstrap
56a8fe78 12119
a90ef4bf
JM
12120.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12121maybe-configure-stagefeedback-mpfr:
12122@if mpfr-bootstrap
12123maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12124configure-stagefeedback-mpfr:
12125 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12126 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12127 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12129 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12130 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12131 $(HOST_EXPORTS) \
a90ef4bf
JM
12132 $(POSTSTAGE1_HOST_EXPORTS) \
12133 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12134 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12135 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12136 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12137 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12138 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12139 case $(srcdir) in \
12140 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12141 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12142 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12143 esac; \
1b6c0831
L
12144 module_srcdir=mpfr; \
12145 $(SHELL) $$s/$$module_srcdir/configure \
12146 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12147 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12148 --target=${target_alias} \
22121df0 12149 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12150 $(STAGEfeedback_CONFIGURE_FLAGS) \
12151 --disable-shared @extra_mpfr_configure_flags@
12152@endif mpfr-bootstrap
56a8fe78 12153
6d389afc 12154
6d389afc 12155
6d389afc 12156
2a4cbe27 12157
a90ef4bf
JM
12158.PHONY: all-mpfr maybe-all-mpfr
12159maybe-all-mpfr:
12160@if gcc-bootstrap
12161all-mpfr: stage_current
12162@endif gcc-bootstrap
12163@if mpfr
12164TARGET-mpfr=all
12165maybe-all-mpfr: all-mpfr
12166all-mpfr: configure-mpfr
12167 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12169 $(HOST_EXPORTS) \
12170 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12171 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12172 $(TARGET-mpfr))
12173@endif mpfr
2a4cbe27
NN
12174
12175
2a4cbe27 12176
a90ef4bf
JM
12177.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12178.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12179maybe-all-stage1-mpfr:
12180maybe-clean-stage1-mpfr:
12181@if mpfr-bootstrap
12182maybe-all-stage1-mpfr: all-stage1-mpfr
12183all-stage1: all-stage1-mpfr
12184TARGET-stage1-mpfr = $(TARGET-mpfr)
12185all-stage1-mpfr: configure-stage1-mpfr
12186 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12187 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12189 TFLAGS="$(STAGE1_TFLAGS)"; \
12190 $(HOST_EXPORTS) \
12191 cd $(HOST_SUBDIR)/mpfr && \
12192 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12193 CFLAGS="$(STAGE1_CFLAGS)" \
12194 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12195 LIBCFLAGS="$(LIBCFLAGS)" \
12196 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12197 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12198 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12199 $(EXTRA_HOST_FLAGS) \
ce5e165e 12200 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12201 TFLAGS="$(STAGE1_TFLAGS)" \
12202 $(TARGET-stage1-mpfr)
2a4cbe27 12203
a90ef4bf
JM
12204maybe-clean-stage1-mpfr: clean-stage1-mpfr
12205clean-stage1: clean-stage1-mpfr
12206clean-stage1-mpfr:
12207 @if [ $(current_stage) = stage1 ]; then \
12208 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12209 else \
12210 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12211 $(MAKE) stage1-start; \
12212 fi; \
12213 cd $(HOST_SUBDIR)/mpfr && \
12214 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 12215 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12216@endif mpfr-bootstrap
2a4cbe27 12217
a3ca38d2 12218
a90ef4bf
JM
12219.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12220.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12221maybe-all-stage2-mpfr:
12222maybe-clean-stage2-mpfr:
12223@if mpfr-bootstrap
12224maybe-all-stage2-mpfr: all-stage2-mpfr
12225all-stage2: all-stage2-mpfr
12226TARGET-stage2-mpfr = $(TARGET-mpfr)
12227all-stage2-mpfr: configure-stage2-mpfr
12228 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12229 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12231 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12232 $(HOST_EXPORTS) \
a90ef4bf
JM
12233 $(POSTSTAGE1_HOST_EXPORTS) \
12234 cd $(HOST_SUBDIR)/mpfr && \
12235 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12236 CFLAGS="$(STAGE2_CFLAGS)" \
12237 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12238 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12239 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12240 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12241 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12242 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12243 TFLAGS="$(STAGE2_TFLAGS)" \
12244 $(TARGET-stage2-mpfr)
a3ca38d2 12245
a90ef4bf
JM
12246maybe-clean-stage2-mpfr: clean-stage2-mpfr
12247clean-stage2: clean-stage2-mpfr
12248clean-stage2-mpfr:
12249 @if [ $(current_stage) = stage2 ]; then \
12250 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12251 else \
12252 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12253 $(MAKE) stage2-start; \
12254 fi; \
12255 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12256 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12257@endif mpfr-bootstrap
a3ca38d2 12258
108a6f8e 12259
a90ef4bf
JM
12260.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12261.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12262maybe-all-stage3-mpfr:
12263maybe-clean-stage3-mpfr:
12264@if mpfr-bootstrap
12265maybe-all-stage3-mpfr: all-stage3-mpfr
12266all-stage3: all-stage3-mpfr
12267TARGET-stage3-mpfr = $(TARGET-mpfr)
12268all-stage3-mpfr: configure-stage3-mpfr
12269 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12270 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12272 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12273 $(HOST_EXPORTS) \
a90ef4bf
JM
12274 $(POSTSTAGE1_HOST_EXPORTS) \
12275 cd $(HOST_SUBDIR)/mpfr && \
12276 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12277 CFLAGS="$(STAGE3_CFLAGS)" \
12278 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12279 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12280 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12281 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12282 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12283 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12284 TFLAGS="$(STAGE3_TFLAGS)" \
12285 $(TARGET-stage3-mpfr)
108a6f8e 12286
a90ef4bf
JM
12287maybe-clean-stage3-mpfr: clean-stage3-mpfr
12288clean-stage3: clean-stage3-mpfr
12289clean-stage3-mpfr:
12290 @if [ $(current_stage) = stage3 ]; then \
12291 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12292 else \
12293 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12294 $(MAKE) stage3-start; \
12295 fi; \
12296 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12297 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12298@endif mpfr-bootstrap
108a6f8e 12299
2a4cbe27 12300
a90ef4bf
JM
12301.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12302.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12303maybe-all-stage4-mpfr:
12304maybe-clean-stage4-mpfr:
12305@if mpfr-bootstrap
12306maybe-all-stage4-mpfr: all-stage4-mpfr
12307all-stage4: all-stage4-mpfr
12308TARGET-stage4-mpfr = $(TARGET-mpfr)
12309all-stage4-mpfr: configure-stage4-mpfr
12310 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12311 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12313 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12314 $(HOST_EXPORTS) \
a90ef4bf
JM
12315 $(POSTSTAGE1_HOST_EXPORTS) \
12316 cd $(HOST_SUBDIR)/mpfr && \
12317 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12318 CFLAGS="$(STAGE4_CFLAGS)" \
12319 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12320 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12321 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12322 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12323 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12324 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12325 TFLAGS="$(STAGE4_TFLAGS)" \
12326 $(TARGET-stage4-mpfr)
2a4cbe27 12327
a90ef4bf
JM
12328maybe-clean-stage4-mpfr: clean-stage4-mpfr
12329clean-stage4: clean-stage4-mpfr
12330clean-stage4-mpfr:
12331 @if [ $(current_stage) = stage4 ]; then \
12332 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12333 else \
12334 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12335 $(MAKE) stage4-start; \
12336 fi; \
12337 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12338 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12339@endif mpfr-bootstrap
2a4cbe27 12340
2a4cbe27 12341
a90ef4bf
JM
12342.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12343.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12344maybe-all-stageprofile-mpfr:
12345maybe-clean-stageprofile-mpfr:
12346@if mpfr-bootstrap
12347maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12348all-stageprofile: all-stageprofile-mpfr
12349TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12350all-stageprofile-mpfr: configure-stageprofile-mpfr
12351 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12352 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12354 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12355 $(HOST_EXPORTS) \
a90ef4bf
JM
12356 $(POSTSTAGE1_HOST_EXPORTS) \
12357 cd $(HOST_SUBDIR)/mpfr && \
12358 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12359 CFLAGS="$(STAGEprofile_CFLAGS)" \
12360 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12361 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12362 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12363 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12364 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12365 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12366 TFLAGS="$(STAGEprofile_TFLAGS)" \
12367 $(TARGET-stageprofile-mpfr)
2a4cbe27 12368
a90ef4bf
JM
12369maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12370clean-stageprofile: clean-stageprofile-mpfr
12371clean-stageprofile-mpfr:
12372 @if [ $(current_stage) = stageprofile ]; then \
12373 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12374 else \
12375 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12376 $(MAKE) stageprofile-start; \
12377 fi; \
12378 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12379 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12380@endif mpfr-bootstrap
2a4cbe27 12381
a7254363 12382
a90ef4bf
JM
12383.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12384.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12385maybe-all-stagefeedback-mpfr:
12386maybe-clean-stagefeedback-mpfr:
12387@if mpfr-bootstrap
12388maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12389all-stagefeedback: all-stagefeedback-mpfr
12390TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12391all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12392 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12393 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12395 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12396 $(HOST_EXPORTS) \
12397 $(POSTSTAGE1_HOST_EXPORTS) \
12398 cd $(HOST_SUBDIR)/mpfr && \
12399 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12400 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12401 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12402 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12403 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12404 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12405 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12406 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12407 TFLAGS="$(STAGEfeedback_TFLAGS)" \
12408 $(TARGET-stagefeedback-mpfr)
d545f33b 12409
a90ef4bf
JM
12410maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12411clean-stagefeedback: clean-stagefeedback-mpfr
12412clean-stagefeedback-mpfr:
12413 @if [ $(current_stage) = stagefeedback ]; then \
12414 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12415 else \
12416 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12417 $(MAKE) stagefeedback-start; \
12418 fi; \
12419 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12420 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12421@endif mpfr-bootstrap
d545f33b 12422
2a4cbe27 12423
a7254363 12424
d545f33b
PB
12425
12426
a90ef4bf
JM
12427.PHONY: check-mpfr maybe-check-mpfr
12428maybe-check-mpfr:
12429@if mpfr
12430maybe-check-mpfr: check-mpfr
2a4cbe27 12431
a90ef4bf 12432check-mpfr:
0aed8855 12433 @: $(MAKE); $(unstage)
4fa63067 12434 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12436 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12437 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12438 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12439
a90ef4bf 12440@endif mpfr
2a4cbe27 12441
a90ef4bf
JM
12442.PHONY: install-mpfr maybe-install-mpfr
12443maybe-install-mpfr:
12444@if mpfr
12445maybe-install-mpfr: install-mpfr
2a4cbe27 12446
a90ef4bf 12447install-mpfr:
4fa63067 12448
a90ef4bf 12449@endif mpfr
4fa63067 12450
a90ef4bf
JM
12451.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12452maybe-install-strip-mpfr:
12453@if mpfr
12454maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12455
a90ef4bf 12456install-strip-mpfr:
9b980aa1 12457
a90ef4bf 12458@endif mpfr
9b980aa1 12459
56a8fe78 12460# Other targets (info, dvi, pdf, etc.)
4fa63067 12461
a90ef4bf
JM
12462.PHONY: maybe-info-mpfr info-mpfr
12463maybe-info-mpfr:
12464@if mpfr
12465maybe-info-mpfr: info-mpfr
4fa63067 12466
a90ef4bf
JM
12467info-mpfr: \
12468 configure-mpfr
12469 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12470 r=`${PWD_COMMAND}`; export r; \
12471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12472 $(HOST_EXPORTS) \
ce5e165e 12473 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12475 done; \
22121df0 12476 echo "Doing info in mpfr"; \
a90ef4bf 12477 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12480 "RANLIB=$${RANLIB}" \
0c24b341 12481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12482 info) \
2a4cbe27
NN
12483 || exit 1
12484
a90ef4bf 12485@endif mpfr
2a4cbe27 12486
a90ef4bf
JM
12487.PHONY: maybe-dvi-mpfr dvi-mpfr
12488maybe-dvi-mpfr:
12489@if mpfr
12490maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12491
a90ef4bf
JM
12492dvi-mpfr: \
12493 configure-mpfr
12494 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12495 r=`${PWD_COMMAND}`; export r; \
12496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12497 $(HOST_EXPORTS) \
ce5e165e 12498 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12500 done; \
22121df0 12501 echo "Doing dvi in mpfr"; \
a90ef4bf 12502 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12505 "RANLIB=$${RANLIB}" \
0c24b341 12506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12507 dvi) \
2a4cbe27
NN
12508 || exit 1
12509
a90ef4bf 12510@endif mpfr
2a4cbe27 12511
a90ef4bf
JM
12512.PHONY: maybe-pdf-mpfr pdf-mpfr
12513maybe-pdf-mpfr:
12514@if mpfr
12515maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12516
a90ef4bf
JM
12517pdf-mpfr: \
12518 configure-mpfr
12519 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12520 r=`${PWD_COMMAND}`; export r; \
12521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12522 $(HOST_EXPORTS) \
ce5e165e 12523 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
12524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12525 done; \
22121df0 12526 echo "Doing pdf in mpfr"; \
a90ef4bf 12527 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12530 "RANLIB=$${RANLIB}" \
0c24b341 12531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12532 pdf) \
12533 || exit 1
12534
a90ef4bf 12535@endif mpfr
56a8fe78 12536
a90ef4bf
JM
12537.PHONY: maybe-html-mpfr html-mpfr
12538maybe-html-mpfr:
12539@if mpfr
12540maybe-html-mpfr: html-mpfr
6d389afc 12541
a90ef4bf
JM
12542html-mpfr: \
12543 configure-mpfr
12544 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12545 r=`${PWD_COMMAND}`; export r; \
12546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12547 $(HOST_EXPORTS) \
ce5e165e 12548 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
12549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12550 done; \
22121df0 12551 echo "Doing html in mpfr"; \
a90ef4bf 12552 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12555 "RANLIB=$${RANLIB}" \
0c24b341 12556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12557 html) \
12558 || exit 1
12559
a90ef4bf 12560@endif mpfr
6d389afc 12561
a90ef4bf
JM
12562.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12563maybe-TAGS-mpfr:
12564@if mpfr
12565maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12566
a90ef4bf
JM
12567TAGS-mpfr: \
12568 configure-mpfr
12569 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12570 r=`${PWD_COMMAND}`; export r; \
12571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12572 $(HOST_EXPORTS) \
ce5e165e 12573 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12575 done; \
22121df0 12576 echo "Doing TAGS in mpfr"; \
a90ef4bf 12577 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12580 "RANLIB=$${RANLIB}" \
0c24b341 12581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12582 TAGS) \
2a4cbe27
NN
12583 || exit 1
12584
a90ef4bf 12585@endif mpfr
2a4cbe27 12586
a90ef4bf
JM
12587.PHONY: maybe-install-info-mpfr install-info-mpfr
12588maybe-install-info-mpfr:
12589@if mpfr
12590maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12591
a90ef4bf
JM
12592install-info-mpfr: \
12593 configure-mpfr \
12594 info-mpfr
12595 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12596 r=`${PWD_COMMAND}`; export r; \
12597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12598 $(HOST_EXPORTS) \
ce5e165e 12599 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12601 done; \
22121df0 12602 echo "Doing install-info in mpfr"; \
a90ef4bf 12603 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12606 "RANLIB=$${RANLIB}" \
0c24b341 12607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12608 install-info) \
2a4cbe27
NN
12609 || exit 1
12610
a90ef4bf 12611@endif mpfr
2a4cbe27 12612
a90ef4bf
JM
12613.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12614maybe-install-pdf-mpfr:
12615@if mpfr
12616maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12617
a90ef4bf
JM
12618install-pdf-mpfr: \
12619 configure-mpfr \
12620 pdf-mpfr
12621 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12622 r=`${PWD_COMMAND}`; export r; \
12623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12624 $(HOST_EXPORTS) \
ce5e165e 12625 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
12626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12627 done; \
22121df0 12628 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12629 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12632 "RANLIB=$${RANLIB}" \
0c24b341 12633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12634 install-pdf) \
12635 || exit 1
12636
a90ef4bf 12637@endif mpfr
a3ca38d2 12638
a90ef4bf
JM
12639.PHONY: maybe-install-html-mpfr install-html-mpfr
12640maybe-install-html-mpfr:
12641@if mpfr
12642maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12643
a90ef4bf
JM
12644install-html-mpfr: \
12645 configure-mpfr \
12646 html-mpfr
12647 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12648 r=`${PWD_COMMAND}`; export r; \
12649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12650 $(HOST_EXPORTS) \
ce5e165e 12651 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
12652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12653 done; \
22121df0 12654 echo "Doing install-html in mpfr"; \
a90ef4bf 12655 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12658 "RANLIB=$${RANLIB}" \
0c24b341 12659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12660 install-html) \
12661 || exit 1
12662
a90ef4bf 12663@endif mpfr
108a6f8e 12664
a90ef4bf
JM
12665.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12666maybe-installcheck-mpfr:
12667@if mpfr
12668maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12669
a90ef4bf
JM
12670installcheck-mpfr: \
12671 configure-mpfr
12672 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12673 r=`${PWD_COMMAND}`; export r; \
12674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12675 $(HOST_EXPORTS) \
ce5e165e 12676 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12678 done; \
22121df0 12679 echo "Doing installcheck in mpfr"; \
a90ef4bf 12680 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12683 "RANLIB=$${RANLIB}" \
0c24b341 12684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12685 installcheck) \
2a4cbe27
NN
12686 || exit 1
12687
a90ef4bf 12688@endif mpfr
2a4cbe27 12689
a90ef4bf
JM
12690.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12691maybe-mostlyclean-mpfr:
12692@if mpfr
12693maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12694
a90ef4bf
JM
12695mostlyclean-mpfr:
12696 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12697 r=`${PWD_COMMAND}`; export r; \
12698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12699 $(HOST_EXPORTS) \
ce5e165e 12700 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12702 done; \
22121df0 12703 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12704 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12707 "RANLIB=$${RANLIB}" \
0c24b341 12708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12709 mostlyclean) \
2a4cbe27
NN
12710 || exit 1
12711
a90ef4bf 12712@endif mpfr
2a4cbe27 12713
a90ef4bf
JM
12714.PHONY: maybe-clean-mpfr clean-mpfr
12715maybe-clean-mpfr:
12716@if mpfr
12717maybe-clean-mpfr: clean-mpfr
2a4cbe27 12718
a90ef4bf
JM
12719clean-mpfr:
12720 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12721 r=`${PWD_COMMAND}`; export r; \
12722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12723 $(HOST_EXPORTS) \
ce5e165e 12724 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12726 done; \
22121df0 12727 echo "Doing clean in mpfr"; \
a90ef4bf 12728 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12731 "RANLIB=$${RANLIB}" \
0c24b341 12732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12733 clean) \
2a4cbe27
NN
12734 || exit 1
12735
a90ef4bf 12736@endif mpfr
2a4cbe27 12737
a90ef4bf
JM
12738.PHONY: maybe-distclean-mpfr distclean-mpfr
12739maybe-distclean-mpfr:
12740@if mpfr
12741maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12742
a90ef4bf
JM
12743distclean-mpfr:
12744 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12745 r=`${PWD_COMMAND}`; export r; \
12746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12747 $(HOST_EXPORTS) \
ce5e165e 12748 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12750 done; \
22121df0 12751 echo "Doing distclean in mpfr"; \
a90ef4bf 12752 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12755 "RANLIB=$${RANLIB}" \
0c24b341 12756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12757 distclean) \
2a4cbe27
NN
12758 || exit 1
12759
a90ef4bf 12760@endif mpfr
2a4cbe27 12761
a90ef4bf
JM
12762.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12763maybe-maintainer-clean-mpfr:
12764@if mpfr
12765maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12766
a90ef4bf
JM
12767maintainer-clean-mpfr:
12768 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12769 r=`${PWD_COMMAND}`; export r; \
12770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12771 $(HOST_EXPORTS) \
ce5e165e 12772 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12774 done; \
22121df0 12775 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12776 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12779 "RANLIB=$${RANLIB}" \
0c24b341 12780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12781 maintainer-clean) \
2a4cbe27
NN
12782 || exit 1
12783
a90ef4bf 12784@endif mpfr
2a4cbe27 12785
2a4cbe27 12786
a7254363 12787
a90ef4bf
JM
12788.PHONY: configure-mpc maybe-configure-mpc
12789maybe-configure-mpc:
4f0ef2d8 12790@if gcc-bootstrap
a90ef4bf 12791configure-mpc: stage_current
4f0ef2d8 12792@endif gcc-bootstrap
a90ef4bf
JM
12793@if mpc
12794maybe-configure-mpc: configure-mpc
12795configure-mpc:
c52c6897 12796 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12798 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12799 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12800 $(HOST_EXPORTS) \
a90ef4bf
JM
12801 echo Configuring in $(HOST_SUBDIR)/mpc; \
12802 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12803 case $(srcdir) in \
b00612cc 12804 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12805 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12806 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12807 esac; \
1b6c0831
L
12808 module_srcdir=mpc; \
12809 $(SHELL) \
12810 $$s/$$module_srcdir/configure \
12811 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12812 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12813 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12814 || exit 1
a90ef4bf 12815@endif mpc
d545f33b
PB
12816
12817
d3ed111c 12818
a90ef4bf
JM
12819.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12820maybe-configure-stage1-mpc:
12821@if mpc-bootstrap
12822maybe-configure-stage1-mpc: configure-stage1-mpc
12823configure-stage1-mpc:
12824 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12825 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12826 @r=`${PWD_COMMAND}`; export r; \
12827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12828 TFLAGS="$(STAGE1_TFLAGS)"; \
12829 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12830 $(HOST_EXPORTS) \
a90ef4bf
JM
12831 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12832 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12833 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12834 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12835 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12836 cd $(HOST_SUBDIR)/mpc || exit 1; \
12837 case $(srcdir) in \
12838 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12839 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12840 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12841 esac; \
1b6c0831
L
12842 module_srcdir=mpc; \
12843 $(SHELL) $$s/$$module_srcdir/configure \
12844 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12845 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12846 --target=${target_alias} \
12847 \
a90ef4bf
JM
12848 $(STAGE1_CONFIGURE_FLAGS) \
12849 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12850@endif mpc-bootstrap
d3ed111c 12851
a90ef4bf
JM
12852.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12853maybe-configure-stage2-mpc:
12854@if mpc-bootstrap
12855maybe-configure-stage2-mpc: configure-stage2-mpc
12856configure-stage2-mpc:
12857 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12858 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12859 @r=`${PWD_COMMAND}`; export r; \
12860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12861 TFLAGS="$(STAGE2_TFLAGS)"; \
12862 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12863 $(HOST_EXPORTS) \
a90ef4bf
JM
12864 $(POSTSTAGE1_HOST_EXPORTS) \
12865 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12866 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12867 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12868 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12869 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12870 cd $(HOST_SUBDIR)/mpc || exit 1; \
12871 case $(srcdir) in \
12872 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12873 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12874 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12875 esac; \
1b6c0831
L
12876 module_srcdir=mpc; \
12877 $(SHELL) $$s/$$module_srcdir/configure \
12878 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12879 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12880 --target=${target_alias} \
22121df0 12881 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12882 $(STAGE2_CONFIGURE_FLAGS) \
12883 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12884@endif mpc-bootstrap
9b980aa1 12885
a90ef4bf
JM
12886.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12887maybe-configure-stage3-mpc:
12888@if mpc-bootstrap
12889maybe-configure-stage3-mpc: configure-stage3-mpc
12890configure-stage3-mpc:
12891 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12892 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12893 @r=`${PWD_COMMAND}`; export r; \
12894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12895 TFLAGS="$(STAGE3_TFLAGS)"; \
12896 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12897 $(HOST_EXPORTS) \
a90ef4bf
JM
12898 $(POSTSTAGE1_HOST_EXPORTS) \
12899 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12900 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12901 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12902 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
12903 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12904 cd $(HOST_SUBDIR)/mpc || exit 1; \
12905 case $(srcdir) in \
12906 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12907 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12908 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12909 esac; \
1b6c0831
L
12910 module_srcdir=mpc; \
12911 $(SHELL) $$s/$$module_srcdir/configure \
12912 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12913 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12914 --target=${target_alias} \
22121df0 12915 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12916 $(STAGE3_CONFIGURE_FLAGS) \
12917 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12918@endif mpc-bootstrap
d3ed111c 12919
a90ef4bf
JM
12920.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12921maybe-configure-stage4-mpc:
12922@if mpc-bootstrap
12923maybe-configure-stage4-mpc: configure-stage4-mpc
12924configure-stage4-mpc:
12925 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12926 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12927 @r=`${PWD_COMMAND}`; export r; \
12928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12929 TFLAGS="$(STAGE4_TFLAGS)"; \
12930 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12931 $(HOST_EXPORTS) \
12932 $(POSTSTAGE1_HOST_EXPORTS) \
12933 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12934 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12935 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12936 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
12937 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12938 cd $(HOST_SUBDIR)/mpc || exit 1; \
12939 case $(srcdir) in \
12940 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12941 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12942 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12943 esac; \
1b6c0831
L
12944 module_srcdir=mpc; \
12945 $(SHELL) $$s/$$module_srcdir/configure \
12946 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12947 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12948 --target=${target_alias} \
22121df0 12949 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12950 $(STAGE4_CONFIGURE_FLAGS) \
12951 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12952@endif mpc-bootstrap
12953
12954.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12955maybe-configure-stageprofile-mpc:
12956@if mpc-bootstrap
12957maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12958configure-stageprofile-mpc:
12959 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12960 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12961 @r=`${PWD_COMMAND}`; export r; \
12962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12963 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12964 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12965 $(HOST_EXPORTS) \
12966 $(POSTSTAGE1_HOST_EXPORTS) \
12967 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12968 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12969 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12970 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
12971 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12972 cd $(HOST_SUBDIR)/mpc || exit 1; \
12973 case $(srcdir) in \
12974 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12975 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12976 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12977 esac; \
1b6c0831
L
12978 module_srcdir=mpc; \
12979 $(SHELL) $$s/$$module_srcdir/configure \
12980 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12981 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12982 --target=${target_alias} \
22121df0 12983 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12984 $(STAGEprofile_CONFIGURE_FLAGS) \
12985 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12986@endif mpc-bootstrap
12987
12988.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
12989maybe-configure-stagefeedback-mpc:
12990@if mpc-bootstrap
12991maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
12992configure-stagefeedback-mpc:
12993 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12994 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12995 @r=`${PWD_COMMAND}`; export r; \
12996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12997 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12998 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12999 $(HOST_EXPORTS) \
13000 $(POSTSTAGE1_HOST_EXPORTS) \
13001 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13002 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13003 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13004 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13005 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13006 cd $(HOST_SUBDIR)/mpc || exit 1; \
13007 case $(srcdir) in \
13008 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13009 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13010 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13011 esac; \
1b6c0831
L
13012 module_srcdir=mpc; \
13013 $(SHELL) $$s/$$module_srcdir/configure \
13014 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13015 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13016 --target=${target_alias} \
22121df0 13017 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13018 $(STAGEfeedback_CONFIGURE_FLAGS) \
13019 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
13020@endif mpc-bootstrap
13021
13022
13023
13024
13025
13026.PHONY: all-mpc maybe-all-mpc
13027maybe-all-mpc:
13028@if gcc-bootstrap
13029all-mpc: stage_current
13030@endif gcc-bootstrap
13031@if mpc
13032TARGET-mpc=all
13033maybe-all-mpc: all-mpc
13034all-mpc: configure-mpc
13035 @r=`${PWD_COMMAND}`; export r; \
13036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13037 $(HOST_EXPORTS) \
13038 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13039 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13040 $(TARGET-mpc))
13041@endif mpc
13042
13043
13044
13045.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13046.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13047maybe-all-stage1-mpc:
13048maybe-clean-stage1-mpc:
13049@if mpc-bootstrap
13050maybe-all-stage1-mpc: all-stage1-mpc
13051all-stage1: all-stage1-mpc
13052TARGET-stage1-mpc = $(TARGET-mpc)
13053all-stage1-mpc: configure-stage1-mpc
13054 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13055 @r=`${PWD_COMMAND}`; export r; \
13056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13057 TFLAGS="$(STAGE1_TFLAGS)"; \
13058 $(HOST_EXPORTS) \
13059 cd $(HOST_SUBDIR)/mpc && \
13060 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13061 CFLAGS="$(STAGE1_CFLAGS)" \
13062 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13063 LIBCFLAGS="$(LIBCFLAGS)" \
13064 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13065 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13066 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13067 $(EXTRA_HOST_FLAGS) \
13068 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13069 TFLAGS="$(STAGE1_TFLAGS)" \
13070 $(TARGET-stage1-mpc)
13071
13072maybe-clean-stage1-mpc: clean-stage1-mpc
13073clean-stage1: clean-stage1-mpc
13074clean-stage1-mpc:
13075 @if [ $(current_stage) = stage1 ]; then \
13076 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13077 else \
13078 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13079 $(MAKE) stage1-start; \
13080 fi; \
13081 cd $(HOST_SUBDIR)/mpc && \
13082 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13083 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13084@endif mpc-bootstrap
13085
13086
13087.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13088.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13089maybe-all-stage2-mpc:
13090maybe-clean-stage2-mpc:
13091@if mpc-bootstrap
13092maybe-all-stage2-mpc: all-stage2-mpc
13093all-stage2: all-stage2-mpc
13094TARGET-stage2-mpc = $(TARGET-mpc)
13095all-stage2-mpc: configure-stage2-mpc
13096 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13097 @r=`${PWD_COMMAND}`; export r; \
13098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13099 TFLAGS="$(STAGE2_TFLAGS)"; \
13100 $(HOST_EXPORTS) \
13101 $(POSTSTAGE1_HOST_EXPORTS) \
13102 cd $(HOST_SUBDIR)/mpc && \
13103 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13104 CFLAGS="$(STAGE2_CFLAGS)" \
13105 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13106 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13107 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13108 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13109 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13110 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13111 TFLAGS="$(STAGE2_TFLAGS)" \
13112 $(TARGET-stage2-mpc)
13113
13114maybe-clean-stage2-mpc: clean-stage2-mpc
13115clean-stage2: clean-stage2-mpc
13116clean-stage2-mpc:
13117 @if [ $(current_stage) = stage2 ]; then \
13118 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13119 else \
13120 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13121 $(MAKE) stage2-start; \
13122 fi; \
13123 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13124 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13125@endif mpc-bootstrap
13126
13127
13128.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13129.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13130maybe-all-stage3-mpc:
13131maybe-clean-stage3-mpc:
13132@if mpc-bootstrap
13133maybe-all-stage3-mpc: all-stage3-mpc
13134all-stage3: all-stage3-mpc
13135TARGET-stage3-mpc = $(TARGET-mpc)
13136all-stage3-mpc: configure-stage3-mpc
13137 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13138 @r=`${PWD_COMMAND}`; export r; \
13139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13140 TFLAGS="$(STAGE3_TFLAGS)"; \
13141 $(HOST_EXPORTS) \
13142 $(POSTSTAGE1_HOST_EXPORTS) \
13143 cd $(HOST_SUBDIR)/mpc && \
13144 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13145 CFLAGS="$(STAGE3_CFLAGS)" \
13146 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13147 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13148 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13149 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13150 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13151 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13152 TFLAGS="$(STAGE3_TFLAGS)" \
13153 $(TARGET-stage3-mpc)
13154
13155maybe-clean-stage3-mpc: clean-stage3-mpc
13156clean-stage3: clean-stage3-mpc
13157clean-stage3-mpc:
13158 @if [ $(current_stage) = stage3 ]; then \
13159 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13160 else \
13161 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13162 $(MAKE) stage3-start; \
13163 fi; \
13164 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13165 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13166@endif mpc-bootstrap
13167
13168
13169.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13170.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13171maybe-all-stage4-mpc:
13172maybe-clean-stage4-mpc:
13173@if mpc-bootstrap
13174maybe-all-stage4-mpc: all-stage4-mpc
13175all-stage4: all-stage4-mpc
13176TARGET-stage4-mpc = $(TARGET-mpc)
13177all-stage4-mpc: configure-stage4-mpc
13178 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13179 @r=`${PWD_COMMAND}`; export r; \
13180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13181 TFLAGS="$(STAGE4_TFLAGS)"; \
13182 $(HOST_EXPORTS) \
13183 $(POSTSTAGE1_HOST_EXPORTS) \
13184 cd $(HOST_SUBDIR)/mpc && \
13185 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13186 CFLAGS="$(STAGE4_CFLAGS)" \
13187 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13188 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13189 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13190 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13191 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13192 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13193 TFLAGS="$(STAGE4_TFLAGS)" \
13194 $(TARGET-stage4-mpc)
13195
13196maybe-clean-stage4-mpc: clean-stage4-mpc
13197clean-stage4: clean-stage4-mpc
13198clean-stage4-mpc:
13199 @if [ $(current_stage) = stage4 ]; then \
13200 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13201 else \
13202 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13203 $(MAKE) stage4-start; \
13204 fi; \
13205 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13206 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13207@endif mpc-bootstrap
13208
13209
13210.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13211.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13212maybe-all-stageprofile-mpc:
13213maybe-clean-stageprofile-mpc:
13214@if mpc-bootstrap
13215maybe-all-stageprofile-mpc: all-stageprofile-mpc
13216all-stageprofile: all-stageprofile-mpc
13217TARGET-stageprofile-mpc = $(TARGET-mpc)
13218all-stageprofile-mpc: configure-stageprofile-mpc
13219 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13220 @r=`${PWD_COMMAND}`; export r; \
13221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13222 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13223 $(HOST_EXPORTS) \
13224 $(POSTSTAGE1_HOST_EXPORTS) \
13225 cd $(HOST_SUBDIR)/mpc && \
13226 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13227 CFLAGS="$(STAGEprofile_CFLAGS)" \
13228 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13229 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13230 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13231 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13232 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13233 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13234 TFLAGS="$(STAGEprofile_TFLAGS)" \
13235 $(TARGET-stageprofile-mpc)
13236
13237maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13238clean-stageprofile: clean-stageprofile-mpc
13239clean-stageprofile-mpc:
13240 @if [ $(current_stage) = stageprofile ]; then \
13241 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13242 else \
13243 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13244 $(MAKE) stageprofile-start; \
13245 fi; \
13246 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13247 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13248@endif mpc-bootstrap
13249
13250
13251.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13252.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13253maybe-all-stagefeedback-mpc:
13254maybe-clean-stagefeedback-mpc:
13255@if mpc-bootstrap
13256maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13257all-stagefeedback: all-stagefeedback-mpc
13258TARGET-stagefeedback-mpc = $(TARGET-mpc)
13259all-stagefeedback-mpc: configure-stagefeedback-mpc
13260 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13261 @r=`${PWD_COMMAND}`; export r; \
13262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13263 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13264 $(HOST_EXPORTS) \
13265 $(POSTSTAGE1_HOST_EXPORTS) \
13266 cd $(HOST_SUBDIR)/mpc && \
13267 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13268 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13269 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13270 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13271 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13272 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13273 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13274 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13275 TFLAGS="$(STAGEfeedback_TFLAGS)" \
13276 $(TARGET-stagefeedback-mpc)
13277
13278maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13279clean-stagefeedback: clean-stagefeedback-mpc
13280clean-stagefeedback-mpc:
13281 @if [ $(current_stage) = stagefeedback ]; then \
13282 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13283 else \
13284 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13285 $(MAKE) stagefeedback-start; \
13286 fi; \
13287 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13288 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13289@endif mpc-bootstrap
13290
13291
13292
13293
13294
13295.PHONY: check-mpc maybe-check-mpc
13296maybe-check-mpc:
13297@if mpc
13298maybe-check-mpc: check-mpc
13299
13300check-mpc:
13301 @: $(MAKE); $(unstage)
13302 @r=`${PWD_COMMAND}`; export r; \
13303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13304 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13305 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13306 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13307
13308@endif mpc
13309
13310.PHONY: install-mpc maybe-install-mpc
13311maybe-install-mpc:
13312@if mpc
13313maybe-install-mpc: install-mpc
13314
13315install-mpc:
13316
13317@endif mpc
13318
13319.PHONY: install-strip-mpc maybe-install-strip-mpc
13320maybe-install-strip-mpc:
13321@if mpc
13322maybe-install-strip-mpc: install-strip-mpc
13323
13324install-strip-mpc:
13325
13326@endif mpc
13327
13328# Other targets (info, dvi, pdf, etc.)
13329
13330.PHONY: maybe-info-mpc info-mpc
13331maybe-info-mpc:
13332@if mpc
13333maybe-info-mpc: info-mpc
13334
13335info-mpc: \
13336 configure-mpc
13337 @[ -f ./mpc/Makefile ] || exit 0; \
13338 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13340 $(HOST_EXPORTS) \
13341 for flag in $(EXTRA_HOST_FLAGS) ; do \
13342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13343 done; \
22121df0 13344 echo "Doing info in mpc"; \
a90ef4bf 13345 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13348 "RANLIB=$${RANLIB}" \
0c24b341 13349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13350 info) \
13351 || exit 1
d3ed111c 13352
a90ef4bf 13353@endif mpc
d3ed111c 13354
a90ef4bf
JM
13355.PHONY: maybe-dvi-mpc dvi-mpc
13356maybe-dvi-mpc:
13357@if mpc
13358maybe-dvi-mpc: dvi-mpc
d3ed111c 13359
a90ef4bf
JM
13360dvi-mpc: \
13361 configure-mpc
13362 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13363 r=`${PWD_COMMAND}`; export r; \
13364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13365 $(HOST_EXPORTS) \
13366 for flag in $(EXTRA_HOST_FLAGS) ; do \
13367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13368 done; \
22121df0 13369 echo "Doing dvi in mpc"; \
a90ef4bf 13370 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13373 "RANLIB=$${RANLIB}" \
0c24b341 13374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13375 dvi) \
13376 || exit 1
d3ed111c 13377
a90ef4bf 13378@endif mpc
d3ed111c 13379
a90ef4bf
JM
13380.PHONY: maybe-pdf-mpc pdf-mpc
13381maybe-pdf-mpc:
13382@if mpc
13383maybe-pdf-mpc: pdf-mpc
56a8fe78 13384
a90ef4bf
JM
13385pdf-mpc: \
13386 configure-mpc
13387 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13388 r=`${PWD_COMMAND}`; export r; \
13389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13390 $(HOST_EXPORTS) \
13391 for flag in $(EXTRA_HOST_FLAGS) ; do \
13392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13393 done; \
22121df0 13394 echo "Doing pdf in mpc"; \
a90ef4bf 13395 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13398 "RANLIB=$${RANLIB}" \
0c24b341 13399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13400 pdf) \
13401 || exit 1
56a8fe78 13402
a90ef4bf 13403@endif mpc
56a8fe78 13404
a90ef4bf
JM
13405.PHONY: maybe-html-mpc html-mpc
13406maybe-html-mpc:
13407@if mpc
13408maybe-html-mpc: html-mpc
6d389afc 13409
a90ef4bf
JM
13410html-mpc: \
13411 configure-mpc
13412 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13413 r=`${PWD_COMMAND}`; export r; \
13414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13415 $(HOST_EXPORTS) \
13416 for flag in $(EXTRA_HOST_FLAGS) ; do \
13417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13418 done; \
22121df0 13419 echo "Doing html in mpc"; \
a90ef4bf 13420 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13423 "RANLIB=$${RANLIB}" \
0c24b341 13424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13425 html) \
13426 || exit 1
13427
a90ef4bf 13428@endif mpc
d3ed111c 13429
a90ef4bf
JM
13430.PHONY: maybe-TAGS-mpc TAGS-mpc
13431maybe-TAGS-mpc:
13432@if mpc
13433maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13434
a90ef4bf
JM
13435TAGS-mpc: \
13436 configure-mpc
13437 @[ -f ./mpc/Makefile ] || exit 0; \
13438 r=`${PWD_COMMAND}`; export r; \
13439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13440 $(HOST_EXPORTS) \
13441 for flag in $(EXTRA_HOST_FLAGS) ; do \
13442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13443 done; \
22121df0 13444 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13445 (cd $(HOST_SUBDIR)/mpc && \
13446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13448 "RANLIB=$${RANLIB}" \
13449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13450 TAGS) \
13451 || exit 1
13452
13453@endif mpc
13454
13455.PHONY: maybe-install-info-mpc install-info-mpc
13456maybe-install-info-mpc:
13457@if mpc
13458maybe-install-info-mpc: install-info-mpc
13459
13460install-info-mpc: \
13461 configure-mpc \
13462 info-mpc
13463 @[ -f ./mpc/Makefile ] || exit 0; \
13464 r=`${PWD_COMMAND}`; export r; \
13465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13466 $(HOST_EXPORTS) \
13467 for flag in $(EXTRA_HOST_FLAGS) ; do \
13468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13469 done; \
22121df0 13470 echo "Doing install-info in mpc"; \
a90ef4bf 13471 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13474 "RANLIB=$${RANLIB}" \
0c24b341 13475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13476 install-info) \
13477 || exit 1
d3ed111c 13478
a90ef4bf 13479@endif mpc
d3ed111c 13480
a90ef4bf
JM
13481.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13482maybe-install-pdf-mpc:
13483@if mpc
13484maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13485
a90ef4bf
JM
13486install-pdf-mpc: \
13487 configure-mpc \
13488 pdf-mpc
13489 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13490 r=`${PWD_COMMAND}`; export r; \
13491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13492 $(HOST_EXPORTS) \
13493 for flag in $(EXTRA_HOST_FLAGS) ; do \
13494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13495 done; \
22121df0 13496 echo "Doing install-pdf in mpc"; \
a90ef4bf 13497 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13500 "RANLIB=$${RANLIB}" \
0c24b341 13501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13502 install-pdf) \
13503 || exit 1
a3ca38d2 13504
a90ef4bf 13505@endif mpc
a3ca38d2 13506
a90ef4bf
JM
13507.PHONY: maybe-install-html-mpc install-html-mpc
13508maybe-install-html-mpc:
13509@if mpc
13510maybe-install-html-mpc: install-html-mpc
108a6f8e 13511
a90ef4bf
JM
13512install-html-mpc: \
13513 configure-mpc \
13514 html-mpc
13515 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13516 r=`${PWD_COMMAND}`; export r; \
13517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13518 $(HOST_EXPORTS) \
13519 for flag in $(EXTRA_HOST_FLAGS) ; do \
13520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13521 done; \
22121df0 13522 echo "Doing install-html in mpc"; \
a90ef4bf 13523 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13526 "RANLIB=$${RANLIB}" \
0c24b341 13527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13528 install-html) \
13529 || exit 1
13530
a90ef4bf 13531@endif mpc
108a6f8e 13532
a90ef4bf
JM
13533.PHONY: maybe-installcheck-mpc installcheck-mpc
13534maybe-installcheck-mpc:
13535@if mpc
13536maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13537
a90ef4bf
JM
13538installcheck-mpc: \
13539 configure-mpc
13540 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13541 r=`${PWD_COMMAND}`; export r; \
13542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13543 $(HOST_EXPORTS) \
13544 for flag in $(EXTRA_HOST_FLAGS) ; do \
13545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13546 done; \
22121df0 13547 echo "Doing installcheck in mpc"; \
a90ef4bf 13548 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13551 "RANLIB=$${RANLIB}" \
0c24b341 13552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13553 installcheck) \
13554 || exit 1
d3ed111c 13555
a90ef4bf 13556@endif mpc
d3ed111c 13557
a90ef4bf
JM
13558.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13559maybe-mostlyclean-mpc:
13560@if mpc
13561maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13562
a90ef4bf
JM
13563mostlyclean-mpc:
13564 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13565 r=`${PWD_COMMAND}`; export r; \
13566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13567 $(HOST_EXPORTS) \
13568 for flag in $(EXTRA_HOST_FLAGS) ; do \
13569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13570 done; \
22121df0 13571 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13572 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13575 "RANLIB=$${RANLIB}" \
0c24b341 13576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13577 mostlyclean) \
13578 || exit 1
13579
a90ef4bf 13580@endif mpc
d3ed111c 13581
a90ef4bf
JM
13582.PHONY: maybe-clean-mpc clean-mpc
13583maybe-clean-mpc:
13584@if mpc
13585maybe-clean-mpc: clean-mpc
d3ed111c 13586
a90ef4bf
JM
13587clean-mpc:
13588 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13589 r=`${PWD_COMMAND}`; export r; \
13590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13591 $(HOST_EXPORTS) \
13592 for flag in $(EXTRA_HOST_FLAGS) ; do \
13593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13594 done; \
22121df0 13595 echo "Doing clean in mpc"; \
a90ef4bf 13596 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13599 "RANLIB=$${RANLIB}" \
0c24b341 13600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13601 clean) \
13602 || exit 1
13603
a90ef4bf 13604@endif mpc
d3ed111c 13605
a90ef4bf
JM
13606.PHONY: maybe-distclean-mpc distclean-mpc
13607maybe-distclean-mpc:
13608@if mpc
13609maybe-distclean-mpc: distclean-mpc
d3ed111c 13610
a90ef4bf
JM
13611distclean-mpc:
13612 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13613 r=`${PWD_COMMAND}`; export r; \
13614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13615 $(HOST_EXPORTS) \
13616 for flag in $(EXTRA_HOST_FLAGS) ; do \
13617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13618 done; \
22121df0 13619 echo "Doing distclean in mpc"; \
a90ef4bf 13620 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13623 "RANLIB=$${RANLIB}" \
0c24b341 13624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13625 distclean) \
13626 || exit 1
13627
a90ef4bf 13628@endif mpc
d3ed111c 13629
a90ef4bf
JM
13630.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13631maybe-maintainer-clean-mpc:
13632@if mpc
13633maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13634
a90ef4bf
JM
13635maintainer-clean-mpc:
13636 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13637 r=`${PWD_COMMAND}`; export r; \
13638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13639 $(HOST_EXPORTS) \
13640 for flag in $(EXTRA_HOST_FLAGS) ; do \
13641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13642 done; \
22121df0 13643 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13644 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13647 "RANLIB=$${RANLIB}" \
0c24b341 13648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13649 maintainer-clean) \
13650 || exit 1
13651
a90ef4bf 13652@endif mpc
d3ed111c
GK
13653
13654
a7254363 13655
7ec59b9e
L
13656.PHONY: configure-isl maybe-configure-isl
13657maybe-configure-isl:
4f0ef2d8 13658@if gcc-bootstrap
7ec59b9e 13659configure-isl: stage_current
4f0ef2d8 13660@endif gcc-bootstrap
7ec59b9e
L
13661@if isl
13662maybe-configure-isl: configure-isl
13663configure-isl:
c52c6897 13664 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13666 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13667 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13668 $(HOST_EXPORTS) \
7ec59b9e
L
13669 echo Configuring in $(HOST_SUBDIR)/isl; \
13670 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13671 case $(srcdir) in \
b00612cc 13672 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13673 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13674 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13675 esac; \
1b6c0831
L
13676 module_srcdir=isl; \
13677 $(SHELL) \
13678 $$s/$$module_srcdir/configure \
13679 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13680 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13681 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13682 || exit 1
7ec59b9e 13683@endif isl
4fa63067 13684
a7254363
PB
13685
13686
7ec59b9e
L
13687.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13688maybe-configure-stage1-isl:
13689@if isl-bootstrap
13690maybe-configure-stage1-isl: configure-stage1-isl
13691configure-stage1-isl:
a90ef4bf 13692 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13693 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13694 @r=`${PWD_COMMAND}`; export r; \
13695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13696 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13697 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13698 $(HOST_EXPORTS) \
13699 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13700 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13701 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13702 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13703 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13704 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13705 case $(srcdir) in \
13706 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13707 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13708 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13709 esac; \
1b6c0831
L
13710 module_srcdir=isl; \
13711 $(SHELL) $$s/$$module_srcdir/configure \
13712 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13713 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13714 --target=${target_alias} \
13715 \
a90ef4bf 13716 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13717 --disable-shared @extra_isl_gmp_configure_flags@
13718@endif isl-bootstrap
13719
13720.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13721maybe-configure-stage2-isl:
13722@if isl-bootstrap
13723maybe-configure-stage2-isl: configure-stage2-isl
13724configure-stage2-isl:
a90ef4bf 13725 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13726 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13727 @r=`${PWD_COMMAND}`; export r; \
13728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13729 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13730 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13731 $(HOST_EXPORTS) \
13732 $(POSTSTAGE1_HOST_EXPORTS) \
13733 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13734 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13735 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13736 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13737 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13738 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13739 case $(srcdir) in \
13740 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13741 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13742 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13743 esac; \
1b6c0831
L
13744 module_srcdir=isl; \
13745 $(SHELL) $$s/$$module_srcdir/configure \
13746 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13747 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13748 --target=${target_alias} \
22121df0 13749 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13750 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13751 --disable-shared @extra_isl_gmp_configure_flags@
13752@endif isl-bootstrap
13753
13754.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13755maybe-configure-stage3-isl:
13756@if isl-bootstrap
13757maybe-configure-stage3-isl: configure-stage3-isl
13758configure-stage3-isl:
a90ef4bf 13759 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13760 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13761 @r=`${PWD_COMMAND}`; export r; \
13762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13763 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13764 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13765 $(HOST_EXPORTS) \
13766 $(POSTSTAGE1_HOST_EXPORTS) \
13767 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13768 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13769 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13770 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13771 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13772 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13773 case $(srcdir) in \
13774 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13775 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13776 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13777 esac; \
1b6c0831
L
13778 module_srcdir=isl; \
13779 $(SHELL) $$s/$$module_srcdir/configure \
13780 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13781 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13782 --target=${target_alias} \
22121df0 13783 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13784 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13785 --disable-shared @extra_isl_gmp_configure_flags@
13786@endif isl-bootstrap
13787
13788.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13789maybe-configure-stage4-isl:
13790@if isl-bootstrap
13791maybe-configure-stage4-isl: configure-stage4-isl
13792configure-stage4-isl:
a90ef4bf 13793 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13794 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13795 @r=`${PWD_COMMAND}`; export r; \
13796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13797 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13798 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13799 $(HOST_EXPORTS) \
13800 $(POSTSTAGE1_HOST_EXPORTS) \
13801 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13802 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13803 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13804 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13805 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13806 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13807 case $(srcdir) in \
13808 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13809 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13810 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13811 esac; \
1b6c0831
L
13812 module_srcdir=isl; \
13813 $(SHELL) $$s/$$module_srcdir/configure \
13814 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13815 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13816 --target=${target_alias} \
22121df0 13817 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13818 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13819 --disable-shared @extra_isl_gmp_configure_flags@
13820@endif isl-bootstrap
13821
13822.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13823maybe-configure-stageprofile-isl:
13824@if isl-bootstrap
13825maybe-configure-stageprofile-isl: configure-stageprofile-isl
13826configure-stageprofile-isl:
a90ef4bf 13827 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13828 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13829 @r=`${PWD_COMMAND}`; export r; \
13830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13831 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13832 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13833 $(HOST_EXPORTS) \
13834 $(POSTSTAGE1_HOST_EXPORTS) \
13835 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13836 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13837 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13838 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13839 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13840 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13841 case $(srcdir) in \
13842 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13843 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13844 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13845 esac; \
1b6c0831
L
13846 module_srcdir=isl; \
13847 $(SHELL) $$s/$$module_srcdir/configure \
13848 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13849 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13850 --target=${target_alias} \
22121df0 13851 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13852 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13853 --disable-shared @extra_isl_gmp_configure_flags@
13854@endif isl-bootstrap
13855
13856.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13857maybe-configure-stagefeedback-isl:
13858@if isl-bootstrap
13859maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13860configure-stagefeedback-isl:
a90ef4bf 13861 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13862 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13863 @r=`${PWD_COMMAND}`; export r; \
13864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13865 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13866 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13867 $(HOST_EXPORTS) \
13868 $(POSTSTAGE1_HOST_EXPORTS) \
13869 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13870 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13871 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13872 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13873 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13874 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13875 case $(srcdir) in \
13876 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13877 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13878 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13879 esac; \
1b6c0831
L
13880 module_srcdir=isl; \
13881 $(SHELL) $$s/$$module_srcdir/configure \
13882 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13883 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13884 --target=${target_alias} \
22121df0 13885 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13886 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13887 --disable-shared @extra_isl_gmp_configure_flags@
13888@endif isl-bootstrap
d545f33b 13889
4fa63067 13890
4fa63067
NN
13891
13892
4fa63067 13893
7ec59b9e
L
13894.PHONY: all-isl maybe-all-isl
13895maybe-all-isl:
a90ef4bf 13896@if gcc-bootstrap
7ec59b9e 13897all-isl: stage_current
a90ef4bf 13898@endif gcc-bootstrap
7ec59b9e
L
13899@if isl
13900TARGET-isl=all
13901maybe-all-isl: all-isl
13902all-isl: configure-isl
4fa63067
NN
13903 @r=`${PWD_COMMAND}`; export r; \
13904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13905 $(HOST_EXPORTS) \
7ec59b9e 13906 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13907 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13908 $(TARGET-isl))
13909@endif isl
13910
13911
13912
13913.PHONY: all-stage1-isl maybe-all-stage1-isl
13914.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13915maybe-all-stage1-isl:
13916maybe-clean-stage1-isl:
13917@if isl-bootstrap
13918maybe-all-stage1-isl: all-stage1-isl
13919all-stage1: all-stage1-isl
13920TARGET-stage1-isl = $(TARGET-isl)
13921all-stage1-isl: configure-stage1-isl
a90ef4bf 13922 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13923 @r=`${PWD_COMMAND}`; export r; \
13924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13925 TFLAGS="$(STAGE1_TFLAGS)"; \
13926 $(HOST_EXPORTS) \
7ec59b9e 13927 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13928 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13929 CFLAGS="$(STAGE1_CFLAGS)" \
13930 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13931 LIBCFLAGS="$(LIBCFLAGS)" \
13932 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13933 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13934 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13935 $(EXTRA_HOST_FLAGS) \
13936 $(STAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13937 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13938 $(TARGET-stage1-isl)
9b980aa1 13939
7ec59b9e
L
13940maybe-clean-stage1-isl: clean-stage1-isl
13941clean-stage1: clean-stage1-isl
13942clean-stage1-isl:
a90ef4bf 13943 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 13944 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13945 else \
7ec59b9e 13946 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13947 $(MAKE) stage1-start; \
13948 fi; \
7ec59b9e 13949 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 13950 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13951 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13952@endif isl-bootstrap
13953
13954
13955.PHONY: all-stage2-isl maybe-all-stage2-isl
13956.PHONY: clean-stage2-isl maybe-clean-stage2-isl
13957maybe-all-stage2-isl:
13958maybe-clean-stage2-isl:
13959@if isl-bootstrap
13960maybe-all-stage2-isl: all-stage2-isl
13961all-stage2: all-stage2-isl
13962TARGET-stage2-isl = $(TARGET-isl)
13963all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
13964 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13965 @r=`${PWD_COMMAND}`; export r; \
13966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13967 TFLAGS="$(STAGE2_TFLAGS)"; \
13968 $(HOST_EXPORTS) \
13969 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13970 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13971 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13972 CFLAGS="$(STAGE2_CFLAGS)" \
13973 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13974 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13975 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13976 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13977 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13978 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13979 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 13980 $(TARGET-stage2-isl)
a90ef4bf 13981
7ec59b9e
L
13982maybe-clean-stage2-isl: clean-stage2-isl
13983clean-stage2: clean-stage2-isl
13984clean-stage2-isl:
a90ef4bf 13985 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 13986 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13987 else \
7ec59b9e 13988 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13989 $(MAKE) stage2-start; \
13990 fi; \
7ec59b9e 13991 cd $(HOST_SUBDIR)/isl && \
b3676d82 13992 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13993@endif isl-bootstrap
13994
13995
13996.PHONY: all-stage3-isl maybe-all-stage3-isl
13997.PHONY: clean-stage3-isl maybe-clean-stage3-isl
13998maybe-all-stage3-isl:
13999maybe-clean-stage3-isl:
14000@if isl-bootstrap
14001maybe-all-stage3-isl: all-stage3-isl
14002all-stage3: all-stage3-isl
14003TARGET-stage3-isl = $(TARGET-isl)
14004all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14005 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14006 @r=`${PWD_COMMAND}`; export r; \
14007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14008 TFLAGS="$(STAGE3_TFLAGS)"; \
14009 $(HOST_EXPORTS) \
14010 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14011 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14012 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14013 CFLAGS="$(STAGE3_CFLAGS)" \
14014 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14015 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14016 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14017 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14018 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14019 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14020 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14021 $(TARGET-stage3-isl)
a90ef4bf 14022
7ec59b9e
L
14023maybe-clean-stage3-isl: clean-stage3-isl
14024clean-stage3: clean-stage3-isl
14025clean-stage3-isl:
a90ef4bf 14026 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14027 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14028 else \
7ec59b9e 14029 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14030 $(MAKE) stage3-start; \
14031 fi; \
7ec59b9e 14032 cd $(HOST_SUBDIR)/isl && \
b3676d82 14033 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14034@endif isl-bootstrap
14035
14036
14037.PHONY: all-stage4-isl maybe-all-stage4-isl
14038.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14039maybe-all-stage4-isl:
14040maybe-clean-stage4-isl:
14041@if isl-bootstrap
14042maybe-all-stage4-isl: all-stage4-isl
14043all-stage4: all-stage4-isl
14044TARGET-stage4-isl = $(TARGET-isl)
14045all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14046 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14047 @r=`${PWD_COMMAND}`; export r; \
14048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14049 TFLAGS="$(STAGE4_TFLAGS)"; \
14050 $(HOST_EXPORTS) \
14051 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14052 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14053 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14054 CFLAGS="$(STAGE4_CFLAGS)" \
14055 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14056 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14057 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14058 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14059 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14060 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14061 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14062 $(TARGET-stage4-isl)
a90ef4bf 14063
7ec59b9e
L
14064maybe-clean-stage4-isl: clean-stage4-isl
14065clean-stage4: clean-stage4-isl
14066clean-stage4-isl:
a90ef4bf 14067 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14068 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14069 else \
7ec59b9e 14070 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14071 $(MAKE) stage4-start; \
14072 fi; \
7ec59b9e 14073 cd $(HOST_SUBDIR)/isl && \
b3676d82 14074 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14075@endif isl-bootstrap
14076
14077
14078.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14079.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14080maybe-all-stageprofile-isl:
14081maybe-clean-stageprofile-isl:
14082@if isl-bootstrap
14083maybe-all-stageprofile-isl: all-stageprofile-isl
14084all-stageprofile: all-stageprofile-isl
14085TARGET-stageprofile-isl = $(TARGET-isl)
14086all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14087 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14088 @r=`${PWD_COMMAND}`; export r; \
14089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14090 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14091 $(HOST_EXPORTS) \
14092 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14093 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14094 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14095 CFLAGS="$(STAGEprofile_CFLAGS)" \
14096 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14097 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14098 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14099 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14100 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14101 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14102 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14103 $(TARGET-stageprofile-isl)
a90ef4bf 14104
7ec59b9e
L
14105maybe-clean-stageprofile-isl: clean-stageprofile-isl
14106clean-stageprofile: clean-stageprofile-isl
14107clean-stageprofile-isl:
a90ef4bf 14108 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14109 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14110 else \
7ec59b9e 14111 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14112 $(MAKE) stageprofile-start; \
14113 fi; \
7ec59b9e 14114 cd $(HOST_SUBDIR)/isl && \
b3676d82 14115 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14116@endif isl-bootstrap
14117
14118
14119.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14120.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14121maybe-all-stagefeedback-isl:
14122maybe-clean-stagefeedback-isl:
14123@if isl-bootstrap
14124maybe-all-stagefeedback-isl: all-stagefeedback-isl
14125all-stagefeedback: all-stagefeedback-isl
14126TARGET-stagefeedback-isl = $(TARGET-isl)
14127all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14128 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14129 @r=`${PWD_COMMAND}`; export r; \
14130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14131 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14132 $(HOST_EXPORTS) \
14133 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14134 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14135 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14136 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14137 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14138 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14139 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14140 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14141 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14142 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14143 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14144 $(TARGET-stagefeedback-isl)
a90ef4bf 14145
7ec59b9e
L
14146maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14147clean-stagefeedback: clean-stagefeedback-isl
14148clean-stagefeedback-isl:
a90ef4bf 14149 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14150 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14151 else \
7ec59b9e 14152 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14153 $(MAKE) stagefeedback-start; \
14154 fi; \
7ec59b9e 14155 cd $(HOST_SUBDIR)/isl && \
b3676d82 14156 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14157@endif isl-bootstrap
a90ef4bf
JM
14158
14159
14160
14161
14162
7ec59b9e
L
14163.PHONY: check-isl maybe-check-isl
14164maybe-check-isl:
14165@if isl
14166maybe-check-isl: check-isl
a90ef4bf 14167
7ec59b9e 14168check-isl:
0aed8855 14169 @: $(MAKE); $(unstage)
a90ef4bf
JM
14170 @r=`${PWD_COMMAND}`; export r; \
14171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14172 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14173 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14174 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14175
7ec59b9e 14176@endif isl
a90ef4bf 14177
7ec59b9e
L
14178.PHONY: install-isl maybe-install-isl
14179maybe-install-isl:
14180@if isl
14181maybe-install-isl: install-isl
a90ef4bf 14182
7ec59b9e 14183install-isl:
a90ef4bf 14184
7ec59b9e 14185@endif isl
a90ef4bf 14186
7ec59b9e
L
14187.PHONY: install-strip-isl maybe-install-strip-isl
14188maybe-install-strip-isl:
14189@if isl
14190maybe-install-strip-isl: install-strip-isl
a90ef4bf 14191
7ec59b9e 14192install-strip-isl:
a90ef4bf 14193
7ec59b9e 14194@endif isl
a90ef4bf
JM
14195
14196# Other targets (info, dvi, pdf, etc.)
14197
7ec59b9e
L
14198.PHONY: maybe-info-isl info-isl
14199maybe-info-isl:
14200@if isl
14201maybe-info-isl: info-isl
a90ef4bf 14202
7ec59b9e
L
14203info-isl: \
14204 configure-isl
14205 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14206 r=`${PWD_COMMAND}`; export r; \
14207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14208 $(HOST_EXPORTS) \
7ec59b9e 14209 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14211 done; \
22121df0 14212 echo "Doing info in isl"; \
7ec59b9e 14213 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14216 "RANLIB=$${RANLIB}" \
0c24b341 14217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14218 info) \
2a4cbe27
NN
14219 || exit 1
14220
7ec59b9e 14221@endif isl
2a4cbe27 14222
7ec59b9e
L
14223.PHONY: maybe-dvi-isl dvi-isl
14224maybe-dvi-isl:
14225@if isl
14226maybe-dvi-isl: dvi-isl
2a4cbe27 14227
7ec59b9e
L
14228dvi-isl: \
14229 configure-isl
14230 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14231 r=`${PWD_COMMAND}`; export r; \
14232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14233 $(HOST_EXPORTS) \
7ec59b9e 14234 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14236 done; \
22121df0 14237 echo "Doing dvi in isl"; \
7ec59b9e 14238 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14241 "RANLIB=$${RANLIB}" \
0c24b341 14242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14243 dvi) \
2a4cbe27
NN
14244 || exit 1
14245
7ec59b9e 14246@endif isl
2a4cbe27 14247
7ec59b9e
L
14248.PHONY: maybe-pdf-isl pdf-isl
14249maybe-pdf-isl:
14250@if isl
14251maybe-pdf-isl: pdf-isl
56a8fe78 14252
7ec59b9e
L
14253pdf-isl: \
14254 configure-isl
14255 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14256 r=`${PWD_COMMAND}`; export r; \
14257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14258 $(HOST_EXPORTS) \
7ec59b9e 14259 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14261 done; \
22121df0 14262 echo "Doing pdf in isl"; \
7ec59b9e 14263 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14266 "RANLIB=$${RANLIB}" \
0c24b341 14267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14268 pdf) \
14269 || exit 1
14270
7ec59b9e 14271@endif isl
56a8fe78 14272
7ec59b9e
L
14273.PHONY: maybe-html-isl html-isl
14274maybe-html-isl:
14275@if isl
14276maybe-html-isl: html-isl
6d389afc 14277
7ec59b9e
L
14278html-isl: \
14279 configure-isl
14280 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14281 r=`${PWD_COMMAND}`; export r; \
14282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14283 $(HOST_EXPORTS) \
7ec59b9e 14284 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14286 done; \
22121df0 14287 echo "Doing html in isl"; \
7ec59b9e 14288 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14291 "RANLIB=$${RANLIB}" \
0c24b341 14292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14293 html) \
14294 || exit 1
14295
7ec59b9e 14296@endif isl
6d389afc 14297
7ec59b9e
L
14298.PHONY: maybe-TAGS-isl TAGS-isl
14299maybe-TAGS-isl:
14300@if isl
14301maybe-TAGS-isl: TAGS-isl
2a4cbe27 14302
7ec59b9e
L
14303TAGS-isl: \
14304 configure-isl
14305 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14306 r=`${PWD_COMMAND}`; export r; \
14307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14308 $(HOST_EXPORTS) \
7ec59b9e 14309 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14311 done; \
22121df0 14312 echo "Doing TAGS in isl"; \
7ec59b9e 14313 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14316 "RANLIB=$${RANLIB}" \
0c24b341 14317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14318 TAGS) \
2a4cbe27
NN
14319 || exit 1
14320
7ec59b9e 14321@endif isl
2a4cbe27 14322
7ec59b9e
L
14323.PHONY: maybe-install-info-isl install-info-isl
14324maybe-install-info-isl:
14325@if isl
14326maybe-install-info-isl: install-info-isl
2a4cbe27 14327
7ec59b9e
L
14328install-info-isl: \
14329 configure-isl \
14330 info-isl
14331 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14332 r=`${PWD_COMMAND}`; export r; \
14333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14334 $(HOST_EXPORTS) \
7ec59b9e 14335 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14337 done; \
22121df0 14338 echo "Doing install-info in isl"; \
7ec59b9e 14339 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14342 "RANLIB=$${RANLIB}" \
0c24b341 14343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14344 install-info) \
2a4cbe27
NN
14345 || exit 1
14346
7ec59b9e 14347@endif isl
2a4cbe27 14348
7ec59b9e
L
14349.PHONY: maybe-install-pdf-isl install-pdf-isl
14350maybe-install-pdf-isl:
14351@if isl
14352maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14353
7ec59b9e
L
14354install-pdf-isl: \
14355 configure-isl \
14356 pdf-isl
14357 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14358 r=`${PWD_COMMAND}`; export r; \
14359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14360 $(HOST_EXPORTS) \
7ec59b9e 14361 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14363 done; \
22121df0 14364 echo "Doing install-pdf in isl"; \
7ec59b9e 14365 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14368 "RANLIB=$${RANLIB}" \
0c24b341 14369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14370 install-pdf) \
14371 || exit 1
14372
7ec59b9e 14373@endif isl
a3ca38d2 14374
7ec59b9e
L
14375.PHONY: maybe-install-html-isl install-html-isl
14376maybe-install-html-isl:
14377@if isl
14378maybe-install-html-isl: install-html-isl
108a6f8e 14379
7ec59b9e
L
14380install-html-isl: \
14381 configure-isl \
14382 html-isl
14383 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14384 r=`${PWD_COMMAND}`; export r; \
14385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14386 $(HOST_EXPORTS) \
7ec59b9e 14387 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14389 done; \
22121df0 14390 echo "Doing install-html in isl"; \
7ec59b9e 14391 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14394 "RANLIB=$${RANLIB}" \
0c24b341 14395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14396 install-html) \
14397 || exit 1
14398
7ec59b9e 14399@endif isl
108a6f8e 14400
7ec59b9e
L
14401.PHONY: maybe-installcheck-isl installcheck-isl
14402maybe-installcheck-isl:
14403@if isl
14404maybe-installcheck-isl: installcheck-isl
2a4cbe27 14405
7ec59b9e
L
14406installcheck-isl: \
14407 configure-isl
14408 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14409 r=`${PWD_COMMAND}`; export r; \
14410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14411 $(HOST_EXPORTS) \
7ec59b9e 14412 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14414 done; \
22121df0 14415 echo "Doing installcheck in isl"; \
7ec59b9e 14416 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14419 "RANLIB=$${RANLIB}" \
0c24b341 14420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14421 installcheck) \
2a4cbe27
NN
14422 || exit 1
14423
7ec59b9e 14424@endif isl
2a4cbe27 14425
7ec59b9e
L
14426.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14427maybe-mostlyclean-isl:
14428@if isl
14429maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14430
7ec59b9e
L
14431mostlyclean-isl:
14432 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14433 r=`${PWD_COMMAND}`; export r; \
14434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14435 $(HOST_EXPORTS) \
7ec59b9e 14436 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14438 done; \
22121df0 14439 echo "Doing mostlyclean in isl"; \
7ec59b9e 14440 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14443 "RANLIB=$${RANLIB}" \
0c24b341 14444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14445 mostlyclean) \
2a4cbe27
NN
14446 || exit 1
14447
7ec59b9e 14448@endif isl
2a4cbe27 14449
7ec59b9e
L
14450.PHONY: maybe-clean-isl clean-isl
14451maybe-clean-isl:
14452@if isl
14453maybe-clean-isl: clean-isl
2a4cbe27 14454
7ec59b9e
L
14455clean-isl:
14456 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14457 r=`${PWD_COMMAND}`; export r; \
14458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14459 $(HOST_EXPORTS) \
7ec59b9e 14460 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14462 done; \
22121df0 14463 echo "Doing clean in isl"; \
7ec59b9e 14464 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14467 "RANLIB=$${RANLIB}" \
0c24b341 14468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14469 clean) \
2a4cbe27
NN
14470 || exit 1
14471
7ec59b9e 14472@endif isl
2a4cbe27 14473
7ec59b9e
L
14474.PHONY: maybe-distclean-isl distclean-isl
14475maybe-distclean-isl:
14476@if isl
14477maybe-distclean-isl: distclean-isl
2a4cbe27 14478
7ec59b9e
L
14479distclean-isl:
14480 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14481 r=`${PWD_COMMAND}`; export r; \
14482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14483 $(HOST_EXPORTS) \
7ec59b9e 14484 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14486 done; \
22121df0 14487 echo "Doing distclean in isl"; \
7ec59b9e 14488 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14491 "RANLIB=$${RANLIB}" \
0c24b341 14492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14493 distclean) \
2a4cbe27
NN
14494 || exit 1
14495
7ec59b9e 14496@endif isl
2a4cbe27 14497
7ec59b9e
L
14498.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14499maybe-maintainer-clean-isl:
14500@if isl
14501maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14502
7ec59b9e
L
14503maintainer-clean-isl:
14504 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14505 r=`${PWD_COMMAND}`; export r; \
14506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14507 $(HOST_EXPORTS) \
7ec59b9e 14508 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14510 done; \
22121df0 14511 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14512 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14515 "RANLIB=$${RANLIB}" \
0c24b341 14516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14517 maintainer-clean) \
2a4cbe27
NN
14518 || exit 1
14519
7ec59b9e 14520@endif isl
2a4cbe27 14521
2a4cbe27 14522
a7254363 14523
a90ef4bf
JM
14524.PHONY: configure-libelf maybe-configure-libelf
14525maybe-configure-libelf:
c52c6897 14526@if gcc-bootstrap
a90ef4bf 14527configure-libelf: stage_current
c52c6897 14528@endif gcc-bootstrap
a90ef4bf
JM
14529@if libelf
14530maybe-configure-libelf: configure-libelf
14531configure-libelf:
c52c6897
PB
14532 @r=`${PWD_COMMAND}`; export r; \
14533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14534 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14535 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14536 $(HOST_EXPORTS) \
a90ef4bf
JM
14537 echo Configuring in $(HOST_SUBDIR)/libelf; \
14538 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14539 case $(srcdir) in \
b00612cc 14540 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14541 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14542 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14543 esac; \
1b6c0831
L
14544 module_srcdir=libelf; \
14545 $(SHELL) \
14546 $$s/$$module_srcdir/configure \
14547 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14548 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14549 --target=${target_alias} --disable-shared \
4fa63067 14550 || exit 1
a90ef4bf 14551@endif libelf
4fa63067 14552
a7254363
PB
14553
14554
a90ef4bf
JM
14555.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14556maybe-configure-stage1-libelf:
14557@if libelf-bootstrap
14558maybe-configure-stage1-libelf: configure-stage1-libelf
14559configure-stage1-libelf:
c52c6897 14560 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14561 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14562 @r=`${PWD_COMMAND}`; export r; \
14563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14564 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14565 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14566 $(HOST_EXPORTS) \
8ee82aff 14567 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14568 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14569 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14570 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14571 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14572 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14573 case $(srcdir) in \
14574 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14575 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14576 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14577 esac; \
1b6c0831
L
14578 module_srcdir=libelf; \
14579 $(SHELL) $$s/$$module_srcdir/configure \
14580 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14581 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14582 --target=${target_alias} \
14583 \
a90ef4bf
JM
14584 $(STAGE1_CONFIGURE_FLAGS) \
14585 --disable-shared
14586@endif libelf-bootstrap
d545f33b 14587
a90ef4bf
JM
14588.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14589maybe-configure-stage2-libelf:
14590@if libelf-bootstrap
14591maybe-configure-stage2-libelf: configure-stage2-libelf
14592configure-stage2-libelf:
c52c6897 14593 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14594 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14595 @r=`${PWD_COMMAND}`; export r; \
14596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14597 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14598 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14599 $(HOST_EXPORTS) \
1b05fbbd 14600 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14601 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14602 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14603 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14604 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14605 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14606 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14607 case $(srcdir) in \
14608 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14609 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14610 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14611 esac; \
1b6c0831
L
14612 module_srcdir=libelf; \
14613 $(SHELL) $$s/$$module_srcdir/configure \
14614 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14615 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14616 --target=${target_alias} \
22121df0 14617 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14618 $(STAGE2_CONFIGURE_FLAGS) \
14619 --disable-shared
14620@endif libelf-bootstrap
8520c408 14621
a90ef4bf
JM
14622.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14623maybe-configure-stage3-libelf:
14624@if libelf-bootstrap
14625maybe-configure-stage3-libelf: configure-stage3-libelf
14626configure-stage3-libelf:
c52c6897 14627 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14628 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14629 @r=`${PWD_COMMAND}`; export r; \
14630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14631 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14632 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14633 $(HOST_EXPORTS) \
1b05fbbd 14634 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14635 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14636 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14637 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14638 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14639 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14640 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14641 case $(srcdir) in \
14642 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14643 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14644 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14645 esac; \
1b6c0831
L
14646 module_srcdir=libelf; \
14647 $(SHELL) $$s/$$module_srcdir/configure \
14648 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14649 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14650 --target=${target_alias} \
22121df0 14651 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14652 $(STAGE3_CONFIGURE_FLAGS) \
14653 --disable-shared
14654@endif libelf-bootstrap
8520c408 14655
a90ef4bf
JM
14656.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14657maybe-configure-stage4-libelf:
14658@if libelf-bootstrap
14659maybe-configure-stage4-libelf: configure-stage4-libelf
14660configure-stage4-libelf:
c52c6897 14661 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14662 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14663 @r=`${PWD_COMMAND}`; export r; \
14664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14665 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14666 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14667 $(HOST_EXPORTS) \
1b05fbbd 14668 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14669 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14670 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14671 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14672 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14673 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14674 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14675 case $(srcdir) in \
14676 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14677 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14678 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14679 esac; \
1b6c0831
L
14680 module_srcdir=libelf; \
14681 $(SHELL) $$s/$$module_srcdir/configure \
14682 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14683 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14684 --target=${target_alias} \
22121df0 14685 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14686 $(STAGE4_CONFIGURE_FLAGS) \
14687 --disable-shared
14688@endif libelf-bootstrap
d545f33b 14689
a90ef4bf
JM
14690.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14691maybe-configure-stageprofile-libelf:
14692@if libelf-bootstrap
14693maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14694configure-stageprofile-libelf:
c52c6897 14695 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14696 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14697 @r=`${PWD_COMMAND}`; export r; \
14698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14699 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14700 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14701 $(HOST_EXPORTS) \
1b05fbbd
AO
14702 $(POSTSTAGE1_HOST_EXPORTS) \
14703 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14704 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14705 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14706 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14707 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14708 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14709 case $(srcdir) in \
14710 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14711 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14712 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14713 esac; \
1b6c0831
L
14714 module_srcdir=libelf; \
14715 $(SHELL) $$s/$$module_srcdir/configure \
14716 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14717 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14718 --target=${target_alias} \
22121df0 14719 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14720 $(STAGEprofile_CONFIGURE_FLAGS) \
14721 --disable-shared
14722@endif libelf-bootstrap
d545f33b 14723
a90ef4bf
JM
14724.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14725maybe-configure-stagefeedback-libelf:
14726@if libelf-bootstrap
14727maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14728configure-stagefeedback-libelf:
c52c6897 14729 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14730 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14731 @r=`${PWD_COMMAND}`; export r; \
14732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14733 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14734 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14735 $(HOST_EXPORTS) \
1b05fbbd
AO
14736 $(POSTSTAGE1_HOST_EXPORTS) \
14737 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14738 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14739 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14740 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14741 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14742 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14743 case $(srcdir) in \
14744 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14745 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14746 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14747 esac; \
1b6c0831
L
14748 module_srcdir=libelf; \
14749 $(SHELL) $$s/$$module_srcdir/configure \
14750 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14751 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14752 --target=${target_alias} \
22121df0 14753 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14754 $(STAGEfeedback_CONFIGURE_FLAGS) \
14755 --disable-shared
14756@endif libelf-bootstrap
d545f33b
PB
14757
14758
14759
14760
14761
a90ef4bf
JM
14762.PHONY: all-libelf maybe-all-libelf
14763maybe-all-libelf:
4f0ef2d8 14764@if gcc-bootstrap
a90ef4bf 14765all-libelf: stage_current
4f0ef2d8 14766@endif gcc-bootstrap
a90ef4bf
JM
14767@if libelf
14768TARGET-libelf=all
14769maybe-all-libelf: all-libelf
14770all-libelf: configure-libelf
c52c6897 14771 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14773 $(HOST_EXPORTS) \
a90ef4bf 14774 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14775 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14776 $(TARGET-libelf))
14777@endif libelf
4fa63067 14778
a7254363 14779
d545f33b 14780
a90ef4bf
JM
14781.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14782.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14783maybe-all-stage1-libelf:
14784maybe-clean-stage1-libelf:
14785@if libelf-bootstrap
14786maybe-all-stage1-libelf: all-stage1-libelf
14787all-stage1: all-stage1-libelf
14788TARGET-stage1-libelf = $(TARGET-libelf)
14789all-stage1-libelf: configure-stage1-libelf
c52c6897 14790 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14791 @r=`${PWD_COMMAND}`; export r; \
14792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14793 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14794 $(HOST_EXPORTS) \
a90ef4bf 14795 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14796 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14797 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14798 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14799 LIBCFLAGS="$(LIBCFLAGS)" \
14800 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14801 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14802 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14803 $(EXTRA_HOST_FLAGS) \
14804 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 14805 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14806 $(TARGET-stage1-libelf)
d545f33b 14807
a90ef4bf
JM
14808maybe-clean-stage1-libelf: clean-stage1-libelf
14809clean-stage1: clean-stage1-libelf
14810clean-stage1-libelf:
9dbaa842 14811 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14812 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14813 else \
a90ef4bf 14814 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14815 $(MAKE) stage1-start; \
14816 fi; \
a90ef4bf 14817 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14818 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14819 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14820@endif libelf-bootstrap
d545f33b
PB
14821
14822
a90ef4bf
JM
14823.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14824.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14825maybe-all-stage2-libelf:
14826maybe-clean-stage2-libelf:
14827@if libelf-bootstrap
14828maybe-all-stage2-libelf: all-stage2-libelf
14829all-stage2: all-stage2-libelf
14830TARGET-stage2-libelf = $(TARGET-libelf)
14831all-stage2-libelf: configure-stage2-libelf
c52c6897 14832 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14833 @r=`${PWD_COMMAND}`; export r; \
14834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14835 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14836 $(HOST_EXPORTS) \
1f53ca9a 14837 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14838 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14839 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14840 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14841 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14842 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14843 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14844 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14845 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14846 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14847 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14848 $(TARGET-stage2-libelf)
d545f33b 14849
a90ef4bf
JM
14850maybe-clean-stage2-libelf: clean-stage2-libelf
14851clean-stage2: clean-stage2-libelf
14852clean-stage2-libelf:
9dbaa842 14853 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14854 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14855 else \
a90ef4bf 14856 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14857 $(MAKE) stage2-start; \
14858 fi; \
a90ef4bf 14859 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14860 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14861@endif libelf-bootstrap
d545f33b
PB
14862
14863
a90ef4bf
JM
14864.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14865.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14866maybe-all-stage3-libelf:
14867maybe-clean-stage3-libelf:
14868@if libelf-bootstrap
14869maybe-all-stage3-libelf: all-stage3-libelf
14870all-stage3: all-stage3-libelf
14871TARGET-stage3-libelf = $(TARGET-libelf)
14872all-stage3-libelf: configure-stage3-libelf
c52c6897 14873 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14874 @r=`${PWD_COMMAND}`; export r; \
14875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14876 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14877 $(HOST_EXPORTS) \
1f53ca9a 14878 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14879 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14880 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14881 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14882 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14883 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14884 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14885 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14886 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14887 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14888 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14889 $(TARGET-stage3-libelf)
d545f33b 14890
a90ef4bf
JM
14891maybe-clean-stage3-libelf: clean-stage3-libelf
14892clean-stage3: clean-stage3-libelf
14893clean-stage3-libelf:
9dbaa842 14894 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14895 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14896 else \
a90ef4bf 14897 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14898 $(MAKE) stage3-start; \
14899 fi; \
a90ef4bf 14900 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14901 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14902@endif libelf-bootstrap
d545f33b
PB
14903
14904
a90ef4bf
JM
14905.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14906.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14907maybe-all-stage4-libelf:
14908maybe-clean-stage4-libelf:
14909@if libelf-bootstrap
14910maybe-all-stage4-libelf: all-stage4-libelf
14911all-stage4: all-stage4-libelf
14912TARGET-stage4-libelf = $(TARGET-libelf)
14913all-stage4-libelf: configure-stage4-libelf
c52c6897 14914 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14915 @r=`${PWD_COMMAND}`; export r; \
14916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14917 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14918 $(HOST_EXPORTS) \
1f53ca9a 14919 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14920 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14921 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14922 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14923 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14924 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14925 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14926 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14927 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14928 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14929 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14930 $(TARGET-stage4-libelf)
d545f33b 14931
a90ef4bf
JM
14932maybe-clean-stage4-libelf: clean-stage4-libelf
14933clean-stage4: clean-stage4-libelf
14934clean-stage4-libelf:
9dbaa842 14935 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 14936 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14937 else \
a90ef4bf 14938 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14939 $(MAKE) stage4-start; \
14940 fi; \
a90ef4bf 14941 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14942 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14943@endif libelf-bootstrap
d545f33b
PB
14944
14945
a90ef4bf
JM
14946.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
14947.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
14948maybe-all-stageprofile-libelf:
14949maybe-clean-stageprofile-libelf:
14950@if libelf-bootstrap
14951maybe-all-stageprofile-libelf: all-stageprofile-libelf
14952all-stageprofile: all-stageprofile-libelf
14953TARGET-stageprofile-libelf = $(TARGET-libelf)
14954all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 14955 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
14956 @r=`${PWD_COMMAND}`; export r; \
14957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14958 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 14959 $(HOST_EXPORTS) \
1f53ca9a 14960 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14961 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14962 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14963 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 14964 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
14965 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14966 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14967 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14968 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14969 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14970 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 14971 $(TARGET-stageprofile-libelf)
d545f33b 14972
a90ef4bf
JM
14973maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
14974clean-stageprofile: clean-stageprofile-libelf
14975clean-stageprofile-libelf:
9dbaa842 14976 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 14977 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14978 else \
a90ef4bf 14979 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14980 $(MAKE) stageprofile-start; \
14981 fi; \
a90ef4bf 14982 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14983 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14984@endif libelf-bootstrap
d545f33b
PB
14985
14986
a90ef4bf
JM
14987.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
14988.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
14989maybe-all-stagefeedback-libelf:
14990maybe-clean-stagefeedback-libelf:
14991@if libelf-bootstrap
14992maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
14993all-stagefeedback: all-stagefeedback-libelf
14994TARGET-stagefeedback-libelf = $(TARGET-libelf)
14995all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 14996 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
14997 @r=`${PWD_COMMAND}`; export r; \
14998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14999 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15000 $(HOST_EXPORTS) \
1f53ca9a 15001 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15002 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 15003 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15004 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15005 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15006 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15007 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15008 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15009 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15010 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 15011 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15012 $(TARGET-stagefeedback-libelf)
d545f33b 15013
a90ef4bf
JM
15014maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15015clean-stagefeedback: clean-stagefeedback-libelf
15016clean-stagefeedback-libelf:
9dbaa842 15017 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15018 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15019 else \
a90ef4bf 15020 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15021 $(MAKE) stagefeedback-start; \
15022 fi; \
a90ef4bf 15023 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15024 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15025@endif libelf-bootstrap
d545f33b
PB
15026
15027
15028
15029
15030
a90ef4bf
JM
15031.PHONY: check-libelf maybe-check-libelf
15032maybe-check-libelf:
15033@if libelf
15034maybe-check-libelf: check-libelf
4fa63067 15035
a90ef4bf 15036check-libelf:
0aed8855 15037 @: $(MAKE); $(unstage)
4fa63067
NN
15038 @r=`${PWD_COMMAND}`; export r; \
15039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15040 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15041 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15042 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15043
a90ef4bf 15044@endif libelf
4fa63067 15045
a90ef4bf
JM
15046.PHONY: install-libelf maybe-install-libelf
15047maybe-install-libelf:
15048@if libelf
15049maybe-install-libelf: install-libelf
4fa63067 15050
a90ef4bf 15051install-libelf:
4fa63067 15052
a90ef4bf 15053@endif libelf
4fa63067 15054
a90ef4bf
JM
15055.PHONY: install-strip-libelf maybe-install-strip-libelf
15056maybe-install-strip-libelf:
15057@if libelf
15058maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15059
a90ef4bf 15060install-strip-libelf:
9b980aa1 15061
a90ef4bf 15062@endif libelf
9b980aa1 15063
56a8fe78 15064# Other targets (info, dvi, pdf, etc.)
4fa63067 15065
a90ef4bf
JM
15066.PHONY: maybe-info-libelf info-libelf
15067maybe-info-libelf:
15068@if libelf
15069maybe-info-libelf: info-libelf
4fa63067 15070
a90ef4bf
JM
15071info-libelf: \
15072 configure-libelf
15073 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15074 r=`${PWD_COMMAND}`; export r; \
15075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15076 $(HOST_EXPORTS) \
a90ef4bf 15077 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15079 done; \
22121df0 15080 echo "Doing info in libelf"; \
a90ef4bf 15081 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15084 "RANLIB=$${RANLIB}" \
0c24b341 15085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15086 info) \
2a4cbe27
NN
15087 || exit 1
15088
a90ef4bf 15089@endif libelf
2a4cbe27 15090
a90ef4bf
JM
15091.PHONY: maybe-dvi-libelf dvi-libelf
15092maybe-dvi-libelf:
15093@if libelf
15094maybe-dvi-libelf: dvi-libelf
2a4cbe27 15095
a90ef4bf
JM
15096dvi-libelf: \
15097 configure-libelf
15098 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15099 r=`${PWD_COMMAND}`; export r; \
15100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15101 $(HOST_EXPORTS) \
a90ef4bf 15102 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15104 done; \
22121df0 15105 echo "Doing dvi in libelf"; \
a90ef4bf 15106 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15109 "RANLIB=$${RANLIB}" \
0c24b341 15110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15111 dvi) \
2a4cbe27
NN
15112 || exit 1
15113
a90ef4bf 15114@endif libelf
2a4cbe27 15115
a90ef4bf
JM
15116.PHONY: maybe-pdf-libelf pdf-libelf
15117maybe-pdf-libelf:
15118@if libelf
15119maybe-pdf-libelf: pdf-libelf
56a8fe78 15120
a90ef4bf
JM
15121pdf-libelf: \
15122 configure-libelf
15123 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15124 r=`${PWD_COMMAND}`; export r; \
15125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15126 $(HOST_EXPORTS) \
a90ef4bf 15127 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15129 done; \
22121df0 15130 echo "Doing pdf in libelf"; \
a90ef4bf 15131 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15134 "RANLIB=$${RANLIB}" \
0c24b341 15135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15136 pdf) \
15137 || exit 1
15138
a90ef4bf 15139@endif libelf
56a8fe78 15140
a90ef4bf
JM
15141.PHONY: maybe-html-libelf html-libelf
15142maybe-html-libelf:
15143@if libelf
15144maybe-html-libelf: html-libelf
6d389afc 15145
a90ef4bf
JM
15146html-libelf: \
15147 configure-libelf
15148 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15149 r=`${PWD_COMMAND}`; export r; \
15150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15151 $(HOST_EXPORTS) \
a90ef4bf 15152 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15154 done; \
22121df0 15155 echo "Doing html in libelf"; \
a90ef4bf 15156 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15159 "RANLIB=$${RANLIB}" \
0c24b341 15160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15161 html) \
15162 || exit 1
15163
a90ef4bf 15164@endif libelf
6d389afc 15165
a90ef4bf
JM
15166.PHONY: maybe-TAGS-libelf TAGS-libelf
15167maybe-TAGS-libelf:
15168@if libelf
15169maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15170
a90ef4bf
JM
15171TAGS-libelf: \
15172 configure-libelf
15173 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15174 r=`${PWD_COMMAND}`; export r; \
15175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15176 $(HOST_EXPORTS) \
a90ef4bf 15177 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15179 done; \
22121df0 15180 echo "Doing TAGS in libelf"; \
a90ef4bf 15181 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15184 "RANLIB=$${RANLIB}" \
0c24b341 15185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15186 TAGS) \
2a4cbe27
NN
15187 || exit 1
15188
a90ef4bf 15189@endif libelf
2a4cbe27 15190
a90ef4bf
JM
15191.PHONY: maybe-install-info-libelf install-info-libelf
15192maybe-install-info-libelf:
15193@if libelf
15194maybe-install-info-libelf: install-info-libelf
a2592b1b 15195
a90ef4bf
JM
15196install-info-libelf: \
15197 configure-libelf \
15198 info-libelf
15199 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15200 r=`${PWD_COMMAND}`; export r; \
15201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15202 $(HOST_EXPORTS) \
a90ef4bf 15203 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15205 done; \
22121df0 15206 echo "Doing install-info in libelf"; \
a90ef4bf 15207 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15210 "RANLIB=$${RANLIB}" \
0c24b341 15211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15212 install-info) \
a2592b1b
DD
15213 || exit 1
15214
a90ef4bf 15215@endif libelf
a2592b1b 15216
a90ef4bf
JM
15217.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15218maybe-install-pdf-libelf:
15219@if libelf
15220maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15221
a90ef4bf
JM
15222install-pdf-libelf: \
15223 configure-libelf \
15224 pdf-libelf
15225 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15226 r=`${PWD_COMMAND}`; export r; \
15227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15228 $(HOST_EXPORTS) \
a90ef4bf 15229 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15231 done; \
22121df0 15232 echo "Doing install-pdf in libelf"; \
a90ef4bf 15233 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15236 "RANLIB=$${RANLIB}" \
0c24b341 15237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15238 install-pdf) \
15239 || exit 1
15240
a90ef4bf 15241@endif libelf
a3ca38d2 15242
a90ef4bf
JM
15243.PHONY: maybe-install-html-libelf install-html-libelf
15244maybe-install-html-libelf:
15245@if libelf
15246maybe-install-html-libelf: install-html-libelf
108a6f8e 15247
a90ef4bf
JM
15248install-html-libelf: \
15249 configure-libelf \
15250 html-libelf
15251 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15252 r=`${PWD_COMMAND}`; export r; \
15253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15254 $(HOST_EXPORTS) \
a90ef4bf 15255 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15257 done; \
22121df0 15258 echo "Doing install-html in libelf"; \
a90ef4bf 15259 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15262 "RANLIB=$${RANLIB}" \
0c24b341 15263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15264 install-html) \
15265 || exit 1
15266
a90ef4bf 15267@endif libelf
108a6f8e 15268
a90ef4bf
JM
15269.PHONY: maybe-installcheck-libelf installcheck-libelf
15270maybe-installcheck-libelf:
15271@if libelf
15272maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15273
a90ef4bf
JM
15274installcheck-libelf: \
15275 configure-libelf
15276 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15277 r=`${PWD_COMMAND}`; export r; \
15278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15279 $(HOST_EXPORTS) \
a90ef4bf 15280 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15282 done; \
22121df0 15283 echo "Doing installcheck in libelf"; \
a90ef4bf 15284 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15287 "RANLIB=$${RANLIB}" \
0c24b341 15288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15289 installcheck) \
4fa63067 15290 || exit 1
2a4cbe27 15291
a90ef4bf 15292@endif libelf
4fa63067 15293
a90ef4bf
JM
15294.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15295maybe-mostlyclean-libelf:
15296@if libelf
15297maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15298
a90ef4bf
JM
15299mostlyclean-libelf:
15300 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15301 r=`${PWD_COMMAND}`; export r; \
15302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15303 $(HOST_EXPORTS) \
a90ef4bf 15304 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15306 done; \
22121df0 15307 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15308 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15311 "RANLIB=$${RANLIB}" \
0c24b341 15312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15313 mostlyclean) \
2a4cbe27
NN
15314 || exit 1
15315
a90ef4bf 15316@endif libelf
2a4cbe27 15317
a90ef4bf
JM
15318.PHONY: maybe-clean-libelf clean-libelf
15319maybe-clean-libelf:
15320@if libelf
15321maybe-clean-libelf: clean-libelf
2a4cbe27 15322
a90ef4bf
JM
15323clean-libelf:
15324 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15325 r=`${PWD_COMMAND}`; export r; \
15326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15327 $(HOST_EXPORTS) \
a90ef4bf 15328 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15330 done; \
22121df0 15331 echo "Doing clean in libelf"; \
a90ef4bf 15332 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15335 "RANLIB=$${RANLIB}" \
0c24b341 15336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15337 clean) \
2a4cbe27
NN
15338 || exit 1
15339
a90ef4bf 15340@endif libelf
2a4cbe27 15341
a90ef4bf
JM
15342.PHONY: maybe-distclean-libelf distclean-libelf
15343maybe-distclean-libelf:
15344@if libelf
15345maybe-distclean-libelf: distclean-libelf
2a4cbe27 15346
a90ef4bf
JM
15347distclean-libelf:
15348 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15349 r=`${PWD_COMMAND}`; export r; \
15350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15351 $(HOST_EXPORTS) \
a90ef4bf 15352 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15354 done; \
22121df0 15355 echo "Doing distclean in libelf"; \
a90ef4bf 15356 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15359 "RANLIB=$${RANLIB}" \
0c24b341 15360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15361 distclean) \
2a4cbe27
NN
15362 || exit 1
15363
a90ef4bf 15364@endif libelf
2a4cbe27 15365
a90ef4bf
JM
15366.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15367maybe-maintainer-clean-libelf:
15368@if libelf
15369maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15370
a90ef4bf
JM
15371maintainer-clean-libelf:
15372 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15373 r=`${PWD_COMMAND}`; export r; \
15374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15375 $(HOST_EXPORTS) \
a90ef4bf 15376 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15378 done; \
22121df0 15379 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15380 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15383 "RANLIB=$${RANLIB}" \
0c24b341 15384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15385 maintainer-clean) \
2a4cbe27
NN
15386 || exit 1
15387
a90ef4bf 15388@endif libelf
2a4cbe27 15389
2a4cbe27 15390
a7254363 15391
a90ef4bf
JM
15392.PHONY: configure-gold maybe-configure-gold
15393maybe-configure-gold:
4f0ef2d8 15394@if gcc-bootstrap
a90ef4bf 15395configure-gold: stage_current
4f0ef2d8 15396@endif gcc-bootstrap
a90ef4bf
JM
15397@if gold
15398maybe-configure-gold: configure-gold
15399configure-gold:
c52c6897 15400 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15402 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15404 $(HOST_EXPORTS) \
a90ef4bf
JM
15405 echo Configuring in $(HOST_SUBDIR)/gold; \
15406 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15407 case $(srcdir) in \
b00612cc 15408 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15409 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15410 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15411 esac; \
1b6c0831
L
15412 module_srcdir=gold; \
15413 $(SHELL) \
15414 $$s/$$module_srcdir/configure \
15415 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15416 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15417 --target=${target_alias} \
4fa63067 15418 || exit 1
a90ef4bf 15419@endif gold
a7254363 15420
d545f33b
PB
15421
15422
a90ef4bf
JM
15423.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15424maybe-configure-stage1-gold:
15425@if gold-bootstrap
15426maybe-configure-stage1-gold: configure-stage1-gold
15427configure-stage1-gold:
15428 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15429 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15430 @r=`${PWD_COMMAND}`; export r; \
15431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15432 TFLAGS="$(STAGE1_TFLAGS)"; \
15433 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15434 $(HOST_EXPORTS) \
15435 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15436 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15437 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15438 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15439 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15440 cd $(HOST_SUBDIR)/gold || exit 1; \
15441 case $(srcdir) in \
15442 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15443 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15444 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15445 esac; \
1b6c0831
L
15446 module_srcdir=gold; \
15447 $(SHELL) $$s/$$module_srcdir/configure \
15448 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15449 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15450 --target=${target_alias} \
15451 \
a90ef4bf
JM
15452 $(STAGE1_CONFIGURE_FLAGS)
15453@endif gold-bootstrap
4fa63067 15454
a90ef4bf
JM
15455.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15456maybe-configure-stage2-gold:
15457@if gold-bootstrap
15458maybe-configure-stage2-gold: configure-stage2-gold
15459configure-stage2-gold:
15460 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15461 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15462 @r=`${PWD_COMMAND}`; export r; \
15463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15464 TFLAGS="$(STAGE2_TFLAGS)"; \
15465 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15466 $(HOST_EXPORTS) \
a90ef4bf
JM
15467 $(POSTSTAGE1_HOST_EXPORTS) \
15468 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15469 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15470 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15471 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15472 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15473 cd $(HOST_SUBDIR)/gold || exit 1; \
15474 case $(srcdir) in \
15475 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15476 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15477 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15478 esac; \
1b6c0831
L
15479 module_srcdir=gold; \
15480 $(SHELL) $$s/$$module_srcdir/configure \
15481 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15482 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15483 --target=${target_alias} \
22121df0 15484 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15485 $(STAGE2_CONFIGURE_FLAGS)
15486@endif gold-bootstrap
4fa63067 15487
a90ef4bf
JM
15488.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15489maybe-configure-stage3-gold:
15490@if gold-bootstrap
15491maybe-configure-stage3-gold: configure-stage3-gold
15492configure-stage3-gold:
15493 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15494 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15495 @r=`${PWD_COMMAND}`; export r; \
15496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15497 TFLAGS="$(STAGE3_TFLAGS)"; \
15498 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15499 $(HOST_EXPORTS) \
a90ef4bf
JM
15500 $(POSTSTAGE1_HOST_EXPORTS) \
15501 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15502 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15503 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15504 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15505 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15506 cd $(HOST_SUBDIR)/gold || exit 1; \
15507 case $(srcdir) in \
15508 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15509 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15510 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15511 esac; \
1b6c0831
L
15512 module_srcdir=gold; \
15513 $(SHELL) $$s/$$module_srcdir/configure \
15514 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15515 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15516 --target=${target_alias} \
22121df0 15517 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15518 $(STAGE3_CONFIGURE_FLAGS)
15519@endif gold-bootstrap
9b980aa1 15520
a90ef4bf
JM
15521.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15522maybe-configure-stage4-gold:
15523@if gold-bootstrap
15524maybe-configure-stage4-gold: configure-stage4-gold
15525configure-stage4-gold:
15526 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15527 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15528 @r=`${PWD_COMMAND}`; export r; \
15529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15530 TFLAGS="$(STAGE4_TFLAGS)"; \
15531 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15532 $(HOST_EXPORTS) \
a90ef4bf
JM
15533 $(POSTSTAGE1_HOST_EXPORTS) \
15534 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15535 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15536 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15537 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15538 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15539 cd $(HOST_SUBDIR)/gold || exit 1; \
15540 case $(srcdir) in \
15541 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15542 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15543 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15544 esac; \
1b6c0831
L
15545 module_srcdir=gold; \
15546 $(SHELL) $$s/$$module_srcdir/configure \
15547 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15548 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15549 --target=${target_alias} \
22121df0 15550 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15551 $(STAGE4_CONFIGURE_FLAGS)
15552@endif gold-bootstrap
4fa63067 15553
a90ef4bf
JM
15554.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15555maybe-configure-stageprofile-gold:
15556@if gold-bootstrap
15557maybe-configure-stageprofile-gold: configure-stageprofile-gold
15558configure-stageprofile-gold:
15559 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15560 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15561 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15563 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15564 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15565 $(HOST_EXPORTS) \
a90ef4bf
JM
15566 $(POSTSTAGE1_HOST_EXPORTS) \
15567 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15568 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15569 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15570 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15571 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15572 cd $(HOST_SUBDIR)/gold || exit 1; \
15573 case $(srcdir) in \
15574 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15575 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15576 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15577 esac; \
1b6c0831
L
15578 module_srcdir=gold; \
15579 $(SHELL) $$s/$$module_srcdir/configure \
15580 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15581 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15582 --target=${target_alias} \
22121df0 15583 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15584 $(STAGEprofile_CONFIGURE_FLAGS)
15585@endif gold-bootstrap
2a4cbe27 15586
a90ef4bf
JM
15587.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15588maybe-configure-stagefeedback-gold:
15589@if gold-bootstrap
15590maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15591configure-stagefeedback-gold:
15592 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15593 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15594 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15596 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15597 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15598 $(HOST_EXPORTS) \
a90ef4bf
JM
15599 $(POSTSTAGE1_HOST_EXPORTS) \
15600 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15601 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15602 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15603 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15604 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15605 cd $(HOST_SUBDIR)/gold || exit 1; \
15606 case $(srcdir) in \
15607 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15608 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15609 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15610 esac; \
1b6c0831
L
15611 module_srcdir=gold; \
15612 $(SHELL) $$s/$$module_srcdir/configure \
15613 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15614 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15615 --target=${target_alias} \
22121df0 15616 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15617 $(STAGEfeedback_CONFIGURE_FLAGS)
15618@endif gold-bootstrap
2a4cbe27 15619
56a8fe78 15620
56a8fe78 15621
56a8fe78 15622
6d389afc 15623
a90ef4bf
JM
15624.PHONY: all-gold maybe-all-gold
15625maybe-all-gold:
15626@if gcc-bootstrap
15627all-gold: stage_current
15628@endif gcc-bootstrap
15629@if gold
15630TARGET-gold=all
15631maybe-all-gold: all-gold
15632all-gold: configure-gold
15633 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15635 $(HOST_EXPORTS) \
15636 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15637 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15638 $(TARGET-gold))
15639@endif gold
6d389afc 15640
6d389afc 15641
2a4cbe27 15642
a90ef4bf
JM
15643.PHONY: all-stage1-gold maybe-all-stage1-gold
15644.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15645maybe-all-stage1-gold:
15646maybe-clean-stage1-gold:
15647@if gold-bootstrap
15648maybe-all-stage1-gold: all-stage1-gold
15649all-stage1: all-stage1-gold
15650TARGET-stage1-gold = $(TARGET-gold)
15651all-stage1-gold: configure-stage1-gold
15652 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15653 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15655 TFLAGS="$(STAGE1_TFLAGS)"; \
15656 $(HOST_EXPORTS) \
15657 cd $(HOST_SUBDIR)/gold && \
15658 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15659 CFLAGS="$(STAGE1_CFLAGS)" \
15660 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15661 LIBCFLAGS="$(LIBCFLAGS)" \
15662 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15663 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15664 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15665 $(EXTRA_HOST_FLAGS) \
15666 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15667 TFLAGS="$(STAGE1_TFLAGS)" \
15668 $(TARGET-stage1-gold)
2a4cbe27 15669
a90ef4bf
JM
15670maybe-clean-stage1-gold: clean-stage1-gold
15671clean-stage1: clean-stage1-gold
15672clean-stage1-gold:
15673 @if [ $(current_stage) = stage1 ]; then \
15674 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15675 else \
15676 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15677 $(MAKE) stage1-start; \
15678 fi; \
15679 cd $(HOST_SUBDIR)/gold && \
15680 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15681 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15682@endif gold-bootstrap
2a4cbe27 15683
2a4cbe27 15684
a90ef4bf
JM
15685.PHONY: all-stage2-gold maybe-all-stage2-gold
15686.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15687maybe-all-stage2-gold:
15688maybe-clean-stage2-gold:
15689@if gold-bootstrap
15690maybe-all-stage2-gold: all-stage2-gold
15691all-stage2: all-stage2-gold
15692TARGET-stage2-gold = $(TARGET-gold)
15693all-stage2-gold: configure-stage2-gold
15694 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15695 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15697 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15698 $(HOST_EXPORTS) \
a90ef4bf
JM
15699 $(POSTSTAGE1_HOST_EXPORTS) \
15700 cd $(HOST_SUBDIR)/gold && \
15701 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15702 CFLAGS="$(STAGE2_CFLAGS)" \
15703 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15704 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15705 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15706 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15707 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15708 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15709 TFLAGS="$(STAGE2_TFLAGS)" \
15710 $(TARGET-stage2-gold)
2a4cbe27 15711
a90ef4bf
JM
15712maybe-clean-stage2-gold: clean-stage2-gold
15713clean-stage2: clean-stage2-gold
15714clean-stage2-gold:
15715 @if [ $(current_stage) = stage2 ]; then \
15716 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15717 else \
15718 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15719 $(MAKE) stage2-start; \
15720 fi; \
15721 cd $(HOST_SUBDIR)/gold && \
b3676d82 15722 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15723@endif gold-bootstrap
2a4cbe27 15724
a3ca38d2 15725
a90ef4bf
JM
15726.PHONY: all-stage3-gold maybe-all-stage3-gold
15727.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15728maybe-all-stage3-gold:
15729maybe-clean-stage3-gold:
15730@if gold-bootstrap
15731maybe-all-stage3-gold: all-stage3-gold
15732all-stage3: all-stage3-gold
15733TARGET-stage3-gold = $(TARGET-gold)
15734all-stage3-gold: configure-stage3-gold
15735 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15736 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15738 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15739 $(HOST_EXPORTS) \
a90ef4bf
JM
15740 $(POSTSTAGE1_HOST_EXPORTS) \
15741 cd $(HOST_SUBDIR)/gold && \
15742 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15743 CFLAGS="$(STAGE3_CFLAGS)" \
15744 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15745 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15746 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15747 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15748 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15749 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15750 TFLAGS="$(STAGE3_TFLAGS)" \
15751 $(TARGET-stage3-gold)
2a4cbe27 15752
a90ef4bf
JM
15753maybe-clean-stage3-gold: clean-stage3-gold
15754clean-stage3: clean-stage3-gold
15755clean-stage3-gold:
15756 @if [ $(current_stage) = stage3 ]; then \
15757 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15758 else \
15759 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15760 $(MAKE) stage3-start; \
15761 fi; \
15762 cd $(HOST_SUBDIR)/gold && \
b3676d82 15763 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15764@endif gold-bootstrap
2a4cbe27 15765
2a4cbe27 15766
a90ef4bf
JM
15767.PHONY: all-stage4-gold maybe-all-stage4-gold
15768.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15769maybe-all-stage4-gold:
15770maybe-clean-stage4-gold:
15771@if gold-bootstrap
15772maybe-all-stage4-gold: all-stage4-gold
15773all-stage4: all-stage4-gold
15774TARGET-stage4-gold = $(TARGET-gold)
15775all-stage4-gold: configure-stage4-gold
15776 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15777 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15779 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15780 $(HOST_EXPORTS) \
a90ef4bf
JM
15781 $(POSTSTAGE1_HOST_EXPORTS) \
15782 cd $(HOST_SUBDIR)/gold && \
15783 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15784 CFLAGS="$(STAGE4_CFLAGS)" \
15785 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15786 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15787 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15788 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15789 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15790 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15791 TFLAGS="$(STAGE4_TFLAGS)" \
15792 $(TARGET-stage4-gold)
2a4cbe27 15793
a90ef4bf
JM
15794maybe-clean-stage4-gold: clean-stage4-gold
15795clean-stage4: clean-stage4-gold
15796clean-stage4-gold:
15797 @if [ $(current_stage) = stage4 ]; then \
15798 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15799 else \
15800 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15801 $(MAKE) stage4-start; \
15802 fi; \
15803 cd $(HOST_SUBDIR)/gold && \
b3676d82 15804 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15805@endif gold-bootstrap
2a4cbe27 15806
2a4cbe27 15807
a90ef4bf
JM
15808.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15809.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15810maybe-all-stageprofile-gold:
15811maybe-clean-stageprofile-gold:
15812@if gold-bootstrap
15813maybe-all-stageprofile-gold: all-stageprofile-gold
15814all-stageprofile: all-stageprofile-gold
15815TARGET-stageprofile-gold = $(TARGET-gold)
15816all-stageprofile-gold: configure-stageprofile-gold
15817 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15818 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15820 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15821 $(HOST_EXPORTS) \
a90ef4bf
JM
15822 $(POSTSTAGE1_HOST_EXPORTS) \
15823 cd $(HOST_SUBDIR)/gold && \
15824 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15825 CFLAGS="$(STAGEprofile_CFLAGS)" \
15826 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15827 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15828 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15829 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15830 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15831 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15832 TFLAGS="$(STAGEprofile_TFLAGS)" \
15833 $(TARGET-stageprofile-gold)
2a4cbe27 15834
a90ef4bf
JM
15835maybe-clean-stageprofile-gold: clean-stageprofile-gold
15836clean-stageprofile: clean-stageprofile-gold
15837clean-stageprofile-gold:
15838 @if [ $(current_stage) = stageprofile ]; then \
15839 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15840 else \
15841 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15842 $(MAKE) stageprofile-start; \
15843 fi; \
15844 cd $(HOST_SUBDIR)/gold && \
b3676d82 15845 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15846@endif gold-bootstrap
2a4cbe27 15847
a7254363 15848
a90ef4bf
JM
15849.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15850.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15851maybe-all-stagefeedback-gold:
15852maybe-clean-stagefeedback-gold:
15853@if gold-bootstrap
15854maybe-all-stagefeedback-gold: all-stagefeedback-gold
15855all-stagefeedback: all-stagefeedback-gold
15856TARGET-stagefeedback-gold = $(TARGET-gold)
15857all-stagefeedback-gold: configure-stagefeedback-gold
15858 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15859 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15861 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15862 $(HOST_EXPORTS) \
15863 $(POSTSTAGE1_HOST_EXPORTS) \
15864 cd $(HOST_SUBDIR)/gold && \
15865 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15866 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15867 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15868 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15869 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15870 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15871 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15872 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15873 TFLAGS="$(STAGEfeedback_TFLAGS)" \
15874 $(TARGET-stagefeedback-gold)
d545f33b 15875
a90ef4bf
JM
15876maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15877clean-stagefeedback: clean-stagefeedback-gold
15878clean-stagefeedback-gold:
15879 @if [ $(current_stage) = stagefeedback ]; then \
15880 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15881 else \
15882 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15883 $(MAKE) stagefeedback-start; \
15884 fi; \
15885 cd $(HOST_SUBDIR)/gold && \
b3676d82 15886 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15887@endif gold-bootstrap
d545f33b 15888
4fa63067 15889
a7254363 15890
d545f33b
PB
15891
15892
a90ef4bf
JM
15893.PHONY: check-gold maybe-check-gold
15894maybe-check-gold:
15895@if gold
15896maybe-check-gold: check-gold
4fa63067 15897
a90ef4bf 15898check-gold:
0aed8855 15899 @: $(MAKE); $(unstage)
4fa63067
NN
15900 @r=`${PWD_COMMAND}`; export r; \
15901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15902 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15903 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 15904 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15905
a90ef4bf 15906@endif gold
4fa63067 15907
a90ef4bf
JM
15908.PHONY: install-gold maybe-install-gold
15909maybe-install-gold:
15910@if gold
15911maybe-install-gold: install-gold
4fa63067 15912
a90ef4bf 15913install-gold: installdirs
0aed8855 15914 @: $(MAKE); $(unstage)
4fa63067
NN
15915 @r=`${PWD_COMMAND}`; export r; \
15916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15917 $(HOST_EXPORTS) \
a90ef4bf 15918 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15919 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15920
a90ef4bf 15921@endif gold
4fa63067 15922
a90ef4bf
JM
15923.PHONY: install-strip-gold maybe-install-strip-gold
15924maybe-install-strip-gold:
15925@if gold
15926maybe-install-strip-gold: install-strip-gold
9b980aa1 15927
a90ef4bf 15928install-strip-gold: installdirs
9b980aa1
RW
15929 @: $(MAKE); $(unstage)
15930 @r=`${PWD_COMMAND}`; export r; \
15931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15932 $(HOST_EXPORTS) \
a90ef4bf 15933 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
15934 $(MAKE) $(FLAGS_TO_PASS) install-strip)
15935
a90ef4bf 15936@endif gold
9b980aa1 15937
56a8fe78 15938# Other targets (info, dvi, pdf, etc.)
4fa63067 15939
a90ef4bf
JM
15940.PHONY: maybe-info-gold info-gold
15941maybe-info-gold:
15942@if gold
15943maybe-info-gold: info-gold
4fa63067 15944
a90ef4bf
JM
15945info-gold: \
15946 configure-gold
15947 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15948 r=`${PWD_COMMAND}`; export r; \
15949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15950 $(HOST_EXPORTS) \
b813574b 15951 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15953 done; \
22121df0 15954 echo "Doing info in gold"; \
a90ef4bf 15955 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15958 "RANLIB=$${RANLIB}" \
0c24b341 15959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15960 info) \
2a4cbe27
NN
15961 || exit 1
15962
a90ef4bf 15963@endif gold
2a4cbe27 15964
a90ef4bf
JM
15965.PHONY: maybe-dvi-gold dvi-gold
15966maybe-dvi-gold:
15967@if gold
15968maybe-dvi-gold: dvi-gold
2a4cbe27 15969
a90ef4bf
JM
15970dvi-gold: \
15971 configure-gold
15972 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15973 r=`${PWD_COMMAND}`; export r; \
15974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15975 $(HOST_EXPORTS) \
b813574b 15976 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15978 done; \
22121df0 15979 echo "Doing dvi in gold"; \
a90ef4bf 15980 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15983 "RANLIB=$${RANLIB}" \
0c24b341 15984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15985 dvi) \
2a4cbe27
NN
15986 || exit 1
15987
a90ef4bf 15988@endif gold
2a4cbe27 15989
a90ef4bf
JM
15990.PHONY: maybe-pdf-gold pdf-gold
15991maybe-pdf-gold:
15992@if gold
15993maybe-pdf-gold: pdf-gold
56a8fe78 15994
a90ef4bf
JM
15995pdf-gold: \
15996 configure-gold
15997 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
15998 r=`${PWD_COMMAND}`; export r; \
15999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16000 $(HOST_EXPORTS) \
16001 for flag in $(EXTRA_HOST_FLAGS) ; do \
16002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16003 done; \
22121df0 16004 echo "Doing pdf in gold"; \
a90ef4bf 16005 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16008 "RANLIB=$${RANLIB}" \
0c24b341 16009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16010 pdf) \
16011 || exit 1
16012
a90ef4bf 16013@endif gold
56a8fe78 16014
a90ef4bf
JM
16015.PHONY: maybe-html-gold html-gold
16016maybe-html-gold:
16017@if gold
16018maybe-html-gold: html-gold
6d389afc 16019
a90ef4bf
JM
16020html-gold: \
16021 configure-gold
16022 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16023 r=`${PWD_COMMAND}`; export r; \
16024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16025 $(HOST_EXPORTS) \
16026 for flag in $(EXTRA_HOST_FLAGS) ; do \
16027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16028 done; \
22121df0 16029 echo "Doing html in gold"; \
a90ef4bf 16030 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16033 "RANLIB=$${RANLIB}" \
0c24b341 16034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16035 html) \
16036 || exit 1
16037
a90ef4bf 16038@endif gold
6d389afc 16039
a90ef4bf
JM
16040.PHONY: maybe-TAGS-gold TAGS-gold
16041maybe-TAGS-gold:
16042@if gold
16043maybe-TAGS-gold: TAGS-gold
2a4cbe27 16044
a90ef4bf
JM
16045TAGS-gold: \
16046 configure-gold
16047 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16048 r=`${PWD_COMMAND}`; export r; \
16049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16050 $(HOST_EXPORTS) \
b813574b 16051 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16053 done; \
22121df0 16054 echo "Doing TAGS in gold"; \
a90ef4bf 16055 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16058 "RANLIB=$${RANLIB}" \
0c24b341 16059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16060 TAGS) \
2a4cbe27
NN
16061 || exit 1
16062
a90ef4bf 16063@endif gold
2a4cbe27 16064
a90ef4bf
JM
16065.PHONY: maybe-install-info-gold install-info-gold
16066maybe-install-info-gold:
16067@if gold
16068maybe-install-info-gold: install-info-gold
b813574b 16069
a90ef4bf
JM
16070install-info-gold: \
16071 configure-gold \
16072 info-gold
16073 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16074 r=`${PWD_COMMAND}`; export r; \
16075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16076 $(HOST_EXPORTS) \
b813574b 16077 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16079 done; \
22121df0 16080 echo "Doing install-info in gold"; \
a90ef4bf 16081 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16084 "RANLIB=$${RANLIB}" \
0c24b341 16085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16086 install-info) \
2a4cbe27
NN
16087 || exit 1
16088
a90ef4bf 16089@endif gold
2a4cbe27 16090
a90ef4bf
JM
16091.PHONY: maybe-install-pdf-gold install-pdf-gold
16092maybe-install-pdf-gold:
16093@if gold
16094maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16095
a90ef4bf
JM
16096install-pdf-gold: \
16097 configure-gold \
16098 pdf-gold
16099 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16100 r=`${PWD_COMMAND}`; export r; \
16101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16102 $(HOST_EXPORTS) \
16103 for flag in $(EXTRA_HOST_FLAGS) ; do \
16104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16105 done; \
22121df0 16106 echo "Doing install-pdf in gold"; \
a90ef4bf 16107 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16110 "RANLIB=$${RANLIB}" \
0c24b341 16111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16112 install-pdf) \
16113 || exit 1
16114
a90ef4bf 16115@endif gold
a3ca38d2 16116
a90ef4bf
JM
16117.PHONY: maybe-install-html-gold install-html-gold
16118maybe-install-html-gold:
16119@if gold
16120maybe-install-html-gold: install-html-gold
108a6f8e 16121
a90ef4bf
JM
16122install-html-gold: \
16123 configure-gold \
16124 html-gold
16125 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16126 r=`${PWD_COMMAND}`; export r; \
16127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16128 $(HOST_EXPORTS) \
16129 for flag in $(EXTRA_HOST_FLAGS) ; do \
16130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16131 done; \
22121df0 16132 echo "Doing install-html in gold"; \
a90ef4bf 16133 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16136 "RANLIB=$${RANLIB}" \
0c24b341 16137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16138 install-html) \
16139 || exit 1
16140
a90ef4bf 16141@endif gold
108a6f8e 16142
a90ef4bf
JM
16143.PHONY: maybe-installcheck-gold installcheck-gold
16144maybe-installcheck-gold:
16145@if gold
16146maybe-installcheck-gold: installcheck-gold
2a4cbe27 16147
a90ef4bf
JM
16148installcheck-gold: \
16149 configure-gold
16150 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16151 r=`${PWD_COMMAND}`; export r; \
16152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16153 $(HOST_EXPORTS) \
b813574b 16154 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16156 done; \
22121df0 16157 echo "Doing installcheck in gold"; \
a90ef4bf 16158 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16161 "RANLIB=$${RANLIB}" \
0c24b341 16162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16163 installcheck) \
2a4cbe27
NN
16164 || exit 1
16165
a90ef4bf 16166@endif gold
2a4cbe27 16167
a90ef4bf
JM
16168.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16169maybe-mostlyclean-gold:
16170@if gold
16171maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16172
a90ef4bf
JM
16173mostlyclean-gold:
16174 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16175 r=`${PWD_COMMAND}`; export r; \
16176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16177 $(HOST_EXPORTS) \
b813574b 16178 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16180 done; \
22121df0 16181 echo "Doing mostlyclean in gold"; \
a90ef4bf 16182 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16185 "RANLIB=$${RANLIB}" \
0c24b341 16186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16187 mostlyclean) \
2a4cbe27
NN
16188 || exit 1
16189
a90ef4bf 16190@endif gold
2a4cbe27 16191
a90ef4bf
JM
16192.PHONY: maybe-clean-gold clean-gold
16193maybe-clean-gold:
16194@if gold
16195maybe-clean-gold: clean-gold
2a4cbe27 16196
a90ef4bf
JM
16197clean-gold:
16198 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16199 r=`${PWD_COMMAND}`; export r; \
16200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16201 $(HOST_EXPORTS) \
b813574b 16202 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16204 done; \
22121df0 16205 echo "Doing clean in gold"; \
a90ef4bf 16206 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16209 "RANLIB=$${RANLIB}" \
0c24b341 16210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16211 clean) \
2a4cbe27
NN
16212 || exit 1
16213
a90ef4bf 16214@endif gold
2a4cbe27 16215
a90ef4bf
JM
16216.PHONY: maybe-distclean-gold distclean-gold
16217maybe-distclean-gold:
16218@if gold
16219maybe-distclean-gold: distclean-gold
2a4cbe27 16220
a90ef4bf
JM
16221distclean-gold:
16222 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16223 r=`${PWD_COMMAND}`; export r; \
16224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16225 $(HOST_EXPORTS) \
b813574b 16226 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16228 done; \
22121df0 16229 echo "Doing distclean in gold"; \
a90ef4bf 16230 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16233 "RANLIB=$${RANLIB}" \
0c24b341 16234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16235 distclean) \
2a4cbe27
NN
16236 || exit 1
16237
a90ef4bf 16238@endif gold
2a4cbe27 16239
a90ef4bf
JM
16240.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16241maybe-maintainer-clean-gold:
16242@if gold
16243maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16244
a90ef4bf
JM
16245maintainer-clean-gold:
16246 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16247 r=`${PWD_COMMAND}`; export r; \
16248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16249 $(HOST_EXPORTS) \
b813574b 16250 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16252 done; \
22121df0 16253 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16254 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16257 "RANLIB=$${RANLIB}" \
0c24b341 16258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16259 maintainer-clean) \
4fa63067
NN
16260 || exit 1
16261
a90ef4bf 16262@endif gold
4fa63067
NN
16263
16264
a7254363 16265
a90ef4bf
JM
16266.PHONY: configure-gprof maybe-configure-gprof
16267maybe-configure-gprof:
4b900473 16268@if gcc-bootstrap
a90ef4bf 16269configure-gprof: stage_current
4b900473 16270@endif gcc-bootstrap
a90ef4bf
JM
16271@if gprof
16272maybe-configure-gprof: configure-gprof
16273configure-gprof:
16274 @: $(MAKE); $(unstage)
4b900473
PB
16275 @r=`${PWD_COMMAND}`; export r; \
16276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16277 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16278 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16279 $(HOST_EXPORTS) \
a90ef4bf
JM
16280 echo Configuring in $(HOST_SUBDIR)/gprof; \
16281 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16282 case $(srcdir) in \
16283 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16284 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16285 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16286 esac; \
1b6c0831
L
16287 module_srcdir=gprof; \
16288 $(SHELL) \
16289 $$s/$$module_srcdir/configure \
16290 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16291 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16292 --target=${target_alias} \
4b900473 16293 || exit 1
a90ef4bf 16294@endif gprof
4b900473
PB
16295
16296
16297
4b900473 16298
a90ef4bf
JM
16299
16300.PHONY: all-gprof maybe-all-gprof
16301maybe-all-gprof:
16302@if gcc-bootstrap
16303all-gprof: stage_current
16304@endif gcc-bootstrap
16305@if gprof
16306TARGET-gprof=all
16307maybe-all-gprof: all-gprof
16308all-gprof: configure-gprof
16309 @: $(MAKE); $(unstage)
4b900473
PB
16310 @r=`${PWD_COMMAND}`; export r; \
16311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16312 $(HOST_EXPORTS) \
a90ef4bf 16313 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16314 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16315 $(TARGET-gprof))
16316@endif gprof
4b900473
PB
16317
16318
4b900473 16319
4b900473 16320
a90ef4bf
JM
16321.PHONY: check-gprof maybe-check-gprof
16322maybe-check-gprof:
16323@if gprof
16324maybe-check-gprof: check-gprof
4b900473 16325
a90ef4bf
JM
16326check-gprof:
16327 @: $(MAKE); $(unstage)
4b900473
PB
16328 @r=`${PWD_COMMAND}`; export r; \
16329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16330 $(HOST_EXPORTS) \
a90ef4bf
JM
16331 (cd $(HOST_SUBDIR)/gprof && \
16332 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16333
a90ef4bf 16334@endif gprof
4b900473 16335
a90ef4bf
JM
16336.PHONY: install-gprof maybe-install-gprof
16337maybe-install-gprof:
16338@if gprof
16339maybe-install-gprof: install-gprof
4b900473 16340
a90ef4bf
JM
16341install-gprof: installdirs
16342 @: $(MAKE); $(unstage)
4b900473
PB
16343 @r=`${PWD_COMMAND}`; export r; \
16344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16345 $(HOST_EXPORTS) \
a90ef4bf
JM
16346 (cd $(HOST_SUBDIR)/gprof && \
16347 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16348
a90ef4bf 16349@endif gprof
4b900473 16350
a90ef4bf
JM
16351.PHONY: install-strip-gprof maybe-install-strip-gprof
16352maybe-install-strip-gprof:
16353@if gprof
16354maybe-install-strip-gprof: install-strip-gprof
4b900473 16355
a90ef4bf 16356install-strip-gprof: installdirs
4b900473
PB
16357 @: $(MAKE); $(unstage)
16358 @r=`${PWD_COMMAND}`; export r; \
16359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16360 $(HOST_EXPORTS) \
a90ef4bf
JM
16361 (cd $(HOST_SUBDIR)/gprof && \
16362 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16363
a90ef4bf 16364@endif gprof
9b980aa1 16365
4b900473
PB
16366# Other targets (info, dvi, pdf, etc.)
16367
a90ef4bf
JM
16368.PHONY: maybe-info-gprof info-gprof
16369maybe-info-gprof:
16370@if gprof
16371maybe-info-gprof: info-gprof
4b900473 16372
a90ef4bf
JM
16373info-gprof: \
16374 configure-gprof
16375 @: $(MAKE); $(unstage)
16376 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16377 r=`${PWD_COMMAND}`; export r; \
16378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16379 $(HOST_EXPORTS) \
16380 for flag in $(EXTRA_HOST_FLAGS) ; do \
16381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16382 done; \
22121df0 16383 echo "Doing info in gprof"; \
a90ef4bf 16384 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16387 "RANLIB=$${RANLIB}" \
0c24b341 16388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16389 info) \
16390 || exit 1
16391
a90ef4bf 16392@endif gprof
4b900473 16393
a90ef4bf
JM
16394.PHONY: maybe-dvi-gprof dvi-gprof
16395maybe-dvi-gprof:
16396@if gprof
16397maybe-dvi-gprof: dvi-gprof
4b900473 16398
a90ef4bf
JM
16399dvi-gprof: \
16400 configure-gprof
16401 @: $(MAKE); $(unstage)
16402 @[ -f ./gprof/Makefile ] || exit 0; \
16403 r=`${PWD_COMMAND}`; export r; \
16404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16405 $(HOST_EXPORTS) \
4b900473
PB
16406 for flag in $(EXTRA_HOST_FLAGS) ; do \
16407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16408 done; \
22121df0 16409 echo "Doing dvi in gprof"; \
a90ef4bf 16410 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16413 "RANLIB=$${RANLIB}" \
0c24b341 16414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16415 dvi) \
16416 || exit 1
16417
a90ef4bf 16418@endif gprof
4b900473 16419
a90ef4bf
JM
16420.PHONY: maybe-pdf-gprof pdf-gprof
16421maybe-pdf-gprof:
16422@if gprof
16423maybe-pdf-gprof: pdf-gprof
4b900473 16424
a90ef4bf
JM
16425pdf-gprof: \
16426 configure-gprof
16427 @: $(MAKE); $(unstage)
16428 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16429 r=`${PWD_COMMAND}`; export r; \
16430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16431 $(HOST_EXPORTS) \
16432 for flag in $(EXTRA_HOST_FLAGS) ; do \
16433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16434 done; \
22121df0 16435 echo "Doing pdf in gprof"; \
a90ef4bf 16436 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16439 "RANLIB=$${RANLIB}" \
0c24b341 16440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16441 pdf) \
16442 || exit 1
16443
a90ef4bf 16444@endif gprof
4b900473 16445
a90ef4bf
JM
16446.PHONY: maybe-html-gprof html-gprof
16447maybe-html-gprof:
16448@if gprof
16449maybe-html-gprof: html-gprof
4b900473 16450
a90ef4bf
JM
16451html-gprof: \
16452 configure-gprof
16453 @: $(MAKE); $(unstage)
16454 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16455 r=`${PWD_COMMAND}`; export r; \
16456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16457 $(HOST_EXPORTS) \
16458 for flag in $(EXTRA_HOST_FLAGS) ; do \
16459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16460 done; \
22121df0 16461 echo "Doing html in gprof"; \
a90ef4bf 16462 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16465 "RANLIB=$${RANLIB}" \
0c24b341 16466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16467 html) \
16468 || exit 1
16469
a90ef4bf 16470@endif gprof
4b900473 16471
a90ef4bf
JM
16472.PHONY: maybe-TAGS-gprof TAGS-gprof
16473maybe-TAGS-gprof:
16474@if gprof
16475maybe-TAGS-gprof: TAGS-gprof
4b900473 16476
a90ef4bf
JM
16477TAGS-gprof: \
16478 configure-gprof
16479 @: $(MAKE); $(unstage)
16480 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16481 r=`${PWD_COMMAND}`; export r; \
16482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16483 $(HOST_EXPORTS) \
16484 for flag in $(EXTRA_HOST_FLAGS) ; do \
16485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16486 done; \
22121df0 16487 echo "Doing TAGS in gprof"; \
a90ef4bf 16488 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16491 "RANLIB=$${RANLIB}" \
0c24b341 16492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16493 TAGS) \
16494 || exit 1
16495
a90ef4bf 16496@endif gprof
4b900473 16497
a90ef4bf
JM
16498.PHONY: maybe-install-info-gprof install-info-gprof
16499maybe-install-info-gprof:
16500@if gprof
16501maybe-install-info-gprof: install-info-gprof
4b900473 16502
a90ef4bf
JM
16503install-info-gprof: \
16504 configure-gprof \
16505 info-gprof
16506 @: $(MAKE); $(unstage)
16507 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16508 r=`${PWD_COMMAND}`; export r; \
16509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16510 $(HOST_EXPORTS) \
16511 for flag in $(EXTRA_HOST_FLAGS) ; do \
16512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16513 done; \
22121df0 16514 echo "Doing install-info in gprof"; \
a90ef4bf 16515 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16518 "RANLIB=$${RANLIB}" \
0c24b341 16519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16520 install-info) \
16521 || exit 1
16522
a90ef4bf 16523@endif gprof
4b900473 16524
a90ef4bf
JM
16525.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16526maybe-install-pdf-gprof:
16527@if gprof
16528maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16529
a90ef4bf
JM
16530install-pdf-gprof: \
16531 configure-gprof \
16532 pdf-gprof
16533 @: $(MAKE); $(unstage)
16534 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16535 r=`${PWD_COMMAND}`; export r; \
16536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16537 $(HOST_EXPORTS) \
16538 for flag in $(EXTRA_HOST_FLAGS) ; do \
16539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16540 done; \
22121df0 16541 echo "Doing install-pdf in gprof"; \
a90ef4bf 16542 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16545 "RANLIB=$${RANLIB}" \
0c24b341 16546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16547 install-pdf) \
16548 || exit 1
16549
a90ef4bf 16550@endif gprof
a3ca38d2 16551
a90ef4bf
JM
16552.PHONY: maybe-install-html-gprof install-html-gprof
16553maybe-install-html-gprof:
16554@if gprof
16555maybe-install-html-gprof: install-html-gprof
4b900473 16556
a90ef4bf
JM
16557install-html-gprof: \
16558 configure-gprof \
16559 html-gprof
16560 @: $(MAKE); $(unstage)
16561 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16562 r=`${PWD_COMMAND}`; export r; \
16563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16564 $(HOST_EXPORTS) \
16565 for flag in $(EXTRA_HOST_FLAGS) ; do \
16566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16567 done; \
22121df0 16568 echo "Doing install-html in gprof"; \
a90ef4bf 16569 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16572 "RANLIB=$${RANLIB}" \
0c24b341 16573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16574 install-html) \
16575 || exit 1
16576
a90ef4bf 16577@endif gprof
4b900473 16578
a90ef4bf
JM
16579.PHONY: maybe-installcheck-gprof installcheck-gprof
16580maybe-installcheck-gprof:
16581@if gprof
16582maybe-installcheck-gprof: installcheck-gprof
4b900473 16583
a90ef4bf
JM
16584installcheck-gprof: \
16585 configure-gprof
16586 @: $(MAKE); $(unstage)
16587 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16588 r=`${PWD_COMMAND}`; export r; \
16589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16590 $(HOST_EXPORTS) \
16591 for flag in $(EXTRA_HOST_FLAGS) ; do \
16592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16593 done; \
22121df0 16594 echo "Doing installcheck in gprof"; \
a90ef4bf 16595 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16598 "RANLIB=$${RANLIB}" \
16599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16600 installcheck) \
16601 || exit 1
16602
a90ef4bf 16603@endif gprof
e28c595f 16604
a90ef4bf
JM
16605.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16606maybe-mostlyclean-gprof:
16607@if gprof
16608maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16609
a90ef4bf
JM
16610mostlyclean-gprof:
16611 @: $(MAKE); $(unstage)
16612 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16613 r=`${PWD_COMMAND}`; export r; \
16614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16615 $(HOST_EXPORTS) \
16616 for flag in $(EXTRA_HOST_FLAGS) ; do \
16617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16618 done; \
22121df0 16619 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16620 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16623 "RANLIB=$${RANLIB}" \
16624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16625 mostlyclean) \
16626 || exit 1
16627
a90ef4bf 16628@endif gprof
e28c595f 16629
a90ef4bf
JM
16630.PHONY: maybe-clean-gprof clean-gprof
16631maybe-clean-gprof:
16632@if gprof
16633maybe-clean-gprof: clean-gprof
e28c595f 16634
a90ef4bf
JM
16635clean-gprof:
16636 @: $(MAKE); $(unstage)
16637 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16638 r=`${PWD_COMMAND}`; export r; \
16639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16640 $(HOST_EXPORTS) \
16641 for flag in $(EXTRA_HOST_FLAGS) ; do \
16642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16643 done; \
22121df0 16644 echo "Doing clean in gprof"; \
a90ef4bf 16645 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16648 "RANLIB=$${RANLIB}" \
16649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16650 clean) \
16651 || exit 1
16652
a90ef4bf 16653@endif gprof
e28c595f 16654
a90ef4bf
JM
16655.PHONY: maybe-distclean-gprof distclean-gprof
16656maybe-distclean-gprof:
16657@if gprof
16658maybe-distclean-gprof: distclean-gprof
e28c595f 16659
a90ef4bf
JM
16660distclean-gprof:
16661 @: $(MAKE); $(unstage)
16662 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16663 r=`${PWD_COMMAND}`; export r; \
16664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16665 $(HOST_EXPORTS) \
16666 for flag in $(EXTRA_HOST_FLAGS) ; do \
16667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16668 done; \
22121df0 16669 echo "Doing distclean in gprof"; \
a90ef4bf 16670 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16673 "RANLIB=$${RANLIB}" \
16674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16675 distclean) \
16676 || exit 1
16677
a90ef4bf 16678@endif gprof
e28c595f 16679
a90ef4bf
JM
16680.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16681maybe-maintainer-clean-gprof:
16682@if gprof
16683maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16684
a90ef4bf
JM
16685maintainer-clean-gprof:
16686 @: $(MAKE); $(unstage)
16687 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16688 r=`${PWD_COMMAND}`; export r; \
16689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16690 $(HOST_EXPORTS) \
16691 for flag in $(EXTRA_HOST_FLAGS) ; do \
16692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16693 done; \
22121df0 16694 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16695 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16698 "RANLIB=$${RANLIB}" \
16699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16700 maintainer-clean) \
16701 || exit 1
16702
a90ef4bf 16703@endif gprof
e28c595f
JM
16704
16705
16706
a90ef4bf
JM
16707.PHONY: configure-intl maybe-configure-intl
16708maybe-configure-intl:
e28c595f 16709@if gcc-bootstrap
a90ef4bf 16710configure-intl: stage_current
e28c595f 16711@endif gcc-bootstrap
a90ef4bf
JM
16712@if intl
16713maybe-configure-intl: configure-intl
16714configure-intl:
e28c595f
JM
16715 @r=`${PWD_COMMAND}`; export r; \
16716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16717 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16718 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16719 $(HOST_EXPORTS) \
a90ef4bf
JM
16720 echo Configuring in $(HOST_SUBDIR)/intl; \
16721 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16722 case $(srcdir) in \
16723 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16724 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16725 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16726 esac; \
1b6c0831
L
16727 module_srcdir=intl; \
16728 $(SHELL) \
16729 $$s/$$module_srcdir/configure \
16730 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16731 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16732 --target=${target_alias} \
e28c595f 16733 || exit 1
a90ef4bf 16734@endif intl
e28c595f
JM
16735
16736
16737
a90ef4bf
JM
16738.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16739maybe-configure-stage1-intl:
16740@if intl-bootstrap
16741maybe-configure-stage1-intl: configure-stage1-intl
16742configure-stage1-intl:
e28c595f 16743 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16744 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16745 @r=`${PWD_COMMAND}`; export r; \
16746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16747 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16748 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16749 $(HOST_EXPORTS) \
e28c595f 16750 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16751 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16752 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16753 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16754 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16755 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16756 case $(srcdir) in \
16757 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16758 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16759 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16760 esac; \
1b6c0831
L
16761 module_srcdir=intl; \
16762 $(SHELL) $$s/$$module_srcdir/configure \
16763 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16764 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16765 --target=${target_alias} \
16766 \
a90ef4bf
JM
16767 $(STAGE1_CONFIGURE_FLAGS)
16768@endif intl-bootstrap
e28c595f 16769
a90ef4bf
JM
16770.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16771maybe-configure-stage2-intl:
16772@if intl-bootstrap
16773maybe-configure-stage2-intl: configure-stage2-intl
16774configure-stage2-intl:
e28c595f 16775 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16776 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16777 @r=`${PWD_COMMAND}`; export r; \
16778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16779 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16780 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16781 $(HOST_EXPORTS) \
1b05fbbd 16782 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16783 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16784 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16785 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16786 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16787 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16788 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16789 case $(srcdir) in \
16790 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16791 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16792 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16793 esac; \
1b6c0831
L
16794 module_srcdir=intl; \
16795 $(SHELL) $$s/$$module_srcdir/configure \
16796 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16797 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16798 --target=${target_alias} \
22121df0 16799 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16800 $(STAGE2_CONFIGURE_FLAGS)
16801@endif intl-bootstrap
e28c595f 16802
a90ef4bf
JM
16803.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16804maybe-configure-stage3-intl:
16805@if intl-bootstrap
16806maybe-configure-stage3-intl: configure-stage3-intl
16807configure-stage3-intl:
e28c595f 16808 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16809 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16810 @r=`${PWD_COMMAND}`; export r; \
16811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16812 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16813 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16814 $(HOST_EXPORTS) \
1b05fbbd 16815 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16816 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16817 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16818 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16819 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16820 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16821 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16822 case $(srcdir) in \
16823 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16824 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16825 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16826 esac; \
1b6c0831
L
16827 module_srcdir=intl; \
16828 $(SHELL) $$s/$$module_srcdir/configure \
16829 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16830 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16831 --target=${target_alias} \
22121df0 16832 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16833 $(STAGE3_CONFIGURE_FLAGS)
16834@endif intl-bootstrap
e28c595f 16835
a90ef4bf
JM
16836.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16837maybe-configure-stage4-intl:
16838@if intl-bootstrap
16839maybe-configure-stage4-intl: configure-stage4-intl
16840configure-stage4-intl:
e28c595f 16841 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16842 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16843 @r=`${PWD_COMMAND}`; export r; \
16844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16845 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16846 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16847 $(HOST_EXPORTS) \
1b05fbbd 16848 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16849 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16850 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16851 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16852 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16853 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16854 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16855 case $(srcdir) in \
16856 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16857 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16858 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16859 esac; \
1b6c0831
L
16860 module_srcdir=intl; \
16861 $(SHELL) $$s/$$module_srcdir/configure \
16862 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16863 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16864 --target=${target_alias} \
22121df0 16865 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16866 $(STAGE4_CONFIGURE_FLAGS)
16867@endif intl-bootstrap
e28c595f 16868
a90ef4bf
JM
16869.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16870maybe-configure-stageprofile-intl:
16871@if intl-bootstrap
16872maybe-configure-stageprofile-intl: configure-stageprofile-intl
16873configure-stageprofile-intl:
e28c595f 16874 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16875 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16876 @r=`${PWD_COMMAND}`; export r; \
16877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16878 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16879 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16880 $(HOST_EXPORTS) \
1b05fbbd
AO
16881 $(POSTSTAGE1_HOST_EXPORTS) \
16882 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16883 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16884 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16885 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
16886 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16887 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16888 case $(srcdir) in \
16889 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16890 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16891 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16892 esac; \
1b6c0831
L
16893 module_srcdir=intl; \
16894 $(SHELL) $$s/$$module_srcdir/configure \
16895 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16896 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16897 --target=${target_alias} \
22121df0 16898 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16899 $(STAGEprofile_CONFIGURE_FLAGS)
16900@endif intl-bootstrap
e28c595f 16901
a90ef4bf
JM
16902.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16903maybe-configure-stagefeedback-intl:
16904@if intl-bootstrap
16905maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16906configure-stagefeedback-intl:
e28c595f 16907 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16908 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16909 @r=`${PWD_COMMAND}`; export r; \
16910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16911 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16912 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16913 $(HOST_EXPORTS) \
1b05fbbd
AO
16914 $(POSTSTAGE1_HOST_EXPORTS) \
16915 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16916 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16917 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16918 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
16919 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16920 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16921 case $(srcdir) in \
16922 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16923 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16924 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16925 esac; \
1b6c0831
L
16926 module_srcdir=intl; \
16927 $(SHELL) $$s/$$module_srcdir/configure \
16928 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16929 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16930 --target=${target_alias} \
22121df0 16931 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16932 $(STAGEfeedback_CONFIGURE_FLAGS)
16933@endif intl-bootstrap
e28c595f
JM
16934
16935
16936
16937
16938
a90ef4bf
JM
16939.PHONY: all-intl maybe-all-intl
16940maybe-all-intl:
e28c595f 16941@if gcc-bootstrap
a90ef4bf 16942all-intl: stage_current
e28c595f 16943@endif gcc-bootstrap
a90ef4bf
JM
16944@if intl
16945TARGET-intl=all
16946maybe-all-intl: all-intl
16947all-intl: configure-intl
e28c595f
JM
16948 @r=`${PWD_COMMAND}`; export r; \
16949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16950 $(HOST_EXPORTS) \
a90ef4bf 16951 (cd $(HOST_SUBDIR)/intl && \
b3676d82 16952 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16953 $(TARGET-intl))
16954@endif intl
e28c595f
JM
16955
16956
16957
a90ef4bf
JM
16958.PHONY: all-stage1-intl maybe-all-stage1-intl
16959.PHONY: clean-stage1-intl maybe-clean-stage1-intl
16960maybe-all-stage1-intl:
16961maybe-clean-stage1-intl:
16962@if intl-bootstrap
16963maybe-all-stage1-intl: all-stage1-intl
16964all-stage1: all-stage1-intl
16965TARGET-stage1-intl = $(TARGET-intl)
16966all-stage1-intl: configure-stage1-intl
e28c595f
JM
16967 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16968 @r=`${PWD_COMMAND}`; export r; \
16969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16970 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 16971 $(HOST_EXPORTS) \
a90ef4bf 16972 cd $(HOST_SUBDIR)/intl && \
e28c595f 16973 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 16974 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 16975 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
16976 LIBCFLAGS="$(LIBCFLAGS)" \
16977 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16978 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16979 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
16980 $(EXTRA_HOST_FLAGS) \
16981 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 16982 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 16983 $(TARGET-stage1-intl)
e28c595f 16984
a90ef4bf
JM
16985maybe-clean-stage1-intl: clean-stage1-intl
16986clean-stage1: clean-stage1-intl
16987clean-stage1-intl:
e28c595f 16988 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 16989 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 16990 else \
a90ef4bf 16991 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
16992 $(MAKE) stage1-start; \
16993 fi; \
a90ef4bf 16994 cd $(HOST_SUBDIR)/intl && \
e28c595f 16995 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 16996 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16997@endif intl-bootstrap
e28c595f
JM
16998
16999
a90ef4bf
JM
17000.PHONY: all-stage2-intl maybe-all-stage2-intl
17001.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17002maybe-all-stage2-intl:
17003maybe-clean-stage2-intl:
17004@if intl-bootstrap
17005maybe-all-stage2-intl: all-stage2-intl
17006all-stage2: all-stage2-intl
17007TARGET-stage2-intl = $(TARGET-intl)
17008all-stage2-intl: configure-stage2-intl
e28c595f
JM
17009 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17010 @r=`${PWD_COMMAND}`; export r; \
17011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17012 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17013 $(HOST_EXPORTS) \
1f53ca9a 17014 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17015 cd $(HOST_SUBDIR)/intl && \
e28c595f 17016 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17017 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17018 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17019 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17020 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17021 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17022 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17023 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17024 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17025 $(TARGET-stage2-intl)
e28c595f 17026
a90ef4bf
JM
17027maybe-clean-stage2-intl: clean-stage2-intl
17028clean-stage2: clean-stage2-intl
17029clean-stage2-intl:
e28c595f 17030 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17031 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17032 else \
a90ef4bf 17033 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17034 $(MAKE) stage2-start; \
17035 fi; \
a90ef4bf 17036 cd $(HOST_SUBDIR)/intl && \
b3676d82 17037 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17038@endif intl-bootstrap
e28c595f
JM
17039
17040
a90ef4bf
JM
17041.PHONY: all-stage3-intl maybe-all-stage3-intl
17042.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17043maybe-all-stage3-intl:
17044maybe-clean-stage3-intl:
17045@if intl-bootstrap
17046maybe-all-stage3-intl: all-stage3-intl
17047all-stage3: all-stage3-intl
17048TARGET-stage3-intl = $(TARGET-intl)
17049all-stage3-intl: configure-stage3-intl
e28c595f
JM
17050 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17051 @r=`${PWD_COMMAND}`; export r; \
17052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17053 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17054 $(HOST_EXPORTS) \
1f53ca9a 17055 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17056 cd $(HOST_SUBDIR)/intl && \
e28c595f 17057 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17058 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17059 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17060 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17061 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17062 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17063 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17064 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17065 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17066 $(TARGET-stage3-intl)
e28c595f 17067
a90ef4bf
JM
17068maybe-clean-stage3-intl: clean-stage3-intl
17069clean-stage3: clean-stage3-intl
17070clean-stage3-intl:
e28c595f 17071 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17072 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17073 else \
a90ef4bf 17074 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17075 $(MAKE) stage3-start; \
17076 fi; \
a90ef4bf 17077 cd $(HOST_SUBDIR)/intl && \
b3676d82 17078 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17079@endif intl-bootstrap
e28c595f
JM
17080
17081
a90ef4bf
JM
17082.PHONY: all-stage4-intl maybe-all-stage4-intl
17083.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17084maybe-all-stage4-intl:
17085maybe-clean-stage4-intl:
17086@if intl-bootstrap
17087maybe-all-stage4-intl: all-stage4-intl
17088all-stage4: all-stage4-intl
17089TARGET-stage4-intl = $(TARGET-intl)
17090all-stage4-intl: configure-stage4-intl
e28c595f
JM
17091 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17092 @r=`${PWD_COMMAND}`; export r; \
17093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17094 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17095 $(HOST_EXPORTS) \
1f53ca9a 17096 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17097 cd $(HOST_SUBDIR)/intl && \
e28c595f 17098 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17099 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17100 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17101 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17102 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17103 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17104 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17105 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17106 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17107 $(TARGET-stage4-intl)
e28c595f 17108
a90ef4bf
JM
17109maybe-clean-stage4-intl: clean-stage4-intl
17110clean-stage4: clean-stage4-intl
17111clean-stage4-intl:
e28c595f 17112 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17113 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17114 else \
a90ef4bf 17115 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17116 $(MAKE) stage4-start; \
17117 fi; \
a90ef4bf 17118 cd $(HOST_SUBDIR)/intl && \
b3676d82 17119 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17120@endif intl-bootstrap
e28c595f
JM
17121
17122
a90ef4bf
JM
17123.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17124.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17125maybe-all-stageprofile-intl:
17126maybe-clean-stageprofile-intl:
17127@if intl-bootstrap
17128maybe-all-stageprofile-intl: all-stageprofile-intl
17129all-stageprofile: all-stageprofile-intl
17130TARGET-stageprofile-intl = $(TARGET-intl)
17131all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17132 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17133 @r=`${PWD_COMMAND}`; export r; \
17134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17135 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17136 $(HOST_EXPORTS) \
1f53ca9a 17137 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17138 cd $(HOST_SUBDIR)/intl && \
e28c595f 17139 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17140 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17141 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17142 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17143 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17144 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17145 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17146 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17147 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17148 $(TARGET-stageprofile-intl)
e28c595f 17149
a90ef4bf
JM
17150maybe-clean-stageprofile-intl: clean-stageprofile-intl
17151clean-stageprofile: clean-stageprofile-intl
17152clean-stageprofile-intl:
e28c595f 17153 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17154 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17155 else \
a90ef4bf 17156 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17157 $(MAKE) stageprofile-start; \
17158 fi; \
a90ef4bf 17159 cd $(HOST_SUBDIR)/intl && \
b3676d82 17160 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17161@endif intl-bootstrap
e28c595f
JM
17162
17163
a90ef4bf
JM
17164.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17165.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17166maybe-all-stagefeedback-intl:
17167maybe-clean-stagefeedback-intl:
17168@if intl-bootstrap
17169maybe-all-stagefeedback-intl: all-stagefeedback-intl
17170all-stagefeedback: all-stagefeedback-intl
17171TARGET-stagefeedback-intl = $(TARGET-intl)
17172all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17173 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17174 @r=`${PWD_COMMAND}`; export r; \
17175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17176 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17177 $(HOST_EXPORTS) \
1f53ca9a 17178 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17179 cd $(HOST_SUBDIR)/intl && \
e28c595f 17180 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17181 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17182 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17183 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17184 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17185 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17186 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17187 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17188 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17189 $(TARGET-stagefeedback-intl)
e28c595f 17190
a90ef4bf
JM
17191maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17192clean-stagefeedback: clean-stagefeedback-intl
17193clean-stagefeedback-intl:
e28c595f 17194 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17195 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17196 else \
a90ef4bf 17197 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17198 $(MAKE) stagefeedback-start; \
17199 fi; \
a90ef4bf 17200 cd $(HOST_SUBDIR)/intl && \
b3676d82 17201 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17202@endif intl-bootstrap
e28c595f
JM
17203
17204
17205
17206
17207
a90ef4bf
JM
17208.PHONY: check-intl maybe-check-intl
17209maybe-check-intl:
17210@if intl
17211maybe-check-intl: check-intl
e28c595f 17212
a90ef4bf 17213check-intl:
e28c595f
JM
17214 @: $(MAKE); $(unstage)
17215 @r=`${PWD_COMMAND}`; export r; \
17216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17217 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17218 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17219 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17220
a90ef4bf 17221@endif intl
e28c595f 17222
a90ef4bf
JM
17223.PHONY: install-intl maybe-install-intl
17224maybe-install-intl:
17225@if intl
17226maybe-install-intl: install-intl
e28c595f 17227
a90ef4bf
JM
17228install-intl: installdirs
17229 @: $(MAKE); $(unstage)
17230 @r=`${PWD_COMMAND}`; export r; \
17231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17232 $(HOST_EXPORTS) \
17233 (cd $(HOST_SUBDIR)/intl && \
17234 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17235
a90ef4bf 17236@endif intl
e28c595f 17237
a90ef4bf
JM
17238.PHONY: install-strip-intl maybe-install-strip-intl
17239maybe-install-strip-intl:
17240@if intl
17241maybe-install-strip-intl: install-strip-intl
9b980aa1 17242
a90ef4bf
JM
17243install-strip-intl: installdirs
17244 @: $(MAKE); $(unstage)
17245 @r=`${PWD_COMMAND}`; export r; \
17246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17247 $(HOST_EXPORTS) \
17248 (cd $(HOST_SUBDIR)/intl && \
17249 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17250
a90ef4bf 17251@endif intl
9b980aa1 17252
e28c595f
JM
17253# Other targets (info, dvi, pdf, etc.)
17254
a90ef4bf
JM
17255.PHONY: maybe-info-intl info-intl
17256maybe-info-intl:
17257@if intl
17258maybe-info-intl: info-intl
e28c595f 17259
a90ef4bf
JM
17260info-intl: \
17261 configure-intl
17262 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17263 r=`${PWD_COMMAND}`; export r; \
17264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17265 $(HOST_EXPORTS) \
17266 for flag in $(EXTRA_HOST_FLAGS) ; do \
17267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17268 done; \
22121df0 17269 echo "Doing info in intl"; \
a90ef4bf 17270 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17273 "RANLIB=$${RANLIB}" \
17274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17275 info) \
17276 || exit 1
17277
a90ef4bf 17278@endif intl
e28c595f 17279
a90ef4bf
JM
17280.PHONY: maybe-dvi-intl dvi-intl
17281maybe-dvi-intl:
17282@if intl
17283maybe-dvi-intl: dvi-intl
e28c595f 17284
a90ef4bf
JM
17285dvi-intl: \
17286 configure-intl
17287 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17288 r=`${PWD_COMMAND}`; export r; \
17289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17290 $(HOST_EXPORTS) \
17291 for flag in $(EXTRA_HOST_FLAGS) ; do \
17292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17293 done; \
22121df0 17294 echo "Doing dvi in intl"; \
a90ef4bf 17295 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17298 "RANLIB=$${RANLIB}" \
17299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17300 dvi) \
17301 || exit 1
17302
a90ef4bf 17303@endif intl
e28c595f 17304
a90ef4bf
JM
17305.PHONY: maybe-pdf-intl pdf-intl
17306maybe-pdf-intl:
17307@if intl
17308maybe-pdf-intl: pdf-intl
e28c595f 17309
a90ef4bf
JM
17310pdf-intl: \
17311 configure-intl
17312 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17313 r=`${PWD_COMMAND}`; export r; \
17314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17315 $(HOST_EXPORTS) \
17316 for flag in $(EXTRA_HOST_FLAGS) ; do \
17317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17318 done; \
22121df0 17319 echo "Doing pdf in intl"; \
a90ef4bf 17320 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17323 "RANLIB=$${RANLIB}" \
17324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17325 pdf) \
17326 || exit 1
17327
a90ef4bf 17328@endif intl
e28c595f 17329
a90ef4bf
JM
17330.PHONY: maybe-html-intl html-intl
17331maybe-html-intl:
17332@if intl
17333maybe-html-intl: html-intl
e28c595f 17334
a90ef4bf
JM
17335html-intl: \
17336 configure-intl
17337 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17338 r=`${PWD_COMMAND}`; export r; \
17339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17340 $(HOST_EXPORTS) \
17341 for flag in $(EXTRA_HOST_FLAGS) ; do \
17342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17343 done; \
22121df0 17344 echo "Doing html in intl"; \
a90ef4bf 17345 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17348 "RANLIB=$${RANLIB}" \
17349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17350 html) \
17351 || exit 1
17352
a90ef4bf 17353@endif intl
e28c595f 17354
a90ef4bf
JM
17355.PHONY: maybe-TAGS-intl TAGS-intl
17356maybe-TAGS-intl:
17357@if intl
17358maybe-TAGS-intl: TAGS-intl
e28c595f 17359
a90ef4bf
JM
17360TAGS-intl: \
17361 configure-intl
17362 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17363 r=`${PWD_COMMAND}`; export r; \
17364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17365 $(HOST_EXPORTS) \
17366 for flag in $(EXTRA_HOST_FLAGS) ; do \
17367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17368 done; \
22121df0 17369 echo "Doing TAGS in intl"; \
a90ef4bf 17370 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17373 "RANLIB=$${RANLIB}" \
17374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17375 TAGS) \
17376 || exit 1
17377
a90ef4bf 17378@endif intl
e28c595f 17379
a90ef4bf
JM
17380.PHONY: maybe-install-info-intl install-info-intl
17381maybe-install-info-intl:
17382@if intl
17383maybe-install-info-intl: install-info-intl
e28c595f 17384
a90ef4bf
JM
17385install-info-intl: \
17386 configure-intl \
17387 info-intl
17388 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17389 r=`${PWD_COMMAND}`; export r; \
17390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17391 $(HOST_EXPORTS) \
17392 for flag in $(EXTRA_HOST_FLAGS) ; do \
17393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17394 done; \
22121df0 17395 echo "Doing install-info in intl"; \
a90ef4bf 17396 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17399 "RANLIB=$${RANLIB}" \
17400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17401 install-info) \
17402 || exit 1
17403
a90ef4bf 17404@endif intl
e28c595f 17405
a90ef4bf
JM
17406.PHONY: maybe-install-pdf-intl install-pdf-intl
17407maybe-install-pdf-intl:
17408@if intl
17409maybe-install-pdf-intl: install-pdf-intl
e28c595f 17410
a90ef4bf
JM
17411install-pdf-intl: \
17412 configure-intl \
17413 pdf-intl
17414 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17415 r=`${PWD_COMMAND}`; export r; \
17416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17417 $(HOST_EXPORTS) \
17418 for flag in $(EXTRA_HOST_FLAGS) ; do \
17419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17420 done; \
22121df0 17421 echo "Doing install-pdf in intl"; \
a90ef4bf 17422 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17425 "RANLIB=$${RANLIB}" \
17426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17427 install-pdf) \
17428 || exit 1
17429
a90ef4bf 17430@endif intl
e28c595f 17431
a90ef4bf
JM
17432.PHONY: maybe-install-html-intl install-html-intl
17433maybe-install-html-intl:
17434@if intl
17435maybe-install-html-intl: install-html-intl
e28c595f 17436
a90ef4bf
JM
17437install-html-intl: \
17438 configure-intl \
17439 html-intl
17440 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17441 r=`${PWD_COMMAND}`; export r; \
17442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17443 $(HOST_EXPORTS) \
17444 for flag in $(EXTRA_HOST_FLAGS) ; do \
17445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17446 done; \
22121df0 17447 echo "Doing install-html in intl"; \
a90ef4bf 17448 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17451 "RANLIB=$${RANLIB}" \
17452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17453 install-html) \
17454 || exit 1
17455
a90ef4bf 17456@endif intl
e28c595f 17457
a90ef4bf
JM
17458.PHONY: maybe-installcheck-intl installcheck-intl
17459maybe-installcheck-intl:
17460@if intl
17461maybe-installcheck-intl: installcheck-intl
e28c595f 17462
a90ef4bf
JM
17463installcheck-intl: \
17464 configure-intl
17465 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17466 r=`${PWD_COMMAND}`; export r; \
17467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17468 $(HOST_EXPORTS) \
17469 for flag in $(EXTRA_HOST_FLAGS) ; do \
17470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17471 done; \
22121df0 17472 echo "Doing installcheck in intl"; \
a90ef4bf 17473 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17476 "RANLIB=$${RANLIB}" \
17477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17478 installcheck) \
17479 || exit 1
17480
a90ef4bf 17481@endif intl
e28c595f 17482
a90ef4bf
JM
17483.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17484maybe-mostlyclean-intl:
17485@if intl
17486maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17487
a90ef4bf
JM
17488mostlyclean-intl:
17489 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17490 r=`${PWD_COMMAND}`; export r; \
17491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17492 $(HOST_EXPORTS) \
17493 for flag in $(EXTRA_HOST_FLAGS) ; do \
17494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17495 done; \
22121df0 17496 echo "Doing mostlyclean in intl"; \
a90ef4bf 17497 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17500 "RANLIB=$${RANLIB}" \
17501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17502 mostlyclean) \
17503 || exit 1
17504
a90ef4bf 17505@endif intl
e28c595f 17506
a90ef4bf
JM
17507.PHONY: maybe-clean-intl clean-intl
17508maybe-clean-intl:
17509@if intl
17510maybe-clean-intl: clean-intl
e28c595f 17511
a90ef4bf
JM
17512clean-intl:
17513 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17514 r=`${PWD_COMMAND}`; export r; \
17515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17516 $(HOST_EXPORTS) \
17517 for flag in $(EXTRA_HOST_FLAGS) ; do \
17518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17519 done; \
22121df0 17520 echo "Doing clean in intl"; \
a90ef4bf 17521 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17524 "RANLIB=$${RANLIB}" \
17525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17526 clean) \
17527 || exit 1
17528
a90ef4bf 17529@endif intl
e28c595f 17530
a90ef4bf
JM
17531.PHONY: maybe-distclean-intl distclean-intl
17532maybe-distclean-intl:
17533@if intl
17534maybe-distclean-intl: distclean-intl
e28c595f 17535
a90ef4bf
JM
17536distclean-intl:
17537 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17538 r=`${PWD_COMMAND}`; export r; \
17539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17540 $(HOST_EXPORTS) \
17541 for flag in $(EXTRA_HOST_FLAGS) ; do \
17542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17543 done; \
22121df0 17544 echo "Doing distclean in intl"; \
a90ef4bf 17545 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17548 "RANLIB=$${RANLIB}" \
17549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17550 distclean) \
17551 || exit 1
17552
a90ef4bf 17553@endif intl
e28c595f 17554
a90ef4bf
JM
17555.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17556maybe-maintainer-clean-intl:
17557@if intl
17558maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17559
a90ef4bf
JM
17560maintainer-clean-intl:
17561 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17562 r=`${PWD_COMMAND}`; export r; \
17563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17564 $(HOST_EXPORTS) \
17565 for flag in $(EXTRA_HOST_FLAGS) ; do \
17566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17567 done; \
22121df0 17568 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17569 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17572 "RANLIB=$${RANLIB}" \
17573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17574 maintainer-clean) \
17575 || exit 1
17576
a90ef4bf 17577@endif intl
e28c595f
JM
17578
17579
17580
a90ef4bf
JM
17581.PHONY: configure-tcl maybe-configure-tcl
17582maybe-configure-tcl:
e8a5fa9c 17583@if gcc-bootstrap
a90ef4bf 17584configure-tcl: stage_current
e8a5fa9c 17585@endif gcc-bootstrap
a90ef4bf
JM
17586@if tcl
17587maybe-configure-tcl: configure-tcl
17588configure-tcl:
17589 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17590 @r=`${PWD_COMMAND}`; export r; \
17591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17592 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17593 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17594 $(HOST_EXPORTS) \
a90ef4bf
JM
17595 echo Configuring in $(HOST_SUBDIR)/tcl; \
17596 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17597 case $(srcdir) in \
17598 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17599 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17600 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17601 esac; \
1b6c0831
L
17602 module_srcdir=tcl; \
17603 $(SHELL) \
17604 $$s/$$module_srcdir/configure \
17605 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17606 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17607 --target=${target_alias} \
e8a5fa9c 17608 || exit 1
a90ef4bf 17609@endif tcl
e8a5fa9c
RW
17610
17611
17612
e8a5fa9c 17613
e8a5fa9c 17614
a90ef4bf
JM
17615.PHONY: all-tcl maybe-all-tcl
17616maybe-all-tcl:
17617@if gcc-bootstrap
17618all-tcl: stage_current
17619@endif gcc-bootstrap
17620@if tcl
17621TARGET-tcl=all
17622maybe-all-tcl: all-tcl
17623all-tcl: configure-tcl
17624 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17625 @r=`${PWD_COMMAND}`; export r; \
17626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17627 $(HOST_EXPORTS) \
17628 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17629 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17630 $(TARGET-tcl))
17631@endif tcl
e8a5fa9c 17632
a90ef4bf
JM
17633
17634
17635
17636.PHONY: check-tcl maybe-check-tcl
17637maybe-check-tcl:
17638@if tcl
17639maybe-check-tcl: check-tcl
17640
17641check-tcl:
17642 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17643 @r=`${PWD_COMMAND}`; export r; \
17644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17645 $(HOST_EXPORTS) \
a90ef4bf
JM
17646 (cd $(HOST_SUBDIR)/tcl && \
17647 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17648
a90ef4bf
JM
17649@endif tcl
17650
17651.PHONY: install-tcl maybe-install-tcl
17652maybe-install-tcl:
17653@if tcl
17654maybe-install-tcl: install-tcl
17655
17656install-tcl: installdirs
17657 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17658 @r=`${PWD_COMMAND}`; export r; \
17659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17660 $(HOST_EXPORTS) \
a90ef4bf
JM
17661 (cd $(HOST_SUBDIR)/tcl && \
17662 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17663
a90ef4bf
JM
17664@endif tcl
17665
17666.PHONY: install-strip-tcl maybe-install-strip-tcl
17667maybe-install-strip-tcl:
17668@if tcl
17669maybe-install-strip-tcl: install-strip-tcl
17670
17671install-strip-tcl: installdirs
17672 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17673 @r=`${PWD_COMMAND}`; export r; \
17674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17675 $(HOST_EXPORTS) \
a90ef4bf
JM
17676 (cd $(HOST_SUBDIR)/tcl && \
17677 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17678
a90ef4bf 17679@endif tcl
e8a5fa9c 17680
a90ef4bf 17681# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17682
a90ef4bf
JM
17683.PHONY: maybe-info-tcl info-tcl
17684maybe-info-tcl:
17685@if tcl
17686maybe-info-tcl: info-tcl
e8a5fa9c 17687
a90ef4bf
JM
17688info-tcl: \
17689 configure-tcl
17690 @: $(MAKE); $(unstage)
17691 @[ -f ./tcl/Makefile ] || exit 0; \
17692 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17694 $(HOST_EXPORTS) \
17695 for flag in $(EXTRA_HOST_FLAGS) ; do \
17696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17697 done; \
22121df0 17698 echo "Doing info in tcl"; \
a90ef4bf
JM
17699 (cd $(HOST_SUBDIR)/tcl && \
17700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17702 "RANLIB=$${RANLIB}" \
17703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17704 info) \
17705 || exit 1
e8a5fa9c 17706
a90ef4bf 17707@endif tcl
e8a5fa9c 17708
a90ef4bf
JM
17709.PHONY: maybe-dvi-tcl dvi-tcl
17710maybe-dvi-tcl:
17711@if tcl
17712maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17713
a90ef4bf
JM
17714dvi-tcl: \
17715 configure-tcl
17716 @: $(MAKE); $(unstage)
17717 @[ -f ./tcl/Makefile ] || exit 0; \
17718 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17720 $(HOST_EXPORTS) \
17721 for flag in $(EXTRA_HOST_FLAGS) ; do \
17722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17723 done; \
22121df0 17724 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17725 (cd $(HOST_SUBDIR)/tcl && \
17726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17728 "RANLIB=$${RANLIB}" \
17729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17730 dvi) \
17731 || exit 1
e8a5fa9c 17732
a90ef4bf 17733@endif tcl
e8a5fa9c 17734
a90ef4bf
JM
17735.PHONY: maybe-pdf-tcl pdf-tcl
17736maybe-pdf-tcl:
17737@if tcl
17738maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17739
a90ef4bf
JM
17740pdf-tcl: \
17741 configure-tcl
17742 @: $(MAKE); $(unstage)
17743 @[ -f ./tcl/Makefile ] || exit 0; \
17744 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17746 $(HOST_EXPORTS) \
a90ef4bf
JM
17747 for flag in $(EXTRA_HOST_FLAGS) ; do \
17748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17749 done; \
22121df0 17750 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17751 (cd $(HOST_SUBDIR)/tcl && \
17752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17754 "RANLIB=$${RANLIB}" \
17755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17756 pdf) \
17757 || exit 1
e8a5fa9c 17758
a90ef4bf 17759@endif tcl
e8a5fa9c 17760
a90ef4bf
JM
17761.PHONY: maybe-html-tcl html-tcl
17762maybe-html-tcl:
17763@if tcl
17764maybe-html-tcl: html-tcl
e8a5fa9c 17765
a90ef4bf
JM
17766html-tcl: \
17767 configure-tcl
17768 @: $(MAKE); $(unstage)
17769 @[ -f ./tcl/Makefile ] || exit 0; \
17770 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17772 $(HOST_EXPORTS) \
a90ef4bf
JM
17773 for flag in $(EXTRA_HOST_FLAGS) ; do \
17774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17775 done; \
22121df0 17776 echo "Doing html in tcl"; \
a90ef4bf
JM
17777 (cd $(HOST_SUBDIR)/tcl && \
17778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17780 "RANLIB=$${RANLIB}" \
17781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17782 html) \
17783 || exit 1
e8a5fa9c 17784
a90ef4bf 17785@endif tcl
e8a5fa9c 17786
a90ef4bf
JM
17787.PHONY: maybe-TAGS-tcl TAGS-tcl
17788maybe-TAGS-tcl:
17789@if tcl
17790maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17791
a90ef4bf
JM
17792TAGS-tcl: \
17793 configure-tcl
17794 @: $(MAKE); $(unstage)
17795 @[ -f ./tcl/Makefile ] || exit 0; \
17796 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17798 $(HOST_EXPORTS) \
a90ef4bf
JM
17799 for flag in $(EXTRA_HOST_FLAGS) ; do \
17800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17801 done; \
22121df0 17802 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17803 (cd $(HOST_SUBDIR)/tcl && \
17804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17806 "RANLIB=$${RANLIB}" \
17807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17808 TAGS) \
17809 || exit 1
e8a5fa9c 17810
a90ef4bf 17811@endif tcl
e8a5fa9c 17812
a90ef4bf
JM
17813.PHONY: maybe-install-info-tcl install-info-tcl
17814maybe-install-info-tcl:
17815@if tcl
17816maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17817
a90ef4bf
JM
17818install-info-tcl: \
17819 configure-tcl \
17820 info-tcl
e8a5fa9c 17821 @: $(MAKE); $(unstage)
a90ef4bf 17822 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17823 r=`${PWD_COMMAND}`; export r; \
17824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17825 $(HOST_EXPORTS) \
17826 for flag in $(EXTRA_HOST_FLAGS) ; do \
17827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17828 done; \
22121df0 17829 echo "Doing install-info in tcl"; \
a90ef4bf 17830 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17833 "RANLIB=$${RANLIB}" \
17834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17835 install-info) \
e8a5fa9c
RW
17836 || exit 1
17837
a90ef4bf 17838@endif tcl
e8a5fa9c 17839
a90ef4bf
JM
17840.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17841maybe-install-pdf-tcl:
17842@if tcl
17843maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17844
a90ef4bf
JM
17845install-pdf-tcl: \
17846 configure-tcl \
17847 pdf-tcl
17848 @: $(MAKE); $(unstage)
17849 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17850 r=`${PWD_COMMAND}`; export r; \
17851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17852 $(HOST_EXPORTS) \
17853 for flag in $(EXTRA_HOST_FLAGS) ; do \
17854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17855 done; \
22121df0 17856 echo "Doing install-pdf in tcl"; \
a90ef4bf 17857 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17860 "RANLIB=$${RANLIB}" \
17861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17862 install-pdf) \
e8a5fa9c
RW
17863 || exit 1
17864
a90ef4bf 17865@endif tcl
e8a5fa9c 17866
a90ef4bf
JM
17867.PHONY: maybe-install-html-tcl install-html-tcl
17868maybe-install-html-tcl:
17869@if tcl
17870maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17871
a90ef4bf
JM
17872install-html-tcl: \
17873 configure-tcl \
17874 html-tcl
17875 @: $(MAKE); $(unstage)
17876 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17877 r=`${PWD_COMMAND}`; export r; \
17878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17879 $(HOST_EXPORTS) \
17880 for flag in $(EXTRA_HOST_FLAGS) ; do \
17881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17882 done; \
22121df0 17883 echo "Doing install-html in tcl"; \
a90ef4bf 17884 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17887 "RANLIB=$${RANLIB}" \
17888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17889 install-html) \
e8a5fa9c
RW
17890 || exit 1
17891
a90ef4bf 17892@endif tcl
e8a5fa9c 17893
a90ef4bf
JM
17894.PHONY: maybe-installcheck-tcl installcheck-tcl
17895maybe-installcheck-tcl:
17896@if tcl
17897maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17898
a90ef4bf
JM
17899installcheck-tcl: \
17900 configure-tcl
17901 @: $(MAKE); $(unstage)
17902 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17903 r=`${PWD_COMMAND}`; export r; \
17904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17905 $(HOST_EXPORTS) \
17906 for flag in $(EXTRA_HOST_FLAGS) ; do \
17907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17908 done; \
22121df0 17909 echo "Doing installcheck in tcl"; \
a90ef4bf 17910 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17913 "RANLIB=$${RANLIB}" \
17914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17915 installcheck) \
e8a5fa9c
RW
17916 || exit 1
17917
a90ef4bf 17918@endif tcl
e8a5fa9c 17919
a90ef4bf
JM
17920.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
17921maybe-mostlyclean-tcl:
17922@if tcl
17923maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 17924
a90ef4bf
JM
17925# tcl doesn't support mostlyclean.
17926mostlyclean-tcl:
17927
17928@endif tcl
17929
17930.PHONY: maybe-clean-tcl clean-tcl
17931maybe-clean-tcl:
17932@if tcl
17933maybe-clean-tcl: clean-tcl
17934
17935clean-tcl:
17936 @: $(MAKE); $(unstage)
17937 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17938 r=`${PWD_COMMAND}`; export r; \
17939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17940 $(HOST_EXPORTS) \
17941 for flag in $(EXTRA_HOST_FLAGS) ; do \
17942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17943 done; \
22121df0 17944 echo "Doing clean in tcl"; \
a90ef4bf 17945 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17948 "RANLIB=$${RANLIB}" \
17949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17950 clean) \
e8a5fa9c
RW
17951 || exit 1
17952
a90ef4bf 17953@endif tcl
e8a5fa9c 17954
a90ef4bf
JM
17955.PHONY: maybe-distclean-tcl distclean-tcl
17956maybe-distclean-tcl:
17957@if tcl
17958maybe-distclean-tcl: distclean-tcl
e8a5fa9c 17959
a90ef4bf
JM
17960distclean-tcl:
17961 @: $(MAKE); $(unstage)
17962 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17963 r=`${PWD_COMMAND}`; export r; \
17964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17965 $(HOST_EXPORTS) \
17966 for flag in $(EXTRA_HOST_FLAGS) ; do \
17967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17968 done; \
22121df0 17969 echo "Doing distclean in tcl"; \
a90ef4bf 17970 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17973 "RANLIB=$${RANLIB}" \
17974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17975 distclean) \
e8a5fa9c
RW
17976 || exit 1
17977
a90ef4bf 17978@endif tcl
e8a5fa9c 17979
a90ef4bf
JM
17980.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
17981maybe-maintainer-clean-tcl:
17982@if tcl
17983maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 17984
a90ef4bf
JM
17985maintainer-clean-tcl:
17986 @: $(MAKE); $(unstage)
17987 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17988 r=`${PWD_COMMAND}`; export r; \
17989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17990 $(HOST_EXPORTS) \
17991 for flag in $(EXTRA_HOST_FLAGS) ; do \
17992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17993 done; \
22121df0 17994 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 17995 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17998 "RANLIB=$${RANLIB}" \
17999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18000 maintainer-clean) \
e8a5fa9c
RW
18001 || exit 1
18002
a90ef4bf 18003@endif tcl
e8a5fa9c 18004
e8a5fa9c 18005
a90ef4bf
JM
18006
18007.PHONY: configure-itcl maybe-configure-itcl
18008maybe-configure-itcl:
18009@if gcc-bootstrap
18010configure-itcl: stage_current
18011@endif gcc-bootstrap
18012@if itcl
18013maybe-configure-itcl: configure-itcl
18014configure-itcl:
18015 @: $(MAKE); $(unstage)
18016 @r=`${PWD_COMMAND}`; export r; \
18017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18018 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18019 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18020 $(HOST_EXPORTS) \
18021 echo Configuring in $(HOST_SUBDIR)/itcl; \
18022 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18023 case $(srcdir) in \
18024 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18025 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18026 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18027 esac; \
1b6c0831
L
18028 module_srcdir=itcl; \
18029 $(SHELL) \
18030 $$s/$$module_srcdir/configure \
18031 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18032 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18033 --target=${target_alias} \
a90ef4bf
JM
18034 || exit 1
18035@endif itcl
18036
18037
18038
18039
18040
18041.PHONY: all-itcl maybe-all-itcl
18042maybe-all-itcl:
18043@if gcc-bootstrap
18044all-itcl: stage_current
18045@endif gcc-bootstrap
18046@if itcl
18047TARGET-itcl=all
18048maybe-all-itcl: all-itcl
18049all-itcl: configure-itcl
18050 @: $(MAKE); $(unstage)
18051 @r=`${PWD_COMMAND}`; export r; \
18052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18053 $(HOST_EXPORTS) \
18054 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18055 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18056 $(TARGET-itcl))
18057@endif itcl
18058
18059
18060
18061
18062.PHONY: check-itcl maybe-check-itcl
18063maybe-check-itcl:
18064@if itcl
18065maybe-check-itcl: check-itcl
18066
18067check-itcl:
18068 @: $(MAKE); $(unstage)
18069 @r=`${PWD_COMMAND}`; export r; \
18070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18071 $(HOST_EXPORTS) \
a90ef4bf
JM
18072 (cd $(HOST_SUBDIR)/itcl && \
18073 $(MAKE) $(FLAGS_TO_PASS) check)
18074
18075@endif itcl
18076
18077.PHONY: install-itcl maybe-install-itcl
18078maybe-install-itcl:
18079@if itcl
18080maybe-install-itcl: install-itcl
18081
18082install-itcl: installdirs
18083 @: $(MAKE); $(unstage)
18084 @r=`${PWD_COMMAND}`; export r; \
18085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18086 $(HOST_EXPORTS) \
18087 (cd $(HOST_SUBDIR)/itcl && \
18088 $(MAKE) $(FLAGS_TO_PASS) install)
18089
18090@endif itcl
18091
18092.PHONY: install-strip-itcl maybe-install-strip-itcl
18093maybe-install-strip-itcl:
18094@if itcl
18095maybe-install-strip-itcl: install-strip-itcl
18096
18097install-strip-itcl: installdirs
18098 @: $(MAKE); $(unstage)
18099 @r=`${PWD_COMMAND}`; export r; \
18100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18101 $(HOST_EXPORTS) \
18102 (cd $(HOST_SUBDIR)/itcl && \
18103 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18104
18105@endif itcl
18106
18107# Other targets (info, dvi, pdf, etc.)
18108
18109.PHONY: maybe-info-itcl info-itcl
18110maybe-info-itcl:
18111@if itcl
18112maybe-info-itcl: info-itcl
18113
18114info-itcl: \
18115 configure-itcl
18116 @: $(MAKE); $(unstage)
18117 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18118 r=`${PWD_COMMAND}`; export r; \
18119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18120 $(HOST_EXPORTS) \
18121 for flag in $(EXTRA_HOST_FLAGS) ; do \
18122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18123 done; \
22121df0 18124 echo "Doing info in itcl"; \
a90ef4bf 18125 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18128 "RANLIB=$${RANLIB}" \
18129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18130 info) \
e8a5fa9c
RW
18131 || exit 1
18132
a90ef4bf 18133@endif itcl
e8a5fa9c 18134
a90ef4bf
JM
18135.PHONY: maybe-dvi-itcl dvi-itcl
18136maybe-dvi-itcl:
18137@if itcl
18138maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18139
a90ef4bf
JM
18140dvi-itcl: \
18141 configure-itcl
18142 @: $(MAKE); $(unstage)
18143 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18144 r=`${PWD_COMMAND}`; export r; \
18145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18146 $(HOST_EXPORTS) \
18147 for flag in $(EXTRA_HOST_FLAGS) ; do \
18148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18149 done; \
22121df0 18150 echo "Doing dvi in itcl"; \
a90ef4bf 18151 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18154 "RANLIB=$${RANLIB}" \
18155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18156 dvi) \
e8a5fa9c
RW
18157 || exit 1
18158
a90ef4bf 18159@endif itcl
e8a5fa9c 18160
a90ef4bf
JM
18161.PHONY: maybe-pdf-itcl pdf-itcl
18162maybe-pdf-itcl:
18163@if itcl
18164maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18165
a90ef4bf
JM
18166pdf-itcl: \
18167 configure-itcl
18168 @: $(MAKE); $(unstage)
18169 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18170 r=`${PWD_COMMAND}`; export r; \
18171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18172 $(HOST_EXPORTS) \
18173 for flag in $(EXTRA_HOST_FLAGS) ; do \
18174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18175 done; \
22121df0 18176 echo "Doing pdf in itcl"; \
a90ef4bf 18177 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18180 "RANLIB=$${RANLIB}" \
18181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18182 pdf) \
e8a5fa9c
RW
18183 || exit 1
18184
a90ef4bf 18185@endif itcl
e8a5fa9c 18186
a90ef4bf
JM
18187.PHONY: maybe-html-itcl html-itcl
18188maybe-html-itcl:
18189@if itcl
18190maybe-html-itcl: html-itcl
e8a5fa9c 18191
a90ef4bf
JM
18192html-itcl: \
18193 configure-itcl
18194 @: $(MAKE); $(unstage)
18195 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18196 r=`${PWD_COMMAND}`; export r; \
18197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18198 $(HOST_EXPORTS) \
18199 for flag in $(EXTRA_HOST_FLAGS) ; do \
18200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18201 done; \
22121df0 18202 echo "Doing html in itcl"; \
a90ef4bf 18203 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18206 "RANLIB=$${RANLIB}" \
18207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18208 html) \
e8a5fa9c
RW
18209 || exit 1
18210
a90ef4bf 18211@endif itcl
e8a5fa9c 18212
a90ef4bf
JM
18213.PHONY: maybe-TAGS-itcl TAGS-itcl
18214maybe-TAGS-itcl:
18215@if itcl
18216maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18217
a90ef4bf
JM
18218TAGS-itcl: \
18219 configure-itcl
18220 @: $(MAKE); $(unstage)
18221 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18222 r=`${PWD_COMMAND}`; export r; \
18223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18224 $(HOST_EXPORTS) \
18225 for flag in $(EXTRA_HOST_FLAGS) ; do \
18226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18227 done; \
22121df0 18228 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18229 (cd $(HOST_SUBDIR)/itcl && \
18230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18232 "RANLIB=$${RANLIB}" \
18233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18234 TAGS) \
18235 || exit 1
18236
18237@endif itcl
18238
18239.PHONY: maybe-install-info-itcl install-info-itcl
18240maybe-install-info-itcl:
18241@if itcl
18242maybe-install-info-itcl: install-info-itcl
18243
18244install-info-itcl: \
18245 configure-itcl \
18246 info-itcl
18247 @: $(MAKE); $(unstage)
18248 @[ -f ./itcl/Makefile ] || exit 0; \
18249 r=`${PWD_COMMAND}`; export r; \
18250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18251 $(HOST_EXPORTS) \
18252 for flag in $(EXTRA_HOST_FLAGS) ; do \
18253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18254 done; \
22121df0 18255 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18256 (cd $(HOST_SUBDIR)/itcl && \
18257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18259 "RANLIB=$${RANLIB}" \
18260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18261 install-info) \
18262 || exit 1
18263
18264@endif itcl
18265
18266.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18267maybe-install-pdf-itcl:
18268@if itcl
18269maybe-install-pdf-itcl: install-pdf-itcl
18270
18271install-pdf-itcl: \
18272 configure-itcl \
18273 pdf-itcl
18274 @: $(MAKE); $(unstage)
18275 @[ -f ./itcl/Makefile ] || exit 0; \
18276 r=`${PWD_COMMAND}`; export r; \
18277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18278 $(HOST_EXPORTS) \
18279 for flag in $(EXTRA_HOST_FLAGS) ; do \
18280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18281 done; \
22121df0 18282 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18283 (cd $(HOST_SUBDIR)/itcl && \
18284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18286 "RANLIB=$${RANLIB}" \
18287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18288 install-pdf) \
18289 || exit 1
18290
18291@endif itcl
18292
18293.PHONY: maybe-install-html-itcl install-html-itcl
18294maybe-install-html-itcl:
18295@if itcl
18296maybe-install-html-itcl: install-html-itcl
18297
18298install-html-itcl: \
18299 configure-itcl \
18300 html-itcl
18301 @: $(MAKE); $(unstage)
18302 @[ -f ./itcl/Makefile ] || exit 0; \
18303 r=`${PWD_COMMAND}`; export r; \
18304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18305 $(HOST_EXPORTS) \
18306 for flag in $(EXTRA_HOST_FLAGS) ; do \
18307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18308 done; \
22121df0 18309 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18310 (cd $(HOST_SUBDIR)/itcl && \
18311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18313 "RANLIB=$${RANLIB}" \
18314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18315 install-html) \
18316 || exit 1
18317
18318@endif itcl
18319
18320.PHONY: maybe-installcheck-itcl installcheck-itcl
18321maybe-installcheck-itcl:
18322@if itcl
18323maybe-installcheck-itcl: installcheck-itcl
18324
18325installcheck-itcl: \
18326 configure-itcl
18327 @: $(MAKE); $(unstage)
18328 @[ -f ./itcl/Makefile ] || exit 0; \
18329 r=`${PWD_COMMAND}`; export r; \
18330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18331 $(HOST_EXPORTS) \
18332 for flag in $(EXTRA_HOST_FLAGS) ; do \
18333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18334 done; \
22121df0 18335 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18336 (cd $(HOST_SUBDIR)/itcl && \
18337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18339 "RANLIB=$${RANLIB}" \
18340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18341 installcheck) \
18342 || exit 1
18343
18344@endif itcl
18345
18346.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18347maybe-mostlyclean-itcl:
18348@if itcl
18349maybe-mostlyclean-itcl: mostlyclean-itcl
18350
18351mostlyclean-itcl:
18352 @: $(MAKE); $(unstage)
18353 @[ -f ./itcl/Makefile ] || exit 0; \
18354 r=`${PWD_COMMAND}`; export r; \
18355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18356 $(HOST_EXPORTS) \
18357 for flag in $(EXTRA_HOST_FLAGS) ; do \
18358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18359 done; \
22121df0 18360 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18361 (cd $(HOST_SUBDIR)/itcl && \
18362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18364 "RANLIB=$${RANLIB}" \
18365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18366 mostlyclean) \
18367 || exit 1
18368
18369@endif itcl
18370
18371.PHONY: maybe-clean-itcl clean-itcl
18372maybe-clean-itcl:
18373@if itcl
18374maybe-clean-itcl: clean-itcl
18375
18376clean-itcl:
18377 @: $(MAKE); $(unstage)
18378 @[ -f ./itcl/Makefile ] || exit 0; \
18379 r=`${PWD_COMMAND}`; export r; \
18380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18381 $(HOST_EXPORTS) \
18382 for flag in $(EXTRA_HOST_FLAGS) ; do \
18383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18384 done; \
22121df0 18385 echo "Doing clean in itcl"; \
a90ef4bf
JM
18386 (cd $(HOST_SUBDIR)/itcl && \
18387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18389 "RANLIB=$${RANLIB}" \
18390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18391 clean) \
18392 || exit 1
18393
18394@endif itcl
18395
18396.PHONY: maybe-distclean-itcl distclean-itcl
18397maybe-distclean-itcl:
18398@if itcl
18399maybe-distclean-itcl: distclean-itcl
18400
18401distclean-itcl:
18402 @: $(MAKE); $(unstage)
18403 @[ -f ./itcl/Makefile ] || exit 0; \
18404 r=`${PWD_COMMAND}`; export r; \
18405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18406 $(HOST_EXPORTS) \
18407 for flag in $(EXTRA_HOST_FLAGS) ; do \
18408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18409 done; \
22121df0 18410 echo "Doing distclean in itcl"; \
a90ef4bf 18411 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18414 "RANLIB=$${RANLIB}" \
18415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18416 distclean) \
18417 || exit 1
18418
a90ef4bf 18419@endif itcl
e8a5fa9c 18420
a90ef4bf
JM
18421.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18422maybe-maintainer-clean-itcl:
18423@if itcl
18424maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18425
a90ef4bf
JM
18426maintainer-clean-itcl:
18427 @: $(MAKE); $(unstage)
18428 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18429 r=`${PWD_COMMAND}`; export r; \
18430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18431 $(HOST_EXPORTS) \
18432 for flag in $(EXTRA_HOST_FLAGS) ; do \
18433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18434 done; \
22121df0 18435 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18436 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18439 "RANLIB=$${RANLIB}" \
18440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18441 maintainer-clean) \
18442 || exit 1
18443
a90ef4bf 18444@endif itcl
e8a5fa9c
RW
18445
18446
18447
a90ef4bf
JM
18448.PHONY: configure-ld maybe-configure-ld
18449maybe-configure-ld:
e28c595f 18450@if gcc-bootstrap
a90ef4bf 18451configure-ld: stage_current
e28c595f 18452@endif gcc-bootstrap
a90ef4bf
JM
18453@if ld
18454maybe-configure-ld: configure-ld
18455configure-ld:
e28c595f
JM
18456 @r=`${PWD_COMMAND}`; export r; \
18457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18458 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18459 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18460 $(HOST_EXPORTS) \
a90ef4bf
JM
18461 echo Configuring in $(HOST_SUBDIR)/ld; \
18462 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18463 case $(srcdir) in \
18464 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18465 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18466 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18467 esac; \
1b6c0831
L
18468 module_srcdir=ld; \
18469 $(SHELL) \
18470 $$s/$$module_srcdir/configure \
18471 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18472 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18473 --target=${target_alias} \
e28c595f 18474 || exit 1
a90ef4bf 18475@endif ld
e28c595f
JM
18476
18477
18478
a90ef4bf
JM
18479.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18480maybe-configure-stage1-ld:
18481@if ld-bootstrap
18482maybe-configure-stage1-ld: configure-stage1-ld
18483configure-stage1-ld:
e28c595f 18484 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18485 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18486 @r=`${PWD_COMMAND}`; export r; \
18487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18488 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18489 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18490 $(HOST_EXPORTS) \
e28c595f 18491 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18492 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18493 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18494 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18495 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18496 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18497 case $(srcdir) in \
18498 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18499 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18500 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18501 esac; \
1b6c0831
L
18502 module_srcdir=ld; \
18503 $(SHELL) $$s/$$module_srcdir/configure \
18504 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18505 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18506 --target=${target_alias} \
18507 \
a90ef4bf
JM
18508 $(STAGE1_CONFIGURE_FLAGS)
18509@endif ld-bootstrap
e28c595f 18510
a90ef4bf
JM
18511.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18512maybe-configure-stage2-ld:
18513@if ld-bootstrap
18514maybe-configure-stage2-ld: configure-stage2-ld
18515configure-stage2-ld:
e28c595f 18516 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18517 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18518 @r=`${PWD_COMMAND}`; export r; \
18519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18520 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18521 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18522 $(HOST_EXPORTS) \
1b05fbbd 18523 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18524 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18525 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18526 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18527 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18528 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18529 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18530 case $(srcdir) in \
18531 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18532 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18533 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18534 esac; \
1b6c0831
L
18535 module_srcdir=ld; \
18536 $(SHELL) $$s/$$module_srcdir/configure \
18537 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18538 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18539 --target=${target_alias} \
22121df0 18540 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18541 $(STAGE2_CONFIGURE_FLAGS)
18542@endif ld-bootstrap
e28c595f 18543
a90ef4bf
JM
18544.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18545maybe-configure-stage3-ld:
18546@if ld-bootstrap
18547maybe-configure-stage3-ld: configure-stage3-ld
18548configure-stage3-ld:
e28c595f 18549 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18550 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18551 @r=`${PWD_COMMAND}`; export r; \
18552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18553 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18554 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18555 $(HOST_EXPORTS) \
1b05fbbd 18556 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18557 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18558 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18559 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18560 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18561 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18562 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18563 case $(srcdir) in \
18564 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18565 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18566 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18567 esac; \
1b6c0831
L
18568 module_srcdir=ld; \
18569 $(SHELL) $$s/$$module_srcdir/configure \
18570 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18571 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18572 --target=${target_alias} \
22121df0 18573 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18574 $(STAGE3_CONFIGURE_FLAGS)
18575@endif ld-bootstrap
e28c595f 18576
a90ef4bf
JM
18577.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18578maybe-configure-stage4-ld:
18579@if ld-bootstrap
18580maybe-configure-stage4-ld: configure-stage4-ld
18581configure-stage4-ld:
e28c595f 18582 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18583 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18584 @r=`${PWD_COMMAND}`; export r; \
18585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18586 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18587 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18588 $(HOST_EXPORTS) \
1b05fbbd 18589 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18590 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18591 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18592 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18593 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18594 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18595 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18596 case $(srcdir) in \
18597 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18598 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18599 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18600 esac; \
1b6c0831
L
18601 module_srcdir=ld; \
18602 $(SHELL) $$s/$$module_srcdir/configure \
18603 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18604 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18605 --target=${target_alias} \
22121df0 18606 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18607 $(STAGE4_CONFIGURE_FLAGS)
18608@endif ld-bootstrap
e28c595f 18609
a90ef4bf
JM
18610.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18611maybe-configure-stageprofile-ld:
18612@if ld-bootstrap
18613maybe-configure-stageprofile-ld: configure-stageprofile-ld
18614configure-stageprofile-ld:
e28c595f 18615 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18616 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18617 @r=`${PWD_COMMAND}`; export r; \
18618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18619 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18620 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18621 $(HOST_EXPORTS) \
1b05fbbd
AO
18622 $(POSTSTAGE1_HOST_EXPORTS) \
18623 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18624 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18625 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18626 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18627 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18628 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18629 case $(srcdir) in \
18630 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18631 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18632 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18633 esac; \
1b6c0831
L
18634 module_srcdir=ld; \
18635 $(SHELL) $$s/$$module_srcdir/configure \
18636 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18637 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18638 --target=${target_alias} \
22121df0 18639 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18640 $(STAGEprofile_CONFIGURE_FLAGS)
18641@endif ld-bootstrap
e28c595f 18642
a90ef4bf
JM
18643.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18644maybe-configure-stagefeedback-ld:
18645@if ld-bootstrap
18646maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18647configure-stagefeedback-ld:
e28c595f 18648 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18649 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18650 @r=`${PWD_COMMAND}`; export r; \
18651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18652 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18653 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18654 $(HOST_EXPORTS) \
1b05fbbd
AO
18655 $(POSTSTAGE1_HOST_EXPORTS) \
18656 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18657 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18658 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18659 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18660 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18661 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18662 case $(srcdir) in \
18663 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18664 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18665 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18666 esac; \
1b6c0831
L
18667 module_srcdir=ld; \
18668 $(SHELL) $$s/$$module_srcdir/configure \
18669 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18670 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18671 --target=${target_alias} \
22121df0 18672 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18673 $(STAGEfeedback_CONFIGURE_FLAGS)
18674@endif ld-bootstrap
e28c595f
JM
18675
18676
18677
18678
18679
a90ef4bf
JM
18680.PHONY: all-ld maybe-all-ld
18681maybe-all-ld:
e28c595f 18682@if gcc-bootstrap
a90ef4bf 18683all-ld: stage_current
e28c595f 18684@endif gcc-bootstrap
a90ef4bf
JM
18685@if ld
18686TARGET-ld=all
18687maybe-all-ld: all-ld
18688all-ld: configure-ld
e28c595f
JM
18689 @r=`${PWD_COMMAND}`; export r; \
18690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18691 $(HOST_EXPORTS) \
a90ef4bf 18692 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18693 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18694 $(TARGET-ld))
18695@endif ld
e28c595f
JM
18696
18697
18698
a90ef4bf
JM
18699.PHONY: all-stage1-ld maybe-all-stage1-ld
18700.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18701maybe-all-stage1-ld:
18702maybe-clean-stage1-ld:
18703@if ld-bootstrap
18704maybe-all-stage1-ld: all-stage1-ld
18705all-stage1: all-stage1-ld
18706TARGET-stage1-ld = $(TARGET-ld)
18707all-stage1-ld: configure-stage1-ld
e28c595f
JM
18708 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18709 @r=`${PWD_COMMAND}`; export r; \
18710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18711 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18712 $(HOST_EXPORTS) \
a90ef4bf 18713 cd $(HOST_SUBDIR)/ld && \
e28c595f 18714 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18715 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18716 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18717 LIBCFLAGS="$(LIBCFLAGS)" \
18718 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18719 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18720 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18721 $(EXTRA_HOST_FLAGS) \
18722 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 18723 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18724 $(TARGET-stage1-ld)
e28c595f 18725
a90ef4bf
JM
18726maybe-clean-stage1-ld: clean-stage1-ld
18727clean-stage1: clean-stage1-ld
18728clean-stage1-ld:
e28c595f 18729 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18730 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18731 else \
a90ef4bf 18732 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18733 $(MAKE) stage1-start; \
18734 fi; \
a90ef4bf 18735 cd $(HOST_SUBDIR)/ld && \
e28c595f 18736 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18737 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18738@endif ld-bootstrap
e28c595f
JM
18739
18740
a90ef4bf
JM
18741.PHONY: all-stage2-ld maybe-all-stage2-ld
18742.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18743maybe-all-stage2-ld:
18744maybe-clean-stage2-ld:
18745@if ld-bootstrap
18746maybe-all-stage2-ld: all-stage2-ld
18747all-stage2: all-stage2-ld
18748TARGET-stage2-ld = $(TARGET-ld)
18749all-stage2-ld: configure-stage2-ld
e28c595f
JM
18750 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18751 @r=`${PWD_COMMAND}`; export r; \
18752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18753 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18754 $(HOST_EXPORTS) \
1f53ca9a 18755 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18756 cd $(HOST_SUBDIR)/ld && \
e28c595f 18757 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18758 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18759 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18760 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18761 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18762 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18763 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18764 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18765 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18766 $(TARGET-stage2-ld)
e28c595f 18767
a90ef4bf
JM
18768maybe-clean-stage2-ld: clean-stage2-ld
18769clean-stage2: clean-stage2-ld
18770clean-stage2-ld:
e28c595f 18771 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18772 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18773 else \
a90ef4bf 18774 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18775 $(MAKE) stage2-start; \
18776 fi; \
a90ef4bf 18777 cd $(HOST_SUBDIR)/ld && \
b3676d82 18778 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18779@endif ld-bootstrap
e28c595f
JM
18780
18781
a90ef4bf
JM
18782.PHONY: all-stage3-ld maybe-all-stage3-ld
18783.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18784maybe-all-stage3-ld:
18785maybe-clean-stage3-ld:
18786@if ld-bootstrap
18787maybe-all-stage3-ld: all-stage3-ld
18788all-stage3: all-stage3-ld
18789TARGET-stage3-ld = $(TARGET-ld)
18790all-stage3-ld: configure-stage3-ld
e28c595f
JM
18791 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18792 @r=`${PWD_COMMAND}`; export r; \
18793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18794 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18795 $(HOST_EXPORTS) \
1f53ca9a 18796 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18797 cd $(HOST_SUBDIR)/ld && \
e28c595f 18798 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18799 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18800 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18801 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18802 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18803 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18804 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18805 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18806 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18807 $(TARGET-stage3-ld)
e28c595f 18808
a90ef4bf
JM
18809maybe-clean-stage3-ld: clean-stage3-ld
18810clean-stage3: clean-stage3-ld
18811clean-stage3-ld:
e28c595f 18812 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18813 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18814 else \
a90ef4bf 18815 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18816 $(MAKE) stage3-start; \
18817 fi; \
a90ef4bf 18818 cd $(HOST_SUBDIR)/ld && \
b3676d82 18819 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18820@endif ld-bootstrap
e28c595f
JM
18821
18822
a90ef4bf
JM
18823.PHONY: all-stage4-ld maybe-all-stage4-ld
18824.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18825maybe-all-stage4-ld:
18826maybe-clean-stage4-ld:
18827@if ld-bootstrap
18828maybe-all-stage4-ld: all-stage4-ld
18829all-stage4: all-stage4-ld
18830TARGET-stage4-ld = $(TARGET-ld)
18831all-stage4-ld: configure-stage4-ld
e28c595f
JM
18832 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18833 @r=`${PWD_COMMAND}`; export r; \
18834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18835 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18836 $(HOST_EXPORTS) \
1f53ca9a 18837 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18838 cd $(HOST_SUBDIR)/ld && \
e28c595f 18839 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18840 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18841 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18842 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18843 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18844 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18845 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18846 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18847 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18848 $(TARGET-stage4-ld)
e28c595f 18849
a90ef4bf
JM
18850maybe-clean-stage4-ld: clean-stage4-ld
18851clean-stage4: clean-stage4-ld
18852clean-stage4-ld:
e28c595f 18853 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18854 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18855 else \
a90ef4bf 18856 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18857 $(MAKE) stage4-start; \
18858 fi; \
a90ef4bf 18859 cd $(HOST_SUBDIR)/ld && \
b3676d82 18860 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18861@endif ld-bootstrap
e28c595f
JM
18862
18863
a90ef4bf
JM
18864.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18865.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18866maybe-all-stageprofile-ld:
18867maybe-clean-stageprofile-ld:
18868@if ld-bootstrap
18869maybe-all-stageprofile-ld: all-stageprofile-ld
18870all-stageprofile: all-stageprofile-ld
18871TARGET-stageprofile-ld = $(TARGET-ld)
18872all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18873 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18874 @r=`${PWD_COMMAND}`; export r; \
18875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18876 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18877 $(HOST_EXPORTS) \
1f53ca9a 18878 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18879 cd $(HOST_SUBDIR)/ld && \
e28c595f 18880 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18881 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18882 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18883 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18884 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18885 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18886 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18887 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18888 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18889 $(TARGET-stageprofile-ld)
e28c595f 18890
a90ef4bf
JM
18891maybe-clean-stageprofile-ld: clean-stageprofile-ld
18892clean-stageprofile: clean-stageprofile-ld
18893clean-stageprofile-ld:
e28c595f 18894 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18895 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18896 else \
a90ef4bf 18897 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18898 $(MAKE) stageprofile-start; \
18899 fi; \
a90ef4bf 18900 cd $(HOST_SUBDIR)/ld && \
b3676d82 18901 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18902@endif ld-bootstrap
e28c595f
JM
18903
18904
a90ef4bf
JM
18905.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18906.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18907maybe-all-stagefeedback-ld:
18908maybe-clean-stagefeedback-ld:
18909@if ld-bootstrap
18910maybe-all-stagefeedback-ld: all-stagefeedback-ld
18911all-stagefeedback: all-stagefeedback-ld
18912TARGET-stagefeedback-ld = $(TARGET-ld)
18913all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
18914 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18915 @r=`${PWD_COMMAND}`; export r; \
18916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18917 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 18918 $(HOST_EXPORTS) \
1f53ca9a 18919 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18920 cd $(HOST_SUBDIR)/ld && \
e28c595f 18921 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18922 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 18923 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
18924 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18925 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18926 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18927 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18928 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18929 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 18930 $(TARGET-stagefeedback-ld)
e28c595f 18931
a90ef4bf
JM
18932maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
18933clean-stagefeedback: clean-stagefeedback-ld
18934clean-stagefeedback-ld:
e28c595f 18935 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 18936 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18937 else \
a90ef4bf 18938 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
18939 $(MAKE) stagefeedback-start; \
18940 fi; \
a90ef4bf 18941 cd $(HOST_SUBDIR)/ld && \
b3676d82 18942 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18943@endif ld-bootstrap
e28c595f
JM
18944
18945
18946
18947
18948
a90ef4bf
JM
18949.PHONY: check-ld maybe-check-ld
18950maybe-check-ld:
18951@if ld
18952maybe-check-ld: check-ld
e28c595f 18953
a90ef4bf 18954check-ld:
e28c595f
JM
18955 @: $(MAKE); $(unstage)
18956 @r=`${PWD_COMMAND}`; export r; \
18957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18958 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 18959 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 18960 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 18961
a90ef4bf 18962@endif ld
e28c595f 18963
a90ef4bf
JM
18964.PHONY: install-ld maybe-install-ld
18965maybe-install-ld:
18966@if ld
18967maybe-install-ld: install-ld
e28c595f 18968
a90ef4bf
JM
18969install-ld: installdirs
18970 @: $(MAKE); $(unstage)
18971 @r=`${PWD_COMMAND}`; export r; \
18972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18973 $(HOST_EXPORTS) \
18974 (cd $(HOST_SUBDIR)/ld && \
18975 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 18976
a90ef4bf 18977@endif ld
e28c595f 18978
a90ef4bf
JM
18979.PHONY: install-strip-ld maybe-install-strip-ld
18980maybe-install-strip-ld:
18981@if ld
18982maybe-install-strip-ld: install-strip-ld
9b980aa1 18983
a90ef4bf
JM
18984install-strip-ld: installdirs
18985 @: $(MAKE); $(unstage)
18986 @r=`${PWD_COMMAND}`; export r; \
18987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18988 $(HOST_EXPORTS) \
18989 (cd $(HOST_SUBDIR)/ld && \
18990 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 18991
a90ef4bf 18992@endif ld
9b980aa1 18993
e28c595f
JM
18994# Other targets (info, dvi, pdf, etc.)
18995
a90ef4bf
JM
18996.PHONY: maybe-info-ld info-ld
18997maybe-info-ld:
18998@if ld
18999maybe-info-ld: info-ld
e28c595f 19000
a90ef4bf
JM
19001info-ld: \
19002 configure-ld
19003 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19004 r=`${PWD_COMMAND}`; export r; \
19005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19006 $(HOST_EXPORTS) \
19007 for flag in $(EXTRA_HOST_FLAGS) ; do \
19008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19009 done; \
22121df0 19010 echo "Doing info in ld"; \
a90ef4bf 19011 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19014 "RANLIB=$${RANLIB}" \
19015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19016 info) \
19017 || exit 1
19018
a90ef4bf 19019@endif ld
e28c595f 19020
a90ef4bf
JM
19021.PHONY: maybe-dvi-ld dvi-ld
19022maybe-dvi-ld:
19023@if ld
19024maybe-dvi-ld: dvi-ld
e28c595f 19025
a90ef4bf
JM
19026dvi-ld: \
19027 configure-ld
19028 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19029 r=`${PWD_COMMAND}`; export r; \
19030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19031 $(HOST_EXPORTS) \
19032 for flag in $(EXTRA_HOST_FLAGS) ; do \
19033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19034 done; \
22121df0 19035 echo "Doing dvi in ld"; \
a90ef4bf 19036 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19039 "RANLIB=$${RANLIB}" \
19040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19041 dvi) \
19042 || exit 1
19043
a90ef4bf 19044@endif ld
e28c595f 19045
a90ef4bf
JM
19046.PHONY: maybe-pdf-ld pdf-ld
19047maybe-pdf-ld:
19048@if ld
19049maybe-pdf-ld: pdf-ld
e28c595f 19050
a90ef4bf
JM
19051pdf-ld: \
19052 configure-ld
19053 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19054 r=`${PWD_COMMAND}`; export r; \
19055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19056 $(HOST_EXPORTS) \
19057 for flag in $(EXTRA_HOST_FLAGS) ; do \
19058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19059 done; \
22121df0 19060 echo "Doing pdf in ld"; \
a90ef4bf 19061 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19064 "RANLIB=$${RANLIB}" \
19065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19066 pdf) \
19067 || exit 1
19068
a90ef4bf 19069@endif ld
e28c595f 19070
a90ef4bf
JM
19071.PHONY: maybe-html-ld html-ld
19072maybe-html-ld:
19073@if ld
19074maybe-html-ld: html-ld
e28c595f 19075
a90ef4bf
JM
19076html-ld: \
19077 configure-ld
19078 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19079 r=`${PWD_COMMAND}`; export r; \
19080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19081 $(HOST_EXPORTS) \
19082 for flag in $(EXTRA_HOST_FLAGS) ; do \
19083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19084 done; \
22121df0 19085 echo "Doing html in ld"; \
a90ef4bf 19086 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19089 "RANLIB=$${RANLIB}" \
19090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19091 html) \
19092 || exit 1
19093
a90ef4bf 19094@endif ld
e28c595f 19095
a90ef4bf
JM
19096.PHONY: maybe-TAGS-ld TAGS-ld
19097maybe-TAGS-ld:
19098@if ld
19099maybe-TAGS-ld: TAGS-ld
e28c595f 19100
a90ef4bf
JM
19101TAGS-ld: \
19102 configure-ld
19103 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19104 r=`${PWD_COMMAND}`; export r; \
19105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19106 $(HOST_EXPORTS) \
19107 for flag in $(EXTRA_HOST_FLAGS) ; do \
19108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19109 done; \
22121df0 19110 echo "Doing TAGS in ld"; \
a90ef4bf 19111 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19114 "RANLIB=$${RANLIB}" \
19115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19116 TAGS) \
19117 || exit 1
19118
a90ef4bf 19119@endif ld
e28c595f 19120
a90ef4bf
JM
19121.PHONY: maybe-install-info-ld install-info-ld
19122maybe-install-info-ld:
19123@if ld
19124maybe-install-info-ld: install-info-ld
e28c595f 19125
a90ef4bf
JM
19126install-info-ld: \
19127 configure-ld \
19128 info-ld
19129 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19130 r=`${PWD_COMMAND}`; export r; \
19131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19132 $(HOST_EXPORTS) \
19133 for flag in $(EXTRA_HOST_FLAGS) ; do \
19134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19135 done; \
22121df0 19136 echo "Doing install-info in ld"; \
a90ef4bf 19137 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19140 "RANLIB=$${RANLIB}" \
19141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19142 install-info) \
19143 || exit 1
19144
a90ef4bf 19145@endif ld
e28c595f 19146
a90ef4bf
JM
19147.PHONY: maybe-install-pdf-ld install-pdf-ld
19148maybe-install-pdf-ld:
19149@if ld
19150maybe-install-pdf-ld: install-pdf-ld
e28c595f 19151
a90ef4bf
JM
19152install-pdf-ld: \
19153 configure-ld \
19154 pdf-ld
19155 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19156 r=`${PWD_COMMAND}`; export r; \
19157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19158 $(HOST_EXPORTS) \
19159 for flag in $(EXTRA_HOST_FLAGS) ; do \
19160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19161 done; \
22121df0 19162 echo "Doing install-pdf in ld"; \
a90ef4bf 19163 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19166 "RANLIB=$${RANLIB}" \
19167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19168 install-pdf) \
19169 || exit 1
19170
a90ef4bf 19171@endif ld
e28c595f 19172
a90ef4bf
JM
19173.PHONY: maybe-install-html-ld install-html-ld
19174maybe-install-html-ld:
19175@if ld
19176maybe-install-html-ld: install-html-ld
e28c595f 19177
a90ef4bf
JM
19178install-html-ld: \
19179 configure-ld \
19180 html-ld
19181 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19182 r=`${PWD_COMMAND}`; export r; \
19183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19184 $(HOST_EXPORTS) \
19185 for flag in $(EXTRA_HOST_FLAGS) ; do \
19186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19187 done; \
22121df0 19188 echo "Doing install-html in ld"; \
a90ef4bf 19189 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19192 "RANLIB=$${RANLIB}" \
19193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19194 install-html) \
19195 || exit 1
19196
a90ef4bf 19197@endif ld
e28c595f 19198
a90ef4bf
JM
19199.PHONY: maybe-installcheck-ld installcheck-ld
19200maybe-installcheck-ld:
19201@if ld
19202maybe-installcheck-ld: installcheck-ld
e28c595f 19203
a90ef4bf
JM
19204installcheck-ld: \
19205 configure-ld
19206 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19207 r=`${PWD_COMMAND}`; export r; \
19208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19209 $(HOST_EXPORTS) \
19210 for flag in $(EXTRA_HOST_FLAGS) ; do \
19211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19212 done; \
22121df0 19213 echo "Doing installcheck in ld"; \
a90ef4bf 19214 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19217 "RANLIB=$${RANLIB}" \
0c24b341 19218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19219 installcheck) \
19220 || exit 1
19221
a90ef4bf 19222@endif ld
4b900473 19223
a90ef4bf
JM
19224.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19225maybe-mostlyclean-ld:
19226@if ld
19227maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19228
a90ef4bf
JM
19229mostlyclean-ld:
19230 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19231 r=`${PWD_COMMAND}`; export r; \
19232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19233 $(HOST_EXPORTS) \
19234 for flag in $(EXTRA_HOST_FLAGS) ; do \
19235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19236 done; \
22121df0 19237 echo "Doing mostlyclean in ld"; \
a90ef4bf 19238 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19241 "RANLIB=$${RANLIB}" \
0c24b341 19242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19243 mostlyclean) \
19244 || exit 1
19245
a90ef4bf 19246@endif ld
4b900473 19247
a90ef4bf
JM
19248.PHONY: maybe-clean-ld clean-ld
19249maybe-clean-ld:
19250@if ld
19251maybe-clean-ld: clean-ld
4b900473 19252
a90ef4bf
JM
19253clean-ld:
19254 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19255 r=`${PWD_COMMAND}`; export r; \
19256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19257 $(HOST_EXPORTS) \
19258 for flag in $(EXTRA_HOST_FLAGS) ; do \
19259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19260 done; \
22121df0 19261 echo "Doing clean in ld"; \
a90ef4bf 19262 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19265 "RANLIB=$${RANLIB}" \
0c24b341 19266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19267 clean) \
19268 || exit 1
19269
a90ef4bf 19270@endif ld
4b900473 19271
a90ef4bf
JM
19272.PHONY: maybe-distclean-ld distclean-ld
19273maybe-distclean-ld:
19274@if ld
19275maybe-distclean-ld: distclean-ld
4b900473 19276
a90ef4bf
JM
19277distclean-ld:
19278 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19279 r=`${PWD_COMMAND}`; export r; \
19280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19281 $(HOST_EXPORTS) \
19282 for flag in $(EXTRA_HOST_FLAGS) ; do \
19283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19284 done; \
22121df0 19285 echo "Doing distclean in ld"; \
a90ef4bf 19286 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19289 "RANLIB=$${RANLIB}" \
0c24b341 19290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19291 distclean) \
19292 || exit 1
19293
a90ef4bf 19294@endif ld
4b900473 19295
a90ef4bf
JM
19296.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19297maybe-maintainer-clean-ld:
19298@if ld
19299maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19300
a90ef4bf
JM
19301maintainer-clean-ld:
19302 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19303 r=`${PWD_COMMAND}`; export r; \
19304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19305 $(HOST_EXPORTS) \
19306 for flag in $(EXTRA_HOST_FLAGS) ; do \
19307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19308 done; \
22121df0 19309 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19310 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19313 "RANLIB=$${RANLIB}" \
0c24b341 19314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19315 maintainer-clean) \
19316 || exit 1
19317
a90ef4bf 19318@endif ld
4b900473
PB
19319
19320
19321
2bf680c4
ILT
19322.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19323maybe-configure-libbacktrace:
19324@if gcc-bootstrap
19325configure-libbacktrace: stage_current
19326@endif gcc-bootstrap
19327@if libbacktrace
19328maybe-configure-libbacktrace: configure-libbacktrace
19329configure-libbacktrace:
19330 @r=`${PWD_COMMAND}`; export r; \
19331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19332 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19333 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19334 $(HOST_EXPORTS) \
19335 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19336 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19337 case $(srcdir) in \
19338 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19339 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19340 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19341 esac; \
1b6c0831
L
19342 module_srcdir=libbacktrace; \
19343 $(SHELL) \
19344 $$s/$$module_srcdir/configure \
19345 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19346 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19347 --target=${target_alias} \
2bf680c4
ILT
19348 || exit 1
19349@endif libbacktrace
19350
19351
19352
19353.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19354maybe-configure-stage1-libbacktrace:
19355@if libbacktrace-bootstrap
19356maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19357configure-stage1-libbacktrace:
19358 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19359 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19360 @r=`${PWD_COMMAND}`; export r; \
19361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19362 TFLAGS="$(STAGE1_TFLAGS)"; \
19363 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19364 $(HOST_EXPORTS) \
19365 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19366 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19367 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19368 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19369 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19370 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19371 case $(srcdir) in \
19372 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19373 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19374 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19375 esac; \
1b6c0831
L
19376 module_srcdir=libbacktrace; \
19377 $(SHELL) $$s/$$module_srcdir/configure \
19378 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19379 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19380 --target=${target_alias} \
19381 \
2bf680c4
ILT
19382 $(STAGE1_CONFIGURE_FLAGS)
19383@endif libbacktrace-bootstrap
19384
19385.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19386maybe-configure-stage2-libbacktrace:
19387@if libbacktrace-bootstrap
19388maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19389configure-stage2-libbacktrace:
19390 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19391 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19392 @r=`${PWD_COMMAND}`; export r; \
19393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19394 TFLAGS="$(STAGE2_TFLAGS)"; \
19395 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19396 $(HOST_EXPORTS) \
19397 $(POSTSTAGE1_HOST_EXPORTS) \
19398 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19399 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19400 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19401 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19402 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19403 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19404 case $(srcdir) in \
19405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19406 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19408 esac; \
1b6c0831
L
19409 module_srcdir=libbacktrace; \
19410 $(SHELL) $$s/$$module_srcdir/configure \
19411 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19412 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19413 --target=${target_alias} \
22121df0 19414 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19415 $(STAGE2_CONFIGURE_FLAGS)
19416@endif libbacktrace-bootstrap
19417
19418.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19419maybe-configure-stage3-libbacktrace:
19420@if libbacktrace-bootstrap
19421maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19422configure-stage3-libbacktrace:
19423 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19424 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19425 @r=`${PWD_COMMAND}`; export r; \
19426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19427 TFLAGS="$(STAGE3_TFLAGS)"; \
19428 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19429 $(HOST_EXPORTS) \
19430 $(POSTSTAGE1_HOST_EXPORTS) \
19431 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19432 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19433 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19434 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19435 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19436 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19437 case $(srcdir) in \
19438 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19439 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19440 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19441 esac; \
1b6c0831
L
19442 module_srcdir=libbacktrace; \
19443 $(SHELL) $$s/$$module_srcdir/configure \
19444 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19445 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19446 --target=${target_alias} \
22121df0 19447 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19448 $(STAGE3_CONFIGURE_FLAGS)
19449@endif libbacktrace-bootstrap
19450
19451.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19452maybe-configure-stage4-libbacktrace:
19453@if libbacktrace-bootstrap
19454maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19455configure-stage4-libbacktrace:
19456 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19457 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19458 @r=`${PWD_COMMAND}`; export r; \
19459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19460 TFLAGS="$(STAGE4_TFLAGS)"; \
19461 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19462 $(HOST_EXPORTS) \
19463 $(POSTSTAGE1_HOST_EXPORTS) \
19464 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19465 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19466 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19467 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19468 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19469 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19470 case $(srcdir) in \
19471 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19472 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19473 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19474 esac; \
1b6c0831
L
19475 module_srcdir=libbacktrace; \
19476 $(SHELL) $$s/$$module_srcdir/configure \
19477 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19478 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19479 --target=${target_alias} \
22121df0 19480 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19481 $(STAGE4_CONFIGURE_FLAGS)
19482@endif libbacktrace-bootstrap
19483
19484.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19485maybe-configure-stageprofile-libbacktrace:
19486@if libbacktrace-bootstrap
19487maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19488configure-stageprofile-libbacktrace:
19489 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19490 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19491 @r=`${PWD_COMMAND}`; export r; \
19492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19493 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19494 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19495 $(HOST_EXPORTS) \
19496 $(POSTSTAGE1_HOST_EXPORTS) \
19497 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19498 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19499 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19500 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19501 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19502 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19503 case $(srcdir) in \
19504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19505 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19507 esac; \
1b6c0831
L
19508 module_srcdir=libbacktrace; \
19509 $(SHELL) $$s/$$module_srcdir/configure \
19510 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19511 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19512 --target=${target_alias} \
22121df0 19513 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19514 $(STAGEprofile_CONFIGURE_FLAGS)
19515@endif libbacktrace-bootstrap
19516
19517.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19518maybe-configure-stagefeedback-libbacktrace:
19519@if libbacktrace-bootstrap
19520maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19521configure-stagefeedback-libbacktrace:
19522 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19523 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19524 @r=`${PWD_COMMAND}`; export r; \
19525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19526 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19527 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19528 $(HOST_EXPORTS) \
19529 $(POSTSTAGE1_HOST_EXPORTS) \
19530 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19531 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19532 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19533 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19534 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19535 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19536 case $(srcdir) in \
19537 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19538 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19539 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19540 esac; \
1b6c0831
L
19541 module_srcdir=libbacktrace; \
19542 $(SHELL) $$s/$$module_srcdir/configure \
19543 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19544 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19545 --target=${target_alias} \
22121df0 19546 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19547 $(STAGEfeedback_CONFIGURE_FLAGS)
19548@endif libbacktrace-bootstrap
19549
19550
19551
19552
19553
19554.PHONY: all-libbacktrace maybe-all-libbacktrace
19555maybe-all-libbacktrace:
19556@if gcc-bootstrap
19557all-libbacktrace: stage_current
19558@endif gcc-bootstrap
19559@if libbacktrace
19560TARGET-libbacktrace=all
19561maybe-all-libbacktrace: all-libbacktrace
19562all-libbacktrace: configure-libbacktrace
19563 @r=`${PWD_COMMAND}`; export r; \
19564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19565 $(HOST_EXPORTS) \
19566 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19567 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19568 $(TARGET-libbacktrace))
19569@endif libbacktrace
19570
19571
19572
19573.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19574.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19575maybe-all-stage1-libbacktrace:
19576maybe-clean-stage1-libbacktrace:
19577@if libbacktrace-bootstrap
19578maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19579all-stage1: all-stage1-libbacktrace
19580TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19581all-stage1-libbacktrace: configure-stage1-libbacktrace
19582 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19583 @r=`${PWD_COMMAND}`; export r; \
19584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19585 TFLAGS="$(STAGE1_TFLAGS)"; \
19586 $(HOST_EXPORTS) \
19587 cd $(HOST_SUBDIR)/libbacktrace && \
19588 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19589 CFLAGS="$(STAGE1_CFLAGS)" \
19590 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19591 LIBCFLAGS="$(LIBCFLAGS)" \
19592 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19593 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19594 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19595 $(EXTRA_HOST_FLAGS) \
19596 $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19597 TFLAGS="$(STAGE1_TFLAGS)" \
19598 $(TARGET-stage1-libbacktrace)
19599
19600maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19601clean-stage1: clean-stage1-libbacktrace
19602clean-stage1-libbacktrace:
19603 @if [ $(current_stage) = stage1 ]; then \
19604 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19605 else \
19606 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19607 $(MAKE) stage1-start; \
19608 fi; \
19609 cd $(HOST_SUBDIR)/libbacktrace && \
19610 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19611 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19612@endif libbacktrace-bootstrap
19613
19614
19615.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19616.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19617maybe-all-stage2-libbacktrace:
19618maybe-clean-stage2-libbacktrace:
19619@if libbacktrace-bootstrap
19620maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19621all-stage2: all-stage2-libbacktrace
19622TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19623all-stage2-libbacktrace: configure-stage2-libbacktrace
19624 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19625 @r=`${PWD_COMMAND}`; export r; \
19626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19627 TFLAGS="$(STAGE2_TFLAGS)"; \
19628 $(HOST_EXPORTS) \
19629 $(POSTSTAGE1_HOST_EXPORTS) \
19630 cd $(HOST_SUBDIR)/libbacktrace && \
19631 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19632 CFLAGS="$(STAGE2_CFLAGS)" \
19633 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19634 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19635 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19636 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19637 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19638 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19639 TFLAGS="$(STAGE2_TFLAGS)" \
19640 $(TARGET-stage2-libbacktrace)
19641
19642maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19643clean-stage2: clean-stage2-libbacktrace
19644clean-stage2-libbacktrace:
19645 @if [ $(current_stage) = stage2 ]; then \
19646 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19647 else \
19648 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19649 $(MAKE) stage2-start; \
19650 fi; \
19651 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19652 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19653@endif libbacktrace-bootstrap
19654
19655
19656.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19657.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19658maybe-all-stage3-libbacktrace:
19659maybe-clean-stage3-libbacktrace:
19660@if libbacktrace-bootstrap
19661maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19662all-stage3: all-stage3-libbacktrace
19663TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19664all-stage3-libbacktrace: configure-stage3-libbacktrace
19665 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19666 @r=`${PWD_COMMAND}`; export r; \
19667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19668 TFLAGS="$(STAGE3_TFLAGS)"; \
19669 $(HOST_EXPORTS) \
19670 $(POSTSTAGE1_HOST_EXPORTS) \
19671 cd $(HOST_SUBDIR)/libbacktrace && \
19672 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19673 CFLAGS="$(STAGE3_CFLAGS)" \
19674 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19675 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19676 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19677 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19678 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19679 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19680 TFLAGS="$(STAGE3_TFLAGS)" \
19681 $(TARGET-stage3-libbacktrace)
19682
19683maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19684clean-stage3: clean-stage3-libbacktrace
19685clean-stage3-libbacktrace:
19686 @if [ $(current_stage) = stage3 ]; then \
19687 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19688 else \
19689 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19690 $(MAKE) stage3-start; \
19691 fi; \
19692 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19693 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19694@endif libbacktrace-bootstrap
19695
19696
19697.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19698.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19699maybe-all-stage4-libbacktrace:
19700maybe-clean-stage4-libbacktrace:
19701@if libbacktrace-bootstrap
19702maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19703all-stage4: all-stage4-libbacktrace
19704TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19705all-stage4-libbacktrace: configure-stage4-libbacktrace
19706 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19707 @r=`${PWD_COMMAND}`; export r; \
19708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19709 TFLAGS="$(STAGE4_TFLAGS)"; \
19710 $(HOST_EXPORTS) \
19711 $(POSTSTAGE1_HOST_EXPORTS) \
19712 cd $(HOST_SUBDIR)/libbacktrace && \
19713 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19714 CFLAGS="$(STAGE4_CFLAGS)" \
19715 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19716 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19717 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19718 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19719 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19720 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19721 TFLAGS="$(STAGE4_TFLAGS)" \
19722 $(TARGET-stage4-libbacktrace)
19723
19724maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19725clean-stage4: clean-stage4-libbacktrace
19726clean-stage4-libbacktrace:
19727 @if [ $(current_stage) = stage4 ]; then \
19728 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19729 else \
19730 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19731 $(MAKE) stage4-start; \
19732 fi; \
19733 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19734 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19735@endif libbacktrace-bootstrap
19736
19737
19738.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19739.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19740maybe-all-stageprofile-libbacktrace:
19741maybe-clean-stageprofile-libbacktrace:
19742@if libbacktrace-bootstrap
19743maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19744all-stageprofile: all-stageprofile-libbacktrace
19745TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19746all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19747 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19748 @r=`${PWD_COMMAND}`; export r; \
19749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19750 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19751 $(HOST_EXPORTS) \
19752 $(POSTSTAGE1_HOST_EXPORTS) \
19753 cd $(HOST_SUBDIR)/libbacktrace && \
19754 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19755 CFLAGS="$(STAGEprofile_CFLAGS)" \
19756 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19757 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19758 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19759 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19760 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19761 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19762 TFLAGS="$(STAGEprofile_TFLAGS)" \
19763 $(TARGET-stageprofile-libbacktrace)
19764
19765maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19766clean-stageprofile: clean-stageprofile-libbacktrace
19767clean-stageprofile-libbacktrace:
19768 @if [ $(current_stage) = stageprofile ]; then \
19769 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19770 else \
19771 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19772 $(MAKE) stageprofile-start; \
19773 fi; \
19774 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19775 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19776@endif libbacktrace-bootstrap
19777
19778
19779.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19780.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19781maybe-all-stagefeedback-libbacktrace:
19782maybe-clean-stagefeedback-libbacktrace:
19783@if libbacktrace-bootstrap
19784maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19785all-stagefeedback: all-stagefeedback-libbacktrace
19786TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19787all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19788 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19789 @r=`${PWD_COMMAND}`; export r; \
19790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19791 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19792 $(HOST_EXPORTS) \
19793 $(POSTSTAGE1_HOST_EXPORTS) \
19794 cd $(HOST_SUBDIR)/libbacktrace && \
19795 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19796 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19797 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19798 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19799 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19800 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19801 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19802 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19803 TFLAGS="$(STAGEfeedback_TFLAGS)" \
19804 $(TARGET-stagefeedback-libbacktrace)
19805
19806maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19807clean-stagefeedback: clean-stagefeedback-libbacktrace
19808clean-stagefeedback-libbacktrace:
19809 @if [ $(current_stage) = stagefeedback ]; then \
19810 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19811 else \
19812 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19813 $(MAKE) stagefeedback-start; \
19814 fi; \
19815 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19816 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19817@endif libbacktrace-bootstrap
19818
19819
19820
19821
19822
19823.PHONY: check-libbacktrace maybe-check-libbacktrace
19824maybe-check-libbacktrace:
19825@if libbacktrace
19826maybe-check-libbacktrace: check-libbacktrace
19827
19828check-libbacktrace:
19829 @: $(MAKE); $(unstage)
19830 @r=`${PWD_COMMAND}`; export r; \
19831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19832 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19833 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19834 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19835
19836@endif libbacktrace
19837
19838.PHONY: install-libbacktrace maybe-install-libbacktrace
19839maybe-install-libbacktrace:
19840@if libbacktrace
19841maybe-install-libbacktrace: install-libbacktrace
19842
19843install-libbacktrace: installdirs
19844 @: $(MAKE); $(unstage)
19845 @r=`${PWD_COMMAND}`; export r; \
19846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19847 $(HOST_EXPORTS) \
19848 (cd $(HOST_SUBDIR)/libbacktrace && \
19849 $(MAKE) $(FLAGS_TO_PASS) install)
19850
19851@endif libbacktrace
19852
19853.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19854maybe-install-strip-libbacktrace:
19855@if libbacktrace
19856maybe-install-strip-libbacktrace: install-strip-libbacktrace
19857
19858install-strip-libbacktrace: installdirs
19859 @: $(MAKE); $(unstage)
19860 @r=`${PWD_COMMAND}`; export r; \
19861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19862 $(HOST_EXPORTS) \
19863 (cd $(HOST_SUBDIR)/libbacktrace && \
19864 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19865
19866@endif libbacktrace
19867
19868# Other targets (info, dvi, pdf, etc.)
19869
19870.PHONY: maybe-info-libbacktrace info-libbacktrace
19871maybe-info-libbacktrace:
19872@if libbacktrace
19873maybe-info-libbacktrace: info-libbacktrace
19874
19875info-libbacktrace: \
19876 configure-libbacktrace
19877 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19878 r=`${PWD_COMMAND}`; export r; \
19879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19880 $(HOST_EXPORTS) \
19881 for flag in $(EXTRA_HOST_FLAGS) ; do \
19882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19883 done; \
22121df0 19884 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
19885 (cd $(HOST_SUBDIR)/libbacktrace && \
19886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19888 "RANLIB=$${RANLIB}" \
19889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19890 info) \
19891 || exit 1
19892
19893@endif libbacktrace
19894
19895.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19896maybe-dvi-libbacktrace:
19897@if libbacktrace
19898maybe-dvi-libbacktrace: dvi-libbacktrace
19899
19900dvi-libbacktrace: \
19901 configure-libbacktrace
19902 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19903 r=`${PWD_COMMAND}`; export r; \
19904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19905 $(HOST_EXPORTS) \
19906 for flag in $(EXTRA_HOST_FLAGS) ; do \
19907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19908 done; \
22121df0 19909 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
19910 (cd $(HOST_SUBDIR)/libbacktrace && \
19911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19913 "RANLIB=$${RANLIB}" \
19914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19915 dvi) \
19916 || exit 1
19917
19918@endif libbacktrace
19919
19920.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
19921maybe-pdf-libbacktrace:
19922@if libbacktrace
19923maybe-pdf-libbacktrace: pdf-libbacktrace
19924
19925pdf-libbacktrace: \
19926 configure-libbacktrace
19927 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19928 r=`${PWD_COMMAND}`; export r; \
19929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19930 $(HOST_EXPORTS) \
19931 for flag in $(EXTRA_HOST_FLAGS) ; do \
19932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19933 done; \
22121df0 19934 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
19935 (cd $(HOST_SUBDIR)/libbacktrace && \
19936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19938 "RANLIB=$${RANLIB}" \
19939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19940 pdf) \
19941 || exit 1
19942
19943@endif libbacktrace
19944
19945.PHONY: maybe-html-libbacktrace html-libbacktrace
19946maybe-html-libbacktrace:
19947@if libbacktrace
19948maybe-html-libbacktrace: html-libbacktrace
19949
19950html-libbacktrace: \
19951 configure-libbacktrace
19952 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19953 r=`${PWD_COMMAND}`; export r; \
19954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19955 $(HOST_EXPORTS) \
19956 for flag in $(EXTRA_HOST_FLAGS) ; do \
19957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19958 done; \
22121df0 19959 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
19960 (cd $(HOST_SUBDIR)/libbacktrace && \
19961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19963 "RANLIB=$${RANLIB}" \
19964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19965 html) \
19966 || exit 1
19967
19968@endif libbacktrace
19969
19970.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
19971maybe-TAGS-libbacktrace:
19972@if libbacktrace
19973maybe-TAGS-libbacktrace: TAGS-libbacktrace
19974
19975TAGS-libbacktrace: \
19976 configure-libbacktrace
19977 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19978 r=`${PWD_COMMAND}`; export r; \
19979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19980 $(HOST_EXPORTS) \
19981 for flag in $(EXTRA_HOST_FLAGS) ; do \
19982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19983 done; \
22121df0 19984 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
19985 (cd $(HOST_SUBDIR)/libbacktrace && \
19986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19988 "RANLIB=$${RANLIB}" \
19989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19990 TAGS) \
19991 || exit 1
19992
19993@endif libbacktrace
19994
19995.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
19996maybe-install-info-libbacktrace:
19997@if libbacktrace
19998maybe-install-info-libbacktrace: install-info-libbacktrace
19999
20000install-info-libbacktrace: \
20001 configure-libbacktrace \
20002 info-libbacktrace
20003 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20004 r=`${PWD_COMMAND}`; export r; \
20005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20006 $(HOST_EXPORTS) \
20007 for flag in $(EXTRA_HOST_FLAGS) ; do \
20008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20009 done; \
22121df0 20010 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20011 (cd $(HOST_SUBDIR)/libbacktrace && \
20012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20014 "RANLIB=$${RANLIB}" \
20015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20016 install-info) \
20017 || exit 1
20018
20019@endif libbacktrace
20020
20021.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20022maybe-install-pdf-libbacktrace:
20023@if libbacktrace
20024maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20025
20026install-pdf-libbacktrace: \
20027 configure-libbacktrace \
20028 pdf-libbacktrace
20029 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20030 r=`${PWD_COMMAND}`; export r; \
20031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20032 $(HOST_EXPORTS) \
20033 for flag in $(EXTRA_HOST_FLAGS) ; do \
20034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20035 done; \
22121df0 20036 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20037 (cd $(HOST_SUBDIR)/libbacktrace && \
20038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20040 "RANLIB=$${RANLIB}" \
20041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20042 install-pdf) \
20043 || exit 1
20044
20045@endif libbacktrace
20046
20047.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20048maybe-install-html-libbacktrace:
20049@if libbacktrace
20050maybe-install-html-libbacktrace: install-html-libbacktrace
20051
20052install-html-libbacktrace: \
20053 configure-libbacktrace \
20054 html-libbacktrace
20055 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20056 r=`${PWD_COMMAND}`; export r; \
20057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20058 $(HOST_EXPORTS) \
20059 for flag in $(EXTRA_HOST_FLAGS) ; do \
20060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20061 done; \
22121df0 20062 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20063 (cd $(HOST_SUBDIR)/libbacktrace && \
20064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20066 "RANLIB=$${RANLIB}" \
20067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20068 install-html) \
20069 || exit 1
20070
20071@endif libbacktrace
20072
20073.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20074maybe-installcheck-libbacktrace:
20075@if libbacktrace
20076maybe-installcheck-libbacktrace: installcheck-libbacktrace
20077
20078installcheck-libbacktrace: \
20079 configure-libbacktrace
20080 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20081 r=`${PWD_COMMAND}`; export r; \
20082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20083 $(HOST_EXPORTS) \
20084 for flag in $(EXTRA_HOST_FLAGS) ; do \
20085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20086 done; \
22121df0 20087 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20088 (cd $(HOST_SUBDIR)/libbacktrace && \
20089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20091 "RANLIB=$${RANLIB}" \
20092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20093 installcheck) \
20094 || exit 1
20095
20096@endif libbacktrace
20097
20098.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20099maybe-mostlyclean-libbacktrace:
20100@if libbacktrace
20101maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20102
20103mostlyclean-libbacktrace:
20104 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20105 r=`${PWD_COMMAND}`; export r; \
20106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20107 $(HOST_EXPORTS) \
20108 for flag in $(EXTRA_HOST_FLAGS) ; do \
20109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20110 done; \
22121df0 20111 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20112 (cd $(HOST_SUBDIR)/libbacktrace && \
20113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20115 "RANLIB=$${RANLIB}" \
20116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20117 mostlyclean) \
20118 || exit 1
20119
20120@endif libbacktrace
20121
20122.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20123maybe-clean-libbacktrace:
20124@if libbacktrace
20125maybe-clean-libbacktrace: clean-libbacktrace
20126
20127clean-libbacktrace:
20128 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20129 r=`${PWD_COMMAND}`; export r; \
20130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20131 $(HOST_EXPORTS) \
20132 for flag in $(EXTRA_HOST_FLAGS) ; do \
20133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20134 done; \
22121df0 20135 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20136 (cd $(HOST_SUBDIR)/libbacktrace && \
20137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20139 "RANLIB=$${RANLIB}" \
20140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20141 clean) \
20142 || exit 1
20143
20144@endif libbacktrace
20145
20146.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20147maybe-distclean-libbacktrace:
20148@if libbacktrace
20149maybe-distclean-libbacktrace: distclean-libbacktrace
20150
20151distclean-libbacktrace:
20152 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20153 r=`${PWD_COMMAND}`; export r; \
20154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20155 $(HOST_EXPORTS) \
20156 for flag in $(EXTRA_HOST_FLAGS) ; do \
20157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20158 done; \
22121df0 20159 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20160 (cd $(HOST_SUBDIR)/libbacktrace && \
20161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20163 "RANLIB=$${RANLIB}" \
20164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20165 distclean) \
20166 || exit 1
20167
20168@endif libbacktrace
20169
20170.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20171maybe-maintainer-clean-libbacktrace:
20172@if libbacktrace
20173maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20174
20175maintainer-clean-libbacktrace:
20176 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20177 r=`${PWD_COMMAND}`; export r; \
20178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20179 $(HOST_EXPORTS) \
20180 for flag in $(EXTRA_HOST_FLAGS) ; do \
20181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20182 done; \
22121df0 20183 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20184 (cd $(HOST_SUBDIR)/libbacktrace && \
20185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20187 "RANLIB=$${RANLIB}" \
20188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20189 maintainer-clean) \
20190 || exit 1
20191
20192@endif libbacktrace
20193
20194
20195
a90ef4bf
JM
20196.PHONY: configure-libcpp maybe-configure-libcpp
20197maybe-configure-libcpp:
4b900473 20198@if gcc-bootstrap
a90ef4bf 20199configure-libcpp: stage_current
4b900473 20200@endif gcc-bootstrap
a90ef4bf
JM
20201@if libcpp
20202maybe-configure-libcpp: configure-libcpp
20203configure-libcpp:
4b900473
PB
20204 @r=`${PWD_COMMAND}`; export r; \
20205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20206 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20207 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20208 $(HOST_EXPORTS) \
20209 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20210 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20211 case $(srcdir) in \
20212 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20213 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20214 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20215 esac; \
1b6c0831
L
20216 module_srcdir=libcpp; \
20217 $(SHELL) \
20218 $$s/$$module_srcdir/configure \
20219 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20220 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20221 --target=${target_alias} \
4b900473 20222 || exit 1
a90ef4bf 20223@endif libcpp
4b900473
PB
20224
20225
20226
a90ef4bf
JM
20227.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20228maybe-configure-stage1-libcpp:
20229@if libcpp-bootstrap
20230maybe-configure-stage1-libcpp: configure-stage1-libcpp
20231configure-stage1-libcpp:
4b900473 20232 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20233 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20234 @r=`${PWD_COMMAND}`; export r; \
20235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20236 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20237 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20238 $(HOST_EXPORTS) \
8ee82aff 20239 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20240 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20241 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20242 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20243 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20244 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20245 case $(srcdir) in \
20246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20247 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20249 esac; \
1b6c0831
L
20250 module_srcdir=libcpp; \
20251 $(SHELL) $$s/$$module_srcdir/configure \
20252 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20253 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20254 --target=${target_alias} \
20255 \
a90ef4bf
JM
20256 $(STAGE1_CONFIGURE_FLAGS)
20257@endif libcpp-bootstrap
e28c595f 20258
a90ef4bf
JM
20259.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20260maybe-configure-stage2-libcpp:
20261@if libcpp-bootstrap
20262maybe-configure-stage2-libcpp: configure-stage2-libcpp
20263configure-stage2-libcpp:
4b900473 20264 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20265 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20266 @r=`${PWD_COMMAND}`; export r; \
20267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20268 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20269 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20270 $(HOST_EXPORTS) \
1b05fbbd 20271 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20272 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20273 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20274 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20275 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20276 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20277 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20278 case $(srcdir) in \
20279 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20280 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20281 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20282 esac; \
1b6c0831
L
20283 module_srcdir=libcpp; \
20284 $(SHELL) $$s/$$module_srcdir/configure \
20285 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20286 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20287 --target=${target_alias} \
22121df0 20288 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20289 $(STAGE2_CONFIGURE_FLAGS)
20290@endif libcpp-bootstrap
e28c595f 20291
a90ef4bf
JM
20292.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20293maybe-configure-stage3-libcpp:
20294@if libcpp-bootstrap
20295maybe-configure-stage3-libcpp: configure-stage3-libcpp
20296configure-stage3-libcpp:
4b900473 20297 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20298 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20299 @r=`${PWD_COMMAND}`; export r; \
20300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20301 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20302 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20303 $(HOST_EXPORTS) \
1b05fbbd 20304 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20305 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20306 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20307 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20308 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20309 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20310 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20311 case $(srcdir) in \
20312 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20313 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20314 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20315 esac; \
1b6c0831
L
20316 module_srcdir=libcpp; \
20317 $(SHELL) $$s/$$module_srcdir/configure \
20318 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20319 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20320 --target=${target_alias} \
22121df0 20321 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20322 $(STAGE3_CONFIGURE_FLAGS)
20323@endif libcpp-bootstrap
e28c595f 20324
a90ef4bf
JM
20325.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20326maybe-configure-stage4-libcpp:
20327@if libcpp-bootstrap
20328maybe-configure-stage4-libcpp: configure-stage4-libcpp
20329configure-stage4-libcpp:
4b900473 20330 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20331 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20332 @r=`${PWD_COMMAND}`; export r; \
20333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20334 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20335 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20336 $(HOST_EXPORTS) \
1b05fbbd 20337 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20338 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20339 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20340 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20341 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20342 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20343 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20344 case $(srcdir) in \
20345 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20346 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20347 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20348 esac; \
1b6c0831
L
20349 module_srcdir=libcpp; \
20350 $(SHELL) $$s/$$module_srcdir/configure \
20351 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20352 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20353 --target=${target_alias} \
22121df0 20354 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20355 $(STAGE4_CONFIGURE_FLAGS)
20356@endif libcpp-bootstrap
e28c595f 20357
a90ef4bf
JM
20358.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20359maybe-configure-stageprofile-libcpp:
20360@if libcpp-bootstrap
20361maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20362configure-stageprofile-libcpp:
4b900473 20363 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20364 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20365 @r=`${PWD_COMMAND}`; export r; \
20366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20367 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20368 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20369 $(HOST_EXPORTS) \
1b05fbbd
AO
20370 $(POSTSTAGE1_HOST_EXPORTS) \
20371 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20372 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20373 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20374 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20375 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20376 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20377 case $(srcdir) in \
20378 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20379 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20380 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20381 esac; \
1b6c0831
L
20382 module_srcdir=libcpp; \
20383 $(SHELL) $$s/$$module_srcdir/configure \
20384 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20385 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20386 --target=${target_alias} \
22121df0 20387 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20388 $(STAGEprofile_CONFIGURE_FLAGS)
20389@endif libcpp-bootstrap
e28c595f 20390
a90ef4bf
JM
20391.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20392maybe-configure-stagefeedback-libcpp:
20393@if libcpp-bootstrap
20394maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20395configure-stagefeedback-libcpp:
4b900473 20396 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20397 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20398 @r=`${PWD_COMMAND}`; export r; \
20399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20400 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20401 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20402 $(HOST_EXPORTS) \
1b05fbbd
AO
20403 $(POSTSTAGE1_HOST_EXPORTS) \
20404 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20405 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20406 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20407 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20408 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20409 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20410 case $(srcdir) in \
20411 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20412 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20413 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20414 esac; \
1b6c0831
L
20415 module_srcdir=libcpp; \
20416 $(SHELL) $$s/$$module_srcdir/configure \
20417 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20418 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20419 --target=${target_alias} \
22121df0 20420 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20421 $(STAGEfeedback_CONFIGURE_FLAGS)
20422@endif libcpp-bootstrap
4b900473
PB
20423
20424
20425
20426
20427
a90ef4bf
JM
20428.PHONY: all-libcpp maybe-all-libcpp
20429maybe-all-libcpp:
4b900473 20430@if gcc-bootstrap
a90ef4bf 20431all-libcpp: stage_current
4b900473 20432@endif gcc-bootstrap
a90ef4bf
JM
20433@if libcpp
20434TARGET-libcpp=all
20435maybe-all-libcpp: all-libcpp
20436all-libcpp: configure-libcpp
4b900473
PB
20437 @r=`${PWD_COMMAND}`; export r; \
20438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20439 $(HOST_EXPORTS) \
20440 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20441 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20442 $(TARGET-libcpp))
20443@endif libcpp
4b900473
PB
20444
20445
20446
a90ef4bf
JM
20447.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20448.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20449maybe-all-stage1-libcpp:
20450maybe-clean-stage1-libcpp:
20451@if libcpp-bootstrap
20452maybe-all-stage1-libcpp: all-stage1-libcpp
20453all-stage1: all-stage1-libcpp
20454TARGET-stage1-libcpp = $(TARGET-libcpp)
20455all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20456 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20457 @r=`${PWD_COMMAND}`; export r; \
20458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20459 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20460 $(HOST_EXPORTS) \
20461 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20462 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20463 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20464 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20465 LIBCFLAGS="$(LIBCFLAGS)" \
20466 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20467 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20468 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20469 $(EXTRA_HOST_FLAGS) \
20470 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 20471 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20472 $(TARGET-stage1-libcpp)
4b900473 20473
a90ef4bf
JM
20474maybe-clean-stage1-libcpp: clean-stage1-libcpp
20475clean-stage1: clean-stage1-libcpp
20476clean-stage1-libcpp:
4b900473 20477 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20478 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20479 else \
a90ef4bf 20480 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20481 $(MAKE) stage1-start; \
20482 fi; \
a90ef4bf 20483 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20484 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20485 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20486@endif libcpp-bootstrap
e28c595f
JM
20487
20488
a90ef4bf
JM
20489.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20490.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20491maybe-all-stage2-libcpp:
20492maybe-clean-stage2-libcpp:
20493@if libcpp-bootstrap
20494maybe-all-stage2-libcpp: all-stage2-libcpp
20495all-stage2: all-stage2-libcpp
20496TARGET-stage2-libcpp = $(TARGET-libcpp)
20497all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20498 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20499 @r=`${PWD_COMMAND}`; export r; \
20500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20501 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20502 $(HOST_EXPORTS) \
a90ef4bf
JM
20503 $(POSTSTAGE1_HOST_EXPORTS) \
20504 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20505 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20506 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20507 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20508 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20509 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20510 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20511 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20512 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20513 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20514 $(TARGET-stage2-libcpp)
4b900473 20515
a90ef4bf
JM
20516maybe-clean-stage2-libcpp: clean-stage2-libcpp
20517clean-stage2: clean-stage2-libcpp
20518clean-stage2-libcpp:
4b900473 20519 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20520 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20521 else \
a90ef4bf 20522 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20523 $(MAKE) stage2-start; \
20524 fi; \
a90ef4bf 20525 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20526 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20527@endif libcpp-bootstrap
e28c595f
JM
20528
20529
a90ef4bf
JM
20530.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20531.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20532maybe-all-stage3-libcpp:
20533maybe-clean-stage3-libcpp:
20534@if libcpp-bootstrap
20535maybe-all-stage3-libcpp: all-stage3-libcpp
20536all-stage3: all-stage3-libcpp
20537TARGET-stage3-libcpp = $(TARGET-libcpp)
20538all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20539 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20540 @r=`${PWD_COMMAND}`; export r; \
20541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20542 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20543 $(HOST_EXPORTS) \
a90ef4bf
JM
20544 $(POSTSTAGE1_HOST_EXPORTS) \
20545 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20546 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20547 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20548 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20549 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20550 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20551 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20552 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20553 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20554 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20555 $(TARGET-stage3-libcpp)
4b900473 20556
a90ef4bf
JM
20557maybe-clean-stage3-libcpp: clean-stage3-libcpp
20558clean-stage3: clean-stage3-libcpp
20559clean-stage3-libcpp:
4b900473 20560 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20561 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20562 else \
a90ef4bf 20563 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20564 $(MAKE) stage3-start; \
20565 fi; \
a90ef4bf 20566 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20567 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20568@endif libcpp-bootstrap
e28c595f
JM
20569
20570
a90ef4bf
JM
20571.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20572.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20573maybe-all-stage4-libcpp:
20574maybe-clean-stage4-libcpp:
20575@if libcpp-bootstrap
20576maybe-all-stage4-libcpp: all-stage4-libcpp
20577all-stage4: all-stage4-libcpp
20578TARGET-stage4-libcpp = $(TARGET-libcpp)
20579all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20580 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20581 @r=`${PWD_COMMAND}`; export r; \
20582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20583 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20584 $(HOST_EXPORTS) \
a90ef4bf
JM
20585 $(POSTSTAGE1_HOST_EXPORTS) \
20586 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20587 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20588 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20589 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20590 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20591 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20592 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20593 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20594 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20595 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20596 $(TARGET-stage4-libcpp)
4b900473 20597
a90ef4bf
JM
20598maybe-clean-stage4-libcpp: clean-stage4-libcpp
20599clean-stage4: clean-stage4-libcpp
20600clean-stage4-libcpp:
4b900473 20601 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20602 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20603 else \
a90ef4bf 20604 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20605 $(MAKE) stage4-start; \
20606 fi; \
a90ef4bf 20607 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20608 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20609@endif libcpp-bootstrap
e28c595f
JM
20610
20611
a90ef4bf
JM
20612.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20613.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20614maybe-all-stageprofile-libcpp:
20615maybe-clean-stageprofile-libcpp:
20616@if libcpp-bootstrap
20617maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20618all-stageprofile: all-stageprofile-libcpp
20619TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20620all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20621 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20622 @r=`${PWD_COMMAND}`; export r; \
20623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20624 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20625 $(HOST_EXPORTS) \
a90ef4bf
JM
20626 $(POSTSTAGE1_HOST_EXPORTS) \
20627 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20628 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20629 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20630 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20631 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20632 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20633 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20634 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20635 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20636 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20637 $(TARGET-stageprofile-libcpp)
4b900473 20638
a90ef4bf
JM
20639maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20640clean-stageprofile: clean-stageprofile-libcpp
20641clean-stageprofile-libcpp:
4b900473 20642 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20643 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20644 else \
a90ef4bf 20645 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20646 $(MAKE) stageprofile-start; \
20647 fi; \
a90ef4bf 20648 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20649 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20650@endif libcpp-bootstrap
e28c595f
JM
20651
20652
a90ef4bf
JM
20653.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20654.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20655maybe-all-stagefeedback-libcpp:
20656maybe-clean-stagefeedback-libcpp:
20657@if libcpp-bootstrap
20658maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20659all-stagefeedback: all-stagefeedback-libcpp
20660TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20661all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20662 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20663 @r=`${PWD_COMMAND}`; export r; \
20664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20665 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20666 $(HOST_EXPORTS) \
a90ef4bf
JM
20667 $(POSTSTAGE1_HOST_EXPORTS) \
20668 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20669 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20670 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20671 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20672 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20673 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20674 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20675 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20676 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20677 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20678 $(TARGET-stagefeedback-libcpp)
4b900473 20679
a90ef4bf
JM
20680maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20681clean-stagefeedback: clean-stagefeedback-libcpp
20682clean-stagefeedback-libcpp:
4b900473 20683 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20684 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20685 else \
a90ef4bf 20686 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20687 $(MAKE) stagefeedback-start; \
20688 fi; \
a90ef4bf 20689 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20690 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20691@endif libcpp-bootstrap
4b900473
PB
20692
20693
20694
20695
20696
a90ef4bf
JM
20697.PHONY: check-libcpp maybe-check-libcpp
20698maybe-check-libcpp:
20699@if libcpp
20700maybe-check-libcpp: check-libcpp
4b900473 20701
a90ef4bf 20702check-libcpp:
4b900473
PB
20703 @: $(MAKE); $(unstage)
20704 @r=`${PWD_COMMAND}`; export r; \
20705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20706 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20707 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20708 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20709
a90ef4bf 20710@endif libcpp
4b900473 20711
a90ef4bf
JM
20712.PHONY: install-libcpp maybe-install-libcpp
20713maybe-install-libcpp:
20714@if libcpp
20715maybe-install-libcpp: install-libcpp
4b900473 20716
a90ef4bf
JM
20717install-libcpp: installdirs
20718 @: $(MAKE); $(unstage)
20719 @r=`${PWD_COMMAND}`; export r; \
20720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20721 $(HOST_EXPORTS) \
20722 (cd $(HOST_SUBDIR)/libcpp && \
20723 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20724
a90ef4bf 20725@endif libcpp
4b900473 20726
a90ef4bf
JM
20727.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20728maybe-install-strip-libcpp:
20729@if libcpp
20730maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20731
a90ef4bf
JM
20732install-strip-libcpp: installdirs
20733 @: $(MAKE); $(unstage)
20734 @r=`${PWD_COMMAND}`; export r; \
20735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20736 $(HOST_EXPORTS) \
20737 (cd $(HOST_SUBDIR)/libcpp && \
20738 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20739
a90ef4bf 20740@endif libcpp
9b980aa1 20741
4b900473
PB
20742# Other targets (info, dvi, pdf, etc.)
20743
a90ef4bf
JM
20744.PHONY: maybe-info-libcpp info-libcpp
20745maybe-info-libcpp:
20746@if libcpp
20747maybe-info-libcpp: info-libcpp
4b900473 20748
a90ef4bf
JM
20749info-libcpp: \
20750 configure-libcpp
20751 @[ -f ./libcpp/Makefile ] || exit 0; \
20752 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20754 $(HOST_EXPORTS) \
a90ef4bf 20755 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20757 done; \
22121df0 20758 echo "Doing info in libcpp"; \
a90ef4bf 20759 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20762 "RANLIB=$${RANLIB}" \
0c24b341 20763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20764 info) \
20765 || exit 1
20766
a90ef4bf 20767@endif libcpp
4b900473 20768
a90ef4bf
JM
20769.PHONY: maybe-dvi-libcpp dvi-libcpp
20770maybe-dvi-libcpp:
20771@if libcpp
20772maybe-dvi-libcpp: dvi-libcpp
4b900473 20773
a90ef4bf
JM
20774dvi-libcpp: \
20775 configure-libcpp
20776 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20777 r=`${PWD_COMMAND}`; export r; \
20778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20779 $(HOST_EXPORTS) \
a90ef4bf 20780 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20782 done; \
22121df0 20783 echo "Doing dvi in libcpp"; \
a90ef4bf 20784 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20787 "RANLIB=$${RANLIB}" \
0c24b341 20788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20789 dvi) \
20790 || exit 1
20791
a90ef4bf 20792@endif libcpp
4b900473 20793
a90ef4bf
JM
20794.PHONY: maybe-pdf-libcpp pdf-libcpp
20795maybe-pdf-libcpp:
20796@if libcpp
20797maybe-pdf-libcpp: pdf-libcpp
4b900473 20798
a90ef4bf
JM
20799pdf-libcpp: \
20800 configure-libcpp
20801 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20802 r=`${PWD_COMMAND}`; export r; \
20803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20804 $(HOST_EXPORTS) \
a90ef4bf 20805 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20807 done; \
22121df0 20808 echo "Doing pdf in libcpp"; \
a90ef4bf 20809 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20812 "RANLIB=$${RANLIB}" \
0c24b341 20813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20814 pdf) \
20815 || exit 1
20816
a90ef4bf 20817@endif libcpp
4b900473 20818
a90ef4bf
JM
20819.PHONY: maybe-html-libcpp html-libcpp
20820maybe-html-libcpp:
20821@if libcpp
20822maybe-html-libcpp: html-libcpp
4b900473 20823
a90ef4bf
JM
20824html-libcpp: \
20825 configure-libcpp
20826 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20827 r=`${PWD_COMMAND}`; export r; \
20828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20829 $(HOST_EXPORTS) \
a90ef4bf 20830 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20832 done; \
22121df0 20833 echo "Doing html in libcpp"; \
a90ef4bf 20834 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20837 "RANLIB=$${RANLIB}" \
0c24b341 20838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20839 html) \
20840 || exit 1
20841
a90ef4bf 20842@endif libcpp
4b900473 20843
a90ef4bf
JM
20844.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20845maybe-TAGS-libcpp:
20846@if libcpp
20847maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20848
a90ef4bf
JM
20849TAGS-libcpp: \
20850 configure-libcpp
20851 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20852 r=`${PWD_COMMAND}`; export r; \
20853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20854 $(HOST_EXPORTS) \
a90ef4bf 20855 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20857 done; \
22121df0 20858 echo "Doing TAGS in libcpp"; \
a90ef4bf 20859 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20862 "RANLIB=$${RANLIB}" \
0c24b341 20863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20864 TAGS) \
20865 || exit 1
20866
a90ef4bf 20867@endif libcpp
4b900473 20868
a90ef4bf
JM
20869.PHONY: maybe-install-info-libcpp install-info-libcpp
20870maybe-install-info-libcpp:
20871@if libcpp
20872maybe-install-info-libcpp: install-info-libcpp
4b900473 20873
a90ef4bf
JM
20874install-info-libcpp: \
20875 configure-libcpp \
20876 info-libcpp
20877 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20878 r=`${PWD_COMMAND}`; export r; \
20879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20880 $(HOST_EXPORTS) \
a90ef4bf 20881 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20883 done; \
22121df0 20884 echo "Doing install-info in libcpp"; \
a90ef4bf 20885 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20888 "RANLIB=$${RANLIB}" \
0c24b341 20889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20890 install-info) \
20891 || exit 1
20892
a90ef4bf 20893@endif libcpp
4b900473 20894
a90ef4bf
JM
20895.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20896maybe-install-pdf-libcpp:
20897@if libcpp
20898maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 20899
a90ef4bf
JM
20900install-pdf-libcpp: \
20901 configure-libcpp \
20902 pdf-libcpp
20903 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
20904 r=`${PWD_COMMAND}`; export r; \
20905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20906 $(HOST_EXPORTS) \
a90ef4bf 20907 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
20908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20909 done; \
22121df0 20910 echo "Doing install-pdf in libcpp"; \
a90ef4bf 20911 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
20912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20914 "RANLIB=$${RANLIB}" \
0c24b341 20915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
20916 install-pdf) \
20917 || exit 1
20918
a90ef4bf 20919@endif libcpp
a3ca38d2 20920
a90ef4bf
JM
20921.PHONY: maybe-install-html-libcpp install-html-libcpp
20922maybe-install-html-libcpp:
20923@if libcpp
20924maybe-install-html-libcpp: install-html-libcpp
4b900473 20925
a90ef4bf
JM
20926install-html-libcpp: \
20927 configure-libcpp \
20928 html-libcpp
20929 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20930 r=`${PWD_COMMAND}`; export r; \
20931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20932 $(HOST_EXPORTS) \
a90ef4bf 20933 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20935 done; \
22121df0 20936 echo "Doing install-html in libcpp"; \
a90ef4bf 20937 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20940 "RANLIB=$${RANLIB}" \
0c24b341 20941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20942 install-html) \
20943 || exit 1
20944
a90ef4bf 20945@endif libcpp
4b900473 20946
a90ef4bf
JM
20947.PHONY: maybe-installcheck-libcpp installcheck-libcpp
20948maybe-installcheck-libcpp:
20949@if libcpp
20950maybe-installcheck-libcpp: installcheck-libcpp
4b900473 20951
a90ef4bf
JM
20952installcheck-libcpp: \
20953 configure-libcpp
20954 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20955 r=`${PWD_COMMAND}`; export r; \
20956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20957 $(HOST_EXPORTS) \
a90ef4bf 20958 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20960 done; \
22121df0 20961 echo "Doing installcheck in libcpp"; \
a90ef4bf 20962 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20965 "RANLIB=$${RANLIB}" \
0c24b341 20966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20967 installcheck) \
20968 || exit 1
20969
a90ef4bf 20970@endif libcpp
4b900473 20971
a90ef4bf
JM
20972.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
20973maybe-mostlyclean-libcpp:
20974@if libcpp
20975maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 20976
a90ef4bf
JM
20977mostlyclean-libcpp:
20978 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20979 r=`${PWD_COMMAND}`; export r; \
20980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20981 $(HOST_EXPORTS) \
a90ef4bf 20982 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20984 done; \
22121df0 20985 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 20986 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20989 "RANLIB=$${RANLIB}" \
0c24b341 20990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20991 mostlyclean) \
20992 || exit 1
20993
a90ef4bf 20994@endif libcpp
4b900473 20995
a90ef4bf
JM
20996.PHONY: maybe-clean-libcpp clean-libcpp
20997maybe-clean-libcpp:
20998@if libcpp
20999maybe-clean-libcpp: clean-libcpp
4b900473 21000
a90ef4bf
JM
21001clean-libcpp:
21002 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21003 r=`${PWD_COMMAND}`; export r; \
21004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21005 $(HOST_EXPORTS) \
a90ef4bf 21006 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21008 done; \
22121df0 21009 echo "Doing clean in libcpp"; \
a90ef4bf 21010 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21013 "RANLIB=$${RANLIB}" \
0c24b341 21014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21015 clean) \
21016 || exit 1
21017
a90ef4bf 21018@endif libcpp
4b900473 21019
a90ef4bf
JM
21020.PHONY: maybe-distclean-libcpp distclean-libcpp
21021maybe-distclean-libcpp:
21022@if libcpp
21023maybe-distclean-libcpp: distclean-libcpp
4b900473 21024
a90ef4bf
JM
21025distclean-libcpp:
21026 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21027 r=`${PWD_COMMAND}`; export r; \
21028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21029 $(HOST_EXPORTS) \
a90ef4bf 21030 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21032 done; \
22121df0 21033 echo "Doing distclean in libcpp"; \
a90ef4bf 21034 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21037 "RANLIB=$${RANLIB}" \
0c24b341 21038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21039 distclean) \
21040 || exit 1
21041
a90ef4bf 21042@endif libcpp
4b900473 21043
a90ef4bf
JM
21044.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21045maybe-maintainer-clean-libcpp:
21046@if libcpp
21047maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21048
a90ef4bf
JM
21049maintainer-clean-libcpp:
21050 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21051 r=`${PWD_COMMAND}`; export r; \
21052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21053 $(HOST_EXPORTS) \
a90ef4bf 21054 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21056 done; \
22121df0 21057 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21058 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21061 "RANLIB=$${RANLIB}" \
0c24b341 21062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21063 maintainer-clean) \
21064 || exit 1
21065
a90ef4bf 21066@endif libcpp
4b900473
PB
21067
21068
21069
a90ef4bf
JM
21070.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21071maybe-configure-libdecnumber:
1f53ca9a 21072@if gcc-bootstrap
a90ef4bf 21073configure-libdecnumber: stage_current
1f53ca9a 21074@endif gcc-bootstrap
a90ef4bf
JM
21075@if libdecnumber
21076maybe-configure-libdecnumber: configure-libdecnumber
21077configure-libdecnumber:
1f53ca9a
AO
21078 @r=`${PWD_COMMAND}`; export r; \
21079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21080 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21081 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21082 $(HOST_EXPORTS) \
a90ef4bf
JM
21083 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21084 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21085 case $(srcdir) in \
21086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21087 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21089 esac; \
1b6c0831
L
21090 module_srcdir=libdecnumber; \
21091 $(SHELL) \
21092 $$s/$$module_srcdir/configure \
21093 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21094 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21095 --target=${target_alias} \
1f53ca9a 21096 || exit 1
a90ef4bf 21097@endif libdecnumber
1f53ca9a
AO
21098
21099
21100
a90ef4bf
JM
21101.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21102maybe-configure-stage1-libdecnumber:
21103@if libdecnumber-bootstrap
21104maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21105configure-stage1-libdecnumber:
1f53ca9a 21106 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21107 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21108 @r=`${PWD_COMMAND}`; export r; \
21109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21110 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21111 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21112 $(HOST_EXPORTS) \
21113 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21114 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21115 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21116 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21117 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21118 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21119 case $(srcdir) in \
21120 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21121 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21122 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21123 esac; \
1b6c0831
L
21124 module_srcdir=libdecnumber; \
21125 $(SHELL) $$s/$$module_srcdir/configure \
21126 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21127 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21128 --target=${target_alias} \
21129 \
a90ef4bf
JM
21130 $(STAGE1_CONFIGURE_FLAGS)
21131@endif libdecnumber-bootstrap
1f53ca9a 21132
a90ef4bf
JM
21133.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21134maybe-configure-stage2-libdecnumber:
21135@if libdecnumber-bootstrap
21136maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21137configure-stage2-libdecnumber:
1f53ca9a 21138 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21139 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21140 @r=`${PWD_COMMAND}`; export r; \
21141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21142 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21143 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21144 $(HOST_EXPORTS) \
21145 $(POSTSTAGE1_HOST_EXPORTS) \
21146 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21147 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21148 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21149 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21150 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21151 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21152 case $(srcdir) in \
21153 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21154 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21155 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21156 esac; \
1b6c0831
L
21157 module_srcdir=libdecnumber; \
21158 $(SHELL) $$s/$$module_srcdir/configure \
21159 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21160 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21161 --target=${target_alias} \
22121df0 21162 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21163 $(STAGE2_CONFIGURE_FLAGS)
21164@endif libdecnumber-bootstrap
1f53ca9a 21165
a90ef4bf
JM
21166.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21167maybe-configure-stage3-libdecnumber:
21168@if libdecnumber-bootstrap
21169maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21170configure-stage3-libdecnumber:
1f53ca9a 21171 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21172 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21173 @r=`${PWD_COMMAND}`; export r; \
21174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21175 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21176 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21177 $(HOST_EXPORTS) \
21178 $(POSTSTAGE1_HOST_EXPORTS) \
21179 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21180 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21181 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21182 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21183 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21184 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21185 case $(srcdir) in \
21186 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21187 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21188 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21189 esac; \
1b6c0831
L
21190 module_srcdir=libdecnumber; \
21191 $(SHELL) $$s/$$module_srcdir/configure \
21192 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21193 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21194 --target=${target_alias} \
22121df0 21195 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21196 $(STAGE3_CONFIGURE_FLAGS)
21197@endif libdecnumber-bootstrap
1f53ca9a 21198
a90ef4bf
JM
21199.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21200maybe-configure-stage4-libdecnumber:
21201@if libdecnumber-bootstrap
21202maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21203configure-stage4-libdecnumber:
1f53ca9a 21204 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21205 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21206 @r=`${PWD_COMMAND}`; export r; \
21207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21208 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21209 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21210 $(HOST_EXPORTS) \
21211 $(POSTSTAGE1_HOST_EXPORTS) \
21212 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21213 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21214 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21215 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21216 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21217 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21218 case $(srcdir) in \
21219 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21220 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21221 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21222 esac; \
1b6c0831
L
21223 module_srcdir=libdecnumber; \
21224 $(SHELL) $$s/$$module_srcdir/configure \
21225 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21226 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21227 --target=${target_alias} \
22121df0 21228 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21229 $(STAGE4_CONFIGURE_FLAGS)
21230@endif libdecnumber-bootstrap
1f53ca9a 21231
a90ef4bf
JM
21232.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21233maybe-configure-stageprofile-libdecnumber:
21234@if libdecnumber-bootstrap
21235maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21236configure-stageprofile-libdecnumber:
1f53ca9a 21237 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21238 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21239 @r=`${PWD_COMMAND}`; export r; \
21240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21241 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21242 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21243 $(HOST_EXPORTS) \
21244 $(POSTSTAGE1_HOST_EXPORTS) \
21245 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21246 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21247 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21248 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21249 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21250 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21251 case $(srcdir) in \
21252 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21253 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21254 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21255 esac; \
1b6c0831
L
21256 module_srcdir=libdecnumber; \
21257 $(SHELL) $$s/$$module_srcdir/configure \
21258 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21259 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21260 --target=${target_alias} \
22121df0 21261 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21262 $(STAGEprofile_CONFIGURE_FLAGS)
21263@endif libdecnumber-bootstrap
1f53ca9a 21264
a90ef4bf
JM
21265.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21266maybe-configure-stagefeedback-libdecnumber:
21267@if libdecnumber-bootstrap
21268maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21269configure-stagefeedback-libdecnumber:
1f53ca9a 21270 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21271 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21272 @r=`${PWD_COMMAND}`; export r; \
21273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21274 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21275 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21276 $(HOST_EXPORTS) \
21277 $(POSTSTAGE1_HOST_EXPORTS) \
21278 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21279 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21280 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21281 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21283 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21284 case $(srcdir) in \
21285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21286 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21288 esac; \
1b6c0831
L
21289 module_srcdir=libdecnumber; \
21290 $(SHELL) $$s/$$module_srcdir/configure \
21291 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21292 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21293 --target=${target_alias} \
22121df0 21294 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21295 $(STAGEfeedback_CONFIGURE_FLAGS)
21296@endif libdecnumber-bootstrap
1f53ca9a
AO
21297
21298
21299
21300
21301
a90ef4bf
JM
21302.PHONY: all-libdecnumber maybe-all-libdecnumber
21303maybe-all-libdecnumber:
1f53ca9a 21304@if gcc-bootstrap
a90ef4bf 21305all-libdecnumber: stage_current
1f53ca9a 21306@endif gcc-bootstrap
a90ef4bf
JM
21307@if libdecnumber
21308TARGET-libdecnumber=all
21309maybe-all-libdecnumber: all-libdecnumber
21310all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21311 @r=`${PWD_COMMAND}`; export r; \
21312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21313 $(HOST_EXPORTS) \
a90ef4bf 21314 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21315 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21316 $(TARGET-libdecnumber))
21317@endif libdecnumber
1f53ca9a
AO
21318
21319
21320
a90ef4bf
JM
21321.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21322.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21323maybe-all-stage1-libdecnumber:
21324maybe-clean-stage1-libdecnumber:
21325@if libdecnumber-bootstrap
21326maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21327all-stage1: all-stage1-libdecnumber
21328TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21329all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21330 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21331 @r=`${PWD_COMMAND}`; export r; \
21332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21333 TFLAGS="$(STAGE1_TFLAGS)"; \
21334 $(HOST_EXPORTS) \
a90ef4bf 21335 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21336 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21337 CFLAGS="$(STAGE1_CFLAGS)" \
21338 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21339 LIBCFLAGS="$(LIBCFLAGS)" \
21340 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21341 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21342 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21343 $(EXTRA_HOST_FLAGS) \
21344 $(STAGE1_FLAGS_TO_PASS) \
1f53ca9a 21345 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21346 $(TARGET-stage1-libdecnumber)
1f53ca9a 21347
a90ef4bf
JM
21348maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21349clean-stage1: clean-stage1-libdecnumber
21350clean-stage1-libdecnumber:
1f53ca9a 21351 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21352 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21353 else \
a90ef4bf 21354 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21355 $(MAKE) stage1-start; \
21356 fi; \
a90ef4bf 21357 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21358 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21359 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21360@endif libdecnumber-bootstrap
1f53ca9a
AO
21361
21362
a90ef4bf
JM
21363.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21364.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21365maybe-all-stage2-libdecnumber:
21366maybe-clean-stage2-libdecnumber:
21367@if libdecnumber-bootstrap
21368maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21369all-stage2: all-stage2-libdecnumber
21370TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21371all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21372 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21373 @r=`${PWD_COMMAND}`; export r; \
21374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21375 TFLAGS="$(STAGE2_TFLAGS)"; \
21376 $(HOST_EXPORTS) \
21377 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21378 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21379 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21380 CFLAGS="$(STAGE2_CFLAGS)" \
21381 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21382 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21383 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21384 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21385 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21386 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21387 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21388 $(TARGET-stage2-libdecnumber)
1f53ca9a 21389
a90ef4bf
JM
21390maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21391clean-stage2: clean-stage2-libdecnumber
21392clean-stage2-libdecnumber:
1f53ca9a 21393 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21394 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21395 else \
a90ef4bf 21396 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21397 $(MAKE) stage2-start; \
21398 fi; \
a90ef4bf 21399 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21400 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21401@endif libdecnumber-bootstrap
1f53ca9a
AO
21402
21403
a90ef4bf
JM
21404.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21405.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21406maybe-all-stage3-libdecnumber:
21407maybe-clean-stage3-libdecnumber:
21408@if libdecnumber-bootstrap
21409maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21410all-stage3: all-stage3-libdecnumber
21411TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21412all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21413 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21414 @r=`${PWD_COMMAND}`; export r; \
21415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21416 TFLAGS="$(STAGE3_TFLAGS)"; \
21417 $(HOST_EXPORTS) \
21418 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21419 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21420 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21421 CFLAGS="$(STAGE3_CFLAGS)" \
21422 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21423 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21427 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21428 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21429 $(TARGET-stage3-libdecnumber)
1f53ca9a 21430
a90ef4bf
JM
21431maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21432clean-stage3: clean-stage3-libdecnumber
21433clean-stage3-libdecnumber:
1f53ca9a 21434 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21435 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21436 else \
a90ef4bf 21437 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21438 $(MAKE) stage3-start; \
21439 fi; \
a90ef4bf 21440 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21441 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21442@endif libdecnumber-bootstrap
1f53ca9a
AO
21443
21444
a90ef4bf
JM
21445.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21446.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21447maybe-all-stage4-libdecnumber:
21448maybe-clean-stage4-libdecnumber:
21449@if libdecnumber-bootstrap
21450maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21451all-stage4: all-stage4-libdecnumber
21452TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21453all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21454 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21455 @r=`${PWD_COMMAND}`; export r; \
21456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21457 TFLAGS="$(STAGE4_TFLAGS)"; \
21458 $(HOST_EXPORTS) \
21459 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21460 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21461 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21462 CFLAGS="$(STAGE4_CFLAGS)" \
21463 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21464 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21465 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21466 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21467 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21468 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21469 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21470 $(TARGET-stage4-libdecnumber)
1f53ca9a 21471
a90ef4bf
JM
21472maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21473clean-stage4: clean-stage4-libdecnumber
21474clean-stage4-libdecnumber:
1f53ca9a 21475 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21476 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21477 else \
a90ef4bf 21478 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21479 $(MAKE) stage4-start; \
21480 fi; \
a90ef4bf 21481 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21482 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21483@endif libdecnumber-bootstrap
1f53ca9a
AO
21484
21485
a90ef4bf
JM
21486.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21487.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21488maybe-all-stageprofile-libdecnumber:
21489maybe-clean-stageprofile-libdecnumber:
21490@if libdecnumber-bootstrap
21491maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21492all-stageprofile: all-stageprofile-libdecnumber
21493TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21494all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21495 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21496 @r=`${PWD_COMMAND}`; export r; \
21497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21498 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21499 $(HOST_EXPORTS) \
21500 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21501 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21502 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21503 CFLAGS="$(STAGEprofile_CFLAGS)" \
21504 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21505 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21506 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21507 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21508 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21509 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21510 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21511 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21512
a90ef4bf
JM
21513maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21514clean-stageprofile: clean-stageprofile-libdecnumber
21515clean-stageprofile-libdecnumber:
1f53ca9a 21516 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21517 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21518 else \
a90ef4bf 21519 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21520 $(MAKE) stageprofile-start; \
21521 fi; \
a90ef4bf 21522 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21523 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21524@endif libdecnumber-bootstrap
1f53ca9a
AO
21525
21526
a90ef4bf
JM
21527.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21528.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21529maybe-all-stagefeedback-libdecnumber:
21530maybe-clean-stagefeedback-libdecnumber:
21531@if libdecnumber-bootstrap
21532maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21533all-stagefeedback: all-stagefeedback-libdecnumber
21534TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21535all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21536 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21537 @r=`${PWD_COMMAND}`; export r; \
21538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21539 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21540 $(HOST_EXPORTS) \
21541 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21542 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21543 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21544 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21545 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21546 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21547 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21548 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21549 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21550 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21551 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21552 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21553
a90ef4bf
JM
21554maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21555clean-stagefeedback: clean-stagefeedback-libdecnumber
21556clean-stagefeedback-libdecnumber:
1f53ca9a 21557 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21558 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21559 else \
a90ef4bf 21560 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21561 $(MAKE) stagefeedback-start; \
21562 fi; \
a90ef4bf 21563 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21564 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21565@endif libdecnumber-bootstrap
1f53ca9a
AO
21566
21567
21568
21569
21570
a90ef4bf
JM
21571.PHONY: check-libdecnumber maybe-check-libdecnumber
21572maybe-check-libdecnumber:
21573@if libdecnumber
21574maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21575
a90ef4bf 21576check-libdecnumber:
1f53ca9a
AO
21577 @: $(MAKE); $(unstage)
21578 @r=`${PWD_COMMAND}`; export r; \
21579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21580 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21581 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21582 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21583
a90ef4bf 21584@endif libdecnumber
1f53ca9a 21585
a90ef4bf
JM
21586.PHONY: install-libdecnumber maybe-install-libdecnumber
21587maybe-install-libdecnumber:
21588@if libdecnumber
21589maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21590
a90ef4bf
JM
21591install-libdecnumber: installdirs
21592 @: $(MAKE); $(unstage)
21593 @r=`${PWD_COMMAND}`; export r; \
21594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21595 $(HOST_EXPORTS) \
21596 (cd $(HOST_SUBDIR)/libdecnumber && \
21597 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21598
a90ef4bf 21599@endif libdecnumber
1f53ca9a 21600
a90ef4bf
JM
21601.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21602maybe-install-strip-libdecnumber:
21603@if libdecnumber
21604maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21605
a90ef4bf
JM
21606install-strip-libdecnumber: installdirs
21607 @: $(MAKE); $(unstage)
21608 @r=`${PWD_COMMAND}`; export r; \
21609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21610 $(HOST_EXPORTS) \
21611 (cd $(HOST_SUBDIR)/libdecnumber && \
21612 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21613
a90ef4bf 21614@endif libdecnumber
9b980aa1 21615
1f53ca9a
AO
21616# Other targets (info, dvi, pdf, etc.)
21617
a90ef4bf
JM
21618.PHONY: maybe-info-libdecnumber info-libdecnumber
21619maybe-info-libdecnumber:
21620@if libdecnumber
21621maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21622
a90ef4bf
JM
21623info-libdecnumber: \
21624 configure-libdecnumber
21625 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21626 r=`${PWD_COMMAND}`; export r; \
21627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21628 $(HOST_EXPORTS) \
21629 for flag in $(EXTRA_HOST_FLAGS) ; do \
21630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21631 done; \
22121df0 21632 echo "Doing info in libdecnumber"; \
a90ef4bf 21633 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21636 "RANLIB=$${RANLIB}" \
21637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21638 info) \
21639 || exit 1
21640
a90ef4bf 21641@endif libdecnumber
1f53ca9a 21642
a90ef4bf
JM
21643.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21644maybe-dvi-libdecnumber:
21645@if libdecnumber
21646maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21647
a90ef4bf
JM
21648dvi-libdecnumber: \
21649 configure-libdecnumber
21650 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21651 r=`${PWD_COMMAND}`; export r; \
21652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21653 $(HOST_EXPORTS) \
21654 for flag in $(EXTRA_HOST_FLAGS) ; do \
21655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21656 done; \
22121df0 21657 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21658 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21661 "RANLIB=$${RANLIB}" \
21662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21663 dvi) \
21664 || exit 1
21665
a90ef4bf 21666@endif libdecnumber
1f53ca9a 21667
a90ef4bf
JM
21668.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21669maybe-pdf-libdecnumber:
21670@if libdecnumber
21671maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21672
a90ef4bf
JM
21673pdf-libdecnumber: \
21674 configure-libdecnumber
21675 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21676 r=`${PWD_COMMAND}`; export r; \
21677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21678 $(HOST_EXPORTS) \
21679 for flag in $(EXTRA_HOST_FLAGS) ; do \
21680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21681 done; \
22121df0 21682 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21683 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21686 "RANLIB=$${RANLIB}" \
21687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21688 pdf) \
21689 || exit 1
21690
a90ef4bf 21691@endif libdecnumber
1f53ca9a 21692
a90ef4bf
JM
21693.PHONY: maybe-html-libdecnumber html-libdecnumber
21694maybe-html-libdecnumber:
21695@if libdecnumber
21696maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21697
a90ef4bf
JM
21698html-libdecnumber: \
21699 configure-libdecnumber
21700 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21701 r=`${PWD_COMMAND}`; export r; \
21702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21703 $(HOST_EXPORTS) \
21704 for flag in $(EXTRA_HOST_FLAGS) ; do \
21705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21706 done; \
22121df0 21707 echo "Doing html in libdecnumber"; \
a90ef4bf 21708 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21711 "RANLIB=$${RANLIB}" \
21712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21713 html) \
21714 || exit 1
21715
a90ef4bf 21716@endif libdecnumber
1f53ca9a 21717
a90ef4bf
JM
21718.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21719maybe-TAGS-libdecnumber:
21720@if libdecnumber
21721maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21722
a90ef4bf
JM
21723TAGS-libdecnumber: \
21724 configure-libdecnumber
21725 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21726 r=`${PWD_COMMAND}`; export r; \
21727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21728 $(HOST_EXPORTS) \
21729 for flag in $(EXTRA_HOST_FLAGS) ; do \
21730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21731 done; \
22121df0 21732 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21733 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21736 "RANLIB=$${RANLIB}" \
21737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21738 TAGS) \
21739 || exit 1
21740
a90ef4bf 21741@endif libdecnumber
1f53ca9a 21742
a90ef4bf
JM
21743.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21744maybe-install-info-libdecnumber:
21745@if libdecnumber
21746maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21747
a90ef4bf
JM
21748install-info-libdecnumber: \
21749 configure-libdecnumber \
21750 info-libdecnumber
21751 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21752 r=`${PWD_COMMAND}`; export r; \
21753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21754 $(HOST_EXPORTS) \
21755 for flag in $(EXTRA_HOST_FLAGS) ; do \
21756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21757 done; \
22121df0 21758 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21759 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21762 "RANLIB=$${RANLIB}" \
21763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21764 install-info) \
21765 || exit 1
21766
a90ef4bf 21767@endif libdecnumber
1f53ca9a 21768
a90ef4bf
JM
21769.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21770maybe-install-pdf-libdecnumber:
21771@if libdecnumber
21772maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21773
a90ef4bf
JM
21774install-pdf-libdecnumber: \
21775 configure-libdecnumber \
21776 pdf-libdecnumber
21777 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21778 r=`${PWD_COMMAND}`; export r; \
21779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21780 $(HOST_EXPORTS) \
21781 for flag in $(EXTRA_HOST_FLAGS) ; do \
21782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21783 done; \
22121df0 21784 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21785 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21788 "RANLIB=$${RANLIB}" \
21789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21790 install-pdf) \
21791 || exit 1
21792
a90ef4bf 21793@endif libdecnumber
1f53ca9a 21794
a90ef4bf
JM
21795.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21796maybe-install-html-libdecnumber:
21797@if libdecnumber
21798maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21799
a90ef4bf
JM
21800install-html-libdecnumber: \
21801 configure-libdecnumber \
21802 html-libdecnumber
21803 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21804 r=`${PWD_COMMAND}`; export r; \
21805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21806 $(HOST_EXPORTS) \
21807 for flag in $(EXTRA_HOST_FLAGS) ; do \
21808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21809 done; \
22121df0 21810 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21811 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21814 "RANLIB=$${RANLIB}" \
21815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21816 install-html) \
21817 || exit 1
21818
a90ef4bf 21819@endif libdecnumber
1f53ca9a 21820
a90ef4bf
JM
21821.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21822maybe-installcheck-libdecnumber:
21823@if libdecnumber
21824maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21825
a90ef4bf
JM
21826installcheck-libdecnumber: \
21827 configure-libdecnumber
21828 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21829 r=`${PWD_COMMAND}`; export r; \
21830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21831 $(HOST_EXPORTS) \
21832 for flag in $(EXTRA_HOST_FLAGS) ; do \
21833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21834 done; \
22121df0 21835 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21836 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21839 "RANLIB=$${RANLIB}" \
21840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21841 installcheck) \
21842 || exit 1
21843
a90ef4bf 21844@endif libdecnumber
1f53ca9a 21845
a90ef4bf
JM
21846.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21847maybe-mostlyclean-libdecnumber:
21848@if libdecnumber
21849maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21850
a90ef4bf
JM
21851mostlyclean-libdecnumber:
21852 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21853 r=`${PWD_COMMAND}`; export r; \
21854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21855 $(HOST_EXPORTS) \
21856 for flag in $(EXTRA_HOST_FLAGS) ; do \
21857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21858 done; \
22121df0 21859 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 21860 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21863 "RANLIB=$${RANLIB}" \
21864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21865 mostlyclean) \
21866 || exit 1
21867
a90ef4bf 21868@endif libdecnumber
1f53ca9a 21869
a90ef4bf
JM
21870.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21871maybe-clean-libdecnumber:
21872@if libdecnumber
21873maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21874
a90ef4bf
JM
21875clean-libdecnumber:
21876 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21877 r=`${PWD_COMMAND}`; export r; \
21878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21879 $(HOST_EXPORTS) \
21880 for flag in $(EXTRA_HOST_FLAGS) ; do \
21881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21882 done; \
22121df0 21883 echo "Doing clean in libdecnumber"; \
a90ef4bf 21884 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21887 "RANLIB=$${RANLIB}" \
21888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21889 clean) \
21890 || exit 1
21891
a90ef4bf 21892@endif libdecnumber
1f53ca9a 21893
a90ef4bf
JM
21894.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
21895maybe-distclean-libdecnumber:
21896@if libdecnumber
21897maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 21898
a90ef4bf
JM
21899distclean-libdecnumber:
21900 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21901 r=`${PWD_COMMAND}`; export r; \
21902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21903 $(HOST_EXPORTS) \
21904 for flag in $(EXTRA_HOST_FLAGS) ; do \
21905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21906 done; \
22121df0 21907 echo "Doing distclean in libdecnumber"; \
a90ef4bf 21908 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21911 "RANLIB=$${RANLIB}" \
21912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21913 distclean) \
21914 || exit 1
21915
a90ef4bf 21916@endif libdecnumber
1f53ca9a 21917
a90ef4bf
JM
21918.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
21919maybe-maintainer-clean-libdecnumber:
21920@if libdecnumber
21921maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 21922
a90ef4bf
JM
21923maintainer-clean-libdecnumber:
21924 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21925 r=`${PWD_COMMAND}`; export r; \
21926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21927 $(HOST_EXPORTS) \
21928 for flag in $(EXTRA_HOST_FLAGS) ; do \
21929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21930 done; \
22121df0 21931 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 21932 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21935 "RANLIB=$${RANLIB}" \
21936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21937 maintainer-clean) \
21938 || exit 1
21939
a90ef4bf 21940@endif libdecnumber
1f53ca9a
AO
21941
21942
21943
a90ef4bf
JM
21944.PHONY: configure-libgui maybe-configure-libgui
21945maybe-configure-libgui:
4f0ef2d8 21946@if gcc-bootstrap
a90ef4bf 21947configure-libgui: stage_current
4f0ef2d8 21948@endif gcc-bootstrap
a90ef4bf
JM
21949@if libgui
21950maybe-configure-libgui: configure-libgui
21951configure-libgui:
0aed8855 21952 @: $(MAKE); $(unstage)
c52c6897 21953 @r=`${PWD_COMMAND}`; export r; \
4fa63067 21954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21955 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 21956 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 21957 $(HOST_EXPORTS) \
a90ef4bf
JM
21958 echo Configuring in $(HOST_SUBDIR)/libgui; \
21959 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 21960 case $(srcdir) in \
b00612cc 21961 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21962 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 21963 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 21964 esac; \
1b6c0831
L
21965 module_srcdir=libgui; \
21966 $(SHELL) \
21967 $$s/$$module_srcdir/configure \
21968 --srcdir=$${topdir}/$$module_srcdir \
4b900473 21969 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21970 --target=${target_alias} \
2a4cbe27 21971 || exit 1
a90ef4bf 21972@endif libgui
2a4cbe27 21973
a7254363
PB
21974
21975
d545f33b
PB
21976
21977
a90ef4bf
JM
21978.PHONY: all-libgui maybe-all-libgui
21979maybe-all-libgui:
4f0ef2d8 21980@if gcc-bootstrap
a90ef4bf 21981all-libgui: stage_current
4f0ef2d8 21982@endif gcc-bootstrap
a90ef4bf
JM
21983@if libgui
21984TARGET-libgui=all
21985maybe-all-libgui: all-libgui
21986all-libgui: configure-libgui
0aed8855 21987 @: $(MAKE); $(unstage)
4fa63067
NN
21988 @r=`${PWD_COMMAND}`; export r; \
21989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 21990 $(HOST_EXPORTS) \
a90ef4bf 21991 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 21992 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21993 $(TARGET-libgui))
21994@endif libgui
2a4cbe27 21995
a7254363 21996
d545f33b
PB
21997
21998
a90ef4bf
JM
21999.PHONY: check-libgui maybe-check-libgui
22000maybe-check-libgui:
22001@if libgui
22002maybe-check-libgui: check-libgui
2a4cbe27 22003
a90ef4bf 22004check-libgui:
0aed8855 22005 @: $(MAKE); $(unstage)
4fa63067 22006 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22008 $(HOST_EXPORTS) \
a90ef4bf 22009 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22010 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22011
a90ef4bf 22012@endif libgui
2a4cbe27 22013
a90ef4bf
JM
22014.PHONY: install-libgui maybe-install-libgui
22015maybe-install-libgui:
22016@if libgui
22017maybe-install-libgui: install-libgui
2a4cbe27 22018
a90ef4bf 22019install-libgui: installdirs
0aed8855 22020 @: $(MAKE); $(unstage)
4fa63067 22021 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22023 $(HOST_EXPORTS) \
a90ef4bf 22024 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22025 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22026
a90ef4bf 22027@endif libgui
2a4cbe27 22028
a90ef4bf
JM
22029.PHONY: install-strip-libgui maybe-install-strip-libgui
22030maybe-install-strip-libgui:
22031@if libgui
22032maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22033
a90ef4bf 22034install-strip-libgui: installdirs
9b980aa1
RW
22035 @: $(MAKE); $(unstage)
22036 @r=`${PWD_COMMAND}`; export r; \
22037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22038 $(HOST_EXPORTS) \
a90ef4bf 22039 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22040 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22041
a90ef4bf 22042@endif libgui
9b980aa1 22043
56a8fe78 22044# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22045
a90ef4bf
JM
22046.PHONY: maybe-info-libgui info-libgui
22047maybe-info-libgui:
22048@if libgui
22049maybe-info-libgui: info-libgui
4fa63067 22050
a90ef4bf
JM
22051info-libgui: \
22052 configure-libgui
0aed8855 22053 @: $(MAKE); $(unstage)
a90ef4bf 22054 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22055 r=`${PWD_COMMAND}`; export r; \
22056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22057 $(HOST_EXPORTS) \
b813574b 22058 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22060 done; \
22121df0 22061 echo "Doing info in libgui"; \
a90ef4bf 22062 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22065 "RANLIB=$${RANLIB}" \
0c24b341 22066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22067 info) \
2a4cbe27
NN
22068 || exit 1
22069
a90ef4bf 22070@endif libgui
2a4cbe27 22071
a90ef4bf
JM
22072.PHONY: maybe-dvi-libgui dvi-libgui
22073maybe-dvi-libgui:
22074@if libgui
22075maybe-dvi-libgui: dvi-libgui
2a4cbe27 22076
a90ef4bf
JM
22077dvi-libgui: \
22078 configure-libgui
0aed8855 22079 @: $(MAKE); $(unstage)
a90ef4bf 22080 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22081 r=`${PWD_COMMAND}`; export r; \
22082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22083 $(HOST_EXPORTS) \
b813574b 22084 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22086 done; \
22121df0 22087 echo "Doing dvi in libgui"; \
a90ef4bf 22088 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22091 "RANLIB=$${RANLIB}" \
0c24b341 22092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22093 dvi) \
2a4cbe27
NN
22094 || exit 1
22095
a90ef4bf 22096@endif libgui
2a4cbe27 22097
a90ef4bf
JM
22098.PHONY: maybe-pdf-libgui pdf-libgui
22099maybe-pdf-libgui:
22100@if libgui
22101maybe-pdf-libgui: pdf-libgui
56a8fe78 22102
a90ef4bf
JM
22103pdf-libgui: \
22104 configure-libgui
56a8fe78 22105 @: $(MAKE); $(unstage)
a90ef4bf 22106 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22107 r=`${PWD_COMMAND}`; export r; \
22108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22109 $(HOST_EXPORTS) \
22110 for flag in $(EXTRA_HOST_FLAGS) ; do \
22111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22112 done; \
22121df0 22113 echo "Doing pdf in libgui"; \
a90ef4bf 22114 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22117 "RANLIB=$${RANLIB}" \
0c24b341 22118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22119 pdf) \
22120 || exit 1
22121
a90ef4bf 22122@endif libgui
56a8fe78 22123
a90ef4bf
JM
22124.PHONY: maybe-html-libgui html-libgui
22125maybe-html-libgui:
22126@if libgui
22127maybe-html-libgui: html-libgui
6d389afc 22128
a90ef4bf
JM
22129html-libgui: \
22130 configure-libgui
0aed8855 22131 @: $(MAKE); $(unstage)
a90ef4bf 22132 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22133 r=`${PWD_COMMAND}`; export r; \
22134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22135 $(HOST_EXPORTS) \
22136 for flag in $(EXTRA_HOST_FLAGS) ; do \
22137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22138 done; \
22121df0 22139 echo "Doing html in libgui"; \
a90ef4bf 22140 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22143 "RANLIB=$${RANLIB}" \
0c24b341 22144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22145 html) \
22146 || exit 1
22147
a90ef4bf 22148@endif libgui
6d389afc 22149
a90ef4bf
JM
22150.PHONY: maybe-TAGS-libgui TAGS-libgui
22151maybe-TAGS-libgui:
22152@if libgui
22153maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22154
a90ef4bf
JM
22155TAGS-libgui: \
22156 configure-libgui
0aed8855 22157 @: $(MAKE); $(unstage)
a90ef4bf 22158 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22159 r=`${PWD_COMMAND}`; export r; \
22160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22161 $(HOST_EXPORTS) \
b813574b 22162 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22164 done; \
22121df0 22165 echo "Doing TAGS in libgui"; \
a90ef4bf 22166 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22169 "RANLIB=$${RANLIB}" \
0c24b341 22170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22171 TAGS) \
2a4cbe27
NN
22172 || exit 1
22173
a90ef4bf 22174@endif libgui
2a4cbe27 22175
a90ef4bf
JM
22176.PHONY: maybe-install-info-libgui install-info-libgui
22177maybe-install-info-libgui:
22178@if libgui
22179maybe-install-info-libgui: install-info-libgui
2a4cbe27 22180
a90ef4bf
JM
22181install-info-libgui: \
22182 configure-libgui \
22183 info-libgui
0aed8855 22184 @: $(MAKE); $(unstage)
a90ef4bf 22185 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22186 r=`${PWD_COMMAND}`; export r; \
22187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22188 $(HOST_EXPORTS) \
b813574b 22189 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22191 done; \
22121df0 22192 echo "Doing install-info in libgui"; \
a90ef4bf 22193 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22196 "RANLIB=$${RANLIB}" \
0c24b341 22197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22198 install-info) \
2a4cbe27
NN
22199 || exit 1
22200
a90ef4bf 22201@endif libgui
2a4cbe27 22202
a90ef4bf
JM
22203.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22204maybe-install-pdf-libgui:
22205@if libgui
22206maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22207
a90ef4bf
JM
22208install-pdf-libgui: \
22209 configure-libgui \
22210 pdf-libgui
a3ca38d2 22211 @: $(MAKE); $(unstage)
a90ef4bf 22212 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22213 r=`${PWD_COMMAND}`; export r; \
22214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22215 $(HOST_EXPORTS) \
22216 for flag in $(EXTRA_HOST_FLAGS) ; do \
22217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22218 done; \
22121df0 22219 echo "Doing install-pdf in libgui"; \
a90ef4bf 22220 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22223 "RANLIB=$${RANLIB}" \
0c24b341 22224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22225 install-pdf) \
22226 || exit 1
22227
a90ef4bf 22228@endif libgui
a3ca38d2 22229
a90ef4bf
JM
22230.PHONY: maybe-install-html-libgui install-html-libgui
22231maybe-install-html-libgui:
22232@if libgui
22233maybe-install-html-libgui: install-html-libgui
108a6f8e 22234
a90ef4bf
JM
22235install-html-libgui: \
22236 configure-libgui \
22237 html-libgui
108a6f8e 22238 @: $(MAKE); $(unstage)
a90ef4bf 22239 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22240 r=`${PWD_COMMAND}`; export r; \
22241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22242 $(HOST_EXPORTS) \
22243 for flag in $(EXTRA_HOST_FLAGS) ; do \
22244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22245 done; \
22121df0 22246 echo "Doing install-html in libgui"; \
a90ef4bf 22247 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22250 "RANLIB=$${RANLIB}" \
0c24b341 22251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22252 install-html) \
22253 || exit 1
22254
a90ef4bf 22255@endif libgui
108a6f8e 22256
a90ef4bf
JM
22257.PHONY: maybe-installcheck-libgui installcheck-libgui
22258maybe-installcheck-libgui:
22259@if libgui
22260maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22261
a90ef4bf
JM
22262installcheck-libgui: \
22263 configure-libgui
0aed8855 22264 @: $(MAKE); $(unstage)
a90ef4bf 22265 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22266 r=`${PWD_COMMAND}`; export r; \
22267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22268 $(HOST_EXPORTS) \
b813574b 22269 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22271 done; \
22121df0 22272 echo "Doing installcheck in libgui"; \
a90ef4bf 22273 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22276 "RANLIB=$${RANLIB}" \
0c24b341 22277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22278 installcheck) \
2a4cbe27
NN
22279 || exit 1
22280
a90ef4bf 22281@endif libgui
2a4cbe27 22282
a90ef4bf
JM
22283.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22284maybe-mostlyclean-libgui:
22285@if libgui
22286maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22287
a90ef4bf 22288mostlyclean-libgui:
0aed8855 22289 @: $(MAKE); $(unstage)
a90ef4bf 22290 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22291 r=`${PWD_COMMAND}`; export r; \
22292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22293 $(HOST_EXPORTS) \
b813574b 22294 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22296 done; \
22121df0 22297 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22298 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22301 "RANLIB=$${RANLIB}" \
0c24b341 22302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22303 mostlyclean) \
2a4cbe27
NN
22304 || exit 1
22305
a90ef4bf 22306@endif libgui
2a4cbe27 22307
a90ef4bf
JM
22308.PHONY: maybe-clean-libgui clean-libgui
22309maybe-clean-libgui:
22310@if libgui
22311maybe-clean-libgui: clean-libgui
2a4cbe27 22312
a90ef4bf 22313clean-libgui:
0aed8855 22314 @: $(MAKE); $(unstage)
a90ef4bf 22315 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22316 r=`${PWD_COMMAND}`; export r; \
22317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22318 $(HOST_EXPORTS) \
b813574b 22319 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22321 done; \
22121df0 22322 echo "Doing clean in libgui"; \
a90ef4bf 22323 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22326 "RANLIB=$${RANLIB}" \
0c24b341 22327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22328 clean) \
2a4cbe27
NN
22329 || exit 1
22330
a90ef4bf 22331@endif libgui
2a4cbe27 22332
a90ef4bf
JM
22333.PHONY: maybe-distclean-libgui distclean-libgui
22334maybe-distclean-libgui:
22335@if libgui
22336maybe-distclean-libgui: distclean-libgui
2a4cbe27 22337
a90ef4bf 22338distclean-libgui:
0aed8855 22339 @: $(MAKE); $(unstage)
a90ef4bf 22340 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22341 r=`${PWD_COMMAND}`; export r; \
22342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22343 $(HOST_EXPORTS) \
b813574b 22344 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22346 done; \
22121df0 22347 echo "Doing distclean in libgui"; \
a90ef4bf 22348 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22351 "RANLIB=$${RANLIB}" \
0c24b341 22352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22353 distclean) \
2a4cbe27
NN
22354 || exit 1
22355
a90ef4bf 22356@endif libgui
2a4cbe27 22357
a90ef4bf
JM
22358.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22359maybe-maintainer-clean-libgui:
22360@if libgui
22361maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22362
a90ef4bf 22363maintainer-clean-libgui:
0aed8855 22364 @: $(MAKE); $(unstage)
a90ef4bf 22365 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22366 r=`${PWD_COMMAND}`; export r; \
22367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22368 $(HOST_EXPORTS) \
b813574b 22369 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22371 done; \
22121df0 22372 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22373 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22376 "RANLIB=$${RANLIB}" \
0c24b341 22377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22378 maintainer-clean) \
2a4cbe27
NN
22379 || exit 1
22380
a90ef4bf 22381@endif libgui
2a4cbe27 22382
2a4cbe27 22383
a7254363 22384
a90ef4bf
JM
22385.PHONY: configure-libiberty maybe-configure-libiberty
22386maybe-configure-libiberty:
93f9b408 22387@if gcc-bootstrap
a90ef4bf 22388configure-libiberty: stage_current
93f9b408 22389@endif gcc-bootstrap
a90ef4bf
JM
22390@if libiberty
22391maybe-configure-libiberty: configure-libiberty
22392configure-libiberty:
93f9b408
ILT
22393 @r=`${PWD_COMMAND}`; export r; \
22394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22395 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22396 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22397 $(HOST_EXPORTS) \
a90ef4bf
JM
22398 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22399 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22400 case $(srcdir) in \
22401 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22402 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22403 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22404 esac; \
1b6c0831
L
22405 module_srcdir=libiberty; \
22406 $(SHELL) \
22407 $$s/$$module_srcdir/configure \
22408 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22409 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22410 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22411 || exit 1
a90ef4bf 22412@endif libiberty
93f9b408
ILT
22413
22414
22415
a90ef4bf
JM
22416.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22417maybe-configure-stage1-libiberty:
22418@if libiberty-bootstrap
22419maybe-configure-stage1-libiberty: configure-stage1-libiberty
22420configure-stage1-libiberty:
93f9b408 22421 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22422 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22423 @r=`${PWD_COMMAND}`; export r; \
22424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22425 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22426 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22427 $(HOST_EXPORTS) \
93f9b408 22428 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22429 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22430 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22431 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22432 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22433 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22434 case $(srcdir) in \
22435 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22436 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22437 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22438 esac; \
1b6c0831
L
22439 module_srcdir=libiberty; \
22440 $(SHELL) $$s/$$module_srcdir/configure \
22441 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22442 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22443 --target=${target_alias} \
22444 \
a90ef4bf
JM
22445 $(STAGE1_CONFIGURE_FLAGS) \
22446 @extra_host_libiberty_configure_flags@
22447@endif libiberty-bootstrap
93f9b408 22448
a90ef4bf
JM
22449.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22450maybe-configure-stage2-libiberty:
22451@if libiberty-bootstrap
22452maybe-configure-stage2-libiberty: configure-stage2-libiberty
22453configure-stage2-libiberty:
93f9b408 22454 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22455 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22456 @r=`${PWD_COMMAND}`; export r; \
22457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22458 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22459 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22460 $(HOST_EXPORTS) \
1b05fbbd 22461 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22462 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22463 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22464 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22465 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22466 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22467 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22468 case $(srcdir) in \
22469 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22470 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22471 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22472 esac; \
1b6c0831
L
22473 module_srcdir=libiberty; \
22474 $(SHELL) $$s/$$module_srcdir/configure \
22475 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22476 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22477 --target=${target_alias} \
22121df0 22478 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22479 $(STAGE2_CONFIGURE_FLAGS) \
22480 @extra_host_libiberty_configure_flags@
22481@endif libiberty-bootstrap
93f9b408 22482
a90ef4bf
JM
22483.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22484maybe-configure-stage3-libiberty:
22485@if libiberty-bootstrap
22486maybe-configure-stage3-libiberty: configure-stage3-libiberty
22487configure-stage3-libiberty:
93f9b408 22488 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22489 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22490 @r=`${PWD_COMMAND}`; export r; \
22491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22492 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22493 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22494 $(HOST_EXPORTS) \
1b05fbbd 22495 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22496 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22497 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22498 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22499 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22500 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22501 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22502 case $(srcdir) in \
22503 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22504 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22505 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22506 esac; \
1b6c0831
L
22507 module_srcdir=libiberty; \
22508 $(SHELL) $$s/$$module_srcdir/configure \
22509 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22510 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22511 --target=${target_alias} \
22121df0 22512 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22513 $(STAGE3_CONFIGURE_FLAGS) \
22514 @extra_host_libiberty_configure_flags@
22515@endif libiberty-bootstrap
93f9b408 22516
a90ef4bf
JM
22517.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22518maybe-configure-stage4-libiberty:
22519@if libiberty-bootstrap
22520maybe-configure-stage4-libiberty: configure-stage4-libiberty
22521configure-stage4-libiberty:
93f9b408 22522 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22523 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22524 @r=`${PWD_COMMAND}`; export r; \
22525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22526 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22527 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22528 $(HOST_EXPORTS) \
1b05fbbd 22529 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22530 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22531 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22532 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22533 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22534 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22535 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22536 case $(srcdir) in \
22537 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22538 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22539 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22540 esac; \
1b6c0831
L
22541 module_srcdir=libiberty; \
22542 $(SHELL) $$s/$$module_srcdir/configure \
22543 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22544 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22545 --target=${target_alias} \
22121df0 22546 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22547 $(STAGE4_CONFIGURE_FLAGS) \
22548 @extra_host_libiberty_configure_flags@
22549@endif libiberty-bootstrap
93f9b408 22550
a90ef4bf
JM
22551.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22552maybe-configure-stageprofile-libiberty:
22553@if libiberty-bootstrap
22554maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22555configure-stageprofile-libiberty:
93f9b408 22556 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22557 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22558 @r=`${PWD_COMMAND}`; export r; \
22559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22560 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22561 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22562 $(HOST_EXPORTS) \
1b05fbbd
AO
22563 $(POSTSTAGE1_HOST_EXPORTS) \
22564 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22565 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22566 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22567 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22568 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22569 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22570 case $(srcdir) in \
22571 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22572 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22573 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22574 esac; \
1b6c0831
L
22575 module_srcdir=libiberty; \
22576 $(SHELL) $$s/$$module_srcdir/configure \
22577 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22578 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22579 --target=${target_alias} \
22121df0 22580 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22581 $(STAGEprofile_CONFIGURE_FLAGS) \
22582 @extra_host_libiberty_configure_flags@
22583@endif libiberty-bootstrap
93f9b408 22584
a90ef4bf
JM
22585.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22586maybe-configure-stagefeedback-libiberty:
22587@if libiberty-bootstrap
22588maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22589configure-stagefeedback-libiberty:
93f9b408 22590 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22591 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22592 @r=`${PWD_COMMAND}`; export r; \
22593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22594 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22595 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22596 $(HOST_EXPORTS) \
1b05fbbd
AO
22597 $(POSTSTAGE1_HOST_EXPORTS) \
22598 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22599 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22600 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22601 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22602 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22603 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22604 case $(srcdir) in \
22605 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22606 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22607 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22608 esac; \
1b6c0831
L
22609 module_srcdir=libiberty; \
22610 $(SHELL) $$s/$$module_srcdir/configure \
22611 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22612 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22613 --target=${target_alias} \
22121df0 22614 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22615 $(STAGEfeedback_CONFIGURE_FLAGS) \
22616 @extra_host_libiberty_configure_flags@
22617@endif libiberty-bootstrap
93f9b408
ILT
22618
22619
22620
22621
22622
a90ef4bf
JM
22623.PHONY: all-libiberty maybe-all-libiberty
22624maybe-all-libiberty:
93f9b408 22625@if gcc-bootstrap
a90ef4bf 22626all-libiberty: stage_current
93f9b408 22627@endif gcc-bootstrap
a90ef4bf
JM
22628@if libiberty
22629TARGET-libiberty=all
22630maybe-all-libiberty: all-libiberty
22631all-libiberty: configure-libiberty
93f9b408
ILT
22632 @r=`${PWD_COMMAND}`; export r; \
22633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22634 $(HOST_EXPORTS) \
a90ef4bf 22635 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22636 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22637 $(TARGET-libiberty))
22638@endif libiberty
93f9b408
ILT
22639
22640
22641
a90ef4bf
JM
22642.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22643.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22644maybe-all-stage1-libiberty:
22645maybe-clean-stage1-libiberty:
22646@if libiberty-bootstrap
22647maybe-all-stage1-libiberty: all-stage1-libiberty
22648all-stage1: all-stage1-libiberty
22649TARGET-stage1-libiberty = $(TARGET-libiberty)
22650all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22651 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22652 @r=`${PWD_COMMAND}`; export r; \
22653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22654 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22655 $(HOST_EXPORTS) \
a90ef4bf 22656 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22657 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22658 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22659 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22660 LIBCFLAGS="$(LIBCFLAGS)" \
22661 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22662 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22663 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22664 $(EXTRA_HOST_FLAGS) \
22665 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 22666 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22667 $(TARGET-stage1-libiberty)
93f9b408 22668
a90ef4bf
JM
22669maybe-clean-stage1-libiberty: clean-stage1-libiberty
22670clean-stage1: clean-stage1-libiberty
22671clean-stage1-libiberty:
93f9b408 22672 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22673 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22674 else \
a90ef4bf 22675 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22676 $(MAKE) stage1-start; \
22677 fi; \
a90ef4bf 22678 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22679 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22680 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22681@endif libiberty-bootstrap
93f9b408
ILT
22682
22683
a90ef4bf
JM
22684.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22685.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22686maybe-all-stage2-libiberty:
22687maybe-clean-stage2-libiberty:
22688@if libiberty-bootstrap
22689maybe-all-stage2-libiberty: all-stage2-libiberty
22690all-stage2: all-stage2-libiberty
22691TARGET-stage2-libiberty = $(TARGET-libiberty)
22692all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22693 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22694 @r=`${PWD_COMMAND}`; export r; \
22695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22696 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22697 $(HOST_EXPORTS) \
1f53ca9a 22698 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22699 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22700 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22701 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22702 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22703 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22704 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22705 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22706 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22707 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22708 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22709 $(TARGET-stage2-libiberty)
93f9b408 22710
a90ef4bf
JM
22711maybe-clean-stage2-libiberty: clean-stage2-libiberty
22712clean-stage2: clean-stage2-libiberty
22713clean-stage2-libiberty:
93f9b408 22714 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22715 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22716 else \
a90ef4bf 22717 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22718 $(MAKE) stage2-start; \
22719 fi; \
a90ef4bf 22720 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22721 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22722@endif libiberty-bootstrap
93f9b408
ILT
22723
22724
a90ef4bf
JM
22725.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22726.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22727maybe-all-stage3-libiberty:
22728maybe-clean-stage3-libiberty:
22729@if libiberty-bootstrap
22730maybe-all-stage3-libiberty: all-stage3-libiberty
22731all-stage3: all-stage3-libiberty
22732TARGET-stage3-libiberty = $(TARGET-libiberty)
22733all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22734 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22735 @r=`${PWD_COMMAND}`; export r; \
22736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22737 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22738 $(HOST_EXPORTS) \
1f53ca9a 22739 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22740 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22741 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22742 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22743 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22744 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22745 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22746 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22747 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22748 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22749 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22750 $(TARGET-stage3-libiberty)
93f9b408 22751
a90ef4bf
JM
22752maybe-clean-stage3-libiberty: clean-stage3-libiberty
22753clean-stage3: clean-stage3-libiberty
22754clean-stage3-libiberty:
93f9b408 22755 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22756 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22757 else \
a90ef4bf 22758 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22759 $(MAKE) stage3-start; \
22760 fi; \
a90ef4bf 22761 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22762 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22763@endif libiberty-bootstrap
93f9b408
ILT
22764
22765
a90ef4bf
JM
22766.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22767.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22768maybe-all-stage4-libiberty:
22769maybe-clean-stage4-libiberty:
22770@if libiberty-bootstrap
22771maybe-all-stage4-libiberty: all-stage4-libiberty
22772all-stage4: all-stage4-libiberty
22773TARGET-stage4-libiberty = $(TARGET-libiberty)
22774all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22775 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22776 @r=`${PWD_COMMAND}`; export r; \
22777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22778 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22779 $(HOST_EXPORTS) \
1f53ca9a 22780 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22781 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22782 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22783 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22784 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22785 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22786 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22787 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22788 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22789 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22790 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22791 $(TARGET-stage4-libiberty)
93f9b408 22792
a90ef4bf
JM
22793maybe-clean-stage4-libiberty: clean-stage4-libiberty
22794clean-stage4: clean-stage4-libiberty
22795clean-stage4-libiberty:
93f9b408 22796 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22797 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22798 else \
a90ef4bf 22799 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22800 $(MAKE) stage4-start; \
22801 fi; \
a90ef4bf 22802 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22803 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22804@endif libiberty-bootstrap
93f9b408
ILT
22805
22806
a90ef4bf
JM
22807.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22808.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22809maybe-all-stageprofile-libiberty:
22810maybe-clean-stageprofile-libiberty:
22811@if libiberty-bootstrap
22812maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22813all-stageprofile: all-stageprofile-libiberty
22814TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22815all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22816 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22817 @r=`${PWD_COMMAND}`; export r; \
22818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22819 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22820 $(HOST_EXPORTS) \
1f53ca9a 22821 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22822 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22823 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22824 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22825 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22826 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22827 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22828 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22829 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22830 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22831 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22832 $(TARGET-stageprofile-libiberty)
93f9b408 22833
a90ef4bf
JM
22834maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22835clean-stageprofile: clean-stageprofile-libiberty
22836clean-stageprofile-libiberty:
93f9b408 22837 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22838 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22839 else \
a90ef4bf 22840 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22841 $(MAKE) stageprofile-start; \
22842 fi; \
a90ef4bf 22843 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22844 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22845@endif libiberty-bootstrap
93f9b408
ILT
22846
22847
a90ef4bf
JM
22848.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22849.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22850maybe-all-stagefeedback-libiberty:
22851maybe-clean-stagefeedback-libiberty:
22852@if libiberty-bootstrap
22853maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22854all-stagefeedback: all-stagefeedback-libiberty
22855TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22856all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22857 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22858 @r=`${PWD_COMMAND}`; export r; \
22859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22860 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22861 $(HOST_EXPORTS) \
1f53ca9a 22862 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22863 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22864 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22865 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22866 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22867 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22868 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22869 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22870 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22871 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22872 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22873 $(TARGET-stagefeedback-libiberty)
93f9b408 22874
a90ef4bf
JM
22875maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22876clean-stagefeedback: clean-stagefeedback-libiberty
22877clean-stagefeedback-libiberty:
93f9b408 22878 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22879 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22880 else \
a90ef4bf 22881 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22882 $(MAKE) stagefeedback-start; \
22883 fi; \
a90ef4bf 22884 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22885 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22886@endif libiberty-bootstrap
93f9b408
ILT
22887
22888
22889
22890
22891
a90ef4bf
JM
22892.PHONY: check-libiberty maybe-check-libiberty
22893maybe-check-libiberty:
22894@if libiberty
22895maybe-check-libiberty: check-libiberty
93f9b408 22896
a90ef4bf 22897check-libiberty:
93f9b408
ILT
22898 @: $(MAKE); $(unstage)
22899 @r=`${PWD_COMMAND}`; export r; \
22900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22901 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 22902 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 22903 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 22904
a90ef4bf 22905@endif libiberty
93f9b408 22906
a90ef4bf
JM
22907.PHONY: install-libiberty maybe-install-libiberty
22908maybe-install-libiberty:
22909@if libiberty
22910maybe-install-libiberty: install-libiberty
93f9b408 22911
a90ef4bf 22912install-libiberty: installdirs
93f9b408
ILT
22913 @: $(MAKE); $(unstage)
22914 @r=`${PWD_COMMAND}`; export r; \
22915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22916 $(HOST_EXPORTS) \
a90ef4bf 22917 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22918 $(MAKE) $(FLAGS_TO_PASS) install)
22919
a90ef4bf 22920@endif libiberty
93f9b408 22921
a90ef4bf
JM
22922.PHONY: install-strip-libiberty maybe-install-strip-libiberty
22923maybe-install-strip-libiberty:
22924@if libiberty
22925maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 22926
a90ef4bf 22927install-strip-libiberty: installdirs
9b980aa1
RW
22928 @: $(MAKE); $(unstage)
22929 @r=`${PWD_COMMAND}`; export r; \
22930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22931 $(HOST_EXPORTS) \
a90ef4bf 22932 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
22933 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22934
a90ef4bf 22935@endif libiberty
9b980aa1 22936
93f9b408
ILT
22937# Other targets (info, dvi, pdf, etc.)
22938
a90ef4bf
JM
22939.PHONY: maybe-info-libiberty info-libiberty
22940maybe-info-libiberty:
22941@if libiberty
22942maybe-info-libiberty: info-libiberty
93f9b408 22943
a90ef4bf
JM
22944info-libiberty: \
22945 configure-libiberty
22946 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22947 r=`${PWD_COMMAND}`; export r; \
22948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22949 $(HOST_EXPORTS) \
22950 for flag in $(EXTRA_HOST_FLAGS) ; do \
22951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22952 done; \
22121df0 22953 echo "Doing info in libiberty"; \
a90ef4bf 22954 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22957 "RANLIB=$${RANLIB}" \
22958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22959 info) \
22960 || exit 1
22961
a90ef4bf 22962@endif libiberty
93f9b408 22963
a90ef4bf
JM
22964.PHONY: maybe-dvi-libiberty dvi-libiberty
22965maybe-dvi-libiberty:
22966@if libiberty
22967maybe-dvi-libiberty: dvi-libiberty
93f9b408 22968
a90ef4bf
JM
22969dvi-libiberty: \
22970 configure-libiberty
22971 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22972 r=`${PWD_COMMAND}`; export r; \
22973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22974 $(HOST_EXPORTS) \
22975 for flag in $(EXTRA_HOST_FLAGS) ; do \
22976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22977 done; \
22121df0 22978 echo "Doing dvi in libiberty"; \
a90ef4bf 22979 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22982 "RANLIB=$${RANLIB}" \
22983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22984 dvi) \
22985 || exit 1
22986
a90ef4bf 22987@endif libiberty
93f9b408 22988
a90ef4bf
JM
22989.PHONY: maybe-pdf-libiberty pdf-libiberty
22990maybe-pdf-libiberty:
22991@if libiberty
22992maybe-pdf-libiberty: pdf-libiberty
93f9b408 22993
a90ef4bf
JM
22994pdf-libiberty: \
22995 configure-libiberty
22996 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22997 r=`${PWD_COMMAND}`; export r; \
22998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22999 $(HOST_EXPORTS) \
23000 for flag in $(EXTRA_HOST_FLAGS) ; do \
23001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23002 done; \
22121df0 23003 echo "Doing pdf in libiberty"; \
a90ef4bf 23004 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23007 "RANLIB=$${RANLIB}" \
23008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23009 pdf) \
23010 || exit 1
23011
a90ef4bf 23012@endif libiberty
93f9b408 23013
a90ef4bf
JM
23014.PHONY: maybe-html-libiberty html-libiberty
23015maybe-html-libiberty:
23016@if libiberty
23017maybe-html-libiberty: html-libiberty
93f9b408 23018
a90ef4bf
JM
23019html-libiberty: \
23020 configure-libiberty
23021 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23022 r=`${PWD_COMMAND}`; export r; \
23023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23024 $(HOST_EXPORTS) \
23025 for flag in $(EXTRA_HOST_FLAGS) ; do \
23026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23027 done; \
22121df0 23028 echo "Doing html in libiberty"; \
a90ef4bf 23029 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23032 "RANLIB=$${RANLIB}" \
23033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23034 html) \
23035 || exit 1
23036
a90ef4bf 23037@endif libiberty
93f9b408 23038
a90ef4bf
JM
23039.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23040maybe-TAGS-libiberty:
23041@if libiberty
23042maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23043
a90ef4bf
JM
23044TAGS-libiberty: \
23045 configure-libiberty
23046 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23047 r=`${PWD_COMMAND}`; export r; \
23048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23049 $(HOST_EXPORTS) \
23050 for flag in $(EXTRA_HOST_FLAGS) ; do \
23051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23052 done; \
22121df0 23053 echo "Doing TAGS in libiberty"; \
a90ef4bf 23054 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23057 "RANLIB=$${RANLIB}" \
23058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23059 TAGS) \
23060 || exit 1
23061
a90ef4bf 23062@endif libiberty
93f9b408 23063
a90ef4bf
JM
23064.PHONY: maybe-install-info-libiberty install-info-libiberty
23065maybe-install-info-libiberty:
23066@if libiberty
23067maybe-install-info-libiberty: install-info-libiberty
93f9b408 23068
a90ef4bf
JM
23069install-info-libiberty: \
23070 configure-libiberty \
23071 info-libiberty
23072 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23073 r=`${PWD_COMMAND}`; export r; \
23074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23075 $(HOST_EXPORTS) \
23076 for flag in $(EXTRA_HOST_FLAGS) ; do \
23077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23078 done; \
22121df0 23079 echo "Doing install-info in libiberty"; \
a90ef4bf 23080 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23083 "RANLIB=$${RANLIB}" \
23084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23085 install-info) \
23086 || exit 1
23087
a90ef4bf 23088@endif libiberty
93f9b408 23089
a90ef4bf
JM
23090.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23091maybe-install-pdf-libiberty:
23092@if libiberty
23093maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23094
a90ef4bf
JM
23095install-pdf-libiberty: \
23096 configure-libiberty \
23097 pdf-libiberty
23098 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23099 r=`${PWD_COMMAND}`; export r; \
23100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23101 $(HOST_EXPORTS) \
23102 for flag in $(EXTRA_HOST_FLAGS) ; do \
23103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23104 done; \
22121df0 23105 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23106 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23109 "RANLIB=$${RANLIB}" \
23110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23111 install-pdf) \
23112 || exit 1
23113
a90ef4bf 23114@endif libiberty
93f9b408 23115
a90ef4bf
JM
23116.PHONY: maybe-install-html-libiberty install-html-libiberty
23117maybe-install-html-libiberty:
23118@if libiberty
23119maybe-install-html-libiberty: install-html-libiberty
93f9b408 23120
a90ef4bf
JM
23121install-html-libiberty: \
23122 configure-libiberty \
23123 html-libiberty
23124 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23125 r=`${PWD_COMMAND}`; export r; \
23126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23127 $(HOST_EXPORTS) \
23128 for flag in $(EXTRA_HOST_FLAGS) ; do \
23129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23130 done; \
22121df0 23131 echo "Doing install-html in libiberty"; \
a90ef4bf 23132 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23135 "RANLIB=$${RANLIB}" \
23136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23137 install-html) \
23138 || exit 1
23139
a90ef4bf 23140@endif libiberty
93f9b408 23141
a90ef4bf
JM
23142.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23143maybe-installcheck-libiberty:
23144@if libiberty
23145maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23146
a90ef4bf
JM
23147installcheck-libiberty: \
23148 configure-libiberty
23149 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23150 r=`${PWD_COMMAND}`; export r; \
23151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23152 $(HOST_EXPORTS) \
23153 for flag in $(EXTRA_HOST_FLAGS) ; do \
23154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23155 done; \
22121df0 23156 echo "Doing installcheck in libiberty"; \
a90ef4bf 23157 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23160 "RANLIB=$${RANLIB}" \
23161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23162 installcheck) \
23163 || exit 1
23164
a90ef4bf 23165@endif libiberty
93f9b408 23166
a90ef4bf
JM
23167.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23168maybe-mostlyclean-libiberty:
23169@if libiberty
23170maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23171
a90ef4bf
JM
23172mostlyclean-libiberty:
23173 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23174 r=`${PWD_COMMAND}`; export r; \
23175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23176 $(HOST_EXPORTS) \
23177 for flag in $(EXTRA_HOST_FLAGS) ; do \
23178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23179 done; \
22121df0 23180 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23181 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23184 "RANLIB=$${RANLIB}" \
23185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23186 mostlyclean) \
23187 || exit 1
23188
a90ef4bf 23189@endif libiberty
93f9b408 23190
a90ef4bf
JM
23191.PHONY: maybe-clean-libiberty clean-libiberty
23192maybe-clean-libiberty:
23193@if libiberty
23194maybe-clean-libiberty: clean-libiberty
93f9b408 23195
a90ef4bf
JM
23196clean-libiberty:
23197 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23198 r=`${PWD_COMMAND}`; export r; \
23199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23200 $(HOST_EXPORTS) \
23201 for flag in $(EXTRA_HOST_FLAGS) ; do \
23202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23203 done; \
22121df0 23204 echo "Doing clean in libiberty"; \
a90ef4bf 23205 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23208 "RANLIB=$${RANLIB}" \
23209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23210 clean) \
23211 || exit 1
23212
a90ef4bf 23213@endif libiberty
93f9b408 23214
a90ef4bf
JM
23215.PHONY: maybe-distclean-libiberty distclean-libiberty
23216maybe-distclean-libiberty:
23217@if libiberty
23218maybe-distclean-libiberty: distclean-libiberty
93f9b408 23219
a90ef4bf
JM
23220distclean-libiberty:
23221 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23222 r=`${PWD_COMMAND}`; export r; \
23223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23224 $(HOST_EXPORTS) \
23225 for flag in $(EXTRA_HOST_FLAGS) ; do \
23226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23227 done; \
22121df0 23228 echo "Doing distclean in libiberty"; \
a90ef4bf 23229 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23232 "RANLIB=$${RANLIB}" \
23233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23234 distclean) \
23235 || exit 1
23236
a90ef4bf 23237@endif libiberty
93f9b408 23238
a90ef4bf
JM
23239.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23240maybe-maintainer-clean-libiberty:
23241@if libiberty
23242maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23243
a90ef4bf
JM
23244maintainer-clean-libiberty:
23245 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23246 r=`${PWD_COMMAND}`; export r; \
23247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23248 $(HOST_EXPORTS) \
23249 for flag in $(EXTRA_HOST_FLAGS) ; do \
23250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23251 done; \
22121df0 23252 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23253 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23256 "RANLIB=$${RANLIB}" \
23257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23258 maintainer-clean) \
23259 || exit 1
23260
a90ef4bf 23261@endif libiberty
93f9b408
ILT
23262
23263
23264
1b6c0831
L
23265.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23266maybe-configure-libiberty-linker-plugin:
23267@if gcc-bootstrap
23268configure-libiberty-linker-plugin: stage_current
23269@endif gcc-bootstrap
23270@if libiberty-linker-plugin
23271maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23272configure-libiberty-linker-plugin:
23273 @r=`${PWD_COMMAND}`; export r; \
23274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23275 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23276 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23277 $(HOST_EXPORTS) \
23278 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23279 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23280 case $(srcdir) in \
23281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23282 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23284 esac; \
23285 module_srcdir=libiberty; \
23286 $(SHELL) \
23287 $$s/$$module_srcdir/configure \
23288 --srcdir=$${topdir}/$$module_srcdir \
23289 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23290 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23291 || exit 1
23292@endif libiberty-linker-plugin
23293
23294
23295
23296.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23297maybe-configure-stage1-libiberty-linker-plugin:
23298@if libiberty-linker-plugin-bootstrap
23299maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23300configure-stage1-libiberty-linker-plugin:
23301 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23302 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23303 @r=`${PWD_COMMAND}`; export r; \
23304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23305 TFLAGS="$(STAGE1_TFLAGS)"; \
23306 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23307 $(HOST_EXPORTS) \
23308 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23309 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23310 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23311 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23312 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23313 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23314 case $(srcdir) in \
23315 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23316 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23317 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23318 esac; \
23319 module_srcdir=libiberty; \
23320 $(SHELL) $$s/$$module_srcdir/configure \
23321 --srcdir=$${topdir}/$$module_srcdir \
23322 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23323 --target=${target_alias} \
23324 \
23325 $(STAGE1_CONFIGURE_FLAGS) \
23326 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23327@endif libiberty-linker-plugin-bootstrap
23328
23329.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23330maybe-configure-stage2-libiberty-linker-plugin:
23331@if libiberty-linker-plugin-bootstrap
23332maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23333configure-stage2-libiberty-linker-plugin:
23334 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23335 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23336 @r=`${PWD_COMMAND}`; export r; \
23337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23338 TFLAGS="$(STAGE2_TFLAGS)"; \
23339 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23340 $(HOST_EXPORTS) \
23341 $(POSTSTAGE1_HOST_EXPORTS) \
23342 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23343 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23344 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23345 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23346 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23347 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23348 case $(srcdir) in \
23349 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23350 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23351 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23352 esac; \
23353 module_srcdir=libiberty; \
23354 $(SHELL) $$s/$$module_srcdir/configure \
23355 --srcdir=$${topdir}/$$module_srcdir \
23356 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23357 --target=${target_alias} \
22121df0 23358 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23359 $(STAGE2_CONFIGURE_FLAGS) \
23360 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23361@endif libiberty-linker-plugin-bootstrap
23362
23363.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23364maybe-configure-stage3-libiberty-linker-plugin:
23365@if libiberty-linker-plugin-bootstrap
23366maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23367configure-stage3-libiberty-linker-plugin:
23368 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23369 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23370 @r=`${PWD_COMMAND}`; export r; \
23371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23372 TFLAGS="$(STAGE3_TFLAGS)"; \
23373 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23374 $(HOST_EXPORTS) \
23375 $(POSTSTAGE1_HOST_EXPORTS) \
23376 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23377 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23378 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23379 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23381 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23382 case $(srcdir) in \
23383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23384 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23386 esac; \
23387 module_srcdir=libiberty; \
23388 $(SHELL) $$s/$$module_srcdir/configure \
23389 --srcdir=$${topdir}/$$module_srcdir \
23390 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23391 --target=${target_alias} \
22121df0 23392 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23393 $(STAGE3_CONFIGURE_FLAGS) \
23394 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23395@endif libiberty-linker-plugin-bootstrap
23396
23397.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23398maybe-configure-stage4-libiberty-linker-plugin:
23399@if libiberty-linker-plugin-bootstrap
23400maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23401configure-stage4-libiberty-linker-plugin:
23402 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23403 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23404 @r=`${PWD_COMMAND}`; export r; \
23405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23406 TFLAGS="$(STAGE4_TFLAGS)"; \
23407 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23408 $(HOST_EXPORTS) \
23409 $(POSTSTAGE1_HOST_EXPORTS) \
23410 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23411 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23412 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23413 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23415 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23416 case $(srcdir) in \
23417 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23418 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23419 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23420 esac; \
23421 module_srcdir=libiberty; \
23422 $(SHELL) $$s/$$module_srcdir/configure \
23423 --srcdir=$${topdir}/$$module_srcdir \
23424 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23425 --target=${target_alias} \
22121df0 23426 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23427 $(STAGE4_CONFIGURE_FLAGS) \
23428 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23429@endif libiberty-linker-plugin-bootstrap
23430
23431.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23432maybe-configure-stageprofile-libiberty-linker-plugin:
23433@if libiberty-linker-plugin-bootstrap
23434maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23435configure-stageprofile-libiberty-linker-plugin:
23436 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23437 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23438 @r=`${PWD_COMMAND}`; export r; \
23439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23440 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23441 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23442 $(HOST_EXPORTS) \
23443 $(POSTSTAGE1_HOST_EXPORTS) \
23444 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23445 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23446 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23447 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23448 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23449 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23450 case $(srcdir) in \
23451 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23452 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23453 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23454 esac; \
23455 module_srcdir=libiberty; \
23456 $(SHELL) $$s/$$module_srcdir/configure \
23457 --srcdir=$${topdir}/$$module_srcdir \
23458 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23459 --target=${target_alias} \
22121df0 23460 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23461 $(STAGEprofile_CONFIGURE_FLAGS) \
23462 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23463@endif libiberty-linker-plugin-bootstrap
23464
23465.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23466maybe-configure-stagefeedback-libiberty-linker-plugin:
23467@if libiberty-linker-plugin-bootstrap
23468maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23469configure-stagefeedback-libiberty-linker-plugin:
23470 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23471 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23472 @r=`${PWD_COMMAND}`; export r; \
23473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23474 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23475 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23476 $(HOST_EXPORTS) \
23477 $(POSTSTAGE1_HOST_EXPORTS) \
23478 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23479 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23480 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23481 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23482 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23483 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23484 case $(srcdir) in \
23485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23486 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23488 esac; \
23489 module_srcdir=libiberty; \
23490 $(SHELL) $$s/$$module_srcdir/configure \
23491 --srcdir=$${topdir}/$$module_srcdir \
23492 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23493 --target=${target_alias} \
22121df0 23494 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23495 $(STAGEfeedback_CONFIGURE_FLAGS) \
23496 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23497@endif libiberty-linker-plugin-bootstrap
23498
23499
23500
23501
23502
23503.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23504maybe-all-libiberty-linker-plugin:
23505@if gcc-bootstrap
23506all-libiberty-linker-plugin: stage_current
23507@endif gcc-bootstrap
23508@if libiberty-linker-plugin
23509TARGET-libiberty-linker-plugin=all
23510maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23511all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23512 @r=`${PWD_COMMAND}`; export r; \
23513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23514 $(HOST_EXPORTS) \
23515 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23516 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23517 $(TARGET-libiberty-linker-plugin))
23518@endif libiberty-linker-plugin
23519
23520
23521
23522.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23523.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23524maybe-all-stage1-libiberty-linker-plugin:
23525maybe-clean-stage1-libiberty-linker-plugin:
23526@if libiberty-linker-plugin-bootstrap
23527maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23528all-stage1: all-stage1-libiberty-linker-plugin
23529TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23530all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23531 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23532 @r=`${PWD_COMMAND}`; export r; \
23533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23534 TFLAGS="$(STAGE1_TFLAGS)"; \
23535 $(HOST_EXPORTS) \
23536 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23537 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23538 CFLAGS="$(STAGE1_CFLAGS)" \
23539 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23540 LIBCFLAGS="$(LIBCFLAGS)" \
23541 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23542 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23543 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23544 $(EXTRA_HOST_FLAGS) \
23545 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23546 TFLAGS="$(STAGE1_TFLAGS)" \
23547 $(TARGET-stage1-libiberty-linker-plugin)
23548
23549maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23550clean-stage1: clean-stage1-libiberty-linker-plugin
23551clean-stage1-libiberty-linker-plugin:
23552 @if [ $(current_stage) = stage1 ]; then \
23553 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23554 else \
23555 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23556 $(MAKE) stage1-start; \
23557 fi; \
23558 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23559 $(MAKE) $(EXTRA_HOST_FLAGS) \
23560 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23561@endif libiberty-linker-plugin-bootstrap
23562
23563
23564.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23565.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23566maybe-all-stage2-libiberty-linker-plugin:
23567maybe-clean-stage2-libiberty-linker-plugin:
23568@if libiberty-linker-plugin-bootstrap
23569maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23570all-stage2: all-stage2-libiberty-linker-plugin
23571TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23572all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23573 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23574 @r=`${PWD_COMMAND}`; export r; \
23575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23576 TFLAGS="$(STAGE2_TFLAGS)"; \
23577 $(HOST_EXPORTS) \
23578 $(POSTSTAGE1_HOST_EXPORTS) \
23579 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23580 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23581 CFLAGS="$(STAGE2_CFLAGS)" \
23582 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23583 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23584 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23585 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23586 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23587 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23588 TFLAGS="$(STAGE2_TFLAGS)" \
23589 $(TARGET-stage2-libiberty-linker-plugin)
23590
23591maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23592clean-stage2: clean-stage2-libiberty-linker-plugin
23593clean-stage2-libiberty-linker-plugin:
23594 @if [ $(current_stage) = stage2 ]; then \
23595 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23596 else \
23597 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23598 $(MAKE) stage2-start; \
23599 fi; \
23600 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23601 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23602@endif libiberty-linker-plugin-bootstrap
23603
23604
23605.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23606.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23607maybe-all-stage3-libiberty-linker-plugin:
23608maybe-clean-stage3-libiberty-linker-plugin:
23609@if libiberty-linker-plugin-bootstrap
23610maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23611all-stage3: all-stage3-libiberty-linker-plugin
23612TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23613all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23614 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23615 @r=`${PWD_COMMAND}`; export r; \
23616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23617 TFLAGS="$(STAGE3_TFLAGS)"; \
23618 $(HOST_EXPORTS) \
23619 $(POSTSTAGE1_HOST_EXPORTS) \
23620 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23621 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23622 CFLAGS="$(STAGE3_CFLAGS)" \
23623 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23624 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23625 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23626 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23627 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23628 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23629 TFLAGS="$(STAGE3_TFLAGS)" \
23630 $(TARGET-stage3-libiberty-linker-plugin)
23631
23632maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23633clean-stage3: clean-stage3-libiberty-linker-plugin
23634clean-stage3-libiberty-linker-plugin:
23635 @if [ $(current_stage) = stage3 ]; then \
23636 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23637 else \
23638 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23639 $(MAKE) stage3-start; \
23640 fi; \
23641 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23642 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23643@endif libiberty-linker-plugin-bootstrap
23644
23645
23646.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23647.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23648maybe-all-stage4-libiberty-linker-plugin:
23649maybe-clean-stage4-libiberty-linker-plugin:
23650@if libiberty-linker-plugin-bootstrap
23651maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23652all-stage4: all-stage4-libiberty-linker-plugin
23653TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23654all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23655 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23656 @r=`${PWD_COMMAND}`; export r; \
23657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23658 TFLAGS="$(STAGE4_TFLAGS)"; \
23659 $(HOST_EXPORTS) \
23660 $(POSTSTAGE1_HOST_EXPORTS) \
23661 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23662 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23663 CFLAGS="$(STAGE4_CFLAGS)" \
23664 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23665 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23666 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23667 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23668 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23669 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23670 TFLAGS="$(STAGE4_TFLAGS)" \
23671 $(TARGET-stage4-libiberty-linker-plugin)
23672
23673maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23674clean-stage4: clean-stage4-libiberty-linker-plugin
23675clean-stage4-libiberty-linker-plugin:
23676 @if [ $(current_stage) = stage4 ]; then \
23677 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23678 else \
23679 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23680 $(MAKE) stage4-start; \
23681 fi; \
23682 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23683 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23684@endif libiberty-linker-plugin-bootstrap
23685
23686
23687.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23688.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23689maybe-all-stageprofile-libiberty-linker-plugin:
23690maybe-clean-stageprofile-libiberty-linker-plugin:
23691@if libiberty-linker-plugin-bootstrap
23692maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23693all-stageprofile: all-stageprofile-libiberty-linker-plugin
23694TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23695all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23696 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23697 @r=`${PWD_COMMAND}`; export r; \
23698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23699 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23700 $(HOST_EXPORTS) \
23701 $(POSTSTAGE1_HOST_EXPORTS) \
23702 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23703 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23704 CFLAGS="$(STAGEprofile_CFLAGS)" \
23705 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23706 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23707 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23708 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23709 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23710 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23711 TFLAGS="$(STAGEprofile_TFLAGS)" \
23712 $(TARGET-stageprofile-libiberty-linker-plugin)
23713
23714maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23715clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23716clean-stageprofile-libiberty-linker-plugin:
23717 @if [ $(current_stage) = stageprofile ]; then \
23718 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23719 else \
23720 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23721 $(MAKE) stageprofile-start; \
23722 fi; \
23723 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23724 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23725@endif libiberty-linker-plugin-bootstrap
23726
23727
23728.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23729.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23730maybe-all-stagefeedback-libiberty-linker-plugin:
23731maybe-clean-stagefeedback-libiberty-linker-plugin:
23732@if libiberty-linker-plugin-bootstrap
23733maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23734all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23735TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23736all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23737 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23738 @r=`${PWD_COMMAND}`; export r; \
23739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23740 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23741 $(HOST_EXPORTS) \
23742 $(POSTSTAGE1_HOST_EXPORTS) \
23743 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23744 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23745 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23746 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23747 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23748 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23749 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23750 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23751 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23752 TFLAGS="$(STAGEfeedback_TFLAGS)" \
23753 $(TARGET-stagefeedback-libiberty-linker-plugin)
23754
23755maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23756clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23757clean-stagefeedback-libiberty-linker-plugin:
23758 @if [ $(current_stage) = stagefeedback ]; then \
23759 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23760 else \
23761 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23762 $(MAKE) stagefeedback-start; \
23763 fi; \
23764 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23765 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23766@endif libiberty-linker-plugin-bootstrap
23767
23768
23769
23770
23771
23772.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23773maybe-check-libiberty-linker-plugin:
23774@if libiberty-linker-plugin
23775maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23776
23777check-libiberty-linker-plugin:
23778 @: $(MAKE); $(unstage)
23779 @r=`${PWD_COMMAND}`; export r; \
23780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23781 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23782 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23783 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23784
23785@endif libiberty-linker-plugin
23786
23787.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23788maybe-install-libiberty-linker-plugin:
23789@if libiberty-linker-plugin
23790maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23791
23792install-libiberty-linker-plugin: installdirs
23793 @: $(MAKE); $(unstage)
23794 @r=`${PWD_COMMAND}`; export r; \
23795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23796 $(HOST_EXPORTS) \
23797 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23798 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23799
23800@endif libiberty-linker-plugin
23801
23802.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23803maybe-install-strip-libiberty-linker-plugin:
23804@if libiberty-linker-plugin
23805maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23806
23807install-strip-libiberty-linker-plugin: installdirs
23808 @: $(MAKE); $(unstage)
23809 @r=`${PWD_COMMAND}`; export r; \
23810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23811 $(HOST_EXPORTS) \
23812 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23813 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23814
23815@endif libiberty-linker-plugin
23816
23817# Other targets (info, dvi, pdf, etc.)
23818
23819.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23820maybe-info-libiberty-linker-plugin:
23821@if libiberty-linker-plugin
23822maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23823
23824info-libiberty-linker-plugin: \
23825 configure-libiberty-linker-plugin
23826 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23827 r=`${PWD_COMMAND}`; export r; \
23828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23829 $(HOST_EXPORTS) \
23830 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23832 done; \
22121df0 23833 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23834 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23837 "RANLIB=$${RANLIB}" \
23838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23839 info) \
23840 || exit 1
23841
23842@endif libiberty-linker-plugin
23843
23844.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23845maybe-dvi-libiberty-linker-plugin:
23846@if libiberty-linker-plugin
23847maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23848
23849dvi-libiberty-linker-plugin: \
23850 configure-libiberty-linker-plugin
23851 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23852 r=`${PWD_COMMAND}`; export r; \
23853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23854 $(HOST_EXPORTS) \
23855 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23857 done; \
22121df0 23858 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
23859 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23862 "RANLIB=$${RANLIB}" \
23863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23864 dvi) \
23865 || exit 1
23866
23867@endif libiberty-linker-plugin
23868
23869.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23870maybe-pdf-libiberty-linker-plugin:
23871@if libiberty-linker-plugin
23872maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23873
23874pdf-libiberty-linker-plugin: \
23875 configure-libiberty-linker-plugin
23876 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23877 r=`${PWD_COMMAND}`; export r; \
23878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23879 $(HOST_EXPORTS) \
23880 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23882 done; \
22121df0 23883 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
23884 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23887 "RANLIB=$${RANLIB}" \
23888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23889 pdf) \
23890 || exit 1
23891
23892@endif libiberty-linker-plugin
23893
23894.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
23895maybe-html-libiberty-linker-plugin:
23896@if libiberty-linker-plugin
23897maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
23898
23899html-libiberty-linker-plugin: \
23900 configure-libiberty-linker-plugin
23901 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23902 r=`${PWD_COMMAND}`; export r; \
23903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23904 $(HOST_EXPORTS) \
23905 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23907 done; \
22121df0 23908 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
23909 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23912 "RANLIB=$${RANLIB}" \
23913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23914 html) \
23915 || exit 1
23916
23917@endif libiberty-linker-plugin
23918
23919.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
23920maybe-TAGS-libiberty-linker-plugin:
23921@if libiberty-linker-plugin
23922maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
23923
23924TAGS-libiberty-linker-plugin: \
23925 configure-libiberty-linker-plugin
23926 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23927 r=`${PWD_COMMAND}`; export r; \
23928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23929 $(HOST_EXPORTS) \
23930 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23932 done; \
22121df0 23933 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
23934 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23937 "RANLIB=$${RANLIB}" \
23938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23939 TAGS) \
23940 || exit 1
23941
23942@endif libiberty-linker-plugin
23943
23944.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
23945maybe-install-info-libiberty-linker-plugin:
23946@if libiberty-linker-plugin
23947maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
23948
23949install-info-libiberty-linker-plugin: \
23950 configure-libiberty-linker-plugin \
23951 info-libiberty-linker-plugin
23952 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23953 r=`${PWD_COMMAND}`; export r; \
23954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23955 $(HOST_EXPORTS) \
23956 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23958 done; \
22121df0 23959 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
23960 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23963 "RANLIB=$${RANLIB}" \
23964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23965 install-info) \
23966 || exit 1
23967
23968@endif libiberty-linker-plugin
23969
23970.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
23971maybe-install-pdf-libiberty-linker-plugin:
23972@if libiberty-linker-plugin
23973maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
23974
23975install-pdf-libiberty-linker-plugin: \
23976 configure-libiberty-linker-plugin \
23977 pdf-libiberty-linker-plugin
23978 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23979 r=`${PWD_COMMAND}`; export r; \
23980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23981 $(HOST_EXPORTS) \
23982 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23984 done; \
22121df0 23985 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
23986 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23989 "RANLIB=$${RANLIB}" \
23990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23991 install-pdf) \
23992 || exit 1
23993
23994@endif libiberty-linker-plugin
23995
23996.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
23997maybe-install-html-libiberty-linker-plugin:
23998@if libiberty-linker-plugin
23999maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
24000
24001install-html-libiberty-linker-plugin: \
24002 configure-libiberty-linker-plugin \
24003 html-libiberty-linker-plugin
24004 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24005 r=`${PWD_COMMAND}`; export r; \
24006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24007 $(HOST_EXPORTS) \
24008 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24010 done; \
22121df0 24011 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
24012 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24015 "RANLIB=$${RANLIB}" \
24016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24017 install-html) \
24018 || exit 1
24019
24020@endif libiberty-linker-plugin
24021
24022.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24023maybe-installcheck-libiberty-linker-plugin:
24024@if libiberty-linker-plugin
24025maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24026
24027installcheck-libiberty-linker-plugin: \
24028 configure-libiberty-linker-plugin
24029 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24030 r=`${PWD_COMMAND}`; export r; \
24031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24032 $(HOST_EXPORTS) \
24033 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24035 done; \
22121df0 24036 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24037 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24040 "RANLIB=$${RANLIB}" \
24041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24042 installcheck) \
24043 || exit 1
24044
24045@endif libiberty-linker-plugin
24046
24047.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24048maybe-mostlyclean-libiberty-linker-plugin:
24049@if libiberty-linker-plugin
24050maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24051
24052mostlyclean-libiberty-linker-plugin:
24053 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24054 r=`${PWD_COMMAND}`; export r; \
24055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24056 $(HOST_EXPORTS) \
24057 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24059 done; \
22121df0 24060 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24061 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24064 "RANLIB=$${RANLIB}" \
24065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24066 mostlyclean) \
24067 || exit 1
24068
24069@endif libiberty-linker-plugin
24070
24071.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24072maybe-clean-libiberty-linker-plugin:
24073@if libiberty-linker-plugin
24074maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24075
24076clean-libiberty-linker-plugin:
24077 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24078 r=`${PWD_COMMAND}`; export r; \
24079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24080 $(HOST_EXPORTS) \
24081 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24083 done; \
22121df0 24084 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24085 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24088 "RANLIB=$${RANLIB}" \
24089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24090 clean) \
24091 || exit 1
24092
24093@endif libiberty-linker-plugin
24094
24095.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24096maybe-distclean-libiberty-linker-plugin:
24097@if libiberty-linker-plugin
24098maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24099
24100distclean-libiberty-linker-plugin:
24101 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24102 r=`${PWD_COMMAND}`; export r; \
24103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24104 $(HOST_EXPORTS) \
24105 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24107 done; \
22121df0 24108 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24109 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24112 "RANLIB=$${RANLIB}" \
24113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24114 distclean) \
24115 || exit 1
24116
24117@endif libiberty-linker-plugin
24118
24119.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24120maybe-maintainer-clean-libiberty-linker-plugin:
24121@if libiberty-linker-plugin
24122maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24123
24124maintainer-clean-libiberty-linker-plugin:
24125 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24126 r=`${PWD_COMMAND}`; export r; \
24127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24128 $(HOST_EXPORTS) \
24129 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24131 done; \
22121df0 24132 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24133 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24136 "RANLIB=$${RANLIB}" \
24137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24138 maintainer-clean) \
24139 || exit 1
24140
24141@endif libiberty-linker-plugin
24142
24143
24144
a90ef4bf
JM
24145.PHONY: configure-libiconv maybe-configure-libiconv
24146maybe-configure-libiconv:
4f0ef2d8 24147@if gcc-bootstrap
a90ef4bf 24148configure-libiconv: stage_current
4f0ef2d8 24149@endif gcc-bootstrap
a90ef4bf
JM
24150@if libiconv
24151maybe-configure-libiconv: configure-libiconv
24152configure-libiconv:
c52c6897 24153 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24155 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24156 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24157 $(HOST_EXPORTS) \
a90ef4bf
JM
24158 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24159 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24160 case $(srcdir) in \
b00612cc 24161 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24162 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24163 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24164 esac; \
1b6c0831
L
24165 module_srcdir=libiconv; \
24166 $(SHELL) \
24167 $$s/$$module_srcdir/configure \
24168 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24169 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24170 --target=${target_alias} --disable-shared \
2a4cbe27 24171 || exit 1
a90ef4bf 24172@endif libiconv
2a4cbe27 24173
a7254363
PB
24174
24175
016a3251
DD
24176.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24177maybe-configure-stage1-libiconv:
24178@if libiconv-bootstrap
24179maybe-configure-stage1-libiconv: configure-stage1-libiconv
24180configure-stage1-libiconv:
24181 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24182 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24183 @r=`${PWD_COMMAND}`; export r; \
24184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24185 TFLAGS="$(STAGE1_TFLAGS)"; \
24186 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24187 $(HOST_EXPORTS) \
24188 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24189 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24190 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24191 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24192 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24193 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24194 case $(srcdir) in \
24195 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24196 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24197 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24198 esac; \
24199 module_srcdir=libiconv; \
24200 $(SHELL) $$s/$$module_srcdir/configure \
24201 --srcdir=$${topdir}/$$module_srcdir \
24202 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24203 --target=${target_alias} \
24204 \
24205 $(STAGE1_CONFIGURE_FLAGS) \
24206 --disable-shared
24207@endif libiconv-bootstrap
24208
24209.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24210maybe-configure-stage2-libiconv:
24211@if libiconv-bootstrap
24212maybe-configure-stage2-libiconv: configure-stage2-libiconv
24213configure-stage2-libiconv:
24214 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24215 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24216 @r=`${PWD_COMMAND}`; export r; \
24217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24218 TFLAGS="$(STAGE2_TFLAGS)"; \
24219 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24220 $(HOST_EXPORTS) \
24221 $(POSTSTAGE1_HOST_EXPORTS) \
24222 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24223 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24224 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24225 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24226 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24227 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24228 case $(srcdir) in \
24229 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24230 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24231 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24232 esac; \
24233 module_srcdir=libiconv; \
24234 $(SHELL) $$s/$$module_srcdir/configure \
24235 --srcdir=$${topdir}/$$module_srcdir \
24236 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24237 --target=${target_alias} \
24238 --with-build-libsubdir=$(HOST_SUBDIR) \
24239 $(STAGE2_CONFIGURE_FLAGS) \
24240 --disable-shared
24241@endif libiconv-bootstrap
24242
24243.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24244maybe-configure-stage3-libiconv:
24245@if libiconv-bootstrap
24246maybe-configure-stage3-libiconv: configure-stage3-libiconv
24247configure-stage3-libiconv:
24248 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24249 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24250 @r=`${PWD_COMMAND}`; export r; \
24251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24252 TFLAGS="$(STAGE3_TFLAGS)"; \
24253 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24254 $(HOST_EXPORTS) \
24255 $(POSTSTAGE1_HOST_EXPORTS) \
24256 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24257 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24258 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24259 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24260 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24261 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24262 case $(srcdir) in \
24263 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24264 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24265 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24266 esac; \
24267 module_srcdir=libiconv; \
24268 $(SHELL) $$s/$$module_srcdir/configure \
24269 --srcdir=$${topdir}/$$module_srcdir \
24270 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24271 --target=${target_alias} \
24272 --with-build-libsubdir=$(HOST_SUBDIR) \
24273 $(STAGE3_CONFIGURE_FLAGS) \
24274 --disable-shared
24275@endif libiconv-bootstrap
24276
24277.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24278maybe-configure-stage4-libiconv:
24279@if libiconv-bootstrap
24280maybe-configure-stage4-libiconv: configure-stage4-libiconv
24281configure-stage4-libiconv:
24282 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24283 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24284 @r=`${PWD_COMMAND}`; export r; \
24285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24286 TFLAGS="$(STAGE4_TFLAGS)"; \
24287 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24288 $(HOST_EXPORTS) \
24289 $(POSTSTAGE1_HOST_EXPORTS) \
24290 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24291 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24292 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24293 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24294 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24295 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24296 case $(srcdir) in \
24297 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24298 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24299 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24300 esac; \
24301 module_srcdir=libiconv; \
24302 $(SHELL) $$s/$$module_srcdir/configure \
24303 --srcdir=$${topdir}/$$module_srcdir \
24304 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24305 --target=${target_alias} \
24306 --with-build-libsubdir=$(HOST_SUBDIR) \
24307 $(STAGE4_CONFIGURE_FLAGS) \
24308 --disable-shared
24309@endif libiconv-bootstrap
24310
24311.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24312maybe-configure-stageprofile-libiconv:
24313@if libiconv-bootstrap
24314maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24315configure-stageprofile-libiconv:
24316 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24317 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24318 @r=`${PWD_COMMAND}`; export r; \
24319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24320 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24321 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24322 $(HOST_EXPORTS) \
24323 $(POSTSTAGE1_HOST_EXPORTS) \
24324 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24325 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24326 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24327 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24328 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24329 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24330 case $(srcdir) in \
24331 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24332 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24333 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24334 esac; \
24335 module_srcdir=libiconv; \
24336 $(SHELL) $$s/$$module_srcdir/configure \
24337 --srcdir=$${topdir}/$$module_srcdir \
24338 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24339 --target=${target_alias} \
24340 --with-build-libsubdir=$(HOST_SUBDIR) \
24341 $(STAGEprofile_CONFIGURE_FLAGS) \
24342 --disable-shared
24343@endif libiconv-bootstrap
24344
24345.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24346maybe-configure-stagefeedback-libiconv:
24347@if libiconv-bootstrap
24348maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24349configure-stagefeedback-libiconv:
24350 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24351 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24352 @r=`${PWD_COMMAND}`; export r; \
24353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24354 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24355 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24356 $(HOST_EXPORTS) \
24357 $(POSTSTAGE1_HOST_EXPORTS) \
24358 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24359 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24360 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24361 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24362 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24363 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24364 case $(srcdir) in \
24365 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24366 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24367 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24368 esac; \
24369 module_srcdir=libiconv; \
24370 $(SHELL) $$s/$$module_srcdir/configure \
24371 --srcdir=$${topdir}/$$module_srcdir \
24372 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24373 --target=${target_alias} \
24374 --with-build-libsubdir=$(HOST_SUBDIR) \
24375 $(STAGEfeedback_CONFIGURE_FLAGS) \
24376 --disable-shared
24377@endif libiconv-bootstrap
24378
24379
24380
d545f33b
PB
24381
24382
a90ef4bf
JM
24383.PHONY: all-libiconv maybe-all-libiconv
24384maybe-all-libiconv:
4f0ef2d8 24385@if gcc-bootstrap
a90ef4bf 24386all-libiconv: stage_current
4f0ef2d8 24387@endif gcc-bootstrap
a90ef4bf
JM
24388@if libiconv
24389TARGET-libiconv=all
24390maybe-all-libiconv: all-libiconv
24391all-libiconv: configure-libiconv
4fa63067
NN
24392 @r=`${PWD_COMMAND}`; export r; \
24393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24394 $(HOST_EXPORTS) \
a90ef4bf 24395 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24396 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24397 $(TARGET-libiconv))
24398@endif libiconv
2a4cbe27 24399
a7254363 24400
d545f33b 24401
016a3251
DD
24402.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24403.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24404maybe-all-stage1-libiconv:
24405maybe-clean-stage1-libiconv:
24406@if libiconv-bootstrap
24407maybe-all-stage1-libiconv: all-stage1-libiconv
24408all-stage1: all-stage1-libiconv
24409TARGET-stage1-libiconv = $(TARGET-libiconv)
24410all-stage1-libiconv: configure-stage1-libiconv
24411 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24412 @r=`${PWD_COMMAND}`; export r; \
24413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24414 TFLAGS="$(STAGE1_TFLAGS)"; \
24415 $(HOST_EXPORTS) \
24416 cd $(HOST_SUBDIR)/libiconv && \
24417 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24418 CFLAGS="$(STAGE1_CFLAGS)" \
24419 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24420 LIBCFLAGS="$(LIBCFLAGS)" \
24421 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24422 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24423 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24424 $(EXTRA_HOST_FLAGS) \
24425 $(STAGE1_FLAGS_TO_PASS) \
24426 TFLAGS="$(STAGE1_TFLAGS)" \
24427 $(TARGET-stage1-libiconv)
24428
24429maybe-clean-stage1-libiconv: clean-stage1-libiconv
24430clean-stage1: clean-stage1-libiconv
24431clean-stage1-libiconv:
24432 @if [ $(current_stage) = stage1 ]; then \
24433 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24434 else \
24435 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24436 $(MAKE) stage1-start; \
24437 fi; \
24438 cd $(HOST_SUBDIR)/libiconv && \
24439 $(MAKE) $(EXTRA_HOST_FLAGS) \
24440 $(STAGE1_FLAGS_TO_PASS) clean
24441@endif libiconv-bootstrap
24442
24443
24444.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24445.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24446maybe-all-stage2-libiconv:
24447maybe-clean-stage2-libiconv:
24448@if libiconv-bootstrap
24449maybe-all-stage2-libiconv: all-stage2-libiconv
24450all-stage2: all-stage2-libiconv
24451TARGET-stage2-libiconv = $(TARGET-libiconv)
24452all-stage2-libiconv: configure-stage2-libiconv
24453 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24454 @r=`${PWD_COMMAND}`; export r; \
24455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24456 TFLAGS="$(STAGE2_TFLAGS)"; \
24457 $(HOST_EXPORTS) \
24458 $(POSTSTAGE1_HOST_EXPORTS) \
24459 cd $(HOST_SUBDIR)/libiconv && \
24460 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24461 CFLAGS="$(STAGE2_CFLAGS)" \
24462 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24463 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24464 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24465 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24466 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24467 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24468 TFLAGS="$(STAGE2_TFLAGS)" \
24469 $(TARGET-stage2-libiconv)
24470
24471maybe-clean-stage2-libiconv: clean-stage2-libiconv
24472clean-stage2: clean-stage2-libiconv
24473clean-stage2-libiconv:
24474 @if [ $(current_stage) = stage2 ]; then \
24475 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24476 else \
24477 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24478 $(MAKE) stage2-start; \
24479 fi; \
24480 cd $(HOST_SUBDIR)/libiconv && \
24481 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24482@endif libiconv-bootstrap
24483
24484
24485.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24486.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24487maybe-all-stage3-libiconv:
24488maybe-clean-stage3-libiconv:
24489@if libiconv-bootstrap
24490maybe-all-stage3-libiconv: all-stage3-libiconv
24491all-stage3: all-stage3-libiconv
24492TARGET-stage3-libiconv = $(TARGET-libiconv)
24493all-stage3-libiconv: configure-stage3-libiconv
24494 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24495 @r=`${PWD_COMMAND}`; export r; \
24496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24497 TFLAGS="$(STAGE3_TFLAGS)"; \
24498 $(HOST_EXPORTS) \
24499 $(POSTSTAGE1_HOST_EXPORTS) \
24500 cd $(HOST_SUBDIR)/libiconv && \
24501 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24502 CFLAGS="$(STAGE3_CFLAGS)" \
24503 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24504 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24505 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24506 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24507 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24508 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24509 TFLAGS="$(STAGE3_TFLAGS)" \
24510 $(TARGET-stage3-libiconv)
24511
24512maybe-clean-stage3-libiconv: clean-stage3-libiconv
24513clean-stage3: clean-stage3-libiconv
24514clean-stage3-libiconv:
24515 @if [ $(current_stage) = stage3 ]; then \
24516 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24517 else \
24518 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24519 $(MAKE) stage3-start; \
24520 fi; \
24521 cd $(HOST_SUBDIR)/libiconv && \
24522 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24523@endif libiconv-bootstrap
24524
24525
24526.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24527.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24528maybe-all-stage4-libiconv:
24529maybe-clean-stage4-libiconv:
24530@if libiconv-bootstrap
24531maybe-all-stage4-libiconv: all-stage4-libiconv
24532all-stage4: all-stage4-libiconv
24533TARGET-stage4-libiconv = $(TARGET-libiconv)
24534all-stage4-libiconv: configure-stage4-libiconv
24535 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24536 @r=`${PWD_COMMAND}`; export r; \
24537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24538 TFLAGS="$(STAGE4_TFLAGS)"; \
24539 $(HOST_EXPORTS) \
24540 $(POSTSTAGE1_HOST_EXPORTS) \
24541 cd $(HOST_SUBDIR)/libiconv && \
24542 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24543 CFLAGS="$(STAGE4_CFLAGS)" \
24544 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24545 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24546 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24547 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24548 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24549 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24550 TFLAGS="$(STAGE4_TFLAGS)" \
24551 $(TARGET-stage4-libiconv)
24552
24553maybe-clean-stage4-libiconv: clean-stage4-libiconv
24554clean-stage4: clean-stage4-libiconv
24555clean-stage4-libiconv:
24556 @if [ $(current_stage) = stage4 ]; then \
24557 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24558 else \
24559 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24560 $(MAKE) stage4-start; \
24561 fi; \
24562 cd $(HOST_SUBDIR)/libiconv && \
24563 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24564@endif libiconv-bootstrap
24565
24566
24567.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24568.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24569maybe-all-stageprofile-libiconv:
24570maybe-clean-stageprofile-libiconv:
24571@if libiconv-bootstrap
24572maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24573all-stageprofile: all-stageprofile-libiconv
24574TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24575all-stageprofile-libiconv: configure-stageprofile-libiconv
24576 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24577 @r=`${PWD_COMMAND}`; export r; \
24578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24579 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24580 $(HOST_EXPORTS) \
24581 $(POSTSTAGE1_HOST_EXPORTS) \
24582 cd $(HOST_SUBDIR)/libiconv && \
24583 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24584 CFLAGS="$(STAGEprofile_CFLAGS)" \
24585 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24586 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24587 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24588 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24589 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24590 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24591 TFLAGS="$(STAGEprofile_TFLAGS)" \
24592 $(TARGET-stageprofile-libiconv)
24593
24594maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24595clean-stageprofile: clean-stageprofile-libiconv
24596clean-stageprofile-libiconv:
24597 @if [ $(current_stage) = stageprofile ]; then \
24598 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24599 else \
24600 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24601 $(MAKE) stageprofile-start; \
24602 fi; \
24603 cd $(HOST_SUBDIR)/libiconv && \
24604 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24605@endif libiconv-bootstrap
24606
24607
24608.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24609.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24610maybe-all-stagefeedback-libiconv:
24611maybe-clean-stagefeedback-libiconv:
24612@if libiconv-bootstrap
24613maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24614all-stagefeedback: all-stagefeedback-libiconv
24615TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24616all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24617 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24618 @r=`${PWD_COMMAND}`; export r; \
24619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24620 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24621 $(HOST_EXPORTS) \
24622 $(POSTSTAGE1_HOST_EXPORTS) \
24623 cd $(HOST_SUBDIR)/libiconv && \
24624 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24625 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24626 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24627 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24628 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24629 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24630 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24631 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24632 TFLAGS="$(STAGEfeedback_TFLAGS)" \
24633 $(TARGET-stagefeedback-libiconv)
24634
24635maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24636clean-stagefeedback: clean-stagefeedback-libiconv
24637clean-stagefeedback-libiconv:
24638 @if [ $(current_stage) = stagefeedback ]; then \
24639 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24640 else \
24641 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24642 $(MAKE) stagefeedback-start; \
24643 fi; \
24644 cd $(HOST_SUBDIR)/libiconv && \
24645 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24646@endif libiconv-bootstrap
24647
24648
24649
24650
d545f33b 24651
a90ef4bf
JM
24652.PHONY: check-libiconv maybe-check-libiconv
24653maybe-check-libiconv:
24654@if libiconv
24655maybe-check-libiconv: check-libiconv
2a4cbe27 24656
a90ef4bf 24657check-libiconv:
0aed8855 24658 @: $(MAKE); $(unstage)
4fa63067 24659 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24661 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24662 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24663 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24664
a90ef4bf 24665@endif libiconv
4fa63067 24666
a90ef4bf
JM
24667.PHONY: install-libiconv maybe-install-libiconv
24668maybe-install-libiconv:
24669@if libiconv
24670maybe-install-libiconv: install-libiconv
2a4cbe27 24671
a90ef4bf 24672install-libiconv:
2a4cbe27 24673
a90ef4bf 24674@endif libiconv
9b980aa1 24675
a90ef4bf
JM
24676.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24677maybe-install-strip-libiconv:
24678@if libiconv
24679maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24680
a90ef4bf
JM
24681install-strip-libiconv:
24682
24683@endif libiconv
9b980aa1 24684
56a8fe78 24685# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24686
a90ef4bf
JM
24687.PHONY: maybe-info-libiconv info-libiconv
24688maybe-info-libiconv:
24689@if libiconv
24690maybe-info-libiconv: info-libiconv
4fa63067 24691
016a3251
DD
24692# libiconv doesn't support info.
24693info-libiconv:
2a4cbe27 24694
a90ef4bf 24695@endif libiconv
2a4cbe27 24696
a90ef4bf
JM
24697.PHONY: maybe-dvi-libiconv dvi-libiconv
24698maybe-dvi-libiconv:
24699@if libiconv
24700maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24701
a90ef4bf
JM
24702dvi-libiconv: \
24703 configure-libiconv
a90ef4bf 24704 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24705 r=`${PWD_COMMAND}`; export r; \
24706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24707 $(HOST_EXPORTS) \
b813574b 24708 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24710 done; \
22121df0 24711 echo "Doing dvi in libiconv"; \
a90ef4bf 24712 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24715 "RANLIB=$${RANLIB}" \
0c24b341 24716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24717 dvi) \
2a4cbe27
NN
24718 || exit 1
24719
a90ef4bf 24720@endif libiconv
2a4cbe27 24721
a90ef4bf
JM
24722.PHONY: maybe-pdf-libiconv pdf-libiconv
24723maybe-pdf-libiconv:
24724@if libiconv
24725maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24726
016a3251
DD
24727# libiconv doesn't support pdf.
24728pdf-libiconv:
56a8fe78 24729
a90ef4bf 24730@endif libiconv
56a8fe78 24731
a90ef4bf
JM
24732.PHONY: maybe-html-libiconv html-libiconv
24733maybe-html-libiconv:
24734@if libiconv
24735maybe-html-libiconv: html-libiconv
6d389afc 24736
016a3251
DD
24737# libiconv doesn't support html.
24738html-libiconv:
6d389afc 24739
a90ef4bf 24740@endif libiconv
6d389afc 24741
a90ef4bf
JM
24742.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24743maybe-TAGS-libiconv:
24744@if libiconv
24745maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24746
a90ef4bf
JM
24747TAGS-libiconv: \
24748 configure-libiconv
a90ef4bf 24749 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24750 r=`${PWD_COMMAND}`; export r; \
24751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24752 $(HOST_EXPORTS) \
b813574b 24753 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24755 done; \
22121df0 24756 echo "Doing TAGS in libiconv"; \
a90ef4bf 24757 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24760 "RANLIB=$${RANLIB}" \
0c24b341 24761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24762 TAGS) \
2a4cbe27
NN
24763 || exit 1
24764
a90ef4bf 24765@endif libiconv
2a4cbe27 24766
a90ef4bf
JM
24767.PHONY: maybe-install-info-libiconv install-info-libiconv
24768maybe-install-info-libiconv:
24769@if libiconv
24770maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24771
a90ef4bf
JM
24772# libiconv doesn't support install-info.
24773install-info-libiconv:
2a4cbe27 24774
a90ef4bf 24775@endif libiconv
2a4cbe27 24776
a90ef4bf
JM
24777.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24778maybe-install-pdf-libiconv:
24779@if libiconv
24780maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24781
a90ef4bf
JM
24782# libiconv doesn't support install-pdf.
24783install-pdf-libiconv:
a3ca38d2 24784
a90ef4bf 24785@endif libiconv
a3ca38d2 24786
a90ef4bf
JM
24787.PHONY: maybe-install-html-libiconv install-html-libiconv
24788maybe-install-html-libiconv:
24789@if libiconv
24790maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24791
a90ef4bf
JM
24792# libiconv doesn't support install-html.
24793install-html-libiconv:
108a6f8e 24794
a90ef4bf 24795@endif libiconv
108a6f8e 24796
a90ef4bf
JM
24797.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24798maybe-installcheck-libiconv:
24799@if libiconv
24800maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24801
a90ef4bf
JM
24802installcheck-libiconv: \
24803 configure-libiconv
a90ef4bf 24804 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24805 r=`${PWD_COMMAND}`; export r; \
24806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24807 $(HOST_EXPORTS) \
b813574b 24808 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24810 done; \
22121df0 24811 echo "Doing installcheck in libiconv"; \
a90ef4bf 24812 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24815 "RANLIB=$${RANLIB}" \
0c24b341 24816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24817 installcheck) \
2a4cbe27
NN
24818 || exit 1
24819
a90ef4bf 24820@endif libiconv
2a4cbe27 24821
a90ef4bf
JM
24822.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24823maybe-mostlyclean-libiconv:
24824@if libiconv
24825maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24826
a90ef4bf 24827mostlyclean-libiconv:
a90ef4bf 24828 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24829 r=`${PWD_COMMAND}`; export r; \
24830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24831 $(HOST_EXPORTS) \
b813574b 24832 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24834 done; \
22121df0 24835 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 24836 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24839 "RANLIB=$${RANLIB}" \
0c24b341 24840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24841 mostlyclean) \
2a4cbe27
NN
24842 || exit 1
24843
a90ef4bf 24844@endif libiconv
2a4cbe27 24845
a90ef4bf
JM
24846.PHONY: maybe-clean-libiconv clean-libiconv
24847maybe-clean-libiconv:
24848@if libiconv
24849maybe-clean-libiconv: clean-libiconv
2a4cbe27 24850
a90ef4bf 24851clean-libiconv:
a90ef4bf 24852 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24853 r=`${PWD_COMMAND}`; export r; \
24854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24855 $(HOST_EXPORTS) \
b813574b 24856 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24858 done; \
22121df0 24859 echo "Doing clean in libiconv"; \
a90ef4bf 24860 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24863 "RANLIB=$${RANLIB}" \
0c24b341 24864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24865 clean) \
2a4cbe27
NN
24866 || exit 1
24867
a90ef4bf 24868@endif libiconv
2a4cbe27 24869
a90ef4bf
JM
24870.PHONY: maybe-distclean-libiconv distclean-libiconv
24871maybe-distclean-libiconv:
24872@if libiconv
24873maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 24874
a90ef4bf 24875distclean-libiconv:
a90ef4bf 24876 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24877 r=`${PWD_COMMAND}`; export r; \
24878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24879 $(HOST_EXPORTS) \
b813574b 24880 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24882 done; \
22121df0 24883 echo "Doing distclean in libiconv"; \
a90ef4bf 24884 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24887 "RANLIB=$${RANLIB}" \
0c24b341 24888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24889 distclean) \
2a4cbe27
NN
24890 || exit 1
24891
a90ef4bf 24892@endif libiconv
2a4cbe27 24893
a90ef4bf
JM
24894.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
24895maybe-maintainer-clean-libiconv:
24896@if libiconv
24897maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 24898
a90ef4bf 24899maintainer-clean-libiconv:
a90ef4bf 24900 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24901 r=`${PWD_COMMAND}`; export r; \
24902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24903 $(HOST_EXPORTS) \
b813574b 24904 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24906 done; \
22121df0 24907 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 24908 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24911 "RANLIB=$${RANLIB}" \
0c24b341 24912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24913 maintainer-clean) \
2a4cbe27
NN
24914 || exit 1
24915
a90ef4bf 24916@endif libiconv
2a4cbe27 24917
2a4cbe27 24918
a7254363 24919
a90ef4bf
JM
24920.PHONY: configure-m4 maybe-configure-m4
24921maybe-configure-m4:
4f0ef2d8 24922@if gcc-bootstrap
a90ef4bf 24923configure-m4: stage_current
4f0ef2d8 24924@endif gcc-bootstrap
a90ef4bf
JM
24925@if m4
24926maybe-configure-m4: configure-m4
24927configure-m4:
0aed8855 24928 @: $(MAKE); $(unstage)
c52c6897 24929 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24931 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 24932 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 24933 $(HOST_EXPORTS) \
a90ef4bf
JM
24934 echo Configuring in $(HOST_SUBDIR)/m4; \
24935 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 24936 case $(srcdir) in \
b00612cc 24937 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24938 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 24939 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24940 esac; \
1b6c0831
L
24941 module_srcdir=m4; \
24942 $(SHELL) \
24943 $$s/$$module_srcdir/configure \
24944 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24945 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24946 --target=${target_alias} \
2a4cbe27 24947 || exit 1
a90ef4bf 24948@endif m4
2a4cbe27 24949
a7254363
PB
24950
24951
d545f33b
PB
24952
24953
a90ef4bf
JM
24954.PHONY: all-m4 maybe-all-m4
24955maybe-all-m4:
4f0ef2d8 24956@if gcc-bootstrap
a90ef4bf 24957all-m4: stage_current
4f0ef2d8 24958@endif gcc-bootstrap
a90ef4bf
JM
24959@if m4
24960TARGET-m4=all
24961maybe-all-m4: all-m4
24962all-m4: configure-m4
0aed8855 24963 @: $(MAKE); $(unstage)
4fa63067
NN
24964 @r=`${PWD_COMMAND}`; export r; \
24965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24966 $(HOST_EXPORTS) \
a90ef4bf 24967 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 24968 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24969 $(TARGET-m4))
24970@endif m4
2a4cbe27 24971
a7254363 24972
d545f33b
PB
24973
24974
a90ef4bf
JM
24975.PHONY: check-m4 maybe-check-m4
24976maybe-check-m4:
24977@if m4
24978maybe-check-m4: check-m4
2a4cbe27 24979
a90ef4bf 24980check-m4:
0aed8855 24981 @: $(MAKE); $(unstage)
4fa63067 24982 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 24984 $(HOST_EXPORTS) \
a90ef4bf 24985 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 24986 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24987
a90ef4bf 24988@endif m4
2a4cbe27 24989
a90ef4bf
JM
24990.PHONY: install-m4 maybe-install-m4
24991maybe-install-m4:
24992@if m4
24993maybe-install-m4: install-m4
2a4cbe27 24994
a90ef4bf 24995install-m4: installdirs
0aed8855 24996 @: $(MAKE); $(unstage)
4fa63067 24997 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24999 $(HOST_EXPORTS) \
a90ef4bf 25000 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 25001 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25002
a90ef4bf 25003@endif m4
2a4cbe27 25004
a90ef4bf
JM
25005.PHONY: install-strip-m4 maybe-install-strip-m4
25006maybe-install-strip-m4:
25007@if m4
25008maybe-install-strip-m4: install-strip-m4
9b980aa1 25009
a90ef4bf 25010install-strip-m4: installdirs
9b980aa1
RW
25011 @: $(MAKE); $(unstage)
25012 @r=`${PWD_COMMAND}`; export r; \
25013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25014 $(HOST_EXPORTS) \
a90ef4bf 25015 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25016 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25017
a90ef4bf 25018@endif m4
9b980aa1 25019
56a8fe78 25020# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25021
a90ef4bf
JM
25022.PHONY: maybe-info-m4 info-m4
25023maybe-info-m4:
25024@if m4
25025maybe-info-m4: info-m4
4fa63067 25026
a90ef4bf
JM
25027info-m4: \
25028 configure-m4
0aed8855 25029 @: $(MAKE); $(unstage)
a90ef4bf 25030 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25031 r=`${PWD_COMMAND}`; export r; \
25032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25033 $(HOST_EXPORTS) \
b813574b 25034 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25036 done; \
22121df0 25037 echo "Doing info in m4"; \
a90ef4bf 25038 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25041 "RANLIB=$${RANLIB}" \
0c24b341 25042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25043 info) \
2a4cbe27
NN
25044 || exit 1
25045
a90ef4bf 25046@endif m4
2a4cbe27 25047
a90ef4bf
JM
25048.PHONY: maybe-dvi-m4 dvi-m4
25049maybe-dvi-m4:
25050@if m4
25051maybe-dvi-m4: dvi-m4
2a4cbe27 25052
a90ef4bf
JM
25053dvi-m4: \
25054 configure-m4
0aed8855 25055 @: $(MAKE); $(unstage)
a90ef4bf 25056 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25057 r=`${PWD_COMMAND}`; export r; \
25058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25059 $(HOST_EXPORTS) \
b813574b 25060 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25062 done; \
22121df0 25063 echo "Doing dvi in m4"; \
a90ef4bf 25064 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25067 "RANLIB=$${RANLIB}" \
0c24b341 25068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25069 dvi) \
2a4cbe27
NN
25070 || exit 1
25071
a90ef4bf 25072@endif m4
2a4cbe27 25073
a90ef4bf
JM
25074.PHONY: maybe-pdf-m4 pdf-m4
25075maybe-pdf-m4:
25076@if m4
25077maybe-pdf-m4: pdf-m4
56a8fe78 25078
a90ef4bf
JM
25079pdf-m4: \
25080 configure-m4
56a8fe78 25081 @: $(MAKE); $(unstage)
a90ef4bf 25082 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25083 r=`${PWD_COMMAND}`; export r; \
25084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25085 $(HOST_EXPORTS) \
25086 for flag in $(EXTRA_HOST_FLAGS) ; do \
25087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25088 done; \
22121df0 25089 echo "Doing pdf in m4"; \
a90ef4bf 25090 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25093 "RANLIB=$${RANLIB}" \
0c24b341 25094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25095 pdf) \
25096 || exit 1
25097
a90ef4bf 25098@endif m4
56a8fe78 25099
a90ef4bf
JM
25100.PHONY: maybe-html-m4 html-m4
25101maybe-html-m4:
25102@if m4
25103maybe-html-m4: html-m4
6d389afc 25104
a90ef4bf
JM
25105html-m4: \
25106 configure-m4
0aed8855 25107 @: $(MAKE); $(unstage)
a90ef4bf 25108 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25109 r=`${PWD_COMMAND}`; export r; \
25110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25111 $(HOST_EXPORTS) \
25112 for flag in $(EXTRA_HOST_FLAGS) ; do \
25113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25114 done; \
22121df0 25115 echo "Doing html in m4"; \
a90ef4bf 25116 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25119 "RANLIB=$${RANLIB}" \
0c24b341 25120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25121 html) \
25122 || exit 1
25123
a90ef4bf 25124@endif m4
6d389afc 25125
a90ef4bf
JM
25126.PHONY: maybe-TAGS-m4 TAGS-m4
25127maybe-TAGS-m4:
25128@if m4
25129maybe-TAGS-m4: TAGS-m4
2a4cbe27 25130
a90ef4bf
JM
25131TAGS-m4: \
25132 configure-m4
0aed8855 25133 @: $(MAKE); $(unstage)
a90ef4bf 25134 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25135 r=`${PWD_COMMAND}`; export r; \
25136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25137 $(HOST_EXPORTS) \
b813574b 25138 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25140 done; \
22121df0 25141 echo "Doing TAGS in m4"; \
a90ef4bf 25142 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25145 "RANLIB=$${RANLIB}" \
0c24b341 25146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25147 TAGS) \
2a4cbe27
NN
25148 || exit 1
25149
a90ef4bf 25150@endif m4
2a4cbe27 25151
a90ef4bf
JM
25152.PHONY: maybe-install-info-m4 install-info-m4
25153maybe-install-info-m4:
25154@if m4
25155maybe-install-info-m4: install-info-m4
2a4cbe27 25156
a90ef4bf
JM
25157install-info-m4: \
25158 configure-m4 \
25159 info-m4
0aed8855 25160 @: $(MAKE); $(unstage)
a90ef4bf 25161 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25162 r=`${PWD_COMMAND}`; export r; \
25163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25164 $(HOST_EXPORTS) \
b813574b 25165 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25167 done; \
22121df0 25168 echo "Doing install-info in m4"; \
a90ef4bf 25169 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25172 "RANLIB=$${RANLIB}" \
0c24b341 25173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25174 install-info) \
2a4cbe27
NN
25175 || exit 1
25176
a90ef4bf 25177@endif m4
2a4cbe27 25178
a90ef4bf
JM
25179.PHONY: maybe-install-pdf-m4 install-pdf-m4
25180maybe-install-pdf-m4:
25181@if m4
25182maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25183
a90ef4bf
JM
25184install-pdf-m4: \
25185 configure-m4 \
25186 pdf-m4
a3ca38d2 25187 @: $(MAKE); $(unstage)
a90ef4bf 25188 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25189 r=`${PWD_COMMAND}`; export r; \
25190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25191 $(HOST_EXPORTS) \
25192 for flag in $(EXTRA_HOST_FLAGS) ; do \
25193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25194 done; \
22121df0 25195 echo "Doing install-pdf in m4"; \
a90ef4bf 25196 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25199 "RANLIB=$${RANLIB}" \
0c24b341 25200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25201 install-pdf) \
25202 || exit 1
25203
a90ef4bf 25204@endif m4
a3ca38d2 25205
a90ef4bf
JM
25206.PHONY: maybe-install-html-m4 install-html-m4
25207maybe-install-html-m4:
25208@if m4
25209maybe-install-html-m4: install-html-m4
108a6f8e 25210
a90ef4bf
JM
25211install-html-m4: \
25212 configure-m4 \
25213 html-m4
108a6f8e 25214 @: $(MAKE); $(unstage)
a90ef4bf 25215 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25216 r=`${PWD_COMMAND}`; export r; \
25217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25218 $(HOST_EXPORTS) \
25219 for flag in $(EXTRA_HOST_FLAGS) ; do \
25220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25221 done; \
22121df0 25222 echo "Doing install-html in m4"; \
a90ef4bf 25223 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25226 "RANLIB=$${RANLIB}" \
0c24b341 25227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25228 install-html) \
25229 || exit 1
25230
a90ef4bf 25231@endif m4
108a6f8e 25232
a90ef4bf
JM
25233.PHONY: maybe-installcheck-m4 installcheck-m4
25234maybe-installcheck-m4:
25235@if m4
25236maybe-installcheck-m4: installcheck-m4
2a4cbe27 25237
a90ef4bf
JM
25238installcheck-m4: \
25239 configure-m4
0aed8855 25240 @: $(MAKE); $(unstage)
a90ef4bf 25241 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25242 r=`${PWD_COMMAND}`; export r; \
25243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25244 $(HOST_EXPORTS) \
b813574b 25245 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25247 done; \
22121df0 25248 echo "Doing installcheck in m4"; \
a90ef4bf 25249 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25252 "RANLIB=$${RANLIB}" \
0c24b341 25253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25254 installcheck) \
2a4cbe27
NN
25255 || exit 1
25256
a90ef4bf 25257@endif m4
2a4cbe27 25258
a90ef4bf
JM
25259.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25260maybe-mostlyclean-m4:
25261@if m4
25262maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25263
a90ef4bf 25264mostlyclean-m4:
0aed8855 25265 @: $(MAKE); $(unstage)
a90ef4bf 25266 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25267 r=`${PWD_COMMAND}`; export r; \
25268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25269 $(HOST_EXPORTS) \
b813574b 25270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25272 done; \
22121df0 25273 echo "Doing mostlyclean in m4"; \
a90ef4bf 25274 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25277 "RANLIB=$${RANLIB}" \
0c24b341 25278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25279 mostlyclean) \
2a4cbe27
NN
25280 || exit 1
25281
a90ef4bf 25282@endif m4
2a4cbe27 25283
a90ef4bf
JM
25284.PHONY: maybe-clean-m4 clean-m4
25285maybe-clean-m4:
25286@if m4
25287maybe-clean-m4: clean-m4
2a4cbe27 25288
a90ef4bf 25289clean-m4:
0aed8855 25290 @: $(MAKE); $(unstage)
a90ef4bf 25291 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25292 r=`${PWD_COMMAND}`; export r; \
25293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25294 $(HOST_EXPORTS) \
b813574b 25295 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25297 done; \
22121df0 25298 echo "Doing clean in m4"; \
a90ef4bf 25299 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25302 "RANLIB=$${RANLIB}" \
0c24b341 25303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25304 clean) \
2a4cbe27
NN
25305 || exit 1
25306
a90ef4bf 25307@endif m4
2a4cbe27 25308
a90ef4bf
JM
25309.PHONY: maybe-distclean-m4 distclean-m4
25310maybe-distclean-m4:
25311@if m4
25312maybe-distclean-m4: distclean-m4
2a4cbe27 25313
a90ef4bf 25314distclean-m4:
0aed8855 25315 @: $(MAKE); $(unstage)
a90ef4bf 25316 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25317 r=`${PWD_COMMAND}`; export r; \
25318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25319 $(HOST_EXPORTS) \
b813574b 25320 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25322 done; \
22121df0 25323 echo "Doing distclean in m4"; \
a90ef4bf 25324 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25327 "RANLIB=$${RANLIB}" \
0c24b341 25328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25329 distclean) \
2a4cbe27
NN
25330 || exit 1
25331
a90ef4bf 25332@endif m4
2a4cbe27 25333
a90ef4bf
JM
25334.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25335maybe-maintainer-clean-m4:
25336@if m4
25337maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25338
a90ef4bf 25339maintainer-clean-m4:
0aed8855 25340 @: $(MAKE); $(unstage)
a90ef4bf 25341 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25342 r=`${PWD_COMMAND}`; export r; \
25343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25344 $(HOST_EXPORTS) \
b813574b 25345 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25347 done; \
22121df0 25348 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25349 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25352 "RANLIB=$${RANLIB}" \
0c24b341 25353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25354 maintainer-clean) \
2a4cbe27
NN
25355 || exit 1
25356
a90ef4bf 25357@endif m4
2a4cbe27 25358
2a4cbe27 25359
a7254363 25360
a90ef4bf
JM
25361.PHONY: configure-readline maybe-configure-readline
25362maybe-configure-readline:
4f0ef2d8 25363@if gcc-bootstrap
a90ef4bf 25364configure-readline: stage_current
4f0ef2d8 25365@endif gcc-bootstrap
a90ef4bf
JM
25366@if readline
25367maybe-configure-readline: configure-readline
25368configure-readline:
0aed8855 25369 @: $(MAKE); $(unstage)
c52c6897 25370 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25372 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25373 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25374 $(HOST_EXPORTS) \
a90ef4bf
JM
25375 echo Configuring in $(HOST_SUBDIR)/readline; \
25376 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25377 case $(srcdir) in \
b00612cc 25378 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25379 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25380 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25381 esac; \
1b6c0831
L
25382 module_srcdir=readline; \
25383 $(SHELL) \
25384 $$s/$$module_srcdir/configure \
25385 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25386 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25387 --target=${target_alias} \
2a4cbe27 25388 || exit 1
a90ef4bf 25389@endif readline
2a4cbe27 25390
a7254363
PB
25391
25392
d545f33b
PB
25393
25394
a90ef4bf
JM
25395.PHONY: all-readline maybe-all-readline
25396maybe-all-readline:
4f0ef2d8 25397@if gcc-bootstrap
a90ef4bf 25398all-readline: stage_current
4f0ef2d8 25399@endif gcc-bootstrap
a90ef4bf
JM
25400@if readline
25401TARGET-readline=all
25402maybe-all-readline: all-readline
25403all-readline: configure-readline
0aed8855 25404 @: $(MAKE); $(unstage)
4fa63067
NN
25405 @r=`${PWD_COMMAND}`; export r; \
25406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25407 $(HOST_EXPORTS) \
a90ef4bf 25408 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25409 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25410 $(TARGET-readline))
25411@endif readline
2a4cbe27 25412
a7254363 25413
d545f33b
PB
25414
25415
a90ef4bf
JM
25416.PHONY: check-readline maybe-check-readline
25417maybe-check-readline:
25418@if readline
25419maybe-check-readline: check-readline
2a4cbe27 25420
a90ef4bf 25421check-readline:
0aed8855 25422 @: $(MAKE); $(unstage)
4fa63067 25423 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25425 $(HOST_EXPORTS) \
a90ef4bf 25426 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25427 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25428
a90ef4bf 25429@endif readline
2a4cbe27 25430
a90ef4bf
JM
25431.PHONY: install-readline maybe-install-readline
25432maybe-install-readline:
25433@if readline
25434maybe-install-readline: install-readline
2a4cbe27 25435
a90ef4bf 25436install-readline: installdirs
0aed8855 25437 @: $(MAKE); $(unstage)
4fa63067
NN
25438 @r=`${PWD_COMMAND}`; export r; \
25439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25440 $(HOST_EXPORTS) \
a90ef4bf 25441 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25442 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25443
a90ef4bf 25444@endif readline
9b980aa1 25445
a90ef4bf
JM
25446.PHONY: install-strip-readline maybe-install-strip-readline
25447maybe-install-strip-readline:
25448@if readline
25449maybe-install-strip-readline: install-strip-readline
25450
25451install-strip-readline: installdirs
9b980aa1
RW
25452 @: $(MAKE); $(unstage)
25453 @r=`${PWD_COMMAND}`; export r; \
25454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25455 $(HOST_EXPORTS) \
a90ef4bf 25456 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25457 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25458
a90ef4bf 25459@endif readline
9b980aa1 25460
56a8fe78 25461# Other targets (info, dvi, pdf, etc.)
4fa63067 25462
a90ef4bf
JM
25463.PHONY: maybe-info-readline info-readline
25464maybe-info-readline:
25465@if readline
25466maybe-info-readline: info-readline
4fa63067 25467
a90ef4bf
JM
25468info-readline: \
25469 configure-readline
0aed8855 25470 @: $(MAKE); $(unstage)
a90ef4bf 25471 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25472 r=`${PWD_COMMAND}`; export r; \
25473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25474 $(HOST_EXPORTS) \
b813574b 25475 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25477 done; \
22121df0 25478 echo "Doing info in readline"; \
a90ef4bf 25479 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25482 "RANLIB=$${RANLIB}" \
0c24b341 25483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25484 info) \
2a4cbe27
NN
25485 || exit 1
25486
a90ef4bf 25487@endif readline
2a4cbe27 25488
a90ef4bf
JM
25489.PHONY: maybe-dvi-readline dvi-readline
25490maybe-dvi-readline:
25491@if readline
25492maybe-dvi-readline: dvi-readline
2a4cbe27 25493
a90ef4bf
JM
25494dvi-readline: \
25495 configure-readline
0aed8855 25496 @: $(MAKE); $(unstage)
a90ef4bf 25497 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25498 r=`${PWD_COMMAND}`; export r; \
25499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25500 $(HOST_EXPORTS) \
b813574b 25501 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25503 done; \
22121df0 25504 echo "Doing dvi in readline"; \
a90ef4bf 25505 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25508 "RANLIB=$${RANLIB}" \
0c24b341 25509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25510 dvi) \
2a4cbe27
NN
25511 || exit 1
25512
a90ef4bf 25513@endif readline
2a4cbe27 25514
a90ef4bf
JM
25515.PHONY: maybe-pdf-readline pdf-readline
25516maybe-pdf-readline:
25517@if readline
25518maybe-pdf-readline: pdf-readline
56a8fe78 25519
a90ef4bf
JM
25520pdf-readline: \
25521 configure-readline
56a8fe78 25522 @: $(MAKE); $(unstage)
a90ef4bf 25523 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25524 r=`${PWD_COMMAND}`; export r; \
25525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25526 $(HOST_EXPORTS) \
25527 for flag in $(EXTRA_HOST_FLAGS) ; do \
25528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25529 done; \
22121df0 25530 echo "Doing pdf in readline"; \
a90ef4bf 25531 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25534 "RANLIB=$${RANLIB}" \
0c24b341 25535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25536 pdf) \
25537 || exit 1
25538
a90ef4bf 25539@endif readline
56a8fe78 25540
a90ef4bf
JM
25541.PHONY: maybe-html-readline html-readline
25542maybe-html-readline:
25543@if readline
25544maybe-html-readline: html-readline
6d389afc 25545
a90ef4bf
JM
25546html-readline: \
25547 configure-readline
0aed8855 25548 @: $(MAKE); $(unstage)
a90ef4bf 25549 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25550 r=`${PWD_COMMAND}`; export r; \
25551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25552 $(HOST_EXPORTS) \
25553 for flag in $(EXTRA_HOST_FLAGS) ; do \
25554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25555 done; \
22121df0 25556 echo "Doing html in readline"; \
a90ef4bf 25557 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25560 "RANLIB=$${RANLIB}" \
0c24b341 25561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25562 html) \
25563 || exit 1
25564
a90ef4bf 25565@endif readline
6d389afc 25566
a90ef4bf
JM
25567.PHONY: maybe-TAGS-readline TAGS-readline
25568maybe-TAGS-readline:
25569@if readline
25570maybe-TAGS-readline: TAGS-readline
2a4cbe27 25571
a90ef4bf
JM
25572TAGS-readline: \
25573 configure-readline
0aed8855 25574 @: $(MAKE); $(unstage)
a90ef4bf 25575 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25576 r=`${PWD_COMMAND}`; export r; \
25577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25578 $(HOST_EXPORTS) \
b813574b 25579 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25581 done; \
22121df0 25582 echo "Doing TAGS in readline"; \
a90ef4bf 25583 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25586 "RANLIB=$${RANLIB}" \
0c24b341 25587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25588 TAGS) \
2a4cbe27
NN
25589 || exit 1
25590
a90ef4bf 25591@endif readline
2a4cbe27 25592
a90ef4bf
JM
25593.PHONY: maybe-install-info-readline install-info-readline
25594maybe-install-info-readline:
25595@if readline
25596maybe-install-info-readline: install-info-readline
2a4cbe27 25597
a90ef4bf
JM
25598install-info-readline: \
25599 configure-readline \
25600 info-readline
0aed8855 25601 @: $(MAKE); $(unstage)
a90ef4bf 25602 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25603 r=`${PWD_COMMAND}`; export r; \
25604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25605 $(HOST_EXPORTS) \
b813574b 25606 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25608 done; \
22121df0 25609 echo "Doing install-info in readline"; \
a90ef4bf 25610 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25613 "RANLIB=$${RANLIB}" \
0c24b341 25614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25615 install-info) \
2a4cbe27
NN
25616 || exit 1
25617
a90ef4bf 25618@endif readline
2a4cbe27 25619
a90ef4bf
JM
25620.PHONY: maybe-install-pdf-readline install-pdf-readline
25621maybe-install-pdf-readline:
25622@if readline
25623maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25624
a90ef4bf
JM
25625install-pdf-readline: \
25626 configure-readline \
25627 pdf-readline
a3ca38d2 25628 @: $(MAKE); $(unstage)
a90ef4bf 25629 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25630 r=`${PWD_COMMAND}`; export r; \
25631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25632 $(HOST_EXPORTS) \
25633 for flag in $(EXTRA_HOST_FLAGS) ; do \
25634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25635 done; \
22121df0 25636 echo "Doing install-pdf in readline"; \
a90ef4bf 25637 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25640 "RANLIB=$${RANLIB}" \
0c24b341 25641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25642 install-pdf) \
25643 || exit 1
25644
a90ef4bf 25645@endif readline
a3ca38d2 25646
a90ef4bf
JM
25647.PHONY: maybe-install-html-readline install-html-readline
25648maybe-install-html-readline:
25649@if readline
25650maybe-install-html-readline: install-html-readline
108a6f8e 25651
a90ef4bf
JM
25652install-html-readline: \
25653 configure-readline \
25654 html-readline
108a6f8e 25655 @: $(MAKE); $(unstage)
a90ef4bf 25656 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25657 r=`${PWD_COMMAND}`; export r; \
25658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25659 $(HOST_EXPORTS) \
25660 for flag in $(EXTRA_HOST_FLAGS) ; do \
25661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25662 done; \
22121df0 25663 echo "Doing install-html in readline"; \
a90ef4bf 25664 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25667 "RANLIB=$${RANLIB}" \
0c24b341 25668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25669 install-html) \
25670 || exit 1
25671
a90ef4bf 25672@endif readline
108a6f8e 25673
a90ef4bf
JM
25674.PHONY: maybe-installcheck-readline installcheck-readline
25675maybe-installcheck-readline:
25676@if readline
25677maybe-installcheck-readline: installcheck-readline
2a4cbe27 25678
a90ef4bf
JM
25679installcheck-readline: \
25680 configure-readline
0aed8855 25681 @: $(MAKE); $(unstage)
a90ef4bf 25682 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25683 r=`${PWD_COMMAND}`; export r; \
25684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25685 $(HOST_EXPORTS) \
b813574b 25686 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25688 done; \
22121df0 25689 echo "Doing installcheck in readline"; \
a90ef4bf 25690 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25693 "RANLIB=$${RANLIB}" \
0c24b341 25694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25695 installcheck) \
2a4cbe27
NN
25696 || exit 1
25697
a90ef4bf 25698@endif readline
2a4cbe27 25699
a90ef4bf
JM
25700.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25701maybe-mostlyclean-readline:
25702@if readline
25703maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25704
a90ef4bf 25705mostlyclean-readline:
0aed8855 25706 @: $(MAKE); $(unstage)
a90ef4bf 25707 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25708 r=`${PWD_COMMAND}`; export r; \
25709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25710 $(HOST_EXPORTS) \
b813574b 25711 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25713 done; \
22121df0 25714 echo "Doing mostlyclean in readline"; \
a90ef4bf 25715 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25718 "RANLIB=$${RANLIB}" \
0c24b341 25719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25720 mostlyclean) \
2a4cbe27
NN
25721 || exit 1
25722
a90ef4bf 25723@endif readline
2a4cbe27 25724
a90ef4bf
JM
25725.PHONY: maybe-clean-readline clean-readline
25726maybe-clean-readline:
25727@if readline
25728maybe-clean-readline: clean-readline
2a4cbe27 25729
a90ef4bf 25730clean-readline:
0aed8855 25731 @: $(MAKE); $(unstage)
a90ef4bf 25732 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25733 r=`${PWD_COMMAND}`; export r; \
25734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25735 $(HOST_EXPORTS) \
b813574b 25736 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25738 done; \
22121df0 25739 echo "Doing clean in readline"; \
a90ef4bf 25740 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25743 "RANLIB=$${RANLIB}" \
0c24b341 25744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25745 clean) \
2a4cbe27
NN
25746 || exit 1
25747
a90ef4bf 25748@endif readline
2a4cbe27 25749
a90ef4bf
JM
25750.PHONY: maybe-distclean-readline distclean-readline
25751maybe-distclean-readline:
25752@if readline
25753maybe-distclean-readline: distclean-readline
2a4cbe27 25754
a90ef4bf 25755distclean-readline:
0aed8855 25756 @: $(MAKE); $(unstage)
a90ef4bf 25757 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25758 r=`${PWD_COMMAND}`; export r; \
25759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25760 $(HOST_EXPORTS) \
b813574b 25761 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25763 done; \
22121df0 25764 echo "Doing distclean in readline"; \
a90ef4bf 25765 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25768 "RANLIB=$${RANLIB}" \
0c24b341 25769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25770 distclean) \
2a4cbe27
NN
25771 || exit 1
25772
a90ef4bf 25773@endif readline
2a4cbe27 25774
a90ef4bf
JM
25775.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25776maybe-maintainer-clean-readline:
25777@if readline
25778maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25779
a90ef4bf 25780maintainer-clean-readline:
0aed8855 25781 @: $(MAKE); $(unstage)
a90ef4bf 25782 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25783 r=`${PWD_COMMAND}`; export r; \
25784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25785 $(HOST_EXPORTS) \
b813574b 25786 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25788 done; \
22121df0 25789 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25790 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25793 "RANLIB=$${RANLIB}" \
0c24b341 25794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25795 maintainer-clean) \
2a4cbe27
NN
25796 || exit 1
25797
a90ef4bf 25798@endif readline
2a4cbe27 25799
2a4cbe27 25800
a7254363 25801
a90ef4bf
JM
25802.PHONY: configure-sid maybe-configure-sid
25803maybe-configure-sid:
4f0ef2d8 25804@if gcc-bootstrap
a90ef4bf 25805configure-sid: stage_current
4f0ef2d8 25806@endif gcc-bootstrap
a90ef4bf
JM
25807@if sid
25808maybe-configure-sid: configure-sid
25809configure-sid:
0aed8855 25810 @: $(MAKE); $(unstage)
c52c6897 25811 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25813 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25814 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25815 $(HOST_EXPORTS) \
a90ef4bf
JM
25816 echo Configuring in $(HOST_SUBDIR)/sid; \
25817 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25818 case $(srcdir) in \
b00612cc 25819 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25820 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25821 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25822 esac; \
1b6c0831
L
25823 module_srcdir=sid; \
25824 $(SHELL) \
25825 $$s/$$module_srcdir/configure \
25826 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25827 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25828 --target=${target_alias} \
4fa63067 25829 || exit 1
a90ef4bf 25830@endif sid
2a4cbe27 25831
a7254363
PB
25832
25833
d545f33b
PB
25834
25835
a90ef4bf
JM
25836.PHONY: all-sid maybe-all-sid
25837maybe-all-sid:
4f0ef2d8 25838@if gcc-bootstrap
a90ef4bf 25839all-sid: stage_current
4f0ef2d8 25840@endif gcc-bootstrap
a90ef4bf
JM
25841@if sid
25842TARGET-sid=all
25843maybe-all-sid: all-sid
25844all-sid: configure-sid
0aed8855 25845 @: $(MAKE); $(unstage)
4fa63067
NN
25846 @r=`${PWD_COMMAND}`; export r; \
25847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25848 $(HOST_EXPORTS) \
a90ef4bf 25849 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25850 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25851 $(TARGET-sid))
25852@endif sid
2a4cbe27 25853
a7254363 25854
d545f33b
PB
25855
25856
a90ef4bf
JM
25857.PHONY: check-sid maybe-check-sid
25858maybe-check-sid:
25859@if sid
25860maybe-check-sid: check-sid
2a4cbe27 25861
a90ef4bf 25862check-sid:
0aed8855 25863 @: $(MAKE); $(unstage)
4fa63067 25864 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25866 $(HOST_EXPORTS) \
a90ef4bf 25867 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25868 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25869
a90ef4bf 25870@endif sid
2a4cbe27 25871
a90ef4bf
JM
25872.PHONY: install-sid maybe-install-sid
25873maybe-install-sid:
25874@if sid
25875maybe-install-sid: install-sid
2a4cbe27 25876
a90ef4bf 25877install-sid: installdirs
0aed8855 25878 @: $(MAKE); $(unstage)
4fa63067 25879 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25881 $(HOST_EXPORTS) \
a90ef4bf 25882 (cd $(HOST_SUBDIR)/sid && \
2da12f12 25883 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25884
a90ef4bf 25885@endif sid
2a4cbe27 25886
a90ef4bf
JM
25887.PHONY: install-strip-sid maybe-install-strip-sid
25888maybe-install-strip-sid:
25889@if sid
25890maybe-install-strip-sid: install-strip-sid
9b980aa1 25891
a90ef4bf 25892install-strip-sid: installdirs
9b980aa1
RW
25893 @: $(MAKE); $(unstage)
25894 @r=`${PWD_COMMAND}`; export r; \
25895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25896 $(HOST_EXPORTS) \
a90ef4bf 25897 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
25898 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25899
a90ef4bf 25900@endif sid
9b980aa1 25901
56a8fe78 25902# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25903
a90ef4bf
JM
25904.PHONY: maybe-info-sid info-sid
25905maybe-info-sid:
25906@if sid
25907maybe-info-sid: info-sid
4fa63067 25908
a90ef4bf
JM
25909info-sid: \
25910 configure-sid
0aed8855 25911 @: $(MAKE); $(unstage)
a90ef4bf 25912 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25913 r=`${PWD_COMMAND}`; export r; \
25914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25915 $(HOST_EXPORTS) \
b813574b 25916 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25918 done; \
22121df0 25919 echo "Doing info in sid"; \
a90ef4bf 25920 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25923 "RANLIB=$${RANLIB}" \
0c24b341 25924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25925 info) \
2a4cbe27
NN
25926 || exit 1
25927
a90ef4bf 25928@endif sid
2a4cbe27 25929
a90ef4bf
JM
25930.PHONY: maybe-dvi-sid dvi-sid
25931maybe-dvi-sid:
25932@if sid
25933maybe-dvi-sid: dvi-sid
2a4cbe27 25934
a90ef4bf
JM
25935dvi-sid: \
25936 configure-sid
0aed8855 25937 @: $(MAKE); $(unstage)
a90ef4bf 25938 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25939 r=`${PWD_COMMAND}`; export r; \
25940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25941 $(HOST_EXPORTS) \
b813574b 25942 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25944 done; \
22121df0 25945 echo "Doing dvi in sid"; \
a90ef4bf 25946 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25949 "RANLIB=$${RANLIB}" \
0c24b341 25950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25951 dvi) \
2a4cbe27
NN
25952 || exit 1
25953
a90ef4bf 25954@endif sid
2a4cbe27 25955
a90ef4bf
JM
25956.PHONY: maybe-pdf-sid pdf-sid
25957maybe-pdf-sid:
25958@if sid
25959maybe-pdf-sid: pdf-sid
56a8fe78 25960
a90ef4bf
JM
25961pdf-sid: \
25962 configure-sid
56a8fe78 25963 @: $(MAKE); $(unstage)
a90ef4bf 25964 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
25965 r=`${PWD_COMMAND}`; export r; \
25966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25967 $(HOST_EXPORTS) \
25968 for flag in $(EXTRA_HOST_FLAGS) ; do \
25969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25970 done; \
22121df0 25971 echo "Doing pdf in sid"; \
a90ef4bf 25972 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
25973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25975 "RANLIB=$${RANLIB}" \
0c24b341 25976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25977 pdf) \
25978 || exit 1
25979
a90ef4bf 25980@endif sid
56a8fe78 25981
a90ef4bf
JM
25982.PHONY: maybe-html-sid html-sid
25983maybe-html-sid:
25984@if sid
25985maybe-html-sid: html-sid
6d389afc 25986
a90ef4bf
JM
25987html-sid: \
25988 configure-sid
0aed8855 25989 @: $(MAKE); $(unstage)
a90ef4bf 25990 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
25991 r=`${PWD_COMMAND}`; export r; \
25992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25993 $(HOST_EXPORTS) \
25994 for flag in $(EXTRA_HOST_FLAGS) ; do \
25995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25996 done; \
22121df0 25997 echo "Doing html in sid"; \
a90ef4bf 25998 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
25999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26001 "RANLIB=$${RANLIB}" \
0c24b341 26002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26003 html) \
26004 || exit 1
26005
a90ef4bf 26006@endif sid
6d389afc 26007
a90ef4bf
JM
26008.PHONY: maybe-TAGS-sid TAGS-sid
26009maybe-TAGS-sid:
26010@if sid
26011maybe-TAGS-sid: TAGS-sid
2a4cbe27 26012
a90ef4bf
JM
26013TAGS-sid: \
26014 configure-sid
0aed8855 26015 @: $(MAKE); $(unstage)
a90ef4bf 26016 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26017 r=`${PWD_COMMAND}`; export r; \
26018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26019 $(HOST_EXPORTS) \
b813574b 26020 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26022 done; \
22121df0 26023 echo "Doing TAGS in sid"; \
a90ef4bf 26024 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26027 "RANLIB=$${RANLIB}" \
0c24b341 26028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26029 TAGS) \
2a4cbe27
NN
26030 || exit 1
26031
a90ef4bf 26032@endif sid
2a4cbe27 26033
a90ef4bf
JM
26034.PHONY: maybe-install-info-sid install-info-sid
26035maybe-install-info-sid:
26036@if sid
26037maybe-install-info-sid: install-info-sid
2a4cbe27 26038
a90ef4bf
JM
26039install-info-sid: \
26040 configure-sid \
26041 info-sid
0aed8855 26042 @: $(MAKE); $(unstage)
a90ef4bf 26043 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26044 r=`${PWD_COMMAND}`; export r; \
26045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26046 $(HOST_EXPORTS) \
b813574b 26047 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26049 done; \
22121df0 26050 echo "Doing install-info in sid"; \
a90ef4bf 26051 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26054 "RANLIB=$${RANLIB}" \
0c24b341 26055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26056 install-info) \
2a4cbe27
NN
26057 || exit 1
26058
a90ef4bf 26059@endif sid
2a4cbe27 26060
a90ef4bf
JM
26061.PHONY: maybe-install-pdf-sid install-pdf-sid
26062maybe-install-pdf-sid:
26063@if sid
26064maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26065
a90ef4bf
JM
26066install-pdf-sid: \
26067 configure-sid \
26068 pdf-sid
a3ca38d2 26069 @: $(MAKE); $(unstage)
a90ef4bf 26070 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26071 r=`${PWD_COMMAND}`; export r; \
26072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26073 $(HOST_EXPORTS) \
26074 for flag in $(EXTRA_HOST_FLAGS) ; do \
26075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26076 done; \
22121df0 26077 echo "Doing install-pdf in sid"; \
a90ef4bf 26078 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26081 "RANLIB=$${RANLIB}" \
0c24b341 26082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26083 install-pdf) \
26084 || exit 1
26085
a90ef4bf 26086@endif sid
a3ca38d2 26087
a90ef4bf
JM
26088.PHONY: maybe-install-html-sid install-html-sid
26089maybe-install-html-sid:
26090@if sid
26091maybe-install-html-sid: install-html-sid
108a6f8e 26092
a90ef4bf
JM
26093install-html-sid: \
26094 configure-sid \
26095 html-sid
108a6f8e 26096 @: $(MAKE); $(unstage)
a90ef4bf 26097 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26098 r=`${PWD_COMMAND}`; export r; \
26099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26100 $(HOST_EXPORTS) \
26101 for flag in $(EXTRA_HOST_FLAGS) ; do \
26102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26103 done; \
22121df0 26104 echo "Doing install-html in sid"; \
a90ef4bf 26105 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26108 "RANLIB=$${RANLIB}" \
0c24b341 26109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26110 install-html) \
26111 || exit 1
26112
a90ef4bf 26113@endif sid
108a6f8e 26114
a90ef4bf
JM
26115.PHONY: maybe-installcheck-sid installcheck-sid
26116maybe-installcheck-sid:
26117@if sid
26118maybe-installcheck-sid: installcheck-sid
2a4cbe27 26119
a90ef4bf
JM
26120installcheck-sid: \
26121 configure-sid
0aed8855 26122 @: $(MAKE); $(unstage)
a90ef4bf 26123 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26124 r=`${PWD_COMMAND}`; export r; \
26125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26126 $(HOST_EXPORTS) \
b813574b 26127 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26129 done; \
22121df0 26130 echo "Doing installcheck in sid"; \
a90ef4bf 26131 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26134 "RANLIB=$${RANLIB}" \
0c24b341 26135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26136 installcheck) \
2a4cbe27
NN
26137 || exit 1
26138
a90ef4bf 26139@endif sid
2a4cbe27 26140
a90ef4bf
JM
26141.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26142maybe-mostlyclean-sid:
26143@if sid
26144maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26145
a90ef4bf 26146mostlyclean-sid:
0aed8855 26147 @: $(MAKE); $(unstage)
a90ef4bf 26148 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26149 r=`${PWD_COMMAND}`; export r; \
26150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26151 $(HOST_EXPORTS) \
b813574b 26152 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26154 done; \
22121df0 26155 echo "Doing mostlyclean in sid"; \
a90ef4bf 26156 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26159 "RANLIB=$${RANLIB}" \
0c24b341 26160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26161 mostlyclean) \
2a4cbe27
NN
26162 || exit 1
26163
a90ef4bf 26164@endif sid
2a4cbe27 26165
a90ef4bf
JM
26166.PHONY: maybe-clean-sid clean-sid
26167maybe-clean-sid:
26168@if sid
26169maybe-clean-sid: clean-sid
2a4cbe27 26170
a90ef4bf 26171clean-sid:
0aed8855 26172 @: $(MAKE); $(unstage)
a90ef4bf 26173 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26174 r=`${PWD_COMMAND}`; export r; \
26175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26176 $(HOST_EXPORTS) \
b813574b 26177 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26179 done; \
22121df0 26180 echo "Doing clean in sid"; \
a90ef4bf 26181 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26184 "RANLIB=$${RANLIB}" \
0c24b341 26185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26186 clean) \
2a4cbe27
NN
26187 || exit 1
26188
a90ef4bf 26189@endif sid
2a4cbe27 26190
a90ef4bf
JM
26191.PHONY: maybe-distclean-sid distclean-sid
26192maybe-distclean-sid:
26193@if sid
26194maybe-distclean-sid: distclean-sid
2a4cbe27 26195
a90ef4bf 26196distclean-sid:
0aed8855 26197 @: $(MAKE); $(unstage)
a90ef4bf 26198 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26199 r=`${PWD_COMMAND}`; export r; \
26200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26201 $(HOST_EXPORTS) \
b813574b 26202 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26204 done; \
22121df0 26205 echo "Doing distclean in sid"; \
a90ef4bf 26206 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26209 "RANLIB=$${RANLIB}" \
0c24b341 26210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26211 distclean) \
2a4cbe27
NN
26212 || exit 1
26213
a90ef4bf 26214@endif sid
2a4cbe27 26215
a90ef4bf
JM
26216.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26217maybe-maintainer-clean-sid:
26218@if sid
26219maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26220
a90ef4bf 26221maintainer-clean-sid:
0aed8855 26222 @: $(MAKE); $(unstage)
a90ef4bf 26223 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26224 r=`${PWD_COMMAND}`; export r; \
26225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26226 $(HOST_EXPORTS) \
b813574b 26227 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26229 done; \
22121df0 26230 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26231 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26234 "RANLIB=$${RANLIB}" \
0c24b341 26235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26236 maintainer-clean) \
2a4cbe27
NN
26237 || exit 1
26238
a90ef4bf 26239@endif sid
2a4cbe27 26240
a2592b1b 26241
a7254363 26242
a90ef4bf
JM
26243.PHONY: configure-sim maybe-configure-sim
26244maybe-configure-sim:
4f0ef2d8 26245@if gcc-bootstrap
a90ef4bf 26246configure-sim: stage_current
4f0ef2d8 26247@endif gcc-bootstrap
a90ef4bf
JM
26248@if sim
26249maybe-configure-sim: configure-sim
26250configure-sim:
26251 @: $(MAKE); $(unstage)
c52c6897
PB
26252 @r=`${PWD_COMMAND}`; export r; \
26253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26254 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26255 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26256 $(HOST_EXPORTS) \
a90ef4bf
JM
26257 echo Configuring in $(HOST_SUBDIR)/sim; \
26258 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26259 case $(srcdir) in \
b00612cc 26260 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26261 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26262 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26263 esac; \
1b6c0831
L
26264 module_srcdir=sim; \
26265 $(SHELL) \
26266 $$s/$$module_srcdir/configure \
26267 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26268 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26269 --target=${target_alias} \
a2592b1b 26270 || exit 1
a90ef4bf 26271@endif sim
a2592b1b 26272
a7254363
PB
26273
26274
a90ef4bf
JM
26275
26276
26277.PHONY: all-sim maybe-all-sim
26278maybe-all-sim:
26279@if gcc-bootstrap
26280all-sim: stage_current
26281@endif gcc-bootstrap
26282@if sim
26283TARGET-sim=all
26284maybe-all-sim: all-sim
26285all-sim: configure-sim
26286 @: $(MAKE); $(unstage)
c52c6897
PB
26287 @r=`${PWD_COMMAND}`; export r; \
26288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26289 $(HOST_EXPORTS) \
26290 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26291 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26292 $(TARGET-sim))
26293@endif sim
d545f33b 26294
a90ef4bf
JM
26295
26296
26297
26298.PHONY: check-sim maybe-check-sim
26299maybe-check-sim:
26300@if sim
26301maybe-check-sim: check-sim
26302
26303check-sim:
26304 @: $(MAKE); $(unstage)
c52c6897
PB
26305 @r=`${PWD_COMMAND}`; export r; \
26306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26307 $(HOST_EXPORTS) \
a90ef4bf
JM
26308 (cd $(HOST_SUBDIR)/sim && \
26309 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26310
a90ef4bf
JM
26311@endif sim
26312
26313.PHONY: install-sim maybe-install-sim
26314maybe-install-sim:
26315@if sim
26316maybe-install-sim: install-sim
26317
26318install-sim: installdirs
26319 @: $(MAKE); $(unstage)
c52c6897
PB
26320 @r=`${PWD_COMMAND}`; export r; \
26321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26322 $(HOST_EXPORTS) \
a90ef4bf
JM
26323 (cd $(HOST_SUBDIR)/sim && \
26324 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26325
a90ef4bf
JM
26326@endif sim
26327
26328.PHONY: install-strip-sim maybe-install-strip-sim
26329maybe-install-strip-sim:
26330@if sim
26331maybe-install-strip-sim: install-strip-sim
26332
26333install-strip-sim: installdirs
26334 @: $(MAKE); $(unstage)
c52c6897
PB
26335 @r=`${PWD_COMMAND}`; export r; \
26336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26337 $(HOST_EXPORTS) \
a90ef4bf
JM
26338 (cd $(HOST_SUBDIR)/sim && \
26339 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26340
a90ef4bf 26341@endif sim
9b980aa1 26342
56a8fe78 26343# Other targets (info, dvi, pdf, etc.)
4fa63067 26344
a90ef4bf
JM
26345.PHONY: maybe-info-sim info-sim
26346maybe-info-sim:
26347@if sim
26348maybe-info-sim: info-sim
4fa63067 26349
a90ef4bf
JM
26350info-sim: \
26351 configure-sim
26352 @: $(MAKE); $(unstage)
26353 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26354 r=`${PWD_COMMAND}`; export r; \
26355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26356 $(HOST_EXPORTS) \
b813574b 26357 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26359 done; \
22121df0 26360 echo "Doing info in sim"; \
a90ef4bf 26361 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26364 "RANLIB=$${RANLIB}" \
0c24b341 26365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26366 info) \
2a4cbe27
NN
26367 || exit 1
26368
a90ef4bf 26369@endif sim
2a4cbe27 26370
a90ef4bf
JM
26371.PHONY: maybe-dvi-sim dvi-sim
26372maybe-dvi-sim:
26373@if sim
26374maybe-dvi-sim: dvi-sim
2a4cbe27 26375
a90ef4bf
JM
26376dvi-sim: \
26377 configure-sim
26378 @: $(MAKE); $(unstage)
26379 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26380 r=`${PWD_COMMAND}`; export r; \
b40e3958 26381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26382 $(HOST_EXPORTS) \
b813574b 26383 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26385 done; \
22121df0 26386 echo "Doing dvi in sim"; \
a90ef4bf 26387 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26390 "RANLIB=$${RANLIB}" \
0c24b341 26391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26392 dvi) \
2a4cbe27
NN
26393 || exit 1
26394
a90ef4bf 26395@endif sim
2a4cbe27 26396
a90ef4bf
JM
26397.PHONY: maybe-pdf-sim pdf-sim
26398maybe-pdf-sim:
26399@if sim
26400maybe-pdf-sim: pdf-sim
56a8fe78 26401
a90ef4bf
JM
26402pdf-sim: \
26403 configure-sim
26404 @: $(MAKE); $(unstage)
26405 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26406 r=`${PWD_COMMAND}`; export r; \
26407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26408 $(HOST_EXPORTS) \
26409 for flag in $(EXTRA_HOST_FLAGS) ; do \
26410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26411 done; \
22121df0 26412 echo "Doing pdf in sim"; \
a90ef4bf 26413 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26416 "RANLIB=$${RANLIB}" \
0c24b341 26417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26418 pdf) \
26419 || exit 1
26420
a90ef4bf 26421@endif sim
56a8fe78 26422
a90ef4bf
JM
26423.PHONY: maybe-html-sim html-sim
26424maybe-html-sim:
26425@if sim
26426maybe-html-sim: html-sim
6d389afc 26427
a90ef4bf
JM
26428html-sim: \
26429 configure-sim
26430 @: $(MAKE); $(unstage)
26431 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26432 r=`${PWD_COMMAND}`; export r; \
26433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26434 $(HOST_EXPORTS) \
26435 for flag in $(EXTRA_HOST_FLAGS) ; do \
26436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26437 done; \
22121df0 26438 echo "Doing html in sim"; \
a90ef4bf 26439 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26442 "RANLIB=$${RANLIB}" \
0c24b341 26443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26444 html) \
26445 || exit 1
26446
a90ef4bf 26447@endif sim
6d389afc 26448
a90ef4bf
JM
26449.PHONY: maybe-TAGS-sim TAGS-sim
26450maybe-TAGS-sim:
26451@if sim
26452maybe-TAGS-sim: TAGS-sim
2a4cbe27 26453
a90ef4bf
JM
26454TAGS-sim: \
26455 configure-sim
26456 @: $(MAKE); $(unstage)
26457 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26458 r=`${PWD_COMMAND}`; export r; \
26459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26460 $(HOST_EXPORTS) \
b813574b 26461 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26463 done; \
22121df0 26464 echo "Doing TAGS in sim"; \
a90ef4bf 26465 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26468 "RANLIB=$${RANLIB}" \
0c24b341 26469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26470 TAGS) \
2a4cbe27
NN
26471 || exit 1
26472
a90ef4bf 26473@endif sim
2a4cbe27 26474
a90ef4bf
JM
26475.PHONY: maybe-install-info-sim install-info-sim
26476maybe-install-info-sim:
26477@if sim
26478maybe-install-info-sim: install-info-sim
2a4cbe27 26479
a90ef4bf
JM
26480install-info-sim: \
26481 configure-sim \
26482 info-sim
26483 @: $(MAKE); $(unstage)
26484 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26485 r=`${PWD_COMMAND}`; export r; \
26486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26487 $(HOST_EXPORTS) \
b813574b 26488 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26490 done; \
22121df0 26491 echo "Doing install-info in sim"; \
a90ef4bf
JM
26492 (cd $(HOST_SUBDIR)/sim && \
26493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26495 "RANLIB=$${RANLIB}" \
0c24b341 26496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26497 install-info) \
2a4cbe27
NN
26498 || exit 1
26499
a90ef4bf 26500@endif sim
2a4cbe27 26501
a90ef4bf
JM
26502.PHONY: maybe-install-pdf-sim install-pdf-sim
26503maybe-install-pdf-sim:
26504@if sim
26505maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26506
a90ef4bf
JM
26507install-pdf-sim: \
26508 configure-sim \
26509 pdf-sim
26510 @: $(MAKE); $(unstage)
26511 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26512 r=`${PWD_COMMAND}`; export r; \
26513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26514 $(HOST_EXPORTS) \
26515 for flag in $(EXTRA_HOST_FLAGS) ; do \
26516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26517 done; \
22121df0 26518 echo "Doing install-pdf in sim"; \
a90ef4bf 26519 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26522 "RANLIB=$${RANLIB}" \
0c24b341 26523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26524 install-pdf) \
26525 || exit 1
26526
a90ef4bf 26527@endif sim
a3ca38d2 26528
a90ef4bf
JM
26529.PHONY: maybe-install-html-sim install-html-sim
26530maybe-install-html-sim:
26531@if sim
26532maybe-install-html-sim: install-html-sim
108a6f8e 26533
a90ef4bf
JM
26534install-html-sim: \
26535 configure-sim \
26536 html-sim
26537 @: $(MAKE); $(unstage)
26538 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26539 r=`${PWD_COMMAND}`; export r; \
26540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26541 $(HOST_EXPORTS) \
26542 for flag in $(EXTRA_HOST_FLAGS) ; do \
26543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26544 done; \
22121df0 26545 echo "Doing install-html in sim"; \
a90ef4bf 26546 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26549 "RANLIB=$${RANLIB}" \
0c24b341 26550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26551 install-html) \
26552 || exit 1
26553
a90ef4bf 26554@endif sim
108a6f8e 26555
a90ef4bf
JM
26556.PHONY: maybe-installcheck-sim installcheck-sim
26557maybe-installcheck-sim:
26558@if sim
26559maybe-installcheck-sim: installcheck-sim
2a4cbe27 26560
a90ef4bf
JM
26561installcheck-sim: \
26562 configure-sim
26563 @: $(MAKE); $(unstage)
26564 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26565 r=`${PWD_COMMAND}`; export r; \
26566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26567 $(HOST_EXPORTS) \
b813574b 26568 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26570 done; \
22121df0 26571 echo "Doing installcheck in sim"; \
a90ef4bf 26572 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26575 "RANLIB=$${RANLIB}" \
0c24b341 26576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26577 installcheck) \
2a4cbe27
NN
26578 || exit 1
26579
a90ef4bf 26580@endif sim
2a4cbe27 26581
a90ef4bf
JM
26582.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26583maybe-mostlyclean-sim:
26584@if sim
26585maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26586
a90ef4bf
JM
26587mostlyclean-sim:
26588 @: $(MAKE); $(unstage)
26589 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26590 r=`${PWD_COMMAND}`; export r; \
26591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26592 $(HOST_EXPORTS) \
26593 for flag in $(EXTRA_HOST_FLAGS) ; do \
26594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26595 done; \
22121df0 26596 echo "Doing mostlyclean in sim"; \
a90ef4bf 26597 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26600 "RANLIB=$${RANLIB}" \
0c24b341 26601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26602 mostlyclean) \
26603 || exit 1
4fa63067 26604
a90ef4bf 26605@endif sim
4fa63067 26606
a90ef4bf
JM
26607.PHONY: maybe-clean-sim clean-sim
26608maybe-clean-sim:
26609@if sim
26610maybe-clean-sim: clean-sim
4fa63067 26611
a90ef4bf
JM
26612clean-sim:
26613 @: $(MAKE); $(unstage)
26614 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26615 r=`${PWD_COMMAND}`; export r; \
26616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26617 $(HOST_EXPORTS) \
b813574b 26618 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26620 done; \
22121df0 26621 echo "Doing clean in sim"; \
a90ef4bf 26622 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26625 "RANLIB=$${RANLIB}" \
0c24b341 26626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26627 clean) \
2a4cbe27
NN
26628 || exit 1
26629
a90ef4bf 26630@endif sim
2a4cbe27 26631
a90ef4bf
JM
26632.PHONY: maybe-distclean-sim distclean-sim
26633maybe-distclean-sim:
26634@if sim
26635maybe-distclean-sim: distclean-sim
2a4cbe27 26636
a90ef4bf
JM
26637distclean-sim:
26638 @: $(MAKE); $(unstage)
26639 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26640 r=`${PWD_COMMAND}`; export r; \
26641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26642 $(HOST_EXPORTS) \
b813574b 26643 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26645 done; \
22121df0 26646 echo "Doing distclean in sim"; \
a90ef4bf 26647 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26650 "RANLIB=$${RANLIB}" \
0c24b341 26651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26652 distclean) \
2a4cbe27
NN
26653 || exit 1
26654
a90ef4bf 26655@endif sim
2a4cbe27 26656
a90ef4bf
JM
26657.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26658maybe-maintainer-clean-sim:
26659@if sim
26660maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26661
a90ef4bf
JM
26662maintainer-clean-sim:
26663 @: $(MAKE); $(unstage)
26664 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26665 r=`${PWD_COMMAND}`; export r; \
26666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26667 $(HOST_EXPORTS) \
b813574b 26668 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26670 done; \
22121df0 26671 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26672 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26675 "RANLIB=$${RANLIB}" \
0c24b341 26676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26677 maintainer-clean) \
2a4cbe27
NN
26678 || exit 1
26679
a90ef4bf 26680@endif sim
2a4cbe27 26681
2a4cbe27 26682
a7254363 26683
a90ef4bf
JM
26684.PHONY: configure-texinfo maybe-configure-texinfo
26685maybe-configure-texinfo:
4f0ef2d8 26686@if gcc-bootstrap
a90ef4bf 26687configure-texinfo: stage_current
4f0ef2d8 26688@endif gcc-bootstrap
a90ef4bf
JM
26689@if texinfo
26690maybe-configure-texinfo: configure-texinfo
26691configure-texinfo:
0aed8855 26692 @: $(MAKE); $(unstage)
c52c6897 26693 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26695 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26696 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26697 $(HOST_EXPORTS) \
a90ef4bf
JM
26698 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26699 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26700 case $(srcdir) in \
b00612cc 26701 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26702 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26703 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26704 esac; \
1b6c0831
L
26705 module_srcdir=texinfo; \
26706 $(SHELL) \
26707 $$s/$$module_srcdir/configure \
26708 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26709 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26710 --target=${target_alias} \
2a4cbe27 26711 || exit 1
a90ef4bf 26712@endif texinfo
2a4cbe27 26713
a7254363
PB
26714
26715
d545f33b
PB
26716
26717
a90ef4bf
JM
26718.PHONY: all-texinfo maybe-all-texinfo
26719maybe-all-texinfo:
4f0ef2d8 26720@if gcc-bootstrap
a90ef4bf 26721all-texinfo: stage_current
4f0ef2d8 26722@endif gcc-bootstrap
a90ef4bf
JM
26723@if texinfo
26724TARGET-texinfo=all
26725maybe-all-texinfo: all-texinfo
26726all-texinfo: configure-texinfo
0aed8855 26727 @: $(MAKE); $(unstage)
4fa63067
NN
26728 @r=`${PWD_COMMAND}`; export r; \
26729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26730 $(HOST_EXPORTS) \
a90ef4bf 26731 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26732 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26733 $(TARGET-texinfo))
26734@endif texinfo
4fa63067 26735
a7254363 26736
d545f33b
PB
26737
26738
a90ef4bf
JM
26739.PHONY: check-texinfo maybe-check-texinfo
26740maybe-check-texinfo:
26741@if texinfo
26742maybe-check-texinfo: check-texinfo
2a4cbe27 26743
a90ef4bf 26744check-texinfo:
0aed8855 26745 @: $(MAKE); $(unstage)
4fa63067
NN
26746 @r=`${PWD_COMMAND}`; export r; \
26747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26748 $(HOST_EXPORTS) \
a90ef4bf 26749 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26750 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26751
a90ef4bf 26752@endif texinfo
4fa63067 26753
a90ef4bf
JM
26754.PHONY: install-texinfo maybe-install-texinfo
26755maybe-install-texinfo:
26756@if texinfo
26757maybe-install-texinfo: install-texinfo
4fa63067 26758
a90ef4bf 26759install-texinfo:
4fa63067 26760
a90ef4bf 26761@endif texinfo
4fa63067 26762
a90ef4bf
JM
26763.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26764maybe-install-strip-texinfo:
26765@if texinfo
26766maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26767
a90ef4bf 26768install-strip-texinfo:
9b980aa1 26769
a90ef4bf 26770@endif texinfo
9b980aa1 26771
56a8fe78 26772# Other targets (info, dvi, pdf, etc.)
4fa63067 26773
a90ef4bf
JM
26774.PHONY: maybe-info-texinfo info-texinfo
26775maybe-info-texinfo:
26776@if texinfo
26777maybe-info-texinfo: info-texinfo
4fa63067 26778
a90ef4bf
JM
26779info-texinfo: \
26780 configure-texinfo
0aed8855 26781 @: $(MAKE); $(unstage)
a90ef4bf 26782 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26783 r=`${PWD_COMMAND}`; export r; \
26784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26785 $(HOST_EXPORTS) \
b813574b 26786 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26788 done; \
22121df0 26789 echo "Doing info in texinfo"; \
a90ef4bf 26790 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26793 "RANLIB=$${RANLIB}" \
0c24b341 26794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26795 info) \
2a4cbe27
NN
26796 || exit 1
26797
a90ef4bf 26798@endif texinfo
2a4cbe27 26799
a90ef4bf
JM
26800.PHONY: maybe-dvi-texinfo dvi-texinfo
26801maybe-dvi-texinfo:
26802@if texinfo
26803maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26804
a90ef4bf
JM
26805dvi-texinfo: \
26806 configure-texinfo
0aed8855 26807 @: $(MAKE); $(unstage)
a90ef4bf 26808 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26809 r=`${PWD_COMMAND}`; export r; \
26810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26811 $(HOST_EXPORTS) \
b813574b 26812 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26814 done; \
22121df0 26815 echo "Doing dvi in texinfo"; \
a90ef4bf 26816 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26819 "RANLIB=$${RANLIB}" \
0c24b341 26820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26821 dvi) \
2a4cbe27
NN
26822 || exit 1
26823
a90ef4bf 26824@endif texinfo
2a4cbe27 26825
a90ef4bf
JM
26826.PHONY: maybe-pdf-texinfo pdf-texinfo
26827maybe-pdf-texinfo:
26828@if texinfo
26829maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26830
a90ef4bf
JM
26831pdf-texinfo: \
26832 configure-texinfo
56a8fe78 26833 @: $(MAKE); $(unstage)
a90ef4bf 26834 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26835 r=`${PWD_COMMAND}`; export r; \
26836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26837 $(HOST_EXPORTS) \
26838 for flag in $(EXTRA_HOST_FLAGS) ; do \
26839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26840 done; \
22121df0 26841 echo "Doing pdf in texinfo"; \
a90ef4bf 26842 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26845 "RANLIB=$${RANLIB}" \
0c24b341 26846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26847 pdf) \
26848 || exit 1
26849
a90ef4bf 26850@endif texinfo
56a8fe78 26851
a90ef4bf
JM
26852.PHONY: maybe-html-texinfo html-texinfo
26853maybe-html-texinfo:
26854@if texinfo
26855maybe-html-texinfo: html-texinfo
6d389afc 26856
a90ef4bf
JM
26857html-texinfo: \
26858 configure-texinfo
0aed8855 26859 @: $(MAKE); $(unstage)
a90ef4bf 26860 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26861 r=`${PWD_COMMAND}`; export r; \
26862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26863 $(HOST_EXPORTS) \
26864 for flag in $(EXTRA_HOST_FLAGS) ; do \
26865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26866 done; \
22121df0 26867 echo "Doing html in texinfo"; \
a90ef4bf 26868 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26871 "RANLIB=$${RANLIB}" \
0c24b341 26872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26873 html) \
26874 || exit 1
26875
a90ef4bf 26876@endif texinfo
6d389afc 26877
a90ef4bf
JM
26878.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26879maybe-TAGS-texinfo:
26880@if texinfo
26881maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 26882
a90ef4bf
JM
26883TAGS-texinfo: \
26884 configure-texinfo
0aed8855 26885 @: $(MAKE); $(unstage)
a90ef4bf 26886 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26887 r=`${PWD_COMMAND}`; export r; \
26888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26889 $(HOST_EXPORTS) \
b813574b 26890 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26892 done; \
22121df0 26893 echo "Doing TAGS in texinfo"; \
a90ef4bf 26894 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26897 "RANLIB=$${RANLIB}" \
0c24b341 26898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26899 TAGS) \
2a4cbe27
NN
26900 || exit 1
26901
a90ef4bf 26902@endif texinfo
2a4cbe27 26903
a90ef4bf
JM
26904.PHONY: maybe-install-info-texinfo install-info-texinfo
26905maybe-install-info-texinfo:
26906@if texinfo
26907maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 26908
a90ef4bf
JM
26909install-info-texinfo: \
26910 configure-texinfo \
26911 info-texinfo
0aed8855 26912 @: $(MAKE); $(unstage)
a90ef4bf 26913 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26914 r=`${PWD_COMMAND}`; export r; \
26915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26916 $(HOST_EXPORTS) \
b813574b 26917 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26919 done; \
22121df0 26920 echo "Doing install-info in texinfo"; \
a90ef4bf 26921 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26924 "RANLIB=$${RANLIB}" \
0c24b341 26925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26926 install-info) \
2a4cbe27
NN
26927 || exit 1
26928
a90ef4bf 26929@endif texinfo
2a4cbe27 26930
a90ef4bf
JM
26931.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
26932maybe-install-pdf-texinfo:
26933@if texinfo
26934maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 26935
a90ef4bf
JM
26936install-pdf-texinfo: \
26937 configure-texinfo \
26938 pdf-texinfo
a3ca38d2 26939 @: $(MAKE); $(unstage)
a90ef4bf 26940 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
26941 r=`${PWD_COMMAND}`; export r; \
26942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26943 $(HOST_EXPORTS) \
26944 for flag in $(EXTRA_HOST_FLAGS) ; do \
26945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26946 done; \
22121df0 26947 echo "Doing install-pdf in texinfo"; \
a90ef4bf 26948 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
26949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26951 "RANLIB=$${RANLIB}" \
0c24b341 26952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26953 install-pdf) \
26954 || exit 1
26955
a90ef4bf 26956@endif texinfo
a3ca38d2 26957
a90ef4bf
JM
26958.PHONY: maybe-install-html-texinfo install-html-texinfo
26959maybe-install-html-texinfo:
26960@if texinfo
26961maybe-install-html-texinfo: install-html-texinfo
108a6f8e 26962
a90ef4bf
JM
26963install-html-texinfo: \
26964 configure-texinfo \
26965 html-texinfo
108a6f8e 26966 @: $(MAKE); $(unstage)
a90ef4bf 26967 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
26968 r=`${PWD_COMMAND}`; export r; \
26969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26970 $(HOST_EXPORTS) \
26971 for flag in $(EXTRA_HOST_FLAGS) ; do \
26972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26973 done; \
22121df0 26974 echo "Doing install-html in texinfo"; \
a90ef4bf 26975 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
26976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26978 "RANLIB=$${RANLIB}" \
0c24b341 26979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26980 install-html) \
26981 || exit 1
26982
a90ef4bf 26983@endif texinfo
108a6f8e 26984
a90ef4bf
JM
26985.PHONY: maybe-installcheck-texinfo installcheck-texinfo
26986maybe-installcheck-texinfo:
26987@if texinfo
26988maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 26989
a90ef4bf
JM
26990installcheck-texinfo: \
26991 configure-texinfo
0aed8855 26992 @: $(MAKE); $(unstage)
a90ef4bf 26993 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26994 r=`${PWD_COMMAND}`; export r; \
26995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26996 $(HOST_EXPORTS) \
b813574b 26997 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26999 done; \
22121df0 27000 echo "Doing installcheck in texinfo"; \
a90ef4bf 27001 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27004 "RANLIB=$${RANLIB}" \
0c24b341 27005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27006 installcheck) \
2a4cbe27
NN
27007 || exit 1
27008
a90ef4bf 27009@endif texinfo
2a4cbe27 27010
a90ef4bf
JM
27011.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27012maybe-mostlyclean-texinfo:
27013@if texinfo
27014maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27015
a90ef4bf 27016mostlyclean-texinfo:
0aed8855 27017 @: $(MAKE); $(unstage)
a90ef4bf 27018 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27019 r=`${PWD_COMMAND}`; export r; \
27020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27021 $(HOST_EXPORTS) \
b813574b 27022 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27024 done; \
22121df0 27025 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27026 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27029 "RANLIB=$${RANLIB}" \
0c24b341 27030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27031 mostlyclean) \
2a4cbe27
NN
27032 || exit 1
27033
a90ef4bf 27034@endif texinfo
2a4cbe27 27035
a90ef4bf
JM
27036.PHONY: maybe-clean-texinfo clean-texinfo
27037maybe-clean-texinfo:
27038@if texinfo
27039maybe-clean-texinfo: clean-texinfo
2a4cbe27 27040
a90ef4bf 27041clean-texinfo:
0aed8855 27042 @: $(MAKE); $(unstage)
a90ef4bf 27043 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27044 r=`${PWD_COMMAND}`; export r; \
27045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27046 $(HOST_EXPORTS) \
b813574b 27047 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27049 done; \
22121df0 27050 echo "Doing clean in texinfo"; \
a90ef4bf 27051 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27054 "RANLIB=$${RANLIB}" \
0c24b341 27055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27056 clean) \
2a4cbe27
NN
27057 || exit 1
27058
a90ef4bf 27059@endif texinfo
2a4cbe27 27060
a90ef4bf
JM
27061.PHONY: maybe-distclean-texinfo distclean-texinfo
27062maybe-distclean-texinfo:
27063@if texinfo
27064maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27065
a90ef4bf 27066distclean-texinfo:
0aed8855 27067 @: $(MAKE); $(unstage)
a90ef4bf 27068 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27069 r=`${PWD_COMMAND}`; export r; \
27070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27071 $(HOST_EXPORTS) \
b813574b 27072 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27074 done; \
22121df0 27075 echo "Doing distclean in texinfo"; \
a90ef4bf 27076 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27079 "RANLIB=$${RANLIB}" \
0c24b341 27080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27081 distclean) \
2a4cbe27
NN
27082 || exit 1
27083
a90ef4bf 27084@endif texinfo
2a4cbe27 27085
a90ef4bf
JM
27086.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27087maybe-maintainer-clean-texinfo:
27088@if texinfo
27089maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27090
a90ef4bf 27091maintainer-clean-texinfo:
0aed8855 27092 @: $(MAKE); $(unstage)
a90ef4bf 27093 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27094 r=`${PWD_COMMAND}`; export r; \
27095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27096 $(HOST_EXPORTS) \
b813574b 27097 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27099 done; \
22121df0 27100 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27101 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27104 "RANLIB=$${RANLIB}" \
0c24b341 27105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27106 maintainer-clean) \
2a4cbe27
NN
27107 || exit 1
27108
a90ef4bf 27109@endif texinfo
2a4cbe27 27110
2a4cbe27 27111
a7254363 27112
a90ef4bf
JM
27113.PHONY: configure-zlib maybe-configure-zlib
27114maybe-configure-zlib:
4f0ef2d8 27115@if gcc-bootstrap
a90ef4bf 27116configure-zlib: stage_current
4f0ef2d8 27117@endif gcc-bootstrap
a90ef4bf
JM
27118@if zlib
27119maybe-configure-zlib: configure-zlib
27120configure-zlib:
c52c6897
PB
27121 @r=`${PWD_COMMAND}`; export r; \
27122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27123 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27125 $(HOST_EXPORTS) \
a90ef4bf
JM
27126 echo Configuring in $(HOST_SUBDIR)/zlib; \
27127 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27128 case $(srcdir) in \
b00612cc 27129 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27130 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27131 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27132 esac; \
1b6c0831
L
27133 module_srcdir=zlib; \
27134 $(SHELL) \
27135 $$s/$$module_srcdir/configure \
27136 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27137 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27138 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27139 || exit 1
a90ef4bf 27140@endif zlib
04cf1b77 27141
a7254363
PB
27142
27143
a90ef4bf
JM
27144.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27145maybe-configure-stage1-zlib:
27146@if zlib-bootstrap
27147maybe-configure-stage1-zlib: configure-stage1-zlib
27148configure-stage1-zlib:
c52c6897 27149 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27150 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27151 @r=`${PWD_COMMAND}`; export r; \
27152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27153 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27154 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27155 $(HOST_EXPORTS) \
8ee82aff 27156 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27157 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27158 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27159 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27160 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27161 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27162 case $(srcdir) in \
27163 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27164 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27165 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27166 esac; \
1b6c0831
L
27167 module_srcdir=zlib; \
27168 $(SHELL) $$s/$$module_srcdir/configure \
27169 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27170 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27171 --target=${target_alias} \
27172 \
e81d5d05
L
27173 $(STAGE1_CONFIGURE_FLAGS) \
27174 @extra_host_zlib_configure_flags@
a90ef4bf 27175@endif zlib-bootstrap
d545f33b 27176
a90ef4bf
JM
27177.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27178maybe-configure-stage2-zlib:
27179@if zlib-bootstrap
27180maybe-configure-stage2-zlib: configure-stage2-zlib
27181configure-stage2-zlib:
c52c6897 27182 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27183 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27184 @r=`${PWD_COMMAND}`; export r; \
27185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27186 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27187 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27188 $(HOST_EXPORTS) \
1b05fbbd 27189 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27190 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27191 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27192 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27193 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27194 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27195 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27196 case $(srcdir) in \
27197 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27198 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27199 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27200 esac; \
1b6c0831
L
27201 module_srcdir=zlib; \
27202 $(SHELL) $$s/$$module_srcdir/configure \
27203 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27204 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27205 --target=${target_alias} \
22121df0 27206 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27207 $(STAGE2_CONFIGURE_FLAGS) \
27208 @extra_host_zlib_configure_flags@
a90ef4bf 27209@endif zlib-bootstrap
8520c408 27210
a90ef4bf
JM
27211.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27212maybe-configure-stage3-zlib:
27213@if zlib-bootstrap
27214maybe-configure-stage3-zlib: configure-stage3-zlib
27215configure-stage3-zlib:
c52c6897 27216 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27217 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27218 @r=`${PWD_COMMAND}`; export r; \
27219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27220 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27221 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27222 $(HOST_EXPORTS) \
1b05fbbd 27223 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27224 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27225 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27226 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27227 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27228 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27229 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27230 case $(srcdir) in \
27231 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27232 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27233 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27234 esac; \
1b6c0831
L
27235 module_srcdir=zlib; \
27236 $(SHELL) $$s/$$module_srcdir/configure \
27237 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27238 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27239 --target=${target_alias} \
22121df0 27240 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27241 $(STAGE3_CONFIGURE_FLAGS) \
27242 @extra_host_zlib_configure_flags@
a90ef4bf 27243@endif zlib-bootstrap
8520c408 27244
a90ef4bf
JM
27245.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27246maybe-configure-stage4-zlib:
27247@if zlib-bootstrap
27248maybe-configure-stage4-zlib: configure-stage4-zlib
27249configure-stage4-zlib:
c52c6897 27250 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27251 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27252 @r=`${PWD_COMMAND}`; export r; \
27253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27254 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27255 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27256 $(HOST_EXPORTS) \
1b05fbbd 27257 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27258 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27259 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27260 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27261 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27262 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27263 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27264 case $(srcdir) in \
27265 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27266 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27267 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27268 esac; \
1b6c0831
L
27269 module_srcdir=zlib; \
27270 $(SHELL) $$s/$$module_srcdir/configure \
27271 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27272 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27273 --target=${target_alias} \
22121df0 27274 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27275 $(STAGE4_CONFIGURE_FLAGS) \
27276 @extra_host_zlib_configure_flags@
a90ef4bf 27277@endif zlib-bootstrap
d545f33b 27278
a90ef4bf
JM
27279.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27280maybe-configure-stageprofile-zlib:
27281@if zlib-bootstrap
27282maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27283configure-stageprofile-zlib:
c52c6897 27284 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27285 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27286 @r=`${PWD_COMMAND}`; export r; \
27287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27288 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27289 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27290 $(HOST_EXPORTS) \
1b05fbbd
AO
27291 $(POSTSTAGE1_HOST_EXPORTS) \
27292 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27293 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27294 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27295 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27296 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27297 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27298 case $(srcdir) in \
27299 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27300 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27301 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27302 esac; \
1b6c0831
L
27303 module_srcdir=zlib; \
27304 $(SHELL) $$s/$$module_srcdir/configure \
27305 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27306 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27307 --target=${target_alias} \
22121df0 27308 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27309 $(STAGEprofile_CONFIGURE_FLAGS) \
27310 @extra_host_zlib_configure_flags@
a90ef4bf 27311@endif zlib-bootstrap
d545f33b 27312
a90ef4bf
JM
27313.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27314maybe-configure-stagefeedback-zlib:
27315@if zlib-bootstrap
27316maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27317configure-stagefeedback-zlib:
c52c6897 27318 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27319 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27320 @r=`${PWD_COMMAND}`; export r; \
27321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27322 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27323 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27324 $(HOST_EXPORTS) \
1b05fbbd
AO
27325 $(POSTSTAGE1_HOST_EXPORTS) \
27326 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27327 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27328 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27329 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27330 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27331 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27332 case $(srcdir) in \
27333 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27334 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27335 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27336 esac; \
1b6c0831
L
27337 module_srcdir=zlib; \
27338 $(SHELL) $$s/$$module_srcdir/configure \
27339 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27340 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27341 --target=${target_alias} \
22121df0 27342 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27343 $(STAGEfeedback_CONFIGURE_FLAGS) \
27344 @extra_host_zlib_configure_flags@
a90ef4bf 27345@endif zlib-bootstrap
d545f33b
PB
27346
27347
27348
27349
27350
a90ef4bf
JM
27351.PHONY: all-zlib maybe-all-zlib
27352maybe-all-zlib:
4f0ef2d8 27353@if gcc-bootstrap
a90ef4bf 27354all-zlib: stage_current
4f0ef2d8 27355@endif gcc-bootstrap
a90ef4bf
JM
27356@if zlib
27357TARGET-zlib=all
27358maybe-all-zlib: all-zlib
27359all-zlib: configure-zlib
c52c6897 27360 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27362 $(HOST_EXPORTS) \
a90ef4bf 27363 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27364 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27365 $(TARGET-zlib))
27366@endif zlib
04cf1b77 27367
a7254363 27368
d545f33b 27369
a90ef4bf
JM
27370.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27371.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27372maybe-all-stage1-zlib:
27373maybe-clean-stage1-zlib:
27374@if zlib-bootstrap
27375maybe-all-stage1-zlib: all-stage1-zlib
27376all-stage1: all-stage1-zlib
27377TARGET-stage1-zlib = $(TARGET-zlib)
27378all-stage1-zlib: configure-stage1-zlib
c52c6897 27379 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27380 @r=`${PWD_COMMAND}`; export r; \
27381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27382 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27383 $(HOST_EXPORTS) \
a90ef4bf 27384 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27385 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27386 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27387 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27388 LIBCFLAGS="$(LIBCFLAGS)" \
27389 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27390 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27391 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27392 $(EXTRA_HOST_FLAGS) \
27393 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 27394 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27395 $(TARGET-stage1-zlib)
d545f33b 27396
a90ef4bf
JM
27397maybe-clean-stage1-zlib: clean-stage1-zlib
27398clean-stage1: clean-stage1-zlib
27399clean-stage1-zlib:
9dbaa842 27400 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27401 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27402 else \
a90ef4bf 27403 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27404 $(MAKE) stage1-start; \
27405 fi; \
a90ef4bf 27406 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27407 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27408 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27409@endif zlib-bootstrap
d545f33b
PB
27410
27411
a90ef4bf
JM
27412.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27413.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27414maybe-all-stage2-zlib:
27415maybe-clean-stage2-zlib:
27416@if zlib-bootstrap
27417maybe-all-stage2-zlib: all-stage2-zlib
27418all-stage2: all-stage2-zlib
27419TARGET-stage2-zlib = $(TARGET-zlib)
27420all-stage2-zlib: configure-stage2-zlib
c52c6897 27421 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27422 @r=`${PWD_COMMAND}`; export r; \
27423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27424 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27425 $(HOST_EXPORTS) \
1f53ca9a 27426 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27427 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27428 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27429 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27430 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27431 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27432 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27433 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27434 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27435 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27436 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27437 $(TARGET-stage2-zlib)
d545f33b 27438
a90ef4bf
JM
27439maybe-clean-stage2-zlib: clean-stage2-zlib
27440clean-stage2: clean-stage2-zlib
27441clean-stage2-zlib:
9dbaa842 27442 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27443 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27444 else \
a90ef4bf 27445 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27446 $(MAKE) stage2-start; \
27447 fi; \
a90ef4bf 27448 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27449 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27450@endif zlib-bootstrap
d545f33b
PB
27451
27452
a90ef4bf
JM
27453.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27454.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27455maybe-all-stage3-zlib:
27456maybe-clean-stage3-zlib:
27457@if zlib-bootstrap
27458maybe-all-stage3-zlib: all-stage3-zlib
27459all-stage3: all-stage3-zlib
27460TARGET-stage3-zlib = $(TARGET-zlib)
27461all-stage3-zlib: configure-stage3-zlib
c52c6897 27462 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27463 @r=`${PWD_COMMAND}`; export r; \
27464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27465 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27466 $(HOST_EXPORTS) \
1f53ca9a 27467 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27468 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27469 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27470 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27471 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27472 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27473 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27474 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27475 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27476 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27477 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27478 $(TARGET-stage3-zlib)
d545f33b 27479
a90ef4bf
JM
27480maybe-clean-stage3-zlib: clean-stage3-zlib
27481clean-stage3: clean-stage3-zlib
27482clean-stage3-zlib:
9dbaa842 27483 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27484 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27485 else \
a90ef4bf 27486 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27487 $(MAKE) stage3-start; \
27488 fi; \
a90ef4bf 27489 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27490 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27491@endif zlib-bootstrap
d545f33b
PB
27492
27493
a90ef4bf
JM
27494.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27495.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27496maybe-all-stage4-zlib:
27497maybe-clean-stage4-zlib:
27498@if zlib-bootstrap
27499maybe-all-stage4-zlib: all-stage4-zlib
27500all-stage4: all-stage4-zlib
27501TARGET-stage4-zlib = $(TARGET-zlib)
27502all-stage4-zlib: configure-stage4-zlib
c52c6897 27503 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27504 @r=`${PWD_COMMAND}`; export r; \
27505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27506 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27507 $(HOST_EXPORTS) \
1f53ca9a 27508 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27509 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27510 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27511 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27512 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27513 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27514 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27515 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27516 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27517 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27518 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27519 $(TARGET-stage4-zlib)
d545f33b 27520
a90ef4bf
JM
27521maybe-clean-stage4-zlib: clean-stage4-zlib
27522clean-stage4: clean-stage4-zlib
27523clean-stage4-zlib:
9dbaa842 27524 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27525 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27526 else \
a90ef4bf 27527 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27528 $(MAKE) stage4-start; \
27529 fi; \
a90ef4bf 27530 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27531 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27532@endif zlib-bootstrap
d545f33b
PB
27533
27534
a90ef4bf
JM
27535.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27536.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27537maybe-all-stageprofile-zlib:
27538maybe-clean-stageprofile-zlib:
27539@if zlib-bootstrap
27540maybe-all-stageprofile-zlib: all-stageprofile-zlib
27541all-stageprofile: all-stageprofile-zlib
27542TARGET-stageprofile-zlib = $(TARGET-zlib)
27543all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27544 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27545 @r=`${PWD_COMMAND}`; export r; \
27546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27547 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27548 $(HOST_EXPORTS) \
1f53ca9a 27549 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27550 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27551 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27552 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27553 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27554 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27555 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27556 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27557 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27558 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27559 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27560 $(TARGET-stageprofile-zlib)
d545f33b 27561
a90ef4bf
JM
27562maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27563clean-stageprofile: clean-stageprofile-zlib
27564clean-stageprofile-zlib:
9dbaa842 27565 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27566 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27567 else \
a90ef4bf 27568 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27569 $(MAKE) stageprofile-start; \
27570 fi; \
a90ef4bf 27571 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27572 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27573@endif zlib-bootstrap
d545f33b
PB
27574
27575
a90ef4bf
JM
27576.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27577.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27578maybe-all-stagefeedback-zlib:
27579maybe-clean-stagefeedback-zlib:
27580@if zlib-bootstrap
27581maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27582all-stagefeedback: all-stagefeedback-zlib
27583TARGET-stagefeedback-zlib = $(TARGET-zlib)
27584all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27585 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27586 @r=`${PWD_COMMAND}`; export r; \
27587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27588 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27589 $(HOST_EXPORTS) \
1f53ca9a 27590 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27591 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27592 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27593 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27594 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27595 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27596 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27597 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27598 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27599 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27600 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27601 $(TARGET-stagefeedback-zlib)
d545f33b 27602
a90ef4bf
JM
27603maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27604clean-stagefeedback: clean-stagefeedback-zlib
27605clean-stagefeedback-zlib:
9dbaa842 27606 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27607 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27608 else \
a90ef4bf 27609 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27610 $(MAKE) stagefeedback-start; \
27611 fi; \
a90ef4bf 27612 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27613 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27614@endif zlib-bootstrap
d545f33b
PB
27615
27616
27617
27618
27619
a90ef4bf
JM
27620.PHONY: check-zlib maybe-check-zlib
27621maybe-check-zlib:
27622@if zlib
27623maybe-check-zlib: check-zlib
04cf1b77 27624
a90ef4bf 27625check-zlib:
04cf1b77 27626
a90ef4bf 27627@endif zlib
04cf1b77 27628
a90ef4bf
JM
27629.PHONY: install-zlib maybe-install-zlib
27630maybe-install-zlib:
27631@if zlib
27632maybe-install-zlib: install-zlib
04cf1b77 27633
a90ef4bf 27634install-zlib:
04cf1b77 27635
a90ef4bf 27636@endif zlib
04cf1b77 27637
a90ef4bf
JM
27638.PHONY: install-strip-zlib maybe-install-strip-zlib
27639maybe-install-strip-zlib:
27640@if zlib
27641maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27642
a90ef4bf 27643install-strip-zlib:
9b980aa1 27644
a90ef4bf 27645@endif zlib
9b980aa1 27646
56a8fe78 27647# Other targets (info, dvi, pdf, etc.)
04cf1b77 27648
a90ef4bf
JM
27649.PHONY: maybe-info-zlib info-zlib
27650maybe-info-zlib:
27651@if zlib
27652maybe-info-zlib: info-zlib
04cf1b77 27653
a90ef4bf
JM
27654info-zlib: \
27655 configure-zlib
27656 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27657 r=`${PWD_COMMAND}`; export r; \
27658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27659 $(HOST_EXPORTS) \
b813574b 27660 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27662 done; \
22121df0 27663 echo "Doing info in zlib"; \
a90ef4bf 27664 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27667 "RANLIB=$${RANLIB}" \
0c24b341 27668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27669 info) \
04cf1b77
PB
27670 || exit 1
27671
a90ef4bf 27672@endif zlib
04cf1b77 27673
a90ef4bf
JM
27674.PHONY: maybe-dvi-zlib dvi-zlib
27675maybe-dvi-zlib:
27676@if zlib
27677maybe-dvi-zlib: dvi-zlib
04cf1b77 27678
a90ef4bf
JM
27679dvi-zlib: \
27680 configure-zlib
27681 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27682 r=`${PWD_COMMAND}`; export r; \
27683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27684 $(HOST_EXPORTS) \
b813574b 27685 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27687 done; \
22121df0 27688 echo "Doing dvi in zlib"; \
a90ef4bf 27689 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27692 "RANLIB=$${RANLIB}" \
0c24b341 27693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27694 dvi) \
04cf1b77
PB
27695 || exit 1
27696
a90ef4bf 27697@endif zlib
04cf1b77 27698
a90ef4bf
JM
27699.PHONY: maybe-pdf-zlib pdf-zlib
27700maybe-pdf-zlib:
27701@if zlib
27702maybe-pdf-zlib: pdf-zlib
56a8fe78 27703
a90ef4bf
JM
27704pdf-zlib: \
27705 configure-zlib
27706 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27707 r=`${PWD_COMMAND}`; export r; \
27708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27709 $(HOST_EXPORTS) \
27710 for flag in $(EXTRA_HOST_FLAGS) ; do \
27711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27712 done; \
22121df0 27713 echo "Doing pdf in zlib"; \
a90ef4bf 27714 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27717 "RANLIB=$${RANLIB}" \
0c24b341 27718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27719 pdf) \
27720 || exit 1
27721
a90ef4bf 27722@endif zlib
56a8fe78 27723
a90ef4bf
JM
27724.PHONY: maybe-html-zlib html-zlib
27725maybe-html-zlib:
27726@if zlib
27727maybe-html-zlib: html-zlib
6d389afc 27728
a90ef4bf
JM
27729html-zlib: \
27730 configure-zlib
27731 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27732 r=`${PWD_COMMAND}`; export r; \
27733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27734 $(HOST_EXPORTS) \
27735 for flag in $(EXTRA_HOST_FLAGS) ; do \
27736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27737 done; \
22121df0 27738 echo "Doing html in zlib"; \
a90ef4bf 27739 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27742 "RANLIB=$${RANLIB}" \
0c24b341 27743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27744 html) \
27745 || exit 1
27746
a90ef4bf 27747@endif zlib
6d389afc 27748
a90ef4bf
JM
27749.PHONY: maybe-TAGS-zlib TAGS-zlib
27750maybe-TAGS-zlib:
27751@if zlib
27752maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27753
a90ef4bf
JM
27754TAGS-zlib: \
27755 configure-zlib
27756 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27757 r=`${PWD_COMMAND}`; export r; \
27758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27759 $(HOST_EXPORTS) \
b813574b 27760 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27762 done; \
22121df0 27763 echo "Doing TAGS in zlib"; \
a90ef4bf 27764 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27767 "RANLIB=$${RANLIB}" \
0c24b341 27768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27769 TAGS) \
04cf1b77
PB
27770 || exit 1
27771
a90ef4bf 27772@endif zlib
04cf1b77 27773
a90ef4bf
JM
27774.PHONY: maybe-install-info-zlib install-info-zlib
27775maybe-install-info-zlib:
27776@if zlib
27777maybe-install-info-zlib: install-info-zlib
04cf1b77 27778
a90ef4bf
JM
27779install-info-zlib: \
27780 configure-zlib \
27781 info-zlib
27782 @[ -f ./zlib/Makefile ] || exit 0; \
27783 r=`${PWD_COMMAND}`; export r; \
27784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27785 $(HOST_EXPORTS) \
b813574b 27786 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27788 done; \
22121df0 27789 echo "Doing install-info in zlib"; \
a90ef4bf 27790 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27793 "RANLIB=$${RANLIB}" \
0c24b341 27794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27795 install-info) \
04cf1b77
PB
27796 || exit 1
27797
a90ef4bf 27798@endif zlib
04cf1b77 27799
a90ef4bf
JM
27800.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27801maybe-install-pdf-zlib:
27802@if zlib
27803maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27804
a90ef4bf
JM
27805install-pdf-zlib: \
27806 configure-zlib \
27807 pdf-zlib
27808 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27809 r=`${PWD_COMMAND}`; export r; \
27810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27811 $(HOST_EXPORTS) \
27812 for flag in $(EXTRA_HOST_FLAGS) ; do \
27813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27814 done; \
22121df0 27815 echo "Doing install-pdf in zlib"; \
a90ef4bf 27816 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27819 "RANLIB=$${RANLIB}" \
0c24b341 27820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27821 install-pdf) \
27822 || exit 1
27823
a90ef4bf 27824@endif zlib
a3ca38d2 27825
a90ef4bf
JM
27826.PHONY: maybe-install-html-zlib install-html-zlib
27827maybe-install-html-zlib:
27828@if zlib
27829maybe-install-html-zlib: install-html-zlib
108a6f8e 27830
a90ef4bf
JM
27831install-html-zlib: \
27832 configure-zlib \
27833 html-zlib
27834 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27835 r=`${PWD_COMMAND}`; export r; \
27836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27837 $(HOST_EXPORTS) \
27838 for flag in $(EXTRA_HOST_FLAGS) ; do \
27839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27840 done; \
22121df0 27841 echo "Doing install-html in zlib"; \
a90ef4bf 27842 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27845 "RANLIB=$${RANLIB}" \
0c24b341 27846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27847 install-html) \
27848 || exit 1
27849
a90ef4bf 27850@endif zlib
108a6f8e 27851
a90ef4bf
JM
27852.PHONY: maybe-installcheck-zlib installcheck-zlib
27853maybe-installcheck-zlib:
27854@if zlib
27855maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27856
a90ef4bf
JM
27857installcheck-zlib: \
27858 configure-zlib
27859 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27860 r=`${PWD_COMMAND}`; export r; \
27861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27862 $(HOST_EXPORTS) \
b813574b 27863 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27865 done; \
22121df0 27866 echo "Doing installcheck in zlib"; \
a90ef4bf 27867 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27870 "RANLIB=$${RANLIB}" \
0c24b341 27871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27872 installcheck) \
04cf1b77
PB
27873 || exit 1
27874
a90ef4bf 27875@endif zlib
04cf1b77 27876
a90ef4bf
JM
27877.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
27878maybe-mostlyclean-zlib:
27879@if zlib
27880maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 27881
a90ef4bf
JM
27882mostlyclean-zlib:
27883 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27884 r=`${PWD_COMMAND}`; export r; \
27885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27886 $(HOST_EXPORTS) \
b813574b 27887 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27889 done; \
22121df0 27890 echo "Doing mostlyclean in zlib"; \
a90ef4bf 27891 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27894 "RANLIB=$${RANLIB}" \
0c24b341 27895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27896 mostlyclean) \
04cf1b77
PB
27897 || exit 1
27898
a90ef4bf 27899@endif zlib
04cf1b77 27900
a90ef4bf
JM
27901.PHONY: maybe-clean-zlib clean-zlib
27902maybe-clean-zlib:
27903@if zlib
27904maybe-clean-zlib: clean-zlib
04cf1b77 27905
a90ef4bf
JM
27906clean-zlib:
27907 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27908 r=`${PWD_COMMAND}`; export r; \
27909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27910 $(HOST_EXPORTS) \
b813574b 27911 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27913 done; \
22121df0 27914 echo "Doing clean in zlib"; \
a90ef4bf 27915 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27918 "RANLIB=$${RANLIB}" \
0c24b341 27919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27920 clean) \
04cf1b77
PB
27921 || exit 1
27922
a90ef4bf 27923@endif zlib
04cf1b77 27924
a90ef4bf
JM
27925.PHONY: maybe-distclean-zlib distclean-zlib
27926maybe-distclean-zlib:
27927@if zlib
27928maybe-distclean-zlib: distclean-zlib
04cf1b77 27929
a90ef4bf
JM
27930distclean-zlib:
27931 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27932 r=`${PWD_COMMAND}`; export r; \
27933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27934 $(HOST_EXPORTS) \
b813574b 27935 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27937 done; \
22121df0 27938 echo "Doing distclean in zlib"; \
a90ef4bf 27939 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27942 "RANLIB=$${RANLIB}" \
0c24b341 27943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27944 distclean) \
04cf1b77
PB
27945 || exit 1
27946
a90ef4bf 27947@endif zlib
04cf1b77 27948
a90ef4bf
JM
27949.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
27950maybe-maintainer-clean-zlib:
27951@if zlib
27952maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 27953
a90ef4bf
JM
27954maintainer-clean-zlib:
27955 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27956 r=`${PWD_COMMAND}`; export r; \
27957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27958 $(HOST_EXPORTS) \
b813574b 27959 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27961 done; \
22121df0 27962 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 27963 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27966 "RANLIB=$${RANLIB}" \
0c24b341 27967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27968 maintainer-clean) \
04cf1b77
PB
27969 || exit 1
27970
a90ef4bf 27971@endif zlib
04cf1b77
PB
27972
27973
a7254363 27974
a90ef4bf
JM
27975.PHONY: configure-gdb maybe-configure-gdb
27976maybe-configure-gdb:
4f0ef2d8 27977@if gcc-bootstrap
a90ef4bf 27978configure-gdb: stage_current
4f0ef2d8 27979@endif gcc-bootstrap
a90ef4bf
JM
27980@if gdb
27981maybe-configure-gdb: configure-gdb
27982configure-gdb:
27983 @: $(MAKE); $(unstage)
c52c6897
PB
27984 @r=`${PWD_COMMAND}`; export r; \
27985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27986 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 27987 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 27988 $(HOST_EXPORTS) \
a90ef4bf
JM
27989 echo Configuring in $(HOST_SUBDIR)/gdb; \
27990 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 27991 case $(srcdir) in \
b00612cc 27992 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27993 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 27994 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 27995 esac; \
1b6c0831
L
27996 module_srcdir=gdb; \
27997 $(SHELL) \
27998 $$s/$$module_srcdir/configure \
27999 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28000 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28001 --target=${target_alias} \
4fa63067 28002 || exit 1
a90ef4bf 28003@endif gdb
4fa63067 28004
a7254363
PB
28005
28006
d545f33b 28007
8520c408 28008
a90ef4bf
JM
28009.PHONY: all-gdb maybe-all-gdb
28010maybe-all-gdb:
28011@if gcc-bootstrap
28012all-gdb: stage_current
28013@endif gcc-bootstrap
28014@if gdb
28015TARGET-gdb=all
28016maybe-all-gdb: all-gdb
28017all-gdb: configure-gdb
28018 @: $(MAKE); $(unstage)
c52c6897
PB
28019 @r=`${PWD_COMMAND}`; export r; \
28020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28021 $(HOST_EXPORTS) \
28022 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 28023 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28024 $(TARGET-gdb))
28025@endif gdb
8520c408 28026
a90ef4bf
JM
28027
28028
28029
28030.PHONY: check-gdb maybe-check-gdb
28031maybe-check-gdb:
28032@if gdb
28033maybe-check-gdb: check-gdb
28034
28035check-gdb:
28036 @: $(MAKE); $(unstage)
c52c6897
PB
28037 @r=`${PWD_COMMAND}`; export r; \
28038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28039 $(HOST_EXPORTS) \
a90ef4bf
JM
28040 (cd $(HOST_SUBDIR)/gdb && \
28041 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 28042
a90ef4bf
JM
28043@endif gdb
28044
28045.PHONY: install-gdb maybe-install-gdb
28046maybe-install-gdb:
28047@if gdb
28048maybe-install-gdb: install-gdb
28049
28050install-gdb: installdirs
28051 @: $(MAKE); $(unstage)
c52c6897
PB
28052 @r=`${PWD_COMMAND}`; export r; \
28053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28054 $(HOST_EXPORTS) \
a90ef4bf
JM
28055 (cd $(HOST_SUBDIR)/gdb && \
28056 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 28057
a90ef4bf
JM
28058@endif gdb
28059
28060.PHONY: install-strip-gdb maybe-install-strip-gdb
28061maybe-install-strip-gdb:
28062@if gdb
28063maybe-install-strip-gdb: install-strip-gdb
28064
28065install-strip-gdb: installdirs
28066 @: $(MAKE); $(unstage)
c52c6897
PB
28067 @r=`${PWD_COMMAND}`; export r; \
28068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28069 $(HOST_EXPORTS) \
a90ef4bf
JM
28070 (cd $(HOST_SUBDIR)/gdb && \
28071 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28072
a90ef4bf 28073@endif gdb
d545f33b 28074
a90ef4bf 28075# Other targets (info, dvi, pdf, etc.)
d545f33b 28076
a90ef4bf
JM
28077.PHONY: maybe-info-gdb info-gdb
28078maybe-info-gdb:
28079@if gdb
28080maybe-info-gdb: info-gdb
d545f33b 28081
a90ef4bf
JM
28082info-gdb: \
28083 configure-gdb
28084 @: $(MAKE); $(unstage)
28085 @[ -f ./gdb/Makefile ] || exit 0; \
28086 r=`${PWD_COMMAND}`; export r; \
4fa63067 28087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28088 $(HOST_EXPORTS) \
28089 for flag in $(EXTRA_HOST_FLAGS) ; do \
28090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28091 done; \
22121df0 28092 echo "Doing info in gdb"; \
a90ef4bf
JM
28093 (cd $(HOST_SUBDIR)/gdb && \
28094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28096 "RANLIB=$${RANLIB}" \
28097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28098 info) \
28099 || exit 1
4fa63067 28100
a90ef4bf 28101@endif gdb
a7254363 28102
a90ef4bf
JM
28103.PHONY: maybe-dvi-gdb dvi-gdb
28104maybe-dvi-gdb:
28105@if gdb
28106maybe-dvi-gdb: dvi-gdb
d545f33b 28107
a90ef4bf
JM
28108dvi-gdb: \
28109 configure-gdb
28110 @: $(MAKE); $(unstage)
28111 @[ -f ./gdb/Makefile ] || exit 0; \
28112 r=`${PWD_COMMAND}`; export r; \
d545f33b 28113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28114 $(HOST_EXPORTS) \
28115 for flag in $(EXTRA_HOST_FLAGS) ; do \
28116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28117 done; \
22121df0 28118 echo "Doing dvi in gdb"; \
a90ef4bf
JM
28119 (cd $(HOST_SUBDIR)/gdb && \
28120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28122 "RANLIB=$${RANLIB}" \
28123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28124 dvi) \
28125 || exit 1
d545f33b 28126
a90ef4bf 28127@endif gdb
d545f33b 28128
a90ef4bf
JM
28129.PHONY: maybe-pdf-gdb pdf-gdb
28130maybe-pdf-gdb:
28131@if gdb
28132maybe-pdf-gdb: pdf-gdb
d545f33b 28133
a90ef4bf
JM
28134pdf-gdb: \
28135 configure-gdb
9b980aa1 28136 @: $(MAKE); $(unstage)
a90ef4bf 28137 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28138 r=`${PWD_COMMAND}`; export r; \
28139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28140 $(HOST_EXPORTS) \
b813574b 28141 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28143 done; \
22121df0 28144 echo "Doing pdf in gdb"; \
a90ef4bf 28145 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28148 "RANLIB=$${RANLIB}" \
0c24b341 28149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28150 pdf) \
2a4cbe27
NN
28151 || exit 1
28152
a90ef4bf 28153@endif gdb
2a4cbe27 28154
a90ef4bf
JM
28155.PHONY: maybe-html-gdb html-gdb
28156maybe-html-gdb:
28157@if gdb
28158maybe-html-gdb: html-gdb
2a4cbe27 28159
a90ef4bf
JM
28160html-gdb: \
28161 configure-gdb
28162 @: $(MAKE); $(unstage)
28163 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28164 r=`${PWD_COMMAND}`; export r; \
28165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28166 $(HOST_EXPORTS) \
b813574b 28167 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28169 done; \
22121df0 28170 echo "Doing html in gdb"; \
a90ef4bf 28171 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28174 "RANLIB=$${RANLIB}" \
0c24b341 28175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28176 html) \
2a4cbe27
NN
28177 || exit 1
28178
a90ef4bf 28179@endif gdb
2a4cbe27 28180
a90ef4bf
JM
28181.PHONY: maybe-TAGS-gdb TAGS-gdb
28182maybe-TAGS-gdb:
28183@if gdb
28184maybe-TAGS-gdb: TAGS-gdb
56a8fe78 28185
a90ef4bf
JM
28186TAGS-gdb: \
28187 configure-gdb
28188 @: $(MAKE); $(unstage)
28189 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
28190 r=`${PWD_COMMAND}`; export r; \
28191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28192 $(HOST_EXPORTS) \
28193 for flag in $(EXTRA_HOST_FLAGS) ; do \
28194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28195 done; \
22121df0 28196 echo "Doing TAGS in gdb"; \
a90ef4bf 28197 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
28198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28200 "RANLIB=$${RANLIB}" \
0c24b341 28201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28202 TAGS) \
56a8fe78
DD
28203 || exit 1
28204
a90ef4bf 28205@endif gdb
56a8fe78 28206
a90ef4bf
JM
28207.PHONY: maybe-install-info-gdb install-info-gdb
28208maybe-install-info-gdb:
28209@if gdb
28210maybe-install-info-gdb: install-info-gdb
6d389afc 28211
a90ef4bf
JM
28212install-info-gdb: \
28213 configure-gdb \
28214 info-gdb
28215 @: $(MAKE); $(unstage)
28216 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
28217 r=`${PWD_COMMAND}`; export r; \
28218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28219 $(HOST_EXPORTS) \
28220 for flag in $(EXTRA_HOST_FLAGS) ; do \
28221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28222 done; \
22121df0 28223 echo "Doing install-info in gdb"; \
a90ef4bf 28224 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
28225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28227 "RANLIB=$${RANLIB}" \
0c24b341 28228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28229 install-info) \
6d389afc
MS
28230 || exit 1
28231
a90ef4bf 28232@endif gdb
6d389afc 28233
a90ef4bf
JM
28234.PHONY: maybe-install-pdf-gdb install-pdf-gdb
28235maybe-install-pdf-gdb:
28236@if gdb
28237maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 28238
a90ef4bf
JM
28239install-pdf-gdb: \
28240 configure-gdb \
28241 pdf-gdb
28242 @: $(MAKE); $(unstage)
28243 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28244 r=`${PWD_COMMAND}`; export r; \
28245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28246 $(HOST_EXPORTS) \
b813574b 28247 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28249 done; \
22121df0 28250 echo "Doing install-pdf in gdb"; \
a90ef4bf 28251 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28254 "RANLIB=$${RANLIB}" \
0c24b341 28255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28256 install-pdf) \
2a4cbe27
NN
28257 || exit 1
28258
a90ef4bf 28259@endif gdb
2a4cbe27 28260
a90ef4bf
JM
28261.PHONY: maybe-install-html-gdb install-html-gdb
28262maybe-install-html-gdb:
28263@if gdb
28264maybe-install-html-gdb: install-html-gdb
2a4cbe27 28265
a90ef4bf
JM
28266install-html-gdb: \
28267 configure-gdb \
28268 html-gdb
28269 @: $(MAKE); $(unstage)
28270 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28271 r=`${PWD_COMMAND}`; export r; \
28272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28273 $(HOST_EXPORTS) \
b813574b 28274 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28276 done; \
22121df0 28277 echo "Doing install-html in gdb"; \
a90ef4bf 28278 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28281 "RANLIB=$${RANLIB}" \
0c24b341 28282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28283 install-html) \
2a4cbe27
NN
28284 || exit 1
28285
a90ef4bf 28286@endif gdb
2a4cbe27 28287
a90ef4bf
JM
28288.PHONY: maybe-installcheck-gdb installcheck-gdb
28289maybe-installcheck-gdb:
28290@if gdb
28291maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 28292
a90ef4bf
JM
28293installcheck-gdb: \
28294 configure-gdb
28295 @: $(MAKE); $(unstage)
28296 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
28297 r=`${PWD_COMMAND}`; export r; \
28298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28299 $(HOST_EXPORTS) \
28300 for flag in $(EXTRA_HOST_FLAGS) ; do \
28301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28302 done; \
22121df0 28303 echo "Doing installcheck in gdb"; \
a90ef4bf 28304 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
28305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28307 "RANLIB=$${RANLIB}" \
0c24b341 28308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28309 installcheck) \
a3ca38d2
DD
28310 || exit 1
28311
a90ef4bf 28312@endif gdb
a3ca38d2 28313
a90ef4bf
JM
28314.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
28315maybe-mostlyclean-gdb:
28316@if gdb
28317maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 28318
a90ef4bf
JM
28319mostlyclean-gdb:
28320 @: $(MAKE); $(unstage)
28321 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
28322 r=`${PWD_COMMAND}`; export r; \
28323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28324 $(HOST_EXPORTS) \
28325 for flag in $(EXTRA_HOST_FLAGS) ; do \
28326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28327 done; \
22121df0 28328 echo "Doing mostlyclean in gdb"; \
a90ef4bf 28329 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
28330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28332 "RANLIB=$${RANLIB}" \
0c24b341 28333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28334 mostlyclean) \
108a6f8e
CD
28335 || exit 1
28336
a90ef4bf 28337@endif gdb
108a6f8e 28338
a90ef4bf
JM
28339.PHONY: maybe-clean-gdb clean-gdb
28340maybe-clean-gdb:
28341@if gdb
28342maybe-clean-gdb: clean-gdb
2a4cbe27 28343
a90ef4bf
JM
28344clean-gdb:
28345 @: $(MAKE); $(unstage)
28346 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28347 r=`${PWD_COMMAND}`; export r; \
28348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28349 $(HOST_EXPORTS) \
b813574b 28350 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28352 done; \
22121df0 28353 echo "Doing clean in gdb"; \
a90ef4bf 28354 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28357 "RANLIB=$${RANLIB}" \
0c24b341 28358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28359 clean) \
2a4cbe27
NN
28360 || exit 1
28361
a90ef4bf 28362@endif gdb
2a4cbe27 28363
a90ef4bf
JM
28364.PHONY: maybe-distclean-gdb distclean-gdb
28365maybe-distclean-gdb:
28366@if gdb
28367maybe-distclean-gdb: distclean-gdb
2a4cbe27 28368
a90ef4bf
JM
28369distclean-gdb:
28370 @: $(MAKE); $(unstage)
28371 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28372 r=`${PWD_COMMAND}`; export r; \
28373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28374 $(HOST_EXPORTS) \
b813574b 28375 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28377 done; \
22121df0 28378 echo "Doing distclean in gdb"; \
a90ef4bf 28379 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28382 "RANLIB=$${RANLIB}" \
0c24b341 28383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28384 distclean) \
2a4cbe27
NN
28385 || exit 1
28386
a90ef4bf 28387@endif gdb
2a4cbe27 28388
a90ef4bf
JM
28389.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
28390maybe-maintainer-clean-gdb:
28391@if gdb
28392maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 28393
a90ef4bf
JM
28394maintainer-clean-gdb:
28395 @: $(MAKE); $(unstage)
28396 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28397 r=`${PWD_COMMAND}`; export r; \
28398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28399 $(HOST_EXPORTS) \
b813574b 28400 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28402 done; \
22121df0 28403 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 28404 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28407 "RANLIB=$${RANLIB}" \
0c24b341 28408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28409 maintainer-clean) \
2a4cbe27
NN
28410 || exit 1
28411
a90ef4bf 28412@endif gdb
2a4cbe27 28413
2a4cbe27 28414
a7254363 28415
a90ef4bf
JM
28416.PHONY: configure-expect maybe-configure-expect
28417maybe-configure-expect:
4f0ef2d8 28418@if gcc-bootstrap
a90ef4bf 28419configure-expect: stage_current
4f0ef2d8 28420@endif gcc-bootstrap
a90ef4bf
JM
28421@if expect
28422maybe-configure-expect: configure-expect
28423configure-expect:
28424 @: $(MAKE); $(unstage)
c52c6897
PB
28425 @r=`${PWD_COMMAND}`; export r; \
28426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28427 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 28428 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 28429 $(HOST_EXPORTS) \
a90ef4bf
JM
28430 echo Configuring in $(HOST_SUBDIR)/expect; \
28431 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
28432 case $(srcdir) in \
28433 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28434 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
28435 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28436 esac; \
1b6c0831
L
28437 module_srcdir=expect; \
28438 $(SHELL) \
28439 $$s/$$module_srcdir/configure \
28440 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28441 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28442 --target=${target_alias} \
be01d343 28443 || exit 1
a90ef4bf 28444@endif expect
be01d343
PB
28445
28446
28447
be01d343 28448
8520c408 28449
a90ef4bf
JM
28450.PHONY: all-expect maybe-all-expect
28451maybe-all-expect:
28452@if gcc-bootstrap
28453all-expect: stage_current
28454@endif gcc-bootstrap
28455@if expect
28456TARGET-expect=all
28457maybe-all-expect: all-expect
28458all-expect: configure-expect
28459 @: $(MAKE); $(unstage)
c52c6897
PB
28460 @r=`${PWD_COMMAND}`; export r; \
28461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28462 $(HOST_EXPORTS) \
28463 (cd $(HOST_SUBDIR)/expect && \
b3676d82 28464 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28465 $(TARGET-expect))
28466@endif expect
8520c408 28467
a90ef4bf
JM
28468
28469
28470
28471.PHONY: check-expect maybe-check-expect
28472maybe-check-expect:
28473@if expect
28474maybe-check-expect: check-expect
28475
28476check-expect:
28477 @: $(MAKE); $(unstage)
c52c6897
PB
28478 @r=`${PWD_COMMAND}`; export r; \
28479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28480 $(HOST_EXPORTS) \
a90ef4bf
JM
28481 (cd $(HOST_SUBDIR)/expect && \
28482 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 28483
a90ef4bf
JM
28484@endif expect
28485
28486.PHONY: install-expect maybe-install-expect
28487maybe-install-expect:
28488@if expect
28489maybe-install-expect: install-expect
28490
28491install-expect: installdirs
28492 @: $(MAKE); $(unstage)
c52c6897
PB
28493 @r=`${PWD_COMMAND}`; export r; \
28494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28495 $(HOST_EXPORTS) \
a90ef4bf
JM
28496 (cd $(HOST_SUBDIR)/expect && \
28497 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 28498
a90ef4bf
JM
28499@endif expect
28500
28501.PHONY: install-strip-expect maybe-install-strip-expect
28502maybe-install-strip-expect:
28503@if expect
28504maybe-install-strip-expect: install-strip-expect
28505
28506install-strip-expect: installdirs
28507 @: $(MAKE); $(unstage)
c52c6897
PB
28508 @r=`${PWD_COMMAND}`; export r; \
28509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28510 $(HOST_EXPORTS) \
a90ef4bf
JM
28511 (cd $(HOST_SUBDIR)/expect && \
28512 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 28513
a90ef4bf 28514@endif expect
be01d343 28515
a90ef4bf 28516# Other targets (info, dvi, pdf, etc.)
be01d343 28517
a90ef4bf
JM
28518.PHONY: maybe-info-expect info-expect
28519maybe-info-expect:
28520@if expect
28521maybe-info-expect: info-expect
be01d343 28522
a90ef4bf
JM
28523info-expect: \
28524 configure-expect
28525 @: $(MAKE); $(unstage)
28526 @[ -f ./expect/Makefile ] || exit 0; \
28527 r=`${PWD_COMMAND}`; export r; \
be01d343 28528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28529 $(HOST_EXPORTS) \
28530 for flag in $(EXTRA_HOST_FLAGS) ; do \
28531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28532 done; \
22121df0 28533 echo "Doing info in expect"; \
a90ef4bf
JM
28534 (cd $(HOST_SUBDIR)/expect && \
28535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28537 "RANLIB=$${RANLIB}" \
28538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28539 info) \
28540 || exit 1
be01d343 28541
a90ef4bf 28542@endif expect
be01d343 28543
a90ef4bf
JM
28544.PHONY: maybe-dvi-expect dvi-expect
28545maybe-dvi-expect:
28546@if expect
28547maybe-dvi-expect: dvi-expect
be01d343 28548
a90ef4bf
JM
28549dvi-expect: \
28550 configure-expect
28551 @: $(MAKE); $(unstage)
28552 @[ -f ./expect/Makefile ] || exit 0; \
28553 r=`${PWD_COMMAND}`; export r; \
be01d343 28554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28555 $(HOST_EXPORTS) \
28556 for flag in $(EXTRA_HOST_FLAGS) ; do \
28557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28558 done; \
22121df0 28559 echo "Doing dvi in expect"; \
a90ef4bf
JM
28560 (cd $(HOST_SUBDIR)/expect && \
28561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28563 "RANLIB=$${RANLIB}" \
28564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28565 dvi) \
28566 || exit 1
be01d343 28567
a90ef4bf 28568@endif expect
be01d343 28569
a90ef4bf
JM
28570.PHONY: maybe-pdf-expect pdf-expect
28571maybe-pdf-expect:
28572@if expect
28573maybe-pdf-expect: pdf-expect
be01d343 28574
a90ef4bf
JM
28575pdf-expect: \
28576 configure-expect
28577 @: $(MAKE); $(unstage)
28578 @[ -f ./expect/Makefile ] || exit 0; \
28579 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28581 $(HOST_EXPORTS) \
a90ef4bf
JM
28582 for flag in $(EXTRA_HOST_FLAGS) ; do \
28583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28584 done; \
22121df0 28585 echo "Doing pdf in expect"; \
a90ef4bf
JM
28586 (cd $(HOST_SUBDIR)/expect && \
28587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28589 "RANLIB=$${RANLIB}" \
28590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28591 pdf) \
28592 || exit 1
be01d343 28593
a90ef4bf 28594@endif expect
be01d343 28595
a90ef4bf
JM
28596.PHONY: maybe-html-expect html-expect
28597maybe-html-expect:
28598@if expect
28599maybe-html-expect: html-expect
be01d343 28600
a90ef4bf
JM
28601html-expect: \
28602 configure-expect
28603 @: $(MAKE); $(unstage)
28604 @[ -f ./expect/Makefile ] || exit 0; \
28605 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28607 $(HOST_EXPORTS) \
a90ef4bf
JM
28608 for flag in $(EXTRA_HOST_FLAGS) ; do \
28609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28610 done; \
22121df0 28611 echo "Doing html in expect"; \
a90ef4bf
JM
28612 (cd $(HOST_SUBDIR)/expect && \
28613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28615 "RANLIB=$${RANLIB}" \
28616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28617 html) \
28618 || exit 1
be01d343 28619
a90ef4bf 28620@endif expect
be01d343 28621
a90ef4bf
JM
28622.PHONY: maybe-TAGS-expect TAGS-expect
28623maybe-TAGS-expect:
28624@if expect
28625maybe-TAGS-expect: TAGS-expect
9b980aa1 28626
a90ef4bf
JM
28627TAGS-expect: \
28628 configure-expect
9b980aa1 28629 @: $(MAKE); $(unstage)
a90ef4bf 28630 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28631 r=`${PWD_COMMAND}`; export r; \
28632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28633 $(HOST_EXPORTS) \
28634 for flag in $(EXTRA_HOST_FLAGS) ; do \
28635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28636 done; \
22121df0 28637 echo "Doing TAGS in expect"; \
a90ef4bf 28638 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28641 "RANLIB=$${RANLIB}" \
0c24b341 28642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28643 TAGS) \
28644 || exit 1
28645
a90ef4bf 28646@endif expect
be01d343 28647
a90ef4bf
JM
28648.PHONY: maybe-install-info-expect install-info-expect
28649maybe-install-info-expect:
28650@if expect
28651maybe-install-info-expect: install-info-expect
be01d343 28652
a90ef4bf
JM
28653install-info-expect: \
28654 configure-expect \
28655 info-expect
28656 @: $(MAKE); $(unstage)
28657 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28658 r=`${PWD_COMMAND}`; export r; \
28659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28660 $(HOST_EXPORTS) \
28661 for flag in $(EXTRA_HOST_FLAGS) ; do \
28662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28663 done; \
22121df0 28664 echo "Doing install-info in expect"; \
a90ef4bf 28665 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28668 "RANLIB=$${RANLIB}" \
0c24b341 28669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28670 install-info) \
28671 || exit 1
28672
a90ef4bf 28673@endif expect
be01d343 28674
a90ef4bf
JM
28675.PHONY: maybe-install-pdf-expect install-pdf-expect
28676maybe-install-pdf-expect:
28677@if expect
28678maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 28679
a90ef4bf
JM
28680install-pdf-expect: \
28681 configure-expect \
28682 pdf-expect
28683 @: $(MAKE); $(unstage)
28684 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
28685 r=`${PWD_COMMAND}`; export r; \
28686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28687 $(HOST_EXPORTS) \
28688 for flag in $(EXTRA_HOST_FLAGS) ; do \
28689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28690 done; \
22121df0 28691 echo "Doing install-pdf in expect"; \
a90ef4bf 28692 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
28693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28695 "RANLIB=$${RANLIB}" \
0c24b341 28696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28697 install-pdf) \
28698 || exit 1
28699
a90ef4bf 28700@endif expect
a3ca38d2 28701
a90ef4bf
JM
28702.PHONY: maybe-install-html-expect install-html-expect
28703maybe-install-html-expect:
28704@if expect
28705maybe-install-html-expect: install-html-expect
108a6f8e 28706
a90ef4bf
JM
28707install-html-expect: \
28708 configure-expect \
28709 html-expect
28710 @: $(MAKE); $(unstage)
28711 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
28712 r=`${PWD_COMMAND}`; export r; \
28713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28714 $(HOST_EXPORTS) \
28715 for flag in $(EXTRA_HOST_FLAGS) ; do \
28716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28717 done; \
22121df0 28718 echo "Doing install-html in expect"; \
a90ef4bf 28719 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
28720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28722 "RANLIB=$${RANLIB}" \
0c24b341 28723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28724 install-html) \
28725 || exit 1
28726
a90ef4bf 28727@endif expect
108a6f8e 28728
a90ef4bf
JM
28729.PHONY: maybe-installcheck-expect installcheck-expect
28730maybe-installcheck-expect:
28731@if expect
28732maybe-installcheck-expect: installcheck-expect
be01d343 28733
a90ef4bf
JM
28734installcheck-expect: \
28735 configure-expect
28736 @: $(MAKE); $(unstage)
28737 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28738 r=`${PWD_COMMAND}`; export r; \
28739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28740 $(HOST_EXPORTS) \
28741 for flag in $(EXTRA_HOST_FLAGS) ; do \
28742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28743 done; \
22121df0 28744 echo "Doing installcheck in expect"; \
a90ef4bf 28745 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28748 "RANLIB=$${RANLIB}" \
0c24b341 28749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28750 installcheck) \
28751 || exit 1
28752
a90ef4bf 28753@endif expect
be01d343 28754
a90ef4bf
JM
28755.PHONY: maybe-mostlyclean-expect mostlyclean-expect
28756maybe-mostlyclean-expect:
28757@if expect
28758maybe-mostlyclean-expect: mostlyclean-expect
be01d343 28759
a90ef4bf
JM
28760mostlyclean-expect:
28761 @: $(MAKE); $(unstage)
28762 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28763 r=`${PWD_COMMAND}`; export r; \
28764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28765 $(HOST_EXPORTS) \
28766 for flag in $(EXTRA_HOST_FLAGS) ; do \
28767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28768 done; \
22121df0 28769 echo "Doing mostlyclean in expect"; \
a90ef4bf 28770 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28773 "RANLIB=$${RANLIB}" \
0c24b341 28774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28775 mostlyclean) \
28776 || exit 1
28777
a90ef4bf 28778@endif expect
be01d343 28779
a90ef4bf
JM
28780.PHONY: maybe-clean-expect clean-expect
28781maybe-clean-expect:
28782@if expect
28783maybe-clean-expect: clean-expect
be01d343 28784
a90ef4bf
JM
28785clean-expect:
28786 @: $(MAKE); $(unstage)
28787 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28788 r=`${PWD_COMMAND}`; export r; \
28789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28790 $(HOST_EXPORTS) \
28791 for flag in $(EXTRA_HOST_FLAGS) ; do \
28792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28793 done; \
22121df0 28794 echo "Doing clean in expect"; \
a90ef4bf 28795 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28798 "RANLIB=$${RANLIB}" \
0c24b341 28799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28800 clean) \
28801 || exit 1
28802
a90ef4bf 28803@endif expect
be01d343 28804
a90ef4bf
JM
28805.PHONY: maybe-distclean-expect distclean-expect
28806maybe-distclean-expect:
28807@if expect
28808maybe-distclean-expect: distclean-expect
be01d343 28809
a90ef4bf
JM
28810distclean-expect:
28811 @: $(MAKE); $(unstage)
28812 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28813 r=`${PWD_COMMAND}`; export r; \
28814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28815 $(HOST_EXPORTS) \
28816 for flag in $(EXTRA_HOST_FLAGS) ; do \
28817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28818 done; \
22121df0 28819 echo "Doing distclean in expect"; \
a90ef4bf 28820 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28823 "RANLIB=$${RANLIB}" \
0c24b341 28824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28825 distclean) \
28826 || exit 1
28827
a90ef4bf 28828@endif expect
be01d343 28829
a90ef4bf
JM
28830.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
28831maybe-maintainer-clean-expect:
28832@if expect
28833maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 28834
a90ef4bf
JM
28835maintainer-clean-expect:
28836 @: $(MAKE); $(unstage)
28837 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28838 r=`${PWD_COMMAND}`; export r; \
28839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28840 $(HOST_EXPORTS) \
28841 for flag in $(EXTRA_HOST_FLAGS) ; do \
28842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28843 done; \
22121df0 28844 echo "Doing maintainer-clean in expect"; \
a90ef4bf 28845 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28848 "RANLIB=$${RANLIB}" \
0c24b341 28849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28850 maintainer-clean) \
28851 || exit 1
28852
a90ef4bf 28853@endif expect
be01d343
PB
28854
28855
28856
a90ef4bf
JM
28857.PHONY: configure-guile maybe-configure-guile
28858maybe-configure-guile:
4f0ef2d8 28859@if gcc-bootstrap
a90ef4bf 28860configure-guile: stage_current
4f0ef2d8 28861@endif gcc-bootstrap
a90ef4bf
JM
28862@if guile
28863maybe-configure-guile: configure-guile
28864configure-guile:
0aed8855 28865 @: $(MAKE); $(unstage)
c52c6897 28866 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 28867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28868 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 28869 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 28870 $(HOST_EXPORTS) \
a90ef4bf
JM
28871 echo Configuring in $(HOST_SUBDIR)/guile; \
28872 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 28873 case $(srcdir) in \
b00612cc 28874 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28875 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 28876 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 28877 esac; \
1b6c0831
L
28878 module_srcdir=guile; \
28879 $(SHELL) \
28880 $$s/$$module_srcdir/configure \
28881 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28882 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28883 --target=${target_alias} \
4b1cb4fe 28884 || exit 1
a90ef4bf 28885@endif guile
4b1cb4fe 28886
a7254363
PB
28887
28888
d545f33b
PB
28889
28890
a90ef4bf
JM
28891.PHONY: all-guile maybe-all-guile
28892maybe-all-guile:
4f0ef2d8 28893@if gcc-bootstrap
a90ef4bf 28894all-guile: stage_current
4f0ef2d8 28895@endif gcc-bootstrap
a90ef4bf
JM
28896@if guile
28897TARGET-guile=all
28898maybe-all-guile: all-guile
28899all-guile: configure-guile
28900 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28901 @r=`${PWD_COMMAND}`; export r; \
28902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 28903 $(HOST_EXPORTS) \
a90ef4bf 28904 (cd $(HOST_SUBDIR)/guile && \
b3676d82 28905 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28906 $(TARGET-guile))
28907@endif guile
4b1cb4fe 28908
a7254363 28909
d545f33b
PB
28910
28911
a90ef4bf
JM
28912.PHONY: check-guile maybe-check-guile
28913maybe-check-guile:
28914@if guile
28915maybe-check-guile: check-guile
4b1cb4fe 28916
a90ef4bf 28917check-guile:
0aed8855 28918 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28919 @r=`${PWD_COMMAND}`; export r; \
28920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28921 $(HOST_EXPORTS) \
a90ef4bf 28922 (cd $(HOST_SUBDIR)/guile && \
b00612cc 28923 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 28924
a90ef4bf 28925@endif guile
4b1cb4fe 28926
a90ef4bf
JM
28927.PHONY: install-guile maybe-install-guile
28928maybe-install-guile:
28929@if guile
28930maybe-install-guile: install-guile
4b1cb4fe 28931
a90ef4bf 28932install-guile: installdirs
0aed8855 28933 @: $(MAKE); $(unstage)
b813574b
PB
28934 @r=`${PWD_COMMAND}`; export r; \
28935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 28936 $(HOST_EXPORTS) \
a90ef4bf 28937 (cd $(HOST_SUBDIR)/guile && \
2da12f12 28938 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 28939
a90ef4bf 28940@endif guile
4b1cb4fe 28941
a90ef4bf
JM
28942.PHONY: install-strip-guile maybe-install-strip-guile
28943maybe-install-strip-guile:
28944@if guile
28945maybe-install-strip-guile: install-strip-guile
9b980aa1 28946
a90ef4bf 28947install-strip-guile: installdirs
9b980aa1
RW
28948 @: $(MAKE); $(unstage)
28949 @r=`${PWD_COMMAND}`; export r; \
28950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28951 $(HOST_EXPORTS) \
a90ef4bf 28952 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
28953 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28954
a90ef4bf 28955@endif guile
9b980aa1 28956
56a8fe78 28957# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 28958
a90ef4bf
JM
28959.PHONY: maybe-info-guile info-guile
28960maybe-info-guile:
28961@if guile
28962maybe-info-guile: info-guile
4b1cb4fe 28963
a90ef4bf
JM
28964info-guile: \
28965 configure-guile
0aed8855 28966 @: $(MAKE); $(unstage)
a90ef4bf 28967 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28968 r=`${PWD_COMMAND}`; export r; \
28969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28970 $(HOST_EXPORTS) \
b813574b 28971 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28973 done; \
22121df0 28974 echo "Doing info in guile"; \
a90ef4bf 28975 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28978 "RANLIB=$${RANLIB}" \
0c24b341 28979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28980 info) \
4b1cb4fe
DD
28981 || exit 1
28982
a90ef4bf 28983@endif guile
4b1cb4fe 28984
a90ef4bf
JM
28985.PHONY: maybe-dvi-guile dvi-guile
28986maybe-dvi-guile:
28987@if guile
28988maybe-dvi-guile: dvi-guile
4b1cb4fe 28989
a90ef4bf
JM
28990dvi-guile: \
28991 configure-guile
0aed8855 28992 @: $(MAKE); $(unstage)
a90ef4bf 28993 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28994 r=`${PWD_COMMAND}`; export r; \
28995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28996 $(HOST_EXPORTS) \
b813574b 28997 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28999 done; \
22121df0 29000 echo "Doing dvi in guile"; \
a90ef4bf 29001 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29004 "RANLIB=$${RANLIB}" \
0c24b341 29005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29006 dvi) \
4b1cb4fe
DD
29007 || exit 1
29008
a90ef4bf 29009@endif guile
4b1cb4fe 29010
a90ef4bf
JM
29011.PHONY: maybe-pdf-guile pdf-guile
29012maybe-pdf-guile:
29013@if guile
29014maybe-pdf-guile: pdf-guile
56a8fe78 29015
a90ef4bf
JM
29016pdf-guile: \
29017 configure-guile
56a8fe78 29018 @: $(MAKE); $(unstage)
a90ef4bf 29019 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
29020 r=`${PWD_COMMAND}`; export r; \
29021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29022 $(HOST_EXPORTS) \
29023 for flag in $(EXTRA_HOST_FLAGS) ; do \
29024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29025 done; \
22121df0 29026 echo "Doing pdf in guile"; \
a90ef4bf 29027 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
29028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29030 "RANLIB=$${RANLIB}" \
0c24b341 29031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29032 pdf) \
29033 || exit 1
29034
a90ef4bf 29035@endif guile
56a8fe78 29036
a90ef4bf
JM
29037.PHONY: maybe-html-guile html-guile
29038maybe-html-guile:
29039@if guile
29040maybe-html-guile: html-guile
6d389afc 29041
a90ef4bf
JM
29042html-guile: \
29043 configure-guile
0aed8855 29044 @: $(MAKE); $(unstage)
a90ef4bf 29045 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
29046 r=`${PWD_COMMAND}`; export r; \
29047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29048 $(HOST_EXPORTS) \
29049 for flag in $(EXTRA_HOST_FLAGS) ; do \
29050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29051 done; \
22121df0 29052 echo "Doing html in guile"; \
a90ef4bf 29053 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
29054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29056 "RANLIB=$${RANLIB}" \
0c24b341 29057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29058 html) \
29059 || exit 1
29060
a90ef4bf 29061@endif guile
6d389afc 29062
a90ef4bf
JM
29063.PHONY: maybe-TAGS-guile TAGS-guile
29064maybe-TAGS-guile:
29065@if guile
29066maybe-TAGS-guile: TAGS-guile
4b1cb4fe 29067
a90ef4bf
JM
29068TAGS-guile: \
29069 configure-guile
0aed8855 29070 @: $(MAKE); $(unstage)
a90ef4bf 29071 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29072 r=`${PWD_COMMAND}`; export r; \
29073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29074 $(HOST_EXPORTS) \
b813574b 29075 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29077 done; \
22121df0 29078 echo "Doing TAGS in guile"; \
a90ef4bf 29079 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29082 "RANLIB=$${RANLIB}" \
0c24b341 29083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29084 TAGS) \
4b1cb4fe
DD
29085 || exit 1
29086
a90ef4bf 29087@endif guile
4b1cb4fe 29088
a90ef4bf
JM
29089.PHONY: maybe-install-info-guile install-info-guile
29090maybe-install-info-guile:
29091@if guile
29092maybe-install-info-guile: install-info-guile
4b1cb4fe 29093
a90ef4bf
JM
29094install-info-guile: \
29095 configure-guile \
29096 info-guile
0aed8855 29097 @: $(MAKE); $(unstage)
a90ef4bf 29098 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29099 r=`${PWD_COMMAND}`; export r; \
29100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29101 $(HOST_EXPORTS) \
b813574b 29102 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29104 done; \
22121df0 29105 echo "Doing install-info in guile"; \
a90ef4bf 29106 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29109 "RANLIB=$${RANLIB}" \
0c24b341 29110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29111 install-info) \
4b1cb4fe
DD
29112 || exit 1
29113
a90ef4bf 29114@endif guile
4b1cb4fe 29115
a90ef4bf
JM
29116.PHONY: maybe-install-pdf-guile install-pdf-guile
29117maybe-install-pdf-guile:
29118@if guile
29119maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 29120
a90ef4bf
JM
29121install-pdf-guile: \
29122 configure-guile \
29123 pdf-guile
a3ca38d2 29124 @: $(MAKE); $(unstage)
a90ef4bf 29125 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
29126 r=`${PWD_COMMAND}`; export r; \
29127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29128 $(HOST_EXPORTS) \
29129 for flag in $(EXTRA_HOST_FLAGS) ; do \
29130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29131 done; \
22121df0 29132 echo "Doing install-pdf in guile"; \
a90ef4bf 29133 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
29134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29136 "RANLIB=$${RANLIB}" \
0c24b341 29137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29138 install-pdf) \
29139 || exit 1
29140
a90ef4bf 29141@endif guile
a3ca38d2 29142
a90ef4bf
JM
29143.PHONY: maybe-install-html-guile install-html-guile
29144maybe-install-html-guile:
29145@if guile
29146maybe-install-html-guile: install-html-guile
108a6f8e 29147
a90ef4bf
JM
29148install-html-guile: \
29149 configure-guile \
29150 html-guile
108a6f8e 29151 @: $(MAKE); $(unstage)
a90ef4bf 29152 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
29153 r=`${PWD_COMMAND}`; export r; \
29154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29155 $(HOST_EXPORTS) \
29156 for flag in $(EXTRA_HOST_FLAGS) ; do \
29157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29158 done; \
22121df0 29159 echo "Doing install-html in guile"; \
a90ef4bf 29160 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
29161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29163 "RANLIB=$${RANLIB}" \
0c24b341 29164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29165 install-html) \
29166 || exit 1
29167
a90ef4bf 29168@endif guile
108a6f8e 29169
a90ef4bf
JM
29170.PHONY: maybe-installcheck-guile installcheck-guile
29171maybe-installcheck-guile:
29172@if guile
29173maybe-installcheck-guile: installcheck-guile
4b1cb4fe 29174
a90ef4bf
JM
29175installcheck-guile: \
29176 configure-guile
0aed8855 29177 @: $(MAKE); $(unstage)
a90ef4bf 29178 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29179 r=`${PWD_COMMAND}`; export r; \
29180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29181 $(HOST_EXPORTS) \
b813574b 29182 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29184 done; \
22121df0 29185 echo "Doing installcheck in guile"; \
a90ef4bf 29186 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29189 "RANLIB=$${RANLIB}" \
0c24b341 29190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29191 installcheck) \
4b1cb4fe
DD
29192 || exit 1
29193
a90ef4bf 29194@endif guile
4b1cb4fe 29195
a90ef4bf
JM
29196.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29197maybe-mostlyclean-guile:
29198@if guile
29199maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 29200
a90ef4bf 29201mostlyclean-guile:
0aed8855 29202 @: $(MAKE); $(unstage)
a90ef4bf 29203 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29204 r=`${PWD_COMMAND}`; export r; \
29205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29206 $(HOST_EXPORTS) \
b813574b 29207 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29209 done; \
22121df0 29210 echo "Doing mostlyclean in guile"; \
a90ef4bf 29211 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29214 "RANLIB=$${RANLIB}" \
0c24b341 29215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29216 mostlyclean) \
4b1cb4fe
DD
29217 || exit 1
29218
a90ef4bf 29219@endif guile
4b1cb4fe 29220
a90ef4bf
JM
29221.PHONY: maybe-clean-guile clean-guile
29222maybe-clean-guile:
29223@if guile
29224maybe-clean-guile: clean-guile
4b1cb4fe 29225
a90ef4bf 29226clean-guile:
0aed8855 29227 @: $(MAKE); $(unstage)
a90ef4bf 29228 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29229 r=`${PWD_COMMAND}`; export r; \
29230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29231 $(HOST_EXPORTS) \
b813574b 29232 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29234 done; \
22121df0 29235 echo "Doing clean in guile"; \
a90ef4bf 29236 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29239 "RANLIB=$${RANLIB}" \
0c24b341 29240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29241 clean) \
4b1cb4fe
DD
29242 || exit 1
29243
a90ef4bf 29244@endif guile
4b1cb4fe 29245
a90ef4bf
JM
29246.PHONY: maybe-distclean-guile distclean-guile
29247maybe-distclean-guile:
29248@if guile
29249maybe-distclean-guile: distclean-guile
4b1cb4fe 29250
a90ef4bf 29251distclean-guile:
0aed8855 29252 @: $(MAKE); $(unstage)
a90ef4bf 29253 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29254 r=`${PWD_COMMAND}`; export r; \
29255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29256 $(HOST_EXPORTS) \
b813574b 29257 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29259 done; \
22121df0 29260 echo "Doing distclean in guile"; \
a90ef4bf 29261 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29264 "RANLIB=$${RANLIB}" \
0c24b341 29265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29266 distclean) \
4b1cb4fe
DD
29267 || exit 1
29268
a90ef4bf 29269@endif guile
4b1cb4fe 29270
a90ef4bf
JM
29271.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
29272maybe-maintainer-clean-guile:
29273@if guile
29274maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 29275
a90ef4bf 29276maintainer-clean-guile:
0aed8855 29277 @: $(MAKE); $(unstage)
a90ef4bf 29278 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29279 r=`${PWD_COMMAND}`; export r; \
29280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29281 $(HOST_EXPORTS) \
b813574b 29282 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29284 done; \
22121df0 29285 echo "Doing maintainer-clean in guile"; \
a90ef4bf 29286 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29289 "RANLIB=$${RANLIB}" \
0c24b341 29290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29291 maintainer-clean) \
4b1cb4fe
DD
29292 || exit 1
29293
a90ef4bf 29294@endif guile
4b1cb4fe
DD
29295
29296
a7254363 29297
a90ef4bf
JM
29298.PHONY: configure-tk maybe-configure-tk
29299maybe-configure-tk:
4f0ef2d8 29300@if gcc-bootstrap
a90ef4bf 29301configure-tk: stage_current
4f0ef2d8 29302@endif gcc-bootstrap
a90ef4bf
JM
29303@if tk
29304maybe-configure-tk: configure-tk
29305configure-tk:
29306 @: $(MAKE); $(unstage)
c52c6897
PB
29307 @r=`${PWD_COMMAND}`; export r; \
29308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29309 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 29310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 29311 $(HOST_EXPORTS) \
a90ef4bf
JM
29312 echo Configuring in $(HOST_SUBDIR)/tk; \
29313 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 29314 case $(srcdir) in \
b00612cc 29315 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29316 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 29317 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29318 esac; \
1b6c0831
L
29319 module_srcdir=tk; \
29320 $(SHELL) \
29321 $$s/$$module_srcdir/configure \
29322 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29323 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29324 --target=${target_alias} \
2a4cbe27 29325 || exit 1
a90ef4bf 29326@endif tk
2a4cbe27 29327
a7254363
PB
29328
29329
a90ef4bf
JM
29330
29331
29332.PHONY: all-tk maybe-all-tk
29333maybe-all-tk:
29334@if gcc-bootstrap
29335all-tk: stage_current
29336@endif gcc-bootstrap
29337@if tk
29338TARGET-tk=all
29339maybe-all-tk: all-tk
29340all-tk: configure-tk
29341 @: $(MAKE); $(unstage)
c52c6897
PB
29342 @r=`${PWD_COMMAND}`; export r; \
29343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29344 $(HOST_EXPORTS) \
29345 (cd $(HOST_SUBDIR)/tk && \
b3676d82 29346 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29347 $(TARGET-tk))
29348@endif tk
d545f33b 29349
a90ef4bf
JM
29350
29351
29352
29353.PHONY: check-tk maybe-check-tk
29354maybe-check-tk:
29355@if tk
29356maybe-check-tk: check-tk
29357
29358check-tk:
29359 @: $(MAKE); $(unstage)
c52c6897
PB
29360 @r=`${PWD_COMMAND}`; export r; \
29361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29362 $(HOST_EXPORTS) \
a90ef4bf
JM
29363 (cd $(HOST_SUBDIR)/tk && \
29364 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 29365
a90ef4bf
JM
29366@endif tk
29367
29368.PHONY: install-tk maybe-install-tk
29369maybe-install-tk:
29370@if tk
29371maybe-install-tk: install-tk
29372
29373install-tk: installdirs
29374 @: $(MAKE); $(unstage)
c52c6897
PB
29375 @r=`${PWD_COMMAND}`; export r; \
29376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29377 $(HOST_EXPORTS) \
a90ef4bf
JM
29378 (cd $(HOST_SUBDIR)/tk && \
29379 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 29380
a90ef4bf
JM
29381@endif tk
29382
29383.PHONY: install-strip-tk maybe-install-strip-tk
29384maybe-install-strip-tk:
29385@if tk
29386maybe-install-strip-tk: install-strip-tk
29387
29388install-strip-tk: installdirs
29389 @: $(MAKE); $(unstage)
c52c6897
PB
29390 @r=`${PWD_COMMAND}`; export r; \
29391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29392 $(HOST_EXPORTS) \
a90ef4bf
JM
29393 (cd $(HOST_SUBDIR)/tk && \
29394 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29395
a90ef4bf 29396@endif tk
9b980aa1 29397
56a8fe78 29398# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29399
a90ef4bf
JM
29400.PHONY: maybe-info-tk info-tk
29401maybe-info-tk:
29402@if tk
29403maybe-info-tk: info-tk
4fa63067 29404
a90ef4bf
JM
29405info-tk: \
29406 configure-tk
29407 @: $(MAKE); $(unstage)
29408 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29409 r=`${PWD_COMMAND}`; export r; \
29410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29411 $(HOST_EXPORTS) \
b813574b 29412 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29414 done; \
22121df0 29415 echo "Doing info in tk"; \
a90ef4bf 29416 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
29417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29419 "RANLIB=$${RANLIB}" \
0c24b341 29420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29421 info) \
29422 || exit 1
29423
a90ef4bf 29424@endif tk
6d389afc 29425
a90ef4bf
JM
29426.PHONY: maybe-dvi-tk dvi-tk
29427maybe-dvi-tk:
29428@if tk
29429maybe-dvi-tk: dvi-tk
6d389afc 29430
a90ef4bf
JM
29431dvi-tk: \
29432 configure-tk
29433 @: $(MAKE); $(unstage)
29434 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
29435 r=`${PWD_COMMAND}`; export r; \
29436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29437 $(HOST_EXPORTS) \
29438 for flag in $(EXTRA_HOST_FLAGS) ; do \
29439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29440 done; \
22121df0 29441 echo "Doing dvi in tk"; \
a90ef4bf 29442 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29445 "RANLIB=$${RANLIB}" \
0c24b341 29446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29447 dvi) \
2a4cbe27
NN
29448 || exit 1
29449
a90ef4bf 29450@endif tk
2a4cbe27 29451
a90ef4bf
JM
29452.PHONY: maybe-pdf-tk pdf-tk
29453maybe-pdf-tk:
29454@if tk
29455maybe-pdf-tk: pdf-tk
56a8fe78 29456
a90ef4bf
JM
29457pdf-tk: \
29458 configure-tk
29459 @: $(MAKE); $(unstage)
29460 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
29461 r=`${PWD_COMMAND}`; export r; \
29462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29463 $(HOST_EXPORTS) \
29464 for flag in $(EXTRA_HOST_FLAGS) ; do \
29465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29466 done; \
22121df0 29467 echo "Doing pdf in tk"; \
a90ef4bf 29468 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
29469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29471 "RANLIB=$${RANLIB}" \
0c24b341 29472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29473 pdf) \
29474 || exit 1
29475
a90ef4bf 29476@endif tk
56a8fe78 29477
a90ef4bf
JM
29478.PHONY: maybe-html-tk html-tk
29479maybe-html-tk:
29480@if tk
29481maybe-html-tk: html-tk
2a4cbe27 29482
a90ef4bf
JM
29483html-tk: \
29484 configure-tk
29485 @: $(MAKE); $(unstage)
29486 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29487 r=`${PWD_COMMAND}`; export r; \
29488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29489 $(HOST_EXPORTS) \
b813574b 29490 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29492 done; \
22121df0 29493 echo "Doing html in tk"; \
a90ef4bf 29494 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29497 "RANLIB=$${RANLIB}" \
0c24b341 29498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29499 html) \
2a4cbe27
NN
29500 || exit 1
29501
a90ef4bf 29502@endif tk
2a4cbe27 29503
a90ef4bf
JM
29504.PHONY: maybe-TAGS-tk TAGS-tk
29505maybe-TAGS-tk:
29506@if tk
29507maybe-TAGS-tk: TAGS-tk
2a4cbe27 29508
a90ef4bf
JM
29509TAGS-tk: \
29510 configure-tk
29511 @: $(MAKE); $(unstage)
29512 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29513 r=`${PWD_COMMAND}`; export r; \
29514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29515 $(HOST_EXPORTS) \
b813574b 29516 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29518 done; \
22121df0 29519 echo "Doing TAGS in tk"; \
a90ef4bf 29520 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29523 "RANLIB=$${RANLIB}" \
0c24b341 29524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29525 TAGS) \
2a4cbe27
NN
29526 || exit 1
29527
a90ef4bf 29528@endif tk
2a4cbe27 29529
a90ef4bf
JM
29530.PHONY: maybe-install-info-tk install-info-tk
29531maybe-install-info-tk:
29532@if tk
29533maybe-install-info-tk: install-info-tk
2a4cbe27 29534
a90ef4bf
JM
29535install-info-tk: \
29536 configure-tk \
29537 info-tk
29538 @: $(MAKE); $(unstage)
29539 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29540 r=`${PWD_COMMAND}`; export r; \
29541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29542 $(HOST_EXPORTS) \
b813574b 29543 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29545 done; \
22121df0 29546 echo "Doing install-info in tk"; \
a90ef4bf 29547 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29550 "RANLIB=$${RANLIB}" \
0c24b341 29551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29552 install-info) \
2a4cbe27
NN
29553 || exit 1
29554
a90ef4bf 29555@endif tk
2a4cbe27 29556
a90ef4bf
JM
29557.PHONY: maybe-install-pdf-tk install-pdf-tk
29558maybe-install-pdf-tk:
29559@if tk
29560maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 29561
a90ef4bf
JM
29562install-pdf-tk: \
29563 configure-tk \
29564 pdf-tk
29565 @: $(MAKE); $(unstage)
29566 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
29567 r=`${PWD_COMMAND}`; export r; \
29568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29569 $(HOST_EXPORTS) \
29570 for flag in $(EXTRA_HOST_FLAGS) ; do \
29571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29572 done; \
22121df0 29573 echo "Doing install-pdf in tk"; \
a90ef4bf 29574 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
29575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29577 "RANLIB=$${RANLIB}" \
0c24b341 29578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29579 install-pdf) \
29580 || exit 1
29581
a90ef4bf 29582@endif tk
a3ca38d2 29583
a90ef4bf
JM
29584.PHONY: maybe-install-html-tk install-html-tk
29585maybe-install-html-tk:
29586@if tk
29587maybe-install-html-tk: install-html-tk
108a6f8e 29588
a90ef4bf
JM
29589install-html-tk: \
29590 configure-tk \
29591 html-tk
29592 @: $(MAKE); $(unstage)
29593 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
29594 r=`${PWD_COMMAND}`; export r; \
29595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29596 $(HOST_EXPORTS) \
29597 for flag in $(EXTRA_HOST_FLAGS) ; do \
29598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29599 done; \
22121df0 29600 echo "Doing install-html in tk"; \
a90ef4bf 29601 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
29602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29604 "RANLIB=$${RANLIB}" \
0c24b341 29605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29606 install-html) \
29607 || exit 1
29608
a90ef4bf 29609@endif tk
108a6f8e 29610
a90ef4bf
JM
29611.PHONY: maybe-installcheck-tk installcheck-tk
29612maybe-installcheck-tk:
29613@if tk
29614maybe-installcheck-tk: installcheck-tk
2a4cbe27 29615
a90ef4bf
JM
29616installcheck-tk: \
29617 configure-tk
29618 @: $(MAKE); $(unstage)
29619 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29620 r=`${PWD_COMMAND}`; export r; \
29621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29622 $(HOST_EXPORTS) \
b813574b 29623 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29625 done; \
22121df0 29626 echo "Doing installcheck in tk"; \
a90ef4bf 29627 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29630 "RANLIB=$${RANLIB}" \
0c24b341 29631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29632 installcheck) \
2a4cbe27
NN
29633 || exit 1
29634
a90ef4bf 29635@endif tk
2a4cbe27 29636
a90ef4bf
JM
29637.PHONY: maybe-mostlyclean-tk mostlyclean-tk
29638maybe-mostlyclean-tk:
29639@if tk
29640maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 29641
a90ef4bf
JM
29642mostlyclean-tk:
29643 @: $(MAKE); $(unstage)
29644 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29645 r=`${PWD_COMMAND}`; export r; \
29646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29647 $(HOST_EXPORTS) \
b813574b 29648 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29650 done; \
22121df0 29651 echo "Doing mostlyclean in tk"; \
a90ef4bf 29652 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29655 "RANLIB=$${RANLIB}" \
0c24b341 29656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29657 mostlyclean) \
2a4cbe27
NN
29658 || exit 1
29659
a90ef4bf 29660@endif tk
2a4cbe27 29661
a90ef4bf
JM
29662.PHONY: maybe-clean-tk clean-tk
29663maybe-clean-tk:
29664@if tk
29665maybe-clean-tk: clean-tk
2a4cbe27 29666
a90ef4bf
JM
29667clean-tk:
29668 @: $(MAKE); $(unstage)
29669 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29670 r=`${PWD_COMMAND}`; export r; \
29671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29672 $(HOST_EXPORTS) \
b813574b 29673 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29675 done; \
22121df0 29676 echo "Doing clean in tk"; \
a90ef4bf 29677 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29680 "RANLIB=$${RANLIB}" \
0c24b341 29681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29682 clean) \
2a4cbe27
NN
29683 || exit 1
29684
a90ef4bf 29685@endif tk
2a4cbe27 29686
a90ef4bf
JM
29687.PHONY: maybe-distclean-tk distclean-tk
29688maybe-distclean-tk:
29689@if tk
29690maybe-distclean-tk: distclean-tk
2a4cbe27 29691
a90ef4bf
JM
29692distclean-tk:
29693 @: $(MAKE); $(unstage)
29694 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29695 r=`${PWD_COMMAND}`; export r; \
29696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29697 $(HOST_EXPORTS) \
b813574b 29698 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29700 done; \
22121df0 29701 echo "Doing distclean in tk"; \
a90ef4bf 29702 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29705 "RANLIB=$${RANLIB}" \
0c24b341 29706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29707 distclean) \
2a4cbe27
NN
29708 || exit 1
29709
a90ef4bf 29710@endif tk
2a4cbe27 29711
a90ef4bf
JM
29712.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
29713maybe-maintainer-clean-tk:
29714@if tk
29715maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 29716
a90ef4bf
JM
29717maintainer-clean-tk:
29718 @: $(MAKE); $(unstage)
29719 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29720 r=`${PWD_COMMAND}`; export r; \
29721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29722 $(HOST_EXPORTS) \
b813574b 29723 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29725 done; \
22121df0 29726 echo "Doing maintainer-clean in tk"; \
a90ef4bf 29727 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29730 "RANLIB=$${RANLIB}" \
0c24b341 29731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29732 maintainer-clean) \
2a4cbe27
NN
29733 || exit 1
29734
a90ef4bf 29735@endif tk
2a4cbe27 29736
2a4cbe27 29737
a7254363 29738
a90ef4bf
JM
29739.PHONY: configure-libtermcap maybe-configure-libtermcap
29740maybe-configure-libtermcap:
dc448a7b 29741@if gcc-bootstrap
a90ef4bf 29742configure-libtermcap: stage_current
dc448a7b 29743@endif gcc-bootstrap
a90ef4bf
JM
29744@if libtermcap
29745maybe-configure-libtermcap: configure-libtermcap
29746configure-libtermcap:
dc448a7b
TT
29747 @: $(MAKE); $(unstage)
29748 @r=`${PWD_COMMAND}`; export r; \
29749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29750 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 29751 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 29752 $(HOST_EXPORTS) \
a90ef4bf
JM
29753 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
29754 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
29755 case $(srcdir) in \
29756 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29757 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
29758 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29759 esac; \
1b6c0831
L
29760 module_srcdir=libtermcap; \
29761 $(SHELL) \
29762 $$s/$$module_srcdir/configure \
29763 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 29764 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29765 --target=${target_alias} \
dc448a7b 29766 || exit 1
a90ef4bf 29767@endif libtermcap
dc448a7b
TT
29768
29769
29770
29771
29772
a90ef4bf
JM
29773.PHONY: all-libtermcap maybe-all-libtermcap
29774maybe-all-libtermcap:
dc448a7b 29775@if gcc-bootstrap
a90ef4bf 29776all-libtermcap: stage_current
dc448a7b 29777@endif gcc-bootstrap
a90ef4bf
JM
29778@if libtermcap
29779TARGET-libtermcap=all
29780maybe-all-libtermcap: all-libtermcap
29781all-libtermcap: configure-libtermcap
dc448a7b
TT
29782 @: $(MAKE); $(unstage)
29783 @r=`${PWD_COMMAND}`; export r; \
29784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29785 $(HOST_EXPORTS) \
a90ef4bf 29786 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 29787 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29788 $(TARGET-libtermcap))
29789@endif libtermcap
dc448a7b
TT
29790
29791
29792
29793
a90ef4bf
JM
29794.PHONY: check-libtermcap maybe-check-libtermcap
29795maybe-check-libtermcap:
29796@if libtermcap
29797maybe-check-libtermcap: check-libtermcap
dc448a7b 29798
a90ef4bf
JM
29799check-libtermcap:
29800
29801@endif libtermcap
29802
29803.PHONY: install-libtermcap maybe-install-libtermcap
29804maybe-install-libtermcap:
29805@if libtermcap
29806maybe-install-libtermcap: install-libtermcap
29807
29808install-libtermcap: installdirs
dc448a7b
TT
29809 @: $(MAKE); $(unstage)
29810 @r=`${PWD_COMMAND}`; export r; \
29811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29812 $(HOST_EXPORTS) \
a90ef4bf
JM
29813 (cd $(HOST_SUBDIR)/libtermcap && \
29814 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 29815
a90ef4bf 29816@endif libtermcap
dc448a7b 29817
a90ef4bf
JM
29818.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
29819maybe-install-strip-libtermcap:
29820@if libtermcap
29821maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 29822
a90ef4bf
JM
29823install-strip-libtermcap: installdirs
29824 @: $(MAKE); $(unstage)
29825 @r=`${PWD_COMMAND}`; export r; \
29826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29827 $(HOST_EXPORTS) \
29828 (cd $(HOST_SUBDIR)/libtermcap && \
29829 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 29830
a90ef4bf 29831@endif libtermcap
9b980aa1 29832
dc448a7b
TT
29833# Other targets (info, dvi, pdf, etc.)
29834
a90ef4bf
JM
29835.PHONY: maybe-info-libtermcap info-libtermcap
29836maybe-info-libtermcap:
29837@if libtermcap
29838maybe-info-libtermcap: info-libtermcap
dc448a7b 29839
a90ef4bf
JM
29840info-libtermcap: \
29841 configure-libtermcap
dc448a7b 29842 @: $(MAKE); $(unstage)
a90ef4bf 29843 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29844 r=`${PWD_COMMAND}`; export r; \
29845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29846 $(HOST_EXPORTS) \
29847 for flag in $(EXTRA_HOST_FLAGS) ; do \
29848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29849 done; \
22121df0 29850 echo "Doing info in libtermcap"; \
a90ef4bf 29851 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29854 "RANLIB=$${RANLIB}" \
29855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29856 info) \
29857 || exit 1
29858
a90ef4bf 29859@endif libtermcap
dc448a7b 29860
a90ef4bf
JM
29861.PHONY: maybe-dvi-libtermcap dvi-libtermcap
29862maybe-dvi-libtermcap:
29863@if libtermcap
29864maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 29865
a90ef4bf
JM
29866dvi-libtermcap: \
29867 configure-libtermcap
dc448a7b 29868 @: $(MAKE); $(unstage)
a90ef4bf 29869 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29870 r=`${PWD_COMMAND}`; export r; \
29871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29872 $(HOST_EXPORTS) \
29873 for flag in $(EXTRA_HOST_FLAGS) ; do \
29874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29875 done; \
22121df0 29876 echo "Doing dvi in libtermcap"; \
a90ef4bf 29877 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29880 "RANLIB=$${RANLIB}" \
29881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29882 dvi) \
29883 || exit 1
29884
a90ef4bf 29885@endif libtermcap
dc448a7b 29886
a90ef4bf
JM
29887.PHONY: maybe-pdf-libtermcap pdf-libtermcap
29888maybe-pdf-libtermcap:
29889@if libtermcap
29890maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 29891
a90ef4bf
JM
29892pdf-libtermcap: \
29893 configure-libtermcap
dc448a7b 29894 @: $(MAKE); $(unstage)
a90ef4bf 29895 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29896 r=`${PWD_COMMAND}`; export r; \
29897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29898 $(HOST_EXPORTS) \
29899 for flag in $(EXTRA_HOST_FLAGS) ; do \
29900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29901 done; \
22121df0 29902 echo "Doing pdf in libtermcap"; \
a90ef4bf 29903 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29906 "RANLIB=$${RANLIB}" \
29907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29908 pdf) \
29909 || exit 1
29910
a90ef4bf 29911@endif libtermcap
dc448a7b 29912
a90ef4bf
JM
29913.PHONY: maybe-html-libtermcap html-libtermcap
29914maybe-html-libtermcap:
29915@if libtermcap
29916maybe-html-libtermcap: html-libtermcap
dc448a7b 29917
a90ef4bf
JM
29918html-libtermcap: \
29919 configure-libtermcap
dc448a7b 29920 @: $(MAKE); $(unstage)
a90ef4bf 29921 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29922 r=`${PWD_COMMAND}`; export r; \
29923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29924 $(HOST_EXPORTS) \
29925 for flag in $(EXTRA_HOST_FLAGS) ; do \
29926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29927 done; \
22121df0 29928 echo "Doing html in libtermcap"; \
a90ef4bf 29929 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29932 "RANLIB=$${RANLIB}" \
29933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29934 html) \
29935 || exit 1
29936
a90ef4bf 29937@endif libtermcap
dc448a7b 29938
a90ef4bf
JM
29939.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
29940maybe-TAGS-libtermcap:
29941@if libtermcap
29942maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 29943
a90ef4bf
JM
29944TAGS-libtermcap: \
29945 configure-libtermcap
dc448a7b 29946 @: $(MAKE); $(unstage)
a90ef4bf 29947 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29948 r=`${PWD_COMMAND}`; export r; \
29949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29950 $(HOST_EXPORTS) \
29951 for flag in $(EXTRA_HOST_FLAGS) ; do \
29952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29953 done; \
22121df0 29954 echo "Doing TAGS in libtermcap"; \
a90ef4bf 29955 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29958 "RANLIB=$${RANLIB}" \
29959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29960 TAGS) \
29961 || exit 1
29962
a90ef4bf 29963@endif libtermcap
dc448a7b 29964
a90ef4bf
JM
29965.PHONY: maybe-install-info-libtermcap install-info-libtermcap
29966maybe-install-info-libtermcap:
29967@if libtermcap
29968maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 29969
a90ef4bf
JM
29970install-info-libtermcap: \
29971 configure-libtermcap \
29972 info-libtermcap
dc448a7b 29973 @: $(MAKE); $(unstage)
a90ef4bf 29974 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29975 r=`${PWD_COMMAND}`; export r; \
29976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29977 $(HOST_EXPORTS) \
29978 for flag in $(EXTRA_HOST_FLAGS) ; do \
29979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29980 done; \
22121df0 29981 echo "Doing install-info in libtermcap"; \
a90ef4bf 29982 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29985 "RANLIB=$${RANLIB}" \
29986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29987 install-info) \
dc448a7b
TT
29988 || exit 1
29989
a90ef4bf 29990@endif libtermcap
dc448a7b 29991
a90ef4bf
JM
29992.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
29993maybe-install-pdf-libtermcap:
29994@if libtermcap
29995maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 29996
a90ef4bf
JM
29997install-pdf-libtermcap: \
29998 configure-libtermcap \
29999 pdf-libtermcap
dc448a7b 30000 @: $(MAKE); $(unstage)
a90ef4bf 30001 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30002 r=`${PWD_COMMAND}`; export r; \
30003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30004 $(HOST_EXPORTS) \
30005 for flag in $(EXTRA_HOST_FLAGS) ; do \
30006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30007 done; \
22121df0 30008 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 30009 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30012 "RANLIB=$${RANLIB}" \
30013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30014 install-pdf) \
dc448a7b
TT
30015 || exit 1
30016
a90ef4bf 30017@endif libtermcap
dc448a7b 30018
a90ef4bf
JM
30019.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30020maybe-install-html-libtermcap:
30021@if libtermcap
30022maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 30023
a90ef4bf
JM
30024install-html-libtermcap: \
30025 configure-libtermcap \
30026 html-libtermcap
dc448a7b 30027 @: $(MAKE); $(unstage)
a90ef4bf 30028 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30029 r=`${PWD_COMMAND}`; export r; \
30030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30031 $(HOST_EXPORTS) \
30032 for flag in $(EXTRA_HOST_FLAGS) ; do \
30033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30034 done; \
22121df0 30035 echo "Doing install-html in libtermcap"; \
a90ef4bf 30036 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30039 "RANLIB=$${RANLIB}" \
30040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30041 install-html) \
dc448a7b
TT
30042 || exit 1
30043
a90ef4bf 30044@endif libtermcap
dc448a7b 30045
a90ef4bf
JM
30046.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30047maybe-installcheck-libtermcap:
30048@if libtermcap
30049maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 30050
a90ef4bf
JM
30051installcheck-libtermcap: \
30052 configure-libtermcap
dc448a7b 30053 @: $(MAKE); $(unstage)
a90ef4bf 30054 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30055 r=`${PWD_COMMAND}`; export r; \
30056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30057 $(HOST_EXPORTS) \
30058 for flag in $(EXTRA_HOST_FLAGS) ; do \
30059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30060 done; \
22121df0 30061 echo "Doing installcheck in libtermcap"; \
a90ef4bf 30062 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30065 "RANLIB=$${RANLIB}" \
30066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30067 installcheck) \
dc448a7b
TT
30068 || exit 1
30069
a90ef4bf 30070@endif libtermcap
dc448a7b 30071
a90ef4bf
JM
30072.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30073maybe-mostlyclean-libtermcap:
30074@if libtermcap
30075maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 30076
a90ef4bf
JM
30077# libtermcap doesn't support mostlyclean.
30078mostlyclean-libtermcap:
dc448a7b 30079
a90ef4bf 30080@endif libtermcap
dc448a7b 30081
a90ef4bf
JM
30082.PHONY: maybe-clean-libtermcap clean-libtermcap
30083maybe-clean-libtermcap:
30084@if libtermcap
30085maybe-clean-libtermcap: clean-libtermcap
dc448a7b 30086
a90ef4bf
JM
30087# libtermcap doesn't support clean.
30088clean-libtermcap:
dc448a7b 30089
a90ef4bf
JM
30090@endif libtermcap
30091
30092.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30093maybe-distclean-libtermcap:
30094@if libtermcap
30095maybe-distclean-libtermcap: distclean-libtermcap
30096
30097# libtermcap doesn't support distclean.
30098distclean-libtermcap:
30099
30100@endif libtermcap
30101
30102.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30103maybe-maintainer-clean-libtermcap:
30104@if libtermcap
30105maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
30106
30107# libtermcap doesn't support maintainer-clean.
30108maintainer-clean-libtermcap:
30109
30110@endif libtermcap
30111
30112
30113
30114.PHONY: configure-utils maybe-configure-utils
30115maybe-configure-utils:
30116@if gcc-bootstrap
30117configure-utils: stage_current
30118@endif gcc-bootstrap
30119@if utils
30120maybe-configure-utils: configure-utils
30121configure-utils:
30122 @: $(MAKE); $(unstage)
c52c6897 30123 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30125 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 30126 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 30127 $(HOST_EXPORTS) \
a90ef4bf
JM
30128 echo Configuring in $(HOST_SUBDIR)/utils; \
30129 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 30130 case $(srcdir) in \
b00612cc 30131 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30132 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 30133 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30134 esac; \
1b6c0831
L
30135 module_srcdir=utils; \
30136 $(SHELL) \
30137 $$s/$$module_srcdir/configure \
30138 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30139 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30140 --target=${target_alias} \
2a4cbe27 30141 || exit 1
a90ef4bf 30142@endif utils
2a4cbe27 30143
a7254363
PB
30144
30145
d545f33b
PB
30146
30147
a90ef4bf
JM
30148.PHONY: all-utils maybe-all-utils
30149maybe-all-utils:
4f0ef2d8 30150@if gcc-bootstrap
a90ef4bf 30151all-utils: stage_current
4f0ef2d8 30152@endif gcc-bootstrap
a90ef4bf
JM
30153@if utils
30154TARGET-utils=all
30155maybe-all-utils: all-utils
30156all-utils: configure-utils
0aed8855 30157 @: $(MAKE); $(unstage)
4fa63067
NN
30158 @r=`${PWD_COMMAND}`; export r; \
30159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30160 $(HOST_EXPORTS) \
a90ef4bf 30161 (cd $(HOST_SUBDIR)/utils && \
b3676d82 30162 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30163 $(TARGET-utils))
30164@endif utils
2a4cbe27 30165
a7254363 30166
d545f33b
PB
30167
30168
a90ef4bf
JM
30169.PHONY: check-utils maybe-check-utils
30170maybe-check-utils:
30171@if utils
30172maybe-check-utils: check-utils
2a4cbe27 30173
a90ef4bf 30174check-utils:
2a4cbe27 30175
a90ef4bf 30176@endif utils
2a4cbe27 30177
a90ef4bf
JM
30178.PHONY: install-utils maybe-install-utils
30179maybe-install-utils:
30180@if utils
30181maybe-install-utils: install-utils
2a4cbe27 30182
a90ef4bf 30183install-utils: installdirs
0aed8855 30184 @: $(MAKE); $(unstage)
4fa63067 30185 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30187 $(HOST_EXPORTS) \
a90ef4bf 30188 (cd $(HOST_SUBDIR)/utils && \
2da12f12 30189 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 30190
a90ef4bf 30191@endif utils
2a4cbe27 30192
a90ef4bf
JM
30193.PHONY: install-strip-utils maybe-install-strip-utils
30194maybe-install-strip-utils:
30195@if utils
30196maybe-install-strip-utils: install-strip-utils
9b980aa1 30197
a90ef4bf 30198install-strip-utils: installdirs
9b980aa1
RW
30199 @: $(MAKE); $(unstage)
30200 @r=`${PWD_COMMAND}`; export r; \
30201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30202 $(HOST_EXPORTS) \
a90ef4bf 30203 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
30204 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30205
a90ef4bf 30206@endif utils
9b980aa1 30207
56a8fe78 30208# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30209
a90ef4bf
JM
30210.PHONY: maybe-info-utils info-utils
30211maybe-info-utils:
30212@if utils
30213maybe-info-utils: info-utils
4fa63067 30214
a90ef4bf
JM
30215info-utils: \
30216 configure-utils
0aed8855 30217 @: $(MAKE); $(unstage)
a90ef4bf 30218 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30219 r=`${PWD_COMMAND}`; export r; \
30220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30221 $(HOST_EXPORTS) \
b813574b 30222 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30224 done; \
22121df0 30225 echo "Doing info in utils"; \
a90ef4bf 30226 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30229 "RANLIB=$${RANLIB}" \
0c24b341 30230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30231 info) \
2a4cbe27
NN
30232 || exit 1
30233
a90ef4bf 30234@endif utils
2a4cbe27 30235
a90ef4bf
JM
30236.PHONY: maybe-dvi-utils dvi-utils
30237maybe-dvi-utils:
30238@if utils
30239maybe-dvi-utils: dvi-utils
2a4cbe27 30240
a90ef4bf
JM
30241dvi-utils: \
30242 configure-utils
0aed8855 30243 @: $(MAKE); $(unstage)
a90ef4bf 30244 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30245 r=`${PWD_COMMAND}`; export r; \
30246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30247 $(HOST_EXPORTS) \
b813574b 30248 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30250 done; \
22121df0 30251 echo "Doing dvi in utils"; \
a90ef4bf 30252 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30255 "RANLIB=$${RANLIB}" \
0c24b341 30256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30257 dvi) \
2a4cbe27
NN
30258 || exit 1
30259
a90ef4bf 30260@endif utils
2a4cbe27 30261
a90ef4bf
JM
30262.PHONY: maybe-pdf-utils pdf-utils
30263maybe-pdf-utils:
30264@if utils
30265maybe-pdf-utils: pdf-utils
56a8fe78 30266
a90ef4bf
JM
30267pdf-utils: \
30268 configure-utils
56a8fe78 30269 @: $(MAKE); $(unstage)
a90ef4bf 30270 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
30271 r=`${PWD_COMMAND}`; export r; \
30272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30273 $(HOST_EXPORTS) \
30274 for flag in $(EXTRA_HOST_FLAGS) ; do \
30275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30276 done; \
22121df0 30277 echo "Doing pdf in utils"; \
a90ef4bf 30278 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
30279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30281 "RANLIB=$${RANLIB}" \
0c24b341 30282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30283 pdf) \
30284 || exit 1
30285
a90ef4bf 30286@endif utils
56a8fe78 30287
a90ef4bf
JM
30288.PHONY: maybe-html-utils html-utils
30289maybe-html-utils:
30290@if utils
30291maybe-html-utils: html-utils
6d389afc 30292
a90ef4bf
JM
30293html-utils: \
30294 configure-utils
0aed8855 30295 @: $(MAKE); $(unstage)
a90ef4bf 30296 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
30297 r=`${PWD_COMMAND}`; export r; \
30298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30299 $(HOST_EXPORTS) \
30300 for flag in $(EXTRA_HOST_FLAGS) ; do \
30301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30302 done; \
22121df0 30303 echo "Doing html in utils"; \
a90ef4bf 30304 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
30305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30307 "RANLIB=$${RANLIB}" \
0c24b341 30308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30309 html) \
30310 || exit 1
30311
a90ef4bf 30312@endif utils
6d389afc 30313
a90ef4bf
JM
30314.PHONY: maybe-TAGS-utils TAGS-utils
30315maybe-TAGS-utils:
30316@if utils
30317maybe-TAGS-utils: TAGS-utils
2a4cbe27 30318
a90ef4bf
JM
30319TAGS-utils: \
30320 configure-utils
0aed8855 30321 @: $(MAKE); $(unstage)
a90ef4bf 30322 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30323 r=`${PWD_COMMAND}`; export r; \
30324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30325 $(HOST_EXPORTS) \
b813574b 30326 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30328 done; \
22121df0 30329 echo "Doing TAGS in utils"; \
a90ef4bf 30330 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30333 "RANLIB=$${RANLIB}" \
0c24b341 30334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30335 TAGS) \
2a4cbe27
NN
30336 || exit 1
30337
a90ef4bf 30338@endif utils
2a4cbe27 30339
a90ef4bf
JM
30340.PHONY: maybe-install-info-utils install-info-utils
30341maybe-install-info-utils:
30342@if utils
30343maybe-install-info-utils: install-info-utils
2a4cbe27 30344
a90ef4bf
JM
30345install-info-utils: \
30346 configure-utils \
30347 info-utils
0aed8855 30348 @: $(MAKE); $(unstage)
a90ef4bf 30349 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30350 r=`${PWD_COMMAND}`; export r; \
30351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30352 $(HOST_EXPORTS) \
b813574b 30353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30355 done; \
22121df0 30356 echo "Doing install-info in utils"; \
a90ef4bf 30357 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30360 "RANLIB=$${RANLIB}" \
0c24b341 30361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30362 install-info) \
2a4cbe27
NN
30363 || exit 1
30364
a90ef4bf 30365@endif utils
2a4cbe27 30366
a90ef4bf
JM
30367.PHONY: maybe-install-pdf-utils install-pdf-utils
30368maybe-install-pdf-utils:
30369@if utils
30370maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 30371
a90ef4bf
JM
30372install-pdf-utils: \
30373 configure-utils \
30374 pdf-utils
a3ca38d2 30375 @: $(MAKE); $(unstage)
a90ef4bf 30376 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
30377 r=`${PWD_COMMAND}`; export r; \
30378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30379 $(HOST_EXPORTS) \
30380 for flag in $(EXTRA_HOST_FLAGS) ; do \
30381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30382 done; \
22121df0 30383 echo "Doing install-pdf in utils"; \
a90ef4bf 30384 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
30385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30387 "RANLIB=$${RANLIB}" \
0c24b341 30388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30389 install-pdf) \
30390 || exit 1
30391
a90ef4bf 30392@endif utils
a3ca38d2 30393
a90ef4bf
JM
30394.PHONY: maybe-install-html-utils install-html-utils
30395maybe-install-html-utils:
30396@if utils
30397maybe-install-html-utils: install-html-utils
108a6f8e 30398
a90ef4bf
JM
30399install-html-utils: \
30400 configure-utils \
30401 html-utils
108a6f8e 30402 @: $(MAKE); $(unstage)
a90ef4bf 30403 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
30404 r=`${PWD_COMMAND}`; export r; \
30405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30406 $(HOST_EXPORTS) \
30407 for flag in $(EXTRA_HOST_FLAGS) ; do \
30408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30409 done; \
22121df0 30410 echo "Doing install-html in utils"; \
a90ef4bf 30411 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
30412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30414 "RANLIB=$${RANLIB}" \
0c24b341 30415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30416 install-html) \
30417 || exit 1
30418
a90ef4bf 30419@endif utils
108a6f8e 30420
a90ef4bf
JM
30421.PHONY: maybe-installcheck-utils installcheck-utils
30422maybe-installcheck-utils:
30423@if utils
30424maybe-installcheck-utils: installcheck-utils
2a4cbe27 30425
a90ef4bf
JM
30426installcheck-utils: \
30427 configure-utils
0aed8855 30428 @: $(MAKE); $(unstage)
a90ef4bf 30429 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30430 r=`${PWD_COMMAND}`; export r; \
30431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30432 $(HOST_EXPORTS) \
b813574b 30433 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30435 done; \
22121df0 30436 echo "Doing installcheck in utils"; \
a90ef4bf 30437 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30440 "RANLIB=$${RANLIB}" \
0c24b341 30441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30442 installcheck) \
2a4cbe27
NN
30443 || exit 1
30444
a90ef4bf 30445@endif utils
2a4cbe27 30446
a90ef4bf
JM
30447.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30448maybe-mostlyclean-utils:
30449@if utils
30450maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 30451
a90ef4bf 30452mostlyclean-utils:
0aed8855 30453 @: $(MAKE); $(unstage)
a90ef4bf 30454 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30455 r=`${PWD_COMMAND}`; export r; \
30456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30457 $(HOST_EXPORTS) \
b813574b 30458 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30460 done; \
22121df0 30461 echo "Doing mostlyclean in utils"; \
a90ef4bf 30462 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30465 "RANLIB=$${RANLIB}" \
0c24b341 30466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30467 mostlyclean) \
2a4cbe27
NN
30468 || exit 1
30469
a90ef4bf 30470@endif utils
2a4cbe27 30471
a90ef4bf
JM
30472.PHONY: maybe-clean-utils clean-utils
30473maybe-clean-utils:
30474@if utils
30475maybe-clean-utils: clean-utils
2a4cbe27 30476
a90ef4bf 30477clean-utils:
0aed8855 30478 @: $(MAKE); $(unstage)
a90ef4bf 30479 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30480 r=`${PWD_COMMAND}`; export r; \
30481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30482 $(HOST_EXPORTS) \
b813574b 30483 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30485 done; \
22121df0 30486 echo "Doing clean in utils"; \
a90ef4bf 30487 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30490 "RANLIB=$${RANLIB}" \
0c24b341 30491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30492 clean) \
2a4cbe27
NN
30493 || exit 1
30494
a90ef4bf 30495@endif utils
2a4cbe27 30496
a90ef4bf
JM
30497.PHONY: maybe-distclean-utils distclean-utils
30498maybe-distclean-utils:
30499@if utils
30500maybe-distclean-utils: distclean-utils
2a4cbe27 30501
a90ef4bf 30502distclean-utils:
0aed8855 30503 @: $(MAKE); $(unstage)
a90ef4bf 30504 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30505 r=`${PWD_COMMAND}`; export r; \
30506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30507 $(HOST_EXPORTS) \
b813574b 30508 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30510 done; \
22121df0 30511 echo "Doing distclean in utils"; \
a90ef4bf 30512 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30515 "RANLIB=$${RANLIB}" \
0c24b341 30516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30517 distclean) \
2a4cbe27
NN
30518 || exit 1
30519
a90ef4bf 30520@endif utils
2a4cbe27 30521
a90ef4bf
JM
30522.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30523maybe-maintainer-clean-utils:
30524@if utils
30525maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 30526
a90ef4bf 30527maintainer-clean-utils:
0aed8855 30528 @: $(MAKE); $(unstage)
a90ef4bf 30529 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30530 r=`${PWD_COMMAND}`; export r; \
30531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30532 $(HOST_EXPORTS) \
b813574b 30533 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30535 done; \
22121df0 30536 echo "Doing maintainer-clean in utils"; \
a90ef4bf 30537 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30540 "RANLIB=$${RANLIB}" \
0c24b341 30541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30542 maintainer-clean) \
2a4cbe27
NN
30543 || exit 1
30544
a90ef4bf 30545@endif utils
2a4cbe27 30546
2a4cbe27 30547
a7254363 30548
a90ef4bf
JM
30549.PHONY: configure-gnattools maybe-configure-gnattools
30550maybe-configure-gnattools:
4f0ef2d8 30551@if gcc-bootstrap
a90ef4bf 30552configure-gnattools: stage_current
4f0ef2d8 30553@endif gcc-bootstrap
a90ef4bf
JM
30554@if gnattools
30555maybe-configure-gnattools: configure-gnattools
30556configure-gnattools:
0aed8855 30557 @: $(MAKE); $(unstage)
c52c6897 30558 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30560 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 30561 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 30562 $(HOST_EXPORTS) \
a90ef4bf
JM
30563 echo Configuring in $(HOST_SUBDIR)/gnattools; \
30564 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 30565 case $(srcdir) in \
b00612cc 30566 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30567 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 30568 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30569 esac; \
1b6c0831
L
30570 module_srcdir=gnattools; \
30571 $(SHELL) \
30572 $$s/$$module_srcdir/configure \
30573 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30574 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30575 --target=${target_alias} \
2a4cbe27 30576 || exit 1
a90ef4bf 30577@endif gnattools
2a4cbe27 30578
a7254363
PB
30579
30580
d545f33b
PB
30581
30582
a90ef4bf
JM
30583.PHONY: all-gnattools maybe-all-gnattools
30584maybe-all-gnattools:
4f0ef2d8 30585@if gcc-bootstrap
a90ef4bf 30586all-gnattools: stage_current
4f0ef2d8 30587@endif gcc-bootstrap
a90ef4bf
JM
30588@if gnattools
30589TARGET-gnattools=all
30590maybe-all-gnattools: all-gnattools
30591all-gnattools: configure-gnattools
0aed8855 30592 @: $(MAKE); $(unstage)
4fa63067
NN
30593 @r=`${PWD_COMMAND}`; export r; \
30594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30595 $(HOST_EXPORTS) \
a90ef4bf 30596 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 30597 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30598 $(TARGET-gnattools))
30599@endif gnattools
4fa63067 30600
a7254363 30601
d545f33b
PB
30602
30603
a90ef4bf
JM
30604.PHONY: check-gnattools maybe-check-gnattools
30605maybe-check-gnattools:
30606@if gnattools
30607maybe-check-gnattools: check-gnattools
2a4cbe27 30608
a90ef4bf 30609check-gnattools:
0aed8855 30610 @: $(MAKE); $(unstage)
4fa63067
NN
30611 @r=`${PWD_COMMAND}`; export r; \
30612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30613 $(HOST_EXPORTS) \
a90ef4bf 30614 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 30615 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30616
a90ef4bf 30617@endif gnattools
4fa63067 30618
a90ef4bf
JM
30619.PHONY: install-gnattools maybe-install-gnattools
30620maybe-install-gnattools:
30621@if gnattools
30622maybe-install-gnattools: install-gnattools
4fa63067 30623
a90ef4bf 30624install-gnattools: installdirs
0aed8855 30625 @: $(MAKE); $(unstage)
4fa63067
NN
30626 @r=`${PWD_COMMAND}`; export r; \
30627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30628 $(HOST_EXPORTS) \
a90ef4bf 30629 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 30630 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30631
a90ef4bf 30632@endif gnattools
4fa63067 30633
a90ef4bf
JM
30634.PHONY: install-strip-gnattools maybe-install-strip-gnattools
30635maybe-install-strip-gnattools:
30636@if gnattools
30637maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 30638
a90ef4bf 30639install-strip-gnattools: installdirs
9b980aa1
RW
30640 @: $(MAKE); $(unstage)
30641 @r=`${PWD_COMMAND}`; export r; \
30642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30643 $(HOST_EXPORTS) \
a90ef4bf 30644 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
30645 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30646
a90ef4bf 30647@endif gnattools
9b980aa1 30648
56a8fe78 30649# Other targets (info, dvi, pdf, etc.)
4fa63067 30650
a90ef4bf
JM
30651.PHONY: maybe-info-gnattools info-gnattools
30652maybe-info-gnattools:
30653@if gnattools
30654maybe-info-gnattools: info-gnattools
4fa63067 30655
a90ef4bf
JM
30656info-gnattools: \
30657 configure-gnattools
0aed8855 30658 @: $(MAKE); $(unstage)
a90ef4bf 30659 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30660 r=`${PWD_COMMAND}`; export r; \
30661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30662 $(HOST_EXPORTS) \
b813574b 30663 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30665 done; \
22121df0 30666 echo "Doing info in gnattools"; \
a90ef4bf 30667 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30670 "RANLIB=$${RANLIB}" \
0c24b341 30671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30672 info) \
2a4cbe27
NN
30673 || exit 1
30674
a90ef4bf 30675@endif gnattools
2a4cbe27 30676
a90ef4bf
JM
30677.PHONY: maybe-dvi-gnattools dvi-gnattools
30678maybe-dvi-gnattools:
30679@if gnattools
30680maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 30681
a90ef4bf
JM
30682dvi-gnattools: \
30683 configure-gnattools
0aed8855 30684 @: $(MAKE); $(unstage)
a90ef4bf 30685 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30686 r=`${PWD_COMMAND}`; export r; \
30687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30688 $(HOST_EXPORTS) \
b813574b 30689 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30691 done; \
22121df0 30692 echo "Doing dvi in gnattools"; \
a90ef4bf 30693 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30696 "RANLIB=$${RANLIB}" \
0c24b341 30697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30698 dvi) \
2a4cbe27
NN
30699 || exit 1
30700
a90ef4bf 30701@endif gnattools
2a4cbe27 30702
a90ef4bf
JM
30703.PHONY: maybe-pdf-gnattools pdf-gnattools
30704maybe-pdf-gnattools:
30705@if gnattools
30706maybe-pdf-gnattools: pdf-gnattools
56a8fe78 30707
a90ef4bf
JM
30708pdf-gnattools: \
30709 configure-gnattools
56a8fe78 30710 @: $(MAKE); $(unstage)
a90ef4bf 30711 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
30712 r=`${PWD_COMMAND}`; export r; \
30713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30714 $(HOST_EXPORTS) \
30715 for flag in $(EXTRA_HOST_FLAGS) ; do \
30716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30717 done; \
22121df0 30718 echo "Doing pdf in gnattools"; \
a90ef4bf 30719 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
30720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30722 "RANLIB=$${RANLIB}" \
0c24b341 30723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30724 pdf) \
30725 || exit 1
30726
a90ef4bf 30727@endif gnattools
56a8fe78 30728
a90ef4bf
JM
30729.PHONY: maybe-html-gnattools html-gnattools
30730maybe-html-gnattools:
30731@if gnattools
30732maybe-html-gnattools: html-gnattools
6d389afc 30733
a90ef4bf
JM
30734html-gnattools: \
30735 configure-gnattools
0aed8855 30736 @: $(MAKE); $(unstage)
a90ef4bf 30737 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
30738 r=`${PWD_COMMAND}`; export r; \
30739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30740 $(HOST_EXPORTS) \
30741 for flag in $(EXTRA_HOST_FLAGS) ; do \
30742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30743 done; \
22121df0 30744 echo "Doing html in gnattools"; \
a90ef4bf 30745 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
30746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30748 "RANLIB=$${RANLIB}" \
0c24b341 30749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30750 html) \
30751 || exit 1
30752
a90ef4bf 30753@endif gnattools
6d389afc 30754
a90ef4bf
JM
30755.PHONY: maybe-TAGS-gnattools TAGS-gnattools
30756maybe-TAGS-gnattools:
30757@if gnattools
30758maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 30759
a90ef4bf
JM
30760TAGS-gnattools: \
30761 configure-gnattools
0aed8855 30762 @: $(MAKE); $(unstage)
a90ef4bf 30763 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30764 r=`${PWD_COMMAND}`; export r; \
30765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30766 $(HOST_EXPORTS) \
b813574b 30767 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30769 done; \
22121df0 30770 echo "Doing TAGS in gnattools"; \
a90ef4bf 30771 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30774 "RANLIB=$${RANLIB}" \
0c24b341 30775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30776 TAGS) \
2a4cbe27
NN
30777 || exit 1
30778
a90ef4bf 30779@endif gnattools
2a4cbe27 30780
a90ef4bf
JM
30781.PHONY: maybe-install-info-gnattools install-info-gnattools
30782maybe-install-info-gnattools:
30783@if gnattools
30784maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 30785
a90ef4bf
JM
30786install-info-gnattools: \
30787 configure-gnattools \
30788 info-gnattools
0aed8855 30789 @: $(MAKE); $(unstage)
a90ef4bf 30790 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30791 r=`${PWD_COMMAND}`; export r; \
30792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30793 $(HOST_EXPORTS) \
b813574b 30794 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30796 done; \
22121df0 30797 echo "Doing install-info in gnattools"; \
a90ef4bf 30798 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30801 "RANLIB=$${RANLIB}" \
0c24b341 30802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30803 install-info) \
2a4cbe27
NN
30804 || exit 1
30805
a90ef4bf 30806@endif gnattools
2a4cbe27 30807
a90ef4bf
JM
30808.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
30809maybe-install-pdf-gnattools:
30810@if gnattools
30811maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 30812
a90ef4bf
JM
30813install-pdf-gnattools: \
30814 configure-gnattools \
30815 pdf-gnattools
a3ca38d2 30816 @: $(MAKE); $(unstage)
a90ef4bf 30817 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
30818 r=`${PWD_COMMAND}`; export r; \
30819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30820 $(HOST_EXPORTS) \
30821 for flag in $(EXTRA_HOST_FLAGS) ; do \
30822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30823 done; \
22121df0 30824 echo "Doing install-pdf in gnattools"; \
a90ef4bf 30825 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
30826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30828 "RANLIB=$${RANLIB}" \
0c24b341 30829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30830 install-pdf) \
30831 || exit 1
30832
a90ef4bf 30833@endif gnattools
a3ca38d2 30834
a90ef4bf
JM
30835.PHONY: maybe-install-html-gnattools install-html-gnattools
30836maybe-install-html-gnattools:
30837@if gnattools
30838maybe-install-html-gnattools: install-html-gnattools
108a6f8e 30839
a90ef4bf
JM
30840install-html-gnattools: \
30841 configure-gnattools \
30842 html-gnattools
108a6f8e 30843 @: $(MAKE); $(unstage)
a90ef4bf 30844 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
30845 r=`${PWD_COMMAND}`; export r; \
30846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30847 $(HOST_EXPORTS) \
30848 for flag in $(EXTRA_HOST_FLAGS) ; do \
30849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30850 done; \
22121df0 30851 echo "Doing install-html in gnattools"; \
a90ef4bf 30852 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
30853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30855 "RANLIB=$${RANLIB}" \
0c24b341 30856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30857 install-html) \
30858 || exit 1
30859
a90ef4bf 30860@endif gnattools
108a6f8e 30861
a90ef4bf
JM
30862.PHONY: maybe-installcheck-gnattools installcheck-gnattools
30863maybe-installcheck-gnattools:
30864@if gnattools
30865maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 30866
a90ef4bf
JM
30867installcheck-gnattools: \
30868 configure-gnattools
0aed8855 30869 @: $(MAKE); $(unstage)
a90ef4bf 30870 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30871 r=`${PWD_COMMAND}`; export r; \
30872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30873 $(HOST_EXPORTS) \
b813574b 30874 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30876 done; \
22121df0 30877 echo "Doing installcheck in gnattools"; \
a90ef4bf 30878 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30881 "RANLIB=$${RANLIB}" \
0c24b341 30882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30883 installcheck) \
2a4cbe27
NN
30884 || exit 1
30885
a90ef4bf 30886@endif gnattools
2a4cbe27 30887
a90ef4bf
JM
30888.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
30889maybe-mostlyclean-gnattools:
30890@if gnattools
30891maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 30892
a90ef4bf 30893mostlyclean-gnattools:
0aed8855 30894 @: $(MAKE); $(unstage)
a90ef4bf 30895 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30896 r=`${PWD_COMMAND}`; export r; \
30897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30898 $(HOST_EXPORTS) \
b813574b 30899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30901 done; \
22121df0 30902 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 30903 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30906 "RANLIB=$${RANLIB}" \
0c24b341 30907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30908 mostlyclean) \
2a4cbe27
NN
30909 || exit 1
30910
a90ef4bf 30911@endif gnattools
2a4cbe27 30912
a90ef4bf
JM
30913.PHONY: maybe-clean-gnattools clean-gnattools
30914maybe-clean-gnattools:
30915@if gnattools
30916maybe-clean-gnattools: clean-gnattools
2a4cbe27 30917
a90ef4bf 30918clean-gnattools:
0aed8855 30919 @: $(MAKE); $(unstage)
a90ef4bf 30920 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30921 r=`${PWD_COMMAND}`; export r; \
30922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30923 $(HOST_EXPORTS) \
b813574b 30924 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30926 done; \
22121df0 30927 echo "Doing clean in gnattools"; \
a90ef4bf 30928 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30931 "RANLIB=$${RANLIB}" \
0c24b341 30932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30933 clean) \
2a4cbe27
NN
30934 || exit 1
30935
a90ef4bf 30936@endif gnattools
2a4cbe27 30937
a90ef4bf
JM
30938.PHONY: maybe-distclean-gnattools distclean-gnattools
30939maybe-distclean-gnattools:
30940@if gnattools
30941maybe-distclean-gnattools: distclean-gnattools
a2592b1b 30942
a90ef4bf 30943distclean-gnattools:
0aed8855 30944 @: $(MAKE); $(unstage)
a90ef4bf 30945 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
30946 r=`${PWD_COMMAND}`; export r; \
30947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30948 $(HOST_EXPORTS) \
b813574b 30949 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
30950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30951 done; \
22121df0 30952 echo "Doing distclean in gnattools"; \
a90ef4bf 30953 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
30954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30956 "RANLIB=$${RANLIB}" \
0c24b341 30957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30958 distclean) \
a2592b1b
DD
30959 || exit 1
30960
a90ef4bf 30961@endif gnattools
a2592b1b 30962
a90ef4bf
JM
30963.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
30964maybe-maintainer-clean-gnattools:
30965@if gnattools
30966maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 30967
a90ef4bf 30968maintainer-clean-gnattools:
0aed8855 30969 @: $(MAKE); $(unstage)
a90ef4bf 30970 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 30971 r=`${PWD_COMMAND}`; export r; \
b40e3958 30972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30973 $(HOST_EXPORTS) \
b813574b 30974 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30976 done; \
22121df0 30977 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 30978 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
30979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30981 "RANLIB=$${RANLIB}" \
0c24b341 30982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30983 maintainer-clean) \
4fa63067 30984 || exit 1
252b5132 30985
a90ef4bf 30986@endif gnattools
252b5132 30987
252b5132 30988
a7254363 30989
a90ef4bf
JM
30990.PHONY: configure-lto-plugin maybe-configure-lto-plugin
30991maybe-configure-lto-plugin:
4f0ef2d8 30992@if gcc-bootstrap
a90ef4bf 30993configure-lto-plugin: stage_current
4f0ef2d8 30994@endif gcc-bootstrap
a90ef4bf
JM
30995@if lto-plugin
30996maybe-configure-lto-plugin: configure-lto-plugin
30997configure-lto-plugin:
c52c6897 30998 @r=`${PWD_COMMAND}`; export r; \
b813574b 30999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31000 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 31001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 31002 $(HOST_EXPORTS) \
a90ef4bf
JM
31003 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
31004 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 31005 case $(srcdir) in \
b00612cc 31006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31007 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 31008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31009 esac; \
1b6c0831
L
31010 module_srcdir=lto-plugin; \
31011 $(SHELL) \
31012 $$s/$$module_srcdir/configure \
31013 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31014 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31015 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 31016 || exit 1
a90ef4bf 31017@endif lto-plugin
a7254363 31018
d545f33b
PB
31019
31020
a90ef4bf
JM
31021.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
31022maybe-configure-stage1-lto-plugin:
31023@if lto-plugin-bootstrap
31024maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
31025configure-stage1-lto-plugin:
31026 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31027 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31028 @r=`${PWD_COMMAND}`; export r; \
31029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31030 TFLAGS="$(STAGE1_TFLAGS)"; \
31031 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
31032 $(HOST_EXPORTS) \
31033 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
31034 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
31035 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
31036 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
31037 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31038 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31039 case $(srcdir) in \
31040 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31041 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31042 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31043 esac; \
1b6c0831
L
31044 module_srcdir=lto-plugin; \
31045 $(SHELL) $$s/$$module_srcdir/configure \
31046 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31047 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
31048 --target=${target_alias} \
31049 \
a90ef4bf 31050 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 31051 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31052@endif lto-plugin-bootstrap
252b5132 31053
a90ef4bf
JM
31054.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
31055maybe-configure-stage2-lto-plugin:
31056@if lto-plugin-bootstrap
31057maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
31058configure-stage2-lto-plugin:
31059 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31060 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
31061 @r=`${PWD_COMMAND}`; export r; \
31062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31063 TFLAGS="$(STAGE2_TFLAGS)"; \
31064 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 31065 $(HOST_EXPORTS) \
a90ef4bf
JM
31066 $(POSTSTAGE1_HOST_EXPORTS) \
31067 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
31068 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
31069 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31070 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
31071 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31072 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31073 case $(srcdir) in \
31074 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31075 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31076 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31077 esac; \
1b6c0831
L
31078 module_srcdir=lto-plugin; \
31079 $(SHELL) $$s/$$module_srcdir/configure \
31080 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31081 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31082 --target=${target_alias} \
22121df0 31083 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31084 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 31085 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31086@endif lto-plugin-bootstrap
4fa63067 31087
a90ef4bf
JM
31088.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
31089maybe-configure-stage3-lto-plugin:
31090@if lto-plugin-bootstrap
31091maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
31092configure-stage3-lto-plugin:
31093 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31094 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31095 @r=`${PWD_COMMAND}`; export r; \
31096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31097 TFLAGS="$(STAGE3_TFLAGS)"; \
31098 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31099 $(HOST_EXPORTS) \
a90ef4bf
JM
31100 $(POSTSTAGE1_HOST_EXPORTS) \
31101 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
31102 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
31103 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31104 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
31105 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31106 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31107 case $(srcdir) in \
31108 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31109 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31110 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31111 esac; \
1b6c0831
L
31112 module_srcdir=lto-plugin; \
31113 $(SHELL) $$s/$$module_srcdir/configure \
31114 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31115 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31116 --target=${target_alias} \
22121df0 31117 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31118 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 31119 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31120@endif lto-plugin-bootstrap
9b980aa1 31121
a90ef4bf
JM
31122.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
31123maybe-configure-stage4-lto-plugin:
31124@if lto-plugin-bootstrap
31125maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
31126configure-stage4-lto-plugin:
31127 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31128 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
31129 @r=`${PWD_COMMAND}`; export r; \
31130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31131 TFLAGS="$(STAGE4_TFLAGS)"; \
31132 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 31133 $(HOST_EXPORTS) \
a90ef4bf
JM
31134 $(POSTSTAGE1_HOST_EXPORTS) \
31135 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
31136 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
31137 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31138 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
31139 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31140 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31141 case $(srcdir) in \
31142 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31143 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31144 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31145 esac; \
1b6c0831
L
31146 module_srcdir=lto-plugin; \
31147 $(SHELL) $$s/$$module_srcdir/configure \
31148 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31149 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31150 --target=${target_alias} \
22121df0 31151 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31152 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 31153 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31154@endif lto-plugin-bootstrap
4fa63067 31155
a90ef4bf
JM
31156.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
31157maybe-configure-stageprofile-lto-plugin:
31158@if lto-plugin-bootstrap
31159maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31160configure-stageprofile-lto-plugin:
31161 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31162 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31163 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31165 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31166 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31167 $(HOST_EXPORTS) \
a90ef4bf
JM
31168 $(POSTSTAGE1_HOST_EXPORTS) \
31169 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
31170 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
31171 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31172 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
31173 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31174 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31175 case $(srcdir) in \
31176 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31177 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31178 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31179 esac; \
1b6c0831
L
31180 module_srcdir=lto-plugin; \
31181 $(SHELL) $$s/$$module_srcdir/configure \
31182 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31183 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31184 --target=${target_alias} \
22121df0 31185 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31186 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 31187 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31188@endif lto-plugin-bootstrap
4fa63067 31189
a90ef4bf
JM
31190.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
31191maybe-configure-stagefeedback-lto-plugin:
31192@if lto-plugin-bootstrap
31193maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31194configure-stagefeedback-lto-plugin:
31195 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31196 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31197 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31199 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31200 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31201 $(HOST_EXPORTS) \
a90ef4bf
JM
31202 $(POSTSTAGE1_HOST_EXPORTS) \
31203 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
31204 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
31205 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31206 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
31207 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31208 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31209 case $(srcdir) in \
31210 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31211 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31212 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31213 esac; \
1b6c0831
L
31214 module_srcdir=lto-plugin; \
31215 $(SHELL) $$s/$$module_srcdir/configure \
31216 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31217 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31218 --target=${target_alias} \
22121df0 31219 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31220 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 31221 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31222@endif lto-plugin-bootstrap
252b5132 31223
56a8fe78 31224
56a8fe78 31225
56a8fe78 31226
6d389afc 31227
a90ef4bf
JM
31228.PHONY: all-lto-plugin maybe-all-lto-plugin
31229maybe-all-lto-plugin:
31230@if gcc-bootstrap
31231all-lto-plugin: stage_current
31232@endif gcc-bootstrap
31233@if lto-plugin
31234TARGET-lto-plugin=all
31235maybe-all-lto-plugin: all-lto-plugin
31236all-lto-plugin: configure-lto-plugin
31237 @r=`${PWD_COMMAND}`; export r; \
6d389afc 31238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31239 $(HOST_EXPORTS) \
31240 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31241 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31242 $(TARGET-lto-plugin))
31243@endif lto-plugin
6d389afc 31244
6d389afc 31245
252b5132 31246
a90ef4bf
JM
31247.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
31248.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
31249maybe-all-stage1-lto-plugin:
31250maybe-clean-stage1-lto-plugin:
31251@if lto-plugin-bootstrap
31252maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
31253all-stage1: all-stage1-lto-plugin
31254TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
31255all-stage1-lto-plugin: configure-stage1-lto-plugin
31256 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31257 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31259 TFLAGS="$(STAGE1_TFLAGS)"; \
31260 $(HOST_EXPORTS) \
31261 cd $(HOST_SUBDIR)/lto-plugin && \
31262 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31263 CFLAGS="$(STAGE1_CFLAGS)" \
31264 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
31265 LIBCFLAGS="$(LIBCFLAGS)" \
31266 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31267 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31268 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 31269 $(EXTRA_HOST_FLAGS) \
1b6c0831 31270 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31271 TFLAGS="$(STAGE1_TFLAGS)" \
31272 $(TARGET-stage1-lto-plugin)
3866be5d 31273
a90ef4bf
JM
31274maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
31275clean-stage1: clean-stage1-lto-plugin
31276clean-stage1-lto-plugin:
31277 @if [ $(current_stage) = stage1 ]; then \
31278 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31279 else \
31280 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
31281 $(MAKE) stage1-start; \
31282 fi; \
31283 cd $(HOST_SUBDIR)/lto-plugin && \
31284 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 31285 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31286@endif lto-plugin-bootstrap
3866be5d 31287
3866be5d 31288
a90ef4bf
JM
31289.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
31290.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
31291maybe-all-stage2-lto-plugin:
31292maybe-clean-stage2-lto-plugin:
31293@if lto-plugin-bootstrap
31294maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
31295all-stage2: all-stage2-lto-plugin
31296TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
31297all-stage2-lto-plugin: configure-stage2-lto-plugin
31298 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31299 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31301 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 31302 $(HOST_EXPORTS) \
a90ef4bf
JM
31303 $(POSTSTAGE1_HOST_EXPORTS) \
31304 cd $(HOST_SUBDIR)/lto-plugin && \
31305 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31306 CFLAGS="$(STAGE2_CFLAGS)" \
31307 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
31308 LIBCFLAGS="$(STAGE2_CFLAGS)" \
31309 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31310 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31311 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31312 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31313 TFLAGS="$(STAGE2_TFLAGS)" \
31314 $(TARGET-stage2-lto-plugin)
3866be5d 31315
a90ef4bf
JM
31316maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
31317clean-stage2: clean-stage2-lto-plugin
31318clean-stage2-lto-plugin:
31319 @if [ $(current_stage) = stage2 ]; then \
31320 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31321 else \
31322 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
31323 $(MAKE) stage2-start; \
31324 fi; \
31325 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31326 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31327@endif lto-plugin-bootstrap
3866be5d 31328
a3ca38d2 31329
a90ef4bf
JM
31330.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
31331.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
31332maybe-all-stage3-lto-plugin:
31333maybe-clean-stage3-lto-plugin:
31334@if lto-plugin-bootstrap
31335maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
31336all-stage3: all-stage3-lto-plugin
31337TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
31338all-stage3-lto-plugin: configure-stage3-lto-plugin
31339 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31340 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 31341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31342 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 31343 $(HOST_EXPORTS) \
a90ef4bf
JM
31344 $(POSTSTAGE1_HOST_EXPORTS) \
31345 cd $(HOST_SUBDIR)/lto-plugin && \
31346 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31347 CFLAGS="$(STAGE3_CFLAGS)" \
31348 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
31349 LIBCFLAGS="$(STAGE3_CFLAGS)" \
31350 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31351 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31352 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31353 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31354 TFLAGS="$(STAGE3_TFLAGS)" \
31355 $(TARGET-stage3-lto-plugin)
a3ca38d2 31356
a90ef4bf
JM
31357maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
31358clean-stage3: clean-stage3-lto-plugin
31359clean-stage3-lto-plugin:
31360 @if [ $(current_stage) = stage3 ]; then \
31361 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31362 else \
31363 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
31364 $(MAKE) stage3-start; \
31365 fi; \
31366 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31367 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31368@endif lto-plugin-bootstrap
a3ca38d2 31369
108a6f8e 31370
a90ef4bf
JM
31371.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
31372.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
31373maybe-all-stage4-lto-plugin:
31374maybe-clean-stage4-lto-plugin:
31375@if lto-plugin-bootstrap
31376maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
31377all-stage4: all-stage4-lto-plugin
31378TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
31379all-stage4-lto-plugin: configure-stage4-lto-plugin
31380 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31381 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 31382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31383 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 31384 $(HOST_EXPORTS) \
a90ef4bf
JM
31385 $(POSTSTAGE1_HOST_EXPORTS) \
31386 cd $(HOST_SUBDIR)/lto-plugin && \
31387 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31388 CFLAGS="$(STAGE4_CFLAGS)" \
31389 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
31390 LIBCFLAGS="$(STAGE4_CFLAGS)" \
31391 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31392 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31393 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31394 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31395 TFLAGS="$(STAGE4_TFLAGS)" \
31396 $(TARGET-stage4-lto-plugin)
108a6f8e 31397
a90ef4bf
JM
31398maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
31399clean-stage4: clean-stage4-lto-plugin
31400clean-stage4-lto-plugin:
31401 @if [ $(current_stage) = stage4 ]; then \
31402 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31403 else \
31404 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
31405 $(MAKE) stage4-start; \
31406 fi; \
31407 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31408 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31409@endif lto-plugin-bootstrap
4fa63067 31410
4fa63067 31411
a90ef4bf
JM
31412.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
31413.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
31414maybe-all-stageprofile-lto-plugin:
31415maybe-clean-stageprofile-lto-plugin:
31416@if lto-plugin-bootstrap
31417maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
31418all-stageprofile: all-stageprofile-lto-plugin
31419TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
31420all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31421 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31422 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31424 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 31425 $(HOST_EXPORTS) \
a90ef4bf
JM
31426 $(POSTSTAGE1_HOST_EXPORTS) \
31427 cd $(HOST_SUBDIR)/lto-plugin && \
31428 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31429 CFLAGS="$(STAGEprofile_CFLAGS)" \
31430 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
31431 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
31432 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31433 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31434 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31435 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31436 TFLAGS="$(STAGEprofile_TFLAGS)" \
31437 $(TARGET-stageprofile-lto-plugin)
4fa63067 31438
a90ef4bf
JM
31439maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
31440clean-stageprofile: clean-stageprofile-lto-plugin
31441clean-stageprofile-lto-plugin:
31442 @if [ $(current_stage) = stageprofile ]; then \
31443 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31444 else \
31445 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
31446 $(MAKE) stageprofile-start; \
31447 fi; \
31448 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31449 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31450@endif lto-plugin-bootstrap
4fa63067 31451
4fa63067 31452
a90ef4bf
JM
31453.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
31454.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
31455maybe-all-stagefeedback-lto-plugin:
31456maybe-clean-stagefeedback-lto-plugin:
31457@if lto-plugin-bootstrap
31458maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
31459all-stagefeedback: all-stagefeedback-lto-plugin
31460TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
31461all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31462 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31463 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31465 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 31466 $(HOST_EXPORTS) \
a90ef4bf
JM
31467 $(POSTSTAGE1_HOST_EXPORTS) \
31468 cd $(HOST_SUBDIR)/lto-plugin && \
31469 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31470 CFLAGS="$(STAGEfeedback_CFLAGS)" \
31471 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
31472 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
31473 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31474 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31475 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31476 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31477 TFLAGS="$(STAGEfeedback_TFLAGS)" \
31478 $(TARGET-stagefeedback-lto-plugin)
3866be5d 31479
a90ef4bf
JM
31480maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
31481clean-stagefeedback: clean-stagefeedback-lto-plugin
31482clean-stagefeedback-lto-plugin:
31483 @if [ $(current_stage) = stagefeedback ]; then \
31484 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31485 else \
31486 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
31487 $(MAKE) stagefeedback-start; \
31488 fi; \
31489 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31490 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31491@endif lto-plugin-bootstrap
a7254363 31492
e2b9e2dc 31493
a7254363
PB
31494
31495
d545f33b 31496
a90ef4bf
JM
31497.PHONY: check-lto-plugin maybe-check-lto-plugin
31498maybe-check-lto-plugin:
31499@if lto-plugin
31500maybe-check-lto-plugin: check-lto-plugin
d545f33b 31501
a90ef4bf 31502check-lto-plugin:
0aed8855 31503 @: $(MAKE); $(unstage)
b40e3958
L
31504 @r=`${PWD_COMMAND}`; export r; \
31505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31506 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 31507 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 31508 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 31509
a90ef4bf 31510@endif lto-plugin
3866be5d 31511
a90ef4bf
JM
31512.PHONY: install-lto-plugin maybe-install-lto-plugin
31513maybe-install-lto-plugin:
31514@if lto-plugin
31515maybe-install-lto-plugin: install-lto-plugin
4fa63067 31516
a90ef4bf 31517install-lto-plugin: installdirs
0aed8855 31518 @: $(MAKE); $(unstage)
4fa63067
NN
31519 @r=`${PWD_COMMAND}`; export r; \
31520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31521 $(HOST_EXPORTS) \
a90ef4bf 31522 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31523 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 31524
a90ef4bf 31525@endif lto-plugin
4fa63067 31526
a90ef4bf
JM
31527.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
31528maybe-install-strip-lto-plugin:
31529@if lto-plugin
31530maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 31531
a90ef4bf 31532install-strip-lto-plugin: installdirs
9b980aa1
RW
31533 @: $(MAKE); $(unstage)
31534 @r=`${PWD_COMMAND}`; export r; \
31535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31536 $(HOST_EXPORTS) \
a90ef4bf 31537 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31538 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 31539
a90ef4bf 31540@endif lto-plugin
9b980aa1 31541
56a8fe78 31542# Other targets (info, dvi, pdf, etc.)
4fa63067 31543
a90ef4bf
JM
31544.PHONY: maybe-info-lto-plugin info-lto-plugin
31545maybe-info-lto-plugin:
31546@if lto-plugin
31547maybe-info-lto-plugin: info-lto-plugin
4fa63067 31548
a90ef4bf
JM
31549info-lto-plugin: \
31550 configure-lto-plugin
31551 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31552 r=`${PWD_COMMAND}`; export r; \
31553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31554 $(HOST_EXPORTS) \
1b6c0831 31555 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31557 done; \
22121df0 31558 echo "Doing info in lto-plugin"; \
a90ef4bf 31559 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31562 "RANLIB=$${RANLIB}" \
0c24b341 31563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31564 info) \
4fa63067
NN
31565 || exit 1
31566
a90ef4bf 31567@endif lto-plugin
4fa63067 31568
a90ef4bf
JM
31569.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
31570maybe-dvi-lto-plugin:
31571@if lto-plugin
31572maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 31573
a90ef4bf
JM
31574dvi-lto-plugin: \
31575 configure-lto-plugin
31576 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31577 r=`${PWD_COMMAND}`; export r; \
31578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31579 $(HOST_EXPORTS) \
1b6c0831 31580 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31582 done; \
22121df0 31583 echo "Doing dvi in lto-plugin"; \
a90ef4bf 31584 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31587 "RANLIB=$${RANLIB}" \
0c24b341 31588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31589 dvi) \
4fa63067
NN
31590 || exit 1
31591
a90ef4bf 31592@endif lto-plugin
4fa63067 31593
a90ef4bf
JM
31594.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
31595maybe-pdf-lto-plugin:
31596@if lto-plugin
31597maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 31598
a90ef4bf
JM
31599pdf-lto-plugin: \
31600 configure-lto-plugin
31601 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
31602 r=`${PWD_COMMAND}`; export r; \
31603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31604 $(HOST_EXPORTS) \
1b6c0831 31605 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
31606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31607 done; \
22121df0 31608 echo "Doing pdf in lto-plugin"; \
a90ef4bf 31609 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
31610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31612 "RANLIB=$${RANLIB}" \
0c24b341 31613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31614 pdf) \
31615 || exit 1
31616
a90ef4bf 31617@endif lto-plugin
56a8fe78 31618
a90ef4bf
JM
31619.PHONY: maybe-html-lto-plugin html-lto-plugin
31620maybe-html-lto-plugin:
31621@if lto-plugin
31622maybe-html-lto-plugin: html-lto-plugin
6d389afc 31623
a90ef4bf
JM
31624html-lto-plugin: \
31625 configure-lto-plugin
31626 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
31627 r=`${PWD_COMMAND}`; export r; \
31628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 31629 $(HOST_EXPORTS) \
1b6c0831 31630 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
31631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31632 done; \
22121df0 31633 echo "Doing html in lto-plugin"; \
a90ef4bf 31634 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
31635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31637 "RANLIB=$${RANLIB}" \
0c24b341 31638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31639 html) \
31640 || exit 1
31641
a90ef4bf 31642@endif lto-plugin
6d389afc 31643
a90ef4bf
JM
31644.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
31645maybe-TAGS-lto-plugin:
31646@if lto-plugin
31647maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 31648
a90ef4bf
JM
31649TAGS-lto-plugin: \
31650 configure-lto-plugin
31651 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31652 r=`${PWD_COMMAND}`; export r; \
31653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31654 $(HOST_EXPORTS) \
1b6c0831 31655 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31657 done; \
22121df0 31658 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 31659 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31662 "RANLIB=$${RANLIB}" \
0c24b341 31663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31664 TAGS) \
4fa63067
NN
31665 || exit 1
31666
a90ef4bf 31667@endif lto-plugin
4fa63067 31668
a90ef4bf
JM
31669.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
31670maybe-install-info-lto-plugin:
31671@if lto-plugin
31672maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 31673
a90ef4bf
JM
31674install-info-lto-plugin: \
31675 configure-lto-plugin \
31676 info-lto-plugin
31677 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31678 r=`${PWD_COMMAND}`; export r; \
31679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31680 $(HOST_EXPORTS) \
1b6c0831 31681 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31683 done; \
22121df0 31684 echo "Doing install-info in lto-plugin"; \
a90ef4bf 31685 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31688 "RANLIB=$${RANLIB}" \
0c24b341 31689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31690 install-info) \
4fa63067
NN
31691 || exit 1
31692
a90ef4bf 31693@endif lto-plugin
4fa63067 31694
a90ef4bf
JM
31695.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
31696maybe-install-pdf-lto-plugin:
31697@if lto-plugin
31698maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 31699
a90ef4bf
JM
31700install-pdf-lto-plugin: \
31701 configure-lto-plugin \
31702 pdf-lto-plugin
31703 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
31704 r=`${PWD_COMMAND}`; export r; \
31705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31706 $(HOST_EXPORTS) \
1b6c0831 31707 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
31708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31709 done; \
22121df0 31710 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 31711 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
31712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31714 "RANLIB=$${RANLIB}" \
0c24b341 31715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31716 install-pdf) \
31717 || exit 1
31718
a90ef4bf 31719@endif lto-plugin
a3ca38d2 31720
a90ef4bf
JM
31721.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
31722maybe-install-html-lto-plugin:
31723@if lto-plugin
31724maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 31725
a90ef4bf
JM
31726install-html-lto-plugin: \
31727 configure-lto-plugin \
31728 html-lto-plugin
31729 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
31730 r=`${PWD_COMMAND}`; export r; \
31731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31732 $(HOST_EXPORTS) \
1b6c0831 31733 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
31734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31735 done; \
22121df0 31736 echo "Doing install-html in lto-plugin"; \
a90ef4bf 31737 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
31738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31740 "RANLIB=$${RANLIB}" \
0c24b341 31741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31742 install-html) \
31743 || exit 1
31744
a90ef4bf 31745@endif lto-plugin
108a6f8e 31746
a90ef4bf
JM
31747.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
31748maybe-installcheck-lto-plugin:
31749@if lto-plugin
31750maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 31751
a90ef4bf
JM
31752installcheck-lto-plugin: \
31753 configure-lto-plugin
31754 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31755 r=`${PWD_COMMAND}`; export r; \
31756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31757 $(HOST_EXPORTS) \
1b6c0831 31758 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31760 done; \
22121df0 31761 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 31762 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31765 "RANLIB=$${RANLIB}" \
0c24b341 31766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31767 installcheck) \
4fa63067
NN
31768 || exit 1
31769
a90ef4bf 31770@endif lto-plugin
4fa63067 31771
a90ef4bf
JM
31772.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
31773maybe-mostlyclean-lto-plugin:
31774@if lto-plugin
31775maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 31776
a90ef4bf
JM
31777mostlyclean-lto-plugin:
31778 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31779 r=`${PWD_COMMAND}`; export r; \
31780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31781 $(HOST_EXPORTS) \
1b6c0831 31782 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31784 done; \
22121df0 31785 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 31786 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31789 "RANLIB=$${RANLIB}" \
0c24b341 31790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31791 mostlyclean) \
4fa63067
NN
31792 || exit 1
31793
a90ef4bf 31794@endif lto-plugin
4fa63067 31795
a90ef4bf
JM
31796.PHONY: maybe-clean-lto-plugin clean-lto-plugin
31797maybe-clean-lto-plugin:
31798@if lto-plugin
31799maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 31800
a90ef4bf
JM
31801clean-lto-plugin:
31802 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31803 r=`${PWD_COMMAND}`; export r; \
31804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31805 $(HOST_EXPORTS) \
1b6c0831 31806 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31808 done; \
22121df0 31809 echo "Doing clean in lto-plugin"; \
a90ef4bf 31810 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31813 "RANLIB=$${RANLIB}" \
0c24b341 31814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31815 clean) \
4fa63067
NN
31816 || exit 1
31817
a90ef4bf 31818@endif lto-plugin
4fa63067 31819
a90ef4bf
JM
31820.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
31821maybe-distclean-lto-plugin:
31822@if lto-plugin
31823maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 31824
a90ef4bf
JM
31825distclean-lto-plugin:
31826 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31827 r=`${PWD_COMMAND}`; export r; \
31828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31829 $(HOST_EXPORTS) \
1b6c0831 31830 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31832 done; \
22121df0 31833 echo "Doing distclean in lto-plugin"; \
a90ef4bf 31834 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31837 "RANLIB=$${RANLIB}" \
0c24b341 31838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31839 distclean) \
4fa63067
NN
31840 || exit 1
31841
a90ef4bf 31842@endif lto-plugin
4fa63067 31843
a90ef4bf
JM
31844.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
31845maybe-maintainer-clean-lto-plugin:
31846@if lto-plugin
31847maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 31848
a90ef4bf
JM
31849maintainer-clean-lto-plugin:
31850 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31851 r=`${PWD_COMMAND}`; export r; \
31852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31853 $(HOST_EXPORTS) \
1b6c0831 31854 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31856 done; \
22121df0 31857 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 31858 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31861 "RANLIB=$${RANLIB}" \
0c24b341 31862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31863 maintainer-clean) \
4fa63067 31864 || exit 1
16ae0395 31865
a90ef4bf
JM
31866@endif lto-plugin
31867
31868
31869
1b6c0831
L
31870.PHONY: configure-libcc1 maybe-configure-libcc1
31871maybe-configure-libcc1:
4f0ef2d8 31872@if gcc-bootstrap
1b6c0831 31873configure-libcc1: stage_current
4f0ef2d8 31874@endif gcc-bootstrap
1b6c0831
L
31875@if libcc1
31876maybe-configure-libcc1: configure-libcc1
31877configure-libcc1:
31878 @: $(MAKE); $(unstage)
c52c6897 31879 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 31881 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 31882 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
31883 $(HOST_EXPORTS) \
31884 echo Configuring in $(HOST_SUBDIR)/libcc1; \
31885 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 31886 case $(srcdir) in \
b00612cc 31887 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 31888 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 31889 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 31890 esac; \
1b6c0831
L
31891 module_srcdir=libcc1; \
31892 $(SHELL) \
31893 $$s/$$module_srcdir/configure \
31894 --srcdir=$${topdir}/$$module_srcdir \
31895 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31896 --target=${target_alias} --enable-shared \
e2b9e2dc 31897 || exit 1
1b6c0831 31898@endif libcc1
d545f33b
PB
31899
31900
3866be5d 31901
16ae0395 31902
9b980aa1 31903
1b6c0831
L
31904.PHONY: all-libcc1 maybe-all-libcc1
31905maybe-all-libcc1:
31906@if gcc-bootstrap
31907all-libcc1: stage_current
31908@endif gcc-bootstrap
31909@if libcc1
31910TARGET-libcc1=all
31911maybe-all-libcc1: all-libcc1
31912all-libcc1: configure-libcc1
31913 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31914 @r=`${PWD_COMMAND}`; export r; \
31915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31916 $(HOST_EXPORTS) \
31917 (cd $(HOST_SUBDIR)/libcc1 && \
31918 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31919 $(TARGET-libcc1))
31920@endif libcc1
e8a5fa9c 31921
1b6c0831
L
31922
31923
31924
31925.PHONY: check-libcc1 maybe-check-libcc1
31926maybe-check-libcc1:
31927@if libcc1
31928maybe-check-libcc1: check-libcc1
31929
31930check-libcc1:
31931 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31932 @r=`${PWD_COMMAND}`; export r; \
31933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31934 $(HOST_EXPORTS) \
1b6c0831
L
31935 (cd $(HOST_SUBDIR)/libcc1 && \
31936 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 31937
1b6c0831
L
31938@endif libcc1
31939
31940.PHONY: install-libcc1 maybe-install-libcc1
31941maybe-install-libcc1:
31942@if libcc1
31943maybe-install-libcc1: install-libcc1
31944
31945install-libcc1: installdirs
31946 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31947 @r=`${PWD_COMMAND}`; export r; \
31948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31949 $(HOST_EXPORTS) \
31950 (cd $(HOST_SUBDIR)/libcc1 && \
31951 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 31952
1b6c0831
L
31953@endif libcc1
31954
31955.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
31956maybe-install-strip-libcc1:
31957@if libcc1
31958maybe-install-strip-libcc1: install-strip-libcc1
31959
31960install-strip-libcc1: installdirs
31961 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31962 @r=`${PWD_COMMAND}`; export r; \
31963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31964 $(HOST_EXPORTS) \
31965 (cd $(HOST_SUBDIR)/libcc1 && \
31966 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 31967
1b6c0831 31968@endif libcc1
e8a5fa9c 31969
1b6c0831 31970# Other targets (info, dvi, pdf, etc.)
d545f33b 31971
1b6c0831
L
31972.PHONY: maybe-info-libcc1 info-libcc1
31973maybe-info-libcc1:
31974@if libcc1
31975maybe-info-libcc1: info-libcc1
d545f33b 31976
1b6c0831
L
31977info-libcc1: \
31978 configure-libcc1
31979 @: $(MAKE); $(unstage)
31980 @[ -f ./libcc1/Makefile ] || exit 0; \
31981 r=`${PWD_COMMAND}`; export r; \
b40e3958 31982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31983 $(HOST_EXPORTS) \
31984 for flag in $(EXTRA_HOST_FLAGS) ; do \
31985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31986 done; \
22121df0 31987 echo "Doing info in libcc1"; \
1b6c0831
L
31988 (cd $(HOST_SUBDIR)/libcc1 && \
31989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31991 "RANLIB=$${RANLIB}" \
31992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31993 info) \
31994 || exit 1
3866be5d 31995
1b6c0831 31996@endif libcc1
a7254363 31997
1b6c0831
L
31998.PHONY: maybe-dvi-libcc1 dvi-libcc1
31999maybe-dvi-libcc1:
32000@if libcc1
32001maybe-dvi-libcc1: dvi-libcc1
a7254363 32002
1b6c0831
L
32003dvi-libcc1: \
32004 configure-libcc1
32005 @: $(MAKE); $(unstage)
32006 @[ -f ./libcc1/Makefile ] || exit 0; \
32007 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32009 $(HOST_EXPORTS) \
32010 for flag in $(EXTRA_HOST_FLAGS) ; do \
32011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32012 done; \
22121df0 32013 echo "Doing dvi in libcc1"; \
1b6c0831
L
32014 (cd $(HOST_SUBDIR)/libcc1 && \
32015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32017 "RANLIB=$${RANLIB}" \
32018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32019 dvi) \
32020 || exit 1
e8a5fa9c 32021
1b6c0831 32022@endif libcc1
e8a5fa9c 32023
1b6c0831
L
32024.PHONY: maybe-pdf-libcc1 pdf-libcc1
32025maybe-pdf-libcc1:
32026@if libcc1
32027maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 32028
1b6c0831
L
32029pdf-libcc1: \
32030 configure-libcc1
32031 @: $(MAKE); $(unstage)
32032 @[ -f ./libcc1/Makefile ] || exit 0; \
32033 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32035 $(HOST_EXPORTS) \
32036 for flag in $(EXTRA_HOST_FLAGS) ; do \
32037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32038 done; \
22121df0 32039 echo "Doing pdf in libcc1"; \
1b6c0831
L
32040 (cd $(HOST_SUBDIR)/libcc1 && \
32041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32043 "RANLIB=$${RANLIB}" \
32044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32045 pdf) \
32046 || exit 1
e8a5fa9c 32047
1b6c0831 32048@endif libcc1
e8a5fa9c 32049
1b6c0831
L
32050.PHONY: maybe-html-libcc1 html-libcc1
32051maybe-html-libcc1:
32052@if libcc1
32053maybe-html-libcc1: html-libcc1
e8a5fa9c 32054
1b6c0831
L
32055html-libcc1: \
32056 configure-libcc1
32057 @: $(MAKE); $(unstage)
32058 @[ -f ./libcc1/Makefile ] || exit 0; \
32059 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32061 $(HOST_EXPORTS) \
32062 for flag in $(EXTRA_HOST_FLAGS) ; do \
32063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32064 done; \
22121df0 32065 echo "Doing html in libcc1"; \
1b6c0831
L
32066 (cd $(HOST_SUBDIR)/libcc1 && \
32067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32069 "RANLIB=$${RANLIB}" \
32070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32071 html) \
32072 || exit 1
e8a5fa9c 32073
1b6c0831 32074@endif libcc1
e8a5fa9c 32075
1b6c0831
L
32076.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
32077maybe-TAGS-libcc1:
32078@if libcc1
32079maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 32080
1b6c0831
L
32081TAGS-libcc1: \
32082 configure-libcc1
32083 @: $(MAKE); $(unstage)
32084 @[ -f ./libcc1/Makefile ] || exit 0; \
32085 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32087 $(HOST_EXPORTS) \
32088 for flag in $(EXTRA_HOST_FLAGS) ; do \
32089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32090 done; \
22121df0 32091 echo "Doing TAGS in libcc1"; \
1b6c0831
L
32092 (cd $(HOST_SUBDIR)/libcc1 && \
32093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32095 "RANLIB=$${RANLIB}" \
32096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32097 TAGS) \
32098 || exit 1
32099
32100@endif libcc1
32101
32102.PHONY: maybe-install-info-libcc1 install-info-libcc1
32103maybe-install-info-libcc1:
32104@if libcc1
32105maybe-install-info-libcc1: install-info-libcc1
32106
32107install-info-libcc1: \
32108 configure-libcc1 \
32109 info-libcc1
32110 @: $(MAKE); $(unstage)
32111 @[ -f ./libcc1/Makefile ] || exit 0; \
32112 r=`${PWD_COMMAND}`; export r; \
32113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32114 $(HOST_EXPORTS) \
32115 for flag in $(EXTRA_HOST_FLAGS) ; do \
32116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32117 done; \
22121df0 32118 echo "Doing install-info in libcc1"; \
1b6c0831
L
32119 (cd $(HOST_SUBDIR)/libcc1 && \
32120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32122 "RANLIB=$${RANLIB}" \
32123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32124 install-info) \
32125 || exit 1
32126
32127@endif libcc1
32128
32129.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
32130maybe-install-pdf-libcc1:
32131@if libcc1
32132maybe-install-pdf-libcc1: install-pdf-libcc1
32133
32134install-pdf-libcc1: \
32135 configure-libcc1 \
32136 pdf-libcc1
32137 @: $(MAKE); $(unstage)
32138 @[ -f ./libcc1/Makefile ] || exit 0; \
32139 r=`${PWD_COMMAND}`; export r; \
32140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32141 $(HOST_EXPORTS) \
32142 for flag in $(EXTRA_HOST_FLAGS) ; do \
32143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32144 done; \
22121df0 32145 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
32146 (cd $(HOST_SUBDIR)/libcc1 && \
32147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32149 "RANLIB=$${RANLIB}" \
32150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32151 install-pdf) \
32152 || exit 1
32153
32154@endif libcc1
32155
32156.PHONY: maybe-install-html-libcc1 install-html-libcc1
32157maybe-install-html-libcc1:
32158@if libcc1
32159maybe-install-html-libcc1: install-html-libcc1
32160
32161install-html-libcc1: \
32162 configure-libcc1 \
32163 html-libcc1
32164 @: $(MAKE); $(unstage)
32165 @[ -f ./libcc1/Makefile ] || exit 0; \
32166 r=`${PWD_COMMAND}`; export r; \
32167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32168 $(HOST_EXPORTS) \
32169 for flag in $(EXTRA_HOST_FLAGS) ; do \
32170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32171 done; \
22121df0 32172 echo "Doing install-html in libcc1"; \
1b6c0831
L
32173 (cd $(HOST_SUBDIR)/libcc1 && \
32174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32176 "RANLIB=$${RANLIB}" \
32177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32178 install-html) \
32179 || exit 1
32180
32181@endif libcc1
32182
32183.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
32184maybe-installcheck-libcc1:
32185@if libcc1
32186maybe-installcheck-libcc1: installcheck-libcc1
32187
32188installcheck-libcc1: \
32189 configure-libcc1
32190 @: $(MAKE); $(unstage)
32191 @[ -f ./libcc1/Makefile ] || exit 0; \
32192 r=`${PWD_COMMAND}`; export r; \
32193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32194 $(HOST_EXPORTS) \
32195 for flag in $(EXTRA_HOST_FLAGS) ; do \
32196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32197 done; \
22121df0 32198 echo "Doing installcheck in libcc1"; \
1b6c0831
L
32199 (cd $(HOST_SUBDIR)/libcc1 && \
32200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32202 "RANLIB=$${RANLIB}" \
32203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32204 installcheck) \
32205 || exit 1
32206
32207@endif libcc1
32208
32209.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
32210maybe-mostlyclean-libcc1:
32211@if libcc1
32212maybe-mostlyclean-libcc1: mostlyclean-libcc1
32213
32214mostlyclean-libcc1:
32215 @: $(MAKE); $(unstage)
32216 @[ -f ./libcc1/Makefile ] || exit 0; \
32217 r=`${PWD_COMMAND}`; export r; \
32218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32219 $(HOST_EXPORTS) \
32220 for flag in $(EXTRA_HOST_FLAGS) ; do \
32221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32222 done; \
22121df0 32223 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
32224 (cd $(HOST_SUBDIR)/libcc1 && \
32225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32227 "RANLIB=$${RANLIB}" \
32228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32229 mostlyclean) \
32230 || exit 1
32231
32232@endif libcc1
32233
32234.PHONY: maybe-clean-libcc1 clean-libcc1
32235maybe-clean-libcc1:
32236@if libcc1
32237maybe-clean-libcc1: clean-libcc1
32238
32239clean-libcc1:
32240 @: $(MAKE); $(unstage)
32241 @[ -f ./libcc1/Makefile ] || exit 0; \
32242 r=`${PWD_COMMAND}`; export r; \
32243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32244 $(HOST_EXPORTS) \
32245 for flag in $(EXTRA_HOST_FLAGS) ; do \
32246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32247 done; \
22121df0 32248 echo "Doing clean in libcc1"; \
1b6c0831
L
32249 (cd $(HOST_SUBDIR)/libcc1 && \
32250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32252 "RANLIB=$${RANLIB}" \
32253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32254 clean) \
32255 || exit 1
32256
32257@endif libcc1
32258
32259.PHONY: maybe-distclean-libcc1 distclean-libcc1
32260maybe-distclean-libcc1:
32261@if libcc1
32262maybe-distclean-libcc1: distclean-libcc1
32263
32264distclean-libcc1:
32265 @: $(MAKE); $(unstage)
32266 @[ -f ./libcc1/Makefile ] || exit 0; \
32267 r=`${PWD_COMMAND}`; export r; \
32268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32269 $(HOST_EXPORTS) \
32270 for flag in $(EXTRA_HOST_FLAGS) ; do \
32271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32272 done; \
22121df0 32273 echo "Doing distclean in libcc1"; \
1b6c0831
L
32274 (cd $(HOST_SUBDIR)/libcc1 && \
32275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32277 "RANLIB=$${RANLIB}" \
32278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32279 distclean) \
32280 || exit 1
32281
32282@endif libcc1
32283
32284.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
32285maybe-maintainer-clean-libcc1:
32286@if libcc1
32287maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
32288
32289maintainer-clean-libcc1:
32290 @: $(MAKE); $(unstage)
32291 @[ -f ./libcc1/Makefile ] || exit 0; \
32292 r=`${PWD_COMMAND}`; export r; \
32293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32294 $(HOST_EXPORTS) \
32295 for flag in $(EXTRA_HOST_FLAGS) ; do \
32296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32297 done; \
22121df0 32298 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
32299 (cd $(HOST_SUBDIR)/libcc1 && \
32300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32302 "RANLIB=$${RANLIB}" \
32303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32304 maintainer-clean) \
32305 || exit 1
32306
32307@endif libcc1
32308
32309
32310
32311.PHONY: configure-gotools maybe-configure-gotools
32312maybe-configure-gotools:
32313@if gcc-bootstrap
32314configure-gotools: stage_current
32315@endif gcc-bootstrap
32316@if gotools
32317maybe-configure-gotools: configure-gotools
32318configure-gotools:
32319 @: $(MAKE); $(unstage)
32320 @r=`${PWD_COMMAND}`; export r; \
32321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32322 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 32323 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
32324 $(HOST_EXPORTS) \
32325 echo Configuring in $(HOST_SUBDIR)/gotools; \
32326 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
32327 case $(srcdir) in \
32328 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32329 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
32330 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32331 esac; \
32332 module_srcdir=gotools; \
32333 $(SHELL) \
32334 $$s/$$module_srcdir/configure \
32335 --srcdir=$${topdir}/$$module_srcdir \
32336 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32337 --target=${target_alias} \
32338 || exit 1
32339@endif gotools
32340
32341
32342
32343
32344
32345.PHONY: all-gotools maybe-all-gotools
32346maybe-all-gotools:
32347@if gcc-bootstrap
32348all-gotools: stage_current
32349@endif gcc-bootstrap
32350@if gotools
32351TARGET-gotools=all
32352maybe-all-gotools: all-gotools
32353all-gotools: configure-gotools
32354 @: $(MAKE); $(unstage)
32355 @r=`${PWD_COMMAND}`; export r; \
32356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32357 $(HOST_EXPORTS) \
32358 (cd $(HOST_SUBDIR)/gotools && \
32359 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32360 $(TARGET-gotools))
32361@endif gotools
32362
32363
32364
32365
32366.PHONY: check-gotools maybe-check-gotools
32367maybe-check-gotools:
32368@if gotools
32369maybe-check-gotools: check-gotools
32370
32371check-gotools:
32372 @: $(MAKE); $(unstage)
32373 @r=`${PWD_COMMAND}`; export r; \
32374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32375 $(HOST_EXPORTS) \
1b6c0831
L
32376 (cd $(HOST_SUBDIR)/gotools && \
32377 $(MAKE) $(FLAGS_TO_PASS) check)
32378
32379@endif gotools
32380
32381.PHONY: install-gotools maybe-install-gotools
32382maybe-install-gotools:
32383@if gotools
32384maybe-install-gotools: install-gotools
32385
32386install-gotools: installdirs
32387 @: $(MAKE); $(unstage)
32388 @r=`${PWD_COMMAND}`; export r; \
32389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32390 $(HOST_EXPORTS) \
32391 (cd $(HOST_SUBDIR)/gotools && \
32392 $(MAKE) $(FLAGS_TO_PASS) install)
32393
32394@endif gotools
32395
32396.PHONY: install-strip-gotools maybe-install-strip-gotools
32397maybe-install-strip-gotools:
32398@if gotools
32399maybe-install-strip-gotools: install-strip-gotools
32400
32401install-strip-gotools: installdirs
32402 @: $(MAKE); $(unstage)
32403 @r=`${PWD_COMMAND}`; export r; \
32404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32405 $(HOST_EXPORTS) \
32406 (cd $(HOST_SUBDIR)/gotools && \
32407 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32408
32409@endif gotools
32410
32411# Other targets (info, dvi, pdf, etc.)
32412
32413.PHONY: maybe-info-gotools info-gotools
32414maybe-info-gotools:
32415@if gotools
32416maybe-info-gotools: info-gotools
32417
32418info-gotools: \
32419 configure-gotools
32420 @: $(MAKE); $(unstage)
32421 @[ -f ./gotools/Makefile ] || exit 0; \
32422 r=`${PWD_COMMAND}`; export r; \
32423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32424 $(HOST_EXPORTS) \
32425 for flag in $(EXTRA_HOST_FLAGS) ; do \
32426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32427 done; \
22121df0 32428 echo "Doing info in gotools"; \
1b6c0831
L
32429 (cd $(HOST_SUBDIR)/gotools && \
32430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32432 "RANLIB=$${RANLIB}" \
32433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32434 info) \
32435 || exit 1
32436
32437@endif gotools
32438
32439.PHONY: maybe-dvi-gotools dvi-gotools
32440maybe-dvi-gotools:
32441@if gotools
32442maybe-dvi-gotools: dvi-gotools
32443
32444dvi-gotools: \
32445 configure-gotools
32446 @: $(MAKE); $(unstage)
32447 @[ -f ./gotools/Makefile ] || exit 0; \
32448 r=`${PWD_COMMAND}`; export r; \
32449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32450 $(HOST_EXPORTS) \
32451 for flag in $(EXTRA_HOST_FLAGS) ; do \
32452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32453 done; \
22121df0 32454 echo "Doing dvi in gotools"; \
1b6c0831
L
32455 (cd $(HOST_SUBDIR)/gotools && \
32456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32458 "RANLIB=$${RANLIB}" \
32459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32460 dvi) \
32461 || exit 1
32462
32463@endif gotools
32464
32465.PHONY: maybe-pdf-gotools pdf-gotools
32466maybe-pdf-gotools:
32467@if gotools
32468maybe-pdf-gotools: pdf-gotools
32469
32470pdf-gotools: \
32471 configure-gotools
32472 @: $(MAKE); $(unstage)
32473 @[ -f ./gotools/Makefile ] || exit 0; \
32474 r=`${PWD_COMMAND}`; export r; \
32475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32476 $(HOST_EXPORTS) \
32477 for flag in $(EXTRA_HOST_FLAGS) ; do \
32478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32479 done; \
22121df0 32480 echo "Doing pdf in gotools"; \
1b6c0831
L
32481 (cd $(HOST_SUBDIR)/gotools && \
32482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32484 "RANLIB=$${RANLIB}" \
32485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32486 pdf) \
32487 || exit 1
32488
32489@endif gotools
32490
32491.PHONY: maybe-html-gotools html-gotools
32492maybe-html-gotools:
32493@if gotools
32494maybe-html-gotools: html-gotools
32495
32496html-gotools: \
32497 configure-gotools
32498 @: $(MAKE); $(unstage)
32499 @[ -f ./gotools/Makefile ] || exit 0; \
32500 r=`${PWD_COMMAND}`; export r; \
32501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32502 $(HOST_EXPORTS) \
32503 for flag in $(EXTRA_HOST_FLAGS) ; do \
32504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32505 done; \
22121df0 32506 echo "Doing html in gotools"; \
1b6c0831
L
32507 (cd $(HOST_SUBDIR)/gotools && \
32508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32510 "RANLIB=$${RANLIB}" \
32511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32512 html) \
32513 || exit 1
32514
32515@endif gotools
32516
32517.PHONY: maybe-TAGS-gotools TAGS-gotools
32518maybe-TAGS-gotools:
32519@if gotools
32520maybe-TAGS-gotools: TAGS-gotools
32521
32522TAGS-gotools: \
32523 configure-gotools
32524 @: $(MAKE); $(unstage)
32525 @[ -f ./gotools/Makefile ] || exit 0; \
32526 r=`${PWD_COMMAND}`; export r; \
32527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32528 $(HOST_EXPORTS) \
32529 for flag in $(EXTRA_HOST_FLAGS) ; do \
32530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32531 done; \
22121df0 32532 echo "Doing TAGS in gotools"; \
1b6c0831
L
32533 (cd $(HOST_SUBDIR)/gotools && \
32534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32536 "RANLIB=$${RANLIB}" \
32537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32538 TAGS) \
32539 || exit 1
32540
32541@endif gotools
32542
32543.PHONY: maybe-install-info-gotools install-info-gotools
32544maybe-install-info-gotools:
32545@if gotools
32546maybe-install-info-gotools: install-info-gotools
32547
32548install-info-gotools: \
32549 configure-gotools \
32550 info-gotools
32551 @: $(MAKE); $(unstage)
32552 @[ -f ./gotools/Makefile ] || exit 0; \
32553 r=`${PWD_COMMAND}`; export r; \
32554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32555 $(HOST_EXPORTS) \
32556 for flag in $(EXTRA_HOST_FLAGS) ; do \
32557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32558 done; \
22121df0 32559 echo "Doing install-info in gotools"; \
1b6c0831
L
32560 (cd $(HOST_SUBDIR)/gotools && \
32561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32563 "RANLIB=$${RANLIB}" \
32564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32565 install-info) \
32566 || exit 1
32567
32568@endif gotools
32569
32570.PHONY: maybe-install-pdf-gotools install-pdf-gotools
32571maybe-install-pdf-gotools:
32572@if gotools
32573maybe-install-pdf-gotools: install-pdf-gotools
32574
32575install-pdf-gotools: \
32576 configure-gotools \
32577 pdf-gotools
32578 @: $(MAKE); $(unstage)
32579 @[ -f ./gotools/Makefile ] || exit 0; \
32580 r=`${PWD_COMMAND}`; export r; \
32581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32582 $(HOST_EXPORTS) \
32583 for flag in $(EXTRA_HOST_FLAGS) ; do \
32584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32585 done; \
22121df0 32586 echo "Doing install-pdf in gotools"; \
1b6c0831
L
32587 (cd $(HOST_SUBDIR)/gotools && \
32588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32590 "RANLIB=$${RANLIB}" \
32591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32592 install-pdf) \
32593 || exit 1
32594
32595@endif gotools
32596
32597.PHONY: maybe-install-html-gotools install-html-gotools
32598maybe-install-html-gotools:
32599@if gotools
32600maybe-install-html-gotools: install-html-gotools
32601
32602install-html-gotools: \
32603 configure-gotools \
32604 html-gotools
32605 @: $(MAKE); $(unstage)
32606 @[ -f ./gotools/Makefile ] || exit 0; \
32607 r=`${PWD_COMMAND}`; export r; \
32608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32609 $(HOST_EXPORTS) \
32610 for flag in $(EXTRA_HOST_FLAGS) ; do \
32611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32612 done; \
22121df0 32613 echo "Doing install-html in gotools"; \
1b6c0831
L
32614 (cd $(HOST_SUBDIR)/gotools && \
32615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32617 "RANLIB=$${RANLIB}" \
32618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32619 install-html) \
32620 || exit 1
32621
32622@endif gotools
32623
32624.PHONY: maybe-installcheck-gotools installcheck-gotools
32625maybe-installcheck-gotools:
32626@if gotools
32627maybe-installcheck-gotools: installcheck-gotools
32628
32629installcheck-gotools: \
32630 configure-gotools
32631 @: $(MAKE); $(unstage)
32632 @[ -f ./gotools/Makefile ] || exit 0; \
32633 r=`${PWD_COMMAND}`; export r; \
32634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32635 $(HOST_EXPORTS) \
32636 for flag in $(EXTRA_HOST_FLAGS) ; do \
32637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32638 done; \
22121df0 32639 echo "Doing installcheck in gotools"; \
1b6c0831
L
32640 (cd $(HOST_SUBDIR)/gotools && \
32641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32643 "RANLIB=$${RANLIB}" \
32644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32645 installcheck) \
32646 || exit 1
32647
32648@endif gotools
32649
32650.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
32651maybe-mostlyclean-gotools:
32652@if gotools
32653maybe-mostlyclean-gotools: mostlyclean-gotools
32654
32655mostlyclean-gotools:
32656 @: $(MAKE); $(unstage)
32657 @[ -f ./gotools/Makefile ] || exit 0; \
32658 r=`${PWD_COMMAND}`; export r; \
32659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32660 $(HOST_EXPORTS) \
32661 for flag in $(EXTRA_HOST_FLAGS) ; do \
32662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32663 done; \
22121df0 32664 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
32665 (cd $(HOST_SUBDIR)/gotools && \
32666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32668 "RANLIB=$${RANLIB}" \
32669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32670 mostlyclean) \
32671 || exit 1
32672
32673@endif gotools
32674
32675.PHONY: maybe-clean-gotools clean-gotools
32676maybe-clean-gotools:
32677@if gotools
32678maybe-clean-gotools: clean-gotools
32679
32680clean-gotools:
32681 @: $(MAKE); $(unstage)
32682 @[ -f ./gotools/Makefile ] || exit 0; \
32683 r=`${PWD_COMMAND}`; export r; \
32684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32685 $(HOST_EXPORTS) \
32686 for flag in $(EXTRA_HOST_FLAGS) ; do \
32687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32688 done; \
22121df0 32689 echo "Doing clean in gotools"; \
1b6c0831
L
32690 (cd $(HOST_SUBDIR)/gotools && \
32691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32693 "RANLIB=$${RANLIB}" \
32694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32695 clean) \
32696 || exit 1
32697
32698@endif gotools
32699
32700.PHONY: maybe-distclean-gotools distclean-gotools
32701maybe-distclean-gotools:
32702@if gotools
32703maybe-distclean-gotools: distclean-gotools
32704
32705distclean-gotools:
32706 @: $(MAKE); $(unstage)
32707 @[ -f ./gotools/Makefile ] || exit 0; \
32708 r=`${PWD_COMMAND}`; export r; \
32709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32710 $(HOST_EXPORTS) \
32711 for flag in $(EXTRA_HOST_FLAGS) ; do \
32712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32713 done; \
22121df0 32714 echo "Doing distclean in gotools"; \
1b6c0831
L
32715 (cd $(HOST_SUBDIR)/gotools && \
32716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32718 "RANLIB=$${RANLIB}" \
32719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32720 distclean) \
32721 || exit 1
32722
32723@endif gotools
32724
32725.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
32726maybe-maintainer-clean-gotools:
32727@if gotools
32728maybe-maintainer-clean-gotools: maintainer-clean-gotools
32729
32730maintainer-clean-gotools:
32731 @: $(MAKE); $(unstage)
32732 @[ -f ./gotools/Makefile ] || exit 0; \
32733 r=`${PWD_COMMAND}`; export r; \
32734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32735 $(HOST_EXPORTS) \
32736 for flag in $(EXTRA_HOST_FLAGS) ; do \
32737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32738 done; \
22121df0 32739 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
32740 (cd $(HOST_SUBDIR)/gotools && \
32741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32743 "RANLIB=$${RANLIB}" \
32744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32745 maintainer-clean) \
32746 || exit 1
32747
32748@endif gotools
32749
32750
32751
32752# ---------------------------------------
32753# Modules which run on the target machine
32754# ---------------------------------------
32755
32756
32757
32758
32759.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
32760maybe-configure-target-libstdc++-v3:
32761@if gcc-bootstrap
32762configure-target-libstdc++-v3: stage_current
32763@endif gcc-bootstrap
32764@if target-libstdc++-v3
32765maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
32766configure-target-libstdc++-v3:
32767 @r=`${PWD_COMMAND}`; export r; \
32768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32769 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
32770 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
32771 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32772 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32773 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32774 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32775 else \
32776 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32777 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32778 fi; \
32779 else \
32780 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32781 fi; \
32782 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 32783 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32784 $(RAW_CXX_TARGET_EXPORTS) \
32785 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
32786 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
32787 case $(srcdir) in \
32788 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32789 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32790 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32791 esac; \
32792 module_srcdir=libstdc++-v3; \
32793 rm -f no-such-file || : ; \
32794 CONFIG_SITE=no-such-file $(SHELL) \
32795 $$s/$$module_srcdir/configure \
32796 --srcdir=$${topdir}/$$module_srcdir \
32797 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32798 --target=${target_alias} \
32799 || exit 1
32800@endif target-libstdc++-v3
32801
32802
32803
32804.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
32805maybe-configure-stage1-target-libstdc++-v3:
32806@if target-libstdc++-v3-bootstrap
32807maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32808configure-stage1-target-libstdc++-v3:
32809 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32810 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32811 @r=`${PWD_COMMAND}`; export r; \
32812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32813 TFLAGS="$(STAGE1_TFLAGS)"; \
32814 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32815 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32816 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32817 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32818 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32819 else \
32820 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32821 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32822 fi; \
32823 else \
32824 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32825 fi; \
32826 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32827 $(RAW_CXX_TARGET_EXPORTS) \
32828 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32829 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32830 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32831 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
32832 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32833 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32834 case $(srcdir) in \
32835 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32836 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32837 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32838 esac; \
32839 module_srcdir=libstdc++-v3; \
32840 $(SHELL) $$s/$$module_srcdir/configure \
32841 --srcdir=$${topdir}/$$module_srcdir \
32842 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32843 --target=${target_alias} \
32844 \
32845 $(STAGE1_CONFIGURE_FLAGS)
32846@endif target-libstdc++-v3-bootstrap
32847
32848.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
32849maybe-configure-stage2-target-libstdc++-v3:
32850@if target-libstdc++-v3-bootstrap
32851maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32852configure-stage2-target-libstdc++-v3:
32853 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32854 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32855 @r=`${PWD_COMMAND}`; export r; \
32856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32857 TFLAGS="$(STAGE2_TFLAGS)"; \
32858 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32859 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32860 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32861 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32862 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32863 else \
32864 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32865 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32866 fi; \
32867 else \
32868 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32869 fi; \
32870 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32871 $(RAW_CXX_TARGET_EXPORTS) \
32872 \
32873 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32874 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32875 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32876 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
32877 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32878 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32879 case $(srcdir) in \
32880 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32881 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32882 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32883 esac; \
32884 module_srcdir=libstdc++-v3; \
32885 $(SHELL) $$s/$$module_srcdir/configure \
32886 --srcdir=$${topdir}/$$module_srcdir \
32887 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32888 --target=${target_alias} \
22121df0 32889 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32890 $(STAGE2_CONFIGURE_FLAGS)
32891@endif target-libstdc++-v3-bootstrap
32892
32893.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
32894maybe-configure-stage3-target-libstdc++-v3:
32895@if target-libstdc++-v3-bootstrap
32896maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32897configure-stage3-target-libstdc++-v3:
32898 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32899 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32900 @r=`${PWD_COMMAND}`; export r; \
32901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32902 TFLAGS="$(STAGE3_TFLAGS)"; \
32903 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32904 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32905 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32906 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32907 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32908 else \
32909 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32910 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32911 fi; \
32912 else \
32913 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32914 fi; \
32915 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32916 $(RAW_CXX_TARGET_EXPORTS) \
32917 \
32918 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32919 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32920 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32921 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
32922 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32923 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32924 case $(srcdir) in \
32925 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32926 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32927 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32928 esac; \
32929 module_srcdir=libstdc++-v3; \
32930 $(SHELL) $$s/$$module_srcdir/configure \
32931 --srcdir=$${topdir}/$$module_srcdir \
32932 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32933 --target=${target_alias} \
22121df0 32934 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32935 $(STAGE3_CONFIGURE_FLAGS)
32936@endif target-libstdc++-v3-bootstrap
32937
32938.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
32939maybe-configure-stage4-target-libstdc++-v3:
32940@if target-libstdc++-v3-bootstrap
32941maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32942configure-stage4-target-libstdc++-v3:
32943 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32944 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32945 @r=`${PWD_COMMAND}`; export r; \
32946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32947 TFLAGS="$(STAGE4_TFLAGS)"; \
32948 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32949 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32950 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32951 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32952 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32953 else \
32954 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32955 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32956 fi; \
32957 else \
32958 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32959 fi; \
32960 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32961 $(RAW_CXX_TARGET_EXPORTS) \
32962 \
32963 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32964 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32965 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32966 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
32967 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32968 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32969 case $(srcdir) in \
32970 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32971 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32972 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32973 esac; \
32974 module_srcdir=libstdc++-v3; \
32975 $(SHELL) $$s/$$module_srcdir/configure \
32976 --srcdir=$${topdir}/$$module_srcdir \
32977 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32978 --target=${target_alias} \
22121df0 32979 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32980 $(STAGE4_CONFIGURE_FLAGS)
32981@endif target-libstdc++-v3-bootstrap
32982
32983.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
32984maybe-configure-stageprofile-target-libstdc++-v3:
32985@if target-libstdc++-v3-bootstrap
32986maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32987configure-stageprofile-target-libstdc++-v3:
32988 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32989 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32990 @r=`${PWD_COMMAND}`; export r; \
32991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32992 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32993 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32994 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32995 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32996 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32997 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32998 else \
32999 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33000 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33001 fi; \
33002 else \
33003 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33004 fi; \
33005 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33006 $(RAW_CXX_TARGET_EXPORTS) \
33007 \
33008 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33009 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33010 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33011 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
33012 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33013 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33014 case $(srcdir) in \
33015 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33016 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33017 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33018 esac; \
33019 module_srcdir=libstdc++-v3; \
33020 $(SHELL) $$s/$$module_srcdir/configure \
33021 --srcdir=$${topdir}/$$module_srcdir \
33022 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33023 --target=${target_alias} \
22121df0 33024 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33025 $(STAGEprofile_CONFIGURE_FLAGS)
33026@endif target-libstdc++-v3-bootstrap
33027
33028.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
33029maybe-configure-stagefeedback-target-libstdc++-v3:
33030@if target-libstdc++-v3-bootstrap
33031maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
33032configure-stagefeedback-target-libstdc++-v3:
33033 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33034 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33035 @r=`${PWD_COMMAND}`; export r; \
33036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33037 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33038 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33039 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33040 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33041 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33042 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33043 else \
33044 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33045 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33046 fi; \
33047 else \
33048 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33049 fi; \
33050 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33051 $(RAW_CXX_TARGET_EXPORTS) \
33052 \
33053 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33054 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33055 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33056 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
33057 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33058 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33059 case $(srcdir) in \
33060 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33061 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33062 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33063 esac; \
33064 module_srcdir=libstdc++-v3; \
33065 $(SHELL) $$s/$$module_srcdir/configure \
33066 --srcdir=$${topdir}/$$module_srcdir \
33067 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33068 --target=${target_alias} \
22121df0 33069 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33070 $(STAGEfeedback_CONFIGURE_FLAGS)
33071@endif target-libstdc++-v3-bootstrap
33072
33073
33074
33075
33076
33077.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
33078maybe-all-target-libstdc++-v3:
33079@if gcc-bootstrap
33080all-target-libstdc++-v3: stage_current
33081@endif gcc-bootstrap
33082@if target-libstdc++-v3
33083TARGET-target-libstdc++-v3=all
33084maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
33085all-target-libstdc++-v3: configure-target-libstdc++-v3
33086 @r=`${PWD_COMMAND}`; export r; \
33087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33088 $(RAW_CXX_TARGET_EXPORTS) \
33089 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33090 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33091 $(TARGET-target-libstdc++-v3))
33092@endif target-libstdc++-v3
33093
33094
33095
33096.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
33097.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
33098maybe-all-stage1-target-libstdc++-v3:
33099maybe-clean-stage1-target-libstdc++-v3:
33100@if target-libstdc++-v3-bootstrap
33101maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
33102all-stage1: all-stage1-target-libstdc++-v3
33103TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33104all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
33105 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33106 @r=`${PWD_COMMAND}`; export r; \
33107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33108 TFLAGS="$(STAGE1_TFLAGS)"; \
33109 $(RAW_CXX_TARGET_EXPORTS) \
33110 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33111 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33112 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33113 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33114 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33115 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33116 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33117 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33118 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33119 \
33120 TFLAGS="$(STAGE1_TFLAGS)" \
33121 $(TARGET-stage1-target-libstdc++-v3)
33122
33123maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
33124clean-stage1: clean-stage1-target-libstdc++-v3
33125clean-stage1-target-libstdc++-v3:
33126 @if [ $(current_stage) = stage1 ]; then \
33127 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33128 else \
33129 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
33130 $(MAKE) stage1-start; \
33131 fi; \
33132 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33133 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33134 clean
33135@endif target-libstdc++-v3-bootstrap
33136
33137
33138.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
33139.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
33140maybe-all-stage2-target-libstdc++-v3:
33141maybe-clean-stage2-target-libstdc++-v3:
33142@if target-libstdc++-v3-bootstrap
33143maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
33144all-stage2: all-stage2-target-libstdc++-v3
33145TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33146all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
33147 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33148 @r=`${PWD_COMMAND}`; export r; \
33149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33150 TFLAGS="$(STAGE2_TFLAGS)"; \
33151 $(RAW_CXX_TARGET_EXPORTS) \
33152 \
33153 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33154 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33155 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33156 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33157 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33158 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33159 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33160 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33161 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33162 TFLAGS="$(STAGE2_TFLAGS)" \
33163 $(TARGET-stage2-target-libstdc++-v3)
33164
33165maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
33166clean-stage2: clean-stage2-target-libstdc++-v3
33167clean-stage2-target-libstdc++-v3:
33168 @if [ $(current_stage) = stage2 ]; then \
33169 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33170 else \
33171 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
33172 $(MAKE) stage2-start; \
33173 fi; \
33174 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33175 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33176@endif target-libstdc++-v3-bootstrap
33177
33178
33179.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
33180.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
33181maybe-all-stage3-target-libstdc++-v3:
33182maybe-clean-stage3-target-libstdc++-v3:
33183@if target-libstdc++-v3-bootstrap
33184maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
33185all-stage3: all-stage3-target-libstdc++-v3
33186TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33187all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
33188 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33189 @r=`${PWD_COMMAND}`; export r; \
33190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33191 TFLAGS="$(STAGE3_TFLAGS)"; \
33192 $(RAW_CXX_TARGET_EXPORTS) \
33193 \
33194 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33195 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33196 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33197 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33198 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33199 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33200 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33201 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33202 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33203 TFLAGS="$(STAGE3_TFLAGS)" \
33204 $(TARGET-stage3-target-libstdc++-v3)
33205
33206maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
33207clean-stage3: clean-stage3-target-libstdc++-v3
33208clean-stage3-target-libstdc++-v3:
33209 @if [ $(current_stage) = stage3 ]; then \
33210 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33211 else \
33212 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
33213 $(MAKE) stage3-start; \
33214 fi; \
33215 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33216 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33217@endif target-libstdc++-v3-bootstrap
33218
33219
33220.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
33221.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
33222maybe-all-stage4-target-libstdc++-v3:
33223maybe-clean-stage4-target-libstdc++-v3:
33224@if target-libstdc++-v3-bootstrap
33225maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
33226all-stage4: all-stage4-target-libstdc++-v3
33227TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33228all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
33229 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33230 @r=`${PWD_COMMAND}`; export r; \
33231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33232 TFLAGS="$(STAGE4_TFLAGS)"; \
33233 $(RAW_CXX_TARGET_EXPORTS) \
33234 \
33235 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33236 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33237 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33238 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33239 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33240 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33241 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33242 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33243 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33244 TFLAGS="$(STAGE4_TFLAGS)" \
33245 $(TARGET-stage4-target-libstdc++-v3)
33246
33247maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
33248clean-stage4: clean-stage4-target-libstdc++-v3
33249clean-stage4-target-libstdc++-v3:
33250 @if [ $(current_stage) = stage4 ]; then \
33251 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33252 else \
33253 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
33254 $(MAKE) stage4-start; \
33255 fi; \
33256 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33257 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33258@endif target-libstdc++-v3-bootstrap
33259
33260
33261.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
33262.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
33263maybe-all-stageprofile-target-libstdc++-v3:
33264maybe-clean-stageprofile-target-libstdc++-v3:
33265@if target-libstdc++-v3-bootstrap
33266maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
33267all-stageprofile: all-stageprofile-target-libstdc++-v3
33268TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33269all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
33270 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33271 @r=`${PWD_COMMAND}`; export r; \
33272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33273 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33274 $(RAW_CXX_TARGET_EXPORTS) \
33275 \
33276 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33277 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33278 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33279 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33280 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33281 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33282 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33283 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33284 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33285 TFLAGS="$(STAGEprofile_TFLAGS)" \
33286 $(TARGET-stageprofile-target-libstdc++-v3)
33287
33288maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
33289clean-stageprofile: clean-stageprofile-target-libstdc++-v3
33290clean-stageprofile-target-libstdc++-v3:
33291 @if [ $(current_stage) = stageprofile ]; then \
33292 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33293 else \
33294 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
33295 $(MAKE) stageprofile-start; \
33296 fi; \
33297 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33298 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33299@endif target-libstdc++-v3-bootstrap
33300
33301
33302.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
33303.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
33304maybe-all-stagefeedback-target-libstdc++-v3:
33305maybe-clean-stagefeedback-target-libstdc++-v3:
33306@if target-libstdc++-v3-bootstrap
33307maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
33308all-stagefeedback: all-stagefeedback-target-libstdc++-v3
33309TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33310all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
33311 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33312 @r=`${PWD_COMMAND}`; export r; \
33313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33314 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33315 $(RAW_CXX_TARGET_EXPORTS) \
33316 \
33317 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33318 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33319 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33320 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33321 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33322 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33323 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33324 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33325 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33326 TFLAGS="$(STAGEfeedback_TFLAGS)" \
33327 $(TARGET-stagefeedback-target-libstdc++-v3)
33328
33329maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
33330clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
33331clean-stagefeedback-target-libstdc++-v3:
33332 @if [ $(current_stage) = stagefeedback ]; then \
33333 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33334 else \
33335 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
33336 $(MAKE) stagefeedback-start; \
33337 fi; \
33338 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33339 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33340@endif target-libstdc++-v3-bootstrap
33341
33342
33343
33344
33345
33346
33347.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
33348maybe-check-target-libstdc++-v3:
33349@if target-libstdc++-v3
33350maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
33351
33352check-target-libstdc++-v3:
33353 @: $(MAKE); $(unstage)
33354 @r=`${PWD_COMMAND}`; export r; \
33355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33356 $(RAW_CXX_TARGET_EXPORTS) \
33357 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33358 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
33359
33360@endif target-libstdc++-v3
33361
33362.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
33363maybe-install-target-libstdc++-v3:
33364@if target-libstdc++-v3
33365maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
33366
33367install-target-libstdc++-v3: installdirs
33368 @: $(MAKE); $(unstage)
33369 @r=`${PWD_COMMAND}`; export r; \
33370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33371 $(RAW_CXX_TARGET_EXPORTS) \
33372 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33373 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
33374
33375@endif target-libstdc++-v3
33376
33377.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
33378maybe-install-strip-target-libstdc++-v3:
33379@if target-libstdc++-v3
33380maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
33381
33382install-strip-target-libstdc++-v3: installdirs
33383 @: $(MAKE); $(unstage)
33384 @r=`${PWD_COMMAND}`; export r; \
33385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33386 $(RAW_CXX_TARGET_EXPORTS) \
33387 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33388 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33389
33390@endif target-libstdc++-v3
33391
33392# Other targets (info, dvi, pdf, etc.)
33393
33394.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
33395maybe-info-target-libstdc++-v3:
33396@if target-libstdc++-v3
33397maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
33398
33399info-target-libstdc++-v3: \
33400 configure-target-libstdc++-v3
33401 @: $(MAKE); $(unstage)
22121df0 33402 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33403 r=`${PWD_COMMAND}`; export r; \
33404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33405 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33406 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33407 for flag in $(EXTRA_TARGET_FLAGS); do \
33408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33409 done; \
33410 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33413 "RANLIB=$${RANLIB}" \
33414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33415 info) \
33416 || exit 1
33417
33418@endif target-libstdc++-v3
33419
33420.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
33421maybe-dvi-target-libstdc++-v3:
33422@if target-libstdc++-v3
33423maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
33424
33425dvi-target-libstdc++-v3: \
33426 configure-target-libstdc++-v3
33427 @: $(MAKE); $(unstage)
22121df0 33428 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33429 r=`${PWD_COMMAND}`; export r; \
33430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33431 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33432 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33433 for flag in $(EXTRA_TARGET_FLAGS); do \
33434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33435 done; \
33436 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33439 "RANLIB=$${RANLIB}" \
33440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33441 dvi) \
33442 || exit 1
33443
33444@endif target-libstdc++-v3
33445
33446.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
33447maybe-pdf-target-libstdc++-v3:
33448@if target-libstdc++-v3
33449maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
33450
33451pdf-target-libstdc++-v3: \
33452 configure-target-libstdc++-v3
33453 @: $(MAKE); $(unstage)
22121df0 33454 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33455 r=`${PWD_COMMAND}`; export r; \
33456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33457 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33458 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33459 for flag in $(EXTRA_TARGET_FLAGS); do \
33460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33461 done; \
33462 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33465 "RANLIB=$${RANLIB}" \
33466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33467 pdf) \
33468 || exit 1
33469
33470@endif target-libstdc++-v3
33471
33472.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
33473maybe-html-target-libstdc++-v3:
33474@if target-libstdc++-v3
33475maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
33476
33477html-target-libstdc++-v3: \
33478 configure-target-libstdc++-v3
33479 @: $(MAKE); $(unstage)
22121df0 33480 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33481 r=`${PWD_COMMAND}`; export r; \
33482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33483 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33484 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33485 for flag in $(EXTRA_TARGET_FLAGS); do \
33486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33487 done; \
33488 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33491 "RANLIB=$${RANLIB}" \
33492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33493 html) \
33494 || exit 1
33495
33496@endif target-libstdc++-v3
33497
33498.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
33499maybe-TAGS-target-libstdc++-v3:
33500@if target-libstdc++-v3
33501maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
33502
33503TAGS-target-libstdc++-v3: \
33504 configure-target-libstdc++-v3
33505 @: $(MAKE); $(unstage)
22121df0 33506 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33507 r=`${PWD_COMMAND}`; export r; \
33508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33509 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33510 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33511 for flag in $(EXTRA_TARGET_FLAGS); do \
33512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33513 done; \
33514 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33517 "RANLIB=$${RANLIB}" \
33518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33519 TAGS) \
33520 || exit 1
33521
33522@endif target-libstdc++-v3
33523
33524.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
33525maybe-install-info-target-libstdc++-v3:
33526@if target-libstdc++-v3
33527maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
33528
33529install-info-target-libstdc++-v3: \
33530 configure-target-libstdc++-v3 \
33531 info-target-libstdc++-v3
33532 @: $(MAKE); $(unstage)
22121df0 33533 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33534 r=`${PWD_COMMAND}`; export r; \
33535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33536 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33537 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33538 for flag in $(EXTRA_TARGET_FLAGS); do \
33539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33540 done; \
33541 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33544 "RANLIB=$${RANLIB}" \
33545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33546 install-info) \
33547 || exit 1
33548
33549@endif target-libstdc++-v3
33550
33551.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
33552maybe-install-pdf-target-libstdc++-v3:
33553@if target-libstdc++-v3
33554maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
33555
33556install-pdf-target-libstdc++-v3: \
33557 configure-target-libstdc++-v3 \
33558 pdf-target-libstdc++-v3
33559 @: $(MAKE); $(unstage)
22121df0 33560 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33561 r=`${PWD_COMMAND}`; export r; \
33562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33563 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33564 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33565 for flag in $(EXTRA_TARGET_FLAGS); do \
33566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33567 done; \
33568 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33571 "RANLIB=$${RANLIB}" \
33572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33573 install-pdf) \
33574 || exit 1
33575
33576@endif target-libstdc++-v3
33577
33578.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
33579maybe-install-html-target-libstdc++-v3:
33580@if target-libstdc++-v3
33581maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
33582
33583install-html-target-libstdc++-v3: \
33584 configure-target-libstdc++-v3 \
33585 html-target-libstdc++-v3
33586 @: $(MAKE); $(unstage)
22121df0 33587 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33588 r=`${PWD_COMMAND}`; export r; \
33589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33590 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33591 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33592 for flag in $(EXTRA_TARGET_FLAGS); do \
33593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33594 done; \
33595 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33598 "RANLIB=$${RANLIB}" \
33599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33600 install-html) \
33601 || exit 1
33602
33603@endif target-libstdc++-v3
33604
33605.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
33606maybe-installcheck-target-libstdc++-v3:
33607@if target-libstdc++-v3
33608maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
33609
33610installcheck-target-libstdc++-v3: \
33611 configure-target-libstdc++-v3
33612 @: $(MAKE); $(unstage)
22121df0 33613 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33614 r=`${PWD_COMMAND}`; export r; \
33615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33616 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33617 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33618 for flag in $(EXTRA_TARGET_FLAGS); do \
33619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33620 done; \
33621 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33624 "RANLIB=$${RANLIB}" \
33625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33626 installcheck) \
33627 || exit 1
33628
33629@endif target-libstdc++-v3
33630
33631.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
33632maybe-mostlyclean-target-libstdc++-v3:
33633@if target-libstdc++-v3
33634maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
33635
33636mostlyclean-target-libstdc++-v3:
33637 @: $(MAKE); $(unstage)
22121df0 33638 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33639 r=`${PWD_COMMAND}`; export r; \
33640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33641 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33642 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33643 for flag in $(EXTRA_TARGET_FLAGS); do \
33644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33645 done; \
33646 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33649 "RANLIB=$${RANLIB}" \
33650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33651 mostlyclean) \
33652 || exit 1
33653
33654@endif target-libstdc++-v3
33655
33656.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
33657maybe-clean-target-libstdc++-v3:
33658@if target-libstdc++-v3
33659maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
33660
33661clean-target-libstdc++-v3:
33662 @: $(MAKE); $(unstage)
22121df0 33663 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33664 r=`${PWD_COMMAND}`; export r; \
33665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33666 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33667 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33668 for flag in $(EXTRA_TARGET_FLAGS); do \
33669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33670 done; \
33671 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33674 "RANLIB=$${RANLIB}" \
33675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33676 clean) \
33677 || exit 1
33678
33679@endif target-libstdc++-v3
33680
33681.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
33682maybe-distclean-target-libstdc++-v3:
33683@if target-libstdc++-v3
33684maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
33685
33686distclean-target-libstdc++-v3:
33687 @: $(MAKE); $(unstage)
22121df0 33688 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33689 r=`${PWD_COMMAND}`; export r; \
33690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33691 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33692 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33693 for flag in $(EXTRA_TARGET_FLAGS); do \
33694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33695 done; \
33696 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33699 "RANLIB=$${RANLIB}" \
33700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33701 distclean) \
33702 || exit 1
33703
33704@endif target-libstdc++-v3
33705
33706.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
33707maybe-maintainer-clean-target-libstdc++-v3:
33708@if target-libstdc++-v3
33709maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
33710
33711maintainer-clean-target-libstdc++-v3:
33712 @: $(MAKE); $(unstage)
22121df0 33713 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33714 r=`${PWD_COMMAND}`; export r; \
33715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33716 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33717 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33718 for flag in $(EXTRA_TARGET_FLAGS); do \
33719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33720 done; \
33721 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33724 "RANLIB=$${RANLIB}" \
33725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33726 maintainer-clean) \
33727 || exit 1
33728
33729@endif target-libstdc++-v3
33730
33731
33732
33733
33734
33735.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
33736maybe-configure-target-libsanitizer:
33737@if gcc-bootstrap
33738configure-target-libsanitizer: stage_current
33739@endif gcc-bootstrap
33740@if target-libsanitizer
33741maybe-configure-target-libsanitizer: configure-target-libsanitizer
33742configure-target-libsanitizer:
33743 @r=`${PWD_COMMAND}`; export r; \
33744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33745 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
33746 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
33747 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33748 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33749 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33750 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33751 else \
33752 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33753 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33754 fi; \
33755 else \
33756 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33757 fi; \
33758 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 33759 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33760 $(RAW_CXX_TARGET_EXPORTS) \
33761 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
33762 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
33763 case $(srcdir) in \
33764 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33765 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33766 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33767 esac; \
33768 module_srcdir=libsanitizer; \
33769 rm -f no-such-file || : ; \
33770 CONFIG_SITE=no-such-file $(SHELL) \
33771 $$s/$$module_srcdir/configure \
33772 --srcdir=$${topdir}/$$module_srcdir \
33773 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33774 --target=${target_alias} \
33775 || exit 1
33776@endif target-libsanitizer
33777
33778
33779
33780.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
33781maybe-configure-stage1-target-libsanitizer:
33782@if target-libsanitizer-bootstrap
33783maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33784configure-stage1-target-libsanitizer:
33785 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33786 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33787 @r=`${PWD_COMMAND}`; export r; \
33788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33789 TFLAGS="$(STAGE1_TFLAGS)"; \
33790 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33791 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33792 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33793 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33794 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33795 else \
33796 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33797 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33798 fi; \
33799 else \
33800 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33801 fi; \
33802 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33803 $(RAW_CXX_TARGET_EXPORTS) \
33804 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33805 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33806 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33807 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
33808 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33809 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33810 case $(srcdir) in \
33811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33812 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33814 esac; \
33815 module_srcdir=libsanitizer; \
33816 $(SHELL) $$s/$$module_srcdir/configure \
33817 --srcdir=$${topdir}/$$module_srcdir \
33818 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33819 --target=${target_alias} \
33820 \
33821 $(STAGE1_CONFIGURE_FLAGS)
33822@endif target-libsanitizer-bootstrap
33823
33824.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
33825maybe-configure-stage2-target-libsanitizer:
33826@if target-libsanitizer-bootstrap
33827maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33828configure-stage2-target-libsanitizer:
33829 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33830 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33831 @r=`${PWD_COMMAND}`; export r; \
33832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33833 TFLAGS="$(STAGE2_TFLAGS)"; \
33834 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33835 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33836 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33837 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33838 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33839 else \
33840 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33841 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33842 fi; \
33843 else \
33844 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33845 fi; \
33846 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33847 $(RAW_CXX_TARGET_EXPORTS) \
33848 \
33849 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33850 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33851 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33852 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
33853 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33854 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33855 case $(srcdir) in \
33856 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33857 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33858 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33859 esac; \
33860 module_srcdir=libsanitizer; \
33861 $(SHELL) $$s/$$module_srcdir/configure \
33862 --srcdir=$${topdir}/$$module_srcdir \
33863 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33864 --target=${target_alias} \
22121df0 33865 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33866 $(STAGE2_CONFIGURE_FLAGS)
33867@endif target-libsanitizer-bootstrap
33868
33869.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
33870maybe-configure-stage3-target-libsanitizer:
33871@if target-libsanitizer-bootstrap
33872maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33873configure-stage3-target-libsanitizer:
33874 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33875 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33876 @r=`${PWD_COMMAND}`; export r; \
33877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33878 TFLAGS="$(STAGE3_TFLAGS)"; \
33879 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33880 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33881 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33882 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33883 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33884 else \
33885 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33886 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33887 fi; \
33888 else \
33889 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33890 fi; \
33891 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33892 $(RAW_CXX_TARGET_EXPORTS) \
33893 \
33894 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33895 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33896 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33897 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
33898 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33899 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33900 case $(srcdir) in \
33901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33902 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33904 esac; \
33905 module_srcdir=libsanitizer; \
33906 $(SHELL) $$s/$$module_srcdir/configure \
33907 --srcdir=$${topdir}/$$module_srcdir \
33908 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33909 --target=${target_alias} \
22121df0 33910 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33911 $(STAGE3_CONFIGURE_FLAGS)
33912@endif target-libsanitizer-bootstrap
33913
33914.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
33915maybe-configure-stage4-target-libsanitizer:
33916@if target-libsanitizer-bootstrap
33917maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33918configure-stage4-target-libsanitizer:
33919 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33920 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33921 @r=`${PWD_COMMAND}`; export r; \
33922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33923 TFLAGS="$(STAGE4_TFLAGS)"; \
33924 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33925 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33926 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33927 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33928 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33929 else \
33930 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33931 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33932 fi; \
33933 else \
33934 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33935 fi; \
33936 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33937 $(RAW_CXX_TARGET_EXPORTS) \
33938 \
33939 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33940 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33941 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33942 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
33943 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33944 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33945 case $(srcdir) in \
33946 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33947 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33948 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33949 esac; \
33950 module_srcdir=libsanitizer; \
33951 $(SHELL) $$s/$$module_srcdir/configure \
33952 --srcdir=$${topdir}/$$module_srcdir \
33953 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33954 --target=${target_alias} \
22121df0 33955 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33956 $(STAGE4_CONFIGURE_FLAGS)
33957@endif target-libsanitizer-bootstrap
33958
33959.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
33960maybe-configure-stageprofile-target-libsanitizer:
33961@if target-libsanitizer-bootstrap
33962maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
33963configure-stageprofile-target-libsanitizer:
33964 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33965 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33966 @r=`${PWD_COMMAND}`; export r; \
33967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33968 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33969 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33970 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33971 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33972 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33973 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33974 else \
33975 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33976 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33977 fi; \
33978 else \
33979 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33980 fi; \
33981 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33982 $(RAW_CXX_TARGET_EXPORTS) \
33983 \
33984 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33985 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33986 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33987 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
33988 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33989 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33990 case $(srcdir) in \
33991 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33992 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33993 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33994 esac; \
33995 module_srcdir=libsanitizer; \
33996 $(SHELL) $$s/$$module_srcdir/configure \
33997 --srcdir=$${topdir}/$$module_srcdir \
33998 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33999 --target=${target_alias} \
22121df0 34000 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34001 $(STAGEprofile_CONFIGURE_FLAGS)
34002@endif target-libsanitizer-bootstrap
34003
34004.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
34005maybe-configure-stagefeedback-target-libsanitizer:
34006@if target-libsanitizer-bootstrap
34007maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
34008configure-stagefeedback-target-libsanitizer:
34009 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34010 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34011 @r=`${PWD_COMMAND}`; export r; \
34012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34013 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34014 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34015 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34016 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34017 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34018 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34019 else \
34020 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34021 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34022 fi; \
34023 else \
34024 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34025 fi; \
34026 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34027 $(RAW_CXX_TARGET_EXPORTS) \
34028 \
34029 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34030 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34031 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34032 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
34033 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34034 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34035 case $(srcdir) in \
34036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34037 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34039 esac; \
34040 module_srcdir=libsanitizer; \
34041 $(SHELL) $$s/$$module_srcdir/configure \
34042 --srcdir=$${topdir}/$$module_srcdir \
34043 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34044 --target=${target_alias} \
22121df0 34045 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34046 $(STAGEfeedback_CONFIGURE_FLAGS)
34047@endif target-libsanitizer-bootstrap
34048
34049
34050
34051
34052
34053.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
34054maybe-all-target-libsanitizer:
34055@if gcc-bootstrap
34056all-target-libsanitizer: stage_current
34057@endif gcc-bootstrap
34058@if target-libsanitizer
34059TARGET-target-libsanitizer=all
34060maybe-all-target-libsanitizer: all-target-libsanitizer
34061all-target-libsanitizer: configure-target-libsanitizer
34062 @r=`${PWD_COMMAND}`; export r; \
34063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34064 $(RAW_CXX_TARGET_EXPORTS) \
34065 (cd $(TARGET_SUBDIR)/libsanitizer && \
34066 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34067 $(TARGET-target-libsanitizer))
34068@endif target-libsanitizer
34069
34070
34071
34072.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
34073.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
34074maybe-all-stage1-target-libsanitizer:
34075maybe-clean-stage1-target-libsanitizer:
34076@if target-libsanitizer-bootstrap
34077maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
34078all-stage1: all-stage1-target-libsanitizer
34079TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
34080all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
34081 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34082 @r=`${PWD_COMMAND}`; export r; \
34083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34084 TFLAGS="$(STAGE1_TFLAGS)"; \
34085 $(RAW_CXX_TARGET_EXPORTS) \
34086 cd $(TARGET_SUBDIR)/libsanitizer && \
34087 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34088 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34089 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34090 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34091 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34092 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34093 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34094 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34095 \
34096 TFLAGS="$(STAGE1_TFLAGS)" \
34097 $(TARGET-stage1-target-libsanitizer)
34098
34099maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
34100clean-stage1: clean-stage1-target-libsanitizer
34101clean-stage1-target-libsanitizer:
34102 @if [ $(current_stage) = stage1 ]; then \
34103 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34104 else \
34105 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
34106 $(MAKE) stage1-start; \
34107 fi; \
34108 cd $(TARGET_SUBDIR)/libsanitizer && \
34109 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34110 clean
34111@endif target-libsanitizer-bootstrap
34112
34113
34114.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
34115.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
34116maybe-all-stage2-target-libsanitizer:
34117maybe-clean-stage2-target-libsanitizer:
34118@if target-libsanitizer-bootstrap
34119maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
34120all-stage2: all-stage2-target-libsanitizer
34121TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
34122all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
34123 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34124 @r=`${PWD_COMMAND}`; export r; \
34125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34126 TFLAGS="$(STAGE2_TFLAGS)"; \
34127 $(RAW_CXX_TARGET_EXPORTS) \
34128 \
34129 cd $(TARGET_SUBDIR)/libsanitizer && \
34130 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34131 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34132 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34133 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34134 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34135 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34136 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34137 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34138 TFLAGS="$(STAGE2_TFLAGS)" \
34139 $(TARGET-stage2-target-libsanitizer)
34140
34141maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
34142clean-stage2: clean-stage2-target-libsanitizer
34143clean-stage2-target-libsanitizer:
34144 @if [ $(current_stage) = stage2 ]; then \
34145 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34146 else \
34147 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
34148 $(MAKE) stage2-start; \
34149 fi; \
34150 cd $(TARGET_SUBDIR)/libsanitizer && \
34151 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34152@endif target-libsanitizer-bootstrap
34153
34154
34155.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
34156.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
34157maybe-all-stage3-target-libsanitizer:
34158maybe-clean-stage3-target-libsanitizer:
34159@if target-libsanitizer-bootstrap
34160maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
34161all-stage3: all-stage3-target-libsanitizer
34162TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
34163all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
34164 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34165 @r=`${PWD_COMMAND}`; export r; \
34166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34167 TFLAGS="$(STAGE3_TFLAGS)"; \
34168 $(RAW_CXX_TARGET_EXPORTS) \
34169 \
34170 cd $(TARGET_SUBDIR)/libsanitizer && \
34171 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34172 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34173 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34174 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34175 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34176 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34177 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34178 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34179 TFLAGS="$(STAGE3_TFLAGS)" \
34180 $(TARGET-stage3-target-libsanitizer)
34181
34182maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
34183clean-stage3: clean-stage3-target-libsanitizer
34184clean-stage3-target-libsanitizer:
34185 @if [ $(current_stage) = stage3 ]; then \
34186 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34187 else \
34188 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
34189 $(MAKE) stage3-start; \
34190 fi; \
34191 cd $(TARGET_SUBDIR)/libsanitizer && \
34192 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34193@endif target-libsanitizer-bootstrap
34194
34195
34196.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
34197.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
34198maybe-all-stage4-target-libsanitizer:
34199maybe-clean-stage4-target-libsanitizer:
34200@if target-libsanitizer-bootstrap
34201maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
34202all-stage4: all-stage4-target-libsanitizer
34203TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
34204all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
34205 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34206 @r=`${PWD_COMMAND}`; export r; \
34207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34208 TFLAGS="$(STAGE4_TFLAGS)"; \
34209 $(RAW_CXX_TARGET_EXPORTS) \
34210 \
34211 cd $(TARGET_SUBDIR)/libsanitizer && \
34212 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34213 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34214 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34215 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
34216 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34217 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34218 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34219 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34220 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 34221 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 34222
1b6c0831
L
34223maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
34224clean-stage4: clean-stage4-target-libsanitizer
34225clean-stage4-target-libsanitizer:
e8a5fa9c 34226 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 34227 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34228 else \
1b6c0831 34229 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34230 $(MAKE) stage4-start; \
34231 fi; \
1b6c0831 34232 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34233 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34234@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34235
34236
1b6c0831
L
34237.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
34238.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
34239maybe-all-stageprofile-target-libsanitizer:
34240maybe-clean-stageprofile-target-libsanitizer:
34241@if target-libsanitizer-bootstrap
34242maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
34243all-stageprofile: all-stageprofile-target-libsanitizer
34244TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
34245all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
34246 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34247 @r=`${PWD_COMMAND}`; export r; \
34248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34249 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34250 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 34251 \
1b6c0831 34252 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
34253 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34254 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34255 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34256 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34257 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34258 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34259 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34260 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34261 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 34262 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 34263
1b6c0831
L
34264maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
34265clean-stageprofile: clean-stageprofile-target-libsanitizer
34266clean-stageprofile-target-libsanitizer:
e8a5fa9c 34267 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 34268 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34269 else \
1b6c0831 34270 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34271 $(MAKE) stageprofile-start; \
34272 fi; \
1b6c0831 34273 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34274 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34275@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34276
34277
1b6c0831
L
34278.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
34279.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
34280maybe-all-stagefeedback-target-libsanitizer:
34281maybe-clean-stagefeedback-target-libsanitizer:
34282@if target-libsanitizer-bootstrap
34283maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
34284all-stagefeedback: all-stagefeedback-target-libsanitizer
34285TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
34286all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
34287 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34288 @r=`${PWD_COMMAND}`; export r; \
34289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34290 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34291 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 34292 \
1b6c0831 34293 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
34294 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34295 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34296 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34297 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34298 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34299 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34300 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34301 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34302 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 34303 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 34304
1b6c0831
L
34305maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
34306clean-stagefeedback: clean-stagefeedback-target-libsanitizer
34307clean-stagefeedback-target-libsanitizer:
e8a5fa9c 34308 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 34309 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34310 else \
1b6c0831 34311 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34312 $(MAKE) stagefeedback-start; \
34313 fi; \
1b6c0831 34314 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34315 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34316@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34317
34318
34319
34320
d545f33b
PB
34321
34322
1b6c0831
L
34323.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
34324maybe-check-target-libsanitizer:
34325@if target-libsanitizer
34326maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 34327
1b6c0831 34328check-target-libsanitizer:
0aed8855 34329 @: $(MAKE); $(unstage)
b40e3958
L
34330 @r=`${PWD_COMMAND}`; export r; \
34331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34332 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34333 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 34334 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 34335
1b6c0831 34336@endif target-libsanitizer
3866be5d 34337
1b6c0831
L
34338.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
34339maybe-install-target-libsanitizer:
34340@if target-libsanitizer
34341maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 34342
1b6c0831 34343install-target-libsanitizer: installdirs
0aed8855 34344 @: $(MAKE); $(unstage)
b40e3958
L
34345 @r=`${PWD_COMMAND}`; export r; \
34346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34347 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34348 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 34349 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 34350
1b6c0831 34351@endif target-libsanitizer
e2b9e2dc 34352
1b6c0831
L
34353.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
34354maybe-install-strip-target-libsanitizer:
34355@if target-libsanitizer
34356maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 34357
1b6c0831 34358install-strip-target-libsanitizer: installdirs
9b980aa1
RW
34359 @: $(MAKE); $(unstage)
34360 @r=`${PWD_COMMAND}`; export r; \
34361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34362 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34363 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
34364 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34365
1b6c0831 34366@endif target-libsanitizer
9b980aa1 34367
56a8fe78 34368# Other targets (info, dvi, pdf, etc.)
3866be5d 34369
1b6c0831
L
34370.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
34371maybe-info-target-libsanitizer:
34372@if target-libsanitizer
34373maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 34374
1b6c0831
L
34375info-target-libsanitizer: \
34376 configure-target-libsanitizer
0aed8855 34377 @: $(MAKE); $(unstage)
22121df0 34378 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34379 r=`${PWD_COMMAND}`; export r; \
b40e3958 34380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34381 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34382 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34383 for flag in $(EXTRA_TARGET_FLAGS); do \
34384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34385 done; \
1b6c0831 34386 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34389 "RANLIB=$${RANLIB}" \
0c24b341 34390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34391 info) \
4fa63067 34392 || exit 1
3866be5d 34393
1b6c0831 34394@endif target-libsanitizer
3866be5d 34395
1b6c0831
L
34396.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
34397maybe-dvi-target-libsanitizer:
34398@if target-libsanitizer
34399maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 34400
1b6c0831
L
34401dvi-target-libsanitizer: \
34402 configure-target-libsanitizer
0aed8855 34403 @: $(MAKE); $(unstage)
22121df0 34404 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34405 r=`${PWD_COMMAND}`; export r; \
b40e3958 34406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34407 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34408 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34409 for flag in $(EXTRA_TARGET_FLAGS); do \
34410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34411 done; \
1b6c0831 34412 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34415 "RANLIB=$${RANLIB}" \
0c24b341 34416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34417 dvi) \
4fa63067 34418 || exit 1
3866be5d 34419
1b6c0831 34420@endif target-libsanitizer
3866be5d 34421
1b6c0831
L
34422.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
34423maybe-pdf-target-libsanitizer:
34424@if target-libsanitizer
34425maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 34426
1b6c0831
L
34427pdf-target-libsanitizer: \
34428 configure-target-libsanitizer
56a8fe78 34429 @: $(MAKE); $(unstage)
22121df0 34430 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
34431 r=`${PWD_COMMAND}`; export r; \
34432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34433 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34434 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
34435 for flag in $(EXTRA_TARGET_FLAGS); do \
34436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34437 done; \
1b6c0831 34438 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
34439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34441 "RANLIB=$${RANLIB}" \
0c24b341 34442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34443 pdf) \
34444 || exit 1
34445
1b6c0831 34446@endif target-libsanitizer
56a8fe78 34447
1b6c0831
L
34448.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
34449maybe-html-target-libsanitizer:
34450@if target-libsanitizer
34451maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 34452
1b6c0831
L
34453html-target-libsanitizer: \
34454 configure-target-libsanitizer
0aed8855 34455 @: $(MAKE); $(unstage)
22121df0 34456 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
34457 r=`${PWD_COMMAND}`; export r; \
34458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 34459 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34460 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
34461 for flag in $(EXTRA_TARGET_FLAGS); do \
34462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34463 done; \
1b6c0831 34464 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
34465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34467 "RANLIB=$${RANLIB}" \
0c24b341 34468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34469 html) \
34470 || exit 1
34471
1b6c0831 34472@endif target-libsanitizer
6d389afc 34473
1b6c0831
L
34474.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
34475maybe-TAGS-target-libsanitizer:
34476@if target-libsanitizer
34477maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 34478
1b6c0831
L
34479TAGS-target-libsanitizer: \
34480 configure-target-libsanitizer
0aed8855 34481 @: $(MAKE); $(unstage)
22121df0 34482 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
34483 r=`${PWD_COMMAND}`; export r; \
34484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34485 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34486 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34487 for flag in $(EXTRA_TARGET_FLAGS); do \
34488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34489 done; \
1b6c0831 34490 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34493 "RANLIB=$${RANLIB}" \
0c24b341 34494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34495 TAGS) \
e2b9e2dc
NN
34496 || exit 1
34497
1b6c0831 34498@endif target-libsanitizer
3866be5d 34499
1b6c0831
L
34500.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
34501maybe-install-info-target-libsanitizer:
34502@if target-libsanitizer
34503maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 34504
1b6c0831
L
34505install-info-target-libsanitizer: \
34506 configure-target-libsanitizer \
34507 info-target-libsanitizer
0aed8855 34508 @: $(MAKE); $(unstage)
22121df0 34509 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34510 r=`${PWD_COMMAND}`; export r; \
b40e3958 34511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34512 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34513 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34514 for flag in $(EXTRA_TARGET_FLAGS); do \
34515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34516 done; \
1b6c0831 34517 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34520 "RANLIB=$${RANLIB}" \
0c24b341 34521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34522 install-info) \
4fa63067 34523 || exit 1
3866be5d 34524
1b6c0831 34525@endif target-libsanitizer
3866be5d 34526
1b6c0831
L
34527.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
34528maybe-install-pdf-target-libsanitizer:
34529@if target-libsanitizer
34530maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 34531
1b6c0831
L
34532install-pdf-target-libsanitizer: \
34533 configure-target-libsanitizer \
34534 pdf-target-libsanitizer
a3ca38d2 34535 @: $(MAKE); $(unstage)
22121df0 34536 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
34537 r=`${PWD_COMMAND}`; export r; \
34538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34539 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34540 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
34541 for flag in $(EXTRA_TARGET_FLAGS); do \
34542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34543 done; \
1b6c0831 34544 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
34545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34547 "RANLIB=$${RANLIB}" \
0c24b341 34548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34549 install-pdf) \
34550 || exit 1
34551
1b6c0831 34552@endif target-libsanitizer
a3ca38d2 34553
1b6c0831
L
34554.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
34555maybe-install-html-target-libsanitizer:
34556@if target-libsanitizer
34557maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 34558
1b6c0831
L
34559install-html-target-libsanitizer: \
34560 configure-target-libsanitizer \
34561 html-target-libsanitizer
108a6f8e 34562 @: $(MAKE); $(unstage)
22121df0 34563 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
34564 r=`${PWD_COMMAND}`; export r; \
34565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34566 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34567 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
34568 for flag in $(EXTRA_TARGET_FLAGS); do \
34569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34570 done; \
1b6c0831 34571 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
34572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34574 "RANLIB=$${RANLIB}" \
0c24b341 34575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34576 install-html) \
34577 || exit 1
34578
1b6c0831 34579@endif target-libsanitizer
108a6f8e 34580
1b6c0831
L
34581.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
34582maybe-installcheck-target-libsanitizer:
34583@if target-libsanitizer
34584maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 34585
1b6c0831
L
34586installcheck-target-libsanitizer: \
34587 configure-target-libsanitizer
0aed8855 34588 @: $(MAKE); $(unstage)
22121df0 34589 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34590 r=`${PWD_COMMAND}`; export r; \
b40e3958 34591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34592 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34593 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34594 for flag in $(EXTRA_TARGET_FLAGS); do \
34595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34596 done; \
1b6c0831 34597 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34600 "RANLIB=$${RANLIB}" \
0c24b341 34601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34602 installcheck) \
4fa63067 34603 || exit 1
3866be5d 34604
1b6c0831 34605@endif target-libsanitizer
3866be5d 34606
1b6c0831
L
34607.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
34608maybe-mostlyclean-target-libsanitizer:
34609@if target-libsanitizer
34610maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 34611
1b6c0831 34612mostlyclean-target-libsanitizer:
0aed8855 34613 @: $(MAKE); $(unstage)
22121df0 34614 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
34615 r=`${PWD_COMMAND}`; export r; \
34616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34617 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34618 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34619 for flag in $(EXTRA_TARGET_FLAGS); do \
34620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34621 done; \
1b6c0831 34622 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34625 "RANLIB=$${RANLIB}" \
0c24b341 34626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34627 mostlyclean) \
e2b9e2dc
NN
34628 || exit 1
34629
1b6c0831 34630@endif target-libsanitizer
4fa63067 34631
1b6c0831
L
34632.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
34633maybe-clean-target-libsanitizer:
34634@if target-libsanitizer
34635maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 34636
1b6c0831 34637clean-target-libsanitizer:
0aed8855 34638 @: $(MAKE); $(unstage)
22121df0 34639 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34640 r=`${PWD_COMMAND}`; export r; \
b40e3958 34641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34642 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34643 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34644 for flag in $(EXTRA_TARGET_FLAGS); do \
34645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34646 done; \
1b6c0831 34647 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34650 "RANLIB=$${RANLIB}" \
0c24b341 34651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34652 clean) \
4fa63067 34653 || exit 1
3866be5d 34654
1b6c0831 34655@endif target-libsanitizer
3866be5d 34656
1b6c0831
L
34657.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
34658maybe-distclean-target-libsanitizer:
34659@if target-libsanitizer
34660maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 34661
1b6c0831 34662distclean-target-libsanitizer:
0aed8855 34663 @: $(MAKE); $(unstage)
22121df0 34664 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34665 r=`${PWD_COMMAND}`; export r; \
b40e3958 34666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34667 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34668 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34669 for flag in $(EXTRA_TARGET_FLAGS); do \
34670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34671 done; \
1b6c0831 34672 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34675 "RANLIB=$${RANLIB}" \
0c24b341 34676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34677 distclean) \
4fa63067 34678 || exit 1
3866be5d 34679
1b6c0831 34680@endif target-libsanitizer
3866be5d 34681
1b6c0831
L
34682.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
34683maybe-maintainer-clean-target-libsanitizer:
34684@if target-libsanitizer
34685maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 34686
1b6c0831 34687maintainer-clean-target-libsanitizer:
0aed8855 34688 @: $(MAKE); $(unstage)
22121df0 34689 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34690 r=`${PWD_COMMAND}`; export r; \
b40e3958 34691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34692 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34693 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34694 for flag in $(EXTRA_TARGET_FLAGS); do \
34695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34696 done; \
1b6c0831 34697 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34700 "RANLIB=$${RANLIB}" \
0c24b341 34701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34702 maintainer-clean) \
4fa63067 34703 || exit 1
3866be5d 34704
1b6c0831 34705@endif target-libsanitizer
3866be5d 34706
4fa63067 34707
4fa63067 34708
a7254363
PB
34709
34710
1b6c0831
L
34711.PHONY: configure-target-libmpx maybe-configure-target-libmpx
34712maybe-configure-target-libmpx:
5286fdef 34713@if gcc-bootstrap
1b6c0831 34714configure-target-libmpx: stage_current
5286fdef 34715@endif gcc-bootstrap
1b6c0831
L
34716@if target-libmpx
34717maybe-configure-target-libmpx: configure-target-libmpx
34718configure-target-libmpx:
5286fdef
L
34719 @r=`${PWD_COMMAND}`; export r; \
34720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 34721 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
34722 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
34723 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34724 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34725 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34726 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 34727 else \
1b6c0831
L
34728 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34729 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
34730 fi; \
34731 else \
1b6c0831 34732 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 34733 fi; \
1b6c0831 34734 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 34735 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
34736 $(NORMAL_TARGET_EXPORTS) \
34737 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
34738 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
34739 case $(srcdir) in \
34740 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34741 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
34742 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34743 esac; \
1b6c0831 34744 module_srcdir=libmpx; \
5286fdef 34745 rm -f no-such-file || : ; \
1b6c0831
L
34746 CONFIG_SITE=no-such-file $(SHELL) \
34747 $$s/$$module_srcdir/configure \
34748 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 34749 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34750 --target=${target_alias} \
5286fdef 34751 || exit 1
1b6c0831 34752@endif target-libmpx
5286fdef
L
34753
34754
34755
1b6c0831
L
34756.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
34757maybe-configure-stage1-target-libmpx:
34758@if target-libmpx-bootstrap
34759maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
34760configure-stage1-target-libmpx:
5eb08693 34761 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 34762 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34763 @r=`${PWD_COMMAND}`; export r; \
34764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34765 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 34766 echo "Checking multilib configuration for libmpx..."; \
22121df0 34767 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34768 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34769 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34770 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34771 else \
1b6c0831
L
34772 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34773 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34774 fi; \
34775 else \
1b6c0831 34776 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34777 fi; \
1b6c0831
L
34778 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34779 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34780 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34781 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34782 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34783 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
34784 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34785 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34786 case $(srcdir) in \
34787 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34788 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34789 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34790 esac; \
1b6c0831
L
34791 module_srcdir=libmpx; \
34792 $(SHELL) $$s/$$module_srcdir/configure \
34793 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34794 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34795 --target=${target_alias} \
34796 \
5eb08693 34797 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 34798@endif target-libmpx-bootstrap
5eb08693 34799
1b6c0831
L
34800.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
34801maybe-configure-stage2-target-libmpx:
34802@if target-libmpx-bootstrap
34803maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
34804configure-stage2-target-libmpx:
5eb08693 34805 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 34806 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34807 @r=`${PWD_COMMAND}`; export r; \
34808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34809 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 34810 echo "Checking multilib configuration for libmpx..."; \
22121df0 34811 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34812 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34813 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34814 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34815 else \
1b6c0831
L
34816 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34817 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34818 fi; \
34819 else \
1b6c0831 34820 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34821 fi; \
1b6c0831
L
34822 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34823 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34824 \
34825 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34826 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34827 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34828 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
34829 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34830 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34831 case $(srcdir) in \
34832 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34833 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34834 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34835 esac; \
1b6c0831
L
34836 module_srcdir=libmpx; \
34837 $(SHELL) $$s/$$module_srcdir/configure \
34838 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34839 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34840 --target=${target_alias} \
22121df0 34841 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34842 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 34843@endif target-libmpx-bootstrap
5eb08693 34844
1b6c0831
L
34845.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
34846maybe-configure-stage3-target-libmpx:
34847@if target-libmpx-bootstrap
34848maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
34849configure-stage3-target-libmpx:
5eb08693 34850 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 34851 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34852 @r=`${PWD_COMMAND}`; export r; \
34853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34854 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 34855 echo "Checking multilib configuration for libmpx..."; \
22121df0 34856 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34857 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34858 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34859 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34860 else \
1b6c0831
L
34861 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34862 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34863 fi; \
34864 else \
1b6c0831 34865 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34866 fi; \
1b6c0831
L
34867 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34868 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34869 \
34870 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34871 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34872 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34873 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
34874 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34875 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34876 case $(srcdir) in \
34877 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34878 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34879 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34880 esac; \
1b6c0831
L
34881 module_srcdir=libmpx; \
34882 $(SHELL) $$s/$$module_srcdir/configure \
34883 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34884 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34885 --target=${target_alias} \
22121df0 34886 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34887 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 34888@endif target-libmpx-bootstrap
5eb08693 34889
1b6c0831
L
34890.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
34891maybe-configure-stage4-target-libmpx:
34892@if target-libmpx-bootstrap
34893maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
34894configure-stage4-target-libmpx:
5eb08693 34895 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 34896 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34897 @r=`${PWD_COMMAND}`; export r; \
34898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34899 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 34900 echo "Checking multilib configuration for libmpx..."; \
22121df0 34901 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34902 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34903 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34904 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34905 else \
1b6c0831
L
34906 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34907 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34908 fi; \
34909 else \
1b6c0831 34910 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34911 fi; \
1b6c0831
L
34912 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34913 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34914 \
34915 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34916 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34917 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34918 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
34919 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34920 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34921 case $(srcdir) in \
34922 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34923 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34924 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34925 esac; \
1b6c0831
L
34926 module_srcdir=libmpx; \
34927 $(SHELL) $$s/$$module_srcdir/configure \
34928 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34929 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34930 --target=${target_alias} \
22121df0 34931 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34932 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 34933@endif target-libmpx-bootstrap
5eb08693 34934
1b6c0831
L
34935.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
34936maybe-configure-stageprofile-target-libmpx:
34937@if target-libmpx-bootstrap
34938maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
34939configure-stageprofile-target-libmpx:
5eb08693 34940 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 34941 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34942 @r=`${PWD_COMMAND}`; export r; \
34943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34944 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 34945 echo "Checking multilib configuration for libmpx..."; \
22121df0 34946 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34947 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34948 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34949 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34950 else \
1b6c0831
L
34951 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34952 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34953 fi; \
34954 else \
1b6c0831 34955 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34956 fi; \
1b6c0831
L
34957 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34958 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34959 \
34960 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34961 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34962 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34963 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
34964 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34965 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34966 case $(srcdir) in \
34967 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34968 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34969 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34970 esac; \
1b6c0831
L
34971 module_srcdir=libmpx; \
34972 $(SHELL) $$s/$$module_srcdir/configure \
34973 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34974 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34975 --target=${target_alias} \
22121df0 34976 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34977 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 34978@endif target-libmpx-bootstrap
5eb08693 34979
1b6c0831
L
34980.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
34981maybe-configure-stagefeedback-target-libmpx:
34982@if target-libmpx-bootstrap
34983maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
34984configure-stagefeedback-target-libmpx:
5eb08693 34985 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 34986 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34987 @r=`${PWD_COMMAND}`; export r; \
34988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34989 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 34990 echo "Checking multilib configuration for libmpx..."; \
22121df0 34991 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34992 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34993 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34994 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34995 else \
1b6c0831
L
34996 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34997 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34998 fi; \
34999 else \
1b6c0831 35000 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 35001 fi; \
1b6c0831
L
35002 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
35003 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35004 \
35005 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35006 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35007 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35008 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
35009 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 35010 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
35011 case $(srcdir) in \
35012 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35013 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35014 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35015 esac; \
1b6c0831
L
35016 module_srcdir=libmpx; \
35017 $(SHELL) $$s/$$module_srcdir/configure \
35018 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35019 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35020 --target=${target_alias} \
22121df0 35021 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 35022 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 35023@endif target-libmpx-bootstrap
5eb08693
L
35024
35025
35026
5286fdef
L
35027
35028
1b6c0831
L
35029.PHONY: all-target-libmpx maybe-all-target-libmpx
35030maybe-all-target-libmpx:
5286fdef 35031@if gcc-bootstrap
1b6c0831 35032all-target-libmpx: stage_current
5286fdef 35033@endif gcc-bootstrap
1b6c0831
L
35034@if target-libmpx
35035TARGET-target-libmpx=all
35036maybe-all-target-libmpx: all-target-libmpx
35037all-target-libmpx: configure-target-libmpx
5286fdef
L
35038 @r=`${PWD_COMMAND}`; export r; \
35039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35040 $(NORMAL_TARGET_EXPORTS) \
35041 (cd $(TARGET_SUBDIR)/libmpx && \
35042 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
35043 $(TARGET-target-libmpx))
35044@endif target-libmpx
5286fdef
L
35045
35046
35047
1b6c0831
L
35048.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
35049.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
35050maybe-all-stage1-target-libmpx:
35051maybe-clean-stage1-target-libmpx:
35052@if target-libmpx-bootstrap
35053maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
35054all-stage1: all-stage1-target-libmpx
35055TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
35056all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
35057 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35058 @r=`${PWD_COMMAND}`; export r; \
35059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35060 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
35061 $(NORMAL_TARGET_EXPORTS) \
35062 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35063 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35064 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35065 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35066 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35067 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35068 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35069 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35070 $(EXTRA_TARGET_FLAGS) \
5eb08693
L
35071 \
35072 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 35073 $(TARGET-stage1-target-libmpx)
5eb08693 35074
1b6c0831
L
35075maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
35076clean-stage1: clean-stage1-target-libmpx
35077clean-stage1-target-libmpx:
5eb08693 35078 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 35079 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35080 else \
1b6c0831 35081 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
35082 $(MAKE) stage1-start; \
35083 fi; \
1b6c0831
L
35084 cd $(TARGET_SUBDIR)/libmpx && \
35085 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 35086 clean
1b6c0831
L
35087@endif target-libmpx-bootstrap
35088
35089
35090.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
35091.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
35092maybe-all-stage2-target-libmpx:
35093maybe-clean-stage2-target-libmpx:
35094@if target-libmpx-bootstrap
35095maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
35096all-stage2: all-stage2-target-libmpx
35097TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
35098all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
35099 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35100 @r=`${PWD_COMMAND}`; export r; \
35101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35102 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 35103 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35104 \
1b6c0831 35105 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35106 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35107 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35108 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35109 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35110 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35111 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35112 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35113 $(EXTRA_TARGET_FLAGS) \
5eb08693 35114 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 35115 $(TARGET-stage2-target-libmpx)
5eb08693 35116
1b6c0831
L
35117maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
35118clean-stage2: clean-stage2-target-libmpx
35119clean-stage2-target-libmpx:
5eb08693 35120 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 35121 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35122 else \
1b6c0831 35123 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
35124 $(MAKE) stage2-start; \
35125 fi; \
1b6c0831
L
35126 cd $(TARGET_SUBDIR)/libmpx && \
35127 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35128@endif target-libmpx-bootstrap
35129
35130
35131.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
35132.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
35133maybe-all-stage3-target-libmpx:
35134maybe-clean-stage3-target-libmpx:
35135@if target-libmpx-bootstrap
35136maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
35137all-stage3: all-stage3-target-libmpx
35138TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
35139all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
35140 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35141 @r=`${PWD_COMMAND}`; export r; \
35142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35143 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 35144 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35145 \
1b6c0831 35146 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35147 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35148 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35149 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35150 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35151 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35152 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35153 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35154 $(EXTRA_TARGET_FLAGS) \
5eb08693 35155 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 35156 $(TARGET-stage3-target-libmpx)
5eb08693 35157
1b6c0831
L
35158maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
35159clean-stage3: clean-stage3-target-libmpx
35160clean-stage3-target-libmpx:
5eb08693 35161 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 35162 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35163 else \
1b6c0831 35164 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
35165 $(MAKE) stage3-start; \
35166 fi; \
1b6c0831
L
35167 cd $(TARGET_SUBDIR)/libmpx && \
35168 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35169@endif target-libmpx-bootstrap
35170
35171
35172.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
35173.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
35174maybe-all-stage4-target-libmpx:
35175maybe-clean-stage4-target-libmpx:
35176@if target-libmpx-bootstrap
35177maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
35178all-stage4: all-stage4-target-libmpx
35179TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
35180all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
35181 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35182 @r=`${PWD_COMMAND}`; export r; \
35183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35184 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 35185 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35186 \
1b6c0831 35187 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35188 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35189 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35190 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35191 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35192 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35193 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35194 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35195 $(EXTRA_TARGET_FLAGS) \
5eb08693 35196 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 35197 $(TARGET-stage4-target-libmpx)
5eb08693 35198
1b6c0831
L
35199maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
35200clean-stage4: clean-stage4-target-libmpx
35201clean-stage4-target-libmpx:
5eb08693 35202 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 35203 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35204 else \
1b6c0831 35205 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
35206 $(MAKE) stage4-start; \
35207 fi; \
1b6c0831
L
35208 cd $(TARGET_SUBDIR)/libmpx && \
35209 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35210@endif target-libmpx-bootstrap
35211
35212
35213.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
35214.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
35215maybe-all-stageprofile-target-libmpx:
35216maybe-clean-stageprofile-target-libmpx:
35217@if target-libmpx-bootstrap
35218maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
35219all-stageprofile: all-stageprofile-target-libmpx
35220TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
35221all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
35222 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35223 @r=`${PWD_COMMAND}`; export r; \
35224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35225 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 35226 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35227 \
1b6c0831 35228 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35229 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35230 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35231 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35232 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35233 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35234 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35235 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35236 $(EXTRA_TARGET_FLAGS) \
5eb08693 35237 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 35238 $(TARGET-stageprofile-target-libmpx)
5eb08693 35239
1b6c0831
L
35240maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
35241clean-stageprofile: clean-stageprofile-target-libmpx
35242clean-stageprofile-target-libmpx:
5eb08693 35243 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 35244 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35245 else \
1b6c0831 35246 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
35247 $(MAKE) stageprofile-start; \
35248 fi; \
1b6c0831
L
35249 cd $(TARGET_SUBDIR)/libmpx && \
35250 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35251@endif target-libmpx-bootstrap
35252
35253
35254.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
35255.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
35256maybe-all-stagefeedback-target-libmpx:
35257maybe-clean-stagefeedback-target-libmpx:
35258@if target-libmpx-bootstrap
35259maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
35260all-stagefeedback: all-stagefeedback-target-libmpx
35261TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
35262all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
35263 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35264 @r=`${PWD_COMMAND}`; export r; \
35265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35266 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 35267 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35268 \
1b6c0831 35269 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35270 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35271 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35272 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35273 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35274 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35275 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35276 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35277 $(EXTRA_TARGET_FLAGS) \
5eb08693 35278 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 35279 $(TARGET-stagefeedback-target-libmpx)
5eb08693 35280
1b6c0831
L
35281maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
35282clean-stagefeedback: clean-stagefeedback-target-libmpx
35283clean-stagefeedback-target-libmpx:
5eb08693 35284 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 35285 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35286 else \
1b6c0831 35287 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
35288 $(MAKE) stagefeedback-start; \
35289 fi; \
1b6c0831
L
35290 cd $(TARGET_SUBDIR)/libmpx && \
35291 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35292@endif target-libmpx-bootstrap
5eb08693
L
35293
35294
35295
35296
5286fdef
L
35297
35298
1b6c0831
L
35299.PHONY: check-target-libmpx maybe-check-target-libmpx
35300maybe-check-target-libmpx:
35301@if target-libmpx
35302maybe-check-target-libmpx: check-target-libmpx
5286fdef 35303
1b6c0831 35304check-target-libmpx:
5286fdef
L
35305 @: $(MAKE); $(unstage)
35306 @r=`${PWD_COMMAND}`; export r; \
35307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35308 $(NORMAL_TARGET_EXPORTS) \
35309 (cd $(TARGET_SUBDIR)/libmpx && \
35310 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 35311
1b6c0831 35312@endif target-libmpx
5286fdef 35313
1b6c0831
L
35314.PHONY: install-target-libmpx maybe-install-target-libmpx
35315maybe-install-target-libmpx:
35316@if target-libmpx
35317maybe-install-target-libmpx: install-target-libmpx
5286fdef 35318
1b6c0831 35319install-target-libmpx: installdirs
5286fdef
L
35320 @: $(MAKE); $(unstage)
35321 @r=`${PWD_COMMAND}`; export r; \
35322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35323 $(NORMAL_TARGET_EXPORTS) \
35324 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35325 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35326
1b6c0831 35327@endif target-libmpx
5286fdef 35328
1b6c0831
L
35329.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
35330maybe-install-strip-target-libmpx:
35331@if target-libmpx
35332maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 35333
1b6c0831 35334install-strip-target-libmpx: installdirs
5286fdef
L
35335 @: $(MAKE); $(unstage)
35336 @r=`${PWD_COMMAND}`; export r; \
35337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35338 $(NORMAL_TARGET_EXPORTS) \
35339 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35340 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35341
1b6c0831 35342@endif target-libmpx
5286fdef
L
35343
35344# Other targets (info, dvi, pdf, etc.)
35345
1b6c0831
L
35346.PHONY: maybe-info-target-libmpx info-target-libmpx
35347maybe-info-target-libmpx:
35348@if target-libmpx
35349maybe-info-target-libmpx: info-target-libmpx
5286fdef 35350
1b6c0831
L
35351info-target-libmpx: \
35352 configure-target-libmpx
5286fdef 35353 @: $(MAKE); $(unstage)
22121df0 35354 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35355 r=`${PWD_COMMAND}`; export r; \
35356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35357 $(NORMAL_TARGET_EXPORTS) \
22121df0 35358 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35359 for flag in $(EXTRA_TARGET_FLAGS); do \
35360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35361 done; \
1b6c0831 35362 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35365 "RANLIB=$${RANLIB}" \
35366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35367 info) \
35368 || exit 1
35369
1b6c0831 35370@endif target-libmpx
5286fdef 35371
1b6c0831
L
35372.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
35373maybe-dvi-target-libmpx:
35374@if target-libmpx
35375maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 35376
1b6c0831
L
35377dvi-target-libmpx: \
35378 configure-target-libmpx
5286fdef 35379 @: $(MAKE); $(unstage)
22121df0 35380 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35381 r=`${PWD_COMMAND}`; export r; \
35382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35383 $(NORMAL_TARGET_EXPORTS) \
22121df0 35384 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35385 for flag in $(EXTRA_TARGET_FLAGS); do \
35386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35387 done; \
1b6c0831 35388 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35391 "RANLIB=$${RANLIB}" \
35392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35393 dvi) \
35394 || exit 1
35395
1b6c0831 35396@endif target-libmpx
5286fdef 35397
1b6c0831
L
35398.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
35399maybe-pdf-target-libmpx:
35400@if target-libmpx
35401maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 35402
1b6c0831
L
35403pdf-target-libmpx: \
35404 configure-target-libmpx
5286fdef 35405 @: $(MAKE); $(unstage)
22121df0 35406 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35407 r=`${PWD_COMMAND}`; export r; \
35408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35409 $(NORMAL_TARGET_EXPORTS) \
22121df0 35410 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35411 for flag in $(EXTRA_TARGET_FLAGS); do \
35412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35413 done; \
1b6c0831 35414 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35417 "RANLIB=$${RANLIB}" \
35418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35419 pdf) \
35420 || exit 1
35421
1b6c0831 35422@endif target-libmpx
5286fdef 35423
1b6c0831
L
35424.PHONY: maybe-html-target-libmpx html-target-libmpx
35425maybe-html-target-libmpx:
35426@if target-libmpx
35427maybe-html-target-libmpx: html-target-libmpx
5286fdef 35428
1b6c0831
L
35429html-target-libmpx: \
35430 configure-target-libmpx
5286fdef 35431 @: $(MAKE); $(unstage)
22121df0 35432 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35433 r=`${PWD_COMMAND}`; export r; \
35434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35435 $(NORMAL_TARGET_EXPORTS) \
22121df0 35436 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35437 for flag in $(EXTRA_TARGET_FLAGS); do \
35438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35439 done; \
1b6c0831 35440 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35443 "RANLIB=$${RANLIB}" \
35444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35445 html) \
35446 || exit 1
35447
1b6c0831 35448@endif target-libmpx
5286fdef 35449
1b6c0831
L
35450.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
35451maybe-TAGS-target-libmpx:
35452@if target-libmpx
35453maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 35454
1b6c0831
L
35455TAGS-target-libmpx: \
35456 configure-target-libmpx
5286fdef 35457 @: $(MAKE); $(unstage)
22121df0 35458 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35459 r=`${PWD_COMMAND}`; export r; \
35460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35461 $(NORMAL_TARGET_EXPORTS) \
22121df0 35462 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35463 for flag in $(EXTRA_TARGET_FLAGS); do \
35464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35465 done; \
1b6c0831 35466 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35469 "RANLIB=$${RANLIB}" \
35470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35471 TAGS) \
35472 || exit 1
35473
1b6c0831 35474@endif target-libmpx
5286fdef 35475
1b6c0831
L
35476.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
35477maybe-install-info-target-libmpx:
35478@if target-libmpx
35479maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 35480
1b6c0831
L
35481install-info-target-libmpx: \
35482 configure-target-libmpx \
35483 info-target-libmpx
5286fdef 35484 @: $(MAKE); $(unstage)
22121df0 35485 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35486 r=`${PWD_COMMAND}`; export r; \
35487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35488 $(NORMAL_TARGET_EXPORTS) \
22121df0 35489 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35490 for flag in $(EXTRA_TARGET_FLAGS); do \
35491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35492 done; \
1b6c0831 35493 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35496 "RANLIB=$${RANLIB}" \
35497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35498 install-info) \
35499 || exit 1
35500
1b6c0831 35501@endif target-libmpx
5286fdef 35502
1b6c0831
L
35503.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
35504maybe-install-pdf-target-libmpx:
35505@if target-libmpx
35506maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 35507
1b6c0831
L
35508install-pdf-target-libmpx: \
35509 configure-target-libmpx \
35510 pdf-target-libmpx
5286fdef 35511 @: $(MAKE); $(unstage)
22121df0 35512 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35513 r=`${PWD_COMMAND}`; export r; \
35514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35515 $(NORMAL_TARGET_EXPORTS) \
22121df0 35516 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35517 for flag in $(EXTRA_TARGET_FLAGS); do \
35518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35519 done; \
1b6c0831 35520 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35523 "RANLIB=$${RANLIB}" \
35524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35525 install-pdf) \
35526 || exit 1
35527
1b6c0831 35528@endif target-libmpx
5286fdef 35529
1b6c0831
L
35530.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
35531maybe-install-html-target-libmpx:
35532@if target-libmpx
35533maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 35534
1b6c0831
L
35535install-html-target-libmpx: \
35536 configure-target-libmpx \
35537 html-target-libmpx
5286fdef 35538 @: $(MAKE); $(unstage)
22121df0 35539 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35540 r=`${PWD_COMMAND}`; export r; \
35541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35542 $(NORMAL_TARGET_EXPORTS) \
22121df0 35543 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35544 for flag in $(EXTRA_TARGET_FLAGS); do \
35545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35546 done; \
1b6c0831 35547 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35550 "RANLIB=$${RANLIB}" \
35551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35552 install-html) \
35553 || exit 1
35554
1b6c0831 35555@endif target-libmpx
5286fdef 35556
1b6c0831
L
35557.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
35558maybe-installcheck-target-libmpx:
35559@if target-libmpx
35560maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 35561
1b6c0831
L
35562installcheck-target-libmpx: \
35563 configure-target-libmpx
5286fdef 35564 @: $(MAKE); $(unstage)
22121df0 35565 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35566 r=`${PWD_COMMAND}`; export r; \
35567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35568 $(NORMAL_TARGET_EXPORTS) \
22121df0 35569 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35570 for flag in $(EXTRA_TARGET_FLAGS); do \
35571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35572 done; \
1b6c0831 35573 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35576 "RANLIB=$${RANLIB}" \
35577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35578 installcheck) \
35579 || exit 1
35580
1b6c0831 35581@endif target-libmpx
5286fdef 35582
1b6c0831
L
35583.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
35584maybe-mostlyclean-target-libmpx:
35585@if target-libmpx
35586maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 35587
1b6c0831 35588mostlyclean-target-libmpx:
5286fdef 35589 @: $(MAKE); $(unstage)
22121df0 35590 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35591 r=`${PWD_COMMAND}`; export r; \
35592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35593 $(NORMAL_TARGET_EXPORTS) \
22121df0 35594 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35595 for flag in $(EXTRA_TARGET_FLAGS); do \
35596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35597 done; \
1b6c0831 35598 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35601 "RANLIB=$${RANLIB}" \
35602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35603 mostlyclean) \
35604 || exit 1
35605
1b6c0831 35606@endif target-libmpx
5286fdef 35607
1b6c0831
L
35608.PHONY: maybe-clean-target-libmpx clean-target-libmpx
35609maybe-clean-target-libmpx:
35610@if target-libmpx
35611maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 35612
1b6c0831 35613clean-target-libmpx:
5286fdef 35614 @: $(MAKE); $(unstage)
22121df0 35615 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35616 r=`${PWD_COMMAND}`; export r; \
35617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35618 $(NORMAL_TARGET_EXPORTS) \
22121df0 35619 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35620 for flag in $(EXTRA_TARGET_FLAGS); do \
35621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35622 done; \
1b6c0831 35623 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35626 "RANLIB=$${RANLIB}" \
35627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35628 clean) \
35629 || exit 1
35630
1b6c0831 35631@endif target-libmpx
5286fdef 35632
1b6c0831
L
35633.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
35634maybe-distclean-target-libmpx:
35635@if target-libmpx
35636maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 35637
1b6c0831 35638distclean-target-libmpx:
5286fdef 35639 @: $(MAKE); $(unstage)
22121df0 35640 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35641 r=`${PWD_COMMAND}`; export r; \
35642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35643 $(NORMAL_TARGET_EXPORTS) \
22121df0 35644 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35645 for flag in $(EXTRA_TARGET_FLAGS); do \
35646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35647 done; \
1b6c0831 35648 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35651 "RANLIB=$${RANLIB}" \
35652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35653 distclean) \
35654 || exit 1
35655
1b6c0831 35656@endif target-libmpx
5286fdef 35657
1b6c0831
L
35658.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
35659maybe-maintainer-clean-target-libmpx:
35660@if target-libmpx
35661maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 35662
1b6c0831 35663maintainer-clean-target-libmpx:
5286fdef 35664 @: $(MAKE); $(unstage)
22121df0 35665 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35666 r=`${PWD_COMMAND}`; export r; \
35667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35668 $(NORMAL_TARGET_EXPORTS) \
22121df0 35669 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35670 for flag in $(EXTRA_TARGET_FLAGS); do \
35671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35672 done; \
1b6c0831 35673 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35676 "RANLIB=$${RANLIB}" \
35677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35678 maintainer-clean) \
35679 || exit 1
35680
1b6c0831 35681@endif target-libmpx
5286fdef
L
35682
35683
35684
35685
35686
95e43135
JBG
35687.PHONY: configure-target-libvtv maybe-configure-target-libvtv
35688maybe-configure-target-libvtv:
35689@if gcc-bootstrap
35690configure-target-libvtv: stage_current
35691@endif gcc-bootstrap
35692@if target-libvtv
35693maybe-configure-target-libvtv: configure-target-libvtv
35694configure-target-libvtv:
35695 @r=`${PWD_COMMAND}`; export r; \
35696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35697 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
35698 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
35699 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35700 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35701 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35702 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35703 else \
35704 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35705 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35706 fi; \
35707 else \
35708 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35709 fi; \
35710 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 35711 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35712 $(RAW_CXX_TARGET_EXPORTS) \
35713 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
35714 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
35715 case $(srcdir) in \
35716 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35717 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35718 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35719 esac; \
1b6c0831 35720 module_srcdir=libvtv; \
95e43135 35721 rm -f no-such-file || : ; \
1b6c0831
L
35722 CONFIG_SITE=no-such-file $(SHELL) \
35723 $$s/$$module_srcdir/configure \
35724 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35725 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35726 --target=${target_alias} \
95e43135
JBG
35727 || exit 1
35728@endif target-libvtv
35729
35730
35731
35732.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
35733maybe-configure-stage1-target-libvtv:
35734@if target-libvtv-bootstrap
35735maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
35736configure-stage1-target-libvtv:
35737 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35738 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35739 @r=`${PWD_COMMAND}`; export r; \
35740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35741 TFLAGS="$(STAGE1_TFLAGS)"; \
35742 echo "Checking multilib configuration for libvtv..."; \
22121df0 35743 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35744 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35745 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35746 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35747 else \
35748 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35749 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35750 fi; \
35751 else \
35752 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35753 fi; \
35754 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35755 $(RAW_CXX_TARGET_EXPORTS) \
35756 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35757 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35758 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35759 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
35760 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35761 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35762 case $(srcdir) in \
35763 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35764 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35765 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35766 esac; \
1b6c0831
L
35767 module_srcdir=libvtv; \
35768 $(SHELL) $$s/$$module_srcdir/configure \
35769 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35770 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35771 --target=${target_alias} \
35772 \
95e43135
JBG
35773 $(STAGE1_CONFIGURE_FLAGS)
35774@endif target-libvtv-bootstrap
35775
35776.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
35777maybe-configure-stage2-target-libvtv:
35778@if target-libvtv-bootstrap
35779maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
35780configure-stage2-target-libvtv:
35781 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35782 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35783 @r=`${PWD_COMMAND}`; export r; \
35784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35785 TFLAGS="$(STAGE2_TFLAGS)"; \
35786 echo "Checking multilib configuration for libvtv..."; \
22121df0 35787 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35788 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35789 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35790 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35791 else \
35792 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35793 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35794 fi; \
35795 else \
35796 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35797 fi; \
35798 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35799 $(RAW_CXX_TARGET_EXPORTS) \
35800 \
35801 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35802 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35803 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35804 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
35805 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35806 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35807 case $(srcdir) in \
35808 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35809 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35810 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35811 esac; \
1b6c0831
L
35812 module_srcdir=libvtv; \
35813 $(SHELL) $$s/$$module_srcdir/configure \
35814 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35815 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35816 --target=${target_alias} \
22121df0 35817 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35818 $(STAGE2_CONFIGURE_FLAGS)
35819@endif target-libvtv-bootstrap
35820
35821.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
35822maybe-configure-stage3-target-libvtv:
35823@if target-libvtv-bootstrap
35824maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
35825configure-stage3-target-libvtv:
35826 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35827 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35828 @r=`${PWD_COMMAND}`; export r; \
35829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35830 TFLAGS="$(STAGE3_TFLAGS)"; \
35831 echo "Checking multilib configuration for libvtv..."; \
22121df0 35832 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35833 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35834 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35835 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35836 else \
35837 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35838 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35839 fi; \
35840 else \
35841 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35842 fi; \
35843 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35844 $(RAW_CXX_TARGET_EXPORTS) \
35845 \
35846 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35847 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35848 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35849 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
35850 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35851 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35852 case $(srcdir) in \
35853 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35854 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35855 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35856 esac; \
1b6c0831
L
35857 module_srcdir=libvtv; \
35858 $(SHELL) $$s/$$module_srcdir/configure \
35859 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35860 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35861 --target=${target_alias} \
22121df0 35862 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35863 $(STAGE3_CONFIGURE_FLAGS)
35864@endif target-libvtv-bootstrap
35865
35866.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
35867maybe-configure-stage4-target-libvtv:
35868@if target-libvtv-bootstrap
35869maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
35870configure-stage4-target-libvtv:
35871 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35872 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35873 @r=`${PWD_COMMAND}`; export r; \
35874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35875 TFLAGS="$(STAGE4_TFLAGS)"; \
35876 echo "Checking multilib configuration for libvtv..."; \
22121df0 35877 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35878 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35879 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35880 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35881 else \
35882 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35883 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35884 fi; \
35885 else \
35886 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35887 fi; \
35888 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35889 $(RAW_CXX_TARGET_EXPORTS) \
35890 \
35891 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35892 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35893 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35894 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
35895 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35896 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35897 case $(srcdir) in \
35898 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35899 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35900 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35901 esac; \
1b6c0831
L
35902 module_srcdir=libvtv; \
35903 $(SHELL) $$s/$$module_srcdir/configure \
35904 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35905 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35906 --target=${target_alias} \
22121df0 35907 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35908 $(STAGE4_CONFIGURE_FLAGS)
35909@endif target-libvtv-bootstrap
35910
35911.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
35912maybe-configure-stageprofile-target-libvtv:
35913@if target-libvtv-bootstrap
35914maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35915configure-stageprofile-target-libvtv:
35916 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35917 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35918 @r=`${PWD_COMMAND}`; export r; \
35919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35920 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35921 echo "Checking multilib configuration for libvtv..."; \
22121df0 35922 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35923 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35924 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35925 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35926 else \
35927 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35928 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35929 fi; \
35930 else \
35931 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35932 fi; \
35933 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35934 $(RAW_CXX_TARGET_EXPORTS) \
35935 \
35936 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35937 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35938 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35939 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
35940 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35941 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35942 case $(srcdir) in \
35943 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35944 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35945 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35946 esac; \
1b6c0831
L
35947 module_srcdir=libvtv; \
35948 $(SHELL) $$s/$$module_srcdir/configure \
35949 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35950 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35951 --target=${target_alias} \
22121df0 35952 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35953 $(STAGEprofile_CONFIGURE_FLAGS)
35954@endif target-libvtv-bootstrap
35955
35956.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
35957maybe-configure-stagefeedback-target-libvtv:
35958@if target-libvtv-bootstrap
35959maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35960configure-stagefeedback-target-libvtv:
35961 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35962 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35963 @r=`${PWD_COMMAND}`; export r; \
35964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35965 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35966 echo "Checking multilib configuration for libvtv..."; \
22121df0 35967 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35968 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35969 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35970 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35971 else \
35972 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35973 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35974 fi; \
35975 else \
35976 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35977 fi; \
35978 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35979 $(RAW_CXX_TARGET_EXPORTS) \
35980 \
35981 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35982 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35983 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35984 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
35985 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35986 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35987 case $(srcdir) in \
35988 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35989 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35990 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35991 esac; \
1b6c0831
L
35992 module_srcdir=libvtv; \
35993 $(SHELL) $$s/$$module_srcdir/configure \
35994 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35995 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35996 --target=${target_alias} \
22121df0 35997 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35998 $(STAGEfeedback_CONFIGURE_FLAGS)
35999@endif target-libvtv-bootstrap
36000
36001
36002
36003
36004
36005.PHONY: all-target-libvtv maybe-all-target-libvtv
36006maybe-all-target-libvtv:
36007@if gcc-bootstrap
36008all-target-libvtv: stage_current
36009@endif gcc-bootstrap
36010@if target-libvtv
36011TARGET-target-libvtv=all
36012maybe-all-target-libvtv: all-target-libvtv
36013all-target-libvtv: configure-target-libvtv
36014 @r=`${PWD_COMMAND}`; export r; \
36015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36016 $(RAW_CXX_TARGET_EXPORTS) \
36017 (cd $(TARGET_SUBDIR)/libvtv && \
36018 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36019 $(TARGET-target-libvtv))
36020@endif target-libvtv
36021
36022
36023
36024.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
36025.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
36026maybe-all-stage1-target-libvtv:
36027maybe-clean-stage1-target-libvtv:
36028@if target-libvtv-bootstrap
36029maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
36030all-stage1: all-stage1-target-libvtv
36031TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
36032all-stage1-target-libvtv: configure-stage1-target-libvtv
36033 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36034 @r=`${PWD_COMMAND}`; export r; \
36035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36036 TFLAGS="$(STAGE1_TFLAGS)"; \
36037 $(RAW_CXX_TARGET_EXPORTS) \
36038 cd $(TARGET_SUBDIR)/libvtv && \
36039 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36040 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36041 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36042 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36043 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36044 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36045 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36046 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36047 \
36048 TFLAGS="$(STAGE1_TFLAGS)" \
36049 $(TARGET-stage1-target-libvtv)
36050
36051maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
36052clean-stage1: clean-stage1-target-libvtv
36053clean-stage1-target-libvtv:
36054 @if [ $(current_stage) = stage1 ]; then \
36055 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36056 else \
36057 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
36058 $(MAKE) stage1-start; \
36059 fi; \
36060 cd $(TARGET_SUBDIR)/libvtv && \
36061 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36062 clean
36063@endif target-libvtv-bootstrap
36064
36065
36066.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
36067.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
36068maybe-all-stage2-target-libvtv:
36069maybe-clean-stage2-target-libvtv:
36070@if target-libvtv-bootstrap
36071maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
36072all-stage2: all-stage2-target-libvtv
36073TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
36074all-stage2-target-libvtv: configure-stage2-target-libvtv
36075 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36076 @r=`${PWD_COMMAND}`; export r; \
36077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36078 TFLAGS="$(STAGE2_TFLAGS)"; \
36079 $(RAW_CXX_TARGET_EXPORTS) \
36080 \
36081 cd $(TARGET_SUBDIR)/libvtv && \
36082 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36083 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36084 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36085 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36086 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36087 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36088 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36089 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36090 TFLAGS="$(STAGE2_TFLAGS)" \
36091 $(TARGET-stage2-target-libvtv)
36092
36093maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
36094clean-stage2: clean-stage2-target-libvtv
36095clean-stage2-target-libvtv:
36096 @if [ $(current_stage) = stage2 ]; then \
36097 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36098 else \
36099 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
36100 $(MAKE) stage2-start; \
36101 fi; \
36102 cd $(TARGET_SUBDIR)/libvtv && \
36103 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36104@endif target-libvtv-bootstrap
36105
36106
36107.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
36108.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
36109maybe-all-stage3-target-libvtv:
36110maybe-clean-stage3-target-libvtv:
36111@if target-libvtv-bootstrap
36112maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
36113all-stage3: all-stage3-target-libvtv
36114TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
36115all-stage3-target-libvtv: configure-stage3-target-libvtv
36116 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36117 @r=`${PWD_COMMAND}`; export r; \
36118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36119 TFLAGS="$(STAGE3_TFLAGS)"; \
36120 $(RAW_CXX_TARGET_EXPORTS) \
36121 \
36122 cd $(TARGET_SUBDIR)/libvtv && \
36123 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36124 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36125 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36126 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36127 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36128 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36129 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36130 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36131 TFLAGS="$(STAGE3_TFLAGS)" \
36132 $(TARGET-stage3-target-libvtv)
36133
36134maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
36135clean-stage3: clean-stage3-target-libvtv
36136clean-stage3-target-libvtv:
36137 @if [ $(current_stage) = stage3 ]; then \
36138 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36139 else \
36140 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
36141 $(MAKE) stage3-start; \
36142 fi; \
36143 cd $(TARGET_SUBDIR)/libvtv && \
36144 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36145@endif target-libvtv-bootstrap
36146
36147
36148.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
36149.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
36150maybe-all-stage4-target-libvtv:
36151maybe-clean-stage4-target-libvtv:
36152@if target-libvtv-bootstrap
36153maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
36154all-stage4: all-stage4-target-libvtv
36155TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
36156all-stage4-target-libvtv: configure-stage4-target-libvtv
36157 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36158 @r=`${PWD_COMMAND}`; export r; \
36159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36160 TFLAGS="$(STAGE4_TFLAGS)"; \
36161 $(RAW_CXX_TARGET_EXPORTS) \
36162 \
36163 cd $(TARGET_SUBDIR)/libvtv && \
36164 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36165 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36166 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36167 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36168 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36169 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36170 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36171 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36172 TFLAGS="$(STAGE4_TFLAGS)" \
36173 $(TARGET-stage4-target-libvtv)
36174
36175maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
36176clean-stage4: clean-stage4-target-libvtv
36177clean-stage4-target-libvtv:
36178 @if [ $(current_stage) = stage4 ]; then \
36179 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36180 else \
36181 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
36182 $(MAKE) stage4-start; \
36183 fi; \
36184 cd $(TARGET_SUBDIR)/libvtv && \
36185 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36186@endif target-libvtv-bootstrap
36187
36188
36189.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
36190.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
36191maybe-all-stageprofile-target-libvtv:
36192maybe-clean-stageprofile-target-libvtv:
36193@if target-libvtv-bootstrap
36194maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
36195all-stageprofile: all-stageprofile-target-libvtv
36196TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
36197all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
36198 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36199 @r=`${PWD_COMMAND}`; export r; \
36200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36201 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36202 $(RAW_CXX_TARGET_EXPORTS) \
36203 \
36204 cd $(TARGET_SUBDIR)/libvtv && \
36205 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36206 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36207 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36208 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36209 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36210 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36211 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36212 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36213 TFLAGS="$(STAGEprofile_TFLAGS)" \
36214 $(TARGET-stageprofile-target-libvtv)
36215
36216maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
36217clean-stageprofile: clean-stageprofile-target-libvtv
36218clean-stageprofile-target-libvtv:
36219 @if [ $(current_stage) = stageprofile ]; then \
36220 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36221 else \
36222 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
36223 $(MAKE) stageprofile-start; \
36224 fi; \
36225 cd $(TARGET_SUBDIR)/libvtv && \
36226 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36227@endif target-libvtv-bootstrap
36228
36229
36230.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
36231.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
36232maybe-all-stagefeedback-target-libvtv:
36233maybe-clean-stagefeedback-target-libvtv:
36234@if target-libvtv-bootstrap
36235maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
36236all-stagefeedback: all-stagefeedback-target-libvtv
36237TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
36238all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
36239 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36240 @r=`${PWD_COMMAND}`; export r; \
36241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36242 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36243 $(RAW_CXX_TARGET_EXPORTS) \
36244 \
36245 cd $(TARGET_SUBDIR)/libvtv && \
36246 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36247 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36248 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36249 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36250 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36251 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36252 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36253 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36254 TFLAGS="$(STAGEfeedback_TFLAGS)" \
36255 $(TARGET-stagefeedback-target-libvtv)
36256
36257maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
36258clean-stagefeedback: clean-stagefeedback-target-libvtv
36259clean-stagefeedback-target-libvtv:
36260 @if [ $(current_stage) = stagefeedback ]; then \
36261 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36262 else \
36263 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
36264 $(MAKE) stagefeedback-start; \
36265 fi; \
36266 cd $(TARGET_SUBDIR)/libvtv && \
36267 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36268@endif target-libvtv-bootstrap
36269
36270
36271
36272
36273
36274
36275.PHONY: check-target-libvtv maybe-check-target-libvtv
36276maybe-check-target-libvtv:
36277@if target-libvtv
36278maybe-check-target-libvtv: check-target-libvtv
36279
36280check-target-libvtv:
36281 @: $(MAKE); $(unstage)
36282 @r=`${PWD_COMMAND}`; export r; \
36283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36284 $(RAW_CXX_TARGET_EXPORTS) \
36285 (cd $(TARGET_SUBDIR)/libvtv && \
36286 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
36287
36288@endif target-libvtv
36289
36290.PHONY: install-target-libvtv maybe-install-target-libvtv
36291maybe-install-target-libvtv:
36292@if target-libvtv
36293maybe-install-target-libvtv: install-target-libvtv
36294
36295install-target-libvtv: installdirs
36296 @: $(MAKE); $(unstage)
36297 @r=`${PWD_COMMAND}`; export r; \
36298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36299 $(RAW_CXX_TARGET_EXPORTS) \
36300 (cd $(TARGET_SUBDIR)/libvtv && \
36301 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36302
36303@endif target-libvtv
36304
36305.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
36306maybe-install-strip-target-libvtv:
36307@if target-libvtv
36308maybe-install-strip-target-libvtv: install-strip-target-libvtv
36309
36310install-strip-target-libvtv: installdirs
36311 @: $(MAKE); $(unstage)
36312 @r=`${PWD_COMMAND}`; export r; \
36313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36314 $(RAW_CXX_TARGET_EXPORTS) \
36315 (cd $(TARGET_SUBDIR)/libvtv && \
36316 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36317
36318@endif target-libvtv
36319
36320# Other targets (info, dvi, pdf, etc.)
36321
36322.PHONY: maybe-info-target-libvtv info-target-libvtv
36323maybe-info-target-libvtv:
36324@if target-libvtv
36325maybe-info-target-libvtv: info-target-libvtv
36326
36327info-target-libvtv: \
36328 configure-target-libvtv
36329 @: $(MAKE); $(unstage)
22121df0 36330 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36331 r=`${PWD_COMMAND}`; export r; \
36332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36333 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36334 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36335 for flag in $(EXTRA_TARGET_FLAGS); do \
36336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36337 done; \
36338 (cd $(TARGET_SUBDIR)/libvtv && \
36339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36341 "RANLIB=$${RANLIB}" \
36342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36343 info) \
36344 || exit 1
36345
36346@endif target-libvtv
36347
36348.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
36349maybe-dvi-target-libvtv:
36350@if target-libvtv
36351maybe-dvi-target-libvtv: dvi-target-libvtv
36352
36353dvi-target-libvtv: \
36354 configure-target-libvtv
36355 @: $(MAKE); $(unstage)
22121df0 36356 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36357 r=`${PWD_COMMAND}`; export r; \
36358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36359 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36360 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36361 for flag in $(EXTRA_TARGET_FLAGS); do \
36362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36363 done; \
36364 (cd $(TARGET_SUBDIR)/libvtv && \
36365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36367 "RANLIB=$${RANLIB}" \
36368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36369 dvi) \
36370 || exit 1
36371
36372@endif target-libvtv
36373
36374.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
36375maybe-pdf-target-libvtv:
36376@if target-libvtv
36377maybe-pdf-target-libvtv: pdf-target-libvtv
36378
36379pdf-target-libvtv: \
36380 configure-target-libvtv
36381 @: $(MAKE); $(unstage)
22121df0 36382 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36383 r=`${PWD_COMMAND}`; export r; \
36384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36385 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36386 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36387 for flag in $(EXTRA_TARGET_FLAGS); do \
36388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36389 done; \
36390 (cd $(TARGET_SUBDIR)/libvtv && \
36391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36393 "RANLIB=$${RANLIB}" \
36394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36395 pdf) \
36396 || exit 1
36397
36398@endif target-libvtv
36399
36400.PHONY: maybe-html-target-libvtv html-target-libvtv
36401maybe-html-target-libvtv:
36402@if target-libvtv
36403maybe-html-target-libvtv: html-target-libvtv
36404
36405html-target-libvtv: \
36406 configure-target-libvtv
36407 @: $(MAKE); $(unstage)
22121df0 36408 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36409 r=`${PWD_COMMAND}`; export r; \
36410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36411 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36412 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36413 for flag in $(EXTRA_TARGET_FLAGS); do \
36414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36415 done; \
36416 (cd $(TARGET_SUBDIR)/libvtv && \
36417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36419 "RANLIB=$${RANLIB}" \
36420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36421 html) \
36422 || exit 1
36423
36424@endif target-libvtv
36425
36426.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
36427maybe-TAGS-target-libvtv:
36428@if target-libvtv
36429maybe-TAGS-target-libvtv: TAGS-target-libvtv
36430
36431TAGS-target-libvtv: \
36432 configure-target-libvtv
36433 @: $(MAKE); $(unstage)
22121df0 36434 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36435 r=`${PWD_COMMAND}`; export r; \
36436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36437 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36438 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36439 for flag in $(EXTRA_TARGET_FLAGS); do \
36440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36441 done; \
36442 (cd $(TARGET_SUBDIR)/libvtv && \
36443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36445 "RANLIB=$${RANLIB}" \
36446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36447 TAGS) \
36448 || exit 1
36449
36450@endif target-libvtv
36451
36452.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
36453maybe-install-info-target-libvtv:
36454@if target-libvtv
36455maybe-install-info-target-libvtv: install-info-target-libvtv
36456
36457install-info-target-libvtv: \
36458 configure-target-libvtv \
36459 info-target-libvtv
36460 @: $(MAKE); $(unstage)
22121df0 36461 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36462 r=`${PWD_COMMAND}`; export r; \
36463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36464 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36465 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36466 for flag in $(EXTRA_TARGET_FLAGS); do \
36467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36468 done; \
36469 (cd $(TARGET_SUBDIR)/libvtv && \
36470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36472 "RANLIB=$${RANLIB}" \
36473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36474 install-info) \
36475 || exit 1
36476
36477@endif target-libvtv
36478
36479.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
36480maybe-install-pdf-target-libvtv:
36481@if target-libvtv
36482maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
36483
36484install-pdf-target-libvtv: \
36485 configure-target-libvtv \
36486 pdf-target-libvtv
36487 @: $(MAKE); $(unstage)
22121df0 36488 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36489 r=`${PWD_COMMAND}`; export r; \
36490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36491 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36492 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36493 for flag in $(EXTRA_TARGET_FLAGS); do \
36494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36495 done; \
36496 (cd $(TARGET_SUBDIR)/libvtv && \
36497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36499 "RANLIB=$${RANLIB}" \
36500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36501 install-pdf) \
36502 || exit 1
36503
36504@endif target-libvtv
36505
36506.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
36507maybe-install-html-target-libvtv:
36508@if target-libvtv
36509maybe-install-html-target-libvtv: install-html-target-libvtv
36510
36511install-html-target-libvtv: \
36512 configure-target-libvtv \
36513 html-target-libvtv
36514 @: $(MAKE); $(unstage)
22121df0 36515 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36516 r=`${PWD_COMMAND}`; export r; \
36517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36518 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36519 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36520 for flag in $(EXTRA_TARGET_FLAGS); do \
36521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36522 done; \
36523 (cd $(TARGET_SUBDIR)/libvtv && \
36524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36526 "RANLIB=$${RANLIB}" \
36527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36528 install-html) \
36529 || exit 1
36530
36531@endif target-libvtv
36532
36533.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
36534maybe-installcheck-target-libvtv:
36535@if target-libvtv
36536maybe-installcheck-target-libvtv: installcheck-target-libvtv
36537
36538installcheck-target-libvtv: \
36539 configure-target-libvtv
36540 @: $(MAKE); $(unstage)
22121df0 36541 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36542 r=`${PWD_COMMAND}`; export r; \
36543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36544 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36545 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36546 for flag in $(EXTRA_TARGET_FLAGS); do \
36547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36548 done; \
36549 (cd $(TARGET_SUBDIR)/libvtv && \
36550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36552 "RANLIB=$${RANLIB}" \
36553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36554 installcheck) \
36555 || exit 1
36556
36557@endif target-libvtv
36558
36559.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
36560maybe-mostlyclean-target-libvtv:
36561@if target-libvtv
36562maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
36563
36564mostlyclean-target-libvtv:
36565 @: $(MAKE); $(unstage)
22121df0 36566 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36567 r=`${PWD_COMMAND}`; export r; \
36568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36569 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36570 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36571 for flag in $(EXTRA_TARGET_FLAGS); do \
36572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36573 done; \
36574 (cd $(TARGET_SUBDIR)/libvtv && \
36575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36577 "RANLIB=$${RANLIB}" \
36578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36579 mostlyclean) \
36580 || exit 1
36581
36582@endif target-libvtv
36583
36584.PHONY: maybe-clean-target-libvtv clean-target-libvtv
36585maybe-clean-target-libvtv:
36586@if target-libvtv
36587maybe-clean-target-libvtv: clean-target-libvtv
36588
36589clean-target-libvtv:
36590 @: $(MAKE); $(unstage)
22121df0 36591 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36592 r=`${PWD_COMMAND}`; export r; \
36593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36594 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36595 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36596 for flag in $(EXTRA_TARGET_FLAGS); do \
36597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36598 done; \
36599 (cd $(TARGET_SUBDIR)/libvtv && \
36600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36602 "RANLIB=$${RANLIB}" \
36603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36604 clean) \
36605 || exit 1
36606
36607@endif target-libvtv
36608
36609.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
36610maybe-distclean-target-libvtv:
36611@if target-libvtv
36612maybe-distclean-target-libvtv: distclean-target-libvtv
36613
36614distclean-target-libvtv:
36615 @: $(MAKE); $(unstage)
22121df0 36616 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36617 r=`${PWD_COMMAND}`; export r; \
36618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36619 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36620 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36621 for flag in $(EXTRA_TARGET_FLAGS); do \
36622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36623 done; \
36624 (cd $(TARGET_SUBDIR)/libvtv && \
36625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36627 "RANLIB=$${RANLIB}" \
36628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36629 distclean) \
36630 || exit 1
36631
36632@endif target-libvtv
36633
36634.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
36635maybe-maintainer-clean-target-libvtv:
36636@if target-libvtv
36637maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
36638
36639maintainer-clean-target-libvtv:
36640 @: $(MAKE); $(unstage)
22121df0 36641 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36642 r=`${PWD_COMMAND}`; export r; \
36643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36644 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36645 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36646 for flag in $(EXTRA_TARGET_FLAGS); do \
36647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36648 done; \
36649 (cd $(TARGET_SUBDIR)/libvtv && \
36650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36652 "RANLIB=$${RANLIB}" \
36653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36654 maintainer-clean) \
36655 || exit 1
36656
36657@endif target-libvtv
36658
36659
36660
36661
36662
e78e02e6 36663.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
36664maybe-configure-target-libcilkrts:
36665@if gcc-bootstrap
36666configure-target-libcilkrts: stage_current
36667@endif gcc-bootstrap
36668@if target-libcilkrts
36669maybe-configure-target-libcilkrts: configure-target-libcilkrts
36670configure-target-libcilkrts:
36671 @: $(MAKE); $(unstage)
36672 @r=`${PWD_COMMAND}`; export r; \
36673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36674 echo "Checking multilib configuration for libcilkrts..."; \
22121df0
L
36675 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
36676 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
e78e02e6 36677 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36678 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36679 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
36680 else \
36681 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
36682 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36683 fi; \
36684 else \
36685 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36686 fi; \
36687 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
22121df0 36688 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
e78e02e6 36689 $(NORMAL_TARGET_EXPORTS) \
36690 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
36691 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
36692 case $(srcdir) in \
36693 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36694 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
36695 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36696 esac; \
1b6c0831 36697 module_srcdir=libcilkrts; \
e78e02e6 36698 rm -f no-such-file || : ; \
1b6c0831
L
36699 CONFIG_SITE=no-such-file $(SHELL) \
36700 $$s/$$module_srcdir/configure \
36701 --srcdir=$${topdir}/$$module_srcdir \
e78e02e6 36702 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36703 --target=${target_alias} \
e78e02e6 36704 || exit 1
36705@endif target-libcilkrts
36706
36707
36708
36709
36710
36711.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
36712maybe-all-target-libcilkrts:
36713@if gcc-bootstrap
36714all-target-libcilkrts: stage_current
36715@endif gcc-bootstrap
36716@if target-libcilkrts
36717TARGET-target-libcilkrts=all
36718maybe-all-target-libcilkrts: all-target-libcilkrts
36719all-target-libcilkrts: configure-target-libcilkrts
36720 @: $(MAKE); $(unstage)
36721 @r=`${PWD_COMMAND}`; export r; \
36722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36723 $(NORMAL_TARGET_EXPORTS) \
36724 (cd $(TARGET_SUBDIR)/libcilkrts && \
36725 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36726 $(TARGET-target-libcilkrts))
36727@endif target-libcilkrts
36728
36729
36730
36731
36732
36733.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
36734maybe-check-target-libcilkrts:
36735@if target-libcilkrts
36736maybe-check-target-libcilkrts: check-target-libcilkrts
36737
36738check-target-libcilkrts:
36739 @: $(MAKE); $(unstage)
36740 @r=`${PWD_COMMAND}`; export r; \
36741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36742 $(NORMAL_TARGET_EXPORTS) \
36743 (cd $(TARGET_SUBDIR)/libcilkrts && \
36744 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36745
36746@endif target-libcilkrts
36747
36748.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
36749maybe-install-target-libcilkrts:
36750@if target-libcilkrts
36751maybe-install-target-libcilkrts: install-target-libcilkrts
36752
36753install-target-libcilkrts: installdirs
36754 @: $(MAKE); $(unstage)
36755 @r=`${PWD_COMMAND}`; export r; \
36756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36757 $(NORMAL_TARGET_EXPORTS) \
36758 (cd $(TARGET_SUBDIR)/libcilkrts && \
36759 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36760
36761@endif target-libcilkrts
36762
36763.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
36764maybe-install-strip-target-libcilkrts:
36765@if target-libcilkrts
36766maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
36767
36768install-strip-target-libcilkrts: installdirs
36769 @: $(MAKE); $(unstage)
36770 @r=`${PWD_COMMAND}`; export r; \
36771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36772 $(NORMAL_TARGET_EXPORTS) \
36773 (cd $(TARGET_SUBDIR)/libcilkrts && \
36774 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36775
36776@endif target-libcilkrts
36777
36778# Other targets (info, dvi, pdf, etc.)
36779
36780.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
36781maybe-info-target-libcilkrts:
36782@if target-libcilkrts
36783maybe-info-target-libcilkrts: info-target-libcilkrts
36784
36785info-target-libcilkrts: \
36786 configure-target-libcilkrts
36787 @: $(MAKE); $(unstage)
22121df0 36788 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36789 r=`${PWD_COMMAND}`; export r; \
36790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36791 $(NORMAL_TARGET_EXPORTS) \
22121df0 36792 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36793 for flag in $(EXTRA_TARGET_FLAGS); do \
36794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36795 done; \
36796 (cd $(TARGET_SUBDIR)/libcilkrts && \
36797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36799 "RANLIB=$${RANLIB}" \
36800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36801 info) \
36802 || exit 1
36803
36804@endif target-libcilkrts
36805
36806.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
36807maybe-dvi-target-libcilkrts:
36808@if target-libcilkrts
36809maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
36810
36811dvi-target-libcilkrts: \
36812 configure-target-libcilkrts
36813 @: $(MAKE); $(unstage)
22121df0 36814 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36815 r=`${PWD_COMMAND}`; export r; \
36816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36817 $(NORMAL_TARGET_EXPORTS) \
22121df0 36818 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36819 for flag in $(EXTRA_TARGET_FLAGS); do \
36820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36821 done; \
36822 (cd $(TARGET_SUBDIR)/libcilkrts && \
36823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36825 "RANLIB=$${RANLIB}" \
36826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36827 dvi) \
36828 || exit 1
36829
36830@endif target-libcilkrts
36831
36832.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
36833maybe-pdf-target-libcilkrts:
36834@if target-libcilkrts
36835maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
36836
36837pdf-target-libcilkrts: \
36838 configure-target-libcilkrts
36839 @: $(MAKE); $(unstage)
22121df0 36840 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36841 r=`${PWD_COMMAND}`; export r; \
36842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36843 $(NORMAL_TARGET_EXPORTS) \
22121df0 36844 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36845 for flag in $(EXTRA_TARGET_FLAGS); do \
36846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36847 done; \
36848 (cd $(TARGET_SUBDIR)/libcilkrts && \
36849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36851 "RANLIB=$${RANLIB}" \
36852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36853 pdf) \
36854 || exit 1
36855
36856@endif target-libcilkrts
36857
36858.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
36859maybe-html-target-libcilkrts:
36860@if target-libcilkrts
36861maybe-html-target-libcilkrts: html-target-libcilkrts
36862
36863html-target-libcilkrts: \
36864 configure-target-libcilkrts
36865 @: $(MAKE); $(unstage)
22121df0 36866 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36867 r=`${PWD_COMMAND}`; export r; \
36868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36869 $(NORMAL_TARGET_EXPORTS) \
22121df0 36870 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36871 for flag in $(EXTRA_TARGET_FLAGS); do \
36872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36873 done; \
36874 (cd $(TARGET_SUBDIR)/libcilkrts && \
36875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36877 "RANLIB=$${RANLIB}" \
36878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36879 html) \
36880 || exit 1
36881
36882@endif target-libcilkrts
36883
36884.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
36885maybe-TAGS-target-libcilkrts:
36886@if target-libcilkrts
36887maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
36888
36889TAGS-target-libcilkrts: \
36890 configure-target-libcilkrts
36891 @: $(MAKE); $(unstage)
22121df0 36892 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36893 r=`${PWD_COMMAND}`; export r; \
36894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36895 $(NORMAL_TARGET_EXPORTS) \
22121df0 36896 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36897 for flag in $(EXTRA_TARGET_FLAGS); do \
36898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36899 done; \
36900 (cd $(TARGET_SUBDIR)/libcilkrts && \
36901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36903 "RANLIB=$${RANLIB}" \
36904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36905 TAGS) \
36906 || exit 1
36907
36908@endif target-libcilkrts
36909
36910.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
36911maybe-install-info-target-libcilkrts:
36912@if target-libcilkrts
36913maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
36914
36915install-info-target-libcilkrts: \
36916 configure-target-libcilkrts \
36917 info-target-libcilkrts
36918 @: $(MAKE); $(unstage)
22121df0 36919 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36920 r=`${PWD_COMMAND}`; export r; \
36921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36922 $(NORMAL_TARGET_EXPORTS) \
22121df0 36923 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36924 for flag in $(EXTRA_TARGET_FLAGS); do \
36925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36926 done; \
36927 (cd $(TARGET_SUBDIR)/libcilkrts && \
36928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36930 "RANLIB=$${RANLIB}" \
36931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36932 install-info) \
36933 || exit 1
36934
36935@endif target-libcilkrts
36936
36937.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
36938maybe-install-pdf-target-libcilkrts:
36939@if target-libcilkrts
36940maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
36941
36942install-pdf-target-libcilkrts: \
36943 configure-target-libcilkrts \
36944 pdf-target-libcilkrts
36945 @: $(MAKE); $(unstage)
22121df0 36946 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36947 r=`${PWD_COMMAND}`; export r; \
36948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36949 $(NORMAL_TARGET_EXPORTS) \
22121df0 36950 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36951 for flag in $(EXTRA_TARGET_FLAGS); do \
36952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36953 done; \
36954 (cd $(TARGET_SUBDIR)/libcilkrts && \
36955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36957 "RANLIB=$${RANLIB}" \
36958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36959 install-pdf) \
36960 || exit 1
36961
36962@endif target-libcilkrts
36963
36964.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
36965maybe-install-html-target-libcilkrts:
36966@if target-libcilkrts
36967maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
36968
36969install-html-target-libcilkrts: \
36970 configure-target-libcilkrts \
36971 html-target-libcilkrts
36972 @: $(MAKE); $(unstage)
22121df0 36973 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36974 r=`${PWD_COMMAND}`; export r; \
36975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36976 $(NORMAL_TARGET_EXPORTS) \
22121df0 36977 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36978 for flag in $(EXTRA_TARGET_FLAGS); do \
36979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36980 done; \
36981 (cd $(TARGET_SUBDIR)/libcilkrts && \
36982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36984 "RANLIB=$${RANLIB}" \
36985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36986 install-html) \
36987 || exit 1
36988
36989@endif target-libcilkrts
36990
36991.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
36992maybe-installcheck-target-libcilkrts:
36993@if target-libcilkrts
36994maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
36995
36996installcheck-target-libcilkrts: \
36997 configure-target-libcilkrts
36998 @: $(MAKE); $(unstage)
22121df0 36999 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37000 r=`${PWD_COMMAND}`; export r; \
37001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37002 $(NORMAL_TARGET_EXPORTS) \
22121df0 37003 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37004 for flag in $(EXTRA_TARGET_FLAGS); do \
37005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37006 done; \
37007 (cd $(TARGET_SUBDIR)/libcilkrts && \
37008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37010 "RANLIB=$${RANLIB}" \
37011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37012 installcheck) \
37013 || exit 1
37014
37015@endif target-libcilkrts
37016
37017.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
37018maybe-mostlyclean-target-libcilkrts:
37019@if target-libcilkrts
37020maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
37021
37022mostlyclean-target-libcilkrts:
37023 @: $(MAKE); $(unstage)
22121df0 37024 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37025 r=`${PWD_COMMAND}`; export r; \
37026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37027 $(NORMAL_TARGET_EXPORTS) \
22121df0 37028 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37029 for flag in $(EXTRA_TARGET_FLAGS); do \
37030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37031 done; \
37032 (cd $(TARGET_SUBDIR)/libcilkrts && \
37033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37035 "RANLIB=$${RANLIB}" \
37036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37037 mostlyclean) \
37038 || exit 1
37039
37040@endif target-libcilkrts
37041
37042.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
37043maybe-clean-target-libcilkrts:
37044@if target-libcilkrts
37045maybe-clean-target-libcilkrts: clean-target-libcilkrts
37046
37047clean-target-libcilkrts:
37048 @: $(MAKE); $(unstage)
22121df0 37049 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37050 r=`${PWD_COMMAND}`; export r; \
37051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37052 $(NORMAL_TARGET_EXPORTS) \
22121df0 37053 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37054 for flag in $(EXTRA_TARGET_FLAGS); do \
37055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37056 done; \
37057 (cd $(TARGET_SUBDIR)/libcilkrts && \
37058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37060 "RANLIB=$${RANLIB}" \
37061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37062 clean) \
37063 || exit 1
37064
37065@endif target-libcilkrts
37066
37067.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
37068maybe-distclean-target-libcilkrts:
37069@if target-libcilkrts
37070maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
37071
37072distclean-target-libcilkrts:
37073 @: $(MAKE); $(unstage)
22121df0 37074 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37075 r=`${PWD_COMMAND}`; export r; \
37076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37077 $(NORMAL_TARGET_EXPORTS) \
22121df0 37078 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37079 for flag in $(EXTRA_TARGET_FLAGS); do \
37080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37081 done; \
37082 (cd $(TARGET_SUBDIR)/libcilkrts && \
37083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37085 "RANLIB=$${RANLIB}" \
37086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37087 distclean) \
37088 || exit 1
37089
37090@endif target-libcilkrts
37091
37092.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
37093maybe-maintainer-clean-target-libcilkrts:
37094@if target-libcilkrts
37095maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
37096
37097maintainer-clean-target-libcilkrts:
37098 @: $(MAKE); $(unstage)
22121df0 37099 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37100 r=`${PWD_COMMAND}`; export r; \
37101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37102 $(NORMAL_TARGET_EXPORTS) \
22121df0 37103 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37104 for flag in $(EXTRA_TARGET_FLAGS); do \
37105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37106 done; \
37107 (cd $(TARGET_SUBDIR)/libcilkrts && \
37108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37110 "RANLIB=$${RANLIB}" \
37111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37112 maintainer-clean) \
37113 || exit 1
37114
37115@endif target-libcilkrts
37116
37117
37118
37119
37120
1b6c0831
L
37121.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
37122maybe-configure-target-liboffloadmic:
37123@if gcc-bootstrap
37124configure-target-liboffloadmic: stage_current
37125@endif gcc-bootstrap
37126@if target-liboffloadmic
37127maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
37128configure-target-liboffloadmic:
37129 @: $(MAKE); $(unstage)
37130 @r=`${PWD_COMMAND}`; export r; \
37131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37132 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
37133 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
37134 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
37135 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
37136 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
37137 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
37138 else \
37139 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
37140 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
37141 fi; \
37142 else \
37143 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
37144 fi; \
37145 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 37146 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
37147 $(NORMAL_TARGET_EXPORTS) \
37148 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
37149 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
37150 case $(srcdir) in \
37151 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37152 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
37153 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37154 esac; \
37155 module_srcdir=liboffloadmic; \
37156 rm -f no-such-file || : ; \
37157 CONFIG_SITE=no-such-file $(SHELL) \
37158 $$s/$$module_srcdir/configure \
37159 --srcdir=$${topdir}/$$module_srcdir \
37160 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37161 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
37162 || exit 1
37163@endif target-liboffloadmic
37164
37165
37166
37167
37168
37169.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
37170maybe-all-target-liboffloadmic:
37171@if gcc-bootstrap
37172all-target-liboffloadmic: stage_current
37173@endif gcc-bootstrap
37174@if target-liboffloadmic
37175TARGET-target-liboffloadmic=all
37176maybe-all-target-liboffloadmic: all-target-liboffloadmic
37177all-target-liboffloadmic: configure-target-liboffloadmic
37178 @: $(MAKE); $(unstage)
37179 @r=`${PWD_COMMAND}`; export r; \
37180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37181 $(NORMAL_TARGET_EXPORTS) \
37182 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37183 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37184 $(TARGET-target-liboffloadmic))
37185@endif target-liboffloadmic
37186
37187
37188
37189
37190
37191.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
37192maybe-check-target-liboffloadmic:
37193@if target-liboffloadmic
37194maybe-check-target-liboffloadmic: check-target-liboffloadmic
37195
37196check-target-liboffloadmic:
37197 @: $(MAKE); $(unstage)
37198 @r=`${PWD_COMMAND}`; export r; \
37199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37200 $(NORMAL_TARGET_EXPORTS) \
37201 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37202 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
37203
37204@endif target-liboffloadmic
37205
37206.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
37207maybe-install-target-liboffloadmic:
37208@if target-liboffloadmic
37209maybe-install-target-liboffloadmic: install-target-liboffloadmic
37210
37211install-target-liboffloadmic: installdirs
37212 @: $(MAKE); $(unstage)
37213 @r=`${PWD_COMMAND}`; export r; \
37214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37215 $(NORMAL_TARGET_EXPORTS) \
37216 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37217 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37218
37219@endif target-liboffloadmic
37220
37221.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
37222maybe-install-strip-target-liboffloadmic:
37223@if target-liboffloadmic
37224maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
37225
37226install-strip-target-liboffloadmic: installdirs
37227 @: $(MAKE); $(unstage)
37228 @r=`${PWD_COMMAND}`; export r; \
37229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37230 $(NORMAL_TARGET_EXPORTS) \
37231 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37232 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37233
37234@endif target-liboffloadmic
37235
37236# Other targets (info, dvi, pdf, etc.)
37237
37238.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
37239maybe-info-target-liboffloadmic:
37240@if target-liboffloadmic
37241maybe-info-target-liboffloadmic: info-target-liboffloadmic
37242
37243info-target-liboffloadmic: \
37244 configure-target-liboffloadmic
37245 @: $(MAKE); $(unstage)
22121df0 37246 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37247 r=`${PWD_COMMAND}`; export r; \
37248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37249 $(NORMAL_TARGET_EXPORTS) \
22121df0 37250 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37251 for flag in $(EXTRA_TARGET_FLAGS); do \
37252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37253 done; \
37254 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37257 "RANLIB=$${RANLIB}" \
37258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37259 info) \
37260 || exit 1
37261
37262@endif target-liboffloadmic
37263
37264.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
37265maybe-dvi-target-liboffloadmic:
37266@if target-liboffloadmic
37267maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
37268
37269dvi-target-liboffloadmic: \
37270 configure-target-liboffloadmic
37271 @: $(MAKE); $(unstage)
22121df0 37272 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37273 r=`${PWD_COMMAND}`; export r; \
37274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37275 $(NORMAL_TARGET_EXPORTS) \
22121df0 37276 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37277 for flag in $(EXTRA_TARGET_FLAGS); do \
37278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37279 done; \
37280 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37283 "RANLIB=$${RANLIB}" \
37284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37285 dvi) \
37286 || exit 1
37287
37288@endif target-liboffloadmic
37289
37290.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
37291maybe-pdf-target-liboffloadmic:
37292@if target-liboffloadmic
37293maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
37294
37295pdf-target-liboffloadmic: \
37296 configure-target-liboffloadmic
37297 @: $(MAKE); $(unstage)
22121df0 37298 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37299 r=`${PWD_COMMAND}`; export r; \
37300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37301 $(NORMAL_TARGET_EXPORTS) \
22121df0 37302 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37303 for flag in $(EXTRA_TARGET_FLAGS); do \
37304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37305 done; \
37306 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37309 "RANLIB=$${RANLIB}" \
37310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37311 pdf) \
37312 || exit 1
37313
37314@endif target-liboffloadmic
37315
37316.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
37317maybe-html-target-liboffloadmic:
37318@if target-liboffloadmic
37319maybe-html-target-liboffloadmic: html-target-liboffloadmic
37320
37321html-target-liboffloadmic: \
37322 configure-target-liboffloadmic
37323 @: $(MAKE); $(unstage)
22121df0 37324 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37325 r=`${PWD_COMMAND}`; export r; \
37326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37327 $(NORMAL_TARGET_EXPORTS) \
22121df0 37328 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37329 for flag in $(EXTRA_TARGET_FLAGS); do \
37330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37331 done; \
37332 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37335 "RANLIB=$${RANLIB}" \
37336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37337 html) \
37338 || exit 1
37339
37340@endif target-liboffloadmic
37341
37342.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
37343maybe-TAGS-target-liboffloadmic:
37344@if target-liboffloadmic
37345maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
37346
37347TAGS-target-liboffloadmic: \
37348 configure-target-liboffloadmic
37349 @: $(MAKE); $(unstage)
22121df0 37350 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37351 r=`${PWD_COMMAND}`; export r; \
37352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37353 $(NORMAL_TARGET_EXPORTS) \
22121df0 37354 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37355 for flag in $(EXTRA_TARGET_FLAGS); do \
37356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37357 done; \
37358 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37361 "RANLIB=$${RANLIB}" \
37362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37363 TAGS) \
37364 || exit 1
37365
37366@endif target-liboffloadmic
37367
37368.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
37369maybe-install-info-target-liboffloadmic:
37370@if target-liboffloadmic
37371maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
37372
37373install-info-target-liboffloadmic: \
37374 configure-target-liboffloadmic \
37375 info-target-liboffloadmic
37376 @: $(MAKE); $(unstage)
22121df0 37377 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37378 r=`${PWD_COMMAND}`; export r; \
37379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37380 $(NORMAL_TARGET_EXPORTS) \
22121df0 37381 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37382 for flag in $(EXTRA_TARGET_FLAGS); do \
37383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37384 done; \
37385 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37388 "RANLIB=$${RANLIB}" \
37389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37390 install-info) \
37391 || exit 1
37392
37393@endif target-liboffloadmic
37394
37395.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
37396maybe-install-pdf-target-liboffloadmic:
37397@if target-liboffloadmic
37398maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
37399
37400install-pdf-target-liboffloadmic: \
37401 configure-target-liboffloadmic \
37402 pdf-target-liboffloadmic
37403 @: $(MAKE); $(unstage)
22121df0 37404 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37405 r=`${PWD_COMMAND}`; export r; \
37406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37407 $(NORMAL_TARGET_EXPORTS) \
22121df0 37408 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37409 for flag in $(EXTRA_TARGET_FLAGS); do \
37410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37411 done; \
37412 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37415 "RANLIB=$${RANLIB}" \
37416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37417 install-pdf) \
37418 || exit 1
37419
37420@endif target-liboffloadmic
37421
37422.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
37423maybe-install-html-target-liboffloadmic:
37424@if target-liboffloadmic
37425maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
37426
37427install-html-target-liboffloadmic: \
37428 configure-target-liboffloadmic \
37429 html-target-liboffloadmic
37430 @: $(MAKE); $(unstage)
22121df0 37431 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37432 r=`${PWD_COMMAND}`; export r; \
37433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37434 $(NORMAL_TARGET_EXPORTS) \
22121df0 37435 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37436 for flag in $(EXTRA_TARGET_FLAGS); do \
37437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37438 done; \
37439 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37442 "RANLIB=$${RANLIB}" \
37443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37444 install-html) \
37445 || exit 1
37446
37447@endif target-liboffloadmic
37448
37449.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
37450maybe-installcheck-target-liboffloadmic:
37451@if target-liboffloadmic
37452maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
37453
37454installcheck-target-liboffloadmic: \
37455 configure-target-liboffloadmic
37456 @: $(MAKE); $(unstage)
22121df0 37457 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37458 r=`${PWD_COMMAND}`; export r; \
37459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37460 $(NORMAL_TARGET_EXPORTS) \
22121df0 37461 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37462 for flag in $(EXTRA_TARGET_FLAGS); do \
37463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37464 done; \
37465 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37468 "RANLIB=$${RANLIB}" \
37469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37470 installcheck) \
37471 || exit 1
37472
37473@endif target-liboffloadmic
37474
37475.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
37476maybe-mostlyclean-target-liboffloadmic:
37477@if target-liboffloadmic
37478maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
37479
37480mostlyclean-target-liboffloadmic:
37481 @: $(MAKE); $(unstage)
22121df0 37482 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37483 r=`${PWD_COMMAND}`; export r; \
37484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37485 $(NORMAL_TARGET_EXPORTS) \
22121df0 37486 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37487 for flag in $(EXTRA_TARGET_FLAGS); do \
37488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37489 done; \
37490 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37493 "RANLIB=$${RANLIB}" \
37494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37495 mostlyclean) \
37496 || exit 1
37497
37498@endif target-liboffloadmic
37499
37500.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
37501maybe-clean-target-liboffloadmic:
37502@if target-liboffloadmic
37503maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
37504
37505clean-target-liboffloadmic:
37506 @: $(MAKE); $(unstage)
22121df0 37507 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37508 r=`${PWD_COMMAND}`; export r; \
37509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37510 $(NORMAL_TARGET_EXPORTS) \
22121df0 37511 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37512 for flag in $(EXTRA_TARGET_FLAGS); do \
37513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37514 done; \
37515 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37518 "RANLIB=$${RANLIB}" \
37519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37520 clean) \
37521 || exit 1
37522
37523@endif target-liboffloadmic
37524
37525.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
37526maybe-distclean-target-liboffloadmic:
37527@if target-liboffloadmic
37528maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
37529
37530distclean-target-liboffloadmic:
37531 @: $(MAKE); $(unstage)
22121df0 37532 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37533 r=`${PWD_COMMAND}`; export r; \
37534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37535 $(NORMAL_TARGET_EXPORTS) \
22121df0 37536 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37537 for flag in $(EXTRA_TARGET_FLAGS); do \
37538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37539 done; \
37540 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37543 "RANLIB=$${RANLIB}" \
37544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37545 distclean) \
37546 || exit 1
37547
37548@endif target-liboffloadmic
37549
37550.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
37551maybe-maintainer-clean-target-liboffloadmic:
37552@if target-liboffloadmic
37553maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
37554
37555maintainer-clean-target-liboffloadmic:
37556 @: $(MAKE); $(unstage)
22121df0 37557 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37558 r=`${PWD_COMMAND}`; export r; \
37559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37560 $(NORMAL_TARGET_EXPORTS) \
22121df0 37561 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37562 for flag in $(EXTRA_TARGET_FLAGS); do \
37563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37564 done; \
37565 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37568 "RANLIB=$${RANLIB}" \
37569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37570 maintainer-clean) \
37571 || exit 1
37572
37573@endif target-liboffloadmic
37574
37575
37576
37577
37578
a90ef4bf
JM
37579.PHONY: configure-target-libssp maybe-configure-target-libssp
37580maybe-configure-target-libssp:
4f0ef2d8 37581@if gcc-bootstrap
a90ef4bf 37582configure-target-libssp: stage_current
4f0ef2d8 37583@endif gcc-bootstrap
a90ef4bf
JM
37584@if target-libssp
37585maybe-configure-target-libssp: configure-target-libssp
37586configure-target-libssp:
0aed8855
PB
37587 @: $(MAKE); $(unstage)
37588 @r=`${PWD_COMMAND}`; export r; \
37589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 37590 echo "Checking multilib configuration for libssp..."; \
22121df0
L
37591 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
37592 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
37593 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
37594 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
37595 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 37596 else \
a90ef4bf
JM
37597 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
37598 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
37599 fi; \
37600 else \
a90ef4bf 37601 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 37602 fi; \
a90ef4bf 37603 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 37604 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 37605 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37606 echo Configuring in $(TARGET_SUBDIR)/libssp; \
37607 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 37608 case $(srcdir) in \
b00612cc 37609 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37610 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 37611 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 37612 esac; \
1b6c0831 37613 module_srcdir=libssp; \
4b1cb4fe 37614 rm -f no-such-file || : ; \
1b6c0831
L
37615 CONFIG_SITE=no-such-file $(SHELL) \
37616 $$s/$$module_srcdir/configure \
37617 --srcdir=$${topdir}/$$module_srcdir \
4b900473 37618 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37619 --target=${target_alias} \
4b1cb4fe 37620 || exit 1
a90ef4bf 37621@endif target-libssp
4b1cb4fe 37622
a7254363
PB
37623
37624
d545f33b
PB
37625
37626
a90ef4bf
JM
37627.PHONY: all-target-libssp maybe-all-target-libssp
37628maybe-all-target-libssp:
4f0ef2d8 37629@if gcc-bootstrap
a90ef4bf 37630all-target-libssp: stage_current
4f0ef2d8 37631@endif gcc-bootstrap
a90ef4bf
JM
37632@if target-libssp
37633TARGET-target-libssp=all
37634maybe-all-target-libssp: all-target-libssp
37635all-target-libssp: configure-target-libssp
0aed8855 37636 @: $(MAKE); $(unstage)
4b1cb4fe
DD
37637 @r=`${PWD_COMMAND}`; export r; \
37638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37639 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37640 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 37641 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37642 $(TARGET-target-libssp))
37643@endif target-libssp
4b1cb4fe 37644
a7254363
PB
37645
37646
d545f33b
PB
37647
37648
a90ef4bf
JM
37649.PHONY: check-target-libssp maybe-check-target-libssp
37650maybe-check-target-libssp:
37651@if target-libssp
37652maybe-check-target-libssp: check-target-libssp
4b1cb4fe 37653
a90ef4bf 37654check-target-libssp:
0aed8855 37655 @: $(MAKE); $(unstage)
b40e3958
L
37656 @r=`${PWD_COMMAND}`; export r; \
37657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37658 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37659 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37660 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 37661
a90ef4bf 37662@endif target-libssp
3866be5d 37663
a90ef4bf
JM
37664.PHONY: install-target-libssp maybe-install-target-libssp
37665maybe-install-target-libssp:
37666@if target-libssp
37667maybe-install-target-libssp: install-target-libssp
e2b9e2dc 37668
a90ef4bf 37669install-target-libssp: installdirs
0aed8855 37670 @: $(MAKE); $(unstage)
b40e3958
L
37671 @r=`${PWD_COMMAND}`; export r; \
37672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37673 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37674 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37675 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37676
a90ef4bf 37677@endif target-libssp
3866be5d 37678
a90ef4bf
JM
37679.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
37680maybe-install-strip-target-libssp:
37681@if target-libssp
37682maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 37683
a90ef4bf 37684install-strip-target-libssp: installdirs
9b980aa1
RW
37685 @: $(MAKE); $(unstage)
37686 @r=`${PWD_COMMAND}`; export r; \
37687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37688 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37689 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
37690 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37691
a90ef4bf 37692@endif target-libssp
9b980aa1 37693
56a8fe78 37694# Other targets (info, dvi, pdf, etc.)
3866be5d 37695
a90ef4bf
JM
37696.PHONY: maybe-info-target-libssp info-target-libssp
37697maybe-info-target-libssp:
37698@if target-libssp
37699maybe-info-target-libssp: info-target-libssp
3866be5d 37700
a90ef4bf
JM
37701info-target-libssp: \
37702 configure-target-libssp
0aed8855 37703 @: $(MAKE); $(unstage)
22121df0 37704 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
37705 r=`${PWD_COMMAND}`; export r; \
37706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37707 $(NORMAL_TARGET_EXPORTS) \
22121df0 37708 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37709 for flag in $(EXTRA_TARGET_FLAGS); do \
37710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37711 done; \
a90ef4bf 37712 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37715 "RANLIB=$${RANLIB}" \
0c24b341 37716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37717 info) \
4fa63067 37718 || exit 1
16ae0395 37719
a90ef4bf 37720@endif target-libssp
3866be5d 37721
a90ef4bf
JM
37722.PHONY: maybe-dvi-target-libssp dvi-target-libssp
37723maybe-dvi-target-libssp:
37724@if target-libssp
37725maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 37726
a90ef4bf
JM
37727dvi-target-libssp: \
37728 configure-target-libssp
0aed8855 37729 @: $(MAKE); $(unstage)
22121df0 37730 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37731 r=`${PWD_COMMAND}`; export r; \
37732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37733 $(NORMAL_TARGET_EXPORTS) \
22121df0 37734 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37735 for flag in $(EXTRA_TARGET_FLAGS); do \
37736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37737 done; \
a90ef4bf 37738 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37741 "RANLIB=$${RANLIB}" \
0c24b341 37742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37743 dvi) \
e2b9e2dc
NN
37744 || exit 1
37745
a90ef4bf 37746@endif target-libssp
3866be5d 37747
a90ef4bf
JM
37748.PHONY: maybe-pdf-target-libssp pdf-target-libssp
37749maybe-pdf-target-libssp:
37750@if target-libssp
37751maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 37752
a90ef4bf
JM
37753pdf-target-libssp: \
37754 configure-target-libssp
56a8fe78 37755 @: $(MAKE); $(unstage)
22121df0 37756 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
37757 r=`${PWD_COMMAND}`; export r; \
37758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37759 $(NORMAL_TARGET_EXPORTS) \
22121df0 37760 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
37761 for flag in $(EXTRA_TARGET_FLAGS); do \
37762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37763 done; \
a90ef4bf 37764 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
37765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37767 "RANLIB=$${RANLIB}" \
0c24b341 37768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37769 pdf) \
37770 || exit 1
37771
a90ef4bf 37772@endif target-libssp
a3ca38d2 37773
a90ef4bf
JM
37774.PHONY: maybe-html-target-libssp html-target-libssp
37775maybe-html-target-libssp:
37776@if target-libssp
37777maybe-html-target-libssp: html-target-libssp
108a6f8e 37778
a90ef4bf
JM
37779html-target-libssp: \
37780 configure-target-libssp
108a6f8e 37781 @: $(MAKE); $(unstage)
22121df0 37782 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
37783 r=`${PWD_COMMAND}`; export r; \
37784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37785 $(NORMAL_TARGET_EXPORTS) \
22121df0 37786 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
37787 for flag in $(EXTRA_TARGET_FLAGS); do \
37788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37789 done; \
a90ef4bf 37790 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
37791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37793 "RANLIB=$${RANLIB}" \
0c24b341 37794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37795 html) \
108a6f8e
CD
37796 || exit 1
37797
a90ef4bf 37798@endif target-libssp
108a6f8e 37799
a90ef4bf
JM
37800.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
37801maybe-TAGS-target-libssp:
37802@if target-libssp
37803maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 37804
a90ef4bf
JM
37805TAGS-target-libssp: \
37806 configure-target-libssp
0aed8855 37807 @: $(MAKE); $(unstage)
22121df0 37808 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37809 r=`${PWD_COMMAND}`; export r; \
37810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37811 $(NORMAL_TARGET_EXPORTS) \
22121df0 37812 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37813 for flag in $(EXTRA_TARGET_FLAGS); do \
37814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37815 done; \
a90ef4bf 37816 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37819 "RANLIB=$${RANLIB}" \
0c24b341 37820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37821 TAGS) \
e2b9e2dc
NN
37822 || exit 1
37823
a90ef4bf 37824@endif target-libssp
3866be5d 37825
a90ef4bf
JM
37826.PHONY: maybe-install-info-target-libssp install-info-target-libssp
37827maybe-install-info-target-libssp:
37828@if target-libssp
37829maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 37830
a90ef4bf
JM
37831install-info-target-libssp: \
37832 configure-target-libssp \
37833 info-target-libssp
0aed8855 37834 @: $(MAKE); $(unstage)
22121df0 37835 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37836 r=`${PWD_COMMAND}`; export r; \
b40e3958 37837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37838 $(NORMAL_TARGET_EXPORTS) \
22121df0 37839 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37840 for flag in $(EXTRA_TARGET_FLAGS); do \
37841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37842 done; \
a90ef4bf 37843 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37846 "RANLIB=$${RANLIB}" \
0c24b341 37847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37848 install-info) \
4fa63067 37849 || exit 1
3866be5d 37850
a90ef4bf 37851@endif target-libssp
3866be5d 37852
a90ef4bf
JM
37853.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
37854maybe-install-pdf-target-libssp:
37855@if target-libssp
37856maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 37857
a90ef4bf
JM
37858install-pdf-target-libssp: \
37859 configure-target-libssp \
37860 pdf-target-libssp
0aed8855 37861 @: $(MAKE); $(unstage)
22121df0 37862 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37863 r=`${PWD_COMMAND}`; export r; \
b40e3958 37864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37865 $(NORMAL_TARGET_EXPORTS) \
22121df0 37866 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37867 for flag in $(EXTRA_TARGET_FLAGS); do \
37868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37869 done; \
a90ef4bf 37870 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37873 "RANLIB=$${RANLIB}" \
0c24b341 37874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37875 install-pdf) \
4fa63067 37876 || exit 1
3866be5d 37877
a90ef4bf 37878@endif target-libssp
3866be5d 37879
a90ef4bf
JM
37880.PHONY: maybe-install-html-target-libssp install-html-target-libssp
37881maybe-install-html-target-libssp:
37882@if target-libssp
37883maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 37884
a90ef4bf
JM
37885install-html-target-libssp: \
37886 configure-target-libssp \
37887 html-target-libssp
0aed8855 37888 @: $(MAKE); $(unstage)
22121df0 37889 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37890 r=`${PWD_COMMAND}`; export r; \
37891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37892 $(NORMAL_TARGET_EXPORTS) \
22121df0 37893 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37894 for flag in $(EXTRA_TARGET_FLAGS); do \
37895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37896 done; \
a90ef4bf 37897 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37900 "RANLIB=$${RANLIB}" \
0c24b341 37901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37902 install-html) \
e2b9e2dc
NN
37903 || exit 1
37904
a90ef4bf 37905@endif target-libssp
3866be5d 37906
a90ef4bf
JM
37907.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
37908maybe-installcheck-target-libssp:
37909@if target-libssp
37910maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 37911
a90ef4bf
JM
37912installcheck-target-libssp: \
37913 configure-target-libssp
0aed8855 37914 @: $(MAKE); $(unstage)
22121df0 37915 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37916 r=`${PWD_COMMAND}`; export r; \
b40e3958 37917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37918 $(NORMAL_TARGET_EXPORTS) \
22121df0 37919 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37920 for flag in $(EXTRA_TARGET_FLAGS); do \
37921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37922 done; \
a90ef4bf 37923 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37926 "RANLIB=$${RANLIB}" \
0c24b341 37927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37928 installcheck) \
6aa8ef82 37929 || exit 1
6aa8ef82 37930
a90ef4bf 37931@endif target-libssp
6aa8ef82 37932
a90ef4bf
JM
37933.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
37934maybe-mostlyclean-target-libssp:
37935@if target-libssp
37936maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 37937
a90ef4bf
JM
37938mostlyclean-target-libssp:
37939 @: $(MAKE); $(unstage)
22121df0 37940 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37941 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37943 $(NORMAL_TARGET_EXPORTS) \
22121df0 37944 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37945 for flag in $(EXTRA_TARGET_FLAGS); do \
37946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37947 done; \
37948 (cd $(TARGET_SUBDIR)/libssp && \
37949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37951 "RANLIB=$${RANLIB}" \
37952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37953 mostlyclean) \
37954 || exit 1
6aa8ef82 37955
a90ef4bf 37956@endif target-libssp
6aa8ef82 37957
a90ef4bf
JM
37958.PHONY: maybe-clean-target-libssp clean-target-libssp
37959maybe-clean-target-libssp:
37960@if target-libssp
37961maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 37962
a90ef4bf
JM
37963clean-target-libssp:
37964 @: $(MAKE); $(unstage)
22121df0 37965 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37966 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37968 $(NORMAL_TARGET_EXPORTS) \
22121df0 37969 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37970 for flag in $(EXTRA_TARGET_FLAGS); do \
37971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37972 done; \
37973 (cd $(TARGET_SUBDIR)/libssp && \
37974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37976 "RANLIB=$${RANLIB}" \
37977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37978 clean) \
37979 || exit 1
6aa8ef82 37980
a90ef4bf 37981@endif target-libssp
6aa8ef82 37982
a90ef4bf
JM
37983.PHONY: maybe-distclean-target-libssp distclean-target-libssp
37984maybe-distclean-target-libssp:
37985@if target-libssp
37986maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 37987
a90ef4bf
JM
37988distclean-target-libssp:
37989 @: $(MAKE); $(unstage)
22121df0 37990 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37991 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37993 $(NORMAL_TARGET_EXPORTS) \
22121df0 37994 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37995 for flag in $(EXTRA_TARGET_FLAGS); do \
37996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37997 done; \
37998 (cd $(TARGET_SUBDIR)/libssp && \
37999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38001 "RANLIB=$${RANLIB}" \
38002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38003 distclean) \
38004 || exit 1
6aa8ef82 38005
a90ef4bf 38006@endif target-libssp
6aa8ef82 38007
a90ef4bf
JM
38008.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
38009maybe-maintainer-clean-target-libssp:
38010@if target-libssp
38011maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 38012
a90ef4bf
JM
38013maintainer-clean-target-libssp:
38014 @: $(MAKE); $(unstage)
22121df0 38015 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 38016 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
38017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38018 $(NORMAL_TARGET_EXPORTS) \
22121df0 38019 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
38020 for flag in $(EXTRA_TARGET_FLAGS); do \
38021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38022 done; \
38023 (cd $(TARGET_SUBDIR)/libssp && \
38024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38026 "RANLIB=$${RANLIB}" \
38027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38028 maintainer-clean) \
38029 || exit 1
6aa8ef82 38030
a90ef4bf 38031@endif target-libssp
6aa8ef82
DJ
38032
38033
a90ef4bf
JM
38034
38035
38036
38037.PHONY: configure-target-newlib maybe-configure-target-newlib
38038maybe-configure-target-newlib:
38039@if gcc-bootstrap
38040configure-target-newlib: stage_current
38041@endif gcc-bootstrap
38042@if target-newlib
38043maybe-configure-target-newlib: configure-target-newlib
38044configure-target-newlib:
38045 @: $(MAKE); $(unstage)
6aa8ef82
DJ
38046 @r=`${PWD_COMMAND}`; export r; \
38047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38048 echo "Checking multilib configuration for newlib..."; \
22121df0
L
38049 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
38050 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38051 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
38052 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
38053 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
38054 else \
38055 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
38056 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
38057 fi; \
6aa8ef82 38058 else \
a90ef4bf 38059 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 38060 fi; \
a90ef4bf 38061 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 38062 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
38063 $(NORMAL_TARGET_EXPORTS) \
38064 echo Configuring in $(TARGET_SUBDIR)/newlib; \
38065 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
38066 case $(srcdir) in \
38067 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38068 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
38069 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38070 esac; \
1b6c0831 38071 module_srcdir=newlib; \
a90ef4bf 38072 rm -f no-such-file || : ; \
1b6c0831
L
38073 CONFIG_SITE=no-such-file $(SHELL) \
38074 $$s/$$module_srcdir/configure \
38075 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38076 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38077 --target=${target_alias} \
a90ef4bf
JM
38078 || exit 1
38079@endif target-newlib
6aa8ef82
DJ
38080
38081
38082
38083
38084
a90ef4bf
JM
38085.PHONY: all-target-newlib maybe-all-target-newlib
38086maybe-all-target-newlib:
38087@if gcc-bootstrap
38088all-target-newlib: stage_current
38089@endif gcc-bootstrap
38090@if target-newlib
38091TARGET-target-newlib=all
38092maybe-all-target-newlib: all-target-newlib
38093all-target-newlib: configure-target-newlib
38094 @: $(MAKE); $(unstage)
38095 @r=`${PWD_COMMAND}`; export r; \
38096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38097 $(NORMAL_TARGET_EXPORTS) \
38098 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 38099 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38100 $(TARGET-target-newlib))
38101@endif target-newlib
6aa8ef82 38102
6aa8ef82 38103
6aa8ef82 38104
6aa8ef82 38105
6aa8ef82 38106
a90ef4bf
JM
38107.PHONY: check-target-newlib maybe-check-target-newlib
38108maybe-check-target-newlib:
38109@if target-newlib
38110maybe-check-target-newlib: check-target-newlib
38111
38112check-target-newlib:
6aa8ef82
DJ
38113 @: $(MAKE); $(unstage)
38114 @r=`${PWD_COMMAND}`; export r; \
38115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38116 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38117 (cd $(TARGET_SUBDIR)/newlib && \
38118 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38119
38120@endif target-newlib
38121
38122.PHONY: install-target-newlib maybe-install-target-newlib
38123maybe-install-target-newlib:
38124@if target-newlib
38125maybe-install-target-newlib: install-target-newlib
38126
38127install-target-newlib: installdirs
38128 @: $(MAKE); $(unstage)
38129 @r=`${PWD_COMMAND}`; export r; \
38130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38131 $(NORMAL_TARGET_EXPORTS) \
38132 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38133 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38134
a90ef4bf 38135@endif target-newlib
6aa8ef82 38136
a90ef4bf
JM
38137.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
38138maybe-install-strip-target-newlib:
38139@if target-newlib
38140maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 38141
a90ef4bf 38142install-strip-target-newlib: installdirs
9b980aa1
RW
38143 @: $(MAKE); $(unstage)
38144 @r=`${PWD_COMMAND}`; export r; \
38145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38146 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38147 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
38148 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38149
a90ef4bf 38150@endif target-newlib
9b980aa1 38151
6aa8ef82
DJ
38152# Other targets (info, dvi, pdf, etc.)
38153
a90ef4bf
JM
38154.PHONY: maybe-info-target-newlib info-target-newlib
38155maybe-info-target-newlib:
38156@if target-newlib
38157maybe-info-target-newlib: info-target-newlib
6aa8ef82 38158
a90ef4bf
JM
38159info-target-newlib: \
38160 configure-target-newlib
6aa8ef82 38161 @: $(MAKE); $(unstage)
22121df0 38162 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38163 r=`${PWD_COMMAND}`; export r; \
38164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38165 $(NORMAL_TARGET_EXPORTS) \
22121df0 38166 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38167 for flag in $(EXTRA_TARGET_FLAGS); do \
38168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38169 done; \
a90ef4bf 38170 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38173 "RANLIB=$${RANLIB}" \
0c24b341 38174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38175 info) \
38176 || exit 1
38177
a90ef4bf 38178@endif target-newlib
6aa8ef82 38179
a90ef4bf
JM
38180.PHONY: maybe-dvi-target-newlib dvi-target-newlib
38181maybe-dvi-target-newlib:
38182@if target-newlib
38183maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 38184
a90ef4bf
JM
38185dvi-target-newlib: \
38186 configure-target-newlib
6aa8ef82 38187 @: $(MAKE); $(unstage)
22121df0 38188 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38189 r=`${PWD_COMMAND}`; export r; \
38190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38191 $(NORMAL_TARGET_EXPORTS) \
22121df0 38192 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38193 for flag in $(EXTRA_TARGET_FLAGS); do \
38194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38195 done; \
a90ef4bf 38196 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38199 "RANLIB=$${RANLIB}" \
0c24b341 38200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38201 dvi) \
38202 || exit 1
38203
a90ef4bf 38204@endif target-newlib
6aa8ef82 38205
a90ef4bf
JM
38206.PHONY: maybe-pdf-target-newlib pdf-target-newlib
38207maybe-pdf-target-newlib:
38208@if target-newlib
38209maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 38210
a90ef4bf
JM
38211pdf-target-newlib: \
38212 configure-target-newlib
6aa8ef82 38213 @: $(MAKE); $(unstage)
22121df0 38214 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38215 r=`${PWD_COMMAND}`; export r; \
38216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38217 $(NORMAL_TARGET_EXPORTS) \
22121df0 38218 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38219 for flag in $(EXTRA_TARGET_FLAGS); do \
38220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38221 done; \
a90ef4bf 38222 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38225 "RANLIB=$${RANLIB}" \
0c24b341 38226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38227 pdf) \
38228 || exit 1
38229
a90ef4bf 38230@endif target-newlib
6aa8ef82 38231
a90ef4bf
JM
38232.PHONY: maybe-html-target-newlib html-target-newlib
38233maybe-html-target-newlib:
38234@if target-newlib
38235maybe-html-target-newlib: html-target-newlib
6aa8ef82 38236
a90ef4bf
JM
38237html-target-newlib: \
38238 configure-target-newlib
6aa8ef82 38239 @: $(MAKE); $(unstage)
22121df0 38240 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38241 r=`${PWD_COMMAND}`; export r; \
38242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38243 $(NORMAL_TARGET_EXPORTS) \
22121df0 38244 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38245 for flag in $(EXTRA_TARGET_FLAGS); do \
38246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38247 done; \
a90ef4bf 38248 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38251 "RANLIB=$${RANLIB}" \
0c24b341 38252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38253 html) \
38254 || exit 1
38255
a90ef4bf 38256@endif target-newlib
6aa8ef82 38257
a90ef4bf
JM
38258.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
38259maybe-TAGS-target-newlib:
38260@if target-newlib
38261maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 38262
a90ef4bf
JM
38263TAGS-target-newlib: \
38264 configure-target-newlib
6aa8ef82 38265 @: $(MAKE); $(unstage)
22121df0 38266 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38267 r=`${PWD_COMMAND}`; export r; \
38268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38269 $(NORMAL_TARGET_EXPORTS) \
22121df0 38270 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38271 for flag in $(EXTRA_TARGET_FLAGS); do \
38272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38273 done; \
a90ef4bf 38274 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38277 "RANLIB=$${RANLIB}" \
0c24b341 38278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38279 TAGS) \
38280 || exit 1
38281
a90ef4bf 38282@endif target-newlib
6aa8ef82 38283
a90ef4bf
JM
38284.PHONY: maybe-install-info-target-newlib install-info-target-newlib
38285maybe-install-info-target-newlib:
38286@if target-newlib
38287maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 38288
a90ef4bf
JM
38289install-info-target-newlib: \
38290 configure-target-newlib \
38291 info-target-newlib
6aa8ef82 38292 @: $(MAKE); $(unstage)
22121df0 38293 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38294 r=`${PWD_COMMAND}`; export r; \
38295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38296 $(NORMAL_TARGET_EXPORTS) \
22121df0 38297 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38298 for flag in $(EXTRA_TARGET_FLAGS); do \
38299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38300 done; \
a90ef4bf 38301 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38304 "RANLIB=$${RANLIB}" \
0c24b341 38305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38306 install-info) \
38307 || exit 1
38308
a90ef4bf 38309@endif target-newlib
6aa8ef82 38310
a90ef4bf
JM
38311.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
38312maybe-install-pdf-target-newlib:
38313@if target-newlib
38314maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 38315
a90ef4bf
JM
38316install-pdf-target-newlib: \
38317 configure-target-newlib \
38318 pdf-target-newlib
a3ca38d2 38319 @: $(MAKE); $(unstage)
22121df0 38320 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
38321 r=`${PWD_COMMAND}`; export r; \
38322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38323 $(NORMAL_TARGET_EXPORTS) \
22121df0 38324 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
38325 for flag in $(EXTRA_TARGET_FLAGS); do \
38326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38327 done; \
a90ef4bf 38328 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
38329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38331 "RANLIB=$${RANLIB}" \
0c24b341 38332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38333 install-pdf) \
38334 || exit 1
38335
a90ef4bf 38336@endif target-newlib
a3ca38d2 38337
a90ef4bf
JM
38338.PHONY: maybe-install-html-target-newlib install-html-target-newlib
38339maybe-install-html-target-newlib:
38340@if target-newlib
38341maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 38342
a90ef4bf
JM
38343install-html-target-newlib: \
38344 configure-target-newlib \
38345 html-target-newlib
6aa8ef82 38346 @: $(MAKE); $(unstage)
22121df0 38347 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38348 r=`${PWD_COMMAND}`; export r; \
38349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38350 $(NORMAL_TARGET_EXPORTS) \
22121df0 38351 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38352 for flag in $(EXTRA_TARGET_FLAGS); do \
38353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38354 done; \
a90ef4bf 38355 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38358 "RANLIB=$${RANLIB}" \
0c24b341 38359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38360 install-html) \
38361 || exit 1
38362
a90ef4bf 38363@endif target-newlib
6aa8ef82 38364
a90ef4bf
JM
38365.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
38366maybe-installcheck-target-newlib:
38367@if target-newlib
38368maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 38369
a90ef4bf
JM
38370installcheck-target-newlib: \
38371 configure-target-newlib
6aa8ef82 38372 @: $(MAKE); $(unstage)
22121df0 38373 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38374 r=`${PWD_COMMAND}`; export r; \
38375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38376 $(NORMAL_TARGET_EXPORTS) \
22121df0 38377 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38378 for flag in $(EXTRA_TARGET_FLAGS); do \
38379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38380 done; \
a90ef4bf 38381 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38384 "RANLIB=$${RANLIB}" \
0c24b341 38385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38386 installcheck) \
38387 || exit 1
38388
a90ef4bf 38389@endif target-newlib
6aa8ef82 38390
a90ef4bf
JM
38391.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
38392maybe-mostlyclean-target-newlib:
38393@if target-newlib
38394maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 38395
a90ef4bf 38396mostlyclean-target-newlib:
6aa8ef82 38397 @: $(MAKE); $(unstage)
22121df0 38398 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38399 r=`${PWD_COMMAND}`; export r; \
38400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38401 $(NORMAL_TARGET_EXPORTS) \
22121df0 38402 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38403 for flag in $(EXTRA_TARGET_FLAGS); do \
38404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38405 done; \
a90ef4bf 38406 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38409 "RANLIB=$${RANLIB}" \
0c24b341 38410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38411 mostlyclean) \
38412 || exit 1
38413
a90ef4bf 38414@endif target-newlib
6aa8ef82 38415
a90ef4bf
JM
38416.PHONY: maybe-clean-target-newlib clean-target-newlib
38417maybe-clean-target-newlib:
38418@if target-newlib
38419maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 38420
a90ef4bf 38421clean-target-newlib:
6aa8ef82 38422 @: $(MAKE); $(unstage)
22121df0 38423 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38424 r=`${PWD_COMMAND}`; export r; \
38425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38426 $(NORMAL_TARGET_EXPORTS) \
22121df0 38427 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38428 for flag in $(EXTRA_TARGET_FLAGS); do \
38429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38430 done; \
a90ef4bf 38431 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38434 "RANLIB=$${RANLIB}" \
0c24b341 38435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38436 clean) \
38437 || exit 1
38438
a90ef4bf 38439@endif target-newlib
6aa8ef82 38440
a90ef4bf
JM
38441.PHONY: maybe-distclean-target-newlib distclean-target-newlib
38442maybe-distclean-target-newlib:
38443@if target-newlib
38444maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 38445
a90ef4bf 38446distclean-target-newlib:
6aa8ef82 38447 @: $(MAKE); $(unstage)
22121df0 38448 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38449 r=`${PWD_COMMAND}`; export r; \
38450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38451 $(NORMAL_TARGET_EXPORTS) \
22121df0 38452 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38453 for flag in $(EXTRA_TARGET_FLAGS); do \
38454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38455 done; \
a90ef4bf 38456 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38459 "RANLIB=$${RANLIB}" \
0c24b341 38460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38461 distclean) \
38462 || exit 1
38463
a90ef4bf 38464@endif target-newlib
6aa8ef82 38465
a90ef4bf
JM
38466.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
38467maybe-maintainer-clean-target-newlib:
38468@if target-newlib
38469maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 38470
a90ef4bf 38471maintainer-clean-target-newlib:
6aa8ef82 38472 @: $(MAKE); $(unstage)
22121df0 38473 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38474 r=`${PWD_COMMAND}`; export r; \
38475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38476 $(NORMAL_TARGET_EXPORTS) \
22121df0 38477 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38478 for flag in $(EXTRA_TARGET_FLAGS); do \
38479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38480 done; \
a90ef4bf 38481 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38484 "RANLIB=$${RANLIB}" \
0c24b341 38485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38486 maintainer-clean) \
38487 || exit 1
38488
a90ef4bf 38489@endif target-newlib
6aa8ef82
DJ
38490
38491
38492
38493
38494
a90ef4bf
JM
38495.PHONY: configure-target-libgcc maybe-configure-target-libgcc
38496maybe-configure-target-libgcc:
e552509b 38497@if gcc-bootstrap
a90ef4bf 38498configure-target-libgcc: stage_current
e552509b 38499@endif gcc-bootstrap
a90ef4bf
JM
38500@if target-libgcc
38501maybe-configure-target-libgcc: configure-target-libgcc
38502configure-target-libgcc:
e552509b
ILT
38503 @r=`${PWD_COMMAND}`; export r; \
38504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38505 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
38506 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
38507 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38508 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38509 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38510 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 38511 else \
a90ef4bf
JM
38512 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38513 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
38514 fi; \
38515 else \
a90ef4bf 38516 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 38517 fi; \
a90ef4bf 38518 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 38519 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 38520 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38521 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
38522 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
38523 case $(srcdir) in \
38524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38525 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
38526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38527 esac; \
1b6c0831 38528 module_srcdir=libgcc; \
e552509b 38529 rm -f no-such-file || : ; \
1b6c0831
L
38530 CONFIG_SITE=no-such-file $(SHELL) \
38531 $$s/$$module_srcdir/configure \
38532 --srcdir=$${topdir}/$$module_srcdir \
e552509b 38533 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38534 --target=${target_alias} \
e552509b 38535 || exit 1
a90ef4bf 38536@endif target-libgcc
e552509b
ILT
38537
38538
e552509b 38539
a90ef4bf
JM
38540.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
38541maybe-configure-stage1-target-libgcc:
38542@if target-libgcc-bootstrap
38543maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
38544configure-stage1-target-libgcc:
38545 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38546 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38547 @r=`${PWD_COMMAND}`; export r; \
38548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38549 TFLAGS="$(STAGE1_TFLAGS)"; \
38550 echo "Checking multilib configuration for libgcc..."; \
22121df0 38551 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38552 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38553 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38554 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38555 else \
38556 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38557 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38558 fi; \
38559 else \
38560 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38561 fi; \
38562 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38563 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38564 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38565 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38566 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38567 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
38568 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38569 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38570 case $(srcdir) in \
38571 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38572 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38573 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38574 esac; \
1b6c0831
L
38575 module_srcdir=libgcc; \
38576 $(SHELL) $$s/$$module_srcdir/configure \
38577 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38578 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38579 --target=${target_alias} \
38580 \
a90ef4bf
JM
38581 $(STAGE1_CONFIGURE_FLAGS)
38582@endif target-libgcc-bootstrap
e552509b 38583
a90ef4bf
JM
38584.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
38585maybe-configure-stage2-target-libgcc:
38586@if target-libgcc-bootstrap
38587maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
38588configure-stage2-target-libgcc:
38589 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38590 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38591 @r=`${PWD_COMMAND}`; export r; \
38592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38593 TFLAGS="$(STAGE2_TFLAGS)"; \
38594 echo "Checking multilib configuration for libgcc..."; \
22121df0 38595 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38596 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38597 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38598 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38599 else \
38600 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38601 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38602 fi; \
38603 else \
38604 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38605 fi; \
38606 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38607 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38608 \
38609 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38610 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38611 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38612 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
38613 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38614 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38615 case $(srcdir) in \
38616 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38617 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38618 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38619 esac; \
1b6c0831
L
38620 module_srcdir=libgcc; \
38621 $(SHELL) $$s/$$module_srcdir/configure \
38622 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38623 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38624 --target=${target_alias} \
22121df0 38625 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38626 $(STAGE2_CONFIGURE_FLAGS)
38627@endif target-libgcc-bootstrap
9b980aa1 38628
a90ef4bf
JM
38629.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
38630maybe-configure-stage3-target-libgcc:
38631@if target-libgcc-bootstrap
38632maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
38633configure-stage3-target-libgcc:
38634 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38635 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
38636 @r=`${PWD_COMMAND}`; export r; \
38637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38638 TFLAGS="$(STAGE3_TFLAGS)"; \
38639 echo "Checking multilib configuration for libgcc..."; \
22121df0 38640 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38641 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38642 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38643 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38644 else \
38645 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38646 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38647 fi; \
38648 else \
38649 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38650 fi; \
38651 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 38652 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38653 \
38654 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38655 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38656 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38657 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
38658 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38659 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38660 case $(srcdir) in \
38661 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38662 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38663 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38664 esac; \
1b6c0831
L
38665 module_srcdir=libgcc; \
38666 $(SHELL) $$s/$$module_srcdir/configure \
38667 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38668 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38669 --target=${target_alias} \
22121df0 38670 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38671 $(STAGE3_CONFIGURE_FLAGS)
38672@endif target-libgcc-bootstrap
e552509b 38673
a90ef4bf
JM
38674.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
38675maybe-configure-stage4-target-libgcc:
38676@if target-libgcc-bootstrap
38677maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
38678configure-stage4-target-libgcc:
38679 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38680 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38681 @r=`${PWD_COMMAND}`; export r; \
e552509b 38682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38683 TFLAGS="$(STAGE4_TFLAGS)"; \
38684 echo "Checking multilib configuration for libgcc..."; \
22121df0 38685 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38686 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38687 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38688 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38689 else \
38690 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38691 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38692 fi; \
38693 else \
38694 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38695 fi; \
38696 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38697 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38698 \
38699 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38700 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38701 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38702 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
38703 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38704 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38705 case $(srcdir) in \
38706 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38707 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38708 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38709 esac; \
1b6c0831
L
38710 module_srcdir=libgcc; \
38711 $(SHELL) $$s/$$module_srcdir/configure \
38712 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38713 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38714 --target=${target_alias} \
22121df0 38715 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38716 $(STAGE4_CONFIGURE_FLAGS)
38717@endif target-libgcc-bootstrap
38718
38719.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
38720maybe-configure-stageprofile-target-libgcc:
38721@if target-libgcc-bootstrap
38722maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38723configure-stageprofile-target-libgcc:
38724 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38725 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38726 @r=`${PWD_COMMAND}`; export r; \
e552509b 38727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38728 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38729 echo "Checking multilib configuration for libgcc..."; \
22121df0 38730 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38731 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38732 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38733 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38734 else \
38735 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38736 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38737 fi; \
38738 else \
38739 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38740 fi; \
38741 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38742 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38743 \
38744 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38745 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38746 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38747 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
38748 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38749 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38750 case $(srcdir) in \
38751 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38752 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38753 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38754 esac; \
1b6c0831
L
38755 module_srcdir=libgcc; \
38756 $(SHELL) $$s/$$module_srcdir/configure \
38757 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38758 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38759 --target=${target_alias} \
22121df0 38760 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38761 $(STAGEprofile_CONFIGURE_FLAGS)
38762@endif target-libgcc-bootstrap
e552509b 38763
a90ef4bf
JM
38764.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
38765maybe-configure-stagefeedback-target-libgcc:
38766@if target-libgcc-bootstrap
38767maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38768configure-stagefeedback-target-libgcc:
38769 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38770 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38771 @r=`${PWD_COMMAND}`; export r; \
e552509b 38772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38773 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38774 echo "Checking multilib configuration for libgcc..."; \
22121df0 38775 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38776 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38777 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38778 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38779 else \
38780 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38781 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38782 fi; \
38783 else \
38784 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38785 fi; \
38786 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38787 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38788 \
38789 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38790 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38791 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38792 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
38793 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38794 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38795 case $(srcdir) in \
38796 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38797 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38798 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38799 esac; \
1b6c0831
L
38800 module_srcdir=libgcc; \
38801 $(SHELL) $$s/$$module_srcdir/configure \
38802 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38803 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38804 --target=${target_alias} \
22121df0 38805 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38806 $(STAGEfeedback_CONFIGURE_FLAGS)
38807@endif target-libgcc-bootstrap
e552509b 38808
e552509b 38809
e552509b 38810
e552509b 38811
e552509b 38812
a90ef4bf
JM
38813.PHONY: all-target-libgcc maybe-all-target-libgcc
38814maybe-all-target-libgcc:
38815@if gcc-bootstrap
38816all-target-libgcc: stage_current
38817@endif gcc-bootstrap
38818@if target-libgcc
38819TARGET-target-libgcc=all
38820maybe-all-target-libgcc: all-target-libgcc
38821all-target-libgcc: configure-target-libgcc
38822 @r=`${PWD_COMMAND}`; export r; \
e552509b 38823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38824 $(NORMAL_TARGET_EXPORTS) \
38825 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38826 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38827 $(TARGET-target-libgcc))
38828@endif target-libgcc
e552509b 38829
e552509b 38830
e552509b 38831
a90ef4bf
JM
38832.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
38833.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
38834maybe-all-stage1-target-libgcc:
38835maybe-clean-stage1-target-libgcc:
38836@if target-libgcc-bootstrap
38837maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
38838all-stage1: all-stage1-target-libgcc
38839TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
38840all-stage1-target-libgcc: configure-stage1-target-libgcc
38841 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38842 @r=`${PWD_COMMAND}`; export r; \
e552509b 38843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38844 TFLAGS="$(STAGE1_TFLAGS)"; \
38845 $(NORMAL_TARGET_EXPORTS) \
38846 cd $(TARGET_SUBDIR)/libgcc && \
38847 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38848 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38849 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38850 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38851 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38852 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38853 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
38854 $(EXTRA_TARGET_FLAGS) \
38855 \
a90ef4bf
JM
38856 TFLAGS="$(STAGE1_TFLAGS)" \
38857 $(TARGET-stage1-target-libgcc)
e552509b 38858
a90ef4bf
JM
38859maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
38860clean-stage1: clean-stage1-target-libgcc
38861clean-stage1-target-libgcc:
38862 @if [ $(current_stage) = stage1 ]; then \
38863 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38864 else \
38865 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
38866 $(MAKE) stage1-start; \
38867 fi; \
38868 cd $(TARGET_SUBDIR)/libgcc && \
38869 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 38870 clean
a90ef4bf 38871@endif target-libgcc-bootstrap
e552509b 38872
e552509b 38873
a90ef4bf
JM
38874.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
38875.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
38876maybe-all-stage2-target-libgcc:
38877maybe-clean-stage2-target-libgcc:
38878@if target-libgcc-bootstrap
38879maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
38880all-stage2: all-stage2-target-libgcc
38881TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
38882all-stage2-target-libgcc: configure-stage2-target-libgcc
38883 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38884 @r=`${PWD_COMMAND}`; export r; \
e552509b 38885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38886 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 38887 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38888 \
38889 cd $(TARGET_SUBDIR)/libgcc && \
38890 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38891 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38892 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38893 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38894 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38895 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38896 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38897 $(EXTRA_TARGET_FLAGS) \
38898 TFLAGS="$(STAGE2_TFLAGS)" \
38899 $(TARGET-stage2-target-libgcc)
e552509b 38900
a90ef4bf
JM
38901maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
38902clean-stage2: clean-stage2-target-libgcc
38903clean-stage2-target-libgcc:
38904 @if [ $(current_stage) = stage2 ]; then \
38905 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38906 else \
38907 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
38908 $(MAKE) stage2-start; \
38909 fi; \
38910 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38911 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38912@endif target-libgcc-bootstrap
e552509b 38913
e552509b 38914
a90ef4bf
JM
38915.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
38916.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
38917maybe-all-stage3-target-libgcc:
38918maybe-clean-stage3-target-libgcc:
38919@if target-libgcc-bootstrap
38920maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
38921all-stage3: all-stage3-target-libgcc
38922TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
38923all-stage3-target-libgcc: configure-stage3-target-libgcc
38924 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38925 @r=`${PWD_COMMAND}`; export r; \
e552509b 38926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38927 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 38928 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38929 \
38930 cd $(TARGET_SUBDIR)/libgcc && \
38931 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38932 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38933 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38934 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38935 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38936 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38937 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38938 $(EXTRA_TARGET_FLAGS) \
38939 TFLAGS="$(STAGE3_TFLAGS)" \
38940 $(TARGET-stage3-target-libgcc)
e552509b 38941
a90ef4bf
JM
38942maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
38943clean-stage3: clean-stage3-target-libgcc
38944clean-stage3-target-libgcc:
38945 @if [ $(current_stage) = stage3 ]; then \
38946 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38947 else \
38948 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
38949 $(MAKE) stage3-start; \
38950 fi; \
38951 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38952 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38953@endif target-libgcc-bootstrap
e552509b 38954
e552509b 38955
a90ef4bf
JM
38956.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
38957.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
38958maybe-all-stage4-target-libgcc:
38959maybe-clean-stage4-target-libgcc:
38960@if target-libgcc-bootstrap
38961maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
38962all-stage4: all-stage4-target-libgcc
38963TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
38964all-stage4-target-libgcc: configure-stage4-target-libgcc
38965 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38966 @r=`${PWD_COMMAND}`; export r; \
e552509b 38967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38968 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 38969 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38970 \
38971 cd $(TARGET_SUBDIR)/libgcc && \
38972 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38973 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38974 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38975 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38976 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38977 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38978 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38979 $(EXTRA_TARGET_FLAGS) \
38980 TFLAGS="$(STAGE4_TFLAGS)" \
38981 $(TARGET-stage4-target-libgcc)
e552509b 38982
a90ef4bf
JM
38983maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
38984clean-stage4: clean-stage4-target-libgcc
38985clean-stage4-target-libgcc:
38986 @if [ $(current_stage) = stage4 ]; then \
38987 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38988 else \
38989 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
38990 $(MAKE) stage4-start; \
38991 fi; \
38992 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38993 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38994@endif target-libgcc-bootstrap
e552509b
ILT
38995
38996
a90ef4bf
JM
38997.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
38998.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
38999maybe-all-stageprofile-target-libgcc:
39000maybe-clean-stageprofile-target-libgcc:
39001@if target-libgcc-bootstrap
39002maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
39003all-stageprofile: all-stageprofile-target-libgcc
39004TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
39005all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
39006 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
39007 @r=`${PWD_COMMAND}`; export r; \
39008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39009 TFLAGS="$(STAGEprofile_TFLAGS)"; \
39010 $(NORMAL_TARGET_EXPORTS) \
39011 \
39012 cd $(TARGET_SUBDIR)/libgcc && \
39013 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39014 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39015 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39016 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39017 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39018 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39019 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39020 $(EXTRA_TARGET_FLAGS) \
39021 TFLAGS="$(STAGEprofile_TFLAGS)" \
39022 $(TARGET-stageprofile-target-libgcc)
39023
39024maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
39025clean-stageprofile: clean-stageprofile-target-libgcc
39026clean-stageprofile-target-libgcc:
39027 @if [ $(current_stage) = stageprofile ]; then \
39028 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 39029 else \
a90ef4bf
JM
39030 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
39031 $(MAKE) stageprofile-start; \
c52c6897 39032 fi; \
a90ef4bf 39033 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39034 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39035@endif target-libgcc-bootstrap
d545f33b
PB
39036
39037
a90ef4bf
JM
39038.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
39039.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
39040maybe-all-stagefeedback-target-libgcc:
39041maybe-clean-stagefeedback-target-libgcc:
39042@if target-libgcc-bootstrap
39043maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
39044all-stagefeedback: all-stagefeedback-target-libgcc
39045TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
39046all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
39047 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
39048 @r=`${PWD_COMMAND}`; export r; \
39049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39050 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39051 $(NORMAL_TARGET_EXPORTS) \
39052 \
39053 cd $(TARGET_SUBDIR)/libgcc && \
39054 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39055 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39056 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39057 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39058 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39059 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39060 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39061 $(EXTRA_TARGET_FLAGS) \
39062 TFLAGS="$(STAGEfeedback_TFLAGS)" \
39063 $(TARGET-stagefeedback-target-libgcc)
39064
39065maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
39066clean-stagefeedback: clean-stagefeedback-target-libgcc
39067clean-stagefeedback-target-libgcc:
39068 @if [ $(current_stage) = stagefeedback ]; then \
39069 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
39070 else \
39071 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
39072 $(MAKE) stagefeedback-start; \
39073 fi; \
39074 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39075 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39076@endif target-libgcc-bootstrap
4b1cb4fe 39077
a7254363
PB
39078
39079
d545f33b
PB
39080
39081
4b1cb4fe 39082
a90ef4bf
JM
39083.PHONY: check-target-libgcc maybe-check-target-libgcc
39084maybe-check-target-libgcc:
39085@if target-libgcc
39086maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 39087
a90ef4bf
JM
39088# Dummy target for uncheckable module.
39089check-target-libgcc:
4b1cb4fe 39090
a90ef4bf 39091@endif target-libgcc
4b1cb4fe 39092
a90ef4bf
JM
39093.PHONY: install-target-libgcc maybe-install-target-libgcc
39094maybe-install-target-libgcc:
39095@if target-libgcc
39096maybe-install-target-libgcc: install-target-libgcc
39097
39098install-target-libgcc: installdirs
0aed8855 39099 @: $(MAKE); $(unstage)
4b1cb4fe
DD
39100 @r=`${PWD_COMMAND}`; export r; \
39101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39102 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39103 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 39104 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 39105
a90ef4bf 39106@endif target-libgcc
4b1cb4fe 39107
a90ef4bf
JM
39108.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
39109maybe-install-strip-target-libgcc:
39110@if target-libgcc
39111maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 39112
a90ef4bf 39113install-strip-target-libgcc: installdirs
9b980aa1
RW
39114 @: $(MAKE); $(unstage)
39115 @r=`${PWD_COMMAND}`; export r; \
39116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39117 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39118 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
39119 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39120
a90ef4bf 39121@endif target-libgcc
9b980aa1 39122
56a8fe78 39123# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 39124
a90ef4bf
JM
39125.PHONY: maybe-info-target-libgcc info-target-libgcc
39126maybe-info-target-libgcc:
39127@if target-libgcc
39128maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 39129
a90ef4bf
JM
39130info-target-libgcc: \
39131 configure-target-libgcc
0aed8855 39132 @: $(MAKE); $(unstage)
22121df0 39133 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39134 r=`${PWD_COMMAND}`; export r; \
39135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39136 $(NORMAL_TARGET_EXPORTS) \
22121df0 39137 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39138 for flag in $(EXTRA_TARGET_FLAGS); do \
39139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39140 done; \
a90ef4bf 39141 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39144 "RANLIB=$${RANLIB}" \
0c24b341 39145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39146 info) \
4b1cb4fe
DD
39147 || exit 1
39148
a90ef4bf 39149@endif target-libgcc
4b1cb4fe 39150
a90ef4bf
JM
39151.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
39152maybe-dvi-target-libgcc:
39153@if target-libgcc
39154maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 39155
a90ef4bf
JM
39156dvi-target-libgcc: \
39157 configure-target-libgcc
0aed8855 39158 @: $(MAKE); $(unstage)
22121df0 39159 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39160 r=`${PWD_COMMAND}`; export r; \
39161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39162 $(NORMAL_TARGET_EXPORTS) \
22121df0 39163 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39164 for flag in $(EXTRA_TARGET_FLAGS); do \
39165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39166 done; \
a90ef4bf 39167 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39170 "RANLIB=$${RANLIB}" \
0c24b341 39171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39172 dvi) \
4b1cb4fe
DD
39173 || exit 1
39174
a90ef4bf 39175@endif target-libgcc
4b1cb4fe 39176
a90ef4bf
JM
39177.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
39178maybe-pdf-target-libgcc:
39179@if target-libgcc
39180maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 39181
a90ef4bf
JM
39182pdf-target-libgcc: \
39183 configure-target-libgcc
56a8fe78 39184 @: $(MAKE); $(unstage)
22121df0 39185 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
39186 r=`${PWD_COMMAND}`; export r; \
39187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39188 $(NORMAL_TARGET_EXPORTS) \
22121df0 39189 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
39190 for flag in $(EXTRA_TARGET_FLAGS); do \
39191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39192 done; \
a90ef4bf 39193 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
39194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39196 "RANLIB=$${RANLIB}" \
0c24b341 39197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39198 pdf) \
39199 || exit 1
39200
a90ef4bf 39201@endif target-libgcc
56a8fe78 39202
a90ef4bf
JM
39203.PHONY: maybe-html-target-libgcc html-target-libgcc
39204maybe-html-target-libgcc:
39205@if target-libgcc
39206maybe-html-target-libgcc: html-target-libgcc
6d389afc 39207
a90ef4bf
JM
39208html-target-libgcc: \
39209 configure-target-libgcc
0aed8855 39210 @: $(MAKE); $(unstage)
22121df0 39211 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
39212 r=`${PWD_COMMAND}`; export r; \
39213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 39214 $(NORMAL_TARGET_EXPORTS) \
22121df0 39215 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
39216 for flag in $(EXTRA_TARGET_FLAGS); do \
39217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39218 done; \
a90ef4bf 39219 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
39220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39222 "RANLIB=$${RANLIB}" \
0c24b341 39223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39224 html) \
39225 || exit 1
39226
a90ef4bf 39227@endif target-libgcc
6d389afc 39228
a90ef4bf
JM
39229.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
39230maybe-TAGS-target-libgcc:
39231@if target-libgcc
39232maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 39233
a90ef4bf
JM
39234TAGS-target-libgcc: \
39235 configure-target-libgcc
0aed8855 39236 @: $(MAKE); $(unstage)
22121df0 39237 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39238 r=`${PWD_COMMAND}`; export r; \
39239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39240 $(NORMAL_TARGET_EXPORTS) \
22121df0 39241 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39242 for flag in $(EXTRA_TARGET_FLAGS); do \
39243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39244 done; \
a90ef4bf 39245 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39248 "RANLIB=$${RANLIB}" \
0c24b341 39249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39250 TAGS) \
4b1cb4fe
DD
39251 || exit 1
39252
a90ef4bf 39253@endif target-libgcc
4b1cb4fe 39254
a90ef4bf
JM
39255.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
39256maybe-install-info-target-libgcc:
39257@if target-libgcc
39258maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 39259
a90ef4bf
JM
39260install-info-target-libgcc: \
39261 configure-target-libgcc \
39262 info-target-libgcc
0aed8855 39263 @: $(MAKE); $(unstage)
22121df0 39264 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39265 r=`${PWD_COMMAND}`; export r; \
39266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39267 $(NORMAL_TARGET_EXPORTS) \
22121df0 39268 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39269 for flag in $(EXTRA_TARGET_FLAGS); do \
39270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39271 done; \
a90ef4bf 39272 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39275 "RANLIB=$${RANLIB}" \
0c24b341 39276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39277 install-info) \
4b1cb4fe
DD
39278 || exit 1
39279
a90ef4bf 39280@endif target-libgcc
4b1cb4fe 39281
a90ef4bf
JM
39282.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
39283maybe-install-pdf-target-libgcc:
39284@if target-libgcc
39285maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 39286
a90ef4bf
JM
39287install-pdf-target-libgcc: \
39288 configure-target-libgcc \
39289 pdf-target-libgcc
a3ca38d2 39290 @: $(MAKE); $(unstage)
22121df0 39291 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
39292 r=`${PWD_COMMAND}`; export r; \
39293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39294 $(NORMAL_TARGET_EXPORTS) \
22121df0 39295 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
39296 for flag in $(EXTRA_TARGET_FLAGS); do \
39297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39298 done; \
a90ef4bf 39299 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
39300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39302 "RANLIB=$${RANLIB}" \
0c24b341 39303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39304 install-pdf) \
39305 || exit 1
39306
a90ef4bf 39307@endif target-libgcc
a3ca38d2 39308
a90ef4bf
JM
39309.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
39310maybe-install-html-target-libgcc:
39311@if target-libgcc
39312maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 39313
a90ef4bf
JM
39314install-html-target-libgcc: \
39315 configure-target-libgcc \
39316 html-target-libgcc
108a6f8e 39317 @: $(MAKE); $(unstage)
22121df0 39318 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
39319 r=`${PWD_COMMAND}`; export r; \
39320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39321 $(NORMAL_TARGET_EXPORTS) \
22121df0 39322 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
39323 for flag in $(EXTRA_TARGET_FLAGS); do \
39324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39325 done; \
a90ef4bf 39326 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
39327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39329 "RANLIB=$${RANLIB}" \
0c24b341 39330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39331 install-html) \
39332 || exit 1
39333
a90ef4bf 39334@endif target-libgcc
108a6f8e 39335
a90ef4bf
JM
39336.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
39337maybe-installcheck-target-libgcc:
39338@if target-libgcc
39339maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 39340
a90ef4bf
JM
39341installcheck-target-libgcc: \
39342 configure-target-libgcc
0aed8855 39343 @: $(MAKE); $(unstage)
22121df0 39344 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39345 r=`${PWD_COMMAND}`; export r; \
39346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39347 $(NORMAL_TARGET_EXPORTS) \
22121df0 39348 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39349 for flag in $(EXTRA_TARGET_FLAGS); do \
39350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39351 done; \
a90ef4bf 39352 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39355 "RANLIB=$${RANLIB}" \
0c24b341 39356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39357 installcheck) \
4b1cb4fe
DD
39358 || exit 1
39359
a90ef4bf 39360@endif target-libgcc
4b1cb4fe 39361
a90ef4bf
JM
39362.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
39363maybe-mostlyclean-target-libgcc:
39364@if target-libgcc
39365maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 39366
a90ef4bf 39367mostlyclean-target-libgcc:
0aed8855 39368 @: $(MAKE); $(unstage)
22121df0 39369 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39370 r=`${PWD_COMMAND}`; export r; \
39371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39372 $(NORMAL_TARGET_EXPORTS) \
22121df0 39373 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39374 for flag in $(EXTRA_TARGET_FLAGS); do \
39375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39376 done; \
a90ef4bf 39377 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39380 "RANLIB=$${RANLIB}" \
0c24b341 39381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39382 mostlyclean) \
4b1cb4fe
DD
39383 || exit 1
39384
a90ef4bf 39385@endif target-libgcc
4b1cb4fe 39386
a90ef4bf
JM
39387.PHONY: maybe-clean-target-libgcc clean-target-libgcc
39388maybe-clean-target-libgcc:
39389@if target-libgcc
39390maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 39391
a90ef4bf 39392clean-target-libgcc:
0aed8855 39393 @: $(MAKE); $(unstage)
22121df0 39394 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39395 r=`${PWD_COMMAND}`; export r; \
39396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39397 $(NORMAL_TARGET_EXPORTS) \
22121df0 39398 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39399 for flag in $(EXTRA_TARGET_FLAGS); do \
39400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39401 done; \
a90ef4bf 39402 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39405 "RANLIB=$${RANLIB}" \
0c24b341 39406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39407 clean) \
4b1cb4fe
DD
39408 || exit 1
39409
a90ef4bf 39410@endif target-libgcc
4b1cb4fe 39411
a90ef4bf
JM
39412.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
39413maybe-distclean-target-libgcc:
39414@if target-libgcc
39415maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 39416
a90ef4bf 39417distclean-target-libgcc:
0aed8855 39418 @: $(MAKE); $(unstage)
22121df0 39419 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39420 r=`${PWD_COMMAND}`; export r; \
39421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39422 $(NORMAL_TARGET_EXPORTS) \
22121df0 39423 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39424 for flag in $(EXTRA_TARGET_FLAGS); do \
39425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39426 done; \
a90ef4bf 39427 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39430 "RANLIB=$${RANLIB}" \
0c24b341 39431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39432 distclean) \
4b1cb4fe
DD
39433 || exit 1
39434
a90ef4bf 39435@endif target-libgcc
4b1cb4fe 39436
a90ef4bf
JM
39437.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
39438maybe-maintainer-clean-target-libgcc:
39439@if target-libgcc
39440maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 39441
a90ef4bf 39442maintainer-clean-target-libgcc:
0aed8855 39443 @: $(MAKE); $(unstage)
22121df0 39444 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39445 r=`${PWD_COMMAND}`; export r; \
39446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39447 $(NORMAL_TARGET_EXPORTS) \
22121df0 39448 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39449 for flag in $(EXTRA_TARGET_FLAGS); do \
39450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39451 done; \
a90ef4bf 39452 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39455 "RANLIB=$${RANLIB}" \
0c24b341 39456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39457 maintainer-clean) \
4b1cb4fe
DD
39458 || exit 1
39459
a90ef4bf 39460@endif target-libgcc
4b1cb4fe
DD
39461
39462
3866be5d 39463
a7254363 39464
e90269c8 39465
2bf680c4
ILT
39466.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
39467maybe-configure-target-libbacktrace:
39468@if gcc-bootstrap
39469configure-target-libbacktrace: stage_current
39470@endif gcc-bootstrap
39471@if target-libbacktrace
39472maybe-configure-target-libbacktrace: configure-target-libbacktrace
39473configure-target-libbacktrace:
39474 @: $(MAKE); $(unstage)
39475 @r=`${PWD_COMMAND}`; export r; \
39476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39477 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
39478 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
39479 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
39480 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39481 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39482 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
39483 else \
39484 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
39485 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39486 fi; \
39487 else \
39488 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39489 fi; \
39490 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 39491 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
39492 $(NORMAL_TARGET_EXPORTS) \
39493 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
39494 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
39495 case $(srcdir) in \
39496 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39497 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
39498 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39499 esac; \
1b6c0831 39500 module_srcdir=libbacktrace; \
2bf680c4 39501 rm -f no-such-file || : ; \
1b6c0831
L
39502 CONFIG_SITE=no-such-file $(SHELL) \
39503 $$s/$$module_srcdir/configure \
39504 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 39505 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39506 --target=${target_alias} \
2bf680c4
ILT
39507 || exit 1
39508@endif target-libbacktrace
39509
39510
39511
39512
39513
39514.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
39515maybe-all-target-libbacktrace:
39516@if gcc-bootstrap
39517all-target-libbacktrace: stage_current
39518@endif gcc-bootstrap
39519@if target-libbacktrace
39520TARGET-target-libbacktrace=all
39521maybe-all-target-libbacktrace: all-target-libbacktrace
39522all-target-libbacktrace: configure-target-libbacktrace
39523 @: $(MAKE); $(unstage)
39524 @r=`${PWD_COMMAND}`; export r; \
39525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39526 $(NORMAL_TARGET_EXPORTS) \
39527 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 39528 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
39529 $(TARGET-target-libbacktrace))
39530@endif target-libbacktrace
39531
39532
39533
39534
39535
39536.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
39537maybe-check-target-libbacktrace:
39538@if target-libbacktrace
39539maybe-check-target-libbacktrace: check-target-libbacktrace
39540
39541check-target-libbacktrace:
39542 @: $(MAKE); $(unstage)
39543 @r=`${PWD_COMMAND}`; export r; \
39544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39545 $(NORMAL_TARGET_EXPORTS) \
39546 (cd $(TARGET_SUBDIR)/libbacktrace && \
39547 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39548
39549@endif target-libbacktrace
39550
39551.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
39552maybe-install-target-libbacktrace:
39553@if target-libbacktrace
39554maybe-install-target-libbacktrace: install-target-libbacktrace
39555
39556install-target-libbacktrace: installdirs
39557 @: $(MAKE); $(unstage)
39558 @r=`${PWD_COMMAND}`; export r; \
39559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39560 $(NORMAL_TARGET_EXPORTS) \
39561 (cd $(TARGET_SUBDIR)/libbacktrace && \
39562 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39563
39564@endif target-libbacktrace
39565
39566.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
39567maybe-install-strip-target-libbacktrace:
39568@if target-libbacktrace
39569maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
39570
39571install-strip-target-libbacktrace: installdirs
39572 @: $(MAKE); $(unstage)
39573 @r=`${PWD_COMMAND}`; export r; \
39574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39575 $(NORMAL_TARGET_EXPORTS) \
39576 (cd $(TARGET_SUBDIR)/libbacktrace && \
39577 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39578
39579@endif target-libbacktrace
39580
39581# Other targets (info, dvi, pdf, etc.)
39582
39583.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
39584maybe-info-target-libbacktrace:
39585@if target-libbacktrace
39586maybe-info-target-libbacktrace: info-target-libbacktrace
39587
39588info-target-libbacktrace: \
39589 configure-target-libbacktrace
39590 @: $(MAKE); $(unstage)
22121df0 39591 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39592 r=`${PWD_COMMAND}`; export r; \
39593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39594 $(NORMAL_TARGET_EXPORTS) \
22121df0 39595 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39596 for flag in $(EXTRA_TARGET_FLAGS); do \
39597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39598 done; \
39599 (cd $(TARGET_SUBDIR)/libbacktrace && \
39600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39602 "RANLIB=$${RANLIB}" \
39603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39604 info) \
39605 || exit 1
39606
39607@endif target-libbacktrace
39608
39609.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
39610maybe-dvi-target-libbacktrace:
39611@if target-libbacktrace
39612maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
39613
39614dvi-target-libbacktrace: \
39615 configure-target-libbacktrace
39616 @: $(MAKE); $(unstage)
22121df0 39617 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39618 r=`${PWD_COMMAND}`; export r; \
39619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39620 $(NORMAL_TARGET_EXPORTS) \
22121df0 39621 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39622 for flag in $(EXTRA_TARGET_FLAGS); do \
39623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39624 done; \
39625 (cd $(TARGET_SUBDIR)/libbacktrace && \
39626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39628 "RANLIB=$${RANLIB}" \
39629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39630 dvi) \
39631 || exit 1
39632
39633@endif target-libbacktrace
39634
39635.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
39636maybe-pdf-target-libbacktrace:
39637@if target-libbacktrace
39638maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
39639
39640pdf-target-libbacktrace: \
39641 configure-target-libbacktrace
39642 @: $(MAKE); $(unstage)
22121df0 39643 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39644 r=`${PWD_COMMAND}`; export r; \
39645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39646 $(NORMAL_TARGET_EXPORTS) \
22121df0 39647 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39648 for flag in $(EXTRA_TARGET_FLAGS); do \
39649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39650 done; \
39651 (cd $(TARGET_SUBDIR)/libbacktrace && \
39652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39654 "RANLIB=$${RANLIB}" \
39655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39656 pdf) \
39657 || exit 1
39658
39659@endif target-libbacktrace
39660
39661.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
39662maybe-html-target-libbacktrace:
39663@if target-libbacktrace
39664maybe-html-target-libbacktrace: html-target-libbacktrace
39665
39666html-target-libbacktrace: \
39667 configure-target-libbacktrace
39668 @: $(MAKE); $(unstage)
22121df0 39669 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39670 r=`${PWD_COMMAND}`; export r; \
39671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39672 $(NORMAL_TARGET_EXPORTS) \
22121df0 39673 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39674 for flag in $(EXTRA_TARGET_FLAGS); do \
39675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39676 done; \
39677 (cd $(TARGET_SUBDIR)/libbacktrace && \
39678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39680 "RANLIB=$${RANLIB}" \
39681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39682 html) \
39683 || exit 1
39684
39685@endif target-libbacktrace
39686
39687.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
39688maybe-TAGS-target-libbacktrace:
39689@if target-libbacktrace
39690maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
39691
39692TAGS-target-libbacktrace: \
39693 configure-target-libbacktrace
39694 @: $(MAKE); $(unstage)
22121df0 39695 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39696 r=`${PWD_COMMAND}`; export r; \
39697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39698 $(NORMAL_TARGET_EXPORTS) \
22121df0 39699 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39700 for flag in $(EXTRA_TARGET_FLAGS); do \
39701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39702 done; \
39703 (cd $(TARGET_SUBDIR)/libbacktrace && \
39704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39706 "RANLIB=$${RANLIB}" \
39707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39708 TAGS) \
39709 || exit 1
39710
39711@endif target-libbacktrace
39712
39713.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
39714maybe-install-info-target-libbacktrace:
39715@if target-libbacktrace
39716maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
39717
39718install-info-target-libbacktrace: \
39719 configure-target-libbacktrace \
39720 info-target-libbacktrace
39721 @: $(MAKE); $(unstage)
22121df0 39722 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39723 r=`${PWD_COMMAND}`; export r; \
39724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39725 $(NORMAL_TARGET_EXPORTS) \
22121df0 39726 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39727 for flag in $(EXTRA_TARGET_FLAGS); do \
39728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39729 done; \
39730 (cd $(TARGET_SUBDIR)/libbacktrace && \
39731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39733 "RANLIB=$${RANLIB}" \
39734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39735 install-info) \
39736 || exit 1
39737
39738@endif target-libbacktrace
39739
39740.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
39741maybe-install-pdf-target-libbacktrace:
39742@if target-libbacktrace
39743maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
39744
39745install-pdf-target-libbacktrace: \
39746 configure-target-libbacktrace \
39747 pdf-target-libbacktrace
39748 @: $(MAKE); $(unstage)
22121df0 39749 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39750 r=`${PWD_COMMAND}`; export r; \
39751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39752 $(NORMAL_TARGET_EXPORTS) \
22121df0 39753 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39754 for flag in $(EXTRA_TARGET_FLAGS); do \
39755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39756 done; \
39757 (cd $(TARGET_SUBDIR)/libbacktrace && \
39758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39760 "RANLIB=$${RANLIB}" \
39761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39762 install-pdf) \
39763 || exit 1
39764
39765@endif target-libbacktrace
39766
39767.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
39768maybe-install-html-target-libbacktrace:
39769@if target-libbacktrace
39770maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
39771
39772install-html-target-libbacktrace: \
39773 configure-target-libbacktrace \
39774 html-target-libbacktrace
39775 @: $(MAKE); $(unstage)
22121df0 39776 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39777 r=`${PWD_COMMAND}`; export r; \
39778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39779 $(NORMAL_TARGET_EXPORTS) \
22121df0 39780 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39781 for flag in $(EXTRA_TARGET_FLAGS); do \
39782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39783 done; \
39784 (cd $(TARGET_SUBDIR)/libbacktrace && \
39785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39787 "RANLIB=$${RANLIB}" \
39788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39789 install-html) \
39790 || exit 1
39791
39792@endif target-libbacktrace
39793
39794.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
39795maybe-installcheck-target-libbacktrace:
39796@if target-libbacktrace
39797maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
39798
39799installcheck-target-libbacktrace: \
39800 configure-target-libbacktrace
39801 @: $(MAKE); $(unstage)
22121df0 39802 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39803 r=`${PWD_COMMAND}`; export r; \
39804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39805 $(NORMAL_TARGET_EXPORTS) \
22121df0 39806 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39807 for flag in $(EXTRA_TARGET_FLAGS); do \
39808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39809 done; \
39810 (cd $(TARGET_SUBDIR)/libbacktrace && \
39811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39813 "RANLIB=$${RANLIB}" \
39814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39815 installcheck) \
39816 || exit 1
39817
39818@endif target-libbacktrace
39819
39820.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
39821maybe-mostlyclean-target-libbacktrace:
39822@if target-libbacktrace
39823maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
39824
39825mostlyclean-target-libbacktrace:
39826 @: $(MAKE); $(unstage)
22121df0 39827 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39828 r=`${PWD_COMMAND}`; export r; \
39829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39830 $(NORMAL_TARGET_EXPORTS) \
22121df0 39831 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39832 for flag in $(EXTRA_TARGET_FLAGS); do \
39833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39834 done; \
39835 (cd $(TARGET_SUBDIR)/libbacktrace && \
39836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39838 "RANLIB=$${RANLIB}" \
39839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39840 mostlyclean) \
39841 || exit 1
39842
39843@endif target-libbacktrace
39844
39845.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
39846maybe-clean-target-libbacktrace:
39847@if target-libbacktrace
39848maybe-clean-target-libbacktrace: clean-target-libbacktrace
39849
39850clean-target-libbacktrace:
39851 @: $(MAKE); $(unstage)
22121df0 39852 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39853 r=`${PWD_COMMAND}`; export r; \
39854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39855 $(NORMAL_TARGET_EXPORTS) \
22121df0 39856 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39857 for flag in $(EXTRA_TARGET_FLAGS); do \
39858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39859 done; \
39860 (cd $(TARGET_SUBDIR)/libbacktrace && \
39861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39863 "RANLIB=$${RANLIB}" \
39864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39865 clean) \
39866 || exit 1
39867
39868@endif target-libbacktrace
39869
39870.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
39871maybe-distclean-target-libbacktrace:
39872@if target-libbacktrace
39873maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
39874
39875distclean-target-libbacktrace:
39876 @: $(MAKE); $(unstage)
22121df0 39877 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39878 r=`${PWD_COMMAND}`; export r; \
39879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39880 $(NORMAL_TARGET_EXPORTS) \
22121df0 39881 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39882 for flag in $(EXTRA_TARGET_FLAGS); do \
39883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39884 done; \
39885 (cd $(TARGET_SUBDIR)/libbacktrace && \
39886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39888 "RANLIB=$${RANLIB}" \
39889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39890 distclean) \
39891 || exit 1
39892
39893@endif target-libbacktrace
39894
39895.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
39896maybe-maintainer-clean-target-libbacktrace:
39897@if target-libbacktrace
39898maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
39899
39900maintainer-clean-target-libbacktrace:
39901 @: $(MAKE); $(unstage)
22121df0 39902 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39903 r=`${PWD_COMMAND}`; export r; \
39904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39905 $(NORMAL_TARGET_EXPORTS) \
22121df0 39906 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39907 for flag in $(EXTRA_TARGET_FLAGS); do \
39908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39909 done; \
39910 (cd $(TARGET_SUBDIR)/libbacktrace && \
39911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39913 "RANLIB=$${RANLIB}" \
39914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39915 maintainer-clean) \
39916 || exit 1
39917
39918@endif target-libbacktrace
39919
39920
39921
39922
39923
a90ef4bf
JM
39924.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
39925maybe-configure-target-libquadmath:
4f0ef2d8 39926@if gcc-bootstrap
a90ef4bf 39927configure-target-libquadmath: stage_current
4f0ef2d8 39928@endif gcc-bootstrap
a90ef4bf
JM
39929@if target-libquadmath
39930maybe-configure-target-libquadmath: configure-target-libquadmath
39931configure-target-libquadmath:
0aed8855
PB
39932 @: $(MAKE); $(unstage)
39933 @r=`${PWD_COMMAND}`; export r; \
39934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39935 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
39936 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
39937 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39938 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39939 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39940 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 39941 else \
a90ef4bf
JM
39942 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
39943 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
39944 fi; \
39945 else \
a90ef4bf 39946 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 39947 fi; \
a90ef4bf 39948 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 39949 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 39950 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39951 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
39952 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 39953 case $(srcdir) in \
b00612cc 39954 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39955 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 39956 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 39957 esac; \
1b6c0831 39958 module_srcdir=libquadmath; \
4fa63067 39959 rm -f no-such-file || : ; \
1b6c0831
L
39960 CONFIG_SITE=no-such-file $(SHELL) \
39961 $$s/$$module_srcdir/configure \
39962 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39963 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39964 --target=${target_alias} \
e2b9e2dc 39965 || exit 1
a90ef4bf 39966@endif target-libquadmath
e2b9e2dc 39967
a7254363
PB
39968
39969
d545f33b
PB
39970
39971
a90ef4bf
JM
39972.PHONY: all-target-libquadmath maybe-all-target-libquadmath
39973maybe-all-target-libquadmath:
4f0ef2d8 39974@if gcc-bootstrap
a90ef4bf 39975all-target-libquadmath: stage_current
4f0ef2d8 39976@endif gcc-bootstrap
a90ef4bf
JM
39977@if target-libquadmath
39978TARGET-target-libquadmath=all
39979maybe-all-target-libquadmath: all-target-libquadmath
39980all-target-libquadmath: configure-target-libquadmath
0aed8855 39981 @: $(MAKE); $(unstage)
b40e3958
L
39982 @r=`${PWD_COMMAND}`; export r; \
39983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39984 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39985 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 39986 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39987 $(TARGET-target-libquadmath))
39988@endif target-libquadmath
3866be5d 39989
a7254363
PB
39990
39991
d545f33b
PB
39992
39993
a90ef4bf
JM
39994.PHONY: check-target-libquadmath maybe-check-target-libquadmath
39995maybe-check-target-libquadmath:
39996@if target-libquadmath
39997maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 39998
a90ef4bf 39999check-target-libquadmath:
0aed8855 40000 @: $(MAKE); $(unstage)
b40e3958
L
40001 @r=`${PWD_COMMAND}`; export r; \
40002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40003 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40004 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 40005 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40006
a90ef4bf 40007@endif target-libquadmath
3866be5d 40008
a90ef4bf
JM
40009.PHONY: install-target-libquadmath maybe-install-target-libquadmath
40010maybe-install-target-libquadmath:
40011@if target-libquadmath
40012maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 40013
a90ef4bf 40014install-target-libquadmath: installdirs
0aed8855 40015 @: $(MAKE); $(unstage)
b40e3958
L
40016 @r=`${PWD_COMMAND}`; export r; \
40017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40018 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40019 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 40020 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40021
a90ef4bf 40022@endif target-libquadmath
3866be5d 40023
a90ef4bf
JM
40024.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
40025maybe-install-strip-target-libquadmath:
40026@if target-libquadmath
40027maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 40028
a90ef4bf 40029install-strip-target-libquadmath: installdirs
9b980aa1
RW
40030 @: $(MAKE); $(unstage)
40031 @r=`${PWD_COMMAND}`; export r; \
40032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40033 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40034 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
40035 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40036
a90ef4bf 40037@endif target-libquadmath
9b980aa1 40038
56a8fe78 40039# Other targets (info, dvi, pdf, etc.)
4fa63067 40040
a90ef4bf
JM
40041.PHONY: maybe-info-target-libquadmath info-target-libquadmath
40042maybe-info-target-libquadmath:
40043@if target-libquadmath
40044maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 40045
a90ef4bf
JM
40046info-target-libquadmath: \
40047 configure-target-libquadmath
0aed8855 40048 @: $(MAKE); $(unstage)
22121df0 40049 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40050 r=`${PWD_COMMAND}`; export r; \
b40e3958 40051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40052 $(NORMAL_TARGET_EXPORTS) \
22121df0 40053 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40054 for flag in $(EXTRA_TARGET_FLAGS); do \
40055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40056 done; \
a90ef4bf 40057 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40060 "RANLIB=$${RANLIB}" \
0c24b341 40061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40062 info) \
4fa63067 40063 || exit 1
3866be5d 40064
a90ef4bf 40065@endif target-libquadmath
3866be5d 40066
a90ef4bf
JM
40067.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
40068maybe-dvi-target-libquadmath:
40069@if target-libquadmath
40070maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 40071
a90ef4bf
JM
40072dvi-target-libquadmath: \
40073 configure-target-libquadmath
0aed8855 40074 @: $(MAKE); $(unstage)
22121df0 40075 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40076 r=`${PWD_COMMAND}`; export r; \
b40e3958 40077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40078 $(NORMAL_TARGET_EXPORTS) \
22121df0 40079 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40080 for flag in $(EXTRA_TARGET_FLAGS); do \
40081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40082 done; \
a90ef4bf 40083 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40086 "RANLIB=$${RANLIB}" \
0c24b341 40087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40088 dvi) \
4fa63067 40089 || exit 1
3866be5d 40090
a90ef4bf 40091@endif target-libquadmath
3866be5d 40092
a90ef4bf
JM
40093.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
40094maybe-pdf-target-libquadmath:
40095@if target-libquadmath
40096maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 40097
a90ef4bf
JM
40098pdf-target-libquadmath: \
40099 configure-target-libquadmath
56a8fe78 40100 @: $(MAKE); $(unstage)
22121df0 40101 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
40102 r=`${PWD_COMMAND}`; export r; \
40103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40104 $(NORMAL_TARGET_EXPORTS) \
22121df0 40105 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
40106 for flag in $(EXTRA_TARGET_FLAGS); do \
40107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40108 done; \
a90ef4bf 40109 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
40110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40112 "RANLIB=$${RANLIB}" \
0c24b341 40113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40114 pdf) \
40115 || exit 1
40116
a90ef4bf 40117@endif target-libquadmath
56a8fe78 40118
a90ef4bf
JM
40119.PHONY: maybe-html-target-libquadmath html-target-libquadmath
40120maybe-html-target-libquadmath:
40121@if target-libquadmath
40122maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 40123
a90ef4bf
JM
40124html-target-libquadmath: \
40125 configure-target-libquadmath
0aed8855 40126 @: $(MAKE); $(unstage)
22121df0 40127 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
40128 r=`${PWD_COMMAND}`; export r; \
40129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40130 $(NORMAL_TARGET_EXPORTS) \
22121df0 40131 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
40132 for flag in $(EXTRA_TARGET_FLAGS); do \
40133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40134 done; \
a90ef4bf 40135 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
40136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40138 "RANLIB=$${RANLIB}" \
0c24b341 40139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40140 html) \
40141 || exit 1
40142
a90ef4bf 40143@endif target-libquadmath
6d389afc 40144
a90ef4bf
JM
40145.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
40146maybe-TAGS-target-libquadmath:
40147@if target-libquadmath
40148maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 40149
a90ef4bf
JM
40150TAGS-target-libquadmath: \
40151 configure-target-libquadmath
0aed8855 40152 @: $(MAKE); $(unstage)
22121df0 40153 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
40154 r=`${PWD_COMMAND}`; export r; \
40155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40156 $(NORMAL_TARGET_EXPORTS) \
22121df0 40157 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40158 for flag in $(EXTRA_TARGET_FLAGS); do \
40159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40160 done; \
a90ef4bf 40161 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40164 "RANLIB=$${RANLIB}" \
0c24b341 40165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40166 TAGS) \
e2b9e2dc
NN
40167 || exit 1
40168
a90ef4bf 40169@endif target-libquadmath
4fa63067 40170
a90ef4bf
JM
40171.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
40172maybe-install-info-target-libquadmath:
40173@if target-libquadmath
40174maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 40175
a90ef4bf
JM
40176install-info-target-libquadmath: \
40177 configure-target-libquadmath \
40178 info-target-libquadmath
0aed8855 40179 @: $(MAKE); $(unstage)
22121df0 40180 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40181 r=`${PWD_COMMAND}`; export r; \
b40e3958 40182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40183 $(NORMAL_TARGET_EXPORTS) \
22121df0 40184 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40185 for flag in $(EXTRA_TARGET_FLAGS); do \
40186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40187 done; \
a90ef4bf 40188 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40191 "RANLIB=$${RANLIB}" \
0c24b341 40192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40193 install-info) \
4fa63067 40194 || exit 1
3866be5d 40195
a90ef4bf 40196@endif target-libquadmath
3866be5d 40197
a90ef4bf
JM
40198.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
40199maybe-install-pdf-target-libquadmath:
40200@if target-libquadmath
40201maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 40202
a90ef4bf
JM
40203install-pdf-target-libquadmath: \
40204 configure-target-libquadmath \
40205 pdf-target-libquadmath
a3ca38d2 40206 @: $(MAKE); $(unstage)
22121df0 40207 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
40208 r=`${PWD_COMMAND}`; export r; \
40209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40210 $(NORMAL_TARGET_EXPORTS) \
22121df0 40211 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
40212 for flag in $(EXTRA_TARGET_FLAGS); do \
40213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40214 done; \
a90ef4bf 40215 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
40216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40218 "RANLIB=$${RANLIB}" \
0c24b341 40219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40220 install-pdf) \
40221 || exit 1
40222
a90ef4bf 40223@endif target-libquadmath
a3ca38d2 40224
a90ef4bf
JM
40225.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
40226maybe-install-html-target-libquadmath:
40227@if target-libquadmath
40228maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 40229
a90ef4bf
JM
40230install-html-target-libquadmath: \
40231 configure-target-libquadmath \
40232 html-target-libquadmath
108a6f8e 40233 @: $(MAKE); $(unstage)
22121df0 40234 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
40235 r=`${PWD_COMMAND}`; export r; \
40236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40237 $(NORMAL_TARGET_EXPORTS) \
22121df0 40238 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
40239 for flag in $(EXTRA_TARGET_FLAGS); do \
40240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40241 done; \
a90ef4bf 40242 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
40243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40245 "RANLIB=$${RANLIB}" \
0c24b341 40246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40247 install-html) \
40248 || exit 1
40249
a90ef4bf 40250@endif target-libquadmath
108a6f8e 40251
a90ef4bf
JM
40252.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
40253maybe-installcheck-target-libquadmath:
40254@if target-libquadmath
40255maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 40256
a90ef4bf
JM
40257installcheck-target-libquadmath: \
40258 configure-target-libquadmath
0aed8855 40259 @: $(MAKE); $(unstage)
22121df0 40260 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40261 r=`${PWD_COMMAND}`; export r; \
b40e3958 40262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40263 $(NORMAL_TARGET_EXPORTS) \
22121df0 40264 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40265 for flag in $(EXTRA_TARGET_FLAGS); do \
40266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40267 done; \
a90ef4bf 40268 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40271 "RANLIB=$${RANLIB}" \
0c24b341 40272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40273 installcheck) \
4fa63067 40274 || exit 1
3866be5d 40275
a90ef4bf 40276@endif target-libquadmath
3866be5d 40277
a90ef4bf
JM
40278.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
40279maybe-mostlyclean-target-libquadmath:
40280@if target-libquadmath
40281maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 40282
a90ef4bf 40283mostlyclean-target-libquadmath:
0aed8855 40284 @: $(MAKE); $(unstage)
22121df0 40285 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40286 r=`${PWD_COMMAND}`; export r; \
b40e3958 40287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40288 $(NORMAL_TARGET_EXPORTS) \
22121df0 40289 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40290 for flag in $(EXTRA_TARGET_FLAGS); do \
40291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40292 done; \
a90ef4bf 40293 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40296 "RANLIB=$${RANLIB}" \
0c24b341 40297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40298 mostlyclean) \
4fa63067 40299 || exit 1
3866be5d 40300
a90ef4bf 40301@endif target-libquadmath
3866be5d 40302
a90ef4bf
JM
40303.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
40304maybe-clean-target-libquadmath:
40305@if target-libquadmath
40306maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 40307
a90ef4bf 40308clean-target-libquadmath:
0aed8855 40309 @: $(MAKE); $(unstage)
22121df0 40310 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
40311 r=`${PWD_COMMAND}`; export r; \
40312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40313 $(NORMAL_TARGET_EXPORTS) \
22121df0 40314 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40315 for flag in $(EXTRA_TARGET_FLAGS); do \
40316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40317 done; \
a90ef4bf 40318 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40321 "RANLIB=$${RANLIB}" \
0c24b341 40322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40323 clean) \
e2b9e2dc
NN
40324 || exit 1
40325
a90ef4bf 40326@endif target-libquadmath
3866be5d 40327
a90ef4bf
JM
40328.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
40329maybe-distclean-target-libquadmath:
40330@if target-libquadmath
40331maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 40332
a90ef4bf 40333distclean-target-libquadmath:
0aed8855 40334 @: $(MAKE); $(unstage)
22121df0 40335 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40336 r=`${PWD_COMMAND}`; export r; \
b40e3958 40337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40338 $(NORMAL_TARGET_EXPORTS) \
22121df0 40339 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40340 for flag in $(EXTRA_TARGET_FLAGS); do \
40341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40342 done; \
a90ef4bf 40343 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40346 "RANLIB=$${RANLIB}" \
0c24b341 40347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40348 distclean) \
4fa63067 40349 || exit 1
3866be5d 40350
a90ef4bf 40351@endif target-libquadmath
3866be5d 40352
a90ef4bf
JM
40353.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
40354maybe-maintainer-clean-target-libquadmath:
40355@if target-libquadmath
40356maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 40357
a90ef4bf 40358maintainer-clean-target-libquadmath:
0aed8855 40359 @: $(MAKE); $(unstage)
22121df0 40360 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40361 r=`${PWD_COMMAND}`; export r; \
b40e3958 40362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40363 $(NORMAL_TARGET_EXPORTS) \
22121df0 40364 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40365 for flag in $(EXTRA_TARGET_FLAGS); do \
40366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40367 done; \
a90ef4bf 40368 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40371 "RANLIB=$${RANLIB}" \
0c24b341 40372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40373 maintainer-clean) \
4fa63067 40374 || exit 1
3866be5d 40375
a90ef4bf 40376@endif target-libquadmath
3866be5d 40377
4fa63067 40378
4fa63067 40379
a7254363 40380
e90269c8 40381
a90ef4bf
JM
40382.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
40383maybe-configure-target-libgfortran:
e552509b 40384@if gcc-bootstrap
a90ef4bf 40385configure-target-libgfortran: stage_current
e552509b 40386@endif gcc-bootstrap
a90ef4bf
JM
40387@if target-libgfortran
40388maybe-configure-target-libgfortran: configure-target-libgfortran
40389configure-target-libgfortran:
e552509b
ILT
40390 @: $(MAKE); $(unstage)
40391 @r=`${PWD_COMMAND}`; export r; \
40392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40393 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
40394 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
40395 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40396 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
40397 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
40398 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 40399 else \
a90ef4bf
JM
40400 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
40401 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
40402 fi; \
40403 else \
a90ef4bf 40404 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 40405 fi; \
a90ef4bf 40406 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 40407 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 40408 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40409 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
40410 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
40411 case $(srcdir) in \
40412 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40413 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
40414 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40415 esac; \
1b6c0831 40416 module_srcdir=libgfortran; \
e552509b 40417 rm -f no-such-file || : ; \
1b6c0831
L
40418 CONFIG_SITE=no-such-file $(SHELL) \
40419 $$s/$$module_srcdir/configure \
40420 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40421 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40422 --target=${target_alias} \
e552509b 40423 || exit 1
a90ef4bf 40424@endif target-libgfortran
e552509b
ILT
40425
40426
40427
40428
40429
a90ef4bf
JM
40430.PHONY: all-target-libgfortran maybe-all-target-libgfortran
40431maybe-all-target-libgfortran:
e552509b 40432@if gcc-bootstrap
a90ef4bf 40433all-target-libgfortran: stage_current
e552509b 40434@endif gcc-bootstrap
a90ef4bf
JM
40435@if target-libgfortran
40436TARGET-target-libgfortran=all
40437maybe-all-target-libgfortran: all-target-libgfortran
40438all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
40439 @: $(MAKE); $(unstage)
40440 @r=`${PWD_COMMAND}`; export r; \
40441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40442 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40443 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 40444 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40445 $(TARGET-target-libgfortran))
40446@endif target-libgfortran
e552509b
ILT
40447
40448
40449
40450
40451
a90ef4bf
JM
40452.PHONY: check-target-libgfortran maybe-check-target-libgfortran
40453maybe-check-target-libgfortran:
40454@if target-libgfortran
40455maybe-check-target-libgfortran: check-target-libgfortran
e552509b 40456
a90ef4bf 40457check-target-libgfortran:
e552509b
ILT
40458 @: $(MAKE); $(unstage)
40459 @r=`${PWD_COMMAND}`; export r; \
40460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40461 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40462 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40463 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40464
a90ef4bf 40465@endif target-libgfortran
e552509b 40466
a90ef4bf
JM
40467.PHONY: install-target-libgfortran maybe-install-target-libgfortran
40468maybe-install-target-libgfortran:
40469@if target-libgfortran
40470maybe-install-target-libgfortran: install-target-libgfortran
e552509b 40471
a90ef4bf 40472install-target-libgfortran: installdirs
e552509b
ILT
40473 @: $(MAKE); $(unstage)
40474 @r=`${PWD_COMMAND}`; export r; \
40475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40476 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40477 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40478 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40479
a90ef4bf 40480@endif target-libgfortran
e552509b 40481
a90ef4bf
JM
40482.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
40483maybe-install-strip-target-libgfortran:
40484@if target-libgfortran
40485maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 40486
a90ef4bf 40487install-strip-target-libgfortran: installdirs
9b980aa1
RW
40488 @: $(MAKE); $(unstage)
40489 @r=`${PWD_COMMAND}`; export r; \
40490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40491 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40492 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
40493 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40494
a90ef4bf 40495@endif target-libgfortran
9b980aa1 40496
e552509b
ILT
40497# Other targets (info, dvi, pdf, etc.)
40498
a90ef4bf
JM
40499.PHONY: maybe-info-target-libgfortran info-target-libgfortran
40500maybe-info-target-libgfortran:
40501@if target-libgfortran
40502maybe-info-target-libgfortran: info-target-libgfortran
e552509b 40503
a90ef4bf
JM
40504info-target-libgfortran: \
40505 configure-target-libgfortran
e552509b 40506 @: $(MAKE); $(unstage)
22121df0 40507 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40508 r=`${PWD_COMMAND}`; export r; \
40509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40510 $(NORMAL_TARGET_EXPORTS) \
22121df0 40511 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40512 for flag in $(EXTRA_TARGET_FLAGS); do \
40513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40514 done; \
a90ef4bf 40515 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40518 "RANLIB=$${RANLIB}" \
40519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40520 info) \
40521 || exit 1
40522
a90ef4bf 40523@endif target-libgfortran
e552509b 40524
a90ef4bf
JM
40525.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
40526maybe-dvi-target-libgfortran:
40527@if target-libgfortran
40528maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 40529
a90ef4bf
JM
40530dvi-target-libgfortran: \
40531 configure-target-libgfortran
e552509b 40532 @: $(MAKE); $(unstage)
22121df0 40533 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40534 r=`${PWD_COMMAND}`; export r; \
40535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40536 $(NORMAL_TARGET_EXPORTS) \
22121df0 40537 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40538 for flag in $(EXTRA_TARGET_FLAGS); do \
40539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40540 done; \
a90ef4bf 40541 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40544 "RANLIB=$${RANLIB}" \
40545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40546 dvi) \
40547 || exit 1
40548
a90ef4bf 40549@endif target-libgfortran
e552509b 40550
a90ef4bf
JM
40551.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
40552maybe-pdf-target-libgfortran:
40553@if target-libgfortran
40554maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 40555
a90ef4bf
JM
40556pdf-target-libgfortran: \
40557 configure-target-libgfortran
e552509b 40558 @: $(MAKE); $(unstage)
22121df0 40559 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40560 r=`${PWD_COMMAND}`; export r; \
40561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40562 $(NORMAL_TARGET_EXPORTS) \
22121df0 40563 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40564 for flag in $(EXTRA_TARGET_FLAGS); do \
40565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40566 done; \
a90ef4bf 40567 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40570 "RANLIB=$${RANLIB}" \
40571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40572 pdf) \
40573 || exit 1
40574
a90ef4bf 40575@endif target-libgfortran
e552509b 40576
a90ef4bf
JM
40577.PHONY: maybe-html-target-libgfortran html-target-libgfortran
40578maybe-html-target-libgfortran:
40579@if target-libgfortran
40580maybe-html-target-libgfortran: html-target-libgfortran
e552509b 40581
a90ef4bf
JM
40582html-target-libgfortran: \
40583 configure-target-libgfortran
e552509b 40584 @: $(MAKE); $(unstage)
22121df0 40585 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40586 r=`${PWD_COMMAND}`; export r; \
40587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40588 $(NORMAL_TARGET_EXPORTS) \
22121df0 40589 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40590 for flag in $(EXTRA_TARGET_FLAGS); do \
40591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40592 done; \
a90ef4bf 40593 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40596 "RANLIB=$${RANLIB}" \
40597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40598 html) \
40599 || exit 1
40600
a90ef4bf 40601@endif target-libgfortran
e552509b 40602
a90ef4bf
JM
40603.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
40604maybe-TAGS-target-libgfortran:
40605@if target-libgfortran
40606maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 40607
a90ef4bf
JM
40608TAGS-target-libgfortran: \
40609 configure-target-libgfortran
e552509b 40610 @: $(MAKE); $(unstage)
22121df0 40611 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40612 r=`${PWD_COMMAND}`; export r; \
40613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40614 $(NORMAL_TARGET_EXPORTS) \
22121df0 40615 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40616 for flag in $(EXTRA_TARGET_FLAGS); do \
40617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40618 done; \
a90ef4bf 40619 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40622 "RANLIB=$${RANLIB}" \
40623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40624 TAGS) \
40625 || exit 1
40626
a90ef4bf 40627@endif target-libgfortran
e552509b 40628
a90ef4bf
JM
40629.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
40630maybe-install-info-target-libgfortran:
40631@if target-libgfortran
40632maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 40633
a90ef4bf
JM
40634install-info-target-libgfortran: \
40635 configure-target-libgfortran \
40636 info-target-libgfortran
e552509b 40637 @: $(MAKE); $(unstage)
22121df0 40638 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40639 r=`${PWD_COMMAND}`; export r; \
40640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40641 $(NORMAL_TARGET_EXPORTS) \
22121df0 40642 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40643 for flag in $(EXTRA_TARGET_FLAGS); do \
40644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40645 done; \
a90ef4bf 40646 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40649 "RANLIB=$${RANLIB}" \
40650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40651 install-info) \
40652 || exit 1
40653
a90ef4bf 40654@endif target-libgfortran
e552509b 40655
a90ef4bf
JM
40656.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
40657maybe-install-pdf-target-libgfortran:
40658@if target-libgfortran
40659maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 40660
a90ef4bf
JM
40661install-pdf-target-libgfortran: \
40662 configure-target-libgfortran \
40663 pdf-target-libgfortran
e552509b 40664 @: $(MAKE); $(unstage)
22121df0 40665 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40666 r=`${PWD_COMMAND}`; export r; \
40667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40668 $(NORMAL_TARGET_EXPORTS) \
22121df0 40669 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40670 for flag in $(EXTRA_TARGET_FLAGS); do \
40671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40672 done; \
a90ef4bf 40673 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40676 "RANLIB=$${RANLIB}" \
40677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40678 install-pdf) \
40679 || exit 1
40680
a90ef4bf 40681@endif target-libgfortran
e552509b 40682
a90ef4bf
JM
40683.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
40684maybe-install-html-target-libgfortran:
40685@if target-libgfortran
40686maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 40687
a90ef4bf
JM
40688install-html-target-libgfortran: \
40689 configure-target-libgfortran \
40690 html-target-libgfortran
e552509b 40691 @: $(MAKE); $(unstage)
22121df0 40692 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40693 r=`${PWD_COMMAND}`; export r; \
40694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40695 $(NORMAL_TARGET_EXPORTS) \
22121df0 40696 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40697 for flag in $(EXTRA_TARGET_FLAGS); do \
40698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40699 done; \
a90ef4bf 40700 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40703 "RANLIB=$${RANLIB}" \
40704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40705 install-html) \
40706 || exit 1
40707
a90ef4bf 40708@endif target-libgfortran
e552509b 40709
a90ef4bf
JM
40710.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
40711maybe-installcheck-target-libgfortran:
40712@if target-libgfortran
40713maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 40714
a90ef4bf
JM
40715installcheck-target-libgfortran: \
40716 configure-target-libgfortran
e552509b 40717 @: $(MAKE); $(unstage)
22121df0 40718 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40719 r=`${PWD_COMMAND}`; export r; \
40720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40721 $(NORMAL_TARGET_EXPORTS) \
22121df0 40722 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40723 for flag in $(EXTRA_TARGET_FLAGS); do \
40724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40725 done; \
a90ef4bf 40726 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40729 "RANLIB=$${RANLIB}" \
40730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40731 installcheck) \
40732 || exit 1
40733
a90ef4bf 40734@endif target-libgfortran
e552509b 40735
a90ef4bf
JM
40736.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
40737maybe-mostlyclean-target-libgfortran:
40738@if target-libgfortran
40739maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 40740
a90ef4bf 40741mostlyclean-target-libgfortran:
e552509b 40742 @: $(MAKE); $(unstage)
22121df0 40743 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40744 r=`${PWD_COMMAND}`; export r; \
40745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40746 $(NORMAL_TARGET_EXPORTS) \
22121df0 40747 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40748 for flag in $(EXTRA_TARGET_FLAGS); do \
40749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40750 done; \
a90ef4bf 40751 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40754 "RANLIB=$${RANLIB}" \
40755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40756 mostlyclean) \
40757 || exit 1
40758
a90ef4bf 40759@endif target-libgfortran
e552509b 40760
a90ef4bf
JM
40761.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
40762maybe-clean-target-libgfortran:
40763@if target-libgfortran
40764maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 40765
a90ef4bf 40766clean-target-libgfortran:
e552509b 40767 @: $(MAKE); $(unstage)
22121df0 40768 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40769 r=`${PWD_COMMAND}`; export r; \
40770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40771 $(NORMAL_TARGET_EXPORTS) \
22121df0 40772 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40773 for flag in $(EXTRA_TARGET_FLAGS); do \
40774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40775 done; \
a90ef4bf 40776 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40779 "RANLIB=$${RANLIB}" \
40780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40781 clean) \
40782 || exit 1
40783
a90ef4bf 40784@endif target-libgfortran
e552509b 40785
a90ef4bf
JM
40786.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
40787maybe-distclean-target-libgfortran:
40788@if target-libgfortran
40789maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 40790
a90ef4bf 40791distclean-target-libgfortran:
e552509b 40792 @: $(MAKE); $(unstage)
22121df0 40793 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40794 r=`${PWD_COMMAND}`; export r; \
40795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40796 $(NORMAL_TARGET_EXPORTS) \
22121df0 40797 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40798 for flag in $(EXTRA_TARGET_FLAGS); do \
40799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40800 done; \
a90ef4bf 40801 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40804 "RANLIB=$${RANLIB}" \
40805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40806 distclean) \
40807 || exit 1
40808
a90ef4bf 40809@endif target-libgfortran
e552509b 40810
a90ef4bf
JM
40811.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
40812maybe-maintainer-clean-target-libgfortran:
40813@if target-libgfortran
40814maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 40815
a90ef4bf 40816maintainer-clean-target-libgfortran:
e552509b 40817 @: $(MAKE); $(unstage)
22121df0 40818 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40819 r=`${PWD_COMMAND}`; export r; \
40820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40821 $(NORMAL_TARGET_EXPORTS) \
22121df0 40822 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40823 for flag in $(EXTRA_TARGET_FLAGS); do \
40824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40825 done; \
a90ef4bf 40826 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40829 "RANLIB=$${RANLIB}" \
40830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40831 maintainer-clean) \
40832 || exit 1
40833
a90ef4bf 40834@endif target-libgfortran
e552509b
ILT
40835
40836
40837
40838
40839
a90ef4bf
JM
40840.PHONY: configure-target-libobjc maybe-configure-target-libobjc
40841maybe-configure-target-libobjc:
4f0ef2d8 40842@if gcc-bootstrap
a90ef4bf 40843configure-target-libobjc: stage_current
4f0ef2d8 40844@endif gcc-bootstrap
a90ef4bf
JM
40845@if target-libobjc
40846maybe-configure-target-libobjc: configure-target-libobjc
40847configure-target-libobjc:
0aed8855
PB
40848 @: $(MAKE); $(unstage)
40849 @r=`${PWD_COMMAND}`; export r; \
40850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40851 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
40852 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
40853 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40854 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40855 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40856 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 40857 else \
a90ef4bf
JM
40858 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
40859 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
40860 fi; \
40861 else \
a90ef4bf 40862 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 40863 fi; \
a90ef4bf 40864 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 40865 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 40866 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40867 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
40868 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 40869 case $(srcdir) in \
b00612cc 40870 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40871 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 40872 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 40873 esac; \
1b6c0831 40874 module_srcdir=libobjc; \
4fa63067 40875 rm -f no-such-file || : ; \
1b6c0831
L
40876 CONFIG_SITE=no-such-file $(SHELL) \
40877 $$s/$$module_srcdir/configure \
40878 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40879 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40880 --target=${target_alias} \
e2b9e2dc 40881 || exit 1
a90ef4bf 40882@endif target-libobjc
e2b9e2dc 40883
a7254363
PB
40884
40885
d545f33b
PB
40886
40887
a90ef4bf
JM
40888.PHONY: all-target-libobjc maybe-all-target-libobjc
40889maybe-all-target-libobjc:
4f0ef2d8 40890@if gcc-bootstrap
a90ef4bf 40891all-target-libobjc: stage_current
4f0ef2d8 40892@endif gcc-bootstrap
a90ef4bf
JM
40893@if target-libobjc
40894TARGET-target-libobjc=all
40895maybe-all-target-libobjc: all-target-libobjc
40896all-target-libobjc: configure-target-libobjc
0aed8855 40897 @: $(MAKE); $(unstage)
b40e3958
L
40898 @r=`${PWD_COMMAND}`; export r; \
40899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40900 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40901 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 40902 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40903 $(TARGET-target-libobjc))
40904@endif target-libobjc
3866be5d 40905
a7254363
PB
40906
40907
d545f33b
PB
40908
40909
a90ef4bf
JM
40910.PHONY: check-target-libobjc maybe-check-target-libobjc
40911maybe-check-target-libobjc:
40912@if target-libobjc
40913maybe-check-target-libobjc: check-target-libobjc
3866be5d 40914
a90ef4bf
JM
40915check-target-libobjc:
40916 @: $(MAKE); $(unstage)
40917 @r=`${PWD_COMMAND}`; export r; \
40918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40919 $(NORMAL_TARGET_EXPORTS) \
40920 (cd $(TARGET_SUBDIR)/libobjc && \
40921 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 40922
a90ef4bf 40923@endif target-libobjc
4fa63067 40924
a90ef4bf
JM
40925.PHONY: install-target-libobjc maybe-install-target-libobjc
40926maybe-install-target-libobjc:
40927@if target-libobjc
40928maybe-install-target-libobjc: install-target-libobjc
4fa63067 40929
a90ef4bf 40930install-target-libobjc: installdirs
0aed8855 40931 @: $(MAKE); $(unstage)
b40e3958
L
40932 @r=`${PWD_COMMAND}`; export r; \
40933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40934 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40935 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 40936 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40937
a90ef4bf 40938@endif target-libobjc
3866be5d 40939
a90ef4bf
JM
40940.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
40941maybe-install-strip-target-libobjc:
40942@if target-libobjc
40943maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 40944
a90ef4bf 40945install-strip-target-libobjc: installdirs
9b980aa1
RW
40946 @: $(MAKE); $(unstage)
40947 @r=`${PWD_COMMAND}`; export r; \
40948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40949 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40950 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
40951 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40952
a90ef4bf 40953@endif target-libobjc
9b980aa1 40954
56a8fe78 40955# Other targets (info, dvi, pdf, etc.)
16ae0395 40956
a90ef4bf
JM
40957.PHONY: maybe-info-target-libobjc info-target-libobjc
40958maybe-info-target-libobjc:
40959@if target-libobjc
40960maybe-info-target-libobjc: info-target-libobjc
6d389afc 40961
a90ef4bf
JM
40962info-target-libobjc: \
40963 configure-target-libobjc
0aed8855 40964 @: $(MAKE); $(unstage)
22121df0 40965 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
40966 r=`${PWD_COMMAND}`; export r; \
40967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40968 $(NORMAL_TARGET_EXPORTS) \
22121df0 40969 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
40970 for flag in $(EXTRA_TARGET_FLAGS); do \
40971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40972 done; \
a90ef4bf 40973 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
40974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40976 "RANLIB=$${RANLIB}" \
0c24b341 40977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40978 info) \
40979 || exit 1
40980
a90ef4bf 40981@endif target-libobjc
6d389afc 40982
a90ef4bf
JM
40983.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
40984maybe-dvi-target-libobjc:
40985@if target-libobjc
40986maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 40987
a90ef4bf
JM
40988dvi-target-libobjc: \
40989 configure-target-libobjc
0aed8855 40990 @: $(MAKE); $(unstage)
22121df0 40991 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 40992 r=`${PWD_COMMAND}`; export r; \
b40e3958 40993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40994 $(NORMAL_TARGET_EXPORTS) \
22121df0 40995 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
40996 for flag in $(EXTRA_TARGET_FLAGS); do \
40997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40998 done; \
a90ef4bf 40999 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41002 "RANLIB=$${RANLIB}" \
0c24b341 41003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 41004 dvi) \
4fa63067 41005 || exit 1
3866be5d 41006
a90ef4bf 41007@endif target-libobjc
3866be5d 41008
a90ef4bf
JM
41009.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
41010maybe-pdf-target-libobjc:
41011@if target-libobjc
41012maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 41013
a90ef4bf
JM
41014pdf-target-libobjc: \
41015 configure-target-libobjc
56a8fe78 41016 @: $(MAKE); $(unstage)
22121df0 41017 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
41018 r=`${PWD_COMMAND}`; export r; \
41019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41020 $(NORMAL_TARGET_EXPORTS) \
22121df0 41021 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
41022 for flag in $(EXTRA_TARGET_FLAGS); do \
41023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41024 done; \
a90ef4bf 41025 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
41026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41028 "RANLIB=$${RANLIB}" \
0c24b341 41029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41030 pdf) \
41031 || exit 1
41032
a90ef4bf 41033@endif target-libobjc
56a8fe78 41034
a90ef4bf
JM
41035.PHONY: maybe-html-target-libobjc html-target-libobjc
41036maybe-html-target-libobjc:
41037@if target-libobjc
41038maybe-html-target-libobjc: html-target-libobjc
4fa63067 41039
a90ef4bf
JM
41040html-target-libobjc: \
41041 configure-target-libobjc
0aed8855 41042 @: $(MAKE); $(unstage)
22121df0 41043 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
41044 r=`${PWD_COMMAND}`; export r; \
41045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41046 $(NORMAL_TARGET_EXPORTS) \
22121df0 41047 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41048 for flag in $(EXTRA_TARGET_FLAGS); do \
41049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41050 done; \
a90ef4bf 41051 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41054 "RANLIB=$${RANLIB}" \
0c24b341 41055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 41056 html) \
e2b9e2dc
NN
41057 || exit 1
41058
a90ef4bf 41059@endif target-libobjc
4fa63067 41060
a90ef4bf
JM
41061.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
41062maybe-TAGS-target-libobjc:
41063@if target-libobjc
41064maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 41065
a90ef4bf
JM
41066TAGS-target-libobjc: \
41067 configure-target-libobjc
0aed8855 41068 @: $(MAKE); $(unstage)
22121df0 41069 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 41070 r=`${PWD_COMMAND}`; export r; \
b40e3958 41071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41072 $(NORMAL_TARGET_EXPORTS) \
22121df0 41073 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41074 for flag in $(EXTRA_TARGET_FLAGS); do \
41075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41076 done; \
a90ef4bf 41077 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41080 "RANLIB=$${RANLIB}" \
0c24b341 41081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41082 TAGS) \
4fa63067 41083 || exit 1
3866be5d 41084
a90ef4bf 41085@endif target-libobjc
3866be5d 41086
a90ef4bf
JM
41087.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
41088maybe-install-info-target-libobjc:
41089@if target-libobjc
41090maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 41091
a90ef4bf
JM
41092install-info-target-libobjc: \
41093 configure-target-libobjc \
41094 info-target-libobjc
0aed8855 41095 @: $(MAKE); $(unstage)
22121df0 41096 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
41097 r=`${PWD_COMMAND}`; export r; \
41098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41099 $(NORMAL_TARGET_EXPORTS) \
22121df0 41100 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41101 for flag in $(EXTRA_TARGET_FLAGS); do \
41102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41103 done; \
a90ef4bf 41104 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41107 "RANLIB=$${RANLIB}" \
0c24b341 41108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41109 install-info) \
4fa63067 41110 || exit 1
3866be5d 41111
a90ef4bf 41112@endif target-libobjc
16ae0395 41113
a90ef4bf
JM
41114.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
41115maybe-install-pdf-target-libobjc:
41116@if target-libobjc
41117maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 41118
a90ef4bf
JM
41119install-pdf-target-libobjc: \
41120 configure-target-libobjc \
41121 pdf-target-libobjc
a3ca38d2 41122 @: $(MAKE); $(unstage)
22121df0 41123 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
41124 r=`${PWD_COMMAND}`; export r; \
41125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41126 $(NORMAL_TARGET_EXPORTS) \
22121df0 41127 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
41128 for flag in $(EXTRA_TARGET_FLAGS); do \
41129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41130 done; \
a90ef4bf 41131 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
41132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41134 "RANLIB=$${RANLIB}" \
0c24b341 41135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41136 install-pdf) \
41137 || exit 1
41138
a90ef4bf 41139@endif target-libobjc
a3ca38d2 41140
a90ef4bf
JM
41141.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
41142maybe-install-html-target-libobjc:
41143@if target-libobjc
41144maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 41145
a90ef4bf
JM
41146install-html-target-libobjc: \
41147 configure-target-libobjc \
41148 html-target-libobjc
108a6f8e 41149 @: $(MAKE); $(unstage)
22121df0 41150 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
41151 r=`${PWD_COMMAND}`; export r; \
41152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41153 $(NORMAL_TARGET_EXPORTS) \
22121df0 41154 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
41155 for flag in $(EXTRA_TARGET_FLAGS); do \
41156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41157 done; \
a90ef4bf 41158 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
41159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41161 "RANLIB=$${RANLIB}" \
0c24b341 41162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41163 install-html) \
41164 || exit 1
41165
a90ef4bf 41166@endif target-libobjc
108a6f8e 41167
a90ef4bf
JM
41168.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
41169maybe-installcheck-target-libobjc:
41170@if target-libobjc
41171maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 41172
a90ef4bf
JM
41173installcheck-target-libobjc: \
41174 configure-target-libobjc
0aed8855 41175 @: $(MAKE); $(unstage)
22121df0 41176 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 41177 r=`${PWD_COMMAND}`; export r; \
b40e3958 41178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41179 $(NORMAL_TARGET_EXPORTS) \
22121df0 41180 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41181 for flag in $(EXTRA_TARGET_FLAGS); do \
41182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41183 done; \
a90ef4bf 41184 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41187 "RANLIB=$${RANLIB}" \
0c24b341 41188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41189 installcheck) \
4fa63067 41190 || exit 1
3866be5d 41191
a90ef4bf 41192@endif target-libobjc
3866be5d 41193
a90ef4bf
JM
41194.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
41195maybe-mostlyclean-target-libobjc:
41196@if target-libobjc
41197maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 41198
a90ef4bf
JM
41199mostlyclean-target-libobjc:
41200 @: $(MAKE); $(unstage)
22121df0 41201 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41202 r=`${PWD_COMMAND}`; export r; \
41203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41204 $(NORMAL_TARGET_EXPORTS) \
22121df0 41205 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41206 for flag in $(EXTRA_TARGET_FLAGS); do \
41207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41208 done; \
41209 (cd $(TARGET_SUBDIR)/libobjc && \
41210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41212 "RANLIB=$${RANLIB}" \
41213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41214 mostlyclean) \
41215 || exit 1
4fa63067 41216
a90ef4bf 41217@endif target-libobjc
4fa63067 41218
a90ef4bf
JM
41219.PHONY: maybe-clean-target-libobjc clean-target-libobjc
41220maybe-clean-target-libobjc:
41221@if target-libobjc
41222maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 41223
a90ef4bf
JM
41224clean-target-libobjc:
41225 @: $(MAKE); $(unstage)
22121df0 41226 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41227 r=`${PWD_COMMAND}`; export r; \
41228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41229 $(NORMAL_TARGET_EXPORTS) \
22121df0 41230 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41231 for flag in $(EXTRA_TARGET_FLAGS); do \
41232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41233 done; \
41234 (cd $(TARGET_SUBDIR)/libobjc && \
41235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41237 "RANLIB=$${RANLIB}" \
41238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41239 clean) \
41240 || exit 1
4fa63067 41241
a90ef4bf 41242@endif target-libobjc
4fa63067 41243
a90ef4bf
JM
41244.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
41245maybe-distclean-target-libobjc:
41246@if target-libobjc
41247maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 41248
a90ef4bf
JM
41249distclean-target-libobjc:
41250 @: $(MAKE); $(unstage)
22121df0 41251 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41252 r=`${PWD_COMMAND}`; export r; \
41253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41254 $(NORMAL_TARGET_EXPORTS) \
22121df0 41255 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41256 for flag in $(EXTRA_TARGET_FLAGS); do \
41257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41258 done; \
41259 (cd $(TARGET_SUBDIR)/libobjc && \
41260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41262 "RANLIB=$${RANLIB}" \
41263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41264 distclean) \
41265 || exit 1
4fa63067 41266
a90ef4bf 41267@endif target-libobjc
4fa63067 41268
a90ef4bf
JM
41269.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
41270maybe-maintainer-clean-target-libobjc:
41271@if target-libobjc
41272maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 41273
a90ef4bf
JM
41274maintainer-clean-target-libobjc:
41275 @: $(MAKE); $(unstage)
22121df0 41276 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41277 r=`${PWD_COMMAND}`; export r; \
41278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41279 $(NORMAL_TARGET_EXPORTS) \
22121df0 41280 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41281 for flag in $(EXTRA_TARGET_FLAGS); do \
41282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41283 done; \
41284 (cd $(TARGET_SUBDIR)/libobjc && \
41285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41287 "RANLIB=$${RANLIB}" \
41288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41289 maintainer-clean) \
41290 || exit 1
4fa63067 41291
a90ef4bf 41292@endif target-libobjc
4fa63067
NN
41293
41294
4fa63067 41295
4fa63067 41296
a7254363 41297
a90ef4bf
JM
41298.PHONY: configure-target-libgo maybe-configure-target-libgo
41299maybe-configure-target-libgo:
4f0ef2d8 41300@if gcc-bootstrap
a90ef4bf 41301configure-target-libgo: stage_current
4f0ef2d8 41302@endif gcc-bootstrap
a90ef4bf
JM
41303@if target-libgo
41304maybe-configure-target-libgo: configure-target-libgo
41305configure-target-libgo:
0aed8855
PB
41306 @: $(MAKE); $(unstage)
41307 @r=`${PWD_COMMAND}`; export r; \
41308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41309 echo "Checking multilib configuration for libgo..."; \
22121df0
L
41310 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
41311 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41312 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
41313 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
41314 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 41315 else \
a90ef4bf
JM
41316 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
41317 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
41318 fi; \
41319 else \
a90ef4bf 41320 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 41321 fi; \
a90ef4bf 41322 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 41323 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 41324 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41325 echo Configuring in $(TARGET_SUBDIR)/libgo; \
41326 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 41327 case $(srcdir) in \
b00612cc 41328 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41329 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 41330 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 41331 esac; \
1b6c0831 41332 module_srcdir=libgo; \
4fa63067 41333 rm -f no-such-file || : ; \
1b6c0831
L
41334 CONFIG_SITE=no-such-file $(SHELL) \
41335 $$s/$$module_srcdir/configure \
41336 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41337 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41338 --target=${target_alias} \
e2b9e2dc 41339 || exit 1
a90ef4bf 41340@endif target-libgo
e2b9e2dc 41341
a7254363
PB
41342
41343
d545f33b
PB
41344
41345
a90ef4bf
JM
41346.PHONY: all-target-libgo maybe-all-target-libgo
41347maybe-all-target-libgo:
4f0ef2d8 41348@if gcc-bootstrap
a90ef4bf 41349all-target-libgo: stage_current
4f0ef2d8 41350@endif gcc-bootstrap
a90ef4bf
JM
41351@if target-libgo
41352TARGET-target-libgo=all
41353maybe-all-target-libgo: all-target-libgo
41354all-target-libgo: configure-target-libgo
0aed8855 41355 @: $(MAKE); $(unstage)
b40e3958
L
41356 @r=`${PWD_COMMAND}`; export r; \
41357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41358 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41359 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 41360 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41361 $(TARGET-target-libgo))
41362@endif target-libgo
3866be5d 41363
a7254363
PB
41364
41365
d545f33b
PB
41366
41367
a90ef4bf
JM
41368.PHONY: check-target-libgo maybe-check-target-libgo
41369maybe-check-target-libgo:
41370@if target-libgo
41371maybe-check-target-libgo: check-target-libgo
3866be5d 41372
a90ef4bf 41373check-target-libgo:
0aed8855 41374 @: $(MAKE); $(unstage)
4fa63067
NN
41375 @r=`${PWD_COMMAND}`; export r; \
41376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41377 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41378 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 41379 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 41380
a90ef4bf 41381@endif target-libgo
3866be5d 41382
a90ef4bf
JM
41383.PHONY: install-target-libgo maybe-install-target-libgo
41384maybe-install-target-libgo:
41385@if target-libgo
41386maybe-install-target-libgo: install-target-libgo
16ae0395 41387
a90ef4bf 41388install-target-libgo: installdirs
0aed8855 41389 @: $(MAKE); $(unstage)
4fa63067
NN
41390 @r=`${PWD_COMMAND}`; export r; \
41391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41392 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41393 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 41394 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41395
a90ef4bf 41396@endif target-libgo
3866be5d 41397
a90ef4bf
JM
41398.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
41399maybe-install-strip-target-libgo:
41400@if target-libgo
41401maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 41402
a90ef4bf 41403install-strip-target-libgo: installdirs
9b980aa1
RW
41404 @: $(MAKE); $(unstage)
41405 @r=`${PWD_COMMAND}`; export r; \
41406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41407 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41408 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
41409 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41410
a90ef4bf 41411@endif target-libgo
9b980aa1 41412
56a8fe78 41413# Other targets (info, dvi, pdf, etc.)
4fa63067 41414
a90ef4bf
JM
41415.PHONY: maybe-info-target-libgo info-target-libgo
41416maybe-info-target-libgo:
41417@if target-libgo
41418maybe-info-target-libgo: info-target-libgo
4fa63067 41419
a90ef4bf
JM
41420info-target-libgo: \
41421 configure-target-libgo
0aed8855 41422 @: $(MAKE); $(unstage)
22121df0 41423 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41424 r=`${PWD_COMMAND}`; export r; \
41425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41426 $(NORMAL_TARGET_EXPORTS) \
22121df0 41427 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41428 for flag in $(EXTRA_TARGET_FLAGS); do \
41429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41430 done; \
a90ef4bf 41431 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41434 "RANLIB=$${RANLIB}" \
0c24b341 41435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41436 info) \
e2b9e2dc
NN
41437 || exit 1
41438
a90ef4bf 41439@endif target-libgo
3866be5d 41440
a90ef4bf
JM
41441.PHONY: maybe-dvi-target-libgo dvi-target-libgo
41442maybe-dvi-target-libgo:
41443@if target-libgo
41444maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 41445
a90ef4bf
JM
41446dvi-target-libgo: \
41447 configure-target-libgo
0aed8855 41448 @: $(MAKE); $(unstage)
22121df0 41449 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41450 r=`${PWD_COMMAND}`; export r; \
b40e3958 41451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41452 $(NORMAL_TARGET_EXPORTS) \
22121df0 41453 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41454 for flag in $(EXTRA_TARGET_FLAGS); do \
41455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41456 done; \
a90ef4bf 41457 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41460 "RANLIB=$${RANLIB}" \
0c24b341 41461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41462 dvi) \
4fa63067 41463 || exit 1
3866be5d 41464
a90ef4bf 41465@endif target-libgo
3866be5d 41466
a90ef4bf
JM
41467.PHONY: maybe-pdf-target-libgo pdf-target-libgo
41468maybe-pdf-target-libgo:
41469@if target-libgo
41470maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 41471
a90ef4bf
JM
41472pdf-target-libgo: \
41473 configure-target-libgo
56a8fe78 41474 @: $(MAKE); $(unstage)
22121df0 41475 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
41476 r=`${PWD_COMMAND}`; export r; \
41477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41478 $(NORMAL_TARGET_EXPORTS) \
22121df0 41479 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
41480 for flag in $(EXTRA_TARGET_FLAGS); do \
41481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41482 done; \
a90ef4bf 41483 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
41484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41486 "RANLIB=$${RANLIB}" \
0c24b341 41487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41488 pdf) \
41489 || exit 1
41490
a90ef4bf 41491@endif target-libgo
56a8fe78 41492
a90ef4bf
JM
41493.PHONY: maybe-html-target-libgo html-target-libgo
41494maybe-html-target-libgo:
41495@if target-libgo
41496maybe-html-target-libgo: html-target-libgo
6d389afc 41497
a90ef4bf
JM
41498html-target-libgo: \
41499 configure-target-libgo
0aed8855 41500 @: $(MAKE); $(unstage)
22121df0 41501 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
41502 r=`${PWD_COMMAND}`; export r; \
41503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41504 $(NORMAL_TARGET_EXPORTS) \
22121df0 41505 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
41506 for flag in $(EXTRA_TARGET_FLAGS); do \
41507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41508 done; \
a90ef4bf 41509 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
41510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41512 "RANLIB=$${RANLIB}" \
0c24b341 41513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41514 html) \
41515 || exit 1
41516
a90ef4bf 41517@endif target-libgo
6d389afc 41518
a90ef4bf
JM
41519.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
41520maybe-TAGS-target-libgo:
41521@if target-libgo
41522maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 41523
a90ef4bf
JM
41524TAGS-target-libgo: \
41525 configure-target-libgo
0aed8855 41526 @: $(MAKE); $(unstage)
22121df0 41527 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41528 r=`${PWD_COMMAND}`; export r; \
b40e3958 41529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41530 $(NORMAL_TARGET_EXPORTS) \
22121df0 41531 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41532 for flag in $(EXTRA_TARGET_FLAGS); do \
41533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41534 done; \
a90ef4bf 41535 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41538 "RANLIB=$${RANLIB}" \
0c24b341 41539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41540 TAGS) \
4fa63067 41541 || exit 1
3866be5d 41542
a90ef4bf 41543@endif target-libgo
3866be5d 41544
a90ef4bf
JM
41545.PHONY: maybe-install-info-target-libgo install-info-target-libgo
41546maybe-install-info-target-libgo:
41547@if target-libgo
41548maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 41549
a90ef4bf
JM
41550install-info-target-libgo: \
41551 configure-target-libgo \
41552 info-target-libgo
0aed8855 41553 @: $(MAKE); $(unstage)
22121df0 41554 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41555 r=`${PWD_COMMAND}`; export r; \
41556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41557 $(NORMAL_TARGET_EXPORTS) \
22121df0 41558 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41559 for flag in $(EXTRA_TARGET_FLAGS); do \
41560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41561 done; \
a90ef4bf 41562 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41565 "RANLIB=$${RANLIB}" \
0c24b341 41566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41567 install-info) \
e2b9e2dc
NN
41568 || exit 1
41569
a90ef4bf 41570@endif target-libgo
4fa63067 41571
a90ef4bf
JM
41572.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
41573maybe-install-pdf-target-libgo:
41574@if target-libgo
41575maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 41576
a90ef4bf
JM
41577install-pdf-target-libgo: \
41578 configure-target-libgo \
41579 pdf-target-libgo
a3ca38d2 41580 @: $(MAKE); $(unstage)
22121df0 41581 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
41582 r=`${PWD_COMMAND}`; export r; \
41583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41584 $(NORMAL_TARGET_EXPORTS) \
22121df0 41585 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
41586 for flag in $(EXTRA_TARGET_FLAGS); do \
41587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41588 done; \
a90ef4bf 41589 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
41590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41592 "RANLIB=$${RANLIB}" \
0c24b341 41593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41594 install-pdf) \
41595 || exit 1
41596
a90ef4bf 41597@endif target-libgo
a3ca38d2 41598
a90ef4bf
JM
41599.PHONY: maybe-install-html-target-libgo install-html-target-libgo
41600maybe-install-html-target-libgo:
41601@if target-libgo
41602maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 41603
a90ef4bf
JM
41604install-html-target-libgo: \
41605 configure-target-libgo \
41606 html-target-libgo
108a6f8e 41607 @: $(MAKE); $(unstage)
22121df0 41608 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
41609 r=`${PWD_COMMAND}`; export r; \
41610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41611 $(NORMAL_TARGET_EXPORTS) \
22121df0 41612 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
41613 for flag in $(EXTRA_TARGET_FLAGS); do \
41614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41615 done; \
a90ef4bf 41616 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
41617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41619 "RANLIB=$${RANLIB}" \
0c24b341 41620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41621 install-html) \
41622 || exit 1
41623
a90ef4bf 41624@endif target-libgo
108a6f8e 41625
a90ef4bf
JM
41626.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
41627maybe-installcheck-target-libgo:
41628@if target-libgo
41629maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 41630
a90ef4bf
JM
41631installcheck-target-libgo: \
41632 configure-target-libgo
0aed8855 41633 @: $(MAKE); $(unstage)
22121df0 41634 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41635 r=`${PWD_COMMAND}`; export r; \
b40e3958 41636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41637 $(NORMAL_TARGET_EXPORTS) \
22121df0 41638 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41639 for flag in $(EXTRA_TARGET_FLAGS); do \
41640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41641 done; \
a90ef4bf 41642 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41645 "RANLIB=$${RANLIB}" \
0c24b341 41646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41647 installcheck) \
4fa63067 41648 || exit 1
3866be5d 41649
a90ef4bf 41650@endif target-libgo
3866be5d 41651
a90ef4bf
JM
41652.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
41653maybe-mostlyclean-target-libgo:
41654@if target-libgo
41655maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 41656
a90ef4bf 41657mostlyclean-target-libgo:
0aed8855 41658 @: $(MAKE); $(unstage)
22121df0 41659 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41660 r=`${PWD_COMMAND}`; export r; \
b40e3958 41661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41662 $(NORMAL_TARGET_EXPORTS) \
22121df0 41663 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41664 for flag in $(EXTRA_TARGET_FLAGS); do \
41665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41666 done; \
a90ef4bf 41667 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41670 "RANLIB=$${RANLIB}" \
0c24b341 41671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41672 mostlyclean) \
4fa63067 41673 || exit 1
3866be5d 41674
a90ef4bf 41675@endif target-libgo
3866be5d 41676
a90ef4bf
JM
41677.PHONY: maybe-clean-target-libgo clean-target-libgo
41678maybe-clean-target-libgo:
41679@if target-libgo
41680maybe-clean-target-libgo: clean-target-libgo
16ae0395 41681
a90ef4bf 41682clean-target-libgo:
0aed8855 41683 @: $(MAKE); $(unstage)
22121df0 41684 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41685 r=`${PWD_COMMAND}`; export r; \
b40e3958 41686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41687 $(NORMAL_TARGET_EXPORTS) \
22121df0 41688 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41689 for flag in $(EXTRA_TARGET_FLAGS); do \
41690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41691 done; \
a90ef4bf 41692 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41695 "RANLIB=$${RANLIB}" \
0c24b341 41696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41697 clean) \
4fa63067 41698 || exit 1
3866be5d 41699
a90ef4bf 41700@endif target-libgo
3866be5d 41701
a90ef4bf
JM
41702.PHONY: maybe-distclean-target-libgo distclean-target-libgo
41703maybe-distclean-target-libgo:
41704@if target-libgo
41705maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 41706
a90ef4bf 41707distclean-target-libgo:
0aed8855 41708 @: $(MAKE); $(unstage)
22121df0 41709 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41710 r=`${PWD_COMMAND}`; export r; \
41711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41712 $(NORMAL_TARGET_EXPORTS) \
22121df0 41713 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41714 for flag in $(EXTRA_TARGET_FLAGS); do \
41715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41716 done; \
a90ef4bf 41717 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41720 "RANLIB=$${RANLIB}" \
0c24b341 41721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41722 distclean) \
e2b9e2dc
NN
41723 || exit 1
41724
a90ef4bf 41725@endif target-libgo
3866be5d 41726
a90ef4bf
JM
41727.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
41728maybe-maintainer-clean-target-libgo:
41729@if target-libgo
41730maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 41731
a90ef4bf 41732maintainer-clean-target-libgo:
0aed8855 41733 @: $(MAKE); $(unstage)
22121df0 41734 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41735 r=`${PWD_COMMAND}`; export r; \
b40e3958 41736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41737 $(NORMAL_TARGET_EXPORTS) \
22121df0 41738 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41739 for flag in $(EXTRA_TARGET_FLAGS); do \
41740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41741 done; \
a90ef4bf 41742 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41745 "RANLIB=$${RANLIB}" \
0c24b341 41746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41747 maintainer-clean) \
4fa63067 41748 || exit 1
3866be5d 41749
a90ef4bf 41750@endif target-libgo
3866be5d 41751
16ae0395 41752
3866be5d 41753
e90269c8 41754
a7254363 41755
a90ef4bf
JM
41756.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
41757maybe-configure-target-libtermcap:
4f0ef2d8 41758@if gcc-bootstrap
a90ef4bf 41759configure-target-libtermcap: stage_current
4f0ef2d8 41760@endif gcc-bootstrap
a90ef4bf
JM
41761@if target-libtermcap
41762maybe-configure-target-libtermcap: configure-target-libtermcap
41763configure-target-libtermcap:
0aed8855
PB
41764 @: $(MAKE); $(unstage)
41765 @r=`${PWD_COMMAND}`; export r; \
41766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41767 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
41768 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
41769 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41770 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41771 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41772 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 41773 else \
a90ef4bf
JM
41774 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
41775 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
41776 fi; \
41777 else \
a90ef4bf 41778 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 41779 fi; \
a90ef4bf 41780 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 41781 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 41782 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41783 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
41784 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 41785 case $(srcdir) in \
b00612cc 41786 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41787 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 41788 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41789 esac; \
1b6c0831 41790 module_srcdir=libtermcap; \
4fa63067 41791 rm -f no-such-file || : ; \
1b6c0831
L
41792 CONFIG_SITE=no-such-file $(SHELL) \
41793 $$s/$$module_srcdir/configure \
41794 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41795 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41796 --target=${target_alias} \
e2b9e2dc 41797 || exit 1
a90ef4bf 41798@endif target-libtermcap
e2b9e2dc 41799
a7254363
PB
41800
41801
d545f33b
PB
41802
41803
a90ef4bf
JM
41804.PHONY: all-target-libtermcap maybe-all-target-libtermcap
41805maybe-all-target-libtermcap:
4f0ef2d8 41806@if gcc-bootstrap
a90ef4bf 41807all-target-libtermcap: stage_current
4f0ef2d8 41808@endif gcc-bootstrap
a90ef4bf
JM
41809@if target-libtermcap
41810TARGET-target-libtermcap=all
41811maybe-all-target-libtermcap: all-target-libtermcap
41812all-target-libtermcap: configure-target-libtermcap
0aed8855 41813 @: $(MAKE); $(unstage)
b40e3958
L
41814 @r=`${PWD_COMMAND}`; export r; \
41815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41816 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41817 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 41818 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41819 $(TARGET-target-libtermcap))
41820@endif target-libtermcap
e393202e 41821
a7254363
PB
41822
41823
d545f33b
PB
41824
41825
a90ef4bf
JM
41826.PHONY: check-target-libtermcap maybe-check-target-libtermcap
41827maybe-check-target-libtermcap:
41828@if target-libtermcap
41829maybe-check-target-libtermcap: check-target-libtermcap
e393202e 41830
4fa63067 41831# Dummy target for uncheckable module.
a90ef4bf 41832check-target-libtermcap:
e393202e 41833
a90ef4bf 41834@endif target-libtermcap
e393202e 41835
a90ef4bf
JM
41836.PHONY: install-target-libtermcap maybe-install-target-libtermcap
41837maybe-install-target-libtermcap:
41838@if target-libtermcap
41839maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 41840
a90ef4bf 41841install-target-libtermcap: installdirs
0aed8855 41842 @: $(MAKE); $(unstage)
b40e3958
L
41843 @r=`${PWD_COMMAND}`; export r; \
41844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41845 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41846 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 41847 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 41848
a90ef4bf 41849@endif target-libtermcap
56a8fe78 41850
a90ef4bf
JM
41851.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
41852maybe-install-strip-target-libtermcap:
41853@if target-libtermcap
41854maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 41855
a90ef4bf 41856install-strip-target-libtermcap: installdirs
0aed8855 41857 @: $(MAKE); $(unstage)
a90ef4bf 41858 @r=`${PWD_COMMAND}`; export r; \
6d389afc 41859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41860 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41861 (cd $(TARGET_SUBDIR)/libtermcap && \
41862 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 41863
a90ef4bf 41864@endif target-libtermcap
6d389afc 41865
a90ef4bf 41866# Other targets (info, dvi, pdf, etc.)
16ae0395 41867
a90ef4bf
JM
41868.PHONY: maybe-info-target-libtermcap info-target-libtermcap
41869maybe-info-target-libtermcap:
41870@if target-libtermcap
41871maybe-info-target-libtermcap: info-target-libtermcap
41872
41873info-target-libtermcap: \
41874 configure-target-libtermcap
0aed8855 41875 @: $(MAKE); $(unstage)
22121df0 41876 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 41877 r=`${PWD_COMMAND}`; export r; \
b40e3958 41878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41879 $(NORMAL_TARGET_EXPORTS) \
22121df0 41880 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41881 for flag in $(EXTRA_TARGET_FLAGS); do \
41882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41883 done; \
a90ef4bf 41884 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41887 "RANLIB=$${RANLIB}" \
0c24b341 41888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41889 info) \
4fa63067 41890 || exit 1
ce5b542e 41891
a90ef4bf 41892@endif target-libtermcap
ce5b542e 41893
a90ef4bf
JM
41894.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
41895maybe-dvi-target-libtermcap:
41896@if target-libtermcap
41897maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 41898
a90ef4bf
JM
41899dvi-target-libtermcap: \
41900 configure-target-libtermcap
0aed8855 41901 @: $(MAKE); $(unstage)
22121df0 41902 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
41903 r=`${PWD_COMMAND}`; export r; \
41904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41905 $(NORMAL_TARGET_EXPORTS) \
22121df0 41906 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41907 for flag in $(EXTRA_TARGET_FLAGS); do \
41908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41909 done; \
a90ef4bf 41910 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41913 "RANLIB=$${RANLIB}" \
0c24b341 41914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41915 dvi) \
e2b9e2dc
NN
41916 || exit 1
41917
a90ef4bf 41918@endif target-libtermcap
e393202e 41919
a90ef4bf
JM
41920.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
41921maybe-pdf-target-libtermcap:
41922@if target-libtermcap
41923maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 41924
a90ef4bf
JM
41925pdf-target-libtermcap: \
41926 configure-target-libtermcap
a3ca38d2 41927 @: $(MAKE); $(unstage)
22121df0 41928 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
41929 r=`${PWD_COMMAND}`; export r; \
41930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41931 $(NORMAL_TARGET_EXPORTS) \
22121df0 41932 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
41933 for flag in $(EXTRA_TARGET_FLAGS); do \
41934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41935 done; \
a90ef4bf 41936 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
41937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41939 "RANLIB=$${RANLIB}" \
0c24b341 41940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41941 pdf) \
a3ca38d2
DD
41942 || exit 1
41943
a90ef4bf 41944@endif target-libtermcap
a3ca38d2 41945
a90ef4bf
JM
41946.PHONY: maybe-html-target-libtermcap html-target-libtermcap
41947maybe-html-target-libtermcap:
41948@if target-libtermcap
41949maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 41950
a90ef4bf
JM
41951html-target-libtermcap: \
41952 configure-target-libtermcap
108a6f8e 41953 @: $(MAKE); $(unstage)
22121df0 41954 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
41955 r=`${PWD_COMMAND}`; export r; \
41956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41957 $(NORMAL_TARGET_EXPORTS) \
22121df0 41958 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
41959 for flag in $(EXTRA_TARGET_FLAGS); do \
41960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41961 done; \
a90ef4bf 41962 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
41963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41965 "RANLIB=$${RANLIB}" \
0c24b341 41966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41967 html) \
108a6f8e
CD
41968 || exit 1
41969
a90ef4bf 41970@endif target-libtermcap
108a6f8e 41971
a90ef4bf
JM
41972.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
41973maybe-TAGS-target-libtermcap:
41974@if target-libtermcap
41975maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 41976
a90ef4bf
JM
41977TAGS-target-libtermcap: \
41978 configure-target-libtermcap
0aed8855 41979 @: $(MAKE); $(unstage)
22121df0 41980 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
41981 r=`${PWD_COMMAND}`; export r; \
41982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41983 $(NORMAL_TARGET_EXPORTS) \
22121df0 41984 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41985 for flag in $(EXTRA_TARGET_FLAGS); do \
41986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41987 done; \
a90ef4bf 41988 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41991 "RANLIB=$${RANLIB}" \
0c24b341 41992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41993 TAGS) \
4fa63067 41994 || exit 1
3866be5d 41995
a90ef4bf 41996@endif target-libtermcap
3866be5d 41997
a90ef4bf
JM
41998.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
41999maybe-install-info-target-libtermcap:
42000@if target-libtermcap
42001maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 42002
a90ef4bf
JM
42003install-info-target-libtermcap: \
42004 configure-target-libtermcap \
42005 info-target-libtermcap
0aed8855 42006 @: $(MAKE); $(unstage)
22121df0 42007 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 42008 r=`${PWD_COMMAND}`; export r; \
b40e3958 42009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42010 $(NORMAL_TARGET_EXPORTS) \
22121df0 42011 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42012 for flag in $(EXTRA_TARGET_FLAGS); do \
42013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42014 done; \
a90ef4bf 42015 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42018 "RANLIB=$${RANLIB}" \
0c24b341 42019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42020 install-info) \
4fa63067 42021 || exit 1
e393202e 42022
a90ef4bf 42023@endif target-libtermcap
3866be5d 42024
a90ef4bf
JM
42025.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
42026maybe-install-pdf-target-libtermcap:
42027@if target-libtermcap
42028maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 42029
a90ef4bf
JM
42030install-pdf-target-libtermcap: \
42031 configure-target-libtermcap \
42032 pdf-target-libtermcap
0aed8855 42033 @: $(MAKE); $(unstage)
22121df0 42034 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
42035 r=`${PWD_COMMAND}`; export r; \
42036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42037 $(NORMAL_TARGET_EXPORTS) \
22121df0 42038 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42039 for flag in $(EXTRA_TARGET_FLAGS); do \
42040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42041 done; \
a90ef4bf 42042 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42045 "RANLIB=$${RANLIB}" \
0c24b341 42046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42047 install-pdf) \
e2b9e2dc
NN
42048 || exit 1
42049
a90ef4bf 42050@endif target-libtermcap
e393202e 42051
a90ef4bf
JM
42052.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
42053maybe-install-html-target-libtermcap:
42054@if target-libtermcap
42055maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 42056
a90ef4bf
JM
42057install-html-target-libtermcap: \
42058 configure-target-libtermcap \
42059 html-target-libtermcap
0aed8855 42060 @: $(MAKE); $(unstage)
22121df0 42061 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
42062 r=`${PWD_COMMAND}`; export r; \
42063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42064 $(NORMAL_TARGET_EXPORTS) \
22121df0 42065 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42066 for flag in $(EXTRA_TARGET_FLAGS); do \
42067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42068 done; \
a90ef4bf 42069 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42072 "RANLIB=$${RANLIB}" \
0c24b341 42073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42074 install-html) \
4fa63067 42075 || exit 1
3866be5d 42076
a90ef4bf 42077@endif target-libtermcap
3866be5d 42078
a90ef4bf
JM
42079.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
42080maybe-installcheck-target-libtermcap:
42081@if target-libtermcap
42082maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 42083
a90ef4bf
JM
42084installcheck-target-libtermcap: \
42085 configure-target-libtermcap
0aed8855 42086 @: $(MAKE); $(unstage)
22121df0 42087 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 42088 r=`${PWD_COMMAND}`; export r; \
b40e3958 42089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42090 $(NORMAL_TARGET_EXPORTS) \
22121df0 42091 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42092 for flag in $(EXTRA_TARGET_FLAGS); do \
42093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42094 done; \
a90ef4bf 42095 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42098 "RANLIB=$${RANLIB}" \
0c24b341 42099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42100 installcheck) \
4fa63067 42101 || exit 1
3866be5d 42102
a90ef4bf
JM
42103@endif target-libtermcap
42104
42105.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
42106maybe-mostlyclean-target-libtermcap:
42107@if target-libtermcap
42108maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
42109
42110# libtermcap doesn't support mostlyclean.
42111mostlyclean-target-libtermcap:
42112
42113@endif target-libtermcap
3866be5d 42114
a90ef4bf
JM
42115.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
42116maybe-clean-target-libtermcap:
42117@if target-libtermcap
42118maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 42119
a90ef4bf
JM
42120# libtermcap doesn't support clean.
42121clean-target-libtermcap:
15723a45 42122
a90ef4bf 42123@endif target-libtermcap
e90269c8 42124
a90ef4bf
JM
42125.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
42126maybe-distclean-target-libtermcap:
42127@if target-libtermcap
42128maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 42129
a90ef4bf
JM
42130# libtermcap doesn't support distclean.
42131distclean-target-libtermcap:
42132
42133@endif target-libtermcap
42134
42135.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
42136maybe-maintainer-clean-target-libtermcap:
42137@if target-libtermcap
42138maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
42139
42140# libtermcap doesn't support maintainer-clean.
42141maintainer-clean-target-libtermcap:
42142
42143@endif target-libtermcap
42144
42145
42146
42147
42148
42149.PHONY: configure-target-winsup maybe-configure-target-winsup
42150maybe-configure-target-winsup:
4f0ef2d8 42151@if gcc-bootstrap
a90ef4bf 42152configure-target-winsup: stage_current
4f0ef2d8 42153@endif gcc-bootstrap
a90ef4bf
JM
42154@if target-winsup
42155maybe-configure-target-winsup: configure-target-winsup
42156configure-target-winsup:
0aed8855
PB
42157 @: $(MAKE); $(unstage)
42158 @r=`${PWD_COMMAND}`; export r; \
42159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42160 echo "Checking multilib configuration for winsup..."; \
22121df0
L
42161 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
42162 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42163 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
42164 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
42165 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 42166 else \
a90ef4bf
JM
42167 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
42168 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
42169 fi; \
42170 else \
a90ef4bf 42171 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 42172 fi; \
a90ef4bf 42173 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 42174 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 42175 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42176 echo Configuring in $(TARGET_SUBDIR)/winsup; \
42177 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 42178 case $(srcdir) in \
b00612cc 42179 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42180 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 42181 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42182 esac; \
1b6c0831 42183 module_srcdir=winsup; \
bba45b8b 42184 rm -f no-such-file || : ; \
1b6c0831
L
42185 CONFIG_SITE=no-such-file $(SHELL) \
42186 $$s/$$module_srcdir/configure \
42187 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42188 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42189 --target=${target_alias} \
bba45b8b 42190 || exit 1
a90ef4bf 42191@endif target-winsup
e393202e 42192
a7254363
PB
42193
42194
d545f33b
PB
42195
42196
a90ef4bf
JM
42197.PHONY: all-target-winsup maybe-all-target-winsup
42198maybe-all-target-winsup:
4f0ef2d8 42199@if gcc-bootstrap
a90ef4bf 42200all-target-winsup: stage_current
4f0ef2d8 42201@endif gcc-bootstrap
a90ef4bf
JM
42202@if target-winsup
42203TARGET-target-winsup=all
42204maybe-all-target-winsup: all-target-winsup
42205all-target-winsup: configure-target-winsup
0aed8855 42206 @: $(MAKE); $(unstage)
b40e3958
L
42207 @r=`${PWD_COMMAND}`; export r; \
42208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42209 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42210 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 42211 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42212 $(TARGET-target-winsup))
42213@endif target-winsup
e393202e 42214
a7254363
PB
42215
42216
d545f33b
PB
42217
42218
a90ef4bf
JM
42219.PHONY: check-target-winsup maybe-check-target-winsup
42220maybe-check-target-winsup:
42221@if target-winsup
42222maybe-check-target-winsup: check-target-winsup
16ae0395 42223
a90ef4bf 42224check-target-winsup:
0aed8855 42225 @: $(MAKE); $(unstage)
b40e3958
L
42226 @r=`${PWD_COMMAND}`; export r; \
42227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42228 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42229 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 42230 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 42231
a90ef4bf 42232@endif target-winsup
e393202e 42233
a90ef4bf
JM
42234.PHONY: install-target-winsup maybe-install-target-winsup
42235maybe-install-target-winsup:
42236@if target-winsup
42237maybe-install-target-winsup: install-target-winsup
4fa63067 42238
a90ef4bf 42239install-target-winsup: installdirs
0aed8855 42240 @: $(MAKE); $(unstage)
4fa63067
NN
42241 @r=`${PWD_COMMAND}`; export r; \
42242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42243 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42244 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 42245 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42246
a90ef4bf 42247@endif target-winsup
4fa63067 42248
a90ef4bf
JM
42249.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
42250maybe-install-strip-target-winsup:
42251@if target-winsup
42252maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 42253
a90ef4bf 42254install-strip-target-winsup: installdirs
9b980aa1
RW
42255 @: $(MAKE); $(unstage)
42256 @r=`${PWD_COMMAND}`; export r; \
42257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42258 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42259 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
42260 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42261
a90ef4bf 42262@endif target-winsup
9b980aa1 42263
56a8fe78 42264# Other targets (info, dvi, pdf, etc.)
4fa63067 42265
a90ef4bf
JM
42266.PHONY: maybe-info-target-winsup info-target-winsup
42267maybe-info-target-winsup:
42268@if target-winsup
42269maybe-info-target-winsup: info-target-winsup
4fa63067 42270
a90ef4bf
JM
42271info-target-winsup: \
42272 configure-target-winsup
0aed8855 42273 @: $(MAKE); $(unstage)
22121df0 42274 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42275 r=`${PWD_COMMAND}`; export r; \
42276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42277 $(NORMAL_TARGET_EXPORTS) \
22121df0 42278 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42279 for flag in $(EXTRA_TARGET_FLAGS); do \
42280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42281 done; \
a90ef4bf 42282 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42285 "RANLIB=$${RANLIB}" \
0c24b341 42286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42287 info) \
4fa63067
NN
42288 || exit 1
42289
a90ef4bf 42290@endif target-winsup
4fa63067 42291
a90ef4bf
JM
42292.PHONY: maybe-dvi-target-winsup dvi-target-winsup
42293maybe-dvi-target-winsup:
42294@if target-winsup
42295maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 42296
a90ef4bf
JM
42297dvi-target-winsup: \
42298 configure-target-winsup
0aed8855 42299 @: $(MAKE); $(unstage)
22121df0 42300 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42301 r=`${PWD_COMMAND}`; export r; \
42302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42303 $(NORMAL_TARGET_EXPORTS) \
22121df0 42304 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42305 for flag in $(EXTRA_TARGET_FLAGS); do \
42306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42307 done; \
a90ef4bf 42308 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42311 "RANLIB=$${RANLIB}" \
0c24b341 42312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42313 dvi) \
4fa63067
NN
42314 || exit 1
42315
a90ef4bf 42316@endif target-winsup
4fa63067 42317
a90ef4bf
JM
42318.PHONY: maybe-pdf-target-winsup pdf-target-winsup
42319maybe-pdf-target-winsup:
42320@if target-winsup
42321maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 42322
a90ef4bf
JM
42323pdf-target-winsup: \
42324 configure-target-winsup
56a8fe78 42325 @: $(MAKE); $(unstage)
22121df0 42326 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
42327 r=`${PWD_COMMAND}`; export r; \
42328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42329 $(NORMAL_TARGET_EXPORTS) \
22121df0 42330 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
42331 for flag in $(EXTRA_TARGET_FLAGS); do \
42332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42333 done; \
a90ef4bf 42334 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
42335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42337 "RANLIB=$${RANLIB}" \
0c24b341 42338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42339 pdf) \
42340 || exit 1
42341
a90ef4bf 42342@endif target-winsup
56a8fe78 42343
a90ef4bf
JM
42344.PHONY: maybe-html-target-winsup html-target-winsup
42345maybe-html-target-winsup:
42346@if target-winsup
42347maybe-html-target-winsup: html-target-winsup
6d389afc 42348
a90ef4bf
JM
42349html-target-winsup: \
42350 configure-target-winsup
0aed8855 42351 @: $(MAKE); $(unstage)
22121df0 42352 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
42353 r=`${PWD_COMMAND}`; export r; \
42354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42355 $(NORMAL_TARGET_EXPORTS) \
22121df0 42356 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
42357 for flag in $(EXTRA_TARGET_FLAGS); do \
42358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42359 done; \
a90ef4bf 42360 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
42361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42363 "RANLIB=$${RANLIB}" \
0c24b341 42364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42365 html) \
42366 || exit 1
42367
a90ef4bf 42368@endif target-winsup
6d389afc 42369
a90ef4bf
JM
42370.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
42371maybe-TAGS-target-winsup:
42372@if target-winsup
42373maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 42374
a90ef4bf
JM
42375TAGS-target-winsup: \
42376 configure-target-winsup
0aed8855 42377 @: $(MAKE); $(unstage)
22121df0 42378 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42379 r=`${PWD_COMMAND}`; export r; \
42380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42381 $(NORMAL_TARGET_EXPORTS) \
22121df0 42382 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42383 for flag in $(EXTRA_TARGET_FLAGS); do \
42384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42385 done; \
a90ef4bf 42386 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42389 "RANLIB=$${RANLIB}" \
0c24b341 42390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42391 TAGS) \
4fa63067
NN
42392 || exit 1
42393
a90ef4bf 42394@endif target-winsup
4fa63067 42395
a90ef4bf
JM
42396.PHONY: maybe-install-info-target-winsup install-info-target-winsup
42397maybe-install-info-target-winsup:
42398@if target-winsup
42399maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 42400
a90ef4bf
JM
42401install-info-target-winsup: \
42402 configure-target-winsup \
42403 info-target-winsup
0aed8855 42404 @: $(MAKE); $(unstage)
22121df0 42405 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42406 r=`${PWD_COMMAND}`; export r; \
42407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42408 $(NORMAL_TARGET_EXPORTS) \
22121df0 42409 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42410 for flag in $(EXTRA_TARGET_FLAGS); do \
42411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42412 done; \
a90ef4bf 42413 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42416 "RANLIB=$${RANLIB}" \
0c24b341 42417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42418 install-info) \
4fa63067
NN
42419 || exit 1
42420
a90ef4bf 42421@endif target-winsup
4fa63067 42422
a90ef4bf
JM
42423.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
42424maybe-install-pdf-target-winsup:
42425@if target-winsup
42426maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 42427
a90ef4bf
JM
42428install-pdf-target-winsup: \
42429 configure-target-winsup \
42430 pdf-target-winsup
a3ca38d2 42431 @: $(MAKE); $(unstage)
22121df0 42432 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
42433 r=`${PWD_COMMAND}`; export r; \
42434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42435 $(NORMAL_TARGET_EXPORTS) \
22121df0 42436 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
42437 for flag in $(EXTRA_TARGET_FLAGS); do \
42438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42439 done; \
a90ef4bf 42440 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
42441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42443 "RANLIB=$${RANLIB}" \
0c24b341 42444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42445 install-pdf) \
42446 || exit 1
42447
a90ef4bf 42448@endif target-winsup
a3ca38d2 42449
a90ef4bf
JM
42450.PHONY: maybe-install-html-target-winsup install-html-target-winsup
42451maybe-install-html-target-winsup:
42452@if target-winsup
42453maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 42454
a90ef4bf
JM
42455install-html-target-winsup: \
42456 configure-target-winsup \
42457 html-target-winsup
108a6f8e 42458 @: $(MAKE); $(unstage)
22121df0 42459 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
42460 r=`${PWD_COMMAND}`; export r; \
42461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42462 $(NORMAL_TARGET_EXPORTS) \
22121df0 42463 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
42464 for flag in $(EXTRA_TARGET_FLAGS); do \
42465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42466 done; \
a90ef4bf 42467 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
42468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42470 "RANLIB=$${RANLIB}" \
0c24b341 42471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42472 install-html) \
42473 || exit 1
42474
a90ef4bf 42475@endif target-winsup
108a6f8e 42476
a90ef4bf
JM
42477.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
42478maybe-installcheck-target-winsup:
42479@if target-winsup
42480maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 42481
a90ef4bf
JM
42482installcheck-target-winsup: \
42483 configure-target-winsup
0aed8855 42484 @: $(MAKE); $(unstage)
22121df0 42485 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42486 r=`${PWD_COMMAND}`; export r; \
42487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42488 $(NORMAL_TARGET_EXPORTS) \
22121df0 42489 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42490 for flag in $(EXTRA_TARGET_FLAGS); do \
42491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42492 done; \
a90ef4bf 42493 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42496 "RANLIB=$${RANLIB}" \
0c24b341 42497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42498 installcheck) \
4fa63067
NN
42499 || exit 1
42500
a90ef4bf 42501@endif target-winsup
4fa63067 42502
a90ef4bf
JM
42503.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
42504maybe-mostlyclean-target-winsup:
42505@if target-winsup
42506maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 42507
a90ef4bf 42508mostlyclean-target-winsup:
0aed8855 42509 @: $(MAKE); $(unstage)
22121df0 42510 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42511 r=`${PWD_COMMAND}`; export r; \
42512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42513 $(NORMAL_TARGET_EXPORTS) \
22121df0 42514 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42515 for flag in $(EXTRA_TARGET_FLAGS); do \
42516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42517 done; \
a90ef4bf 42518 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42521 "RANLIB=$${RANLIB}" \
0c24b341 42522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42523 mostlyclean) \
4fa63067
NN
42524 || exit 1
42525
a90ef4bf 42526@endif target-winsup
4fa63067 42527
a90ef4bf
JM
42528.PHONY: maybe-clean-target-winsup clean-target-winsup
42529maybe-clean-target-winsup:
42530@if target-winsup
42531maybe-clean-target-winsup: clean-target-winsup
4fa63067 42532
a90ef4bf 42533clean-target-winsup:
0aed8855 42534 @: $(MAKE); $(unstage)
22121df0 42535 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42536 r=`${PWD_COMMAND}`; export r; \
42537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42538 $(NORMAL_TARGET_EXPORTS) \
22121df0 42539 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42540 for flag in $(EXTRA_TARGET_FLAGS); do \
42541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42542 done; \
a90ef4bf 42543 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42546 "RANLIB=$${RANLIB}" \
0c24b341 42547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42548 clean) \
4fa63067
NN
42549 || exit 1
42550
a90ef4bf 42551@endif target-winsup
4fa63067 42552
a90ef4bf
JM
42553.PHONY: maybe-distclean-target-winsup distclean-target-winsup
42554maybe-distclean-target-winsup:
42555@if target-winsup
42556maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 42557
a90ef4bf 42558distclean-target-winsup:
0aed8855 42559 @: $(MAKE); $(unstage)
22121df0 42560 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42561 r=`${PWD_COMMAND}`; export r; \
42562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42563 $(NORMAL_TARGET_EXPORTS) \
22121df0 42564 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42565 for flag in $(EXTRA_TARGET_FLAGS); do \
42566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42567 done; \
a90ef4bf 42568 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42571 "RANLIB=$${RANLIB}" \
0c24b341 42572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42573 distclean) \
4fa63067
NN
42574 || exit 1
42575
a90ef4bf 42576@endif target-winsup
4fa63067 42577
a90ef4bf
JM
42578.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
42579maybe-maintainer-clean-target-winsup:
42580@if target-winsup
42581maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 42582
a90ef4bf 42583maintainer-clean-target-winsup:
0aed8855 42584 @: $(MAKE); $(unstage)
22121df0 42585 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42586 r=`${PWD_COMMAND}`; export r; \
42587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42588 $(NORMAL_TARGET_EXPORTS) \
22121df0 42589 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42590 for flag in $(EXTRA_TARGET_FLAGS); do \
42591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42592 done; \
a90ef4bf 42593 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42596 "RANLIB=$${RANLIB}" \
0c24b341 42597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42598 maintainer-clean) \
4fa63067 42599 || exit 1
16ae0395 42600
a90ef4bf 42601@endif target-winsup
e393202e
NN
42602
42603
15723a45 42604
e90269c8 42605
a7254363 42606
a90ef4bf
JM
42607.PHONY: configure-target-libgloss maybe-configure-target-libgloss
42608maybe-configure-target-libgloss:
4f0ef2d8 42609@if gcc-bootstrap
a90ef4bf 42610configure-target-libgloss: stage_current
4f0ef2d8 42611@endif gcc-bootstrap
a90ef4bf
JM
42612@if target-libgloss
42613maybe-configure-target-libgloss: configure-target-libgloss
42614configure-target-libgloss:
0aed8855
PB
42615 @: $(MAKE); $(unstage)
42616 @r=`${PWD_COMMAND}`; export r; \
42617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42618 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
42619 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
42620 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42621 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42622 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42623 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 42624 else \
a90ef4bf
JM
42625 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
42626 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
42627 fi; \
42628 else \
a90ef4bf 42629 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 42630 fi; \
a90ef4bf 42631 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 42632 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 42633 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42634 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
42635 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 42636 case $(srcdir) in \
b00612cc 42637 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42638 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 42639 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42640 esac; \
1b6c0831 42641 module_srcdir=libgloss; \
bba45b8b 42642 rm -f no-such-file || : ; \
1b6c0831
L
42643 CONFIG_SITE=no-such-file $(SHELL) \
42644 $$s/$$module_srcdir/configure \
42645 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42646 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42647 --target=${target_alias} \
bba45b8b 42648 || exit 1
a90ef4bf 42649@endif target-libgloss
e393202e 42650
a7254363
PB
42651
42652
d545f33b
PB
42653
42654
a90ef4bf
JM
42655.PHONY: all-target-libgloss maybe-all-target-libgloss
42656maybe-all-target-libgloss:
4f0ef2d8 42657@if gcc-bootstrap
a90ef4bf 42658all-target-libgloss: stage_current
4f0ef2d8 42659@endif gcc-bootstrap
a90ef4bf
JM
42660@if target-libgloss
42661TARGET-target-libgloss=all
42662maybe-all-target-libgloss: all-target-libgloss
42663all-target-libgloss: configure-target-libgloss
0aed8855 42664 @: $(MAKE); $(unstage)
b40e3958
L
42665 @r=`${PWD_COMMAND}`; export r; \
42666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42667 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42668 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 42669 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42670 $(TARGET-target-libgloss))
42671@endif target-libgloss
e393202e 42672
a7254363
PB
42673
42674
d545f33b
PB
42675
42676
a90ef4bf
JM
42677.PHONY: check-target-libgloss maybe-check-target-libgloss
42678maybe-check-target-libgloss:
42679@if target-libgloss
42680maybe-check-target-libgloss: check-target-libgloss
16ae0395 42681
a90ef4bf
JM
42682# Dummy target for uncheckable module.
42683check-target-libgloss:
930314a4 42684
a90ef4bf 42685@endif target-libgloss
e393202e 42686
a90ef4bf
JM
42687.PHONY: install-target-libgloss maybe-install-target-libgloss
42688maybe-install-target-libgloss:
42689@if target-libgloss
42690maybe-install-target-libgloss: install-target-libgloss
4fa63067 42691
a90ef4bf 42692install-target-libgloss: installdirs
0aed8855 42693 @: $(MAKE); $(unstage)
4fa63067
NN
42694 @r=`${PWD_COMMAND}`; export r; \
42695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42696 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42697 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 42698 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42699
a90ef4bf 42700@endif target-libgloss
4fa63067 42701
a90ef4bf
JM
42702.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
42703maybe-install-strip-target-libgloss:
42704@if target-libgloss
42705maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 42706
a90ef4bf 42707install-strip-target-libgloss: installdirs
9b980aa1
RW
42708 @: $(MAKE); $(unstage)
42709 @r=`${PWD_COMMAND}`; export r; \
42710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42711 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42712 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
42713 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42714
a90ef4bf 42715@endif target-libgloss
9b980aa1 42716
56a8fe78 42717# Other targets (info, dvi, pdf, etc.)
4fa63067 42718
a90ef4bf
JM
42719.PHONY: maybe-info-target-libgloss info-target-libgloss
42720maybe-info-target-libgloss:
42721@if target-libgloss
42722maybe-info-target-libgloss: info-target-libgloss
4fa63067 42723
a90ef4bf
JM
42724info-target-libgloss: \
42725 configure-target-libgloss
0aed8855 42726 @: $(MAKE); $(unstage)
22121df0 42727 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42728 r=`${PWD_COMMAND}`; export r; \
42729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42730 $(NORMAL_TARGET_EXPORTS) \
22121df0 42731 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42732 for flag in $(EXTRA_TARGET_FLAGS); do \
42733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42734 done; \
a90ef4bf 42735 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42738 "RANLIB=$${RANLIB}" \
0c24b341 42739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42740 info) \
4fa63067
NN
42741 || exit 1
42742
a90ef4bf 42743@endif target-libgloss
4fa63067 42744
a90ef4bf
JM
42745.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
42746maybe-dvi-target-libgloss:
42747@if target-libgloss
42748maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 42749
a90ef4bf
JM
42750dvi-target-libgloss: \
42751 configure-target-libgloss
0aed8855 42752 @: $(MAKE); $(unstage)
22121df0 42753 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42754 r=`${PWD_COMMAND}`; export r; \
42755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42756 $(NORMAL_TARGET_EXPORTS) \
22121df0 42757 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42758 for flag in $(EXTRA_TARGET_FLAGS); do \
42759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42760 done; \
a90ef4bf 42761 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42764 "RANLIB=$${RANLIB}" \
0c24b341 42765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42766 dvi) \
4fa63067
NN
42767 || exit 1
42768
a90ef4bf 42769@endif target-libgloss
4fa63067 42770
a90ef4bf
JM
42771.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
42772maybe-pdf-target-libgloss:
42773@if target-libgloss
42774maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 42775
a90ef4bf
JM
42776pdf-target-libgloss: \
42777 configure-target-libgloss
56a8fe78 42778 @: $(MAKE); $(unstage)
22121df0 42779 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
42780 r=`${PWD_COMMAND}`; export r; \
42781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42782 $(NORMAL_TARGET_EXPORTS) \
22121df0 42783 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
42784 for flag in $(EXTRA_TARGET_FLAGS); do \
42785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42786 done; \
a90ef4bf 42787 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
42788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42790 "RANLIB=$${RANLIB}" \
0c24b341 42791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42792 pdf) \
42793 || exit 1
42794
a90ef4bf 42795@endif target-libgloss
56a8fe78 42796
a90ef4bf
JM
42797.PHONY: maybe-html-target-libgloss html-target-libgloss
42798maybe-html-target-libgloss:
42799@if target-libgloss
42800maybe-html-target-libgloss: html-target-libgloss
6d389afc 42801
a90ef4bf
JM
42802html-target-libgloss: \
42803 configure-target-libgloss
0aed8855 42804 @: $(MAKE); $(unstage)
22121df0 42805 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
42806 r=`${PWD_COMMAND}`; export r; \
42807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42808 $(NORMAL_TARGET_EXPORTS) \
22121df0 42809 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
42810 for flag in $(EXTRA_TARGET_FLAGS); do \
42811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42812 done; \
a90ef4bf 42813 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
42814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42816 "RANLIB=$${RANLIB}" \
0c24b341 42817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42818 html) \
42819 || exit 1
42820
a90ef4bf 42821@endif target-libgloss
6d389afc 42822
a90ef4bf
JM
42823.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
42824maybe-TAGS-target-libgloss:
42825@if target-libgloss
42826maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 42827
a90ef4bf
JM
42828TAGS-target-libgloss: \
42829 configure-target-libgloss
0aed8855 42830 @: $(MAKE); $(unstage)
22121df0 42831 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42832 r=`${PWD_COMMAND}`; export r; \
42833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42834 $(NORMAL_TARGET_EXPORTS) \
22121df0 42835 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42836 for flag in $(EXTRA_TARGET_FLAGS); do \
42837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42838 done; \
a90ef4bf 42839 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42842 "RANLIB=$${RANLIB}" \
0c24b341 42843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42844 TAGS) \
4fa63067
NN
42845 || exit 1
42846
a90ef4bf 42847@endif target-libgloss
4fa63067 42848
a90ef4bf
JM
42849.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
42850maybe-install-info-target-libgloss:
42851@if target-libgloss
42852maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 42853
a90ef4bf
JM
42854install-info-target-libgloss: \
42855 configure-target-libgloss \
42856 info-target-libgloss
0aed8855 42857 @: $(MAKE); $(unstage)
22121df0 42858 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42859 r=`${PWD_COMMAND}`; export r; \
42860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42861 $(NORMAL_TARGET_EXPORTS) \
22121df0 42862 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42863 for flag in $(EXTRA_TARGET_FLAGS); do \
42864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42865 done; \
a90ef4bf 42866 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42869 "RANLIB=$${RANLIB}" \
0c24b341 42870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42871 install-info) \
4fa63067
NN
42872 || exit 1
42873
a90ef4bf 42874@endif target-libgloss
4fa63067 42875
a90ef4bf
JM
42876.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
42877maybe-install-pdf-target-libgloss:
42878@if target-libgloss
42879maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 42880
a90ef4bf
JM
42881install-pdf-target-libgloss: \
42882 configure-target-libgloss \
42883 pdf-target-libgloss
a3ca38d2 42884 @: $(MAKE); $(unstage)
22121df0 42885 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
42886 r=`${PWD_COMMAND}`; export r; \
42887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42888 $(NORMAL_TARGET_EXPORTS) \
22121df0 42889 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
42890 for flag in $(EXTRA_TARGET_FLAGS); do \
42891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42892 done; \
a90ef4bf 42893 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
42894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42896 "RANLIB=$${RANLIB}" \
0c24b341 42897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42898 install-pdf) \
42899 || exit 1
42900
a90ef4bf 42901@endif target-libgloss
a3ca38d2 42902
a90ef4bf
JM
42903.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
42904maybe-install-html-target-libgloss:
42905@if target-libgloss
42906maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 42907
a90ef4bf
JM
42908install-html-target-libgloss: \
42909 configure-target-libgloss \
42910 html-target-libgloss
108a6f8e 42911 @: $(MAKE); $(unstage)
22121df0 42912 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
42913 r=`${PWD_COMMAND}`; export r; \
42914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42915 $(NORMAL_TARGET_EXPORTS) \
22121df0 42916 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
42917 for flag in $(EXTRA_TARGET_FLAGS); do \
42918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42919 done; \
a90ef4bf 42920 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
42921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42923 "RANLIB=$${RANLIB}" \
0c24b341 42924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42925 install-html) \
42926 || exit 1
42927
a90ef4bf 42928@endif target-libgloss
108a6f8e 42929
a90ef4bf
JM
42930.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
42931maybe-installcheck-target-libgloss:
42932@if target-libgloss
42933maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 42934
a90ef4bf
JM
42935installcheck-target-libgloss: \
42936 configure-target-libgloss
0aed8855 42937 @: $(MAKE); $(unstage)
22121df0 42938 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42939 r=`${PWD_COMMAND}`; export r; \
42940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42941 $(NORMAL_TARGET_EXPORTS) \
22121df0 42942 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42943 for flag in $(EXTRA_TARGET_FLAGS); do \
42944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42945 done; \
a90ef4bf 42946 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42949 "RANLIB=$${RANLIB}" \
0c24b341 42950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42951 installcheck) \
4fa63067
NN
42952 || exit 1
42953
a90ef4bf 42954@endif target-libgloss
4fa63067 42955
a90ef4bf
JM
42956.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
42957maybe-mostlyclean-target-libgloss:
42958@if target-libgloss
42959maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 42960
a90ef4bf 42961mostlyclean-target-libgloss:
0aed8855 42962 @: $(MAKE); $(unstage)
22121df0 42963 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42964 r=`${PWD_COMMAND}`; export r; \
42965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42966 $(NORMAL_TARGET_EXPORTS) \
22121df0 42967 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42968 for flag in $(EXTRA_TARGET_FLAGS); do \
42969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42970 done; \
a90ef4bf 42971 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42974 "RANLIB=$${RANLIB}" \
0c24b341 42975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42976 mostlyclean) \
4fa63067
NN
42977 || exit 1
42978
a90ef4bf 42979@endif target-libgloss
4fa63067 42980
a90ef4bf
JM
42981.PHONY: maybe-clean-target-libgloss clean-target-libgloss
42982maybe-clean-target-libgloss:
42983@if target-libgloss
42984maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 42985
a90ef4bf 42986clean-target-libgloss:
0aed8855 42987 @: $(MAKE); $(unstage)
22121df0 42988 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42989 r=`${PWD_COMMAND}`; export r; \
42990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42991 $(NORMAL_TARGET_EXPORTS) \
22121df0 42992 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42993 for flag in $(EXTRA_TARGET_FLAGS); do \
42994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42995 done; \
a90ef4bf 42996 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42999 "RANLIB=$${RANLIB}" \
0c24b341 43000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43001 clean) \
4fa63067
NN
43002 || exit 1
43003
a90ef4bf 43004@endif target-libgloss
4fa63067 43005
a90ef4bf
JM
43006.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
43007maybe-distclean-target-libgloss:
43008@if target-libgloss
43009maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 43010
a90ef4bf 43011distclean-target-libgloss:
0aed8855 43012 @: $(MAKE); $(unstage)
22121df0 43013 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43014 r=`${PWD_COMMAND}`; export r; \
43015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43016 $(NORMAL_TARGET_EXPORTS) \
22121df0 43017 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43018 for flag in $(EXTRA_TARGET_FLAGS); do \
43019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43020 done; \
a90ef4bf 43021 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43024 "RANLIB=$${RANLIB}" \
0c24b341 43025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43026 distclean) \
4fa63067
NN
43027 || exit 1
43028
a90ef4bf 43029@endif target-libgloss
4fa63067 43030
a90ef4bf
JM
43031.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
43032maybe-maintainer-clean-target-libgloss:
43033@if target-libgloss
43034maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 43035
a90ef4bf 43036maintainer-clean-target-libgloss:
0aed8855 43037 @: $(MAKE); $(unstage)
22121df0 43038 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43039 r=`${PWD_COMMAND}`; export r; \
43040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43041 $(NORMAL_TARGET_EXPORTS) \
22121df0 43042 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43043 for flag in $(EXTRA_TARGET_FLAGS); do \
43044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43045 done; \
a90ef4bf 43046 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43049 "RANLIB=$${RANLIB}" \
0c24b341 43050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43051 maintainer-clean) \
4fa63067 43052 || exit 1
16ae0395 43053
a90ef4bf 43054@endif target-libgloss
e393202e
NN
43055
43056
15723a45 43057
a7254363
PB
43058
43059
a7254363
PB
43060.PHONY: configure-target-libffi maybe-configure-target-libffi
43061maybe-configure-target-libffi:
4f0ef2d8
CD
43062@if gcc-bootstrap
43063configure-target-libffi: stage_current
43064@endif gcc-bootstrap
a7254363
PB
43065@if target-libffi
43066maybe-configure-target-libffi: configure-target-libffi
c52c6897 43067configure-target-libffi:
0aed8855
PB
43068 @: $(MAKE); $(unstage)
43069 @r=`${PWD_COMMAND}`; export r; \
43070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43071 echo "Checking multilib configuration for libffi..."; \
22121df0
L
43072 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
43073 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
43074 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
43075 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
43076 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
43077 else \
43078 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
43079 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
43080 fi; \
43081 else \
43082 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
43083 fi; \
43084 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 43085 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 43086 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43087 echo Configuring in $(TARGET_SUBDIR)/libffi; \
43088 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 43089 case $(srcdir) in \
b00612cc
PB
43090 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43091 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
43092 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43093 esac; \
1b6c0831 43094 module_srcdir=libffi; \
bba45b8b 43095 rm -f no-such-file || : ; \
1b6c0831
L
43096 CONFIG_SITE=no-such-file $(SHELL) \
43097 $$s/$$module_srcdir/configure \
43098 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43099 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43100 --target=${target_alias} \
bba45b8b 43101 || exit 1
6bd3dfaa 43102@endif target-libffi
e393202e 43103
a7254363
PB
43104
43105
d545f33b
PB
43106
43107
4fa63067
NN
43108.PHONY: all-target-libffi maybe-all-target-libffi
43109maybe-all-target-libffi:
4f0ef2d8
CD
43110@if gcc-bootstrap
43111all-target-libffi: stage_current
43112@endif gcc-bootstrap
6bd3dfaa 43113@if target-libffi
72b2455a 43114TARGET-target-libffi=all
6bd3dfaa 43115maybe-all-target-libffi: all-target-libffi
4fa63067 43116all-target-libffi: configure-target-libffi
0aed8855 43117 @: $(MAKE); $(unstage)
b40e3958
L
43118 @r=`${PWD_COMMAND}`; export r; \
43119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43120 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43121 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 43122 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 43123 $(TARGET-target-libffi))
6bd3dfaa 43124@endif target-libffi
e393202e 43125
a7254363
PB
43126
43127
d545f33b
PB
43128
43129
4fa63067
NN
43130.PHONY: check-target-libffi maybe-check-target-libffi
43131maybe-check-target-libffi:
6bd3dfaa
PB
43132@if target-libffi
43133maybe-check-target-libffi: check-target-libffi
16ae0395 43134
4fa63067 43135check-target-libffi:
0aed8855 43136 @: $(MAKE); $(unstage)
b40e3958
L
43137 @r=`${PWD_COMMAND}`; export r; \
43138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43139 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43140 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 43141 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 43142
6bd3dfaa 43143@endif target-libffi
e393202e 43144
4fa63067
NN
43145.PHONY: install-target-libffi maybe-install-target-libffi
43146maybe-install-target-libffi:
6bd3dfaa
PB
43147@if target-libffi
43148maybe-install-target-libffi: install-target-libffi
16ae0395 43149
b836cb18
JBG
43150# Dummy target for uninstallable.
43151install-target-libffi:
e393202e 43152
6bd3dfaa 43153@endif target-libffi
e393202e 43154
9b980aa1
RW
43155.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
43156maybe-install-strip-target-libffi:
43157@if target-libffi
43158maybe-install-strip-target-libffi: install-strip-target-libffi
43159
b836cb18
JBG
43160# Dummy target for uninstallable.
43161install-strip-target-libffi:
9b980aa1
RW
43162
43163@endif target-libffi
43164
56a8fe78 43165# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
43166
43167.PHONY: maybe-info-target-libffi info-target-libffi
43168maybe-info-target-libffi:
6bd3dfaa
PB
43169@if target-libffi
43170maybe-info-target-libffi: info-target-libffi
4fa63067
NN
43171
43172info-target-libffi: \
43173 configure-target-libffi
0aed8855 43174 @: $(MAKE); $(unstage)
22121df0 43175 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43176 r=`${PWD_COMMAND}`; export r; \
43177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43178 $(NORMAL_TARGET_EXPORTS) \
22121df0 43179 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43180 for flag in $(EXTRA_TARGET_FLAGS); do \
43181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43182 done; \
43183 (cd $(TARGET_SUBDIR)/libffi && \
43184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43186 "RANLIB=$${RANLIB}" \
0c24b341 43187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43188 info) \
4fa63067
NN
43189 || exit 1
43190
6bd3dfaa 43191@endif target-libffi
4fa63067
NN
43192
43193.PHONY: maybe-dvi-target-libffi dvi-target-libffi
43194maybe-dvi-target-libffi:
6bd3dfaa
PB
43195@if target-libffi
43196maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
43197
43198dvi-target-libffi: \
43199 configure-target-libffi
0aed8855 43200 @: $(MAKE); $(unstage)
22121df0 43201 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43202 r=`${PWD_COMMAND}`; export r; \
43203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43204 $(NORMAL_TARGET_EXPORTS) \
22121df0 43205 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43206 for flag in $(EXTRA_TARGET_FLAGS); do \
43207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43208 done; \
43209 (cd $(TARGET_SUBDIR)/libffi && \
43210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43212 "RANLIB=$${RANLIB}" \
0c24b341 43213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43214 dvi) \
4fa63067
NN
43215 || exit 1
43216
6bd3dfaa 43217@endif target-libffi
4fa63067 43218
56a8fe78
DD
43219.PHONY: maybe-pdf-target-libffi pdf-target-libffi
43220maybe-pdf-target-libffi:
43221@if target-libffi
43222maybe-pdf-target-libffi: pdf-target-libffi
43223
43224pdf-target-libffi: \
43225 configure-target-libffi
43226 @: $(MAKE); $(unstage)
22121df0 43227 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
43228 r=`${PWD_COMMAND}`; export r; \
43229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43230 $(NORMAL_TARGET_EXPORTS) \
22121df0 43231 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
43232 for flag in $(EXTRA_TARGET_FLAGS); do \
43233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43234 done; \
43235 (cd $(TARGET_SUBDIR)/libffi && \
43236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43238 "RANLIB=$${RANLIB}" \
0c24b341 43239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43240 pdf) \
43241 || exit 1
43242
43243@endif target-libffi
43244
6d389afc
MS
43245.PHONY: maybe-html-target-libffi html-target-libffi
43246maybe-html-target-libffi:
43247@if target-libffi
43248maybe-html-target-libffi: html-target-libffi
43249
43250html-target-libffi: \
43251 configure-target-libffi
0aed8855 43252 @: $(MAKE); $(unstage)
22121df0 43253 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
43254 r=`${PWD_COMMAND}`; export r; \
43255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43256 $(NORMAL_TARGET_EXPORTS) \
22121df0 43257 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
43258 for flag in $(EXTRA_TARGET_FLAGS); do \
43259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43260 done; \
43261 (cd $(TARGET_SUBDIR)/libffi && \
43262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43264 "RANLIB=$${RANLIB}" \
0c24b341 43265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43266 html) \
43267 || exit 1
43268
43269@endif target-libffi
43270
4fa63067
NN
43271.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
43272maybe-TAGS-target-libffi:
6bd3dfaa
PB
43273@if target-libffi
43274maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
43275
43276TAGS-target-libffi: \
43277 configure-target-libffi
0aed8855 43278 @: $(MAKE); $(unstage)
22121df0 43279 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43280 r=`${PWD_COMMAND}`; export r; \
43281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43282 $(NORMAL_TARGET_EXPORTS) \
22121df0 43283 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43284 for flag in $(EXTRA_TARGET_FLAGS); do \
43285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43286 done; \
43287 (cd $(TARGET_SUBDIR)/libffi && \
43288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43290 "RANLIB=$${RANLIB}" \
0c24b341 43291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43292 TAGS) \
4fa63067
NN
43293 || exit 1
43294
6bd3dfaa 43295@endif target-libffi
4fa63067
NN
43296
43297.PHONY: maybe-install-info-target-libffi install-info-target-libffi
43298maybe-install-info-target-libffi:
6bd3dfaa
PB
43299@if target-libffi
43300maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
43301
43302install-info-target-libffi: \
43303 configure-target-libffi \
43304 info-target-libffi
0aed8855 43305 @: $(MAKE); $(unstage)
22121df0 43306 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43307 r=`${PWD_COMMAND}`; export r; \
43308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43309 $(NORMAL_TARGET_EXPORTS) \
22121df0 43310 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43311 for flag in $(EXTRA_TARGET_FLAGS); do \
43312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43313 done; \
43314 (cd $(TARGET_SUBDIR)/libffi && \
43315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43317 "RANLIB=$${RANLIB}" \
0c24b341 43318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43319 install-info) \
4fa63067
NN
43320 || exit 1
43321
6bd3dfaa 43322@endif target-libffi
4fa63067 43323
a3ca38d2
DD
43324.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
43325maybe-install-pdf-target-libffi:
43326@if target-libffi
43327maybe-install-pdf-target-libffi: install-pdf-target-libffi
43328
43329install-pdf-target-libffi: \
43330 configure-target-libffi \
43331 pdf-target-libffi
43332 @: $(MAKE); $(unstage)
22121df0 43333 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
43334 r=`${PWD_COMMAND}`; export r; \
43335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43336 $(NORMAL_TARGET_EXPORTS) \
22121df0 43337 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
43338 for flag in $(EXTRA_TARGET_FLAGS); do \
43339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43340 done; \
43341 (cd $(TARGET_SUBDIR)/libffi && \
43342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43344 "RANLIB=$${RANLIB}" \
0c24b341 43345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43346 install-pdf) \
43347 || exit 1
43348
43349@endif target-libffi
43350
108a6f8e
CD
43351.PHONY: maybe-install-html-target-libffi install-html-target-libffi
43352maybe-install-html-target-libffi:
43353@if target-libffi
43354maybe-install-html-target-libffi: install-html-target-libffi
43355
43356install-html-target-libffi: \
43357 configure-target-libffi \
43358 html-target-libffi
43359 @: $(MAKE); $(unstage)
22121df0 43360 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
43361 r=`${PWD_COMMAND}`; export r; \
43362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43363 $(NORMAL_TARGET_EXPORTS) \
22121df0 43364 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
43365 for flag in $(EXTRA_TARGET_FLAGS); do \
43366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43367 done; \
43368 (cd $(TARGET_SUBDIR)/libffi && \
43369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43371 "RANLIB=$${RANLIB}" \
0c24b341 43372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43373 install-html) \
43374 || exit 1
43375
43376@endif target-libffi
43377
4fa63067
NN
43378.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
43379maybe-installcheck-target-libffi:
6bd3dfaa
PB
43380@if target-libffi
43381maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
43382
43383installcheck-target-libffi: \
43384 configure-target-libffi
0aed8855 43385 @: $(MAKE); $(unstage)
22121df0 43386 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43387 r=`${PWD_COMMAND}`; export r; \
43388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43389 $(NORMAL_TARGET_EXPORTS) \
22121df0 43390 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43391 for flag in $(EXTRA_TARGET_FLAGS); do \
43392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43393 done; \
43394 (cd $(TARGET_SUBDIR)/libffi && \
43395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43397 "RANLIB=$${RANLIB}" \
0c24b341 43398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43399 installcheck) \
4fa63067
NN
43400 || exit 1
43401
6bd3dfaa 43402@endif target-libffi
4fa63067
NN
43403
43404.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
43405maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
43406@if target-libffi
43407maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
43408
43409mostlyclean-target-libffi:
0aed8855 43410 @: $(MAKE); $(unstage)
22121df0 43411 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43412 r=`${PWD_COMMAND}`; export r; \
43413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43414 $(NORMAL_TARGET_EXPORTS) \
22121df0 43415 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43416 for flag in $(EXTRA_TARGET_FLAGS); do \
43417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43418 done; \
43419 (cd $(TARGET_SUBDIR)/libffi && \
43420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43422 "RANLIB=$${RANLIB}" \
0c24b341 43423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43424 mostlyclean) \
4fa63067
NN
43425 || exit 1
43426
6bd3dfaa 43427@endif target-libffi
4fa63067
NN
43428
43429.PHONY: maybe-clean-target-libffi clean-target-libffi
43430maybe-clean-target-libffi:
6bd3dfaa
PB
43431@if target-libffi
43432maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
43433
43434clean-target-libffi:
0aed8855 43435 @: $(MAKE); $(unstage)
22121df0 43436 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43437 r=`${PWD_COMMAND}`; export r; \
43438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43439 $(NORMAL_TARGET_EXPORTS) \
22121df0 43440 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43441 for flag in $(EXTRA_TARGET_FLAGS); do \
43442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43443 done; \
43444 (cd $(TARGET_SUBDIR)/libffi && \
43445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43447 "RANLIB=$${RANLIB}" \
0c24b341 43448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43449 clean) \
4fa63067
NN
43450 || exit 1
43451
6bd3dfaa 43452@endif target-libffi
4fa63067
NN
43453
43454.PHONY: maybe-distclean-target-libffi distclean-target-libffi
43455maybe-distclean-target-libffi:
6bd3dfaa
PB
43456@if target-libffi
43457maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
43458
43459distclean-target-libffi:
0aed8855 43460 @: $(MAKE); $(unstage)
22121df0 43461 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43462 r=`${PWD_COMMAND}`; export r; \
43463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43464 $(NORMAL_TARGET_EXPORTS) \
22121df0 43465 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43466 for flag in $(EXTRA_TARGET_FLAGS); do \
43467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43468 done; \
43469 (cd $(TARGET_SUBDIR)/libffi && \
43470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43472 "RANLIB=$${RANLIB}" \
0c24b341 43473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43474 distclean) \
4fa63067
NN
43475 || exit 1
43476
6bd3dfaa 43477@endif target-libffi
4fa63067
NN
43478
43479.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
43480maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
43481@if target-libffi
43482maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
43483
43484maintainer-clean-target-libffi:
0aed8855 43485 @: $(MAKE); $(unstage)
22121df0 43486 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43487 r=`${PWD_COMMAND}`; export r; \
43488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43489 $(NORMAL_TARGET_EXPORTS) \
22121df0 43490 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43491 for flag in $(EXTRA_TARGET_FLAGS); do \
43492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43493 done; \
43494 (cd $(TARGET_SUBDIR)/libffi && \
43495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43497 "RANLIB=$${RANLIB}" \
0c24b341 43498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43499 maintainer-clean) \
4fa63067
NN
43500 || exit 1
43501
6bd3dfaa 43502@endif target-libffi
4fa63067
NN
43503
43504
15723a45 43505
a7254363 43506
15723a45 43507
a7254363
PB
43508.PHONY: configure-target-libjava maybe-configure-target-libjava
43509maybe-configure-target-libjava:
4f0ef2d8
CD
43510@if gcc-bootstrap
43511configure-target-libjava: stage_current
43512@endif gcc-bootstrap
a7254363
PB
43513@if target-libjava
43514maybe-configure-target-libjava: configure-target-libjava
c52c6897 43515configure-target-libjava:
0aed8855
PB
43516 @: $(MAKE); $(unstage)
43517 @r=`${PWD_COMMAND}`; export r; \
43518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43519 echo "Checking multilib configuration for libjava..."; \
22121df0
L
43520 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava; \
43521 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null; \
0aed8855
PB
43522 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
43523 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
43524 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
43525 else \
43526 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
43527 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
43528 fi; \
43529 else \
43530 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
c52c6897
PB
43531 fi; \
43532 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
22121df0 43533 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava; \
1f53ca9a 43534 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43535 echo Configuring in $(TARGET_SUBDIR)/libjava; \
43536 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b 43537 case $(srcdir) in \
b00612cc
PB
43538 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43539 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
43540 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43541 esac; \
1b6c0831 43542 module_srcdir=libjava; \
bba45b8b 43543 rm -f no-such-file || : ; \
1b6c0831
L
43544 CONFIG_SITE=no-such-file $(SHELL) \
43545 $$s/$$module_srcdir/configure \
43546 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43547 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43548 --target=${target_alias} $(EXTRA_CONFIGARGS_LIBJAVA) \
bba45b8b 43549 || exit 1
6bd3dfaa 43550@endif target-libjava
e393202e 43551
a7254363
PB
43552
43553
d545f33b
PB
43554
43555
4fa63067
NN
43556.PHONY: all-target-libjava maybe-all-target-libjava
43557maybe-all-target-libjava:
4f0ef2d8
CD
43558@if gcc-bootstrap
43559all-target-libjava: stage_current
43560@endif gcc-bootstrap
6bd3dfaa 43561@if target-libjava
72b2455a 43562TARGET-target-libjava=all
6bd3dfaa 43563maybe-all-target-libjava: all-target-libjava
4fa63067 43564all-target-libjava: configure-target-libjava
0aed8855 43565 @: $(MAKE); $(unstage)
b40e3958
L
43566 @r=`${PWD_COMMAND}`; export r; \
43567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43568 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43569 (cd $(TARGET_SUBDIR)/libjava && \
b3676d82 43570 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 43571 $(TARGET-target-libjava))
6bd3dfaa 43572@endif target-libjava
e393202e 43573
a7254363
PB
43574
43575
d545f33b
PB
43576
43577
4fa63067
NN
43578.PHONY: check-target-libjava maybe-check-target-libjava
43579maybe-check-target-libjava:
6bd3dfaa
PB
43580@if target-libjava
43581maybe-check-target-libjava: check-target-libjava
16ae0395 43582
4fa63067 43583check-target-libjava:
0aed8855 43584 @: $(MAKE); $(unstage)
4fa63067
NN
43585 @r=`${PWD_COMMAND}`; export r; \
43586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43587 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43588 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43589 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 43590
6bd3dfaa 43591@endif target-libjava
930314a4 43592
4fa63067
NN
43593.PHONY: install-target-libjava maybe-install-target-libjava
43594maybe-install-target-libjava:
6bd3dfaa
PB
43595@if target-libjava
43596maybe-install-target-libjava: install-target-libjava
16ae0395 43597
4fa63067 43598install-target-libjava: installdirs
0aed8855 43599 @: $(MAKE); $(unstage)
b40e3958
L
43600 @r=`${PWD_COMMAND}`; export r; \
43601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43602 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43603 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43604 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43605
6bd3dfaa 43606@endif target-libjava
e393202e 43607
9b980aa1
RW
43608.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
43609maybe-install-strip-target-libjava:
43610@if target-libjava
43611maybe-install-strip-target-libjava: install-strip-target-libjava
43612
43613install-strip-target-libjava: installdirs
43614 @: $(MAKE); $(unstage)
43615 @r=`${PWD_COMMAND}`; export r; \
43616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43617 $(RAW_CXX_TARGET_EXPORTS) \
43618 (cd $(TARGET_SUBDIR)/libjava && \
43619 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43620
43621@endif target-libjava
43622
56a8fe78 43623# Other targets (info, dvi, pdf, etc.)
15723a45 43624
4fa63067
NN
43625.PHONY: maybe-info-target-libjava info-target-libjava
43626maybe-info-target-libjava:
6bd3dfaa
PB
43627@if target-libjava
43628maybe-info-target-libjava: info-target-libjava
15723a45 43629
4fa63067
NN
43630info-target-libjava: \
43631 configure-target-libjava
0aed8855 43632 @: $(MAKE); $(unstage)
22121df0 43633 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
b40e3958
L
43634 r=`${PWD_COMMAND}`; export r; \
43635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43636 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43637 echo "Doing info in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43638 for flag in $(EXTRA_TARGET_FLAGS); do \
43639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43640 done; \
43641 (cd $(TARGET_SUBDIR)/libjava && \
43642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43644 "RANLIB=$${RANLIB}" \
0c24b341 43645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43646 info) \
bba45b8b 43647 || exit 1
e393202e 43648
6bd3dfaa 43649@endif target-libjava
4fa63067
NN
43650
43651.PHONY: maybe-dvi-target-libjava dvi-target-libjava
43652maybe-dvi-target-libjava:
6bd3dfaa
PB
43653@if target-libjava
43654maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
43655
43656dvi-target-libjava: \
43657 configure-target-libjava
0aed8855 43658 @: $(MAKE); $(unstage)
22121df0 43659 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43660 r=`${PWD_COMMAND}`; export r; \
b40e3958 43661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43662 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43663 echo "Doing dvi in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43664 for flag in $(EXTRA_TARGET_FLAGS); do \
43665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43666 done; \
43667 (cd $(TARGET_SUBDIR)/libjava && \
43668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43670 "RANLIB=$${RANLIB}" \
0c24b341 43671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43672 dvi) \
4fa63067 43673 || exit 1
e393202e 43674
6bd3dfaa 43675@endif target-libjava
16ae0395 43676
56a8fe78
DD
43677.PHONY: maybe-pdf-target-libjava pdf-target-libjava
43678maybe-pdf-target-libjava:
43679@if target-libjava
43680maybe-pdf-target-libjava: pdf-target-libjava
43681
43682pdf-target-libjava: \
43683 configure-target-libjava
43684 @: $(MAKE); $(unstage)
22121df0 43685 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
56a8fe78
DD
43686 r=`${PWD_COMMAND}`; export r; \
43687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43688 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43689 echo "Doing pdf in $(TARGET_SUBDIR)/libjava"; \
56a8fe78
DD
43690 for flag in $(EXTRA_TARGET_FLAGS); do \
43691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43692 done; \
43693 (cd $(TARGET_SUBDIR)/libjava && \
43694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43696 "RANLIB=$${RANLIB}" \
0c24b341 43697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43698 pdf) \
43699 || exit 1
43700
43701@endif target-libjava
43702
6d389afc
MS
43703.PHONY: maybe-html-target-libjava html-target-libjava
43704maybe-html-target-libjava:
43705@if target-libjava
43706maybe-html-target-libjava: html-target-libjava
43707
43708html-target-libjava: \
43709 configure-target-libjava
0aed8855 43710 @: $(MAKE); $(unstage)
22121df0 43711 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
6d389afc
MS
43712 r=`${PWD_COMMAND}`; export r; \
43713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43714 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43715 echo "Doing html in $(TARGET_SUBDIR)/libjava"; \
6d389afc
MS
43716 for flag in $(EXTRA_TARGET_FLAGS); do \
43717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43718 done; \
43719 (cd $(TARGET_SUBDIR)/libjava && \
43720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43722 "RANLIB=$${RANLIB}" \
0c24b341 43723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43724 html) \
43725 || exit 1
43726
43727@endif target-libjava
43728
4fa63067
NN
43729.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
43730maybe-TAGS-target-libjava:
6bd3dfaa
PB
43731@if target-libjava
43732maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
43733
43734TAGS-target-libjava: \
43735 configure-target-libjava
0aed8855 43736 @: $(MAKE); $(unstage)
22121df0 43737 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43738 r=`${PWD_COMMAND}`; export r; \
b40e3958 43739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43740 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43741 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43742 for flag in $(EXTRA_TARGET_FLAGS); do \
43743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43744 done; \
43745 (cd $(TARGET_SUBDIR)/libjava && \
43746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43748 "RANLIB=$${RANLIB}" \
0c24b341 43749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43750 TAGS) \
4fa63067 43751 || exit 1
e393202e 43752
6bd3dfaa 43753@endif target-libjava
930314a4 43754
4fa63067
NN
43755.PHONY: maybe-install-info-target-libjava install-info-target-libjava
43756maybe-install-info-target-libjava:
6bd3dfaa
PB
43757@if target-libjava
43758maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 43759
4fa63067
NN
43760install-info-target-libjava: \
43761 configure-target-libjava \
43762 info-target-libjava
0aed8855 43763 @: $(MAKE); $(unstage)
22121df0 43764 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43765 r=`${PWD_COMMAND}`; export r; \
b40e3958 43766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43767 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43768 echo "Doing install-info in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43769 for flag in $(EXTRA_TARGET_FLAGS); do \
43770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43771 done; \
43772 (cd $(TARGET_SUBDIR)/libjava && \
43773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43775 "RANLIB=$${RANLIB}" \
0c24b341 43776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43777 install-info) \
4fa63067 43778 || exit 1
e393202e 43779
6bd3dfaa 43780@endif target-libjava
e393202e 43781
a3ca38d2
DD
43782.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
43783maybe-install-pdf-target-libjava:
43784@if target-libjava
43785maybe-install-pdf-target-libjava: install-pdf-target-libjava
43786
43787install-pdf-target-libjava: \
43788 configure-target-libjava \
43789 pdf-target-libjava
43790 @: $(MAKE); $(unstage)
22121df0 43791 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
a3ca38d2
DD
43792 r=`${PWD_COMMAND}`; export r; \
43793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43794 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43795 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava"; \
a3ca38d2
DD
43796 for flag in $(EXTRA_TARGET_FLAGS); do \
43797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43798 done; \
43799 (cd $(TARGET_SUBDIR)/libjava && \
43800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43802 "RANLIB=$${RANLIB}" \
0c24b341 43803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43804 install-pdf) \
43805 || exit 1
43806
43807@endif target-libjava
43808
108a6f8e
CD
43809.PHONY: maybe-install-html-target-libjava install-html-target-libjava
43810maybe-install-html-target-libjava:
43811@if target-libjava
43812maybe-install-html-target-libjava: install-html-target-libjava
43813
43814install-html-target-libjava: \
43815 configure-target-libjava \
43816 html-target-libjava
43817 @: $(MAKE); $(unstage)
22121df0 43818 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
108a6f8e
CD
43819 r=`${PWD_COMMAND}`; export r; \
43820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43821 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43822 echo "Doing install-html in $(TARGET_SUBDIR)/libjava"; \
108a6f8e
CD
43823 for flag in $(EXTRA_TARGET_FLAGS); do \
43824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43825 done; \
43826 (cd $(TARGET_SUBDIR)/libjava && \
43827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43829 "RANLIB=$${RANLIB}" \
0c24b341 43830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43831 install-html) \
43832 || exit 1
43833
43834@endif target-libjava
43835
4fa63067
NN
43836.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
43837maybe-installcheck-target-libjava:
6bd3dfaa
PB
43838@if target-libjava
43839maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 43840
4fa63067
NN
43841installcheck-target-libjava: \
43842 configure-target-libjava
0aed8855 43843 @: $(MAKE); $(unstage)
22121df0 43844 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43845 r=`${PWD_COMMAND}`; export r; \
43846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43847 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43848 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43849 for flag in $(EXTRA_TARGET_FLAGS); do \
43850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43851 done; \
43852 (cd $(TARGET_SUBDIR)/libjava && \
43853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43855 "RANLIB=$${RANLIB}" \
0c24b341 43856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43857 installcheck) \
4fa63067 43858 || exit 1
15723a45 43859
6bd3dfaa 43860@endif target-libjava
4fa63067
NN
43861
43862.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
43863maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
43864@if target-libjava
43865maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
43866
43867mostlyclean-target-libjava:
0aed8855 43868 @: $(MAKE); $(unstage)
22121df0 43869 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43870 r=`${PWD_COMMAND}`; export r; \
43871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43872 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43873 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43874 for flag in $(EXTRA_TARGET_FLAGS); do \
43875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43876 done; \
43877 (cd $(TARGET_SUBDIR)/libjava && \
43878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43880 "RANLIB=$${RANLIB}" \
0c24b341 43881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43882 mostlyclean) \
4fa63067
NN
43883 || exit 1
43884
6bd3dfaa 43885@endif target-libjava
4fa63067
NN
43886
43887.PHONY: maybe-clean-target-libjava clean-target-libjava
43888maybe-clean-target-libjava:
6bd3dfaa
PB
43889@if target-libjava
43890maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
43891
43892clean-target-libjava:
0aed8855 43893 @: $(MAKE); $(unstage)
22121df0 43894 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
b40e3958
L
43895 r=`${PWD_COMMAND}`; export r; \
43896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43897 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43898 echo "Doing clean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43899 for flag in $(EXTRA_TARGET_FLAGS); do \
43900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43901 done; \
43902 (cd $(TARGET_SUBDIR)/libjava && \
43903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43905 "RANLIB=$${RANLIB}" \
0c24b341 43906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43907 clean) \
bba45b8b 43908 || exit 1
e393202e 43909
6bd3dfaa 43910@endif target-libjava
e393202e 43911
4fa63067
NN
43912.PHONY: maybe-distclean-target-libjava distclean-target-libjava
43913maybe-distclean-target-libjava:
6bd3dfaa
PB
43914@if target-libjava
43915maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 43916
4fa63067 43917distclean-target-libjava:
0aed8855 43918 @: $(MAKE); $(unstage)
22121df0 43919 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43920 r=`${PWD_COMMAND}`; export r; \
43921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43922 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43923 echo "Doing distclean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43924 for flag in $(EXTRA_TARGET_FLAGS); do \
43925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43926 done; \
43927 (cd $(TARGET_SUBDIR)/libjava && \
43928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43930 "RANLIB=$${RANLIB}" \
0c24b341 43931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43932 distclean) \
4fa63067 43933 || exit 1
3866be5d 43934
6bd3dfaa 43935@endif target-libjava
930314a4 43936
4fa63067
NN
43937.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
43938maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
43939@if target-libjava
43940maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 43941
4fa63067 43942maintainer-clean-target-libjava:
0aed8855 43943 @: $(MAKE); $(unstage)
22121df0 43944 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43945 r=`${PWD_COMMAND}`; export r; \
b40e3958 43946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43947 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43948 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43949 for flag in $(EXTRA_TARGET_FLAGS); do \
43950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43951 done; \
43952 (cd $(TARGET_SUBDIR)/libjava && \
43953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43955 "RANLIB=$${RANLIB}" \
0c24b341 43956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43957 maintainer-clean) \
4fa63067 43958 || exit 1
e393202e 43959
6bd3dfaa 43960@endif target-libjava
e393202e 43961
4fa63067 43962
15723a45 43963
a7254363 43964
e90269c8 43965
a7254363
PB
43966.PHONY: configure-target-zlib maybe-configure-target-zlib
43967maybe-configure-target-zlib:
4f0ef2d8
CD
43968@if gcc-bootstrap
43969configure-target-zlib: stage_current
43970@endif gcc-bootstrap
a7254363
PB
43971@if target-zlib
43972maybe-configure-target-zlib: configure-target-zlib
c52c6897 43973configure-target-zlib:
0aed8855
PB
43974 @: $(MAKE); $(unstage)
43975 @r=`${PWD_COMMAND}`; export r; \
43976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43977 echo "Checking multilib configuration for zlib..."; \
22121df0
L
43978 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
43979 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
43980 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
43981 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
43982 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
43983 else \
43984 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
43985 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
43986 fi; \
43987 else \
43988 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
43989 fi; \
43990 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 43991 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 43992 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43993 echo Configuring in $(TARGET_SUBDIR)/zlib; \
43994 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 43995 case $(srcdir) in \
b00612cc
PB
43996 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43997 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
43998 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43999 esac; \
1b6c0831 44000 module_srcdir=zlib; \
bba45b8b 44001 rm -f no-such-file || : ; \
1b6c0831
L
44002 CONFIG_SITE=no-such-file $(SHELL) \
44003 $$s/$$module_srcdir/configure \
44004 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44005 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44006 --target=${target_alias} \
bba45b8b 44007 || exit 1
6bd3dfaa 44008@endif target-zlib
e393202e 44009
a7254363
PB
44010
44011
d545f33b
PB
44012
44013
4fa63067
NN
44014.PHONY: all-target-zlib maybe-all-target-zlib
44015maybe-all-target-zlib:
4f0ef2d8
CD
44016@if gcc-bootstrap
44017all-target-zlib: stage_current
44018@endif gcc-bootstrap
6bd3dfaa 44019@if target-zlib
72b2455a 44020TARGET-target-zlib=all
6bd3dfaa 44021maybe-all-target-zlib: all-target-zlib
4fa63067 44022all-target-zlib: configure-target-zlib
0aed8855 44023 @: $(MAKE); $(unstage)
b40e3958
L
44024 @r=`${PWD_COMMAND}`; export r; \
44025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44026 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44027 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 44028 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44029 $(TARGET-target-zlib))
6bd3dfaa 44030@endif target-zlib
e393202e 44031
a7254363
PB
44032
44033
d545f33b
PB
44034
44035
4fa63067
NN
44036.PHONY: check-target-zlib maybe-check-target-zlib
44037maybe-check-target-zlib:
6bd3dfaa
PB
44038@if target-zlib
44039maybe-check-target-zlib: check-target-zlib
16ae0395 44040
4fa63067 44041check-target-zlib:
0aed8855 44042 @: $(MAKE); $(unstage)
b40e3958
L
44043 @r=`${PWD_COMMAND}`; export r; \
44044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44045 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44046 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44047 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44048
6bd3dfaa 44049@endif target-zlib
930314a4 44050
4fa63067
NN
44051.PHONY: install-target-zlib maybe-install-target-zlib
44052maybe-install-target-zlib:
6bd3dfaa
PB
44053@if target-zlib
44054maybe-install-target-zlib: install-target-zlib
16ae0395 44055
4fa63067 44056install-target-zlib: installdirs
0aed8855 44057 @: $(MAKE); $(unstage)
b40e3958
L
44058 @r=`${PWD_COMMAND}`; export r; \
44059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44060 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44061 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44062 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44063
6bd3dfaa 44064@endif target-zlib
e393202e 44065
9b980aa1
RW
44066.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
44067maybe-install-strip-target-zlib:
44068@if target-zlib
44069maybe-install-strip-target-zlib: install-strip-target-zlib
44070
44071install-strip-target-zlib: installdirs
44072 @: $(MAKE); $(unstage)
44073 @r=`${PWD_COMMAND}`; export r; \
44074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44075 $(NORMAL_TARGET_EXPORTS) \
44076 (cd $(TARGET_SUBDIR)/zlib && \
44077 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44078
44079@endif target-zlib
44080
56a8fe78 44081# Other targets (info, dvi, pdf, etc.)
15723a45 44082
4fa63067
NN
44083.PHONY: maybe-info-target-zlib info-target-zlib
44084maybe-info-target-zlib:
6bd3dfaa
PB
44085@if target-zlib
44086maybe-info-target-zlib: info-target-zlib
15723a45 44087
4fa63067
NN
44088info-target-zlib: \
44089 configure-target-zlib
0aed8855 44090 @: $(MAKE); $(unstage)
22121df0 44091 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44092 r=`${PWD_COMMAND}`; export r; \
44093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44094 $(NORMAL_TARGET_EXPORTS) \
22121df0 44095 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44096 for flag in $(EXTRA_TARGET_FLAGS); do \
44097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44098 done; \
44099 (cd $(TARGET_SUBDIR)/zlib && \
44100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44102 "RANLIB=$${RANLIB}" \
0c24b341 44103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44104 info) \
bba45b8b 44105 || exit 1
e393202e 44106
6bd3dfaa 44107@endif target-zlib
e393202e 44108
4fa63067
NN
44109.PHONY: maybe-dvi-target-zlib dvi-target-zlib
44110maybe-dvi-target-zlib:
6bd3dfaa
PB
44111@if target-zlib
44112maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 44113
4fa63067
NN
44114dvi-target-zlib: \
44115 configure-target-zlib
0aed8855 44116 @: $(MAKE); $(unstage)
22121df0 44117 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44118 r=`${PWD_COMMAND}`; export r; \
b40e3958 44119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44120 $(NORMAL_TARGET_EXPORTS) \
22121df0 44121 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44122 for flag in $(EXTRA_TARGET_FLAGS); do \
44123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44124 done; \
44125 (cd $(TARGET_SUBDIR)/zlib && \
44126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44128 "RANLIB=$${RANLIB}" \
0c24b341 44129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44130 dvi) \
4fa63067 44131 || exit 1
e393202e 44132
6bd3dfaa 44133@endif target-zlib
930314a4 44134
56a8fe78
DD
44135.PHONY: maybe-pdf-target-zlib pdf-target-zlib
44136maybe-pdf-target-zlib:
44137@if target-zlib
44138maybe-pdf-target-zlib: pdf-target-zlib
44139
44140pdf-target-zlib: \
44141 configure-target-zlib
44142 @: $(MAKE); $(unstage)
22121df0 44143 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
44144 r=`${PWD_COMMAND}`; export r; \
44145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44146 $(NORMAL_TARGET_EXPORTS) \
22121df0 44147 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
44148 for flag in $(EXTRA_TARGET_FLAGS); do \
44149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44150 done; \
44151 (cd $(TARGET_SUBDIR)/zlib && \
44152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44154 "RANLIB=$${RANLIB}" \
0c24b341 44155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44156 pdf) \
44157 || exit 1
44158
44159@endif target-zlib
44160
6d389afc
MS
44161.PHONY: maybe-html-target-zlib html-target-zlib
44162maybe-html-target-zlib:
44163@if target-zlib
44164maybe-html-target-zlib: html-target-zlib
44165
44166html-target-zlib: \
44167 configure-target-zlib
0aed8855 44168 @: $(MAKE); $(unstage)
22121df0 44169 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
44170 r=`${PWD_COMMAND}`; export r; \
44171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44172 $(NORMAL_TARGET_EXPORTS) \
22121df0 44173 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
44174 for flag in $(EXTRA_TARGET_FLAGS); do \
44175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44176 done; \
44177 (cd $(TARGET_SUBDIR)/zlib && \
44178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44180 "RANLIB=$${RANLIB}" \
0c24b341 44181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44182 html) \
44183 || exit 1
44184
44185@endif target-zlib
44186
4fa63067
NN
44187.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
44188maybe-TAGS-target-zlib:
6bd3dfaa
PB
44189@if target-zlib
44190maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 44191
4fa63067
NN
44192TAGS-target-zlib: \
44193 configure-target-zlib
0aed8855 44194 @: $(MAKE); $(unstage)
22121df0 44195 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44196 r=`${PWD_COMMAND}`; export r; \
b40e3958 44197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44198 $(NORMAL_TARGET_EXPORTS) \
22121df0 44199 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44200 for flag in $(EXTRA_TARGET_FLAGS); do \
44201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44202 done; \
44203 (cd $(TARGET_SUBDIR)/zlib && \
44204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44206 "RANLIB=$${RANLIB}" \
0c24b341 44207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44208 TAGS) \
4fa63067 44209 || exit 1
e393202e 44210
6bd3dfaa 44211@endif target-zlib
15723a45 44212
4fa63067
NN
44213.PHONY: maybe-install-info-target-zlib install-info-target-zlib
44214maybe-install-info-target-zlib:
6bd3dfaa
PB
44215@if target-zlib
44216maybe-install-info-target-zlib: install-info-target-zlib
15723a45 44217
4fa63067
NN
44218install-info-target-zlib: \
44219 configure-target-zlib \
44220 info-target-zlib
0aed8855 44221 @: $(MAKE); $(unstage)
22121df0 44222 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44223 r=`${PWD_COMMAND}`; export r; \
44224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44225 $(NORMAL_TARGET_EXPORTS) \
22121df0 44226 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44227 for flag in $(EXTRA_TARGET_FLAGS); do \
44228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44229 done; \
44230 (cd $(TARGET_SUBDIR)/zlib && \
44231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44233 "RANLIB=$${RANLIB}" \
0c24b341 44234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44235 install-info) \
bba45b8b 44236 || exit 1
e393202e 44237
6bd3dfaa 44238@endif target-zlib
16ae0395 44239
a3ca38d2
DD
44240.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
44241maybe-install-pdf-target-zlib:
44242@if target-zlib
44243maybe-install-pdf-target-zlib: install-pdf-target-zlib
44244
44245install-pdf-target-zlib: \
44246 configure-target-zlib \
44247 pdf-target-zlib
44248 @: $(MAKE); $(unstage)
22121df0 44249 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
44250 r=`${PWD_COMMAND}`; export r; \
44251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44252 $(NORMAL_TARGET_EXPORTS) \
22121df0 44253 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
44254 for flag in $(EXTRA_TARGET_FLAGS); do \
44255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44256 done; \
44257 (cd $(TARGET_SUBDIR)/zlib && \
44258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44260 "RANLIB=$${RANLIB}" \
0c24b341 44261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44262 install-pdf) \
44263 || exit 1
44264
44265@endif target-zlib
44266
108a6f8e
CD
44267.PHONY: maybe-install-html-target-zlib install-html-target-zlib
44268maybe-install-html-target-zlib:
44269@if target-zlib
44270maybe-install-html-target-zlib: install-html-target-zlib
44271
44272install-html-target-zlib: \
44273 configure-target-zlib \
44274 html-target-zlib
44275 @: $(MAKE); $(unstage)
22121df0 44276 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
44277 r=`${PWD_COMMAND}`; export r; \
44278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44279 $(NORMAL_TARGET_EXPORTS) \
22121df0 44280 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
44281 for flag in $(EXTRA_TARGET_FLAGS); do \
44282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44283 done; \
44284 (cd $(TARGET_SUBDIR)/zlib && \
44285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44287 "RANLIB=$${RANLIB}" \
0c24b341 44288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44289 install-html) \
44290 || exit 1
44291
44292@endif target-zlib
44293
4fa63067
NN
44294.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
44295maybe-installcheck-target-zlib:
6bd3dfaa
PB
44296@if target-zlib
44297maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 44298
4fa63067
NN
44299installcheck-target-zlib: \
44300 configure-target-zlib
0aed8855 44301 @: $(MAKE); $(unstage)
22121df0 44302 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44303 r=`${PWD_COMMAND}`; export r; \
44304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44305 $(NORMAL_TARGET_EXPORTS) \
22121df0 44306 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44307 for flag in $(EXTRA_TARGET_FLAGS); do \
44308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44309 done; \
44310 (cd $(TARGET_SUBDIR)/zlib && \
44311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44313 "RANLIB=$${RANLIB}" \
0c24b341 44314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44315 installcheck) \
4fa63067 44316 || exit 1
e393202e 44317
6bd3dfaa 44318@endif target-zlib
16ae0395 44319
4fa63067
NN
44320.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
44321maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
44322@if target-zlib
44323maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 44324
4fa63067 44325mostlyclean-target-zlib:
0aed8855 44326 @: $(MAKE); $(unstage)
22121df0 44327 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44328 r=`${PWD_COMMAND}`; export r; \
44329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44330 $(NORMAL_TARGET_EXPORTS) \
22121df0 44331 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44332 for flag in $(EXTRA_TARGET_FLAGS); do \
44333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44334 done; \
44335 (cd $(TARGET_SUBDIR)/zlib && \
44336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44338 "RANLIB=$${RANLIB}" \
0c24b341 44339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44340 mostlyclean) \
4fa63067 44341 || exit 1
e393202e 44342
6bd3dfaa 44343@endif target-zlib
15723a45 44344
4fa63067
NN
44345.PHONY: maybe-clean-target-zlib clean-target-zlib
44346maybe-clean-target-zlib:
6bd3dfaa
PB
44347@if target-zlib
44348maybe-clean-target-zlib: clean-target-zlib
15723a45 44349
4fa63067 44350clean-target-zlib:
0aed8855 44351 @: $(MAKE); $(unstage)
22121df0 44352 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44353 r=`${PWD_COMMAND}`; export r; \
44354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44355 $(NORMAL_TARGET_EXPORTS) \
22121df0 44356 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44357 for flag in $(EXTRA_TARGET_FLAGS); do \
44358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44359 done; \
44360 (cd $(TARGET_SUBDIR)/zlib && \
44361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44363 "RANLIB=$${RANLIB}" \
0c24b341 44364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44365 clean) \
bba45b8b 44366 || exit 1
e393202e 44367
6bd3dfaa 44368@endif target-zlib
e393202e 44369
4fa63067
NN
44370.PHONY: maybe-distclean-target-zlib distclean-target-zlib
44371maybe-distclean-target-zlib:
6bd3dfaa
PB
44372@if target-zlib
44373maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 44374
4fa63067 44375distclean-target-zlib:
0aed8855 44376 @: $(MAKE); $(unstage)
22121df0 44377 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44378 r=`${PWD_COMMAND}`; export r; \
b40e3958 44379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44380 $(NORMAL_TARGET_EXPORTS) \
22121df0 44381 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44382 for flag in $(EXTRA_TARGET_FLAGS); do \
44383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44384 done; \
44385 (cd $(TARGET_SUBDIR)/zlib && \
44386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44388 "RANLIB=$${RANLIB}" \
0c24b341 44389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44390 distclean) \
4fa63067 44391 || exit 1
e393202e 44392
6bd3dfaa 44393@endif target-zlib
e393202e 44394
4fa63067
NN
44395.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
44396maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
44397@if target-zlib
44398maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 44399
4fa63067 44400maintainer-clean-target-zlib:
0aed8855 44401 @: $(MAKE); $(unstage)
22121df0 44402 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44403 r=`${PWD_COMMAND}`; export r; \
b40e3958 44404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44405 $(NORMAL_TARGET_EXPORTS) \
22121df0 44406 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44407 for flag in $(EXTRA_TARGET_FLAGS); do \
44408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44409 done; \
44410 (cd $(TARGET_SUBDIR)/zlib && \
44411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44413 "RANLIB=$${RANLIB}" \
0c24b341 44414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44415 maintainer-clean) \
4fa63067 44416 || exit 1
e393202e 44417
6bd3dfaa 44418@endif target-zlib
930314a4 44419
4fa63067 44420
15723a45 44421
a7254363 44422
e90269c8 44423
a7254363
PB
44424.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
44425maybe-configure-target-boehm-gc:
4f0ef2d8
CD
44426@if gcc-bootstrap
44427configure-target-boehm-gc: stage_current
44428@endif gcc-bootstrap
a7254363
PB
44429@if target-boehm-gc
44430maybe-configure-target-boehm-gc: configure-target-boehm-gc
c52c6897 44431configure-target-boehm-gc:
0aed8855
PB
44432 @: $(MAKE); $(unstage)
44433 @r=`${PWD_COMMAND}`; export r; \
44434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44435 echo "Checking multilib configuration for boehm-gc..."; \
22121df0
L
44436 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc; \
44437 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null; \
0aed8855
PB
44438 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44439 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44440 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
44441 else \
44442 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
44443 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
44444 fi; \
44445 else \
44446 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
c52c6897
PB
44447 fi; \
44448 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
22121df0 44449 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc; \
1f53ca9a 44450 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44451 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
44452 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b 44453 case $(srcdir) in \
b00612cc
PB
44454 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44455 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
44456 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44457 esac; \
1b6c0831 44458 module_srcdir=boehm-gc; \
bba45b8b 44459 rm -f no-such-file || : ; \
1b6c0831
L
44460 CONFIG_SITE=no-such-file $(SHELL) \
44461 $$s/$$module_srcdir/configure \
44462 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44463 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44464 --target=${target_alias} \
bba45b8b 44465 || exit 1
6bd3dfaa 44466@endif target-boehm-gc
e393202e 44467
a7254363
PB
44468
44469
d545f33b
PB
44470
44471
4fa63067
NN
44472.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
44473maybe-all-target-boehm-gc:
4f0ef2d8
CD
44474@if gcc-bootstrap
44475all-target-boehm-gc: stage_current
44476@endif gcc-bootstrap
6bd3dfaa 44477@if target-boehm-gc
72b2455a 44478TARGET-target-boehm-gc=all
6bd3dfaa 44479maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 44480all-target-boehm-gc: configure-target-boehm-gc
0aed8855 44481 @: $(MAKE); $(unstage)
b40e3958
L
44482 @r=`${PWD_COMMAND}`; export r; \
44483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44484 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44485 (cd $(TARGET_SUBDIR)/boehm-gc && \
b3676d82 44486 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44487 $(TARGET-target-boehm-gc))
6bd3dfaa 44488@endif target-boehm-gc
e393202e 44489
a7254363
PB
44490
44491
d545f33b
PB
44492
44493
4fa63067
NN
44494.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
44495maybe-check-target-boehm-gc:
6bd3dfaa
PB
44496@if target-boehm-gc
44497maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 44498
4fa63067 44499check-target-boehm-gc:
0aed8855 44500 @: $(MAKE); $(unstage)
b40e3958
L
44501 @r=`${PWD_COMMAND}`; export r; \
44502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44503 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44504 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44505 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44506
6bd3dfaa 44507@endif target-boehm-gc
930314a4 44508
4fa63067
NN
44509.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
44510maybe-install-target-boehm-gc:
6bd3dfaa
PB
44511@if target-boehm-gc
44512maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 44513
4fa63067 44514install-target-boehm-gc: installdirs
0aed8855 44515 @: $(MAKE); $(unstage)
b40e3958
L
44516 @r=`${PWD_COMMAND}`; export r; \
44517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44518 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44519 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44520 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44521
6bd3dfaa 44522@endif target-boehm-gc
e393202e 44523
9b980aa1
RW
44524.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
44525maybe-install-strip-target-boehm-gc:
44526@if target-boehm-gc
44527maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
44528
44529install-strip-target-boehm-gc: installdirs
44530 @: $(MAKE); $(unstage)
44531 @r=`${PWD_COMMAND}`; export r; \
44532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44533 $(NORMAL_TARGET_EXPORTS) \
44534 (cd $(TARGET_SUBDIR)/boehm-gc && \
44535 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44536
44537@endif target-boehm-gc
44538
56a8fe78 44539# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44540
44541.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
44542maybe-info-target-boehm-gc:
6bd3dfaa
PB
44543@if target-boehm-gc
44544maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
44545
44546info-target-boehm-gc: \
44547 configure-target-boehm-gc
0aed8855 44548 @: $(MAKE); $(unstage)
22121df0 44549 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44550 r=`${PWD_COMMAND}`; export r; \
44551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44552 $(NORMAL_TARGET_EXPORTS) \
22121df0 44553 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44554 for flag in $(EXTRA_TARGET_FLAGS); do \
44555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44556 done; \
44557 (cd $(TARGET_SUBDIR)/boehm-gc && \
44558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44560 "RANLIB=$${RANLIB}" \
0c24b341 44561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44562 info) \
4fa63067
NN
44563 || exit 1
44564
6bd3dfaa 44565@endif target-boehm-gc
4fa63067
NN
44566
44567.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
44568maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
44569@if target-boehm-gc
44570maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
44571
44572dvi-target-boehm-gc: \
44573 configure-target-boehm-gc
0aed8855 44574 @: $(MAKE); $(unstage)
22121df0 44575 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44576 r=`${PWD_COMMAND}`; export r; \
44577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44578 $(NORMAL_TARGET_EXPORTS) \
22121df0 44579 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44580 for flag in $(EXTRA_TARGET_FLAGS); do \
44581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44582 done; \
44583 (cd $(TARGET_SUBDIR)/boehm-gc && \
44584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44586 "RANLIB=$${RANLIB}" \
0c24b341 44587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44588 dvi) \
4fa63067
NN
44589 || exit 1
44590
6bd3dfaa 44591@endif target-boehm-gc
4fa63067 44592
56a8fe78
DD
44593.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
44594maybe-pdf-target-boehm-gc:
44595@if target-boehm-gc
44596maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
44597
44598pdf-target-boehm-gc: \
44599 configure-target-boehm-gc
44600 @: $(MAKE); $(unstage)
22121df0 44601 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
56a8fe78
DD
44602 r=`${PWD_COMMAND}`; export r; \
44603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44604 $(NORMAL_TARGET_EXPORTS) \
22121df0 44605 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc"; \
56a8fe78
DD
44606 for flag in $(EXTRA_TARGET_FLAGS); do \
44607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44608 done; \
44609 (cd $(TARGET_SUBDIR)/boehm-gc && \
44610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44612 "RANLIB=$${RANLIB}" \
0c24b341 44613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44614 pdf) \
44615 || exit 1
44616
44617@endif target-boehm-gc
44618
6d389afc
MS
44619.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
44620maybe-html-target-boehm-gc:
44621@if target-boehm-gc
44622maybe-html-target-boehm-gc: html-target-boehm-gc
44623
44624html-target-boehm-gc: \
44625 configure-target-boehm-gc
0aed8855 44626 @: $(MAKE); $(unstage)
22121df0 44627 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
6d389afc
MS
44628 r=`${PWD_COMMAND}`; export r; \
44629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44630 $(NORMAL_TARGET_EXPORTS) \
22121df0 44631 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc"; \
6d389afc
MS
44632 for flag in $(EXTRA_TARGET_FLAGS); do \
44633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44634 done; \
44635 (cd $(TARGET_SUBDIR)/boehm-gc && \
44636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44638 "RANLIB=$${RANLIB}" \
0c24b341 44639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44640 html) \
44641 || exit 1
44642
44643@endif target-boehm-gc
44644
4fa63067
NN
44645.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
44646maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
44647@if target-boehm-gc
44648maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
44649
44650TAGS-target-boehm-gc: \
44651 configure-target-boehm-gc
0aed8855 44652 @: $(MAKE); $(unstage)
22121df0 44653 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44654 r=`${PWD_COMMAND}`; export r; \
44655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44656 $(NORMAL_TARGET_EXPORTS) \
22121df0 44657 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44658 for flag in $(EXTRA_TARGET_FLAGS); do \
44659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44660 done; \
44661 (cd $(TARGET_SUBDIR)/boehm-gc && \
44662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44664 "RANLIB=$${RANLIB}" \
0c24b341 44665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44666 TAGS) \
4fa63067
NN
44667 || exit 1
44668
6bd3dfaa 44669@endif target-boehm-gc
4fa63067
NN
44670
44671.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
44672maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
44673@if target-boehm-gc
44674maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
44675
44676install-info-target-boehm-gc: \
44677 configure-target-boehm-gc \
44678 info-target-boehm-gc
0aed8855 44679 @: $(MAKE); $(unstage)
22121df0 44680 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44681 r=`${PWD_COMMAND}`; export r; \
44682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44683 $(NORMAL_TARGET_EXPORTS) \
22121df0 44684 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44685 for flag in $(EXTRA_TARGET_FLAGS); do \
44686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44687 done; \
44688 (cd $(TARGET_SUBDIR)/boehm-gc && \
44689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44691 "RANLIB=$${RANLIB}" \
0c24b341 44692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44693 install-info) \
4fa63067
NN
44694 || exit 1
44695
6bd3dfaa 44696@endif target-boehm-gc
4fa63067 44697
a3ca38d2
DD
44698.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
44699maybe-install-pdf-target-boehm-gc:
44700@if target-boehm-gc
44701maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
44702
44703install-pdf-target-boehm-gc: \
44704 configure-target-boehm-gc \
44705 pdf-target-boehm-gc
44706 @: $(MAKE); $(unstage)
22121df0 44707 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
a3ca38d2
DD
44708 r=`${PWD_COMMAND}`; export r; \
44709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44710 $(NORMAL_TARGET_EXPORTS) \
22121df0 44711 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc"; \
a3ca38d2
DD
44712 for flag in $(EXTRA_TARGET_FLAGS); do \
44713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44714 done; \
44715 (cd $(TARGET_SUBDIR)/boehm-gc && \
44716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44718 "RANLIB=$${RANLIB}" \
0c24b341 44719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44720 install-pdf) \
44721 || exit 1
44722
44723@endif target-boehm-gc
44724
108a6f8e
CD
44725.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
44726maybe-install-html-target-boehm-gc:
44727@if target-boehm-gc
44728maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
44729
44730install-html-target-boehm-gc: \
44731 configure-target-boehm-gc \
44732 html-target-boehm-gc
44733 @: $(MAKE); $(unstage)
22121df0 44734 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
108a6f8e
CD
44735 r=`${PWD_COMMAND}`; export r; \
44736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44737 $(NORMAL_TARGET_EXPORTS) \
22121df0 44738 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc"; \
108a6f8e
CD
44739 for flag in $(EXTRA_TARGET_FLAGS); do \
44740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44741 done; \
44742 (cd $(TARGET_SUBDIR)/boehm-gc && \
44743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44745 "RANLIB=$${RANLIB}" \
0c24b341 44746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44747 install-html) \
44748 || exit 1
44749
44750@endif target-boehm-gc
44751
4fa63067
NN
44752.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
44753maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
44754@if target-boehm-gc
44755maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
44756
44757installcheck-target-boehm-gc: \
44758 configure-target-boehm-gc
0aed8855 44759 @: $(MAKE); $(unstage)
22121df0 44760 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44761 r=`${PWD_COMMAND}`; export r; \
44762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44763 $(NORMAL_TARGET_EXPORTS) \
22121df0 44764 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44765 for flag in $(EXTRA_TARGET_FLAGS); do \
44766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44767 done; \
44768 (cd $(TARGET_SUBDIR)/boehm-gc && \
44769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44771 "RANLIB=$${RANLIB}" \
0c24b341 44772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44773 installcheck) \
4fa63067
NN
44774 || exit 1
44775
6bd3dfaa 44776@endif target-boehm-gc
4fa63067
NN
44777
44778.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
44779maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
44780@if target-boehm-gc
44781maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
44782
44783mostlyclean-target-boehm-gc:
0aed8855 44784 @: $(MAKE); $(unstage)
22121df0 44785 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44786 r=`${PWD_COMMAND}`; export r; \
44787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44788 $(NORMAL_TARGET_EXPORTS) \
22121df0 44789 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44790 for flag in $(EXTRA_TARGET_FLAGS); do \
44791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44792 done; \
44793 (cd $(TARGET_SUBDIR)/boehm-gc && \
44794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44796 "RANLIB=$${RANLIB}" \
0c24b341 44797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44798 mostlyclean) \
4fa63067
NN
44799 || exit 1
44800
6bd3dfaa 44801@endif target-boehm-gc
4fa63067
NN
44802
44803.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
44804maybe-clean-target-boehm-gc:
6bd3dfaa
PB
44805@if target-boehm-gc
44806maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
44807
44808clean-target-boehm-gc:
0aed8855 44809 @: $(MAKE); $(unstage)
22121df0 44810 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44811 r=`${PWD_COMMAND}`; export r; \
44812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44813 $(NORMAL_TARGET_EXPORTS) \
22121df0 44814 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44815 for flag in $(EXTRA_TARGET_FLAGS); do \
44816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44817 done; \
44818 (cd $(TARGET_SUBDIR)/boehm-gc && \
44819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44821 "RANLIB=$${RANLIB}" \
0c24b341 44822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44823 clean) \
4fa63067
NN
44824 || exit 1
44825
6bd3dfaa 44826@endif target-boehm-gc
4fa63067
NN
44827
44828.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
44829maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
44830@if target-boehm-gc
44831maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
44832
44833distclean-target-boehm-gc:
0aed8855 44834 @: $(MAKE); $(unstage)
22121df0 44835 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44836 r=`${PWD_COMMAND}`; export r; \
44837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44838 $(NORMAL_TARGET_EXPORTS) \
22121df0 44839 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44840 for flag in $(EXTRA_TARGET_FLAGS); do \
44841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44842 done; \
44843 (cd $(TARGET_SUBDIR)/boehm-gc && \
44844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44846 "RANLIB=$${RANLIB}" \
0c24b341 44847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44848 distclean) \
4fa63067
NN
44849 || exit 1
44850
6bd3dfaa 44851@endif target-boehm-gc
4fa63067
NN
44852
44853.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
44854maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
44855@if target-boehm-gc
44856maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
44857
44858maintainer-clean-target-boehm-gc:
0aed8855 44859 @: $(MAKE); $(unstage)
22121df0 44860 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44861 r=`${PWD_COMMAND}`; export r; \
44862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44863 $(NORMAL_TARGET_EXPORTS) \
22121df0 44864 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44865 for flag in $(EXTRA_TARGET_FLAGS); do \
44866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44867 done; \
44868 (cd $(TARGET_SUBDIR)/boehm-gc && \
44869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44871 "RANLIB=$${RANLIB}" \
0c24b341 44872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44873 maintainer-clean) \
4fa63067
NN
44874 || exit 1
44875
6bd3dfaa 44876@endif target-boehm-gc
4fa63067
NN
44877
44878
15723a45 44879
15723a45 44880
a7254363 44881
a7254363
PB
44882.PHONY: configure-target-rda maybe-configure-target-rda
44883maybe-configure-target-rda:
4f0ef2d8
CD
44884@if gcc-bootstrap
44885configure-target-rda: stage_current
44886@endif gcc-bootstrap
a7254363
PB
44887@if target-rda
44888maybe-configure-target-rda: configure-target-rda
c52c6897 44889configure-target-rda:
0aed8855
PB
44890 @: $(MAKE); $(unstage)
44891 @r=`${PWD_COMMAND}`; export r; \
44892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44893 echo "Checking multilib configuration for rda..."; \
22121df0
L
44894 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
44895 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
44896 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
44897 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
44898 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
44899 else \
44900 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
44901 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
44902 fi; \
44903 else \
44904 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
44905 fi; \
44906 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 44907 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 44908 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44909 echo Configuring in $(TARGET_SUBDIR)/rda; \
44910 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 44911 case $(srcdir) in \
b00612cc
PB
44912 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44913 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
44914 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44915 esac; \
1b6c0831 44916 module_srcdir=rda; \
bba45b8b 44917 rm -f no-such-file || : ; \
1b6c0831
L
44918 CONFIG_SITE=no-such-file $(SHELL) \
44919 $$s/$$module_srcdir/configure \
44920 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44921 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44922 --target=${target_alias} \
bba45b8b 44923 || exit 1
6bd3dfaa 44924@endif target-rda
49b7683b 44925
a7254363
PB
44926
44927
d545f33b
PB
44928
44929
4fa63067
NN
44930.PHONY: all-target-rda maybe-all-target-rda
44931maybe-all-target-rda:
4f0ef2d8
CD
44932@if gcc-bootstrap
44933all-target-rda: stage_current
44934@endif gcc-bootstrap
6bd3dfaa 44935@if target-rda
72b2455a 44936TARGET-target-rda=all
6bd3dfaa 44937maybe-all-target-rda: all-target-rda
4fa63067 44938all-target-rda: configure-target-rda
0aed8855 44939 @: $(MAKE); $(unstage)
b40e3958
L
44940 @r=`${PWD_COMMAND}`; export r; \
44941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44942 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44943 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 44944 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44945 $(TARGET-target-rda))
6bd3dfaa 44946@endif target-rda
252b5132 44947
a7254363
PB
44948
44949
d545f33b
PB
44950
44951
4fa63067
NN
44952.PHONY: check-target-rda maybe-check-target-rda
44953maybe-check-target-rda:
6bd3dfaa
PB
44954@if target-rda
44955maybe-check-target-rda: check-target-rda
16ae0395 44956
4fa63067 44957check-target-rda:
0aed8855 44958 @: $(MAKE); $(unstage)
b40e3958
L
44959 @r=`${PWD_COMMAND}`; export r; \
44960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44961 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44962 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44963 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 44964
6bd3dfaa 44965@endif target-rda
930314a4 44966
4fa63067
NN
44967.PHONY: install-target-rda maybe-install-target-rda
44968maybe-install-target-rda:
6bd3dfaa
PB
44969@if target-rda
44970maybe-install-target-rda: install-target-rda
16ae0395 44971
4fa63067 44972install-target-rda: installdirs
0aed8855 44973 @: $(MAKE); $(unstage)
b40e3958
L
44974 @r=`${PWD_COMMAND}`; export r; \
44975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44976 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44977 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44978 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44979
6bd3dfaa 44980@endif target-rda
e393202e 44981
9b980aa1
RW
44982.PHONY: install-strip-target-rda maybe-install-strip-target-rda
44983maybe-install-strip-target-rda:
44984@if target-rda
44985maybe-install-strip-target-rda: install-strip-target-rda
44986
44987install-strip-target-rda: installdirs
44988 @: $(MAKE); $(unstage)
44989 @r=`${PWD_COMMAND}`; export r; \
44990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44991 $(NORMAL_TARGET_EXPORTS) \
44992 (cd $(TARGET_SUBDIR)/rda && \
44993 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44994
44995@endif target-rda
44996
56a8fe78 44997# Other targets (info, dvi, pdf, etc.)
15723a45 44998
4fa63067
NN
44999.PHONY: maybe-info-target-rda info-target-rda
45000maybe-info-target-rda:
6bd3dfaa
PB
45001@if target-rda
45002maybe-info-target-rda: info-target-rda
15723a45 45003
4fa63067
NN
45004info-target-rda: \
45005 configure-target-rda
0aed8855 45006 @: $(MAKE); $(unstage)
22121df0 45007 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45008 r=`${PWD_COMMAND}`; export r; \
45009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45010 $(NORMAL_TARGET_EXPORTS) \
22121df0 45011 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45012 for flag in $(EXTRA_TARGET_FLAGS); do \
45013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45014 done; \
45015 (cd $(TARGET_SUBDIR)/rda && \
45016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45018 "RANLIB=$${RANLIB}" \
0c24b341 45019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45020 info) \
bba45b8b 45021 || exit 1
252b5132 45022
6bd3dfaa 45023@endif target-rda
4fa63067
NN
45024
45025.PHONY: maybe-dvi-target-rda dvi-target-rda
45026maybe-dvi-target-rda:
6bd3dfaa
PB
45027@if target-rda
45028maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
45029
45030dvi-target-rda: \
45031 configure-target-rda
0aed8855 45032 @: $(MAKE); $(unstage)
22121df0 45033 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45034 r=`${PWD_COMMAND}`; export r; \
b40e3958 45035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45036 $(NORMAL_TARGET_EXPORTS) \
22121df0 45037 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45038 for flag in $(EXTRA_TARGET_FLAGS); do \
45039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45040 done; \
45041 (cd $(TARGET_SUBDIR)/rda && \
45042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45044 "RANLIB=$${RANLIB}" \
0c24b341 45045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45046 dvi) \
4fa63067 45047 || exit 1
252b5132 45048
6bd3dfaa 45049@endif target-rda
16ae0395 45050
56a8fe78
DD
45051.PHONY: maybe-pdf-target-rda pdf-target-rda
45052maybe-pdf-target-rda:
45053@if target-rda
45054maybe-pdf-target-rda: pdf-target-rda
45055
45056pdf-target-rda: \
45057 configure-target-rda
45058 @: $(MAKE); $(unstage)
22121df0 45059 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
45060 r=`${PWD_COMMAND}`; export r; \
45061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45062 $(NORMAL_TARGET_EXPORTS) \
22121df0 45063 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
45064 for flag in $(EXTRA_TARGET_FLAGS); do \
45065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45066 done; \
45067 (cd $(TARGET_SUBDIR)/rda && \
45068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45070 "RANLIB=$${RANLIB}" \
0c24b341 45071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45072 pdf) \
45073 || exit 1
45074
45075@endif target-rda
45076
6d389afc
MS
45077.PHONY: maybe-html-target-rda html-target-rda
45078maybe-html-target-rda:
45079@if target-rda
45080maybe-html-target-rda: html-target-rda
45081
45082html-target-rda: \
45083 configure-target-rda
0aed8855 45084 @: $(MAKE); $(unstage)
22121df0 45085 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
45086 r=`${PWD_COMMAND}`; export r; \
45087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45088 $(NORMAL_TARGET_EXPORTS) \
22121df0 45089 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
45090 for flag in $(EXTRA_TARGET_FLAGS); do \
45091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45092 done; \
45093 (cd $(TARGET_SUBDIR)/rda && \
45094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45096 "RANLIB=$${RANLIB}" \
0c24b341 45097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45098 html) \
45099 || exit 1
45100
45101@endif target-rda
45102
4fa63067
NN
45103.PHONY: maybe-TAGS-target-rda TAGS-target-rda
45104maybe-TAGS-target-rda:
6bd3dfaa
PB
45105@if target-rda
45106maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
45107
45108TAGS-target-rda: \
45109 configure-target-rda
0aed8855 45110 @: $(MAKE); $(unstage)
22121df0 45111 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45112 r=`${PWD_COMMAND}`; export r; \
b40e3958 45113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45114 $(NORMAL_TARGET_EXPORTS) \
22121df0 45115 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45116 for flag in $(EXTRA_TARGET_FLAGS); do \
45117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45118 done; \
45119 (cd $(TARGET_SUBDIR)/rda && \
45120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45122 "RANLIB=$${RANLIB}" \
0c24b341 45123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45124 TAGS) \
4fa63067 45125 || exit 1
e393202e 45126
6bd3dfaa 45127@endif target-rda
930314a4 45128
4fa63067
NN
45129.PHONY: maybe-install-info-target-rda install-info-target-rda
45130maybe-install-info-target-rda:
6bd3dfaa
PB
45131@if target-rda
45132maybe-install-info-target-rda: install-info-target-rda
16ae0395 45133
4fa63067
NN
45134install-info-target-rda: \
45135 configure-target-rda \
45136 info-target-rda
0aed8855 45137 @: $(MAKE); $(unstage)
22121df0 45138 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45139 r=`${PWD_COMMAND}`; export r; \
b40e3958 45140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45141 $(NORMAL_TARGET_EXPORTS) \
22121df0 45142 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45143 for flag in $(EXTRA_TARGET_FLAGS); do \
45144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45145 done; \
45146 (cd $(TARGET_SUBDIR)/rda && \
45147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45149 "RANLIB=$${RANLIB}" \
0c24b341 45150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45151 install-info) \
4fa63067 45152 || exit 1
252b5132 45153
6bd3dfaa 45154@endif target-rda
e393202e 45155
a3ca38d2
DD
45156.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
45157maybe-install-pdf-target-rda:
45158@if target-rda
45159maybe-install-pdf-target-rda: install-pdf-target-rda
45160
45161install-pdf-target-rda: \
45162 configure-target-rda \
45163 pdf-target-rda
45164 @: $(MAKE); $(unstage)
22121df0 45165 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
45166 r=`${PWD_COMMAND}`; export r; \
45167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45168 $(NORMAL_TARGET_EXPORTS) \
22121df0 45169 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
45170 for flag in $(EXTRA_TARGET_FLAGS); do \
45171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45172 done; \
45173 (cd $(TARGET_SUBDIR)/rda && \
45174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45176 "RANLIB=$${RANLIB}" \
0c24b341 45177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45178 install-pdf) \
45179 || exit 1
45180
45181@endif target-rda
45182
108a6f8e
CD
45183.PHONY: maybe-install-html-target-rda install-html-target-rda
45184maybe-install-html-target-rda:
45185@if target-rda
45186maybe-install-html-target-rda: install-html-target-rda
45187
45188install-html-target-rda: \
45189 configure-target-rda \
45190 html-target-rda
45191 @: $(MAKE); $(unstage)
22121df0 45192 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
45193 r=`${PWD_COMMAND}`; export r; \
45194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45195 $(NORMAL_TARGET_EXPORTS) \
22121df0 45196 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
45197 for flag in $(EXTRA_TARGET_FLAGS); do \
45198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45199 done; \
45200 (cd $(TARGET_SUBDIR)/rda && \
45201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45203 "RANLIB=$${RANLIB}" \
0c24b341 45204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45205 install-html) \
45206 || exit 1
45207
45208@endif target-rda
45209
4fa63067
NN
45210.PHONY: maybe-installcheck-target-rda installcheck-target-rda
45211maybe-installcheck-target-rda:
6bd3dfaa
PB
45212@if target-rda
45213maybe-installcheck-target-rda: installcheck-target-rda
15723a45 45214
4fa63067
NN
45215installcheck-target-rda: \
45216 configure-target-rda
0aed8855 45217 @: $(MAKE); $(unstage)
22121df0 45218 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
45219 r=`${PWD_COMMAND}`; export r; \
45220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45221 $(NORMAL_TARGET_EXPORTS) \
22121df0 45222 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45223 for flag in $(EXTRA_TARGET_FLAGS); do \
45224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45225 done; \
45226 (cd $(TARGET_SUBDIR)/rda && \
45227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45229 "RANLIB=$${RANLIB}" \
0c24b341 45230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45231 installcheck) \
4fa63067 45232 || exit 1
15723a45 45233
6bd3dfaa 45234@endif target-rda
4fa63067
NN
45235
45236.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
45237maybe-mostlyclean-target-rda:
6bd3dfaa
PB
45238@if target-rda
45239maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
45240
45241mostlyclean-target-rda:
0aed8855 45242 @: $(MAKE); $(unstage)
22121df0 45243 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45244 r=`${PWD_COMMAND}`; export r; \
45245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45246 $(NORMAL_TARGET_EXPORTS) \
22121df0 45247 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45248 for flag in $(EXTRA_TARGET_FLAGS); do \
45249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45250 done; \
45251 (cd $(TARGET_SUBDIR)/rda && \
45252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45254 "RANLIB=$${RANLIB}" \
0c24b341 45255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45256 mostlyclean) \
bba45b8b 45257 || exit 1
252b5132 45258
6bd3dfaa 45259@endif target-rda
4fa63067
NN
45260
45261.PHONY: maybe-clean-target-rda clean-target-rda
45262maybe-clean-target-rda:
6bd3dfaa
PB
45263@if target-rda
45264maybe-clean-target-rda: clean-target-rda
4fa63067
NN
45265
45266clean-target-rda:
0aed8855 45267 @: $(MAKE); $(unstage)
22121df0 45268 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45269 r=`${PWD_COMMAND}`; export r; \
b40e3958 45270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45271 $(NORMAL_TARGET_EXPORTS) \
22121df0 45272 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45273 for flag in $(EXTRA_TARGET_FLAGS); do \
45274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45275 done; \
bba45b8b 45276 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45279 "RANLIB=$${RANLIB}" \
0c24b341 45280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45281 clean) \
4fa63067 45282 || exit 1
252b5132 45283
6bd3dfaa 45284@endif target-rda
16ae0395 45285
4fa63067
NN
45286.PHONY: maybe-distclean-target-rda distclean-target-rda
45287maybe-distclean-target-rda:
6bd3dfaa
PB
45288@if target-rda
45289maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
45290
45291distclean-target-rda:
0aed8855 45292 @: $(MAKE); $(unstage)
22121df0 45293 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45294 r=`${PWD_COMMAND}`; export r; \
b40e3958 45295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45296 $(NORMAL_TARGET_EXPORTS) \
22121df0 45297 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45298 for flag in $(EXTRA_TARGET_FLAGS); do \
45299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45300 done; \
bba45b8b 45301 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45304 "RANLIB=$${RANLIB}" \
0c24b341 45305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45306 distclean) \
4fa63067 45307 || exit 1
252b5132 45308
6bd3dfaa 45309@endif target-rda
930314a4 45310
4fa63067
NN
45311.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
45312maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
45313@if target-rda
45314maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 45315
4fa63067 45316maintainer-clean-target-rda:
0aed8855 45317 @: $(MAKE); $(unstage)
22121df0 45318 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45319 r=`${PWD_COMMAND}`; export r; \
b40e3958 45320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45321 $(NORMAL_TARGET_EXPORTS) \
22121df0 45322 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45323 for flag in $(EXTRA_TARGET_FLAGS); do \
45324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45325 done; \
bba45b8b 45326 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45329 "RANLIB=$${RANLIB}" \
0c24b341 45330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45331 maintainer-clean) \
4fa63067
NN
45332 || exit 1
45333
6bd3dfaa 45334@endif target-rda
252b5132 45335
e393202e 45336
a2592b1b 45337
a7254363
PB
45338
45339
45340.PHONY: configure-target-libada maybe-configure-target-libada
45341maybe-configure-target-libada:
4f0ef2d8
CD
45342@if gcc-bootstrap
45343configure-target-libada: stage_current
45344@endif gcc-bootstrap
a7254363
PB
45345@if target-libada
45346maybe-configure-target-libada: configure-target-libada
c52c6897 45347configure-target-libada:
0aed8855
PB
45348 @: $(MAKE); $(unstage)
45349 @r=`${PWD_COMMAND}`; export r; \
45350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45351 echo "Checking multilib configuration for libada..."; \
22121df0
L
45352 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
45353 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
45354 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
45355 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
45356 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
45357 else \
45358 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
45359 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
45360 fi; \
45361 else \
45362 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
45363 fi; \
45364 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 45365 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 45366 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
45367 echo Configuring in $(TARGET_SUBDIR)/libada; \
45368 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
45369 case $(srcdir) in \
b00612cc
PB
45370 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45371 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
45372 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 45373 esac; \
1b6c0831 45374 module_srcdir=libada; \
a2592b1b 45375 rm -f no-such-file || : ; \
1b6c0831
L
45376 CONFIG_SITE=no-such-file $(SHELL) \
45377 $$s/$$module_srcdir/configure \
45378 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45379 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45380 --target=${target_alias} \
a2592b1b 45381 || exit 1
6bd3dfaa 45382@endif target-libada
a2592b1b 45383
a7254363
PB
45384
45385
d545f33b
PB
45386
45387
4fa63067
NN
45388.PHONY: all-target-libada maybe-all-target-libada
45389maybe-all-target-libada:
4f0ef2d8
CD
45390@if gcc-bootstrap
45391all-target-libada: stage_current
45392@endif gcc-bootstrap
6bd3dfaa 45393@if target-libada
72b2455a 45394TARGET-target-libada=all
6bd3dfaa 45395maybe-all-target-libada: all-target-libada
4fa63067 45396all-target-libada: configure-target-libada
0aed8855 45397 @: $(MAKE); $(unstage)
4fa63067
NN
45398 @r=`${PWD_COMMAND}`; export r; \
45399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45400 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45401 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 45402 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45403 $(TARGET-target-libada))
6bd3dfaa 45404@endif target-libada
4fa63067 45405
a7254363
PB
45406
45407
d545f33b
PB
45408
45409
4fa63067
NN
45410.PHONY: check-target-libada maybe-check-target-libada
45411maybe-check-target-libada:
6bd3dfaa
PB
45412@if target-libada
45413maybe-check-target-libada: check-target-libada
4fa63067
NN
45414
45415check-target-libada:
0aed8855 45416 @: $(MAKE); $(unstage)
4fa63067
NN
45417 @r=`${PWD_COMMAND}`; export r; \
45418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45419 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45420 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45421 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45422
6bd3dfaa 45423@endif target-libada
4fa63067
NN
45424
45425.PHONY: install-target-libada maybe-install-target-libada
45426maybe-install-target-libada:
6bd3dfaa
PB
45427@if target-libada
45428maybe-install-target-libada: install-target-libada
4fa63067
NN
45429
45430install-target-libada: installdirs
0aed8855 45431 @: $(MAKE); $(unstage)
4fa63067
NN
45432 @r=`${PWD_COMMAND}`; export r; \
45433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45434 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45435 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45436 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45437
6bd3dfaa 45438@endif target-libada
4fa63067 45439
9b980aa1
RW
45440.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45441maybe-install-strip-target-libada:
45442@if target-libada
45443maybe-install-strip-target-libada: install-strip-target-libada
45444
45445install-strip-target-libada: installdirs
45446 @: $(MAKE); $(unstage)
45447 @r=`${PWD_COMMAND}`; export r; \
45448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45449 $(NORMAL_TARGET_EXPORTS) \
45450 (cd $(TARGET_SUBDIR)/libada && \
45451 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45452
45453@endif target-libada
45454
56a8fe78 45455# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45456
45457.PHONY: maybe-info-target-libada info-target-libada
45458maybe-info-target-libada:
6bd3dfaa
PB
45459@if target-libada
45460maybe-info-target-libada: info-target-libada
4fa63067
NN
45461
45462info-target-libada: \
45463 configure-target-libada
0aed8855 45464 @: $(MAKE); $(unstage)
22121df0 45465 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45466 r=`${PWD_COMMAND}`; export r; \
45467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45468 $(NORMAL_TARGET_EXPORTS) \
22121df0 45469 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45470 for flag in $(EXTRA_TARGET_FLAGS); do \
45471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45472 done; \
45473 (cd $(TARGET_SUBDIR)/libada && \
45474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45476 "RANLIB=$${RANLIB}" \
0c24b341 45477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45478 info) \
4fa63067
NN
45479 || exit 1
45480
6bd3dfaa 45481@endif target-libada
4fa63067
NN
45482
45483.PHONY: maybe-dvi-target-libada dvi-target-libada
45484maybe-dvi-target-libada:
6bd3dfaa
PB
45485@if target-libada
45486maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
45487
45488dvi-target-libada: \
45489 configure-target-libada
0aed8855 45490 @: $(MAKE); $(unstage)
22121df0 45491 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45492 r=`${PWD_COMMAND}`; export r; \
45493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45494 $(NORMAL_TARGET_EXPORTS) \
22121df0 45495 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45496 for flag in $(EXTRA_TARGET_FLAGS); do \
45497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45498 done; \
45499 (cd $(TARGET_SUBDIR)/libada && \
45500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45502 "RANLIB=$${RANLIB}" \
0c24b341 45503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45504 dvi) \
4fa63067
NN
45505 || exit 1
45506
6bd3dfaa 45507@endif target-libada
4fa63067 45508
56a8fe78
DD
45509.PHONY: maybe-pdf-target-libada pdf-target-libada
45510maybe-pdf-target-libada:
45511@if target-libada
45512maybe-pdf-target-libada: pdf-target-libada
45513
45514pdf-target-libada: \
45515 configure-target-libada
45516 @: $(MAKE); $(unstage)
22121df0 45517 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
45518 r=`${PWD_COMMAND}`; export r; \
45519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45520 $(NORMAL_TARGET_EXPORTS) \
22121df0 45521 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
45522 for flag in $(EXTRA_TARGET_FLAGS); do \
45523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45524 done; \
45525 (cd $(TARGET_SUBDIR)/libada && \
45526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45528 "RANLIB=$${RANLIB}" \
0c24b341 45529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45530 pdf) \
45531 || exit 1
45532
45533@endif target-libada
45534
6d389afc
MS
45535.PHONY: maybe-html-target-libada html-target-libada
45536maybe-html-target-libada:
45537@if target-libada
45538maybe-html-target-libada: html-target-libada
45539
45540html-target-libada: \
45541 configure-target-libada
0aed8855 45542 @: $(MAKE); $(unstage)
22121df0 45543 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
45544 r=`${PWD_COMMAND}`; export r; \
45545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45546 $(NORMAL_TARGET_EXPORTS) \
22121df0 45547 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
45548 for flag in $(EXTRA_TARGET_FLAGS); do \
45549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45550 done; \
45551 (cd $(TARGET_SUBDIR)/libada && \
45552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45554 "RANLIB=$${RANLIB}" \
0c24b341 45555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45556 html) \
45557 || exit 1
45558
45559@endif target-libada
45560
4fa63067
NN
45561.PHONY: maybe-TAGS-target-libada TAGS-target-libada
45562maybe-TAGS-target-libada:
6bd3dfaa
PB
45563@if target-libada
45564maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
45565
45566TAGS-target-libada: \
45567 configure-target-libada
0aed8855 45568 @: $(MAKE); $(unstage)
22121df0 45569 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45570 r=`${PWD_COMMAND}`; export r; \
45571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45572 $(NORMAL_TARGET_EXPORTS) \
22121df0 45573 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45574 for flag in $(EXTRA_TARGET_FLAGS); do \
45575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45576 done; \
45577 (cd $(TARGET_SUBDIR)/libada && \
45578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45580 "RANLIB=$${RANLIB}" \
0c24b341 45581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45582 TAGS) \
4fa63067
NN
45583 || exit 1
45584
6bd3dfaa 45585@endif target-libada
4fa63067
NN
45586
45587.PHONY: maybe-install-info-target-libada install-info-target-libada
45588maybe-install-info-target-libada:
6bd3dfaa
PB
45589@if target-libada
45590maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
45591
45592install-info-target-libada: \
45593 configure-target-libada \
45594 info-target-libada
0aed8855 45595 @: $(MAKE); $(unstage)
22121df0 45596 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45597 r=`${PWD_COMMAND}`; export r; \
45598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45599 $(NORMAL_TARGET_EXPORTS) \
22121df0 45600 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45601 for flag in $(EXTRA_TARGET_FLAGS); do \
45602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45603 done; \
45604 (cd $(TARGET_SUBDIR)/libada && \
45605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45607 "RANLIB=$${RANLIB}" \
0c24b341 45608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45609 install-info) \
4fa63067
NN
45610 || exit 1
45611
6bd3dfaa 45612@endif target-libada
4fa63067 45613
a3ca38d2
DD
45614.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
45615maybe-install-pdf-target-libada:
45616@if target-libada
45617maybe-install-pdf-target-libada: install-pdf-target-libada
45618
45619install-pdf-target-libada: \
45620 configure-target-libada \
45621 pdf-target-libada
45622 @: $(MAKE); $(unstage)
22121df0 45623 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
45624 r=`${PWD_COMMAND}`; export r; \
45625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45626 $(NORMAL_TARGET_EXPORTS) \
22121df0 45627 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
45628 for flag in $(EXTRA_TARGET_FLAGS); do \
45629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45630 done; \
45631 (cd $(TARGET_SUBDIR)/libada && \
45632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45634 "RANLIB=$${RANLIB}" \
0c24b341 45635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45636 install-pdf) \
45637 || exit 1
45638
45639@endif target-libada
45640
108a6f8e
CD
45641.PHONY: maybe-install-html-target-libada install-html-target-libada
45642maybe-install-html-target-libada:
45643@if target-libada
45644maybe-install-html-target-libada: install-html-target-libada
45645
45646install-html-target-libada: \
45647 configure-target-libada \
45648 html-target-libada
45649 @: $(MAKE); $(unstage)
22121df0 45650 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
45651 r=`${PWD_COMMAND}`; export r; \
45652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45653 $(NORMAL_TARGET_EXPORTS) \
22121df0 45654 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
45655 for flag in $(EXTRA_TARGET_FLAGS); do \
45656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45657 done; \
45658 (cd $(TARGET_SUBDIR)/libada && \
45659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45661 "RANLIB=$${RANLIB}" \
0c24b341 45662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45663 install-html) \
45664 || exit 1
45665
45666@endif target-libada
45667
4fa63067
NN
45668.PHONY: maybe-installcheck-target-libada installcheck-target-libada
45669maybe-installcheck-target-libada:
6bd3dfaa
PB
45670@if target-libada
45671maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
45672
45673installcheck-target-libada: \
45674 configure-target-libada
0aed8855 45675 @: $(MAKE); $(unstage)
22121df0 45676 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45677 r=`${PWD_COMMAND}`; export r; \
45678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45679 $(NORMAL_TARGET_EXPORTS) \
22121df0 45680 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45681 for flag in $(EXTRA_TARGET_FLAGS); do \
45682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45683 done; \
45684 (cd $(TARGET_SUBDIR)/libada && \
45685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45687 "RANLIB=$${RANLIB}" \
0c24b341 45688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45689 installcheck) \
4fa63067
NN
45690 || exit 1
45691
6bd3dfaa 45692@endif target-libada
4fa63067
NN
45693
45694.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
45695maybe-mostlyclean-target-libada:
6bd3dfaa
PB
45696@if target-libada
45697maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
45698
45699mostlyclean-target-libada:
0aed8855 45700 @: $(MAKE); $(unstage)
22121df0 45701 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45702 r=`${PWD_COMMAND}`; export r; \
45703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45704 $(NORMAL_TARGET_EXPORTS) \
22121df0 45705 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45706 for flag in $(EXTRA_TARGET_FLAGS); do \
45707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45708 done; \
45709 (cd $(TARGET_SUBDIR)/libada && \
45710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45712 "RANLIB=$${RANLIB}" \
0c24b341 45713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45714 mostlyclean) \
4fa63067
NN
45715 || exit 1
45716
6bd3dfaa 45717@endif target-libada
4fa63067
NN
45718
45719.PHONY: maybe-clean-target-libada clean-target-libada
45720maybe-clean-target-libada:
6bd3dfaa
PB
45721@if target-libada
45722maybe-clean-target-libada: clean-target-libada
4fa63067
NN
45723
45724clean-target-libada:
0aed8855 45725 @: $(MAKE); $(unstage)
22121df0 45726 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45727 r=`${PWD_COMMAND}`; export r; \
45728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45729 $(NORMAL_TARGET_EXPORTS) \
22121df0 45730 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45731 for flag in $(EXTRA_TARGET_FLAGS); do \
45732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45733 done; \
45734 (cd $(TARGET_SUBDIR)/libada && \
45735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45737 "RANLIB=$${RANLIB}" \
0c24b341 45738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45739 clean) \
4fa63067
NN
45740 || exit 1
45741
6bd3dfaa 45742@endif target-libada
a2592b1b 45743
4fa63067
NN
45744.PHONY: maybe-distclean-target-libada distclean-target-libada
45745maybe-distclean-target-libada:
6bd3dfaa
PB
45746@if target-libada
45747maybe-distclean-target-libada: distclean-target-libada
a2592b1b 45748
4fa63067 45749distclean-target-libada:
0aed8855 45750 @: $(MAKE); $(unstage)
22121df0 45751 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45752 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45754 $(NORMAL_TARGET_EXPORTS) \
22121df0 45755 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45756 for flag in $(EXTRA_TARGET_FLAGS); do \
45757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45758 done; \
a2592b1b 45759 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45762 "RANLIB=$${RANLIB}" \
0c24b341 45763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45764 distclean) \
4fa63067 45765 || exit 1
a2592b1b 45766
6bd3dfaa 45767@endif target-libada
a2592b1b 45768
4fa63067
NN
45769.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
45770maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
45771@if target-libada
45772maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 45773
4fa63067 45774maintainer-clean-target-libada:
0aed8855 45775 @: $(MAKE); $(unstage)
22121df0 45776 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45777 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45779 $(NORMAL_TARGET_EXPORTS) \
22121df0 45780 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45781 for flag in $(EXTRA_TARGET_FLAGS); do \
45782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45783 done; \
a2592b1b 45784 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45787 "RANLIB=$${RANLIB}" \
0c24b341 45788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45789 maintainer-clean) \
4fa63067
NN
45790 || exit 1
45791
6bd3dfaa 45792@endif target-libada
a2592b1b
DD
45793
45794
e393202e 45795
b3ded179
PB
45796
45797
45798.PHONY: configure-target-libgomp maybe-configure-target-libgomp
45799maybe-configure-target-libgomp:
4f0ef2d8
CD
45800@if gcc-bootstrap
45801configure-target-libgomp: stage_current
45802@endif gcc-bootstrap
b3ded179
PB
45803@if target-libgomp
45804maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 45805configure-target-libgomp:
b3ded179
PB
45806 @r=`${PWD_COMMAND}`; export r; \
45807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45808 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
45809 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
45810 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
45811 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45812 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45813 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45814 else \
45815 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45816 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45817 fi; \
45818 else \
45819 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
45820 fi; \
45821 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 45822 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 45823 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
45824 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
45825 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
45826 case $(srcdir) in \
45827 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45828 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45829 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45830 esac; \
1b6c0831 45831 module_srcdir=libgomp; \
b3ded179 45832 rm -f no-such-file || : ; \
1b6c0831
L
45833 CONFIG_SITE=no-such-file $(SHELL) \
45834 $$s/$$module_srcdir/configure \
45835 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45836 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45837 --target=${target_alias} \
b3ded179
PB
45838 || exit 1
45839@endif target-libgomp
45840
45841
45842
911e63d0
JR
45843.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
45844maybe-configure-stage1-target-libgomp:
45845@if target-libgomp-bootstrap
45846maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
45847configure-stage1-target-libgomp:
45848 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45849 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45850 @r=`${PWD_COMMAND}`; export r; \
45851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45852 TFLAGS="$(STAGE1_TFLAGS)"; \
45853 echo "Checking multilib configuration for libgomp..."; \
22121df0 45854 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45855 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45856 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45857 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45858 else \
45859 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45860 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45861 fi; \
45862 else \
45863 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45864 fi; \
45865 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45866 $(NORMAL_TARGET_EXPORTS) \
45867 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45868 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45869 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45870 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
45871 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45872 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45873 case $(srcdir) in \
45874 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45875 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45876 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45877 esac; \
1b6c0831
L
45878 module_srcdir=libgomp; \
45879 $(SHELL) $$s/$$module_srcdir/configure \
45880 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45881 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45882 --target=${target_alias} \
45883 \
911e63d0
JR
45884 $(STAGE1_CONFIGURE_FLAGS)
45885@endif target-libgomp-bootstrap
45886
45887.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
45888maybe-configure-stage2-target-libgomp:
45889@if target-libgomp-bootstrap
45890maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
45891configure-stage2-target-libgomp:
45892 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45893 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45894 @r=`${PWD_COMMAND}`; export r; \
45895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45896 TFLAGS="$(STAGE2_TFLAGS)"; \
45897 echo "Checking multilib configuration for libgomp..."; \
22121df0 45898 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45899 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45900 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45901 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45902 else \
45903 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45904 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45905 fi; \
45906 else \
45907 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45908 fi; \
45909 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45910 $(NORMAL_TARGET_EXPORTS) \
45911 \
45912 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45913 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45914 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45915 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
45916 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45917 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45918 case $(srcdir) in \
45919 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45920 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45921 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45922 esac; \
1b6c0831
L
45923 module_srcdir=libgomp; \
45924 $(SHELL) $$s/$$module_srcdir/configure \
45925 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45926 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45927 --target=${target_alias} \
22121df0 45928 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45929 $(STAGE2_CONFIGURE_FLAGS)
45930@endif target-libgomp-bootstrap
45931
45932.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
45933maybe-configure-stage3-target-libgomp:
45934@if target-libgomp-bootstrap
45935maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
45936configure-stage3-target-libgomp:
45937 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45938 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45939 @r=`${PWD_COMMAND}`; export r; \
45940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45941 TFLAGS="$(STAGE3_TFLAGS)"; \
45942 echo "Checking multilib configuration for libgomp..."; \
22121df0 45943 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45944 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45945 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45946 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45947 else \
45948 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45949 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45950 fi; \
45951 else \
45952 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45953 fi; \
45954 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45955 $(NORMAL_TARGET_EXPORTS) \
45956 \
45957 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45958 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45959 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45960 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
45961 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45962 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45963 case $(srcdir) in \
45964 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45965 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45966 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45967 esac; \
1b6c0831
L
45968 module_srcdir=libgomp; \
45969 $(SHELL) $$s/$$module_srcdir/configure \
45970 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45971 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45972 --target=${target_alias} \
22121df0 45973 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45974 $(STAGE3_CONFIGURE_FLAGS)
45975@endif target-libgomp-bootstrap
45976
45977.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
45978maybe-configure-stage4-target-libgomp:
45979@if target-libgomp-bootstrap
45980maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
45981configure-stage4-target-libgomp:
45982 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45983 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45984 @r=`${PWD_COMMAND}`; export r; \
45985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45986 TFLAGS="$(STAGE4_TFLAGS)"; \
45987 echo "Checking multilib configuration for libgomp..."; \
22121df0 45988 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45989 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45990 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45991 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45992 else \
45993 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45994 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45995 fi; \
45996 else \
45997 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45998 fi; \
45999 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46000 $(NORMAL_TARGET_EXPORTS) \
46001 \
46002 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46003 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46004 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46005 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
46006 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46007 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46008 case $(srcdir) in \
46009 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46010 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46011 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46012 esac; \
1b6c0831
L
46013 module_srcdir=libgomp; \
46014 $(SHELL) $$s/$$module_srcdir/configure \
46015 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46016 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46017 --target=${target_alias} \
22121df0 46018 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46019 $(STAGE4_CONFIGURE_FLAGS)
46020@endif target-libgomp-bootstrap
46021
46022.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
46023maybe-configure-stageprofile-target-libgomp:
46024@if target-libgomp-bootstrap
46025maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46026configure-stageprofile-target-libgomp:
46027 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46028 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46029 @r=`${PWD_COMMAND}`; export r; \
46030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46031 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46032 echo "Checking multilib configuration for libgomp..."; \
22121df0 46033 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46034 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46035 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46036 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46037 else \
46038 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46039 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46040 fi; \
46041 else \
46042 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46043 fi; \
46044 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46045 $(NORMAL_TARGET_EXPORTS) \
46046 \
46047 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46048 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46049 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46050 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
46051 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46052 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46053 case $(srcdir) in \
46054 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46055 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46056 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46057 esac; \
1b6c0831
L
46058 module_srcdir=libgomp; \
46059 $(SHELL) $$s/$$module_srcdir/configure \
46060 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46061 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46062 --target=${target_alias} \
22121df0 46063 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46064 $(STAGEprofile_CONFIGURE_FLAGS)
46065@endif target-libgomp-bootstrap
46066
46067.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
46068maybe-configure-stagefeedback-target-libgomp:
46069@if target-libgomp-bootstrap
46070maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46071configure-stagefeedback-target-libgomp:
46072 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46073 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46074 @r=`${PWD_COMMAND}`; export r; \
46075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46076 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46077 echo "Checking multilib configuration for libgomp..."; \
22121df0 46078 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46079 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46080 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46081 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46082 else \
46083 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46084 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46085 fi; \
46086 else \
46087 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46088 fi; \
46089 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46090 $(NORMAL_TARGET_EXPORTS) \
46091 \
46092 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46093 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46094 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46095 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
46096 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46097 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46098 case $(srcdir) in \
46099 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46100 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46101 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46102 esac; \
1b6c0831
L
46103 module_srcdir=libgomp; \
46104 $(SHELL) $$s/$$module_srcdir/configure \
46105 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46106 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46107 --target=${target_alias} \
22121df0 46108 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46109 $(STAGEfeedback_CONFIGURE_FLAGS)
46110@endif target-libgomp-bootstrap
46111
46112
46113
b3ded179
PB
46114
46115
46116.PHONY: all-target-libgomp maybe-all-target-libgomp
46117maybe-all-target-libgomp:
4f0ef2d8
CD
46118@if gcc-bootstrap
46119all-target-libgomp: stage_current
46120@endif gcc-bootstrap
b3ded179
PB
46121@if target-libgomp
46122TARGET-target-libgomp=all
46123maybe-all-target-libgomp: all-target-libgomp
46124all-target-libgomp: configure-target-libgomp
b3ded179
PB
46125 @r=`${PWD_COMMAND}`; export r; \
46126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46127 $(NORMAL_TARGET_EXPORTS) \
b3ded179 46128 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46129 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46130 $(TARGET-target-libgomp))
b3ded179
PB
46131@endif target-libgomp
46132
46133
46134
911e63d0
JR
46135.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
46136.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
46137maybe-all-stage1-target-libgomp:
46138maybe-clean-stage1-target-libgomp:
46139@if target-libgomp-bootstrap
46140maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
46141all-stage1: all-stage1-target-libgomp
46142TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
46143all-stage1-target-libgomp: configure-stage1-target-libgomp
46144 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46145 @r=`${PWD_COMMAND}`; export r; \
46146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46147 TFLAGS="$(STAGE1_TFLAGS)"; \
46148 $(NORMAL_TARGET_EXPORTS) \
46149 cd $(TARGET_SUBDIR)/libgomp && \
46150 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46151 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46152 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46153 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46154 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46155 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46156 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
46157 $(EXTRA_TARGET_FLAGS) \
46158 \
911e63d0
JR
46159 TFLAGS="$(STAGE1_TFLAGS)" \
46160 $(TARGET-stage1-target-libgomp)
46161
46162maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
46163clean-stage1: clean-stage1-target-libgomp
46164clean-stage1-target-libgomp:
46165 @if [ $(current_stage) = stage1 ]; then \
46166 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46167 else \
46168 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
46169 $(MAKE) stage1-start; \
46170 fi; \
46171 cd $(TARGET_SUBDIR)/libgomp && \
46172 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 46173 clean
911e63d0
JR
46174@endif target-libgomp-bootstrap
46175
46176
46177.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
46178.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
46179maybe-all-stage2-target-libgomp:
46180maybe-clean-stage2-target-libgomp:
46181@if target-libgomp-bootstrap
46182maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
46183all-stage2: all-stage2-target-libgomp
46184TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
46185all-stage2-target-libgomp: configure-stage2-target-libgomp
46186 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46187 @r=`${PWD_COMMAND}`; export r; \
46188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46189 TFLAGS="$(STAGE2_TFLAGS)"; \
46190 $(NORMAL_TARGET_EXPORTS) \
46191 \
46192 cd $(TARGET_SUBDIR)/libgomp && \
46193 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46194 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46195 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46196 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46197 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46198 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46199 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46200 $(EXTRA_TARGET_FLAGS) \
46201 TFLAGS="$(STAGE2_TFLAGS)" \
46202 $(TARGET-stage2-target-libgomp)
46203
46204maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
46205clean-stage2: clean-stage2-target-libgomp
46206clean-stage2-target-libgomp:
46207 @if [ $(current_stage) = stage2 ]; then \
46208 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46209 else \
46210 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
46211 $(MAKE) stage2-start; \
46212 fi; \
46213 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46214 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46215@endif target-libgomp-bootstrap
46216
46217
46218.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
46219.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
46220maybe-all-stage3-target-libgomp:
46221maybe-clean-stage3-target-libgomp:
46222@if target-libgomp-bootstrap
46223maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
46224all-stage3: all-stage3-target-libgomp
46225TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
46226all-stage3-target-libgomp: configure-stage3-target-libgomp
46227 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46228 @r=`${PWD_COMMAND}`; export r; \
46229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46230 TFLAGS="$(STAGE3_TFLAGS)"; \
46231 $(NORMAL_TARGET_EXPORTS) \
46232 \
46233 cd $(TARGET_SUBDIR)/libgomp && \
46234 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46235 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46236 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46237 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46238 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46239 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46240 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46241 $(EXTRA_TARGET_FLAGS) \
46242 TFLAGS="$(STAGE3_TFLAGS)" \
46243 $(TARGET-stage3-target-libgomp)
46244
46245maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
46246clean-stage3: clean-stage3-target-libgomp
46247clean-stage3-target-libgomp:
46248 @if [ $(current_stage) = stage3 ]; then \
46249 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46250 else \
46251 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
46252 $(MAKE) stage3-start; \
46253 fi; \
46254 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46255 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46256@endif target-libgomp-bootstrap
46257
46258
46259.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
46260.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
46261maybe-all-stage4-target-libgomp:
46262maybe-clean-stage4-target-libgomp:
46263@if target-libgomp-bootstrap
46264maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
46265all-stage4: all-stage4-target-libgomp
46266TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
46267all-stage4-target-libgomp: configure-stage4-target-libgomp
46268 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46269 @r=`${PWD_COMMAND}`; export r; \
46270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46271 TFLAGS="$(STAGE4_TFLAGS)"; \
46272 $(NORMAL_TARGET_EXPORTS) \
46273 \
46274 cd $(TARGET_SUBDIR)/libgomp && \
46275 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46276 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46277 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46278 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46279 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46280 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46281 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46282 $(EXTRA_TARGET_FLAGS) \
46283 TFLAGS="$(STAGE4_TFLAGS)" \
46284 $(TARGET-stage4-target-libgomp)
46285
46286maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
46287clean-stage4: clean-stage4-target-libgomp
46288clean-stage4-target-libgomp:
46289 @if [ $(current_stage) = stage4 ]; then \
46290 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46291 else \
46292 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
46293 $(MAKE) stage4-start; \
46294 fi; \
46295 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46296 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46297@endif target-libgomp-bootstrap
46298
46299
46300.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
46301.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
46302maybe-all-stageprofile-target-libgomp:
46303maybe-clean-stageprofile-target-libgomp:
46304@if target-libgomp-bootstrap
46305maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
46306all-stageprofile: all-stageprofile-target-libgomp
46307TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
46308all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46309 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46310 @r=`${PWD_COMMAND}`; export r; \
46311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46312 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46313 $(NORMAL_TARGET_EXPORTS) \
46314 \
46315 cd $(TARGET_SUBDIR)/libgomp && \
46316 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46317 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46318 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46319 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46320 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46321 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46322 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46323 $(EXTRA_TARGET_FLAGS) \
46324 TFLAGS="$(STAGEprofile_TFLAGS)" \
46325 $(TARGET-stageprofile-target-libgomp)
46326
46327maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
46328clean-stageprofile: clean-stageprofile-target-libgomp
46329clean-stageprofile-target-libgomp:
46330 @if [ $(current_stage) = stageprofile ]; then \
46331 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46332 else \
46333 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
46334 $(MAKE) stageprofile-start; \
46335 fi; \
46336 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46337 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46338@endif target-libgomp-bootstrap
46339
46340
46341.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
46342.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
46343maybe-all-stagefeedback-target-libgomp:
46344maybe-clean-stagefeedback-target-libgomp:
46345@if target-libgomp-bootstrap
46346maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
46347all-stagefeedback: all-stagefeedback-target-libgomp
46348TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
46349all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46350 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46351 @r=`${PWD_COMMAND}`; export r; \
46352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46353 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46354 $(NORMAL_TARGET_EXPORTS) \
46355 \
46356 cd $(TARGET_SUBDIR)/libgomp && \
46357 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46358 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46359 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46360 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46361 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46362 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46363 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46364 $(EXTRA_TARGET_FLAGS) \
46365 TFLAGS="$(STAGEfeedback_TFLAGS)" \
46366 $(TARGET-stagefeedback-target-libgomp)
46367
46368maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
46369clean-stagefeedback: clean-stagefeedback-target-libgomp
46370clean-stagefeedback-target-libgomp:
46371 @if [ $(current_stage) = stagefeedback ]; then \
46372 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46373 else \
46374 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
46375 $(MAKE) stagefeedback-start; \
46376 fi; \
46377 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46378 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46379@endif target-libgomp-bootstrap
46380
46381
46382
46383
b3ded179
PB
46384
46385
46386.PHONY: check-target-libgomp maybe-check-target-libgomp
46387maybe-check-target-libgomp:
46388@if target-libgomp
46389maybe-check-target-libgomp: check-target-libgomp
46390
46391check-target-libgomp:
46392 @: $(MAKE); $(unstage)
46393 @r=`${PWD_COMMAND}`; export r; \
46394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46395 $(NORMAL_TARGET_EXPORTS) \
46396 (cd $(TARGET_SUBDIR)/libgomp && \
46397 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46398
46399@endif target-libgomp
46400
46401.PHONY: install-target-libgomp maybe-install-target-libgomp
46402maybe-install-target-libgomp:
46403@if target-libgomp
46404maybe-install-target-libgomp: install-target-libgomp
46405
46406install-target-libgomp: installdirs
46407 @: $(MAKE); $(unstage)
46408 @r=`${PWD_COMMAND}`; export r; \
46409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46410 $(NORMAL_TARGET_EXPORTS) \
46411 (cd $(TARGET_SUBDIR)/libgomp && \
46412 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46413
46414@endif target-libgomp
46415
9b980aa1
RW
46416.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
46417maybe-install-strip-target-libgomp:
46418@if target-libgomp
46419maybe-install-strip-target-libgomp: install-strip-target-libgomp
46420
46421install-strip-target-libgomp: installdirs
46422 @: $(MAKE); $(unstage)
46423 @r=`${PWD_COMMAND}`; export r; \
46424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46425 $(NORMAL_TARGET_EXPORTS) \
46426 (cd $(TARGET_SUBDIR)/libgomp && \
46427 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46428
46429@endif target-libgomp
46430
56a8fe78 46431# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46432
46433.PHONY: maybe-info-target-libgomp info-target-libgomp
46434maybe-info-target-libgomp:
46435@if target-libgomp
46436maybe-info-target-libgomp: info-target-libgomp
46437
46438info-target-libgomp: \
46439 configure-target-libgomp
46440 @: $(MAKE); $(unstage)
22121df0 46441 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46442 r=`${PWD_COMMAND}`; export r; \
46443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46444 $(NORMAL_TARGET_EXPORTS) \
22121df0 46445 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46446 for flag in $(EXTRA_TARGET_FLAGS); do \
46447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46448 done; \
46449 (cd $(TARGET_SUBDIR)/libgomp && \
46450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46452 "RANLIB=$${RANLIB}" \
0c24b341 46453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46454 info) \
46455 || exit 1
46456
46457@endif target-libgomp
46458
46459.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
46460maybe-dvi-target-libgomp:
46461@if target-libgomp
46462maybe-dvi-target-libgomp: dvi-target-libgomp
46463
46464dvi-target-libgomp: \
46465 configure-target-libgomp
46466 @: $(MAKE); $(unstage)
22121df0 46467 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46468 r=`${PWD_COMMAND}`; export r; \
46469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46470 $(NORMAL_TARGET_EXPORTS) \
22121df0 46471 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46472 for flag in $(EXTRA_TARGET_FLAGS); do \
46473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46474 done; \
46475 (cd $(TARGET_SUBDIR)/libgomp && \
46476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46478 "RANLIB=$${RANLIB}" \
0c24b341 46479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46480 dvi) \
46481 || exit 1
46482
46483@endif target-libgomp
46484
56a8fe78
DD
46485.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
46486maybe-pdf-target-libgomp:
46487@if target-libgomp
46488maybe-pdf-target-libgomp: pdf-target-libgomp
46489
46490pdf-target-libgomp: \
46491 configure-target-libgomp
46492 @: $(MAKE); $(unstage)
22121df0 46493 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
46494 r=`${PWD_COMMAND}`; export r; \
46495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46496 $(NORMAL_TARGET_EXPORTS) \
22121df0 46497 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
46498 for flag in $(EXTRA_TARGET_FLAGS); do \
46499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46500 done; \
46501 (cd $(TARGET_SUBDIR)/libgomp && \
46502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46504 "RANLIB=$${RANLIB}" \
0c24b341 46505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46506 pdf) \
46507 || exit 1
46508
46509@endif target-libgomp
46510
b3ded179
PB
46511.PHONY: maybe-html-target-libgomp html-target-libgomp
46512maybe-html-target-libgomp:
46513@if target-libgomp
46514maybe-html-target-libgomp: html-target-libgomp
46515
46516html-target-libgomp: \
46517 configure-target-libgomp
46518 @: $(MAKE); $(unstage)
22121df0 46519 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46520 r=`${PWD_COMMAND}`; export r; \
46521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46522 $(NORMAL_TARGET_EXPORTS) \
22121df0 46523 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46524 for flag in $(EXTRA_TARGET_FLAGS); do \
46525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46526 done; \
46527 (cd $(TARGET_SUBDIR)/libgomp && \
46528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46530 "RANLIB=$${RANLIB}" \
0c24b341 46531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46532 html) \
46533 || exit 1
46534
46535@endif target-libgomp
46536
46537.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
46538maybe-TAGS-target-libgomp:
46539@if target-libgomp
46540maybe-TAGS-target-libgomp: TAGS-target-libgomp
46541
46542TAGS-target-libgomp: \
46543 configure-target-libgomp
46544 @: $(MAKE); $(unstage)
22121df0 46545 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46546 r=`${PWD_COMMAND}`; export r; \
46547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46548 $(NORMAL_TARGET_EXPORTS) \
22121df0 46549 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46550 for flag in $(EXTRA_TARGET_FLAGS); do \
46551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46552 done; \
46553 (cd $(TARGET_SUBDIR)/libgomp && \
46554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46556 "RANLIB=$${RANLIB}" \
0c24b341 46557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46558 TAGS) \
46559 || exit 1
46560
46561@endif target-libgomp
46562
46563.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
46564maybe-install-info-target-libgomp:
46565@if target-libgomp
46566maybe-install-info-target-libgomp: install-info-target-libgomp
46567
46568install-info-target-libgomp: \
46569 configure-target-libgomp \
46570 info-target-libgomp
46571 @: $(MAKE); $(unstage)
22121df0 46572 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46573 r=`${PWD_COMMAND}`; export r; \
46574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46575 $(NORMAL_TARGET_EXPORTS) \
22121df0 46576 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46577 for flag in $(EXTRA_TARGET_FLAGS); do \
46578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46579 done; \
46580 (cd $(TARGET_SUBDIR)/libgomp && \
46581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46583 "RANLIB=$${RANLIB}" \
0c24b341 46584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46585 install-info) \
46586 || exit 1
46587
46588@endif target-libgomp
46589
a3ca38d2
DD
46590.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
46591maybe-install-pdf-target-libgomp:
46592@if target-libgomp
46593maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
46594
46595install-pdf-target-libgomp: \
46596 configure-target-libgomp \
46597 pdf-target-libgomp
46598 @: $(MAKE); $(unstage)
22121df0 46599 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
46600 r=`${PWD_COMMAND}`; export r; \
46601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46602 $(NORMAL_TARGET_EXPORTS) \
22121df0 46603 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
46604 for flag in $(EXTRA_TARGET_FLAGS); do \
46605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46606 done; \
46607 (cd $(TARGET_SUBDIR)/libgomp && \
46608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46610 "RANLIB=$${RANLIB}" \
0c24b341 46611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46612 install-pdf) \
46613 || exit 1
46614
46615@endif target-libgomp
46616
108a6f8e
CD
46617.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
46618maybe-install-html-target-libgomp:
46619@if target-libgomp
46620maybe-install-html-target-libgomp: install-html-target-libgomp
46621
46622install-html-target-libgomp: \
46623 configure-target-libgomp \
46624 html-target-libgomp
46625 @: $(MAKE); $(unstage)
22121df0 46626 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
46627 r=`${PWD_COMMAND}`; export r; \
46628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46629 $(NORMAL_TARGET_EXPORTS) \
22121df0 46630 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
46631 for flag in $(EXTRA_TARGET_FLAGS); do \
46632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46633 done; \
46634 (cd $(TARGET_SUBDIR)/libgomp && \
46635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46637 "RANLIB=$${RANLIB}" \
0c24b341 46638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46639 install-html) \
46640 || exit 1
46641
46642@endif target-libgomp
46643
b3ded179
PB
46644.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
46645maybe-installcheck-target-libgomp:
46646@if target-libgomp
46647maybe-installcheck-target-libgomp: installcheck-target-libgomp
46648
46649installcheck-target-libgomp: \
46650 configure-target-libgomp
46651 @: $(MAKE); $(unstage)
22121df0 46652 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46653 r=`${PWD_COMMAND}`; export r; \
46654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46655 $(NORMAL_TARGET_EXPORTS) \
22121df0 46656 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46657 for flag in $(EXTRA_TARGET_FLAGS); do \
46658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46659 done; \
46660 (cd $(TARGET_SUBDIR)/libgomp && \
46661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46663 "RANLIB=$${RANLIB}" \
0c24b341 46664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46665 installcheck) \
46666 || exit 1
46667
46668@endif target-libgomp
46669
46670.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
46671maybe-mostlyclean-target-libgomp:
46672@if target-libgomp
46673maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
46674
46675mostlyclean-target-libgomp:
46676 @: $(MAKE); $(unstage)
22121df0 46677 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46678 r=`${PWD_COMMAND}`; export r; \
46679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46680 $(NORMAL_TARGET_EXPORTS) \
22121df0 46681 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46682 for flag in $(EXTRA_TARGET_FLAGS); do \
46683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46684 done; \
46685 (cd $(TARGET_SUBDIR)/libgomp && \
46686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46688 "RANLIB=$${RANLIB}" \
0c24b341 46689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46690 mostlyclean) \
46691 || exit 1
46692
46693@endif target-libgomp
46694
46695.PHONY: maybe-clean-target-libgomp clean-target-libgomp
46696maybe-clean-target-libgomp:
46697@if target-libgomp
46698maybe-clean-target-libgomp: clean-target-libgomp
46699
46700clean-target-libgomp:
46701 @: $(MAKE); $(unstage)
22121df0 46702 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46703 r=`${PWD_COMMAND}`; export r; \
46704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46705 $(NORMAL_TARGET_EXPORTS) \
22121df0 46706 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46707 for flag in $(EXTRA_TARGET_FLAGS); do \
46708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46709 done; \
46710 (cd $(TARGET_SUBDIR)/libgomp && \
46711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46713 "RANLIB=$${RANLIB}" \
0c24b341 46714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46715 clean) \
46716 || exit 1
46717
46718@endif target-libgomp
46719
46720.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
46721maybe-distclean-target-libgomp:
46722@if target-libgomp
46723maybe-distclean-target-libgomp: distclean-target-libgomp
46724
46725distclean-target-libgomp:
46726 @: $(MAKE); $(unstage)
22121df0 46727 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46728 r=`${PWD_COMMAND}`; export r; \
46729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46730 $(NORMAL_TARGET_EXPORTS) \
22121df0 46731 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46732 for flag in $(EXTRA_TARGET_FLAGS); do \
46733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46734 done; \
46735 (cd $(TARGET_SUBDIR)/libgomp && \
46736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46738 "RANLIB=$${RANLIB}" \
0c24b341 46739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46740 distclean) \
46741 || exit 1
46742
46743@endif target-libgomp
46744
46745.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
46746maybe-maintainer-clean-target-libgomp:
46747@if target-libgomp
46748maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
46749
46750maintainer-clean-target-libgomp:
46751 @: $(MAKE); $(unstage)
22121df0 46752 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46753 r=`${PWD_COMMAND}`; export r; \
46754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46755 $(NORMAL_TARGET_EXPORTS) \
22121df0 46756 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46757 for flag in $(EXTRA_TARGET_FLAGS); do \
46758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46759 done; \
46760 (cd $(TARGET_SUBDIR)/libgomp && \
46761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46763 "RANLIB=$${RANLIB}" \
0c24b341 46764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46765 maintainer-clean) \
46766 || exit 1
46767
46768@endif target-libgomp
46769
46770
46771
7ec59b9e
L
46772
46773
46774.PHONY: configure-target-libitm maybe-configure-target-libitm
46775maybe-configure-target-libitm:
46776@if gcc-bootstrap
46777configure-target-libitm: stage_current
46778@endif gcc-bootstrap
46779@if target-libitm
46780maybe-configure-target-libitm: configure-target-libitm
46781configure-target-libitm:
46782 @: $(MAKE); $(unstage)
46783 @r=`${PWD_COMMAND}`; export r; \
46784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46785 echo "Checking multilib configuration for libitm..."; \
22121df0
L
46786 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
46787 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
46788 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
46789 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
46790 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
46791 else \
46792 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
46793 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46794 fi; \
46795 else \
46796 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46797 fi; \
46798 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 46799 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
46800 $(NORMAL_TARGET_EXPORTS) \
46801 echo Configuring in $(TARGET_SUBDIR)/libitm; \
46802 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
46803 case $(srcdir) in \
46804 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46805 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
46806 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46807 esac; \
1b6c0831 46808 module_srcdir=libitm; \
7ec59b9e 46809 rm -f no-such-file || : ; \
1b6c0831
L
46810 CONFIG_SITE=no-such-file $(SHELL) \
46811 $$s/$$module_srcdir/configure \
46812 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46813 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46814 --target=${target_alias} \
7ec59b9e
L
46815 || exit 1
46816@endif target-libitm
46817
46818
46819
46820
46821
46822.PHONY: all-target-libitm maybe-all-target-libitm
46823maybe-all-target-libitm:
46824@if gcc-bootstrap
46825all-target-libitm: stage_current
46826@endif gcc-bootstrap
46827@if target-libitm
46828TARGET-target-libitm=all
46829maybe-all-target-libitm: all-target-libitm
46830all-target-libitm: configure-target-libitm
46831 @: $(MAKE); $(unstage)
46832 @r=`${PWD_COMMAND}`; export r; \
46833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46834 $(NORMAL_TARGET_EXPORTS) \
46835 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 46836 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46837 $(TARGET-target-libitm))
46838@endif target-libitm
46839
46840
46841
46842
46843
46844.PHONY: check-target-libitm maybe-check-target-libitm
46845maybe-check-target-libitm:
46846@if target-libitm
46847maybe-check-target-libitm: check-target-libitm
46848
46849check-target-libitm:
46850 @: $(MAKE); $(unstage)
46851 @r=`${PWD_COMMAND}`; export r; \
46852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46853 $(NORMAL_TARGET_EXPORTS) \
46854 (cd $(TARGET_SUBDIR)/libitm && \
46855 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46856
46857@endif target-libitm
46858
46859.PHONY: install-target-libitm maybe-install-target-libitm
46860maybe-install-target-libitm:
46861@if target-libitm
46862maybe-install-target-libitm: install-target-libitm
46863
46864install-target-libitm: installdirs
46865 @: $(MAKE); $(unstage)
46866 @r=`${PWD_COMMAND}`; export r; \
46867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46868 $(NORMAL_TARGET_EXPORTS) \
46869 (cd $(TARGET_SUBDIR)/libitm && \
46870 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46871
46872@endif target-libitm
46873
46874.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
46875maybe-install-strip-target-libitm:
46876@if target-libitm
46877maybe-install-strip-target-libitm: install-strip-target-libitm
46878
46879install-strip-target-libitm: installdirs
46880 @: $(MAKE); $(unstage)
46881 @r=`${PWD_COMMAND}`; export r; \
46882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46883 $(NORMAL_TARGET_EXPORTS) \
46884 (cd $(TARGET_SUBDIR)/libitm && \
46885 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46886
46887@endif target-libitm
46888
46889# Other targets (info, dvi, pdf, etc.)
46890
46891.PHONY: maybe-info-target-libitm info-target-libitm
46892maybe-info-target-libitm:
46893@if target-libitm
46894maybe-info-target-libitm: info-target-libitm
46895
46896info-target-libitm: \
46897 configure-target-libitm
46898 @: $(MAKE); $(unstage)
22121df0 46899 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46900 r=`${PWD_COMMAND}`; export r; \
46901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46902 $(NORMAL_TARGET_EXPORTS) \
22121df0 46903 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46904 for flag in $(EXTRA_TARGET_FLAGS); do \
46905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46906 done; \
46907 (cd $(TARGET_SUBDIR)/libitm && \
46908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46910 "RANLIB=$${RANLIB}" \
46911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46912 info) \
46913 || exit 1
46914
46915@endif target-libitm
46916
46917.PHONY: maybe-dvi-target-libitm dvi-target-libitm
46918maybe-dvi-target-libitm:
46919@if target-libitm
46920maybe-dvi-target-libitm: dvi-target-libitm
46921
46922dvi-target-libitm: \
46923 configure-target-libitm
46924 @: $(MAKE); $(unstage)
22121df0 46925 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46926 r=`${PWD_COMMAND}`; export r; \
46927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46928 $(NORMAL_TARGET_EXPORTS) \
22121df0 46929 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46930 for flag in $(EXTRA_TARGET_FLAGS); do \
46931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46932 done; \
46933 (cd $(TARGET_SUBDIR)/libitm && \
46934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46936 "RANLIB=$${RANLIB}" \
46937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46938 dvi) \
46939 || exit 1
46940
46941@endif target-libitm
46942
46943.PHONY: maybe-pdf-target-libitm pdf-target-libitm
46944maybe-pdf-target-libitm:
46945@if target-libitm
46946maybe-pdf-target-libitm: pdf-target-libitm
46947
46948pdf-target-libitm: \
46949 configure-target-libitm
46950 @: $(MAKE); $(unstage)
22121df0 46951 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46952 r=`${PWD_COMMAND}`; export r; \
46953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46954 $(NORMAL_TARGET_EXPORTS) \
22121df0 46955 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46956 for flag in $(EXTRA_TARGET_FLAGS); do \
46957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46958 done; \
46959 (cd $(TARGET_SUBDIR)/libitm && \
46960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46962 "RANLIB=$${RANLIB}" \
46963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46964 pdf) \
46965 || exit 1
46966
46967@endif target-libitm
46968
46969.PHONY: maybe-html-target-libitm html-target-libitm
46970maybe-html-target-libitm:
46971@if target-libitm
46972maybe-html-target-libitm: html-target-libitm
46973
46974html-target-libitm: \
46975 configure-target-libitm
46976 @: $(MAKE); $(unstage)
22121df0 46977 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46978 r=`${PWD_COMMAND}`; export r; \
46979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46980 $(NORMAL_TARGET_EXPORTS) \
22121df0 46981 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46982 for flag in $(EXTRA_TARGET_FLAGS); do \
46983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46984 done; \
46985 (cd $(TARGET_SUBDIR)/libitm && \
46986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46988 "RANLIB=$${RANLIB}" \
46989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46990 html) \
46991 || exit 1
46992
46993@endif target-libitm
46994
46995.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
46996maybe-TAGS-target-libitm:
46997@if target-libitm
46998maybe-TAGS-target-libitm: TAGS-target-libitm
46999
47000TAGS-target-libitm: \
47001 configure-target-libitm
47002 @: $(MAKE); $(unstage)
22121df0 47003 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47004 r=`${PWD_COMMAND}`; export r; \
47005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47006 $(NORMAL_TARGET_EXPORTS) \
22121df0 47007 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47008 for flag in $(EXTRA_TARGET_FLAGS); do \
47009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47010 done; \
47011 (cd $(TARGET_SUBDIR)/libitm && \
47012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47014 "RANLIB=$${RANLIB}" \
47015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47016 TAGS) \
47017 || exit 1
47018
47019@endif target-libitm
47020
47021.PHONY: maybe-install-info-target-libitm install-info-target-libitm
47022maybe-install-info-target-libitm:
47023@if target-libitm
47024maybe-install-info-target-libitm: install-info-target-libitm
47025
47026install-info-target-libitm: \
47027 configure-target-libitm \
47028 info-target-libitm
47029 @: $(MAKE); $(unstage)
22121df0 47030 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47031 r=`${PWD_COMMAND}`; export r; \
47032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47033 $(NORMAL_TARGET_EXPORTS) \
22121df0 47034 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47035 for flag in $(EXTRA_TARGET_FLAGS); do \
47036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47037 done; \
47038 (cd $(TARGET_SUBDIR)/libitm && \
47039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47041 "RANLIB=$${RANLIB}" \
47042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47043 install-info) \
47044 || exit 1
47045
47046@endif target-libitm
47047
47048.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
47049maybe-install-pdf-target-libitm:
47050@if target-libitm
47051maybe-install-pdf-target-libitm: install-pdf-target-libitm
47052
47053install-pdf-target-libitm: \
47054 configure-target-libitm \
47055 pdf-target-libitm
47056 @: $(MAKE); $(unstage)
22121df0 47057 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47058 r=`${PWD_COMMAND}`; export r; \
47059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47060 $(NORMAL_TARGET_EXPORTS) \
22121df0 47061 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47062 for flag in $(EXTRA_TARGET_FLAGS); do \
47063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47064 done; \
47065 (cd $(TARGET_SUBDIR)/libitm && \
47066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47068 "RANLIB=$${RANLIB}" \
47069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47070 install-pdf) \
47071 || exit 1
47072
47073@endif target-libitm
47074
47075.PHONY: maybe-install-html-target-libitm install-html-target-libitm
47076maybe-install-html-target-libitm:
47077@if target-libitm
47078maybe-install-html-target-libitm: install-html-target-libitm
47079
47080install-html-target-libitm: \
47081 configure-target-libitm \
47082 html-target-libitm
47083 @: $(MAKE); $(unstage)
22121df0 47084 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47085 r=`${PWD_COMMAND}`; export r; \
47086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47087 $(NORMAL_TARGET_EXPORTS) \
22121df0 47088 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47089 for flag in $(EXTRA_TARGET_FLAGS); do \
47090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47091 done; \
47092 (cd $(TARGET_SUBDIR)/libitm && \
47093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47095 "RANLIB=$${RANLIB}" \
47096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47097 install-html) \
47098 || exit 1
47099
47100@endif target-libitm
47101
47102.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
47103maybe-installcheck-target-libitm:
47104@if target-libitm
47105maybe-installcheck-target-libitm: installcheck-target-libitm
47106
47107installcheck-target-libitm: \
47108 configure-target-libitm
47109 @: $(MAKE); $(unstage)
22121df0 47110 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47111 r=`${PWD_COMMAND}`; export r; \
47112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47113 $(NORMAL_TARGET_EXPORTS) \
22121df0 47114 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47115 for flag in $(EXTRA_TARGET_FLAGS); do \
47116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47117 done; \
47118 (cd $(TARGET_SUBDIR)/libitm && \
47119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47121 "RANLIB=$${RANLIB}" \
47122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47123 installcheck) \
47124 || exit 1
47125
47126@endif target-libitm
47127
47128.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
47129maybe-mostlyclean-target-libitm:
47130@if target-libitm
47131maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
47132
47133mostlyclean-target-libitm:
47134 @: $(MAKE); $(unstage)
22121df0 47135 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47136 r=`${PWD_COMMAND}`; export r; \
47137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47138 $(NORMAL_TARGET_EXPORTS) \
22121df0 47139 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47140 for flag in $(EXTRA_TARGET_FLAGS); do \
47141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47142 done; \
47143 (cd $(TARGET_SUBDIR)/libitm && \
47144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47146 "RANLIB=$${RANLIB}" \
47147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47148 mostlyclean) \
47149 || exit 1
47150
47151@endif target-libitm
47152
47153.PHONY: maybe-clean-target-libitm clean-target-libitm
47154maybe-clean-target-libitm:
47155@if target-libitm
47156maybe-clean-target-libitm: clean-target-libitm
47157
47158clean-target-libitm:
47159 @: $(MAKE); $(unstage)
22121df0 47160 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47161 r=`${PWD_COMMAND}`; export r; \
47162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47163 $(NORMAL_TARGET_EXPORTS) \
22121df0 47164 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47165 for flag in $(EXTRA_TARGET_FLAGS); do \
47166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47167 done; \
47168 (cd $(TARGET_SUBDIR)/libitm && \
47169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47171 "RANLIB=$${RANLIB}" \
47172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47173 clean) \
47174 || exit 1
47175
47176@endif target-libitm
47177
47178.PHONY: maybe-distclean-target-libitm distclean-target-libitm
47179maybe-distclean-target-libitm:
47180@if target-libitm
47181maybe-distclean-target-libitm: distclean-target-libitm
47182
47183distclean-target-libitm:
47184 @: $(MAKE); $(unstage)
22121df0 47185 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47186 r=`${PWD_COMMAND}`; export r; \
47187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47188 $(NORMAL_TARGET_EXPORTS) \
22121df0 47189 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47190 for flag in $(EXTRA_TARGET_FLAGS); do \
47191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47192 done; \
47193 (cd $(TARGET_SUBDIR)/libitm && \
47194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47196 "RANLIB=$${RANLIB}" \
47197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47198 distclean) \
47199 || exit 1
47200
47201@endif target-libitm
47202
47203.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
47204maybe-maintainer-clean-target-libitm:
47205@if target-libitm
47206maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
47207
47208maintainer-clean-target-libitm:
47209 @: $(MAKE); $(unstage)
22121df0 47210 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47211 r=`${PWD_COMMAND}`; export r; \
47212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47213 $(NORMAL_TARGET_EXPORTS) \
22121df0 47214 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47215 for flag in $(EXTRA_TARGET_FLAGS); do \
47216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47217 done; \
47218 (cd $(TARGET_SUBDIR)/libitm && \
47219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47221 "RANLIB=$${RANLIB}" \
47222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47223 maintainer-clean) \
47224 || exit 1
47225
47226@endif target-libitm
47227
47228
47229
47230
47231
47232.PHONY: configure-target-libatomic maybe-configure-target-libatomic
47233maybe-configure-target-libatomic:
47234@if gcc-bootstrap
47235configure-target-libatomic: stage_current
47236@endif gcc-bootstrap
47237@if target-libatomic
47238maybe-configure-target-libatomic: configure-target-libatomic
47239configure-target-libatomic:
47240 @: $(MAKE); $(unstage)
47241 @r=`${PWD_COMMAND}`; export r; \
47242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47243 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
47244 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
47245 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47246 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47247 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47248 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
47249 else \
47250 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
47251 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47252 fi; \
47253 else \
47254 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47255 fi; \
47256 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 47257 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
47258 $(NORMAL_TARGET_EXPORTS) \
47259 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
47260 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
47261 case $(srcdir) in \
47262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47263 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
47264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47265 esac; \
1b6c0831 47266 module_srcdir=libatomic; \
7ec59b9e 47267 rm -f no-such-file || : ; \
1b6c0831
L
47268 CONFIG_SITE=no-such-file $(SHELL) \
47269 $$s/$$module_srcdir/configure \
47270 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47271 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47272 --target=${target_alias} \
7ec59b9e
L
47273 || exit 1
47274@endif target-libatomic
47275
47276
47277
47278
47279
47280.PHONY: all-target-libatomic maybe-all-target-libatomic
47281maybe-all-target-libatomic:
47282@if gcc-bootstrap
47283all-target-libatomic: stage_current
47284@endif gcc-bootstrap
47285@if target-libatomic
47286TARGET-target-libatomic=all
47287maybe-all-target-libatomic: all-target-libatomic
47288all-target-libatomic: configure-target-libatomic
47289 @: $(MAKE); $(unstage)
47290 @r=`${PWD_COMMAND}`; export r; \
47291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47292 $(NORMAL_TARGET_EXPORTS) \
47293 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 47294 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47295 $(TARGET-target-libatomic))
47296@endif target-libatomic
47297
47298
47299
47300
47301
47302.PHONY: check-target-libatomic maybe-check-target-libatomic
47303maybe-check-target-libatomic:
47304@if target-libatomic
47305maybe-check-target-libatomic: check-target-libatomic
47306
47307check-target-libatomic:
47308 @: $(MAKE); $(unstage)
47309 @r=`${PWD_COMMAND}`; export r; \
47310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47311 $(NORMAL_TARGET_EXPORTS) \
47312 (cd $(TARGET_SUBDIR)/libatomic && \
47313 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47314
47315@endif target-libatomic
47316
47317.PHONY: install-target-libatomic maybe-install-target-libatomic
47318maybe-install-target-libatomic:
47319@if target-libatomic
47320maybe-install-target-libatomic: install-target-libatomic
47321
47322install-target-libatomic: installdirs
47323 @: $(MAKE); $(unstage)
47324 @r=`${PWD_COMMAND}`; export r; \
47325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47326 $(NORMAL_TARGET_EXPORTS) \
47327 (cd $(TARGET_SUBDIR)/libatomic && \
47328 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47329
47330@endif target-libatomic
47331
47332.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
47333maybe-install-strip-target-libatomic:
47334@if target-libatomic
47335maybe-install-strip-target-libatomic: install-strip-target-libatomic
47336
47337install-strip-target-libatomic: installdirs
47338 @: $(MAKE); $(unstage)
47339 @r=`${PWD_COMMAND}`; export r; \
47340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47341 $(NORMAL_TARGET_EXPORTS) \
47342 (cd $(TARGET_SUBDIR)/libatomic && \
47343 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47344
47345@endif target-libatomic
47346
47347# Other targets (info, dvi, pdf, etc.)
47348
47349.PHONY: maybe-info-target-libatomic info-target-libatomic
47350maybe-info-target-libatomic:
47351@if target-libatomic
47352maybe-info-target-libatomic: info-target-libatomic
47353
47354info-target-libatomic: \
47355 configure-target-libatomic
47356 @: $(MAKE); $(unstage)
22121df0 47357 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47358 r=`${PWD_COMMAND}`; export r; \
47359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47360 $(NORMAL_TARGET_EXPORTS) \
22121df0 47361 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47362 for flag in $(EXTRA_TARGET_FLAGS); do \
47363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47364 done; \
47365 (cd $(TARGET_SUBDIR)/libatomic && \
47366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47368 "RANLIB=$${RANLIB}" \
47369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47370 info) \
47371 || exit 1
47372
47373@endif target-libatomic
47374
47375.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
47376maybe-dvi-target-libatomic:
47377@if target-libatomic
47378maybe-dvi-target-libatomic: dvi-target-libatomic
47379
47380dvi-target-libatomic: \
47381 configure-target-libatomic
47382 @: $(MAKE); $(unstage)
22121df0 47383 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47384 r=`${PWD_COMMAND}`; export r; \
47385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47386 $(NORMAL_TARGET_EXPORTS) \
22121df0 47387 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47388 for flag in $(EXTRA_TARGET_FLAGS); do \
47389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47390 done; \
47391 (cd $(TARGET_SUBDIR)/libatomic && \
47392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47394 "RANLIB=$${RANLIB}" \
47395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47396 dvi) \
47397 || exit 1
47398
47399@endif target-libatomic
47400
47401.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
47402maybe-pdf-target-libatomic:
47403@if target-libatomic
47404maybe-pdf-target-libatomic: pdf-target-libatomic
47405
47406pdf-target-libatomic: \
47407 configure-target-libatomic
47408 @: $(MAKE); $(unstage)
22121df0 47409 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47410 r=`${PWD_COMMAND}`; export r; \
47411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47412 $(NORMAL_TARGET_EXPORTS) \
22121df0 47413 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47414 for flag in $(EXTRA_TARGET_FLAGS); do \
47415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47416 done; \
47417 (cd $(TARGET_SUBDIR)/libatomic && \
47418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47420 "RANLIB=$${RANLIB}" \
47421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47422 pdf) \
47423 || exit 1
47424
47425@endif target-libatomic
47426
47427.PHONY: maybe-html-target-libatomic html-target-libatomic
47428maybe-html-target-libatomic:
47429@if target-libatomic
47430maybe-html-target-libatomic: html-target-libatomic
47431
47432html-target-libatomic: \
47433 configure-target-libatomic
47434 @: $(MAKE); $(unstage)
22121df0 47435 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47436 r=`${PWD_COMMAND}`; export r; \
47437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47438 $(NORMAL_TARGET_EXPORTS) \
22121df0 47439 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47440 for flag in $(EXTRA_TARGET_FLAGS); do \
47441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47442 done; \
47443 (cd $(TARGET_SUBDIR)/libatomic && \
47444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47446 "RANLIB=$${RANLIB}" \
47447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47448 html) \
47449 || exit 1
47450
47451@endif target-libatomic
47452
47453.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
47454maybe-TAGS-target-libatomic:
47455@if target-libatomic
47456maybe-TAGS-target-libatomic: TAGS-target-libatomic
47457
47458TAGS-target-libatomic: \
47459 configure-target-libatomic
47460 @: $(MAKE); $(unstage)
22121df0 47461 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47462 r=`${PWD_COMMAND}`; export r; \
47463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47464 $(NORMAL_TARGET_EXPORTS) \
22121df0 47465 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47466 for flag in $(EXTRA_TARGET_FLAGS); do \
47467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47468 done; \
47469 (cd $(TARGET_SUBDIR)/libatomic && \
47470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47472 "RANLIB=$${RANLIB}" \
47473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47474 TAGS) \
47475 || exit 1
47476
47477@endif target-libatomic
47478
47479.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
47480maybe-install-info-target-libatomic:
47481@if target-libatomic
47482maybe-install-info-target-libatomic: install-info-target-libatomic
47483
47484install-info-target-libatomic: \
47485 configure-target-libatomic \
47486 info-target-libatomic
47487 @: $(MAKE); $(unstage)
22121df0 47488 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47489 r=`${PWD_COMMAND}`; export r; \
47490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47491 $(NORMAL_TARGET_EXPORTS) \
22121df0 47492 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47493 for flag in $(EXTRA_TARGET_FLAGS); do \
47494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47495 done; \
47496 (cd $(TARGET_SUBDIR)/libatomic && \
47497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47499 "RANLIB=$${RANLIB}" \
47500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47501 install-info) \
47502 || exit 1
47503
47504@endif target-libatomic
47505
47506.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
47507maybe-install-pdf-target-libatomic:
47508@if target-libatomic
47509maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
47510
47511install-pdf-target-libatomic: \
47512 configure-target-libatomic \
47513 pdf-target-libatomic
47514 @: $(MAKE); $(unstage)
22121df0 47515 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47516 r=`${PWD_COMMAND}`; export r; \
47517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47518 $(NORMAL_TARGET_EXPORTS) \
22121df0 47519 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47520 for flag in $(EXTRA_TARGET_FLAGS); do \
47521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47522 done; \
47523 (cd $(TARGET_SUBDIR)/libatomic && \
47524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47526 "RANLIB=$${RANLIB}" \
47527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47528 install-pdf) \
47529 || exit 1
47530
47531@endif target-libatomic
47532
47533.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
47534maybe-install-html-target-libatomic:
47535@if target-libatomic
47536maybe-install-html-target-libatomic: install-html-target-libatomic
47537
47538install-html-target-libatomic: \
47539 configure-target-libatomic \
47540 html-target-libatomic
47541 @: $(MAKE); $(unstage)
22121df0 47542 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47543 r=`${PWD_COMMAND}`; export r; \
47544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47545 $(NORMAL_TARGET_EXPORTS) \
22121df0 47546 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47547 for flag in $(EXTRA_TARGET_FLAGS); do \
47548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47549 done; \
47550 (cd $(TARGET_SUBDIR)/libatomic && \
47551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47553 "RANLIB=$${RANLIB}" \
47554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47555 install-html) \
47556 || exit 1
47557
47558@endif target-libatomic
47559
47560.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
47561maybe-installcheck-target-libatomic:
47562@if target-libatomic
47563maybe-installcheck-target-libatomic: installcheck-target-libatomic
47564
47565installcheck-target-libatomic: \
47566 configure-target-libatomic
47567 @: $(MAKE); $(unstage)
22121df0 47568 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47569 r=`${PWD_COMMAND}`; export r; \
47570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47571 $(NORMAL_TARGET_EXPORTS) \
22121df0 47572 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47573 for flag in $(EXTRA_TARGET_FLAGS); do \
47574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47575 done; \
47576 (cd $(TARGET_SUBDIR)/libatomic && \
47577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47579 "RANLIB=$${RANLIB}" \
47580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47581 installcheck) \
47582 || exit 1
47583
47584@endif target-libatomic
47585
47586.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
47587maybe-mostlyclean-target-libatomic:
47588@if target-libatomic
47589maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
47590
47591mostlyclean-target-libatomic:
47592 @: $(MAKE); $(unstage)
22121df0 47593 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47594 r=`${PWD_COMMAND}`; export r; \
47595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47596 $(NORMAL_TARGET_EXPORTS) \
22121df0 47597 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47598 for flag in $(EXTRA_TARGET_FLAGS); do \
47599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47600 done; \
47601 (cd $(TARGET_SUBDIR)/libatomic && \
47602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47604 "RANLIB=$${RANLIB}" \
47605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47606 mostlyclean) \
47607 || exit 1
47608
47609@endif target-libatomic
47610
47611.PHONY: maybe-clean-target-libatomic clean-target-libatomic
47612maybe-clean-target-libatomic:
47613@if target-libatomic
47614maybe-clean-target-libatomic: clean-target-libatomic
47615
47616clean-target-libatomic:
47617 @: $(MAKE); $(unstage)
22121df0 47618 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47619 r=`${PWD_COMMAND}`; export r; \
47620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47621 $(NORMAL_TARGET_EXPORTS) \
22121df0 47622 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47623 for flag in $(EXTRA_TARGET_FLAGS); do \
47624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47625 done; \
47626 (cd $(TARGET_SUBDIR)/libatomic && \
47627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47629 "RANLIB=$${RANLIB}" \
47630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47631 clean) \
47632 || exit 1
47633
47634@endif target-libatomic
47635
47636.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
47637maybe-distclean-target-libatomic:
47638@if target-libatomic
47639maybe-distclean-target-libatomic: distclean-target-libatomic
47640
47641distclean-target-libatomic:
47642 @: $(MAKE); $(unstage)
22121df0 47643 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47644 r=`${PWD_COMMAND}`; export r; \
47645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47646 $(NORMAL_TARGET_EXPORTS) \
22121df0 47647 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47648 for flag in $(EXTRA_TARGET_FLAGS); do \
47649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47650 done; \
47651 (cd $(TARGET_SUBDIR)/libatomic && \
47652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47654 "RANLIB=$${RANLIB}" \
47655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47656 distclean) \
47657 || exit 1
47658
47659@endif target-libatomic
47660
47661.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
47662maybe-maintainer-clean-target-libatomic:
47663@if target-libatomic
47664maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
47665
47666maintainer-clean-target-libatomic:
47667 @: $(MAKE); $(unstage)
22121df0 47668 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47669 r=`${PWD_COMMAND}`; export r; \
47670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47671 $(NORMAL_TARGET_EXPORTS) \
22121df0 47672 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47673 for flag in $(EXTRA_TARGET_FLAGS); do \
47674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47675 done; \
47676 (cd $(TARGET_SUBDIR)/libatomic && \
47677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47679 "RANLIB=$${RANLIB}" \
47680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47681 maintainer-clean) \
47682 || exit 1
47683
47684@endif target-libatomic
47685
47686
47687
7ec59b9e
L
47688@if target-libgomp
47689.PHONY: check-target-libgomp-c++
47690check-target-libgomp-c++:
47691 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
47692
47693@endif target-libgomp
47694
47695@if target-libitm
47696.PHONY: check-target-libitm-c++
47697check-target-libitm-c++:
47698 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
47699
47700@endif target-libitm
47701
15723a45
NN
47702# ----------
47703# GCC module
47704# ----------
47705
319cab08 47706@if gcc-no-bootstrap
252b5132 47707.PHONY: cross
72b2455a 47708cross: all-build all-gas all-ld
b40e3958
L
47709 @r=`${PWD_COMMAND}`; export r; \
47710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47711 $(HOST_EXPORTS) \
252b5132 47712 echo "Building the C and C++ compiler"; \
5cec67bf 47713 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 47714 @r=`${PWD_COMMAND}`; export r; \
22121df0 47715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 47716 echo "Building runtime libraries"; \
656fdd47 47717 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 47718@endif gcc-no-bootstrap
252b5132 47719
6bd3dfaa 47720@if gcc
c50523ce
L
47721
47722.PHONY: check-gcc-c check-c
47723check-gcc-c:
47724 r=`${PWD_COMMAND}`; export r; \
47725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47726 $(HOST_EXPORTS) \
47727 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
47728check-c: check-gcc-c
47729
47730.PHONY: check-gcc-c++ check-c++
7d695d07 47731check-gcc-c++:
c50523ce
L
47732 r=`${PWD_COMMAND}`; export r; \
47733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47734 $(HOST_EXPORTS) \
7ec59b9e 47735 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 47736check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
47737
47738.PHONY: check-gcc-fortran check-fortran
47739check-gcc-fortran:
47740 r=`${PWD_COMMAND}`; export r; \
47741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47742 $(HOST_EXPORTS) \
47743 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e552509b 47744check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
c50523ce
L
47745
47746.PHONY: check-gcc-java check-java
47747check-gcc-java:
47748 r=`${PWD_COMMAND}`; export r; \
47749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47750 $(HOST_EXPORTS) \
47751 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
47752check-java: check-gcc-java check-target-libjava
47753
47754.PHONY: check-gcc-ada check-ada
47755check-gcc-ada:
47756 r=`${PWD_COMMAND}`; export r; \
47757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47758 $(HOST_EXPORTS) \
47759 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
47760check-ada: check-gcc-ada check-target-libada
47761
47762.PHONY: check-gcc-objc check-objc
47763check-gcc-objc:
47764 r=`${PWD_COMMAND}`; export r; \
47765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47766 $(HOST_EXPORTS) \
47767 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
47768check-objc: check-gcc-objc check-target-libobjc
47769
47770.PHONY: check-gcc-obj-c++ check-obj-c++
47771check-gcc-obj-c++:
47772 r=`${PWD_COMMAND}`; export r; \
47773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47774 $(HOST_EXPORTS) \
47775 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
47776check-obj-c++: check-gcc-obj-c++
7d695d07 47777
e552509b
ILT
47778.PHONY: check-gcc-go check-go
47779check-gcc-go:
47780 r=`${PWD_COMMAND}`; export r; \
47781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47782 $(HOST_EXPORTS) \
47783 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
47784check-go: check-gcc-go check-target-libgo
47785
252b5132 47786
7ec59b9e
L
47787# The gcc part of install-no-fixedincludes, which relies on an intimate
47788# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
47789.PHONY: gcc-install-no-fixedincludes
47790gcc-install-no-fixedincludes:
15723a45 47791 @if [ -f ./gcc/Makefile ]; then \
b40e3958 47792 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 47793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47794 $(HOST_EXPORTS) \
7ec59b9e
L
47795 (cd ./gcc \
47796 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 47797 else true; fi
6bd3dfaa 47798@endif gcc
4fa63067 47799
b813574b
PB
47800# ---------------------
47801# GCC bootstrap support
47802# ---------------------
4fa63067 47803
b813574b
PB
47804# We track the current stage (the one in 'gcc') in the stage_current file.
47805# stage_last instead tracks the stage that was built last. These targets
47806# are dummy when toplevel bootstrap is not active.
4fa63067 47807
f70224b5 47808# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
47809# there, so $(unstage) should be run at various points. To avoid excessive
47810# recursive invocations of make, we "inline" them using a variable. These
47811# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
47812# to avoid warnings from the GNU Make job server.
f70224b5
PB
47813
47814unstage = :
47815stage = :
c52c6897 47816current_stage = ""
f70224b5 47817
b813574b 47818@if gcc-bootstrap
9daf3993 47819unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 47820stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 47821current_stage = "`cat stage_current 2> /dev/null`"
b813574b 47822@endif gcc-bootstrap
4fa63067 47823
f70224b5
PB
47824.PHONY: unstage stage
47825unstage:
0aed8855 47826 @: $(MAKE); $(unstage)
b813574b 47827stage:
0aed8855 47828 @: $(MAKE); $(stage)
1d39f329 47829
80911fe1
PB
47830# Disable commands for lean bootstrap.
47831LEAN = false
47832
dfdffa2c
PB
47833# We name the build directories for the various stages "stage1-gcc",
47834# "stage2-gcc","stage3-gcc", etc.
47835
47836# Since the 'compare' process will fail (on debugging information) if any
47837# directory names are different, we need to link the gcc directory for
0aed8855 47838# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
47839# the build directories constant as well. For the latter, we use naked names
47840# like 'gcc', because the scripts in that directory assume it. We use
47841# mv on platforms where symlinks to directories do not work or are not
47842# reliable.
47843
1d39f329
NN
47844# 'touch' doesn't work right on some platforms.
47845STAMP = echo timestamp >
47846
dfdffa2c
PB
47847# We only want to compare .o files, so set this!
47848objext = .o
47849
dfdffa2c 47850
319cab08 47851.PHONY: stage1-start stage1-end
dfdffa2c 47852
656fdd47 47853stage1-start::
0aed8855 47854 @: $(MAKE); $(stage); \
22121df0 47855 echo stage1 > stage_current; \
b00612cc 47856 echo stage1 > stage_last; \
0aed8855 47857 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47858@if bfd
b00612cc
PB
47859 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
47860 mkdir stage1-bfd; \
22121df0 47861 mv stage1-bfd bfd
72b2455a
PB
47862@endif bfd
47863@if opcodes
b00612cc
PB
47864 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
47865 mkdir stage1-opcodes; \
22121df0 47866 mv stage1-opcodes opcodes
72b2455a
PB
47867@endif opcodes
47868@if binutils
b00612cc
PB
47869 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
47870 mkdir stage1-binutils; \
22121df0 47871 mv stage1-binutils binutils
72b2455a 47872@endif binutils
201f096f 47873@if fixincludes
47874 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
47875 mkdir stage1-fixincludes; \
22121df0 47876 mv stage1-fixincludes fixincludes
201f096f 47877@endif fixincludes
72b2455a 47878@if gas
b00612cc
PB
47879 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
47880 mkdir stage1-gas; \
22121df0 47881 mv stage1-gas gas
72b2455a
PB
47882@endif gas
47883@if gcc
b00612cc
PB
47884 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
47885 mkdir stage1-gcc; \
22121df0 47886 mv stage1-gcc gcc
72b2455a 47887@endif gcc
4b900473
PB
47888@if gmp
47889 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
47890 mkdir stage1-gmp; \
22121df0 47891 mv stage1-gmp gmp
4b900473
PB
47892@endif gmp
47893@if mpfr
47894 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
47895 mkdir stage1-mpfr; \
22121df0 47896 mv stage1-mpfr mpfr
4b900473 47897@endif mpfr
e8a5fa9c
RW
47898@if mpc
47899 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
47900 mkdir stage1-mpc; \
22121df0 47901 mv stage1-mpc mpc
e8a5fa9c 47902@endif mpc
7ec59b9e
L
47903@if isl
47904 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
47905 mkdir stage1-isl; \
22121df0 47906 mv stage1-isl isl
7ec59b9e 47907@endif isl
1f53ca9a
AO
47908@if libelf
47909 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
47910 mkdir stage1-libelf; \
22121df0 47911 mv stage1-libelf libelf
1f53ca9a 47912@endif libelf
93f9b408
ILT
47913@if gold
47914 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
47915 mkdir stage1-gold; \
22121df0 47916 mv stage1-gold gold
93f9b408 47917@endif gold
72b2455a 47918@if intl
b00612cc
PB
47919 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
47920 mkdir stage1-intl; \
22121df0 47921 mv stage1-intl intl
72b2455a
PB
47922@endif intl
47923@if ld
b00612cc
PB
47924 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
47925 mkdir stage1-ld; \
22121df0 47926 mv stage1-ld ld
72b2455a 47927@endif ld
2bf680c4
ILT
47928@if libbacktrace
47929 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
47930 mkdir stage1-libbacktrace; \
22121df0 47931 mv stage1-libbacktrace libbacktrace
2bf680c4 47932@endif libbacktrace
72b2455a 47933@if libcpp
b00612cc
PB
47934 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
47935 mkdir stage1-libcpp; \
22121df0 47936 mv stage1-libcpp libcpp
72b2455a 47937@endif libcpp
be01d343
PB
47938@if libdecnumber
47939 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
47940 mkdir stage1-libdecnumber; \
22121df0 47941 mv stage1-libdecnumber libdecnumber
be01d343 47942@endif libdecnumber
72b2455a 47943@if libiberty
b00612cc
PB
47944 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
47945 mkdir stage1-libiberty; \
22121df0 47946 mv stage1-libiberty libiberty
72b2455a 47947@endif libiberty
1b6c0831
L
47948@if libiberty-linker-plugin
47949 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
47950 mkdir stage1-libiberty-linker-plugin; \
22121df0 47951 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 47952@endif libiberty-linker-plugin
016a3251
DD
47953@if libiconv
47954 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
47955 mkdir stage1-libiconv; \
47956 mv stage1-libiconv libiconv
47957@endif libiconv
72b2455a 47958@if zlib
b00612cc
PB
47959 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
47960 mkdir stage1-zlib; \
22121df0 47961 mv stage1-zlib zlib
72b2455a 47962@endif zlib
700d40ca
ILT
47963@if lto-plugin
47964 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
47965 mkdir stage1-lto-plugin; \
22121df0 47966 mv stage1-lto-plugin lto-plugin
700d40ca 47967@endif lto-plugin
0aed8855
PB
47968 @[ -d stage1-$(TARGET_SUBDIR) ] || \
47969 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 47970 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 47971
80911fe1 47972stage1-end::
72b2455a 47973@if bfd
22121df0
L
47974 @if test -d $(HOST_SUBDIR)/bfd; then \
47975 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 47976 fi
72b2455a
PB
47977@endif bfd
47978@if opcodes
22121df0
L
47979 @if test -d $(HOST_SUBDIR)/opcodes; then \
47980 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 47981 fi
72b2455a
PB
47982@endif opcodes
47983@if binutils
22121df0
L
47984 @if test -d $(HOST_SUBDIR)/binutils; then \
47985 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 47986 fi
72b2455a 47987@endif binutils
201f096f 47988@if fixincludes
22121df0
L
47989 @if test -d $(HOST_SUBDIR)/fixincludes; then \
47990 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 47991 fi
47992@endif fixincludes
72b2455a 47993@if gas
22121df0
L
47994 @if test -d $(HOST_SUBDIR)/gas; then \
47995 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 47996 fi
72b2455a
PB
47997@endif gas
47998@if gcc
22121df0
L
47999 @if test -d $(HOST_SUBDIR)/gcc; then \
48000 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 48001 fi
72b2455a 48002@endif gcc
4b900473 48003@if gmp
22121df0
L
48004 @if test -d $(HOST_SUBDIR)/gmp; then \
48005 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
48006 fi
48007@endif gmp
48008@if mpfr
22121df0
L
48009 @if test -d $(HOST_SUBDIR)/mpfr; then \
48010 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
48011 fi
48012@endif mpfr
e8a5fa9c 48013@if mpc
22121df0
L
48014 @if test -d $(HOST_SUBDIR)/mpc; then \
48015 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
48016 fi
48017@endif mpc
7ec59b9e 48018@if isl
22121df0
L
48019 @if test -d $(HOST_SUBDIR)/isl; then \
48020 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 48021 fi
7ec59b9e 48022@endif isl
1f53ca9a 48023@if libelf
22121df0
L
48024 @if test -d $(HOST_SUBDIR)/libelf; then \
48025 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
48026 fi
48027@endif libelf
93f9b408 48028@if gold
22121df0
L
48029 @if test -d $(HOST_SUBDIR)/gold; then \
48030 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
48031 fi
48032@endif gold
72b2455a 48033@if intl
22121df0
L
48034 @if test -d $(HOST_SUBDIR)/intl; then \
48035 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 48036 fi
72b2455a
PB
48037@endif intl
48038@if ld
22121df0
L
48039 @if test -d $(HOST_SUBDIR)/ld; then \
48040 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 48041 fi
72b2455a 48042@endif ld
2bf680c4 48043@if libbacktrace
22121df0
L
48044 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48045 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
48046 fi
48047@endif libbacktrace
72b2455a 48048@if libcpp
22121df0
L
48049 @if test -d $(HOST_SUBDIR)/libcpp; then \
48050 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 48051 fi
72b2455a 48052@endif libcpp
be01d343 48053@if libdecnumber
22121df0
L
48054 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48055 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 48056 fi
be01d343 48057@endif libdecnumber
72b2455a 48058@if libiberty
22121df0
L
48059 @if test -d $(HOST_SUBDIR)/libiberty; then \
48060 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 48061 fi
72b2455a 48062@endif libiberty
1b6c0831 48063@if libiberty-linker-plugin
22121df0
L
48064 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48065 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
48066 fi
48067@endif libiberty-linker-plugin
016a3251
DD
48068@if libiconv
48069 @if test -d $(HOST_SUBDIR)/libiconv; then \
48070 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
48071 fi
48072@endif libiconv
72b2455a 48073@if zlib
22121df0
L
48074 @if test -d $(HOST_SUBDIR)/zlib; then \
48075 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 48076 fi
72b2455a 48077@endif zlib
700d40ca 48078@if lto-plugin
22121df0
L
48079 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48080 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
48081 fi
48082@endif lto-plugin
22121df0
L
48083 @if test -d $(TARGET_SUBDIR); then \
48084 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 48085 fi
80911fe1 48086 rm -f stage_current
dfdffa2c 48087
973601e1 48088# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 48089# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48090# reconfigured either.
319cab08 48091.PHONY: stage1-bubble
656fdd47 48092stage1-bubble::
e360f423
PB
48093 @r=`${PWD_COMMAND}`; export r; \
48094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48095 if test -f stage1-lean ; then \
48096 echo Skipping rebuild of stage1; \
9cb3fa6f 48097 else \
f70224b5
PB
48098 $(MAKE) stage1-start; \
48099 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 48100 fi
72b2455a 48101
0df3d27f 48102.PHONY: all-stage1 clean-stage1
0df3d27f 48103do-clean: clean-stage1
0df3d27f 48104
72b2455a
PB
48105# FIXME: Will not need to be conditional when toplevel bootstrap is the
48106# only possibility, but now it conflicts with no-bootstrap rules
48107@if gcc-bootstrap
48108
48109
48110
48111
0df3d27f 48112# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48113
0df3d27f 48114.PHONY: distclean-stage1
72b2455a 48115distclean-stage1::
0aed8855 48116 @: $(MAKE); $(stage)
e00a73e3 48117 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 48118 rm -rf stage1-*
72b2455a
PB
48119
48120
48121@endif gcc-bootstrap
48122
48123
48124.PHONY: stage2-start stage2-end
48125
48126stage2-start::
0aed8855 48127 @: $(MAKE); $(stage); \
22121df0 48128 echo stage2 > stage_current; \
b00612cc 48129 echo stage2 > stage_last; \
0aed8855 48130 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48131@if bfd
b00612cc
PB
48132 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
48133 mkdir stage2-bfd; \
22121df0 48134 mv stage2-bfd bfd; \
80911fe1 48135 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48136@endif bfd
48137@if opcodes
b00612cc
PB
48138 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
48139 mkdir stage2-opcodes; \
22121df0 48140 mv stage2-opcodes opcodes; \
80911fe1 48141 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48142@endif opcodes
48143@if binutils
b00612cc
PB
48144 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
48145 mkdir stage2-binutils; \
22121df0 48146 mv stage2-binutils binutils; \
80911fe1 48147 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48148@endif binutils
201f096f 48149@if fixincludes
48150 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
48151 mkdir stage2-fixincludes; \
22121df0 48152 mv stage2-fixincludes fixincludes; \
201f096f 48153 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48154@endif fixincludes
72b2455a 48155@if gas
b00612cc
PB
48156 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
48157 mkdir stage2-gas; \
22121df0 48158 mv stage2-gas gas; \
80911fe1 48159 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48160@endif gas
48161@if gcc
b00612cc
PB
48162 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
48163 mkdir stage2-gcc; \
22121df0 48164 mv stage2-gcc gcc; \
80911fe1 48165 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48166@endif gcc
4b900473
PB
48167@if gmp
48168 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
48169 mkdir stage2-gmp; \
22121df0 48170 mv stage2-gmp gmp; \
4b900473
PB
48171 mv stage1-gmp prev-gmp || test -f stage1-lean
48172@endif gmp
48173@if mpfr
48174 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
48175 mkdir stage2-mpfr; \
22121df0 48176 mv stage2-mpfr mpfr; \
4b900473
PB
48177 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48178@endif mpfr
e8a5fa9c
RW
48179@if mpc
48180 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
48181 mkdir stage2-mpc; \
22121df0 48182 mv stage2-mpc mpc; \
e8a5fa9c
RW
48183 mv stage1-mpc prev-mpc || test -f stage1-lean
48184@endif mpc
7ec59b9e
L
48185@if isl
48186 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
48187 mkdir stage2-isl; \
22121df0 48188 mv stage2-isl isl; \
7ec59b9e
L
48189 mv stage1-isl prev-isl || test -f stage1-lean
48190@endif isl
1f53ca9a
AO
48191@if libelf
48192 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
48193 mkdir stage2-libelf; \
22121df0 48194 mv stage2-libelf libelf; \
1f53ca9a
AO
48195 mv stage1-libelf prev-libelf || test -f stage1-lean
48196@endif libelf
93f9b408
ILT
48197@if gold
48198 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
48199 mkdir stage2-gold; \
22121df0 48200 mv stage2-gold gold; \
93f9b408
ILT
48201 mv stage1-gold prev-gold || test -f stage1-lean
48202@endif gold
72b2455a 48203@if intl
b00612cc
PB
48204 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
48205 mkdir stage2-intl; \
22121df0 48206 mv stage2-intl intl; \
80911fe1 48207 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48208@endif intl
48209@if ld
b00612cc
PB
48210 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
48211 mkdir stage2-ld; \
22121df0 48212 mv stage2-ld ld; \
80911fe1 48213 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48214@endif ld
2bf680c4
ILT
48215@if libbacktrace
48216 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
48217 mkdir stage2-libbacktrace; \
22121df0 48218 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
48219 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48220@endif libbacktrace
72b2455a 48221@if libcpp
b00612cc
PB
48222 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
48223 mkdir stage2-libcpp; \
22121df0 48224 mv stage2-libcpp libcpp; \
80911fe1 48225 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48226@endif libcpp
be01d343
PB
48227@if libdecnumber
48228 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
48229 mkdir stage2-libdecnumber; \
22121df0 48230 mv stage2-libdecnumber libdecnumber; \
80911fe1 48231 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48232@endif libdecnumber
72b2455a 48233@if libiberty
b00612cc
PB
48234 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
48235 mkdir stage2-libiberty; \
22121df0 48236 mv stage2-libiberty libiberty; \
80911fe1 48237 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48238@endif libiberty
1b6c0831
L
48239@if libiberty-linker-plugin
48240 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
48241 mkdir stage2-libiberty-linker-plugin; \
22121df0 48242 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48243 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48244@endif libiberty-linker-plugin
016a3251
DD
48245@if libiconv
48246 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
48247 mkdir stage2-libiconv; \
48248 mv stage2-libiconv libiconv; \
48249 mv stage1-libiconv prev-libiconv || test -f stage1-lean
48250@endif libiconv
72b2455a 48251@if zlib
b00612cc
PB
48252 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
48253 mkdir stage2-zlib; \
22121df0 48254 mv stage2-zlib zlib; \
80911fe1 48255 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 48256@endif zlib
700d40ca
ILT
48257@if lto-plugin
48258 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
48259 mkdir stage2-lto-plugin; \
22121df0 48260 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
48261 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48262@endif lto-plugin
0aed8855
PB
48263 @[ -d stage2-$(TARGET_SUBDIR) ] || \
48264 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 48265 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48266 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 48267
80911fe1 48268stage2-end::
72b2455a 48269@if bfd
22121df0
L
48270 @if test -d $(HOST_SUBDIR)/bfd; then \
48271 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
48272 mv prev-bfd stage1-bfd; : ; \
0aed8855 48273 fi
72b2455a
PB
48274@endif bfd
48275@if opcodes
22121df0
L
48276 @if test -d $(HOST_SUBDIR)/opcodes; then \
48277 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
48278 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 48279 fi
72b2455a
PB
48280@endif opcodes
48281@if binutils
22121df0
L
48282 @if test -d $(HOST_SUBDIR)/binutils; then \
48283 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
48284 mv prev-binutils stage1-binutils; : ; \
0aed8855 48285 fi
72b2455a 48286@endif binutils
201f096f 48287@if fixincludes
22121df0
L
48288 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48289 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
48290 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 48291 fi
48292@endif fixincludes
72b2455a 48293@if gas
22121df0
L
48294 @if test -d $(HOST_SUBDIR)/gas; then \
48295 cd $(HOST_SUBDIR); mv gas stage2-gas; \
48296 mv prev-gas stage1-gas; : ; \
0aed8855 48297 fi
72b2455a
PB
48298@endif gas
48299@if gcc
22121df0
L
48300 @if test -d $(HOST_SUBDIR)/gcc; then \
48301 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
48302 mv prev-gcc stage1-gcc; : ; \
0aed8855 48303 fi
72b2455a 48304@endif gcc
4b900473 48305@if gmp
22121df0
L
48306 @if test -d $(HOST_SUBDIR)/gmp; then \
48307 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
48308 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
48309 fi
48310@endif gmp
48311@if mpfr
22121df0
L
48312 @if test -d $(HOST_SUBDIR)/mpfr; then \
48313 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
48314 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
48315 fi
48316@endif mpfr
e8a5fa9c 48317@if mpc
22121df0
L
48318 @if test -d $(HOST_SUBDIR)/mpc; then \
48319 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
48320 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
48321 fi
48322@endif mpc
7ec59b9e 48323@if isl
22121df0
L
48324 @if test -d $(HOST_SUBDIR)/isl; then \
48325 cd $(HOST_SUBDIR); mv isl stage2-isl; \
48326 mv prev-isl stage1-isl; : ; \
e28c595f 48327 fi
7ec59b9e 48328@endif isl
1f53ca9a 48329@if libelf
22121df0
L
48330 @if test -d $(HOST_SUBDIR)/libelf; then \
48331 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
48332 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
48333 fi
48334@endif libelf
93f9b408 48335@if gold
22121df0
L
48336 @if test -d $(HOST_SUBDIR)/gold; then \
48337 cd $(HOST_SUBDIR); mv gold stage2-gold; \
48338 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
48339 fi
48340@endif gold
72b2455a 48341@if intl
22121df0
L
48342 @if test -d $(HOST_SUBDIR)/intl; then \
48343 cd $(HOST_SUBDIR); mv intl stage2-intl; \
48344 mv prev-intl stage1-intl; : ; \
0aed8855 48345 fi
72b2455a
PB
48346@endif intl
48347@if ld
22121df0
L
48348 @if test -d $(HOST_SUBDIR)/ld; then \
48349 cd $(HOST_SUBDIR); mv ld stage2-ld; \
48350 mv prev-ld stage1-ld; : ; \
0aed8855 48351 fi
72b2455a 48352@endif ld
2bf680c4 48353@if libbacktrace
22121df0
L
48354 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48355 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
48356 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
48357 fi
48358@endif libbacktrace
72b2455a 48359@if libcpp
22121df0
L
48360 @if test -d $(HOST_SUBDIR)/libcpp; then \
48361 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
48362 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 48363 fi
72b2455a 48364@endif libcpp
be01d343 48365@if libdecnumber
22121df0
L
48366 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48367 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
48368 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 48369 fi
be01d343 48370@endif libdecnumber
72b2455a 48371@if libiberty
22121df0
L
48372 @if test -d $(HOST_SUBDIR)/libiberty; then \
48373 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
48374 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 48375 fi
72b2455a 48376@endif libiberty
1b6c0831 48377@if libiberty-linker-plugin
22121df0
L
48378 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48379 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
48380 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
48381 fi
48382@endif libiberty-linker-plugin
016a3251
DD
48383@if libiconv
48384 @if test -d $(HOST_SUBDIR)/libiconv; then \
48385 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
48386 mv prev-libiconv stage1-libiconv; : ; \
48387 fi
48388@endif libiconv
72b2455a 48389@if zlib
22121df0
L
48390 @if test -d $(HOST_SUBDIR)/zlib; then \
48391 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
48392 mv prev-zlib stage1-zlib; : ; \
0aed8855 48393 fi
72b2455a 48394@endif zlib
700d40ca 48395@if lto-plugin
22121df0
L
48396 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48397 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
48398 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
48399 fi
48400@endif lto-plugin
22121df0
L
48401 @if test -d $(TARGET_SUBDIR); then \
48402 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
48403 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 48404 fi
80911fe1 48405 rm -f stage_current
72b2455a 48406
973601e1 48407# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 48408# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48409# reconfigured either.
72b2455a
PB
48410.PHONY: stage2-bubble
48411stage2-bubble:: stage1-bubble
e360f423
PB
48412 @r=`${PWD_COMMAND}`; export r; \
48413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48414 if test -f stage2-lean || test -f stage1-lean ; then \
48415 echo Skipping rebuild of stage2; \
9cb3fa6f 48416 else \
f70224b5
PB
48417 $(MAKE) stage2-start; \
48418 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 48419 fi
72b2455a 48420
0df3d27f 48421.PHONY: all-stage2 clean-stage2
0df3d27f 48422do-clean: clean-stage2
0df3d27f 48423
72b2455a
PB
48424# FIXME: Will not need to be conditional when toplevel bootstrap is the
48425# only possibility, but now it conflicts with no-bootstrap rules
48426@if gcc-bootstrap
48427
48428
48429
80911fe1 48430.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
48431bootstrap2:
48432 echo stage2 > stage_final
48433 @r=`${PWD_COMMAND}`; export r; \
48434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48435 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 48436 @: $(MAKE); $(unstage)
be01d343
PB
48437 @r=`${PWD_COMMAND}`; export r; \
48438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48439 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 48440 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 48441
80911fe1
PB
48442bootstrap2-lean:
48443 echo stage2 > stage_final
48444 @r=`${PWD_COMMAND}`; export r; \
48445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48446 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
48447 @: $(MAKE); $(unstage)
48448 @r=`${PWD_COMMAND}`; export r; \
48449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48450 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
48451 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48452
72b2455a 48453
0df3d27f 48454# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48455distclean-stage1:: distclean-stage2
0df3d27f 48456.PHONY: distclean-stage2
72b2455a 48457distclean-stage2::
0aed8855 48458 @: $(MAKE); $(stage)
e00a73e3 48459 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 48460 rm -rf stage2-*
72b2455a
PB
48461
48462
48463@endif gcc-bootstrap
48464
48465
48466.PHONY: stage3-start stage3-end
48467
48468stage3-start::
0aed8855 48469 @: $(MAKE); $(stage); \
22121df0 48470 echo stage3 > stage_current; \
b00612cc 48471 echo stage3 > stage_last; \
0aed8855 48472 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48473@if bfd
b00612cc
PB
48474 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
48475 mkdir stage3-bfd; \
22121df0 48476 mv stage3-bfd bfd; \
80911fe1 48477 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
48478@endif bfd
48479@if opcodes
b00612cc
PB
48480 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
48481 mkdir stage3-opcodes; \
22121df0 48482 mv stage3-opcodes opcodes; \
80911fe1 48483 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
48484@endif opcodes
48485@if binutils
b00612cc
PB
48486 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
48487 mkdir stage3-binutils; \
22121df0 48488 mv stage3-binutils binutils; \
80911fe1 48489 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 48490@endif binutils
201f096f 48491@if fixincludes
48492 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
48493 mkdir stage3-fixincludes; \
22121df0 48494 mv stage3-fixincludes fixincludes; \
201f096f 48495 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
48496@endif fixincludes
72b2455a 48497@if gas
b00612cc
PB
48498 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
48499 mkdir stage3-gas; \
22121df0 48500 mv stage3-gas gas; \
80911fe1 48501 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
48502@endif gas
48503@if gcc
b00612cc
PB
48504 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
48505 mkdir stage3-gcc; \
22121df0 48506 mv stage3-gcc gcc; \
80911fe1 48507 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 48508@endif gcc
4b900473
PB
48509@if gmp
48510 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
48511 mkdir stage3-gmp; \
22121df0 48512 mv stage3-gmp gmp; \
4b900473
PB
48513 mv stage2-gmp prev-gmp || test -f stage2-lean
48514@endif gmp
48515@if mpfr
48516 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
48517 mkdir stage3-mpfr; \
22121df0 48518 mv stage3-mpfr mpfr; \
4b900473
PB
48519 mv stage2-mpfr prev-mpfr || test -f stage2-lean
48520@endif mpfr
e8a5fa9c
RW
48521@if mpc
48522 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
48523 mkdir stage3-mpc; \
22121df0 48524 mv stage3-mpc mpc; \
e8a5fa9c
RW
48525 mv stage2-mpc prev-mpc || test -f stage2-lean
48526@endif mpc
7ec59b9e
L
48527@if isl
48528 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
48529 mkdir stage3-isl; \
22121df0 48530 mv stage3-isl isl; \
7ec59b9e
L
48531 mv stage2-isl prev-isl || test -f stage2-lean
48532@endif isl
1f53ca9a
AO
48533@if libelf
48534 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
48535 mkdir stage3-libelf; \
22121df0 48536 mv stage3-libelf libelf; \
1f53ca9a
AO
48537 mv stage2-libelf prev-libelf || test -f stage2-lean
48538@endif libelf
93f9b408
ILT
48539@if gold
48540 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
48541 mkdir stage3-gold; \
22121df0 48542 mv stage3-gold gold; \
93f9b408
ILT
48543 mv stage2-gold prev-gold || test -f stage2-lean
48544@endif gold
72b2455a 48545@if intl
b00612cc
PB
48546 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
48547 mkdir stage3-intl; \
22121df0 48548 mv stage3-intl intl; \
80911fe1 48549 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
48550@endif intl
48551@if ld
b00612cc
PB
48552 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
48553 mkdir stage3-ld; \
22121df0 48554 mv stage3-ld ld; \
80911fe1 48555 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 48556@endif ld
2bf680c4
ILT
48557@if libbacktrace
48558 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
48559 mkdir stage3-libbacktrace; \
22121df0 48560 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
48561 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
48562@endif libbacktrace
72b2455a 48563@if libcpp
b00612cc
PB
48564 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
48565 mkdir stage3-libcpp; \
22121df0 48566 mv stage3-libcpp libcpp; \
80911fe1 48567 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 48568@endif libcpp
be01d343
PB
48569@if libdecnumber
48570 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
48571 mkdir stage3-libdecnumber; \
22121df0 48572 mv stage3-libdecnumber libdecnumber; \
80911fe1 48573 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 48574@endif libdecnumber
72b2455a 48575@if libiberty
b00612cc
PB
48576 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
48577 mkdir stage3-libiberty; \
22121df0 48578 mv stage3-libiberty libiberty; \
80911fe1 48579 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 48580@endif libiberty
1b6c0831
L
48581@if libiberty-linker-plugin
48582 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
48583 mkdir stage3-libiberty-linker-plugin; \
22121df0 48584 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48585 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
48586@endif libiberty-linker-plugin
016a3251
DD
48587@if libiconv
48588 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
48589 mkdir stage3-libiconv; \
48590 mv stage3-libiconv libiconv; \
48591 mv stage2-libiconv prev-libiconv || test -f stage2-lean
48592@endif libiconv
72b2455a 48593@if zlib
b00612cc
PB
48594 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
48595 mkdir stage3-zlib; \
22121df0 48596 mv stage3-zlib zlib; \
80911fe1 48597 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 48598@endif zlib
700d40ca
ILT
48599@if lto-plugin
48600 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
48601 mkdir stage3-lto-plugin; \
22121df0 48602 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
48603 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
48604@endif lto-plugin
0aed8855
PB
48605 @[ -d stage3-$(TARGET_SUBDIR) ] || \
48606 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 48607 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48608 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 48609
80911fe1 48610stage3-end::
72b2455a 48611@if bfd
22121df0
L
48612 @if test -d $(HOST_SUBDIR)/bfd; then \
48613 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
48614 mv prev-bfd stage2-bfd; : ; \
0aed8855 48615 fi
72b2455a
PB
48616@endif bfd
48617@if opcodes
22121df0
L
48618 @if test -d $(HOST_SUBDIR)/opcodes; then \
48619 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
48620 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 48621 fi
72b2455a
PB
48622@endif opcodes
48623@if binutils
22121df0
L
48624 @if test -d $(HOST_SUBDIR)/binutils; then \
48625 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
48626 mv prev-binutils stage2-binutils; : ; \
0aed8855 48627 fi
72b2455a 48628@endif binutils
201f096f 48629@if fixincludes
22121df0
L
48630 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48631 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
48632 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 48633 fi
48634@endif fixincludes
72b2455a 48635@if gas
22121df0
L
48636 @if test -d $(HOST_SUBDIR)/gas; then \
48637 cd $(HOST_SUBDIR); mv gas stage3-gas; \
48638 mv prev-gas stage2-gas; : ; \
0aed8855 48639 fi
72b2455a
PB
48640@endif gas
48641@if gcc
22121df0
L
48642 @if test -d $(HOST_SUBDIR)/gcc; then \
48643 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
48644 mv prev-gcc stage2-gcc; : ; \
0aed8855 48645 fi
72b2455a 48646@endif gcc
4b900473 48647@if gmp
22121df0
L
48648 @if test -d $(HOST_SUBDIR)/gmp; then \
48649 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
48650 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
48651 fi
48652@endif gmp
48653@if mpfr
22121df0
L
48654 @if test -d $(HOST_SUBDIR)/mpfr; then \
48655 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
48656 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
48657 fi
48658@endif mpfr
e8a5fa9c 48659@if mpc
22121df0
L
48660 @if test -d $(HOST_SUBDIR)/mpc; then \
48661 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
48662 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
48663 fi
48664@endif mpc
7ec59b9e 48665@if isl
22121df0
L
48666 @if test -d $(HOST_SUBDIR)/isl; then \
48667 cd $(HOST_SUBDIR); mv isl stage3-isl; \
48668 mv prev-isl stage2-isl; : ; \
e28c595f 48669 fi
7ec59b9e 48670@endif isl
1f53ca9a 48671@if libelf
22121df0
L
48672 @if test -d $(HOST_SUBDIR)/libelf; then \
48673 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
48674 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
48675 fi
48676@endif libelf
93f9b408 48677@if gold
22121df0
L
48678 @if test -d $(HOST_SUBDIR)/gold; then \
48679 cd $(HOST_SUBDIR); mv gold stage3-gold; \
48680 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
48681 fi
48682@endif gold
72b2455a 48683@if intl
22121df0
L
48684 @if test -d $(HOST_SUBDIR)/intl; then \
48685 cd $(HOST_SUBDIR); mv intl stage3-intl; \
48686 mv prev-intl stage2-intl; : ; \
0aed8855 48687 fi
72b2455a
PB
48688@endif intl
48689@if ld
22121df0
L
48690 @if test -d $(HOST_SUBDIR)/ld; then \
48691 cd $(HOST_SUBDIR); mv ld stage3-ld; \
48692 mv prev-ld stage2-ld; : ; \
0aed8855 48693 fi
72b2455a 48694@endif ld
2bf680c4 48695@if libbacktrace
22121df0
L
48696 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48697 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
48698 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
48699 fi
48700@endif libbacktrace
72b2455a 48701@if libcpp
22121df0
L
48702 @if test -d $(HOST_SUBDIR)/libcpp; then \
48703 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
48704 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 48705 fi
72b2455a 48706@endif libcpp
be01d343 48707@if libdecnumber
22121df0
L
48708 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48709 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
48710 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 48711 fi
be01d343 48712@endif libdecnumber
72b2455a 48713@if libiberty
22121df0
L
48714 @if test -d $(HOST_SUBDIR)/libiberty; then \
48715 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
48716 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 48717 fi
72b2455a 48718@endif libiberty
1b6c0831 48719@if libiberty-linker-plugin
22121df0
L
48720 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48721 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
48722 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
48723 fi
48724@endif libiberty-linker-plugin
016a3251
DD
48725@if libiconv
48726 @if test -d $(HOST_SUBDIR)/libiconv; then \
48727 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
48728 mv prev-libiconv stage2-libiconv; : ; \
48729 fi
48730@endif libiconv
72b2455a 48731@if zlib
22121df0
L
48732 @if test -d $(HOST_SUBDIR)/zlib; then \
48733 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
48734 mv prev-zlib stage2-zlib; : ; \
0aed8855 48735 fi
72b2455a 48736@endif zlib
700d40ca 48737@if lto-plugin
22121df0
L
48738 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48739 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
48740 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
48741 fi
48742@endif lto-plugin
22121df0
L
48743 @if test -d $(TARGET_SUBDIR); then \
48744 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
48745 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 48746 fi
80911fe1 48747 rm -f stage_current
72b2455a 48748
973601e1 48749# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 48750# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48751# reconfigured either.
72b2455a
PB
48752.PHONY: stage3-bubble
48753stage3-bubble:: stage2-bubble
e360f423
PB
48754 @r=`${PWD_COMMAND}`; export r; \
48755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48756 if test -f stage3-lean || test -f stage2-lean ; then \
48757 echo Skipping rebuild of stage3; \
9cb3fa6f 48758 else \
f70224b5 48759 $(MAKE) stage3-start; \
80911fe1 48760 if $(LEAN); then \
22121df0
L
48761 rm -rf stage1-*; \
48762 $(STAMP) stage1-lean; \
80911fe1 48763 fi; \
f70224b5 48764 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 48765 fi
f6d183c0 48766 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 48767
0df3d27f 48768.PHONY: all-stage3 clean-stage3
0df3d27f 48769do-clean: clean-stage3
0df3d27f 48770
d545f33b
PB
48771# FIXME: Will not need to be conditional when toplevel bootstrap is the
48772# only possibility, but now it conflicts with no-bootstrap rules
48773@if gcc-bootstrap
72b2455a 48774
d545f33b 48775compare:
e360f423
PB
48776 @r=`${PWD_COMMAND}`; export r; \
48777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48778 if test -f stage2-lean; then \
22121df0
L
48779 echo Cannot compare object files as stage 2 was deleted.; \
48780 exit 0; \
d545f33b 48781 fi; \
0aed8855 48782 : $(MAKE); $(stage); \
22121df0
L
48783 rm -f .bad_compare; \
48784 echo Comparing stages 2 and 3; \
fda13ee8
AO
48785 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
48786 files=`find stage3-* -name "*$(objext)" -print | \
22121df0
L
48787 sed -n s,^stage$$sed-,,p`; \
48788 for file in $${files}; do \
fda13ee8
AO
48789 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
48790 if test ! -f $$f1; then continue; fi; \
8520c408 48791 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
48792 if test $$? -eq 1; then \
48793 case $$file in \
e8a5fa9c 48794 @compare_exclusions@) \
f70224b5
PB
48795 echo warning: $$file differs ;; \
48796 *) \
48797 echo $$file differs >> .bad_compare ;; \
22121df0
L
48798 esac; \
48799 fi; \
48800 done; \
d545f33b
PB
48801 if [ -f .bad_compare ]; then \
48802 echo "Bootstrap comparison failure!"; \
48803 cat .bad_compare; \
48804 exit 1; \
48805 else \
c52c6897 48806 echo Comparison successful.; \
22121df0 48807 fi; \
d545f33b 48808 $(STAMP) compare
80911fe1
PB
48809 if $(LEAN); then \
48810 rm -rf stage2-*; \
48811 $(STAMP) stage2-lean; \
48812 fi
9cb3fa6f 48813
72b2455a 48814
72b2455a 48815
80911fe1 48816.PHONY: bootstrap bootstrap-lean
be01d343
PB
48817bootstrap:
48818 echo stage3 > stage_final
48819 @r=`${PWD_COMMAND}`; export r; \
48820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48821 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 48822 @: $(MAKE); $(unstage)
be01d343
PB
48823 @r=`${PWD_COMMAND}`; export r; \
48824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48825 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 48826 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48827
80911fe1
PB
48828bootstrap-lean:
48829 echo stage3 > stage_final
48830 @r=`${PWD_COMMAND}`; export r; \
48831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48832 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
48833 @: $(MAKE); $(unstage)
48834 @r=`${PWD_COMMAND}`; export r; \
48835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48836 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
48837 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48838
72b2455a 48839
d545f33b
PB
48840# Rules to wipe a stage and all the following ones, also used for cleanstrap
48841distclean-stage2:: distclean-stage3
48842.PHONY: distclean-stage3
48843distclean-stage3::
0aed8855 48844 @: $(MAKE); $(stage)
e00a73e3 48845 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 48846 rm -rf stage3-* compare
0df3d27f 48847
9cb3fa6f 48848
d545f33b 48849.PHONY: cleanstrap
e00a73e3
PB
48850cleanstrap: do-distclean local-clean
48851 echo stage3 > stage_final
48852 @r=`${PWD_COMMAND}`; export r; \
48853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48854 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
48855 @: $(MAKE); $(unstage)
48856 @r=`${PWD_COMMAND}`; export r; \
48857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48858 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
48859 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48860
48861@endif gcc-bootstrap
48862
48863
72b2455a
PB
48864.PHONY: stage4-start stage4-end
48865
48866stage4-start::
0aed8855 48867 @: $(MAKE); $(stage); \
22121df0 48868 echo stage4 > stage_current; \
b00612cc 48869 echo stage4 > stage_last; \
0aed8855 48870 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48871@if bfd
b00612cc
PB
48872 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
48873 mkdir stage4-bfd; \
22121df0 48874 mv stage4-bfd bfd; \
80911fe1 48875 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
48876@endif bfd
48877@if opcodes
b00612cc
PB
48878 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
48879 mkdir stage4-opcodes; \
22121df0 48880 mv stage4-opcodes opcodes; \
80911fe1 48881 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
48882@endif opcodes
48883@if binutils
b00612cc
PB
48884 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
48885 mkdir stage4-binutils; \
22121df0 48886 mv stage4-binutils binutils; \
80911fe1 48887 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 48888@endif binutils
201f096f 48889@if fixincludes
48890 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
48891 mkdir stage4-fixincludes; \
22121df0 48892 mv stage4-fixincludes fixincludes; \
201f096f 48893 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
48894@endif fixincludes
72b2455a 48895@if gas
b00612cc
PB
48896 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
48897 mkdir stage4-gas; \
22121df0 48898 mv stage4-gas gas; \
80911fe1 48899 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
48900@endif gas
48901@if gcc
b00612cc
PB
48902 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
48903 mkdir stage4-gcc; \
22121df0 48904 mv stage4-gcc gcc; \
80911fe1 48905 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 48906@endif gcc
4b900473
PB
48907@if gmp
48908 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
48909 mkdir stage4-gmp; \
22121df0 48910 mv stage4-gmp gmp; \
4b900473
PB
48911 mv stage3-gmp prev-gmp || test -f stage3-lean
48912@endif gmp
48913@if mpfr
48914 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
48915 mkdir stage4-mpfr; \
22121df0 48916 mv stage4-mpfr mpfr; \
4b900473
PB
48917 mv stage3-mpfr prev-mpfr || test -f stage3-lean
48918@endif mpfr
e8a5fa9c
RW
48919@if mpc
48920 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
48921 mkdir stage4-mpc; \
22121df0 48922 mv stage4-mpc mpc; \
e8a5fa9c
RW
48923 mv stage3-mpc prev-mpc || test -f stage3-lean
48924@endif mpc
7ec59b9e
L
48925@if isl
48926 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
48927 mkdir stage4-isl; \
22121df0 48928 mv stage4-isl isl; \
7ec59b9e
L
48929 mv stage3-isl prev-isl || test -f stage3-lean
48930@endif isl
1f53ca9a
AO
48931@if libelf
48932 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
48933 mkdir stage4-libelf; \
22121df0 48934 mv stage4-libelf libelf; \
1f53ca9a
AO
48935 mv stage3-libelf prev-libelf || test -f stage3-lean
48936@endif libelf
93f9b408
ILT
48937@if gold
48938 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
48939 mkdir stage4-gold; \
22121df0 48940 mv stage4-gold gold; \
93f9b408
ILT
48941 mv stage3-gold prev-gold || test -f stage3-lean
48942@endif gold
72b2455a 48943@if intl
b00612cc
PB
48944 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
48945 mkdir stage4-intl; \
22121df0 48946 mv stage4-intl intl; \
80911fe1 48947 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
48948@endif intl
48949@if ld
b00612cc
PB
48950 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
48951 mkdir stage4-ld; \
22121df0 48952 mv stage4-ld ld; \
80911fe1 48953 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 48954@endif ld
2bf680c4
ILT
48955@if libbacktrace
48956 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
48957 mkdir stage4-libbacktrace; \
22121df0 48958 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
48959 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
48960@endif libbacktrace
72b2455a 48961@if libcpp
b00612cc
PB
48962 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
48963 mkdir stage4-libcpp; \
22121df0 48964 mv stage4-libcpp libcpp; \
80911fe1 48965 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 48966@endif libcpp
be01d343
PB
48967@if libdecnumber
48968 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
48969 mkdir stage4-libdecnumber; \
22121df0 48970 mv stage4-libdecnumber libdecnumber; \
80911fe1 48971 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 48972@endif libdecnumber
72b2455a 48973@if libiberty
b00612cc
PB
48974 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
48975 mkdir stage4-libiberty; \
22121df0 48976 mv stage4-libiberty libiberty; \
80911fe1 48977 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 48978@endif libiberty
1b6c0831
L
48979@if libiberty-linker-plugin
48980 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
48981 mkdir stage4-libiberty-linker-plugin; \
22121df0 48982 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48983 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
48984@endif libiberty-linker-plugin
016a3251
DD
48985@if libiconv
48986 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
48987 mkdir stage4-libiconv; \
48988 mv stage4-libiconv libiconv; \
48989 mv stage3-libiconv prev-libiconv || test -f stage3-lean
48990@endif libiconv
72b2455a 48991@if zlib
b00612cc
PB
48992 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
48993 mkdir stage4-zlib; \
22121df0 48994 mv stage4-zlib zlib; \
80911fe1 48995 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 48996@endif zlib
700d40ca
ILT
48997@if lto-plugin
48998 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
48999 mkdir stage4-lto-plugin; \
22121df0 49000 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
49001 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
49002@endif lto-plugin
0aed8855
PB
49003 @[ -d stage4-$(TARGET_SUBDIR) ] || \
49004 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 49005 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49006 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 49007
80911fe1 49008stage4-end::
72b2455a 49009@if bfd
22121df0
L
49010 @if test -d $(HOST_SUBDIR)/bfd; then \
49011 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
49012 mv prev-bfd stage3-bfd; : ; \
0aed8855 49013 fi
72b2455a
PB
49014@endif bfd
49015@if opcodes
22121df0
L
49016 @if test -d $(HOST_SUBDIR)/opcodes; then \
49017 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
49018 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 49019 fi
72b2455a
PB
49020@endif opcodes
49021@if binutils
22121df0
L
49022 @if test -d $(HOST_SUBDIR)/binutils; then \
49023 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
49024 mv prev-binutils stage3-binutils; : ; \
0aed8855 49025 fi
72b2455a 49026@endif binutils
201f096f 49027@if fixincludes
22121df0
L
49028 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49029 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
49030 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 49031 fi
49032@endif fixincludes
72b2455a 49033@if gas
22121df0
L
49034 @if test -d $(HOST_SUBDIR)/gas; then \
49035 cd $(HOST_SUBDIR); mv gas stage4-gas; \
49036 mv prev-gas stage3-gas; : ; \
0aed8855 49037 fi
72b2455a
PB
49038@endif gas
49039@if gcc
22121df0
L
49040 @if test -d $(HOST_SUBDIR)/gcc; then \
49041 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
49042 mv prev-gcc stage3-gcc; : ; \
0aed8855 49043 fi
72b2455a 49044@endif gcc
4b900473 49045@if gmp
22121df0
L
49046 @if test -d $(HOST_SUBDIR)/gmp; then \
49047 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
49048 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
49049 fi
49050@endif gmp
49051@if mpfr
22121df0
L
49052 @if test -d $(HOST_SUBDIR)/mpfr; then \
49053 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
49054 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
49055 fi
49056@endif mpfr
e8a5fa9c 49057@if mpc
22121df0
L
49058 @if test -d $(HOST_SUBDIR)/mpc; then \
49059 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
49060 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
49061 fi
49062@endif mpc
7ec59b9e 49063@if isl
22121df0
L
49064 @if test -d $(HOST_SUBDIR)/isl; then \
49065 cd $(HOST_SUBDIR); mv isl stage4-isl; \
49066 mv prev-isl stage3-isl; : ; \
e28c595f 49067 fi
7ec59b9e 49068@endif isl
1f53ca9a 49069@if libelf
22121df0
L
49070 @if test -d $(HOST_SUBDIR)/libelf; then \
49071 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
49072 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
49073 fi
49074@endif libelf
93f9b408 49075@if gold
22121df0
L
49076 @if test -d $(HOST_SUBDIR)/gold; then \
49077 cd $(HOST_SUBDIR); mv gold stage4-gold; \
49078 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
49079 fi
49080@endif gold
72b2455a 49081@if intl
22121df0
L
49082 @if test -d $(HOST_SUBDIR)/intl; then \
49083 cd $(HOST_SUBDIR); mv intl stage4-intl; \
49084 mv prev-intl stage3-intl; : ; \
0aed8855 49085 fi
72b2455a
PB
49086@endif intl
49087@if ld
22121df0
L
49088 @if test -d $(HOST_SUBDIR)/ld; then \
49089 cd $(HOST_SUBDIR); mv ld stage4-ld; \
49090 mv prev-ld stage3-ld; : ; \
0aed8855 49091 fi
72b2455a 49092@endif ld
2bf680c4 49093@if libbacktrace
22121df0
L
49094 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49095 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
49096 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
49097 fi
49098@endif libbacktrace
72b2455a 49099@if libcpp
22121df0
L
49100 @if test -d $(HOST_SUBDIR)/libcpp; then \
49101 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
49102 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 49103 fi
72b2455a 49104@endif libcpp
be01d343 49105@if libdecnumber
22121df0
L
49106 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49107 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
49108 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 49109 fi
be01d343 49110@endif libdecnumber
72b2455a 49111@if libiberty
22121df0
L
49112 @if test -d $(HOST_SUBDIR)/libiberty; then \
49113 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
49114 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 49115 fi
72b2455a 49116@endif libiberty
1b6c0831 49117@if libiberty-linker-plugin
22121df0
L
49118 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49119 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
49120 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
49121 fi
49122@endif libiberty-linker-plugin
016a3251
DD
49123@if libiconv
49124 @if test -d $(HOST_SUBDIR)/libiconv; then \
49125 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
49126 mv prev-libiconv stage3-libiconv; : ; \
49127 fi
49128@endif libiconv
72b2455a 49129@if zlib
22121df0
L
49130 @if test -d $(HOST_SUBDIR)/zlib; then \
49131 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
49132 mv prev-zlib stage3-zlib; : ; \
0aed8855 49133 fi
72b2455a 49134@endif zlib
700d40ca 49135@if lto-plugin
22121df0
L
49136 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49137 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
49138 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
49139 fi
49140@endif lto-plugin
22121df0
L
49141 @if test -d $(TARGET_SUBDIR); then \
49142 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
49143 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 49144 fi
80911fe1 49145 rm -f stage_current
72b2455a 49146
973601e1 49147# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 49148# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49149# reconfigured either.
72b2455a
PB
49150.PHONY: stage4-bubble
49151stage4-bubble:: stage3-bubble
e360f423
PB
49152 @r=`${PWD_COMMAND}`; export r; \
49153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49154 if test -f stage4-lean || test -f stage3-lean ; then \
49155 echo Skipping rebuild of stage4; \
9cb3fa6f 49156 else \
f70224b5 49157 $(MAKE) stage4-start; \
80911fe1 49158 if $(LEAN); then \
22121df0
L
49159 rm -rf stage2-*; \
49160 $(STAMP) stage2-lean; \
80911fe1 49161 fi; \
f70224b5 49162 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 49163 fi
f6d183c0 49164 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 49165
0df3d27f 49166.PHONY: all-stage4 clean-stage4
0df3d27f 49167do-clean: clean-stage4
0df3d27f 49168
d545f33b
PB
49169# FIXME: Will not need to be conditional when toplevel bootstrap is the
49170# only possibility, but now it conflicts with no-bootstrap rules
49171@if gcc-bootstrap
72b2455a 49172
d545f33b 49173compare3:
e360f423
PB
49174 @r=`${PWD_COMMAND}`; export r; \
49175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49176 if test -f stage3-lean; then \
22121df0
L
49177 echo Cannot compare object files as stage 3 was deleted.; \
49178 exit 0; \
d545f33b 49179 fi; \
0aed8855 49180 : $(MAKE); $(stage); \
22121df0
L
49181 rm -f .bad_compare; \
49182 echo Comparing stages 3 and 4; \
fda13ee8
AO
49183 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
49184 files=`find stage4-* -name "*$(objext)" -print | \
22121df0
L
49185 sed -n s,^stage$$sed-,,p`; \
49186 for file in $${files}; do \
fda13ee8
AO
49187 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
49188 if test ! -f $$f1; then continue; fi; \
8520c408 49189 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
49190 if test $$? -eq 1; then \
49191 case $$file in \
e8a5fa9c 49192 @compare_exclusions@) \
f70224b5
PB
49193 echo warning: $$file differs ;; \
49194 *) \
49195 echo $$file differs >> .bad_compare ;; \
22121df0
L
49196 esac; \
49197 fi; \
49198 done; \
d545f33b
PB
49199 if [ -f .bad_compare ]; then \
49200 echo "Bootstrap comparison failure!"; \
49201 cat .bad_compare; \
49202 exit 1; \
49203 else \
c52c6897 49204 echo Comparison successful.; \
22121df0 49205 fi; \
d545f33b 49206 $(STAMP) compare3
80911fe1
PB
49207 if $(LEAN); then \
49208 rm -rf stage3-*; \
49209 $(STAMP) stage3-lean; \
49210 fi
9cb3fa6f 49211
72b2455a 49212
72b2455a 49213
80911fe1 49214.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
49215bootstrap4:
49216 echo stage4 > stage_final
49217 @r=`${PWD_COMMAND}`; export r; \
49218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49219 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 49220 @: $(MAKE); $(unstage)
be01d343
PB
49221 @r=`${PWD_COMMAND}`; export r; \
49222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49223 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 49224 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49225
80911fe1
PB
49226bootstrap4-lean:
49227 echo stage4 > stage_final
49228 @r=`${PWD_COMMAND}`; export r; \
49229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49230 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
49231 @: $(MAKE); $(unstage)
49232 @r=`${PWD_COMMAND}`; export r; \
49233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49234 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
49235 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49236
72b2455a 49237
d545f33b
PB
49238# Rules to wipe a stage and all the following ones, also used for cleanstrap
49239distclean-stage3:: distclean-stage4
49240.PHONY: distclean-stage4
49241distclean-stage4::
0aed8855 49242 @: $(MAKE); $(stage)
e00a73e3 49243 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 49244 rm -rf stage4-* compare3
0df3d27f 49245
9cb3fa6f 49246
d545f33b 49247@endif gcc-bootstrap
72b2455a
PB
49248
49249
49250.PHONY: stageprofile-start stageprofile-end
49251
49252stageprofile-start::
0aed8855 49253 @: $(MAKE); $(stage); \
22121df0 49254 echo stageprofile > stage_current; \
b00612cc 49255 echo stageprofile > stage_last; \
0aed8855 49256 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49257@if bfd
b00612cc
PB
49258 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
49259 mkdir stageprofile-bfd; \
22121df0 49260 mv stageprofile-bfd bfd; \
80911fe1 49261 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49262@endif bfd
49263@if opcodes
b00612cc
PB
49264 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
49265 mkdir stageprofile-opcodes; \
22121df0 49266 mv stageprofile-opcodes opcodes; \
80911fe1 49267 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49268@endif opcodes
49269@if binutils
b00612cc
PB
49270 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
49271 mkdir stageprofile-binutils; \
22121df0 49272 mv stageprofile-binutils binutils; \
80911fe1 49273 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49274@endif binutils
201f096f 49275@if fixincludes
49276 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
49277 mkdir stageprofile-fixincludes; \
22121df0 49278 mv stageprofile-fixincludes fixincludes; \
201f096f 49279 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49280@endif fixincludes
72b2455a 49281@if gas
b00612cc
PB
49282 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
49283 mkdir stageprofile-gas; \
22121df0 49284 mv stageprofile-gas gas; \
80911fe1 49285 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49286@endif gas
49287@if gcc
b00612cc
PB
49288 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
49289 mkdir stageprofile-gcc; \
22121df0 49290 mv stageprofile-gcc gcc; \
80911fe1 49291 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49292@endif gcc
4b900473
PB
49293@if gmp
49294 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
49295 mkdir stageprofile-gmp; \
22121df0 49296 mv stageprofile-gmp gmp; \
4b900473
PB
49297 mv stage1-gmp prev-gmp || test -f stage1-lean
49298@endif gmp
49299@if mpfr
49300 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
49301 mkdir stageprofile-mpfr; \
22121df0 49302 mv stageprofile-mpfr mpfr; \
4b900473
PB
49303 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49304@endif mpfr
e8a5fa9c
RW
49305@if mpc
49306 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
49307 mkdir stageprofile-mpc; \
22121df0 49308 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
49309 mv stage1-mpc prev-mpc || test -f stage1-lean
49310@endif mpc
7ec59b9e
L
49311@if isl
49312 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
49313 mkdir stageprofile-isl; \
22121df0 49314 mv stageprofile-isl isl; \
7ec59b9e
L
49315 mv stage1-isl prev-isl || test -f stage1-lean
49316@endif isl
1f53ca9a
AO
49317@if libelf
49318 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
49319 mkdir stageprofile-libelf; \
22121df0 49320 mv stageprofile-libelf libelf; \
1f53ca9a
AO
49321 mv stage1-libelf prev-libelf || test -f stage1-lean
49322@endif libelf
93f9b408
ILT
49323@if gold
49324 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
49325 mkdir stageprofile-gold; \
22121df0 49326 mv stageprofile-gold gold; \
93f9b408
ILT
49327 mv stage1-gold prev-gold || test -f stage1-lean
49328@endif gold
72b2455a 49329@if intl
b00612cc
PB
49330 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
49331 mkdir stageprofile-intl; \
22121df0 49332 mv stageprofile-intl intl; \
80911fe1 49333 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49334@endif intl
49335@if ld
b00612cc
PB
49336 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
49337 mkdir stageprofile-ld; \
22121df0 49338 mv stageprofile-ld ld; \
80911fe1 49339 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49340@endif ld
2bf680c4
ILT
49341@if libbacktrace
49342 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
49343 mkdir stageprofile-libbacktrace; \
22121df0 49344 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
49345 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49346@endif libbacktrace
72b2455a 49347@if libcpp
b00612cc
PB
49348 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
49349 mkdir stageprofile-libcpp; \
22121df0 49350 mv stageprofile-libcpp libcpp; \
80911fe1 49351 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49352@endif libcpp
be01d343
PB
49353@if libdecnumber
49354 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
49355 mkdir stageprofile-libdecnumber; \
22121df0 49356 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 49357 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49358@endif libdecnumber
72b2455a 49359@if libiberty
b00612cc
PB
49360 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
49361 mkdir stageprofile-libiberty; \
22121df0 49362 mv stageprofile-libiberty libiberty; \
80911fe1 49363 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49364@endif libiberty
1b6c0831
L
49365@if libiberty-linker-plugin
49366 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
49367 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 49368 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49369 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49370@endif libiberty-linker-plugin
016a3251
DD
49371@if libiconv
49372 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
49373 mkdir stageprofile-libiconv; \
49374 mv stageprofile-libiconv libiconv; \
49375 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49376@endif libiconv
72b2455a 49377@if zlib
d545f33b
PB
49378 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
49379 mkdir stageprofile-zlib; \
22121df0 49380 mv stageprofile-zlib zlib; \
80911fe1 49381 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 49382@endif zlib
700d40ca
ILT
49383@if lto-plugin
49384 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
49385 mkdir stageprofile-lto-plugin; \
22121df0 49386 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
49387 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49388@endif lto-plugin
0aed8855
PB
49389 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
49390 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 49391 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49392 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 49393
80911fe1 49394stageprofile-end::
d545f33b 49395@if bfd
22121df0
L
49396 @if test -d $(HOST_SUBDIR)/bfd; then \
49397 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
49398 mv prev-bfd stage1-bfd; : ; \
0aed8855 49399 fi
d545f33b
PB
49400@endif bfd
49401@if opcodes
22121df0
L
49402 @if test -d $(HOST_SUBDIR)/opcodes; then \
49403 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
49404 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49405 fi
d545f33b
PB
49406@endif opcodes
49407@if binutils
22121df0
L
49408 @if test -d $(HOST_SUBDIR)/binutils; then \
49409 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
49410 mv prev-binutils stage1-binutils; : ; \
0aed8855 49411 fi
d545f33b 49412@endif binutils
201f096f 49413@if fixincludes
22121df0
L
49414 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49415 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
49416 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49417 fi
49418@endif fixincludes
d545f33b 49419@if gas
22121df0
L
49420 @if test -d $(HOST_SUBDIR)/gas; then \
49421 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
49422 mv prev-gas stage1-gas; : ; \
0aed8855 49423 fi
d545f33b
PB
49424@endif gas
49425@if gcc
22121df0
L
49426 @if test -d $(HOST_SUBDIR)/gcc; then \
49427 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
49428 mv prev-gcc stage1-gcc; : ; \
0aed8855 49429 fi
d545f33b 49430@endif gcc
4b900473 49431@if gmp
22121df0
L
49432 @if test -d $(HOST_SUBDIR)/gmp; then \
49433 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
49434 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49435 fi
49436@endif gmp
49437@if mpfr
22121df0
L
49438 @if test -d $(HOST_SUBDIR)/mpfr; then \
49439 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
49440 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49441 fi
49442@endif mpfr
e8a5fa9c 49443@if mpc
22121df0
L
49444 @if test -d $(HOST_SUBDIR)/mpc; then \
49445 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
49446 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49447 fi
49448@endif mpc
7ec59b9e 49449@if isl
22121df0
L
49450 @if test -d $(HOST_SUBDIR)/isl; then \
49451 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
49452 mv prev-isl stage1-isl; : ; \
e28c595f 49453 fi
7ec59b9e 49454@endif isl
1f53ca9a 49455@if libelf
22121df0
L
49456 @if test -d $(HOST_SUBDIR)/libelf; then \
49457 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
49458 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49459 fi
49460@endif libelf
93f9b408 49461@if gold
22121df0
L
49462 @if test -d $(HOST_SUBDIR)/gold; then \
49463 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
49464 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49465 fi
49466@endif gold
d545f33b 49467@if intl
22121df0
L
49468 @if test -d $(HOST_SUBDIR)/intl; then \
49469 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
49470 mv prev-intl stage1-intl; : ; \
0aed8855 49471 fi
d545f33b
PB
49472@endif intl
49473@if ld
22121df0
L
49474 @if test -d $(HOST_SUBDIR)/ld; then \
49475 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
49476 mv prev-ld stage1-ld; : ; \
0aed8855 49477 fi
d545f33b 49478@endif ld
2bf680c4 49479@if libbacktrace
22121df0
L
49480 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49481 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
49482 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49483 fi
49484@endif libbacktrace
d545f33b 49485@if libcpp
22121df0
L
49486 @if test -d $(HOST_SUBDIR)/libcpp; then \
49487 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
49488 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49489 fi
d545f33b 49490@endif libcpp
be01d343 49491@if libdecnumber
22121df0
L
49492 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49493 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
49494 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49495 fi
be01d343 49496@endif libdecnumber
d545f33b 49497@if libiberty
22121df0
L
49498 @if test -d $(HOST_SUBDIR)/libiberty; then \
49499 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
49500 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49501 fi
d545f33b 49502@endif libiberty
1b6c0831 49503@if libiberty-linker-plugin
22121df0
L
49504 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49505 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
49506 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49507 fi
49508@endif libiberty-linker-plugin
016a3251
DD
49509@if libiconv
49510 @if test -d $(HOST_SUBDIR)/libiconv; then \
49511 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
49512 mv prev-libiconv stage1-libiconv; : ; \
49513 fi
49514@endif libiconv
d545f33b 49515@if zlib
22121df0
L
49516 @if test -d $(HOST_SUBDIR)/zlib; then \
49517 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
49518 mv prev-zlib stage1-zlib; : ; \
0aed8855 49519 fi
d545f33b 49520@endif zlib
700d40ca 49521@if lto-plugin
22121df0
L
49522 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49523 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
49524 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49525 fi
49526@endif lto-plugin
22121df0
L
49527 @if test -d $(TARGET_SUBDIR); then \
49528 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
49529 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49530 fi
80911fe1 49531 rm -f stage_current
72b2455a 49532
973601e1 49533# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 49534# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49535# reconfigured either.
d545f33b
PB
49536.PHONY: stageprofile-bubble
49537stageprofile-bubble:: stage1-bubble
e360f423
PB
49538 @r=`${PWD_COMMAND}`; export r; \
49539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49540 if test -f stageprofile-lean || test -f stage1-lean ; then \
49541 echo Skipping rebuild of stageprofile; \
d545f33b 49542 else \
f70224b5
PB
49543 $(MAKE) stageprofile-start; \
49544 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 49545 fi
72b2455a 49546
d545f33b
PB
49547.PHONY: all-stageprofile clean-stageprofile
49548do-clean: clean-stageprofile
0df3d27f 49549
72b2455a
PB
49550# FIXME: Will not need to be conditional when toplevel bootstrap is the
49551# only possibility, but now it conflicts with no-bootstrap rules
49552@if gcc-bootstrap
49553
49554
49555
49556
0df3d27f 49557# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49558distclean-stage1:: distclean-stageprofile
0df3d27f 49559.PHONY: distclean-stageprofile
72b2455a 49560distclean-stageprofile::
0aed8855 49561 @: $(MAKE); $(stage)
e00a73e3 49562 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 49563 rm -rf stageprofile-*
dfdffa2c
PB
49564
49565
72b2455a 49566@endif gcc-bootstrap
dfdffa2c
PB
49567
49568
72b2455a 49569.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 49570
72b2455a 49571stagefeedback-start::
0aed8855 49572 @: $(MAKE); $(stage); \
22121df0 49573 echo stagefeedback > stage_current; \
b00612cc 49574 echo stagefeedback > stage_last; \
0aed8855 49575 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49576@if bfd
b00612cc
PB
49577 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
49578 mkdir stagefeedback-bfd; \
22121df0 49579 mv stagefeedback-bfd bfd; \
80911fe1 49580 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
49581@endif bfd
49582@if opcodes
b00612cc
PB
49583 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
49584 mkdir stagefeedback-opcodes; \
22121df0 49585 mv stagefeedback-opcodes opcodes; \
80911fe1 49586 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
49587@endif opcodes
49588@if binutils
b00612cc
PB
49589 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
49590 mkdir stagefeedback-binutils; \
22121df0 49591 mv stagefeedback-binutils binutils; \
80911fe1 49592 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 49593@endif binutils
201f096f 49594@if fixincludes
49595 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
49596 mkdir stagefeedback-fixincludes; \
22121df0 49597 mv stagefeedback-fixincludes fixincludes; \
201f096f 49598 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
49599@endif fixincludes
72b2455a 49600@if gas
b00612cc
PB
49601 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
49602 mkdir stagefeedback-gas; \
22121df0 49603 mv stagefeedback-gas gas; \
80911fe1 49604 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
49605@endif gas
49606@if gcc
b00612cc
PB
49607 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
49608 mkdir stagefeedback-gcc; \
22121df0 49609 mv stagefeedback-gcc gcc; \
80911fe1 49610 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 49611@endif gcc
4b900473
PB
49612@if gmp
49613 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
49614 mkdir stagefeedback-gmp; \
22121df0 49615 mv stagefeedback-gmp gmp; \
4b900473
PB
49616 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
49617@endif gmp
49618@if mpfr
49619 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
49620 mkdir stagefeedback-mpfr; \
22121df0 49621 mv stagefeedback-mpfr mpfr; \
4b900473
PB
49622 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
49623@endif mpfr
e8a5fa9c
RW
49624@if mpc
49625 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
49626 mkdir stagefeedback-mpc; \
22121df0 49627 mv stagefeedback-mpc mpc; \
e8a5fa9c
RW
49628 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
49629@endif mpc
7ec59b9e
L
49630@if isl
49631 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
49632 mkdir stagefeedback-isl; \
22121df0 49633 mv stagefeedback-isl isl; \
7ec59b9e
L
49634 mv stageprofile-isl prev-isl || test -f stageprofile-lean
49635@endif isl
1f53ca9a
AO
49636@if libelf
49637 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
49638 mkdir stagefeedback-libelf; \
22121df0 49639 mv stagefeedback-libelf libelf; \
1f53ca9a
AO
49640 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
49641@endif libelf
93f9b408
ILT
49642@if gold
49643 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
49644 mkdir stagefeedback-gold; \
22121df0 49645 mv stagefeedback-gold gold; \
93f9b408
ILT
49646 mv stageprofile-gold prev-gold || test -f stageprofile-lean
49647@endif gold
72b2455a 49648@if intl
b00612cc
PB
49649 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
49650 mkdir stagefeedback-intl; \
22121df0 49651 mv stagefeedback-intl intl; \
80911fe1 49652 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
49653@endif intl
49654@if ld
b00612cc
PB
49655 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
49656 mkdir stagefeedback-ld; \
22121df0 49657 mv stagefeedback-ld ld; \
80911fe1 49658 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 49659@endif ld
2bf680c4
ILT
49660@if libbacktrace
49661 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
49662 mkdir stagefeedback-libbacktrace; \
22121df0 49663 mv stagefeedback-libbacktrace libbacktrace; \
2bf680c4
ILT
49664 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
49665@endif libbacktrace
72b2455a 49666@if libcpp
b00612cc
PB
49667 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
49668 mkdir stagefeedback-libcpp; \
22121df0 49669 mv stagefeedback-libcpp libcpp; \
80911fe1 49670 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 49671@endif libcpp
be01d343
PB
49672@if libdecnumber
49673 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
49674 mkdir stagefeedback-libdecnumber; \
22121df0 49675 mv stagefeedback-libdecnumber libdecnumber; \
80911fe1 49676 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 49677@endif libdecnumber
72b2455a 49678@if libiberty
b00612cc
PB
49679 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
49680 mkdir stagefeedback-libiberty; \
22121df0 49681 mv stagefeedback-libiberty libiberty; \
80911fe1 49682 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 49683@endif libiberty
1b6c0831
L
49684@if libiberty-linker-plugin
49685 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
49686 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 49687 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49688 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
49689@endif libiberty-linker-plugin
016a3251
DD
49690@if libiconv
49691 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
49692 mkdir stagefeedback-libiconv; \
49693 mv stagefeedback-libiconv libiconv; \
49694 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
49695@endif libiconv
72b2455a 49696@if zlib
b00612cc
PB
49697 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
49698 mkdir stagefeedback-zlib; \
22121df0 49699 mv stagefeedback-zlib zlib; \
80911fe1 49700 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 49701@endif zlib
700d40ca
ILT
49702@if lto-plugin
49703 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
49704 mkdir stagefeedback-lto-plugin; \
22121df0 49705 mv stagefeedback-lto-plugin lto-plugin; \
700d40ca
ILT
49706 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
49707@endif lto-plugin
0aed8855
PB
49708 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
49709 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 49710 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49711 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 49712
80911fe1 49713stagefeedback-end::
72b2455a 49714@if bfd
22121df0
L
49715 @if test -d $(HOST_SUBDIR)/bfd; then \
49716 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
49717 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 49718 fi
72b2455a
PB
49719@endif bfd
49720@if opcodes
22121df0
L
49721 @if test -d $(HOST_SUBDIR)/opcodes; then \
49722 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
49723 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 49724 fi
72b2455a
PB
49725@endif opcodes
49726@if binutils
22121df0
L
49727 @if test -d $(HOST_SUBDIR)/binutils; then \
49728 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
49729 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 49730 fi
72b2455a 49731@endif binutils
201f096f 49732@if fixincludes
22121df0
L
49733 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49734 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
49735 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 49736 fi
49737@endif fixincludes
72b2455a 49738@if gas
22121df0
L
49739 @if test -d $(HOST_SUBDIR)/gas; then \
49740 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
49741 mv prev-gas stageprofile-gas; : ; \
0aed8855 49742 fi
72b2455a
PB
49743@endif gas
49744@if gcc
22121df0
L
49745 @if test -d $(HOST_SUBDIR)/gcc; then \
49746 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
49747 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 49748 fi
72b2455a 49749@endif gcc
4b900473 49750@if gmp
22121df0
L
49751 @if test -d $(HOST_SUBDIR)/gmp; then \
49752 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
49753 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
49754 fi
49755@endif gmp
49756@if mpfr
22121df0
L
49757 @if test -d $(HOST_SUBDIR)/mpfr; then \
49758 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
49759 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
49760 fi
49761@endif mpfr
e8a5fa9c 49762@if mpc
22121df0
L
49763 @if test -d $(HOST_SUBDIR)/mpc; then \
49764 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
49765 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
49766 fi
49767@endif mpc
7ec59b9e 49768@if isl
22121df0
L
49769 @if test -d $(HOST_SUBDIR)/isl; then \
49770 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
49771 mv prev-isl stageprofile-isl; : ; \
e28c595f 49772 fi
7ec59b9e 49773@endif isl
1f53ca9a 49774@if libelf
22121df0
L
49775 @if test -d $(HOST_SUBDIR)/libelf; then \
49776 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
49777 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
49778 fi
49779@endif libelf
93f9b408 49780@if gold
22121df0
L
49781 @if test -d $(HOST_SUBDIR)/gold; then \
49782 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
49783 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
49784 fi
49785@endif gold
72b2455a 49786@if intl
22121df0
L
49787 @if test -d $(HOST_SUBDIR)/intl; then \
49788 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
49789 mv prev-intl stageprofile-intl; : ; \
0aed8855 49790 fi
72b2455a
PB
49791@endif intl
49792@if ld
22121df0
L
49793 @if test -d $(HOST_SUBDIR)/ld; then \
49794 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
49795 mv prev-ld stageprofile-ld; : ; \
0aed8855 49796 fi
72b2455a 49797@endif ld
2bf680c4 49798@if libbacktrace
22121df0
L
49799 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49800 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
49801 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
49802 fi
49803@endif libbacktrace
72b2455a 49804@if libcpp
22121df0
L
49805 @if test -d $(HOST_SUBDIR)/libcpp; then \
49806 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
49807 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 49808 fi
72b2455a 49809@endif libcpp
be01d343 49810@if libdecnumber
22121df0
L
49811 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49812 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
49813 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 49814 fi
be01d343 49815@endif libdecnumber
72b2455a 49816@if libiberty
22121df0
L
49817 @if test -d $(HOST_SUBDIR)/libiberty; then \
49818 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
49819 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 49820 fi
72b2455a 49821@endif libiberty
1b6c0831 49822@if libiberty-linker-plugin
22121df0
L
49823 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49824 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
49825 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
49826 fi
49827@endif libiberty-linker-plugin
016a3251
DD
49828@if libiconv
49829 @if test -d $(HOST_SUBDIR)/libiconv; then \
49830 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
49831 mv prev-libiconv stageprofile-libiconv; : ; \
49832 fi
49833@endif libiconv
72b2455a 49834@if zlib
22121df0
L
49835 @if test -d $(HOST_SUBDIR)/zlib; then \
49836 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
49837 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 49838 fi
72b2455a 49839@endif zlib
700d40ca 49840@if lto-plugin
22121df0
L
49841 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49842 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
49843 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
49844 fi
49845@endif lto-plugin
22121df0
L
49846 @if test -d $(TARGET_SUBDIR); then \
49847 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
49848 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 49849 fi
80911fe1 49850 rm -f stage_current
dfdffa2c 49851
973601e1 49852# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 49853# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49854# reconfigured either.
72b2455a 49855.PHONY: stagefeedback-bubble
7d329e61 49856stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
49857 @r=`${PWD_COMMAND}`; export r; \
49858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49859 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
49860 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 49861 else \
f70224b5
PB
49862 $(MAKE) stagefeedback-start; \
49863 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 49864 fi
72b2455a 49865
0df3d27f 49866.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 49867do-clean: clean-stagefeedback
0df3d27f 49868
72b2455a
PB
49869# FIXME: Will not need to be conditional when toplevel bootstrap is the
49870# only possibility, but now it conflicts with no-bootstrap rules
49871@if gcc-bootstrap
656fdd47
PB
49872
49873
49874
80911fe1 49875.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
49876profiledbootstrap:
49877 echo stagefeedback > stage_final
49878 @r=`${PWD_COMMAND}`; export r; \
49879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49880 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 49881 @: $(MAKE); $(unstage)
be01d343
PB
49882 @r=`${PWD_COMMAND}`; export r; \
49883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49884 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 49885 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 49886
80911fe1
PB
49887profiledbootstrap-lean:
49888 echo stagefeedback > stage_final
49889 @r=`${PWD_COMMAND}`; export r; \
49890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49891 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
49892 @: $(MAKE); $(unstage)
49893 @r=`${PWD_COMMAND}`; export r; \
49894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49895 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
49896 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49897
656fdd47 49898
0df3d27f 49899# Rules to wipe a stage and all the following ones, also used for cleanstrap
7d329e61 49900distclean-stageprofile:: distclean-stagefeedback
0df3d27f 49901.PHONY: distclean-stagefeedback
656fdd47 49902distclean-stagefeedback::
0aed8855 49903 @: $(MAKE); $(stage)
e00a73e3 49904 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 49905 rm -rf stagefeedback-*
656fdd47
PB
49906
49907
72b2455a 49908@endif gcc-bootstrap
656fdd47
PB
49909
49910
49911
7d329e61
PB
49912stageprofile-end::
49913 $(MAKE) distclean-stagefeedback
656fdd47 49914
7d329e61 49915stagefeedback-start::
656fdd47
PB
49916 @r=`${PWD_COMMAND}`; export r; \
49917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 49918 for i in prev-*; do \
22121df0 49919 j=`echo $$i | sed s/^prev-//`; \
7d329e61 49920 cd $$r/$$i && \
22121df0
L
49921 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
49922 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 49923 done
b8908782 49924
0df3d27f 49925@if gcc-bootstrap
0df3d27f 49926do-distclean: distclean-stage1
c52c6897
PB
49927
49928# Provide a GCC build when we're building target libraries. This does
49929# not work as a dependency, just as the minimum necessary to avoid errors.
49930stage_last:
314b2e66
AS
49931 @r=`${PWD_COMMAND}`; export r; \
49932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 49933 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 49934
4f0ef2d8
CD
49935# Same as unstage, but not phony and defaulting to stage1-start. We place
49936# it in the dependency so that for example `make -j3 all-gcc' works.
49937stage_current:
49938 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
49939
c52c6897 49940.PHONY: restrap
266df637 49941restrap::
c52c6897 49942 @: $(MAKE); $(stage)
1b05fbbd 49943 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 49944restrap:: all
c380fdd8 49945@endif gcc-bootstrap
c52c6897 49946
ae831be5
NN
49947# --------------------------------------
49948# Dependencies between different modules
49949# --------------------------------------
252b5132 49950
9e6ce191 49951# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 49952@if gcc-bootstrap
e8a5fa9c
RW
49953configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
49954configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
49955configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
49956configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
49957configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
49958configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
49959configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
49960configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
49961configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
49962configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
49963configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
49964configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
49965configure-stage1-target-libmpx: maybe-all-stage1-gcc
49966configure-stage2-target-libmpx: maybe-all-stage2-gcc
49967configure-stage3-target-libmpx: maybe-all-stage3-gcc
49968configure-stage4-target-libmpx: maybe-all-stage4-gcc
49969configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
49970configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
49971configure-stage1-target-libvtv: maybe-all-stage1-gcc
49972configure-stage2-target-libvtv: maybe-all-stage2-gcc
49973configure-stage3-target-libvtv: maybe-all-stage3-gcc
49974configure-stage4-target-libvtv: maybe-all-stage4-gcc
49975configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
49976configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
522e3d71 49977configure-target-libcilkrts: stage_last
1b6c0831 49978configure-target-liboffloadmic: stage_last
c52c6897 49979configure-target-libssp: stage_last
c52c6897 49980configure-target-newlib: stage_last
6aa8ef82
DJ
49981configure-stage1-target-libgcc: maybe-all-stage1-gcc
49982configure-stage2-target-libgcc: maybe-all-stage2-gcc
49983configure-stage3-target-libgcc: maybe-all-stage3-gcc
49984configure-stage4-target-libgcc: maybe-all-stage4-gcc
49985configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
49986configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 49987configure-target-libbacktrace: stage_last
e552509b 49988configure-target-libquadmath: stage_last
c52c6897
PB
49989configure-target-libgfortran: stage_last
49990configure-target-libobjc: stage_last
e552509b 49991configure-target-libgo: stage_last
c52c6897
PB
49992configure-target-libtermcap: stage_last
49993configure-target-winsup: stage_last
49994configure-target-libgloss: stage_last
c52c6897
PB
49995configure-target-libffi: stage_last
49996configure-target-libjava: stage_last
49997configure-target-zlib: stage_last
49998configure-target-boehm-gc: stage_last
c52c6897
PB
49999configure-target-rda: stage_last
50000configure-target-libada: stage_last
911e63d0
JR
50001configure-stage1-target-libgomp: maybe-all-stage1-gcc
50002configure-stage2-target-libgomp: maybe-all-stage2-gcc
50003configure-stage3-target-libgomp: maybe-all-stage3-gcc
50004configure-stage4-target-libgomp: maybe-all-stage4-gcc
50005configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
50006configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
50007configure-target-libitm: stage_last
50008configure-target-libatomic: stage_last
c52c6897 50009@endif gcc-bootstrap
9e6ce191 50010
c52c6897 50011@if gcc-no-bootstrap
9e6ce191 50012configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 50013configure-target-libsanitizer: maybe-all-gcc
1b6c0831 50014configure-target-libmpx: maybe-all-gcc
95e43135 50015configure-target-libvtv: maybe-all-gcc
e78e02e6 50016configure-target-libcilkrts: maybe-all-gcc
1b6c0831 50017configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 50018configure-target-libssp: maybe-all-gcc
9e6ce191 50019configure-target-newlib: maybe-all-gcc
6aa8ef82 50020configure-target-libgcc: maybe-all-gcc
2bf680c4 50021configure-target-libbacktrace: maybe-all-gcc
e552509b 50022configure-target-libquadmath: maybe-all-gcc
9e6ce191 50023configure-target-libgfortran: maybe-all-gcc
9e6ce191 50024configure-target-libobjc: maybe-all-gcc
e552509b 50025configure-target-libgo: maybe-all-gcc
9e6ce191 50026configure-target-libtermcap: maybe-all-gcc
9e6ce191 50027configure-target-winsup: maybe-all-gcc
9e6ce191 50028configure-target-libgloss: maybe-all-gcc
9e6ce191 50029configure-target-libffi: maybe-all-gcc
9e6ce191 50030configure-target-libjava: maybe-all-gcc
9e6ce191 50031configure-target-zlib: maybe-all-gcc
9e6ce191 50032configure-target-boehm-gc: maybe-all-gcc
9e6ce191 50033configure-target-rda: maybe-all-gcc
9e6ce191 50034configure-target-libada: maybe-all-gcc
b3ded179 50035configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
50036configure-target-libitm: maybe-all-gcc
50037configure-target-libatomic: maybe-all-gcc
c52c6897 50038@endif gcc-no-bootstrap
b3ded179 50039
9e6ce191 50040
ae831be5
NN
50041# There are two types of dependencies here: 'hard' dependencies, where one
50042# module simply won't build without the other; and 'soft' dependencies, where
50043# if the depended-on module is missing, the depending module will do without
50044# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 50045# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
50046# it's safer to use a soft dependency.
50047
9e6ce191
PB
50048
50049
50050
50051
c60fe18b 50052
9e6ce191
PB
50053# With all the machinery above in place, it is pretty easy to generate
50054# dependencies. Host dependencies are a bit more complex because we have
50055# to check for bootstrap/prebootstrap dependencies. To resolve
50056# prebootstrap dependencies, prebootstrap modules are gathered in
50057# a hash table.
6a9cf61e
PB
50058all-build-bison: maybe-all-build-texinfo
50059all-build-flex: maybe-all-build-texinfo
9e6ce191 50060all-build-flex: maybe-all-build-bison
9e6ce191 50061all-build-flex: maybe-all-build-m4
6a9cf61e 50062all-build-libiberty: maybe-all-build-texinfo
9e6ce191 50063all-build-m4: maybe-all-build-texinfo
ee025550 50064all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 50065all-build-libcpp: maybe-all-build-libiberty
9e6ce191
PB
50066configure-gcc: maybe-configure-intl
50067
50068configure-stage1-gcc: maybe-configure-stage1-intl
50069configure-stage2-gcc: maybe-configure-stage2-intl
50070configure-stage3-gcc: maybe-configure-stage3-intl
50071configure-stage4-gcc: maybe-configure-stage4-intl
50072configure-stageprofile-gcc: maybe-configure-stageprofile-intl
50073configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8
L
50074configure-gcc: maybe-all-gmp
50075
50076configure-stage1-gcc: maybe-all-stage1-gmp
50077configure-stage2-gcc: maybe-all-stage2-gmp
50078configure-stage3-gcc: maybe-all-stage3-gmp
50079configure-stage4-gcc: maybe-all-stage4-gmp
50080configure-stageprofile-gcc: maybe-all-stageprofile-gmp
50081configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831
L
50082configure-gcc: maybe-all-mpfr
50083
50084configure-stage1-gcc: maybe-all-stage1-mpfr
50085configure-stage2-gcc: maybe-all-stage2-mpfr
50086configure-stage3-gcc: maybe-all-stage3-mpfr
50087configure-stage4-gcc: maybe-all-stage4-mpfr
50088configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
50089configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
50090configure-gcc: maybe-all-mpc
50091
50092configure-stage1-gcc: maybe-all-stage1-mpc
50093configure-stage2-gcc: maybe-all-stage2-mpc
50094configure-stage3-gcc: maybe-all-stage3-mpc
50095configure-stage4-gcc: maybe-all-stage4-mpc
50096configure-stageprofile-gcc: maybe-all-stageprofile-mpc
50097configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
50098configure-gcc: maybe-all-isl
50099
50100configure-stage1-gcc: maybe-all-stage1-isl
50101configure-stage2-gcc: maybe-all-stage2-isl
50102configure-stage3-gcc: maybe-all-stage3-isl
50103configure-stage4-gcc: maybe-all-stage4-isl
50104configure-stageprofile-gcc: maybe-all-stageprofile-isl
50105configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a
RW
50106configure-gcc: maybe-all-lto-plugin
50107
50108configure-stage1-gcc: maybe-all-stage1-lto-plugin
50109configure-stage2-gcc: maybe-all-stage2-lto-plugin
50110configure-stage3-gcc: maybe-all-stage3-lto-plugin
50111configure-stage4-gcc: maybe-all-stage4-lto-plugin
50112configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50113configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b
PB
50114configure-gcc: maybe-all-binutils
50115
50116configure-stage1-gcc: maybe-all-stage1-binutils
50117configure-stage2-gcc: maybe-all-stage2-binutils
50118configure-stage3-gcc: maybe-all-stage3-binutils
50119configure-stage4-gcc: maybe-all-stage4-binutils
50120configure-stageprofile-gcc: maybe-all-stageprofile-binutils
50121configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
50122configure-gcc: maybe-all-gas
50123
50124configure-stage1-gcc: maybe-all-stage1-gas
50125configure-stage2-gcc: maybe-all-stage2-gas
50126configure-stage3-gcc: maybe-all-stage3-gas
50127configure-stage4-gcc: maybe-all-stage4-gas
50128configure-stageprofile-gcc: maybe-all-stageprofile-gas
50129configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
50130configure-gcc: maybe-all-ld
50131
50132configure-stage1-gcc: maybe-all-stage1-ld
50133configure-stage2-gcc: maybe-all-stage2-ld
50134configure-stage3-gcc: maybe-all-stage3-ld
50135configure-stage4-gcc: maybe-all-stage4-ld
50136configure-stageprofile-gcc: maybe-all-stageprofile-ld
50137configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408
ILT
50138configure-gcc: maybe-all-gold
50139
50140configure-stage1-gcc: maybe-all-stage1-gold
50141configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 50142configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
50143configure-stage4-gcc: maybe-all-stage4-gold
50144configure-stageprofile-gcc: maybe-all-stageprofile-gold
50145configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480
AO
50146configure-gcc: maybe-all-libelf
50147
50148configure-stage1-gcc: maybe-all-stage1-libelf
50149configure-stage2-gcc: maybe-all-stage2-libelf
50150configure-stage3-gcc: maybe-all-stage3-libelf
50151configure-stage4-gcc: maybe-all-stage4-libelf
50152configure-stageprofile-gcc: maybe-all-stageprofile-libelf
50153configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251
DD
50154configure-gcc: maybe-all-libiconv
50155
50156configure-stage1-gcc: maybe-all-stage1-libiconv
50157configure-stage2-gcc: maybe-all-stage2-libiconv
50158configure-stage3-gcc: maybe-all-stage3-libiconv
50159configure-stage4-gcc: maybe-all-stage4-libiconv
50160configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
50161configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191
PB
50162all-gcc: all-libiberty
50163
50164all-stage1-gcc: all-stage1-libiberty
50165all-stage2-gcc: all-stage2-libiberty
50166all-stage3-gcc: all-stage3-libiberty
50167all-stage4-gcc: all-stage4-libiberty
50168all-stageprofile-gcc: all-stageprofile-libiberty
50169all-stagefeedback-gcc: all-stagefeedback-libiberty
50170all-gcc: maybe-all-intl
50171
50172all-stage1-gcc: maybe-all-stage1-intl
50173all-stage2-gcc: maybe-all-stage2-intl
50174all-stage3-gcc: maybe-all-stage3-intl
50175all-stage4-gcc: maybe-all-stage4-intl
50176all-stageprofile-gcc: maybe-all-stageprofile-intl
50177all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473
PB
50178all-gcc: maybe-all-mpfr
50179
50180all-stage1-gcc: maybe-all-stage1-mpfr
50181all-stage2-gcc: maybe-all-stage2-mpfr
50182all-stage3-gcc: maybe-all-stage3-mpfr
50183all-stage4-gcc: maybe-all-stage4-mpfr
50184all-stageprofile-gcc: maybe-all-stageprofile-mpfr
50185all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c
RW
50186all-gcc: maybe-all-mpc
50187
50188all-stage1-gcc: maybe-all-stage1-mpc
50189all-stage2-gcc: maybe-all-stage2-mpc
50190all-stage3-gcc: maybe-all-stage3-mpc
50191all-stage4-gcc: maybe-all-stage4-mpc
50192all-stageprofile-gcc: maybe-all-stageprofile-mpc
50193all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831
L
50194all-gcc: maybe-all-isl
50195
50196all-stage1-gcc: maybe-all-stage1-isl
50197all-stage2-gcc: maybe-all-stage2-isl
50198all-stage3-gcc: maybe-all-stage3-isl
50199all-stage4-gcc: maybe-all-stage4-isl
50200all-stageprofile-gcc: maybe-all-stageprofile-isl
50201all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a
PB
50202all-gcc: maybe-all-build-texinfo
50203
50204all-stage1-gcc: maybe-all-build-texinfo
50205all-stage2-gcc: maybe-all-build-texinfo
50206all-stage3-gcc: maybe-all-build-texinfo
50207all-stage4-gcc: maybe-all-build-texinfo
50208all-stageprofile-gcc: maybe-all-build-texinfo
50209all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a
PB
50210all-gcc: maybe-all-build-bison
50211
50212all-stage1-gcc: maybe-all-build-bison
50213all-stage2-gcc: maybe-all-build-bison
50214all-stage3-gcc: maybe-all-build-bison
50215all-stage4-gcc: maybe-all-build-bison
50216all-stageprofile-gcc: maybe-all-build-bison
50217all-stagefeedback-gcc: maybe-all-build-bison
72b2455a
PB
50218all-gcc: maybe-all-build-flex
50219
50220all-stage1-gcc: maybe-all-build-flex
50221all-stage2-gcc: maybe-all-build-flex
50222all-stage3-gcc: maybe-all-build-flex
50223all-stage4-gcc: maybe-all-build-flex
50224all-stageprofile-gcc: maybe-all-build-flex
50225all-stagefeedback-gcc: maybe-all-build-flex
ee025550
PB
50226all-gcc: maybe-all-build-libiberty
50227
50228all-stage1-gcc: maybe-all-build-libiberty
50229all-stage2-gcc: maybe-all-build-libiberty
50230all-stage3-gcc: maybe-all-build-libiberty
50231all-stage4-gcc: maybe-all-build-libiberty
50232all-stageprofile-gcc: maybe-all-build-libiberty
50233all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550
PB
50234all-gcc: maybe-all-build-fixincludes
50235
50236all-stage1-gcc: maybe-all-build-fixincludes
50237all-stage2-gcc: maybe-all-build-fixincludes
50238all-stage3-gcc: maybe-all-build-fixincludes
50239all-stage4-gcc: maybe-all-build-fixincludes
50240all-stageprofile-gcc: maybe-all-build-fixincludes
50241all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831
L
50242all-gcc: maybe-all-build-libcpp
50243
50244all-stage1-gcc: maybe-all-build-libcpp
50245all-stage2-gcc: maybe-all-build-libcpp
50246all-stage3-gcc: maybe-all-build-libcpp
50247all-stage4-gcc: maybe-all-build-libcpp
50248all-stageprofile-gcc: maybe-all-build-libcpp
50249all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191
PB
50250all-gcc: maybe-all-zlib
50251
50252all-stage1-gcc: maybe-all-stage1-zlib
50253all-stage2-gcc: maybe-all-stage2-zlib
50254all-stage3-gcc: maybe-all-stage3-zlib
50255all-stage4-gcc: maybe-all-stage4-zlib
50256all-stageprofile-gcc: maybe-all-stageprofile-zlib
50257all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b
L
50258all-gcc: all-libbacktrace
50259
50260all-stage1-gcc: all-stage1-libbacktrace
50261all-stage2-gcc: all-stage2-libbacktrace
50262all-stage3-gcc: all-stage3-libbacktrace
50263all-stage4-gcc: all-stage4-libbacktrace
50264all-stageprofile-gcc: all-stageprofile-libbacktrace
50265all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191
PB
50266all-gcc: all-libcpp
50267
50268all-stage1-gcc: all-stage1-libcpp
50269all-stage2-gcc: all-stage2-libcpp
50270all-stage3-gcc: all-stage3-libcpp
50271all-stage4-gcc: all-stage4-libcpp
50272all-stageprofile-gcc: all-stageprofile-libcpp
50273all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343
PB
50274all-gcc: all-libdecnumber
50275
50276all-stage1-gcc: all-stage1-libdecnumber
50277all-stage2-gcc: all-stage2-libdecnumber
50278all-stage3-gcc: all-stage3-libdecnumber
50279all-stage4-gcc: all-stage4-libdecnumber
50280all-stageprofile-gcc: all-stageprofile-libdecnumber
50281all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c
GK
50282all-gcc: maybe-all-libiberty
50283
50284all-stage1-gcc: maybe-all-stage1-libiberty
50285all-stage2-gcc: maybe-all-stage2-libiberty
50286all-stage3-gcc: maybe-all-stage3-libiberty
50287all-stage4-gcc: maybe-all-stage4-libiberty
50288all-stageprofile-gcc: maybe-all-stageprofile-libiberty
50289all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
50290all-gcc: maybe-all-fixincludes
201f096f 50291
50292all-stage1-gcc: maybe-all-stage1-fixincludes
50293all-stage2-gcc: maybe-all-stage2-fixincludes
50294all-stage3-gcc: maybe-all-stage3-fixincludes
50295all-stage4-gcc: maybe-all-stage4-fixincludes
50296all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
50297all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a
RW
50298all-gcc: maybe-all-lto-plugin
50299
50300all-stage1-gcc: maybe-all-stage1-lto-plugin
50301all-stage2-gcc: maybe-all-stage2-lto-plugin
50302all-stage3-gcc: maybe-all-stage3-lto-plugin
50303all-stage4-gcc: maybe-all-stage4-lto-plugin
50304all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50305all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251
DD
50306all-gcc: maybe-all-libiconv
50307
50308all-stage1-gcc: maybe-all-stage1-libiconv
50309all-stage2-gcc: maybe-all-stage2-libiconv
50310all-stage3-gcc: maybe-all-stage3-libiconv
50311all-stage4-gcc: maybe-all-stage4-libiconv
50312all-stageprofile-gcc: maybe-all-stageprofile-libiconv
50313all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d
RW
50314info-gcc: maybe-all-build-libiberty
50315
50316info-stage1-gcc: maybe-all-build-libiberty
50317info-stage2-gcc: maybe-all-build-libiberty
50318info-stage3-gcc: maybe-all-build-libiberty
50319info-stage4-gcc: maybe-all-build-libiberty
50320info-stageprofile-gcc: maybe-all-build-libiberty
50321info-stagefeedback-gcc: maybe-all-build-libiberty
50322dvi-gcc: maybe-all-build-libiberty
50323
50324dvi-stage1-gcc: maybe-all-build-libiberty
50325dvi-stage2-gcc: maybe-all-build-libiberty
50326dvi-stage3-gcc: maybe-all-build-libiberty
50327dvi-stage4-gcc: maybe-all-build-libiberty
50328dvi-stageprofile-gcc: maybe-all-build-libiberty
50329dvi-stagefeedback-gcc: maybe-all-build-libiberty
50330pdf-gcc: maybe-all-build-libiberty
50331
50332pdf-stage1-gcc: maybe-all-build-libiberty
50333pdf-stage2-gcc: maybe-all-build-libiberty
50334pdf-stage3-gcc: maybe-all-build-libiberty
50335pdf-stage4-gcc: maybe-all-build-libiberty
50336pdf-stageprofile-gcc: maybe-all-build-libiberty
50337pdf-stagefeedback-gcc: maybe-all-build-libiberty
50338html-gcc: maybe-all-build-libiberty
50339
50340html-stage1-gcc: maybe-all-build-libiberty
50341html-stage2-gcc: maybe-all-build-libiberty
50342html-stage3-gcc: maybe-all-build-libiberty
50343html-stage4-gcc: maybe-all-build-libiberty
50344html-stageprofile-gcc: maybe-all-build-libiberty
50345html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 50346install-gcc: maybe-install-fixincludes
8d8eef9a 50347install-gcc: maybe-install-lto-plugin
9b980aa1 50348install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 50349install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191
PB
50350configure-libcpp: configure-libiberty
50351
50352configure-stage1-libcpp: configure-stage1-libiberty
50353configure-stage2-libcpp: configure-stage2-libiberty
50354configure-stage3-libcpp: configure-stage3-libiberty
50355configure-stage4-libcpp: configure-stage4-libiberty
50356configure-stageprofile-libcpp: configure-stageprofile-libiberty
50357configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
50358configure-libcpp: maybe-configure-intl
50359
50360configure-stage1-libcpp: maybe-configure-stage1-intl
50361configure-stage2-libcpp: maybe-configure-stage2-intl
50362configure-stage3-libcpp: maybe-configure-stage3-intl
50363configure-stage4-libcpp: maybe-configure-stage4-intl
50364configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
50365configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251
DD
50366configure-libcpp: maybe-all-libiconv
50367
50368configure-stage1-libcpp: maybe-all-stage1-libiconv
50369configure-stage2-libcpp: maybe-all-stage2-libiconv
50370configure-stage3-libcpp: maybe-all-stage3-libiconv
50371configure-stage4-libcpp: maybe-all-stage4-libiconv
50372configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50373configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191
PB
50374all-libcpp: all-libiberty
50375
50376all-stage1-libcpp: all-stage1-libiberty
50377all-stage2-libcpp: all-stage2-libiberty
50378all-stage3-libcpp: all-stage3-libiberty
50379all-stage4-libcpp: all-stage4-libiberty
50380all-stageprofile-libcpp: all-stageprofile-libiberty
50381all-stagefeedback-libcpp: all-stagefeedback-libiberty
50382all-libcpp: maybe-all-intl
50383
50384all-stage1-libcpp: maybe-all-stage1-intl
50385all-stage2-libcpp: maybe-all-stage2-intl
50386all-stage3-libcpp: maybe-all-stage3-intl
50387all-stage4-libcpp: maybe-all-stage4-intl
50388all-stageprofile-libcpp: maybe-all-stageprofile-intl
50389all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251
DD
50390all-libcpp: maybe-all-libiconv
50391
50392all-stage1-libcpp: maybe-all-stage1-libiconv
50393all-stage2-libcpp: maybe-all-stage2-libiconv
50394all-stage3-libcpp: maybe-all-stage3-libiconv
50395all-stage4-libcpp: maybe-all-stage4-libiconv
50396all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50397all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 50398all-fixincludes: maybe-all-libiberty
201f096f 50399
50400all-stage1-fixincludes: maybe-all-stage1-libiberty
50401all-stage2-fixincludes: maybe-all-stage2-libiberty
50402all-stage3-fixincludes: maybe-all-stage3-libiberty
50403all-stage4-fixincludes: maybe-all-stage4-libiberty
50404all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
50405all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 50406all-gnattools: maybe-all-target-libada
50f80006 50407all-gnattools: maybe-all-target-libstdc++-v3
8d8eef9a
RW
50408all-lto-plugin: maybe-all-libiberty
50409
50410all-stage1-lto-plugin: maybe-all-stage1-libiberty
50411all-stage2-lto-plugin: maybe-all-stage2-libiberty
50412all-stage3-lto-plugin: maybe-all-stage3-libiberty
50413all-stage4-lto-plugin: maybe-all-stage4-libiberty
50414all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
50415all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831
L
50416all-lto-plugin: maybe-all-libiberty-linker-plugin
50417
50418all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
50419all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
50420all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
50421all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
50422all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
50423all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
50424configure-libcc1: maybe-configure-gcc
50425all-libcc1: maybe-all-gcc
50426all-gotools: maybe-all-target-libgo
28d9b232 50427all-utils: maybe-all-libiberty
016a3251
DD
50428configure-intl: maybe-all-libiconv
50429
50430configure-stage1-intl: maybe-all-stage1-libiconv
50431configure-stage2-intl: maybe-all-stage2-libiconv
50432configure-stage3-intl: maybe-all-stage3-libiconv
50433configure-stage4-intl: maybe-all-stage4-libiconv
50434configure-stageprofile-intl: maybe-all-stageprofile-libiconv
50435configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473
PB
50436configure-mpfr: maybe-all-gmp
50437
50438configure-stage1-mpfr: maybe-all-stage1-gmp
50439configure-stage2-mpfr: maybe-all-stage2-gmp
50440configure-stage3-mpfr: maybe-all-stage3-gmp
50441configure-stage4-mpfr: maybe-all-stage4-gmp
50442configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
50443configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c
RW
50444configure-mpc: maybe-all-mpfr
50445
50446configure-stage1-mpc: maybe-all-stage1-mpfr
50447configure-stage2-mpc: maybe-all-stage2-mpfr
50448configure-stage3-mpc: maybe-all-stage3-mpfr
50449configure-stage4-mpc: maybe-all-stage4-mpfr
50450configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
50451configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e
L
50452configure-isl: maybe-all-gmp
50453
50454configure-stage1-isl: maybe-all-stage1-gmp
50455configure-stage2-isl: maybe-all-stage2-gmp
50456configure-stage3-isl: maybe-all-stage3-gmp
50457configure-stage4-isl: maybe-all-stage4-gmp
50458configure-stageprofile-isl: maybe-all-stageprofile-gmp
50459configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251
DD
50460all-intl: maybe-all-libiconv
50461
50462all-stage1-intl: maybe-all-stage1-libiconv
50463all-stage2-intl: maybe-all-stage2-libiconv
50464all-stage3-intl: maybe-all-stage3-libiconv
50465all-stage4-intl: maybe-all-stage4-libiconv
50466all-stageprofile-intl: maybe-all-stageprofile-libiconv
50467all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
7b3200f9 50468configure-gdb: maybe-all-intl
9e6ce191 50469configure-gdb: maybe-configure-sim
31d99776 50470configure-gdb: maybe-all-bfd
dc448a7b 50471configure-gdb: maybe-all-libiconv
9e6ce191 50472all-gdb: maybe-all-libiberty
dc448a7b 50473all-gdb: maybe-all-libiconv
9e6ce191 50474all-gdb: maybe-all-opcodes
9e6ce191 50475all-gdb: maybe-all-readline
72b2455a 50476all-gdb: maybe-all-build-bison
9e6ce191 50477all-gdb: maybe-all-sim
5074315a 50478all-gdb: maybe-all-libdecnumber
dbbe5f95 50479all-gdb: maybe-all-libtermcap
9e6ce191
PB
50480configure-libgui: maybe-configure-tcl
50481configure-libgui: maybe-configure-tk
50482all-libgui: maybe-all-tcl
50483all-libgui: maybe-all-tk
50484all-libgui: maybe-all-itcl
b4a77b47 50485configure-bfd: configure-libiberty
9e6ce191
PB
50486
50487configure-stage1-bfd: configure-stage1-libiberty
50488configure-stage2-bfd: configure-stage2-libiberty
50489configure-stage3-bfd: configure-stage3-libiberty
50490configure-stage4-bfd: configure-stage4-libiberty
50491configure-stageprofile-bfd: configure-stageprofile-libiberty
50492configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23
DJ
50493configure-bfd: maybe-configure-intl
50494
50495configure-stage1-bfd: maybe-configure-stage1-intl
50496configure-stage2-bfd: maybe-configure-stage2-intl
50497configure-stage3-bfd: maybe-configure-stage3-intl
50498configure-stage4-bfd: maybe-configure-stage4-intl
50499configure-stageprofile-bfd: maybe-configure-stageprofile-intl
50500configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191
PB
50501all-bfd: maybe-all-libiberty
50502
50503all-stage1-bfd: maybe-all-stage1-libiberty
50504all-stage2-bfd: maybe-all-stage2-libiberty
50505all-stage3-bfd: maybe-all-stage3-libiberty
50506all-stage4-bfd: maybe-all-stage4-libiberty
50507all-stageprofile-bfd: maybe-all-stageprofile-libiberty
50508all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
50509all-bfd: maybe-all-intl
50510
50511all-stage1-bfd: maybe-all-stage1-intl
50512all-stage2-bfd: maybe-all-stage2-intl
50513all-stage3-bfd: maybe-all-stage3-intl
50514all-stage4-bfd: maybe-all-stage4-intl
50515all-stageprofile-bfd: maybe-all-stageprofile-intl
50516all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea
L
50517all-bfd: maybe-all-zlib
50518
50519all-stage1-bfd: maybe-all-stage1-zlib
50520all-stage2-bfd: maybe-all-stage2-zlib
50521all-stage3-bfd: maybe-all-stage3-zlib
50522all-stage4-bfd: maybe-all-stage4-zlib
50523all-stageprofile-bfd: maybe-all-stageprofile-zlib
50524all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67
AM
50525configure-opcodes: configure-libiberty
50526
50527configure-stage1-opcodes: configure-stage1-libiberty
50528configure-stage2-opcodes: configure-stage2-libiberty
66775d67 50529configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
50530configure-stage4-opcodes: configure-stage4-libiberty
50531configure-stageprofile-opcodes: configure-stageprofile-libiberty
50532configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
50533all-opcodes: maybe-all-libiberty
50534
50535all-stage1-opcodes: maybe-all-stage1-libiberty
50536all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 50537all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
50538all-stage4-opcodes: maybe-all-stage4-libiberty
50539all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50540all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23
DJ
50541configure-binutils: maybe-configure-intl
50542
50543configure-stage1-binutils: maybe-configure-stage1-intl
50544configure-stage2-binutils: maybe-configure-stage2-intl
50545configure-stage3-binutils: maybe-configure-stage3-intl
50546configure-stage4-binutils: maybe-configure-stage4-intl
50547configure-stageprofile-binutils: maybe-configure-stageprofile-intl
50548configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191
PB
50549all-binutils: maybe-all-libiberty
50550
50551all-stage1-binutils: maybe-all-stage1-libiberty
50552all-stage2-binutils: maybe-all-stage2-libiberty
50553all-stage3-binutils: maybe-all-stage3-libiberty
50554all-stage4-binutils: maybe-all-stage4-libiberty
50555all-stageprofile-binutils: maybe-all-stageprofile-libiberty
50556all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
50557all-binutils: maybe-all-opcodes
50558
50559all-stage1-binutils: maybe-all-stage1-opcodes
50560all-stage2-binutils: maybe-all-stage2-opcodes
50561all-stage3-binutils: maybe-all-stage3-opcodes
50562all-stage4-binutils: maybe-all-stage4-opcodes
50563all-stageprofile-binutils: maybe-all-stageprofile-opcodes
50564all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
50565all-binutils: maybe-all-bfd
50566
50567all-stage1-binutils: maybe-all-stage1-bfd
50568all-stage2-binutils: maybe-all-stage2-bfd
50569all-stage3-binutils: maybe-all-stage3-bfd
50570all-stage4-binutils: maybe-all-stage4-bfd
50571all-stageprofile-binutils: maybe-all-stageprofile-bfd
50572all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
50573all-binutils: maybe-all-build-flex
50574
50575all-stage1-binutils: maybe-all-build-flex
50576all-stage2-binutils: maybe-all-build-flex
50577all-stage3-binutils: maybe-all-build-flex
50578all-stage4-binutils: maybe-all-build-flex
50579all-stageprofile-binutils: maybe-all-build-flex
50580all-stagefeedback-binutils: maybe-all-build-flex
72b2455a
PB
50581all-binutils: maybe-all-build-bison
50582
50583all-stage1-binutils: maybe-all-build-bison
50584all-stage2-binutils: maybe-all-build-bison
50585all-stage3-binutils: maybe-all-build-bison
50586all-stage4-binutils: maybe-all-build-bison
50587all-stageprofile-binutils: maybe-all-build-bison
50588all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191
PB
50589all-binutils: maybe-all-intl
50590
50591all-stage1-binutils: maybe-all-stage1-intl
50592all-stage2-binutils: maybe-all-stage2-intl
50593all-stage3-binutils: maybe-all-stage3-intl
50594all-stage4-binutils: maybe-all-stage4-intl
50595all-stageprofile-binutils: maybe-all-stageprofile-intl
50596all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685
L
50597all-binutils: maybe-all-gas
50598
50599all-stage1-binutils: maybe-all-stage1-gas
50600all-stage2-binutils: maybe-all-stage2-gas
50601all-stage3-binutils: maybe-all-stage3-gas
50602all-stage4-binutils: maybe-all-stage4-gas
50603all-stageprofile-binutils: maybe-all-stageprofile-gas
50604all-stagefeedback-binutils: maybe-all-stagefeedback-gas
ae831be5 50605install-binutils: maybe-install-opcodes
9b980aa1 50606install-strip-binutils: maybe-install-strip-opcodes
cf662e21 50607install-opcodes: maybe-install-bfd
9b980aa1 50608install-strip-opcodes: maybe-install-strip-bfd
20e95c23
DJ
50609configure-gas: maybe-configure-intl
50610
50611configure-stage1-gas: maybe-configure-stage1-intl
50612configure-stage2-gas: maybe-configure-stage2-intl
50613configure-stage3-gas: maybe-configure-stage3-intl
50614configure-stage4-gas: maybe-configure-stage4-intl
50615configure-stageprofile-gas: maybe-configure-stageprofile-intl
50616configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191
PB
50617all-gas: maybe-all-libiberty
50618
50619all-stage1-gas: maybe-all-stage1-libiberty
50620all-stage2-gas: maybe-all-stage2-libiberty
50621all-stage3-gas: maybe-all-stage3-libiberty
50622all-stage4-gas: maybe-all-stage4-libiberty
50623all-stageprofile-gas: maybe-all-stageprofile-libiberty
50624all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
50625all-gas: maybe-all-opcodes
50626
50627all-stage1-gas: maybe-all-stage1-opcodes
50628all-stage2-gas: maybe-all-stage2-opcodes
50629all-stage3-gas: maybe-all-stage3-opcodes
50630all-stage4-gas: maybe-all-stage4-opcodes
50631all-stageprofile-gas: maybe-all-stageprofile-opcodes
50632all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
50633all-gas: maybe-all-bfd
50634
50635all-stage1-gas: maybe-all-stage1-bfd
50636all-stage2-gas: maybe-all-stage2-bfd
50637all-stage3-gas: maybe-all-stage3-bfd
50638all-stage4-gas: maybe-all-stage4-bfd
50639all-stageprofile-gas: maybe-all-stageprofile-bfd
50640all-stagefeedback-gas: maybe-all-stagefeedback-bfd
50641all-gas: maybe-all-intl
50642
50643all-stage1-gas: maybe-all-stage1-intl
50644all-stage2-gas: maybe-all-stage2-intl
50645all-stage3-gas: maybe-all-stage3-intl
50646all-stage4-gas: maybe-all-stage4-intl
50647all-stageprofile-gas: maybe-all-stageprofile-intl
50648all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 50649configure-gprof: maybe-configure-intl
9e6ce191
PB
50650all-gprof: maybe-all-libiberty
50651all-gprof: maybe-all-bfd
50652all-gprof: maybe-all-opcodes
50653all-gprof: maybe-all-intl
0140d685 50654all-gprof: maybe-all-gas
20e95c23
DJ
50655configure-ld: maybe-configure-intl
50656
50657configure-stage1-ld: maybe-configure-stage1-intl
50658configure-stage2-ld: maybe-configure-stage2-intl
50659configure-stage3-ld: maybe-configure-stage3-intl
50660configure-stage4-ld: maybe-configure-stage4-intl
50661configure-stageprofile-ld: maybe-configure-stageprofile-intl
50662configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191
PB
50663all-ld: maybe-all-libiberty
50664
50665all-stage1-ld: maybe-all-stage1-libiberty
50666all-stage2-ld: maybe-all-stage2-libiberty
50667all-stage3-ld: maybe-all-stage3-libiberty
50668all-stage4-ld: maybe-all-stage4-libiberty
50669all-stageprofile-ld: maybe-all-stageprofile-libiberty
50670all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
50671all-ld: maybe-all-bfd
50672
50673all-stage1-ld: maybe-all-stage1-bfd
50674all-stage2-ld: maybe-all-stage2-bfd
50675all-stage3-ld: maybe-all-stage3-bfd
50676all-stage4-ld: maybe-all-stage4-bfd
50677all-stageprofile-ld: maybe-all-stageprofile-bfd
50678all-stagefeedback-ld: maybe-all-stagefeedback-bfd
50679all-ld: maybe-all-opcodes
50680
50681all-stage1-ld: maybe-all-stage1-opcodes
50682all-stage2-ld: maybe-all-stage2-opcodes
50683all-stage3-ld: maybe-all-stage3-opcodes
50684all-stage4-ld: maybe-all-stage4-opcodes
50685all-stageprofile-ld: maybe-all-stageprofile-opcodes
50686all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
50687all-ld: maybe-all-build-bison
50688
50689all-stage1-ld: maybe-all-build-bison
50690all-stage2-ld: maybe-all-build-bison
50691all-stage3-ld: maybe-all-build-bison
50692all-stage4-ld: maybe-all-build-bison
50693all-stageprofile-ld: maybe-all-build-bison
50694all-stagefeedback-ld: maybe-all-build-bison
72b2455a
PB
50695all-ld: maybe-all-build-flex
50696
50697all-stage1-ld: maybe-all-build-flex
50698all-stage2-ld: maybe-all-build-flex
50699all-stage3-ld: maybe-all-build-flex
50700all-stage4-ld: maybe-all-build-flex
50701all-stageprofile-ld: maybe-all-build-flex
50702all-stagefeedback-ld: maybe-all-build-flex
9e6ce191
PB
50703all-ld: maybe-all-intl
50704
50705all-stage1-ld: maybe-all-stage1-intl
50706all-stage2-ld: maybe-all-stage2-intl
50707all-stage3-ld: maybe-all-stage3-intl
50708all-stage4-ld: maybe-all-stage4-intl
50709all-stageprofile-ld: maybe-all-stageprofile-intl
50710all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685
L
50711all-ld: maybe-all-gas
50712
50713all-stage1-ld: maybe-all-stage1-gas
50714all-stage2-ld: maybe-all-stage2-gas
50715all-stage3-ld: maybe-all-stage3-gas
50716all-stage4-ld: maybe-all-stage4-gas
50717all-stageprofile-ld: maybe-all-stageprofile-gas
50718all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403
YS
50719all-ld: maybe-all-binutils
50720
50721all-stage1-ld: maybe-all-stage1-binutils
50722all-stage2-ld: maybe-all-stage2-binutils
50723all-stage3-ld: maybe-all-stage3-binutils
50724all-stage4-ld: maybe-all-stage4-binutils
50725all-stageprofile-ld: maybe-all-stageprofile-binutils
50726all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 50727install-ld: maybe-install-gold
9b980aa1 50728install-strip-ld: maybe-install-strip-gold
93f9b408
ILT
50729configure-gold: maybe-configure-intl
50730
50731configure-stage1-gold: maybe-configure-stage1-intl
50732configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 50733configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
50734configure-stage4-gold: maybe-configure-stage4-intl
50735configure-stageprofile-gold: maybe-configure-stageprofile-intl
50736configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
50737all-gold: maybe-all-libiberty
50738
50739all-stage1-gold: maybe-all-stage1-libiberty
50740all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 50741all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
50742all-stage4-gold: maybe-all-stage4-libiberty
50743all-stageprofile-gold: maybe-all-stageprofile-libiberty
50744all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
50745all-gold: maybe-all-intl
50746
50747all-stage1-gold: maybe-all-stage1-intl
50748all-stage2-gold: maybe-all-stage2-intl
93f9b408 50749all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
50750all-stage4-gold: maybe-all-stage4-intl
50751all-stageprofile-gold: maybe-all-stageprofile-intl
50752all-stagefeedback-gold: maybe-all-stagefeedback-intl
50753all-gold: maybe-all-bfd
50754
50755all-stage1-gold: maybe-all-stage1-bfd
50756all-stage2-gold: maybe-all-stage2-bfd
93f9b408 50757all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
50758all-stage4-gold: maybe-all-stage4-bfd
50759all-stageprofile-gold: maybe-all-stageprofile-bfd
50760all-stagefeedback-gold: maybe-all-stagefeedback-bfd
50761all-gold: maybe-all-build-bison
50762
50763all-stage1-gold: maybe-all-build-bison
50764all-stage2-gold: maybe-all-build-bison
93f9b408 50765all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
50766all-stage4-gold: maybe-all-build-bison
50767all-stageprofile-gold: maybe-all-build-bison
50768all-stagefeedback-gold: maybe-all-build-bison
0140d685
L
50769all-gold: maybe-all-gas
50770
50771all-stage1-gold: maybe-all-stage1-gas
50772all-stage2-gold: maybe-all-stage2-gas
50773all-stage3-gold: maybe-all-stage3-gas
50774all-stage4-gold: maybe-all-stage4-gas
50775all-stageprofile-gold: maybe-all-stageprofile-gas
50776all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97
ILT
50777check-gold: maybe-all-binutils
50778
50779check-stage1-gold: maybe-all-stage1-binutils
50780check-stage2-gold: maybe-all-stage2-binutils
e5164e97 50781check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
50782check-stage4-gold: maybe-all-stage4-binutils
50783check-stageprofile-gold: maybe-all-stageprofile-binutils
50784check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca
ILT
50785check-gold: maybe-all-gas
50786
50787check-stage1-gold: maybe-all-stage1-gas
50788check-stage2-gold: maybe-all-stage2-gas
50789check-stage3-gold: maybe-all-stage3-gas
50790check-stage4-gold: maybe-all-stage4-gas
50791check-stageprofile-gold: maybe-all-stageprofile-gas
50792check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee
JJ
50793configure-opcodes: maybe-configure-intl
50794
50795configure-stage1-opcodes: maybe-configure-stage1-intl
50796configure-stage2-opcodes: maybe-configure-stage2-intl
50797configure-stage3-opcodes: maybe-configure-stage3-intl
50798configure-stage4-opcodes: maybe-configure-stage4-intl
50799configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
50800configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191
PB
50801all-opcodes: maybe-all-bfd
50802
50803all-stage1-opcodes: maybe-all-stage1-bfd
50804all-stage2-opcodes: maybe-all-stage2-bfd
50805all-stage3-opcodes: maybe-all-stage3-bfd
50806all-stage4-opcodes: maybe-all-stage4-bfd
50807all-stageprofile-opcodes: maybe-all-stageprofile-bfd
50808all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
50809all-opcodes: maybe-all-libiberty
50810
50811all-stage1-opcodes: maybe-all-stage1-libiberty
50812all-stage2-opcodes: maybe-all-stage2-libiberty
50813all-stage3-opcodes: maybe-all-stage3-libiberty
50814all-stage4-opcodes: maybe-all-stage4-libiberty
50815all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50816all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee
JJ
50817all-opcodes: maybe-all-intl
50818
50819all-stage1-opcodes: maybe-all-stage1-intl
50820all-stage2-opcodes: maybe-all-stage2-intl
50821all-stage3-opcodes: maybe-all-stage3-intl
50822all-stage4-opcodes: maybe-all-stage4-intl
50823all-stageprofile-opcodes: maybe-all-stageprofile-intl
50824all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
50825all-dejagnu: maybe-all-tcl
50826all-dejagnu: maybe-all-expect
50827all-dejagnu: maybe-all-tk
50828configure-expect: maybe-configure-tcl
50829configure-expect: maybe-configure-tk
50830all-expect: maybe-all-tcl
50831all-expect: maybe-all-tk
50832configure-itcl: maybe-configure-tcl
50833configure-itcl: maybe-configure-tk
50834all-itcl: maybe-all-tcl
50835all-itcl: maybe-all-tk
ae831be5 50836install-itcl: maybe-install-tcl
9b980aa1 50837install-strip-itcl: maybe-install-strip-tcl
b4a77b47 50838configure-tk: maybe-configure-tcl
ae831be5 50839all-tk: maybe-all-tcl
9e6ce191
PB
50840all-sid: maybe-all-libiberty
50841all-sid: maybe-all-bfd
50842all-sid: maybe-all-opcodes
50843all-sid: maybe-all-tcl
50844all-sid: maybe-all-tk
50845install-sid: maybe-install-tcl
9b980aa1 50846install-strip-sid: maybe-install-strip-tcl
9e6ce191 50847install-sid: maybe-install-tk
9b980aa1 50848install-strip-sid: maybe-install-strip-tk
20e95c23
DJ
50849configure-sim: maybe-configure-intl
50850all-sim: maybe-all-intl
9e6ce191
PB
50851all-sim: maybe-all-libiberty
50852all-sim: maybe-all-bfd
50853all-sim: maybe-all-opcodes
50854all-sim: maybe-all-readline
50855all-sim: maybe-configure-gdb
50856all-fastjar: maybe-all-zlib
72b2455a 50857all-fastjar: maybe-all-build-texinfo
9e6ce191 50858all-fastjar: maybe-all-libiberty
9e6ce191 50859all-bison: maybe-all-intl
72b2455a 50860all-bison: maybe-all-build-texinfo
72b2455a 50861all-flex: maybe-all-build-bison
9e6ce191
PB
50862all-flex: maybe-all-intl
50863all-flex: maybe-all-m4
72b2455a 50864all-flex: maybe-all-build-texinfo
9e6ce191 50865all-m4: maybe-all-intl
72b2455a 50866all-m4: maybe-all-build-texinfo
f7c83eac 50867configure-target-boehm-gc: maybe-all-target-libstdc++-v3
b4a77b47 50868configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 50869all-target-fastjar: maybe-all-target-zlib
e552509b
ILT
50870configure-target-libgo: maybe-configure-target-libffi
50871configure-target-libgo: maybe-all-target-libstdc++-v3
8e71395b 50872all-target-libgo: maybe-all-target-libbacktrace
e552509b 50873all-target-libgo: maybe-all-target-libffi
9417cd2f 50874all-target-libgo: maybe-all-target-libatomic
9e6ce191
PB
50875configure-target-libjava: maybe-configure-target-zlib
50876configure-target-libjava: maybe-configure-target-boehm-gc
9e6ce191
PB
50877configure-target-libjava: maybe-configure-target-libffi
50878all-target-libjava: maybe-all-fastjar
50879all-target-libjava: maybe-all-target-zlib
50880all-target-libjava: maybe-all-target-boehm-gc
9e6ce191 50881all-target-libjava: maybe-all-target-libffi
4f0ef2d8 50882configure-target-libobjc: maybe-configure-target-boehm-gc
4f0ef2d8 50883all-target-libobjc: maybe-all-target-boehm-gc
cff87f51 50884configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50885
50886configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50887configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50888configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50889configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50890configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50891configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50892configure-target-liboffloadmic: maybe-configure-target-libgomp
5286fdef 50893configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
50894
50895configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
50896configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
50897configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
50898configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
50899configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
50900configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135
JBG
50901configure-target-libvtv: maybe-all-target-libstdc++-v3
50902
50903configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
50904configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
50905configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
50906configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
50907configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
50908configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0
JR
50909all-target-libstdc++-v3: maybe-configure-target-libgomp
50910
50911all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50912all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50913all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50914all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50915all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50916all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50917all-target-liboffloadmic: maybe-all-target-libgomp
9417cd2f
JBG
50918install-target-libgo: maybe-install-target-libatomic
50919install-target-libgfortran: maybe-install-target-libquadmath
50920install-target-libgfortran: maybe-install-target-libgcc
3dae1673 50921install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 50922install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
50923install-target-libvtv: maybe-install-target-libstdc++-v3
50924install-target-libvtv: maybe-install-target-libgcc
522e3d71 50925install-target-libcilkrts: maybe-install-target-libstdc++-v3
50926install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
50927install-target-liboffloadmic: maybe-install-target-libstdc++-v3
50928install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
50929install-target-libjava: maybe-install-target-libgcc
50930install-target-libitm: maybe-install-target-libgcc
50931install-target-libobjc: maybe-install-target-libgcc
50932install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 50933all-target-libgloss: maybe-all-target-newlib
9e6ce191 50934all-target-winsup: maybe-all-target-libtermcap
c1102ce7
RW
50935configure-target-newlib: maybe-all-binutils
50936configure-target-newlib: maybe-all-ld
e552509b 50937configure-target-libgfortran: maybe-all-target-libquadmath
68996839 50938configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
50939
50940
6aa8ef82
DJ
50941# Dependencies for target modules on other target modules are
50942# described by lang_env_dependencies; the defaults apply to anything
50943# not mentioned there.
50944
50945
50946@if gcc-bootstrap
e8a5fa9c
RW
50947configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
50948configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
50949configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
50950configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
50951configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
50952configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
50953configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
50954configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
50955configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
50956configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
50957configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
50958configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
50959configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
50960configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
50961configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
50962configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
50963configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
50964configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
50965configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
50966configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
50967configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
50968configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
50969configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
50970configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
50971configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
50972configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
50973configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
50974configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
50975configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
50976configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
50977@endif gcc-bootstrap
50978
50979@if gcc-no-bootstrap
50980configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 50981configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 50982configure-target-libmpx: maybe-all-target-libgcc
95e43135 50983configure-target-libvtv: maybe-all-target-libgcc
522e3d71 50984configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 50985configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 50986configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 50987configure-target-newlib: maybe-all-target-libgcc
2bf680c4 50988configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 50989configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
50990configure-target-libgfortran: maybe-all-target-libgcc
50991configure-target-libobjc: maybe-all-target-libgcc
e552509b 50992configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
50993configure-target-libtermcap: maybe-all-target-libgcc
50994configure-target-winsup: maybe-all-target-libgcc
50995configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82
DJ
50996configure-target-libffi: maybe-all-target-libgcc
50997configure-target-libjava: maybe-all-target-libgcc
50998configure-target-zlib: maybe-all-target-libgcc
50999configure-target-boehm-gc: maybe-all-target-libgcc
6aa8ef82
DJ
51000configure-target-rda: maybe-all-target-libgcc
51001configure-target-libada: maybe-all-target-libgcc
51002configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
51003configure-target-libitm: maybe-all-target-libgcc
51004configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
51005@endif gcc-no-bootstrap
51006
51007
51008configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
51009
5286fdef
L
51010configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
51011
1b6c0831
L
51012configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
51013
95e43135
JBG
51014configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
51015
e78e02e6 51016configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
51017configure-target-libcilkrts: maybe-all-target-libstdc++-v3
51018
1b6c0831
L
51019configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
51020configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
51021
6aa8ef82
DJ
51022configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
51023
51024
51025
2bf680c4
ILT
51026configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
51027
e552509b
ILT
51028configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
51029
6aa8ef82
DJ
51030configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
51031
51032configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
51033
e552509b
ILT
51034configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
51035
6aa8ef82
DJ
51036configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
51037
51038configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
51039
51040
6aa8ef82 51041configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 51042configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82
DJ
51043
51044configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
51045configure-target-libjava: maybe-all-target-libstdc++-v3
51046
51047configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
51048
51049configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
51050
6aa8ef82
DJ
51051configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
51052
51053configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
51054
51055configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
51056
7ec59b9e
L
51057configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
51058configure-target-libitm: maybe-all-target-libstdc++-v3
51059
51060configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
51061
6aa8ef82 51062
907be67c 51063CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 51064GDB_TK = @GDB_TK@
907be67c
DJ
51065INSTALL_GDB_TK = @INSTALL_GDB_TK@
51066configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 51067all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 51068install-gdb: $(INSTALL_GDB_TK)
907a7241 51069
a2cc058a
NN
51070# Serialization dependencies. Host configures don't work well in parallel to
51071# each other, due to contention over config.cache. Target configures and
51072# build configures are similar.
51073@serialization_dependencies@
51074
15723a45
NN
51075# --------------------------------
51076# Regenerating top level configury
51077# --------------------------------
252b5132 51078
14a2a2f1 51079# Rebuilding Makefile.in, using autogen.
43be203f 51080AUTOGEN = autogen
6b784d9f 51081$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 51082 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 51083
a0da8069 51084# Rebuilding Makefile.
43be203f
AO
51085Makefile: $(srcdir)/Makefile.in config.status
51086 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
51087
479759c8 51088config.status: configure
10ecffb9 51089 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 51090
a0da8069 51091# Rebuilding configure.
43be203f 51092AUTOCONF = autoconf
da888c87
PB
51093$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
51094 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
43be203f 51095 cd $(srcdir) && $(AUTOCONF)
252b5132 51096
3728fade
NN
51097# ------------------------------
51098# Special directives to GNU Make
51099# ------------------------------
51100
3728fade
NN
51101# Don't pass command-line variables to submakes.
51102.NOEXPORT:
51103MAKEOVERRIDES=
51104
252b5132 51105# end of Makefile.in
This page took 4.892209 seconds and 4 git commands to generate.